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"
1827 test "$program_prefix" != NONE
&&
1828 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
1829 # Use a double $ so make ignores it.
1830 test "$program_suffix" != NONE
&&
1831 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
1832 # Double any \ or $. echo might interpret backslashes.
1833 # By default was `s,x,x', remove it if useless.
1834 cat <<\_ACEOF
>conftest.
sed
1835 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1837 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1841 lispdir
='${datadir}/emacs/${version}/lisp'
1842 locallisppath
='${datadir}/emacs/${version}/site-lisp:'\
1843 '${datadir}/emacs/site-lisp'
1844 lisppath
='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1845 etcdir
='${datadir}/emacs/${version}/etc'
1846 archlibdir
='${libexecdir}/emacs/${version}/${configuration}'
1847 docdir
='${datadir}/emacs/${version}/etc'
1848 gamedir
='${localstatedir}/games/emacs'
1855 # Check whether --with-gcc was given.
1856 if test "${with_gcc+set}" = set; then
1862 # Check whether --with-pop was given.
1863 if test "${with_pop+set}" = set; then
1869 if test "$with_pop" = yes; then
1870 cat >>confdefs.h
<<\_ACEOF
1871 #define MAIL_USE_POP 1
1878 # Check whether --with-kerberos was given.
1879 if test "${with_kerberos+set}" = set; then
1880 withval
=$with_kerberos;
1885 if test "$with_kerberos" = yes; then
1886 cat >>confdefs.h
<<\_ACEOF
1894 # Check whether --with-kerberos5 was given.
1895 if test "${with_kerberos5+set}" = set; then
1896 withval
=$with_kerberos5;
1901 if test "${with_kerberos5}" = yes; then
1902 if test "${with_kerberos}" != yes; then
1904 cat >>confdefs.h
<<\_ACEOF
1910 cat >>confdefs.h
<<\_ACEOF
1917 # Check whether --with-hesiod was given.
1918 if test "${with_hesiod+set}" = set; then
1919 withval
=$with_hesiod;
1924 if test "$with_hesiod" = yes; then
1926 cat >>confdefs.h
<<\_ACEOF
1933 # Check whether --with-sound was given.
1934 if test "${with_sound+set}" = set; then
1935 withval
=$with_sound;
1942 # Check whether --with-x-toolkit was given.
1943 if test "${with_x_toolkit+set}" = set; then
1944 withval
=$with_x_toolkit; case "${withval}" in
1945 y | ye |
yes ) val
=gtk
;;
1947 l | lu | luc | luci | lucid
) val
=lucid
;;
1948 a |
at | ath | athe | athen | athena
) val
=athena
;;
1949 m | mo | mot | moti | motif
) val
=motif
;;
1950 g | gt | gtk
) val
=gtk
;;
1952 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1953 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1954 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1955 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1956 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1957 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1958 { (exit 1); exit 1; }; }
1967 # Check whether --with-xpm was given.
1968 if test "${with_xpm+set}" = set; then
1975 # Check whether --with-jpeg was given.
1976 if test "${with_jpeg+set}" = set; then
1983 # Check whether --with-tiff was given.
1984 if test "${with_tiff+set}" = set; then
1991 # Check whether --with-gif was given.
1992 if test "${with_gif+set}" = set; then
1999 # Check whether --with-png was given.
2000 if test "${with_png+set}" = set; then
2007 # Check whether --with-rsvg was given.
2008 if test "${with_rsvg+set}" = set; then
2016 # Check whether --with-freetype was given.
2017 if test "${with_freetype+set}" = set; then
2018 withval
=$with_freetype;
2024 # Check whether --with-xft was given.
2025 if test "${with_xft+set}" = set; then
2032 # Check whether --with-libotf was given.
2033 if test "${with_libotf+set}" = set; then
2034 withval
=$with_libotf;
2040 # Check whether --with-m17n-flt was given.
2041 if test "${with_m17n_flt+set}" = set; then
2042 withval
=$with_m17n_flt;
2049 # Check whether --with-gtk was given.
2050 if test "${with_gtk+set}" = set; then
2057 # Check whether --with-toolkit-scroll-bars was given.
2058 if test "${with_toolkit_scroll_bars+set}" = set; then
2059 withval
=$with_toolkit_scroll_bars;
2061 with_toolkit_scroll_bars
=yes
2065 # Check whether --with-xaw3d was given.
2066 if test "${with_xaw3d+set}" = set; then
2067 withval
=$with_xaw3d;
2073 # Check whether --with-xim was given.
2074 if test "${with_xim+set}" = set; then
2081 # Check whether --with-carbon was given.
2082 if test "${with_carbon+set}" = set; then
2083 withval
=$with_carbon;
2090 # Check whether --with-gpm was given.
2091 if test "${with_gpm+set}" = set; then
2098 # Check whether --with-dbus was given.
2099 if test "${with_dbus+set}" = set; then
2107 # Check whether --with-pkg-config-prog was given.
2108 if test "${with_pkg_config_prog+set}" = set; then
2109 withval
=$with_pkg_config_prog;
2112 if test "X${with_pkg_config_prog}" != X
; then
2113 if test "${with_pkg_config_prog}" != yes; then
2114 PKG_CONFIG
="${with_pkg_config_prog}"
2118 # Check whether --enable-carbon-app was given.
2119 if test "${enable_carbon_app+set}" = set; then
2120 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2124 # Check whether --enable-font-backend was given.
2125 if test "${enable_font_backend+set}" = set; then
2126 enableval
=$enable_font_backend; USE_FONT_BACKEND
=$enableval
2132 # Check whether --enable-asserts was given.
2133 if test "${enable_asserts+set}" = set; then
2134 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2140 # Check whether --enable-maintainer-mode was given.
2141 if test "${enable_maintainer_mode+set}" = set; then
2142 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2144 USE_MAINTAINER_MODE
=no
2147 if test $USE_MAINTAINER_MODE = yes; then
2154 # Check whether --enable-locallisppath was given.
2155 if test "${enable_locallisppath+set}" = set; then
2156 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2158 elif test "${enableval}" != "yes"; then
2159 locallisppath
=${enableval}
2164 #### Make srcdir absolute, if it isn't already. It's important to
2165 #### avoid running the path through pwd unnecessarily, since pwd can
2166 #### give you automounter prefixes, which can go away. We do all this
2167 #### so Emacs can find its files when run uninstalled.
2168 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2173 ## We may be able to use the $PWD environment variable to make this
2174 ## absolute. But sometimes PWD is inaccurate.
2175 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2176 ## but that tested only for a well-formed and valid PWD,
2177 ## it did not object when PWD was well-formed and valid but just wrong.
2178 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2182 srcdir
="`(cd ${srcdir}; pwd)`"
2185 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2188 #### Check if the source directory already has a configured system in it.
2189 if test `pwd` != `(cd ${srcdir} && pwd)` \
2190 && test -f "${srcdir}/src/config.h" ; then
2191 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2192 as a build directory right now; it has been configured in its own
2193 right. To configure in another directory as well, you MUST
2194 use GNU make. If you do not have GNU make, then you must
2195 now do \`make distclean' in ${srcdir},
2196 and then run $0 again." >&5
2197 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2198 as a build directory right now; it has been configured in its own
2199 right. To configure in another directory as well, you MUST
2200 use GNU make. If you do not have GNU make, then you must
2201 now do \`make distclean' in ${srcdir},
2202 and then run $0 again." >&2;}
2205 #### Given the configuration name, set machfile and opsysfile to the
2206 #### names of the m/*.h and s/*.h files we should use.
2208 ### Canonicalize the configuration name.
2211 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2212 if test -f "$ac_dir/install-sh"; then
2214 ac_install_sh
="$ac_aux_dir/install-sh -c"
2216 elif test -f "$ac_dir/install.sh"; then
2218 ac_install_sh
="$ac_aux_dir/install.sh -c"
2220 elif test -f "$ac_dir/shtool"; then
2222 ac_install_sh
="$ac_aux_dir/shtool install -c"
2226 if test -z "$ac_aux_dir"; then
2227 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2228 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2229 { (exit 1); exit 1; }; }
2232 # These three variables are undocumented and unsupported,
2233 # and are intended to be withdrawn in a future Autoconf release.
2234 # They can cause serious problems if a builder's source tree is in a directory
2235 # whose full name contains unusual characters.
2236 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2237 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2238 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2241 # Make sure we can run config.sub.
2242 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2243 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2244 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2245 { (exit 1); exit 1; }; }
2247 { echo "$as_me:$LINENO: checking build system type" >&5
2248 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2249 if test "${ac_cv_build+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2252 ac_build_alias
=$build_alias
2253 test "x$ac_build_alias" = x
&&
2254 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2255 test "x$ac_build_alias" = x
&&
2256 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2257 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2258 { (exit 1); exit 1; }; }
2259 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2260 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2261 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2262 { (exit 1); exit 1; }; }
2265 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2266 echo "${ECHO_T}$ac_cv_build" >&6; }
2267 case $ac_cv_build in
2269 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2270 echo "$as_me: error: invalid value of canonical build" >&2;}
2271 { (exit 1); exit 1; }; };;
2274 ac_save_IFS
=$IFS; IFS
='-'
2280 # Remember, the first character of IFS is used to create $*,
2281 # except with old shells:
2284 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2287 { echo "$as_me:$LINENO: checking host system type" >&5
2288 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2289 if test "${ac_cv_host+set}" = set; then
2290 echo $ECHO_N "(cached) $ECHO_C" >&6
2292 if test "x$host_alias" = x
; then
2293 ac_cv_host
=$ac_cv_build
2295 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2296 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2297 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2298 { (exit 1); exit 1; }; }
2302 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2303 echo "${ECHO_T}$ac_cv_host" >&6; }
2306 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2307 echo "$as_me: error: invalid value of canonical host" >&2;}
2308 { (exit 1); exit 1; }; };;
2311 ac_save_IFS
=$IFS; IFS
='-'
2317 # Remember, the first character of IFS is used to create $*,
2318 # except with old shells:
2321 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2325 configuration
=${host_alias-${build_alias-$host}}
2329 ### If you add support for a new configuration, add code to this
2330 ### switch statement to recognize your configuration name and select
2331 ### the appropriate operating system and machine description files.
2333 ### You would hope that you could choose an m/*.h file pretty much
2334 ### based on the machine portion of the configuration name, and an s-
2335 ### file based on the operating system portion. However, it turns out
2336 ### that each m/*.h file is pretty manufacturer-specific - for
2337 ### example hp9000s300.h is a 68000 machine;
2338 ### mips.h, pmax.h are all MIPS
2339 ### machines. So we basically have to have a special case for each
2340 ### configuration name.
2342 ### As far as handling version numbers on operating systems is
2343 ### concerned, make sure things will fail in a fixable way. If
2344 ### /etc/MACHINES doesn't say anything about version numbers, be
2345 ### prepared to handle anything reasonably. If version numbers
2346 ### matter, be sure /etc/MACHINES says something about it.
2348 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2349 ### "System V Release 4"; he writes, "The old convention encouraged
2350 ### confusion between `system' and `release' levels'."
2352 machine
='' opsys
='' unported
=no
2353 case "${canonical}" in
2358 case "${canonical}" in
2359 alpha
*-*-freebsd*) machine
=alpha
;;
2360 ia64-
*-freebsd*) machine
=ia64
;;
2361 sparc64-
*-freebsd*) machine
=sparc
;;
2362 powerpc-
*-freebsd*) machine
=macppc
;;
2363 i
[3456]86-*-freebsd*) machine
=intel386
;;
2364 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2368 ## FreeBSD kernel + glibc based userland
2371 case "${canonical}" in
2372 alpha
*-*-kfreebsd*) machine
=alpha
;;
2373 ia64-
*-kfreebsd*) machine
=ia64
;;
2374 sparc64-
*-kfreebsd*) machine
=sparc
;;
2375 powerpc-
*-kfreebsd*) machine
=macppc
;;
2376 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2377 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2384 if test -f /usr
/lib
/crti.o
; then
2386 cat >>confdefs.h
<<\_ACEOF
2392 case "${canonical}" in
2393 alpha
*-*-netbsd*) machine
=alpha
;;
2394 i
[3456]86-*-netbsd*) machine
=intel386
;;
2396 # This is somewhat bogus.
2397 machine
=hp9000s300
;;
2398 mips-
*-netbsd*) machine
=pmax
;;
2399 mipsel-
*-netbsd*) machine
=pmax
;;
2400 mipseb-
*-netbsd*) machine
=pmax
;;
2401 powerpc-
*-netbsd*) machine
=macppc
;;
2402 sparc
*-*-netbsd*) machine
=sparc
;;
2403 vax-
*-netbsd*) machine
=vax
;;
2404 arm-
*-netbsd*) machine
=arm
;;
2405 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2406 hppa-
*-netbsd*) machine
=hp800
;;
2413 case "${canonical}" in
2414 alpha
*-*-openbsd*) machine
=alpha
;;
2415 arm-
*-openbsd*) machine
=arm
;;
2416 hppa-
*-openbsd*) machine
=hp9000s300
;;
2417 i386-
*-openbsd*) machine
=intel386
;;
2418 m68k-
*-openbsd*) machine
=hp9000s300
;;
2419 mips64-
*-openbsd*) machine
=mips64
;;
2420 powerpc-
*-openbsd*) machine
=macppc
;;
2421 sparc
*-*-openbsd*) machine
=sparc
;;
2422 vax-
*-openbsd*) machine
=vax
;;
2423 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2430 case "${canonical}" in
2431 i
[3456]86-*-lynxos*) machine
=intel386
;;
2432 powerpc-
*-lynxos*) machine
=powerpc
;;
2439 case "${canonical}" in
2440 i
[345]86-*-bsdi*) machine
=intel386
;;
2441 sparc-
*-bsdi*) machine
=sparc
;;
2442 powerpc-
*-bsdi*) machine
=macppc
;;
2444 case "${canonical}" in
2445 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2446 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2447 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2448 *-*-bsdi3* ) opsys
=bsdos3
;;
2449 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2453 ## Alpha (DEC) machines.
2455 machine
=alpha opsys
=osf1
2456 # This is needed to find X11R6.1 libraries for certain tests.
2457 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2458 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2459 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2460 # due to non-traditional preprocessing with the current compiler
2461 # defaults. OSF 4 can also have that compiler version, and there
2462 # seems always to have been a usable /usr/bin/cpp.
2463 NON_GNU_CPP
=/usr
/bin
/cpp
2464 case "${canonical}" in
2465 alpha
*-dec-osf[5-9]*)
2470 alpha
*-*-linux-gnu* )
2471 machine
=alpha opsys
=gnu-linux
2475 machine
=arm opsys
=gnu-linux
2478 ## Apple Darwin / Mac OS X
2480 case "${canonical}" in
2481 i
[3456]86-* ) machine
=intel386
;;
2482 powerpc-
* ) machine
=powermac
;;
2486 # Define CPP as follows to make autoconf work correctly.
2487 CPP
="${CC-cc} -E -no-cpp-precomp"
2488 # Use fink packages if available.
2489 if test -d /sw
/include
&& test -d /sw
/lib
; then
2490 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2491 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2492 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2497 mips-compaq-nonstopux
* )
2498 machine
=nonstopux opsys
=nonstopux
2502 i
[3456]86-cubix-sysv* )
2503 machine
=intel386 opsys
=usg5-3
2506 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2507 machine
=pmax opsys
=bsd4-2
2509 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2510 machine
=pmax opsys
=bsd4-3
2513 machine
=pmax opsys
=ultrix4-3
2516 machine
=pmax opsys
=osf1
2518 mips-dec-mach_bsd4.3
* )
2519 machine
=pmax opsys
=mach-bsd4-3
2522 ## HP 9000 series 200 or 300
2524 machine
=hp9000s300 opsys
=bsd4-3
2526 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2528 case "`uname -r`" in
2529 ## Someone's system reports A.B8.05 for this.
2530 ## I wonder what other possibilities there are.
2531 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2532 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2533 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2534 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2535 *) machine
=hp9000s300 opsys
=hpux
;;
2539 ## HP 9000 series 700 and 800, running HP/UX
2541 machine
=hp800 opsys
=hpux
2544 machine
=hp800 opsys
=hpux8
2546 hppa
*-hp-hpux9shr* )
2547 machine
=hp800 opsys
=hpux9shr
2550 machine
=hp800 opsys
=hpux9
2552 hppa
*-hp-hpux10.2
* )
2553 machine
=hp800 opsys
=hpux10-20
2556 machine
=hp800 opsys
=hpux10
2558 hppa
*-hp-hpux1[1-9]* )
2559 machine
=hp800 opsys
=hpux11
2560 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2563 hppa
*-*-linux-gnu* )
2564 machine
=hp800 opsys
=gnu-linux
2567 ## HP 9000 series 700 and 800, running HP/UX
2569 ## Cross-compilation? Nah!
2570 case "`uname -r`" in
2571 ## Someone's system reports A.B8.05 for this.
2572 ## I wonder what other possibilities there are.
2573 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2574 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2575 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2576 *) machine
=hp800 opsys
=hpux10
;;
2580 machine
=hp800 opsys
=nextstep
2585 machine
=ibm370aix opsys
=usg5-3
2588 machine
=ibms390 opsys
=gnu-linux
2590 s390x-
*-linux-gnu* )
2591 machine
=ibms390x opsys
=gnu-linux
2593 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2594 machine
=ibmrs6000 opsys
=aix3-1
2596 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2597 machine
=ibmrs6000 opsys
=aix3-2-5
2599 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2600 machine
=ibmrs6000 opsys
=aix4-1
2602 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2603 machine
=ibmrs6000 opsys
=aix4-2
2605 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2606 machine
=ibmrs6000 opsys
=aix4-2
2608 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2609 machine
=ibmrs6000 opsys
=aix4-2
2611 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2612 machine
=ibmrs6000 opsys
=aix4
2614 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2615 machine
=ibmrs6000 opsys
=aix4-1
2617 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2618 machine
=ibmrs6000 opsys
=aix3-2
2622 i
[3456]86-prime-sysv* )
2623 machine
=i386 opsys
=usg5-3
2626 ## ncr machine running svr4.3.
2627 i
[3456]86-ncr-sysv4.3
)
2628 machine
=ncr386 opsys
=usg5-4-3
2631 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2632 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2633 i
[3456]86-ncr-sysv* )
2634 machine
=ncr386 opsys
=usg5-4-2
2637 ## Macintosh PowerPC
2638 powerpc
*-*-linux-gnu* )
2639 machine
=macppc opsys
=gnu-linux
2642 ## Workstations sold by MIPS
2643 ## This is not necessarily all workstations using the MIPS processor -
2644 ## Irises are produced by SGI, and DECstations by DEC.
2646 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2647 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2648 ## it gives for choosing between the alternatives seems to be "Use
2649 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2650 ## the BSD world." I'll assume that these are instructions for
2651 ## handling two odd situations, and that every other situation
2652 ## should use mips.h and usg5-2-2, they being listed first.
2655 ## Fall through to the general code at the bottom to decide on the OS.
2657 mips-mips-riscos4
* )
2658 machine
=mips4 opsys
=bsd4-3
2659 NON_GNU_CC
="cc -systype bsd43"
2660 NON_GNU_CPP
="cc -systype bsd43 -E"
2662 mips-mips-riscos5
* )
2663 machine
=mips4 opsys
=riscos5
2664 NON_GNU_CC
="cc -systype bsd43"
2665 NON_GNU_CPP
="cc -systype bsd43 -E"
2668 machine
=mips opsys
=bsd4-3
2671 machine
=mips opsys
=usg5-2-2
2675 m68
*-next-* | m68k-
*-nextstep* )
2676 machine
=m68k opsys
=nextstep
2681 machine
=ews4800 opsys
=ux4800
2685 mips-siemens-sysv
* | mips-sni-sysv
*)
2686 machine
=mips-siemens opsys
=usg5-4
2687 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2688 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2691 ## Silicon Graphics machines
2694 machine
=iris4d opsys
=irix6-5
2695 # Without defining _LANGUAGE_C, things get masked out in the headers
2696 # so that, for instance, grepping for `free' in stdlib.h fails and
2697 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2698 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2699 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2702 machine
=iris4d opsys
=irix6-0
2703 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2704 # but presumably it does no harm.
2705 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2706 # -32 probably isn't necessary in later v.6s -- anyone know which?
2707 NON_GCC_TEST_OPTIONS
=-32
2709 mips-sgi-irix5.
[01]* )
2710 machine
=iris4d opsys
=irix5-0
2712 mips-sgi-irix5
* | mips-sgi-irix
* )
2713 machine
=iris4d opsys
=irix5-2
2717 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2718 machine
=sparc opsys
=gnu-linux
2721 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2722 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2723 | rs6000-
*-solaris2*)
2724 case "${canonical}" in
2725 i
[3456]86-*-* ) machine
=intel386
;;
2726 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2727 powerpcle
* ) machine
=powerpcle
;;
2728 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2729 sparc
* ) machine
=sparc
;;
2732 case "${canonical}" in
2733 *-sunos5.3
* |
*-solaris2.3
* )
2735 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2737 *-sunos5.4
* |
*-solaris2.4
* )
2739 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2742 *-sunos5.5
* |
*-solaris2.5
* )
2744 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2747 *-sunos5.6
* |
*-solaris2.6
* )
2749 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2752 *-sunos5* |
*-solaris* )
2754 emacs_check_sunpro_c
=yes
2755 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2759 ## Watch out for a compiler that we know will not work.
2760 case "${canonical}" in
2761 *-solaris* |
*-sunos5* )
2762 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2763 ## /usr/ucb/cc doesn't work;
2764 ## we should find some other compiler that does work.
2772 machine
=sparc opsys
=nextstep
2775 ## Tandem Integrity S2
2777 machine
=tandem-s2 opsys
=usg5-3
2783 case "${canonical}" in
2784 *-bsd4.1
* ) opsys
=bsd4-1
;;
2785 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2786 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2787 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2788 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2789 *-vms* ) opsys
=vms
;;
2796 machine
=ia64 opsys
=gnu-linux
2799 ## Intel 386 machines where we don't care about the manufacturer
2802 case "${canonical}" in
2803 *-cygwin ) opsys
=cygwin
;;
2804 *-darwin* ) opsys
=darwin
2805 CPP
="${CC-cc} -E -no-cpp-precomp"
2807 *-xenix* ) opsys
=xenix
;;
2808 *-linux-gnu* ) opsys
=gnu-linux
;;
2809 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2810 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2811 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2812 *-386bsd* ) opsys
=386bsd
;;
2813 *-nextstep* ) opsys
=nextstep
;;
2814 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2818 ## m68k Linux-based GNU system
2820 machine
=m68k opsys
=gnu-linux
2823 ## Mips Linux-based GNU system
2824 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2825 machine
=mips opsys
=gnu-linux
2829 sparc-fujitsu-sysv4
* )
2830 machine
=sparc opsys
=uxpds
2831 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2835 ## AMD x86-64 Linux-based GNU system
2836 x86_64-
*-linux-gnu* )
2837 machine
=amdx86-64 opsys
=gnu-linux
2840 ## Tensilica Xtensa Linux-based GNU system
2841 xtensa
*-*-linux-gnu* )
2842 machine
=xtensa opsys
=gnu-linux
2850 ### If the code above didn't choose an operating system, just choose
2851 ### an operating system based on the configuration name. You really
2852 ### only want to use this when you have no idea what the right
2853 ### operating system is; if you know what operating systems a machine
2854 ### runs, it's cleaner to make it explicit in the case statement
2856 if test x
"${opsys}" = x
; then
2857 case "${canonical}" in
2858 *-gnu* ) opsys
=gnu
;;
2859 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2860 *-bsd4.2
) opsys
=bsd4-2
;;
2861 *-bsd4.3
) opsys
=bsd4-3
;;
2862 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2863 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2864 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2865 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2866 *-sysv4.2uw
* ) opsys
=unixware
;;
2867 *-sysv5uw* ) opsys
=unixware
;;
2868 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2869 *-sysv4.1
* |
*-sysvr4.1
* )
2870 NON_GNU_CPP
=/usr
/lib
/cpp
2872 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2873 if [ x
$NON_GNU_CPP = x
]; then
2874 if [ -f /usr
/ccs
/lib
/cpp
]; then
2875 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2877 NON_GNU_CPP
=/lib
/cpp
2881 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2890 if test $unported = yes; then
2891 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2892 Check \`etc/MACHINES' for recognized configuration names." >&5
2893 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2894 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2895 { (exit 1); exit 1; }; }
2898 machfile
="m/${machine}.h"
2899 opsysfile
="s/${opsys}.h"
2902 #### Choose a compiler.
2903 test -n "$CC" && cc_specified
=yes
2905 # Save the value of CFLAGS that the user specified.
2906 SPECIFIED_CFLAGS
="$CFLAGS"
2909 "yes" ) CC
="gcc" GCC
=yes ;;
2910 "no" ) : ${CC=cc} ;;
2914 ac_cpp
='$CPP $CPPFLAGS'
2915 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2916 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2917 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2918 if test -n "$ac_tool_prefix"; then
2919 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2920 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2921 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2923 if test "${ac_cv_prog_CC+set}" = set; then
2924 echo $ECHO_N "(cached) $ECHO_C" >&6
2926 if test -n "$CC"; then
2927 ac_cv_prog_CC
="$CC" # Let the user override the test.
2929 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2933 test -z "$as_dir" && as_dir
=.
2934 for ac_exec_ext
in '' $ac_executable_extensions; do
2935 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2936 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2947 if test -n "$CC"; then
2948 { echo "$as_me:$LINENO: result: $CC" >&5
2949 echo "${ECHO_T}$CC" >&6; }
2951 { echo "$as_me:$LINENO: result: no" >&5
2952 echo "${ECHO_T}no" >&6; }
2957 if test -z "$ac_cv_prog_CC"; then
2959 # Extract the first word of "gcc", so it can be a program name with args.
2960 set dummy gcc
; ac_word
=$2
2961 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2962 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2963 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2964 echo $ECHO_N "(cached) $ECHO_C" >&6
2966 if test -n "$ac_ct_CC"; then
2967 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2973 test -z "$as_dir" && as_dir
=.
2974 for ac_exec_ext
in '' $ac_executable_extensions; do
2975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2976 ac_cv_prog_ac_ct_CC
="gcc"
2977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2986 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2987 if test -n "$ac_ct_CC"; then
2988 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2989 echo "${ECHO_T}$ac_ct_CC" >&6; }
2991 { echo "$as_me:$LINENO: result: no" >&5
2992 echo "${ECHO_T}no" >&6; }
2995 if test "x$ac_ct_CC" = x
; then
2998 case $cross_compiling:$ac_tool_warned in
3000 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3001 whose name does not start with the host triplet. If you think this
3002 configuration is useful to you, please write to autoconf@gnu.org." >&5
3003 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3004 whose name does not start with the host triplet. If you think this
3005 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3006 ac_tool_warned
=yes ;;
3014 if test -z "$CC"; then
3015 if test -n "$ac_tool_prefix"; then
3016 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3017 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3018 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3019 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3020 if test "${ac_cv_prog_CC+set}" = set; then
3021 echo $ECHO_N "(cached) $ECHO_C" >&6
3023 if test -n "$CC"; then
3024 ac_cv_prog_CC
="$CC" # Let the user override the test.
3026 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3030 test -z "$as_dir" && as_dir
=.
3031 for ac_exec_ext
in '' $ac_executable_extensions; do
3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3033 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3034 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3044 if test -n "$CC"; then
3045 { echo "$as_me:$LINENO: result: $CC" >&5
3046 echo "${ECHO_T}$CC" >&6; }
3048 { echo "$as_me:$LINENO: result: no" >&5
3049 echo "${ECHO_T}no" >&6; }
3055 if test -z "$CC"; then
3056 # Extract the first word of "cc", so it can be a program name with args.
3057 set dummy cc
; ac_word
=$2
3058 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3060 if test "${ac_cv_prog_CC+set}" = set; then
3061 echo $ECHO_N "(cached) $ECHO_C" >&6
3063 if test -n "$CC"; then
3064 ac_cv_prog_CC
="$CC" # Let the user override the test.
3067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3071 test -z "$as_dir" && as_dir
=.
3072 for ac_exec_ext
in '' $ac_executable_extensions; do
3073 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3074 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3075 ac_prog_rejected
=yes
3079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3086 if test $ac_prog_rejected = yes; then
3087 # We found a bogon in the path, so make sure we never use it.
3088 set dummy
$ac_cv_prog_CC
3090 if test $# != 0; then
3091 # We chose a different compiler from the bogus one.
3092 # However, it has the same basename, so the bogon will be chosen
3093 # first if we set CC to just the basename; use the full file name.
3095 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3101 if test -n "$CC"; then
3102 { echo "$as_me:$LINENO: result: $CC" >&5
3103 echo "${ECHO_T}$CC" >&6; }
3105 { echo "$as_me:$LINENO: result: no" >&5
3106 echo "${ECHO_T}no" >&6; }
3111 if test -z "$CC"; then
3112 if test -n "$ac_tool_prefix"; then
3113 for ac_prog
in cl.exe
3115 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3116 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3117 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3118 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3119 if test "${ac_cv_prog_CC+set}" = set; then
3120 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 if test -n "$CC"; then
3123 ac_cv_prog_CC
="$CC" # Let the user override the test.
3125 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3129 test -z "$as_dir" && as_dir
=.
3130 for ac_exec_ext
in '' $ac_executable_extensions; do
3131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3132 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3133 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3143 if test -n "$CC"; then
3144 { echo "$as_me:$LINENO: result: $CC" >&5
3145 echo "${ECHO_T}$CC" >&6; }
3147 { echo "$as_me:$LINENO: result: no" >&5
3148 echo "${ECHO_T}no" >&6; }
3152 test -n "$CC" && break
3155 if test -z "$CC"; then
3157 for ac_prog
in cl.exe
3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
3160 set dummy
$ac_prog; ac_word
=$2
3161 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3162 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3163 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3164 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 if test -n "$ac_ct_CC"; then
3167 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3169 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3173 test -z "$as_dir" && as_dir
=.
3174 for ac_exec_ext
in '' $ac_executable_extensions; do
3175 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3176 ac_cv_prog_ac_ct_CC
="$ac_prog"
3177 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3186 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3187 if test -n "$ac_ct_CC"; then
3188 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3189 echo "${ECHO_T}$ac_ct_CC" >&6; }
3191 { echo "$as_me:$LINENO: result: no" >&5
3192 echo "${ECHO_T}no" >&6; }
3196 test -n "$ac_ct_CC" && break
3199 if test "x$ac_ct_CC" = x
; then
3202 case $cross_compiling:$ac_tool_warned in
3204 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3205 whose name does not start with the host triplet. If you think this
3206 configuration is useful to you, please write to autoconf@gnu.org." >&5
3207 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3208 whose name does not start with the host triplet. If you think this
3209 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3210 ac_tool_warned
=yes ;;
3219 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3220 See \`config.log' for more details." >&5
3221 echo "$as_me: error: no acceptable C compiler found in \$PATH
3222 See \`config.log' for more details." >&2;}
3223 { (exit 1); exit 1; }; }
3225 # Provide some information about the compiler.
3226 echo "$as_me:$LINENO: checking for C compiler version" >&5
3227 ac_compiler
=`set X $ac_compile; echo $2`
3228 { (ac_try
="$ac_compiler --version >&5"
3230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3231 *) ac_try_echo=$ac_try;;
3233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3234 (eval "$ac_compiler --version >&5") 2>&5
3236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3237 (exit $ac_status); }
3238 { (ac_try="$ac_compiler -v >&5"
3240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3241 *) ac_try_echo
=$ac_try;;
3243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3244 (eval "$ac_compiler -v >&5") 2>&5
3246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3247 (exit $ac_status); }
3248 { (ac_try
="$ac_compiler -V >&5"
3250 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_compiler -V >&5") 2>&5
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }
3259 cat >conftest.$ac_ext <<_ACEOF
3262 cat confdefs.h >>conftest.$ac_ext
3263 cat >>conftest.$ac_ext <<_ACEOF
3264 /* end confdefs.h. */
3274 ac_clean_files_save=$ac_clean_files
3275 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3276 # Try to create an executable without -o first, disregard a.out.
3277 # It will help us diagnose broken compilers, and finding out an intuition
3279 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3280 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3281 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3283 # List of possible output files, starting from the most likely.
3284 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3285 # only as a last resort. b.out is created by i960 compilers.
3286 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3288 # The IRIX 6 linker writes into existing files which may not be
3289 # executable, retaining their permissions. Remove them first so a
3290 # subsequent execution test works.
3292 for ac_file in $ac_files
3295 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3296 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3301 if { (ac_try="$ac_link_default"
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3307 (eval "$ac_link_default") 2>&5
3309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3310 (exit $ac_status); }; then
3311 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3312 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3313 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3314 # so that the user can short-circuit this test for compilers unknown to
3316 for ac_file
in $ac_files ''
3318 test -f "$ac_file" ||
continue
3320 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3323 # We found the default executable, but exeext='' is most
3327 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3329 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3331 # We set ac_cv_exeext here because the later test for it is not
3332 # safe: cross compilers may not add the suffix if given an `-o'
3333 # argument, so we may need to know it at that point already.
3334 # Even if this section looks crufty: it has the advantage of
3341 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3347 { echo "$as_me:$LINENO: result: $ac_file" >&5
3348 echo "${ECHO_T}$ac_file" >&6; }
3349 if test -z "$ac_file"; then
3350 echo "$as_me: failed program was:" >&5
3351 sed 's/^/| /' conftest.
$ac_ext >&5
3353 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3354 See \`config.log' for more details." >&5
3355 echo "$as_me: error: C compiler cannot create executables
3356 See \`config.log' for more details." >&2;}
3357 { (exit 77); exit 77; }; }
3360 ac_exeext
=$ac_cv_exeext
3362 # Check that the compiler produces executables we can run. If not, either
3363 # the compiler is broken, or we cross compile.
3364 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3365 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3366 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3367 # If not cross compiling, check that we can run a simple program.
3368 if test "$cross_compiling" != yes; then
3369 if { ac_try
='./$ac_file'
3370 { (case "(($ac_try" in
3371 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3372 *) ac_try_echo=$ac_try;;
3374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3375 (eval "$ac_try") 2>&5
3377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3378 (exit $ac_status); }; }; then
3381 if test "$cross_compiling" = maybe; then
3384 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3385 If you meant to cross compile, use \`--host'.
3386 See \`config.log' for more details.
" >&5
3387 echo "$as_me: error
: cannot run C compiled programs.
3388 If you meant to cross compile
, use \
`--host'.
3389 See \`config.log
' for more details." >&2;}
3390 { (exit 1); exit 1; }; }
3394 { echo "$as_me:$LINENO: result: yes" >&5
3395 echo "${ECHO_T}yes" >&6; }
3397 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3398 ac_clean_files=$ac_clean_files_save
3399 # Check that the compiler produces executables we can run. If not, either
3400 # the compiler is broken, or we cross compile.
3401 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3402 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3403 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3404 echo "${ECHO_T}$cross_compiling" >&6; }
3406 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3407 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3408 if { (ac_try="$ac_link"
3410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3411 *) ac_try_echo=$ac_try;;
3413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3414 (eval "$ac_link") 2>&5
3416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3417 (exit $ac_status); }; then
3418 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3419 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3420 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3422 for ac_file
in conftest.exe conftest conftest.
*; do
3423 test -f "$ac_file" ||
continue
3425 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3426 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3432 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3433 See \`config.log' for more details." >&5
3434 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3435 See \`config.log' for more details." >&2;}
3436 { (exit 1); exit 1; }; }
3439 rm -f conftest
$ac_cv_exeext
3440 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3441 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3443 rm -f conftest.
$ac_ext
3444 EXEEXT
=$ac_cv_exeext
3446 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3447 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3448 if test "${ac_cv_objext+set}" = set; then
3449 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 cat >conftest.
$ac_ext <<_ACEOF
3454 cat confdefs.h
>>conftest.
$ac_ext
3455 cat >>conftest.
$ac_ext <<_ACEOF
3456 /* end confdefs.h. */
3466 rm -f conftest.o conftest.obj
3467 if { (ac_try
="$ac_compile"
3469 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3470 *) ac_try_echo=$ac_try;;
3472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3473 (eval "$ac_compile") 2>&5
3475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3476 (exit $ac_status); }; then
3477 for ac_file in conftest.o conftest.obj conftest.*; do
3478 test -f "$ac_file" || continue;
3480 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3481 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3486 echo "$as_me: failed program was:" >&5
3487 sed 's/^/| /' conftest.$ac_ext >&5
3489 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3490 See \`config.log
' for more details." >&5
3491 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3492 See \`config.log' for more details.
" >&2;}
3493 { (exit 1); exit 1; }; }
3496 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3498 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3499 echo "${ECHO_T}$ac_cv_objext" >&6; }
3500 OBJEXT=$ac_cv_objext
3502 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3503 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3504 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3505 echo $ECHO_N "(cached
) $ECHO_C" >&6
3507 cat >conftest.$ac_ext <<_ACEOF
3510 cat confdefs.h >>conftest.$ac_ext
3511 cat >>conftest.$ac_ext <<_ACEOF
3512 /* end confdefs.h. */
3525 rm -f conftest.$ac_objext
3526 if { (ac_try="$ac_compile"
3528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_compile") 2>conftest.er1
3534 grep -v '^ *+' conftest.er1 >conftest.err
3536 cat conftest.err >&5
3537 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3538 (exit $ac_status); } && {
3539 test -z "$ac_c_werror_flag" ||
3540 test ! -s conftest.err
3541 } && test -s conftest.$ac_objext; then
3544 echo "$as_me: failed program was
:" >&5
3545 sed 's/^/| /' conftest.$ac_ext >&5
3550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3551 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3554 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3555 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3556 GCC=`test $ac_compiler_gnu = yes && echo yes`
3557 ac_test_CFLAGS=${CFLAGS+set}
3558 ac_save_CFLAGS=$CFLAGS
3559 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3560 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3561 if test "${ac_cv_prog_cc_g+set}" = set; then
3562 echo $ECHO_N "(cached
) $ECHO_C" >&6
3564 ac_save_c_werror_flag=$ac_c_werror_flag
3565 ac_c_werror_flag=yes
3568 cat >conftest.$ac_ext <<_ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3583 rm -f conftest.$ac_objext
3584 if { (ac_try="$ac_compile"
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3590 (eval "$ac_compile") 2>conftest.er1
3592 grep -v '^ *+' conftest.er1 >conftest.err
3594 cat conftest.err >&5
3595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3596 (exit $ac_status); } && {
3597 test -z "$ac_c_werror_flag" ||
3598 test ! -s conftest.err
3599 } && test -s conftest.$ac_objext; then
3602 echo "$as_me: failed program was
:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3606 cat >conftest.$ac_ext <<_ACEOF
3609 cat confdefs.h >>conftest.$ac_ext
3610 cat >>conftest.$ac_ext <<_ACEOF
3611 /* end confdefs.h. */
3621 rm -f conftest.$ac_objext
3622 if { (ac_try="$ac_compile"
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_compile") 2>conftest.er1
3630 grep -v '^ *+' conftest.er1 >conftest.err
3632 cat conftest.err >&5
3633 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3634 (exit $ac_status); } && {
3635 test -z "$ac_c_werror_flag" ||
3636 test ! -s conftest.err
3637 } && test -s conftest.$ac_objext; then
3640 echo "$as_me: failed program was
:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3643 ac_c_werror_flag=$ac_save_c_werror_flag
3645 cat >conftest.$ac_ext <<_ACEOF
3648 cat confdefs.h >>conftest.$ac_ext
3649 cat >>conftest.$ac_ext <<_ACEOF
3650 /* end confdefs.h. */
3660 rm -f conftest.$ac_objext
3661 if { (ac_try="$ac_compile"
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_compile") 2>conftest.er1
3669 grep -v '^ *+' conftest.er1 >conftest.err
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3673 (exit $ac_status); } && {
3674 test -z "$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3676 } && test -s conftest.$ac_objext; then
3679 echo "$as_me: failed program was
:" >&5
3680 sed 's/^/| /' conftest.$ac_ext >&5
3685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 ac_c_werror_flag=$ac_save_c_werror_flag
3694 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3695 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3696 if test "$ac_test_CFLAGS" = set; then
3697 CFLAGS=$ac_save_CFLAGS
3698 elif test $ac_cv_prog_cc_g = yes; then
3699 if test "$GCC" = yes; then
3705 if test "$GCC" = yes; then
3711 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3712 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3713 if test "${ac_cv_prog_cc_c89+set}" = set; then
3714 echo $ECHO_N "(cached
) $ECHO_C" >&6
3716 ac_cv_prog_cc_c89=no
3718 cat >conftest.$ac_ext <<_ACEOF
3721 cat confdefs.h >>conftest.$ac_ext
3722 cat >>conftest.$ac_ext <<_ACEOF
3723 /* end confdefs.h. */
3726 #include <sys/types.h>
3727 #include <sys/stat.h>
3728 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3729 struct buf { int x; };
3730 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3731 static char *e (p, i)
3737 static char *f (char * (*g) (char **, int), char **p, ...)
3742 s = g (p, va_arg (v,int));
3747 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3748 function prototypes and stuff, but not '\xHH' hex character constants.
3749 These don't provoke an error unfortunately, instead are silently treated
3750 as 'x'. The following induces an error, until -std is added to get
3751 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3752 array size at least. It's necessary to write '\x00'==0 to get something
3753 that's true only with -std. */
3754 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3756 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3757 inside strings and character constants. */
3759 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3761 int test (int i, double x);
3762 struct s1 {int (*f) (int a);};
3763 struct s2 {int (*f) (double a);};
3764 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3770 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3775 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3776 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3778 CC="$ac_save_CC $ac_arg"
3779 rm -f conftest.$ac_objext
3780 if { (ac_try="$ac_compile"
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3785 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3786 (eval "$ac_compile") 2>conftest.er1
3788 grep -v '^ *+' conftest.er1 >conftest.err
3790 cat conftest.err >&5
3791 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3792 (exit $ac_status); } && {
3793 test -z "$ac_c_werror_flag" ||
3794 test ! -s conftest.err
3795 } && test -s conftest.$ac_objext; then
3796 ac_cv_prog_cc_c89=$ac_arg
3798 echo "$as_me: failed program was
:" >&5
3799 sed 's/^/| /' conftest.$ac_ext >&5
3804 rm -f core conftest.err conftest.$ac_objext
3805 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3807 rm -f conftest.$ac_ext
3812 case "x
$ac_cv_prog_cc_c89" in
3814 { echo "$as_me:$LINENO: result
: none needed
" >&5
3815 echo "${ECHO_T}none needed
" >&6; } ;;
3817 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3818 echo "${ECHO_T}unsupported
" >&6; } ;;
3820 CC="$CC $ac_cv_prog_cc_c89"
3821 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3822 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3827 ac_cpp='$CPP $CPPFLAGS'
3828 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3829 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3830 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3833 # On Suns, sometimes $CPP names a directory.
3834 if test -n "$CPP" && test -d "$CPP"; then
3838 ## If not using gcc, and on Solaris, and no CPP specified, see if
3839 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3840 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3841 test x"$CPP" = x; then
3842 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3843 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3845 if test "${emacs_cv_sunpro_c+set}" = set; then
3846 echo $ECHO_N "(cached
) $ECHO_C" >&6
3848 cat >conftest.$ac_ext <<_ACEOF
3851 cat confdefs.h >>conftest.$ac_ext
3852 cat >>conftest.$ac_ext <<_ACEOF
3853 /* end confdefs.h. */
3866 rm -f conftest.$ac_objext conftest$ac_exeext
3867 if { (ac_try="$ac_link"
3869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3870 *) ac_try_echo=$ac_try;;
3872 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3873 (eval "$ac_link") 2>conftest.er1
3875 grep -v '^ *+' conftest.er1 >conftest.err
3877 cat conftest.err >&5
3878 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3879 (exit $ac_status); } && {
3880 test -z "$ac_c_werror_flag" ||
3881 test ! -s conftest.err
3882 } && test -s conftest$ac_exeext &&
3883 $as_test_x conftest$ac_exeext; then
3884 emacs_cv_sunpro_c=yes
3886 echo "$as_me: failed program was
:" >&5
3887 sed 's/^/| /' conftest.$ac_ext >&5
3889 emacs_cv_sunpro_c=no
3892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3893 conftest$ac_exeext conftest.$ac_ext
3896 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3897 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3899 if test x"$emacs_cv_sunpro_c" = xyes; then
3900 NON_GNU_CPP="$CC -E -Xs"
3904 #### Some systems specify a CPP to use unless we are using GCC.
3905 #### Now that we know whether we are using GCC, we can decide whether
3906 #### to use that one.
3907 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3912 #### Some systems specify a CC to use unless we are using GCC.
3913 #### Now that we know whether we are using GCC, we can decide whether
3914 #### to use that one.
3915 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3916 test x$cc_specified != xyes
3921 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3923 CC="$CC $GCC_TEST_OPTIONS"
3926 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3928 CC="$CC $NON_GCC_TEST_OPTIONS"
3932 ac_cpp='$CPP $CPPFLAGS'
3933 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3934 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3935 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3936 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3937 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3938 # On Suns, sometimes $CPP names a directory.
3939 if test -n "$CPP" && test -d "$CPP"; then
3942 if test -z "$CPP"; then
3943 if test "${ac_cv_prog_CPP+set}" = set; then
3944 echo $ECHO_N "(cached
) $ECHO_C" >&6
3946 # Double quotes because CPP needs to be expanded
3947 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3950 for ac_c_preproc_warn_flag in '' yes
3952 # Use a header file that comes with gcc, so configuring glibc
3953 # with a fresh cross-compiler works.
3954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3955 # <limits.h> exists even on freestanding compilers.
3956 # On the NeXT, cc -E runs the code through the compiler's parser,
3957 # not just through cpp. "Syntax error
" is here to catch this case.
3958 cat >conftest.$ac_ext <<_ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3965 # include <limits.h>
3967 # include <assert.h>
3971 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3979 grep -v '^ *+' conftest.er1 >conftest.err
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3983 (exit $ac_status); } >/dev/null && {
3984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3985 test ! -s conftest.err
3989 echo "$as_me: failed program was
:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 # Broken: fails on valid input.
3996 rm -f conftest.err conftest.$ac_ext
3998 # OK, works on sane cases. Now check whether nonexistent headers
3999 # can be detected and how.
4000 cat >conftest.$ac_ext <<_ACEOF
4003 cat confdefs.h >>conftest.$ac_ext
4004 cat >>conftest.$ac_ext <<_ACEOF
4005 /* end confdefs.h. */
4006 #include <ac_nonexistent.h>
4008 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4013 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4014 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4016 grep -v '^ *+' conftest.er1 >conftest.err
4018 cat conftest.err >&5
4019 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4020 (exit $ac_status); } >/dev/null && {
4021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4022 test ! -s conftest.err
4024 # Broken: success on invalid input.
4027 echo "$as_me: failed program was
:" >&5
4028 sed 's/^/| /' conftest.$ac_ext >&5
4030 # Passes both tests.
4035 rm -f conftest.err conftest.$ac_ext
4038 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4039 rm -f conftest.err conftest.$ac_ext
4040 if $ac_preproc_ok; then
4052 { echo "$as_me:$LINENO: result
: $CPP" >&5
4053 echo "${ECHO_T}$CPP" >&6; }
4055 for ac_c_preproc_warn_flag in '' yes
4057 # Use a header file that comes with gcc, so configuring glibc
4058 # with a fresh cross-compiler works.
4059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4060 # <limits.h> exists even on freestanding compilers.
4061 # On the NeXT, cc -E runs the code through the compiler's parser,
4062 # not just through cpp. "Syntax error
" is here to catch this case.
4063 cat >conftest.$ac_ext <<_ACEOF
4066 cat confdefs.h >>conftest.$ac_ext
4067 cat >>conftest.$ac_ext <<_ACEOF
4068 /* end confdefs.h. */
4070 # include <limits.h>
4072 # include <assert.h>
4076 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4081 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4084 grep -v '^ *+' conftest.er1 >conftest.err
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4088 (exit $ac_status); } >/dev/null && {
4089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4090 test ! -s conftest.err
4094 echo "$as_me: failed program was
:" >&5
4095 sed 's/^/| /' conftest.$ac_ext >&5
4097 # Broken: fails on valid input.
4101 rm -f conftest.err conftest.$ac_ext
4103 # OK, works on sane cases. Now check whether nonexistent headers
4104 # can be detected and how.
4105 cat >conftest.$ac_ext <<_ACEOF
4108 cat confdefs.h >>conftest.$ac_ext
4109 cat >>conftest.$ac_ext <<_ACEOF
4110 /* end confdefs.h. */
4111 #include <ac_nonexistent.h>
4113 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4118 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4121 grep -v '^ *+' conftest.er1 >conftest.err
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4125 (exit $ac_status); } >/dev/null && {
4126 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4127 test ! -s conftest.err
4129 # Broken: success on invalid input.
4132 echo "$as_me: failed program was
:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4135 # Passes both tests.
4140 rm -f conftest.err conftest.$ac_ext
4143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4144 rm -f conftest.err conftest.$ac_ext
4145 if $ac_preproc_ok; then
4148 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4149 See \
`config.log' for more details." >&5
4150 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4151 See \`config.log
' for more details." >&2;}
4152 { (exit 1); exit 1; }; }
4156 ac_cpp='$CPP $CPPFLAGS'
4157 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4158 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4159 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4163 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4164 if test "${ac_cv_path_GREP+set}" = set; then
4165 echo $ECHO_N "(cached) $ECHO_C" >&6
4167 # Extract the first word of "grep ggrep" to use in msg output
4168 if test -z "$GREP"; then
4169 set dummy grep ggrep; ac_prog_name=$2
4170 if test "${ac_cv_path_GREP+set}" = set; then
4171 echo $ECHO_N "(cached) $ECHO_C" >&6
4173 ac_path_GREP_found=false
4174 # Loop through the user's path and
test for each of PROGNAME-LIST
4175 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4176 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4179 test -z "$as_dir" && as_dir
=.
4180 for ac_prog
in grep ggrep
; do
4181 for ac_exec_ext
in '' $ac_executable_extensions; do
4182 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4183 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4184 # Check for GNU ac_path_GREP and select it if it is found.
4185 # Check for GNU $ac_path_GREP
4186 case `"$ac_path_GREP" --version 2>&1` in
4188 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4191 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4194 cat "conftest.in" "conftest.in" >"conftest.tmp"
4195 mv "conftest.tmp" "conftest.in"
4196 cp "conftest.in" "conftest.nl"
4197 echo 'GREP' >> "conftest.nl"
4198 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4199 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4200 ac_count
=`expr $ac_count + 1`
4201 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4202 # Best one so far, save it but keep looking for a better one
4203 ac_cv_path_GREP
="$ac_path_GREP"
4204 ac_path_GREP_max
=$ac_count
4206 # 10*(2^10) chars as input seems more than enough
4207 test $ac_count -gt 10 && break
4209 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4213 $ac_path_GREP_found && break 3
4223 GREP
="$ac_cv_path_GREP"
4224 if test -z "$GREP"; then
4225 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4226 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4227 { (exit 1); exit 1; }; }
4231 ac_cv_path_GREP
=$GREP
4236 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4237 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4238 GREP
="$ac_cv_path_GREP"
4241 { echo "$as_me:$LINENO: checking for egrep" >&5
4242 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4243 if test "${ac_cv_path_EGREP+set}" = set; then
4244 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4247 then ac_cv_path_EGREP
="$GREP -E"
4249 # Extract the first word of "egrep" to use in msg output
4250 if test -z "$EGREP"; then
4251 set dummy
egrep; ac_prog_name
=$2
4252 if test "${ac_cv_path_EGREP+set}" = set; then
4253 echo $ECHO_N "(cached) $ECHO_C" >&6
4255 ac_path_EGREP_found
=false
4256 # Loop through the user's path and test for each of PROGNAME-LIST
4257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4258 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4261 test -z "$as_dir" && as_dir
=.
4262 for ac_prog
in egrep; do
4263 for ac_exec_ext
in '' $ac_executable_extensions; do
4264 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4265 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4266 # Check for GNU ac_path_EGREP and select it if it is found.
4267 # Check for GNU $ac_path_EGREP
4268 case `"$ac_path_EGREP" --version 2>&1` in
4270 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4273 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4276 cat "conftest.in" "conftest.in" >"conftest.tmp"
4277 mv "conftest.tmp" "conftest.in"
4278 cp "conftest.in" "conftest.nl"
4279 echo 'EGREP' >> "conftest.nl"
4280 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4281 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4282 ac_count
=`expr $ac_count + 1`
4283 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4284 # Best one so far, save it but keep looking for a better one
4285 ac_cv_path_EGREP
="$ac_path_EGREP"
4286 ac_path_EGREP_max
=$ac_count
4288 # 10*(2^10) chars as input seems more than enough
4289 test $ac_count -gt 10 && break
4291 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4295 $ac_path_EGREP_found && break 3
4305 EGREP
="$ac_cv_path_EGREP"
4306 if test -z "$EGREP"; then
4307 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4308 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4309 { (exit 1); exit 1; }; }
4313 ac_cv_path_EGREP
=$EGREP
4319 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4320 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4321 EGREP
="$ac_cv_path_EGREP"
4325 { echo "$as_me:$LINENO: checking for AIX" >&5
4326 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4327 cat >conftest.
$ac_ext <<_ACEOF
4330 cat confdefs.h
>>conftest.
$ac_ext
4331 cat >>conftest.
$ac_ext <<_ACEOF
4332 /* end confdefs.h. */
4338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4339 $EGREP "yes" >/dev
/null
2>&1; then
4340 { echo "$as_me:$LINENO: result: yes" >&5
4341 echo "${ECHO_T}yes" >&6; }
4342 cat >>confdefs.h
<<\_ACEOF
4343 #define _ALL_SOURCE 1
4347 { echo "$as_me:$LINENO: result: no" >&5
4348 echo "${ECHO_T}no" >&6; }
4354 cat >>confdefs.h
<<\_ACEOF
4355 #define _GNU_SOURCE 1
4360 ### Use -Wno-pointer-sign if the compiler supports it
4361 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4362 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4363 SAVE_CFLAGS
="$CFLAGS"
4364 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4365 cat >conftest.
$ac_ext <<_ACEOF
4368 cat confdefs.h
>>conftest.
$ac_ext
4369 cat >>conftest.
$ac_ext <<_ACEOF
4370 /* end confdefs.h. */
4380 rm -f conftest.
$ac_objext
4381 if { (ac_try
="$ac_compile"
4383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387 (eval "$ac_compile") 2>conftest.er1
4389 grep -v '^ *+' conftest.er1 >conftest.err
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } && {
4394 test -z "$ac_c_werror_flag" ||
4395 test ! -s conftest.err
4396 } && test -s conftest.$ac_objext; then
4399 echo "$as_me: failed program was:" >&5
4400 sed 's/^/| /' conftest.$ac_ext >&5
4405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4406 if test $has_option = yes; then
4407 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4409 { echo "$as_me:$LINENO: result: $has_option" >&5
4410 echo "${ECHO_T}$has_option" >&6; }
4411 CFLAGS="$SAVE_CFLAGS"
4415 #### Some other nice autoconf tests.
4417 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4418 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4420 if test "$LN_S" = "ln -s"; then
4421 { echo "$as_me:$LINENO: result: yes" >&5
4422 echo "${ECHO_T}yes" >&6; }
4424 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4425 echo "${ECHO_T}no, using $LN_S" >&6; }
4429 ac_cpp='$CPP $CPPFLAGS'
4430 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4431 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4432 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4433 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4434 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4435 # On Suns, sometimes $CPP names a directory.
4436 if test -n "$CPP" && test -d "$CPP"; then
4439 if test -z "$CPP"; then
4440 if test "${ac_cv_prog_CPP+set}" = set; then
4441 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 # Double quotes because CPP needs to be expanded
4444 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4447 for ac_c_preproc_warn_flag in '' yes
4449 # Use a header file that comes with gcc, so configuring glibc
4450 # with a fresh cross-compiler works.
4451 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4452 # <limits.h> exists even on freestanding compilers.
4453 # On the NeXT, cc -E runs the code through the compiler's parser,
4454 # not just through cpp. "Syntax error" is here to catch this case.
4455 cat >conftest.$ac_ext <<_ACEOF
4458 cat confdefs.h >>conftest.$ac_ext
4459 cat >>conftest.$ac_ext <<_ACEOF
4460 /* end confdefs.h. */
4462 # include <limits.h>
4464 # include <assert.h>
4468 if { (ac_try="$ac_cpp conftest.$ac_ext"
4470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4471 *) ac_try_echo
=$ac_try;;
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4476 grep -v '^ *+' conftest.er1
>conftest.err
4478 cat conftest.err
>&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } >/dev
/null
&& {
4481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4482 test ! -s conftest.err
4486 echo "$as_me: failed program was:" >&5
4487 sed 's/^/| /' conftest.
$ac_ext >&5
4489 # Broken: fails on valid input.
4493 rm -f conftest.err conftest.
$ac_ext
4495 # OK, works on sane cases. Now check whether nonexistent headers
4496 # can be detected and how.
4497 cat >conftest.
$ac_ext <<_ACEOF
4500 cat confdefs.h
>>conftest.
$ac_ext
4501 cat >>conftest.
$ac_ext <<_ACEOF
4502 /* end confdefs.h. */
4503 #include <ac_nonexistent.h>
4505 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4508 *) ac_try_echo=$ac_try;;
4510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4511 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4513 grep -v '^ *+' conftest.er1 >conftest.err
4515 cat conftest.err >&5
4516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4517 (exit $ac_status); } >/dev/null && {
4518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4519 test ! -s conftest.err
4521 # Broken: success on invalid input.
4524 echo "$as_me: failed program was:" >&5
4525 sed 's/^/| /' conftest.$ac_ext >&5
4527 # Passes both tests.
4532 rm -f conftest.err conftest.$ac_ext
4535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4536 rm -f conftest.err conftest.
$ac_ext
4537 if $ac_preproc_ok; then
4549 { echo "$as_me:$LINENO: result: $CPP" >&5
4550 echo "${ECHO_T}$CPP" >&6; }
4552 for ac_c_preproc_warn_flag
in '' yes
4554 # Use a header file that comes with gcc, so configuring glibc
4555 # with a fresh cross-compiler works.
4556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4557 # <limits.h> exists even on freestanding compilers.
4558 # On the NeXT, cc -E runs the code through the compiler's parser,
4559 # not just through cpp. "Syntax error" is here to catch this case.
4560 cat >conftest.
$ac_ext <<_ACEOF
4563 cat confdefs.h
>>conftest.
$ac_ext
4564 cat >>conftest.
$ac_ext <<_ACEOF
4565 /* end confdefs.h. */
4567 # include <limits.h>
4569 # include <assert.h>
4573 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4575 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4576 *) ac_try_echo=$ac_try;;
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4581 grep -v '^ *+' conftest.er1 >conftest.err
4583 cat conftest.err >&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } >/dev/null && {
4586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4587 test ! -s conftest.err
4591 echo "$as_me: failed program was:" >&5
4592 sed 's/^/| /' conftest.$ac_ext >&5
4594 # Broken: fails on valid input.
4598 rm -f conftest.err conftest.$ac_ext
4600 # OK, works on sane cases. Now check whether nonexistent headers
4601 # can be detected and how.
4602 cat >conftest.$ac_ext <<_ACEOF
4605 cat confdefs.h >>conftest.$ac_ext
4606 cat >>conftest.$ac_ext <<_ACEOF
4607 /* end confdefs.h. */
4608 #include <ac_nonexistent.h>
4610 if { (ac_try="$ac_cpp conftest.$ac_ext"
4612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4613 *) ac_try_echo
=$ac_try;;
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4618 grep -v '^ *+' conftest.er1
>conftest.err
4620 cat conftest.err
>&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } >/dev
/null
&& {
4623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4624 test ! -s conftest.err
4626 # Broken: success on invalid input.
4629 echo "$as_me: failed program was:" >&5
4630 sed 's/^/| /' conftest.
$ac_ext >&5
4632 # Passes both tests.
4637 rm -f conftest.err conftest.
$ac_ext
4640 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4641 rm -f conftest.err conftest.
$ac_ext
4642 if $ac_preproc_ok; then
4645 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4646 See \`config.log' for more details." >&5
4647 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4648 See \`config.log' for more details." >&2;}
4649 { (exit 1); exit 1; }; }
4653 ac_cpp
='$CPP $CPPFLAGS'
4654 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4655 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4656 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4658 # Find a good install program. We prefer a C program (faster),
4659 # so one script is as good as another. But avoid the broken or
4660 # incompatible versions:
4661 # SysV /etc/install, /usr/sbin/install
4662 # SunOS /usr/etc/install
4663 # IRIX /sbin/install
4665 # AmigaOS /C/install, which installs bootblocks on floppy discs
4666 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4667 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4668 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4669 # OS/2's system install, which has a completely different semantic
4670 # ./install, which can be erroneously created by make from ./install.sh.
4671 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4672 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4673 if test -z "$INSTALL"; then
4674 if test "${ac_cv_path_install+set}" = set; then
4675 echo $ECHO_N "(cached) $ECHO_C" >&6
4677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4681 test -z "$as_dir" && as_dir
=.
4682 # Account for people who put trailing slashes in PATH elements.
4684 .
/ | .
// |
/cC
/* | \
4685 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4686 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4689 # OSF1 and SCO ODT 3.0 have their own names for install.
4690 # Don't use installbsd from OSF since it installs stuff as root
4692 for ac_prog
in ginstall scoinst
install; do
4693 for ac_exec_ext
in '' $ac_executable_extensions; do
4694 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4695 if test $ac_prog = install &&
4696 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4697 # AIX install. It has an incompatible calling convention.
4699 elif test $ac_prog = install &&
4700 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4701 # program-specific install script used by HP pwplus--don't use.
4704 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4717 if test "${ac_cv_path_install+set}" = set; then
4718 INSTALL
=$ac_cv_path_install
4720 # As a last resort, use the slow shell script. Don't cache a
4721 # value for INSTALL within a source directory, because that will
4722 # break other packages using the cache if that directory is
4723 # removed, or if the value is a relative name.
4724 INSTALL
=$ac_install_sh
4727 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4728 echo "${ECHO_T}$INSTALL" >&6; }
4730 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4731 # It thinks the first close brace ends the variable substitution.
4732 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4734 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4736 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4738 if test "x$RANLIB" = x
; then
4739 if test -n "$ac_tool_prefix"; then
4740 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4741 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4744 if test "${ac_cv_prog_RANLIB+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4747 if test -n "$RANLIB"; then
4748 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4754 test -z "$as_dir" && as_dir
=.
4755 for ac_exec_ext
in '' $ac_executable_extensions; do
4756 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4757 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4758 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4767 RANLIB
=$ac_cv_prog_RANLIB
4768 if test -n "$RANLIB"; then
4769 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4770 echo "${ECHO_T}$RANLIB" >&6; }
4772 { echo "$as_me:$LINENO: result: no" >&5
4773 echo "${ECHO_T}no" >&6; }
4778 if test -z "$ac_cv_prog_RANLIB"; then
4779 ac_ct_RANLIB
=$RANLIB
4780 # Extract the first word of "ranlib", so it can be a program name with args.
4781 set dummy ranlib
; ac_word
=$2
4782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4784 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4785 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 if test -n "$ac_ct_RANLIB"; then
4788 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4794 test -z "$as_dir" && as_dir
=.
4795 for ac_exec_ext
in '' $ac_executable_extensions; do
4796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4797 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4807 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4808 if test -n "$ac_ct_RANLIB"; then
4809 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4810 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4812 { echo "$as_me:$LINENO: result: no" >&5
4813 echo "${ECHO_T}no" >&6; }
4816 if test "x$ac_ct_RANLIB" = x
; then
4819 case $cross_compiling:$ac_tool_warned in
4821 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4822 whose name does not start with the host triplet. If you think this
4823 configuration is useful to you, please write to autoconf@gnu.org." >&5
4824 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4825 whose name does not start with the host triplet. If you think this
4826 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4827 ac_tool_warned
=yes ;;
4829 RANLIB
=$ac_ct_RANLIB
4832 RANLIB
="$ac_cv_prog_RANLIB"
4836 # Extract the first word of "install-info", so it can be a program name with args.
4837 set dummy install-info
; ac_word
=$2
4838 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4839 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4840 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4841 echo $ECHO_N "(cached) $ECHO_C" >&6
4843 case $INSTALL_INFO in
4845 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4848 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4852 test -z "$as_dir" && as_dir
=.
4853 for ac_exec_ext
in '' $ac_executable_extensions; do
4854 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4855 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4856 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4866 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4867 if test -n "$INSTALL_INFO"; then
4868 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4869 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4871 { echo "$as_me:$LINENO: result: no" >&5
4872 echo "${ECHO_T}no" >&6; }
4876 # Extract the first word of "install-info", so it can be a program name with args.
4877 set dummy install-info
; ac_word
=$2
4878 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4879 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4880 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4881 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 case $INSTALL_INFO in
4885 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4888 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4889 for as_dir
in /usr
/sbin
4892 test -z "$as_dir" && as_dir
=.
4893 for ac_exec_ext
in '' $ac_executable_extensions; do
4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4895 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4896 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4907 if test -n "$INSTALL_INFO"; then
4908 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4909 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4911 { echo "$as_me:$LINENO: result: no" >&5
4912 echo "${ECHO_T}no" >&6; }
4916 # Extract the first word of "install-info", so it can be a program name with args.
4917 set dummy install-info
; ac_word
=$2
4918 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4920 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4921 echo $ECHO_N "(cached) $ECHO_C" >&6
4923 case $INSTALL_INFO in
4925 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4928 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4932 test -z "$as_dir" && as_dir
=.
4933 for ac_exec_ext
in '' $ac_executable_extensions; do
4934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4935 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4936 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4943 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4947 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4948 if test -n "$INSTALL_INFO"; then
4949 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4950 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4952 { echo "$as_me:$LINENO: result: no" >&5
4953 echo "${ECHO_T}no" >&6; }
4957 # Extract the first word of "gzip", so it can be a program name with args.
4958 set dummy
gzip; ac_word
=$2
4959 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4961 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4966 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4969 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4973 test -z "$as_dir" && as_dir
=.
4974 for ac_exec_ext
in '' $ac_executable_extensions; do
4975 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4976 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4987 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4988 if test -n "$GZIP_PROG"; then
4989 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4990 echo "${ECHO_T}$GZIP_PROG" >&6; }
4992 { echo "$as_me:$LINENO: result: no" >&5
4993 echo "${ECHO_T}no" >&6; }
4999 ## Need makeinfo >= 4.6 (?) to build the manuals.
5000 # Extract the first word of "makeinfo", so it can be a program name with args.
5001 set dummy makeinfo
; ac_word
=$2
5002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5004 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir
=.
5017 for ac_exec_ext
in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5031 MAKEINFO
=$ac_cv_path_MAKEINFO
5032 if test -n "$MAKEINFO"; then
5033 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5034 echo "${ECHO_T}$MAKEINFO" >&6; }
5036 { echo "$as_me:$LINENO: result: no" >&5
5037 echo "${ECHO_T}no" >&6; }
5041 if test "$MAKEINFO" != "no" && \
5042 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
5046 if test "$MAKEINFO" = "no"; then
5047 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5048 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5049 { (exit 1); exit 1; }; }
5054 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5056 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5059 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5061 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5065 late_LDFLAGS
=$LDFLAGS
5066 if test "$GCC" = yes; then
5067 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5069 LDFLAGS
="$LDFLAGS -znocombreloc"
5072 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5073 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5074 cat >conftest.
$ac_ext <<_ACEOF
5077 rm -f conftest.
$ac_objext conftest
$ac_exeext
5078 if { (ac_try
="$ac_link"
5080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5081 *) ac_try_echo=$ac_try;;
5083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5084 (eval "$ac_link") 2>conftest.er1
5086 grep -v '^ *+' conftest.er1 >conftest.err
5088 cat conftest.err >&5
5089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5090 (exit $ac_status); } && {
5091 test -z "$ac_c_werror_flag" ||
5092 test ! -s conftest.err
5093 } && test -s conftest$ac_exeext &&
5094 $as_test_x conftest$ac_exeext; then
5095 { echo "$as_me:$LINENO: result: yes" >&5
5096 echo "${ECHO_T}yes" >&6; }
5098 echo "$as_me: failed program was:" >&5
5099 sed 's/^/| /' conftest.$ac_ext >&5
5101 LDFLAGS=$late_LDFLAGS
5102 { echo "$as_me:$LINENO: result: no" >&5
5103 echo "${ECHO_T}no" >&6; }
5106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5107 conftest$ac_exeext conftest.$ac_ext
5109 #### Extract some information from the operating system and machine files.
5111 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5112 - which libraries the lib-src programs will want, and
5113 - whether the GNU malloc routines are usable..." >&5
5114 echo "$as_me: checking the machine- and system-dependent files to find out
5115 - which libraries the lib-src programs will want, and
5116 - whether the GNU malloc routines are usable..." >&6;}
5118 ### First figure out CFLAGS (which we use for running the compiler here)
5119 ### and REAL_CFLAGS (which we use for real compilation).
5120 ### The two are the same except on a few systems, where they are made
5121 ### different to work around various lossages. For example,
5122 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5123 ### as implying static linking.
5125 ### If the CFLAGS env var is specified, we use that value
5126 ### instead of the default.
5128 ### It's not important that this name contain the PID; you can't run
5129 ### two configures in the same directory and have anything work
5131 tempcname="conftest.c"
5134 #include "'${srcdir}'/src/'${opsysfile}'"
5135 #include "'${srcdir}'/src/'${machfile}'"
5136 #ifndef LIBS_MACHINE
5137 #define LIBS_MACHINE
5142 #ifndef C_SWITCH_SYSTEM
5143 #define C_SWITCH_SYSTEM
5145 #ifndef C_SWITCH_MACHINE
5146 #define C_SWITCH_MACHINE
5148 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5149 configure___ c_switch_system=C_SWITCH_SYSTEM
5150 configure___ c_switch_machine=C_SWITCH_MACHINE
5153 #define LIB_X11_LIB -lX11
5156 #ifndef LIBX11_MACHINE
5157 #define LIBX11_MACHINE
5160 #ifndef LIBX11_SYSTEM
5161 #define LIBX11_SYSTEM
5163 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5166 configure___ unexec=UNEXEC
5168 configure___ unexec=unexec.o
5171 #ifdef SYSTEM_MALLOC
5172 configure___ system_malloc=yes
5174 configure___ system_malloc=no
5177 #ifdef USE_MMAP_FOR_BUFFERS
5178 configure___ use_mmap_for_buffers=yes
5180 configure___ use_mmap_for_buffers=no
5183 #ifndef C_DEBUG_SWITCH
5184 #define C_DEBUG_SWITCH -g
5187 #ifndef C_OPTIMIZE_SWITCH
5189 #define C_OPTIMIZE_SWITCH -O2
5191 #define C_OPTIMIZE_SWITCH -O
5195 #ifndef C_WARNINGS_SWITCH
5196 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5199 #ifndef LD_SWITCH_MACHINE
5200 #define LD_SWITCH_MACHINE
5203 #ifndef LD_SWITCH_SYSTEM
5204 #define LD_SWITCH_SYSTEM
5207 #ifndef LD_SWITCH_X_SITE_AUX
5208 #define LD_SWITCH_X_SITE_AUX
5211 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5212 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5214 #ifdef THIS_IS_CONFIGURE
5216 /* Get the CFLAGS for tests in configure. */
5218 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5220 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5223 #else /* not THIS_IS_CONFIGURE */
5225 /* Get the CFLAGS for real compilation. */
5227 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5229 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5232 #endif /* not THIS_IS_CONFIGURE */
5235 # The value of CPP is a quoted variable reference, so we need to do this
5236 # to get its actual value...
5237 CPP=`eval "echo $CPP"`
5238 eval `${CPP} -Isrc ${tempcname} \
5239 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5240 if test "x$SPECIFIED_CFLAGS" = x; then
5241 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5242 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5244 REAL_CFLAGS="$CFLAGS"
5248 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5250 ### Make sure subsequent tests use flags consistent with the build flags.
5252 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5253 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5255 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5260 # Check whether --enable-largefile was given.
5261 if test "${enable_largefile+set}" = set; then
5262 enableval=$enable_largefile;
5265 if test "$enable_largefile" != no; then
5267 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5268 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5269 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5270 echo $ECHO_N "(cached) $ECHO_C" >&6
5272 ac_cv_sys_largefile_CC=no
5273 if test "$GCC" != yes; then
5276 # IRIX 6.2 and later do not support large files by default,
5277 # so use the C compiler's -n32 option if that helps.
5278 cat >conftest.$ac_ext <<_ACEOF
5281 cat confdefs.h >>conftest.$ac_ext
5282 cat >>conftest.$ac_ext <<_ACEOF
5283 /* end confdefs.h. */
5284 #include <sys/types.h>
5285 /* Check that off_t can represent 2**63 - 1 correctly.
5286 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5287 since some C++ compilers masquerading as C compilers
5288 incorrectly reject 9223372036854775807. */
5289 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5290 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5291 && LARGE_OFF_T % 2147483647 == 1)
5301 rm -f conftest.$ac_objext
5302 if { (ac_try="$ac_compile"
5304 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5305 *) ac_try_echo
=$ac_try;;
5307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5308 (eval "$ac_compile") 2>conftest.er1
5310 grep -v '^ *+' conftest.er1
>conftest.err
5312 cat conftest.err
>&5
5313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5314 (exit $ac_status); } && {
5315 test -z "$ac_c_werror_flag" ||
5316 test ! -s conftest.err
5317 } && test -s conftest.
$ac_objext; then
5320 echo "$as_me: failed program was:" >&5
5321 sed 's/^/| /' conftest.
$ac_ext >&5
5326 rm -f core conftest.err conftest.
$ac_objext
5328 rm -f conftest.
$ac_objext
5329 if { (ac_try
="$ac_compile"
5331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5332 *) ac_try_echo=$ac_try;;
5334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5335 (eval "$ac_compile") 2>conftest.er1
5337 grep -v '^ *+' conftest.er1 >conftest.err
5339 cat conftest.err >&5
5340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5341 (exit $ac_status); } && {
5342 test -z "$ac_c_werror_flag" ||
5343 test ! -s conftest.err
5344 } && test -s conftest.$ac_objext; then
5345 ac_cv_sys_largefile_CC=' -n32'; break
5347 echo "$as_me: failed program was:" >&5
5348 sed 's/^/| /' conftest.$ac_ext >&5
5353 rm -f core conftest.err conftest.$ac_objext
5357 rm -f conftest.$ac_ext
5360 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5361 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5362 if test "$ac_cv_sys_largefile_CC" != no; then
5363 CC=$CC$ac_cv_sys_largefile_CC
5366 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5367 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5368 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5369 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 cat >conftest.$ac_ext <<_ACEOF
5375 cat confdefs.h >>conftest.$ac_ext
5376 cat >>conftest.$ac_ext <<_ACEOF
5377 /* end confdefs.h. */
5378 #include <sys/types.h>
5379 /* Check that off_t can represent 2**63 - 1 correctly.
5380 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5381 since some C++ compilers masquerading as C compilers
5382 incorrectly reject 9223372036854775807. */
5383 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5384 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5385 && LARGE_OFF_T % 2147483647 == 1)
5395 rm -f conftest.$ac_objext
5396 if { (ac_try="$ac_compile"
5398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5399 *) ac_try_echo
=$ac_try;;
5401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5402 (eval "$ac_compile") 2>conftest.er1
5404 grep -v '^ *+' conftest.er1
>conftest.err
5406 cat conftest.err
>&5
5407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5408 (exit $ac_status); } && {
5409 test -z "$ac_c_werror_flag" ||
5410 test ! -s conftest.err
5411 } && test -s conftest.
$ac_objext; then
5412 ac_cv_sys_file_offset_bits
=no
; break
5414 echo "$as_me: failed program was:" >&5
5415 sed 's/^/| /' conftest.
$ac_ext >&5
5420 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5421 cat >conftest.
$ac_ext <<_ACEOF
5424 cat confdefs.h
>>conftest.
$ac_ext
5425 cat >>conftest.
$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 #define _FILE_OFFSET_BITS 64
5428 #include <sys/types.h>
5429 /* Check that off_t can represent 2**63 - 1 correctly.
5430 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5431 since some C++ compilers masquerading as C compilers
5432 incorrectly reject 9223372036854775807. */
5433 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5434 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5435 && LARGE_OFF_T % 2147483647 == 1)
5445 rm -f conftest.
$ac_objext
5446 if { (ac_try
="$ac_compile"
5448 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5449 *) ac_try_echo=$ac_try;;
5451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5452 (eval "$ac_compile") 2>conftest.er1
5454 grep -v '^ *+' conftest.er1 >conftest.err
5456 cat conftest.err >&5
5457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5458 (exit $ac_status); } && {
5459 test -z "$ac_c_werror_flag" ||
5460 test ! -s conftest.err
5461 } && test -s conftest.$ac_objext; then
5462 ac_cv_sys_file_offset_bits=64; break
5464 echo "$as_me: failed program was:" >&5
5465 sed 's/^/| /' conftest.$ac_ext >&5
5470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5471 ac_cv_sys_file_offset_bits=unknown
5475 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5476 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5477 case $ac_cv_sys_file_offset_bits in #(
5480 cat >>confdefs.h <<_ACEOF
5481 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5486 if test $ac_cv_sys_file_offset_bits = unknown; then
5487 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5488 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5489 if test "${ac_cv_sys_large_files+set}" = set; then
5490 echo $ECHO_N "(cached) $ECHO_C" >&6
5493 cat >conftest.$ac_ext <<_ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 #include <sys/types.h>
5500 /* Check that off_t can represent 2**63 - 1 correctly.
5501 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5502 since some C++ compilers masquerading as C compilers
5503 incorrectly reject 9223372036854775807. */
5504 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5505 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5506 && LARGE_OFF_T % 2147483647 == 1)
5516 rm -f conftest.$ac_objext
5517 if { (ac_try="$ac_compile"
5519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5520 *) ac_try_echo
=$ac_try;;
5522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5523 (eval "$ac_compile") 2>conftest.er1
5525 grep -v '^ *+' conftest.er1
>conftest.err
5527 cat conftest.err
>&5
5528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5529 (exit $ac_status); } && {
5530 test -z "$ac_c_werror_flag" ||
5531 test ! -s conftest.err
5532 } && test -s conftest.
$ac_objext; then
5533 ac_cv_sys_large_files
=no
; break
5535 echo "$as_me: failed program was:" >&5
5536 sed 's/^/| /' conftest.
$ac_ext >&5
5541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5542 cat >conftest.
$ac_ext <<_ACEOF
5545 cat confdefs.h
>>conftest.
$ac_ext
5546 cat >>conftest.
$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 #define _LARGE_FILES 1
5549 #include <sys/types.h>
5550 /* Check that off_t can represent 2**63 - 1 correctly.
5551 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5552 since some C++ compilers masquerading as C compilers
5553 incorrectly reject 9223372036854775807. */
5554 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5555 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5556 && LARGE_OFF_T % 2147483647 == 1)
5566 rm -f conftest.
$ac_objext
5567 if { (ac_try
="$ac_compile"
5569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5570 *) ac_try_echo=$ac_try;;
5572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5573 (eval "$ac_compile") 2>conftest.er1
5575 grep -v '^ *+' conftest.er1 >conftest.err
5577 cat conftest.err >&5
5578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5579 (exit $ac_status); } && {
5580 test -z "$ac_c_werror_flag" ||
5581 test ! -s conftest.err
5582 } && test -s conftest.$ac_objext; then
5583 ac_cv_sys_large_files=1; break
5585 echo "$as_me: failed program was:" >&5
5586 sed 's/^/| /' conftest.$ac_ext >&5
5591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5592 ac_cv_sys_large_files=unknown
5596 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5597 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5598 case $ac_cv_sys_large_files in #(
5601 cat >>confdefs.h <<_ACEOF
5602 #define _LARGE_FILES $ac_cv_sys_large_files
5612 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5613 ### be located in either /usr/lib64 or /usr/lib.
5614 case "${canonical}" in
5615 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5616 if test -d /usr/lib64; then
5618 cat >>confdefs.h <<\_ACEOF
5619 #define HAVE_LIB64_DIR 1
5628 if test "${with_sound}" != "no"; then
5629 # Sound support for GNU/Linux and the free BSDs.
5630 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5631 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5632 if test "${ac_cv_header_stdc+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5635 cat >conftest.$ac_ext <<_ACEOF
5638 cat confdefs.h >>conftest.$ac_ext
5639 cat >>conftest.$ac_ext <<_ACEOF
5640 /* end confdefs.h. */
5654 rm -f conftest.$ac_objext
5655 if { (ac_try="$ac_compile"
5657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5658 *) ac_try_echo
=$ac_try;;
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_compile") 2>conftest.er1
5663 grep -v '^ *+' conftest.er1
>conftest.err
5665 cat conftest.err
>&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && {
5668 test -z "$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest.
$ac_objext; then
5671 ac_cv_header_stdc
=yes
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.
$ac_ext >&5
5676 ac_cv_header_stdc
=no
5679 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5681 if test $ac_cv_header_stdc = yes; then
5682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5683 cat >conftest.
$ac_ext <<_ACEOF
5686 cat confdefs.h
>>conftest.
$ac_ext
5687 cat >>conftest.
$ac_ext <<_ACEOF
5688 /* end confdefs.h. */
5692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5693 $EGREP "memchr" >/dev
/null
2>&1; then
5696 ac_cv_header_stdc
=no
5702 if test $ac_cv_header_stdc = yes; then
5703 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5704 cat >conftest.
$ac_ext <<_ACEOF
5707 cat confdefs.h
>>conftest.
$ac_ext
5708 cat >>conftest.
$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5714 $EGREP "free" >/dev
/null
2>&1; then
5717 ac_cv_header_stdc
=no
5723 if test $ac_cv_header_stdc = yes; then
5724 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5725 if test "$cross_compiling" = yes; then
5728 cat >conftest.
$ac_ext <<_ACEOF
5731 cat confdefs.h
>>conftest.
$ac_ext
5732 cat >>conftest.
$ac_ext <<_ACEOF
5733 /* end confdefs.h. */
5736 #if ((' ' & 0x0FF) == 0x020)
5737 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5738 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5740 # define ISLOWER(c) \
5741 (('a' <= (c) && (c) <= 'i') \
5742 || ('j' <= (c) && (c) <= 'r') \
5743 || ('s' <= (c) && (c) <= 'z'))
5744 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5747 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5752 for (i = 0; i < 256; i++)
5753 if (XOR (islower (i), ISLOWER (i))
5754 || toupper (i) != TOUPPER (i))
5759 rm -f conftest
$ac_exeext
5760 if { (ac_try
="$ac_link"
5762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5763 *) ac_try_echo=$ac_try;;
5765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5766 (eval "$ac_link") 2>&5
5768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5769 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5770 { (case "(($ac_try" in
5771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5772 *) ac_try_echo
=$ac_try;;
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_try") 2>&5
5777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778 (exit $ac_status); }; }; then
5781 echo "$as_me: program exited with status $ac_status" >&5
5782 echo "$as_me: failed program was:" >&5
5783 sed 's/^/| /' conftest.
$ac_ext >&5
5786 ac_cv_header_stdc
=no
5788 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5794 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5795 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5796 if test $ac_cv_header_stdc = yes; then
5798 cat >>confdefs.h
<<\_ACEOF
5799 #define STDC_HEADERS 1
5804 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5814 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5815 inttypes.h stdint.h unistd.h
5817 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5820 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5821 echo $ECHO_N "(cached) $ECHO_C" >&6
5823 cat >conftest.
$ac_ext <<_ACEOF
5826 cat confdefs.h
>>conftest.
$ac_ext
5827 cat >>conftest.
$ac_ext <<_ACEOF
5828 /* end confdefs.h. */
5829 $ac_includes_default
5831 #include <$ac_header>
5833 rm -f conftest.
$ac_objext
5834 if { (ac_try
="$ac_compile"
5836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5837 *) ac_try_echo=$ac_try;;
5839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5840 (eval "$ac_compile") 2>conftest.er1
5842 grep -v '^ *+' conftest.er1 >conftest.err
5844 cat conftest.err >&5
5845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846 (exit $ac_status); } && {
5847 test -z "$ac_c_werror_flag" ||
5848 test ! -s conftest.err
5849 } && test -s conftest.$ac_objext; then
5850 eval "$as_ac_Header=yes"
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5855 eval "$as_ac_Header=no"
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860 ac_res=`eval echo '${'$as_ac_Header'}'`
5861 { echo "$as_me:$LINENO: result: $ac_res" >&5
5862 echo "${ECHO_T}$ac_res" >&6; }
5863 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5864 cat >>confdefs.h <<_ACEOF
5865 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5876 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5878 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5883 echo $ECHO_N "(cached) $ECHO_C" >&6
5885 ac_res=`eval echo '${'$as_ac_Header'}'`
5886 { echo "$as_me:$LINENO: result: $ac_res" >&5
5887 echo "${ECHO_T}$ac_res" >&6; }
5889 # Is the header compilable?
5890 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5891 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5892 cat >conftest.$ac_ext <<_ACEOF
5895 cat confdefs.h >>conftest.$ac_ext
5896 cat >>conftest.$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 $ac_includes_default
5899 #include <$ac_header>
5901 rm -f conftest.$ac_objext
5902 if { (ac_try="$ac_compile"
5904 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5905 *) ac_try_echo
=$ac_try;;
5907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5908 (eval "$ac_compile") 2>conftest.er1
5910 grep -v '^ *+' conftest.er1
>conftest.err
5912 cat conftest.err
>&5
5913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5914 (exit $ac_status); } && {
5915 test -z "$ac_c_werror_flag" ||
5916 test ! -s conftest.err
5917 } && test -s conftest.
$ac_objext; then
5918 ac_header_compiler
=yes
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.
$ac_ext >&5
5923 ac_header_compiler
=no
5926 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5927 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5928 echo "${ECHO_T}$ac_header_compiler" >&6; }
5930 # Is the header present?
5931 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5932 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5933 cat >conftest.
$ac_ext <<_ACEOF
5936 cat confdefs.h
>>conftest.
$ac_ext
5937 cat >>conftest.
$ac_ext <<_ACEOF
5938 /* end confdefs.h. */
5939 #include <$ac_header>
5941 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5943 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5944 *) ac_try_echo=$ac_try;;
5946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5949 grep -v '^ *+' conftest.er1 >conftest.err
5951 cat conftest.err >&5
5952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5953 (exit $ac_status); } >/dev/null && {
5954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5955 test ! -s conftest.err
5957 ac_header_preproc=yes
5959 echo "$as_me: failed program was:" >&5
5960 sed 's/^/| /' conftest.$ac_ext >&5
5962 ac_header_preproc=no
5965 rm -f conftest.err conftest.$ac_ext
5966 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5967 echo "${ECHO_T}$ac_header_preproc" >&6; }
5969 # So? What about this header?
5970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5972 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5973 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5974 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5975 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5976 ac_header_preproc=yes
5979 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5980 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5981 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5982 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5983 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5984 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5985 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5986 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5988 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5989 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5990 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5994 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5995 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5996 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5997 echo $ECHO_N "(cached) $ECHO_C" >&6
5999 eval "$as_ac_Header=\$ac_header_preproc"
6001 ac_res=`eval echo '${'$as_ac_Header'}'`
6002 { echo "$as_me:$LINENO: result: $ac_res" >&5
6003 echo "${ECHO_T}$ac_res" >&6; }
6006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6007 cat >>confdefs.h <<_ACEOF
6008 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6015 # Emulation library used on NetBSD.
6016 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6017 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6018 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6019 echo $ECHO_N "(cached) $ECHO_C" >&6
6021 ac_check_lib_save_LIBS=$LIBS
6022 LIBS="-lossaudio $LIBS"
6023 cat >conftest.$ac_ext <<_ACEOF
6026 cat confdefs.h >>conftest.$ac_ext
6027 cat >>conftest.$ac_ext <<_ACEOF
6028 /* end confdefs.h. */
6030 /* Override any GCC internal prototype to avoid an error.
6031 Use char because int might match the return type of a GCC
6032 builtin and then its argument prototype would still apply. */
6040 return _oss_ioctl ();
6045 rm -f conftest.$ac_objext conftest$ac_exeext
6046 if { (ac_try="$ac_link"
6048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6049 *) ac_try_echo
=$ac_try;;
6051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6052 (eval "$ac_link") 2>conftest.er1
6054 grep -v '^ *+' conftest.er1
>conftest.err
6056 cat conftest.err
>&5
6057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6058 (exit $ac_status); } && {
6059 test -z "$ac_c_werror_flag" ||
6060 test ! -s conftest.err
6061 } && test -s conftest
$ac_exeext &&
6062 $as_test_x conftest
$ac_exeext; then
6063 ac_cv_lib_ossaudio__oss_ioctl
=yes
6065 echo "$as_me: failed program was:" >&5
6066 sed 's/^/| /' conftest.
$ac_ext >&5
6068 ac_cv_lib_ossaudio__oss_ioctl
=no
6071 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6072 conftest
$ac_exeext conftest.
$ac_ext
6073 LIBS
=$ac_check_lib_save_LIBS
6075 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6076 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6077 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6086 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6090 # Extract the first word of "pkg-config", so it can be a program name with args.
6091 set dummy pkg-config
; ac_word
=$2
6092 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6093 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6094 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6095 echo $ECHO_N "(cached) $ECHO_C" >&6
6099 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6102 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6106 test -z "$as_dir" && as_dir
=.
6107 for ac_exec_ext
in '' $ac_executable_extensions; do
6108 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6109 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6110 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6117 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6121 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6122 if test -n "$PKG_CONFIG"; then
6123 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6124 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6126 { echo "$as_me:$LINENO: result: no" >&5
6127 echo "${ECHO_T}no" >&6; }
6132 if test "$PKG_CONFIG" = "no" ; then
6135 PKG_CONFIG_MIN_VERSION
=0.9.0
6136 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6137 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6138 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6140 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6141 { echo "$as_me:$LINENO: result: yes" >&5
6142 echo "${ECHO_T}yes" >&6; }
6145 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6146 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6147 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6148 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6149 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6151 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6152 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6153 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6154 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6155 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6157 { echo "$as_me:$LINENO: result: no" >&5
6158 echo "${ECHO_T}no" >&6; }
6161 ## If we have a custom action on failure, don't print errors, but
6162 ## do set a variable so people can do so.
6163 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6170 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6171 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6175 if test $succeeded = yes; then
6181 if test $HAVE_ALSA = yes; then
6182 SAVE_CFLAGS
="$CFLAGS"
6183 SAVE_LDFLAGS
="$LDFLAGS"
6184 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6185 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6186 cat >conftest.
$ac_ext <<_ACEOF
6189 cat confdefs.h
>>conftest.
$ac_ext
6190 cat >>conftest.
$ac_ext <<_ACEOF
6191 /* end confdefs.h. */
6192 #include <asoundlib.h>
6196 snd_lib_error_set_handler (0);
6201 rm -f conftest.
$ac_objext
6202 if { (ac_try
="$ac_compile"
6204 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6205 *) ac_try_echo=$ac_try;;
6207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6208 (eval "$ac_compile") 2>conftest.er1
6210 grep -v '^ *+' conftest.er1 >conftest.err
6212 cat conftest.err >&5
6213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6214 (exit $ac_status); } && {
6215 test -z "$ac_c_werror_flag" ||
6216 test ! -s conftest.err
6217 } && test -s conftest.$ac_objext; then
6218 emacs_alsa_normal=yes
6220 echo "$as_me: failed program was:" >&5
6221 sed 's/^/| /' conftest.$ac_ext >&5
6223 emacs_alsa_normal=no
6226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6227 if test "$emacs_alsa_normal" != yes; then
6228 cat >conftest.$ac_ext <<_ACEOF
6231 cat confdefs.h >>conftest.$ac_ext
6232 cat >>conftest.$ac_ext <<_ACEOF
6233 /* end confdefs.h. */
6234 #include <alsa/asoundlib.h>
6238 snd_lib_error_set_handler (0);
6243 rm -f conftest.$ac_objext
6244 if { (ac_try="$ac_compile"
6246 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6247 *) ac_try_echo
=$ac_try;;
6249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6250 (eval "$ac_compile") 2>conftest.er1
6252 grep -v '^ *+' conftest.er1
>conftest.err
6254 cat conftest.err
>&5
6255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6256 (exit $ac_status); } && {
6257 test -z "$ac_c_werror_flag" ||
6258 test ! -s conftest.err
6259 } && test -s conftest.
$ac_objext; then
6260 emacs_alsa_subdir
=yes
6262 echo "$as_me: failed program was:" >&5
6263 sed 's/^/| /' conftest.
$ac_ext >&5
6265 emacs_alsa_subdir
=no
6268 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6269 if test "$emacs_alsa_subdir" != yes; then
6270 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6271 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6272 { (exit 1); exit 1; }; }
6274 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6277 CFLAGS
="$SAVE_CFLAGS"
6278 LDFLAGS
="$SAVE_LDFLAGS"
6279 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6280 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6282 cat >>confdefs.h
<<\_ACEOF
6315 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6316 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6317 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6318 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6321 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6322 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6323 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6325 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6326 echo $ECHO_N "(cached) $ECHO_C" >&6
6328 ac_res
=`eval echo '${'$as_ac_Header'}'`
6329 { echo "$as_me:$LINENO: result: $ac_res" >&5
6330 echo "${ECHO_T}$ac_res" >&6; }
6332 # Is the header compilable?
6333 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6334 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6335 cat >conftest.
$ac_ext <<_ACEOF
6338 cat confdefs.h
>>conftest.
$ac_ext
6339 cat >>conftest.
$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 $ac_includes_default
6342 #include <$ac_header>
6344 rm -f conftest.
$ac_objext
6345 if { (ac_try
="$ac_compile"
6347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_compile") 2>conftest.er1
6353 grep -v '^ *+' conftest.er1 >conftest.err
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && {
6358 test -z "$ac_c_werror_flag" ||
6359 test ! -s conftest.err
6360 } && test -s conftest.$ac_objext; then
6361 ac_header_compiler=yes
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6366 ac_header_compiler=no
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6371 echo "${ECHO_T}$ac_header_compiler" >&6; }
6373 # Is the header present?
6374 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6375 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6376 cat >conftest.$ac_ext <<_ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 #include <$ac_header>
6384 if { (ac_try="$ac_cpp conftest.$ac_ext"
6386 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6387 *) ac_try_echo
=$ac_try;;
6389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6390 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6392 grep -v '^ *+' conftest.er1
>conftest.err
6394 cat conftest.err
>&5
6395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6396 (exit $ac_status); } >/dev
/null
&& {
6397 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6398 test ! -s conftest.err
6400 ac_header_preproc
=yes
6402 echo "$as_me: failed program was:" >&5
6403 sed 's/^/| /' conftest.
$ac_ext >&5
6405 ac_header_preproc
=no
6408 rm -f conftest.err conftest.
$ac_ext
6409 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6410 echo "${ECHO_T}$ac_header_preproc" >&6; }
6412 # So? What about this header?
6413 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6415 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6416 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6417 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6418 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6419 ac_header_preproc
=yes
6422 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6423 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6424 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6425 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6426 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6427 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6428 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6429 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6430 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6431 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6432 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6433 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6437 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6439 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6440 echo $ECHO_N "(cached) $ECHO_C" >&6
6442 eval "$as_ac_Header=\$ac_header_preproc"
6444 ac_res
=`eval echo '${'$as_ac_Header'}'`
6445 { echo "$as_me:$LINENO: result: $ac_res" >&5
6446 echo "${ECHO_T}$ac_res" >&6; }
6449 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6450 cat >>confdefs.h
<<_ACEOF
6451 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6459 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6460 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6461 cat >conftest.
$ac_ext <<_ACEOF
6464 cat confdefs.h
>>conftest.
$ac_ext
6465 cat >>conftest.
$ac_ext <<_ACEOF
6466 /* end confdefs.h. */
6467 #include <sys/personality.h>
6471 personality (PER_LINUX32)
6476 rm -f conftest.
$ac_objext
6477 if { (ac_try
="$ac_compile"
6479 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_compile") 2>conftest.er1
6485 grep -v '^ *+' conftest.er1 >conftest.err
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } && {
6490 test -z "$ac_c_werror_flag" ||
6491 test ! -s conftest.err
6492 } && test -s conftest.$ac_objext; then
6493 emacs_cv_personality_linux32=yes
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6498 emacs_cv_personality_linux32=no
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6502 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6503 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6505 if test $emacs_cv_personality_linux32 = yes; then
6507 cat >>confdefs.h <<\_ACEOF
6508 #define HAVE_PERSONALITY_LINUX32 1
6514 for ac_header in term.h
6516 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6520 echo $ECHO_N "(cached) $ECHO_C" >&6
6522 cat >conftest.$ac_ext <<_ACEOF
6525 cat confdefs.h >>conftest.$ac_ext
6526 cat >>conftest.$ac_ext <<_ACEOF
6527 /* end confdefs.h. */
6528 #include <$ac_header>
6530 if { (ac_try="$ac_cpp conftest.$ac_ext"
6532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6533 *) ac_try_echo
=$ac_try;;
6535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6538 grep -v '^ *+' conftest.er1
>conftest.err
6540 cat conftest.err
>&5
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); } >/dev
/null
&& {
6543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6544 test ! -s conftest.err
6546 eval "$as_ac_Header=yes"
6548 echo "$as_me: failed program was:" >&5
6549 sed 's/^/| /' conftest.
$ac_ext >&5
6551 eval "$as_ac_Header=no"
6554 rm -f conftest.err conftest.
$ac_ext
6556 ac_res
=`eval echo '${'$as_ac_Header'}'`
6557 { echo "$as_me:$LINENO: result: $ac_res" >&5
6558 echo "${ECHO_T}$ac_res" >&6; }
6559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6560 cat >>confdefs.h
<<_ACEOF
6561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6568 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6569 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6570 if test "${ac_cv_header_stdc+set}" = set; then
6571 echo $ECHO_N "(cached) $ECHO_C" >&6
6573 cat >conftest.
$ac_ext <<_ACEOF
6576 cat confdefs.h
>>conftest.
$ac_ext
6577 cat >>conftest.
$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6592 rm -f conftest.
$ac_objext
6593 if { (ac_try
="$ac_compile"
6595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6596 *) ac_try_echo=$ac_try;;
6598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6599 (eval "$ac_compile") 2>conftest.er1
6601 grep -v '^ *+' conftest.er1 >conftest.err
6603 cat conftest.err >&5
6604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6605 (exit $ac_status); } && {
6606 test -z "$ac_c_werror_flag" ||
6607 test ! -s conftest.err
6608 } && test -s conftest.$ac_objext; then
6609 ac_cv_header_stdc=yes
6611 echo "$as_me: failed program was:" >&5
6612 sed 's/^/| /' conftest.$ac_ext >&5
6614 ac_cv_header_stdc=no
6617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 if test $ac_cv_header_stdc = yes; then
6620 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6621 cat >conftest.$ac_ext <<_ACEOF
6624 cat confdefs.h >>conftest.$ac_ext
6625 cat >>conftest.$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6631 $EGREP "memchr" >/dev/null 2>&1; then
6634 ac_cv_header_stdc=no
6640 if test $ac_cv_header_stdc = yes; then
6641 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6642 cat >conftest.$ac_ext <<_ACEOF
6645 cat confdefs.h >>conftest.$ac_ext
6646 cat >>conftest.$ac_ext <<_ACEOF
6647 /* end confdefs.h. */
6651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6652 $EGREP "free" >/dev/null 2>&1; then
6655 ac_cv_header_stdc=no
6661 if test $ac_cv_header_stdc = yes; then
6662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6663 if test "$cross_compiling" = yes; then
6666 cat >conftest.$ac_ext <<_ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6674 #if ((' ' & 0x0FF) == 0x020)
6675 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6676 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6678 # define ISLOWER(c) \
6679 (('a' <= (c) && (c) <= 'i') \
6680 || ('j' <= (c) && (c) <= 'r') \
6681 || ('s' <= (c) && (c) <= 'z'))
6682 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6685 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6690 for (i = 0; i < 256; i++)
6691 if (XOR (islower (i), ISLOWER (i))
6692 || toupper (i) != TOUPPER (i))
6697 rm -f conftest$ac_exeext
6698 if { (ac_try="$ac_link"
6700 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6701 *) ac_try_echo
=$ac_try;;
6703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6704 (eval "$ac_link") 2>&5
6706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6707 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6708 { (case "(($ac_try" in
6709 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6710 *) ac_try_echo=$ac_try;;
6712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6713 (eval "$ac_try") 2>&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); }; }; then
6719 echo "$as_me: program exited with status $ac_status" >&5
6720 echo "$as_me: failed program was:" >&5
6721 sed 's/^/| /' conftest.$ac_ext >&5
6724 ac_cv_header_stdc=no
6726 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6732 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6733 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6734 if test $ac_cv_header_stdc = yes; then
6736 cat >>confdefs.h <<\_ACEOF
6737 #define STDC_HEADERS 1
6742 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6743 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6744 if test "${ac_cv_header_time+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 cat >conftest.$ac_ext <<_ACEOF
6750 cat confdefs.h >>conftest.$ac_ext
6751 cat >>conftest.$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6753 #include <sys/types.h>
6754 #include <sys/time.h>
6760 if ((struct tm *) 0)
6766 rm -f conftest.$ac_objext
6767 if { (ac_try="$ac_compile"
6769 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6770 *) ac_try_echo
=$ac_try;;
6772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6773 (eval "$ac_compile") 2>conftest.er1
6775 grep -v '^ *+' conftest.er1
>conftest.err
6777 cat conftest.err
>&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } && {
6780 test -z "$ac_c_werror_flag" ||
6781 test ! -s conftest.err
6782 } && test -s conftest.
$ac_objext; then
6783 ac_cv_header_time
=yes
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.
$ac_ext >&5
6788 ac_cv_header_time
=no
6791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6793 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6794 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6795 if test $ac_cv_header_time = yes; then
6797 cat >>confdefs.h
<<\_ACEOF
6798 #define TIME_WITH_SYS_TIME 1
6803 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6804 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6805 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6806 echo $ECHO_N "(cached) $ECHO_C" >&6
6808 cat >conftest.
$ac_ext <<_ACEOF
6811 cat confdefs.h
>>conftest.
$ac_ext
6812 cat >>conftest.
$ac_ext <<_ACEOF
6813 /* end confdefs.h. */
6814 $ac_includes_default
6826 rm -f conftest.
$ac_objext
6827 if { (ac_try
="$ac_compile"
6829 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6830 *) ac_try_echo=$ac_try;;
6832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6833 (eval "$ac_compile") 2>conftest.er1
6835 grep -v '^ *+' conftest.er1 >conftest.err
6837 cat conftest.err >&5
6838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6839 (exit $ac_status); } && {
6840 test -z "$ac_c_werror_flag" ||
6841 test ! -s conftest.err
6842 } && test -s conftest.$ac_objext; then
6843 ac_cv_have_decl_sys_siglist=yes
6845 echo "$as_me: failed program was:" >&5
6846 sed 's/^/| /' conftest.$ac_ext >&5
6848 ac_cv_have_decl_sys_siglist=no
6851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6853 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6854 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6855 if test $ac_cv_have_decl_sys_siglist = yes; then
6857 cat >>confdefs.h <<_ACEOF
6858 #define HAVE_DECL_SYS_SIGLIST 1
6863 cat >>confdefs.h <<_ACEOF
6864 #define HAVE_DECL_SYS_SIGLIST 0
6871 if test $ac_cv_have_decl_sys_siglist != yes; then
6872 # For Tru64, at least:
6873 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6874 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6875 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6876 echo $ECHO_N "(cached) $ECHO_C" >&6
6878 cat >conftest.$ac_ext <<_ACEOF
6881 cat confdefs.h >>conftest.$ac_ext
6882 cat >>conftest.$ac_ext <<_ACEOF
6883 /* end confdefs.h. */
6884 $ac_includes_default
6888 #ifndef __sys_siglist
6889 (void) __sys_siglist;
6896 rm -f conftest.$ac_objext
6897 if { (ac_try="$ac_compile"
6899 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6900 *) ac_try_echo
=$ac_try;;
6902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6903 (eval "$ac_compile") 2>conftest.er1
6905 grep -v '^ *+' conftest.er1
>conftest.err
6907 cat conftest.err
>&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } && {
6910 test -z "$ac_c_werror_flag" ||
6911 test ! -s conftest.err
6912 } && test -s conftest.
$ac_objext; then
6913 ac_cv_have_decl___sys_siglist
=yes
6915 echo "$as_me: failed program was:" >&5
6916 sed 's/^/| /' conftest.
$ac_ext >&5
6918 ac_cv_have_decl___sys_siglist
=no
6921 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6923 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6924 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6925 if test $ac_cv_have_decl___sys_siglist = yes; then
6927 cat >>confdefs.h
<<_ACEOF
6928 #define HAVE_DECL___SYS_SIGLIST 1
6933 cat >>confdefs.h
<<_ACEOF
6934 #define HAVE_DECL___SYS_SIGLIST 0
6941 if test $ac_cv_have_decl___sys_siglist = yes; then
6943 cat >>confdefs.h
<<\_ACEOF
6944 #define sys_siglist __sys_siglist
6949 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6950 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6951 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6952 echo $ECHO_N "(cached) $ECHO_C" >&6
6954 cat >conftest.
$ac_ext <<_ACEOF
6957 cat confdefs.h
>>conftest.
$ac_ext
6958 cat >>conftest.
$ac_ext <<_ACEOF
6959 /* end confdefs.h. */
6960 #include <sys/types.h>
6961 #include <sys/wait.h>
6963 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6966 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6974 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6979 rm -f conftest.
$ac_objext
6980 if { (ac_try
="$ac_compile"
6982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6983 *) ac_try_echo=$ac_try;;
6985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6986 (eval "$ac_compile") 2>conftest.er1
6988 grep -v '^ *+' conftest.er1 >conftest.err
6990 cat conftest.err >&5
6991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6992 (exit $ac_status); } && {
6993 test -z "$ac_c_werror_flag" ||
6994 test ! -s conftest.err
6995 } && test -s conftest.$ac_objext; then
6996 ac_cv_header_sys_wait_h=yes
6998 echo "$as_me: failed program was:" >&5
6999 sed 's/^/| /' conftest.$ac_ext >&5
7001 ac_cv_header_sys_wait_h=no
7004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7006 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7007 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7008 if test $ac_cv_header_sys_wait_h = yes; then
7010 cat >>confdefs.h <<\_ACEOF
7011 #define HAVE_SYS_WAIT_H 1
7017 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7018 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7019 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7022 cat >conftest.$ac_ext <<_ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 #ifdef TIME_WITH_SYS_TIME
7029 #include <sys/time.h>
7032 #ifdef HAVE_SYS_TIME_H
7033 #include <sys/time.h>
7044 static struct utimbuf x; x.actime = x.modtime;
7049 rm -f conftest.$ac_objext
7050 if { (ac_try="$ac_compile"
7052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7053 *) ac_try_echo
=$ac_try;;
7055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7056 (eval "$ac_compile") 2>conftest.er1
7058 grep -v '^ *+' conftest.er1
>conftest.err
7060 cat conftest.err
>&5
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); } && {
7063 test -z "$ac_c_werror_flag" ||
7064 test ! -s conftest.err
7065 } && test -s conftest.
$ac_objext; then
7066 emacs_cv_struct_utimbuf
=yes
7068 echo "$as_me: failed program was:" >&5
7069 sed 's/^/| /' conftest.
$ac_ext >&5
7071 emacs_cv_struct_utimbuf
=no
7074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7076 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7077 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7078 if test $emacs_cv_struct_utimbuf = yes; then
7080 cat >>confdefs.h
<<\_ACEOF
7081 #define HAVE_STRUCT_UTIMBUF 1
7086 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7087 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7088 if test "${ac_cv_type_signal+set}" = set; then
7089 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 cat >conftest.
$ac_ext <<_ACEOF
7094 cat confdefs.h
>>conftest.
$ac_ext
7095 cat >>conftest.
$ac_ext <<_ACEOF
7096 /* end confdefs.h. */
7097 #include <sys/types.h>
7103 return *(signal (0, 0)) (0) == 1;
7108 rm -f conftest.
$ac_objext
7109 if { (ac_try
="$ac_compile"
7111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7112 *) ac_try_echo=$ac_try;;
7114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7115 (eval "$ac_compile") 2>conftest.er1
7117 grep -v '^ *+' conftest.er1 >conftest.err
7119 cat conftest.err >&5
7120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7121 (exit $ac_status); } && {
7122 test -z "$ac_c_werror_flag" ||
7123 test ! -s conftest.err
7124 } && test -s conftest.$ac_objext; then
7125 ac_cv_type_signal=int
7127 echo "$as_me: failed program was:" >&5
7128 sed 's/^/| /' conftest.$ac_ext >&5
7130 ac_cv_type_signal=void
7133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7136 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7138 cat >>confdefs.h <<_ACEOF
7139 #define RETSIGTYPE $ac_cv_type_signal
7144 { echo "$as_me:$LINENO: checking for speed_t" >&5
7145 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7146 if test "${emacs_cv_speed_t+set}" = set; then
7147 echo $ECHO_N "(cached) $ECHO_C" >&6
7149 cat >conftest.$ac_ext <<_ACEOF
7152 cat confdefs.h >>conftest.$ac_ext
7153 cat >>conftest.$ac_ext <<_ACEOF
7154 /* end confdefs.h. */
7155 #include <termios.h>
7164 rm -f conftest.$ac_objext
7165 if { (ac_try="$ac_compile"
7167 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7168 *) ac_try_echo
=$ac_try;;
7170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7171 (eval "$ac_compile") 2>conftest.er1
7173 grep -v '^ *+' conftest.er1
>conftest.err
7175 cat conftest.err
>&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); } && {
7178 test -z "$ac_c_werror_flag" ||
7179 test ! -s conftest.err
7180 } && test -s conftest.
$ac_objext; then
7181 emacs_cv_speed_t
=yes
7183 echo "$as_me: failed program was:" >&5
7184 sed 's/^/| /' conftest.
$ac_ext >&5
7189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7191 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7192 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7193 if test $emacs_cv_speed_t = yes; then
7195 cat >>confdefs.h
<<\_ACEOF
7196 #define HAVE_SPEED_T 1
7201 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7202 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7203 if test "${emacs_cv_struct_timeval+set}" = set; then
7204 echo $ECHO_N "(cached) $ECHO_C" >&6
7206 cat >conftest.
$ac_ext <<_ACEOF
7209 cat confdefs.h
>>conftest.
$ac_ext
7210 cat >>conftest.
$ac_ext <<_ACEOF
7211 /* end confdefs.h. */
7212 #ifdef TIME_WITH_SYS_TIME
7213 #include <sys/time.h>
7216 #ifdef HAVE_SYS_TIME_H
7217 #include <sys/time.h>
7225 static struct timeval x; x.tv_sec = x.tv_usec;
7230 rm -f conftest.
$ac_objext
7231 if { (ac_try
="$ac_compile"
7233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7234 *) ac_try_echo=$ac_try;;
7236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7237 (eval "$ac_compile") 2>conftest.er1
7239 grep -v '^ *+' conftest.er1 >conftest.err
7241 cat conftest.err >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } && {
7244 test -z "$ac_c_werror_flag" ||
7245 test ! -s conftest.err
7246 } && test -s conftest.$ac_objext; then
7247 emacs_cv_struct_timeval=yes
7249 echo "$as_me: failed program was:" >&5
7250 sed 's/^/| /' conftest.$ac_ext >&5
7252 emacs_cv_struct_timeval=no
7255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7257 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7258 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7259 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7260 if test $emacs_cv_struct_timeval = yes; then
7262 cat >>confdefs.h <<\_ACEOF
7263 #define HAVE_TIMEVAL 1
7268 { echo "$as_me:$LINENO: checking for struct exception" >&5
7269 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7270 if test "${emacs_cv_struct_exception+set}" = set; then
7271 echo $ECHO_N "(cached) $ECHO_C" >&6
7273 cat >conftest.$ac_ext <<_ACEOF
7276 cat confdefs.h >>conftest.$ac_ext
7277 cat >>conftest.$ac_ext <<_ACEOF
7278 /* end confdefs.h. */
7283 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7288 rm -f conftest.$ac_objext
7289 if { (ac_try="$ac_compile"
7291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7292 *) ac_try_echo
=$ac_try;;
7294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295 (eval "$ac_compile") 2>conftest.er1
7297 grep -v '^ *+' conftest.er1
>conftest.err
7299 cat conftest.err
>&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } && {
7302 test -z "$ac_c_werror_flag" ||
7303 test ! -s conftest.err
7304 } && test -s conftest.
$ac_objext; then
7305 emacs_cv_struct_exception
=yes
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.
$ac_ext >&5
7310 emacs_cv_struct_exception
=no
7313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7315 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7316 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7317 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7318 if test $emacs_cv_struct_exception != yes; then
7320 cat >>confdefs.h
<<\_ACEOF
7321 #define NO_MATHERR 1
7327 for ac_header
in sys
/socket.h
7329 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7330 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7333 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7334 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 ac_res
=`eval echo '${'$as_ac_Header'}'`
7337 { echo "$as_me:$LINENO: result: $ac_res" >&5
7338 echo "${ECHO_T}$ac_res" >&6; }
7340 # Is the header compilable?
7341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7343 cat >conftest.
$ac_ext <<_ACEOF
7346 cat confdefs.h
>>conftest.
$ac_ext
7347 cat >>conftest.
$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7349 $ac_includes_default
7350 #include <$ac_header>
7352 rm -f conftest.
$ac_objext
7353 if { (ac_try
="$ac_compile"
7355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7356 *) ac_try_echo=$ac_try;;
7358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7359 (eval "$ac_compile") 2>conftest.er1
7361 grep -v '^ *+' conftest.er1 >conftest.err
7363 cat conftest.err >&5
7364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7365 (exit $ac_status); } && {
7366 test -z "$ac_c_werror_flag" ||
7367 test ! -s conftest.err
7368 } && test -s conftest.$ac_objext; then
7369 ac_header_compiler=yes
7371 echo "$as_me: failed program was:" >&5
7372 sed 's/^/| /' conftest.$ac_ext >&5
7374 ac_header_compiler=no
7377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7379 echo "${ECHO_T}$ac_header_compiler" >&6; }
7381 # Is the header present?
7382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7384 cat >conftest.$ac_ext <<_ACEOF
7387 cat confdefs.h >>conftest.$ac_ext
7388 cat >>conftest.$ac_ext <<_ACEOF
7389 /* end confdefs.h. */
7390 #include <$ac_header>
7392 if { (ac_try="$ac_cpp conftest.$ac_ext"
7394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7395 *) ac_try_echo
=$ac_try;;
7397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7400 grep -v '^ *+' conftest.er1
>conftest.err
7402 cat conftest.err
>&5
7403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7404 (exit $ac_status); } >/dev
/null
&& {
7405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7406 test ! -s conftest.err
7408 ac_header_preproc
=yes
7410 echo "$as_me: failed program was:" >&5
7411 sed 's/^/| /' conftest.
$ac_ext >&5
7413 ac_header_preproc
=no
7416 rm -f conftest.err conftest.
$ac_ext
7417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7418 echo "${ECHO_T}$ac_header_preproc" >&6; }
7420 # So? What about this header?
7421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7427 ac_header_preproc
=yes
7430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7447 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7448 echo $ECHO_N "(cached) $ECHO_C" >&6
7450 eval "$as_ac_Header=\$ac_header_preproc"
7452 ac_res
=`eval echo '${'$as_ac_Header'}'`
7453 { echo "$as_me:$LINENO: result: $ac_res" >&5
7454 echo "${ECHO_T}$ac_res" >&6; }
7457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7458 cat >>confdefs.h
<<_ACEOF
7459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7467 for ac_header
in net
/if.h
7469 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7472 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 cat >conftest.
$ac_ext <<_ACEOF
7478 cat confdefs.h
>>conftest.
$ac_ext
7479 cat >>conftest.
$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7481 $ac_includes_default
7482 #if HAVE_SYS_SOCKET_H
7483 #include <sys/socket.h>
7486 #include <$ac_header>
7488 rm -f conftest.
$ac_objext
7489 if { (ac_try
="$ac_compile"
7491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7492 *) ac_try_echo=$ac_try;;
7494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7495 (eval "$ac_compile") 2>conftest.er1
7497 grep -v '^ *+' conftest.er1 >conftest.err
7499 cat conftest.err >&5
7500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7501 (exit $ac_status); } && {
7502 test -z "$ac_c_werror_flag" ||
7503 test ! -s conftest.err
7504 } && test -s conftest.$ac_objext; then
7505 eval "$as_ac_Header=yes"
7507 echo "$as_me: failed program was:" >&5
7508 sed 's/^/| /' conftest.$ac_ext >&5
7510 eval "$as_ac_Header=no"
7513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7515 ac_res=`eval echo '${'$as_ac_Header'}'`
7516 { echo "$as_me:$LINENO: result: $ac_res" >&5
7517 echo "${ECHO_T}$ac_res" >&6; }
7518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7519 cat >>confdefs.h <<_ACEOF
7520 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7528 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7529 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7530 if test "${ac_cv_struct_tm+set}" = set; then
7531 echo $ECHO_N "(cached) $ECHO_C" >&6
7533 cat >conftest.$ac_ext <<_ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 #include <sys/types.h>
7546 int *p = &tm.tm_sec;
7552 rm -f conftest.$ac_objext
7553 if { (ac_try="$ac_compile"
7555 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7556 *) ac_try_echo
=$ac_try;;
7558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7559 (eval "$ac_compile") 2>conftest.er1
7561 grep -v '^ *+' conftest.er1
>conftest.err
7563 cat conftest.err
>&5
7564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7565 (exit $ac_status); } && {
7566 test -z "$ac_c_werror_flag" ||
7567 test ! -s conftest.err
7568 } && test -s conftest.
$ac_objext; then
7569 ac_cv_struct_tm
=time.h
7571 echo "$as_me: failed program was:" >&5
7572 sed 's/^/| /' conftest.
$ac_ext >&5
7574 ac_cv_struct_tm
=sys
/time.h
7577 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7579 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7580 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7581 if test $ac_cv_struct_tm = sys
/time.h
; then
7583 cat >>confdefs.h
<<\_ACEOF
7584 #define TM_IN_SYS_TIME 1
7589 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7590 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7591 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7594 cat >conftest.
$ac_ext <<_ACEOF
7597 cat confdefs.h
>>conftest.
$ac_ext
7598 cat >>conftest.
$ac_ext <<_ACEOF
7599 /* end confdefs.h. */
7600 #include <sys/types.h>
7601 #include <$ac_cv_struct_tm>
7607 static struct tm ac_aggr;
7608 if (ac_aggr.tm_zone)
7614 rm -f conftest.
$ac_objext
7615 if { (ac_try
="$ac_compile"
7617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7618 *) ac_try_echo=$ac_try;;
7620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7621 (eval "$ac_compile") 2>conftest.er1
7623 grep -v '^ *+' conftest.er1 >conftest.err
7625 cat conftest.err >&5
7626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7627 (exit $ac_status); } && {
7628 test -z "$ac_c_werror_flag" ||
7629 test ! -s conftest.err
7630 } && test -s conftest.$ac_objext; then
7631 ac_cv_member_struct_tm_tm_zone=yes
7633 echo "$as_me: failed program was:" >&5
7634 sed 's/^/| /' conftest.$ac_ext >&5
7636 cat >conftest.$ac_ext <<_ACEOF
7639 cat confdefs.h >>conftest.$ac_ext
7640 cat >>conftest.$ac_ext <<_ACEOF
7641 /* end confdefs.h. */
7642 #include <sys/types.h>
7643 #include <$ac_cv_struct_tm>
7649 static struct tm ac_aggr;
7650 if (sizeof ac_aggr.tm_zone)
7656 rm -f conftest.$ac_objext
7657 if { (ac_try="$ac_compile"
7659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7660 *) ac_try_echo
=$ac_try;;
7662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7663 (eval "$ac_compile") 2>conftest.er1
7665 grep -v '^ *+' conftest.er1
>conftest.err
7667 cat conftest.err
>&5
7668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7669 (exit $ac_status); } && {
7670 test -z "$ac_c_werror_flag" ||
7671 test ! -s conftest.err
7672 } && test -s conftest.
$ac_objext; then
7673 ac_cv_member_struct_tm_tm_zone
=yes
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.
$ac_ext >&5
7678 ac_cv_member_struct_tm_tm_zone
=no
7681 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7684 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7686 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7687 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7688 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7690 cat >>confdefs.h
<<_ACEOF
7691 #define HAVE_STRUCT_TM_TM_ZONE 1
7697 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7699 cat >>confdefs.h
<<\_ACEOF
7700 #define HAVE_TM_ZONE 1
7704 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7705 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7706 if test "${ac_cv_have_decl_tzname+set}" = set; then
7707 echo $ECHO_N "(cached) $ECHO_C" >&6
7709 cat >conftest.
$ac_ext <<_ACEOF
7712 cat confdefs.h
>>conftest.
$ac_ext
7713 cat >>conftest.
$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7728 rm -f conftest.
$ac_objext
7729 if { (ac_try
="$ac_compile"
7731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7732 *) ac_try_echo=$ac_try;;
7734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7735 (eval "$ac_compile") 2>conftest.er1
7737 grep -v '^ *+' conftest.er1 >conftest.err
7739 cat conftest.err >&5
7740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7741 (exit $ac_status); } && {
7742 test -z "$ac_c_werror_flag" ||
7743 test ! -s conftest.err
7744 } && test -s conftest.$ac_objext; then
7745 ac_cv_have_decl_tzname=yes
7747 echo "$as_me: failed program was:" >&5
7748 sed 's/^/| /' conftest.$ac_ext >&5
7750 ac_cv_have_decl_tzname=no
7753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7755 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7756 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7757 if test $ac_cv_have_decl_tzname = yes; then
7759 cat >>confdefs.h <<_ACEOF
7760 #define HAVE_DECL_TZNAME 1
7765 cat >>confdefs.h <<_ACEOF
7766 #define HAVE_DECL_TZNAME 0
7773 { echo "$as_me:$LINENO: checking for tzname" >&5
7774 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7775 if test "${ac_cv_var_tzname+set}" = set; then
7776 echo $ECHO_N "(cached) $ECHO_C" >&6
7778 cat >conftest.$ac_ext <<_ACEOF
7781 cat confdefs.h >>conftest.$ac_ext
7782 cat >>conftest.$ac_ext <<_ACEOF
7783 /* end confdefs.h. */
7785 #if !HAVE_DECL_TZNAME
7786 extern char *tzname[];
7792 return tzname[0][0];
7797 rm -f conftest.$ac_objext conftest$ac_exeext
7798 if { (ac_try="$ac_link"
7800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7801 *) ac_try_echo
=$ac_try;;
7803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7804 (eval "$ac_link") 2>conftest.er1
7806 grep -v '^ *+' conftest.er1
>conftest.err
7808 cat conftest.err
>&5
7809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7810 (exit $ac_status); } && {
7811 test -z "$ac_c_werror_flag" ||
7812 test ! -s conftest.err
7813 } && test -s conftest
$ac_exeext &&
7814 $as_test_x conftest
$ac_exeext; then
7815 ac_cv_var_tzname
=yes
7817 echo "$as_me: failed program was:" >&5
7818 sed 's/^/| /' conftest.
$ac_ext >&5
7823 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7824 conftest
$ac_exeext conftest.
$ac_ext
7826 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7827 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7828 if test $ac_cv_var_tzname = yes; then
7830 cat >>confdefs.h
<<\_ACEOF
7831 #define HAVE_TZNAME 1
7837 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7838 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7839 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 cat >conftest.
$ac_ext <<_ACEOF
7845 cat confdefs.h
>>conftest.
$ac_ext
7846 cat >>conftest.
$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7853 static struct tm ac_aggr;
7854 if (ac_aggr.tm_gmtoff)
7860 rm -f conftest.
$ac_objext
7861 if { (ac_try
="$ac_compile"
7863 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7864 *) ac_try_echo=$ac_try;;
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7869 grep -v '^ *+' conftest.er1 >conftest.err
7871 cat conftest.err >&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_c_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest.$ac_objext; then
7877 ac_cv_member_struct_tm_tm_gmtoff=yes
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.$ac_ext >&5
7882 cat >conftest.$ac_ext <<_ACEOF
7885 cat confdefs.h >>conftest.$ac_ext
7886 cat >>conftest.$ac_ext <<_ACEOF
7887 /* end confdefs.h. */
7893 static struct tm ac_aggr;
7894 if (sizeof ac_aggr.tm_gmtoff)
7900 rm -f conftest.$ac_objext
7901 if { (ac_try="$ac_compile"
7903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7904 *) ac_try_echo
=$ac_try;;
7906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7907 (eval "$ac_compile") 2>conftest.er1
7909 grep -v '^ *+' conftest.er1
>conftest.err
7911 cat conftest.err
>&5
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); } && {
7914 test -z "$ac_c_werror_flag" ||
7915 test ! -s conftest.err
7916 } && test -s conftest.
$ac_objext; then
7917 ac_cv_member_struct_tm_tm_gmtoff
=yes
7919 echo "$as_me: failed program was:" >&5
7920 sed 's/^/| /' conftest.
$ac_ext >&5
7922 ac_cv_member_struct_tm_tm_gmtoff
=no
7925 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7928 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7930 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7931 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7932 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7934 cat >>confdefs.h
<<\_ACEOF
7935 #define HAVE_TM_GMTOFF 1
7940 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7941 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7942 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7943 echo $ECHO_N "(cached) $ECHO_C" >&6
7945 cat >conftest.
$ac_ext <<_ACEOF
7948 cat confdefs.h
>>conftest.
$ac_ext
7949 cat >>conftest.
$ac_ext <<_ACEOF
7950 /* end confdefs.h. */
7951 $ac_includes_default
7952 #if HAVE_SYS_SOCKET_H
7953 #include <sys/socket.h>
7962 static struct ifreq ac_aggr;
7963 if (ac_aggr.ifr_flags)
7969 rm -f conftest.
$ac_objext
7970 if { (ac_try
="$ac_compile"
7972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7973 *) ac_try_echo=$ac_try;;
7975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7976 (eval "$ac_compile") 2>conftest.er1
7978 grep -v '^ *+' conftest.er1 >conftest.err
7980 cat conftest.err >&5
7981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7982 (exit $ac_status); } && {
7983 test -z "$ac_c_werror_flag" ||
7984 test ! -s conftest.err
7985 } && test -s conftest.$ac_objext; then
7986 ac_cv_member_struct_ifreq_ifr_flags=yes
7988 echo "$as_me: failed program was:" >&5
7989 sed 's/^/| /' conftest.$ac_ext >&5
7991 cat >conftest.$ac_ext <<_ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7997 $ac_includes_default
7998 #if HAVE_SYS_SOCKET_H
7999 #include <sys/socket.h>
8008 static struct ifreq ac_aggr;
8009 if (sizeof ac_aggr.ifr_flags)
8015 rm -f conftest.$ac_objext
8016 if { (ac_try="$ac_compile"
8018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8019 *) ac_try_echo
=$ac_try;;
8021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8022 (eval "$ac_compile") 2>conftest.er1
8024 grep -v '^ *+' conftest.er1
>conftest.err
8026 cat conftest.err
>&5
8027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8028 (exit $ac_status); } && {
8029 test -z "$ac_c_werror_flag" ||
8030 test ! -s conftest.err
8031 } && test -s conftest.
$ac_objext; then
8032 ac_cv_member_struct_ifreq_ifr_flags
=yes
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.
$ac_ext >&5
8037 ac_cv_member_struct_ifreq_ifr_flags
=no
8040 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8045 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8046 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8047 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8049 cat >>confdefs.h
<<_ACEOF
8050 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8055 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8056 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8057 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8058 echo $ECHO_N "(cached) $ECHO_C" >&6
8060 cat >conftest.
$ac_ext <<_ACEOF
8063 cat confdefs.h
>>conftest.
$ac_ext
8064 cat >>conftest.
$ac_ext <<_ACEOF
8065 /* end confdefs.h. */
8066 $ac_includes_default
8067 #if HAVE_SYS_SOCKET_H
8068 #include <sys/socket.h>
8077 static struct ifreq ac_aggr;
8078 if (ac_aggr.ifr_hwaddr)
8084 rm -f conftest.
$ac_objext
8085 if { (ac_try
="$ac_compile"
8087 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8088 *) ac_try_echo=$ac_try;;
8090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8091 (eval "$ac_compile") 2>conftest.er1
8093 grep -v '^ *+' conftest.er1 >conftest.err
8095 cat conftest.err >&5
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); } && {
8098 test -z "$ac_c_werror_flag" ||
8099 test ! -s conftest.err
8100 } && test -s conftest.$ac_objext; then
8101 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8103 echo "$as_me: failed program was:" >&5
8104 sed 's/^/| /' conftest.$ac_ext >&5
8106 cat >conftest.$ac_ext <<_ACEOF
8109 cat confdefs.h >>conftest.$ac_ext
8110 cat >>conftest.$ac_ext <<_ACEOF
8111 /* end confdefs.h. */
8112 $ac_includes_default
8113 #if HAVE_SYS_SOCKET_H
8114 #include <sys/socket.h>
8123 static struct ifreq ac_aggr;
8124 if (sizeof ac_aggr.ifr_hwaddr)
8130 rm -f conftest.$ac_objext
8131 if { (ac_try="$ac_compile"
8133 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8134 *) ac_try_echo
=$ac_try;;
8136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8137 (eval "$ac_compile") 2>conftest.er1
8139 grep -v '^ *+' conftest.er1
>conftest.err
8141 cat conftest.err
>&5
8142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8143 (exit $ac_status); } && {
8144 test -z "$ac_c_werror_flag" ||
8145 test ! -s conftest.err
8146 } && test -s conftest.
$ac_objext; then
8147 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8149 echo "$as_me: failed program was:" >&5
8150 sed 's/^/| /' conftest.
$ac_ext >&5
8152 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8155 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8160 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8161 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8162 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8164 cat >>confdefs.h
<<_ACEOF
8165 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8170 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8171 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8172 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8173 echo $ECHO_N "(cached) $ECHO_C" >&6
8175 cat >conftest.
$ac_ext <<_ACEOF
8178 cat confdefs.h
>>conftest.
$ac_ext
8179 cat >>conftest.
$ac_ext <<_ACEOF
8180 /* end confdefs.h. */
8181 $ac_includes_default
8182 #if HAVE_SYS_SOCKET_H
8183 #include <sys/socket.h>
8192 static struct ifreq ac_aggr;
8193 if (ac_aggr.ifr_netmask)
8199 rm -f conftest.
$ac_objext
8200 if { (ac_try
="$ac_compile"
8202 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8203 *) ac_try_echo=$ac_try;;
8205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8206 (eval "$ac_compile") 2>conftest.er1
8208 grep -v '^ *+' conftest.er1 >conftest.err
8210 cat conftest.err >&5
8211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8212 (exit $ac_status); } && {
8213 test -z "$ac_c_werror_flag" ||
8214 test ! -s conftest.err
8215 } && test -s conftest.$ac_objext; then
8216 ac_cv_member_struct_ifreq_ifr_netmask=yes
8218 echo "$as_me: failed program was:" >&5
8219 sed 's/^/| /' conftest.$ac_ext >&5
8221 cat >conftest.$ac_ext <<_ACEOF
8224 cat confdefs.h >>conftest.$ac_ext
8225 cat >>conftest.$ac_ext <<_ACEOF
8226 /* end confdefs.h. */
8227 $ac_includes_default
8228 #if HAVE_SYS_SOCKET_H
8229 #include <sys/socket.h>
8238 static struct ifreq ac_aggr;
8239 if (sizeof ac_aggr.ifr_netmask)
8245 rm -f conftest.$ac_objext
8246 if { (ac_try="$ac_compile"
8248 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8249 *) ac_try_echo
=$ac_try;;
8251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8252 (eval "$ac_compile") 2>conftest.er1
8254 grep -v '^ *+' conftest.er1
>conftest.err
8256 cat conftest.err
>&5
8257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8258 (exit $ac_status); } && {
8259 test -z "$ac_c_werror_flag" ||
8260 test ! -s conftest.err
8261 } && test -s conftest.
$ac_objext; then
8262 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8264 echo "$as_me: failed program was:" >&5
8265 sed 's/^/| /' conftest.
$ac_ext >&5
8267 ac_cv_member_struct_ifreq_ifr_netmask
=no
8270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8275 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8276 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8277 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8279 cat >>confdefs.h
<<_ACEOF
8280 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8285 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8286 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8287 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8288 echo $ECHO_N "(cached) $ECHO_C" >&6
8290 cat >conftest.
$ac_ext <<_ACEOF
8293 cat confdefs.h
>>conftest.
$ac_ext
8294 cat >>conftest.
$ac_ext <<_ACEOF
8295 /* end confdefs.h. */
8296 $ac_includes_default
8297 #if HAVE_SYS_SOCKET_H
8298 #include <sys/socket.h>
8307 static struct ifreq ac_aggr;
8308 if (ac_aggr.ifr_broadaddr)
8314 rm -f conftest.
$ac_objext
8315 if { (ac_try
="$ac_compile"
8317 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8318 *) ac_try_echo=$ac_try;;
8320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8321 (eval "$ac_compile") 2>conftest.er1
8323 grep -v '^ *+' conftest.er1 >conftest.err
8325 cat conftest.err >&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } && {
8328 test -z "$ac_c_werror_flag" ||
8329 test ! -s conftest.err
8330 } && test -s conftest.$ac_objext; then
8331 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8333 echo "$as_me: failed program was:" >&5
8334 sed 's/^/| /' conftest.$ac_ext >&5
8336 cat >conftest.$ac_ext <<_ACEOF
8339 cat confdefs.h >>conftest.$ac_ext
8340 cat >>conftest.$ac_ext <<_ACEOF
8341 /* end confdefs.h. */
8342 $ac_includes_default
8343 #if HAVE_SYS_SOCKET_H
8344 #include <sys/socket.h>
8353 static struct ifreq ac_aggr;
8354 if (sizeof ac_aggr.ifr_broadaddr)
8360 rm -f conftest.$ac_objext
8361 if { (ac_try="$ac_compile"
8363 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8364 *) ac_try_echo
=$ac_try;;
8366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8367 (eval "$ac_compile") 2>conftest.er1
8369 grep -v '^ *+' conftest.er1
>conftest.err
8371 cat conftest.err
>&5
8372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8373 (exit $ac_status); } && {
8374 test -z "$ac_c_werror_flag" ||
8375 test ! -s conftest.err
8376 } && test -s conftest.
$ac_objext; then
8377 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8379 echo "$as_me: failed program was:" >&5
8380 sed 's/^/| /' conftest.
$ac_ext >&5
8382 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8385 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8390 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8391 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8392 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8394 cat >>confdefs.h
<<_ACEOF
8395 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8400 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8401 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8402 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8403 echo $ECHO_N "(cached) $ECHO_C" >&6
8405 cat >conftest.
$ac_ext <<_ACEOF
8408 cat confdefs.h
>>conftest.
$ac_ext
8409 cat >>conftest.
$ac_ext <<_ACEOF
8410 /* end confdefs.h. */
8411 $ac_includes_default
8412 #if HAVE_SYS_SOCKET_H
8413 #include <sys/socket.h>
8422 static struct ifreq ac_aggr;
8423 if (ac_aggr.ifr_addr)
8429 rm -f conftest.
$ac_objext
8430 if { (ac_try
="$ac_compile"
8432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8433 *) ac_try_echo=$ac_try;;
8435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8436 (eval "$ac_compile") 2>conftest.er1
8438 grep -v '^ *+' conftest.er1 >conftest.err
8440 cat conftest.err >&5
8441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8442 (exit $ac_status); } && {
8443 test -z "$ac_c_werror_flag" ||
8444 test ! -s conftest.err
8445 } && test -s conftest.$ac_objext; then
8446 ac_cv_member_struct_ifreq_ifr_addr=yes
8448 echo "$as_me: failed program was:" >&5
8449 sed 's/^/| /' conftest.$ac_ext >&5
8451 cat >conftest.$ac_ext <<_ACEOF
8454 cat confdefs.h >>conftest.$ac_ext
8455 cat >>conftest.$ac_ext <<_ACEOF
8456 /* end confdefs.h. */
8457 $ac_includes_default
8458 #if HAVE_SYS_SOCKET_H
8459 #include <sys/socket.h>
8468 static struct ifreq ac_aggr;
8469 if (sizeof ac_aggr.ifr_addr)
8475 rm -f conftest.$ac_objext
8476 if { (ac_try="$ac_compile"
8478 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8479 *) ac_try_echo
=$ac_try;;
8481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8482 (eval "$ac_compile") 2>conftest.er1
8484 grep -v '^ *+' conftest.er1
>conftest.err
8486 cat conftest.err
>&5
8487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8488 (exit $ac_status); } && {
8489 test -z "$ac_c_werror_flag" ||
8490 test ! -s conftest.err
8491 } && test -s conftest.
$ac_objext; then
8492 ac_cv_member_struct_ifreq_ifr_addr
=yes
8494 echo "$as_me: failed program was:" >&5
8495 sed 's/^/| /' conftest.
$ac_ext >&5
8497 ac_cv_member_struct_ifreq_ifr_addr
=no
8500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8503 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8505 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8506 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8507 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8509 cat >>confdefs.h
<<_ACEOF
8510 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8518 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8519 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8520 if test "$ac_cv_prog_cc_c89" != no
; then
8521 { echo "$as_me:$LINENO: result: yes" >&5
8522 echo "${ECHO_T}yes" >&6; }
8524 cat >>confdefs.h
<<\_ACEOF
8525 #define PROTOTYPES 1
8529 cat >>confdefs.h
<<\_ACEOF
8530 #define __PROTOTYPES 1
8534 { echo "$as_me:$LINENO: result: no" >&5
8535 echo "${ECHO_T}no" >&6; }
8538 { echo "$as_me:$LINENO: checking for working volatile" >&5
8539 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8540 if test "${ac_cv_c_volatile+set}" = set; then
8541 echo $ECHO_N "(cached) $ECHO_C" >&6
8543 cat >conftest.
$ac_ext <<_ACEOF
8546 cat confdefs.h
>>conftest.
$ac_ext
8547 cat >>conftest.
$ac_ext <<_ACEOF
8548 /* end confdefs.h. */
8555 int * volatile y = (int *) 0;
8561 rm -f conftest.
$ac_objext
8562 if { (ac_try
="$ac_compile"
8564 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8565 *) ac_try_echo=$ac_try;;
8567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8568 (eval "$ac_compile") 2>conftest.er1
8570 grep -v '^ *+' conftest.er1 >conftest.err
8572 cat conftest.err >&5
8573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8574 (exit $ac_status); } && {
8575 test -z "$ac_c_werror_flag" ||
8576 test ! -s conftest.err
8577 } && test -s conftest.$ac_objext; then
8578 ac_cv_c_volatile=yes
8580 echo "$as_me: failed program was:" >&5
8581 sed 's/^/| /' conftest.$ac_ext >&5
8586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8588 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8589 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8590 if test $ac_cv_c_volatile = no; then
8592 cat >>confdefs.h <<\_ACEOF
8598 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8599 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8600 if test "${ac_cv_c_const+set}" = set; then
8601 echo $ECHO_N "(cached) $ECHO_C" >&6
8603 cat >conftest.$ac_ext <<_ACEOF
8606 cat confdefs.h >>conftest.$ac_ext
8607 cat >>conftest.$ac_ext <<_ACEOF
8608 /* end confdefs.h. */
8613 /* FIXME: Include the comments suggested by Paul. */
8615 /* Ultrix mips cc rejects this. */
8616 typedef int charset[2];
8618 /* SunOS 4.1.1 cc rejects this. */
8619 char const *const *pcpcc;
8621 /* NEC SVR4.0.2 mips cc rejects this. */
8622 struct point {int x, y;};
8623 static struct point const zero = {0,0};
8624 /* AIX XL C 1.02.0.0 rejects this.
8625 It does not let you subtract one const X* pointer from another in
8626 an arm of an if-expression whose if-part is not a constant
8628 const char *g = "string";
8629 pcpcc = &g + (g ? g-g : 0);
8630 /* HPUX 7.0 cc rejects these. */
8632 ppc = (char**) pcpcc;
8633 pcpcc = (char const *const *) ppc;
8634 { /* SCO 3.2v4 cc rejects this. */
8636 char const *s = 0 ? (char *) 0 : (char const *) 0;
8641 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8643 const int *foo = &x[0];
8646 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8647 typedef const int *iptr;
8651 { /* AIX XL C 1.02.0.0 rejects this saying
8652 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8653 struct s { int j; const int *ap[3]; };
8654 struct s *b; b->j = 5;
8656 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8660 return !cs[0] && !zero.x;
8667 rm -f conftest.$ac_objext
8668 if { (ac_try="$ac_compile"
8670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8671 *) ac_try_echo
=$ac_try;;
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_compile") 2>conftest.er1
8676 grep -v '^ *+' conftest.er1
>conftest.err
8678 cat conftest.err
>&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } && {
8681 test -z "$ac_c_werror_flag" ||
8682 test ! -s conftest.err
8683 } && test -s conftest.
$ac_objext; then
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.
$ac_ext >&5
8692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8694 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8695 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8696 if test $ac_cv_c_const = no
; then
8698 cat >>confdefs.h
<<\_ACEOF
8704 { echo "$as_me:$LINENO: checking for void * support" >&5
8705 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8706 if test "${emacs_cv_void_star+set}" = set; then
8707 echo $ECHO_N "(cached) $ECHO_C" >&6
8709 cat >conftest.
$ac_ext <<_ACEOF
8712 cat confdefs.h
>>conftest.
$ac_ext
8713 cat >>conftest.
$ac_ext <<_ACEOF
8714 /* end confdefs.h. */
8724 rm -f conftest.
$ac_objext
8725 if { (ac_try
="$ac_compile"
8727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8728 *) ac_try_echo=$ac_try;;
8730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8731 (eval "$ac_compile") 2>conftest.er1
8733 grep -v '^ *+' conftest.er1 >conftest.err
8735 cat conftest.err >&5
8736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8737 (exit $ac_status); } && {
8738 test -z "$ac_c_werror_flag" ||
8739 test ! -s conftest.err
8740 } && test -s conftest.$ac_objext; then
8741 emacs_cv_void_star=yes
8743 echo "$as_me: failed program was:" >&5
8744 sed 's/^/| /' conftest.$ac_ext >&5
8746 emacs_cv_void_star=no
8749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8751 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8752 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8753 if test $emacs_cv_void_star = yes; then
8754 cat >>confdefs.h <<\_ACEOF
8755 #define POINTER_TYPE void
8759 cat >>confdefs.h <<\_ACEOF
8760 #define POINTER_TYPE char
8769 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8770 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8771 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8772 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8773 echo $ECHO_N "(cached) $ECHO_C" >&6
8775 cat >conftest.make <<\_ACEOF
8778 @echo '@@@%%%=$(MAKE)=@@@%%%'
8780 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8781 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8783 eval ac_cv_prog_make_${ac_make}_set=yes;;
8785 eval ac_cv_prog_make_${ac_make}_set=no;;
8789 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8790 { echo "$as_me:$LINENO: result: yes" >&5
8791 echo "${ECHO_T}yes" >&6; }
8794 { echo "$as_me:$LINENO: result: no" >&5
8795 echo "${ECHO_T}no" >&6; }
8796 SET_MAKE="MAKE=${MAKE-make}"
8800 { echo "$as_me:$LINENO: checking for long file names" >&5
8801 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8802 if test "${ac_cv_sys_long_file_names+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 ac_cv_sys_long_file_names=yes
8806 # Test for long file names in all the places we know might matter:
8807 # . the current directory, where building will happen
8808 # $prefix/lib where we will be installing things
8809 # $exec_prefix/lib likewise
8810 # $TMPDIR if set, where it might want to write temporary files
8811 # /tmp where it might want to write temporary files
8814 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8815 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8816 # in the usual case where exec_prefix is '${prefix}'.
8818 . | /* | ?:[\\/]*) ;; #(
8821 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8822 ac_xdir=$ac_dir/cf$$
8823 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8824 ac_tf1=$ac_xdir/conftest9012345
8825 ac_tf2=$ac_xdir/conftest9012346
8826 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8827 ac_cv_sys_long_file_names=no
8828 rm -f -r "$ac_xdir" 2>/dev/null
8829 test $ac_cv_sys_long_file_names = no && break
8832 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8833 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8834 if test $ac_cv_sys_long_file_names = yes; then
8836 cat >>confdefs.h <<\_ACEOF
8837 #define HAVE_LONG_FILE_NAMES 1
8843 #### Choose a window system.
8845 { echo "$as_me:$LINENO: checking for X" >&5
8846 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8849 # Check whether --with-x was given.
8850 if test "${with_x+set}" = set; then
8854 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8855 if test "x$with_x" = xno; then
8856 # The user explicitly disabled X.
8859 case $x_includes,$x_libraries in #(
8860 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8861 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8862 { (exit 1); exit 1; }; };; #(
8863 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8864 echo $ECHO_N "(cached) $ECHO_C" >&6
8866 # One or both of the vars are not set, and there is no cached value.
8867 ac_x_includes=no ac_x_libraries=no
8868 rm -f -r conftest.dir
8869 if mkdir conftest.dir; then
8871 cat >Imakefile <<'_ACEOF'
8873 @echo incroot='${INCROOT}'
8875 @echo usrlibdir='${USRLIBDIR}'
8877 @echo libdir='${LIBDIR}'
8879 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8880 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8881 for ac_var in incroot usrlibdir libdir; do
8882 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8884 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8885 for ac_extension in a so sl; do
8886 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8887 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8888 ac_im_usrlibdir=$ac_im_libdir; break
8891 # Screen out bogus values from the imake configuration. They are
8892 # bogus both because they are the default anyway, and because
8893 # using them would break gcc on systems where it needs fixed includes.
8894 case $ac_im_incroot in
8895 /usr/include) ac_x_includes= ;;
8896 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8898 case $ac_im_usrlibdir in
8900 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8904 rm -f -r conftest.dir
8907 # Standard set of common directories for X headers.
8908 # Check X11 before X11Rn because it is often a symlink to the current release.
8920 /usr/local/X11/include
8921 /usr/local/X11R6/include
8922 /usr/local/X11R5/include
8923 /usr/local/X11R4/include
8925 /usr/local/include/X11
8926 /usr/local/include/X11R6
8927 /usr/local/include/X11R5
8928 /usr/local/include/X11R4
8932 /usr/XFree86/include/X11
8936 /usr/unsupported/include
8938 /usr/local/x11r5/include
8939 /usr/lpp/Xamples/include
8941 /usr/openwin/include
8942 /usr/openwin/share/include'
8944 if test "$ac_x_includes" = no; then
8945 # Guess where to find include files, by looking for Xlib.h.
8946 # First, try using that file with no special directory specified.
8947 cat >conftest.$ac_ext <<_ACEOF
8950 cat confdefs.h >>conftest.$ac_ext
8951 cat >>conftest.$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8953 #include <X11/Xlib.h>
8955 if { (ac_try="$ac_cpp conftest.$ac_ext"
8957 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8958 *) ac_try_echo
=$ac_try;;
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8963 grep -v '^ *+' conftest.er1
>conftest.err
8965 cat conftest.err
>&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } >/dev
/null
&& {
8968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8969 test ! -s conftest.err
8971 # We can compile using X headers with no special include directory.
8974 echo "$as_me: failed program was:" >&5
8975 sed 's/^/| /' conftest.
$ac_ext >&5
8977 for ac_dir
in $ac_x_header_dirs; do
8978 if test -r "$ac_dir/X11/Xlib.h"; then
8979 ac_x_includes
=$ac_dir
8985 rm -f conftest.err conftest.
$ac_ext
8986 fi # $ac_x_includes = no
8988 if test "$ac_x_libraries" = no
; then
8989 # Check for the libraries.
8990 # See if we find them without any special options.
8991 # Don't add to $LIBS permanently.
8994 cat >conftest.
$ac_ext <<_ACEOF
8997 cat confdefs.h
>>conftest.
$ac_ext
8998 cat >>conftest.
$ac_ext <<_ACEOF
8999 /* end confdefs.h. */
9000 #include <X11/Xlib.h>
9009 rm -f conftest.
$ac_objext conftest
$ac_exeext
9010 if { (ac_try
="$ac_link"
9012 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9013 *) ac_try_echo=$ac_try;;
9015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9016 (eval "$ac_link") 2>conftest.er1
9018 grep -v '^ *+' conftest.er1 >conftest.err
9020 cat conftest.err >&5
9021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9022 (exit $ac_status); } && {
9023 test -z "$ac_c_werror_flag" ||
9024 test ! -s conftest.err
9025 } && test -s conftest$ac_exeext &&
9026 $as_test_x conftest$ac_exeext; then
9028 # We can link X programs with no special library path.
9031 echo "$as_me: failed program was:" >&5
9032 sed 's/^/| /' conftest.$ac_ext >&5
9035 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9037 # Don't even attempt the hair of trying to link an X program!
9038 for ac_extension in a so sl; do
9039 if test -r "$ac_dir/libX11.$ac_extension"; then
9040 ac_x_libraries=$ac_dir
9047 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9048 conftest$ac_exeext conftest.$ac_ext
9049 fi # $ac_x_libraries = no
9051 case $ac_x_includes,$ac_x_libraries in #(
9053 # Didn't find X, or a directory has "'" in its name.
9054 ac_cv_have_x="have_x=no";; #(
9056 # Record where we found X for the cache.
9057 ac_cv_have_x="have_x=yes\
9058 ac_x_includes='$ac_x_includes'\
9059 ac_x_libraries='$ac_x_libraries'"
9065 eval "$ac_cv_have_x"
9068 if test "$have_x" != yes; then
9069 { echo "$as_me:$LINENO: result: $have_x" >&5
9070 echo "${ECHO_T}$have_x" >&6; }
9073 # If each of the values was on the command line, it overrides each guess.
9074 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9075 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9076 # Update the cache value to reflect the command line values.
9077 ac_cv_have_x="have_x=yes\
9078 ac_x_includes='$x_includes'\
9079 ac_x_libraries='$x_libraries'"
9080 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9081 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9084 if test "$no_x" = yes; then
9090 if test "${x_libraries}" != NONE; then
9091 if test -n "${x_libraries}"; then
9092 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9093 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9095 x_default_search_path=""
9096 x_search_path=${x_libraries}
9097 if test -z "${x_search_path}"; then
9098 x_search_path=/usr/lib
9100 for x_library in `echo ${x_search_path}: | \
9101 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9103 ${x_library}/X11/%L/%T/%N%C%S:\
9104 ${x_library}/X11/%l/%T/%N%C%S:\
9105 ${x_library}/X11/%T/%N%C%S:\
9106 ${x_library}/X11/%L/%T/%N%S:\
9107 ${x_library}/X11/%l/%T/%N%S:\
9108 ${x_library}/X11/%T/%N%S"
9109 if test x"${x_default_search_path}" = x; then
9110 x_default_search_path=${x_search_path}
9112 x_default_search_path="${x_search_path}:${x_default_search_path}"
9116 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9117 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9120 if test x"${x_includes}" = x; then
9121 bitmapdir=/usr/include/X11/bitmaps
9123 # accumulate include directories that have X11 bitmap subdirectories
9125 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9126 if test -d "${bmd}/X11/bitmaps"; then
9127 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9129 if test -d "${bmd}/bitmaps"; then
9130 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9133 if test ${bmd_acc} != "dummyval"; then
9134 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9139 if test "${with_carbon}" != no; then
9140 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9141 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9142 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9143 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9144 echo $ECHO_N "(cached) $ECHO_C" >&6
9146 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9147 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9149 # Is the header compilable?
9150 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9151 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9152 cat >conftest.$ac_ext <<_ACEOF
9155 cat confdefs.h >>conftest.$ac_ext
9156 cat >>conftest.$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 $ac_includes_default
9159 #include <Carbon/Carbon.h>
9161 rm -f conftest.$ac_objext
9162 if { (ac_try="$ac_compile"
9164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9165 *) ac_try_echo
=$ac_try;;
9167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9168 (eval "$ac_compile") 2>conftest.er1
9170 grep -v '^ *+' conftest.er1
>conftest.err
9172 cat conftest.err
>&5
9173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9174 (exit $ac_status); } && {
9175 test -z "$ac_c_werror_flag" ||
9176 test ! -s conftest.err
9177 } && test -s conftest.
$ac_objext; then
9178 ac_header_compiler
=yes
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.
$ac_ext >&5
9183 ac_header_compiler
=no
9186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9187 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9188 echo "${ECHO_T}$ac_header_compiler" >&6; }
9190 # Is the header present?
9191 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9192 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9193 cat >conftest.
$ac_ext <<_ACEOF
9196 cat confdefs.h
>>conftest.
$ac_ext
9197 cat >>conftest.
$ac_ext <<_ACEOF
9198 /* end confdefs.h. */
9199 #include <Carbon/Carbon.h>
9201 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9204 *) ac_try_echo=$ac_try;;
9206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9209 grep -v '^ *+' conftest.er1 >conftest.err
9211 cat conftest.err >&5
9212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9213 (exit $ac_status); } >/dev/null && {
9214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9215 test ! -s conftest.err
9217 ac_header_preproc=yes
9219 echo "$as_me: failed program was:" >&5
9220 sed 's/^/| /' conftest.$ac_ext >&5
9222 ac_header_preproc=no
9225 rm -f conftest.err conftest.$ac_ext
9226 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9227 echo "${ECHO_T}$ac_header_preproc" >&6; }
9229 # So? What about this header?
9230 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9232 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9233 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9234 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9235 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9236 ac_header_preproc=yes
9239 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9240 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9241 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9242 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9243 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9244 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9245 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9246 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9247 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9248 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9249 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9250 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9254 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9255 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9256 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9257 echo $ECHO_N "(cached) $ECHO_C" >&6
9259 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9261 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9262 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9265 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9271 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9272 if test "${with_carbon+set}" != set \
9273 && test "${carbon_appdir_x+set}" != set; then
9274 for var in with_x with_x_toolkit with_gtk with_xim \
9275 with_xpm with_jpeg with_tiff with_gif with_png; do
9276 if eval test \"\${$var+set}\" = set; then
9283 if test "${HAVE_CARBON}" = yes; then
9287 case "${window_system}" in
9291 case "${with_x_toolkit}" in
9292 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9293 motif ) USE_X_TOOLKIT=MOTIF ;;
9295 USE_X_TOOLKIT=none ;;
9296 no ) USE_X_TOOLKIT=none ;;
9298 if test x"$with_gtk" = xyes; then
9313 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9314 # Extract the first word of "X", so it can be a program name with args.
9315 set dummy X; ac_word=$2
9316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9318 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9319 echo $ECHO_N "(cached) $ECHO_C" >&6
9321 if test -n "$HAVE_XSERVER"; then
9322 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9328 test -z "$as_dir" && as_dir=.
9329 for ac_exec_ext in '' $ac_executable_extensions; do
9330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9331 ac_cv_prog_HAVE_XSERVER="true"
9332 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9339 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9342 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9343 if test -n "$HAVE_XSERVER"; then
9344 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9345 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9347 { echo "$as_me:$LINENO: result: no" >&5
9348 echo "${ECHO_T}no" >&6; }
9352 if test "$HAVE_XSERVER" = true ||
9353 test -n "$DISPLAY" ||
9354 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9355 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9356 were found. You should install the relevant development files for X
9357 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9358 sure you have development files for image handling, i.e.
9359 tiff, gif, jpeg, png and xpm.
9360 If you are sure you want Emacs compiled without X window support, pass
9363 echo "$as_me: error: You seem to be running X, but no X development libraries
9364 were found. You should install the relevant development files for X
9365 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9366 sure you have development files for image handling, i.e.
9367 tiff, gif, jpeg, png and xpm.
9368 If you are sure you want Emacs compiled without X window support, pass
9370 to configure." >&2;}
9371 { (exit 1); exit 1; }; }
9375 ### If we're using X11, we should use the X menu package.
9378 yes ) HAVE_MENUS=yes ;;
9381 ### Compute the unexec source name from the object name.
9382 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9384 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9385 # Assume not, until told otherwise.
9388 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9389 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9390 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9391 echo $ECHO_N "(cached) $ECHO_C" >&6
9393 cat >conftest.$ac_ext <<_ACEOF
9396 cat confdefs.h >>conftest.$ac_ext
9397 cat >>conftest.$ac_ext <<_ACEOF
9398 /* end confdefs.h. */
9399 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9401 #define malloc_get_state innocuous_malloc_get_state
9403 /* System header to define __stub macros and hopefully few prototypes,
9404 which can conflict with char malloc_get_state (); below.
9405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9406 <limits.h> exists even on freestanding compilers. */
9409 # include <limits.h>
9411 # include <assert.h>
9414 #undef malloc_get_state
9416 /* Override any GCC internal prototype to avoid an error.
9417 Use char because int might match the return type of a GCC
9418 builtin and then its argument prototype would still apply. */
9422 char malloc_get_state ();
9423 /* The GNU C library defines this for functions which it implements
9424 to always fail with ENOSYS. Some functions are actually named
9425 something starting with __ and the normal name is an alias. */
9426 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9433 return malloc_get_state ();
9438 rm -f conftest.$ac_objext conftest$ac_exeext
9439 if { (ac_try="$ac_link"
9441 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9442 *) ac_try_echo
=$ac_try;;
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_link") 2>conftest.er1
9447 grep -v '^ *+' conftest.er1
>conftest.err
9449 cat conftest.err
>&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } && {
9452 test -z "$ac_c_werror_flag" ||
9453 test ! -s conftest.err
9454 } && test -s conftest
$ac_exeext &&
9455 $as_test_x conftest
$ac_exeext; then
9456 ac_cv_func_malloc_get_state
=yes
9458 echo "$as_me: failed program was:" >&5
9459 sed 's/^/| /' conftest.
$ac_ext >&5
9461 ac_cv_func_malloc_get_state
=no
9464 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9465 conftest
$ac_exeext conftest.
$ac_ext
9467 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9468 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9469 if test $ac_cv_func_malloc_get_state = yes; then
9475 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9476 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9477 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9478 echo $ECHO_N "(cached) $ECHO_C" >&6
9480 cat >conftest.
$ac_ext <<_ACEOF
9483 cat confdefs.h
>>conftest.
$ac_ext
9484 cat >>conftest.
$ac_ext <<_ACEOF
9485 /* end confdefs.h. */
9486 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9488 #define malloc_set_state innocuous_malloc_set_state
9490 /* System header to define __stub macros and hopefully few prototypes,
9491 which can conflict with char malloc_set_state (); below.
9492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9493 <limits.h> exists even on freestanding compilers. */
9496 # include <limits.h>
9498 # include <assert.h>
9501 #undef malloc_set_state
9503 /* Override any GCC internal prototype to avoid an error.
9504 Use char because int might match the return type of a GCC
9505 builtin and then its argument prototype would still apply. */
9509 char malloc_set_state ();
9510 /* The GNU C library defines this for functions which it implements
9511 to always fail with ENOSYS. Some functions are actually named
9512 something starting with __ and the normal name is an alias. */
9513 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9520 return malloc_set_state ();
9525 rm -f conftest.
$ac_objext conftest
$ac_exeext
9526 if { (ac_try
="$ac_link"
9528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9529 *) ac_try_echo=$ac_try;;
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532 (eval "$ac_link") 2>conftest.er1
9534 grep -v '^ *+' conftest.er1 >conftest.err
9536 cat conftest.err >&5
9537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538 (exit $ac_status); } && {
9539 test -z "$ac_c_werror_flag" ||
9540 test ! -s conftest.err
9541 } && test -s conftest$ac_exeext &&
9542 $as_test_x conftest$ac_exeext; then
9543 ac_cv_func_malloc_set_state=yes
9545 echo "$as_me: failed program was:" >&5
9546 sed 's/^/| /' conftest.$ac_ext >&5
9548 ac_cv_func_malloc_set_state=no
9551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9552 conftest$ac_exeext conftest.$ac_ext
9554 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9555 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9556 if test $ac_cv_func_malloc_set_state = yes; then
9562 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9563 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9564 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9567 cat >conftest.$ac_ext <<_ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573 extern void (* __after_morecore_hook)();
9577 __after_morecore_hook = 0
9582 rm -f conftest.$ac_objext conftest$ac_exeext
9583 if { (ac_try="$ac_link"
9585 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9586 *) ac_try_echo
=$ac_try;;
9588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9589 (eval "$ac_link") 2>conftest.er1
9591 grep -v '^ *+' conftest.er1
>conftest.err
9593 cat conftest.err
>&5
9594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9595 (exit $ac_status); } && {
9596 test -z "$ac_c_werror_flag" ||
9597 test ! -s conftest.err
9598 } && test -s conftest
$ac_exeext &&
9599 $as_test_x conftest
$ac_exeext; then
9600 emacs_cv_var___after_morecore_hook
=yes
9602 echo "$as_me: failed program was:" >&5
9603 sed 's/^/| /' conftest.
$ac_ext >&5
9605 emacs_cv_var___after_morecore_hook
=no
9608 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9609 conftest
$ac_exeext conftest.
$ac_ext
9611 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9612 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9613 if test $emacs_cv_var___after_morecore_hook = no
; then
9616 if test "${system_malloc}" = "yes"; then
9619 (The GNU allocators don't work with this system configuration.)"
9621 if test "$doug_lea_malloc" = "yes" ; then
9622 if test "$GNU_MALLOC" = yes ; then
9624 (Using Doug Lea's new malloc from the GNU C Library.)"
9627 cat >>confdefs.h
<<\_ACEOF
9628 #define DOUG_LEA_MALLOC 1
9633 if test x
"${REL_ALLOC}" = x
; then
9634 REL_ALLOC
=${GNU_MALLOC}
9640 for ac_header
in stdlib.h unistd.h
9642 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9643 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9646 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9647 echo $ECHO_N "(cached) $ECHO_C" >&6
9649 ac_res
=`eval echo '${'$as_ac_Header'}'`
9650 { echo "$as_me:$LINENO: result: $ac_res" >&5
9651 echo "${ECHO_T}$ac_res" >&6; }
9653 # Is the header compilable?
9654 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9655 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9656 cat >conftest.
$ac_ext <<_ACEOF
9659 cat confdefs.h
>>conftest.
$ac_ext
9660 cat >>conftest.
$ac_ext <<_ACEOF
9661 /* end confdefs.h. */
9662 $ac_includes_default
9663 #include <$ac_header>
9665 rm -f conftest.
$ac_objext
9666 if { (ac_try
="$ac_compile"
9668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9669 *) ac_try_echo=$ac_try;;
9671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9672 (eval "$ac_compile") 2>conftest.er1
9674 grep -v '^ *+' conftest.er1 >conftest.err
9676 cat conftest.err >&5
9677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9678 (exit $ac_status); } && {
9679 test -z "$ac_c_werror_flag" ||
9680 test ! -s conftest.err
9681 } && test -s conftest.$ac_objext; then
9682 ac_header_compiler=yes
9684 echo "$as_me: failed program was:" >&5
9685 sed 's/^/| /' conftest.$ac_ext >&5
9687 ac_header_compiler=no
9690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9692 echo "${ECHO_T}$ac_header_compiler" >&6; }
9694 # Is the header present?
9695 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9696 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9697 cat >conftest.$ac_ext <<_ACEOF
9700 cat confdefs.h >>conftest.$ac_ext
9701 cat >>conftest.$ac_ext <<_ACEOF
9702 /* end confdefs.h. */
9703 #include <$ac_header>
9705 if { (ac_try="$ac_cpp conftest.$ac_ext"
9707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9708 *) ac_try_echo
=$ac_try;;
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9713 grep -v '^ *+' conftest.er1
>conftest.err
9715 cat conftest.err
>&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } >/dev
/null
&& {
9718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9719 test ! -s conftest.err
9721 ac_header_preproc
=yes
9723 echo "$as_me: failed program was:" >&5
9724 sed 's/^/| /' conftest.
$ac_ext >&5
9726 ac_header_preproc
=no
9729 rm -f conftest.err conftest.
$ac_ext
9730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9731 echo "${ECHO_T}$ac_header_preproc" >&6; }
9733 # So? What about this header?
9734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9736 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9737 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9738 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9739 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9740 ac_header_preproc
=yes
9743 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9744 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9745 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9746 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9747 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9748 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9749 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9750 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9751 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9752 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9753 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9754 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9758 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9759 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9760 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 eval "$as_ac_Header=\$ac_header_preproc"
9765 ac_res
=`eval echo '${'$as_ac_Header'}'`
9766 { echo "$as_me:$LINENO: result: $ac_res" >&5
9767 echo "${ECHO_T}$ac_res" >&6; }
9770 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9771 cat >>confdefs.h
<<_ACEOF
9772 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9780 for ac_func
in getpagesize
9782 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9783 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9784 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9785 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9786 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 cat >conftest.
$ac_ext <<_ACEOF
9791 cat confdefs.h
>>conftest.
$ac_ext
9792 cat >>conftest.
$ac_ext <<_ACEOF
9793 /* end confdefs.h. */
9794 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9795 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9796 #define $ac_func innocuous_$ac_func
9798 /* System header to define __stub macros and hopefully few prototypes,
9799 which can conflict with char $ac_func (); below.
9800 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9801 <limits.h> exists even on freestanding compilers. */
9804 # include <limits.h>
9806 # include <assert.h>
9811 /* Override any GCC internal prototype to avoid an error.
9812 Use char because int might match the return type of a GCC
9813 builtin and then its argument prototype would still apply. */
9818 /* The GNU C library defines this for functions which it implements
9819 to always fail with ENOSYS. Some functions are actually named
9820 something starting with __ and the normal name is an alias. */
9821 #if defined __stub_$ac_func || defined __stub___$ac_func
9833 rm -f conftest.
$ac_objext conftest
$ac_exeext
9834 if { (ac_try
="$ac_link"
9836 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9837 *) ac_try_echo=$ac_try;;
9839 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9840 (eval "$ac_link") 2>conftest.er1
9842 grep -v '^ *+' conftest.er1 >conftest.err
9844 cat conftest.err >&5
9845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9846 (exit $ac_status); } && {
9847 test -z "$ac_c_werror_flag" ||
9848 test ! -s conftest.err
9849 } && test -s conftest$ac_exeext &&
9850 $as_test_x conftest$ac_exeext; then
9851 eval "$as_ac_var=yes"
9853 echo "$as_me: failed program was:" >&5
9854 sed 's/^/| /' conftest.$ac_ext >&5
9856 eval "$as_ac_var=no"
9859 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9860 conftest$ac_exeext conftest.$ac_ext
9862 ac_res=`eval echo '${'$as_ac_var'}'`
9863 { echo "$as_me:$LINENO: result: $ac_res" >&5
9864 echo "${ECHO_T}$ac_res" >&6; }
9865 if test `eval echo '${'$as_ac_var'}'` = yes; then
9866 cat >>confdefs.h <<_ACEOF
9867 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9873 { echo "$as_me:$LINENO: checking for working mmap" >&5
9874 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9875 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9876 echo $ECHO_N "(cached) $ECHO_C" >&6
9878 if test "$cross_compiling" = yes; then
9879 ac_cv_func_mmap_fixed_mapped=no
9881 cat >conftest.$ac_ext <<_ACEOF
9884 cat confdefs.h >>conftest.$ac_ext
9885 cat >>conftest.$ac_ext <<_ACEOF
9886 /* end confdefs.h. */
9887 $ac_includes_default
9888 /* malloc might have been renamed as rpl_malloc. */
9891 /* Thanks to Mike Haertel and Jim Avera for this test.
9892 Here is a matrix of mmap possibilities:
9893 mmap private not fixed
9894 mmap private fixed at somewhere currently unmapped
9895 mmap private fixed at somewhere already mapped
9896 mmap shared not fixed
9897 mmap shared fixed at somewhere currently unmapped
9898 mmap shared fixed at somewhere already mapped
9899 For private mappings, we should verify that changes cannot be read()
9900 back from the file, nor mmap's back from the file at a different
9901 address. (There have been systems where private was not correctly
9902 implemented like the infamous i386 svr4.0, and systems where the
9903 VM page cache was not coherent with the file system buffer cache
9904 like early versions of FreeBSD and possibly contemporary NetBSD.)
9905 For shared mappings, we should conversely verify that changes get
9906 propagated back to all the places they're supposed to be.
9908 Grep wants private fixed already mapped.
9909 The main things grep needs to know about mmap are:
9910 * does it exist and is it safe to write into the mmap'd area
9911 * how to use it (BSD variants) */
9914 #include <sys/mman.h>
9916 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9920 /* This mess was copied from the GNU getpagesize.h. */
9921 #ifndef HAVE_GETPAGESIZE
9922 /* Assume that all systems that can run configure have sys/param.h. */
9923 # ifndef HAVE_SYS_PARAM_H
9924 # define HAVE_SYS_PARAM_H 1
9927 # ifdef _SC_PAGESIZE
9928 # define getpagesize() sysconf(_SC_PAGESIZE)
9929 # else /* no _SC_PAGESIZE */
9930 # ifdef HAVE_SYS_PARAM_H
9931 # include <sys/param.h>
9932 # ifdef EXEC_PAGESIZE
9933 # define getpagesize() EXEC_PAGESIZE
9934 # else /* no EXEC_PAGESIZE */
9936 # define getpagesize() NBPG * CLSIZE
9939 # endif /* no CLSIZE */
9940 # else /* no NBPG */
9942 # define getpagesize() NBPC
9943 # else /* no NBPC */
9945 # define getpagesize() PAGESIZE
9946 # endif /* PAGESIZE */
9947 # endif /* no NBPC */
9948 # endif /* no NBPG */
9949 # endif /* no EXEC_PAGESIZE */
9950 # else /* no HAVE_SYS_PARAM_H */
9951 # define getpagesize() 8192 /* punt totally */
9952 # endif /* no HAVE_SYS_PARAM_H */
9953 # endif /* no _SC_PAGESIZE */
9955 #endif /* no HAVE_GETPAGESIZE */
9960 char *data, *data2, *data3;
9964 pagesize = getpagesize ();
9966 /* First, make a file with some known garbage in it. */
9967 data = (char *) malloc (pagesize);
9970 for (i = 0; i < pagesize; ++i)
9971 *(data + i) = rand ();
9973 fd = creat ("conftest.mmap", 0600);
9976 if (write (fd, data, pagesize) != pagesize)
9980 /* Next, try to mmap the file at a fixed address which already has
9981 something else allocated at it. If we can, also make sure that
9982 we see the same garbage. */
9983 fd = open ("conftest.mmap", O_RDWR);
9986 data2 = (char *) malloc (2 * pagesize);
9989 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9990 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9991 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9993 for (i = 0; i < pagesize; ++i)
9994 if (*(data + i) != *(data2 + i))
9997 /* Finally, make sure that changes to the mapped area do not
9998 percolate back to the file as seen by read(). (This is a bug on
9999 some variants of i386 svr4.0.) */
10000 for (i = 0; i < pagesize; ++i)
10001 *(data2 + i) = *(data2 + i) + 1;
10002 data3 = (char *) malloc (pagesize);
10005 if (read (fd, data3, pagesize) != pagesize)
10007 for (i = 0; i < pagesize; ++i)
10008 if (*(data + i) != *(data3 + i))
10014 rm -f conftest$ac_exeext
10015 if { (ac_try="$ac_link"
10016 case "(($ac_try" in
10017 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10018 *) ac_try_echo
=$ac_try;;
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_link") 2>&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10025 { (case "(($ac_try" in
10026 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10027 *) ac_try_echo=$ac_try;;
10029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10030 (eval "$ac_try") 2>&5
10032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10033 (exit $ac_status); }; }; then
10034 ac_cv_func_mmap_fixed_mapped=yes
10036 echo "$as_me: program exited with status $ac_status" >&5
10037 echo "$as_me: failed program was:" >&5
10038 sed 's/^/| /' conftest.$ac_ext >&5
10040 ( exit $ac_status )
10041 ac_cv_func_mmap_fixed_mapped=no
10043 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10048 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10049 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10050 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10052 cat >>confdefs.h <<\_ACEOF
10053 #define HAVE_MMAP 1
10057 rm -f conftest.mmap
10059 if test $use_mmap_for_buffers = yes; then
10063 LIBS="$libsrc_libs $LIBS"
10066 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10067 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10068 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10069 echo $ECHO_N "(cached) $ECHO_C" >&6
10071 ac_check_lib_save_LIBS=$LIBS
10072 LIBS="-ldnet $LIBS"
10073 cat >conftest.$ac_ext <<_ACEOF
10076 cat confdefs.h >>conftest.$ac_ext
10077 cat >>conftest.$ac_ext <<_ACEOF
10078 /* end confdefs.h. */
10080 /* Override any GCC internal prototype to avoid an error.
10081 Use char because int might match the return type of a GCC
10082 builtin and then its argument prototype would still apply. */
10090 return dnet_ntoa ();
10095 rm -f conftest.$ac_objext conftest$ac_exeext
10096 if { (ac_try="$ac_link"
10097 case "(($ac_try" in
10098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10099 *) ac_try_echo
=$ac_try;;
10101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10102 (eval "$ac_link") 2>conftest.er1
10104 grep -v '^ *+' conftest.er1
>conftest.err
10106 cat conftest.err
>&5
10107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10108 (exit $ac_status); } && {
10109 test -z "$ac_c_werror_flag" ||
10110 test ! -s conftest.err
10111 } && test -s conftest
$ac_exeext &&
10112 $as_test_x conftest
$ac_exeext; then
10113 ac_cv_lib_dnet_dnet_ntoa
=yes
10115 echo "$as_me: failed program was:" >&5
10116 sed 's/^/| /' conftest.
$ac_ext >&5
10118 ac_cv_lib_dnet_dnet_ntoa
=no
10121 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10122 conftest
$ac_exeext conftest.
$ac_ext
10123 LIBS
=$ac_check_lib_save_LIBS
10125 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10126 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10127 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10128 cat >>confdefs.h
<<_ACEOF
10129 #define HAVE_LIBDNET 1
10132 LIBS
="-ldnet $LIBS"
10137 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10138 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10139 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10142 ac_check_lib_save_LIBS
=$LIBS
10143 LIBS
="-lXbsd $LIBS"
10144 cat >conftest.
$ac_ext <<_ACEOF
10147 cat confdefs.h
>>conftest.
$ac_ext
10148 cat >>conftest.
$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10160 rm -f conftest.
$ac_objext conftest
$ac_exeext
10161 if { (ac_try
="$ac_link"
10162 case "(($ac_try" in
10163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10164 *) ac_try_echo=$ac_try;;
10166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10167 (eval "$ac_link") 2>conftest.er1
10169 grep -v '^ *+' conftest.er1 >conftest.err
10171 cat conftest.err >&5
10172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10173 (exit $ac_status); } && {
10174 test -z "$ac_c_werror_flag" ||
10175 test ! -s conftest.err
10176 } && test -s conftest$ac_exeext &&
10177 $as_test_x conftest$ac_exeext; then
10178 ac_cv_lib_Xbsd_main=yes
10180 echo "$as_me: failed program was:" >&5
10181 sed 's/^/| /' conftest.$ac_ext >&5
10183 ac_cv_lib_Xbsd_main=no
10186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10187 conftest$ac_exeext conftest.$ac_ext
10188 LIBS=$ac_check_lib_save_LIBS
10190 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10191 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10192 if test $ac_cv_lib_Xbsd_main = yes; then
10193 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10198 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10199 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10200 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10201 echo $ECHO_N "(cached) $ECHO_C" >&6
10203 ac_check_lib_save_LIBS=$LIBS
10204 LIBS="-lpthreads $LIBS"
10205 cat >conftest.$ac_ext <<_ACEOF
10208 cat confdefs.h >>conftest.$ac_ext
10209 cat >>conftest.$ac_ext <<_ACEOF
10210 /* end confdefs.h. */
10212 /* Override any GCC internal prototype to avoid an error.
10213 Use char because int might match the return type of a GCC
10214 builtin and then its argument prototype would still apply. */
10222 return cma_open ();
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (ac_try="$ac_link"
10229 case "(($ac_try" in
10230 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10231 *) ac_try_echo
=$ac_try;;
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10236 grep -v '^ *+' conftest.er1
>conftest.err
10238 cat conftest.err
>&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && {
10241 test -z "$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 } && test -s conftest
$ac_exeext &&
10244 $as_test_x conftest
$ac_exeext; then
10245 ac_cv_lib_pthreads_cma_open
=yes
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.
$ac_ext >&5
10250 ac_cv_lib_pthreads_cma_open
=no
10253 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10254 conftest
$ac_exeext conftest.
$ac_ext
10255 LIBS
=$ac_check_lib_save_LIBS
10257 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10258 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10259 if test $ac_cv_lib_pthreads_cma_open = yes; then
10260 cat >>confdefs.h
<<_ACEOF
10261 #define HAVE_LIBPTHREADS 1
10264 LIBS
="-lpthreads $LIBS"
10269 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10270 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10271 if test -d /usr
/X386
/include
; then
10273 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10277 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10278 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10283 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10284 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10285 if test "${gdb_cv_bigtoc+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10290 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10291 *) gdb_cv_bigtoc
=-bbigtoc ;;
10294 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10295 cat >conftest.
$ac_ext <<_ACEOF
10298 cat confdefs.h
>>conftest.
$ac_ext
10299 cat >>conftest.
$ac_ext <<_ACEOF
10300 /* end confdefs.h. */
10310 rm -f conftest.
$ac_objext conftest
$ac_exeext
10311 if { (ac_try
="$ac_link"
10312 case "(($ac_try" in
10313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10314 *) ac_try_echo=$ac_try;;
10316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10317 (eval "$ac_link") 2>conftest.er1
10319 grep -v '^ *+' conftest.er1 >conftest.err
10321 cat conftest.err >&5
10322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10323 (exit $ac_status); } && {
10324 test -z "$ac_c_werror_flag" ||
10325 test ! -s conftest.err
10326 } && test -s conftest$ac_exeext &&
10327 $as_test_x conftest$ac_exeext; then
10330 echo "$as_me: failed program was:" >&5
10331 sed 's/^/| /' conftest.$ac_ext >&5
10336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10337 conftest$ac_exeext conftest.$ac_ext
10340 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10341 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10345 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10346 # used for the tests that follow. We set them back to REAL_CFLAGS and
10347 # REAL_CPPFLAGS later on.
10349 REAL_CPPFLAGS="$CPPFLAGS"
10351 if test "${HAVE_X11}" = "yes"; then
10352 DEFS="$C_SWITCH_X_SITE $DEFS"
10353 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10355 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10356 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10358 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10359 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10360 # but it's more convenient here to set LD_RUN_PATH
10361 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10362 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10363 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10367 if test "${opsys}" = "gnu-linux"; then
10368 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10369 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10370 cat >conftest.$ac_ext <<_ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10380 XOpenDisplay ("foo");
10385 rm -f conftest.$ac_objext conftest$ac_exeext
10386 if { (ac_try="$ac_link"
10387 case "(($ac_try" in
10388 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10389 *) ac_try_echo
=$ac_try;;
10391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10392 (eval "$ac_link") 2>conftest.er1
10394 grep -v '^ *+' conftest.er1
>conftest.err
10396 cat conftest.err
>&5
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); } && {
10399 test -z "$ac_c_werror_flag" ||
10400 test ! -s conftest.err
10401 } && test -s conftest
$ac_exeext &&
10402 $as_test_x conftest
$ac_exeext; then
10403 xlinux_first_failure
=no
10405 echo "$as_me: failed program was:" >&5
10406 sed 's/^/| /' conftest.
$ac_ext >&5
10408 xlinux_first_failure
=yes
10411 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10412 conftest
$ac_exeext conftest.
$ac_ext
10413 if test "${xlinux_first_failure}" = "yes"; then
10414 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10415 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10416 OLD_CPPFLAGS
="$CPPFLAGS"
10418 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10419 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10420 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10421 LIBS
="$LIBS -b i486-linuxaout"
10422 cat >conftest.
$ac_ext <<_ACEOF
10425 cat confdefs.h
>>conftest.
$ac_ext
10426 cat >>conftest.
$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10432 XOpenDisplay ("foo");
10437 rm -f conftest.
$ac_objext conftest
$ac_exeext
10438 if { (ac_try
="$ac_link"
10439 case "(($ac_try" in
10440 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10441 *) ac_try_echo=$ac_try;;
10443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10444 (eval "$ac_link") 2>conftest.er1
10446 grep -v '^ *+' conftest.er1 >conftest.err
10448 cat conftest.err >&5
10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10450 (exit $ac_status); } && {
10451 test -z "$ac_c_werror_flag" ||
10452 test ! -s conftest.err
10453 } && test -s conftest$ac_exeext &&
10454 $as_test_x conftest$ac_exeext; then
10455 xlinux_second_failure=no
10457 echo "$as_me: failed program was:" >&5
10458 sed 's/^/| /' conftest.$ac_ext >&5
10460 xlinux_second_failure=yes
10463 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10464 conftest$ac_exeext conftest.$ac_ext
10465 if test "${xlinux_second_failure}" = "yes"; then
10466 # If we get the same failure with -b, there is no use adding -b.
10467 # So take it out. This plays safe.
10468 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10469 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10470 CPPFLAGS="$OLD_CPPFLAGS"
10472 { echo "$as_me:$LINENO: result: no" >&5
10473 echo "${ECHO_T}no" >&6; }
10475 { echo "$as_me:$LINENO: result: yes" >&5
10476 echo "${ECHO_T}yes" >&6; }
10479 { echo "$as_me:$LINENO: result: no" >&5
10480 echo "${ECHO_T}no" >&6; }
10484 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10485 # header files included from there.
10486 { echo "$as_me:$LINENO: checking for Xkb" >&5
10487 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10488 cat >conftest.$ac_ext <<_ACEOF
10491 cat confdefs.h >>conftest.$ac_ext
10492 cat >>conftest.$ac_ext <<_ACEOF
10493 /* end confdefs.h. */
10494 #include <X11/Xlib.h>
10495 #include <X11/XKBlib.h>
10499 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10504 rm -f conftest.$ac_objext conftest$ac_exeext
10505 if { (ac_try="$ac_link"
10506 case "(($ac_try" in
10507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10508 *) ac_try_echo
=$ac_try;;
10510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10511 (eval "$ac_link") 2>conftest.er1
10513 grep -v '^ *+' conftest.er1
>conftest.err
10515 cat conftest.err
>&5
10516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517 (exit $ac_status); } && {
10518 test -z "$ac_c_werror_flag" ||
10519 test ! -s conftest.err
10520 } && test -s conftest
$ac_exeext &&
10521 $as_test_x conftest
$ac_exeext; then
10524 echo "$as_me: failed program was:" >&5
10525 sed 's/^/| /' conftest.
$ac_ext >&5
10530 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10531 conftest
$ac_exeext conftest.
$ac_ext
10532 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10533 echo "${ECHO_T}$emacs_xkb" >&6; }
10534 if test $emacs_xkb = yes; then
10536 cat >>confdefs.h
<<\_ACEOF
10537 #define HAVE_XKBGETKEYBOARD 1
10546 for ac_func
in XrmSetDatabase XScreenResourceString \
10547 XScreenNumberOfScreen XSetWMProtocols
10549 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10550 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10551 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10552 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10553 echo $ECHO_N "(cached) $ECHO_C" >&6
10555 cat >conftest.
$ac_ext <<_ACEOF
10558 cat confdefs.h
>>conftest.
$ac_ext
10559 cat >>conftest.
$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10561 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10562 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10563 #define $ac_func innocuous_$ac_func
10565 /* System header to define __stub macros and hopefully few prototypes,
10566 which can conflict with char $ac_func (); below.
10567 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10568 <limits.h> exists even on freestanding compilers. */
10571 # include <limits.h>
10573 # include <assert.h>
10578 /* Override any GCC internal prototype to avoid an error.
10579 Use char because int might match the return type of a GCC
10580 builtin and then its argument prototype would still apply. */
10585 /* The GNU C library defines this for functions which it implements
10586 to always fail with ENOSYS. Some functions are actually named
10587 something starting with __ and the normal name is an alias. */
10588 #if defined __stub_$ac_func || defined __stub___$ac_func
10595 return $ac_func ();
10600 rm -f conftest.
$ac_objext conftest
$ac_exeext
10601 if { (ac_try
="$ac_link"
10602 case "(($ac_try" in
10603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10604 *) ac_try_echo=$ac_try;;
10606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10607 (eval "$ac_link") 2>conftest.er1
10609 grep -v '^ *+' conftest.er1 >conftest.err
10611 cat conftest.err >&5
10612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10613 (exit $ac_status); } && {
10614 test -z "$ac_c_werror_flag" ||
10615 test ! -s conftest.err
10616 } && test -s conftest$ac_exeext &&
10617 $as_test_x conftest$ac_exeext; then
10618 eval "$as_ac_var=yes"
10620 echo "$as_me: failed program was:" >&5
10621 sed 's/^/| /' conftest.$ac_ext >&5
10623 eval "$as_ac_var=no"
10626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10627 conftest$ac_exeext conftest.$ac_ext
10629 ac_res=`eval echo '${'$as_ac_var'}'`
10630 { echo "$as_me:$LINENO: result: $ac_res" >&5
10631 echo "${ECHO_T}$ac_res" >&6; }
10632 if test `eval echo '${'$as_ac_var'}'` = yes; then
10633 cat >>confdefs.h <<_ACEOF
10634 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10642 if test "${window_system}" = "x11"; then
10643 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10644 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10645 if test "${emacs_cv_x11_version_6+set}" = set; then
10646 echo $ECHO_N "(cached) $ECHO_C" >&6
10648 cat >conftest.$ac_ext <<_ACEOF
10651 cat confdefs.h >>conftest.$ac_ext
10652 cat >>conftest.$ac_ext <<_ACEOF
10653 /* end confdefs.h. */
10654 #include <X11/Xlib.h>
10658 #if XlibSpecificationRelease < 6
10666 rm -f conftest.$ac_objext conftest$ac_exeext
10667 if { (ac_try="$ac_link"
10668 case "(($ac_try" in
10669 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10670 *) ac_try_echo
=$ac_try;;
10672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10673 (eval "$ac_link") 2>conftest.er1
10675 grep -v '^ *+' conftest.er1
>conftest.err
10677 cat conftest.err
>&5
10678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10679 (exit $ac_status); } && {
10680 test -z "$ac_c_werror_flag" ||
10681 test ! -s conftest.err
10682 } && test -s conftest
$ac_exeext &&
10683 $as_test_x conftest
$ac_exeext; then
10684 emacs_cv_x11_version_6
=yes
10686 echo "$as_me: failed program was:" >&5
10687 sed 's/^/| /' conftest.
$ac_ext >&5
10689 emacs_cv_x11_version_6
=no
10692 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10693 conftest
$ac_exeext conftest.
$ac_ext
10696 if test $emacs_cv_x11_version_6 = yes; then
10697 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10698 echo "${ECHO_T}6 or newer" >&6; }
10700 cat >>confdefs.h
<<\_ACEOF
10701 #define HAVE_X11R6 1
10705 { echo "$as_me:$LINENO: result: before 6" >&5
10706 echo "${ECHO_T}before 6" >&6; }
10711 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10713 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10714 if test "${with_rsvg}" != "no"; then
10715 RSVG_REQUIRED
=2.0.0
10716 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10721 # Extract the first word of "pkg-config", so it can be a program name with args.
10722 set dummy pkg-config
; ac_word
=$2
10723 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10724 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10725 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10726 echo $ECHO_N "(cached) $ECHO_C" >&6
10728 case $PKG_CONFIG in
10730 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10734 for as_dir
in $PATH
10737 test -z "$as_dir" && as_dir
=.
10738 for ac_exec_ext
in '' $ac_executable_extensions; do
10739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10740 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10748 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10752 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10753 if test -n "$PKG_CONFIG"; then
10754 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10755 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10757 { echo "$as_me:$LINENO: result: no" >&5
10758 echo "${ECHO_T}no" >&6; }
10763 if test "$PKG_CONFIG" = "no" ; then
10766 PKG_CONFIG_MIN_VERSION
=0.9.0
10767 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10768 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10769 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10771 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10772 { echo "$as_me:$LINENO: result: yes" >&5
10773 echo "${ECHO_T}yes" >&6; }
10776 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10777 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10778 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10779 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10780 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10782 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10783 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10784 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10785 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10786 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10788 { echo "$as_me:$LINENO: result: no" >&5
10789 echo "${ECHO_T}no" >&6; }
10792 ## If we have a custom action on failure, don't print errors, but
10793 ## do set a variable so people can do so.
10794 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10801 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10802 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10806 if test $succeeded = yes; then
10815 if test ".${RSVG_CFLAGS}" != "."; then
10818 cat >>confdefs.h
<<\_ACEOF
10819 #define HAVE_RSVG 1
10822 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10823 LIBS
="$RSVG_LIBS $LIBS"
10830 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10833 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "gtk" || \
10834 test "$USE_X_TOOLKIT" = "maybe"; then
10835 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10836 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10837 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10838 { (exit 1); exit 1; }; };
10842 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10847 # Extract the first word of "pkg-config", so it can be a program name with args.
10848 set dummy pkg-config
; ac_word
=$2
10849 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10850 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10851 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10854 case $PKG_CONFIG in
10856 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10860 for as_dir
in $PATH
10863 test -z "$as_dir" && as_dir
=.
10864 for ac_exec_ext
in '' $ac_executable_extensions; do
10865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10866 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10867 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10874 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10878 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10879 if test -n "$PKG_CONFIG"; then
10880 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10881 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10883 { echo "$as_me:$LINENO: result: no" >&5
10884 echo "${ECHO_T}no" >&6; }
10889 if test "$PKG_CONFIG" = "no" ; then
10892 PKG_CONFIG_MIN_VERSION
=0.9.0
10893 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10894 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10895 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10897 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10898 { echo "$as_me:$LINENO: result: yes" >&5
10899 echo "${ECHO_T}yes" >&6; }
10902 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10903 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10904 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10905 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10906 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10908 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10909 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10910 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10911 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10912 echo "${ECHO_T}$GTK_LIBS" >&6; }
10914 { echo "$as_me:$LINENO: result: no" >&5
10915 echo "${ECHO_T}no" >&6; }
10918 ## If we have a custom action on failure, don't print errors, but
10919 ## do set a variable so people can do so.
10920 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10927 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10928 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10932 if test $succeeded = yes; then
10938 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10939 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10940 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10941 { (exit 1); exit 1; }; }
10946 if test x
"$pkg_check_gtk" = xyes
; then
10950 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10951 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10952 LIBS
="$GTK_LIBS $LIBS"
10955 for ac_func
in gtk_main
10957 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10958 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10959 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10960 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10961 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 cat >conftest.
$ac_ext <<_ACEOF
10966 cat confdefs.h
>>conftest.
$ac_ext
10967 cat >>conftest.
$ac_ext <<_ACEOF
10968 /* end confdefs.h. */
10969 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10970 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10971 #define $ac_func innocuous_$ac_func
10973 /* System header to define __stub macros and hopefully few prototypes,
10974 which can conflict with char $ac_func (); below.
10975 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10976 <limits.h> exists even on freestanding compilers. */
10979 # include <limits.h>
10981 # include <assert.h>
10986 /* Override any GCC internal prototype to avoid an error.
10987 Use char because int might match the return type of a GCC
10988 builtin and then its argument prototype would still apply. */
10993 /* The GNU C library defines this for functions which it implements
10994 to always fail with ENOSYS. Some functions are actually named
10995 something starting with __ and the normal name is an alias. */
10996 #if defined __stub_$ac_func || defined __stub___$ac_func
11003 return $ac_func ();
11008 rm -f conftest.
$ac_objext conftest
$ac_exeext
11009 if { (ac_try
="$ac_link"
11010 case "(($ac_try" in
11011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11012 *) ac_try_echo=$ac_try;;
11014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11015 (eval "$ac_link") 2>conftest.er1
11017 grep -v '^ *+' conftest.er1 >conftest.err
11019 cat conftest.err >&5
11020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11021 (exit $ac_status); } && {
11022 test -z "$ac_c_werror_flag" ||
11023 test ! -s conftest.err
11024 } && test -s conftest$ac_exeext &&
11025 $as_test_x conftest$ac_exeext; then
11026 eval "$as_ac_var=yes"
11028 echo "$as_me: failed program was:" >&5
11029 sed 's/^/| /' conftest.$ac_ext >&5
11031 eval "$as_ac_var=no"
11034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11035 conftest$ac_exeext conftest.$ac_ext
11037 ac_res=`eval echo '${'$as_ac_var'}'`
11038 { echo "$as_me:$LINENO: result: $ac_res" >&5
11039 echo "${ECHO_T}$ac_res" >&6; }
11040 if test `eval echo '${'$as_ac_var'}'` = yes; then
11041 cat >>confdefs.h <<_ACEOF
11042 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11048 if test "${GTK_COMPILES}" != "yes"; then
11049 if test "$USE_X_TOOLKIT" != "maybe"; then
11050 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11051 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11052 { (exit 1); exit 1; }; };
11057 cat >>confdefs.h <<\_ACEOF
11067 if test "${HAVE_GTK}" = "yes"; then
11069 if test "$with_toolkit_scroll_bars" != no; then
11070 with_toolkit_scroll_bars=yes
11073 HAVE_GTK_MULTIDISPLAY=no
11075 for ac_func in gdk_display_open
11077 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11078 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11079 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11080 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11081 echo $ECHO_N "(cached) $ECHO_C" >&6
11083 cat >conftest.$ac_ext <<_ACEOF
11086 cat confdefs.h >>conftest.$ac_ext
11087 cat >>conftest.$ac_ext <<_ACEOF
11088 /* end confdefs.h. */
11089 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11090 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11091 #define $ac_func innocuous_$ac_func
11093 /* System header to define __stub macros and hopefully few prototypes,
11094 which can conflict with char $ac_func (); below.
11095 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11096 <limits.h> exists even on freestanding compilers. */
11099 # include <limits.h>
11101 # include <assert.h>
11106 /* Override any GCC internal prototype to avoid an error.
11107 Use char because int might match the return type of a GCC
11108 builtin and then its argument prototype would still apply. */
11113 /* The GNU C library defines this for functions which it implements
11114 to always fail with ENOSYS. Some functions are actually named
11115 something starting with __ and the normal name is an alias. */
11116 #if defined __stub_$ac_func || defined __stub___$ac_func
11123 return $ac_func ();
11128 rm -f conftest.$ac_objext conftest$ac_exeext
11129 if { (ac_try="$ac_link"
11130 case "(($ac_try" in
11131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11132 *) ac_try_echo
=$ac_try;;
11134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11135 (eval "$ac_link") 2>conftest.er1
11137 grep -v '^ *+' conftest.er1
>conftest.err
11139 cat conftest.err
>&5
11140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11141 (exit $ac_status); } && {
11142 test -z "$ac_c_werror_flag" ||
11143 test ! -s conftest.err
11144 } && test -s conftest
$ac_exeext &&
11145 $as_test_x conftest
$ac_exeext; then
11146 eval "$as_ac_var=yes"
11148 echo "$as_me: failed program was:" >&5
11149 sed 's/^/| /' conftest.
$ac_ext >&5
11151 eval "$as_ac_var=no"
11154 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11155 conftest
$ac_exeext conftest.
$ac_ext
11157 ac_res
=`eval echo '${'$as_ac_var'}'`
11158 { echo "$as_me:$LINENO: result: $ac_res" >&5
11159 echo "${ECHO_T}$ac_res" >&6; }
11160 if test `eval echo '${'$as_ac_var'}'` = yes; then
11161 cat >>confdefs.h
<<_ACEOF
11162 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11164 HAVE_GTK_MULTIDISPLAY
=yes
11168 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11170 cat >>confdefs.h
<<\_ACEOF
11171 #define HAVE_GTK_MULTIDISPLAY 1
11176 HAVE_GTK_FILE_SELECTION
=no
11178 for ac_func
in gtk_file_selection_new
11180 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11181 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11182 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11183 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 cat >conftest.
$ac_ext <<_ACEOF
11189 cat confdefs.h
>>conftest.
$ac_ext
11190 cat >>conftest.
$ac_ext <<_ACEOF
11191 /* end confdefs.h. */
11192 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11193 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11194 #define $ac_func innocuous_$ac_func
11196 /* System header to define __stub macros and hopefully few prototypes,
11197 which can conflict with char $ac_func (); below.
11198 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11199 <limits.h> exists even on freestanding compilers. */
11202 # include <limits.h>
11204 # include <assert.h>
11209 /* Override any GCC internal prototype to avoid an error.
11210 Use char because int might match the return type of a GCC
11211 builtin and then its argument prototype would still apply. */
11216 /* The GNU C library defines this for functions which it implements
11217 to always fail with ENOSYS. Some functions are actually named
11218 something starting with __ and the normal name is an alias. */
11219 #if defined __stub_$ac_func || defined __stub___$ac_func
11226 return $ac_func ();
11231 rm -f conftest.
$ac_objext conftest
$ac_exeext
11232 if { (ac_try
="$ac_link"
11233 case "(($ac_try" in
11234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11235 *) ac_try_echo=$ac_try;;
11237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11238 (eval "$ac_link") 2>conftest.er1
11240 grep -v '^ *+' conftest.er1 >conftest.err
11242 cat conftest.err >&5
11243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11244 (exit $ac_status); } && {
11245 test -z "$ac_c_werror_flag" ||
11246 test ! -s conftest.err
11247 } && test -s conftest$ac_exeext &&
11248 $as_test_x conftest$ac_exeext; then
11249 eval "$as_ac_var=yes"
11251 echo "$as_me: failed program was:" >&5
11252 sed 's/^/| /' conftest.$ac_ext >&5
11254 eval "$as_ac_var=no"
11257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11258 conftest$ac_exeext conftest.$ac_ext
11260 ac_res=`eval echo '${'$as_ac_var'}'`
11261 { echo "$as_me:$LINENO: result: $ac_res" >&5
11262 echo "${ECHO_T}$ac_res" >&6; }
11263 if test `eval echo '${'$as_ac_var'}'` = yes; then
11264 cat >>confdefs.h <<_ACEOF
11265 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11267 HAVE_GTK_FILE_SELECTION=yes
11272 HAVE_GTK_FILE_CHOOSER=no
11274 for ac_func in gtk_file_chooser_dialog_new
11276 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11279 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 cat >conftest.$ac_ext <<_ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11290 #define $ac_func innocuous_$ac_func
11292 /* System header to define __stub macros and hopefully few prototypes,
11293 which can conflict with char $ac_func (); below.
11294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11295 <limits.h> exists even on freestanding compilers. */
11298 # include <limits.h>
11300 # include <assert.h>
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11312 /* The GNU C library defines this for functions which it implements
11313 to always fail with ENOSYS. Some functions are actually named
11314 something starting with __ and the normal name is an alias. */
11315 #if defined __stub_$ac_func || defined __stub___$ac_func
11322 return $ac_func ();
11327 rm -f conftest.$ac_objext conftest$ac_exeext
11328 if { (ac_try="$ac_link"
11329 case "(($ac_try" in
11330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11331 *) ac_try_echo
=$ac_try;;
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_link") 2>conftest.er1
11336 grep -v '^ *+' conftest.er1
>conftest.err
11338 cat conftest.err
>&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && {
11341 test -z "$ac_c_werror_flag" ||
11342 test ! -s conftest.err
11343 } && test -s conftest
$ac_exeext &&
11344 $as_test_x conftest
$ac_exeext; then
11345 eval "$as_ac_var=yes"
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.
$ac_ext >&5
11350 eval "$as_ac_var=no"
11353 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11354 conftest
$ac_exeext conftest.
$ac_ext
11356 ac_res
=`eval echo '${'$as_ac_var'}'`
11357 { echo "$as_me:$LINENO: result: $ac_res" >&5
11358 echo "${ECHO_T}$ac_res" >&6; }
11359 if test `eval echo '${'$as_ac_var'}'` = yes; then
11360 cat >>confdefs.h
<<_ACEOF
11361 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11363 HAVE_GTK_FILE_CHOOSER
=yes
11368 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11369 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11371 cat >>confdefs.h
<<\_ACEOF
11372 #define HAVE_GTK_FILE_BOTH 1
11377 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11378 HAVE_GTK_AND_PTHREAD
=no
11380 for ac_header
in pthread.h
11382 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11383 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11386 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11387 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 ac_res
=`eval echo '${'$as_ac_Header'}'`
11390 { echo "$as_me:$LINENO: result: $ac_res" >&5
11391 echo "${ECHO_T}$ac_res" >&6; }
11393 # Is the header compilable?
11394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11396 cat >conftest.
$ac_ext <<_ACEOF
11399 cat confdefs.h
>>conftest.
$ac_ext
11400 cat >>conftest.
$ac_ext <<_ACEOF
11401 /* end confdefs.h. */
11402 $ac_includes_default
11403 #include <$ac_header>
11405 rm -f conftest.
$ac_objext
11406 if { (ac_try
="$ac_compile"
11407 case "(($ac_try" in
11408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11409 *) ac_try_echo=$ac_try;;
11411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11412 (eval "$ac_compile") 2>conftest.er1
11414 grep -v '^ *+' conftest.er1 >conftest.err
11416 cat conftest.err >&5
11417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11418 (exit $ac_status); } && {
11419 test -z "$ac_c_werror_flag" ||
11420 test ! -s conftest.err
11421 } && test -s conftest.$ac_objext; then
11422 ac_header_compiler=yes
11424 echo "$as_me: failed program was:" >&5
11425 sed 's/^/| /' conftest.$ac_ext >&5
11427 ac_header_compiler=no
11430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11432 echo "${ECHO_T}$ac_header_compiler" >&6; }
11434 # Is the header present?
11435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11437 cat >conftest.$ac_ext <<_ACEOF
11440 cat confdefs.h >>conftest.$ac_ext
11441 cat >>conftest.$ac_ext <<_ACEOF
11442 /* end confdefs.h. */
11443 #include <$ac_header>
11445 if { (ac_try="$ac_cpp conftest.$ac_ext"
11446 case "(($ac_try" in
11447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11448 *) ac_try_echo
=$ac_try;;
11450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11453 grep -v '^ *+' conftest.er1
>conftest.err
11455 cat conftest.err
>&5
11456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11457 (exit $ac_status); } >/dev
/null
&& {
11458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11459 test ! -s conftest.err
11461 ac_header_preproc
=yes
11463 echo "$as_me: failed program was:" >&5
11464 sed 's/^/| /' conftest.
$ac_ext >&5
11466 ac_header_preproc
=no
11469 rm -f conftest.err conftest.
$ac_ext
11470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11471 echo "${ECHO_T}$ac_header_preproc" >&6; }
11473 # So? What about this header?
11474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11480 ac_header_preproc
=yes
11483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11500 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11501 echo $ECHO_N "(cached) $ECHO_C" >&6
11503 eval "$as_ac_Header=\$ac_header_preproc"
11505 ac_res
=`eval echo '${'$as_ac_Header'}'`
11506 { echo "$as_me:$LINENO: result: $ac_res" >&5
11507 echo "${ECHO_T}$ac_res" >&6; }
11510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11511 cat >>confdefs.h
<<_ACEOF
11512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11519 if test "$ac_cv_header_pthread_h"; then
11520 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11521 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11522 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11523 echo $ECHO_N "(cached) $ECHO_C" >&6
11525 ac_check_lib_save_LIBS
=$LIBS
11526 LIBS
="-lpthread $LIBS"
11527 cat >conftest.
$ac_ext <<_ACEOF
11530 cat confdefs.h
>>conftest.
$ac_ext
11531 cat >>conftest.
$ac_ext <<_ACEOF
11532 /* end confdefs.h. */
11534 /* Override any GCC internal prototype to avoid an error.
11535 Use char because int might match the return type of a GCC
11536 builtin and then its argument prototype would still apply. */
11540 char pthread_self ();
11544 return pthread_self ();
11549 rm -f conftest.
$ac_objext conftest
$ac_exeext
11550 if { (ac_try
="$ac_link"
11551 case "(($ac_try" in
11552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11553 *) ac_try_echo=$ac_try;;
11555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11556 (eval "$ac_link") 2>conftest.er1
11558 grep -v '^ *+' conftest.er1 >conftest.err
11560 cat conftest.err >&5
11561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11562 (exit $ac_status); } && {
11563 test -z "$ac_c_werror_flag" ||
11564 test ! -s conftest.err
11565 } && test -s conftest$ac_exeext &&
11566 $as_test_x conftest$ac_exeext; then
11567 ac_cv_lib_pthread_pthread_self=yes
11569 echo "$as_me: failed program was:" >&5
11570 sed 's/^/| /' conftest.$ac_ext >&5
11572 ac_cv_lib_pthread_pthread_self=no
11575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11576 conftest$ac_exeext conftest.$ac_ext
11577 LIBS=$ac_check_lib_save_LIBS
11579 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11580 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11581 if test $ac_cv_lib_pthread_pthread_self = yes; then
11582 HAVE_GTK_AND_PTHREAD=yes
11586 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11587 case "${canonical}" in
11589 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11592 cat >>confdefs.h <<\_ACEOF
11593 #define HAVE_GTK_AND_PTHREAD 1
11601 if test "${with_dbus}" = "yes"; then
11605 # Extract the first word of "pkg-config", so it can be a program name with args.
11606 set dummy pkg-config; ac_word=$2
11607 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11608 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11609 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11610 echo $ECHO_N "(cached) $ECHO_C" >&6
11612 case $PKG_CONFIG in
11614 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11618 for as_dir in $PATH
11621 test -z "$as_dir" && as_dir=.
11622 for ac_exec_ext in '' $ac_executable_extensions; do
11623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11624 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11625 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11632 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11636 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11637 if test -n "$PKG_CONFIG"; then
11638 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11639 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11641 { echo "$as_me:$LINENO: result: no" >&5
11642 echo "${ECHO_T}no" >&6; }
11647 if test "$PKG_CONFIG" = "no" ; then
11650 PKG_CONFIG_MIN_VERSION=0.9.0
11651 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11652 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11653 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11655 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11656 { echo "$as_me:$LINENO: result: yes" >&5
11657 echo "${ECHO_T}yes" >&6; }
11660 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11661 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11662 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11663 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11664 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11666 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11667 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11668 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11669 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11670 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11672 { echo "$as_me:$LINENO: result: no" >&5
11673 echo "${ECHO_T}no" >&6; }
11676 ## If we have a custom action on failure, don't print errors, but
11677 ## do set a variable so people can do so.
11678 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11685 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11686 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11690 if test $succeeded = yes; then
11696 if test "$HAVE_DBUS" = yes; then
11698 cat >>confdefs.h <<\_ACEOF
11699 #define HAVE_DBUS 1
11706 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11707 if test "$with_xaw3d" != no; then
11708 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11709 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11710 if test "${emacs_cv_xaw3d+set}" = set; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 cat >conftest.$ac_ext <<_ACEOF
11716 cat confdefs.h >>conftest.$ac_ext
11717 cat >>conftest.$ac_ext <<_ACEOF
11718 /* end confdefs.h. */
11720 #include <X11/Intrinsic.h>
11721 #include <X11/Xaw3d/Simple.h>
11730 rm -f conftest.$ac_objext conftest$ac_exeext
11731 if { (ac_try="$ac_link"
11732 case "(($ac_try" in
11733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11734 *) ac_try_echo
=$ac_try;;
11736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11737 (eval "$ac_link") 2>conftest.er1
11739 grep -v '^ *+' conftest.er1
>conftest.err
11741 cat conftest.err
>&5
11742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11743 (exit $ac_status); } && {
11744 test -z "$ac_c_werror_flag" ||
11745 test ! -s conftest.err
11746 } && test -s conftest
$ac_exeext &&
11747 $as_test_x conftest
$ac_exeext; then
11750 echo "$as_me: failed program was:" >&5
11751 sed 's/^/| /' conftest.
$ac_ext >&5
11756 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11757 conftest
$ac_exeext conftest.
$ac_ext
11763 if test $emacs_cv_xaw3d = yes; then
11764 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11765 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11766 USE_X_TOOLKIT
=LUCID
11769 cat >>confdefs.h
<<\_ACEOF
11770 #define HAVE_XAW3D 1
11774 { echo "$as_me:$LINENO: result: no" >&5
11775 echo "${ECHO_T}no" >&6; }
11776 { echo "$as_me:$LINENO: checking for libXaw" >&5
11777 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11778 if test "${emacs_cv_xaw+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11781 cat >conftest.
$ac_ext <<_ACEOF
11784 cat confdefs.h
>>conftest.
$ac_ext
11785 cat >>conftest.
$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11788 #include <X11/Intrinsic.h>
11789 #include <X11/Xaw/Simple.h>
11798 rm -f conftest.
$ac_objext conftest
$ac_exeext
11799 if { (ac_try
="$ac_link"
11800 case "(($ac_try" in
11801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11802 *) ac_try_echo=$ac_try;;
11804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11805 (eval "$ac_link") 2>conftest.er1
11807 grep -v '^ *+' conftest.er1 >conftest.err
11809 cat conftest.err >&5
11810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11811 (exit $ac_status); } && {
11812 test -z "$ac_c_werror_flag" ||
11813 test ! -s conftest.err
11814 } && test -s conftest$ac_exeext &&
11815 $as_test_x conftest$ac_exeext; then
11818 echo "$as_me: failed program was:" >&5
11819 sed 's/^/| /' conftest.$ac_ext >&5
11824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11825 conftest$ac_exeext conftest.$ac_ext
11828 if test $emacs_cv_xaw = yes; then
11829 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11830 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11831 USE_X_TOOLKIT=LUCID
11832 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11833 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11834 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11835 { (exit 1); exit 1; }; }
11837 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11838 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11844 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11846 if test "${USE_X_TOOLKIT}" != "none"; then
11847 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11848 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11849 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11850 echo $ECHO_N "(cached) $ECHO_C" >&6
11852 cat >conftest.$ac_ext <<_ACEOF
11855 cat confdefs.h >>conftest.$ac_ext
11856 cat >>conftest.$ac_ext <<_ACEOF
11857 /* end confdefs.h. */
11858 #include <X11/Intrinsic.h>
11862 #if XtSpecificationRelease < 6
11870 rm -f conftest.$ac_objext conftest$ac_exeext
11871 if { (ac_try="$ac_link"
11872 case "(($ac_try" in
11873 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11874 *) ac_try_echo
=$ac_try;;
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877 (eval "$ac_link") 2>conftest.er1
11879 grep -v '^ *+' conftest.er1
>conftest.err
11881 cat conftest.err
>&5
11882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11883 (exit $ac_status); } && {
11884 test -z "$ac_c_werror_flag" ||
11885 test ! -s conftest.err
11886 } && test -s conftest
$ac_exeext &&
11887 $as_test_x conftest
$ac_exeext; then
11888 emacs_cv_x11_toolkit_version_6
=yes
11890 echo "$as_me: failed program was:" >&5
11891 sed 's/^/| /' conftest.
$ac_ext >&5
11893 emacs_cv_x11_toolkit_version_6
=no
11896 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11897 conftest
$ac_exeext conftest.
$ac_ext
11900 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11901 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11902 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11903 echo "${ECHO_T}6 or newer" >&6; }
11905 cat >>confdefs.h
<<\_ACEOF
11906 #define HAVE_X11XTR6 1
11910 { echo "$as_me:$LINENO: result: before 6" >&5
11911 echo "${ECHO_T}before 6" >&6; }
11915 if test x
$HAVE_X11XTR6 = xyes
; then
11916 LIBS
="-lXt -lSM -lICE $LIBS"
11921 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11922 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11923 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11924 echo $ECHO_N "(cached) $ECHO_C" >&6
11926 ac_check_lib_save_LIBS
=$LIBS
11928 cat >conftest.
$ac_ext <<_ACEOF
11931 cat confdefs.h
>>conftest.
$ac_ext
11932 cat >>conftest.
$ac_ext <<_ACEOF
11933 /* end confdefs.h. */
11935 /* Override any GCC internal prototype to avoid an error.
11936 Use char because int might match the return type of a GCC
11937 builtin and then its argument prototype would still apply. */
11941 char XmuConvertStandardSelection ();
11945 return XmuConvertStandardSelection ();
11950 rm -f conftest.
$ac_objext conftest
$ac_exeext
11951 if { (ac_try
="$ac_link"
11952 case "(($ac_try" in
11953 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11954 *) ac_try_echo=$ac_try;;
11956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11957 (eval "$ac_link") 2>conftest.er1
11959 grep -v '^ *+' conftest.er1 >conftest.err
11961 cat conftest.err >&5
11962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11963 (exit $ac_status); } && {
11964 test -z "$ac_c_werror_flag" ||
11965 test ! -s conftest.err
11966 } && test -s conftest$ac_exeext &&
11967 $as_test_x conftest$ac_exeext; then
11968 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11970 echo "$as_me: failed program was:" >&5
11971 sed 's/^/| /' conftest.$ac_ext >&5
11973 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11977 conftest$ac_exeext conftest.$ac_ext
11978 LIBS=$ac_check_lib_save_LIBS
11980 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11981 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11982 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11983 cat >>confdefs.h <<_ACEOF
11984 #define HAVE_LIBXMU 1
11991 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11994 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11995 if test "${HAVE_X11}" = "yes"; then
11996 if test "${USE_X_TOOLKIT}" != "none"; then
11998 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11999 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12000 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12003 ac_check_lib_save_LIBS=$LIBS
12004 LIBS="-lXext $LIBS"
12005 cat >conftest.$ac_ext <<_ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12012 /* Override any GCC internal prototype to avoid an error.
12013 Use char because int might match the return type of a GCC
12014 builtin and then its argument prototype would still apply. */
12018 char XShapeQueryExtension ();
12022 return XShapeQueryExtension ();
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (ac_try="$ac_link"
12029 case "(($ac_try" in
12030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12031 *) ac_try_echo
=$ac_try;;
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_link") 2>conftest.er1
12036 grep -v '^ *+' conftest.er1
>conftest.err
12038 cat conftest.err
>&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } && {
12041 test -z "$ac_c_werror_flag" ||
12042 test ! -s conftest.err
12043 } && test -s conftest
$ac_exeext &&
12044 $as_test_x conftest
$ac_exeext; then
12045 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.
$ac_ext >&5
12050 ac_cv_lib_Xext_XShapeQueryExtension
=no
12053 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12054 conftest
$ac_exeext conftest.
$ac_ext
12055 LIBS
=$ac_check_lib_save_LIBS
12057 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12058 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12059 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12060 cat >>confdefs.h
<<_ACEOF
12061 #define HAVE_LIBXEXT 1
12064 LIBS
="-lXext $LIBS"
12071 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12072 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12073 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12074 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12075 echo $ECHO_N "(cached) $ECHO_C" >&6
12077 cat >conftest.
$ac_ext <<_ACEOF
12080 cat confdefs.h
>>conftest.
$ac_ext
12081 cat >>conftest.
$ac_ext <<_ACEOF
12082 /* end confdefs.h. */
12087 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12090 Motif version prior to 2.1.
12096 rm -f conftest.
$ac_objext
12097 if { (ac_try
="$ac_compile"
12098 case "(($ac_try" in
12099 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12100 *) ac_try_echo=$ac_try;;
12102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12103 (eval "$ac_compile") 2>conftest.er1
12105 grep -v '^ *+' conftest.er1 >conftest.err
12107 cat conftest.err >&5
12108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109 (exit $ac_status); } && {
12110 test -z "$ac_c_werror_flag" ||
12111 test ! -s conftest.err
12112 } && test -s conftest.$ac_objext; then
12113 emacs_cv_motif_version_2_1=yes
12115 echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.$ac_ext >&5
12118 emacs_cv_motif_version_2_1=no
12121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12123 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12124 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12125 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12126 if test $emacs_cv_motif_version_2_1 = yes; then
12129 cat >>confdefs.h <<\_ACEOF
12130 #define HAVE_MOTIF_2_1 1
12133 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12134 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12135 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12136 echo $ECHO_N "(cached) $ECHO_C" >&6
12138 ac_check_lib_save_LIBS=$LIBS
12140 cat >conftest.$ac_ext <<_ACEOF
12143 cat confdefs.h >>conftest.$ac_ext
12144 cat >>conftest.$ac_ext <<_ACEOF
12145 /* end confdefs.h. */
12147 /* Override any GCC internal prototype to avoid an error.
12148 Use char because int might match the return type of a GCC
12149 builtin and then its argument prototype would still apply. */
12153 char XpCreateContext ();
12157 return XpCreateContext ();
12162 rm -f conftest.$ac_objext conftest$ac_exeext
12163 if { (ac_try="$ac_link"
12164 case "(($ac_try" in
12165 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12166 *) ac_try_echo
=$ac_try;;
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_link") 2>conftest.er1
12171 grep -v '^ *+' conftest.er1
>conftest.err
12173 cat conftest.err
>&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } && {
12176 test -z "$ac_c_werror_flag" ||
12177 test ! -s conftest.err
12178 } && test -s conftest
$ac_exeext &&
12179 $as_test_x conftest
$ac_exeext; then
12180 ac_cv_lib_Xp_XpCreateContext
=yes
12182 echo "$as_me: failed program was:" >&5
12183 sed 's/^/| /' conftest.
$ac_ext >&5
12185 ac_cv_lib_Xp_XpCreateContext
=no
12188 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12189 conftest
$ac_exeext conftest.
$ac_ext
12190 LIBS
=$ac_check_lib_save_LIBS
12192 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12193 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12194 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12198 if test ${HAVE_LIBXP} = yes; then
12200 cat >>confdefs.h
<<\_ACEOF
12201 #define HAVE_LIBXP 1
12206 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12207 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12208 if test "${emacs_cv_lesstif+set}" = set; then
12209 echo $ECHO_N "(cached) $ECHO_C" >&6
12211 # We put this in CFLAGS temporarily to precede other -I options
12212 # that might be in CFLAGS temporarily.
12213 # We put this in CPPFLAGS where it precedes the other -I options.
12214 OLD_CPPFLAGS
=$CPPFLAGS
12216 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12217 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12218 cat >conftest.
$ac_ext <<_ACEOF
12221 cat confdefs.h
>>conftest.
$ac_ext
12222 cat >>conftest.
$ac_ext <<_ACEOF
12223 /* end confdefs.h. */
12224 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12233 rm -f conftest.
$ac_objext
12234 if { (ac_try
="$ac_compile"
12235 case "(($ac_try" in
12236 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12237 *) ac_try_echo=$ac_try;;
12239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12240 (eval "$ac_compile") 2>conftest.er1
12242 grep -v '^ *+' conftest.er1 >conftest.err
12244 cat conftest.err >&5
12245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12246 (exit $ac_status); } && {
12247 test -z "$ac_c_werror_flag" ||
12248 test ! -s conftest.err
12249 } && test -s conftest.$ac_objext; then
12250 emacs_cv_lesstif=yes
12252 echo "$as_me: failed program was:" >&5
12253 sed 's/^/| /' conftest.$ac_ext >&5
12255 emacs_cv_lesstif=no
12258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12260 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12261 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12262 if test $emacs_cv_lesstif = yes; then
12263 # Make sure this -I option remains in CPPFLAGS after it is set
12264 # back to REAL_CPPFLAGS.
12265 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12266 # have those other -I options anyway. Ultimately, having this
12267 # directory ultimately in CPPFLAGS will be enough.
12268 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12269 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12272 CPPFLAGS=$OLD_CPPFLAGS
12279 USE_TOOLKIT_SCROLL_BARS=no
12280 if test "${with_toolkit_scroll_bars}" != "no"; then
12281 if test "${USE_X_TOOLKIT}" != "none"; then
12282 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12283 cat >>confdefs.h <<\_ACEOF
12284 #define USE_TOOLKIT_SCROLL_BARS 1
12288 USE_TOOLKIT_SCROLL_BARS=yes
12289 elif test "${HAVE_XAW3D}" = "yes"; then
12290 cat >>confdefs.h <<\_ACEOF
12291 #define USE_TOOLKIT_SCROLL_BARS 1
12294 USE_TOOLKIT_SCROLL_BARS=yes
12296 elif test "${HAVE_GTK}" = "yes"; then
12297 cat >>confdefs.h <<\_ACEOF
12298 #define USE_TOOLKIT_SCROLL_BARS 1
12301 USE_TOOLKIT_SCROLL_BARS=yes
12302 elif test "${HAVE_CARBON}" = "yes"; then
12303 cat >>confdefs.h <<\_ACEOF
12304 #define USE_TOOLKIT_SCROLL_BARS 1
12307 USE_TOOLKIT_SCROLL_BARS=yes
12311 cat >conftest.$ac_ext <<_ACEOF
12314 cat confdefs.h >>conftest.$ac_ext
12315 cat >>conftest.$ac_ext <<_ACEOF
12316 /* end confdefs.h. */
12318 #include <X11/Xlib.h>
12319 #include <X11/Xresource.h>
12328 rm -f conftest.$ac_objext
12329 if { (ac_try="$ac_compile"
12330 case "(($ac_try" in
12331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12332 *) ac_try_echo
=$ac_try;;
12334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12335 (eval "$ac_compile") 2>conftest.er1
12337 grep -v '^ *+' conftest.er1
>conftest.err
12339 cat conftest.err
>&5
12340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12341 (exit $ac_status); } && {
12342 test -z "$ac_c_werror_flag" ||
12343 test ! -s conftest.err
12344 } && test -s conftest.
$ac_objext; then
12347 cat >>confdefs.h
<<\_ACEOF
12352 echo "$as_me: failed program was:" >&5
12353 sed 's/^/| /' conftest.
$ac_ext >&5
12358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12361 if test "${with_xim}" != "no"; then
12363 cat >>confdefs.h
<<\_ACEOF
12370 if test "${HAVE_XIM}" != "no"; then
12371 late_CFLAGS
=$CFLAGS
12372 if test "$GCC" = yes; then
12373 CFLAGS
="$CFLAGS --pedantic-errors"
12375 cat >conftest.
$ac_ext <<_ACEOF
12378 cat confdefs.h
>>conftest.
$ac_ext
12379 cat >>conftest.
$ac_ext <<_ACEOF
12380 /* end confdefs.h. */
12382 #include <X11/Xlib.h>
12383 #include <X11/Xresource.h>
12392 XPointer *client_data;
12394 /* If we're not using GCC, it's probably not XFree86, and this is
12395 probably right, but we can't use something like --pedantic-errors. */
12396 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12397 char*, XIMProc, XPointer*);
12399 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12405 rm -f conftest.
$ac_objext
12406 if { (ac_try
="$ac_compile"
12407 case "(($ac_try" in
12408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12409 *) ac_try_echo=$ac_try;;
12411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12412 (eval "$ac_compile") 2>conftest.er1
12414 grep -v '^ *+' conftest.er1 >conftest.err
12416 cat conftest.err >&5
12417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12418 (exit $ac_status); } && {
12419 test -z "$ac_c_werror_flag" ||
12420 test ! -s conftest.err
12421 } && test -s conftest.$ac_objext; then
12422 emacs_cv_arg6_star=yes
12424 echo "$as_me: failed program was:" >&5
12425 sed 's/^/| /' conftest.$ac_ext >&5
12430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12432 if test "$emacs_cv_arg6_star" = yes; then
12433 cat >>confdefs.h <<\_ACEOF
12434 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12438 cat >>confdefs.h <<\_ACEOF
12439 #define XRegisterIMInstantiateCallback_arg6 XPointer
12443 CFLAGS=$late_CFLAGS
12446 #### For font-backend
12447 if test "${USE_FONT_BACKEND}" = "yes"; then
12450 cat >>confdefs.h <<\_ACEOF
12451 #define USE_FONT_BACKEND 1
12455 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12457 if test "${HAVE_X11}" = "yes"; then
12458 if test "x${with_freetype}" = "xno"; then
12461 if test "x${with_xft}" != "xno"; then
12463 if test "X${with_pkg_config_prog}" != X
; then
12464 PKG_CONFIG
="${with_pkg_config_prog}"
12470 # Extract the first word of "pkg-config", so it can be a program name with args.
12471 set dummy pkg-config
; ac_word
=$2
12472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12474 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12475 echo $ECHO_N "(cached) $ECHO_C" >&6
12477 case $PKG_CONFIG in
12479 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12482 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12483 for as_dir
in $PATH
12486 test -z "$as_dir" && as_dir
=.
12487 for ac_exec_ext
in '' $ac_executable_extensions; do
12488 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12489 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12490 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12497 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12501 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12502 if test -n "$PKG_CONFIG"; then
12503 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12504 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12506 { echo "$as_me:$LINENO: result: no" >&5
12507 echo "${ECHO_T}no" >&6; }
12512 if test "$PKG_CONFIG" = "no" ; then
12515 PKG_CONFIG_MIN_VERSION
=0.9.0
12516 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12517 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12518 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12520 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12521 { echo "$as_me:$LINENO: result: yes" >&5
12522 echo "${ECHO_T}yes" >&6; }
12525 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12526 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12527 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12528 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12529 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12531 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12532 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12533 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12534 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12535 echo "${ECHO_T}$XFT_LIBS" >&6; }
12537 { echo "$as_me:$LINENO: result: no" >&5
12538 echo "${ECHO_T}no" >&6; }
12541 ## If we have a custom action on failure, don't print errors, but
12542 ## do set a variable so people can do so.
12543 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12550 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12551 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12555 if test $succeeded = yes; then
12561 if test "$HAVE_XFT" != no
; then
12562 OLD_CPPFLAGS
="$CPPFLAGS"
12563 OLD_CFLAGS
="$CFLAGS"
12565 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12566 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12567 LIBS
="$XFT_LIBS $LIBS"
12568 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12569 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12570 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12571 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12572 echo $ECHO_N "(cached) $ECHO_C" >&6
12574 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12575 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12577 # Is the header compilable?
12578 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12579 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12580 cat >conftest.
$ac_ext <<_ACEOF
12583 cat confdefs.h
>>conftest.
$ac_ext
12584 cat >>conftest.
$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 $ac_includes_default
12587 #include <X11/Xft/Xft.h>
12589 rm -f conftest.
$ac_objext
12590 if { (ac_try
="$ac_compile"
12591 case "(($ac_try" in
12592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12593 *) ac_try_echo=$ac_try;;
12595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12596 (eval "$ac_compile") 2>conftest.er1
12598 grep -v '^ *+' conftest.er1 >conftest.err
12600 cat conftest.err >&5
12601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12602 (exit $ac_status); } && {
12603 test -z "$ac_c_werror_flag" ||
12604 test ! -s conftest.err
12605 } && test -s conftest.$ac_objext; then
12606 ac_header_compiler=yes
12608 echo "$as_me: failed program was:" >&5
12609 sed 's/^/| /' conftest.$ac_ext >&5
12611 ac_header_compiler=no
12614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12615 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12616 echo "${ECHO_T}$ac_header_compiler" >&6; }
12618 # Is the header present?
12619 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12620 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12621 cat >conftest.$ac_ext <<_ACEOF
12624 cat confdefs.h >>conftest.$ac_ext
12625 cat >>conftest.$ac_ext <<_ACEOF
12626 /* end confdefs.h. */
12627 #include <X11/Xft/Xft.h>
12629 if { (ac_try="$ac_cpp conftest.$ac_ext"
12630 case "(($ac_try" in
12631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12632 *) ac_try_echo
=$ac_try;;
12634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12635 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12637 grep -v '^ *+' conftest.er1
>conftest.err
12639 cat conftest.err
>&5
12640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12641 (exit $ac_status); } >/dev
/null
&& {
12642 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12643 test ! -s conftest.err
12645 ac_header_preproc
=yes
12647 echo "$as_me: failed program was:" >&5
12648 sed 's/^/| /' conftest.
$ac_ext >&5
12650 ac_header_preproc
=no
12653 rm -f conftest.err conftest.
$ac_ext
12654 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12655 echo "${ECHO_T}$ac_header_preproc" >&6; }
12657 # So? What about this header?
12658 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12660 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12661 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12662 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12663 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12664 ac_header_preproc
=yes
12667 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12668 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12669 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12670 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12671 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12672 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12673 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12674 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12675 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12676 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12677 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12678 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12682 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12683 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12684 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12685 echo $ECHO_N "(cached) $ECHO_C" >&6
12687 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12689 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12690 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12693 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12694 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12695 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12696 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 ac_check_lib_save_LIBS
=$LIBS
12700 LIBS
="-lXft $XFT_LIBS $LIBS"
12701 cat >conftest.
$ac_ext <<_ACEOF
12704 cat confdefs.h
>>conftest.
$ac_ext
12705 cat >>conftest.
$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12708 /* Override any GCC internal prototype to avoid an error.
12709 Use char because int might match the return type of a GCC
12710 builtin and then its argument prototype would still apply. */
12714 char XftFontOpen ();
12718 return XftFontOpen ();
12723 rm -f conftest.
$ac_objext conftest
$ac_exeext
12724 if { (ac_try
="$ac_link"
12725 case "(($ac_try" in
12726 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12727 *) ac_try_echo=$ac_try;;
12729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12730 (eval "$ac_link") 2>conftest.er1
12732 grep -v '^ *+' conftest.er1 >conftest.err
12734 cat conftest.err >&5
12735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12736 (exit $ac_status); } && {
12737 test -z "$ac_c_werror_flag" ||
12738 test ! -s conftest.err
12739 } && test -s conftest$ac_exeext &&
12740 $as_test_x conftest$ac_exeext; then
12741 ac_cv_lib_Xft_XftFontOpen=yes
12743 echo "$as_me: failed program was:" >&5
12744 sed 's/^/| /' conftest.$ac_ext >&5
12746 ac_cv_lib_Xft_XftFontOpen=no
12749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12750 conftest$ac_exeext conftest.$ac_ext
12751 LIBS=$ac_check_lib_save_LIBS
12753 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12754 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12755 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12763 if test "${HAVE_XFT}" = "yes"; then
12765 cat >>confdefs.h <<\_ACEOF
12770 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12772 CPPFLAGS="$OLD_CPPFLAGS"
12773 CFLAGS="$OLD_CFLAGS"
12779 if test "$HAVE_XFT" != "yes"; then
12785 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12786 if test "${HAVE_XFT}" = "yes"; then
12788 elif test "x${with_freetype}" != "xno"; then
12789 if test "X${with_pkg_config_prog}" != X; then
12790 PKG_CONFIG="${with_pkg_config_prog}"
12796 # Extract the first word of "pkg-config", so it can be a program name with args.
12797 set dummy pkg-config; ac_word=$2
12798 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12799 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12800 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12803 case $PKG_CONFIG in
12805 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12809 for as_dir in $PATH
12812 test -z "$as_dir" && as_dir=.
12813 for ac_exec_ext in '' $ac_executable_extensions; do
12814 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12815 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12816 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12823 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12827 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12828 if test -n "$PKG_CONFIG"; then
12829 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12830 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12832 { echo "$as_me:$LINENO: result: no" >&5
12833 echo "${ECHO_T}no" >&6; }
12838 if test "$PKG_CONFIG" = "no" ; then
12841 PKG_CONFIG_MIN_VERSION=0.9.0
12842 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12843 { echo "$as_me:$LINENO: checking for freetype2" >&5
12844 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12846 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12847 { echo "$as_me:$LINENO: result: yes" >&5
12848 echo "${ECHO_T}yes" >&6; }
12851 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12852 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12853 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12854 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12855 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12857 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12858 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12859 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12860 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12861 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12863 { echo "$as_me:$LINENO: result: no" >&5
12864 echo "${ECHO_T}no" >&6; }
12867 ## If we have a custom action on failure, don't print errors
, but
12868 ## do set a variable so people can do so.
12869 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12876 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12877 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12881 if test $succeeded = yes; then
12887 if test "${HAVE_FREETYPE}" = "yes"; then
12891 # Extract the first word of "pkg-config", so it can be a program name with args.
12892 set dummy pkg-config
; ac_word
=$2
12893 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12894 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12895 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 case $PKG_CONFIG in
12900 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12903 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12904 for as_dir
in $PATH
12907 test -z "$as_dir" && as_dir
=.
12908 for ac_exec_ext
in '' $ac_executable_extensions; do
12909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12910 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12911 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12918 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12922 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12923 if test -n "$PKG_CONFIG"; then
12924 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12925 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12927 { echo "$as_me:$LINENO: result: no" >&5
12928 echo "${ECHO_T}no" >&6; }
12933 if test "$PKG_CONFIG" = "no" ; then
12936 PKG_CONFIG_MIN_VERSION
=0.9.0
12937 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12938 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12939 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12941 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12942 { echo "$as_me:$LINENO: result: yes" >&5
12943 echo "${ECHO_T}yes" >&6; }
12946 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12947 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12948 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12949 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12950 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12952 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12953 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12954 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12955 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12956 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12958 { echo "$as_me:$LINENO: result: no" >&5
12959 echo "${ECHO_T}no" >&6; }
12960 FONTCONFIG_CFLAGS
=""
12962 ## If we have a custom action on failure, don't print errors, but
12963 ## do set a variable so people can do so.
12964 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12971 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12972 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12976 if test $succeeded = yes; then
12982 if test "${HAVE_FC}" = "no"; then
12989 if test "${HAVE_FREETYPE}" = "yes"; then
12991 cat >>confdefs.h
<<\_ACEOF
12992 #define HAVE_FREETYPE 1
12995 if test "${with_libotf}" != "no"; then
12996 if test "X${with_pkg_config_prog}" != X
; then
12997 PKG_CONFIG
="${with_pkg_config_prog}"
13002 # Extract the first word of "pkg-config", so it can be a program name with args.
13003 set dummy pkg-config
; ac_word
=$2
13004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13006 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13007 echo $ECHO_N "(cached) $ECHO_C" >&6
13009 case $PKG_CONFIG in
13011 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13014 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13015 for as_dir
in $PATH
13018 test -z "$as_dir" && as_dir
=.
13019 for ac_exec_ext
in '' $ac_executable_extensions; do
13020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13021 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13029 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13033 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13034 if test -n "$PKG_CONFIG"; then
13035 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13036 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13038 { echo "$as_me:$LINENO: result: no" >&5
13039 echo "${ECHO_T}no" >&6; }
13044 if test "$PKG_CONFIG" = "no" ; then
13045 pkg_check_libotf
=no
13047 PKG_CONFIG_MIN_VERSION
=0.9.0
13048 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13049 { echo "$as_me:$LINENO: checking for libotf" >&5
13050 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13052 if $PKG_CONFIG --exists "libotf" 2>&5; then
13053 { echo "$as_me:$LINENO: result: yes" >&5
13054 echo "${ECHO_T}yes" >&6; }
13057 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13058 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13059 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13060 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13061 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13063 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13064 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13065 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13066 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13067 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13069 { echo "$as_me:$LINENO: result: no" >&5
13070 echo "${ECHO_T}no" >&6; }
13073 ## If we have a custom action on failure, don't print errors, but
13074 ## do set a variable so people can do so.
13075 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13082 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13083 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13087 if test $succeeded = yes; then
13088 pkg_check_libotf
=yes
13090 pkg_check_libotf
=no
13093 if test "$pkg_check_libotf" = "yes"; then
13095 cat >>confdefs.h
<<\_ACEOF
13096 #define HAVE_LIBOTF 1
13104 if test "${with_m17n_flt}" != "no"; then
13105 if test "X${with_pkg_config_prog}" != X
; then
13106 PKG_CONFIG
="${with_pkg_config_prog}"
13111 # Extract the first word of "pkg-config", so it can be a program name with args.
13112 set dummy pkg-config
; ac_word
=$2
13113 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13114 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13115 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13116 echo $ECHO_N "(cached) $ECHO_C" >&6
13118 case $PKG_CONFIG in
13120 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13123 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13124 for as_dir
in $PATH
13127 test -z "$as_dir" && as_dir
=.
13128 for ac_exec_ext
in '' $ac_executable_extensions; do
13129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13130 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13138 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13142 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13143 if test -n "$PKG_CONFIG"; then
13144 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13145 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13147 { echo "$as_me:$LINENO: result: no" >&5
13148 echo "${ECHO_T}no" >&6; }
13153 if test "$PKG_CONFIG" = "no" ; then
13154 pkg_check_m17n_flt
=no
13156 PKG_CONFIG_MIN_VERSION
=0.9.0
13157 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13158 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13159 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13161 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13162 { echo "$as_me:$LINENO: result: yes" >&5
13163 echo "${ECHO_T}yes" >&6; }
13166 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13167 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13168 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13169 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13170 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13172 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13173 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13174 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13175 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13176 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13178 { echo "$as_me:$LINENO: result: no" >&5
13179 echo "${ECHO_T}no" >&6; }
13182 ## If we have a custom action on failure, don't print errors, but
13183 ## do set a variable so people can do so.
13184 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13191 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13192 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13196 if test $succeeded = yes; then
13197 pkg_check_m17n_flt
=yes
13199 pkg_check_m17n_flt
=no
13202 if test "$pkg_check_m17n_flt" = "yes"; then
13204 cat >>confdefs.h
<<\_ACEOF
13205 #define HAVE_M17N_FLT 1
13221 #### End for font-backend
13223 ### Use -lXpm if available, unless `--with-xpm=no'.
13225 if test "${HAVE_X11}" = "yes"; then
13226 if test "${with_xpm}" != "no"; then
13227 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13228 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13229 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13230 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13231 echo $ECHO_N "(cached) $ECHO_C" >&6
13233 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13234 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13236 # Is the header compilable?
13237 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13238 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13239 cat >conftest.
$ac_ext <<_ACEOF
13242 cat confdefs.h
>>conftest.
$ac_ext
13243 cat >>conftest.
$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13245 $ac_includes_default
13246 #include <X11/xpm.h>
13248 rm -f conftest.
$ac_objext
13249 if { (ac_try
="$ac_compile"
13250 case "(($ac_try" in
13251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13252 *) ac_try_echo=$ac_try;;
13254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13255 (eval "$ac_compile") 2>conftest.er1
13257 grep -v '^ *+' conftest.er1 >conftest.err
13259 cat conftest.err >&5
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); } && {
13262 test -z "$ac_c_werror_flag" ||
13263 test ! -s conftest.err
13264 } && test -s conftest.$ac_objext; then
13265 ac_header_compiler=yes
13267 echo "$as_me: failed program was:" >&5
13268 sed 's/^/| /' conftest.$ac_ext >&5
13270 ac_header_compiler=no
13273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13274 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13275 echo "${ECHO_T}$ac_header_compiler" >&6; }
13277 # Is the header present?
13278 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13279 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13280 cat >conftest.$ac_ext <<_ACEOF
13283 cat confdefs.h >>conftest.$ac_ext
13284 cat >>conftest.$ac_ext <<_ACEOF
13285 /* end confdefs.h. */
13286 #include <X11/xpm.h>
13288 if { (ac_try="$ac_cpp conftest.$ac_ext"
13289 case "(($ac_try" in
13290 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13291 *) ac_try_echo
=$ac_try;;
13293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13294 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13296 grep -v '^ *+' conftest.er1
>conftest.err
13298 cat conftest.err
>&5
13299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13300 (exit $ac_status); } >/dev
/null
&& {
13301 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13302 test ! -s conftest.err
13304 ac_header_preproc
=yes
13306 echo "$as_me: failed program was:" >&5
13307 sed 's/^/| /' conftest.
$ac_ext >&5
13309 ac_header_preproc
=no
13312 rm -f conftest.err conftest.
$ac_ext
13313 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13314 echo "${ECHO_T}$ac_header_preproc" >&6; }
13316 # So? What about this header?
13317 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13319 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13320 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13321 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13322 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13323 ac_header_preproc
=yes
13326 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13327 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13329 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13330 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13331 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13333 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13334 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13335 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13336 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13337 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13341 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13342 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13343 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13344 echo $ECHO_N "(cached) $ECHO_C" >&6
13346 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13348 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13349 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13352 if test $ac_cv_header_X11_xpm_h = yes; then
13353 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13354 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13355 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13356 echo $ECHO_N "(cached) $ECHO_C" >&6
13358 ac_check_lib_save_LIBS
=$LIBS
13359 LIBS
="-lXpm -lX11 $LIBS"
13360 cat >conftest.
$ac_ext <<_ACEOF
13363 cat confdefs.h
>>conftest.
$ac_ext
13364 cat >>conftest.
$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13367 /* Override any GCC internal prototype to avoid an error.
13368 Use char because int might match the return type of a GCC
13369 builtin and then its argument prototype would still apply. */
13373 char XpmReadFileToPixmap ();
13377 return XpmReadFileToPixmap ();
13382 rm -f conftest.
$ac_objext conftest
$ac_exeext
13383 if { (ac_try
="$ac_link"
13384 case "(($ac_try" in
13385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13386 *) ac_try_echo=$ac_try;;
13388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13389 (eval "$ac_link") 2>conftest.er1
13391 grep -v '^ *+' conftest.er1 >conftest.err
13393 cat conftest.err >&5
13394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13395 (exit $ac_status); } && {
13396 test -z "$ac_c_werror_flag" ||
13397 test ! -s conftest.err
13398 } && test -s conftest$ac_exeext &&
13399 $as_test_x conftest$ac_exeext; then
13400 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13402 echo "$as_me: failed program was:" >&5
13403 sed 's/^/| /' conftest.$ac_ext >&5
13405 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13409 conftest$ac_exeext conftest.$ac_ext
13410 LIBS=$ac_check_lib_save_LIBS
13412 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13413 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13414 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13421 if test "${HAVE_XPM}" = "yes"; then
13422 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13423 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13424 cat >conftest.$ac_ext <<_ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 #include "X11/xpm.h"
13431 #ifndef XpmReturnAllocPixels
13432 no_return_alloc_pixels
13436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13437 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13445 if test "${HAVE_XPM}" = "yes"; then
13446 { echo "$as_me:$LINENO: result: yes" >&5
13447 echo "${ECHO_T}yes" >&6; }
13449 { echo "$as_me:$LINENO: result: no" >&5
13450 echo "${ECHO_T}no" >&6; }
13455 if test "${HAVE_XPM}" = "yes"; then
13457 cat >>confdefs.h <<\_ACEOF
13464 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13466 if test "${HAVE_X11}" = "yes"; then
13467 if test "${with_jpeg}" != "no"; then
13468 if test "${ac_cv_header_jerror_h+set}" = set; then
13469 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13470 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13471 if test "${ac_cv_header_jerror_h+set}" = set; then
13472 echo $ECHO_N "(cached) $ECHO_C" >&6
13474 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13475 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13477 # Is the header compilable?
13478 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13479 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13480 cat >conftest.$ac_ext <<_ACEOF
13483 cat confdefs.h >>conftest.$ac_ext
13484 cat >>conftest.$ac_ext <<_ACEOF
13485 /* end confdefs.h. */
13486 $ac_includes_default
13487 #include <jerror.h>
13489 rm -f conftest.$ac_objext
13490 if { (ac_try="$ac_compile"
13491 case "(($ac_try" in
13492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13493 *) ac_try_echo=$ac_try;;
13495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13496 (eval "$ac_compile") 2>conftest.er1
13498 grep -v '^
*+' conftest.er1 >conftest.err
13500 cat conftest.err >&5
13501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13502 (exit $ac_status); } && {
13503 test -z "$ac_c_werror_flag" ||
13504 test ! -s conftest.err
13505 } && test -s conftest.$ac_objext; then
13506 ac_header_compiler=yes
13508 echo "$as_me: failed program was:" >&5
13509 sed 's
/^
/|
/' conftest.$ac_ext >&5
13511 ac_header_compiler=no
13514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13515 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13516 echo "${ECHO_T}$ac_header_compiler" >&6; }
13518 # Is the header present?
13519 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13520 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13521 cat >conftest.$ac_ext <<_ACEOF
13524 cat confdefs.h >>conftest.$ac_ext
13525 cat >>conftest.$ac_ext <<_ACEOF
13526 /* end confdefs.h. */
13527 #include <jerror.h>
13529 if { (ac_try="$ac_cpp conftest.$ac_ext"
13530 case "(($ac_try" in
13531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13532 *) ac_try_echo=$ac_try;;
13534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13535 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13537 grep -v '^
*+' conftest.er1 >conftest.err
13539 cat conftest.err >&5
13540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13541 (exit $ac_status); } >/dev/null && {
13542 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13543 test ! -s conftest.err
13545 ac_header_preproc=yes
13547 echo "$as_me: failed program was:" >&5
13548 sed 's
/^
/|
/' conftest.$ac_ext >&5
13550 ac_header_preproc=no
13553 rm -f conftest.err conftest.$ac_ext
13554 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13555 echo "${ECHO_T}$ac_header_preproc" >&6; }
13557 # So? What about this header?
13558 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13560 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13561 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13562 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13563 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13564 ac_header_preproc=yes
13567 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13568 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13570 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13571 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13572 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13573 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13574 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13575 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13576 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13577 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13578 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13582 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13583 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13584 if test "${ac_cv_header_jerror_h+set}" = set; then
13585 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 ac_cv_header_jerror_h=$ac_header_preproc
13589 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13590 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13593 if test $ac_cv_header_jerror_h = yes; then
13594 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13595 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13596 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13599 ac_check_lib_save_LIBS=$LIBS
13600 LIBS="-ljpeg $LIBS"
13601 cat >conftest.$ac_ext <<_ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13608 /* Override any GCC internal prototype to avoid an error.
13609 Use char because int might match the return type of a GCC
13610 builtin and then its argument prototype would still apply. */
13614 char jpeg_destroy_compress ();
13618 return jpeg_destroy_compress ();
13623 rm -f conftest.$ac_objext conftest$ac_exeext
13624 if { (ac_try="$ac_link"
13625 case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_link") 2>conftest.er1
13632 grep -v '^
*+' conftest.er1 >conftest.err
13634 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } && {
13637 test -z "$ac_c_werror_flag" ||
13638 test ! -s conftest.err
13639 } && test -s conftest$ac_exeext &&
13640 $as_test_x conftest$ac_exeext; then
13641 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13643 echo "$as_me: failed program was:" >&5
13644 sed 's
/^
/|
/' conftest.$ac_ext >&5
13646 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13650 conftest$ac_exeext conftest.$ac_ext
13651 LIBS=$ac_check_lib_save_LIBS
13653 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13654 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13655 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13665 if test "${HAVE_JPEG}" = "yes"; then
13666 cat >>confdefs.h <<\_ACEOF
13667 #define HAVE_JPEG 1
13670 cat >conftest.$ac_ext <<_ACEOF
13673 cat confdefs.h >>conftest.$ac_ext
13674 cat >>conftest.$ac_ext <<_ACEOF
13675 /* end confdefs.h. */
13676 #include <jpeglib.h>
13677 version=JPEG_LIB_VERSION
13680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13681 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13682 cat >>confdefs.h <<\_ACEOF
13683 #define HAVE_JPEG 1
13687 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13688 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13696 ### Use -lpng if available, unless `--with-png=no'.
13698 if test "${HAVE_X11}" = "yes"; then
13699 if test "${with_png}" != "no"; then
13700 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13701 # in /usr/include/libpng.
13704 for ac_header
in png.h libpng
/png.h
13706 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13707 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13710 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13711 echo $ECHO_N "(cached) $ECHO_C" >&6
13713 ac_res
=`eval echo '${'$as_ac_Header'}'`
13714 { echo "$as_me:$LINENO: result: $ac_res" >&5
13715 echo "${ECHO_T}$ac_res" >&6; }
13717 # Is the header compilable?
13718 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13719 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13720 cat >conftest.
$ac_ext <<_ACEOF
13723 cat confdefs.h
>>conftest.
$ac_ext
13724 cat >>conftest.
$ac_ext <<_ACEOF
13725 /* end confdefs.h. */
13726 $ac_includes_default
13727 #include <$ac_header>
13729 rm -f conftest.
$ac_objext
13730 if { (ac_try
="$ac_compile"
13731 case "(($ac_try" in
13732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13733 *) ac_try_echo=$ac_try;;
13735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13736 (eval "$ac_compile") 2>conftest.er1
13738 grep -v '^ *+' conftest.er1 >conftest.err
13740 cat conftest.err >&5
13741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13742 (exit $ac_status); } && {
13743 test -z "$ac_c_werror_flag" ||
13744 test ! -s conftest.err
13745 } && test -s conftest.$ac_objext; then
13746 ac_header_compiler=yes
13748 echo "$as_me: failed program was:" >&5
13749 sed 's/^/| /' conftest.$ac_ext >&5
13751 ac_header_compiler=no
13754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13755 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13756 echo "${ECHO_T}$ac_header_compiler" >&6; }
13758 # Is the header present?
13759 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13760 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13761 cat >conftest.$ac_ext <<_ACEOF
13764 cat confdefs.h >>conftest.$ac_ext
13765 cat >>conftest.$ac_ext <<_ACEOF
13766 /* end confdefs.h. */
13767 #include <$ac_header>
13769 if { (ac_try="$ac_cpp conftest.$ac_ext"
13770 case "(($ac_try" in
13771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13772 *) ac_try_echo
=$ac_try;;
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13777 grep -v '^ *+' conftest.er1
>conftest.err
13779 cat conftest.err
>&5
13780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781 (exit $ac_status); } >/dev
/null
&& {
13782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13783 test ! -s conftest.err
13785 ac_header_preproc
=yes
13787 echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.
$ac_ext >&5
13790 ac_header_preproc
=no
13793 rm -f conftest.err conftest.
$ac_ext
13794 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13795 echo "${ECHO_T}$ac_header_preproc" >&6; }
13797 # So? What about this header?
13798 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13800 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13801 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13803 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13804 ac_header_preproc
=yes
13807 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13808 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13809 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13810 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13811 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13812 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13813 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13814 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13815 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13816 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13817 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13818 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13822 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13823 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13824 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13825 echo $ECHO_N "(cached) $ECHO_C" >&6
13827 eval "$as_ac_Header=\$ac_header_preproc"
13829 ac_res
=`eval echo '${'$as_ac_Header'}'`
13830 { echo "$as_me:$LINENO: result: $ac_res" >&5
13831 echo "${ECHO_T}$ac_res" >&6; }
13834 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13835 cat >>confdefs.h
<<_ACEOF
13836 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13843 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13844 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13845 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13846 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13847 echo $ECHO_N "(cached) $ECHO_C" >&6
13849 ac_check_lib_save_LIBS
=$LIBS
13850 LIBS
="-lpng -lz -lm $LIBS"
13851 cat >conftest.
$ac_ext <<_ACEOF
13854 cat confdefs.h
>>conftest.
$ac_ext
13855 cat >>conftest.
$ac_ext <<_ACEOF
13856 /* end confdefs.h. */
13858 /* Override any GCC internal prototype to avoid an error.
13859 Use char because int might match the return type of a GCC
13860 builtin and then its argument prototype would still apply. */
13864 char png_get_channels ();
13868 return png_get_channels ();
13873 rm -f conftest.
$ac_objext conftest
$ac_exeext
13874 if { (ac_try
="$ac_link"
13875 case "(($ac_try" in
13876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13877 *) ac_try_echo=$ac_try;;
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880 (eval "$ac_link") 2>conftest.er1
13882 grep -v '^ *+' conftest.er1 >conftest.err
13884 cat conftest.err >&5
13885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13886 (exit $ac_status); } && {
13887 test -z "$ac_c_werror_flag" ||
13888 test ! -s conftest.err
13889 } && test -s conftest$ac_exeext &&
13890 $as_test_x conftest$ac_exeext; then
13891 ac_cv_lib_png_png_get_channels=yes
13893 echo "$as_me: failed program was:" >&5
13894 sed 's/^/| /' conftest.$ac_ext >&5
13896 ac_cv_lib_png_png_get_channels=no
13899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13900 conftest$ac_exeext conftest.$ac_ext
13901 LIBS=$ac_check_lib_save_LIBS
13903 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13904 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13905 if test $ac_cv_lib_png_png_get_channels = yes; then
13912 if test "${HAVE_PNG}" = "yes"; then
13914 cat >>confdefs.h <<\_ACEOF
13921 ### Use -ltiff if available, unless `--with-tiff=no
'.
13923 if test "${HAVE_X11}" = "yes"; then
13924 if test "${with_tiff}" != "no"; then
13925 if test "${ac_cv_header_tiffio_h+set}" = set; then
13926 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13927 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13928 if test "${ac_cv_header_tiffio_h+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13931 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13932 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13934 # Is the header compilable?
13935 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13936 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13937 cat >conftest.$ac_ext <<_ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 $ac_includes_default
13944 #include <tiffio.h>
13946 rm -f conftest.$ac_objext
13947 if { (ac_try="$ac_compile"
13948 case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_compile") 2>conftest.er1
13955 grep -v '^
*+' conftest.er1 >conftest.err
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } && {
13960 test -z "$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 } && test -s conftest.$ac_objext; then
13963 ac_header_compiler=yes
13965 echo "$as_me: failed program was:" >&5
13966 sed 's
/^
/|
/' conftest.$ac_ext >&5
13968 ac_header_compiler=no
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13973 echo "${ECHO_T}$ac_header_compiler" >&6; }
13975 # Is the header present?
13976 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13977 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13978 cat >conftest.$ac_ext <<_ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 #include <tiffio.h>
13986 if { (ac_try="$ac_cpp conftest.$ac_ext"
13987 case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13994 grep -v '^
*+' conftest.er1 >conftest.err
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } >/dev/null && {
13999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14000 test ! -s conftest.err
14002 ac_header_preproc=yes
14004 echo "$as_me: failed program was:" >&5
14005 sed 's
/^
/|
/' conftest.$ac_ext >&5
14007 ac_header_preproc=no
14010 rm -f conftest.err conftest.$ac_ext
14011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14012 echo "${ECHO_T}$ac_header_preproc" >&6; }
14014 # So? What about this header?
14015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14017 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14018 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14020 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14021 ac_header_preproc=yes
14024 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14025 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14027 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14029 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14031 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14033 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14035 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14039 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14040 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14041 if test "${ac_cv_header_tiffio_h+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14044 ac_cv_header_tiffio_h=$ac_header_preproc
14046 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14047 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14050 if test $ac_cv_header_tiffio_h = yes; then
14052 # At least one tiff package requires the jpeg library.
14053 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14054 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14055 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14056 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14057 echo $ECHO_N "(cached) $ECHO_C" >&6
14059 ac_check_lib_save_LIBS=$LIBS
14060 LIBS="-ltiff $tifflibs $LIBS"
14061 cat >conftest.$ac_ext <<_ACEOF
14064 cat confdefs.h >>conftest.$ac_ext
14065 cat >>conftest.$ac_ext <<_ACEOF
14066 /* end confdefs.h. */
14068 /* Override any GCC internal prototype to avoid an error.
14069 Use char because int might match the return type of a GCC
14070 builtin and then its argument prototype would still apply. */
14074 char TIFFGetVersion ();
14078 return TIFFGetVersion ();
14083 rm -f conftest.$ac_objext conftest$ac_exeext
14084 if { (ac_try="$ac_link"
14085 case "(($ac_try" in
14086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14087 *) ac_try_echo=$ac_try;;
14089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14090 (eval "$ac_link") 2>conftest.er1
14092 grep -v '^
*+' conftest.er1 >conftest.err
14094 cat conftest.err >&5
14095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14096 (exit $ac_status); } && {
14097 test -z "$ac_c_werror_flag" ||
14098 test ! -s conftest.err
14099 } && test -s conftest$ac_exeext &&
14100 $as_test_x conftest$ac_exeext; then
14101 ac_cv_lib_tiff_TIFFGetVersion=yes
14103 echo "$as_me: failed program was:" >&5
14104 sed 's
/^
/|
/' conftest.$ac_ext >&5
14106 ac_cv_lib_tiff_TIFFGetVersion=no
14109 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14110 conftest$ac_exeext conftest.$ac_ext
14111 LIBS=$ac_check_lib_save_LIBS
14113 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14114 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14115 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14124 if test "${HAVE_TIFF}" = "yes"; then
14126 cat >>confdefs.h <<\_ACEOF
14127 #define HAVE_TIFF 1
14133 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14135 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14136 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14137 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14138 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14139 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14140 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14143 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14145 # Is the header compilable?
14146 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14147 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14148 cat >conftest.
$ac_ext <<_ACEOF
14151 cat confdefs.h
>>conftest.
$ac_ext
14152 cat >>conftest.
$ac_ext <<_ACEOF
14153 /* end confdefs.h. */
14154 $ac_includes_default
14155 #include <gif_lib.h>
14157 rm -f conftest.
$ac_objext
14158 if { (ac_try
="$ac_compile"
14159 case "(($ac_try" in
14160 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_compile") 2>conftest.er1
14166 grep -v '^ *+' conftest.er1 >conftest.err
14168 cat conftest.err >&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } && {
14171 test -z "$ac_c_werror_flag" ||
14172 test ! -s conftest.err
14173 } && test -s conftest.$ac_objext; then
14174 ac_header_compiler=yes
14176 echo "$as_me: failed program was:" >&5
14177 sed 's/^/| /' conftest.$ac_ext >&5
14179 ac_header_compiler=no
14182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14184 echo "${ECHO_T}$ac_header_compiler" >&6; }
14186 # Is the header present?
14187 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14188 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14189 cat >conftest.$ac_ext <<_ACEOF
14192 cat confdefs.h >>conftest.$ac_ext
14193 cat >>conftest.$ac_ext <<_ACEOF
14194 /* end confdefs.h. */
14195 #include <gif_lib.h>
14197 if { (ac_try="$ac_cpp conftest.$ac_ext"
14198 case "(($ac_try" in
14199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14200 *) ac_try_echo
=$ac_try;;
14202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14205 grep -v '^ *+' conftest.er1
>conftest.err
14207 cat conftest.err
>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } >/dev
/null
&& {
14210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14211 test ! -s conftest.err
14213 ac_header_preproc
=yes
14215 echo "$as_me: failed program was:" >&5
14216 sed 's/^/| /' conftest.
$ac_ext >&5
14218 ac_header_preproc
=no
14221 rm -f conftest.err conftest.
$ac_ext
14222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14223 echo "${ECHO_T}$ac_header_preproc" >&6; }
14225 # So? What about this header?
14226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14228 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14229 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14230 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14231 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14232 ac_header_preproc
=yes
14235 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14236 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14237 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14238 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14239 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14240 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14241 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14242 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14244 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14245 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14246 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14250 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14251 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14252 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 ac_cv_header_gif_lib_h
=$ac_header_preproc
14257 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14258 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14261 if test $ac_cv_header_gif_lib_h = yes; then
14262 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14263 # Earlier versions can crash Emacs.
14264 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14265 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14266 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14267 echo $ECHO_N "(cached) $ECHO_C" >&6
14269 ac_check_lib_save_LIBS
=$LIBS
14271 cat >conftest.
$ac_ext <<_ACEOF
14274 cat confdefs.h
>>conftest.
$ac_ext
14275 cat >>conftest.
$ac_ext <<_ACEOF
14276 /* end confdefs.h. */
14278 /* Override any GCC internal prototype to avoid an error.
14279 Use char because int might match the return type of a GCC
14280 builtin and then its argument prototype would still apply. */
14284 char EGifPutExtensionLast ();
14288 return EGifPutExtensionLast ();
14293 rm -f conftest.
$ac_objext conftest
$ac_exeext
14294 if { (ac_try
="$ac_link"
14295 case "(($ac_try" in
14296 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14297 *) ac_try_echo=$ac_try;;
14299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14300 (eval "$ac_link") 2>conftest.er1
14302 grep -v '^ *+' conftest.er1 >conftest.err
14304 cat conftest.err >&5
14305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14306 (exit $ac_status); } && {
14307 test -z "$ac_c_werror_flag" ||
14308 test ! -s conftest.err
14309 } && test -s conftest$ac_exeext &&
14310 $as_test_x conftest$ac_exeext; then
14311 ac_cv_lib_gif_EGifPutExtensionLast=yes
14313 echo "$as_me: failed program was:" >&5
14314 sed 's/^/| /' conftest.$ac_ext >&5
14316 ac_cv_lib_gif_EGifPutExtensionLast=no
14319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14320 conftest$ac_exeext conftest.$ac_ext
14321 LIBS=$ac_check_lib_save_LIBS
14323 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14324 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14325 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14335 if test "$HAVE_GIF" = yes; then
14336 ac_gif_lib_name="-lgif"
14339 # If gif_lib.h but no libgif, try libungif.
14340 if test x"$try_libungif" = xyes; then
14341 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14342 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14343 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14344 echo $ECHO_N "(cached) $ECHO_C" >&6
14346 ac_check_lib_save_LIBS=$LIBS
14347 LIBS="-lungif $LIBS"
14348 cat >conftest.$ac_ext <<_ACEOF
14351 cat confdefs.h >>conftest.$ac_ext
14352 cat >>conftest.$ac_ext <<_ACEOF
14353 /* end confdefs.h. */
14355 /* Override any GCC internal prototype to avoid an error.
14356 Use char because int might match the return type of a GCC
14357 builtin and then its argument prototype would still apply. */
14361 char EGifPutExtensionLast ();
14365 return EGifPutExtensionLast ();
14370 rm -f conftest.$ac_objext conftest$ac_exeext
14371 if { (ac_try="$ac_link"
14372 case "(($ac_try" in
14373 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14374 *) ac_try_echo
=$ac_try;;
14376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14377 (eval "$ac_link") 2>conftest.er1
14379 grep -v '^ *+' conftest.er1
>conftest.err
14381 cat conftest.err
>&5
14382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14383 (exit $ac_status); } && {
14384 test -z "$ac_c_werror_flag" ||
14385 test ! -s conftest.err
14386 } && test -s conftest
$ac_exeext &&
14387 $as_test_x conftest
$ac_exeext; then
14388 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14390 echo "$as_me: failed program was:" >&5
14391 sed 's/^/| /' conftest.
$ac_ext >&5
14393 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14396 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14397 conftest
$ac_exeext conftest.
$ac_ext
14398 LIBS
=$ac_check_lib_save_LIBS
14400 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14401 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14402 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14407 if test "$HAVE_GIF" = yes; then
14409 cat >>confdefs.h
<<\_ACEOF
14410 #define LIBGIF -lungif
14413 ac_gif_lib_name
="-lungif"
14417 if test "${HAVE_GIF}" = "yes"; then
14419 cat >>confdefs.h
<<\_ACEOF
14426 if test "${HAVE_X11}" = "yes"; then
14429 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14430 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14431 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14432 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14433 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14434 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14435 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14436 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14437 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14438 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14440 if test "X${MISSING}" != X
; then
14441 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14443 Maybe some development libraries/packages are missing?
14444 If you don't want to link with them give
14446 as options to configure" >&5
14447 echo "$as_me: error: The following required libraries were not found:
14449 Maybe some development libraries/packages are missing?
14450 If you don't want to link with them give
14452 as options to configure" >&2;}
14453 { (exit 1); exit 1; }; }
14457 ### Use -lgpm if available, unless `--with-gpm=no'.
14459 if test "${with_gpm}" != "no"; then
14460 if test "${ac_cv_header_gpm_h+set}" = set; then
14461 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14462 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14463 if test "${ac_cv_header_gpm_h+set}" = set; then
14464 echo $ECHO_N "(cached) $ECHO_C" >&6
14466 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14467 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14469 # Is the header compilable?
14470 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14471 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14472 cat >conftest.
$ac_ext <<_ACEOF
14475 cat confdefs.h
>>conftest.
$ac_ext
14476 cat >>conftest.
$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 $ac_includes_default
14481 rm -f conftest.
$ac_objext
14482 if { (ac_try
="$ac_compile"
14483 case "(($ac_try" in
14484 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14485 *) ac_try_echo=$ac_try;;
14487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14488 (eval "$ac_compile") 2>conftest.er1
14490 grep -v '^ *+' conftest.er1 >conftest.err
14492 cat conftest.err >&5
14493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14494 (exit $ac_status); } && {
14495 test -z "$ac_c_werror_flag" ||
14496 test ! -s conftest.err
14497 } && test -s conftest.$ac_objext; then
14498 ac_header_compiler=yes
14500 echo "$as_me: failed program was:" >&5
14501 sed 's/^/| /' conftest.$ac_ext >&5
14503 ac_header_compiler=no
14506 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14507 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14508 echo "${ECHO_T}$ac_header_compiler" >&6; }
14510 # Is the header present?
14511 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14512 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14513 cat >conftest.$ac_ext <<_ACEOF
14516 cat confdefs.h >>conftest.$ac_ext
14517 cat >>conftest.$ac_ext <<_ACEOF
14518 /* end confdefs.h. */
14521 if { (ac_try="$ac_cpp conftest.$ac_ext"
14522 case "(($ac_try" in
14523 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14524 *) ac_try_echo
=$ac_try;;
14526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14527 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14529 grep -v '^ *+' conftest.er1
>conftest.err
14531 cat conftest.err
>&5
14532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533 (exit $ac_status); } >/dev
/null
&& {
14534 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14535 test ! -s conftest.err
14537 ac_header_preproc
=yes
14539 echo "$as_me: failed program was:" >&5
14540 sed 's/^/| /' conftest.
$ac_ext >&5
14542 ac_header_preproc
=no
14545 rm -f conftest.err conftest.
$ac_ext
14546 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14547 echo "${ECHO_T}$ac_header_preproc" >&6; }
14549 # So? What about this header?
14550 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14552 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14553 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14554 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14555 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14556 ac_header_preproc
=yes
14559 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14560 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14561 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14562 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14563 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14564 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14566 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14567 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14568 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14569 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14570 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14574 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14575 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14576 if test "${ac_cv_header_gpm_h+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 ac_cv_header_gpm_h
=$ac_header_preproc
14581 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14582 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14585 if test $ac_cv_header_gpm_h = yes; then
14586 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14587 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14588 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14589 echo $ECHO_N "(cached) $ECHO_C" >&6
14591 ac_check_lib_save_LIBS
=$LIBS
14593 cat >conftest.
$ac_ext <<_ACEOF
14596 cat confdefs.h
>>conftest.
$ac_ext
14597 cat >>conftest.
$ac_ext <<_ACEOF
14598 /* end confdefs.h. */
14600 /* Override any GCC internal prototype to avoid an error.
14601 Use char because int might match the return type of a GCC
14602 builtin and then its argument prototype would still apply. */
14610 return Gpm_Open ();
14615 rm -f conftest.
$ac_objext conftest
$ac_exeext
14616 if { (ac_try
="$ac_link"
14617 case "(($ac_try" in
14618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14619 *) ac_try_echo=$ac_try;;
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622 (eval "$ac_link") 2>conftest.er1
14624 grep -v '^ *+' conftest.er1 >conftest.err
14626 cat conftest.err >&5
14627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14628 (exit $ac_status); } && {
14629 test -z "$ac_c_werror_flag" ||
14630 test ! -s conftest.err
14631 } && test -s conftest$ac_exeext &&
14632 $as_test_x conftest$ac_exeext; then
14633 ac_cv_lib_gpm_Gpm_Open=yes
14635 echo "$as_me: failed program was:" >&5
14636 sed 's/^/| /' conftest.$ac_ext >&5
14638 ac_cv_lib_gpm_Gpm_Open=no
14641 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14642 conftest$ac_exeext conftest.$ac_ext
14643 LIBS=$ac_check_lib_save_LIBS
14645 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14646 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14647 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14656 if test "${HAVE_GPM}" = "yes"; then
14658 cat >>confdefs.h <<\_ACEOF
14664 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14665 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14666 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14667 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14668 echo $ECHO_N "(cached) $ECHO_C" >&6
14670 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14671 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14673 # Is the header compilable?
14674 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14675 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14676 cat >conftest.$ac_ext <<_ACEOF
14679 cat confdefs.h >>conftest.$ac_ext
14680 cat >>conftest.$ac_ext <<_ACEOF
14681 /* end confdefs.h. */
14682 $ac_includes_default
14683 #include <malloc/malloc.h>
14685 rm -f conftest.$ac_objext
14686 if { (ac_try="$ac_compile"
14687 case "(($ac_try" in
14688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14689 *) ac_try_echo
=$ac_try;;
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692 (eval "$ac_compile") 2>conftest.er1
14694 grep -v '^ *+' conftest.er1
>conftest.err
14696 cat conftest.err
>&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } && {
14699 test -z "$ac_c_werror_flag" ||
14700 test ! -s conftest.err
14701 } && test -s conftest.
$ac_objext; then
14702 ac_header_compiler
=yes
14704 echo "$as_me: failed program was:" >&5
14705 sed 's/^/| /' conftest.
$ac_ext >&5
14707 ac_header_compiler
=no
14710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14711 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14712 echo "${ECHO_T}$ac_header_compiler" >&6; }
14714 # Is the header present?
14715 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14716 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14717 cat >conftest.
$ac_ext <<_ACEOF
14720 cat confdefs.h
>>conftest.
$ac_ext
14721 cat >>conftest.
$ac_ext <<_ACEOF
14722 /* end confdefs.h. */
14723 #include <malloc/malloc.h>
14725 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14726 case "(($ac_try" in
14727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14728 *) ac_try_echo=$ac_try;;
14730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14731 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14733 grep -v '^ *+' conftest.er1 >conftest.err
14735 cat conftest.err >&5
14736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14737 (exit $ac_status); } >/dev/null && {
14738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14739 test ! -s conftest.err
14741 ac_header_preproc=yes
14743 echo "$as_me: failed program was:" >&5
14744 sed 's/^/| /' conftest.$ac_ext >&5
14746 ac_header_preproc=no
14749 rm -f conftest.err conftest.$ac_ext
14750 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14751 echo "${ECHO_T}$ac_header_preproc" >&6; }
14753 # So? What about this header?
14754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14756 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14757 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14758 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14759 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14760 ac_header_preproc=yes
14763 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14764 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14766 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14768 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14770 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14771 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14772 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14773 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14774 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14778 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14779 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14780 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14781 echo $ECHO_N "(cached) $ECHO_C" >&6
14783 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14785 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14786 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14789 if test $ac_cv_header_malloc_malloc_h = yes; then
14791 cat >>confdefs.h <<\_ACEOF
14792 #define HAVE_MALLOC_MALLOC_H 1
14799 ### Use Mac OS X Carbon API to implement GUI.
14800 if test "${HAVE_CARBON}" = "yes"; then
14802 cat >>confdefs.h <<\_ACEOF
14803 #define HAVE_CARBON 1
14806 ## Specify the install directory
14808 if test "${carbon_appdir_x}" != ""; then
14809 case ${carbon_appdir_x} in
14810 y | ye | yes) carbon_appdir=/Applications ;;
14811 * ) carbon_appdir=${carbon_appdir_x} ;;
14814 # We also have mouse menus.
14818 ### Use session management (-lSM -lICE) if available
14820 if test "${HAVE_X11}" = "yes"; then
14821 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14822 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14823 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14824 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14825 echo $ECHO_N "(cached) $ECHO_C" >&6
14827 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14828 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14830 # Is the header compilable?
14831 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14832 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14833 cat >conftest.$ac_ext <<_ACEOF
14836 cat confdefs.h >>conftest.$ac_ext
14837 cat >>conftest.$ac_ext <<_ACEOF
14838 /* end confdefs.h. */
14839 $ac_includes_default
14840 #include <X11/SM/SMlib.h>
14842 rm -f conftest.$ac_objext
14843 if { (ac_try="$ac_compile"
14844 case "(($ac_try" in
14845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14846 *) ac_try_echo
=$ac_try;;
14848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14849 (eval "$ac_compile") 2>conftest.er1
14851 grep -v '^ *+' conftest.er1
>conftest.err
14853 cat conftest.err
>&5
14854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14855 (exit $ac_status); } && {
14856 test -z "$ac_c_werror_flag" ||
14857 test ! -s conftest.err
14858 } && test -s conftest.
$ac_objext; then
14859 ac_header_compiler
=yes
14861 echo "$as_me: failed program was:" >&5
14862 sed 's/^/| /' conftest.
$ac_ext >&5
14864 ac_header_compiler
=no
14867 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14868 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14869 echo "${ECHO_T}$ac_header_compiler" >&6; }
14871 # Is the header present?
14872 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14873 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14874 cat >conftest.
$ac_ext <<_ACEOF
14877 cat confdefs.h
>>conftest.
$ac_ext
14878 cat >>conftest.
$ac_ext <<_ACEOF
14879 /* end confdefs.h. */
14880 #include <X11/SM/SMlib.h>
14882 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14883 case "(($ac_try" in
14884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14885 *) ac_try_echo=$ac_try;;
14887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14890 grep -v '^ *+' conftest.er1 >conftest.err
14892 cat conftest.err >&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } >/dev/null && {
14895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14896 test ! -s conftest.err
14898 ac_header_preproc=yes
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.$ac_ext >&5
14903 ac_header_preproc=no
14906 rm -f conftest.err conftest.$ac_ext
14907 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14908 echo "${ECHO_T}$ac_header_preproc" >&6; }
14910 # So? What about this header?
14911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14913 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14914 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14915 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14916 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14917 ac_header_preproc=yes
14920 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14921 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14923 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14925 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14927 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14928 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14929 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14930 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14931 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14935 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14936 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14937 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14938 echo $ECHO_N "(cached) $ECHO_C" >&6
14940 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14942 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14943 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14946 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14947 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14948 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14949 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14950 echo $ECHO_N "(cached) $ECHO_C" >&6
14952 ac_check_lib_save_LIBS=$LIBS
14953 LIBS="-lSM -lICE $LIBS"
14954 cat >conftest.$ac_ext <<_ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14961 /* Override any GCC internal prototype to avoid an error.
14962 Use char because int might match the return type of a GCC
14963 builtin and then its argument prototype would still apply. */
14967 char SmcOpenConnection ();
14971 return SmcOpenConnection ();
14976 rm -f conftest.$ac_objext conftest$ac_exeext
14977 if { (ac_try="$ac_link"
14978 case "(($ac_try" in
14979 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14980 *) ac_try_echo
=$ac_try;;
14982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14983 (eval "$ac_link") 2>conftest.er1
14985 grep -v '^ *+' conftest.er1
>conftest.err
14987 cat conftest.err
>&5
14988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14989 (exit $ac_status); } && {
14990 test -z "$ac_c_werror_flag" ||
14991 test ! -s conftest.err
14992 } && test -s conftest
$ac_exeext &&
14993 $as_test_x conftest
$ac_exeext; then
14994 ac_cv_lib_SM_SmcOpenConnection
=yes
14996 echo "$as_me: failed program was:" >&5
14997 sed 's/^/| /' conftest.
$ac_ext >&5
14999 ac_cv_lib_SM_SmcOpenConnection
=no
15002 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15003 conftest
$ac_exeext conftest.
$ac_ext
15004 LIBS
=$ac_check_lib_save_LIBS
15006 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15007 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15008 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15016 if test "${HAVE_X_SM}" = "yes"; then
15018 cat >>confdefs.h
<<\_ACEOF
15019 #define HAVE_X_SM 1
15024 *) LIBS
="-lSM -lICE $LIBS" ;;
15029 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15030 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15031 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15032 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15033 echo $ECHO_N "(cached) $ECHO_C" >&6
15035 cat >conftest.
$ac_ext <<_ACEOF
15038 cat confdefs.h
>>conftest.
$ac_ext
15039 cat >>conftest.
$ac_ext <<_ACEOF
15040 /* end confdefs.h. */
15050 rm -f conftest.
$ac_objext conftest
$ac_exeext
15051 if { (ac_try
="$ac_link"
15052 case "(($ac_try" in
15053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_link") 2>conftest.er1
15059 grep -v '^ *+' conftest.er1 >conftest.err
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } && {
15064 test -z "$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15066 } && test -s conftest$ac_exeext &&
15067 $as_test_x conftest$ac_exeext; then
15068 emacs_cv_netdb_declares_h_errno=yes
15070 echo "$as_me: failed program was:" >&5
15071 sed 's/^/| /' conftest.$ac_ext >&5
15073 emacs_cv_netdb_declares_h_errno=no
15076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15077 conftest$ac_exeext conftest.$ac_ext
15079 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15080 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15081 if test $emacs_cv_netdb_declares_h_errno = yes; then
15083 cat >>confdefs.h <<\_ACEOF
15084 #define HAVE_H_ERRNO 1
15089 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15090 # for constant arguments. Useless!
15091 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15092 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15093 if test "${ac_cv_working_alloca_h+set}" = set; then
15094 echo $ECHO_N "(cached) $ECHO_C" >&6
15096 cat >conftest.$ac_ext <<_ACEOF
15099 cat confdefs.h >>conftest.$ac_ext
15100 cat >>conftest.$ac_ext <<_ACEOF
15101 /* end confdefs.h. */
15102 #include <alloca.h>
15106 char *p = (char *) alloca (2 * sizeof (int));
15112 rm -f conftest.$ac_objext conftest$ac_exeext
15113 if { (ac_try="$ac_link"
15114 case "(($ac_try" in
15115 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15116 *) ac_try_echo
=$ac_try;;
15118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15119 (eval "$ac_link") 2>conftest.er1
15121 grep -v '^ *+' conftest.er1
>conftest.err
15123 cat conftest.err
>&5
15124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15125 (exit $ac_status); } && {
15126 test -z "$ac_c_werror_flag" ||
15127 test ! -s conftest.err
15128 } && test -s conftest
$ac_exeext &&
15129 $as_test_x conftest
$ac_exeext; then
15130 ac_cv_working_alloca_h
=yes
15132 echo "$as_me: failed program was:" >&5
15133 sed 's/^/| /' conftest.
$ac_ext >&5
15135 ac_cv_working_alloca_h
=no
15138 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15139 conftest
$ac_exeext conftest.
$ac_ext
15141 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15142 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15143 if test $ac_cv_working_alloca_h = yes; then
15145 cat >>confdefs.h
<<\_ACEOF
15146 #define HAVE_ALLOCA_H 1
15151 { echo "$as_me:$LINENO: checking for alloca" >&5
15152 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15153 if test "${ac_cv_func_alloca_works+set}" = set; then
15154 echo $ECHO_N "(cached) $ECHO_C" >&6
15156 cat >conftest.
$ac_ext <<_ACEOF
15159 cat confdefs.h
>>conftest.
$ac_ext
15160 cat >>conftest.
$ac_ext <<_ACEOF
15161 /* end confdefs.h. */
15163 # define alloca __builtin_alloca
15166 # include <malloc.h>
15167 # define alloca _alloca
15169 # ifdef HAVE_ALLOCA_H
15170 # include <alloca.h>
15175 # ifndef alloca /* predefined by HP cc +Olibcalls */
15186 char *p = (char *) alloca (1);
15192 rm -f conftest.
$ac_objext conftest
$ac_exeext
15193 if { (ac_try
="$ac_link"
15194 case "(($ac_try" in
15195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199 (eval "$ac_link") 2>conftest.er1
15201 grep -v '^ *+' conftest.er1 >conftest.err
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } && {
15206 test -z "$ac_c_werror_flag" ||
15207 test ! -s conftest.err
15208 } && test -s conftest$ac_exeext &&
15209 $as_test_x conftest$ac_exeext; then
15210 ac_cv_func_alloca_works=yes
15212 echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15215 ac_cv_func_alloca_works=no
15218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15219 conftest$ac_exeext conftest.$ac_ext
15221 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15222 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15224 if test $ac_cv_func_alloca_works = yes; then
15226 cat >>confdefs.h <<\_ACEOF
15227 #define HAVE_ALLOCA 1
15231 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15232 # that cause trouble. Some versions do not even contain alloca or
15233 # contain a buggy version. If you still want to use their alloca,
15234 # use ar to extract alloca.o from them instead of compiling alloca.c.
15236 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15238 cat >>confdefs.h <<\_ACEOF
15243 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15244 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15245 if test "${ac_cv_os_cray+set}" = set; then
15246 echo $ECHO_N "(cached
) $ECHO_C" >&6
15248 cat >conftest.$ac_ext <<_ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 #if defined CRAY && ! defined CRAY2
15261 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15262 $EGREP "webecray
" >/dev/null 2>&1; then
15270 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15271 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15272 if test $ac_cv_os_cray = yes; then
15273 for ac_func in _getb67 GETB67 getb67; do
15274 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15275 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15276 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15277 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15278 echo $ECHO_N "(cached
) $ECHO_C" >&6
15280 cat >conftest.$ac_ext <<_ACEOF
15283 cat confdefs.h >>conftest.$ac_ext
15284 cat >>conftest.$ac_ext <<_ACEOF
15285 /* end confdefs.h. */
15286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15288 #define $ac_func innocuous_$ac_func
15290 /* System header to define __stub macros and hopefully few prototypes,
15291 which can conflict with char $ac_func (); below.
15292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15293 <limits.h> exists even on freestanding compilers. */
15296 # include <limits.h>
15298 # include <assert.h>
15303 /* Override any GCC internal prototype to avoid an error.
15304 Use char because int might match the return type of a GCC
15305 builtin and then its argument prototype would still apply. */
15310 /* The GNU C library defines this for functions which it implements
15311 to always fail with ENOSYS. Some functions are actually named
15312 something starting with __ and the normal name is an alias. */
15313 #if defined __stub_$ac_func || defined __stub___$ac_func
15320 return $ac_func ();
15325 rm -f conftest.$ac_objext conftest$ac_exeext
15326 if { (ac_try="$ac_link"
15327 case "(($ac_try" in
15328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329 *) ac_try_echo=$ac_try;;
15331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15332 (eval "$ac_link") 2>conftest.er1
15334 grep -v '^ *+' conftest.er1 >conftest.err
15336 cat conftest.err >&5
15337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15338 (exit $ac_status); } && {
15339 test -z "$ac_c_werror_flag" ||
15340 test ! -s conftest.err
15341 } && test -s conftest$ac_exeext &&
15342 $as_test_x conftest$ac_exeext; then
15343 eval "$as_ac_var=yes"
15345 echo "$as_me: failed program was
:" >&5
15346 sed 's/^/| /' conftest.$ac_ext >&5
15348 eval "$as_ac_var=no
"
15351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15352 conftest$ac_exeext conftest.$ac_ext
15354 ac_res=`eval echo '${'$as_ac_var'}'`
15355 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15356 echo "${ECHO_T}$ac_res" >&6; }
15357 if test `eval echo '${'$as_ac_var'}'` = yes; then
15359 cat >>confdefs.h <<_ACEOF
15360 #define CRAY_STACKSEG_END $ac_func
15369 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15370 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15371 if test "${ac_cv_c_stack_direction+set}" = set; then
15372 echo $ECHO_N "(cached
) $ECHO_C" >&6
15374 if test "$cross_compiling" = yes; then
15375 ac_cv_c_stack_direction=0
15377 cat >conftest.$ac_ext <<_ACEOF
15380 cat confdefs.h >>conftest.$ac_ext
15381 cat >>conftest.$ac_ext <<_ACEOF
15382 /* end confdefs.h. */
15383 $ac_includes_default
15385 find_stack_direction ()
15387 static char *addr = 0;
15392 return find_stack_direction ();
15395 return (&dummy > addr) ? 1 : -1;
15401 return find_stack_direction () < 0;
15404 rm -f conftest$ac_exeext
15405 if { (ac_try="$ac_link"
15406 case "(($ac_try" in
15407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15408 *) ac_try_echo=$ac_try;;
15410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15411 (eval "$ac_link") 2>&5
15413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15414 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15415 { (case "(($ac_try" in
15416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15417 *) ac_try_echo=$ac_try;;
15419 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15420 (eval "$ac_try") 2>&5
15422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15423 (exit $ac_status); }; }; then
15424 ac_cv_c_stack_direction=1
15426 echo "$as_me: program exited with status
$ac_status" >&5
15427 echo "$as_me: failed program was
:" >&5
15428 sed 's/^/| /' conftest.$ac_ext >&5
15430 ( exit $ac_status )
15431 ac_cv_c_stack_direction=-1
15433 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15438 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15439 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15441 cat >>confdefs.h <<_ACEOF
15442 #define STACK_DIRECTION $ac_cv_c_stack_direction
15449 if test x"$ac_cv_func_alloca_works" != xyes; then
15450 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15451 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15452 { (exit 1); exit 1; }; }
15455 # fmod, logb, and frexp are found in -lm on most systems.
15456 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15458 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15459 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15460 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15461 echo $ECHO_N "(cached
) $ECHO_C" >&6
15463 ac_check_lib_save_LIBS=$LIBS
15465 cat >conftest.$ac_ext <<_ACEOF
15468 cat confdefs.h >>conftest.$ac_ext
15469 cat >>conftest.$ac_ext <<_ACEOF
15470 /* end confdefs.h. */
15472 /* Override any GCC internal prototype to avoid an error.
15473 Use char because int might match the return type of a GCC
15474 builtin and then its argument prototype would still apply. */
15487 rm -f conftest.$ac_objext conftest$ac_exeext
15488 if { (ac_try="$ac_link"
15489 case "(($ac_try" in
15490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15491 *) ac_try_echo=$ac_try;;
15493 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15494 (eval "$ac_link") 2>conftest.er1
15496 grep -v '^ *+' conftest.er1 >conftest.err
15498 cat conftest.err >&5
15499 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15500 (exit $ac_status); } && {
15501 test -z "$ac_c_werror_flag" ||
15502 test ! -s conftest.err
15503 } && test -s conftest$ac_exeext &&
15504 $as_test_x conftest$ac_exeext; then
15505 ac_cv_lib_m_sqrt=yes
15507 echo "$as_me: failed program was
:" >&5
15508 sed 's/^/| /' conftest.$ac_ext >&5
15510 ac_cv_lib_m_sqrt=no
15513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15514 conftest$ac_exeext conftest.$ac_ext
15515 LIBS=$ac_check_lib_save_LIBS
15517 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15518 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15519 if test $ac_cv_lib_m_sqrt = yes; then
15520 cat >>confdefs.h <<_ACEOF
15521 #define HAVE_LIBM 1
15529 # Check for mail-locking functions in a "mail" library. Probably this should
15530 # have the same check as for liblockfile below.
15532 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15533 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15534 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15535 echo $ECHO_N "(cached
) $ECHO_C" >&6
15537 ac_check_lib_save_LIBS=$LIBS
15538 LIBS="-lmail $LIBS"
15539 cat >conftest.$ac_ext <<_ACEOF
15542 cat confdefs.h >>conftest.$ac_ext
15543 cat >>conftest.$ac_ext <<_ACEOF
15544 /* end confdefs.h. */
15546 /* Override any GCC internal prototype to avoid an error.
15547 Use char because int might match the return type of a GCC
15548 builtin and then its argument prototype would still apply. */
15556 return maillock ();
15561 rm -f conftest.$ac_objext conftest$ac_exeext
15562 if { (ac_try="$ac_link"
15563 case "(($ac_try" in
15564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15565 *) ac_try_echo=$ac_try;;
15567 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15568 (eval "$ac_link") 2>conftest.er1
15570 grep -v '^ *+' conftest.er1 >conftest.err
15572 cat conftest.err >&5
15573 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15574 (exit $ac_status); } && {
15575 test -z "$ac_c_werror_flag" ||
15576 test ! -s conftest.err
15577 } && test -s conftest$ac_exeext &&
15578 $as_test_x conftest$ac_exeext; then
15579 ac_cv_lib_mail_maillock=yes
15581 echo "$as_me: failed program was
:" >&5
15582 sed 's/^/| /' conftest.$ac_ext >&5
15584 ac_cv_lib_mail_maillock=no
15587 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15588 conftest$ac_exeext conftest.$ac_ext
15589 LIBS=$ac_check_lib_save_LIBS
15591 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15592 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15593 if test $ac_cv_lib_mail_maillock = yes; then
15594 cat >>confdefs.h <<_ACEOF
15595 #define HAVE_LIBMAIL 1
15598 LIBS="-lmail $LIBS"
15603 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15604 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15605 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15606 echo $ECHO_N "(cached
) $ECHO_C" >&6
15608 ac_check_lib_save_LIBS=$LIBS
15609 LIBS="-llockfile $LIBS"
15610 cat >conftest.$ac_ext <<_ACEOF
15613 cat confdefs.h >>conftest.$ac_ext
15614 cat >>conftest.$ac_ext <<_ACEOF
15615 /* end confdefs.h. */
15617 /* Override any GCC internal prototype to avoid an error.
15618 Use char because int might match the return type of a GCC
15619 builtin and then its argument prototype would still apply. */
15627 return maillock ();
15632 rm -f conftest.$ac_objext conftest$ac_exeext
15633 if { (ac_try="$ac_link"
15634 case "(($ac_try" in
15635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15636 *) ac_try_echo=$ac_try;;
15638 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15639 (eval "$ac_link") 2>conftest.er1
15641 grep -v '^ *+' conftest.er1 >conftest.err
15643 cat conftest.err >&5
15644 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15645 (exit $ac_status); } && {
15646 test -z "$ac_c_werror_flag" ||
15647 test ! -s conftest.err
15648 } && test -s conftest$ac_exeext &&
15649 $as_test_x conftest$ac_exeext; then
15650 ac_cv_lib_lockfile_maillock=yes
15652 echo "$as_me: failed program was
:" >&5
15653 sed 's/^/| /' conftest.$ac_ext >&5
15655 ac_cv_lib_lockfile_maillock=no
15658 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15659 conftest$ac_exeext conftest.$ac_ext
15660 LIBS=$ac_check_lib_save_LIBS
15662 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15663 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15664 if test $ac_cv_lib_lockfile_maillock = yes; then
15665 cat >>confdefs.h <<_ACEOF
15666 #define HAVE_LIBLOCKFILE 1
15669 LIBS="-llockfile $LIBS"
15673 # If we have the shared liblockfile, assume we must use it for mail
15674 # locking (e.g. Debian). If we couldn't link against liblockfile
15675 # (no liblockfile.a installed), ensure that we don't need to.
15676 if test "$ac_cv_lib_lockfile_maillock" = no; then
15677 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15678 set dummy liblockfile.so; ac_word=$2
15679 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15680 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15681 if test "${ac_cv_prog_liblockfile+set}" = set; then
15682 echo $ECHO_N "(cached
) $ECHO_C" >&6
15684 if test -n "$liblockfile"; then
15685 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15688 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15689 for as_dir in $as_dummy
15692 test -z "$as_dir" && as_dir=.
15693 for ac_exec_ext in '' $ac_executable_extensions; do
15694 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15695 ac_cv_prog_liblockfile="yes"
15696 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15703 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15706 liblockfile=$ac_cv_prog_liblockfile
15707 if test -n "$liblockfile"; then
15708 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15709 echo "${ECHO_T}$liblockfile" >&6; }
15711 { echo "$as_me:$LINENO: result
: no
" >&5
15712 echo "${ECHO_T}no
" >&6; }
15716 if test $ac_cv_prog_liblockfile = yes; then
15717 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15718 This probably means that movemail could lose mail.
15719 There may be a \`development' package to
install containing liblockfile.
" >&5
15720 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15721 This probably means that movemail could lose mail.
15722 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15723 { (exit 1); exit 1; }; }
15728 for ac_func in touchlock
15730 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15731 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15732 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15733 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15734 echo $ECHO_N "(cached
) $ECHO_C" >&6
15736 cat >conftest.$ac_ext <<_ACEOF
15739 cat confdefs.h >>conftest.$ac_ext
15740 cat >>conftest.$ac_ext <<_ACEOF
15741 /* end confdefs.h. */
15742 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15743 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15744 #define $ac_func innocuous_$ac_func
15746 /* System header to define __stub macros and hopefully few prototypes,
15747 which can conflict with char $ac_func (); below.
15748 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15749 <limits.h> exists even on freestanding compilers. */
15752 # include <limits.h>
15754 # include <assert.h>
15759 /* Override any GCC internal prototype to avoid an error.
15760 Use char because int might match the return type of a GCC
15761 builtin and then its argument prototype would still apply. */
15766 /* The GNU C library defines this for functions which it implements
15767 to always fail with ENOSYS. Some functions are actually named
15768 something starting with __ and the normal name is an alias. */
15769 #if defined __stub_$ac_func || defined __stub___$ac_func
15776 return $ac_func ();
15781 rm -f conftest.$ac_objext conftest$ac_exeext
15782 if { (ac_try="$ac_link"
15783 case "(($ac_try" in
15784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15785 *) ac_try_echo=$ac_try;;
15787 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15788 (eval "$ac_link") 2>conftest.er1
15790 grep -v '^ *+' conftest.er1 >conftest.err
15792 cat conftest.err >&5
15793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15794 (exit $ac_status); } && {
15795 test -z "$ac_c_werror_flag" ||
15796 test ! -s conftest.err
15797 } && test -s conftest$ac_exeext &&
15798 $as_test_x conftest$ac_exeext; then
15799 eval "$as_ac_var=yes"
15801 echo "$as_me: failed program was
:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15804 eval "$as_ac_var=no
"
15807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15808 conftest$ac_exeext conftest.$ac_ext
15810 ac_res=`eval echo '${'$as_ac_var'}'`
15811 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15812 echo "${ECHO_T}$ac_res" >&6; }
15813 if test `eval echo '${'$as_ac_var'}'` = yes; then
15814 cat >>confdefs.h <<_ACEOF
15815 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15822 for ac_header in maillock.h
15824 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15825 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15826 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15827 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15828 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15829 echo $ECHO_N "(cached
) $ECHO_C" >&6
15831 ac_res=`eval echo '${'$as_ac_Header'}'`
15832 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15833 echo "${ECHO_T}$ac_res" >&6; }
15835 # Is the header compilable?
15836 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15837 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15838 cat >conftest.$ac_ext <<_ACEOF
15841 cat confdefs.h >>conftest.$ac_ext
15842 cat >>conftest.$ac_ext <<_ACEOF
15843 /* end confdefs.h. */
15844 $ac_includes_default
15845 #include <$ac_header>
15847 rm -f conftest.$ac_objext
15848 if { (ac_try="$ac_compile"
15849 case "(($ac_try" in
15850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15851 *) ac_try_echo=$ac_try;;
15853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15854 (eval "$ac_compile") 2>conftest.er1
15856 grep -v '^ *+' conftest.er1 >conftest.err
15858 cat conftest.err >&5
15859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15860 (exit $ac_status); } && {
15861 test -z "$ac_c_werror_flag" ||
15862 test ! -s conftest.err
15863 } && test -s conftest.$ac_objext; then
15864 ac_header_compiler=yes
15866 echo "$as_me: failed program was
:" >&5
15867 sed 's/^/| /' conftest.$ac_ext >&5
15869 ac_header_compiler=no
15872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15873 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15874 echo "${ECHO_T}$ac_header_compiler" >&6; }
15876 # Is the header present?
15877 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15878 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15879 cat >conftest.$ac_ext <<_ACEOF
15882 cat confdefs.h >>conftest.$ac_ext
15883 cat >>conftest.$ac_ext <<_ACEOF
15884 /* end confdefs.h. */
15885 #include <$ac_header>
15887 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15888 case "(($ac_try" in
15889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890 *) ac_try_echo=$ac_try;;
15892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15893 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15895 grep -v '^ *+' conftest.er1 >conftest.err
15897 cat conftest.err >&5
15898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15899 (exit $ac_status); } >/dev/null && {
15900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15901 test ! -s conftest.err
15903 ac_header_preproc=yes
15905 echo "$as_me: failed program was
:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 ac_header_preproc=no
15911 rm -f conftest.err conftest.$ac_ext
15912 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15913 echo "${ECHO_T}$ac_header_preproc" >&6; }
15915 # So? What about this header?
15916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15918 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15919 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15920 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15922 ac_header_preproc=yes
15925 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15926 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15927 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15928 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15929 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15930 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15931 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15932 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15933 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15935 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15936 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15940 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15941 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15942 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15943 echo $ECHO_N "(cached
) $ECHO_C" >&6
15945 eval "$as_ac_Header=\
$ac_header_preproc"
15947 ac_res=`eval echo '${'$as_ac_Header'}'`
15948 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15949 echo "${ECHO_T}$ac_res" >&6; }
15952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15953 cat >>confdefs.h <<_ACEOF
15954 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16030 for ac_func in gethostname getdomainname dup2 \
16031 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16032 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16033 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16034 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16035 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16036 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16037 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16038 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16040 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16041 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16042 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16043 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16044 echo $ECHO_N "(cached
) $ECHO_C" >&6
16046 cat >conftest.$ac_ext <<_ACEOF
16049 cat confdefs.h >>conftest.$ac_ext
16050 cat >>conftest.$ac_ext <<_ACEOF
16051 /* end confdefs.h. */
16052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16054 #define $ac_func innocuous_$ac_func
16056 /* System header to define __stub macros and hopefully few prototypes,
16057 which can conflict with char $ac_func (); below.
16058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16059 <limits.h> exists even on freestanding compilers. */
16062 # include <limits.h>
16064 # include <assert.h>
16069 /* Override any GCC internal prototype to avoid an error.
16070 Use char because int might match the return type of a GCC
16071 builtin and then its argument prototype would still apply. */
16076 /* The GNU C library defines this for functions which it implements
16077 to always fail with ENOSYS. Some functions are actually named
16078 something starting with __ and the normal name is an alias. */
16079 #if defined __stub_$ac_func || defined __stub___$ac_func
16086 return $ac_func ();
16091 rm -f conftest.$ac_objext conftest$ac_exeext
16092 if { (ac_try="$ac_link"
16093 case "(($ac_try" in
16094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095 *) ac_try_echo=$ac_try;;
16097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16098 (eval "$ac_link") 2>conftest.er1
16100 grep -v '^ *+' conftest.er1 >conftest.err
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16104 (exit $ac_status); } && {
16105 test -z "$ac_c_werror_flag" ||
16106 test ! -s conftest.err
16107 } && test -s conftest$ac_exeext &&
16108 $as_test_x conftest$ac_exeext; then
16109 eval "$as_ac_var=yes"
16111 echo "$as_me: failed program was
:" >&5
16112 sed 's/^/| /' conftest.$ac_ext >&5
16114 eval "$as_ac_var=no
"
16117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16118 conftest$ac_exeext conftest.$ac_ext
16120 ac_res=`eval echo '${'$as_ac_var'}'`
16121 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16122 echo "${ECHO_T}$ac_res" >&6; }
16123 if test `eval echo '${'$as_ac_var'}'` = yes; then
16124 cat >>confdefs.h <<_ACEOF
16125 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16133 for ac_header in sys/un.h
16135 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16136 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16137 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16138 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16139 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16140 echo $ECHO_N "(cached
) $ECHO_C" >&6
16142 ac_res=`eval echo '${'$as_ac_Header'}'`
16143 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16144 echo "${ECHO_T}$ac_res" >&6; }
16146 # Is the header compilable?
16147 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16148 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16149 cat >conftest.$ac_ext <<_ACEOF
16152 cat confdefs.h >>conftest.$ac_ext
16153 cat >>conftest.$ac_ext <<_ACEOF
16154 /* end confdefs.h. */
16155 $ac_includes_default
16156 #include <$ac_header>
16158 rm -f conftest.$ac_objext
16159 if { (ac_try="$ac_compile"
16160 case "(($ac_try" in
16161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162 *) ac_try_echo=$ac_try;;
16164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16165 (eval "$ac_compile") 2>conftest.er1
16167 grep -v '^ *+' conftest.er1 >conftest.err
16169 cat conftest.err >&5
16170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16171 (exit $ac_status); } && {
16172 test -z "$ac_c_werror_flag" ||
16173 test ! -s conftest.err
16174 } && test -s conftest.$ac_objext; then
16175 ac_header_compiler=yes
16177 echo "$as_me: failed program was
:" >&5
16178 sed 's/^/| /' conftest.$ac_ext >&5
16180 ac_header_compiler=no
16183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16184 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16185 echo "${ECHO_T}$ac_header_compiler" >&6; }
16187 # Is the header present?
16188 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16189 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16190 cat >conftest.$ac_ext <<_ACEOF
16193 cat confdefs.h >>conftest.$ac_ext
16194 cat >>conftest.$ac_ext <<_ACEOF
16195 /* end confdefs.h. */
16196 #include <$ac_header>
16198 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16199 case "(($ac_try" in
16200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16201 *) ac_try_echo=$ac_try;;
16203 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16204 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16206 grep -v '^ *+' conftest.er1 >conftest.err
16208 cat conftest.err >&5
16209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16210 (exit $ac_status); } >/dev/null && {
16211 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16212 test ! -s conftest.err
16214 ac_header_preproc=yes
16216 echo "$as_me: failed program was
:" >&5
16217 sed 's/^/| /' conftest.$ac_ext >&5
16219 ac_header_preproc=no
16222 rm -f conftest.err conftest.$ac_ext
16223 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16224 echo "${ECHO_T}$ac_header_preproc" >&6; }
16226 # So? What about this header?
16227 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16229 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16230 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16231 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16232 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16233 ac_header_preproc=yes
16236 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16237 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16238 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16239 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16240 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16241 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16242 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16243 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16244 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16245 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16246 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16247 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16251 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16252 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16253 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16254 echo $ECHO_N "(cached
) $ECHO_C" >&6
16256 eval "$as_ac_Header=\
$ac_header_preproc"
16258 ac_res=`eval echo '${'$as_ac_Header'}'`
16259 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16260 echo "${ECHO_T}$ac_res" >&6; }
16263 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16264 cat >>confdefs.h <<_ACEOF
16265 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16277 for ac_header in $ac_header_list
16279 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16280 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16281 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16282 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16283 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16284 echo $ECHO_N "(cached
) $ECHO_C" >&6
16286 ac_res=`eval echo '${'$as_ac_Header'}'`
16287 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16288 echo "${ECHO_T}$ac_res" >&6; }
16290 # Is the header compilable?
16291 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16292 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16293 cat >conftest.$ac_ext <<_ACEOF
16296 cat confdefs.h >>conftest.$ac_ext
16297 cat >>conftest.$ac_ext <<_ACEOF
16298 /* end confdefs.h. */
16299 $ac_includes_default
16300 #include <$ac_header>
16302 rm -f conftest.$ac_objext
16303 if { (ac_try="$ac_compile"
16304 case "(($ac_try" in
16305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306 *) ac_try_echo=$ac_try;;
16308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16309 (eval "$ac_compile") 2>conftest.er1
16311 grep -v '^ *+' conftest.er1 >conftest.err
16313 cat conftest.err >&5
16314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16315 (exit $ac_status); } && {
16316 test -z "$ac_c_werror_flag" ||
16317 test ! -s conftest.err
16318 } && test -s conftest.$ac_objext; then
16319 ac_header_compiler=yes
16321 echo "$as_me: failed program was
:" >&5
16322 sed 's/^/| /' conftest.$ac_ext >&5
16324 ac_header_compiler=no
16327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16328 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16329 echo "${ECHO_T}$ac_header_compiler" >&6; }
16331 # Is the header present?
16332 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16333 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16334 cat >conftest.$ac_ext <<_ACEOF
16337 cat confdefs.h >>conftest.$ac_ext
16338 cat >>conftest.$ac_ext <<_ACEOF
16339 /* end confdefs.h. */
16340 #include <$ac_header>
16342 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16343 case "(($ac_try" in
16344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345 *) ac_try_echo=$ac_try;;
16347 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16348 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16350 grep -v '^ *+' conftest.er1 >conftest.err
16352 cat conftest.err >&5
16353 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16354 (exit $ac_status); } >/dev/null && {
16355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16356 test ! -s conftest.err
16358 ac_header_preproc=yes
16360 echo "$as_me: failed program was
:" >&5
16361 sed 's/^/| /' conftest.$ac_ext >&5
16363 ac_header_preproc=no
16366 rm -f conftest.err conftest.$ac_ext
16367 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16368 echo "${ECHO_T}$ac_header_preproc" >&6; }
16370 # So? What about this header?
16371 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16373 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16374 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16375 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16376 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16377 ac_header_preproc=yes
16380 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16381 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16382 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16383 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16384 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16385 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16386 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16387 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16388 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16389 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16390 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16391 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16395 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16396 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16397 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16398 echo $ECHO_N "(cached
) $ECHO_C" >&6
16400 eval "$as_ac_Header=\
$ac_header_preproc"
16402 ac_res=`eval echo '${'$as_ac_Header'}'`
16403 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16404 echo "${ECHO_T}$ac_res" >&6; }
16407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16408 cat >>confdefs.h <<_ACEOF
16409 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16424 for ac_func in $ac_func_list
16426 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16427 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16428 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16429 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16430 echo $ECHO_N "(cached
) $ECHO_C" >&6
16432 cat >conftest.$ac_ext <<_ACEOF
16435 cat confdefs.h >>conftest.$ac_ext
16436 cat >>conftest.$ac_ext <<_ACEOF
16437 /* end confdefs.h. */
16438 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16439 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16440 #define $ac_func innocuous_$ac_func
16442 /* System header to define __stub macros and hopefully few prototypes,
16443 which can conflict with char $ac_func (); below.
16444 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16445 <limits.h> exists even on freestanding compilers. */
16448 # include <limits.h>
16450 # include <assert.h>
16455 /* Override any GCC internal prototype to avoid an error.
16456 Use char because int might match the return type of a GCC
16457 builtin and then its argument prototype would still apply. */
16462 /* The GNU C library defines this for functions which it implements
16463 to always fail with ENOSYS. Some functions are actually named
16464 something starting with __ and the normal name is an alias. */
16465 #if defined __stub_$ac_func || defined __stub___$ac_func
16472 return $ac_func ();
16477 rm -f conftest.$ac_objext conftest$ac_exeext
16478 if { (ac_try="$ac_link"
16479 case "(($ac_try" in
16480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16481 *) ac_try_echo=$ac_try;;
16483 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16484 (eval "$ac_link") 2>conftest.er1
16486 grep -v '^ *+' conftest.er1 >conftest.err
16488 cat conftest.err >&5
16489 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16490 (exit $ac_status); } && {
16491 test -z "$ac_c_werror_flag" ||
16492 test ! -s conftest.err
16493 } && test -s conftest$ac_exeext &&
16494 $as_test_x conftest$ac_exeext; then
16495 eval "$as_ac_var=yes"
16497 echo "$as_me: failed program was
:" >&5
16498 sed 's/^/| /' conftest.$ac_ext >&5
16500 eval "$as_ac_var=no
"
16503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16504 conftest$ac_exeext conftest.$ac_ext
16506 ac_res=`eval echo '${'$as_ac_var'}'`
16507 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16508 echo "${ECHO_T}$ac_res" >&6; }
16509 if test `eval echo '${'$as_ac_var'}'` = yes; then
16510 cat >>confdefs.h <<_ACEOF
16511 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16533 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16534 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16535 if test "${ac_cv_func_working_mktime+set}" = set; then
16536 echo $ECHO_N "(cached
) $ECHO_C" >&6
16538 if test "$cross_compiling" = yes; then
16539 ac_cv_func_working_mktime=no
16541 cat >conftest.$ac_ext <<_ACEOF
16544 cat confdefs.h >>conftest.$ac_ext
16545 cat >>conftest.$ac_ext <<_ACEOF
16546 /* end confdefs.h. */
16547 /* Test program from Paul Eggert and Tony Leneis. */
16548 #ifdef TIME_WITH_SYS_TIME
16549 # include <sys/time.h>
16552 # ifdef HAVE_SYS_TIME_H
16553 # include <sys/time.h>
16559 #include <stdlib.h>
16561 #ifdef HAVE_UNISTD_H
16562 # include <unistd.h>
16566 # define alarm(X) /* empty */
16569 /* Work around redefinition to rpl_putenv by other config tests. */
16572 static time_t time_t_max;
16573 static time_t time_t_min;
16575 /* Values we'll use to set the TZ environment variable. */
16576 static char *tz_strings[] = {
16577 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16578 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16580 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16582 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16583 Based on a problem report from Andreas Jaeger. */
16585 spring_forward_gap ()
16587 /* glibc (up to about 1998-10-07) failed this test. */
16590 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16591 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16592 on systems that don't support the Olson extension, or don't have the
16593 full zoneinfo tables installed. */
16594 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16603 return mktime (&tm) != (time_t) -1;
16611 return ! (lt = localtime (&now)) || mktime (lt) == now;
16618 return (mktime_test1 (now)
16619 && mktime_test1 ((time_t) (time_t_max - now))
16620 && mktime_test1 ((time_t) (time_t_min + now)));
16626 /* Based on code from Ariel Faigon. */
16636 return tm.tm_mon == 2 && tm.tm_mday == 31;
16645 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16646 now = mktime (&tm);
16647 if (now != (time_t) -1)
16649 struct tm *lt = localtime (&now);
16651 && lt->tm_year == tm.tm_year
16652 && lt->tm_mon == tm.tm_mon
16653 && lt->tm_mday == tm.tm_mday
16654 && lt->tm_hour == tm.tm_hour
16655 && lt->tm_min == tm.tm_min
16656 && lt->tm_sec == tm.tm_sec
16657 && lt->tm_yday == tm.tm_yday
16658 && lt->tm_wday == tm.tm_wday
16659 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16660 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16669 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16670 ignoring leap seconds. */
16671 unsigned long int answer = 2527315200UL;
16675 tm.tm_year = 2050 - 1900;
16678 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16681 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16682 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16683 on systems that don't support the Olson extension, or don't have the
16684 full zoneinfo tables installed. */
16685 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16689 /* Check that the result is either a failure, or close enough
16690 to the correct answer that we can assume the discrepancy is
16691 due to leap seconds. */
16692 return (t == (time_t) -1
16693 || (0 < t && answer - 120 <= t && t <= answer + 120));
16702 /* This test makes some buggy mktime implementations loop.
16703 Give up after 60 seconds; a mktime slower than that
16704 isn't worth using anyway. */
16707 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16710 if ((time_t) -1 < 0)
16711 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16713 delta = time_t_max / 997; /* a suitable prime number */
16714 for (i = 0; i < N_STRINGS; i++)
16717 putenv (tz_strings[i]);
16719 for (t = 0; t <= time_t_max - delta; t += delta)
16720 if (! mktime_test (t))
16722 if (! (mktime_test ((time_t) 1)
16723 && mktime_test ((time_t) (60 * 60))
16724 && mktime_test ((time_t) (60 * 60 * 24))))
16727 for (j = 1; 0 < j; j *= 2)
16728 if (! bigtime_test (j))
16730 if (! bigtime_test (j - 1))
16733 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16736 rm -f conftest$ac_exeext
16737 if { (ac_try="$ac_link"
16738 case "(($ac_try" in
16739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16740 *) ac_try_echo=$ac_try;;
16742 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16743 (eval "$ac_link") 2>&5
16745 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16746 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16747 { (case "(($ac_try" in
16748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749 *) ac_try_echo=$ac_try;;
16751 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16752 (eval "$ac_try") 2>&5
16754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16755 (exit $ac_status); }; }; then
16756 ac_cv_func_working_mktime=yes
16758 echo "$as_me: program exited with status
$ac_status" >&5
16759 echo "$as_me: failed program was
:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16762 ( exit $ac_status )
16763 ac_cv_func_working_mktime=no
16765 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16770 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16771 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16772 if test $ac_cv_func_working_mktime = no; then
16773 case " $LIBOBJS " in
16774 *" mktime.
$ac_objext "* ) ;;
16775 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16781 if test "$ac_cv_func_working_mktime" = no; then
16783 cat >>confdefs.h <<\_ACEOF
16784 #define BROKEN_MKTIME 1
16789 ac_have_func=no # yes means we've found a way to get the load average.
16791 # Make sure getloadavg.c is where it belongs, at configure-time.
16792 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16793 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16794 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16795 { (exit 1); exit 1; }; }
16799 # Check for getloadavg, but be sure not to touch the cache variable.
16800 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16801 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16802 if test "${ac_cv_func_getloadavg+set}" = set; then
16803 echo $ECHO_N "(cached
) $ECHO_C" >&6
16805 cat >conftest.$ac_ext <<_ACEOF
16808 cat confdefs.h >>conftest.$ac_ext
16809 cat >>conftest.$ac_ext <<_ACEOF
16810 /* end confdefs.h. */
16811 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16813 #define getloadavg innocuous_getloadavg
16815 /* System header to define __stub macros and hopefully few prototypes,
16816 which can conflict with char getloadavg (); below.
16817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16818 <limits.h> exists even on freestanding compilers. */
16821 # include <limits.h>
16823 # include <assert.h>
16828 /* Override any GCC internal prototype to avoid an error.
16829 Use char because int might match the return type of a GCC
16830 builtin and then its argument prototype would still apply. */
16834 char getloadavg ();
16835 /* The GNU C library defines this for functions which it implements
16836 to always fail with ENOSYS. Some functions are actually named
16837 something starting with __ and the normal name is an alias. */
16838 #if defined __stub_getloadavg || defined __stub___getloadavg
16845 return getloadavg ();
16850 rm -f conftest.$ac_objext conftest$ac_exeext
16851 if { (ac_try="$ac_link"
16852 case "(($ac_try" in
16853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16854 *) ac_try_echo=$ac_try;;
16856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16857 (eval "$ac_link") 2>conftest.er1
16859 grep -v '^ *+' conftest.er1 >conftest.err
16861 cat conftest.err >&5
16862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16863 (exit $ac_status); } && {
16864 test -z "$ac_c_werror_flag" ||
16865 test ! -s conftest.err
16866 } && test -s conftest$ac_exeext &&
16867 $as_test_x conftest$ac_exeext; then
16868 ac_cv_func_getloadavg=yes
16870 echo "$as_me: failed program was
:" >&5
16871 sed 's/^/| /' conftest.$ac_ext >&5
16873 ac_cv_func_getloadavg=no
16876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16877 conftest$ac_exeext conftest.$ac_ext
16879 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16880 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16881 if test $ac_cv_func_getloadavg = yes; then
16886 ) && ac_have_func=yes
16888 # On HPUX9, an unprivileged user can get load averages through this function.
16890 for ac_func in pstat_getdynamic
16892 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16893 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16894 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16895 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16896 echo $ECHO_N "(cached
) $ECHO_C" >&6
16898 cat >conftest.$ac_ext <<_ACEOF
16901 cat confdefs.h >>conftest.$ac_ext
16902 cat >>conftest.$ac_ext <<_ACEOF
16903 /* end confdefs.h. */
16904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16906 #define $ac_func innocuous_$ac_func
16908 /* System header to define __stub macros and hopefully few prototypes,
16909 which can conflict with char $ac_func (); below.
16910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16911 <limits.h> exists even on freestanding compilers. */
16914 # include <limits.h>
16916 # include <assert.h>
16921 /* Override any GCC internal prototype to avoid an error.
16922 Use char because int might match the return type of a GCC
16923 builtin and then its argument prototype would still apply. */
16928 /* The GNU C library defines this for functions which it implements
16929 to always fail with ENOSYS. Some functions are actually named
16930 something starting with __ and the normal name is an alias. */
16931 #if defined __stub_$ac_func || defined __stub___$ac_func
16938 return $ac_func ();
16943 rm -f conftest.$ac_objext conftest$ac_exeext
16944 if { (ac_try="$ac_link"
16945 case "(($ac_try" in
16946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16947 *) ac_try_echo=$ac_try;;
16949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16950 (eval "$ac_link") 2>conftest.er1
16952 grep -v '^ *+' conftest.er1 >conftest.err
16954 cat conftest.err >&5
16955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16956 (exit $ac_status); } && {
16957 test -z "$ac_c_werror_flag" ||
16958 test ! -s conftest.err
16959 } && test -s conftest$ac_exeext &&
16960 $as_test_x conftest$ac_exeext; then
16961 eval "$as_ac_var=yes"
16963 echo "$as_me: failed program was
:" >&5
16964 sed 's/^/| /' conftest.$ac_ext >&5
16966 eval "$as_ac_var=no
"
16969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16970 conftest$ac_exeext conftest.$ac_ext
16972 ac_res=`eval echo '${'$as_ac_var'}'`
16973 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16974 echo "${ECHO_T}$ac_res" >&6; }
16975 if test `eval echo '${'$as_ac_var'}'` = yes; then
16976 cat >>confdefs.h <<_ACEOF
16977 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16984 # Solaris has libkstat which does not require root.
16986 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16987 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16988 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16989 echo $ECHO_N "(cached
) $ECHO_C" >&6
16991 ac_check_lib_save_LIBS=$LIBS
16992 LIBS="-lkstat $LIBS"
16993 cat >conftest.$ac_ext <<_ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
17000 /* Override any GCC internal prototype to avoid an error.
17001 Use char because int might match the return type of a GCC
17002 builtin and then its argument prototype would still apply. */
17006 char kstat_open ();
17010 return kstat_open ();
17015 rm -f conftest.$ac_objext conftest$ac_exeext
17016 if { (ac_try="$ac_link"
17017 case "(($ac_try" in
17018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17019 *) ac_try_echo=$ac_try;;
17021 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17022 (eval "$ac_link") 2>conftest.er1
17024 grep -v '^ *+' conftest.er1 >conftest.err
17026 cat conftest.err >&5
17027 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17028 (exit $ac_status); } && {
17029 test -z "$ac_c_werror_flag" ||
17030 test ! -s conftest.err
17031 } && test -s conftest$ac_exeext &&
17032 $as_test_x conftest$ac_exeext; then
17033 ac_cv_lib_kstat_kstat_open=yes
17035 echo "$as_me: failed program was
:" >&5
17036 sed 's/^/| /' conftest.$ac_ext >&5
17038 ac_cv_lib_kstat_kstat_open=no
17041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17042 conftest$ac_exeext conftest.$ac_ext
17043 LIBS=$ac_check_lib_save_LIBS
17045 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17046 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17047 if test $ac_cv_lib_kstat_kstat_open = yes; then
17048 cat >>confdefs.h <<_ACEOF
17049 #define HAVE_LIBKSTAT 1
17052 LIBS="-lkstat $LIBS"
17056 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17058 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17059 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17060 # to get the right answer into the cache.
17061 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17062 if test $ac_have_func = no; then
17063 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17064 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17065 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17066 echo $ECHO_N "(cached
) $ECHO_C" >&6
17068 ac_check_lib_save_LIBS=$LIBS
17070 cat >conftest.$ac_ext <<_ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h. */
17077 /* Override any GCC internal prototype to avoid an error.
17078 Use char because int might match the return type of a GCC
17079 builtin and then its argument prototype would still apply. */
17087 return elf_begin ();
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (ac_try="$ac_link"
17094 case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17098 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_link") 2>conftest.er1
17101 grep -v '^ *+' conftest.er1 >conftest.err
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17105 (exit $ac_status); } && {
17106 test -z "$ac_c_werror_flag" ||
17107 test ! -s conftest.err
17108 } && test -s conftest$ac_exeext &&
17109 $as_test_x conftest$ac_exeext; then
17110 ac_cv_lib_elf_elf_begin=yes
17112 echo "$as_me: failed program was
:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17115 ac_cv_lib_elf_elf_begin=no
17118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17119 conftest$ac_exeext conftest.$ac_ext
17120 LIBS=$ac_check_lib_save_LIBS
17122 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17123 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17124 if test $ac_cv_lib_elf_elf_begin = yes; then
17129 if test $ac_have_func = no; then
17130 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17131 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17132 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17133 echo $ECHO_N "(cached
) $ECHO_C" >&6
17135 ac_check_lib_save_LIBS=$LIBS
17137 cat >conftest.$ac_ext <<_ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17144 /* Override any GCC internal prototype to avoid an error.
17145 Use char because int might match the return type of a GCC
17146 builtin and then its argument prototype would still apply. */
17154 return kvm_open ();
17159 rm -f conftest.$ac_objext conftest$ac_exeext
17160 if { (ac_try="$ac_link"
17161 case "(($ac_try" in
17162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17163 *) ac_try_echo=$ac_try;;
17165 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17166 (eval "$ac_link") 2>conftest.er1
17168 grep -v '^ *+' conftest.er1 >conftest.err
17170 cat conftest.err >&5
17171 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17172 (exit $ac_status); } && {
17173 test -z "$ac_c_werror_flag" ||
17174 test ! -s conftest.err
17175 } && test -s conftest$ac_exeext &&
17176 $as_test_x conftest$ac_exeext; then
17177 ac_cv_lib_kvm_kvm_open=yes
17179 echo "$as_me: failed program was
:" >&5
17180 sed 's/^/| /' conftest.$ac_ext >&5
17182 ac_cv_lib_kvm_kvm_open=no
17185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17186 conftest$ac_exeext conftest.$ac_ext
17187 LIBS=$ac_check_lib_save_LIBS
17189 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17190 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17191 if test $ac_cv_lib_kvm_kvm_open = yes; then
17195 # Check for the 4.4BSD definition of getloadavg.
17196 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17197 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17198 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17199 echo $ECHO_N "(cached
) $ECHO_C" >&6
17201 ac_check_lib_save_LIBS=$LIBS
17202 LIBS="-lutil $LIBS"
17203 cat >conftest.$ac_ext <<_ACEOF
17206 cat confdefs.h >>conftest.$ac_ext
17207 cat >>conftest.$ac_ext <<_ACEOF
17208 /* end confdefs.h. */
17210 /* Override any GCC internal prototype to avoid an error.
17211 Use char because int might match the return type of a GCC
17212 builtin and then its argument prototype would still apply. */
17216 char getloadavg ();
17220 return getloadavg ();
17225 rm -f conftest.$ac_objext conftest$ac_exeext
17226 if { (ac_try="$ac_link"
17227 case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17231 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_link") 2>conftest.er1
17234 grep -v '^ *+' conftest.er1 >conftest.err
17236 cat conftest.err >&5
17237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17238 (exit $ac_status); } && {
17239 test -z "$ac_c_werror_flag" ||
17240 test ! -s conftest.err
17241 } && test -s conftest$ac_exeext &&
17242 $as_test_x conftest$ac_exeext; then
17243 ac_cv_lib_util_getloadavg=yes
17245 echo "$as_me: failed program was
:" >&5
17246 sed 's/^/| /' conftest.$ac_ext >&5
17248 ac_cv_lib_util_getloadavg=no
17251 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17252 conftest$ac_exeext conftest.$ac_ext
17253 LIBS=$ac_check_lib_save_LIBS
17255 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17256 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17257 if test $ac_cv_lib_util_getloadavg = yes; then
17258 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17263 if test $ac_have_func = no; then
17264 # There is a commonly available library for RS/6000 AIX.
17265 # Since it is not a standard part of AIX, it might be installed locally.
17266 ac_getloadavg_LIBS=$LIBS
17267 LIBS="-L/usr
/local
/lib
$LIBS"
17268 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17269 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17270 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17271 echo $ECHO_N "(cached
) $ECHO_C" >&6
17273 ac_check_lib_save_LIBS=$LIBS
17274 LIBS="-lgetloadavg $LIBS"
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17282 /* Override any GCC internal prototype to avoid an error.
17283 Use char because int might match the return type of a GCC
17284 builtin and then its argument prototype would still apply. */
17288 char getloadavg ();
17292 return getloadavg ();
17297 rm -f conftest.$ac_objext conftest$ac_exeext
17298 if { (ac_try="$ac_link"
17299 case "(($ac_try" in
17300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17301 *) ac_try_echo=$ac_try;;
17303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17304 (eval "$ac_link") 2>conftest.er1
17306 grep -v '^ *+' conftest.er1 >conftest.err
17308 cat conftest.err >&5
17309 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17310 (exit $ac_status); } && {
17311 test -z "$ac_c_werror_flag" ||
17312 test ! -s conftest.err
17313 } && test -s conftest$ac_exeext &&
17314 $as_test_x conftest$ac_exeext; then
17315 ac_cv_lib_getloadavg_getloadavg=yes
17317 echo "$as_me: failed program was
:" >&5
17318 sed 's/^/| /' conftest.$ac_ext >&5
17320 ac_cv_lib_getloadavg_getloadavg=no
17323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17324 conftest$ac_exeext conftest.$ac_ext
17325 LIBS=$ac_check_lib_save_LIBS
17327 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17328 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17329 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17330 LIBS="-lgetloadavg $LIBS"
17332 LIBS=$ac_getloadavg_LIBS
17337 # Make sure it is really in the library, if we think we found it,
17338 # otherwise set up the replacement function.
17340 for ac_func in getloadavg
17342 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17343 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17344 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17345 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17346 echo $ECHO_N "(cached
) $ECHO_C" >&6
17348 cat >conftest.$ac_ext <<_ACEOF
17351 cat confdefs.h >>conftest.$ac_ext
17352 cat >>conftest.$ac_ext <<_ACEOF
17353 /* end confdefs.h. */
17354 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17355 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17356 #define $ac_func innocuous_$ac_func
17358 /* System header to define __stub macros and hopefully few prototypes,
17359 which can conflict with char $ac_func (); below.
17360 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17361 <limits.h> exists even on freestanding compilers. */
17364 # include <limits.h>
17366 # include <assert.h>
17371 /* Override any GCC internal prototype to avoid an error.
17372 Use char because int might match the return type of a GCC
17373 builtin and then its argument prototype would still apply. */
17378 /* The GNU C library defines this for functions which it implements
17379 to always fail with ENOSYS. Some functions are actually named
17380 something starting with __ and the normal name is an alias. */
17381 #if defined __stub_$ac_func || defined __stub___$ac_func
17388 return $ac_func ();
17393 rm -f conftest.$ac_objext conftest$ac_exeext
17394 if { (ac_try="$ac_link"
17395 case "(($ac_try" in
17396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17397 *) ac_try_echo=$ac_try;;
17399 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17400 (eval "$ac_link") 2>conftest.er1
17402 grep -v '^ *+' conftest.er1 >conftest.err
17404 cat conftest.err >&5
17405 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17406 (exit $ac_status); } && {
17407 test -z "$ac_c_werror_flag" ||
17408 test ! -s conftest.err
17409 } && test -s conftest$ac_exeext &&
17410 $as_test_x conftest$ac_exeext; then
17411 eval "$as_ac_var=yes"
17413 echo "$as_me: failed program was
:" >&5
17414 sed 's/^/| /' conftest.$ac_ext >&5
17416 eval "$as_ac_var=no
"
17419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17420 conftest$ac_exeext conftest.$ac_ext
17422 ac_res=`eval echo '${'$as_ac_var'}'`
17423 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17424 echo "${ECHO_T}$ac_res" >&6; }
17425 if test `eval echo '${'$as_ac_var'}'` = yes; then
17426 cat >>confdefs.h <<_ACEOF
17427 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17431 case " $LIBOBJS " in
17432 *" getloadavg.
$ac_objext "* ) ;;
17433 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17438 cat >>confdefs.h <<\_ACEOF
17439 #define C_GETLOADAVG 1
17442 # Figure out what our getloadavg.c needs.
17444 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17445 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17446 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17447 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17448 echo $ECHO_N "(cached
) $ECHO_C" >&6
17450 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17451 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17453 # Is the header compilable?
17454 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17455 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17456 cat >conftest.$ac_ext <<_ACEOF
17459 cat confdefs.h >>conftest.$ac_ext
17460 cat >>conftest.$ac_ext <<_ACEOF
17461 /* end confdefs.h. */
17462 $ac_includes_default
17463 #include <sys/dg_sys_info.h>
17465 rm -f conftest.$ac_objext
17466 if { (ac_try="$ac_compile"
17467 case "(($ac_try" in
17468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17469 *) ac_try_echo=$ac_try;;
17471 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17472 (eval "$ac_compile") 2>conftest.er1
17474 grep -v '^ *+' conftest.er1 >conftest.err
17476 cat conftest.err >&5
17477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17478 (exit $ac_status); } && {
17479 test -z "$ac_c_werror_flag" ||
17480 test ! -s conftest.err
17481 } && test -s conftest.$ac_objext; then
17482 ac_header_compiler=yes
17484 echo "$as_me: failed program was
:" >&5
17485 sed 's/^/| /' conftest.$ac_ext >&5
17487 ac_header_compiler=no
17490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17491 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17492 echo "${ECHO_T}$ac_header_compiler" >&6; }
17494 # Is the header present?
17495 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17496 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17497 cat >conftest.$ac_ext <<_ACEOF
17500 cat confdefs.h >>conftest.$ac_ext
17501 cat >>conftest.$ac_ext <<_ACEOF
17502 /* end confdefs.h. */
17503 #include <sys/dg_sys_info.h>
17505 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17506 case "(($ac_try" in
17507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17508 *) ac_try_echo=$ac_try;;
17510 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17511 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17513 grep -v '^ *+' conftest.er1 >conftest.err
17515 cat conftest.err >&5
17516 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17517 (exit $ac_status); } >/dev/null && {
17518 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17519 test ! -s conftest.err
17521 ac_header_preproc=yes
17523 echo "$as_me: failed program was
:" >&5
17524 sed 's/^/| /' conftest.$ac_ext >&5
17526 ac_header_preproc=no
17529 rm -f conftest.err conftest.$ac_ext
17530 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17531 echo "${ECHO_T}$ac_header_preproc" >&6; }
17533 # So? What about this header?
17534 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17536 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17537 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17538 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17539 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17540 ac_header_preproc=yes
17543 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17544 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17545 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17546 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17547 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17548 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17549 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17550 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17551 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17552 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17553 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17554 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17558 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17559 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17560 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17561 echo $ECHO_N "(cached
) $ECHO_C" >&6
17563 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17565 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17566 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17569 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17572 cat >>confdefs.h <<\_ACEOF
17577 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17578 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17579 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17580 echo $ECHO_N "(cached
) $ECHO_C" >&6
17582 ac_check_lib_save_LIBS=$LIBS
17584 cat >conftest.$ac_ext <<_ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h. */
17591 /* Override any GCC internal prototype to avoid an error.
17592 Use char because int might match the return type of a GCC
17593 builtin and then its argument prototype would still apply. */
17597 char dg_sys_info ();
17601 return dg_sys_info ();
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_link") 2>conftest.er1
17615 grep -v '^ *+' conftest.er1 >conftest.err
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17619 (exit $ac_status); } && {
17620 test -z "$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 } && test -s conftest$ac_exeext &&
17623 $as_test_x conftest$ac_exeext; then
17624 ac_cv_lib_dgc_dg_sys_info=yes
17626 echo "$as_me: failed program was
:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17629 ac_cv_lib_dgc_dg_sys_info=no
17632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17633 conftest$ac_exeext conftest.$ac_ext
17634 LIBS=$ac_check_lib_save_LIBS
17636 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17637 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17638 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17639 cat >>confdefs.h <<_ACEOF
17640 #define HAVE_LIBDGC 1
17651 if test "${ac_cv_header_locale_h+set}" = set; then
17652 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17653 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17654 if test "${ac_cv_header_locale_h+set}" = set; then
17655 echo $ECHO_N "(cached
) $ECHO_C" >&6
17657 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17658 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17660 # Is the header compilable?
17661 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17662 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17663 cat >conftest.$ac_ext <<_ACEOF
17666 cat confdefs.h >>conftest.$ac_ext
17667 cat >>conftest.$ac_ext <<_ACEOF
17668 /* end confdefs.h. */
17669 $ac_includes_default
17670 #include <locale.h>
17672 rm -f conftest.$ac_objext
17673 if { (ac_try="$ac_compile"
17674 case "(($ac_try" in
17675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17676 *) ac_try_echo=$ac_try;;
17678 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17679 (eval "$ac_compile") 2>conftest.er1
17681 grep -v '^ *+' conftest.er1 >conftest.err
17683 cat conftest.err >&5
17684 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17685 (exit $ac_status); } && {
17686 test -z "$ac_c_werror_flag" ||
17687 test ! -s conftest.err
17688 } && test -s conftest.$ac_objext; then
17689 ac_header_compiler=yes
17691 echo "$as_me: failed program was
:" >&5
17692 sed 's/^/| /' conftest.$ac_ext >&5
17694 ac_header_compiler=no
17697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17698 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17699 echo "${ECHO_T}$ac_header_compiler" >&6; }
17701 # Is the header present?
17702 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17703 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17704 cat >conftest.$ac_ext <<_ACEOF
17707 cat confdefs.h >>conftest.$ac_ext
17708 cat >>conftest.$ac_ext <<_ACEOF
17709 /* end confdefs.h. */
17710 #include <locale.h>
17712 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17717 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17720 grep -v '^ *+' conftest.er1 >conftest.err
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17724 (exit $ac_status); } >/dev/null && {
17725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17726 test ! -s conftest.err
17728 ac_header_preproc=yes
17730 echo "$as_me: failed program was
:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17733 ac_header_preproc=no
17736 rm -f conftest.err conftest.$ac_ext
17737 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17738 echo "${ECHO_T}$ac_header_preproc" >&6; }
17740 # So? What about this header?
17741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17743 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17744 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17745 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17746 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17747 ac_header_preproc=yes
17750 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17751 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17752 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17753 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17754 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17755 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17756 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17757 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17758 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17759 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17760 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17761 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17765 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17766 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17767 if test "${ac_cv_header_locale_h+set}" = set; then
17768 echo $ECHO_N "(cached
) $ECHO_C" >&6
17770 ac_cv_header_locale_h=$ac_header_preproc
17772 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17773 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17779 for ac_func in setlocale
17781 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17782 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17783 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17784 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17785 echo $ECHO_N "(cached
) $ECHO_C" >&6
17787 cat >conftest.$ac_ext <<_ACEOF
17790 cat confdefs.h >>conftest.$ac_ext
17791 cat >>conftest.$ac_ext <<_ACEOF
17792 /* end confdefs.h. */
17793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17795 #define $ac_func innocuous_$ac_func
17797 /* System header to define __stub macros and hopefully few prototypes,
17798 which can conflict with char $ac_func (); below.
17799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17800 <limits.h> exists even on freestanding compilers. */
17803 # include <limits.h>
17805 # include <assert.h>
17810 /* Override any GCC internal prototype to avoid an error.
17811 Use char because int might match the return type of a GCC
17812 builtin and then its argument prototype would still apply. */
17817 /* The GNU C library defines this for functions which it implements
17818 to always fail with ENOSYS. Some functions are actually named
17819 something starting with __ and the normal name is an alias. */
17820 #if defined __stub_$ac_func || defined __stub___$ac_func
17827 return $ac_func ();
17832 rm -f conftest.$ac_objext conftest$ac_exeext
17833 if { (ac_try="$ac_link"
17834 case "(($ac_try" in
17835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17836 *) ac_try_echo=$ac_try;;
17838 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17839 (eval "$ac_link") 2>conftest.er1
17841 grep -v '^ *+' conftest.er1 >conftest.err
17843 cat conftest.err >&5
17844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17845 (exit $ac_status); } && {
17846 test -z "$ac_c_werror_flag" ||
17847 test ! -s conftest.err
17848 } && test -s conftest$ac_exeext &&
17849 $as_test_x conftest$ac_exeext; then
17850 eval "$as_ac_var=yes"
17852 echo "$as_me: failed program was
:" >&5
17853 sed 's/^/| /' conftest.$ac_ext >&5
17855 eval "$as_ac_var=no
"
17858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17859 conftest$ac_exeext conftest.$ac_ext
17861 ac_res=`eval echo '${'$as_ac_var'}'`
17862 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17863 echo "${ECHO_T}$ac_res" >&6; }
17864 if test `eval echo '${'$as_ac_var'}'` = yes; then
17865 cat >>confdefs.h <<_ACEOF
17866 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17873 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17874 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17875 # Irix 4.0.5F has the header but not the library.
17876 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17879 cat >>confdefs.h <<\_ACEOF
17885 if test $ac_have_func = no; then
17886 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17887 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17888 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17889 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17890 echo $ECHO_N "(cached
) $ECHO_C" >&6
17892 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17893 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17895 # Is the header compilable?
17896 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17897 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17898 cat >conftest.$ac_ext <<_ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904 $ac_includes_default
17905 #include <inq_stats/cpustats.h>
17907 rm -f conftest.$ac_objext
17908 if { (ac_try="$ac_compile"
17909 case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17914 (eval "$ac_compile") 2>conftest.er1
17916 grep -v '^ *+' conftest.er1 >conftest.err
17918 cat conftest.err >&5
17919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17920 (exit $ac_status); } && {
17921 test -z "$ac_c_werror_flag" ||
17922 test ! -s conftest.err
17923 } && test -s conftest.$ac_objext; then
17924 ac_header_compiler=yes
17926 echo "$as_me: failed program was
:" >&5
17927 sed 's/^/| /' conftest.$ac_ext >&5
17929 ac_header_compiler=no
17932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17933 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17934 echo "${ECHO_T}$ac_header_compiler" >&6; }
17936 # Is the header present?
17937 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17938 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17939 cat >conftest.$ac_ext <<_ACEOF
17942 cat confdefs.h >>conftest.$ac_ext
17943 cat >>conftest.$ac_ext <<_ACEOF
17944 /* end confdefs.h. */
17945 #include <inq_stats/cpustats.h>
17947 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17948 case "(($ac_try" in
17949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17950 *) ac_try_echo=$ac_try;;
17952 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17953 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17955 grep -v '^ *+' conftest.er1 >conftest.err
17957 cat conftest.err >&5
17958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17959 (exit $ac_status); } >/dev/null && {
17960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17961 test ! -s conftest.err
17963 ac_header_preproc=yes
17965 echo "$as_me: failed program was
:" >&5
17966 sed 's/^/| /' conftest.$ac_ext >&5
17968 ac_header_preproc=no
17971 rm -f conftest.err conftest.$ac_ext
17972 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17973 echo "${ECHO_T}$ac_header_preproc" >&6; }
17975 # So? What about this header?
17976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17978 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17979 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17980 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17981 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17982 ac_header_preproc=yes
17985 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17986 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17987 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17988 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17989 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17990 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17991 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17992 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17993 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17994 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17995 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17996 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18000 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18001 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18002 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18003 echo $ECHO_N "(cached
) $ECHO_C" >&6
18005 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18007 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18008 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18011 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18014 cat >>confdefs.h <<\_ACEOF
18019 cat >>confdefs.h <<\_ACEOF
18028 if test $ac_have_func = no; then
18029 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18030 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18031 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18032 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18033 echo $ECHO_N "(cached
) $ECHO_C" >&6
18035 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18036 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18038 # Is the header compilable?
18039 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18040 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18041 cat >conftest.$ac_ext <<_ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 $ac_includes_default
18048 #include <sys/cpustats.h>
18050 rm -f conftest.$ac_objext
18051 if { (ac_try="$ac_compile"
18052 case "(($ac_try" in
18053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18054 *) ac_try_echo=$ac_try;;
18056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18057 (eval "$ac_compile") 2>conftest.er1
18059 grep -v '^ *+' conftest.er1 >conftest.err
18061 cat conftest.err >&5
18062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18063 (exit $ac_status); } && {
18064 test -z "$ac_c_werror_flag" ||
18065 test ! -s conftest.err
18066 } && test -s conftest.$ac_objext; then
18067 ac_header_compiler=yes
18069 echo "$as_me: failed program was
:" >&5
18070 sed 's/^/| /' conftest.$ac_ext >&5
18072 ac_header_compiler=no
18075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18076 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18077 echo "${ECHO_T}$ac_header_compiler" >&6; }
18079 # Is the header present?
18080 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18081 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18082 cat >conftest.$ac_ext <<_ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18088 #include <sys/cpustats.h>
18090 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18091 case "(($ac_try" in
18092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18093 *) ac_try_echo=$ac_try;;
18095 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18096 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18098 grep -v '^ *+' conftest.er1 >conftest.err
18100 cat conftest.err >&5
18101 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18102 (exit $ac_status); } >/dev/null && {
18103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18104 test ! -s conftest.err
18106 ac_header_preproc=yes
18108 echo "$as_me: failed program was
:" >&5
18109 sed 's/^/| /' conftest.$ac_ext >&5
18111 ac_header_preproc=no
18114 rm -f conftest.err conftest.$ac_ext
18115 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18116 echo "${ECHO_T}$ac_header_preproc" >&6; }
18118 # So? What about this header?
18119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18121 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18122 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18123 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18124 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18125 ac_header_preproc=yes
18128 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18129 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18130 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18131 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18132 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18133 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18134 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18135 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18136 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18137 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18138 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18139 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18143 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18144 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18145 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18146 echo $ECHO_N "(cached
) $ECHO_C" >&6
18148 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18150 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18151 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18154 if test $ac_cv_header_sys_cpustats_h = yes; then
18155 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18164 if test $ac_have_func = no; then
18166 for ac_header in mach/mach.h
18168 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18169 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18170 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18171 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18172 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18173 echo $ECHO_N "(cached
) $ECHO_C" >&6
18175 ac_res=`eval echo '${'$as_ac_Header'}'`
18176 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18177 echo "${ECHO_T}$ac_res" >&6; }
18179 # Is the header compilable?
18180 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18181 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18182 cat >conftest.$ac_ext <<_ACEOF
18185 cat confdefs.h >>conftest.$ac_ext
18186 cat >>conftest.$ac_ext <<_ACEOF
18187 /* end confdefs.h. */
18188 $ac_includes_default
18189 #include <$ac_header>
18191 rm -f conftest.$ac_objext
18192 if { (ac_try="$ac_compile"
18193 case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18197 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_compile") 2>conftest.er1
18200 grep -v '^ *+' conftest.er1 >conftest.err
18202 cat conftest.err >&5
18203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18204 (exit $ac_status); } && {
18205 test -z "$ac_c_werror_flag" ||
18206 test ! -s conftest.err
18207 } && test -s conftest.$ac_objext; then
18208 ac_header_compiler=yes
18210 echo "$as_me: failed program was
:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18213 ac_header_compiler=no
18216 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18217 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18218 echo "${ECHO_T}$ac_header_compiler" >&6; }
18220 # Is the header present?
18221 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18222 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18223 cat >conftest.$ac_ext <<_ACEOF
18226 cat confdefs.h >>conftest.$ac_ext
18227 cat >>conftest.$ac_ext <<_ACEOF
18228 /* end confdefs.h. */
18229 #include <$ac_header>
18231 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18232 case "(($ac_try" in
18233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18234 *) ac_try_echo=$ac_try;;
18236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18237 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18239 grep -v '^ *+' conftest.er1 >conftest.err
18241 cat conftest.err >&5
18242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18243 (exit $ac_status); } >/dev/null && {
18244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18245 test ! -s conftest.err
18247 ac_header_preproc=yes
18249 echo "$as_me: failed program was
:" >&5
18250 sed 's/^/| /' conftest.$ac_ext >&5
18252 ac_header_preproc=no
18255 rm -f conftest.err conftest.$ac_ext
18256 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18257 echo "${ECHO_T}$ac_header_preproc" >&6; }
18259 # So? What about this header?
18260 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18262 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18263 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18264 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18265 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18266 ac_header_preproc=yes
18269 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18270 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18271 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18272 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18273 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18274 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18275 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18276 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18277 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18278 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18279 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18280 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18284 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18285 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18286 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18287 echo $ECHO_N "(cached
) $ECHO_C" >&6
18289 eval "$as_ac_Header=\
$ac_header_preproc"
18291 ac_res=`eval echo '${'$as_ac_Header'}'`
18292 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18293 echo "${ECHO_T}$ac_res" >&6; }
18296 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18297 cat >>confdefs.h <<_ACEOF
18298 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18308 for ac_header in nlist.h
18310 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18311 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18312 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18313 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18314 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18315 echo $ECHO_N "(cached
) $ECHO_C" >&6
18317 ac_res=`eval echo '${'$as_ac_Header'}'`
18318 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18319 echo "${ECHO_T}$ac_res" >&6; }
18321 # Is the header compilable?
18322 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18323 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18324 cat >conftest.$ac_ext <<_ACEOF
18327 cat confdefs.h >>conftest.$ac_ext
18328 cat >>conftest.$ac_ext <<_ACEOF
18329 /* end confdefs.h. */
18330 $ac_includes_default
18331 #include <$ac_header>
18333 rm -f conftest.$ac_objext
18334 if { (ac_try="$ac_compile"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_compile") 2>conftest.er1
18342 grep -v '^ *+' conftest.er1 >conftest.err
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18346 (exit $ac_status); } && {
18347 test -z "$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18349 } && test -s conftest.$ac_objext; then
18350 ac_header_compiler=yes
18352 echo "$as_me: failed program was
:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18355 ac_header_compiler=no
18358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18359 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18360 echo "${ECHO_T}$ac_header_compiler" >&6; }
18362 # Is the header present?
18363 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18364 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18365 cat >conftest.$ac_ext <<_ACEOF
18368 cat confdefs.h >>conftest.$ac_ext
18369 cat >>conftest.$ac_ext <<_ACEOF
18370 /* end confdefs.h. */
18371 #include <$ac_header>
18373 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18374 case "(($ac_try" in
18375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18376 *) ac_try_echo=$ac_try;;
18378 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18379 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18381 grep -v '^ *+' conftest.er1 >conftest.err
18383 cat conftest.err >&5
18384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18385 (exit $ac_status); } >/dev/null && {
18386 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18387 test ! -s conftest.err
18389 ac_header_preproc=yes
18391 echo "$as_me: failed program was
:" >&5
18392 sed 's/^/| /' conftest.$ac_ext >&5
18394 ac_header_preproc=no
18397 rm -f conftest.err conftest.$ac_ext
18398 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18399 echo "${ECHO_T}$ac_header_preproc" >&6; }
18401 # So? What about this header?
18402 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18404 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18405 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18406 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18407 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18408 ac_header_preproc=yes
18411 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18412 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18413 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18414 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18415 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18416 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18417 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18418 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18419 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18420 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18421 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18422 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18426 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18427 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18428 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18429 echo $ECHO_N "(cached
) $ECHO_C" >&6
18431 eval "$as_ac_Header=\
$ac_header_preproc"
18433 ac_res=`eval echo '${'$as_ac_Header'}'`
18434 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18435 echo "${ECHO_T}$ac_res" >&6; }
18438 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18439 cat >>confdefs.h <<_ACEOF
18440 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18442 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18443 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18444 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18445 echo $ECHO_N "(cached
) $ECHO_C" >&6
18447 cat >conftest.$ac_ext <<_ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18458 static struct nlist ac_aggr;
18459 if (ac_aggr.n_un.n_name)
18465 rm -f conftest.$ac_objext
18466 if { (ac_try="$ac_compile"
18467 case "(($ac_try" in
18468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18469 *) ac_try_echo=$ac_try;;
18471 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18472 (eval "$ac_compile") 2>conftest.er1
18474 grep -v '^ *+' conftest.er1 >conftest.err
18476 cat conftest.err >&5
18477 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18478 (exit $ac_status); } && {
18479 test -z "$ac_c_werror_flag" ||
18480 test ! -s conftest.err
18481 } && test -s conftest.$ac_objext; then
18482 ac_cv_member_struct_nlist_n_un_n_name=yes
18484 echo "$as_me: failed program was
:" >&5
18485 sed 's/^/| /' conftest.$ac_ext >&5
18487 cat >conftest.$ac_ext <<_ACEOF
18490 cat confdefs.h >>conftest.$ac_ext
18491 cat >>conftest.$ac_ext <<_ACEOF
18492 /* end confdefs.h. */
18498 static struct nlist ac_aggr;
18499 if (sizeof ac_aggr.n_un.n_name)
18505 rm -f conftest.$ac_objext
18506 if { (ac_try="$ac_compile"
18507 case "(($ac_try" in
18508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18509 *) ac_try_echo=$ac_try;;
18511 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18512 (eval "$ac_compile") 2>conftest.er1
18514 grep -v '^ *+' conftest.er1 >conftest.err
18516 cat conftest.err >&5
18517 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18518 (exit $ac_status); } && {
18519 test -z "$ac_c_werror_flag" ||
18520 test ! -s conftest.err
18521 } && test -s conftest.$ac_objext; then
18522 ac_cv_member_struct_nlist_n_un_n_name=yes
18524 echo "$as_me: failed program was
:" >&5
18525 sed 's/^/| /' conftest.$ac_ext >&5
18527 ac_cv_member_struct_nlist_n_un_n_name=no
18530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18535 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18536 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18537 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18539 cat >>confdefs.h <<_ACEOF
18540 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18544 cat >>confdefs.h <<\_ACEOF
18545 #define NLIST_NAME_UNION 1
18559 # Some definitions of getloadavg require that the program be installed setgid.
18560 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18561 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18562 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18563 echo $ECHO_N "(cached
) $ECHO_C" >&6
18565 cat >conftest.$ac_ext <<_ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18571 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18572 #ifdef LDAV_PRIVILEGED
18573 Yowza Am I SETGID yet
18576 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18577 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18578 ac_cv_func_getloadavg_setgid=yes
18580 ac_cv_func_getloadavg_setgid=no
18585 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18586 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18587 if test $ac_cv_func_getloadavg_setgid = yes; then
18590 cat >>confdefs.h <<\_ACEOF
18591 #define GETLOADAVG_PRIVILEGED 1
18598 if test $ac_cv_func_getloadavg_setgid = yes; then
18599 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18600 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18601 if test "${ac_cv_group_kmem+set}" = set; then
18602 echo $ECHO_N "(cached
) $ECHO_C" >&6
18604 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18605 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18606 # If we got an error (system does not support symlinks), try without -L.
18607 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18608 ac_cv_group_kmem=`echo $ac_ls_output \
18609 | sed -ne 's/[ ][ ]*/ /g;
18610 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18614 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18615 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18616 KMEM_GROUP=$ac_cv_group_kmem
18618 if test "x
$ac_save_LIBS" = x; then
18619 GETLOADAVG_LIBS=$LIBS
18621 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18627 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18628 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18629 if test "${ac_cv_sys_largefile_source+set}" = set; then
18630 echo $ECHO_N "(cached
) $ECHO_C" >&6
18633 cat >conftest.$ac_ext <<_ACEOF
18636 cat confdefs.h >>conftest.$ac_ext
18637 cat >>conftest.$ac_ext <<_ACEOF
18638 /* end confdefs.h. */
18643 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18648 rm -f conftest.$ac_objext conftest$ac_exeext
18649 if { (ac_try="$ac_link"
18650 case "(($ac_try" in
18651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18652 *) ac_try_echo=$ac_try;;
18654 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18655 (eval "$ac_link") 2>conftest.er1
18657 grep -v '^ *+' conftest.er1 >conftest.err
18659 cat conftest.err >&5
18660 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18661 (exit $ac_status); } && {
18662 test -z "$ac_c_werror_flag" ||
18663 test ! -s conftest.err
18664 } && test -s conftest$ac_exeext &&
18665 $as_test_x conftest$ac_exeext; then
18666 ac_cv_sys_largefile_source=no; break
18668 echo "$as_me: failed program was
:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18675 conftest$ac_exeext conftest.$ac_ext
18676 cat >conftest.$ac_ext <<_ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18682 #define _LARGEFILE_SOURCE 1
18687 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18692 rm -f conftest.$ac_objext conftest$ac_exeext
18693 if { (ac_try="$ac_link"
18694 case "(($ac_try" in
18695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18696 *) ac_try_echo=$ac_try;;
18698 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18699 (eval "$ac_link") 2>conftest.er1
18701 grep -v '^ *+' conftest.er1 >conftest.err
18703 cat conftest.err >&5
18704 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18705 (exit $ac_status); } && {
18706 test -z "$ac_c_werror_flag" ||
18707 test ! -s conftest.err
18708 } && test -s conftest$ac_exeext &&
18709 $as_test_x conftest$ac_exeext; then
18710 ac_cv_sys_largefile_source=1; break
18712 echo "$as_me: failed program was
:" >&5
18713 sed 's/^/| /' conftest.$ac_ext >&5
18718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18719 conftest$ac_exeext conftest.$ac_ext
18720 ac_cv_sys_largefile_source=unknown
18724 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18725 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18726 case $ac_cv_sys_largefile_source in #(
18729 cat >>confdefs.h <<_ACEOF
18730 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18736 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18737 # in glibc 2.1.3, but that breaks too many other things.
18738 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18739 if test $ac_cv_sys_largefile_source != unknown; then
18741 cat >>confdefs.h <<\_ACEOF
18742 #define HAVE_FSEEKO 1
18748 # Configure getopt.
18749 # getopt.m4 serial 10
18751 # The getopt module assume you want GNU getopt, with getopt_long etc,
18752 # rather than vanilla POSIX getopt. This means your your code should
18753 # always include <getopt.h> for the getopt prototypes.
18765 # Prerequisites of lib/getopt*.
18772 for ac_header in getopt.h
18774 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18775 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18776 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18777 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18778 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18779 echo $ECHO_N "(cached
) $ECHO_C" >&6
18781 ac_res=`eval echo '${'$as_ac_Header'}'`
18782 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18783 echo "${ECHO_T}$ac_res" >&6; }
18785 # Is the header compilable?
18786 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18787 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18788 cat >conftest.$ac_ext <<_ACEOF
18791 cat confdefs.h >>conftest.$ac_ext
18792 cat >>conftest.$ac_ext <<_ACEOF
18793 /* end confdefs.h. */
18794 $ac_includes_default
18795 #include <$ac_header>
18797 rm -f conftest.$ac_objext
18798 if { (ac_try="$ac_compile"
18799 case "(($ac_try" in
18800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18801 *) ac_try_echo=$ac_try;;
18803 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18804 (eval "$ac_compile") 2>conftest.er1
18806 grep -v '^ *+' conftest.er1 >conftest.err
18808 cat conftest.err >&5
18809 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18810 (exit $ac_status); } && {
18811 test -z "$ac_c_werror_flag" ||
18812 test ! -s conftest.err
18813 } && test -s conftest.$ac_objext; then
18814 ac_header_compiler=yes
18816 echo "$as_me: failed program was
:" >&5
18817 sed 's/^/| /' conftest.$ac_ext >&5
18819 ac_header_compiler=no
18822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18823 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18824 echo "${ECHO_T}$ac_header_compiler" >&6; }
18826 # Is the header present?
18827 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18828 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18829 cat >conftest.$ac_ext <<_ACEOF
18832 cat confdefs.h >>conftest.$ac_ext
18833 cat >>conftest.$ac_ext <<_ACEOF
18834 /* end confdefs.h. */
18835 #include <$ac_header>
18837 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18838 case "(($ac_try" in
18839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18840 *) ac_try_echo=$ac_try;;
18842 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18843 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18845 grep -v '^ *+' conftest.er1 >conftest.err
18847 cat conftest.err >&5
18848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18849 (exit $ac_status); } >/dev/null && {
18850 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18851 test ! -s conftest.err
18853 ac_header_preproc=yes
18855 echo "$as_me: failed program was
:" >&5
18856 sed 's/^/| /' conftest.$ac_ext >&5
18858 ac_header_preproc=no
18861 rm -f conftest.err conftest.$ac_ext
18862 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18863 echo "${ECHO_T}$ac_header_preproc" >&6; }
18865 # So? What about this header?
18866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18868 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18869 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18870 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18871 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18872 ac_header_preproc=yes
18875 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18876 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18877 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18878 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18879 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18880 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18881 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18882 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18883 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18884 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18885 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18886 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18890 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18891 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18892 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18893 echo $ECHO_N "(cached
) $ECHO_C" >&6
18895 eval "$as_ac_Header=\
$ac_header_preproc"
18897 ac_res=`eval echo '${'$as_ac_Header'}'`
18898 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18899 echo "${ECHO_T}$ac_res" >&6; }
18902 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18903 cat >>confdefs.h <<_ACEOF
18904 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18913 if test -z "$GETOPT_H"; then
18915 for ac_func in getopt_long_only
18917 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18918 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18919 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18920 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18921 echo $ECHO_N "(cached
) $ECHO_C" >&6
18923 cat >conftest.$ac_ext <<_ACEOF
18926 cat confdefs.h >>conftest.$ac_ext
18927 cat >>conftest.$ac_ext <<_ACEOF
18928 /* end confdefs.h. */
18929 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18930 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18931 #define $ac_func innocuous_$ac_func
18933 /* System header to define __stub macros and hopefully few prototypes,
18934 which can conflict with char $ac_func (); below.
18935 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18936 <limits.h> exists even on freestanding compilers. */
18939 # include <limits.h>
18941 # include <assert.h>
18946 /* Override any GCC internal prototype to avoid an error.
18947 Use char because int might match the return type of a GCC
18948 builtin and then its argument prototype would still apply. */
18953 /* The GNU C library defines this for functions which it implements
18954 to always fail with ENOSYS. Some functions are actually named
18955 something starting with __ and the normal name is an alias. */
18956 #if defined __stub_$ac_func || defined __stub___$ac_func
18963 return $ac_func ();
18968 rm -f conftest.$ac_objext conftest$ac_exeext
18969 if { (ac_try="$ac_link"
18970 case "(($ac_try" in
18971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972 *) ac_try_echo=$ac_try;;
18974 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18975 (eval "$ac_link") 2>conftest.er1
18977 grep -v '^ *+' conftest.er1 >conftest.err
18979 cat conftest.err >&5
18980 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18981 (exit $ac_status); } && {
18982 test -z "$ac_c_werror_flag" ||
18983 test ! -s conftest.err
18984 } && test -s conftest$ac_exeext &&
18985 $as_test_x conftest$ac_exeext; then
18986 eval "$as_ac_var=yes"
18988 echo "$as_me: failed program was
:" >&5
18989 sed 's/^/| /' conftest.$ac_ext >&5
18991 eval "$as_ac_var=no
"
18994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18995 conftest$ac_exeext conftest.$ac_ext
18997 ac_res=`eval echo '${'$as_ac_var'}'`
18998 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18999 echo "${ECHO_T}$ac_res" >&6; }
19000 if test `eval echo '${'$as_ac_var'}'` = yes; then
19001 cat >>confdefs.h <<_ACEOF
19002 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19012 if test -z "$GETOPT_H"; then
19013 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19014 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19015 if test "${ac_cv_have_decl_optreset+set}" = set; then
19016 echo $ECHO_N "(cached
) $ECHO_C" >&6
19018 cat >conftest.$ac_ext <<_ACEOF
19021 cat confdefs.h >>conftest.$ac_ext
19022 cat >>conftest.$ac_ext <<_ACEOF
19023 /* end confdefs.h. */
19024 #include <getopt.h>
19037 rm -f conftest.$ac_objext
19038 if { (ac_try="$ac_compile"
19039 case "(($ac_try" in
19040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19041 *) ac_try_echo=$ac_try;;
19043 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19044 (eval "$ac_compile") 2>conftest.er1
19046 grep -v '^ *+' conftest.er1 >conftest.err
19048 cat conftest.err >&5
19049 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19050 (exit $ac_status); } && {
19051 test -z "$ac_c_werror_flag" ||
19052 test ! -s conftest.err
19053 } && test -s conftest.$ac_objext; then
19054 ac_cv_have_decl_optreset=yes
19056 echo "$as_me: failed program was
:" >&5
19057 sed 's/^/| /' conftest.$ac_ext >&5
19059 ac_cv_have_decl_optreset=no
19062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19064 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19065 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19066 if test $ac_cv_have_decl_optreset = yes; then
19072 if test -z "$GETOPT_H"; then
19073 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19074 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19075 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19076 echo $ECHO_N "(cached
) $ECHO_C" >&6
19078 if test "$cross_compiling" = yes; then
19079 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19080 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19081 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19082 echo $ECHO_N "(cached
) $ECHO_C" >&6
19084 cat >conftest.$ac_ext <<_ACEOF
19087 cat confdefs.h >>conftest.$ac_ext
19088 cat >>conftest.$ac_ext <<_ACEOF
19089 /* end confdefs.h. */
19090 #include <getopt.h>
19095 #ifndef getopt_clip
19096 (void) getopt_clip;
19103 rm -f conftest.$ac_objext
19104 if { (ac_try="$ac_compile"
19105 case "(($ac_try" in
19106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19107 *) ac_try_echo=$ac_try;;
19109 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19110 (eval "$ac_compile") 2>conftest.er1
19112 grep -v '^ *+' conftest.er1 >conftest.err
19114 cat conftest.err >&5
19115 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19116 (exit $ac_status); } && {
19117 test -z "$ac_c_werror_flag" ||
19118 test ! -s conftest.err
19119 } && test -s conftest.$ac_objext; then
19120 ac_cv_have_decl_getopt_clip=yes
19122 echo "$as_me: failed program was
:" >&5
19123 sed 's/^/| /' conftest.$ac_ext >&5
19125 ac_cv_have_decl_getopt_clip=no
19128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19130 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19131 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19132 if test $ac_cv_have_decl_getopt_clip = yes; then
19133 gl_cv_func_gnu_getopt=no
19135 gl_cv_func_gnu_getopt=yes
19139 cat >conftest.$ac_ext <<_ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19145 #include <getopt.h>
19151 myargv[0] = "conftest
";
19154 return getopt (2, myargv, "+a
") != '?';
19160 rm -f conftest$ac_exeext
19161 if { (ac_try="$ac_link"
19162 case "(($ac_try" in
19163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19164 *) ac_try_echo=$ac_try;;
19166 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19167 (eval "$ac_link") 2>&5
19169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19170 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19171 { (case "(($ac_try" in
19172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19173 *) ac_try_echo=$ac_try;;
19175 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19176 (eval "$ac_try") 2>&5
19178 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19179 (exit $ac_status); }; }; then
19180 gl_cv_func_gnu_getopt=yes
19182 echo "$as_me: program exited with status
$ac_status" >&5
19183 echo "$as_me: failed program was
:" >&5
19184 sed 's/^/| /' conftest.$ac_ext >&5
19186 ( exit $ac_status )
19187 gl_cv_func_gnu_getopt=no
19189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19194 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19195 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19196 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19203 if test -n "$GETOPT_H"; then
19208 cat >>confdefs.h <<\_ACEOF
19209 #define __GETOPT_PREFIX rpl_
19215 GETOPTOBJS='getopt.o getopt1.o'
19222 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19223 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19224 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19225 echo $ECHO_N "(cached
) $ECHO_C" >&6
19227 # Use it with a single arg.
19228 cat >conftest.$ac_ext <<_ACEOF
19231 cat confdefs.h >>conftest.$ac_ext
19232 cat >>conftest.$ac_ext <<_ACEOF
19233 /* end confdefs.h. */
19234 $ac_includes_default
19243 rm -f conftest.$ac_objext
19244 if { (ac_try="$ac_compile"
19245 case "(($ac_try" in
19246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19247 *) ac_try_echo=$ac_try;;
19249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19250 (eval "$ac_compile") 2>conftest.er1
19252 grep -v '^ *+' conftest.er1 >conftest.err
19254 cat conftest.err >&5
19255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19256 (exit $ac_status); } && {
19257 test -z "$ac_c_werror_flag" ||
19258 test ! -s conftest.err
19259 } && test -s conftest.$ac_objext; then
19260 ac_cv_func_getpgrp_void=no
19262 echo "$as_me: failed program was
:" >&5
19263 sed 's/^/| /' conftest.$ac_ext >&5
19265 ac_cv_func_getpgrp_void=yes
19268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19271 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19272 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19273 if test $ac_cv_func_getpgrp_void = yes; then
19275 cat >>confdefs.h <<\_ACEOF
19276 #define GETPGRP_VOID 1
19283 for ac_func in strftime
19285 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19286 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19287 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19288 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19289 echo $ECHO_N "(cached
) $ECHO_C" >&6
19291 cat >conftest.$ac_ext <<_ACEOF
19294 cat confdefs.h >>conftest.$ac_ext
19295 cat >>conftest.$ac_ext <<_ACEOF
19296 /* end confdefs.h. */
19297 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19298 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19299 #define $ac_func innocuous_$ac_func
19301 /* System header to define __stub macros and hopefully few prototypes,
19302 which can conflict with char $ac_func (); below.
19303 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19304 <limits.h> exists even on freestanding compilers. */
19307 # include <limits.h>
19309 # include <assert.h>
19314 /* Override any GCC internal prototype to avoid an error.
19315 Use char because int might match the return type of a GCC
19316 builtin and then its argument prototype would still apply. */
19321 /* The GNU C library defines this for functions which it implements
19322 to always fail with ENOSYS. Some functions are actually named
19323 something starting with __ and the normal name is an alias. */
19324 #if defined __stub_$ac_func || defined __stub___$ac_func
19331 return $ac_func ();
19336 rm -f conftest.$ac_objext conftest$ac_exeext
19337 if { (ac_try="$ac_link"
19338 case "(($ac_try" in
19339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19340 *) ac_try_echo=$ac_try;;
19342 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19343 (eval "$ac_link") 2>conftest.er1
19345 grep -v '^ *+' conftest.er1 >conftest.err
19347 cat conftest.err >&5
19348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19349 (exit $ac_status); } && {
19350 test -z "$ac_c_werror_flag" ||
19351 test ! -s conftest.err
19352 } && test -s conftest$ac_exeext &&
19353 $as_test_x conftest$ac_exeext; then
19354 eval "$as_ac_var=yes"
19356 echo "$as_me: failed program was
:" >&5
19357 sed 's/^/| /' conftest.$ac_ext >&5
19359 eval "$as_ac_var=no
"
19362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19363 conftest$ac_exeext conftest.$ac_ext
19365 ac_res=`eval echo '${'$as_ac_var'}'`
19366 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19367 echo "${ECHO_T}$ac_res" >&6; }
19368 if test `eval echo '${'$as_ac_var'}'` = yes; then
19369 cat >>confdefs.h <<_ACEOF
19370 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19374 # strftime is in -lintl on SCO UNIX.
19375 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19376 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19377 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19378 echo $ECHO_N "(cached
) $ECHO_C" >&6
19380 ac_check_lib_save_LIBS=$LIBS
19381 LIBS="-lintl $LIBS"
19382 cat >conftest.$ac_ext <<_ACEOF
19385 cat confdefs.h >>conftest.$ac_ext
19386 cat >>conftest.$ac_ext <<_ACEOF
19387 /* end confdefs.h. */
19389 /* Override any GCC internal prototype to avoid an error.
19390 Use char because int might match the return type of a GCC
19391 builtin and then its argument prototype would still apply. */
19399 return strftime ();
19404 rm -f conftest.$ac_objext conftest$ac_exeext
19405 if { (ac_try="$ac_link"
19406 case "(($ac_try" in
19407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19408 *) ac_try_echo=$ac_try;;
19410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19411 (eval "$ac_link") 2>conftest.er1
19413 grep -v '^ *+' conftest.er1 >conftest.err
19415 cat conftest.err >&5
19416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19417 (exit $ac_status); } && {
19418 test -z "$ac_c_werror_flag" ||
19419 test ! -s conftest.err
19420 } && test -s conftest$ac_exeext &&
19421 $as_test_x conftest$ac_exeext; then
19422 ac_cv_lib_intl_strftime=yes
19424 echo "$as_me: failed program was
:" >&5
19425 sed 's/^/| /' conftest.$ac_ext >&5
19427 ac_cv_lib_intl_strftime=no
19430 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19431 conftest$ac_exeext conftest.$ac_ext
19432 LIBS=$ac_check_lib_save_LIBS
19434 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19435 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19436 if test $ac_cv_lib_intl_strftime = yes; then
19437 cat >>confdefs.h <<\_ACEOF
19438 #define HAVE_STRFTIME 1
19441 LIBS="-lintl $LIBS"
19450 for ac_func in grantpt
19452 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19453 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19454 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19455 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19456 echo $ECHO_N "(cached
) $ECHO_C" >&6
19458 cat >conftest.$ac_ext <<_ACEOF
19461 cat confdefs.h >>conftest.$ac_ext
19462 cat >>conftest.$ac_ext <<_ACEOF
19463 /* end confdefs.h. */
19464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19466 #define $ac_func innocuous_$ac_func
19468 /* System header to define __stub macros and hopefully few prototypes,
19469 which can conflict with char $ac_func (); below.
19470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19471 <limits.h> exists even on freestanding compilers. */
19474 # include <limits.h>
19476 # include <assert.h>
19481 /* Override any GCC internal prototype to avoid an error.
19482 Use char because int might match the return type of a GCC
19483 builtin and then its argument prototype would still apply. */
19488 /* The GNU C library defines this for functions which it implements
19489 to always fail with ENOSYS. Some functions are actually named
19490 something starting with __ and the normal name is an alias. */
19491 #if defined __stub_$ac_func || defined __stub___$ac_func
19498 return $ac_func ();
19503 rm -f conftest.$ac_objext conftest$ac_exeext
19504 if { (ac_try="$ac_link"
19505 case "(($ac_try" in
19506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19507 *) ac_try_echo=$ac_try;;
19509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19510 (eval "$ac_link") 2>conftest.er1
19512 grep -v '^ *+' conftest.er1 >conftest.err
19514 cat conftest.err >&5
19515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19516 (exit $ac_status); } && {
19517 test -z "$ac_c_werror_flag" ||
19518 test ! -s conftest.err
19519 } && test -s conftest$ac_exeext &&
19520 $as_test_x conftest$ac_exeext; then
19521 eval "$as_ac_var=yes"
19523 echo "$as_me: failed program was
:" >&5
19524 sed 's/^/| /' conftest.$ac_ext >&5
19526 eval "$as_ac_var=no
"
19529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19530 conftest$ac_exeext conftest.$ac_ext
19532 ac_res=`eval echo '${'$as_ac_var'}'`
19533 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19534 echo "${ECHO_T}$ac_res" >&6; }
19535 if test `eval echo '${'$as_ac_var'}'` = yes; then
19536 cat >>confdefs.h <<_ACEOF
19537 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19544 # PTY-related GNU extensions.
19546 for ac_func in getpt
19548 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19549 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19550 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19551 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19552 echo $ECHO_N "(cached
) $ECHO_C" >&6
19554 cat >conftest.$ac_ext <<_ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19560 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19561 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19562 #define $ac_func innocuous_$ac_func
19564 /* System header to define __stub macros and hopefully few prototypes,
19565 which can conflict with char $ac_func (); below.
19566 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19567 <limits.h> exists even on freestanding compilers. */
19570 # include <limits.h>
19572 # include <assert.h>
19577 /* Override any GCC internal prototype to avoid an error.
19578 Use char because int might match the return type of a GCC
19579 builtin and then its argument prototype would still apply. */
19584 /* The GNU C library defines this for functions which it implements
19585 to always fail with ENOSYS. Some functions are actually named
19586 something starting with __ and the normal name is an alias. */
19587 #if defined __stub_$ac_func || defined __stub___$ac_func
19594 return $ac_func ();
19599 rm -f conftest.$ac_objext conftest$ac_exeext
19600 if { (ac_try="$ac_link"
19601 case "(($ac_try" in
19602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19603 *) ac_try_echo=$ac_try;;
19605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19606 (eval "$ac_link") 2>conftest.er1
19608 grep -v '^ *+' conftest.er1 >conftest.err
19610 cat conftest.err >&5
19611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19612 (exit $ac_status); } && {
19613 test -z "$ac_c_werror_flag" ||
19614 test ! -s conftest.err
19615 } && test -s conftest$ac_exeext &&
19616 $as_test_x conftest$ac_exeext; then
19617 eval "$as_ac_var=yes"
19619 echo "$as_me: failed program was
:" >&5
19620 sed 's/^/| /' conftest.$ac_ext >&5
19622 eval "$as_ac_var=no
"
19625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19626 conftest$ac_exeext conftest.$ac_ext
19628 ac_res=`eval echo '${'$as_ac_var'}'`
19629 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19630 echo "${ECHO_T}$ac_res" >&6; }
19631 if test `eval echo '${'$as_ac_var'}'` = yes; then
19632 cat >>confdefs.h <<_ACEOF
19633 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19640 # Check this now, so that we will NOT find the above functions in ncurses.
19641 # That is because we have not set up to link ncurses in lib-src.
19642 # It's better to believe a function is not available
19643 # than to expect to find it in ncurses.
19645 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19646 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19647 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19648 echo $ECHO_N "(cached
) $ECHO_C" >&6
19650 ac_check_lib_save_LIBS=$LIBS
19651 LIBS="-lncurses $LIBS"
19652 cat >conftest.$ac_ext <<_ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19659 /* Override any GCC internal prototype to avoid an error.
19660 Use char because int might match the return type of a GCC
19661 builtin and then its argument prototype would still apply. */
19674 rm -f conftest.$ac_objext conftest$ac_exeext
19675 if { (ac_try="$ac_link"
19676 case "(($ac_try" in
19677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19678 *) ac_try_echo=$ac_try;;
19680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19681 (eval "$ac_link") 2>conftest.er1
19683 grep -v '^ *+' conftest.er1 >conftest.err
19685 cat conftest.err >&5
19686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19687 (exit $ac_status); } && {
19688 test -z "$ac_c_werror_flag" ||
19689 test ! -s conftest.err
19690 } && test -s conftest$ac_exeext &&
19691 $as_test_x conftest$ac_exeext; then
19692 ac_cv_lib_ncurses_tparm=yes
19694 echo "$as_me: failed program was
:" >&5
19695 sed 's/^/| /' conftest.$ac_ext >&5
19697 ac_cv_lib_ncurses_tparm=no
19700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19701 conftest$ac_exeext conftest.$ac_ext
19702 LIBS=$ac_check_lib_save_LIBS
19704 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19705 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19706 if test $ac_cv_lib_ncurses_tparm = yes; then
19707 cat >>confdefs.h <<_ACEOF
19708 #define HAVE_LIBNCURSES 1
19711 LIBS="-lncurses $LIBS"
19716 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19719 cat >conftest.$ac_ext <<_ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725 #include <netinet/in.h>
19726 #include <arpa/nameser.h>
19727 #include <resolv.h>
19736 rm -f conftest.$ac_objext conftest$ac_exeext
19737 if { (ac_try="$ac_link"
19738 case "(($ac_try" in
19739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19740 *) ac_try_echo=$ac_try;;
19742 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19743 (eval "$ac_link") 2>conftest.er1
19745 grep -v '^ *+' conftest.er1 >conftest.err
19747 cat conftest.err >&5
19748 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19749 (exit $ac_status); } && {
19750 test -z "$ac_c_werror_flag" ||
19751 test ! -s conftest.err
19752 } && test -s conftest$ac_exeext &&
19753 $as_test_x conftest$ac_exeext; then
19756 echo "$as_me: failed program was
:" >&5
19757 sed 's/^/| /' conftest.$ac_ext >&5
19762 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19763 conftest$ac_exeext conftest.$ac_ext
19764 if test "$have_res_init" = no; then
19766 LIBS="$LIBS -lresolv"
19767 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19768 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19769 cat >conftest.$ac_ext <<_ACEOF
19772 cat confdefs.h >>conftest.$ac_ext
19773 cat >>conftest.$ac_ext <<_ACEOF
19774 /* end confdefs.h. */
19775 #include <netinet/in.h>
19776 #include <arpa/nameser.h>
19777 #include <resolv.h>
19786 rm -f conftest.$ac_objext conftest$ac_exeext
19787 if { (ac_try="$ac_link"
19788 case "(($ac_try" in
19789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19790 *) ac_try_echo=$ac_try;;
19792 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19793 (eval "$ac_link") 2>conftest.er1
19795 grep -v '^ *+' conftest.er1 >conftest.err
19797 cat conftest.err >&5
19798 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19799 (exit $ac_status); } && {
19800 test -z "$ac_c_werror_flag" ||
19801 test ! -s conftest.err
19802 } && test -s conftest$ac_exeext &&
19803 $as_test_x conftest$ac_exeext; then
19806 echo "$as_me: failed program was
:" >&5
19807 sed 's/^/| /' conftest.$ac_ext >&5
19812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19813 conftest$ac_exeext conftest.$ac_ext
19814 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19815 echo "${ECHO_T}$have_res_init" >&6; }
19816 if test "$have_res_init" = yes ; then
19822 if test "$have_res_init" = yes; then
19824 cat >>confdefs.h <<\_ACEOF
19825 #define HAVE_RES_INIT 1
19830 # Do we need the Hesiod library to provide the support routines?
19831 if test "$with_hesiod" = yes ; then
19832 # Don't set $LIBS here -- see comments above.
19833 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19834 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19835 if test "${ac_cv_func_res_send+set}" = set; then
19836 echo $ECHO_N "(cached
) $ECHO_C" >&6
19838 cat >conftest.$ac_ext <<_ACEOF
19841 cat confdefs.h >>conftest.$ac_ext
19842 cat >>conftest.$ac_ext <<_ACEOF
19843 /* end confdefs.h. */
19844 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19845 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19846 #define res_send innocuous_res_send
19848 /* System header to define __stub macros and hopefully few prototypes,
19849 which can conflict with char res_send (); below.
19850 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19851 <limits.h> exists even on freestanding compilers. */
19854 # include <limits.h>
19856 # include <assert.h>
19861 /* Override any GCC internal prototype to avoid an error.
19862 Use char because int might match the return type of a GCC
19863 builtin and then its argument prototype would still apply. */
19868 /* The GNU C library defines this for functions which it implements
19869 to always fail with ENOSYS. Some functions are actually named
19870 something starting with __ and the normal name is an alias. */
19871 #if defined __stub_res_send || defined __stub___res_send
19878 return res_send ();
19883 rm -f conftest.$ac_objext conftest$ac_exeext
19884 if { (ac_try="$ac_link"
19885 case "(($ac_try" in
19886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19887 *) ac_try_echo=$ac_try;;
19889 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19890 (eval "$ac_link") 2>conftest.er1
19892 grep -v '^ *+' conftest.er1 >conftest.err
19894 cat conftest.err >&5
19895 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19896 (exit $ac_status); } && {
19897 test -z "$ac_c_werror_flag" ||
19898 test ! -s conftest.err
19899 } && test -s conftest$ac_exeext &&
19900 $as_test_x conftest$ac_exeext; then
19901 ac_cv_func_res_send=yes
19903 echo "$as_me: failed program was
:" >&5
19904 sed 's/^/| /' conftest.$ac_ext >&5
19906 ac_cv_func_res_send=no
19909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19910 conftest$ac_exeext conftest.$ac_ext
19912 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19913 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19914 if test $ac_cv_func_res_send = yes; then
19917 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19918 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19919 if test "${ac_cv_func___res_send+set}" = set; then
19920 echo $ECHO_N "(cached
) $ECHO_C" >&6
19922 cat >conftest.$ac_ext <<_ACEOF
19925 cat confdefs.h >>conftest.$ac_ext
19926 cat >>conftest.$ac_ext <<_ACEOF
19927 /* end confdefs.h. */
19928 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19930 #define __res_send innocuous___res_send
19932 /* System header to define __stub macros and hopefully few prototypes,
19933 which can conflict with char __res_send (); below.
19934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19935 <limits.h> exists even on freestanding compilers. */
19938 # include <limits.h>
19940 # include <assert.h>
19945 /* Override any GCC internal prototype to avoid an error.
19946 Use char because int might match the return type of a GCC
19947 builtin and then its argument prototype would still apply. */
19951 char __res_send ();
19952 /* The GNU C library defines this for functions which it implements
19953 to always fail with ENOSYS. Some functions are actually named
19954 something starting with __ and the normal name is an alias. */
19955 #if defined __stub___res_send || defined __stub_____res_send
19962 return __res_send ();
19967 rm -f conftest.$ac_objext conftest$ac_exeext
19968 if { (ac_try="$ac_link"
19969 case "(($ac_try" in
19970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19971 *) ac_try_echo=$ac_try;;
19973 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19974 (eval "$ac_link") 2>conftest.er1
19976 grep -v '^ *+' conftest.er1 >conftest.err
19978 cat conftest.err >&5
19979 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19980 (exit $ac_status); } && {
19981 test -z "$ac_c_werror_flag" ||
19982 test ! -s conftest.err
19983 } && test -s conftest$ac_exeext &&
19984 $as_test_x conftest$ac_exeext; then
19985 ac_cv_func___res_send=yes
19987 echo "$as_me: failed program was
:" >&5
19988 sed 's/^/| /' conftest.$ac_ext >&5
19990 ac_cv_func___res_send=no
19993 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19994 conftest$ac_exeext conftest.$ac_ext
19996 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19997 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19998 if test $ac_cv_func___res_send = yes; then
20001 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20002 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20003 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20004 echo $ECHO_N "(cached
) $ECHO_C" >&6
20006 ac_check_lib_save_LIBS=$LIBS
20007 LIBS="-lresolv $LIBS"
20008 cat >conftest.$ac_ext <<_ACEOF
20011 cat confdefs.h >>conftest.$ac_ext
20012 cat >>conftest.$ac_ext <<_ACEOF
20013 /* end confdefs.h. */
20015 /* Override any GCC internal prototype to avoid an error.
20016 Use char because int might match the return type of a GCC
20017 builtin and then its argument prototype would still apply. */
20025 return res_send ();
20030 rm -f conftest.$ac_objext conftest$ac_exeext
20031 if { (ac_try="$ac_link"
20032 case "(($ac_try" in
20033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20034 *) ac_try_echo=$ac_try;;
20036 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20037 (eval "$ac_link") 2>conftest.er1
20039 grep -v '^ *+' conftest.er1 >conftest.err
20041 cat conftest.err >&5
20042 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20043 (exit $ac_status); } && {
20044 test -z "$ac_c_werror_flag" ||
20045 test ! -s conftest.err
20046 } && test -s conftest$ac_exeext &&
20047 $as_test_x conftest$ac_exeext; then
20048 ac_cv_lib_resolv_res_send=yes
20050 echo "$as_me: failed program was
:" >&5
20051 sed 's/^/| /' conftest.$ac_ext >&5
20053 ac_cv_lib_resolv_res_send=no
20056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20057 conftest$ac_exeext conftest.$ac_ext
20058 LIBS=$ac_check_lib_save_LIBS
20060 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20061 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20062 if test $ac_cv_lib_resolv_res_send = yes; then
20065 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20066 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20067 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20068 echo $ECHO_N "(cached
) $ECHO_C" >&6
20070 ac_check_lib_save_LIBS=$LIBS
20071 LIBS="-lresolv $LIBS"
20072 cat >conftest.$ac_ext <<_ACEOF
20075 cat confdefs.h >>conftest.$ac_ext
20076 cat >>conftest.$ac_ext <<_ACEOF
20077 /* end confdefs.h. */
20079 /* Override any GCC internal prototype to avoid an error.
20080 Use char because int might match the return type of a GCC
20081 builtin and then its argument prototype would still apply. */
20085 char __res_send ();
20089 return __res_send ();
20094 rm -f conftest.$ac_objext conftest$ac_exeext
20095 if { (ac_try="$ac_link"
20096 case "(($ac_try" in
20097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20098 *) ac_try_echo=$ac_try;;
20100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20101 (eval "$ac_link") 2>conftest.er1
20103 grep -v '^ *+' conftest.er1 >conftest.err
20105 cat conftest.err >&5
20106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20107 (exit $ac_status); } && {
20108 test -z "$ac_c_werror_flag" ||
20109 test ! -s conftest.err
20110 } && test -s conftest$ac_exeext &&
20111 $as_test_x conftest$ac_exeext; then
20112 ac_cv_lib_resolv___res_send=yes
20114 echo "$as_me: failed program was
:" >&5
20115 sed 's/^/| /' conftest.$ac_ext >&5
20117 ac_cv_lib_resolv___res_send=no
20120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20121 conftest$ac_exeext conftest.$ac_ext
20122 LIBS=$ac_check_lib_save_LIBS
20124 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20125 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20126 if test $ac_cv_lib_resolv___res_send = yes; then
20136 if test "$resolv" = yes ; then
20141 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20142 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20143 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20144 echo $ECHO_N "(cached
) $ECHO_C" >&6
20146 cat >conftest.$ac_ext <<_ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20153 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20154 #define hes_getmailhost innocuous_hes_getmailhost
20156 /* System header to define __stub macros and hopefully few prototypes,
20157 which can conflict with char hes_getmailhost (); below.
20158 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20159 <limits.h> exists even on freestanding compilers. */
20162 # include <limits.h>
20164 # include <assert.h>
20167 #undef hes_getmailhost
20169 /* Override any GCC internal prototype to avoid an error.
20170 Use char because int might match the return type of a GCC
20171 builtin and then its argument prototype would still apply. */
20175 char hes_getmailhost ();
20176 /* The GNU C library defines this for functions which it implements
20177 to always fail with ENOSYS. Some functions are actually named
20178 something starting with __ and the normal name is an alias. */
20179 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20186 return hes_getmailhost ();
20191 rm -f conftest.$ac_objext conftest$ac_exeext
20192 if { (ac_try="$ac_link"
20193 case "(($ac_try" in
20194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20195 *) ac_try_echo=$ac_try;;
20197 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20198 (eval "$ac_link") 2>conftest.er1
20200 grep -v '^ *+' conftest.er1 >conftest.err
20202 cat conftest.err >&5
20203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20204 (exit $ac_status); } && {
20205 test -z "$ac_c_werror_flag" ||
20206 test ! -s conftest.err
20207 } && test -s conftest$ac_exeext &&
20208 $as_test_x conftest$ac_exeext; then
20209 ac_cv_func_hes_getmailhost=yes
20211 echo "$as_me: failed program was
:" >&5
20212 sed 's/^/| /' conftest.$ac_ext >&5
20214 ac_cv_func_hes_getmailhost=no
20217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20218 conftest$ac_exeext conftest.$ac_ext
20220 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20221 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20222 if test $ac_cv_func_hes_getmailhost = yes; then
20225 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20226 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20227 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20228 echo $ECHO_N "(cached
) $ECHO_C" >&6
20230 ac_check_lib_save_LIBS=$LIBS
20231 LIBS="-lhesiod $RESOLVLIB $LIBS"
20232 cat >conftest.$ac_ext <<_ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20239 /* Override any GCC internal prototype to avoid an error.
20240 Use char because int might match the return type of a GCC
20241 builtin and then its argument prototype would still apply. */
20245 char hes_getmailhost ();
20249 return hes_getmailhost ();
20254 rm -f conftest.$ac_objext conftest$ac_exeext
20255 if { (ac_try="$ac_link"
20256 case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20260 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_link") 2>conftest.er1
20263 grep -v '^ *+' conftest.er1 >conftest.err
20265 cat conftest.err >&5
20266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20267 (exit $ac_status); } && {
20268 test -z "$ac_c_werror_flag" ||
20269 test ! -s conftest.err
20270 } && test -s conftest$ac_exeext &&
20271 $as_test_x conftest$ac_exeext; then
20272 ac_cv_lib_hesiod_hes_getmailhost=yes
20274 echo "$as_me: failed program was
:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20277 ac_cv_lib_hesiod_hes_getmailhost=no
20280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20281 conftest$ac_exeext conftest.$ac_ext
20282 LIBS=$ac_check_lib_save_LIBS
20284 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20285 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20286 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20288 cat >>confdefs.h <<\_ACEOF
20289 #define HAVE_LIBHESIOD 1
20300 # Do we need libresolv (due to res_init or Hesiod)?
20301 if test "$resolv" = yes ; then
20303 cat >>confdefs.h <<\_ACEOF
20304 #define HAVE_LIBRESOLV 1
20309 # These tell us which Kerberos-related libraries to use.
20310 if test "${with_kerberos+set}" = set; then
20312 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20313 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20314 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20315 echo $ECHO_N "(cached
) $ECHO_C" >&6
20317 ac_check_lib_save_LIBS=$LIBS
20318 LIBS="-lcom_err $LIBS"
20319 cat >conftest.$ac_ext <<_ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h. */
20326 /* Override any GCC internal prototype to avoid an error.
20327 Use char because int might match the return type of a GCC
20328 builtin and then its argument prototype would still apply. */
20341 rm -f conftest.$ac_objext conftest$ac_exeext
20342 if { (ac_try="$ac_link"
20343 case "(($ac_try" in
20344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20345 *) ac_try_echo=$ac_try;;
20347 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20348 (eval "$ac_link") 2>conftest.er1
20350 grep -v '^ *+' conftest.er1 >conftest.err
20352 cat conftest.err >&5
20353 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20354 (exit $ac_status); } && {
20355 test -z "$ac_c_werror_flag" ||
20356 test ! -s conftest.err
20357 } && test -s conftest$ac_exeext &&
20358 $as_test_x conftest$ac_exeext; then
20359 ac_cv_lib_com_err_com_err=yes
20361 echo "$as_me: failed program was
:" >&5
20362 sed 's/^/| /' conftest.$ac_ext >&5
20364 ac_cv_lib_com_err_com_err=no
20367 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20368 conftest$ac_exeext conftest.$ac_ext
20369 LIBS=$ac_check_lib_save_LIBS
20371 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20372 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20373 if test $ac_cv_lib_com_err_com_err = yes; then
20374 cat >>confdefs.h <<_ACEOF
20375 #define HAVE_LIBCOM_ERR 1
20378 LIBS="-lcom_err $LIBS"
20383 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20384 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20385 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20386 echo $ECHO_N "(cached
) $ECHO_C" >&6
20388 ac_check_lib_save_LIBS=$LIBS
20389 LIBS="-lk5crypto $LIBS"
20390 cat >conftest.$ac_ext <<_ACEOF
20393 cat confdefs.h >>conftest.$ac_ext
20394 cat >>conftest.$ac_ext <<_ACEOF
20395 /* end confdefs.h. */
20397 /* Override any GCC internal prototype to avoid an error.
20398 Use char because int might match the return type of a GCC
20399 builtin and then its argument prototype would still apply. */
20403 char mit_des_cbc_encrypt ();
20407 return mit_des_cbc_encrypt ();
20412 rm -f conftest.$ac_objext conftest$ac_exeext
20413 if { (ac_try="$ac_link"
20414 case "(($ac_try" in
20415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20416 *) ac_try_echo=$ac_try;;
20418 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20419 (eval "$ac_link") 2>conftest.er1
20421 grep -v '^ *+' conftest.er1 >conftest.err
20423 cat conftest.err >&5
20424 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20425 (exit $ac_status); } && {
20426 test -z "$ac_c_werror_flag" ||
20427 test ! -s conftest.err
20428 } && test -s conftest$ac_exeext &&
20429 $as_test_x conftest$ac_exeext; then
20430 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20432 echo "$as_me: failed program was
:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20435 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20439 conftest$ac_exeext conftest.$ac_ext
20440 LIBS=$ac_check_lib_save_LIBS
20442 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20443 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20444 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20445 cat >>confdefs.h <<_ACEOF
20446 #define HAVE_LIBK5CRYPTO 1
20449 LIBS="-lk5crypto $LIBS"
20454 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20455 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20456 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20457 echo $ECHO_N "(cached
) $ECHO_C" >&6
20459 ac_check_lib_save_LIBS=$LIBS
20460 LIBS="-lcrypto $LIBS"
20461 cat >conftest.$ac_ext <<_ACEOF
20464 cat confdefs.h >>conftest.$ac_ext
20465 cat >>conftest.$ac_ext <<_ACEOF
20466 /* end confdefs.h. */
20468 /* Override any GCC internal prototype to avoid an error.
20469 Use char because int might match the return type of a GCC
20470 builtin and then its argument prototype would still apply. */
20474 char mit_des_cbc_encrypt ();
20478 return mit_des_cbc_encrypt ();
20483 rm -f conftest.$ac_objext conftest$ac_exeext
20484 if { (ac_try="$ac_link"
20485 case "(($ac_try" in
20486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20487 *) ac_try_echo=$ac_try;;
20489 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20490 (eval "$ac_link") 2>conftest.er1
20492 grep -v '^ *+' conftest.er1 >conftest.err
20494 cat conftest.err >&5
20495 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20496 (exit $ac_status); } && {
20497 test -z "$ac_c_werror_flag" ||
20498 test ! -s conftest.err
20499 } && test -s conftest$ac_exeext &&
20500 $as_test_x conftest$ac_exeext; then
20501 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20503 echo "$as_me: failed program was
:" >&5
20504 sed 's/^/| /' conftest.$ac_ext >&5
20506 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20510 conftest$ac_exeext conftest.$ac_ext
20511 LIBS=$ac_check_lib_save_LIBS
20513 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20514 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20515 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20516 cat >>confdefs.h <<_ACEOF
20517 #define HAVE_LIBCRYPTO 1
20520 LIBS="-lcrypto $LIBS"
20525 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20526 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20527 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20528 echo $ECHO_N "(cached
) $ECHO_C" >&6
20530 ac_check_lib_save_LIBS=$LIBS
20531 LIBS="-lkrb5 $LIBS"
20532 cat >conftest.$ac_ext <<_ACEOF
20535 cat confdefs.h >>conftest.$ac_ext
20536 cat >>conftest.$ac_ext <<_ACEOF
20537 /* end confdefs.h. */
20539 /* Override any GCC internal prototype to avoid an error.
20540 Use char because int might match the return type of a GCC
20541 builtin and then its argument prototype would still apply. */
20545 char krb5_init_context ();
20549 return krb5_init_context ();
20554 rm -f conftest.$ac_objext conftest$ac_exeext
20555 if { (ac_try="$ac_link"
20556 case "(($ac_try" in
20557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20558 *) ac_try_echo=$ac_try;;
20560 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20561 (eval "$ac_link") 2>conftest.er1
20563 grep -v '^ *+' conftest.er1 >conftest.err
20565 cat conftest.err >&5
20566 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20567 (exit $ac_status); } && {
20568 test -z "$ac_c_werror_flag" ||
20569 test ! -s conftest.err
20570 } && test -s conftest$ac_exeext &&
20571 $as_test_x conftest$ac_exeext; then
20572 ac_cv_lib_krb5_krb5_init_context=yes
20574 echo "$as_me: failed program was
:" >&5
20575 sed 's/^/| /' conftest.$ac_ext >&5
20577 ac_cv_lib_krb5_krb5_init_context=no
20580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20581 conftest$ac_exeext conftest.$ac_ext
20582 LIBS=$ac_check_lib_save_LIBS
20584 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20585 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20586 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20587 cat >>confdefs.h <<_ACEOF
20588 #define HAVE_LIBKRB5 1
20591 LIBS="-lkrb5 $LIBS"
20595 if test "${with_kerberos5+set}" != set; then
20597 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20598 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20599 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20600 echo $ECHO_N "(cached
) $ECHO_C" >&6
20602 ac_check_lib_save_LIBS=$LIBS
20603 LIBS="-ldes425 $LIBS"
20604 cat >conftest.$ac_ext <<_ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h. */
20611 /* Override any GCC internal prototype to avoid an error.
20612 Use char because int might match the return type of a GCC
20613 builtin and then its argument prototype would still apply. */
20617 char des_cbc_encrypt ();
20621 return des_cbc_encrypt ();
20626 rm -f conftest.$ac_objext conftest$ac_exeext
20627 if { (ac_try="$ac_link"
20628 case "(($ac_try" in
20629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20630 *) ac_try_echo=$ac_try;;
20632 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20633 (eval "$ac_link") 2>conftest.er1
20635 grep -v '^ *+' conftest.er1 >conftest.err
20637 cat conftest.err >&5
20638 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20639 (exit $ac_status); } && {
20640 test -z "$ac_c_werror_flag" ||
20641 test ! -s conftest.err
20642 } && test -s conftest$ac_exeext &&
20643 $as_test_x conftest$ac_exeext; then
20644 ac_cv_lib_des425_des_cbc_encrypt=yes
20646 echo "$as_me: failed program was
:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20649 ac_cv_lib_des425_des_cbc_encrypt=no
20652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20653 conftest$ac_exeext conftest.$ac_ext
20654 LIBS=$ac_check_lib_save_LIBS
20656 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20657 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20658 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20659 cat >>confdefs.h <<_ACEOF
20660 #define HAVE_LIBDES425 1
20663 LIBS="-ldes425 $LIBS"
20667 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20668 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20669 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20670 echo $ECHO_N "(cached
) $ECHO_C" >&6
20672 ac_check_lib_save_LIBS=$LIBS
20674 cat >conftest.$ac_ext <<_ACEOF
20677 cat confdefs.h >>conftest.$ac_ext
20678 cat >>conftest.$ac_ext <<_ACEOF
20679 /* end confdefs.h. */
20681 /* Override any GCC internal prototype to avoid an error.
20682 Use char because int might match the return type of a GCC
20683 builtin and then its argument prototype would still apply. */
20687 char des_cbc_encrypt ();
20691 return des_cbc_encrypt ();
20696 rm -f conftest.$ac_objext conftest$ac_exeext
20697 if { (ac_try="$ac_link"
20698 case "(($ac_try" in
20699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20700 *) ac_try_echo=$ac_try;;
20702 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20703 (eval "$ac_link") 2>conftest.er1
20705 grep -v '^ *+' conftest.er1 >conftest.err
20707 cat conftest.err >&5
20708 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20709 (exit $ac_status); } && {
20710 test -z "$ac_c_werror_flag" ||
20711 test ! -s conftest.err
20712 } && test -s conftest$ac_exeext &&
20713 $as_test_x conftest$ac_exeext; then
20714 ac_cv_lib_des_des_cbc_encrypt=yes
20716 echo "$as_me: failed program was
:" >&5
20717 sed 's/^/| /' conftest.$ac_ext >&5
20719 ac_cv_lib_des_des_cbc_encrypt=no
20722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20723 conftest$ac_exeext conftest.$ac_ext
20724 LIBS=$ac_check_lib_save_LIBS
20726 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20727 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20728 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20729 cat >>confdefs.h <<_ACEOF
20730 #define HAVE_LIBDES 1
20740 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20741 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20742 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20743 echo $ECHO_N "(cached
) $ECHO_C" >&6
20745 ac_check_lib_save_LIBS=$LIBS
20746 LIBS="-lkrb4 $LIBS"
20747 cat >conftest.$ac_ext <<_ACEOF
20750 cat confdefs.h >>conftest.$ac_ext
20751 cat >>conftest.$ac_ext <<_ACEOF
20752 /* end confdefs.h. */
20754 /* Override any GCC internal prototype to avoid an error.
20755 Use char because int might match the return type of a GCC
20756 builtin and then its argument prototype would still apply. */
20760 char krb_get_cred ();
20764 return krb_get_cred ();
20769 rm -f conftest.$ac_objext conftest$ac_exeext
20770 if { (ac_try="$ac_link"
20771 case "(($ac_try" in
20772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20773 *) ac_try_echo=$ac_try;;
20775 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20776 (eval "$ac_link") 2>conftest.er1
20778 grep -v '^ *+' conftest.er1 >conftest.err
20780 cat conftest.err >&5
20781 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20782 (exit $ac_status); } && {
20783 test -z "$ac_c_werror_flag" ||
20784 test ! -s conftest.err
20785 } && test -s conftest$ac_exeext &&
20786 $as_test_x conftest$ac_exeext; then
20787 ac_cv_lib_krb4_krb_get_cred=yes
20789 echo "$as_me: failed program was
:" >&5
20790 sed 's/^/| /' conftest.$ac_ext >&5
20792 ac_cv_lib_krb4_krb_get_cred=no
20795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20796 conftest$ac_exeext conftest.$ac_ext
20797 LIBS=$ac_check_lib_save_LIBS
20799 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20800 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20801 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20802 cat >>confdefs.h <<_ACEOF
20803 #define HAVE_LIBKRB4 1
20806 LIBS="-lkrb4 $LIBS"
20810 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20811 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20812 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20813 echo $ECHO_N "(cached
) $ECHO_C" >&6
20815 ac_check_lib_save_LIBS=$LIBS
20817 cat >conftest.$ac_ext <<_ACEOF
20820 cat confdefs.h >>conftest.$ac_ext
20821 cat >>conftest.$ac_ext <<_ACEOF
20822 /* end confdefs.h. */
20824 /* Override any GCC internal prototype to avoid an error.
20825 Use char because int might match the return type of a GCC
20826 builtin and then its argument prototype would still apply. */
20830 char krb_get_cred ();
20834 return krb_get_cred ();
20839 rm -f conftest.$ac_objext conftest$ac_exeext
20840 if { (ac_try="$ac_link"
20841 case "(($ac_try" in
20842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20843 *) ac_try_echo=$ac_try;;
20845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20846 (eval "$ac_link") 2>conftest.er1
20848 grep -v '^ *+' conftest.er1 >conftest.err
20850 cat conftest.err >&5
20851 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20852 (exit $ac_status); } && {
20853 test -z "$ac_c_werror_flag" ||
20854 test ! -s conftest.err
20855 } && test -s conftest$ac_exeext &&
20856 $as_test_x conftest$ac_exeext; then
20857 ac_cv_lib_krb_krb_get_cred=yes
20859 echo "$as_me: failed program was
:" >&5
20860 sed 's/^/| /' conftest.$ac_ext >&5
20862 ac_cv_lib_krb_krb_get_cred=no
20865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20866 conftest$ac_exeext conftest.$ac_ext
20867 LIBS=$ac_check_lib_save_LIBS
20869 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20870 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20871 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20872 cat >>confdefs.h <<_ACEOF
20873 #define HAVE_LIBKRB 1
20884 if test "${with_kerberos5+set}" = set; then
20886 for ac_header in krb5.h
20888 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20889 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20890 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20891 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20892 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20893 echo $ECHO_N "(cached
) $ECHO_C" >&6
20895 ac_res=`eval echo '${'$as_ac_Header'}'`
20896 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20897 echo "${ECHO_T}$ac_res" >&6; }
20899 # Is the header compilable?
20900 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20901 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20902 cat >conftest.$ac_ext <<_ACEOF
20905 cat confdefs.h >>conftest.$ac_ext
20906 cat >>conftest.$ac_ext <<_ACEOF
20907 /* end confdefs.h. */
20908 $ac_includes_default
20909 #include <$ac_header>
20911 rm -f conftest.$ac_objext
20912 if { (ac_try="$ac_compile"
20913 case "(($ac_try" in
20914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20915 *) ac_try_echo=$ac_try;;
20917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20918 (eval "$ac_compile") 2>conftest.er1
20920 grep -v '^ *+' conftest.er1 >conftest.err
20922 cat conftest.err >&5
20923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20924 (exit $ac_status); } && {
20925 test -z "$ac_c_werror_flag" ||
20926 test ! -s conftest.err
20927 } && test -s conftest.$ac_objext; then
20928 ac_header_compiler=yes
20930 echo "$as_me: failed program was
:" >&5
20931 sed 's/^/| /' conftest.$ac_ext >&5
20933 ac_header_compiler=no
20936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20937 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20938 echo "${ECHO_T}$ac_header_compiler" >&6; }
20940 # Is the header present?
20941 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20942 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20943 cat >conftest.$ac_ext <<_ACEOF
20946 cat confdefs.h >>conftest.$ac_ext
20947 cat >>conftest.$ac_ext <<_ACEOF
20948 /* end confdefs.h. */
20949 #include <$ac_header>
20951 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20952 case "(($ac_try" in
20953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20954 *) ac_try_echo=$ac_try;;
20956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20957 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20959 grep -v '^ *+' conftest.er1 >conftest.err
20961 cat conftest.err >&5
20962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20963 (exit $ac_status); } >/dev/null && {
20964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20965 test ! -s conftest.err
20967 ac_header_preproc=yes
20969 echo "$as_me: failed program was
:" >&5
20970 sed 's/^/| /' conftest.$ac_ext >&5
20972 ac_header_preproc=no
20975 rm -f conftest.err conftest.$ac_ext
20976 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20977 echo "${ECHO_T}$ac_header_preproc" >&6; }
20979 # So? What about this header?
20980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20982 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20983 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20984 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20986 ac_header_preproc=yes
20989 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20990 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20991 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20992 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20993 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20994 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20995 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20996 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20997 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20999 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21000 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21004 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21005 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21006 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21007 echo $ECHO_N "(cached
) $ECHO_C" >&6
21009 eval "$as_ac_Header=\
$ac_header_preproc"
21011 ac_res=`eval echo '${'$as_ac_Header'}'`
21012 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21013 echo "${ECHO_T}$ac_res" >&6; }
21016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21017 cat >>confdefs.h <<_ACEOF
21018 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21027 for ac_header in des.h
21029 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21030 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21031 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21032 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21033 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21034 echo $ECHO_N "(cached
) $ECHO_C" >&6
21036 ac_res=`eval echo '${'$as_ac_Header'}'`
21037 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21038 echo "${ECHO_T}$ac_res" >&6; }
21040 # Is the header compilable?
21041 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21042 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21043 cat >conftest.$ac_ext <<_ACEOF
21046 cat confdefs.h >>conftest.$ac_ext
21047 cat >>conftest.$ac_ext <<_ACEOF
21048 /* end confdefs.h. */
21049 $ac_includes_default
21050 #include <$ac_header>
21052 rm -f conftest.$ac_objext
21053 if { (ac_try="$ac_compile"
21054 case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_compile") 2>conftest.er1
21061 grep -v '^ *+' conftest.er1 >conftest.err
21063 cat conftest.err >&5
21064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21065 (exit $ac_status); } && {
21066 test -z "$ac_c_werror_flag" ||
21067 test ! -s conftest.err
21068 } && test -s conftest.$ac_objext; then
21069 ac_header_compiler=yes
21071 echo "$as_me: failed program was
:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21074 ac_header_compiler=no
21077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21078 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21079 echo "${ECHO_T}$ac_header_compiler" >&6; }
21081 # Is the header present?
21082 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21083 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21084 cat >conftest.$ac_ext <<_ACEOF
21087 cat confdefs.h >>conftest.$ac_ext
21088 cat >>conftest.$ac_ext <<_ACEOF
21089 /* end confdefs.h. */
21090 #include <$ac_header>
21092 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21093 case "(($ac_try" in
21094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21095 *) ac_try_echo=$ac_try;;
21097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21098 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21100 grep -v '^ *+' conftest.er1 >conftest.err
21102 cat conftest.err >&5
21103 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21104 (exit $ac_status); } >/dev/null && {
21105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21106 test ! -s conftest.err
21108 ac_header_preproc=yes
21110 echo "$as_me: failed program was
:" >&5
21111 sed 's/^/| /' conftest.$ac_ext >&5
21113 ac_header_preproc=no
21116 rm -f conftest.err conftest.$ac_ext
21117 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21118 echo "${ECHO_T}$ac_header_preproc" >&6; }
21120 # So? What about this header?
21121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21123 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21124 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21125 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21127 ac_header_preproc=yes
21130 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21131 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21132 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21133 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21134 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21135 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21136 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21137 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21138 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21140 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21141 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21145 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21146 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21147 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21148 echo $ECHO_N "(cached
) $ECHO_C" >&6
21150 eval "$as_ac_Header=\
$ac_header_preproc"
21152 ac_res=`eval echo '${'$as_ac_Header'}'`
21153 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21154 echo "${ECHO_T}$ac_res" >&6; }
21157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21158 cat >>confdefs.h <<_ACEOF
21159 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21164 for ac_header in kerberosIV/des.h
21166 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21167 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21168 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21169 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21170 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21171 echo $ECHO_N "(cached
) $ECHO_C" >&6
21173 ac_res=`eval echo '${'$as_ac_Header'}'`
21174 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21175 echo "${ECHO_T}$ac_res" >&6; }
21177 # Is the header compilable?
21178 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21179 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21180 cat >conftest.$ac_ext <<_ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21186 $ac_includes_default
21187 #include <$ac_header>
21189 rm -f conftest.$ac_objext
21190 if { (ac_try="$ac_compile"
21191 case "(($ac_try" in
21192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21193 *) ac_try_echo=$ac_try;;
21195 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21196 (eval "$ac_compile") 2>conftest.er1
21198 grep -v '^ *+' conftest.er1 >conftest.err
21200 cat conftest.err >&5
21201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21202 (exit $ac_status); } && {
21203 test -z "$ac_c_werror_flag" ||
21204 test ! -s conftest.err
21205 } && test -s conftest.$ac_objext; then
21206 ac_header_compiler=yes
21208 echo "$as_me: failed program was
:" >&5
21209 sed 's/^/| /' conftest.$ac_ext >&5
21211 ac_header_compiler=no
21214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21215 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21216 echo "${ECHO_T}$ac_header_compiler" >&6; }
21218 # Is the header present?
21219 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21220 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21221 cat >conftest.$ac_ext <<_ACEOF
21224 cat confdefs.h >>conftest.$ac_ext
21225 cat >>conftest.$ac_ext <<_ACEOF
21226 /* end confdefs.h. */
21227 #include <$ac_header>
21229 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21230 case "(($ac_try" in
21231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21232 *) ac_try_echo=$ac_try;;
21234 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21235 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21237 grep -v '^ *+' conftest.er1 >conftest.err
21239 cat conftest.err >&5
21240 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21241 (exit $ac_status); } >/dev/null && {
21242 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21243 test ! -s conftest.err
21245 ac_header_preproc=yes
21247 echo "$as_me: failed program was
:" >&5
21248 sed 's/^/| /' conftest.$ac_ext >&5
21250 ac_header_preproc=no
21253 rm -f conftest.err conftest.$ac_ext
21254 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21255 echo "${ECHO_T}$ac_header_preproc" >&6; }
21257 # So? What about this header?
21258 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21260 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21261 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21262 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21263 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21264 ac_header_preproc=yes
21267 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21268 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21269 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21270 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21271 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21272 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21273 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21274 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21275 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21276 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21277 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21278 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21282 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21283 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21284 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21285 echo $ECHO_N "(cached
) $ECHO_C" >&6
21287 eval "$as_ac_Header=\
$ac_header_preproc"
21289 ac_res=`eval echo '${'$as_ac_Header'}'`
21290 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21291 echo "${ECHO_T}$ac_res" >&6; }
21294 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21295 cat >>confdefs.h <<_ACEOF
21296 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21301 for ac_header in kerberos/des.h
21303 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21304 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21305 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21306 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21307 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21308 echo $ECHO_N "(cached
) $ECHO_C" >&6
21310 ac_res=`eval echo '${'$as_ac_Header'}'`
21311 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21312 echo "${ECHO_T}$ac_res" >&6; }
21314 # Is the header compilable?
21315 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21316 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21317 cat >conftest.$ac_ext <<_ACEOF
21320 cat confdefs.h >>conftest.$ac_ext
21321 cat >>conftest.$ac_ext <<_ACEOF
21322 /* end confdefs.h. */
21323 $ac_includes_default
21324 #include <$ac_header>
21326 rm -f conftest.$ac_objext
21327 if { (ac_try="$ac_compile"
21328 case "(($ac_try" in
21329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21330 *) ac_try_echo=$ac_try;;
21332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21333 (eval "$ac_compile") 2>conftest.er1
21335 grep -v '^ *+' conftest.er1 >conftest.err
21337 cat conftest.err >&5
21338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21339 (exit $ac_status); } && {
21340 test -z "$ac_c_werror_flag" ||
21341 test ! -s conftest.err
21342 } && test -s conftest.$ac_objext; then
21343 ac_header_compiler=yes
21345 echo "$as_me: failed program was
:" >&5
21346 sed 's/^/| /' conftest.$ac_ext >&5
21348 ac_header_compiler=no
21351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21352 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21353 echo "${ECHO_T}$ac_header_compiler" >&6; }
21355 # Is the header present?
21356 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21357 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21358 cat >conftest.$ac_ext <<_ACEOF
21361 cat confdefs.h >>conftest.$ac_ext
21362 cat >>conftest.$ac_ext <<_ACEOF
21363 /* end confdefs.h. */
21364 #include <$ac_header>
21366 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21367 case "(($ac_try" in
21368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21369 *) ac_try_echo=$ac_try;;
21371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21372 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21374 grep -v '^ *+' conftest.er1 >conftest.err
21376 cat conftest.err >&5
21377 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21378 (exit $ac_status); } >/dev/null && {
21379 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21380 test ! -s conftest.err
21382 ac_header_preproc=yes
21384 echo "$as_me: failed program was
:" >&5
21385 sed 's/^/| /' conftest.$ac_ext >&5
21387 ac_header_preproc=no
21390 rm -f conftest.err conftest.$ac_ext
21391 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21392 echo "${ECHO_T}$ac_header_preproc" >&6; }
21394 # So? What about this header?
21395 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21397 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21398 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21399 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21400 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21401 ac_header_preproc=yes
21404 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21405 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21406 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21407 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21408 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21409 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21410 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21411 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21412 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21413 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21414 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21415 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21419 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21420 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21421 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21422 echo $ECHO_N "(cached
) $ECHO_C" >&6
21424 eval "$as_ac_Header=\
$ac_header_preproc"
21426 ac_res=`eval echo '${'$as_ac_Header'}'`
21427 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21428 echo "${ECHO_T}$ac_res" >&6; }
21431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21432 cat >>confdefs.h <<_ACEOF
21433 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21449 for ac_header in krb.h
21451 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21452 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21453 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21454 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21455 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21456 echo $ECHO_N "(cached
) $ECHO_C" >&6
21458 ac_res=`eval echo '${'$as_ac_Header'}'`
21459 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21460 echo "${ECHO_T}$ac_res" >&6; }
21462 # Is the header compilable?
21463 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21464 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21465 cat >conftest.$ac_ext <<_ACEOF
21468 cat confdefs.h >>conftest.$ac_ext
21469 cat >>conftest.$ac_ext <<_ACEOF
21470 /* end confdefs.h. */
21471 $ac_includes_default
21472 #include <$ac_header>
21474 rm -f conftest.$ac_objext
21475 if { (ac_try="$ac_compile"
21476 case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_compile") 2>conftest.er1
21483 grep -v '^ *+' conftest.er1 >conftest.err
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21487 (exit $ac_status); } && {
21488 test -z "$ac_c_werror_flag" ||
21489 test ! -s conftest.err
21490 } && test -s conftest.$ac_objext; then
21491 ac_header_compiler=yes
21493 echo "$as_me: failed program was
:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21496 ac_header_compiler=no
21499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21500 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21501 echo "${ECHO_T}$ac_header_compiler" >&6; }
21503 # Is the header present?
21504 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21505 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21506 cat >conftest.$ac_ext <<_ACEOF
21509 cat confdefs.h >>conftest.$ac_ext
21510 cat >>conftest.$ac_ext <<_ACEOF
21511 /* end confdefs.h. */
21512 #include <$ac_header>
21514 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21515 case "(($ac_try" in
21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517 *) ac_try_echo=$ac_try;;
21519 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21520 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21522 grep -v '^ *+' conftest.er1 >conftest.err
21524 cat conftest.err >&5
21525 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21526 (exit $ac_status); } >/dev/null && {
21527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21528 test ! -s conftest.err
21530 ac_header_preproc=yes
21532 echo "$as_me: failed program was
:" >&5
21533 sed 's/^/| /' conftest.$ac_ext >&5
21535 ac_header_preproc=no
21538 rm -f conftest.err conftest.$ac_ext
21539 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21540 echo "${ECHO_T}$ac_header_preproc" >&6; }
21542 # So? What about this header?
21543 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21545 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21546 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21547 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21548 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21549 ac_header_preproc=yes
21552 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21553 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21554 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21555 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21556 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21557 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21558 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21559 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21560 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21561 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21562 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21563 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21567 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21568 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21569 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21570 echo $ECHO_N "(cached
) $ECHO_C" >&6
21572 eval "$as_ac_Header=\
$ac_header_preproc"
21574 ac_res=`eval echo '${'$as_ac_Header'}'`
21575 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21576 echo "${ECHO_T}$ac_res" >&6; }
21579 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21580 cat >>confdefs.h <<_ACEOF
21581 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21586 for ac_header in kerberosIV/krb.h
21588 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21589 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21590 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21591 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21592 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21593 echo $ECHO_N "(cached
) $ECHO_C" >&6
21595 ac_res=`eval echo '${'$as_ac_Header'}'`
21596 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21597 echo "${ECHO_T}$ac_res" >&6; }
21599 # Is the header compilable?
21600 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21601 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21602 cat >conftest.$ac_ext <<_ACEOF
21605 cat confdefs.h >>conftest.$ac_ext
21606 cat >>conftest.$ac_ext <<_ACEOF
21607 /* end confdefs.h. */
21608 $ac_includes_default
21609 #include <$ac_header>
21611 rm -f conftest.$ac_objext
21612 if { (ac_try="$ac_compile"
21613 case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21617 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21618 (eval "$ac_compile") 2>conftest.er1
21620 grep -v '^ *+' conftest.er1 >conftest.err
21622 cat conftest.err >&5
21623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21624 (exit $ac_status); } && {
21625 test -z "$ac_c_werror_flag" ||
21626 test ! -s conftest.err
21627 } && test -s conftest.$ac_objext; then
21628 ac_header_compiler=yes
21630 echo "$as_me: failed program was
:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21633 ac_header_compiler=no
21636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21637 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21638 echo "${ECHO_T}$ac_header_compiler" >&6; }
21640 # Is the header present?
21641 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21642 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21643 cat >conftest.$ac_ext <<_ACEOF
21646 cat confdefs.h >>conftest.$ac_ext
21647 cat >>conftest.$ac_ext <<_ACEOF
21648 /* end confdefs.h. */
21649 #include <$ac_header>
21651 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21652 case "(($ac_try" in
21653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21654 *) ac_try_echo=$ac_try;;
21656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21657 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21659 grep -v '^ *+' conftest.er1 >conftest.err
21661 cat conftest.err >&5
21662 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21663 (exit $ac_status); } >/dev/null && {
21664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21665 test ! -s conftest.err
21667 ac_header_preproc=yes
21669 echo "$as_me: failed program was
:" >&5
21670 sed 's/^/| /' conftest.$ac_ext >&5
21672 ac_header_preproc=no
21675 rm -f conftest.err conftest.$ac_ext
21676 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21677 echo "${ECHO_T}$ac_header_preproc" >&6; }
21679 # So? What about this header?
21680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21682 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21683 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21684 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21686 ac_header_preproc=yes
21689 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21690 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21691 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21692 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21693 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21694 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21695 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21696 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21697 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21699 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21700 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21704 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21705 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21706 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21707 echo $ECHO_N "(cached
) $ECHO_C" >&6
21709 eval "$as_ac_Header=\
$ac_header_preproc"
21711 ac_res=`eval echo '${'$as_ac_Header'}'`
21712 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21713 echo "${ECHO_T}$ac_res" >&6; }
21716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21717 cat >>confdefs.h <<_ACEOF
21718 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21723 for ac_header in kerberos/krb.h
21725 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21726 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21727 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21728 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21729 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21730 echo $ECHO_N "(cached
) $ECHO_C" >&6
21732 ac_res=`eval echo '${'$as_ac_Header'}'`
21733 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21734 echo "${ECHO_T}$ac_res" >&6; }
21736 # Is the header compilable?
21737 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21738 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21739 cat >conftest.$ac_ext <<_ACEOF
21742 cat confdefs.h >>conftest.$ac_ext
21743 cat >>conftest.$ac_ext <<_ACEOF
21744 /* end confdefs.h. */
21745 $ac_includes_default
21746 #include <$ac_header>
21748 rm -f conftest.$ac_objext
21749 if { (ac_try="$ac_compile"
21750 case "(($ac_try" in
21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752 *) ac_try_echo=$ac_try;;
21754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21755 (eval "$ac_compile") 2>conftest.er1
21757 grep -v '^ *+' conftest.er1 >conftest.err
21759 cat conftest.err >&5
21760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21761 (exit $ac_status); } && {
21762 test -z "$ac_c_werror_flag" ||
21763 test ! -s conftest.err
21764 } && test -s conftest.$ac_objext; then
21765 ac_header_compiler=yes
21767 echo "$as_me: failed program was
:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21770 ac_header_compiler=no
21773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21774 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21775 echo "${ECHO_T}$ac_header_compiler" >&6; }
21777 # Is the header present?
21778 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21779 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21780 cat >conftest.$ac_ext <<_ACEOF
21783 cat confdefs.h >>conftest.$ac_ext
21784 cat >>conftest.$ac_ext <<_ACEOF
21785 /* end confdefs.h. */
21786 #include <$ac_header>
21788 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21789 case "(($ac_try" in
21790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21791 *) ac_try_echo=$ac_try;;
21793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21794 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21796 grep -v '^ *+' conftest.er1 >conftest.err
21798 cat conftest.err >&5
21799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21800 (exit $ac_status); } >/dev/null && {
21801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21802 test ! -s conftest.err
21804 ac_header_preproc=yes
21806 echo "$as_me: failed program was
:" >&5
21807 sed 's/^/| /' conftest.$ac_ext >&5
21809 ac_header_preproc=no
21812 rm -f conftest.err conftest.$ac_ext
21813 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21814 echo "${ECHO_T}$ac_header_preproc" >&6; }
21816 # So? What about this header?
21817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21819 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21820 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21821 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21823 ac_header_preproc=yes
21826 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21827 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21828 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21829 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21830 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21831 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21832 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21833 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21834 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21836 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21837 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21841 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21842 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21843 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21844 echo $ECHO_N "(cached
) $ECHO_C" >&6
21846 eval "$as_ac_Header=\
$ac_header_preproc"
21848 ac_res=`eval echo '${'$as_ac_Header'}'`
21849 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21850 echo "${ECHO_T}$ac_res" >&6; }
21853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21854 cat >>confdefs.h <<_ACEOF
21855 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21872 for ac_header in com_err.h
21874 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21875 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21876 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21877 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21878 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21879 echo $ECHO_N "(cached
) $ECHO_C" >&6
21881 ac_res=`eval echo '${'$as_ac_Header'}'`
21882 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21883 echo "${ECHO_T}$ac_res" >&6; }
21885 # Is the header compilable?
21886 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21887 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21888 cat >conftest.$ac_ext <<_ACEOF
21891 cat confdefs.h >>conftest.$ac_ext
21892 cat >>conftest.$ac_ext <<_ACEOF
21893 /* end confdefs.h. */
21894 $ac_includes_default
21895 #include <$ac_header>
21897 rm -f conftest.$ac_objext
21898 if { (ac_try="$ac_compile"
21899 case "(($ac_try" in
21900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21901 *) ac_try_echo=$ac_try;;
21903 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21904 (eval "$ac_compile") 2>conftest.er1
21906 grep -v '^ *+' conftest.er1 >conftest.err
21908 cat conftest.err >&5
21909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21910 (exit $ac_status); } && {
21911 test -z "$ac_c_werror_flag" ||
21912 test ! -s conftest.err
21913 } && test -s conftest.$ac_objext; then
21914 ac_header_compiler=yes
21916 echo "$as_me: failed program was
:" >&5
21917 sed 's/^/| /' conftest.$ac_ext >&5
21919 ac_header_compiler=no
21922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21923 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21924 echo "${ECHO_T}$ac_header_compiler" >&6; }
21926 # Is the header present?
21927 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21928 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21929 cat >conftest.$ac_ext <<_ACEOF
21932 cat confdefs.h >>conftest.$ac_ext
21933 cat >>conftest.$ac_ext <<_ACEOF
21934 /* end confdefs.h. */
21935 #include <$ac_header>
21937 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21938 case "(($ac_try" in
21939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940 *) ac_try_echo=$ac_try;;
21942 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21943 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21945 grep -v '^ *+' conftest.er1 >conftest.err
21947 cat conftest.err >&5
21948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21949 (exit $ac_status); } >/dev/null && {
21950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21951 test ! -s conftest.err
21953 ac_header_preproc=yes
21955 echo "$as_me: failed program was
:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21958 ac_header_preproc=no
21961 rm -f conftest.err conftest.$ac_ext
21962 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21963 echo "${ECHO_T}$ac_header_preproc" >&6; }
21965 # So? What about this header?
21966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21968 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21969 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21970 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21972 ac_header_preproc=yes
21975 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21976 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21977 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21978 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21979 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21980 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21981 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21982 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21983 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21985 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21986 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21990 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21991 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21992 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21993 echo $ECHO_N "(cached
) $ECHO_C" >&6
21995 eval "$as_ac_Header=\
$ac_header_preproc"
21997 ac_res=`eval echo '${'$as_ac_Header'}'`
21998 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21999 echo "${ECHO_T}$ac_res" >&6; }
22002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22003 cat >>confdefs.h <<_ACEOF
22004 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22013 # Solaris requires -lintl if you want strerror (which calls dgettext)
22014 # to return localized messages.
22016 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22017 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22018 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22019 echo $ECHO_N "(cached
) $ECHO_C" >&6
22021 ac_check_lib_save_LIBS=$LIBS
22022 LIBS="-lintl $LIBS"
22023 cat >conftest.$ac_ext <<_ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22030 /* Override any GCC internal prototype to avoid an error.
22031 Use char because int might match the return type of a GCC
22032 builtin and then its argument prototype would still apply. */
22040 return dgettext ();
22045 rm -f conftest.$ac_objext conftest$ac_exeext
22046 if { (ac_try="$ac_link"
22047 case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_link") 2>conftest.er1
22054 grep -v '^ *+' conftest.er1 >conftest.err
22056 cat conftest.err >&5
22057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22058 (exit $ac_status); } && {
22059 test -z "$ac_c_werror_flag" ||
22060 test ! -s conftest.err
22061 } && test -s conftest$ac_exeext &&
22062 $as_test_x conftest$ac_exeext; then
22063 ac_cv_lib_intl_dgettext=yes
22065 echo "$as_me: failed program was
:" >&5
22066 sed 's/^/| /' conftest.$ac_ext >&5
22068 ac_cv_lib_intl_dgettext=no
22071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22072 conftest$ac_exeext conftest.$ac_ext
22073 LIBS=$ac_check_lib_save_LIBS
22075 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22076 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22077 if test $ac_cv_lib_intl_dgettext = yes; then
22078 cat >>confdefs.h <<_ACEOF
22079 #define HAVE_LIBINTL 1
22082 LIBS="-lintl $LIBS"
22087 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22088 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22089 if test "${emacs_cv_localtime_cache+set}" = set; then
22090 echo $ECHO_N "(cached
) $ECHO_C" >&6
22092 if test x$ac_cv_func_tzset = xyes; then
22093 if test "$cross_compiling" = yes; then
22094 # If we have tzset, assume the worst when cross-compiling.
22095 emacs_cv_localtime_cache=yes
22097 cat >conftest.$ac_ext <<_ACEOF
22100 cat confdefs.h >>conftest.$ac_ext
22101 cat >>conftest.$ac_ext <<_ACEOF
22102 /* end confdefs.h. */
22104 extern char **environ;
22108 for (to = from = environ; (*to = *from); from++)
22109 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22112 char TZ_GMT0[] = "TZ
=GMT0
";
22113 char TZ_PST8[] = "TZ
=PST8
";
22116 time_t now = time ((time_t *) 0);
22117 int hour_GMT0, hour_unset;
22118 if (putenv (TZ_GMT0) != 0)
22120 hour_GMT0 = localtime (&now)->tm_hour;
22122 hour_unset = localtime (&now)->tm_hour;
22123 if (putenv (TZ_PST8) != 0)
22125 if (localtime (&now)->tm_hour == hour_GMT0)
22128 if (localtime (&now)->tm_hour != hour_unset)
22133 rm -f conftest$ac_exeext
22134 if { (ac_try="$ac_link"
22135 case "(($ac_try" in
22136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22137 *) ac_try_echo=$ac_try;;
22139 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22140 (eval "$ac_link") 2>&5
22142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22143 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22144 { (case "(($ac_try" in
22145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22146 *) ac_try_echo=$ac_try;;
22148 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22149 (eval "$ac_try") 2>&5
22151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22152 (exit $ac_status); }; }; then
22153 emacs_cv_localtime_cache=no
22155 echo "$as_me: program exited with status
$ac_status" >&5
22156 echo "$as_me: failed program was
:" >&5
22157 sed 's/^/| /' conftest.$ac_ext >&5
22159 ( exit $ac_status )
22160 emacs_cv_localtime_cache=yes
22162 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22167 # If we lack tzset, report that localtime does not cache TZ,
22168 # since we can't invalidate the cache if we don't have tzset.
22169 emacs_cv_localtime_cache=no
22172 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22173 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22174 if test $emacs_cv_localtime_cache = yes; then
22176 cat >>confdefs.h <<\_ACEOF
22177 #define LOCALTIME_CACHE 1
22182 if test "x
$HAVE_TIMEVAL" = xyes; then
22184 for ac_func in gettimeofday
22186 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22187 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22188 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22189 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22190 echo $ECHO_N "(cached
) $ECHO_C" >&6
22192 cat >conftest.$ac_ext <<_ACEOF
22195 cat confdefs.h >>conftest.$ac_ext
22196 cat >>conftest.$ac_ext <<_ACEOF
22197 /* end confdefs.h. */
22198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22200 #define $ac_func innocuous_$ac_func
22202 /* System header to define __stub macros and hopefully few prototypes,
22203 which can conflict with char $ac_func (); below.
22204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22205 <limits.h> exists even on freestanding compilers. */
22208 # include <limits.h>
22210 # include <assert.h>
22215 /* Override any GCC internal prototype to avoid an error.
22216 Use char because int might match the return type of a GCC
22217 builtin and then its argument prototype would still apply. */
22222 /* The GNU C library defines this for functions which it implements
22223 to always fail with ENOSYS. Some functions are actually named
22224 something starting with __ and the normal name is an alias. */
22225 #if defined __stub_$ac_func || defined __stub___$ac_func
22232 return $ac_func ();
22237 rm -f conftest.$ac_objext conftest$ac_exeext
22238 if { (ac_try="$ac_link"
22239 case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22243 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_link") 2>conftest.er1
22246 grep -v '^ *+' conftest.er1 >conftest.err
22248 cat conftest.err >&5
22249 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22250 (exit $ac_status); } && {
22251 test -z "$ac_c_werror_flag" ||
22252 test ! -s conftest.err
22253 } && test -s conftest$ac_exeext &&
22254 $as_test_x conftest$ac_exeext; then
22255 eval "$as_ac_var=yes"
22257 echo "$as_me: failed program was
:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22260 eval "$as_ac_var=no
"
22263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22264 conftest$ac_exeext conftest.$ac_ext
22266 ac_res=`eval echo '${'$as_ac_var'}'`
22267 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22268 echo "${ECHO_T}$ac_res" >&6; }
22269 if test `eval echo '${'$as_ac_var'}'` = yes; then
22270 cat >>confdefs.h <<_ACEOF
22271 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22277 if test $ac_cv_func_gettimeofday = yes; then
22278 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22279 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22280 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22281 echo $ECHO_N "(cached
) $ECHO_C" >&6
22283 cat >conftest.$ac_ext <<_ACEOF
22286 cat confdefs.h >>conftest.$ac_ext
22287 cat >>conftest.$ac_ext <<_ACEOF
22288 /* end confdefs.h. */
22290 #ifdef TIME_WITH_SYS_TIME
22291 #include <sys/time.h>
22294 #ifdef HAVE_SYS_TIME_H
22295 #include <sys/time.h>
22303 struct timeval time;
22304 gettimeofday (&time, 0);
22309 rm -f conftest.$ac_objext
22310 if { (ac_try="$ac_compile"
22311 case "(($ac_try" in
22312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22313 *) ac_try_echo=$ac_try;;
22315 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22316 (eval "$ac_compile") 2>conftest.er1
22318 grep -v '^ *+' conftest.er1 >conftest.err
22320 cat conftest.err >&5
22321 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22322 (exit $ac_status); } && {
22323 test -z "$ac_c_werror_flag" ||
22324 test ! -s conftest.err
22325 } && test -s conftest.$ac_objext; then
22326 emacs_cv_gettimeofday_two_arguments=yes
22328 echo "$as_me: failed program was
:" >&5
22329 sed 's/^/| /' conftest.$ac_ext >&5
22331 emacs_cv_gettimeofday_two_arguments=no
22334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22336 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22337 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22338 if test $emacs_cv_gettimeofday_two_arguments = no; then
22340 cat >>confdefs.h <<\_ACEOF
22341 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22349 { echo "$as_me:$LINENO: checking
for socket
" >&5
22350 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22351 if test "${ac_cv_func_socket+set}" = set; then
22352 echo $ECHO_N "(cached
) $ECHO_C" >&6
22354 cat >conftest.$ac_ext <<_ACEOF
22357 cat confdefs.h >>conftest.$ac_ext
22358 cat >>conftest.$ac_ext <<_ACEOF
22359 /* end confdefs.h. */
22360 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22361 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22362 #define socket innocuous_socket
22364 /* System header to define __stub macros and hopefully few prototypes,
22365 which can conflict with char socket (); below.
22366 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22367 <limits.h> exists even on freestanding compilers. */
22370 # include <limits.h>
22372 # include <assert.h>
22377 /* Override any GCC internal prototype to avoid an error.
22378 Use char because int might match the return type of a GCC
22379 builtin and then its argument prototype would still apply. */
22384 /* The GNU C library defines this for functions which it implements
22385 to always fail with ENOSYS. Some functions are actually named
22386 something starting with __ and the normal name is an alias. */
22387 #if defined __stub_socket || defined __stub___socket
22399 rm -f conftest.$ac_objext conftest$ac_exeext
22400 if { (ac_try="$ac_link"
22401 case "(($ac_try" in
22402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22403 *) ac_try_echo=$ac_try;;
22405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22406 (eval "$ac_link") 2>conftest.er1
22408 grep -v '^ *+' conftest.er1 >conftest.err
22410 cat conftest.err >&5
22411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22412 (exit $ac_status); } && {
22413 test -z "$ac_c_werror_flag" ||
22414 test ! -s conftest.err
22415 } && test -s conftest$ac_exeext &&
22416 $as_test_x conftest$ac_exeext; then
22417 ac_cv_func_socket=yes
22419 echo "$as_me: failed program was
:" >&5
22420 sed 's/^/| /' conftest.$ac_ext >&5
22422 ac_cv_func_socket=no
22425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22426 conftest$ac_exeext conftest.$ac_ext
22428 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22429 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22430 if test $ac_cv_func_socket = yes; then
22436 if test $ok_so_far = yes; then
22437 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22438 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22439 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22440 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22441 echo $ECHO_N "(cached
) $ECHO_C" >&6
22443 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22444 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22446 # Is the header compilable?
22447 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22448 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22449 cat >conftest.$ac_ext <<_ACEOF
22452 cat confdefs.h >>conftest.$ac_ext
22453 cat >>conftest.$ac_ext <<_ACEOF
22454 /* end confdefs.h. */
22455 $ac_includes_default
22456 #include <netinet/in.h>
22458 rm -f conftest.$ac_objext
22459 if { (ac_try="$ac_compile"
22460 case "(($ac_try" in
22461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462 *) ac_try_echo=$ac_try;;
22464 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22465 (eval "$ac_compile") 2>conftest.er1
22467 grep -v '^ *+' conftest.er1 >conftest.err
22469 cat conftest.err >&5
22470 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22471 (exit $ac_status); } && {
22472 test -z "$ac_c_werror_flag" ||
22473 test ! -s conftest.err
22474 } && test -s conftest.$ac_objext; then
22475 ac_header_compiler=yes
22477 echo "$as_me: failed program was
:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22480 ac_header_compiler=no
22483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22484 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22485 echo "${ECHO_T}$ac_header_compiler" >&6; }
22487 # Is the header present?
22488 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22489 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22490 cat >conftest.$ac_ext <<_ACEOF
22493 cat confdefs.h >>conftest.$ac_ext
22494 cat >>conftest.$ac_ext <<_ACEOF
22495 /* end confdefs.h. */
22496 #include <netinet/in.h>
22498 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22499 case "(($ac_try" in
22500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501 *) ac_try_echo=$ac_try;;
22503 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22504 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22506 grep -v '^ *+' conftest.er1 >conftest.err
22508 cat conftest.err >&5
22509 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22510 (exit $ac_status); } >/dev/null && {
22511 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22512 test ! -s conftest.err
22514 ac_header_preproc=yes
22516 echo "$as_me: failed program was
:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22519 ac_header_preproc=no
22522 rm -f conftest.err conftest.$ac_ext
22523 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22524 echo "${ECHO_T}$ac_header_preproc" >&6; }
22526 # So? What about this header?
22527 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22529 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22530 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22531 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22532 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22533 ac_header_preproc=yes
22536 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22537 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22538 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22539 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22540 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22541 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22542 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22543 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22544 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22545 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22546 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22547 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22551 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22552 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22553 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22554 echo $ECHO_N "(cached
) $ECHO_C" >&6
22556 ac_cv_header_netinet_in_h=$ac_header_preproc
22558 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22559 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22562 if test $ac_cv_header_netinet_in_h = yes; then
22570 if test $ok_so_far = yes; then
22571 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22572 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22573 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22574 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22575 echo $ECHO_N "(cached
) $ECHO_C" >&6
22577 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22578 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22580 # Is the header compilable?
22581 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22582 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22583 cat >conftest.$ac_ext <<_ACEOF
22586 cat confdefs.h >>conftest.$ac_ext
22587 cat >>conftest.$ac_ext <<_ACEOF
22588 /* end confdefs.h. */
22589 $ac_includes_default
22590 #include <arpa/inet.h>
22592 rm -f conftest.$ac_objext
22593 if { (ac_try="$ac_compile"
22594 case "(($ac_try" in
22595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22596 *) ac_try_echo=$ac_try;;
22598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22599 (eval "$ac_compile") 2>conftest.er1
22601 grep -v '^ *+' conftest.er1 >conftest.err
22603 cat conftest.err >&5
22604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22605 (exit $ac_status); } && {
22606 test -z "$ac_c_werror_flag" ||
22607 test ! -s conftest.err
22608 } && test -s conftest.$ac_objext; then
22609 ac_header_compiler=yes
22611 echo "$as_me: failed program was
:" >&5
22612 sed 's/^/| /' conftest.$ac_ext >&5
22614 ac_header_compiler=no
22617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22618 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22619 echo "${ECHO_T}$ac_header_compiler" >&6; }
22621 # Is the header present?
22622 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22623 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22624 cat >conftest.$ac_ext <<_ACEOF
22627 cat confdefs.h >>conftest.$ac_ext
22628 cat >>conftest.$ac_ext <<_ACEOF
22629 /* end confdefs.h. */
22630 #include <arpa/inet.h>
22632 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22633 case "(($ac_try" in
22634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22635 *) ac_try_echo=$ac_try;;
22637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22638 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22640 grep -v '^ *+' conftest.er1 >conftest.err
22642 cat conftest.err >&5
22643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22644 (exit $ac_status); } >/dev/null && {
22645 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22646 test ! -s conftest.err
22648 ac_header_preproc=yes
22650 echo "$as_me: failed program was
:" >&5
22651 sed 's/^/| /' conftest.$ac_ext >&5
22653 ac_header_preproc=no
22656 rm -f conftest.err conftest.$ac_ext
22657 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22658 echo "${ECHO_T}$ac_header_preproc" >&6; }
22660 # So? What about this header?
22661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22663 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22664 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22665 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22666 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22667 ac_header_preproc=yes
22670 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22671 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22672 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22673 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22674 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22675 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22676 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22677 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22678 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22679 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22680 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22681 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22685 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22686 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22687 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22688 echo $ECHO_N "(cached
) $ECHO_C" >&6
22690 ac_cv_header_arpa_inet_h=$ac_header_preproc
22692 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22693 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22696 if test $ac_cv_header_arpa_inet_h = yes; then
22704 if test $ok_so_far = yes; then
22706 cat >>confdefs.h <<\_ACEOF
22707 #define HAVE_INET_SOCKETS 1
22713 for ac_header in sys/ioctl.h
22715 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22716 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22717 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22718 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22719 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22720 echo $ECHO_N "(cached
) $ECHO_C" >&6
22722 ac_res=`eval echo '${'$as_ac_Header'}'`
22723 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22724 echo "${ECHO_T}$ac_res" >&6; }
22726 # Is the header compilable?
22727 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22728 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22729 cat >conftest.$ac_ext <<_ACEOF
22732 cat confdefs.h >>conftest.$ac_ext
22733 cat >>conftest.$ac_ext <<_ACEOF
22734 /* end confdefs.h. */
22735 $ac_includes_default
22736 #include <$ac_header>
22738 rm -f conftest.$ac_objext
22739 if { (ac_try="$ac_compile"
22740 case "(($ac_try" in
22741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22742 *) ac_try_echo=$ac_try;;
22744 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22745 (eval "$ac_compile") 2>conftest.er1
22747 grep -v '^ *+' conftest.er1 >conftest.err
22749 cat conftest.err >&5
22750 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22751 (exit $ac_status); } && {
22752 test -z "$ac_c_werror_flag" ||
22753 test ! -s conftest.err
22754 } && test -s conftest.$ac_objext; then
22755 ac_header_compiler=yes
22757 echo "$as_me: failed program was
:" >&5
22758 sed 's/^/| /' conftest.$ac_ext >&5
22760 ac_header_compiler=no
22763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22764 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22765 echo "${ECHO_T}$ac_header_compiler" >&6; }
22767 # Is the header present?
22768 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22769 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22770 cat >conftest.$ac_ext <<_ACEOF
22773 cat confdefs.h >>conftest.$ac_ext
22774 cat >>conftest.$ac_ext <<_ACEOF
22775 /* end confdefs.h. */
22776 #include <$ac_header>
22778 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22779 case "(($ac_try" in
22780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22781 *) ac_try_echo=$ac_try;;
22783 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22784 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22786 grep -v '^ *+' conftest.er1 >conftest.err
22788 cat conftest.err >&5
22789 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22790 (exit $ac_status); } >/dev/null && {
22791 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22792 test ! -s conftest.err
22794 ac_header_preproc=yes
22796 echo "$as_me: failed program was
:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22799 ac_header_preproc=no
22802 rm -f conftest.err conftest.$ac_ext
22803 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22804 echo "${ECHO_T}$ac_header_preproc" >&6; }
22806 # So? What about this header?
22807 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22809 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22810 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22811 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22812 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22813 ac_header_preproc=yes
22816 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22817 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22818 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22819 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22820 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22821 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22822 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22823 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22824 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22825 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22826 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22827 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22831 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22832 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22833 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22834 echo $ECHO_N "(cached
) $ECHO_C" >&6
22836 eval "$as_ac_Header=\
$ac_header_preproc"
22838 ac_res=`eval echo '${'$as_ac_Header'}'`
22839 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22840 echo "${ECHO_T}$ac_res" >&6; }
22843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22844 cat >>confdefs.h <<_ACEOF
22845 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22853 if test -f /usr/lpp/X11/bin/smt.exp; then
22855 cat >>confdefs.h <<\_ACEOF
22856 #define HAVE_AIX_SMT_EXP 1
22861 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22862 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22863 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22864 { echo "$as_me:$LINENO: result
: yes" >&5
22865 echo "${ECHO_T}yes" >&6; }
22867 cat >>confdefs.h <<\_ACEOF
22868 #define HAVE_DEV_PTMX 1
22872 { echo "$as_me:$LINENO: result
: no
" >&5
22873 echo "${ECHO_T}no
" >&6; }
22876 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22877 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22878 if test "${ac_cv_type_pid_t+set}" = set; then
22879 echo $ECHO_N "(cached
) $ECHO_C" >&6
22881 cat >conftest.$ac_ext <<_ACEOF
22884 cat confdefs.h >>conftest.$ac_ext
22885 cat >>conftest.$ac_ext <<_ACEOF
22886 /* end confdefs.h. */
22887 $ac_includes_default
22888 typedef pid_t ac__type_new_;
22892 if ((ac__type_new_ *) 0)
22894 if (sizeof (ac__type_new_))
22900 rm -f conftest.$ac_objext
22901 if { (ac_try="$ac_compile"
22902 case "(($ac_try" in
22903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22904 *) ac_try_echo=$ac_try;;
22906 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22907 (eval "$ac_compile") 2>conftest.er1
22909 grep -v '^ *+' conftest.er1 >conftest.err
22911 cat conftest.err >&5
22912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22913 (exit $ac_status); } && {
22914 test -z "$ac_c_werror_flag" ||
22915 test ! -s conftest.err
22916 } && test -s conftest.$ac_objext; then
22917 ac_cv_type_pid_t=yes
22919 echo "$as_me: failed program was
:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22922 ac_cv_type_pid_t=no
22925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22927 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22928 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22929 if test $ac_cv_type_pid_t = yes; then
22933 cat >>confdefs.h <<_ACEOF
22940 for ac_header in vfork.h
22942 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22943 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22944 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22945 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22946 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22947 echo $ECHO_N "(cached
) $ECHO_C" >&6
22949 ac_res=`eval echo '${'$as_ac_Header'}'`
22950 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22951 echo "${ECHO_T}$ac_res" >&6; }
22953 # Is the header compilable?
22954 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22955 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22956 cat >conftest.$ac_ext <<_ACEOF
22959 cat confdefs.h >>conftest.$ac_ext
22960 cat >>conftest.$ac_ext <<_ACEOF
22961 /* end confdefs.h. */
22962 $ac_includes_default
22963 #include <$ac_header>
22965 rm -f conftest.$ac_objext
22966 if { (ac_try="$ac_compile"
22967 case "(($ac_try" in
22968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969 *) ac_try_echo=$ac_try;;
22971 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22972 (eval "$ac_compile") 2>conftest.er1
22974 grep -v '^ *+' conftest.er1 >conftest.err
22976 cat conftest.err >&5
22977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22978 (exit $ac_status); } && {
22979 test -z "$ac_c_werror_flag" ||
22980 test ! -s conftest.err
22981 } && test -s conftest.$ac_objext; then
22982 ac_header_compiler=yes
22984 echo "$as_me: failed program was
:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22987 ac_header_compiler=no
22990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22991 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22992 echo "${ECHO_T}$ac_header_compiler" >&6; }
22994 # Is the header present?
22995 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22996 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22997 cat >conftest.$ac_ext <<_ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h. */
23003 #include <$ac_header>
23005 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23006 case "(($ac_try" in
23007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23008 *) ac_try_echo=$ac_try;;
23010 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23011 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23013 grep -v '^ *+' conftest.er1 >conftest.err
23015 cat conftest.err >&5
23016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23017 (exit $ac_status); } >/dev/null && {
23018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23019 test ! -s conftest.err
23021 ac_header_preproc=yes
23023 echo "$as_me: failed program was
:" >&5
23024 sed 's/^/| /' conftest.$ac_ext >&5
23026 ac_header_preproc=no
23029 rm -f conftest.err conftest.$ac_ext
23030 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23031 echo "${ECHO_T}$ac_header_preproc" >&6; }
23033 # So? What about this header?
23034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23036 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23037 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23038 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23040 ac_header_preproc=yes
23043 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23044 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23045 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23046 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23047 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23048 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23049 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23050 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23051 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23053 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23054 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23058 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23059 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23060 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23061 echo $ECHO_N "(cached
) $ECHO_C" >&6
23063 eval "$as_ac_Header=\
$ac_header_preproc"
23065 ac_res=`eval echo '${'$as_ac_Header'}'`
23066 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23067 echo "${ECHO_T}$ac_res" >&6; }
23070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23071 cat >>confdefs.h <<_ACEOF
23072 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23081 for ac_func in fork vfork
23083 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23084 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23085 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23086 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23087 echo $ECHO_N "(cached
) $ECHO_C" >&6
23089 cat >conftest.$ac_ext <<_ACEOF
23092 cat confdefs.h >>conftest.$ac_ext
23093 cat >>conftest.$ac_ext <<_ACEOF
23094 /* end confdefs.h. */
23095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23097 #define $ac_func innocuous_$ac_func
23099 /* System header to define __stub macros and hopefully few prototypes,
23100 which can conflict with char $ac_func (); below.
23101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23102 <limits.h> exists even on freestanding compilers. */
23105 # include <limits.h>
23107 # include <assert.h>
23112 /* Override any GCC internal prototype to avoid an error.
23113 Use char because int might match the return type of a GCC
23114 builtin and then its argument prototype would still apply. */
23119 /* The GNU C library defines this for functions which it implements
23120 to always fail with ENOSYS. Some functions are actually named
23121 something starting with __ and the normal name is an alias. */
23122 #if defined __stub_$ac_func || defined __stub___$ac_func
23129 return $ac_func ();
23134 rm -f conftest.$ac_objext conftest$ac_exeext
23135 if { (ac_try="$ac_link"
23136 case "(($ac_try" in
23137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138 *) ac_try_echo=$ac_try;;
23140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23141 (eval "$ac_link") 2>conftest.er1
23143 grep -v '^ *+' conftest.er1 >conftest.err
23145 cat conftest.err >&5
23146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23147 (exit $ac_status); } && {
23148 test -z "$ac_c_werror_flag" ||
23149 test ! -s conftest.err
23150 } && test -s conftest$ac_exeext &&
23151 $as_test_x conftest$ac_exeext; then
23152 eval "$as_ac_var=yes"
23154 echo "$as_me: failed program was
:" >&5
23155 sed 's/^/| /' conftest.$ac_ext >&5
23157 eval "$as_ac_var=no
"
23160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23161 conftest$ac_exeext conftest.$ac_ext
23163 ac_res=`eval echo '${'$as_ac_var'}'`
23164 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23165 echo "${ECHO_T}$ac_res" >&6; }
23166 if test `eval echo '${'$as_ac_var'}'` = yes; then
23167 cat >>confdefs.h <<_ACEOF
23168 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23174 if test "x
$ac_cv_func_fork" = xyes; then
23175 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23176 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23177 if test "${ac_cv_func_fork_works+set}" = set; then
23178 echo $ECHO_N "(cached
) $ECHO_C" >&6
23180 if test "$cross_compiling" = yes; then
23181 ac_cv_func_fork_works=cross
23183 cat >conftest.$ac_ext <<_ACEOF
23186 cat confdefs.h >>conftest.$ac_ext
23187 cat >>conftest.$ac_ext <<_ACEOF
23188 /* end confdefs.h. */
23189 $ac_includes_default
23194 /* By Ruediger Kuhlmann. */
23195 return fork () < 0;
23201 rm -f conftest$ac_exeext
23202 if { (ac_try="$ac_link"
23203 case "(($ac_try" in
23204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23205 *) ac_try_echo=$ac_try;;
23207 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23208 (eval "$ac_link") 2>&5
23210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23211 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23212 { (case "(($ac_try" in
23213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23214 *) ac_try_echo=$ac_try;;
23216 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23217 (eval "$ac_try") 2>&5
23219 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23220 (exit $ac_status); }; }; then
23221 ac_cv_func_fork_works=yes
23223 echo "$as_me: program exited with status
$ac_status" >&5
23224 echo "$as_me: failed program was
:" >&5
23225 sed 's/^/| /' conftest.$ac_ext >&5
23227 ( exit $ac_status )
23228 ac_cv_func_fork_works=no
23230 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23235 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23236 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23239 ac_cv_func_fork_works=$ac_cv_func_fork
23241 if test "x
$ac_cv_func_fork_works" = xcross; then
23243 *-*-amigaos* | *-*-msdosdjgpp*)
23244 # Override, as these systems have only a dummy fork() stub
23245 ac_cv_func_fork_works=no
23248 ac_cv_func_fork_works=yes
23251 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23252 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23254 ac_cv_func_vfork_works=$ac_cv_func_vfork
23255 if test "x
$ac_cv_func_vfork" = xyes; then
23256 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23257 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23258 if test "${ac_cv_func_vfork_works+set}" = set; then
23259 echo $ECHO_N "(cached
) $ECHO_C" >&6
23261 if test "$cross_compiling" = yes; then
23262 ac_cv_func_vfork_works=cross
23264 cat >conftest.$ac_ext <<_ACEOF
23267 cat confdefs.h >>conftest.$ac_ext
23268 cat >>conftest.$ac_ext <<_ACEOF
23269 /* end confdefs.h. */
23270 /* Thanks to Paul Eggert for this test. */
23271 $ac_includes_default
23272 #include <sys/wait.h>
23273 #ifdef HAVE_VFORK_H
23274 # include <vfork.h>
23276 /* On some sparc systems, changes by the child to local and incoming
23277 argument registers are propagated back to the parent. The compiler
23278 is told about this with #include <vfork.h>, but some compilers
23279 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23280 static variable whose address is put into a register that is
23281 clobbered by the vfork. */
23284 sparc_address_test (int arg)
23286 sparc_address_test (arg) int arg;
23289 static pid_t child;
23307 pid_t parent = getpid ();
23310 sparc_address_test (0);
23315 /* Here is another test for sparc vfork register problems. This
23316 test uses lots of local variables, at least as many local
23317 variables as main has allocated so far including compiler
23318 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23319 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23320 reuse the register of parent for one of the local variables,
23321 since it will think that parent can't possibly be used any more
23322 in this routine. Assigning to the local variable will thus
23323 munge parent in the parent process. */
23325 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23326 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23327 /* Convince the compiler that p..p7 are live; otherwise, it might
23328 use the same hardware register for all 8 local variables. */
23329 if (p != p1 || p != p2 || p != p3 || p != p4
23330 || p != p5 || p != p6 || p != p7)
23333 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23334 from child file descriptors. If the child closes a descriptor
23335 before it execs or exits, this munges the parent's descriptor
23336 as well. Test for this by closing stdout in the child. */
23337 _exit(close(fileno(stdout)) != 0);
23342 while (wait(&status) != child)
23345 /* Was there some problem with vforking? */
23348 /* Did the child fail? (This shouldn't happen.) */
23351 /* Did the vfork/compiler bug occur? */
23352 || parent != getpid()
23354 /* Did the file descriptor bug occur? */
23355 || fstat(fileno(stdout), &st) != 0
23360 rm -f conftest$ac_exeext
23361 if { (ac_try="$ac_link"
23362 case "(($ac_try" in
23363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23364 *) ac_try_echo=$ac_try;;
23366 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23367 (eval "$ac_link") 2>&5
23369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23370 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23371 { (case "(($ac_try" in
23372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23373 *) ac_try_echo=$ac_try;;
23375 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23376 (eval "$ac_try") 2>&5
23378 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23379 (exit $ac_status); }; }; then
23380 ac_cv_func_vfork_works=yes
23382 echo "$as_me: program exited with status
$ac_status" >&5
23383 echo "$as_me: failed program was
:" >&5
23384 sed 's/^/| /' conftest.$ac_ext >&5
23386 ( exit $ac_status )
23387 ac_cv_func_vfork_works=no
23389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23394 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23395 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23398 if test "x
$ac_cv_func_fork_works" = xcross; then
23399 ac_cv_func_vfork_works=$ac_cv_func_vfork
23400 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23401 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23404 if test "x
$ac_cv_func_vfork_works" = xyes; then
23406 cat >>confdefs.h <<\_ACEOF
23407 #define HAVE_WORKING_VFORK 1
23412 cat >>confdefs.h <<\_ACEOF
23417 if test "x
$ac_cv_func_fork_works" = xyes; then
23419 cat >>confdefs.h <<\_ACEOF
23420 #define HAVE_WORKING_FORK 1
23426 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23427 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23428 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23429 echo $ECHO_N "(cached
) $ECHO_C" >&6
23431 cat >conftest.$ac_ext <<_ACEOF
23434 cat confdefs.h >>conftest.$ac_ext
23435 cat >>conftest.$ac_ext <<_ACEOF
23436 /* end confdefs.h. */
23437 #include <langinfo.h>
23441 char* cs = nl_langinfo(CODESET);
23446 rm -f conftest.$ac_objext conftest$ac_exeext
23447 if { (ac_try="$ac_link"
23448 case "(($ac_try" in
23449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23450 *) ac_try_echo=$ac_try;;
23452 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23453 (eval "$ac_link") 2>conftest.er1
23455 grep -v '^ *+' conftest.er1 >conftest.err
23457 cat conftest.err >&5
23458 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23459 (exit $ac_status); } && {
23460 test -z "$ac_c_werror_flag" ||
23461 test ! -s conftest.err
23462 } && test -s conftest$ac_exeext &&
23463 $as_test_x conftest$ac_exeext; then
23464 emacs_cv_langinfo_codeset=yes
23466 echo "$as_me: failed program was
:" >&5
23467 sed 's/^/| /' conftest.$ac_ext >&5
23469 emacs_cv_langinfo_codeset=no
23472 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23473 conftest$ac_exeext conftest.$ac_ext
23476 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23477 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23478 if test $emacs_cv_langinfo_codeset = yes; then
23480 cat >>confdefs.h <<\_ACEOF
23481 #define HAVE_LANGINFO_CODESET 1
23486 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23487 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23488 if test "${ac_cv_type_size_t+set}" = set; then
23489 echo $ECHO_N "(cached
) $ECHO_C" >&6
23491 cat >conftest.$ac_ext <<_ACEOF
23494 cat confdefs.h >>conftest.$ac_ext
23495 cat >>conftest.$ac_ext <<_ACEOF
23496 /* end confdefs.h. */
23497 $ac_includes_default
23498 typedef size_t ac__type_new_;
23502 if ((ac__type_new_ *) 0)
23504 if (sizeof (ac__type_new_))
23510 rm -f conftest.$ac_objext
23511 if { (ac_try="$ac_compile"
23512 case "(($ac_try" in
23513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23514 *) ac_try_echo=$ac_try;;
23516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23517 (eval "$ac_compile") 2>conftest.er1
23519 grep -v '^ *+' conftest.er1 >conftest.err
23521 cat conftest.err >&5
23522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23523 (exit $ac_status); } && {
23524 test -z "$ac_c_werror_flag" ||
23525 test ! -s conftest.err
23526 } && test -s conftest.$ac_objext; then
23527 ac_cv_type_size_t=yes
23529 echo "$as_me: failed program was
:" >&5
23530 sed 's/^/| /' conftest.$ac_ext >&5
23532 ac_cv_type_size_t=no
23535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23537 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23538 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23539 if test $ac_cv_type_size_t = yes; then
23541 cat >>confdefs.h <<_ACEOF
23542 #define HAVE_SIZE_T 1
23549 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23550 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23551 if test "${ac_cv_type_mbstate_t+set}" = set; then
23552 echo $ECHO_N "(cached
) $ECHO_C" >&6
23554 cat >conftest.$ac_ext <<_ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23560 $ac_includes_default
23561 # include <wchar.h>
23565 mbstate_t x; return sizeof x;
23570 rm -f conftest.$ac_objext
23571 if { (ac_try="$ac_compile"
23572 case "(($ac_try" in
23573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23574 *) ac_try_echo=$ac_try;;
23576 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23577 (eval "$ac_compile") 2>conftest.er1
23579 grep -v '^ *+' conftest.er1 >conftest.err
23581 cat conftest.err >&5
23582 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23583 (exit $ac_status); } && {
23584 test -z "$ac_c_werror_flag" ||
23585 test ! -s conftest.err
23586 } && test -s conftest.$ac_objext; then
23587 ac_cv_type_mbstate_t=yes
23589 echo "$as_me: failed program was
:" >&5
23590 sed 's/^/| /' conftest.$ac_ext >&5
23592 ac_cv_type_mbstate_t=no
23595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23597 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23598 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23599 if test $ac_cv_type_mbstate_t = yes; then
23601 cat >>confdefs.h <<\_ACEOF
23602 #define HAVE_MBSTATE_T 1
23607 cat >>confdefs.h <<\_ACEOF
23608 #define mbstate_t int
23613 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23614 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23615 if test "${emacs_cv_c_restrict+set}" = set; then
23616 echo $ECHO_N "(cached
) $ECHO_C" >&6
23618 cat >conftest.$ac_ext <<_ACEOF
23621 cat confdefs.h >>conftest.$ac_ext
23622 cat >>conftest.$ac_ext <<_ACEOF
23623 /* end confdefs.h. */
23624 void fred (int *restrict x);
23633 rm -f conftest.$ac_objext
23634 if { (ac_try="$ac_compile"
23635 case "(($ac_try" in
23636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23637 *) ac_try_echo=$ac_try;;
23639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23640 (eval "$ac_compile") 2>conftest.er1
23642 grep -v '^ *+' conftest.er1 >conftest.err
23644 cat conftest.err >&5
23645 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23646 (exit $ac_status); } && {
23647 test -z "$ac_c_werror_flag" ||
23648 test ! -s conftest.err
23649 } && test -s conftest.$ac_objext; then
23650 emacs_cv_c_restrict=yes
23652 echo "$as_me: failed program was
:" >&5
23653 sed 's/^/| /' conftest.$ac_ext >&5
23655 cat >conftest.$ac_ext <<_ACEOF
23658 cat confdefs.h >>conftest.$ac_ext
23659 cat >>conftest.$ac_ext <<_ACEOF
23660 /* end confdefs.h. */
23661 void fred (int *__restrict x);
23670 rm -f conftest.$ac_objext
23671 if { (ac_try="$ac_compile"
23672 case "(($ac_try" in
23673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23674 *) ac_try_echo=$ac_try;;
23676 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23677 (eval "$ac_compile") 2>conftest.er1
23679 grep -v '^ *+' conftest.er1 >conftest.err
23681 cat conftest.err >&5
23682 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23683 (exit $ac_status); } && {
23684 test -z "$ac_c_werror_flag" ||
23685 test ! -s conftest.err
23686 } && test -s conftest.$ac_objext; then
23687 emacs_cv_c_restrict=__restrict
23689 echo "$as_me: failed program was
:" >&5
23690 sed 's/^/| /' conftest.$ac_ext >&5
23692 emacs_cv_c_restrict=no
23695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23700 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23701 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23702 case "$emacs_cv_c_restrict" in
23703 yes) emacs_restrict=restrict;;
23704 no) emacs_restrict="";;
23705 *) emacs_restrict="$emacs_cv_c_restrict";;
23707 if test "$emacs_restrict" != __restrict; then
23709 cat >>confdefs.h <<_ACEOF
23710 #define __restrict $emacs_restrict
23715 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23716 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23717 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23718 echo $ECHO_N "(cached
) $ECHO_C" >&6
23720 cat >conftest.$ac_ext <<_ACEOF
23723 cat confdefs.h >>conftest.$ac_ext
23724 cat >>conftest.$ac_ext <<_ACEOF
23725 /* end confdefs.h. */
23726 void fred (int x[__restrict]);
23735 rm -f conftest.$ac_objext
23736 if { (ac_try="$ac_compile"
23737 case "(($ac_try" in
23738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23739 *) ac_try_echo=$ac_try;;
23741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23742 (eval "$ac_compile") 2>conftest.er1
23744 grep -v '^ *+' conftest.er1 >conftest.err
23746 cat conftest.err >&5
23747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23748 (exit $ac_status); } && {
23749 test -z "$ac_c_werror_flag" ||
23750 test ! -s conftest.err
23751 } && test -s conftest.$ac_objext; then
23752 emacs_cv_c_restrict_arr=yes
23754 echo "$as_me: failed program was
:" >&5
23755 sed 's/^/| /' conftest.$ac_ext >&5
23757 emacs_cv_c_restrict_arr=no
23760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23762 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23763 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23764 if test "$emacs_cv_c_restrict_arr" = yes; then
23766 cat >>confdefs.h <<\_ACEOF
23767 #define __restrict_arr __restrict
23774 # Set up the CFLAGS for real compilation, so we can substitute it.
23775 CFLAGS="$REAL_CFLAGS"
23776 CPPFLAGS="$REAL_CPPFLAGS"
23778 #### Find out which version of Emacs this is.
23779 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23780 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23781 if test x"${version}" = x; then
23782 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23783 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23784 { (exit 1); exit 1; }; }
23787 ### Specify what sort of things we'll be editing into Makefile and config.h.
23788 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23824 cat >>confdefs.h <<_ACEOF
23825 #define EMACS_CONFIGURATION "${canonical}"
23829 cat >>confdefs.h <<_ACEOF
23830 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23834 cat >>confdefs.h <<_ACEOF
23835 #define config_machfile "${machfile}"
23839 cat >>confdefs.h <<_ACEOF
23840 #define config_opsysfile "${opsysfile}"
23844 cat >>confdefs.h <<_ACEOF
23845 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23849 cat >>confdefs.h <<_ACEOF
23850 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23854 cat >>confdefs.h <<_ACEOF
23855 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23859 cat >>confdefs.h <<_ACEOF
23860 #define UNEXEC_SRC ${UNEXEC_SRC}
23864 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23866 cat >>confdefs.h <<\_ACEOF
23867 #define HAVE_X_WINDOWS 1
23871 if test "${USE_X_TOOLKIT}" != "none
" ; then
23873 cat >>confdefs.h <<\_ACEOF
23874 #define USE_X_TOOLKIT 1
23878 if test "${HAVE_X11}" = "yes" ; then
23880 cat >>confdefs.h <<\_ACEOF
23885 if test "${HAVE_XFREE386}" = "yes" ; then
23887 cat >>confdefs.h <<\_ACEOF
23888 #define HAVE_XFREE386 1
23892 if test "${HAVE_MENUS}" = "yes" ; then
23894 cat >>confdefs.h <<\_ACEOF
23895 #define HAVE_MENUS 1
23899 if test "${GNU_MALLOC}" = "yes" ; then
23901 cat >>confdefs.h <<\_ACEOF
23902 #define GNU_MALLOC 1
23906 if test "${REL_ALLOC}" = "yes" ; then
23908 cat >>confdefs.h <<\_ACEOF
23909 #define REL_ALLOC 1
23919 #### Report on what we decided to do.
23920 #### Report GTK as a toolkit, even if it doesn't use Xt.
23921 #### It makes printing result more understandable as using GTK sets
23922 #### toolkit_scroll_bars to yes by default.
23923 if test "${HAVE_GTK}" = "yes"; then
23928 Configured
for \
`${canonical}'.
23930 Where should the build process find the source code? ${srcdir}
23931 What operating system and machine description files should Emacs use?
23932 \`${opsysfile}' and \`${machfile}'
23933 What compiler should emacs be built with?
${CC} ${CFLAGS}
23934 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23935 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23936 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23937 What window system should Emacs use?
${window_system}
23938 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23940 if test -n "${x_includes}"; then
23941 echo " Where
do we
find X Windows header files?
${x_includes}"
23943 echo " Where
do we
find X Windows header files? Standard
dirs"
23945 if test -n "${x_libraries}"; then
23946 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23948 echo " Where
do we
find X Windows libraries? Standard
dirs"
23951 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23952 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23953 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23954 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23955 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23956 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23957 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23958 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23959 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
23960 echo " Does Emacs use a font backend?
${USE_FONT_BACKEND}"
23962 if test "${USE_FONT_BACKEND}" = "yes"; then
23963 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
23964 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
23965 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
23966 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
23968 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23971 if test $USE_XASSERTS = yes; then
23972 echo " Compiling with asserts turned on.
"
23973 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23977 if test "$USE_X_TOOLKIT" = GTK; then
23978 case "$canonical" in
23980 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23981 will probably get a crash on startup. If this happens
, please use another
23982 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23988 if test "$HAVE_CARBON" = "yes"; then
23990 echo "Warning
: The Mac Carbon port is currently unsupported and has
23991 known problems. It is not recommended
for use by non-developers.
23992 Read the emacs-devel archives
for more information.
"
23996 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
23997 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24002 # Remove any trailing slashes in these variables.
24003 test "${prefix}" != NONE &&
24004 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24005 test "${exec_prefix}" != NONE &&
24006 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24008 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24009 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24010 ## from Makefile.c can correctly provide the arg `-traditional' to the
24013 cat >conftest.$ac_ext <<_ACEOF
24016 cat confdefs.h >>conftest.$ac_ext
24017 cat >>conftest.$ac_ext <<_ACEOF
24018 /* end confdefs.h. */
24021 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24022 $EGREP "yes..
yes" >/dev/null 2>&1; then
24023 CPP_NEED_TRADITIONAL=no
24025 CPP_NEED_TRADITIONAL=yes
24030 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
"
24032 ac_config_commands="$ac_config_commands default
"
24034 cat >confcache <<\_ACEOF
24035 # This file is a shell script that caches the results of configure
24036 # tests run on this system so they can be shared between configure
24037 # scripts and configure runs, see configure's option --config-cache.
24038 # It is not useful on other systems. If it contains results you don't
24039 # want to keep, you may remove or edit it.
24041 # config.status only pays attention to the cache file if you give it
24042 # the --recheck option to rerun configure.
24044 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24045 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24046 # following values.
24050 # The following way of writing the cache mishandles newlines in values,
24051 # but we know of no workaround that is simple, portable, and efficient.
24052 # So, we kill variables containing newlines.
24053 # Ultrix sh set writes to stderr and can't be redirected directly,
24054 # and sets the high bit in the cache file unless we assign to the vars.
24056 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24057 eval ac_val=\$$ac_var
24061 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24062 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24065 _ | IFS | as_nl) ;; #(
24066 *) $as_unset $ac_var ;;
24072 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24073 *${as_nl}ac_space=\ *)
24074 # `set' does not quote correctly, so add quotes (double-quote
24075 # substitution turns \\\\ into \\, and sed turns \\ into \).
24078 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24081 # `set' quotes correctly as required by POSIX, so do not add quotes.
24082 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24091 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24093 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24095 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24096 if test -w "$cache_file"; then
24097 test "x
$cache_file" != "x
/dev
/null
" &&
24098 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24099 echo "$as_me: updating cache
$cache_file" >&6;}
24100 cat confcache >$cache_file
24102 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24103 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24108 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24109 # Let make expand exec_prefix.
24110 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24112 DEFS=-DHAVE_CONFIG_H
24116 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24117 # 1. Remove the extension, and $U if already installed.
24118 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24119 ac_i=`echo "$ac_i" | sed "$ac_script"`
24120 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24121 # will be set to the directory where LIBOBJS objects are built.
24122 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24123 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24125 LIBOBJS=$ac_libobjs
24127 LTLIBOBJS=$ac_ltlibobjs
24131 : ${CONFIG_STATUS=./config.status}
24132 ac_clean_files_save=$ac_clean_files
24133 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24134 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24135 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24136 cat >$CONFIG_STATUS <<_ACEOF
24138 # Generated by $as_me.
24139 # Run this file to recreate the current configuration.
24140 # Compiler output produced by configure, useful for debugging
24141 # configure, is in config.log if it exists.
24144 ac_cs_recheck=false
24146 SHELL=\${CONFIG_SHELL-$SHELL}
24149 cat >>$CONFIG_STATUS <<\_ACEOF
24150 ## --------------------- ##
24151 ## M4sh Initialization. ##
24152 ## --------------------- ##
24154 # Be more Bourne compatible
24155 DUALCASE=1; export DUALCASE # for MKS sh
24156 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24159 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24160 # is contrary to our usage. Disable this feature.
24161 alias -g '${1+"$@"}'='"$@
"'
24162 setopt NO_GLOB_SUBST
24164 case `(set -o) 2>/dev/null` in
24165 *posix*) set -o posix ;;
24174 # Avoid depending upon Character Ranges.
24175 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24176 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24177 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24178 as_cr_digits='0123456789'
24179 as_cr_alnum=$as_cr_Letters$as_cr_digits
24181 # The user is always right.
24182 if test "${PATH_SEPARATOR+set}" != set; then
24183 echo "#! /bin/sh" >conf$$.sh
24184 echo "exit 0" >>conf$$.sh
24186 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24194 # Support unset when possible.
24195 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24203 # We need space, tab and new line, in precisely that order. Quoting is
24204 # there to prevent editors from complaining about space-tab.
24205 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24206 # splitting by setting IFS to empty value.)
24211 # Find who we are. Look in the path if we contain no directory separator.
24213 *[\\/]* ) as_myself
=$0 ;;
24214 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24215 for as_dir
in $PATH
24218 test -z "$as_dir" && as_dir
=.
24219 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24225 # We did not find ourselves, most probably we were run as `sh COMMAND'
24226 # in which case we are not to be found in the path.
24227 if test "x$as_myself" = x
; then
24230 if test ! -f "$as_myself"; then
24231 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24232 { (exit 1); exit 1; }
24235 # Work around bugs in pre-3.0 UWIN ksh.
24236 for as_var
in ENV MAIL MAILPATH
24237 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24245 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24246 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24247 LC_TELEPHONE LC_TIME
24249 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24250 eval $as_var=C
; export $as_var
24252 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24256 # Required to use basename.
24257 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24258 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24264 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24265 as_basename
=basename
24271 # Name of the executable.
24272 as_me
=`$as_basename -- "$0" ||
24273 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24274 X"$0" : 'X\(//\)$' \| \
24275 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24277 sed '/^.*\/\([^/][^/]*\)\/*$/{
24296 as_lineno_1
=$LINENO
24297 as_lineno_2
=$LINENO
24298 test "x$as_lineno_1" != "x$as_lineno_2" &&
24299 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24301 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24302 # uniformly replaced by the line number. The first 'sed' inserts a
24303 # line-number line after each line using $LINENO; the second 'sed'
24304 # does the real work. The second script uses 'N' to pair each
24305 # line-number line with the line containing $LINENO, and appends
24306 # trailing '-' during substitution so that $LINENO is not a special
24307 # case at line end.
24308 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24309 # scripts with optimization help from Paolo Bonzini. Blame Lee
24310 # E. McMahon (1931-1989) for sed's syntax. :-)
24322 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24325 ' >$as_me.lineno
&&
24326 chmod +x
"$as_me.lineno" ||
24327 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24328 { (exit 1); exit 1; }; }
24330 # Don't try to exec as it changes $[0], causing all sort of problems
24331 # (the dirname of $[0] is not the place where we might find the
24332 # original and so on. Autoconf is especially sensitive to this).
24333 .
"./$as_me.lineno"
24334 # Exit status is that of the last command.
24339 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24345 ECHO_C
= ECHO_N
= ECHO_T
=
24346 case `echo -n x` in
24348 case `echo 'x\c'` in
24349 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24356 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24357 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24363 rm -f conf$$ conf$$.exe conf$$.
file
24364 if test -d conf$$.dir
; then
24365 rm -f conf$$.dir
/conf$$.
file
24371 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24373 # ... but there are two gotchas:
24374 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24375 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24376 # In both cases, we have to default to `cp -p'.
24377 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24379 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24384 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24385 rmdir conf$$.dir
2>/dev
/null
24387 if mkdir
-p .
2>/dev
/null
; then
24390 test -d .
/-p && rmdir .
/-p
24394 if test -x / >/dev
/null
2>&1; then
24395 as_test_x
='test -x'
24397 if ls -dL / >/dev
/null
2>&1; then
24404 if test -d "$1"; then
24410 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24411 ???[sx]*):;;*)false;;esac;fi
24415 as_executable_p
=$as_test_x
24417 # Sed expression to map a string onto a valid CPP name.
24418 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24420 # Sed expression to map a string onto a valid variable name.
24421 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24426 # Save the log message, to keep $[0] and so on meaningful, and to
24427 # report actual input values of CONFIG_FILES etc. instead of their
24428 # values after options handling.
24430 This file was extended by emacs $as_me 23.0.50, which was
24431 generated by GNU Autoconf 2.61. Invocation command line was
24433 CONFIG_FILES = $CONFIG_FILES
24434 CONFIG_HEADERS = $CONFIG_HEADERS
24435 CONFIG_LINKS = $CONFIG_LINKS
24436 CONFIG_COMMANDS = $CONFIG_COMMANDS
24439 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24444 cat >>$CONFIG_STATUS <<_ACEOF
24445 # Files that config.status was made for.
24446 config_files="$ac_config_files"
24447 config_headers="$ac_config_headers"
24448 config_commands="$ac_config_commands"
24452 cat >>$CONFIG_STATUS <<\_ACEOF
24454 \`$as_me' instantiates files from templates according to the
24455 current configuration.
24457 Usage: $0 [OPTIONS] [FILE]...
24459 -h, --help print this help, then exit
24460 -V, --version print version number and configuration settings, then exit
24461 -q, --quiet do not print progress messages
24462 -d, --debug don't remove temporary files
24463 --recheck update $as_me by reconfiguring in the same conditions
24464 --file=FILE[:TEMPLATE]
24465 instantiate the configuration file FILE
24466 --header=FILE[:TEMPLATE]
24467 instantiate the configuration header FILE
24469 Configuration files:
24472 Configuration headers:
24475 Configuration commands:
24478 Report bugs to <bug-autoconf@gnu.org>."
24481 cat >>$CONFIG_STATUS <<_ACEOF
24483 emacs config.status 23.0.50
24484 configured by $0, generated by GNU Autoconf 2.61,
24485 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24487 Copyright (C) 2006 Free Software Foundation, Inc.
24488 This config.status script is free software; the Free Software Foundation
24489 gives unlimited permission to copy, distribute and modify it."
24496 cat >>$CONFIG_STATUS <<\_ACEOF
24497 # If no file are specified by the user, then we need to provide default
24498 # value. By we need to know if files were specified by the user.
24504 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24505 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24516 # Handling of the options.
24517 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24519 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24520 echo "$ac_cs_version"; exit ;;
24521 --debug |
--debu |
--deb |
--de |
--d |
-d )
24523 --file |
--fil |
--fi |
--f )
24525 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24526 ac_need_defaults
=false
;;
24527 --header |
--heade |
--head |
--hea )
24529 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24530 ac_need_defaults
=false
;;
24532 # Conflict between --help and --header
24533 { echo "$as_me: error: ambiguous option: $1
24534 Try \`$0 --help' for more information." >&2
24535 { (exit 1); exit 1; }; };;
24536 --help |
--hel |
-h )
24537 echo "$ac_cs_usage"; exit ;;
24538 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24539 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24542 # This is an error.
24543 -*) { echo "$as_me: error: unrecognized option: $1
24544 Try \`$0 --help' for more information." >&2
24545 { (exit 1); exit 1; }; } ;;
24547 *) ac_config_targets
="$ac_config_targets $1"
24548 ac_need_defaults
=false
;;
24554 ac_configure_extra_args
=
24556 if $ac_cs_silent; then
24558 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24562 cat >>$CONFIG_STATUS <<_ACEOF
24563 if \$ac_cs_recheck; then
24564 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24565 CONFIG_SHELL=$SHELL
24566 export CONFIG_SHELL
24567 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24571 cat >>$CONFIG_STATUS <<\_ACEOF
24575 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24576 ## Running $as_me. ##
24582 cat >>$CONFIG_STATUS <<_ACEOF
24586 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24590 cat >>$CONFIG_STATUS <<\_ACEOF
24592 # Handling of arguments.
24593 for ac_config_target
in $ac_config_targets
24595 case $ac_config_target in
24596 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24597 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24598 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24599 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24600 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24601 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24602 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24603 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24604 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24605 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24606 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24607 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24608 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24610 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24611 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24612 { (exit 1); exit 1; }; };;
24617 # If the user did not use the arguments to specify the items to instantiate,
24618 # then the envvar interface is used. Set only those that are not.
24619 # We use the long form for the default assignment because of an extremely
24620 # bizarre bug on SunOS 4.1.3.
24621 if $ac_need_defaults; then
24622 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24623 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24624 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24627 # Have a temporary directory for convenience. Make it in the build tree
24628 # simply because there is no reason against having it here, and in addition,
24629 # creating and moving files from /tmp can sometimes cause problems.
24630 # Hook for its removal unless debugging.
24631 # Note that there is a small window in which the directory will not be cleaned:
24632 # after its creation but before its name has been assigned to `$tmp'.
24636 trap 'exit_status=$?
24637 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24639 trap '{ (exit 1); exit 1; }' 1 2 13 15
24641 # Create a (secure) tmp directory for tmp files.
24644 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24645 test -n "$tmp" && test -d "$tmp"
24648 tmp
=.
/conf$$
-$RANDOM
24649 (umask 077 && mkdir
"$tmp")
24652 echo "$me: cannot create a temporary directory in ." >&2
24653 { (exit 1); exit 1; }
24657 # Set up the sed scripts for CONFIG_FILES section.
24660 # No need to generate the scripts if there are no CONFIG_FILES.
24661 # This happens for instance when ./config.status config.h
24662 if test -n "$CONFIG_FILES"; then
24669 for ac_last_try
in false false false false false
:; do
24670 cat >conf$
$subs.
sed <<_ACEOF
24671 SHELL!$SHELL$ac_delim
24672 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24673 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24674 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24675 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24676 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24677 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24678 exec_prefix!$exec_prefix$ac_delim
24679 prefix!$prefix$ac_delim
24680 program_transform_name!$program_transform_name$ac_delim
24681 bindir!$bindir$ac_delim
24682 sbindir!$sbindir$ac_delim
24683 libexecdir!$libexecdir$ac_delim
24684 datarootdir!$datarootdir$ac_delim
24685 datadir!$datadir$ac_delim
24686 sysconfdir!$sysconfdir$ac_delim
24687 sharedstatedir!$sharedstatedir$ac_delim
24688 localstatedir!$localstatedir$ac_delim
24689 includedir!$includedir$ac_delim
24690 oldincludedir!$oldincludedir$ac_delim
24691 docdir!$docdir$ac_delim
24692 infodir!$infodir$ac_delim
24693 htmldir!$htmldir$ac_delim
24694 dvidir!$dvidir$ac_delim
24695 pdfdir!$pdfdir$ac_delim
24696 psdir!$psdir$ac_delim
24697 libdir!$libdir$ac_delim
24698 localedir!$localedir$ac_delim
24699 mandir!$mandir$ac_delim
24700 DEFS!$DEFS$ac_delim
24701 ECHO_C!$ECHO_C$ac_delim
24702 ECHO_N!$ECHO_N$ac_delim
24703 ECHO_T!$ECHO_T$ac_delim
24704 LIBS!$LIBS$ac_delim
24705 build_alias!$build_alias$ac_delim
24706 host_alias!$host_alias$ac_delim
24707 target_alias!$target_alias$ac_delim
24708 MAINT!$MAINT$ac_delim
24709 build!$build$ac_delim
24710 build_cpu!$build_cpu$ac_delim
24711 build_vendor!$build_vendor$ac_delim
24712 build_os!$build_os$ac_delim
24713 host!$host$ac_delim
24714 host_cpu!$host_cpu$ac_delim
24715 host_vendor!$host_vendor$ac_delim
24716 host_os!$host_os$ac_delim
24718 CFLAGS!$CFLAGS$ac_delim
24719 LDFLAGS!$LDFLAGS$ac_delim
24720 CPPFLAGS!$CPPFLAGS$ac_delim
24721 ac_ct_CC!$ac_ct_CC$ac_delim
24722 EXEEXT!$EXEEXT$ac_delim
24723 OBJEXT!$OBJEXT$ac_delim
24725 GREP!$GREP$ac_delim
24726 EGREP!$EGREP$ac_delim
24727 LN_S!$LN_S$ac_delim
24728 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24729 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24730 INSTALL_DATA!$INSTALL_DATA$ac_delim
24731 RANLIB!$RANLIB$ac_delim
24732 INSTALL_INFO!$INSTALL_INFO$ac_delim
24733 GZIP_PROG!$GZIP_PROG$ac_delim
24734 MAKEINFO!$MAKEINFO$ac_delim
24735 LIBSOUND!$LIBSOUND$ac_delim
24736 PKG_CONFIG!$PKG_CONFIG$ac_delim
24737 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24738 ALSA_LIBS!$ALSA_LIBS$ac_delim
24739 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24740 SET_MAKE!$SET_MAKE$ac_delim
24741 XMKMF!$XMKMF$ac_delim
24742 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24743 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24744 RSVG_LIBS!$RSVG_LIBS$ac_delim
24745 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24746 GTK_LIBS!$GTK_LIBS$ac_delim
24747 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24748 DBUS_LIBS!$DBUS_LIBS$ac_delim
24749 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24750 XFT_LIBS!$XFT_LIBS$ac_delim
24751 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24752 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24753 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24754 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24755 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24756 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24757 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24758 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24759 ALLOCA!$ALLOCA$ac_delim
24760 liblockfile!$liblockfile$ac_delim
24761 LIBOBJS!$LIBOBJS$ac_delim
24762 NEED_SETGID!$NEED_SETGID$ac_delim
24763 KMEM_GROUP!$KMEM_GROUP$ac_delim
24764 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24765 GETOPT_H!$GETOPT_H$ac_delim
24766 GETOPTOBJS!$GETOPTOBJS$ac_delim
24767 version!$version$ac_delim
24770 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24772 elif $ac_last_try; then
24773 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24774 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24775 { (exit 1); exit 1; }; }
24777 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24781 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24782 if test -n "$ac_eof"; then
24783 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24784 ac_eof
=`expr $ac_eof + 1`
24787 cat >>$CONFIG_STATUS <<_ACEOF
24788 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24789 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24792 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24793 s/^/s,@/; s/!/@,|#_!!_#|/
24796 s/'"$ac_delim"'$/,g/; t
24798 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24799 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24800 rm -f conf$
$subs.
sed
24801 cat >>$CONFIG_STATUS <<_ACEOF
24807 for ac_last_try
in false false false false false
:; do
24808 cat >conf$
$subs.
sed <<_ACEOF
24809 configuration!$configuration$ac_delim
24810 canonical!$canonical$ac_delim
24811 srcdir!$srcdir$ac_delim
24812 lispdir!$lispdir$ac_delim
24813 locallisppath!$locallisppath$ac_delim
24814 lisppath!$lisppath$ac_delim
24815 x_default_search_path!$x_default_search_path$ac_delim
24816 etcdir!$etcdir$ac_delim
24817 archlibdir!$archlibdir$ac_delim
24818 bitmapdir!$bitmapdir$ac_delim
24819 gamedir!$gamedir$ac_delim
24820 gameuser!$gameuser$ac_delim
24821 c_switch_system!$c_switch_system$ac_delim
24822 c_switch_machine!$c_switch_machine$ac_delim
24823 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24824 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24825 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24826 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24827 machfile!$machfile$ac_delim
24828 opsysfile!$opsysfile$ac_delim
24829 carbon_appdir!$carbon_appdir$ac_delim
24830 LTLIBOBJS!$LTLIBOBJS$ac_delim
24833 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24835 elif $ac_last_try; then
24836 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24837 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24838 { (exit 1); exit 1; }; }
24840 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24844 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24845 if test -n "$ac_eof"; then
24846 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24847 ac_eof
=`expr $ac_eof + 1`
24850 cat >>$CONFIG_STATUS <<_ACEOF
24851 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24852 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24855 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24856 s/^/s,@/; s/!/@,|#_!!_#|/
24859 s/'"$ac_delim"'$/,g/; t
24861 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24862 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24863 rm -f conf$
$subs.
sed
24864 cat >>$CONFIG_STATUS <<_ACEOF
24871 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24872 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24873 # trailing colons and then remove the whole line if VPATH becomes empty
24874 # (actually we leave an empty line to preserve line numbers).
24875 if test "x$srcdir" = x.
; then
24876 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24877 s/:*\$(srcdir):*/:/
24878 s/:*\${srcdir}:*/:/
24880 s/^\([^=]*=[ ]*\):*/\1/
24886 cat >>$CONFIG_STATUS <<\_ACEOF
24887 fi # test -n "$CONFIG_FILES"
24890 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24893 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24895 case $ac_mode$ac_tag in
24897 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24898 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24899 { (exit 1); exit 1; }; };;
24900 :[FH
]-) ac_tag
=-:-;;
24901 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24918 -) ac_f
="$tmp/stdin";;
24919 *) # Look for the file first in the build tree, then in the source tree
24920 # (if the path is not absolute). The absolute path cannot be DOS-style,
24921 # because $ac_f cannot contain `:'.
24925 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24927 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24928 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24929 { (exit 1); exit 1; }; };;
24931 ac_file_inputs
="$ac_file_inputs $ac_f"
24934 # Let's still pretend it is `configure' which instantiates (i.e., don't
24935 # use $as_me), people would be surprised to read:
24936 # /* config.h. Generated by config.status. */
24937 configure_input
="Generated from "`IFS=:
24938 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24939 if test x
"$ac_file" != x-
; then
24940 configure_input
="$ac_file. $configure_input"
24941 { echo "$as_me:$LINENO: creating $ac_file" >&5
24942 echo "$as_me: creating $ac_file" >&6;}
24946 *:-:* |
*:-) cat >"$tmp/stdin";;
24951 ac_dir
=`$as_dirname -- "$ac_file" ||
24952 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24953 X"$ac_file" : 'X\(//\)[^/]' \| \
24954 X"$ac_file" : 'X\(//\)$' \| \
24955 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24957 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24961 /^X\(\/\/\)[^/].*/{
24976 -*) as_dir
=.
/$as_dir;;
24978 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24982 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24983 *) as_qdir
=$as_dir;;
24985 as_dirs
="'$as_qdir' $as_dirs"
24986 as_dir
=`$as_dirname -- "$as_dir" ||
24987 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24988 X"$as_dir" : 'X\(//\)[^/]' \| \
24989 X"$as_dir" : 'X\(//\)$' \| \
24990 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24996 /^X\(\/\/\)[^/].*/{
25009 test -d "$as_dir" && break
25011 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25012 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25013 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25014 { (exit 1); exit 1; }; }; }
25018 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25020 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25021 # A ".." for each directory in $ac_dir_suffix.
25022 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25023 case $ac_top_builddir_sub in
25024 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25025 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25028 ac_abs_top_builddir
=$ac_pwd
25029 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25030 # for backward compatibility:
25031 ac_top_builddir
=$ac_top_build_prefix
25034 .
) # We are building in place.
25036 ac_top_srcdir
=$ac_top_builddir_sub
25037 ac_abs_top_srcdir
=$ac_pwd ;;
25038 [\\/]* | ?
:[\\/]* ) # Absolute name.
25039 ac_srcdir
=$srcdir$ac_dir_suffix;
25040 ac_top_srcdir
=$srcdir
25041 ac_abs_top_srcdir
=$srcdir ;;
25042 *) # Relative name.
25043 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25044 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25045 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25047 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25057 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25058 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25062 cat >>$CONFIG_STATUS <<\_ACEOF
25063 # If the template does not know about datarootdir, expand it.
25064 # FIXME: This hack should be removed a few years after 2.60.
25065 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25067 case `sed -n '/datarootdir/ {
25076 ' $ac_file_inputs` in
25077 *datarootdir
*) ac_datarootdir_seen
=yes;;
25078 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25079 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25080 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25082 cat >>$CONFIG_STATUS <<_ACEOF
25083 ac_datarootdir_hack='
25084 s&@datadir@&$datadir&g
25085 s&@docdir@&$docdir&g
25086 s&@infodir@&$infodir&g
25087 s&@localedir@&$localedir&g
25088 s&@mandir@&$mandir&g
25089 s&\\\${datarootdir}&$datarootdir&g' ;;
25093 # Neutralize VPATH when `$srcdir' = `.'.
25094 # Shell code in configure.ac might set extrasub.
25095 # FIXME: do we really want to maintain this feature?
25096 cat >>$CONFIG_STATUS <<_ACEOF
25100 cat >>$CONFIG_STATUS <<\_ACEOF
25102 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25103 s
&@configure_input@
&$configure_input&;t t
25104 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25105 s
&@srcdir@
&$ac_srcdir&;t t
25106 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25107 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25108 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25109 s
&@builddir@
&$ac_builddir&;t t
25110 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25111 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25112 s
&@INSTALL@
&$ac_INSTALL&;t t
25113 $ac_datarootdir_hack
25114 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25116 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25117 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25118 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25119 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25120 which seems to be undefined. Please make sure it is defined." >&5
25121 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25122 which seems to be undefined. Please make sure it is defined." >&2;}
25126 -) cat "$tmp/out"; rm -f "$tmp/out";;
25127 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25136 # Transform confdefs.h into a sed script `conftest.defines', that
25137 # substitutes the proper values into config.h.in to produce config.h.
25138 rm -f conftest.defines conftest.
tail
25139 # First, append a space to every undef/define line, to ease matching.
25140 echo 's/$/ /' >conftest.defines
25141 # Then, protect against being on the right side of a sed subst, or in
25142 # an unquoted here document, in config.status. If some macros were
25143 # called several times there might be several #defines for the same
25144 # symbol, which is useless. But do not sort them, since the last
25145 # AC_DEFINE must be honored.
25146 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25147 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25148 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25149 # PARAMS is the parameter list in the macro definition--in most cases, it's
25150 # just an empty string.
25151 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25152 ac_dB
='\\)[ (].*,\\1define\\2'
25160 s/^[ ]*#[ ]*define[ ][ ]*//
25165 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25166 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25167 ' >>conftest.defines
25169 # Remove the space that was appended to ease matching.
25170 # Then replace #undef with comments. This is necessary, for
25171 # example, in the case of _POSIX_SOURCE, which is predefined and required
25172 # on some systems where configure will not decide to define it.
25173 # (The regexp can be short, since the line contains either #define or #undef.)
25175 s,^[ #]*u.*,/* & */,' >>conftest.defines
25177 # Break up conftest.defines:
25178 ac_max_sed_lines
=50
25180 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25181 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25182 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25184 ac_in
='$ac_file_inputs'
25185 ac_out
='"$tmp/out1"'
25186 ac_nxt
='"$tmp/out2"'
25190 # Write a here document:
25191 cat >>$CONFIG_STATUS <<_ACEOF
25192 # First, check the format of the line:
25193 cat >"\$tmp/defines.sed" <<\\CEOF
25194 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25195 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25199 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25201 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25202 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25203 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25204 grep . conftest.
tail >/dev
/null ||
break
25205 rm -f conftest.defines
25206 mv conftest.
tail conftest.defines
25208 rm -f conftest.defines conftest.
tail
25210 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25211 cat >>$CONFIG_STATUS <<\_ACEOF
25212 if test x
"$ac_file" != x-
; then
25213 echo "/* $configure_input */" >"$tmp/config.h"
25214 cat "$ac_result" >>"$tmp/config.h"
25215 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25216 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25217 echo "$as_me: $ac_file is unchanged" >&6;}
25220 mv "$tmp/config.h" $ac_file
25223 echo "/* $configure_input */"
25229 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25230 echo "$as_me: executing $ac_file commands" >&6;}
25235 case $ac_file$ac_mode in
25238 ### Make the necessary directories, if they don't exist.
25239 for dir
in etc lisp
; do
25240 test -d ${dir} || mkdir
${dir}
25243 # Build src/Makefile from ${srcdir}/src/Makefile.c
25244 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25245 # This must be done after src/config.h is built, since we rely on that file.
25247 # Now get this: Some word that is part of the ${srcdir} directory name
25248 # or the ${configuration} value might, just might, happen to be an
25249 # identifier like `sun4' or `i386' or something, and be predefined by
25250 # the C preprocessor to some helpful value like 1, or maybe the empty
25251 # string. Needless to say consequent macro substitutions are less
25252 # than conducive to the makefile finding the correct directory.
25253 undefs
="`echo $top_srcdir $configuration $canonical |
25254 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25255 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25258 echo creating src
/epaths.h
25259 ${MAKE-make} epaths-force
25261 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25262 # `..' to `. .' unless invoked with -traditional
25264 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25265 CPPFLAGS
="$CPPFLAGS -traditional"
25268 echo creating lib-src
/Makefile
25270 rm -f junk.c junk1.c junk2.c
25271 sed -e '/start of cpp stuff/q' \
25272 < Makefile.c
> junk1.c
25273 sed -e '1,/start of cpp stuff/d'\
25274 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25275 < Makefile.c
> junk.c
25276 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25277 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25278 cat junk1.c junk2.c
> Makefile.new
25279 rm -f junk.c junk1.c junk2.c
25280 chmod 444 Makefile.new
25281 mv -f Makefile.new Makefile
25284 echo creating src
/Makefile
25286 rm -f junk.c junk1.c junk2.c
25287 sed -e '/start of cpp stuff/q' \
25288 < Makefile.c
> junk1.c
25289 sed -e '1,/start of cpp stuff/d'\
25290 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25291 < Makefile.c
> junk.c
25292 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
25293 echo creating
${srcdir}/admin
/unidata
/Makefile
25294 cp ${srcdir}/admin
/unidata
/Makefile.
in ${srcdir}/admin
/unidata
/Makefile
25295 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
25297 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25298 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25299 cat junk1.c junk2.c
> Makefile.new
25300 rm -f junk.c junk1.c junk2.c
25301 chmod 444 Makefile.new
25302 mv -f Makefile.new Makefile
25305 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25306 echo creating src
/.gdbinit
25307 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25310 # This is how we know whether to re-run configure in certain cases.
25311 touch src
/config.stamp
25319 { (exit 0); exit 0; }
25321 chmod +x
$CONFIG_STATUS
25322 ac_clean_files
=$ac_clean_files_save
25325 # configure is writing to config.log, and then calls config.status.
25326 # config.status does its own redirection, appending to config.log.
25327 # Unfortunately, on DOS this fails, as config.log is still kept open
25328 # by configure, so config.status won't be able to write to it; its
25329 # output is simply discarded. So we exec the FD to /dev/null,
25330 # effectively closing config.log, so it can be properly (re)opened and
25331 # appended to by config.status. When coming back to configure, we
25332 # need to make the FD available again.
25333 if test "$no_create" != yes; then
25335 ac_config_status_args
=
25336 test "$silent" = yes &&
25337 ac_config_status_args
="$ac_config_status_args --quiet"
25339 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25341 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25342 # would make configure fail if this is the last instruction.
25343 $ac_cs_success ||
{ (exit 1); exit 1; }