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 --with-freetype use -lfreetype for local fonts support
1363 --with-xft use -lXft 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"
12781 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12782 if test "${HAVE_XFT}" = "yes"; then
12784 elif test "x${with_freetype}" != "xno"; then
12785 if test "X${with_pkg_config_prog}" != X; then
12786 PKG_CONFIG="${with_pkg_config_prog}"
12792 # Extract the first word of "pkg-config", so it can be a program name with args.
12793 set dummy pkg-config; ac_word=$2
12794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12796 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12799 case $PKG_CONFIG in
12801 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12808 test -z "$as_dir" && as_dir=.
12809 for ac_exec_ext in '' $ac_executable_extensions; do
12810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12811 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12819 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12823 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12824 if test -n "$PKG_CONFIG"; then
12825 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12826 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12828 { echo "$as_me:$LINENO: result: no" >&5
12829 echo "${ECHO_T}no" >&6; }
12834 if test "$PKG_CONFIG" = "no" ; then
12837 PKG_CONFIG_MIN_VERSION=0.9.0
12838 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12839 { echo "$as_me:$LINENO: checking for freetype2" >&5
12840 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12842 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12843 { echo "$as_me:$LINENO: result: yes" >&5
12844 echo "${ECHO_T}yes" >&6; }
12847 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12848 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12849 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12850 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12851 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12853 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12854 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12855 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12856 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12857 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12859 { echo "$as_me:$LINENO: result: no" >&5
12860 echo "${ECHO_T}no" >&6; }
12863 ## If we have a custom action on failure, don't print errors
, but
12864 ## do set a variable so people can do so.
12865 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12872 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12873 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12877 if test $succeeded = yes; then
12883 if test "${HAVE_FREETYPE}" = "yes"; then
12887 # Extract the first word of "pkg-config", so it can be a program name with args.
12888 set dummy pkg-config
; ac_word
=$2
12889 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12890 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12891 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12892 echo $ECHO_N "(cached) $ECHO_C" >&6
12894 case $PKG_CONFIG in
12896 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12899 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12900 for as_dir
in $PATH
12903 test -z "$as_dir" && as_dir
=.
12904 for ac_exec_ext
in '' $ac_executable_extensions; do
12905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12906 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12907 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12914 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12918 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12919 if test -n "$PKG_CONFIG"; then
12920 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12921 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12923 { echo "$as_me:$LINENO: result: no" >&5
12924 echo "${ECHO_T}no" >&6; }
12929 if test "$PKG_CONFIG" = "no" ; then
12932 PKG_CONFIG_MIN_VERSION
=0.9.0
12933 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12934 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12935 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12937 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12938 { echo "$as_me:$LINENO: result: yes" >&5
12939 echo "${ECHO_T}yes" >&6; }
12942 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12943 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12944 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12945 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12946 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12948 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12949 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12950 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12951 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12952 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12954 { echo "$as_me:$LINENO: result: no" >&5
12955 echo "${ECHO_T}no" >&6; }
12956 FONTCONFIG_CFLAGS
=""
12958 ## If we have a custom action on failure, don't print errors, but
12959 ## do set a variable so people can do so.
12960 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12967 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12968 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12972 if test $succeeded = yes; then
12978 if test "${HAVE_FC}" = "no"; then
12985 if test "${HAVE_FREETYPE}" = "yes"; then
12987 cat >>confdefs.h
<<\_ACEOF
12988 #define HAVE_FREETYPE 1
12991 if test "${with_libotf}" != "no"; then
12992 if test "X${with_pkg_config_prog}" != X
; then
12993 PKG_CONFIG
="${with_pkg_config_prog}"
12998 # Extract the first word of "pkg-config", so it can be a program name with args.
12999 set dummy pkg-config
; ac_word
=$2
13000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13002 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13003 echo $ECHO_N "(cached) $ECHO_C" >&6
13005 case $PKG_CONFIG in
13007 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13011 for as_dir
in $PATH
13014 test -z "$as_dir" && as_dir
=.
13015 for ac_exec_ext
in '' $ac_executable_extensions; do
13016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13017 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13025 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13029 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13030 if test -n "$PKG_CONFIG"; then
13031 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13032 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13034 { echo "$as_me:$LINENO: result: no" >&5
13035 echo "${ECHO_T}no" >&6; }
13040 if test "$PKG_CONFIG" = "no" ; then
13041 pkg_check_libotf
=no
13043 PKG_CONFIG_MIN_VERSION
=0.9.0
13044 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13045 { echo "$as_me:$LINENO: checking for libotf" >&5
13046 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13048 if $PKG_CONFIG --exists "libotf" 2>&5; then
13049 { echo "$as_me:$LINENO: result: yes" >&5
13050 echo "${ECHO_T}yes" >&6; }
13053 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13054 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13055 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13056 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13057 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13059 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13060 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13061 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13062 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13063 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13065 { echo "$as_me:$LINENO: result: no" >&5
13066 echo "${ECHO_T}no" >&6; }
13069 ## If we have a custom action on failure, don't print errors, but
13070 ## do set a variable so people can do so.
13071 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13078 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13079 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13083 if test $succeeded = yes; then
13084 pkg_check_libotf
=yes
13086 pkg_check_libotf
=no
13089 if test "$pkg_check_libotf" = "yes"; then
13091 cat >>confdefs.h
<<\_ACEOF
13092 #define HAVE_LIBOTF 1
13100 if test "${with_m17n_flt}" != "no"; then
13101 if test "X${with_pkg_config_prog}" != X
; then
13102 PKG_CONFIG
="${with_pkg_config_prog}"
13107 # Extract the first word of "pkg-config", so it can be a program name with args.
13108 set dummy pkg-config
; ac_word
=$2
13109 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13110 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13111 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13112 echo $ECHO_N "(cached) $ECHO_C" >&6
13114 case $PKG_CONFIG in
13116 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13119 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13120 for as_dir
in $PATH
13123 test -z "$as_dir" && as_dir
=.
13124 for ac_exec_ext
in '' $ac_executable_extensions; do
13125 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13126 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13127 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13134 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13138 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13139 if test -n "$PKG_CONFIG"; then
13140 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13141 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13143 { echo "$as_me:$LINENO: result: no" >&5
13144 echo "${ECHO_T}no" >&6; }
13149 if test "$PKG_CONFIG" = "no" ; then
13150 pkg_check_m17n_flt
=no
13152 PKG_CONFIG_MIN_VERSION
=0.9.0
13153 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13154 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13155 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13157 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13158 { echo "$as_me:$LINENO: result: yes" >&5
13159 echo "${ECHO_T}yes" >&6; }
13162 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13163 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13164 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13165 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13166 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13168 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13169 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13170 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13171 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13172 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13174 { echo "$as_me:$LINENO: result: no" >&5
13175 echo "${ECHO_T}no" >&6; }
13178 ## If we have a custom action on failure, don't print errors, but
13179 ## do set a variable so people can do so.
13180 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13187 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13188 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13192 if test $succeeded = yes; then
13193 pkg_check_m17n_flt
=yes
13195 pkg_check_m17n_flt
=no
13198 if test "$pkg_check_m17n_flt" = "yes"; then
13200 cat >>confdefs.h
<<\_ACEOF
13201 #define HAVE_M17N_FLT 1
13217 #### End for font-backend
13219 ### Use -lXpm if available, unless `--with-xpm=no'.
13221 if test "${HAVE_X11}" = "yes"; then
13222 if test "${with_xpm}" != "no"; then
13223 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13224 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13225 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13226 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13227 echo $ECHO_N "(cached) $ECHO_C" >&6
13229 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13230 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13232 # Is the header compilable?
13233 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13234 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13235 cat >conftest.
$ac_ext <<_ACEOF
13238 cat confdefs.h
>>conftest.
$ac_ext
13239 cat >>conftest.
$ac_ext <<_ACEOF
13240 /* end confdefs.h. */
13241 $ac_includes_default
13242 #include <X11/xpm.h>
13244 rm -f conftest.
$ac_objext
13245 if { (ac_try
="$ac_compile"
13246 case "(($ac_try" in
13247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13248 *) ac_try_echo=$ac_try;;
13250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13251 (eval "$ac_compile") 2>conftest.er1
13253 grep -v '^ *+' conftest.er1 >conftest.err
13255 cat conftest.err >&5
13256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13257 (exit $ac_status); } && {
13258 test -z "$ac_c_werror_flag" ||
13259 test ! -s conftest.err
13260 } && test -s conftest.$ac_objext; then
13261 ac_header_compiler=yes
13263 echo "$as_me: failed program was:" >&5
13264 sed 's/^/| /' conftest.$ac_ext >&5
13266 ac_header_compiler=no
13269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13271 echo "${ECHO_T}$ac_header_compiler" >&6; }
13273 # Is the header present?
13274 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13275 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13276 cat >conftest.$ac_ext <<_ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 #include <X11/xpm.h>
13284 if { (ac_try="$ac_cpp conftest.$ac_ext"
13285 case "(($ac_try" in
13286 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13287 *) ac_try_echo
=$ac_try;;
13289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13290 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13292 grep -v '^ *+' conftest.er1
>conftest.err
13294 cat conftest.err
>&5
13295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13296 (exit $ac_status); } >/dev
/null
&& {
13297 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13298 test ! -s conftest.err
13300 ac_header_preproc
=yes
13302 echo "$as_me: failed program was:" >&5
13303 sed 's/^/| /' conftest.
$ac_ext >&5
13305 ac_header_preproc
=no
13308 rm -f conftest.err conftest.
$ac_ext
13309 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13310 echo "${ECHO_T}$ac_header_preproc" >&6; }
13312 # So? What about this header?
13313 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13315 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13316 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13317 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13318 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13319 ac_header_preproc
=yes
13322 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13323 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13324 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13325 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13326 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13327 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13328 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13329 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13330 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13331 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13332 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13333 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13337 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13338 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13339 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13340 echo $ECHO_N "(cached) $ECHO_C" >&6
13342 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13344 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13345 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13348 if test $ac_cv_header_X11_xpm_h = yes; then
13349 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13350 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13351 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13352 echo $ECHO_N "(cached) $ECHO_C" >&6
13354 ac_check_lib_save_LIBS
=$LIBS
13355 LIBS
="-lXpm -lX11 $LIBS"
13356 cat >conftest.
$ac_ext <<_ACEOF
13359 cat confdefs.h
>>conftest.
$ac_ext
13360 cat >>conftest.
$ac_ext <<_ACEOF
13361 /* end confdefs.h. */
13363 /* Override any GCC internal prototype to avoid an error.
13364 Use char because int might match the return type of a GCC
13365 builtin and then its argument prototype would still apply. */
13369 char XpmReadFileToPixmap ();
13373 return XpmReadFileToPixmap ();
13378 rm -f conftest.
$ac_objext conftest
$ac_exeext
13379 if { (ac_try
="$ac_link"
13380 case "(($ac_try" in
13381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13382 *) ac_try_echo=$ac_try;;
13384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13385 (eval "$ac_link") 2>conftest.er1
13387 grep -v '^ *+' conftest.er1 >conftest.err
13389 cat conftest.err >&5
13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13391 (exit $ac_status); } && {
13392 test -z "$ac_c_werror_flag" ||
13393 test ! -s conftest.err
13394 } && test -s conftest$ac_exeext &&
13395 $as_test_x conftest$ac_exeext; then
13396 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13398 echo "$as_me: failed program was:" >&5
13399 sed 's/^/| /' conftest.$ac_ext >&5
13401 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13405 conftest$ac_exeext conftest.$ac_ext
13406 LIBS=$ac_check_lib_save_LIBS
13408 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13409 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13410 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13417 if test "${HAVE_XPM}" = "yes"; then
13418 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13419 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13420 cat >conftest.$ac_ext <<_ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 #include "X11/xpm.h"
13427 #ifndef XpmReturnAllocPixels
13428 no_return_alloc_pixels
13432 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13433 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13441 if test "${HAVE_XPM}" = "yes"; then
13442 { echo "$as_me:$LINENO: result: yes" >&5
13443 echo "${ECHO_T}yes" >&6; }
13445 { echo "$as_me:$LINENO: result: no" >&5
13446 echo "${ECHO_T}no" >&6; }
13451 if test "${HAVE_XPM}" = "yes"; then
13453 cat >>confdefs.h <<\_ACEOF
13460 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13462 if test "${HAVE_X11}" = "yes"; then
13463 if test "${with_jpeg}" != "no"; then
13464 if test "${ac_cv_header_jerror_h+set}" = set; then
13465 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13466 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13467 if test "${ac_cv_header_jerror_h+set}" = set; then
13468 echo $ECHO_N "(cached) $ECHO_C" >&6
13470 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13471 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13473 # Is the header compilable?
13474 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13475 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13476 cat >conftest.$ac_ext <<_ACEOF
13479 cat confdefs.h >>conftest.$ac_ext
13480 cat >>conftest.$ac_ext <<_ACEOF
13481 /* end confdefs.h. */
13482 $ac_includes_default
13483 #include <jerror.h>
13485 rm -f conftest.$ac_objext
13486 if { (ac_try="$ac_compile"
13487 case "(($ac_try" in
13488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489 *) ac_try_echo=$ac_try;;
13491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492 (eval "$ac_compile") 2>conftest.er1
13494 grep -v '^
*+' conftest.er1 >conftest.err
13496 cat conftest.err >&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 (exit $ac_status); } && {
13499 test -z "$ac_c_werror_flag" ||
13500 test ! -s conftest.err
13501 } && test -s conftest.$ac_objext; then
13502 ac_header_compiler=yes
13504 echo "$as_me: failed program was:" >&5
13505 sed 's
/^
/|
/' conftest.$ac_ext >&5
13507 ac_header_compiler=no
13510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13512 echo "${ECHO_T}$ac_header_compiler" >&6; }
13514 # Is the header present?
13515 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13516 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13517 cat >conftest.$ac_ext <<_ACEOF
13520 cat confdefs.h >>conftest.$ac_ext
13521 cat >>conftest.$ac_ext <<_ACEOF
13522 /* end confdefs.h. */
13523 #include <jerror.h>
13525 if { (ac_try="$ac_cpp conftest.$ac_ext"
13526 case "(($ac_try" in
13527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13528 *) ac_try_echo=$ac_try;;
13530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13533 grep -v '^
*+' conftest.er1 >conftest.err
13535 cat conftest.err >&5
13536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13537 (exit $ac_status); } >/dev/null && {
13538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13539 test ! -s conftest.err
13541 ac_header_preproc=yes
13543 echo "$as_me: failed program was:" >&5
13544 sed 's
/^
/|
/' conftest.$ac_ext >&5
13546 ac_header_preproc=no
13549 rm -f conftest.err conftest.$ac_ext
13550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13551 echo "${ECHO_T}$ac_header_preproc" >&6; }
13553 # So? What about this header?
13554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13556 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13557 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13558 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13559 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13560 ac_header_preproc=yes
13563 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13564 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13566 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13567 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13568 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13569 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13570 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13571 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13572 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13573 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13574 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13578 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13579 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13580 if test "${ac_cv_header_jerror_h+set}" = set; then
13581 echo $ECHO_N "(cached) $ECHO_C" >&6
13583 ac_cv_header_jerror_h=$ac_header_preproc
13585 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13586 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13589 if test $ac_cv_header_jerror_h = yes; then
13590 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13591 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13592 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13595 ac_check_lib_save_LIBS=$LIBS
13596 LIBS="-ljpeg $LIBS"
13597 cat >conftest.$ac_ext <<_ACEOF
13600 cat confdefs.h >>conftest.$ac_ext
13601 cat >>conftest.$ac_ext <<_ACEOF
13602 /* end confdefs.h. */
13604 /* Override any GCC internal prototype to avoid an error.
13605 Use char because int might match the return type of a GCC
13606 builtin and then its argument prototype would still apply. */
13610 char jpeg_destroy_compress ();
13614 return jpeg_destroy_compress ();
13619 rm -f conftest.$ac_objext conftest$ac_exeext
13620 if { (ac_try="$ac_link"
13621 case "(($ac_try" in
13622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13623 *) ac_try_echo=$ac_try;;
13625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13626 (eval "$ac_link") 2>conftest.er1
13628 grep -v '^
*+' conftest.er1 >conftest.err
13630 cat conftest.err >&5
13631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13632 (exit $ac_status); } && {
13633 test -z "$ac_c_werror_flag" ||
13634 test ! -s conftest.err
13635 } && test -s conftest$ac_exeext &&
13636 $as_test_x conftest$ac_exeext; then
13637 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13639 echo "$as_me: failed program was:" >&5
13640 sed 's
/^
/|
/' conftest.$ac_ext >&5
13642 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13646 conftest$ac_exeext conftest.$ac_ext
13647 LIBS=$ac_check_lib_save_LIBS
13649 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13650 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13651 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13661 if test "${HAVE_JPEG}" = "yes"; then
13662 cat >>confdefs.h <<\_ACEOF
13663 #define HAVE_JPEG 1
13666 cat >conftest.$ac_ext <<_ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672 #include <jpeglib.h>
13673 version=JPEG_LIB_VERSION
13676 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13677 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13678 cat >>confdefs.h <<\_ACEOF
13679 #define HAVE_JPEG 1
13683 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13684 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13692 ### Use -lpng if available, unless `--with-png=no'.
13694 if test "${HAVE_X11}" = "yes"; then
13695 if test "${with_png}" != "no"; then
13696 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13697 # in /usr/include/libpng.
13700 for ac_header
in png.h libpng
/png.h
13702 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13703 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13706 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13709 ac_res
=`eval echo '${'$as_ac_Header'}'`
13710 { echo "$as_me:$LINENO: result: $ac_res" >&5
13711 echo "${ECHO_T}$ac_res" >&6; }
13713 # Is the header compilable?
13714 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13715 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13716 cat >conftest.
$ac_ext <<_ACEOF
13719 cat confdefs.h
>>conftest.
$ac_ext
13720 cat >>conftest.
$ac_ext <<_ACEOF
13721 /* end confdefs.h. */
13722 $ac_includes_default
13723 #include <$ac_header>
13725 rm -f conftest.
$ac_objext
13726 if { (ac_try
="$ac_compile"
13727 case "(($ac_try" in
13728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_compile") 2>conftest.er1
13734 grep -v '^ *+' conftest.er1 >conftest.err
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } && {
13739 test -z "$ac_c_werror_flag" ||
13740 test ! -s conftest.err
13741 } && test -s conftest.$ac_objext; then
13742 ac_header_compiler=yes
13744 echo "$as_me: failed program was:" >&5
13745 sed 's/^/| /' conftest.$ac_ext >&5
13747 ac_header_compiler=no
13750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13751 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13752 echo "${ECHO_T}$ac_header_compiler" >&6; }
13754 # Is the header present?
13755 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13756 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13757 cat >conftest.$ac_ext <<_ACEOF
13760 cat confdefs.h >>conftest.$ac_ext
13761 cat >>conftest.$ac_ext <<_ACEOF
13762 /* end confdefs.h. */
13763 #include <$ac_header>
13765 if { (ac_try="$ac_cpp conftest.$ac_ext"
13766 case "(($ac_try" in
13767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13768 *) ac_try_echo
=$ac_try;;
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13773 grep -v '^ *+' conftest.er1
>conftest.err
13775 cat conftest.err
>&5
13776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13777 (exit $ac_status); } >/dev
/null
&& {
13778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13779 test ! -s conftest.err
13781 ac_header_preproc
=yes
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.
$ac_ext >&5
13786 ac_header_preproc
=no
13789 rm -f conftest.err conftest.
$ac_ext
13790 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13791 echo "${ECHO_T}$ac_header_preproc" >&6; }
13793 # So? What about this header?
13794 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13796 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13797 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13798 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13799 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13800 ac_header_preproc
=yes
13803 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13804 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13805 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13806 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13807 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13808 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13809 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13810 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13811 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13812 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13813 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13814 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13818 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13820 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13821 echo $ECHO_N "(cached) $ECHO_C" >&6
13823 eval "$as_ac_Header=\$ac_header_preproc"
13825 ac_res
=`eval echo '${'$as_ac_Header'}'`
13826 { echo "$as_me:$LINENO: result: $ac_res" >&5
13827 echo "${ECHO_T}$ac_res" >&6; }
13830 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13831 cat >>confdefs.h
<<_ACEOF
13832 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13839 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13840 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13841 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13842 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13843 echo $ECHO_N "(cached) $ECHO_C" >&6
13845 ac_check_lib_save_LIBS
=$LIBS
13846 LIBS
="-lpng -lz -lm $LIBS"
13847 cat >conftest.
$ac_ext <<_ACEOF
13850 cat confdefs.h
>>conftest.
$ac_ext
13851 cat >>conftest.
$ac_ext <<_ACEOF
13852 /* end confdefs.h. */
13854 /* Override any GCC internal prototype to avoid an error.
13855 Use char because int might match the return type of a GCC
13856 builtin and then its argument prototype would still apply. */
13860 char png_get_channels ();
13864 return png_get_channels ();
13869 rm -f conftest.
$ac_objext conftest
$ac_exeext
13870 if { (ac_try
="$ac_link"
13871 case "(($ac_try" in
13872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13873 *) ac_try_echo=$ac_try;;
13875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13876 (eval "$ac_link") 2>conftest.er1
13878 grep -v '^ *+' conftest.er1 >conftest.err
13880 cat conftest.err >&5
13881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13882 (exit $ac_status); } && {
13883 test -z "$ac_c_werror_flag" ||
13884 test ! -s conftest.err
13885 } && test -s conftest$ac_exeext &&
13886 $as_test_x conftest$ac_exeext; then
13887 ac_cv_lib_png_png_get_channels=yes
13889 echo "$as_me: failed program was:" >&5
13890 sed 's/^/| /' conftest.$ac_ext >&5
13892 ac_cv_lib_png_png_get_channels=no
13895 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13896 conftest$ac_exeext conftest.$ac_ext
13897 LIBS=$ac_check_lib_save_LIBS
13899 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13900 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13901 if test $ac_cv_lib_png_png_get_channels = yes; then
13908 if test "${HAVE_PNG}" = "yes"; then
13910 cat >>confdefs.h <<\_ACEOF
13917 ### Use -ltiff if available, unless `--with-tiff=no
'.
13919 if test "${HAVE_X11}" = "yes"; then
13920 if test "${with_tiff}" != "no"; then
13921 if test "${ac_cv_header_tiffio_h+set}" = set; then
13922 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13923 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13924 if test "${ac_cv_header_tiffio_h+set}" = set; then
13925 echo $ECHO_N "(cached) $ECHO_C" >&6
13927 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13928 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13930 # Is the header compilable?
13931 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13932 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13933 cat >conftest.$ac_ext <<_ACEOF
13936 cat confdefs.h >>conftest.$ac_ext
13937 cat >>conftest.$ac_ext <<_ACEOF
13938 /* end confdefs.h. */
13939 $ac_includes_default
13940 #include <tiffio.h>
13942 rm -f conftest.$ac_objext
13943 if { (ac_try="$ac_compile"
13944 case "(($ac_try" in
13945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13946 *) ac_try_echo=$ac_try;;
13948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13949 (eval "$ac_compile") 2>conftest.er1
13951 grep -v '^
*+' conftest.er1 >conftest.err
13953 cat conftest.err >&5
13954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13955 (exit $ac_status); } && {
13956 test -z "$ac_c_werror_flag" ||
13957 test ! -s conftest.err
13958 } && test -s conftest.$ac_objext; then
13959 ac_header_compiler=yes
13961 echo "$as_me: failed program was:" >&5
13962 sed 's
/^
/|
/' conftest.$ac_ext >&5
13964 ac_header_compiler=no
13967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13968 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13969 echo "${ECHO_T}$ac_header_compiler" >&6; }
13971 # Is the header present?
13972 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13973 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13974 cat >conftest.$ac_ext <<_ACEOF
13977 cat confdefs.h >>conftest.$ac_ext
13978 cat >>conftest.$ac_ext <<_ACEOF
13979 /* end confdefs.h. */
13980 #include <tiffio.h>
13982 if { (ac_try="$ac_cpp conftest.$ac_ext"
13983 case "(($ac_try" in
13984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13985 *) ac_try_echo=$ac_try;;
13987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13988 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13990 grep -v '^
*+' conftest.er1 >conftest.err
13992 cat conftest.err >&5
13993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13994 (exit $ac_status); } >/dev/null && {
13995 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13996 test ! -s conftest.err
13998 ac_header_preproc=yes
14000 echo "$as_me: failed program was:" >&5
14001 sed 's
/^
/|
/' conftest.$ac_ext >&5
14003 ac_header_preproc=no
14006 rm -f conftest.err conftest.$ac_ext
14007 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14008 echo "${ECHO_T}$ac_header_preproc" >&6; }
14010 # So? What about this header?
14011 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14013 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14014 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14015 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14016 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14017 ac_header_preproc=yes
14020 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14021 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14022 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14023 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14024 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14025 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14027 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14029 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14031 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14035 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14036 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14037 if test "${ac_cv_header_tiffio_h+set}" = set; then
14038 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 ac_cv_header_tiffio_h=$ac_header_preproc
14042 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14043 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14046 if test $ac_cv_header_tiffio_h = yes; then
14048 # At least one tiff package requires the jpeg library.
14049 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14050 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14051 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14052 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14053 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 ac_check_lib_save_LIBS=$LIBS
14056 LIBS="-ltiff $tifflibs $LIBS"
14057 cat >conftest.$ac_ext <<_ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14064 /* Override any GCC internal prototype to avoid an error.
14065 Use char because int might match the return type of a GCC
14066 builtin and then its argument prototype would still apply. */
14070 char TIFFGetVersion ();
14074 return TIFFGetVersion ();
14079 rm -f conftest.$ac_objext conftest$ac_exeext
14080 if { (ac_try="$ac_link"
14081 case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_link") 2>conftest.er1
14088 grep -v '^
*+' conftest.er1 >conftest.err
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } && {
14093 test -z "$ac_c_werror_flag" ||
14094 test ! -s conftest.err
14095 } && test -s conftest$ac_exeext &&
14096 $as_test_x conftest$ac_exeext; then
14097 ac_cv_lib_tiff_TIFFGetVersion=yes
14099 echo "$as_me: failed program was:" >&5
14100 sed 's
/^
/|
/' conftest.$ac_ext >&5
14102 ac_cv_lib_tiff_TIFFGetVersion=no
14105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14106 conftest$ac_exeext conftest.$ac_ext
14107 LIBS=$ac_check_lib_save_LIBS
14109 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14110 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14111 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14120 if test "${HAVE_TIFF}" = "yes"; then
14122 cat >>confdefs.h <<\_ACEOF
14123 #define HAVE_TIFF 1
14129 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14131 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14132 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14133 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14134 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14135 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14139 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14141 # Is the header compilable?
14142 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14143 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14144 cat >conftest.
$ac_ext <<_ACEOF
14147 cat confdefs.h
>>conftest.
$ac_ext
14148 cat >>conftest.
$ac_ext <<_ACEOF
14149 /* end confdefs.h. */
14150 $ac_includes_default
14151 #include <gif_lib.h>
14153 rm -f conftest.
$ac_objext
14154 if { (ac_try
="$ac_compile"
14155 case "(($ac_try" in
14156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_compile") 2>conftest.er1
14162 grep -v '^ *+' conftest.er1 >conftest.err
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } && {
14167 test -z "$ac_c_werror_flag" ||
14168 test ! -s conftest.err
14169 } && test -s conftest.$ac_objext; then
14170 ac_header_compiler=yes
14172 echo "$as_me: failed program was:" >&5
14173 sed 's/^/| /' conftest.$ac_ext >&5
14175 ac_header_compiler=no
14178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14180 echo "${ECHO_T}$ac_header_compiler" >&6; }
14182 # Is the header present?
14183 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14184 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14185 cat >conftest.$ac_ext <<_ACEOF
14188 cat confdefs.h >>conftest.$ac_ext
14189 cat >>conftest.$ac_ext <<_ACEOF
14190 /* end confdefs.h. */
14191 #include <gif_lib.h>
14193 if { (ac_try="$ac_cpp conftest.$ac_ext"
14194 case "(($ac_try" in
14195 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14196 *) ac_try_echo
=$ac_try;;
14198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14201 grep -v '^ *+' conftest.er1
>conftest.err
14203 cat conftest.err
>&5
14204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205 (exit $ac_status); } >/dev
/null
&& {
14206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14207 test ! -s conftest.err
14209 ac_header_preproc
=yes
14211 echo "$as_me: failed program was:" >&5
14212 sed 's/^/| /' conftest.
$ac_ext >&5
14214 ac_header_preproc
=no
14217 rm -f conftest.err conftest.
$ac_ext
14218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14219 echo "${ECHO_T}$ac_header_preproc" >&6; }
14221 # So? What about this header?
14222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14224 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14225 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14226 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14227 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14228 ac_header_preproc
=yes
14231 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14232 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14233 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14234 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14235 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14236 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14237 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14238 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14239 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14240 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14241 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14242 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14246 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14247 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14248 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14249 echo $ECHO_N "(cached) $ECHO_C" >&6
14251 ac_cv_header_gif_lib_h
=$ac_header_preproc
14253 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14254 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14257 if test $ac_cv_header_gif_lib_h = yes; then
14258 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14259 # Earlier versions can crash Emacs.
14260 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14261 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14262 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14263 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 ac_check_lib_save_LIBS
=$LIBS
14267 cat >conftest.
$ac_ext <<_ACEOF
14270 cat confdefs.h
>>conftest.
$ac_ext
14271 cat >>conftest.
$ac_ext <<_ACEOF
14272 /* end confdefs.h. */
14274 /* Override any GCC internal prototype to avoid an error.
14275 Use char because int might match the return type of a GCC
14276 builtin and then its argument prototype would still apply. */
14280 char EGifPutExtensionLast ();
14284 return EGifPutExtensionLast ();
14289 rm -f conftest.
$ac_objext conftest
$ac_exeext
14290 if { (ac_try
="$ac_link"
14291 case "(($ac_try" in
14292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14293 *) ac_try_echo=$ac_try;;
14295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14296 (eval "$ac_link") 2>conftest.er1
14298 grep -v '^ *+' conftest.er1 >conftest.err
14300 cat conftest.err >&5
14301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14302 (exit $ac_status); } && {
14303 test -z "$ac_c_werror_flag" ||
14304 test ! -s conftest.err
14305 } && test -s conftest$ac_exeext &&
14306 $as_test_x conftest$ac_exeext; then
14307 ac_cv_lib_gif_EGifPutExtensionLast=yes
14309 echo "$as_me: failed program was:" >&5
14310 sed 's/^/| /' conftest.$ac_ext >&5
14312 ac_cv_lib_gif_EGifPutExtensionLast=no
14315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14316 conftest$ac_exeext conftest.$ac_ext
14317 LIBS=$ac_check_lib_save_LIBS
14319 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14320 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14321 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14331 if test "$HAVE_GIF" = yes; then
14332 ac_gif_lib_name="-lgif"
14335 # If gif_lib.h but no libgif, try libungif.
14336 if test x"$try_libungif" = xyes; then
14337 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14338 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14339 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14340 echo $ECHO_N "(cached) $ECHO_C" >&6
14342 ac_check_lib_save_LIBS=$LIBS
14343 LIBS="-lungif $LIBS"
14344 cat >conftest.$ac_ext <<_ACEOF
14347 cat confdefs.h >>conftest.$ac_ext
14348 cat >>conftest.$ac_ext <<_ACEOF
14349 /* end confdefs.h. */
14351 /* Override any GCC internal prototype to avoid an error.
14352 Use char because int might match the return type of a GCC
14353 builtin and then its argument prototype would still apply. */
14357 char EGifPutExtensionLast ();
14361 return EGifPutExtensionLast ();
14366 rm -f conftest.$ac_objext conftest$ac_exeext
14367 if { (ac_try="$ac_link"
14368 case "(($ac_try" in
14369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14370 *) ac_try_echo
=$ac_try;;
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_link") 2>conftest.er1
14375 grep -v '^ *+' conftest.er1
>conftest.err
14377 cat conftest.err
>&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } && {
14380 test -z "$ac_c_werror_flag" ||
14381 test ! -s conftest.err
14382 } && test -s conftest
$ac_exeext &&
14383 $as_test_x conftest
$ac_exeext; then
14384 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14386 echo "$as_me: failed program was:" >&5
14387 sed 's/^/| /' conftest.
$ac_ext >&5
14389 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14392 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14393 conftest
$ac_exeext conftest.
$ac_ext
14394 LIBS
=$ac_check_lib_save_LIBS
14396 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14397 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14398 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14403 if test "$HAVE_GIF" = yes; then
14405 cat >>confdefs.h
<<\_ACEOF
14406 #define LIBGIF -lungif
14409 ac_gif_lib_name
="-lungif"
14413 if test "${HAVE_GIF}" = "yes"; then
14415 cat >>confdefs.h
<<\_ACEOF
14422 if test "${HAVE_X11}" = "yes"; then
14425 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14426 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14427 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14428 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14429 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14430 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14431 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14432 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14433 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14434 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14436 if test "X${MISSING}" != X
; then
14437 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14439 Maybe some development libraries/packages are missing?
14440 If you don't want to link with them give
14442 as options to configure" >&5
14443 echo "$as_me: error: The following required libraries were not found:
14445 Maybe some development libraries/packages are missing?
14446 If you don't want to link with them give
14448 as options to configure" >&2;}
14449 { (exit 1); exit 1; }; }
14453 ### Use -lgpm if available, unless `--with-gpm=no'.
14455 if test "${with_gpm}" != "no"; then
14456 if test "${ac_cv_header_gpm_h+set}" = set; then
14457 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14458 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14459 if test "${ac_cv_header_gpm_h+set}" = set; then
14460 echo $ECHO_N "(cached) $ECHO_C" >&6
14462 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14463 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14465 # Is the header compilable?
14466 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14467 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14468 cat >conftest.
$ac_ext <<_ACEOF
14471 cat confdefs.h
>>conftest.
$ac_ext
14472 cat >>conftest.
$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14474 $ac_includes_default
14477 rm -f conftest.
$ac_objext
14478 if { (ac_try
="$ac_compile"
14479 case "(($ac_try" in
14480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14481 *) ac_try_echo=$ac_try;;
14483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14484 (eval "$ac_compile") 2>conftest.er1
14486 grep -v '^ *+' conftest.er1 >conftest.err
14488 cat conftest.err >&5
14489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14490 (exit $ac_status); } && {
14491 test -z "$ac_c_werror_flag" ||
14492 test ! -s conftest.err
14493 } && test -s conftest.$ac_objext; then
14494 ac_header_compiler=yes
14496 echo "$as_me: failed program was:" >&5
14497 sed 's/^/| /' conftest.$ac_ext >&5
14499 ac_header_compiler=no
14502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14503 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14504 echo "${ECHO_T}$ac_header_compiler" >&6; }
14506 # Is the header present?
14507 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14508 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14509 cat >conftest.$ac_ext <<_ACEOF
14512 cat confdefs.h >>conftest.$ac_ext
14513 cat >>conftest.$ac_ext <<_ACEOF
14514 /* end confdefs.h. */
14517 if { (ac_try="$ac_cpp conftest.$ac_ext"
14518 case "(($ac_try" in
14519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14520 *) ac_try_echo
=$ac_try;;
14522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14525 grep -v '^ *+' conftest.er1
>conftest.err
14527 cat conftest.err
>&5
14528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14529 (exit $ac_status); } >/dev
/null
&& {
14530 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14531 test ! -s conftest.err
14533 ac_header_preproc
=yes
14535 echo "$as_me: failed program was:" >&5
14536 sed 's/^/| /' conftest.
$ac_ext >&5
14538 ac_header_preproc
=no
14541 rm -f conftest.err conftest.
$ac_ext
14542 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14543 echo "${ECHO_T}$ac_header_preproc" >&6; }
14545 # So? What about this header?
14546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14548 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14549 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14550 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14551 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14552 ac_header_preproc
=yes
14555 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14556 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14557 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14558 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14559 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14560 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14561 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14562 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14563 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14564 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14565 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14566 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14570 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14571 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14572 if test "${ac_cv_header_gpm_h+set}" = set; then
14573 echo $ECHO_N "(cached) $ECHO_C" >&6
14575 ac_cv_header_gpm_h
=$ac_header_preproc
14577 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14578 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14581 if test $ac_cv_header_gpm_h = yes; then
14582 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14583 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14584 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14585 echo $ECHO_N "(cached) $ECHO_C" >&6
14587 ac_check_lib_save_LIBS
=$LIBS
14589 cat >conftest.
$ac_ext <<_ACEOF
14592 cat confdefs.h
>>conftest.
$ac_ext
14593 cat >>conftest.
$ac_ext <<_ACEOF
14594 /* end confdefs.h. */
14596 /* Override any GCC internal prototype to avoid an error.
14597 Use char because int might match the return type of a GCC
14598 builtin and then its argument prototype would still apply. */
14606 return Gpm_Open ();
14611 rm -f conftest.
$ac_objext conftest
$ac_exeext
14612 if { (ac_try
="$ac_link"
14613 case "(($ac_try" in
14614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14615 *) ac_try_echo=$ac_try;;
14617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14618 (eval "$ac_link") 2>conftest.er1
14620 grep -v '^ *+' conftest.er1 >conftest.err
14622 cat conftest.err >&5
14623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14624 (exit $ac_status); } && {
14625 test -z "$ac_c_werror_flag" ||
14626 test ! -s conftest.err
14627 } && test -s conftest$ac_exeext &&
14628 $as_test_x conftest$ac_exeext; then
14629 ac_cv_lib_gpm_Gpm_Open=yes
14631 echo "$as_me: failed program was:" >&5
14632 sed 's/^/| /' conftest.$ac_ext >&5
14634 ac_cv_lib_gpm_Gpm_Open=no
14637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14638 conftest$ac_exeext conftest.$ac_ext
14639 LIBS=$ac_check_lib_save_LIBS
14641 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14642 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14643 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14652 if test "${HAVE_GPM}" = "yes"; then
14654 cat >>confdefs.h <<\_ACEOF
14660 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14661 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14662 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14663 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14666 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14667 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14669 # Is the header compilable?
14670 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14671 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14672 cat >conftest.$ac_ext <<_ACEOF
14675 cat confdefs.h >>conftest.$ac_ext
14676 cat >>conftest.$ac_ext <<_ACEOF
14677 /* end confdefs.h. */
14678 $ac_includes_default
14679 #include <malloc/malloc.h>
14681 rm -f conftest.$ac_objext
14682 if { (ac_try="$ac_compile"
14683 case "(($ac_try" in
14684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14685 *) ac_try_echo
=$ac_try;;
14687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14688 (eval "$ac_compile") 2>conftest.er1
14690 grep -v '^ *+' conftest.er1
>conftest.err
14692 cat conftest.err
>&5
14693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14694 (exit $ac_status); } && {
14695 test -z "$ac_c_werror_flag" ||
14696 test ! -s conftest.err
14697 } && test -s conftest.
$ac_objext; then
14698 ac_header_compiler
=yes
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.
$ac_ext >&5
14703 ac_header_compiler
=no
14706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14707 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14708 echo "${ECHO_T}$ac_header_compiler" >&6; }
14710 # Is the header present?
14711 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14712 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14713 cat >conftest.
$ac_ext <<_ACEOF
14716 cat confdefs.h
>>conftest.
$ac_ext
14717 cat >>conftest.
$ac_ext <<_ACEOF
14718 /* end confdefs.h. */
14719 #include <malloc/malloc.h>
14721 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14722 case "(($ac_try" in
14723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14724 *) ac_try_echo=$ac_try;;
14726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14727 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14729 grep -v '^ *+' conftest.er1 >conftest.err
14731 cat conftest.err >&5
14732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14733 (exit $ac_status); } >/dev/null && {
14734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14735 test ! -s conftest.err
14737 ac_header_preproc=yes
14739 echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14742 ac_header_preproc=no
14745 rm -f conftest.err conftest.$ac_ext
14746 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14747 echo "${ECHO_T}$ac_header_preproc" >&6; }
14749 # So? What about this header?
14750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14752 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14753 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14754 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14755 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14756 ac_header_preproc=yes
14759 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14760 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14761 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14762 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14763 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14764 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14765 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14766 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14767 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14768 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14769 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14770 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14774 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14775 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14776 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14777 echo $ECHO_N "(cached) $ECHO_C" >&6
14779 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14781 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14782 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14785 if test $ac_cv_header_malloc_malloc_h = yes; then
14787 cat >>confdefs.h <<\_ACEOF
14788 #define HAVE_MALLOC_MALLOC_H 1
14795 ### Use Mac OS X Carbon API to implement GUI.
14796 if test "${HAVE_CARBON}" = "yes"; then
14798 cat >>confdefs.h <<\_ACEOF
14799 #define HAVE_CARBON 1
14802 ## Specify the install directory
14804 if test "${carbon_appdir_x}" != ""; then
14805 case ${carbon_appdir_x} in
14806 y | ye | yes) carbon_appdir=/Applications ;;
14807 * ) carbon_appdir=${carbon_appdir_x} ;;
14810 # We also have mouse menus.
14814 ### Use session management (-lSM -lICE) if available
14816 if test "${HAVE_X11}" = "yes"; then
14817 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14818 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14819 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14820 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14821 echo $ECHO_N "(cached) $ECHO_C" >&6
14823 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14824 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14826 # Is the header compilable?
14827 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14828 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14829 cat >conftest.$ac_ext <<_ACEOF
14832 cat confdefs.h >>conftest.$ac_ext
14833 cat >>conftest.$ac_ext <<_ACEOF
14834 /* end confdefs.h. */
14835 $ac_includes_default
14836 #include <X11/SM/SMlib.h>
14838 rm -f conftest.$ac_objext
14839 if { (ac_try="$ac_compile"
14840 case "(($ac_try" in
14841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14842 *) ac_try_echo
=$ac_try;;
14844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14845 (eval "$ac_compile") 2>conftest.er1
14847 grep -v '^ *+' conftest.er1
>conftest.err
14849 cat conftest.err
>&5
14850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14851 (exit $ac_status); } && {
14852 test -z "$ac_c_werror_flag" ||
14853 test ! -s conftest.err
14854 } && test -s conftest.
$ac_objext; then
14855 ac_header_compiler
=yes
14857 echo "$as_me: failed program was:" >&5
14858 sed 's/^/| /' conftest.
$ac_ext >&5
14860 ac_header_compiler
=no
14863 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14864 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14865 echo "${ECHO_T}$ac_header_compiler" >&6; }
14867 # Is the header present?
14868 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14869 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14870 cat >conftest.
$ac_ext <<_ACEOF
14873 cat confdefs.h
>>conftest.
$ac_ext
14874 cat >>conftest.
$ac_ext <<_ACEOF
14875 /* end confdefs.h. */
14876 #include <X11/SM/SMlib.h>
14878 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14879 case "(($ac_try" in
14880 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14886 grep -v '^ *+' conftest.er1 >conftest.err
14888 cat conftest.err >&5
14889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14890 (exit $ac_status); } >/dev/null && {
14891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14892 test ! -s conftest.err
14894 ac_header_preproc=yes
14896 echo "$as_me: failed program was:" >&5
14897 sed 's/^/| /' conftest.$ac_ext >&5
14899 ac_header_preproc=no
14902 rm -f conftest.err conftest.$ac_ext
14903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14904 echo "${ECHO_T}$ac_header_preproc" >&6; }
14906 # So? What about this header?
14907 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14909 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14910 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14911 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14912 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14913 ac_header_preproc=yes
14916 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14917 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14918 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14919 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14920 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14921 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14922 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14923 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14924 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14925 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14926 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14927 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14931 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14932 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14933 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14936 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14938 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14939 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14942 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14943 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14944 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14945 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14948 ac_check_lib_save_LIBS=$LIBS
14949 LIBS="-lSM -lICE $LIBS"
14950 cat >conftest.$ac_ext <<_ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14957 /* Override any GCC internal prototype to avoid an error.
14958 Use char because int might match the return type of a GCC
14959 builtin and then its argument prototype would still apply. */
14963 char SmcOpenConnection ();
14967 return SmcOpenConnection ();
14972 rm -f conftest.$ac_objext conftest$ac_exeext
14973 if { (ac_try="$ac_link"
14974 case "(($ac_try" in
14975 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14976 *) ac_try_echo
=$ac_try;;
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_link") 2>conftest.er1
14981 grep -v '^ *+' conftest.er1
>conftest.err
14983 cat conftest.err
>&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } && {
14986 test -z "$ac_c_werror_flag" ||
14987 test ! -s conftest.err
14988 } && test -s conftest
$ac_exeext &&
14989 $as_test_x conftest
$ac_exeext; then
14990 ac_cv_lib_SM_SmcOpenConnection
=yes
14992 echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.
$ac_ext >&5
14995 ac_cv_lib_SM_SmcOpenConnection
=no
14998 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14999 conftest
$ac_exeext conftest.
$ac_ext
15000 LIBS
=$ac_check_lib_save_LIBS
15002 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15003 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15004 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15012 if test "${HAVE_X_SM}" = "yes"; then
15014 cat >>confdefs.h
<<\_ACEOF
15015 #define HAVE_X_SM 1
15020 *) LIBS
="-lSM -lICE $LIBS" ;;
15025 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15026 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15027 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15028 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15031 cat >conftest.
$ac_ext <<_ACEOF
15034 cat confdefs.h
>>conftest.
$ac_ext
15035 cat >>conftest.
$ac_ext <<_ACEOF
15036 /* end confdefs.h. */
15046 rm -f conftest.
$ac_objext conftest
$ac_exeext
15047 if { (ac_try
="$ac_link"
15048 case "(($ac_try" in
15049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053 (eval "$ac_link") 2>conftest.er1
15055 grep -v '^ *+' conftest.er1 >conftest.err
15057 cat conftest.err >&5
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } && {
15060 test -z "$ac_c_werror_flag" ||
15061 test ! -s conftest.err
15062 } && test -s conftest$ac_exeext &&
15063 $as_test_x conftest$ac_exeext; then
15064 emacs_cv_netdb_declares_h_errno=yes
15066 echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15069 emacs_cv_netdb_declares_h_errno=no
15072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15073 conftest$ac_exeext conftest.$ac_ext
15075 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15076 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15077 if test $emacs_cv_netdb_declares_h_errno = yes; then
15079 cat >>confdefs.h <<\_ACEOF
15080 #define HAVE_H_ERRNO 1
15085 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15086 # for constant arguments. Useless!
15087 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15088 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15089 if test "${ac_cv_working_alloca_h+set}" = set; then
15090 echo $ECHO_N "(cached) $ECHO_C" >&6
15092 cat >conftest.$ac_ext <<_ACEOF
15095 cat confdefs.h >>conftest.$ac_ext
15096 cat >>conftest.$ac_ext <<_ACEOF
15097 /* end confdefs.h. */
15098 #include <alloca.h>
15102 char *p = (char *) alloca (2 * sizeof (int));
15108 rm -f conftest.$ac_objext conftest$ac_exeext
15109 if { (ac_try="$ac_link"
15110 case "(($ac_try" in
15111 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15112 *) ac_try_echo
=$ac_try;;
15114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15115 (eval "$ac_link") 2>conftest.er1
15117 grep -v '^ *+' conftest.er1
>conftest.err
15119 cat conftest.err
>&5
15120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15121 (exit $ac_status); } && {
15122 test -z "$ac_c_werror_flag" ||
15123 test ! -s conftest.err
15124 } && test -s conftest
$ac_exeext &&
15125 $as_test_x conftest
$ac_exeext; then
15126 ac_cv_working_alloca_h
=yes
15128 echo "$as_me: failed program was:" >&5
15129 sed 's/^/| /' conftest.
$ac_ext >&5
15131 ac_cv_working_alloca_h
=no
15134 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15135 conftest
$ac_exeext conftest.
$ac_ext
15137 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15138 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15139 if test $ac_cv_working_alloca_h = yes; then
15141 cat >>confdefs.h
<<\_ACEOF
15142 #define HAVE_ALLOCA_H 1
15147 { echo "$as_me:$LINENO: checking for alloca" >&5
15148 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15149 if test "${ac_cv_func_alloca_works+set}" = set; then
15150 echo $ECHO_N "(cached) $ECHO_C" >&6
15152 cat >conftest.
$ac_ext <<_ACEOF
15155 cat confdefs.h
>>conftest.
$ac_ext
15156 cat >>conftest.
$ac_ext <<_ACEOF
15157 /* end confdefs.h. */
15159 # define alloca __builtin_alloca
15162 # include <malloc.h>
15163 # define alloca _alloca
15165 # ifdef HAVE_ALLOCA_H
15166 # include <alloca.h>
15171 # ifndef alloca /* predefined by HP cc +Olibcalls */
15182 char *p = (char *) alloca (1);
15188 rm -f conftest.
$ac_objext conftest
$ac_exeext
15189 if { (ac_try
="$ac_link"
15190 case "(($ac_try" in
15191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15192 *) ac_try_echo=$ac_try;;
15194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15195 (eval "$ac_link") 2>conftest.er1
15197 grep -v '^ *+' conftest.er1 >conftest.err
15199 cat conftest.err >&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } && {
15202 test -z "$ac_c_werror_flag" ||
15203 test ! -s conftest.err
15204 } && test -s conftest$ac_exeext &&
15205 $as_test_x conftest$ac_exeext; then
15206 ac_cv_func_alloca_works=yes
15208 echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.$ac_ext >&5
15211 ac_cv_func_alloca_works=no
15214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15215 conftest$ac_exeext conftest.$ac_ext
15217 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15218 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15220 if test $ac_cv_func_alloca_works = yes; then
15222 cat >>confdefs.h <<\_ACEOF
15223 #define HAVE_ALLOCA 1
15227 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15228 # that cause trouble. Some versions do not even contain alloca or
15229 # contain a buggy version. If you still want to use their alloca,
15230 # use ar to extract alloca.o from them instead of compiling alloca.c.
15232 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15234 cat >>confdefs.h <<\_ACEOF
15239 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15240 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15241 if test "${ac_cv_os_cray+set}" = set; then
15242 echo $ECHO_N "(cached
) $ECHO_C" >&6
15244 cat >conftest.$ac_ext <<_ACEOF
15247 cat confdefs.h >>conftest.$ac_ext
15248 cat >>conftest.$ac_ext <<_ACEOF
15249 /* end confdefs.h. */
15250 #if defined CRAY && ! defined CRAY2
15257 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15258 $EGREP "webecray
" >/dev/null 2>&1; then
15266 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15267 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15268 if test $ac_cv_os_cray = yes; then
15269 for ac_func in _getb67 GETB67 getb67; do
15270 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15271 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15272 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15273 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15274 echo $ECHO_N "(cached
) $ECHO_C" >&6
15276 cat >conftest.$ac_ext <<_ACEOF
15279 cat confdefs.h >>conftest.$ac_ext
15280 cat >>conftest.$ac_ext <<_ACEOF
15281 /* end confdefs.h. */
15282 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15283 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15284 #define $ac_func innocuous_$ac_func
15286 /* System header to define __stub macros and hopefully few prototypes,
15287 which can conflict with char $ac_func (); below.
15288 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15289 <limits.h> exists even on freestanding compilers. */
15292 # include <limits.h>
15294 # include <assert.h>
15299 /* Override any GCC internal prototype to avoid an error.
15300 Use char because int might match the return type of a GCC
15301 builtin and then its argument prototype would still apply. */
15306 /* The GNU C library defines this for functions which it implements
15307 to always fail with ENOSYS. Some functions are actually named
15308 something starting with __ and the normal name is an alias. */
15309 #if defined __stub_$ac_func || defined __stub___$ac_func
15316 return $ac_func ();
15321 rm -f conftest.$ac_objext conftest$ac_exeext
15322 if { (ac_try="$ac_link"
15323 case "(($ac_try" in
15324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15325 *) ac_try_echo=$ac_try;;
15327 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15328 (eval "$ac_link") 2>conftest.er1
15330 grep -v '^ *+' conftest.er1 >conftest.err
15332 cat conftest.err >&5
15333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15334 (exit $ac_status); } && {
15335 test -z "$ac_c_werror_flag" ||
15336 test ! -s conftest.err
15337 } && test -s conftest$ac_exeext &&
15338 $as_test_x conftest$ac_exeext; then
15339 eval "$as_ac_var=yes"
15341 echo "$as_me: failed program was
:" >&5
15342 sed 's/^/| /' conftest.$ac_ext >&5
15344 eval "$as_ac_var=no
"
15347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15348 conftest$ac_exeext conftest.$ac_ext
15350 ac_res=`eval echo '${'$as_ac_var'}'`
15351 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15352 echo "${ECHO_T}$ac_res" >&6; }
15353 if test `eval echo '${'$as_ac_var'}'` = yes; then
15355 cat >>confdefs.h <<_ACEOF
15356 #define CRAY_STACKSEG_END $ac_func
15365 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15366 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15367 if test "${ac_cv_c_stack_direction+set}" = set; then
15368 echo $ECHO_N "(cached
) $ECHO_C" >&6
15370 if test "$cross_compiling" = yes; then
15371 ac_cv_c_stack_direction=0
15373 cat >conftest.$ac_ext <<_ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15379 $ac_includes_default
15381 find_stack_direction ()
15383 static char *addr = 0;
15388 return find_stack_direction ();
15391 return (&dummy > addr) ? 1 : -1;
15397 return find_stack_direction () < 0;
15400 rm -f conftest$ac_exeext
15401 if { (ac_try="$ac_link"
15402 case "(($ac_try" in
15403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15404 *) ac_try_echo=$ac_try;;
15406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15407 (eval "$ac_link") 2>&5
15409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15410 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15411 { (case "(($ac_try" in
15412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15413 *) ac_try_echo=$ac_try;;
15415 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15416 (eval "$ac_try") 2>&5
15418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15419 (exit $ac_status); }; }; then
15420 ac_cv_c_stack_direction=1
15422 echo "$as_me: program exited with status
$ac_status" >&5
15423 echo "$as_me: failed program was
:" >&5
15424 sed 's/^/| /' conftest.$ac_ext >&5
15426 ( exit $ac_status )
15427 ac_cv_c_stack_direction=-1
15429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15434 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15435 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15437 cat >>confdefs.h <<_ACEOF
15438 #define STACK_DIRECTION $ac_cv_c_stack_direction
15445 if test x"$ac_cv_func_alloca_works" != xyes; then
15446 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15447 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15448 { (exit 1); exit 1; }; }
15451 # fmod, logb, and frexp are found in -lm on most systems.
15452 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15454 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15455 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15456 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15457 echo $ECHO_N "(cached
) $ECHO_C" >&6
15459 ac_check_lib_save_LIBS=$LIBS
15461 cat >conftest.$ac_ext <<_ACEOF
15464 cat confdefs.h >>conftest.$ac_ext
15465 cat >>conftest.$ac_ext <<_ACEOF
15466 /* end confdefs.h. */
15468 /* Override any GCC internal prototype to avoid an error.
15469 Use char because int might match the return type of a GCC
15470 builtin and then its argument prototype would still apply. */
15483 rm -f conftest.$ac_objext conftest$ac_exeext
15484 if { (ac_try="$ac_link"
15485 case "(($ac_try" in
15486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15487 *) ac_try_echo=$ac_try;;
15489 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15490 (eval "$ac_link") 2>conftest.er1
15492 grep -v '^ *+' conftest.er1 >conftest.err
15494 cat conftest.err >&5
15495 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15496 (exit $ac_status); } && {
15497 test -z "$ac_c_werror_flag" ||
15498 test ! -s conftest.err
15499 } && test -s conftest$ac_exeext &&
15500 $as_test_x conftest$ac_exeext; then
15501 ac_cv_lib_m_sqrt=yes
15503 echo "$as_me: failed program was
:" >&5
15504 sed 's/^/| /' conftest.$ac_ext >&5
15506 ac_cv_lib_m_sqrt=no
15509 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15510 conftest$ac_exeext conftest.$ac_ext
15511 LIBS=$ac_check_lib_save_LIBS
15513 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15514 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15515 if test $ac_cv_lib_m_sqrt = yes; then
15516 cat >>confdefs.h <<_ACEOF
15517 #define HAVE_LIBM 1
15525 # Check for mail-locking functions in a "mail" library. Probably this should
15526 # have the same check as for liblockfile below.
15528 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15529 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15530 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15531 echo $ECHO_N "(cached
) $ECHO_C" >&6
15533 ac_check_lib_save_LIBS=$LIBS
15534 LIBS="-lmail $LIBS"
15535 cat >conftest.$ac_ext <<_ACEOF
15538 cat confdefs.h >>conftest.$ac_ext
15539 cat >>conftest.$ac_ext <<_ACEOF
15540 /* end confdefs.h. */
15542 /* Override any GCC internal prototype to avoid an error.
15543 Use char because int might match the return type of a GCC
15544 builtin and then its argument prototype would still apply. */
15552 return maillock ();
15557 rm -f conftest.$ac_objext conftest$ac_exeext
15558 if { (ac_try="$ac_link"
15559 case "(($ac_try" in
15560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15561 *) ac_try_echo=$ac_try;;
15563 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15564 (eval "$ac_link") 2>conftest.er1
15566 grep -v '^ *+' conftest.er1 >conftest.err
15568 cat conftest.err >&5
15569 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15570 (exit $ac_status); } && {
15571 test -z "$ac_c_werror_flag" ||
15572 test ! -s conftest.err
15573 } && test -s conftest$ac_exeext &&
15574 $as_test_x conftest$ac_exeext; then
15575 ac_cv_lib_mail_maillock=yes
15577 echo "$as_me: failed program was
:" >&5
15578 sed 's/^/| /' conftest.$ac_ext >&5
15580 ac_cv_lib_mail_maillock=no
15583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15584 conftest$ac_exeext conftest.$ac_ext
15585 LIBS=$ac_check_lib_save_LIBS
15587 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15588 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15589 if test $ac_cv_lib_mail_maillock = yes; then
15590 cat >>confdefs.h <<_ACEOF
15591 #define HAVE_LIBMAIL 1
15594 LIBS="-lmail $LIBS"
15599 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15600 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15601 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15602 echo $ECHO_N "(cached
) $ECHO_C" >&6
15604 ac_check_lib_save_LIBS=$LIBS
15605 LIBS="-llockfile $LIBS"
15606 cat >conftest.$ac_ext <<_ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15613 /* Override any GCC internal prototype to avoid an error.
15614 Use char because int might match the return type of a GCC
15615 builtin and then its argument prototype would still apply. */
15623 return maillock ();
15628 rm -f conftest.$ac_objext conftest$ac_exeext
15629 if { (ac_try="$ac_link"
15630 case "(($ac_try" in
15631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15632 *) ac_try_echo=$ac_try;;
15634 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15635 (eval "$ac_link") 2>conftest.er1
15637 grep -v '^ *+' conftest.er1 >conftest.err
15639 cat conftest.err >&5
15640 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15641 (exit $ac_status); } && {
15642 test -z "$ac_c_werror_flag" ||
15643 test ! -s conftest.err
15644 } && test -s conftest$ac_exeext &&
15645 $as_test_x conftest$ac_exeext; then
15646 ac_cv_lib_lockfile_maillock=yes
15648 echo "$as_me: failed program was
:" >&5
15649 sed 's/^/| /' conftest.$ac_ext >&5
15651 ac_cv_lib_lockfile_maillock=no
15654 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15655 conftest$ac_exeext conftest.$ac_ext
15656 LIBS=$ac_check_lib_save_LIBS
15658 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15659 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15660 if test $ac_cv_lib_lockfile_maillock = yes; then
15661 cat >>confdefs.h <<_ACEOF
15662 #define HAVE_LIBLOCKFILE 1
15665 LIBS="-llockfile $LIBS"
15669 # If we have the shared liblockfile, assume we must use it for mail
15670 # locking (e.g. Debian). If we couldn't link against liblockfile
15671 # (no liblockfile.a installed), ensure that we don't need to.
15672 if test "$ac_cv_lib_lockfile_maillock" = no; then
15673 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15674 set dummy liblockfile.so; ac_word=$2
15675 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15676 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15677 if test "${ac_cv_prog_liblockfile+set}" = set; then
15678 echo $ECHO_N "(cached
) $ECHO_C" >&6
15680 if test -n "$liblockfile"; then
15681 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15684 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15685 for as_dir in $as_dummy
15688 test -z "$as_dir" && as_dir=.
15689 for ac_exec_ext in '' $ac_executable_extensions; do
15690 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15691 ac_cv_prog_liblockfile="yes"
15692 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15699 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15702 liblockfile=$ac_cv_prog_liblockfile
15703 if test -n "$liblockfile"; then
15704 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15705 echo "${ECHO_T}$liblockfile" >&6; }
15707 { echo "$as_me:$LINENO: result
: no
" >&5
15708 echo "${ECHO_T}no
" >&6; }
15712 if test $ac_cv_prog_liblockfile = yes; then
15713 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15714 This probably means that movemail could lose mail.
15715 There may be a \`development' package to
install containing liblockfile.
" >&5
15716 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15717 This probably means that movemail could lose mail.
15718 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15719 { (exit 1); exit 1; }; }
15724 for ac_func in touchlock
15726 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15727 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15728 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15729 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15730 echo $ECHO_N "(cached
) $ECHO_C" >&6
15732 cat >conftest.$ac_ext <<_ACEOF
15735 cat confdefs.h >>conftest.$ac_ext
15736 cat >>conftest.$ac_ext <<_ACEOF
15737 /* end confdefs.h. */
15738 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15739 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15740 #define $ac_func innocuous_$ac_func
15742 /* System header to define __stub macros and hopefully few prototypes,
15743 which can conflict with char $ac_func (); below.
15744 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15745 <limits.h> exists even on freestanding compilers. */
15748 # include <limits.h>
15750 # include <assert.h>
15755 /* Override any GCC internal prototype to avoid an error.
15756 Use char because int might match the return type of a GCC
15757 builtin and then its argument prototype would still apply. */
15762 /* The GNU C library defines this for functions which it implements
15763 to always fail with ENOSYS. Some functions are actually named
15764 something starting with __ and the normal name is an alias. */
15765 #if defined __stub_$ac_func || defined __stub___$ac_func
15772 return $ac_func ();
15777 rm -f conftest.$ac_objext conftest$ac_exeext
15778 if { (ac_try="$ac_link"
15779 case "(($ac_try" in
15780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15781 *) ac_try_echo=$ac_try;;
15783 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15784 (eval "$ac_link") 2>conftest.er1
15786 grep -v '^ *+' conftest.er1 >conftest.err
15788 cat conftest.err >&5
15789 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15790 (exit $ac_status); } && {
15791 test -z "$ac_c_werror_flag" ||
15792 test ! -s conftest.err
15793 } && test -s conftest$ac_exeext &&
15794 $as_test_x conftest$ac_exeext; then
15795 eval "$as_ac_var=yes"
15797 echo "$as_me: failed program was
:" >&5
15798 sed 's/^/| /' conftest.$ac_ext >&5
15800 eval "$as_ac_var=no
"
15803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15804 conftest$ac_exeext conftest.$ac_ext
15806 ac_res=`eval echo '${'$as_ac_var'}'`
15807 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15808 echo "${ECHO_T}$ac_res" >&6; }
15809 if test `eval echo '${'$as_ac_var'}'` = yes; then
15810 cat >>confdefs.h <<_ACEOF
15811 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15818 for ac_header in maillock.h
15820 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15821 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15822 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15823 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15824 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15825 echo $ECHO_N "(cached
) $ECHO_C" >&6
15827 ac_res=`eval echo '${'$as_ac_Header'}'`
15828 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15829 echo "${ECHO_T}$ac_res" >&6; }
15831 # Is the header compilable?
15832 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15833 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15834 cat >conftest.$ac_ext <<_ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 $ac_includes_default
15841 #include <$ac_header>
15843 rm -f conftest.$ac_objext
15844 if { (ac_try="$ac_compile"
15845 case "(($ac_try" in
15846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15847 *) ac_try_echo=$ac_try;;
15849 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15850 (eval "$ac_compile") 2>conftest.er1
15852 grep -v '^ *+' conftest.er1 >conftest.err
15854 cat conftest.err >&5
15855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15856 (exit $ac_status); } && {
15857 test -z "$ac_c_werror_flag" ||
15858 test ! -s conftest.err
15859 } && test -s conftest.$ac_objext; then
15860 ac_header_compiler=yes
15862 echo "$as_me: failed program was
:" >&5
15863 sed 's/^/| /' conftest.$ac_ext >&5
15865 ac_header_compiler=no
15868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15869 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15870 echo "${ECHO_T}$ac_header_compiler" >&6; }
15872 # Is the header present?
15873 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15874 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15875 cat >conftest.$ac_ext <<_ACEOF
15878 cat confdefs.h >>conftest.$ac_ext
15879 cat >>conftest.$ac_ext <<_ACEOF
15880 /* end confdefs.h. */
15881 #include <$ac_header>
15883 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15884 case "(($ac_try" in
15885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15886 *) ac_try_echo=$ac_try;;
15888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15889 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15891 grep -v '^ *+' conftest.er1 >conftest.err
15893 cat conftest.err >&5
15894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15895 (exit $ac_status); } >/dev/null && {
15896 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15897 test ! -s conftest.err
15899 ac_header_preproc=yes
15901 echo "$as_me: failed program was
:" >&5
15902 sed 's/^/| /' conftest.$ac_ext >&5
15904 ac_header_preproc=no
15907 rm -f conftest.err conftest.$ac_ext
15908 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15909 echo "${ECHO_T}$ac_header_preproc" >&6; }
15911 # So? What about this header?
15912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15914 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15915 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15916 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15918 ac_header_preproc=yes
15921 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15922 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15923 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15924 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15925 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15926 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15927 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15928 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15929 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15931 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15932 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15936 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15937 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15938 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15939 echo $ECHO_N "(cached
) $ECHO_C" >&6
15941 eval "$as_ac_Header=\
$ac_header_preproc"
15943 ac_res=`eval echo '${'$as_ac_Header'}'`
15944 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15945 echo "${ECHO_T}$ac_res" >&6; }
15948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15949 cat >>confdefs.h <<_ACEOF
15950 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16026 for ac_func in gethostname getdomainname dup2 \
16027 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16028 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16029 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16030 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16031 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16032 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16033 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16034 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16036 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16037 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16038 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16039 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16040 echo $ECHO_N "(cached
) $ECHO_C" >&6
16042 cat >conftest.$ac_ext <<_ACEOF
16045 cat confdefs.h >>conftest.$ac_ext
16046 cat >>conftest.$ac_ext <<_ACEOF
16047 /* end confdefs.h. */
16048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16050 #define $ac_func innocuous_$ac_func
16052 /* System header to define __stub macros and hopefully few prototypes,
16053 which can conflict with char $ac_func (); below.
16054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16055 <limits.h> exists even on freestanding compilers. */
16058 # include <limits.h>
16060 # include <assert.h>
16065 /* Override any GCC internal prototype to avoid an error.
16066 Use char because int might match the return type of a GCC
16067 builtin and then its argument prototype would still apply. */
16072 /* The GNU C library defines this for functions which it implements
16073 to always fail with ENOSYS. Some functions are actually named
16074 something starting with __ and the normal name is an alias. */
16075 #if defined __stub_$ac_func || defined __stub___$ac_func
16082 return $ac_func ();
16087 rm -f conftest.$ac_objext conftest$ac_exeext
16088 if { (ac_try="$ac_link"
16089 case "(($ac_try" in
16090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16091 *) ac_try_echo=$ac_try;;
16093 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16094 (eval "$ac_link") 2>conftest.er1
16096 grep -v '^ *+' conftest.er1 >conftest.err
16098 cat conftest.err >&5
16099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16100 (exit $ac_status); } && {
16101 test -z "$ac_c_werror_flag" ||
16102 test ! -s conftest.err
16103 } && test -s conftest$ac_exeext &&
16104 $as_test_x conftest$ac_exeext; then
16105 eval "$as_ac_var=yes"
16107 echo "$as_me: failed program was
:" >&5
16108 sed 's/^/| /' conftest.$ac_ext >&5
16110 eval "$as_ac_var=no
"
16113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16114 conftest$ac_exeext conftest.$ac_ext
16116 ac_res=`eval echo '${'$as_ac_var'}'`
16117 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16118 echo "${ECHO_T}$ac_res" >&6; }
16119 if test `eval echo '${'$as_ac_var'}'` = yes; then
16120 cat >>confdefs.h <<_ACEOF
16121 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16129 for ac_header in sys/un.h
16131 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16132 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16133 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16134 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16135 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16136 echo $ECHO_N "(cached
) $ECHO_C" >&6
16138 ac_res=`eval echo '${'$as_ac_Header'}'`
16139 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16140 echo "${ECHO_T}$ac_res" >&6; }
16142 # Is the header compilable?
16143 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16144 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16145 cat >conftest.$ac_ext <<_ACEOF
16148 cat confdefs.h >>conftest.$ac_ext
16149 cat >>conftest.$ac_ext <<_ACEOF
16150 /* end confdefs.h. */
16151 $ac_includes_default
16152 #include <$ac_header>
16154 rm -f conftest.$ac_objext
16155 if { (ac_try="$ac_compile"
16156 case "(($ac_try" in
16157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16158 *) ac_try_echo=$ac_try;;
16160 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16161 (eval "$ac_compile") 2>conftest.er1
16163 grep -v '^ *+' conftest.er1 >conftest.err
16165 cat conftest.err >&5
16166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16167 (exit $ac_status); } && {
16168 test -z "$ac_c_werror_flag" ||
16169 test ! -s conftest.err
16170 } && test -s conftest.$ac_objext; then
16171 ac_header_compiler=yes
16173 echo "$as_me: failed program was
:" >&5
16174 sed 's/^/| /' conftest.$ac_ext >&5
16176 ac_header_compiler=no
16179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16180 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16181 echo "${ECHO_T}$ac_header_compiler" >&6; }
16183 # Is the header present?
16184 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16185 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16186 cat >conftest.$ac_ext <<_ACEOF
16189 cat confdefs.h >>conftest.$ac_ext
16190 cat >>conftest.$ac_ext <<_ACEOF
16191 /* end confdefs.h. */
16192 #include <$ac_header>
16194 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16195 case "(($ac_try" in
16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16200 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16202 grep -v '^ *+' conftest.er1 >conftest.err
16204 cat conftest.err >&5
16205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16206 (exit $ac_status); } >/dev/null && {
16207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16208 test ! -s conftest.err
16210 ac_header_preproc=yes
16212 echo "$as_me: failed program was
:" >&5
16213 sed 's/^/| /' conftest.$ac_ext >&5
16215 ac_header_preproc=no
16218 rm -f conftest.err conftest.$ac_ext
16219 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16220 echo "${ECHO_T}$ac_header_preproc" >&6; }
16222 # So? What about this header?
16223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16225 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16226 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16227 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16229 ac_header_preproc=yes
16232 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16233 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16234 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16235 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16236 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16237 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16238 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16239 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16240 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16242 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16243 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16247 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16248 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16249 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16250 echo $ECHO_N "(cached
) $ECHO_C" >&6
16252 eval "$as_ac_Header=\
$ac_header_preproc"
16254 ac_res=`eval echo '${'$as_ac_Header'}'`
16255 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16256 echo "${ECHO_T}$ac_res" >&6; }
16259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16260 cat >>confdefs.h <<_ACEOF
16261 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16273 for ac_header in $ac_header_list
16275 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16276 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16277 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16278 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16279 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16280 echo $ECHO_N "(cached
) $ECHO_C" >&6
16282 ac_res=`eval echo '${'$as_ac_Header'}'`
16283 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16284 echo "${ECHO_T}$ac_res" >&6; }
16286 # Is the header compilable?
16287 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16288 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16289 cat >conftest.$ac_ext <<_ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16295 $ac_includes_default
16296 #include <$ac_header>
16298 rm -f conftest.$ac_objext
16299 if { (ac_try="$ac_compile"
16300 case "(($ac_try" in
16301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16302 *) ac_try_echo=$ac_try;;
16304 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16305 (eval "$ac_compile") 2>conftest.er1
16307 grep -v '^ *+' conftest.er1 >conftest.err
16309 cat conftest.err >&5
16310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16311 (exit $ac_status); } && {
16312 test -z "$ac_c_werror_flag" ||
16313 test ! -s conftest.err
16314 } && test -s conftest.$ac_objext; then
16315 ac_header_compiler=yes
16317 echo "$as_me: failed program was
:" >&5
16318 sed 's/^/| /' conftest.$ac_ext >&5
16320 ac_header_compiler=no
16323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16324 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16325 echo "${ECHO_T}$ac_header_compiler" >&6; }
16327 # Is the header present?
16328 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16329 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16330 cat >conftest.$ac_ext <<_ACEOF
16333 cat confdefs.h >>conftest.$ac_ext
16334 cat >>conftest.$ac_ext <<_ACEOF
16335 /* end confdefs.h. */
16336 #include <$ac_header>
16338 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16339 case "(($ac_try" in
16340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16341 *) ac_try_echo=$ac_try;;
16343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16344 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16346 grep -v '^ *+' conftest.er1 >conftest.err
16348 cat conftest.err >&5
16349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16350 (exit $ac_status); } >/dev/null && {
16351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16352 test ! -s conftest.err
16354 ac_header_preproc=yes
16356 echo "$as_me: failed program was
:" >&5
16357 sed 's/^/| /' conftest.$ac_ext >&5
16359 ac_header_preproc=no
16362 rm -f conftest.err conftest.$ac_ext
16363 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16364 echo "${ECHO_T}$ac_header_preproc" >&6; }
16366 # So? What about this header?
16367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16369 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16370 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16371 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16372 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16373 ac_header_preproc=yes
16376 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16377 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16378 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16379 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16380 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16381 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16382 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16383 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16384 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16385 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16386 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16387 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16391 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16392 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16393 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16394 echo $ECHO_N "(cached
) $ECHO_C" >&6
16396 eval "$as_ac_Header=\
$ac_header_preproc"
16398 ac_res=`eval echo '${'$as_ac_Header'}'`
16399 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16400 echo "${ECHO_T}$ac_res" >&6; }
16403 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16404 cat >>confdefs.h <<_ACEOF
16405 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16420 for ac_func in $ac_func_list
16422 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16423 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16424 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16425 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16426 echo $ECHO_N "(cached
) $ECHO_C" >&6
16428 cat >conftest.$ac_ext <<_ACEOF
16431 cat confdefs.h >>conftest.$ac_ext
16432 cat >>conftest.$ac_ext <<_ACEOF
16433 /* end confdefs.h. */
16434 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16435 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16436 #define $ac_func innocuous_$ac_func
16438 /* System header to define __stub macros and hopefully few prototypes,
16439 which can conflict with char $ac_func (); below.
16440 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16441 <limits.h> exists even on freestanding compilers. */
16444 # include <limits.h>
16446 # include <assert.h>
16451 /* Override any GCC internal prototype to avoid an error.
16452 Use char because int might match the return type of a GCC
16453 builtin and then its argument prototype would still apply. */
16458 /* The GNU C library defines this for functions which it implements
16459 to always fail with ENOSYS. Some functions are actually named
16460 something starting with __ and the normal name is an alias. */
16461 #if defined __stub_$ac_func || defined __stub___$ac_func
16468 return $ac_func ();
16473 rm -f conftest.$ac_objext conftest$ac_exeext
16474 if { (ac_try="$ac_link"
16475 case "(($ac_try" in
16476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16477 *) ac_try_echo=$ac_try;;
16479 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16480 (eval "$ac_link") 2>conftest.er1
16482 grep -v '^ *+' conftest.er1 >conftest.err
16484 cat conftest.err >&5
16485 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16486 (exit $ac_status); } && {
16487 test -z "$ac_c_werror_flag" ||
16488 test ! -s conftest.err
16489 } && test -s conftest$ac_exeext &&
16490 $as_test_x conftest$ac_exeext; then
16491 eval "$as_ac_var=yes"
16493 echo "$as_me: failed program was
:" >&5
16494 sed 's/^/| /' conftest.$ac_ext >&5
16496 eval "$as_ac_var=no
"
16499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16500 conftest$ac_exeext conftest.$ac_ext
16502 ac_res=`eval echo '${'$as_ac_var'}'`
16503 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16504 echo "${ECHO_T}$ac_res" >&6; }
16505 if test `eval echo '${'$as_ac_var'}'` = yes; then
16506 cat >>confdefs.h <<_ACEOF
16507 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16529 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16530 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16531 if test "${ac_cv_func_working_mktime+set}" = set; then
16532 echo $ECHO_N "(cached
) $ECHO_C" >&6
16534 if test "$cross_compiling" = yes; then
16535 ac_cv_func_working_mktime=no
16537 cat >conftest.$ac_ext <<_ACEOF
16540 cat confdefs.h >>conftest.$ac_ext
16541 cat >>conftest.$ac_ext <<_ACEOF
16542 /* end confdefs.h. */
16543 /* Test program from Paul Eggert and Tony Leneis. */
16544 #ifdef TIME_WITH_SYS_TIME
16545 # include <sys/time.h>
16548 # ifdef HAVE_SYS_TIME_H
16549 # include <sys/time.h>
16555 #include <stdlib.h>
16557 #ifdef HAVE_UNISTD_H
16558 # include <unistd.h>
16562 # define alarm(X) /* empty */
16565 /* Work around redefinition to rpl_putenv by other config tests. */
16568 static time_t time_t_max;
16569 static time_t time_t_min;
16571 /* Values we'll use to set the TZ environment variable. */
16572 static char *tz_strings[] = {
16573 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16574 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16576 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16578 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16579 Based on a problem report from Andreas Jaeger. */
16581 spring_forward_gap ()
16583 /* glibc (up to about 1998-10-07) failed this test. */
16586 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16587 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16588 on systems that don't support the Olson extension, or don't have the
16589 full zoneinfo tables installed. */
16590 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16599 return mktime (&tm) != (time_t) -1;
16607 return ! (lt = localtime (&now)) || mktime (lt) == now;
16614 return (mktime_test1 (now)
16615 && mktime_test1 ((time_t) (time_t_max - now))
16616 && mktime_test1 ((time_t) (time_t_min + now)));
16622 /* Based on code from Ariel Faigon. */
16632 return tm.tm_mon == 2 && tm.tm_mday == 31;
16641 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16642 now = mktime (&tm);
16643 if (now != (time_t) -1)
16645 struct tm *lt = localtime (&now);
16647 && lt->tm_year == tm.tm_year
16648 && lt->tm_mon == tm.tm_mon
16649 && lt->tm_mday == tm.tm_mday
16650 && lt->tm_hour == tm.tm_hour
16651 && lt->tm_min == tm.tm_min
16652 && lt->tm_sec == tm.tm_sec
16653 && lt->tm_yday == tm.tm_yday
16654 && lt->tm_wday == tm.tm_wday
16655 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16656 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16665 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16666 ignoring leap seconds. */
16667 unsigned long int answer = 2527315200UL;
16671 tm.tm_year = 2050 - 1900;
16674 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16677 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16678 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16679 on systems that don't support the Olson extension, or don't have the
16680 full zoneinfo tables installed. */
16681 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16685 /* Check that the result is either a failure, or close enough
16686 to the correct answer that we can assume the discrepancy is
16687 due to leap seconds. */
16688 return (t == (time_t) -1
16689 || (0 < t && answer - 120 <= t && t <= answer + 120));
16698 /* This test makes some buggy mktime implementations loop.
16699 Give up after 60 seconds; a mktime slower than that
16700 isn't worth using anyway. */
16703 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16706 if ((time_t) -1 < 0)
16707 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16709 delta = time_t_max / 997; /* a suitable prime number */
16710 for (i = 0; i < N_STRINGS; i++)
16713 putenv (tz_strings[i]);
16715 for (t = 0; t <= time_t_max - delta; t += delta)
16716 if (! mktime_test (t))
16718 if (! (mktime_test ((time_t) 1)
16719 && mktime_test ((time_t) (60 * 60))
16720 && mktime_test ((time_t) (60 * 60 * 24))))
16723 for (j = 1; 0 < j; j *= 2)
16724 if (! bigtime_test (j))
16726 if (! bigtime_test (j - 1))
16729 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16732 rm -f conftest$ac_exeext
16733 if { (ac_try="$ac_link"
16734 case "(($ac_try" in
16735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16736 *) ac_try_echo=$ac_try;;
16738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16739 (eval "$ac_link") 2>&5
16741 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16742 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16743 { (case "(($ac_try" in
16744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16745 *) ac_try_echo=$ac_try;;
16747 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16748 (eval "$ac_try") 2>&5
16750 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16751 (exit $ac_status); }; }; then
16752 ac_cv_func_working_mktime=yes
16754 echo "$as_me: program exited with status
$ac_status" >&5
16755 echo "$as_me: failed program was
:" >&5
16756 sed 's/^/| /' conftest.$ac_ext >&5
16758 ( exit $ac_status )
16759 ac_cv_func_working_mktime=no
16761 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16766 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16767 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16768 if test $ac_cv_func_working_mktime = no; then
16769 case " $LIBOBJS " in
16770 *" mktime.
$ac_objext "* ) ;;
16771 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16777 if test "$ac_cv_func_working_mktime" = no; then
16779 cat >>confdefs.h <<\_ACEOF
16780 #define BROKEN_MKTIME 1
16785 ac_have_func=no # yes means we've found a way to get the load average.
16787 # Make sure getloadavg.c is where it belongs, at configure-time.
16788 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16789 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16790 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16791 { (exit 1); exit 1; }; }
16795 # Check for getloadavg, but be sure not to touch the cache variable.
16796 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16797 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16798 if test "${ac_cv_func_getloadavg+set}" = set; then
16799 echo $ECHO_N "(cached
) $ECHO_C" >&6
16801 cat >conftest.$ac_ext <<_ACEOF
16804 cat confdefs.h >>conftest.$ac_ext
16805 cat >>conftest.$ac_ext <<_ACEOF
16806 /* end confdefs.h. */
16807 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16808 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16809 #define getloadavg innocuous_getloadavg
16811 /* System header to define __stub macros and hopefully few prototypes,
16812 which can conflict with char getloadavg (); below.
16813 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16814 <limits.h> exists even on freestanding compilers. */
16817 # include <limits.h>
16819 # include <assert.h>
16824 /* Override any GCC internal prototype to avoid an error.
16825 Use char because int might match the return type of a GCC
16826 builtin and then its argument prototype would still apply. */
16830 char getloadavg ();
16831 /* The GNU C library defines this for functions which it implements
16832 to always fail with ENOSYS. Some functions are actually named
16833 something starting with __ and the normal name is an alias. */
16834 #if defined __stub_getloadavg || defined __stub___getloadavg
16841 return getloadavg ();
16846 rm -f conftest.$ac_objext conftest$ac_exeext
16847 if { (ac_try="$ac_link"
16848 case "(($ac_try" in
16849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16850 *) ac_try_echo=$ac_try;;
16852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16853 (eval "$ac_link") 2>conftest.er1
16855 grep -v '^ *+' conftest.er1 >conftest.err
16857 cat conftest.err >&5
16858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16859 (exit $ac_status); } && {
16860 test -z "$ac_c_werror_flag" ||
16861 test ! -s conftest.err
16862 } && test -s conftest$ac_exeext &&
16863 $as_test_x conftest$ac_exeext; then
16864 ac_cv_func_getloadavg=yes
16866 echo "$as_me: failed program was
:" >&5
16867 sed 's/^/| /' conftest.$ac_ext >&5
16869 ac_cv_func_getloadavg=no
16872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16873 conftest$ac_exeext conftest.$ac_ext
16875 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16876 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16877 if test $ac_cv_func_getloadavg = yes; then
16882 ) && ac_have_func=yes
16884 # On HPUX9, an unprivileged user can get load averages through this function.
16886 for ac_func in pstat_getdynamic
16888 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16889 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16890 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16891 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16892 echo $ECHO_N "(cached
) $ECHO_C" >&6
16894 cat >conftest.$ac_ext <<_ACEOF
16897 cat confdefs.h >>conftest.$ac_ext
16898 cat >>conftest.$ac_ext <<_ACEOF
16899 /* end confdefs.h. */
16900 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16901 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16902 #define $ac_func innocuous_$ac_func
16904 /* System header to define __stub macros and hopefully few prototypes,
16905 which can conflict with char $ac_func (); below.
16906 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16907 <limits.h> exists even on freestanding compilers. */
16910 # include <limits.h>
16912 # include <assert.h>
16917 /* Override any GCC internal prototype to avoid an error.
16918 Use char because int might match the return type of a GCC
16919 builtin and then its argument prototype would still apply. */
16924 /* The GNU C library defines this for functions which it implements
16925 to always fail with ENOSYS. Some functions are actually named
16926 something starting with __ and the normal name is an alias. */
16927 #if defined __stub_$ac_func || defined __stub___$ac_func
16934 return $ac_func ();
16939 rm -f conftest.$ac_objext conftest$ac_exeext
16940 if { (ac_try="$ac_link"
16941 case "(($ac_try" in
16942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16943 *) ac_try_echo=$ac_try;;
16945 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16946 (eval "$ac_link") 2>conftest.er1
16948 grep -v '^ *+' conftest.er1 >conftest.err
16950 cat conftest.err >&5
16951 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16952 (exit $ac_status); } && {
16953 test -z "$ac_c_werror_flag" ||
16954 test ! -s conftest.err
16955 } && test -s conftest$ac_exeext &&
16956 $as_test_x conftest$ac_exeext; then
16957 eval "$as_ac_var=yes"
16959 echo "$as_me: failed program was
:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16962 eval "$as_ac_var=no
"
16965 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16966 conftest$ac_exeext conftest.$ac_ext
16968 ac_res=`eval echo '${'$as_ac_var'}'`
16969 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16970 echo "${ECHO_T}$ac_res" >&6; }
16971 if test `eval echo '${'$as_ac_var'}'` = yes; then
16972 cat >>confdefs.h <<_ACEOF
16973 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16980 # Solaris has libkstat which does not require root.
16982 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16983 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16984 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16985 echo $ECHO_N "(cached
) $ECHO_C" >&6
16987 ac_check_lib_save_LIBS=$LIBS
16988 LIBS="-lkstat $LIBS"
16989 cat >conftest.$ac_ext <<_ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16996 /* Override any GCC internal prototype to avoid an error.
16997 Use char because int might match the return type of a GCC
16998 builtin and then its argument prototype would still apply. */
17002 char kstat_open ();
17006 return kstat_open ();
17011 rm -f conftest.$ac_objext conftest$ac_exeext
17012 if { (ac_try="$ac_link"
17013 case "(($ac_try" in
17014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17015 *) ac_try_echo=$ac_try;;
17017 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17018 (eval "$ac_link") 2>conftest.er1
17020 grep -v '^ *+' conftest.er1 >conftest.err
17022 cat conftest.err >&5
17023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17024 (exit $ac_status); } && {
17025 test -z "$ac_c_werror_flag" ||
17026 test ! -s conftest.err
17027 } && test -s conftest$ac_exeext &&
17028 $as_test_x conftest$ac_exeext; then
17029 ac_cv_lib_kstat_kstat_open=yes
17031 echo "$as_me: failed program was
:" >&5
17032 sed 's/^/| /' conftest.$ac_ext >&5
17034 ac_cv_lib_kstat_kstat_open=no
17037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17038 conftest$ac_exeext conftest.$ac_ext
17039 LIBS=$ac_check_lib_save_LIBS
17041 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17042 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17043 if test $ac_cv_lib_kstat_kstat_open = yes; then
17044 cat >>confdefs.h <<_ACEOF
17045 #define HAVE_LIBKSTAT 1
17048 LIBS="-lkstat $LIBS"
17052 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17054 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17055 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17056 # to get the right answer into the cache.
17057 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17058 if test $ac_have_func = no; then
17059 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17060 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17061 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17062 echo $ECHO_N "(cached
) $ECHO_C" >&6
17064 ac_check_lib_save_LIBS=$LIBS
17066 cat >conftest.$ac_ext <<_ACEOF
17069 cat confdefs.h >>conftest.$ac_ext
17070 cat >>conftest.$ac_ext <<_ACEOF
17071 /* end confdefs.h. */
17073 /* Override any GCC internal prototype to avoid an error.
17074 Use char because int might match the return type of a GCC
17075 builtin and then its argument prototype would still apply. */
17083 return elf_begin ();
17088 rm -f conftest.$ac_objext conftest$ac_exeext
17089 if { (ac_try="$ac_link"
17090 case "(($ac_try" in
17091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17092 *) ac_try_echo=$ac_try;;
17094 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17095 (eval "$ac_link") 2>conftest.er1
17097 grep -v '^ *+' conftest.er1 >conftest.err
17099 cat conftest.err >&5
17100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17101 (exit $ac_status); } && {
17102 test -z "$ac_c_werror_flag" ||
17103 test ! -s conftest.err
17104 } && test -s conftest$ac_exeext &&
17105 $as_test_x conftest$ac_exeext; then
17106 ac_cv_lib_elf_elf_begin=yes
17108 echo "$as_me: failed program was
:" >&5
17109 sed 's/^/| /' conftest.$ac_ext >&5
17111 ac_cv_lib_elf_elf_begin=no
17114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17115 conftest$ac_exeext conftest.$ac_ext
17116 LIBS=$ac_check_lib_save_LIBS
17118 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17119 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17120 if test $ac_cv_lib_elf_elf_begin = yes; then
17125 if test $ac_have_func = no; then
17126 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17127 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17128 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17129 echo $ECHO_N "(cached
) $ECHO_C" >&6
17131 ac_check_lib_save_LIBS=$LIBS
17133 cat >conftest.$ac_ext <<_ACEOF
17136 cat confdefs.h >>conftest.$ac_ext
17137 cat >>conftest.$ac_ext <<_ACEOF
17138 /* end confdefs.h. */
17140 /* Override any GCC internal prototype to avoid an error.
17141 Use char because int might match the return type of a GCC
17142 builtin and then its argument prototype would still apply. */
17150 return kvm_open ();
17155 rm -f conftest.$ac_objext conftest$ac_exeext
17156 if { (ac_try="$ac_link"
17157 case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_link") 2>conftest.er1
17164 grep -v '^ *+' conftest.er1 >conftest.err
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17168 (exit $ac_status); } && {
17169 test -z "$ac_c_werror_flag" ||
17170 test ! -s conftest.err
17171 } && test -s conftest$ac_exeext &&
17172 $as_test_x conftest$ac_exeext; then
17173 ac_cv_lib_kvm_kvm_open=yes
17175 echo "$as_me: failed program was
:" >&5
17176 sed 's/^/| /' conftest.$ac_ext >&5
17178 ac_cv_lib_kvm_kvm_open=no
17181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17182 conftest$ac_exeext conftest.$ac_ext
17183 LIBS=$ac_check_lib_save_LIBS
17185 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17186 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17187 if test $ac_cv_lib_kvm_kvm_open = yes; then
17191 # Check for the 4.4BSD definition of getloadavg.
17192 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17193 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17194 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17195 echo $ECHO_N "(cached
) $ECHO_C" >&6
17197 ac_check_lib_save_LIBS=$LIBS
17198 LIBS="-lutil $LIBS"
17199 cat >conftest.$ac_ext <<_ACEOF
17202 cat confdefs.h >>conftest.$ac_ext
17203 cat >>conftest.$ac_ext <<_ACEOF
17204 /* end confdefs.h. */
17206 /* Override any GCC internal prototype to avoid an error.
17207 Use char because int might match the return type of a GCC
17208 builtin and then its argument prototype would still apply. */
17212 char getloadavg ();
17216 return getloadavg ();
17221 rm -f conftest.$ac_objext conftest$ac_exeext
17222 if { (ac_try="$ac_link"
17223 case "(($ac_try" in
17224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17225 *) ac_try_echo=$ac_try;;
17227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17228 (eval "$ac_link") 2>conftest.er1
17230 grep -v '^ *+' conftest.er1 >conftest.err
17232 cat conftest.err >&5
17233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17234 (exit $ac_status); } && {
17235 test -z "$ac_c_werror_flag" ||
17236 test ! -s conftest.err
17237 } && test -s conftest$ac_exeext &&
17238 $as_test_x conftest$ac_exeext; then
17239 ac_cv_lib_util_getloadavg=yes
17241 echo "$as_me: failed program was
:" >&5
17242 sed 's/^/| /' conftest.$ac_ext >&5
17244 ac_cv_lib_util_getloadavg=no
17247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17248 conftest$ac_exeext conftest.$ac_ext
17249 LIBS=$ac_check_lib_save_LIBS
17251 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17252 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17253 if test $ac_cv_lib_util_getloadavg = yes; then
17254 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17259 if test $ac_have_func = no; then
17260 # There is a commonly available library for RS/6000 AIX.
17261 # Since it is not a standard part of AIX, it might be installed locally.
17262 ac_getloadavg_LIBS=$LIBS
17263 LIBS="-L/usr
/local
/lib
$LIBS"
17264 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17265 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17266 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17267 echo $ECHO_N "(cached
) $ECHO_C" >&6
17269 ac_check_lib_save_LIBS=$LIBS
17270 LIBS="-lgetloadavg $LIBS"
17271 cat >conftest.$ac_ext <<_ACEOF
17274 cat confdefs.h >>conftest.$ac_ext
17275 cat >>conftest.$ac_ext <<_ACEOF
17276 /* end confdefs.h. */
17278 /* Override any GCC internal prototype to avoid an error.
17279 Use char because int might match the return type of a GCC
17280 builtin and then its argument prototype would still apply. */
17284 char getloadavg ();
17288 return getloadavg ();
17293 rm -f conftest.$ac_objext conftest$ac_exeext
17294 if { (ac_try="$ac_link"
17295 case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_link") 2>conftest.er1
17302 grep -v '^ *+' conftest.er1 >conftest.err
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17306 (exit $ac_status); } && {
17307 test -z "$ac_c_werror_flag" ||
17308 test ! -s conftest.err
17309 } && test -s conftest$ac_exeext &&
17310 $as_test_x conftest$ac_exeext; then
17311 ac_cv_lib_getloadavg_getloadavg=yes
17313 echo "$as_me: failed program was
:" >&5
17314 sed 's/^/| /' conftest.$ac_ext >&5
17316 ac_cv_lib_getloadavg_getloadavg=no
17319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17320 conftest$ac_exeext conftest.$ac_ext
17321 LIBS=$ac_check_lib_save_LIBS
17323 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17324 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17325 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17326 LIBS="-lgetloadavg $LIBS"
17328 LIBS=$ac_getloadavg_LIBS
17333 # Make sure it is really in the library, if we think we found it,
17334 # otherwise set up the replacement function.
17336 for ac_func in getloadavg
17338 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17339 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17340 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17341 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17342 echo $ECHO_N "(cached
) $ECHO_C" >&6
17344 cat >conftest.$ac_ext <<_ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17352 #define $ac_func innocuous_$ac_func
17354 /* System header to define __stub macros and hopefully few prototypes,
17355 which can conflict with char $ac_func (); below.
17356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17357 <limits.h> exists even on freestanding compilers. */
17360 # include <limits.h>
17362 # include <assert.h>
17367 /* Override any GCC internal prototype to avoid an error.
17368 Use char because int might match the return type of a GCC
17369 builtin and then its argument prototype would still apply. */
17374 /* The GNU C library defines this for functions which it implements
17375 to always fail with ENOSYS. Some functions are actually named
17376 something starting with __ and the normal name is an alias. */
17377 #if defined __stub_$ac_func || defined __stub___$ac_func
17384 return $ac_func ();
17389 rm -f conftest.$ac_objext conftest$ac_exeext
17390 if { (ac_try="$ac_link"
17391 case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_link") 2>conftest.er1
17398 grep -v '^ *+' conftest.er1 >conftest.err
17400 cat conftest.err >&5
17401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17402 (exit $ac_status); } && {
17403 test -z "$ac_c_werror_flag" ||
17404 test ! -s conftest.err
17405 } && test -s conftest$ac_exeext &&
17406 $as_test_x conftest$ac_exeext; then
17407 eval "$as_ac_var=yes"
17409 echo "$as_me: failed program was
:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17412 eval "$as_ac_var=no
"
17415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17416 conftest$ac_exeext conftest.$ac_ext
17418 ac_res=`eval echo '${'$as_ac_var'}'`
17419 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17420 echo "${ECHO_T}$ac_res" >&6; }
17421 if test `eval echo '${'$as_ac_var'}'` = yes; then
17422 cat >>confdefs.h <<_ACEOF
17423 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17427 case " $LIBOBJS " in
17428 *" getloadavg.
$ac_objext "* ) ;;
17429 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17434 cat >>confdefs.h <<\_ACEOF
17435 #define C_GETLOADAVG 1
17438 # Figure out what our getloadavg.c needs.
17440 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17441 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17442 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17443 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17444 echo $ECHO_N "(cached
) $ECHO_C" >&6
17446 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17447 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17449 # Is the header compilable?
17450 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17451 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17452 cat >conftest.$ac_ext <<_ACEOF
17455 cat confdefs.h >>conftest.$ac_ext
17456 cat >>conftest.$ac_ext <<_ACEOF
17457 /* end confdefs.h. */
17458 $ac_includes_default
17459 #include <sys/dg_sys_info.h>
17461 rm -f conftest.$ac_objext
17462 if { (ac_try="$ac_compile"
17463 case "(($ac_try" in
17464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17465 *) ac_try_echo=$ac_try;;
17467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17468 (eval "$ac_compile") 2>conftest.er1
17470 grep -v '^ *+' conftest.er1 >conftest.err
17472 cat conftest.err >&5
17473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17474 (exit $ac_status); } && {
17475 test -z "$ac_c_werror_flag" ||
17476 test ! -s conftest.err
17477 } && test -s conftest.$ac_objext; then
17478 ac_header_compiler=yes
17480 echo "$as_me: failed program was
:" >&5
17481 sed 's/^/| /' conftest.$ac_ext >&5
17483 ac_header_compiler=no
17486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17487 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17488 echo "${ECHO_T}$ac_header_compiler" >&6; }
17490 # Is the header present?
17491 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17492 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17493 cat >conftest.$ac_ext <<_ACEOF
17496 cat confdefs.h >>conftest.$ac_ext
17497 cat >>conftest.$ac_ext <<_ACEOF
17498 /* end confdefs.h. */
17499 #include <sys/dg_sys_info.h>
17501 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17502 case "(($ac_try" in
17503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504 *) ac_try_echo=$ac_try;;
17506 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17507 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17509 grep -v '^ *+' conftest.er1 >conftest.err
17511 cat conftest.err >&5
17512 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17513 (exit $ac_status); } >/dev/null && {
17514 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17515 test ! -s conftest.err
17517 ac_header_preproc=yes
17519 echo "$as_me: failed program was
:" >&5
17520 sed 's/^/| /' conftest.$ac_ext >&5
17522 ac_header_preproc=no
17525 rm -f conftest.err conftest.$ac_ext
17526 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17527 echo "${ECHO_T}$ac_header_preproc" >&6; }
17529 # So? What about this header?
17530 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17532 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17533 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17534 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17535 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17536 ac_header_preproc=yes
17539 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17540 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17541 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17542 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17543 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17544 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17545 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17546 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17547 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17548 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17549 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17550 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17554 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17555 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17556 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17557 echo $ECHO_N "(cached
) $ECHO_C" >&6
17559 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17561 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17562 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17565 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17568 cat >>confdefs.h <<\_ACEOF
17573 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17574 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17575 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17576 echo $ECHO_N "(cached
) $ECHO_C" >&6
17578 ac_check_lib_save_LIBS=$LIBS
17580 cat >conftest.$ac_ext <<_ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h. */
17587 /* Override any GCC internal prototype to avoid an error.
17588 Use char because int might match the return type of a GCC
17589 builtin and then its argument prototype would still apply. */
17593 char dg_sys_info ();
17597 return dg_sys_info ();
17602 rm -f conftest.$ac_objext conftest$ac_exeext
17603 if { (ac_try="$ac_link"
17604 case "(($ac_try" in
17605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17606 *) ac_try_echo=$ac_try;;
17608 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17609 (eval "$ac_link") 2>conftest.er1
17611 grep -v '^ *+' conftest.er1 >conftest.err
17613 cat conftest.err >&5
17614 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17615 (exit $ac_status); } && {
17616 test -z "$ac_c_werror_flag" ||
17617 test ! -s conftest.err
17618 } && test -s conftest$ac_exeext &&
17619 $as_test_x conftest$ac_exeext; then
17620 ac_cv_lib_dgc_dg_sys_info=yes
17622 echo "$as_me: failed program was
:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17625 ac_cv_lib_dgc_dg_sys_info=no
17628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17629 conftest$ac_exeext conftest.$ac_ext
17630 LIBS=$ac_check_lib_save_LIBS
17632 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17633 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17634 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17635 cat >>confdefs.h <<_ACEOF
17636 #define HAVE_LIBDGC 1
17647 if test "${ac_cv_header_locale_h+set}" = set; then
17648 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17649 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17650 if test "${ac_cv_header_locale_h+set}" = set; then
17651 echo $ECHO_N "(cached
) $ECHO_C" >&6
17653 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17654 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17656 # Is the header compilable?
17657 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17658 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17659 cat >conftest.$ac_ext <<_ACEOF
17662 cat confdefs.h >>conftest.$ac_ext
17663 cat >>conftest.$ac_ext <<_ACEOF
17664 /* end confdefs.h. */
17665 $ac_includes_default
17666 #include <locale.h>
17668 rm -f conftest.$ac_objext
17669 if { (ac_try="$ac_compile"
17670 case "(($ac_try" in
17671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17672 *) ac_try_echo=$ac_try;;
17674 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17675 (eval "$ac_compile") 2>conftest.er1
17677 grep -v '^ *+' conftest.er1 >conftest.err
17679 cat conftest.err >&5
17680 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17681 (exit $ac_status); } && {
17682 test -z "$ac_c_werror_flag" ||
17683 test ! -s conftest.err
17684 } && test -s conftest.$ac_objext; then
17685 ac_header_compiler=yes
17687 echo "$as_me: failed program was
:" >&5
17688 sed 's/^/| /' conftest.$ac_ext >&5
17690 ac_header_compiler=no
17693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17694 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17695 echo "${ECHO_T}$ac_header_compiler" >&6; }
17697 # Is the header present?
17698 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17699 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17700 cat >conftest.$ac_ext <<_ACEOF
17703 cat confdefs.h >>conftest.$ac_ext
17704 cat >>conftest.$ac_ext <<_ACEOF
17705 /* end confdefs.h. */
17706 #include <locale.h>
17708 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17709 case "(($ac_try" in
17710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17711 *) ac_try_echo=$ac_try;;
17713 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17714 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17716 grep -v '^ *+' conftest.er1 >conftest.err
17718 cat conftest.err >&5
17719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17720 (exit $ac_status); } >/dev/null && {
17721 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17722 test ! -s conftest.err
17724 ac_header_preproc=yes
17726 echo "$as_me: failed program was
:" >&5
17727 sed 's/^/| /' conftest.$ac_ext >&5
17729 ac_header_preproc=no
17732 rm -f conftest.err conftest.$ac_ext
17733 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17734 echo "${ECHO_T}$ac_header_preproc" >&6; }
17736 # So? What about this header?
17737 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17739 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17740 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17741 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17742 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17743 ac_header_preproc=yes
17746 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17747 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17748 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17749 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17750 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17751 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17752 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17753 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17754 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17755 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17756 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17757 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17761 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17762 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17763 if test "${ac_cv_header_locale_h+set}" = set; then
17764 echo $ECHO_N "(cached
) $ECHO_C" >&6
17766 ac_cv_header_locale_h=$ac_header_preproc
17768 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17769 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17775 for ac_func in setlocale
17777 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17778 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17779 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17780 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17781 echo $ECHO_N "(cached
) $ECHO_C" >&6
17783 cat >conftest.$ac_ext <<_ACEOF
17786 cat confdefs.h >>conftest.$ac_ext
17787 cat >>conftest.$ac_ext <<_ACEOF
17788 /* end confdefs.h. */
17789 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17790 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17791 #define $ac_func innocuous_$ac_func
17793 /* System header to define __stub macros and hopefully few prototypes,
17794 which can conflict with char $ac_func (); below.
17795 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17796 <limits.h> exists even on freestanding compilers. */
17799 # include <limits.h>
17801 # include <assert.h>
17806 /* Override any GCC internal prototype to avoid an error.
17807 Use char because int might match the return type of a GCC
17808 builtin and then its argument prototype would still apply. */
17813 /* The GNU C library defines this for functions which it implements
17814 to always fail with ENOSYS. Some functions are actually named
17815 something starting with __ and the normal name is an alias. */
17816 #if defined __stub_$ac_func || defined __stub___$ac_func
17823 return $ac_func ();
17828 rm -f conftest.$ac_objext conftest$ac_exeext
17829 if { (ac_try="$ac_link"
17830 case "(($ac_try" in
17831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17832 *) ac_try_echo=$ac_try;;
17834 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17835 (eval "$ac_link") 2>conftest.er1
17837 grep -v '^ *+' conftest.er1 >conftest.err
17839 cat conftest.err >&5
17840 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17841 (exit $ac_status); } && {
17842 test -z "$ac_c_werror_flag" ||
17843 test ! -s conftest.err
17844 } && test -s conftest$ac_exeext &&
17845 $as_test_x conftest$ac_exeext; then
17846 eval "$as_ac_var=yes"
17848 echo "$as_me: failed program was
:" >&5
17849 sed 's/^/| /' conftest.$ac_ext >&5
17851 eval "$as_ac_var=no
"
17854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17855 conftest$ac_exeext conftest.$ac_ext
17857 ac_res=`eval echo '${'$as_ac_var'}'`
17858 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17859 echo "${ECHO_T}$ac_res" >&6; }
17860 if test `eval echo '${'$as_ac_var'}'` = yes; then
17861 cat >>confdefs.h <<_ACEOF
17862 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17869 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17870 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17871 # Irix 4.0.5F has the header but not the library.
17872 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17875 cat >>confdefs.h <<\_ACEOF
17881 if test $ac_have_func = no; then
17882 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17883 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17884 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17885 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17886 echo $ECHO_N "(cached
) $ECHO_C" >&6
17888 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17889 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17891 # Is the header compilable?
17892 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17893 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17894 cat >conftest.$ac_ext <<_ACEOF
17897 cat confdefs.h >>conftest.$ac_ext
17898 cat >>conftest.$ac_ext <<_ACEOF
17899 /* end confdefs.h. */
17900 $ac_includes_default
17901 #include <inq_stats/cpustats.h>
17903 rm -f conftest.$ac_objext
17904 if { (ac_try="$ac_compile"
17905 case "(($ac_try" in
17906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17907 *) ac_try_echo=$ac_try;;
17909 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17910 (eval "$ac_compile") 2>conftest.er1
17912 grep -v '^ *+' conftest.er1 >conftest.err
17914 cat conftest.err >&5
17915 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17916 (exit $ac_status); } && {
17917 test -z "$ac_c_werror_flag" ||
17918 test ! -s conftest.err
17919 } && test -s conftest.$ac_objext; then
17920 ac_header_compiler=yes
17922 echo "$as_me: failed program was
:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17925 ac_header_compiler=no
17928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17929 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17930 echo "${ECHO_T}$ac_header_compiler" >&6; }
17932 # Is the header present?
17933 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17934 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17935 cat >conftest.$ac_ext <<_ACEOF
17938 cat confdefs.h >>conftest.$ac_ext
17939 cat >>conftest.$ac_ext <<_ACEOF
17940 /* end confdefs.h. */
17941 #include <inq_stats/cpustats.h>
17943 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17944 case "(($ac_try" in
17945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17946 *) ac_try_echo=$ac_try;;
17948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17949 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17951 grep -v '^ *+' conftest.er1 >conftest.err
17953 cat conftest.err >&5
17954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17955 (exit $ac_status); } >/dev/null && {
17956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17957 test ! -s conftest.err
17959 ac_header_preproc=yes
17961 echo "$as_me: failed program was
:" >&5
17962 sed 's/^/| /' conftest.$ac_ext >&5
17964 ac_header_preproc=no
17967 rm -f conftest.err conftest.$ac_ext
17968 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17969 echo "${ECHO_T}$ac_header_preproc" >&6; }
17971 # So? What about this header?
17972 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17974 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17975 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17976 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17977 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17978 ac_header_preproc=yes
17981 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17982 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17983 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17984 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17985 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17986 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17987 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17988 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17989 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17990 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17991 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17992 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17996 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17997 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17998 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17999 echo $ECHO_N "(cached
) $ECHO_C" >&6
18001 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18003 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18004 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18007 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18010 cat >>confdefs.h <<\_ACEOF
18015 cat >>confdefs.h <<\_ACEOF
18024 if test $ac_have_func = no; then
18025 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18026 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18027 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18028 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18029 echo $ECHO_N "(cached
) $ECHO_C" >&6
18031 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18032 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18034 # Is the header compilable?
18035 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18036 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18037 cat >conftest.$ac_ext <<_ACEOF
18040 cat confdefs.h >>conftest.$ac_ext
18041 cat >>conftest.$ac_ext <<_ACEOF
18042 /* end confdefs.h. */
18043 $ac_includes_default
18044 #include <sys/cpustats.h>
18046 rm -f conftest.$ac_objext
18047 if { (ac_try="$ac_compile"
18048 case "(($ac_try" in
18049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18050 *) ac_try_echo=$ac_try;;
18052 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18053 (eval "$ac_compile") 2>conftest.er1
18055 grep -v '^ *+' conftest.er1 >conftest.err
18057 cat conftest.err >&5
18058 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18059 (exit $ac_status); } && {
18060 test -z "$ac_c_werror_flag" ||
18061 test ! -s conftest.err
18062 } && test -s conftest.$ac_objext; then
18063 ac_header_compiler=yes
18065 echo "$as_me: failed program was
:" >&5
18066 sed 's/^/| /' conftest.$ac_ext >&5
18068 ac_header_compiler=no
18071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18072 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18073 echo "${ECHO_T}$ac_header_compiler" >&6; }
18075 # Is the header present?
18076 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18077 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18078 cat >conftest.$ac_ext <<_ACEOF
18081 cat confdefs.h >>conftest.$ac_ext
18082 cat >>conftest.$ac_ext <<_ACEOF
18083 /* end confdefs.h. */
18084 #include <sys/cpustats.h>
18086 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18087 case "(($ac_try" in
18088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18089 *) ac_try_echo=$ac_try;;
18091 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18092 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18094 grep -v '^ *+' conftest.er1 >conftest.err
18096 cat conftest.err >&5
18097 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18098 (exit $ac_status); } >/dev/null && {
18099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18100 test ! -s conftest.err
18102 ac_header_preproc=yes
18104 echo "$as_me: failed program was
:" >&5
18105 sed 's/^/| /' conftest.$ac_ext >&5
18107 ac_header_preproc=no
18110 rm -f conftest.err conftest.$ac_ext
18111 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18112 echo "${ECHO_T}$ac_header_preproc" >&6; }
18114 # So? What about this header?
18115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18117 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18118 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18119 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18120 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18121 ac_header_preproc=yes
18124 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18125 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18126 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18127 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18128 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18129 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18130 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18131 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18132 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18133 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18134 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18135 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18139 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18140 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18141 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18142 echo $ECHO_N "(cached
) $ECHO_C" >&6
18144 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18146 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18147 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18150 if test $ac_cv_header_sys_cpustats_h = yes; then
18151 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18160 if test $ac_have_func = no; then
18162 for ac_header in mach/mach.h
18164 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18165 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18166 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18167 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18168 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18169 echo $ECHO_N "(cached
) $ECHO_C" >&6
18171 ac_res=`eval echo '${'$as_ac_Header'}'`
18172 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18173 echo "${ECHO_T}$ac_res" >&6; }
18175 # Is the header compilable?
18176 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18177 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18178 cat >conftest.$ac_ext <<_ACEOF
18181 cat confdefs.h >>conftest.$ac_ext
18182 cat >>conftest.$ac_ext <<_ACEOF
18183 /* end confdefs.h. */
18184 $ac_includes_default
18185 #include <$ac_header>
18187 rm -f conftest.$ac_objext
18188 if { (ac_try="$ac_compile"
18189 case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_compile") 2>conftest.er1
18196 grep -v '^ *+' conftest.er1 >conftest.err
18198 cat conftest.err >&5
18199 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18200 (exit $ac_status); } && {
18201 test -z "$ac_c_werror_flag" ||
18202 test ! -s conftest.err
18203 } && test -s conftest.$ac_objext; then
18204 ac_header_compiler=yes
18206 echo "$as_me: failed program was
:" >&5
18207 sed 's/^/| /' conftest.$ac_ext >&5
18209 ac_header_compiler=no
18212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18213 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18214 echo "${ECHO_T}$ac_header_compiler" >&6; }
18216 # Is the header present?
18217 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18218 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18219 cat >conftest.$ac_ext <<_ACEOF
18222 cat confdefs.h >>conftest.$ac_ext
18223 cat >>conftest.$ac_ext <<_ACEOF
18224 /* end confdefs.h. */
18225 #include <$ac_header>
18227 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18228 case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18232 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18235 grep -v '^ *+' conftest.er1 >conftest.err
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18239 (exit $ac_status); } >/dev/null && {
18240 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18241 test ! -s conftest.err
18243 ac_header_preproc=yes
18245 echo "$as_me: failed program was
:" >&5
18246 sed 's/^/| /' conftest.$ac_ext >&5
18248 ac_header_preproc=no
18251 rm -f conftest.err conftest.$ac_ext
18252 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18253 echo "${ECHO_T}$ac_header_preproc" >&6; }
18255 # So? What about this header?
18256 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18258 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18259 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18260 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18261 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18262 ac_header_preproc=yes
18265 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18266 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18267 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18268 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18269 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18270 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18271 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18272 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18273 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18274 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18275 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18276 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18280 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18281 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18282 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18283 echo $ECHO_N "(cached
) $ECHO_C" >&6
18285 eval "$as_ac_Header=\
$ac_header_preproc"
18287 ac_res=`eval echo '${'$as_ac_Header'}'`
18288 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18289 echo "${ECHO_T}$ac_res" >&6; }
18292 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18293 cat >>confdefs.h <<_ACEOF
18294 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18304 for ac_header in nlist.h
18306 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18307 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18308 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18309 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18310 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18311 echo $ECHO_N "(cached
) $ECHO_C" >&6
18313 ac_res=`eval echo '${'$as_ac_Header'}'`
18314 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18315 echo "${ECHO_T}$ac_res" >&6; }
18317 # Is the header compilable?
18318 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18319 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18320 cat >conftest.$ac_ext <<_ACEOF
18323 cat confdefs.h >>conftest.$ac_ext
18324 cat >>conftest.$ac_ext <<_ACEOF
18325 /* end confdefs.h. */
18326 $ac_includes_default
18327 #include <$ac_header>
18329 rm -f conftest.$ac_objext
18330 if { (ac_try="$ac_compile"
18331 case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_compile") 2>conftest.er1
18338 grep -v '^ *+' conftest.er1 >conftest.err
18340 cat conftest.err >&5
18341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18342 (exit $ac_status); } && {
18343 test -z "$ac_c_werror_flag" ||
18344 test ! -s conftest.err
18345 } && test -s conftest.$ac_objext; then
18346 ac_header_compiler=yes
18348 echo "$as_me: failed program was
:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18351 ac_header_compiler=no
18354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18355 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18356 echo "${ECHO_T}$ac_header_compiler" >&6; }
18358 # Is the header present?
18359 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18360 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18361 cat >conftest.$ac_ext <<_ACEOF
18364 cat confdefs.h >>conftest.$ac_ext
18365 cat >>conftest.$ac_ext <<_ACEOF
18366 /* end confdefs.h. */
18367 #include <$ac_header>
18369 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18370 case "(($ac_try" in
18371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18372 *) ac_try_echo=$ac_try;;
18374 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18375 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18377 grep -v '^ *+' conftest.er1 >conftest.err
18379 cat conftest.err >&5
18380 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18381 (exit $ac_status); } >/dev/null && {
18382 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18383 test ! -s conftest.err
18385 ac_header_preproc=yes
18387 echo "$as_me: failed program was
:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18390 ac_header_preproc=no
18393 rm -f conftest.err conftest.$ac_ext
18394 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18395 echo "${ECHO_T}$ac_header_preproc" >&6; }
18397 # So? What about this header?
18398 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18400 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18401 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18402 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18403 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18404 ac_header_preproc=yes
18407 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18408 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18409 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18410 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18411 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18412 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18413 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18414 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18415 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18416 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18417 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18418 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18422 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18423 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18424 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18425 echo $ECHO_N "(cached
) $ECHO_C" >&6
18427 eval "$as_ac_Header=\
$ac_header_preproc"
18429 ac_res=`eval echo '${'$as_ac_Header'}'`
18430 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18431 echo "${ECHO_T}$ac_res" >&6; }
18434 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18435 cat >>confdefs.h <<_ACEOF
18436 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18438 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18439 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18440 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18441 echo $ECHO_N "(cached
) $ECHO_C" >&6
18443 cat >conftest.$ac_ext <<_ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h. */
18454 static struct nlist ac_aggr;
18455 if (ac_aggr.n_un.n_name)
18461 rm -f conftest.$ac_objext
18462 if { (ac_try="$ac_compile"
18463 case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18467 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_compile") 2>conftest.er1
18470 grep -v '^ *+' conftest.er1 >conftest.err
18472 cat conftest.err >&5
18473 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18474 (exit $ac_status); } && {
18475 test -z "$ac_c_werror_flag" ||
18476 test ! -s conftest.err
18477 } && test -s conftest.$ac_objext; then
18478 ac_cv_member_struct_nlist_n_un_n_name=yes
18480 echo "$as_me: failed program was
:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18483 cat >conftest.$ac_ext <<_ACEOF
18486 cat confdefs.h >>conftest.$ac_ext
18487 cat >>conftest.$ac_ext <<_ACEOF
18488 /* end confdefs.h. */
18494 static struct nlist ac_aggr;
18495 if (sizeof ac_aggr.n_un.n_name)
18501 rm -f conftest.$ac_objext
18502 if { (ac_try="$ac_compile"
18503 case "(($ac_try" in
18504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18505 *) ac_try_echo=$ac_try;;
18507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18508 (eval "$ac_compile") 2>conftest.er1
18510 grep -v '^ *+' conftest.er1 >conftest.err
18512 cat conftest.err >&5
18513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18514 (exit $ac_status); } && {
18515 test -z "$ac_c_werror_flag" ||
18516 test ! -s conftest.err
18517 } && test -s conftest.$ac_objext; then
18518 ac_cv_member_struct_nlist_n_un_n_name=yes
18520 echo "$as_me: failed program was
:" >&5
18521 sed 's/^/| /' conftest.$ac_ext >&5
18523 ac_cv_member_struct_nlist_n_un_n_name=no
18526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18531 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18532 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18533 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18535 cat >>confdefs.h <<_ACEOF
18536 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18540 cat >>confdefs.h <<\_ACEOF
18541 #define NLIST_NAME_UNION 1
18555 # Some definitions of getloadavg require that the program be installed setgid.
18556 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18557 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18558 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18559 echo $ECHO_N "(cached
) $ECHO_C" >&6
18561 cat >conftest.$ac_ext <<_ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18568 #ifdef LDAV_PRIVILEGED
18569 Yowza Am I SETGID yet
18572 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18573 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18574 ac_cv_func_getloadavg_setgid=yes
18576 ac_cv_func_getloadavg_setgid=no
18581 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18582 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18583 if test $ac_cv_func_getloadavg_setgid = yes; then
18586 cat >>confdefs.h <<\_ACEOF
18587 #define GETLOADAVG_PRIVILEGED 1
18594 if test $ac_cv_func_getloadavg_setgid = yes; then
18595 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18596 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18597 if test "${ac_cv_group_kmem+set}" = set; then
18598 echo $ECHO_N "(cached
) $ECHO_C" >&6
18600 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18601 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18602 # If we got an error (system does not support symlinks), try without -L.
18603 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18604 ac_cv_group_kmem=`echo $ac_ls_output \
18605 | sed -ne 's/[ ][ ]*/ /g;
18606 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18610 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18611 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18612 KMEM_GROUP=$ac_cv_group_kmem
18614 if test "x
$ac_save_LIBS" = x; then
18615 GETLOADAVG_LIBS=$LIBS
18617 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18623 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18624 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18625 if test "${ac_cv_sys_largefile_source+set}" = set; then
18626 echo $ECHO_N "(cached
) $ECHO_C" >&6
18629 cat >conftest.$ac_ext <<_ACEOF
18632 cat confdefs.h >>conftest.$ac_ext
18633 cat >>conftest.$ac_ext <<_ACEOF
18634 /* end confdefs.h. */
18639 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18644 rm -f conftest.$ac_objext conftest$ac_exeext
18645 if { (ac_try="$ac_link"
18646 case "(($ac_try" in
18647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18648 *) ac_try_echo=$ac_try;;
18650 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18651 (eval "$ac_link") 2>conftest.er1
18653 grep -v '^ *+' conftest.er1 >conftest.err
18655 cat conftest.err >&5
18656 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18657 (exit $ac_status); } && {
18658 test -z "$ac_c_werror_flag" ||
18659 test ! -s conftest.err
18660 } && test -s conftest$ac_exeext &&
18661 $as_test_x conftest$ac_exeext; then
18662 ac_cv_sys_largefile_source=no; break
18664 echo "$as_me: failed program was
:" >&5
18665 sed 's/^/| /' conftest.$ac_ext >&5
18670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18671 conftest$ac_exeext conftest.$ac_ext
18672 cat >conftest.$ac_ext <<_ACEOF
18675 cat confdefs.h >>conftest.$ac_ext
18676 cat >>conftest.$ac_ext <<_ACEOF
18677 /* end confdefs.h. */
18678 #define _LARGEFILE_SOURCE 1
18683 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18688 rm -f conftest.$ac_objext conftest$ac_exeext
18689 if { (ac_try="$ac_link"
18690 case "(($ac_try" in
18691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692 *) ac_try_echo=$ac_try;;
18694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18695 (eval "$ac_link") 2>conftest.er1
18697 grep -v '^ *+' conftest.er1 >conftest.err
18699 cat conftest.err >&5
18700 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18701 (exit $ac_status); } && {
18702 test -z "$ac_c_werror_flag" ||
18703 test ! -s conftest.err
18704 } && test -s conftest$ac_exeext &&
18705 $as_test_x conftest$ac_exeext; then
18706 ac_cv_sys_largefile_source=1; break
18708 echo "$as_me: failed program was
:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18715 conftest$ac_exeext conftest.$ac_ext
18716 ac_cv_sys_largefile_source=unknown
18720 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18721 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18722 case $ac_cv_sys_largefile_source in #(
18725 cat >>confdefs.h <<_ACEOF
18726 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18732 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18733 # in glibc 2.1.3, but that breaks too many other things.
18734 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18735 if test $ac_cv_sys_largefile_source != unknown; then
18737 cat >>confdefs.h <<\_ACEOF
18738 #define HAVE_FSEEKO 1
18744 # Configure getopt.
18745 # getopt.m4 serial 10
18747 # The getopt module assume you want GNU getopt, with getopt_long etc,
18748 # rather than vanilla POSIX getopt. This means your your code should
18749 # always include <getopt.h> for the getopt prototypes.
18761 # Prerequisites of lib/getopt*.
18768 for ac_header in getopt.h
18770 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18771 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18772 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18773 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18774 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18775 echo $ECHO_N "(cached
) $ECHO_C" >&6
18777 ac_res=`eval echo '${'$as_ac_Header'}'`
18778 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18779 echo "${ECHO_T}$ac_res" >&6; }
18781 # Is the header compilable?
18782 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18783 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18784 cat >conftest.$ac_ext <<_ACEOF
18787 cat confdefs.h >>conftest.$ac_ext
18788 cat >>conftest.$ac_ext <<_ACEOF
18789 /* end confdefs.h. */
18790 $ac_includes_default
18791 #include <$ac_header>
18793 rm -f conftest.$ac_objext
18794 if { (ac_try="$ac_compile"
18795 case "(($ac_try" in
18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797 *) ac_try_echo=$ac_try;;
18799 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_compile") 2>conftest.er1
18802 grep -v '^ *+' conftest.er1 >conftest.err
18804 cat conftest.err >&5
18805 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18806 (exit $ac_status); } && {
18807 test -z "$ac_c_werror_flag" ||
18808 test ! -s conftest.err
18809 } && test -s conftest.$ac_objext; then
18810 ac_header_compiler=yes
18812 echo "$as_me: failed program was
:" >&5
18813 sed 's/^/| /' conftest.$ac_ext >&5
18815 ac_header_compiler=no
18818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18819 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18820 echo "${ECHO_T}$ac_header_compiler" >&6; }
18822 # Is the header present?
18823 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18824 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18825 cat >conftest.$ac_ext <<_ACEOF
18828 cat confdefs.h >>conftest.$ac_ext
18829 cat >>conftest.$ac_ext <<_ACEOF
18830 /* end confdefs.h. */
18831 #include <$ac_header>
18833 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18834 case "(($ac_try" in
18835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18836 *) ac_try_echo=$ac_try;;
18838 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18839 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18841 grep -v '^ *+' conftest.er1 >conftest.err
18843 cat conftest.err >&5
18844 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18845 (exit $ac_status); } >/dev/null && {
18846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18847 test ! -s conftest.err
18849 ac_header_preproc=yes
18851 echo "$as_me: failed program was
:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18854 ac_header_preproc=no
18857 rm -f conftest.err conftest.$ac_ext
18858 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18859 echo "${ECHO_T}$ac_header_preproc" >&6; }
18861 # So? What about this header?
18862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18864 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18865 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18866 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18868 ac_header_preproc=yes
18871 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18872 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18873 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18874 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18875 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18876 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18877 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18878 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18879 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18881 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18882 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18886 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18887 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18888 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18889 echo $ECHO_N "(cached
) $ECHO_C" >&6
18891 eval "$as_ac_Header=\
$ac_header_preproc"
18893 ac_res=`eval echo '${'$as_ac_Header'}'`
18894 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18895 echo "${ECHO_T}$ac_res" >&6; }
18898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18899 cat >>confdefs.h <<_ACEOF
18900 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18909 if test -z "$GETOPT_H"; then
18911 for ac_func in getopt_long_only
18913 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18914 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18915 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18916 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18917 echo $ECHO_N "(cached
) $ECHO_C" >&6
18919 cat >conftest.$ac_ext <<_ACEOF
18922 cat confdefs.h >>conftest.$ac_ext
18923 cat >>conftest.$ac_ext <<_ACEOF
18924 /* end confdefs.h. */
18925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18927 #define $ac_func innocuous_$ac_func
18929 /* System header to define __stub macros and hopefully few prototypes,
18930 which can conflict with char $ac_func (); below.
18931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18932 <limits.h> exists even on freestanding compilers. */
18935 # include <limits.h>
18937 # include <assert.h>
18942 /* Override any GCC internal prototype to avoid an error.
18943 Use char because int might match the return type of a GCC
18944 builtin and then its argument prototype would still apply. */
18949 /* The GNU C library defines this for functions which it implements
18950 to always fail with ENOSYS. Some functions are actually named
18951 something starting with __ and the normal name is an alias. */
18952 #if defined __stub_$ac_func || defined __stub___$ac_func
18959 return $ac_func ();
18964 rm -f conftest.$ac_objext conftest$ac_exeext
18965 if { (ac_try="$ac_link"
18966 case "(($ac_try" in
18967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18968 *) ac_try_echo=$ac_try;;
18970 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18971 (eval "$ac_link") 2>conftest.er1
18973 grep -v '^ *+' conftest.er1 >conftest.err
18975 cat conftest.err >&5
18976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18977 (exit $ac_status); } && {
18978 test -z "$ac_c_werror_flag" ||
18979 test ! -s conftest.err
18980 } && test -s conftest$ac_exeext &&
18981 $as_test_x conftest$ac_exeext; then
18982 eval "$as_ac_var=yes"
18984 echo "$as_me: failed program was
:" >&5
18985 sed 's/^/| /' conftest.$ac_ext >&5
18987 eval "$as_ac_var=no
"
18990 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18991 conftest$ac_exeext conftest.$ac_ext
18993 ac_res=`eval echo '${'$as_ac_var'}'`
18994 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18995 echo "${ECHO_T}$ac_res" >&6; }
18996 if test `eval echo '${'$as_ac_var'}'` = yes; then
18997 cat >>confdefs.h <<_ACEOF
18998 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19008 if test -z "$GETOPT_H"; then
19009 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19010 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19011 if test "${ac_cv_have_decl_optreset+set}" = set; then
19012 echo $ECHO_N "(cached
) $ECHO_C" >&6
19014 cat >conftest.$ac_ext <<_ACEOF
19017 cat confdefs.h >>conftest.$ac_ext
19018 cat >>conftest.$ac_ext <<_ACEOF
19019 /* end confdefs.h. */
19020 #include <getopt.h>
19033 rm -f conftest.$ac_objext
19034 if { (ac_try="$ac_compile"
19035 case "(($ac_try" in
19036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19037 *) ac_try_echo=$ac_try;;
19039 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19040 (eval "$ac_compile") 2>conftest.er1
19042 grep -v '^ *+' conftest.er1 >conftest.err
19044 cat conftest.err >&5
19045 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19046 (exit $ac_status); } && {
19047 test -z "$ac_c_werror_flag" ||
19048 test ! -s conftest.err
19049 } && test -s conftest.$ac_objext; then
19050 ac_cv_have_decl_optreset=yes
19052 echo "$as_me: failed program was
:" >&5
19053 sed 's/^/| /' conftest.$ac_ext >&5
19055 ac_cv_have_decl_optreset=no
19058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19060 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19061 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19062 if test $ac_cv_have_decl_optreset = yes; then
19068 if test -z "$GETOPT_H"; then
19069 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19070 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19071 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19072 echo $ECHO_N "(cached
) $ECHO_C" >&6
19074 if test "$cross_compiling" = yes; then
19075 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19076 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19077 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19078 echo $ECHO_N "(cached
) $ECHO_C" >&6
19080 cat >conftest.$ac_ext <<_ACEOF
19083 cat confdefs.h >>conftest.$ac_ext
19084 cat >>conftest.$ac_ext <<_ACEOF
19085 /* end confdefs.h. */
19086 #include <getopt.h>
19091 #ifndef getopt_clip
19092 (void) getopt_clip;
19099 rm -f conftest.$ac_objext
19100 if { (ac_try="$ac_compile"
19101 case "(($ac_try" in
19102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19103 *) ac_try_echo=$ac_try;;
19105 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19106 (eval "$ac_compile") 2>conftest.er1
19108 grep -v '^ *+' conftest.er1 >conftest.err
19110 cat conftest.err >&5
19111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19112 (exit $ac_status); } && {
19113 test -z "$ac_c_werror_flag" ||
19114 test ! -s conftest.err
19115 } && test -s conftest.$ac_objext; then
19116 ac_cv_have_decl_getopt_clip=yes
19118 echo "$as_me: failed program was
:" >&5
19119 sed 's/^/| /' conftest.$ac_ext >&5
19121 ac_cv_have_decl_getopt_clip=no
19124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19126 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19127 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19128 if test $ac_cv_have_decl_getopt_clip = yes; then
19129 gl_cv_func_gnu_getopt=no
19131 gl_cv_func_gnu_getopt=yes
19135 cat >conftest.$ac_ext <<_ACEOF
19138 cat confdefs.h >>conftest.$ac_ext
19139 cat >>conftest.$ac_ext <<_ACEOF
19140 /* end confdefs.h. */
19141 #include <getopt.h>
19147 myargv[0] = "conftest
";
19150 return getopt (2, myargv, "+a
") != '?';
19156 rm -f conftest$ac_exeext
19157 if { (ac_try="$ac_link"
19158 case "(($ac_try" in
19159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160 *) ac_try_echo=$ac_try;;
19162 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19163 (eval "$ac_link") 2>&5
19165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19166 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19167 { (case "(($ac_try" in
19168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19169 *) ac_try_echo=$ac_try;;
19171 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19172 (eval "$ac_try") 2>&5
19174 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19175 (exit $ac_status); }; }; then
19176 gl_cv_func_gnu_getopt=yes
19178 echo "$as_me: program exited with status
$ac_status" >&5
19179 echo "$as_me: failed program was
:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19182 ( exit $ac_status )
19183 gl_cv_func_gnu_getopt=no
19185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19190 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19191 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19192 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19199 if test -n "$GETOPT_H"; then
19204 cat >>confdefs.h <<\_ACEOF
19205 #define __GETOPT_PREFIX rpl_
19211 GETOPTOBJS='getopt.o getopt1.o'
19218 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19219 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19220 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19221 echo $ECHO_N "(cached
) $ECHO_C" >&6
19223 # Use it with a single arg.
19224 cat >conftest.$ac_ext <<_ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19230 $ac_includes_default
19239 rm -f conftest.$ac_objext
19240 if { (ac_try="$ac_compile"
19241 case "(($ac_try" in
19242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19243 *) ac_try_echo=$ac_try;;
19245 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19246 (eval "$ac_compile") 2>conftest.er1
19248 grep -v '^ *+' conftest.er1 >conftest.err
19250 cat conftest.err >&5
19251 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19252 (exit $ac_status); } && {
19253 test -z "$ac_c_werror_flag" ||
19254 test ! -s conftest.err
19255 } && test -s conftest.$ac_objext; then
19256 ac_cv_func_getpgrp_void=no
19258 echo "$as_me: failed program was
:" >&5
19259 sed 's/^/| /' conftest.$ac_ext >&5
19261 ac_cv_func_getpgrp_void=yes
19264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19267 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19268 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19269 if test $ac_cv_func_getpgrp_void = yes; then
19271 cat >>confdefs.h <<\_ACEOF
19272 #define GETPGRP_VOID 1
19279 for ac_func in strftime
19281 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19282 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19283 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19284 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19285 echo $ECHO_N "(cached
) $ECHO_C" >&6
19287 cat >conftest.$ac_ext <<_ACEOF
19290 cat confdefs.h >>conftest.$ac_ext
19291 cat >>conftest.$ac_ext <<_ACEOF
19292 /* end confdefs.h. */
19293 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19295 #define $ac_func innocuous_$ac_func
19297 /* System header to define __stub macros and hopefully few prototypes,
19298 which can conflict with char $ac_func (); below.
19299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19300 <limits.h> exists even on freestanding compilers. */
19303 # include <limits.h>
19305 # include <assert.h>
19310 /* Override any GCC internal prototype to avoid an error.
19311 Use char because int might match the return type of a GCC
19312 builtin and then its argument prototype would still apply. */
19317 /* The GNU C library defines this for functions which it implements
19318 to always fail with ENOSYS. Some functions are actually named
19319 something starting with __ and the normal name is an alias. */
19320 #if defined __stub_$ac_func || defined __stub___$ac_func
19327 return $ac_func ();
19332 rm -f conftest.$ac_objext conftest$ac_exeext
19333 if { (ac_try="$ac_link"
19334 case "(($ac_try" in
19335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19336 *) ac_try_echo=$ac_try;;
19338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19339 (eval "$ac_link") 2>conftest.er1
19341 grep -v '^ *+' conftest.er1 >conftest.err
19343 cat conftest.err >&5
19344 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19345 (exit $ac_status); } && {
19346 test -z "$ac_c_werror_flag" ||
19347 test ! -s conftest.err
19348 } && test -s conftest$ac_exeext &&
19349 $as_test_x conftest$ac_exeext; then
19350 eval "$as_ac_var=yes"
19352 echo "$as_me: failed program was
:" >&5
19353 sed 's/^/| /' conftest.$ac_ext >&5
19355 eval "$as_ac_var=no
"
19358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19359 conftest$ac_exeext conftest.$ac_ext
19361 ac_res=`eval echo '${'$as_ac_var'}'`
19362 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19363 echo "${ECHO_T}$ac_res" >&6; }
19364 if test `eval echo '${'$as_ac_var'}'` = yes; then
19365 cat >>confdefs.h <<_ACEOF
19366 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19370 # strftime is in -lintl on SCO UNIX.
19371 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19372 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19373 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19374 echo $ECHO_N "(cached
) $ECHO_C" >&6
19376 ac_check_lib_save_LIBS=$LIBS
19377 LIBS="-lintl $LIBS"
19378 cat >conftest.$ac_ext <<_ACEOF
19381 cat confdefs.h >>conftest.$ac_ext
19382 cat >>conftest.$ac_ext <<_ACEOF
19383 /* end confdefs.h. */
19385 /* Override any GCC internal prototype to avoid an error.
19386 Use char because int might match the return type of a GCC
19387 builtin and then its argument prototype would still apply. */
19395 return strftime ();
19400 rm -f conftest.$ac_objext conftest$ac_exeext
19401 if { (ac_try="$ac_link"
19402 case "(($ac_try" in
19403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19404 *) ac_try_echo=$ac_try;;
19406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19407 (eval "$ac_link") 2>conftest.er1
19409 grep -v '^ *+' conftest.er1 >conftest.err
19411 cat conftest.err >&5
19412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19413 (exit $ac_status); } && {
19414 test -z "$ac_c_werror_flag" ||
19415 test ! -s conftest.err
19416 } && test -s conftest$ac_exeext &&
19417 $as_test_x conftest$ac_exeext; then
19418 ac_cv_lib_intl_strftime=yes
19420 echo "$as_me: failed program was
:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19423 ac_cv_lib_intl_strftime=no
19426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19427 conftest$ac_exeext conftest.$ac_ext
19428 LIBS=$ac_check_lib_save_LIBS
19430 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19431 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19432 if test $ac_cv_lib_intl_strftime = yes; then
19433 cat >>confdefs.h <<\_ACEOF
19434 #define HAVE_STRFTIME 1
19437 LIBS="-lintl $LIBS"
19446 for ac_func in grantpt
19448 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19449 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19450 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19451 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19452 echo $ECHO_N "(cached
) $ECHO_C" >&6
19454 cat >conftest.$ac_ext <<_ACEOF
19457 cat confdefs.h >>conftest.$ac_ext
19458 cat >>conftest.$ac_ext <<_ACEOF
19459 /* end confdefs.h. */
19460 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19461 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19462 #define $ac_func innocuous_$ac_func
19464 /* System header to define __stub macros and hopefully few prototypes,
19465 which can conflict with char $ac_func (); below.
19466 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19467 <limits.h> exists even on freestanding compilers. */
19470 # include <limits.h>
19472 # include <assert.h>
19477 /* Override any GCC internal prototype to avoid an error.
19478 Use char because int might match the return type of a GCC
19479 builtin and then its argument prototype would still apply. */
19484 /* The GNU C library defines this for functions which it implements
19485 to always fail with ENOSYS. Some functions are actually named
19486 something starting with __ and the normal name is an alias. */
19487 #if defined __stub_$ac_func || defined __stub___$ac_func
19494 return $ac_func ();
19499 rm -f conftest.$ac_objext conftest$ac_exeext
19500 if { (ac_try="$ac_link"
19501 case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_link") 2>conftest.er1
19508 grep -v '^ *+' conftest.er1 >conftest.err
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19512 (exit $ac_status); } && {
19513 test -z "$ac_c_werror_flag" ||
19514 test ! -s conftest.err
19515 } && test -s conftest$ac_exeext &&
19516 $as_test_x conftest$ac_exeext; then
19517 eval "$as_ac_var=yes"
19519 echo "$as_me: failed program was
:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19522 eval "$as_ac_var=no
"
19525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19526 conftest$ac_exeext conftest.$ac_ext
19528 ac_res=`eval echo '${'$as_ac_var'}'`
19529 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19530 echo "${ECHO_T}$ac_res" >&6; }
19531 if test `eval echo '${'$as_ac_var'}'` = yes; then
19532 cat >>confdefs.h <<_ACEOF
19533 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19540 # PTY-related GNU extensions.
19542 for ac_func in getpt
19544 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19545 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19546 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19547 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19548 echo $ECHO_N "(cached
) $ECHO_C" >&6
19550 cat >conftest.$ac_ext <<_ACEOF
19553 cat confdefs.h >>conftest.$ac_ext
19554 cat >>conftest.$ac_ext <<_ACEOF
19555 /* end confdefs.h. */
19556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19558 #define $ac_func innocuous_$ac_func
19560 /* System header to define __stub macros and hopefully few prototypes,
19561 which can conflict with char $ac_func (); below.
19562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19563 <limits.h> exists even on freestanding compilers. */
19566 # include <limits.h>
19568 # include <assert.h>
19573 /* Override any GCC internal prototype to avoid an error.
19574 Use char because int might match the return type of a GCC
19575 builtin and then its argument prototype would still apply. */
19580 /* The GNU C library defines this for functions which it implements
19581 to always fail with ENOSYS. Some functions are actually named
19582 something starting with __ and the normal name is an alias. */
19583 #if defined __stub_$ac_func || defined __stub___$ac_func
19590 return $ac_func ();
19595 rm -f conftest.$ac_objext conftest$ac_exeext
19596 if { (ac_try="$ac_link"
19597 case "(($ac_try" in
19598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599 *) ac_try_echo=$ac_try;;
19601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19602 (eval "$ac_link") 2>conftest.er1
19604 grep -v '^ *+' conftest.er1 >conftest.err
19606 cat conftest.err >&5
19607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19608 (exit $ac_status); } && {
19609 test -z "$ac_c_werror_flag" ||
19610 test ! -s conftest.err
19611 } && test -s conftest$ac_exeext &&
19612 $as_test_x conftest$ac_exeext; then
19613 eval "$as_ac_var=yes"
19615 echo "$as_me: failed program was
:" >&5
19616 sed 's/^/| /' conftest.$ac_ext >&5
19618 eval "$as_ac_var=no
"
19621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19622 conftest$ac_exeext conftest.$ac_ext
19624 ac_res=`eval echo '${'$as_ac_var'}'`
19625 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19626 echo "${ECHO_T}$ac_res" >&6; }
19627 if test `eval echo '${'$as_ac_var'}'` = yes; then
19628 cat >>confdefs.h <<_ACEOF
19629 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19636 # Check this now, so that we will NOT find the above functions in ncurses.
19637 # That is because we have not set up to link ncurses in lib-src.
19638 # It's better to believe a function is not available
19639 # than to expect to find it in ncurses.
19641 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19642 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19643 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19644 echo $ECHO_N "(cached
) $ECHO_C" >&6
19646 ac_check_lib_save_LIBS=$LIBS
19647 LIBS="-lncurses $LIBS"
19648 cat >conftest.$ac_ext <<_ACEOF
19651 cat confdefs.h >>conftest.$ac_ext
19652 cat >>conftest.$ac_ext <<_ACEOF
19653 /* end confdefs.h. */
19655 /* Override any GCC internal prototype to avoid an error.
19656 Use char because int might match the return type of a GCC
19657 builtin and then its argument prototype would still apply. */
19670 rm -f conftest.$ac_objext conftest$ac_exeext
19671 if { (ac_try="$ac_link"
19672 case "(($ac_try" in
19673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19674 *) ac_try_echo=$ac_try;;
19676 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19677 (eval "$ac_link") 2>conftest.er1
19679 grep -v '^ *+' conftest.er1 >conftest.err
19681 cat conftest.err >&5
19682 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19683 (exit $ac_status); } && {
19684 test -z "$ac_c_werror_flag" ||
19685 test ! -s conftest.err
19686 } && test -s conftest$ac_exeext &&
19687 $as_test_x conftest$ac_exeext; then
19688 ac_cv_lib_ncurses_tparm=yes
19690 echo "$as_me: failed program was
:" >&5
19691 sed 's/^/| /' conftest.$ac_ext >&5
19693 ac_cv_lib_ncurses_tparm=no
19696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19697 conftest$ac_exeext conftest.$ac_ext
19698 LIBS=$ac_check_lib_save_LIBS
19700 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19701 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19702 if test $ac_cv_lib_ncurses_tparm = yes; then
19703 cat >>confdefs.h <<_ACEOF
19704 #define HAVE_LIBNCURSES 1
19707 LIBS="-lncurses $LIBS"
19712 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19715 cat >conftest.$ac_ext <<_ACEOF
19718 cat confdefs.h >>conftest.$ac_ext
19719 cat >>conftest.$ac_ext <<_ACEOF
19720 /* end confdefs.h. */
19721 #include <netinet/in.h>
19722 #include <arpa/nameser.h>
19723 #include <resolv.h>
19732 rm -f conftest.$ac_objext conftest$ac_exeext
19733 if { (ac_try="$ac_link"
19734 case "(($ac_try" in
19735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736 *) ac_try_echo=$ac_try;;
19738 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19739 (eval "$ac_link") 2>conftest.er1
19741 grep -v '^ *+' conftest.er1 >conftest.err
19743 cat conftest.err >&5
19744 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19745 (exit $ac_status); } && {
19746 test -z "$ac_c_werror_flag" ||
19747 test ! -s conftest.err
19748 } && test -s conftest$ac_exeext &&
19749 $as_test_x conftest$ac_exeext; then
19752 echo "$as_me: failed program was
:" >&5
19753 sed 's/^/| /' conftest.$ac_ext >&5
19758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19759 conftest$ac_exeext conftest.$ac_ext
19760 if test "$have_res_init" = no; then
19762 LIBS="$LIBS -lresolv"
19763 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19764 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19765 cat >conftest.$ac_ext <<_ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h. */
19771 #include <netinet/in.h>
19772 #include <arpa/nameser.h>
19773 #include <resolv.h>
19782 rm -f conftest.$ac_objext conftest$ac_exeext
19783 if { (ac_try="$ac_link"
19784 case "(($ac_try" in
19785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19786 *) ac_try_echo=$ac_try;;
19788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19789 (eval "$ac_link") 2>conftest.er1
19791 grep -v '^ *+' conftest.er1 >conftest.err
19793 cat conftest.err >&5
19794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19795 (exit $ac_status); } && {
19796 test -z "$ac_c_werror_flag" ||
19797 test ! -s conftest.err
19798 } && test -s conftest$ac_exeext &&
19799 $as_test_x conftest$ac_exeext; then
19802 echo "$as_me: failed program was
:" >&5
19803 sed 's/^/| /' conftest.$ac_ext >&5
19808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19809 conftest$ac_exeext conftest.$ac_ext
19810 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19811 echo "${ECHO_T}$have_res_init" >&6; }
19812 if test "$have_res_init" = yes ; then
19818 if test "$have_res_init" = yes; then
19820 cat >>confdefs.h <<\_ACEOF
19821 #define HAVE_RES_INIT 1
19826 # Do we need the Hesiod library to provide the support routines?
19827 if test "$with_hesiod" = yes ; then
19828 # Don't set $LIBS here -- see comments above.
19829 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19830 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19831 if test "${ac_cv_func_res_send+set}" = set; then
19832 echo $ECHO_N "(cached
) $ECHO_C" >&6
19834 cat >conftest.$ac_ext <<_ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19842 #define res_send innocuous_res_send
19844 /* System header to define __stub macros and hopefully few prototypes,
19845 which can conflict with char res_send (); below.
19846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19847 <limits.h> exists even on freestanding compilers. */
19850 # include <limits.h>
19852 # include <assert.h>
19857 /* Override any GCC internal prototype to avoid an error.
19858 Use char because int might match the return type of a GCC
19859 builtin and then its argument prototype would still apply. */
19864 /* The GNU C library defines this for functions which it implements
19865 to always fail with ENOSYS. Some functions are actually named
19866 something starting with __ and the normal name is an alias. */
19867 #if defined __stub_res_send || defined __stub___res_send
19874 return res_send ();
19879 rm -f conftest.$ac_objext conftest$ac_exeext
19880 if { (ac_try="$ac_link"
19881 case "(($ac_try" in
19882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883 *) ac_try_echo=$ac_try;;
19885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19886 (eval "$ac_link") 2>conftest.er1
19888 grep -v '^ *+' conftest.er1 >conftest.err
19890 cat conftest.err >&5
19891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19892 (exit $ac_status); } && {
19893 test -z "$ac_c_werror_flag" ||
19894 test ! -s conftest.err
19895 } && test -s conftest$ac_exeext &&
19896 $as_test_x conftest$ac_exeext; then
19897 ac_cv_func_res_send=yes
19899 echo "$as_me: failed program was
:" >&5
19900 sed 's/^/| /' conftest.$ac_ext >&5
19902 ac_cv_func_res_send=no
19905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19906 conftest$ac_exeext conftest.$ac_ext
19908 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19909 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19910 if test $ac_cv_func_res_send = yes; then
19913 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19914 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19915 if test "${ac_cv_func___res_send+set}" = set; then
19916 echo $ECHO_N "(cached
) $ECHO_C" >&6
19918 cat >conftest.$ac_ext <<_ACEOF
19921 cat confdefs.h >>conftest.$ac_ext
19922 cat >>conftest.$ac_ext <<_ACEOF
19923 /* end confdefs.h. */
19924 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19925 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19926 #define __res_send innocuous___res_send
19928 /* System header to define __stub macros and hopefully few prototypes,
19929 which can conflict with char __res_send (); below.
19930 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19931 <limits.h> exists even on freestanding compilers. */
19934 # include <limits.h>
19936 # include <assert.h>
19941 /* Override any GCC internal prototype to avoid an error.
19942 Use char because int might match the return type of a GCC
19943 builtin and then its argument prototype would still apply. */
19947 char __res_send ();
19948 /* The GNU C library defines this for functions which it implements
19949 to always fail with ENOSYS. Some functions are actually named
19950 something starting with __ and the normal name is an alias. */
19951 #if defined __stub___res_send || defined __stub_____res_send
19958 return __res_send ();
19963 rm -f conftest.$ac_objext conftest$ac_exeext
19964 if { (ac_try="$ac_link"
19965 case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19969 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_link") 2>conftest.er1
19972 grep -v '^ *+' conftest.er1 >conftest.err
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19976 (exit $ac_status); } && {
19977 test -z "$ac_c_werror_flag" ||
19978 test ! -s conftest.err
19979 } && test -s conftest$ac_exeext &&
19980 $as_test_x conftest$ac_exeext; then
19981 ac_cv_func___res_send=yes
19983 echo "$as_me: failed program was
:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19986 ac_cv_func___res_send=no
19989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19990 conftest$ac_exeext conftest.$ac_ext
19992 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19993 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19994 if test $ac_cv_func___res_send = yes; then
19997 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19998 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19999 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20000 echo $ECHO_N "(cached
) $ECHO_C" >&6
20002 ac_check_lib_save_LIBS=$LIBS
20003 LIBS="-lresolv $LIBS"
20004 cat >conftest.$ac_ext <<_ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20011 /* Override any GCC internal prototype to avoid an error.
20012 Use char because int might match the return type of a GCC
20013 builtin and then its argument prototype would still apply. */
20021 return res_send ();
20026 rm -f conftest.$ac_objext conftest$ac_exeext
20027 if { (ac_try="$ac_link"
20028 case "(($ac_try" in
20029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20030 *) ac_try_echo=$ac_try;;
20032 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20033 (eval "$ac_link") 2>conftest.er1
20035 grep -v '^ *+' conftest.er1 >conftest.err
20037 cat conftest.err >&5
20038 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20039 (exit $ac_status); } && {
20040 test -z "$ac_c_werror_flag" ||
20041 test ! -s conftest.err
20042 } && test -s conftest$ac_exeext &&
20043 $as_test_x conftest$ac_exeext; then
20044 ac_cv_lib_resolv_res_send=yes
20046 echo "$as_me: failed program was
:" >&5
20047 sed 's/^/| /' conftest.$ac_ext >&5
20049 ac_cv_lib_resolv_res_send=no
20052 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20053 conftest$ac_exeext conftest.$ac_ext
20054 LIBS=$ac_check_lib_save_LIBS
20056 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20057 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20058 if test $ac_cv_lib_resolv_res_send = yes; then
20061 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20062 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20063 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20064 echo $ECHO_N "(cached
) $ECHO_C" >&6
20066 ac_check_lib_save_LIBS=$LIBS
20067 LIBS="-lresolv $LIBS"
20068 cat >conftest.$ac_ext <<_ACEOF
20071 cat confdefs.h >>conftest.$ac_ext
20072 cat >>conftest.$ac_ext <<_ACEOF
20073 /* end confdefs.h. */
20075 /* Override any GCC internal prototype to avoid an error.
20076 Use char because int might match the return type of a GCC
20077 builtin and then its argument prototype would still apply. */
20081 char __res_send ();
20085 return __res_send ();
20090 rm -f conftest.$ac_objext conftest$ac_exeext
20091 if { (ac_try="$ac_link"
20092 case "(($ac_try" in
20093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20094 *) ac_try_echo=$ac_try;;
20096 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20097 (eval "$ac_link") 2>conftest.er1
20099 grep -v '^ *+' conftest.er1 >conftest.err
20101 cat conftest.err >&5
20102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20103 (exit $ac_status); } && {
20104 test -z "$ac_c_werror_flag" ||
20105 test ! -s conftest.err
20106 } && test -s conftest$ac_exeext &&
20107 $as_test_x conftest$ac_exeext; then
20108 ac_cv_lib_resolv___res_send=yes
20110 echo "$as_me: failed program was
:" >&5
20111 sed 's/^/| /' conftest.$ac_ext >&5
20113 ac_cv_lib_resolv___res_send=no
20116 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20117 conftest$ac_exeext conftest.$ac_ext
20118 LIBS=$ac_check_lib_save_LIBS
20120 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20121 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20122 if test $ac_cv_lib_resolv___res_send = yes; then
20132 if test "$resolv" = yes ; then
20137 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20138 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20139 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20140 echo $ECHO_N "(cached
) $ECHO_C" >&6
20142 cat >conftest.$ac_ext <<_ACEOF
20145 cat confdefs.h >>conftest.$ac_ext
20146 cat >>conftest.$ac_ext <<_ACEOF
20147 /* end confdefs.h. */
20148 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20150 #define hes_getmailhost innocuous_hes_getmailhost
20152 /* System header to define __stub macros and hopefully few prototypes,
20153 which can conflict with char hes_getmailhost (); below.
20154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20155 <limits.h> exists even on freestanding compilers. */
20158 # include <limits.h>
20160 # include <assert.h>
20163 #undef hes_getmailhost
20165 /* Override any GCC internal prototype to avoid an error.
20166 Use char because int might match the return type of a GCC
20167 builtin and then its argument prototype would still apply. */
20171 char hes_getmailhost ();
20172 /* The GNU C library defines this for functions which it implements
20173 to always fail with ENOSYS. Some functions are actually named
20174 something starting with __ and the normal name is an alias. */
20175 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20182 return hes_getmailhost ();
20187 rm -f conftest.$ac_objext conftest$ac_exeext
20188 if { (ac_try="$ac_link"
20189 case "(($ac_try" in
20190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191 *) ac_try_echo=$ac_try;;
20193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20194 (eval "$ac_link") 2>conftest.er1
20196 grep -v '^ *+' conftest.er1 >conftest.err
20198 cat conftest.err >&5
20199 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20200 (exit $ac_status); } && {
20201 test -z "$ac_c_werror_flag" ||
20202 test ! -s conftest.err
20203 } && test -s conftest$ac_exeext &&
20204 $as_test_x conftest$ac_exeext; then
20205 ac_cv_func_hes_getmailhost=yes
20207 echo "$as_me: failed program was
:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20210 ac_cv_func_hes_getmailhost=no
20213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20214 conftest$ac_exeext conftest.$ac_ext
20216 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20217 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20218 if test $ac_cv_func_hes_getmailhost = yes; then
20221 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20222 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20223 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20224 echo $ECHO_N "(cached
) $ECHO_C" >&6
20226 ac_check_lib_save_LIBS=$LIBS
20227 LIBS="-lhesiod $RESOLVLIB $LIBS"
20228 cat >conftest.$ac_ext <<_ACEOF
20231 cat confdefs.h >>conftest.$ac_ext
20232 cat >>conftest.$ac_ext <<_ACEOF
20233 /* end confdefs.h. */
20235 /* Override any GCC internal prototype to avoid an error.
20236 Use char because int might match the return type of a GCC
20237 builtin and then its argument prototype would still apply. */
20241 char hes_getmailhost ();
20245 return hes_getmailhost ();
20250 rm -f conftest.$ac_objext conftest$ac_exeext
20251 if { (ac_try="$ac_link"
20252 case "(($ac_try" in
20253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254 *) ac_try_echo=$ac_try;;
20256 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20257 (eval "$ac_link") 2>conftest.er1
20259 grep -v '^ *+' conftest.er1 >conftest.err
20261 cat conftest.err >&5
20262 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20263 (exit $ac_status); } && {
20264 test -z "$ac_c_werror_flag" ||
20265 test ! -s conftest.err
20266 } && test -s conftest$ac_exeext &&
20267 $as_test_x conftest$ac_exeext; then
20268 ac_cv_lib_hesiod_hes_getmailhost=yes
20270 echo "$as_me: failed program was
:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20273 ac_cv_lib_hesiod_hes_getmailhost=no
20276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20277 conftest$ac_exeext conftest.$ac_ext
20278 LIBS=$ac_check_lib_save_LIBS
20280 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20281 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20282 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20284 cat >>confdefs.h <<\_ACEOF
20285 #define HAVE_LIBHESIOD 1
20296 # Do we need libresolv (due to res_init or Hesiod)?
20297 if test "$resolv" = yes ; then
20299 cat >>confdefs.h <<\_ACEOF
20300 #define HAVE_LIBRESOLV 1
20305 # These tell us which Kerberos-related libraries to use.
20306 if test "${with_kerberos+set}" = set; then
20308 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20309 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20310 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20311 echo $ECHO_N "(cached
) $ECHO_C" >&6
20313 ac_check_lib_save_LIBS=$LIBS
20314 LIBS="-lcom_err $LIBS"
20315 cat >conftest.$ac_ext <<_ACEOF
20318 cat confdefs.h >>conftest.$ac_ext
20319 cat >>conftest.$ac_ext <<_ACEOF
20320 /* end confdefs.h. */
20322 /* Override any GCC internal prototype to avoid an error.
20323 Use char because int might match the return type of a GCC
20324 builtin and then its argument prototype would still apply. */
20337 rm -f conftest.$ac_objext conftest$ac_exeext
20338 if { (ac_try="$ac_link"
20339 case "(($ac_try" in
20340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20341 *) ac_try_echo=$ac_try;;
20343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20344 (eval "$ac_link") 2>conftest.er1
20346 grep -v '^ *+' conftest.er1 >conftest.err
20348 cat conftest.err >&5
20349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20350 (exit $ac_status); } && {
20351 test -z "$ac_c_werror_flag" ||
20352 test ! -s conftest.err
20353 } && test -s conftest$ac_exeext &&
20354 $as_test_x conftest$ac_exeext; then
20355 ac_cv_lib_com_err_com_err=yes
20357 echo "$as_me: failed program was
:" >&5
20358 sed 's/^/| /' conftest.$ac_ext >&5
20360 ac_cv_lib_com_err_com_err=no
20363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20364 conftest$ac_exeext conftest.$ac_ext
20365 LIBS=$ac_check_lib_save_LIBS
20367 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20368 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20369 if test $ac_cv_lib_com_err_com_err = yes; then
20370 cat >>confdefs.h <<_ACEOF
20371 #define HAVE_LIBCOM_ERR 1
20374 LIBS="-lcom_err $LIBS"
20379 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20380 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20381 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20382 echo $ECHO_N "(cached
) $ECHO_C" >&6
20384 ac_check_lib_save_LIBS=$LIBS
20385 LIBS="-lk5crypto $LIBS"
20386 cat >conftest.$ac_ext <<_ACEOF
20389 cat confdefs.h >>conftest.$ac_ext
20390 cat >>conftest.$ac_ext <<_ACEOF
20391 /* end confdefs.h. */
20393 /* Override any GCC internal prototype to avoid an error.
20394 Use char because int might match the return type of a GCC
20395 builtin and then its argument prototype would still apply. */
20399 char mit_des_cbc_encrypt ();
20403 return mit_des_cbc_encrypt ();
20408 rm -f conftest.$ac_objext conftest$ac_exeext
20409 if { (ac_try="$ac_link"
20410 case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_link") 2>conftest.er1
20417 grep -v '^ *+' conftest.er1 >conftest.err
20419 cat conftest.err >&5
20420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20421 (exit $ac_status); } && {
20422 test -z "$ac_c_werror_flag" ||
20423 test ! -s conftest.err
20424 } && test -s conftest$ac_exeext &&
20425 $as_test_x conftest$ac_exeext; then
20426 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20428 echo "$as_me: failed program was
:" >&5
20429 sed 's/^/| /' conftest.$ac_ext >&5
20431 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20434 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20435 conftest$ac_exeext conftest.$ac_ext
20436 LIBS=$ac_check_lib_save_LIBS
20438 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20439 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20440 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20441 cat >>confdefs.h <<_ACEOF
20442 #define HAVE_LIBK5CRYPTO 1
20445 LIBS="-lk5crypto $LIBS"
20450 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20451 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20452 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20453 echo $ECHO_N "(cached
) $ECHO_C" >&6
20455 ac_check_lib_save_LIBS=$LIBS
20456 LIBS="-lcrypto $LIBS"
20457 cat >conftest.$ac_ext <<_ACEOF
20460 cat confdefs.h >>conftest.$ac_ext
20461 cat >>conftest.$ac_ext <<_ACEOF
20462 /* end confdefs.h. */
20464 /* Override any GCC internal prototype to avoid an error.
20465 Use char because int might match the return type of a GCC
20466 builtin and then its argument prototype would still apply. */
20470 char mit_des_cbc_encrypt ();
20474 return mit_des_cbc_encrypt ();
20479 rm -f conftest.$ac_objext conftest$ac_exeext
20480 if { (ac_try="$ac_link"
20481 case "(($ac_try" in
20482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20483 *) ac_try_echo=$ac_try;;
20485 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20486 (eval "$ac_link") 2>conftest.er1
20488 grep -v '^ *+' conftest.er1 >conftest.err
20490 cat conftest.err >&5
20491 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20492 (exit $ac_status); } && {
20493 test -z "$ac_c_werror_flag" ||
20494 test ! -s conftest.err
20495 } && test -s conftest$ac_exeext &&
20496 $as_test_x conftest$ac_exeext; then
20497 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20499 echo "$as_me: failed program was
:" >&5
20500 sed 's/^/| /' conftest.$ac_ext >&5
20502 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20506 conftest$ac_exeext conftest.$ac_ext
20507 LIBS=$ac_check_lib_save_LIBS
20509 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20510 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20511 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20512 cat >>confdefs.h <<_ACEOF
20513 #define HAVE_LIBCRYPTO 1
20516 LIBS="-lcrypto $LIBS"
20521 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20522 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20523 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20524 echo $ECHO_N "(cached
) $ECHO_C" >&6
20526 ac_check_lib_save_LIBS=$LIBS
20527 LIBS="-lkrb5 $LIBS"
20528 cat >conftest.$ac_ext <<_ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20535 /* Override any GCC internal prototype to avoid an error.
20536 Use char because int might match the return type of a GCC
20537 builtin and then its argument prototype would still apply. */
20541 char krb5_init_context ();
20545 return krb5_init_context ();
20550 rm -f conftest.$ac_objext conftest$ac_exeext
20551 if { (ac_try="$ac_link"
20552 case "(($ac_try" in
20553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20554 *) ac_try_echo=$ac_try;;
20556 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20557 (eval "$ac_link") 2>conftest.er1
20559 grep -v '^ *+' conftest.er1 >conftest.err
20561 cat conftest.err >&5
20562 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20563 (exit $ac_status); } && {
20564 test -z "$ac_c_werror_flag" ||
20565 test ! -s conftest.err
20566 } && test -s conftest$ac_exeext &&
20567 $as_test_x conftest$ac_exeext; then
20568 ac_cv_lib_krb5_krb5_init_context=yes
20570 echo "$as_me: failed program was
:" >&5
20571 sed 's/^/| /' conftest.$ac_ext >&5
20573 ac_cv_lib_krb5_krb5_init_context=no
20576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20577 conftest$ac_exeext conftest.$ac_ext
20578 LIBS=$ac_check_lib_save_LIBS
20580 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20581 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20582 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20583 cat >>confdefs.h <<_ACEOF
20584 #define HAVE_LIBKRB5 1
20587 LIBS="-lkrb5 $LIBS"
20591 if test "${with_kerberos5+set}" != set; then
20593 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20594 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20595 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20596 echo $ECHO_N "(cached
) $ECHO_C" >&6
20598 ac_check_lib_save_LIBS=$LIBS
20599 LIBS="-ldes425 $LIBS"
20600 cat >conftest.$ac_ext <<_ACEOF
20603 cat confdefs.h >>conftest.$ac_ext
20604 cat >>conftest.$ac_ext <<_ACEOF
20605 /* end confdefs.h. */
20607 /* Override any GCC internal prototype to avoid an error.
20608 Use char because int might match the return type of a GCC
20609 builtin and then its argument prototype would still apply. */
20613 char des_cbc_encrypt ();
20617 return des_cbc_encrypt ();
20622 rm -f conftest.$ac_objext conftest$ac_exeext
20623 if { (ac_try="$ac_link"
20624 case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20628 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_link") 2>conftest.er1
20631 grep -v '^ *+' conftest.er1 >conftest.err
20633 cat conftest.err >&5
20634 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20635 (exit $ac_status); } && {
20636 test -z "$ac_c_werror_flag" ||
20637 test ! -s conftest.err
20638 } && test -s conftest$ac_exeext &&
20639 $as_test_x conftest$ac_exeext; then
20640 ac_cv_lib_des425_des_cbc_encrypt=yes
20642 echo "$as_me: failed program was
:" >&5
20643 sed 's/^/| /' conftest.$ac_ext >&5
20645 ac_cv_lib_des425_des_cbc_encrypt=no
20648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20649 conftest$ac_exeext conftest.$ac_ext
20650 LIBS=$ac_check_lib_save_LIBS
20652 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20653 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20654 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20655 cat >>confdefs.h <<_ACEOF
20656 #define HAVE_LIBDES425 1
20659 LIBS="-ldes425 $LIBS"
20663 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20664 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20665 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20666 echo $ECHO_N "(cached
) $ECHO_C" >&6
20668 ac_check_lib_save_LIBS=$LIBS
20670 cat >conftest.$ac_ext <<_ACEOF
20673 cat confdefs.h >>conftest.$ac_ext
20674 cat >>conftest.$ac_ext <<_ACEOF
20675 /* end confdefs.h. */
20677 /* Override any GCC internal prototype to avoid an error.
20678 Use char because int might match the return type of a GCC
20679 builtin and then its argument prototype would still apply. */
20683 char des_cbc_encrypt ();
20687 return des_cbc_encrypt ();
20692 rm -f conftest.$ac_objext conftest$ac_exeext
20693 if { (ac_try="$ac_link"
20694 case "(($ac_try" in
20695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20696 *) ac_try_echo=$ac_try;;
20698 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20699 (eval "$ac_link") 2>conftest.er1
20701 grep -v '^ *+' conftest.er1 >conftest.err
20703 cat conftest.err >&5
20704 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20705 (exit $ac_status); } && {
20706 test -z "$ac_c_werror_flag" ||
20707 test ! -s conftest.err
20708 } && test -s conftest$ac_exeext &&
20709 $as_test_x conftest$ac_exeext; then
20710 ac_cv_lib_des_des_cbc_encrypt=yes
20712 echo "$as_me: failed program was
:" >&5
20713 sed 's/^/| /' conftest.$ac_ext >&5
20715 ac_cv_lib_des_des_cbc_encrypt=no
20718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20719 conftest$ac_exeext conftest.$ac_ext
20720 LIBS=$ac_check_lib_save_LIBS
20722 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20723 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20724 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20725 cat >>confdefs.h <<_ACEOF
20726 #define HAVE_LIBDES 1
20736 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20737 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20738 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20739 echo $ECHO_N "(cached
) $ECHO_C" >&6
20741 ac_check_lib_save_LIBS=$LIBS
20742 LIBS="-lkrb4 $LIBS"
20743 cat >conftest.$ac_ext <<_ACEOF
20746 cat confdefs.h >>conftest.$ac_ext
20747 cat >>conftest.$ac_ext <<_ACEOF
20748 /* end confdefs.h. */
20750 /* Override any GCC internal prototype to avoid an error.
20751 Use char because int might match the return type of a GCC
20752 builtin and then its argument prototype would still apply. */
20756 char krb_get_cred ();
20760 return krb_get_cred ();
20765 rm -f conftest.$ac_objext conftest$ac_exeext
20766 if { (ac_try="$ac_link"
20767 case "(($ac_try" in
20768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20769 *) ac_try_echo=$ac_try;;
20771 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20772 (eval "$ac_link") 2>conftest.er1
20774 grep -v '^ *+' conftest.er1 >conftest.err
20776 cat conftest.err >&5
20777 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20778 (exit $ac_status); } && {
20779 test -z "$ac_c_werror_flag" ||
20780 test ! -s conftest.err
20781 } && test -s conftest$ac_exeext &&
20782 $as_test_x conftest$ac_exeext; then
20783 ac_cv_lib_krb4_krb_get_cred=yes
20785 echo "$as_me: failed program was
:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20788 ac_cv_lib_krb4_krb_get_cred=no
20791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20792 conftest$ac_exeext conftest.$ac_ext
20793 LIBS=$ac_check_lib_save_LIBS
20795 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20796 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20797 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20798 cat >>confdefs.h <<_ACEOF
20799 #define HAVE_LIBKRB4 1
20802 LIBS="-lkrb4 $LIBS"
20806 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20807 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20808 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20809 echo $ECHO_N "(cached
) $ECHO_C" >&6
20811 ac_check_lib_save_LIBS=$LIBS
20813 cat >conftest.$ac_ext <<_ACEOF
20816 cat confdefs.h >>conftest.$ac_ext
20817 cat >>conftest.$ac_ext <<_ACEOF
20818 /* end confdefs.h. */
20820 /* Override any GCC internal prototype to avoid an error.
20821 Use char because int might match the return type of a GCC
20822 builtin and then its argument prototype would still apply. */
20826 char krb_get_cred ();
20830 return krb_get_cred ();
20835 rm -f conftest.$ac_objext conftest$ac_exeext
20836 if { (ac_try="$ac_link"
20837 case "(($ac_try" in
20838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839 *) ac_try_echo=$ac_try;;
20841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20842 (eval "$ac_link") 2>conftest.er1
20844 grep -v '^ *+' conftest.er1 >conftest.err
20846 cat conftest.err >&5
20847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20848 (exit $ac_status); } && {
20849 test -z "$ac_c_werror_flag" ||
20850 test ! -s conftest.err
20851 } && test -s conftest$ac_exeext &&
20852 $as_test_x conftest$ac_exeext; then
20853 ac_cv_lib_krb_krb_get_cred=yes
20855 echo "$as_me: failed program was
:" >&5
20856 sed 's/^/| /' conftest.$ac_ext >&5
20858 ac_cv_lib_krb_krb_get_cred=no
20861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20862 conftest$ac_exeext conftest.$ac_ext
20863 LIBS=$ac_check_lib_save_LIBS
20865 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20866 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20867 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20868 cat >>confdefs.h <<_ACEOF
20869 #define HAVE_LIBKRB 1
20880 if test "${with_kerberos5+set}" = set; then
20882 for ac_header in krb5.h
20884 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20885 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20886 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20887 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20888 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20889 echo $ECHO_N "(cached
) $ECHO_C" >&6
20891 ac_res=`eval echo '${'$as_ac_Header'}'`
20892 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20893 echo "${ECHO_T}$ac_res" >&6; }
20895 # Is the header compilable?
20896 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20897 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20898 cat >conftest.$ac_ext <<_ACEOF
20901 cat confdefs.h >>conftest.$ac_ext
20902 cat >>conftest.$ac_ext <<_ACEOF
20903 /* end confdefs.h. */
20904 $ac_includes_default
20905 #include <$ac_header>
20907 rm -f conftest.$ac_objext
20908 if { (ac_try="$ac_compile"
20909 case "(($ac_try" in
20910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20911 *) ac_try_echo=$ac_try;;
20913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20914 (eval "$ac_compile") 2>conftest.er1
20916 grep -v '^ *+' conftest.er1 >conftest.err
20918 cat conftest.err >&5
20919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20920 (exit $ac_status); } && {
20921 test -z "$ac_c_werror_flag" ||
20922 test ! -s conftest.err
20923 } && test -s conftest.$ac_objext; then
20924 ac_header_compiler=yes
20926 echo "$as_me: failed program was
:" >&5
20927 sed 's/^/| /' conftest.$ac_ext >&5
20929 ac_header_compiler=no
20932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20933 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20934 echo "${ECHO_T}$ac_header_compiler" >&6; }
20936 # Is the header present?
20937 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20938 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20939 cat >conftest.$ac_ext <<_ACEOF
20942 cat confdefs.h >>conftest.$ac_ext
20943 cat >>conftest.$ac_ext <<_ACEOF
20944 /* end confdefs.h. */
20945 #include <$ac_header>
20947 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20948 case "(($ac_try" in
20949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20950 *) ac_try_echo=$ac_try;;
20952 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20953 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20955 grep -v '^ *+' conftest.er1 >conftest.err
20957 cat conftest.err >&5
20958 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20959 (exit $ac_status); } >/dev/null && {
20960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20961 test ! -s conftest.err
20963 ac_header_preproc=yes
20965 echo "$as_me: failed program was
:" >&5
20966 sed 's/^/| /' conftest.$ac_ext >&5
20968 ac_header_preproc=no
20971 rm -f conftest.err conftest.$ac_ext
20972 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20973 echo "${ECHO_T}$ac_header_preproc" >&6; }
20975 # So? What about this header?
20976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20978 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20979 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20980 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20982 ac_header_preproc=yes
20985 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20986 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20987 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20988 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20989 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20990 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20991 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20992 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20993 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20995 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20996 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21000 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21001 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21002 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21003 echo $ECHO_N "(cached
) $ECHO_C" >&6
21005 eval "$as_ac_Header=\
$ac_header_preproc"
21007 ac_res=`eval echo '${'$as_ac_Header'}'`
21008 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21009 echo "${ECHO_T}$ac_res" >&6; }
21012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21013 cat >>confdefs.h <<_ACEOF
21014 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21023 for ac_header in des.h
21025 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21026 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21027 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21028 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21029 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21030 echo $ECHO_N "(cached
) $ECHO_C" >&6
21032 ac_res=`eval echo '${'$as_ac_Header'}'`
21033 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21034 echo "${ECHO_T}$ac_res" >&6; }
21036 # Is the header compilable?
21037 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21038 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21039 cat >conftest.$ac_ext <<_ACEOF
21042 cat confdefs.h >>conftest.$ac_ext
21043 cat >>conftest.$ac_ext <<_ACEOF
21044 /* end confdefs.h. */
21045 $ac_includes_default
21046 #include <$ac_header>
21048 rm -f conftest.$ac_objext
21049 if { (ac_try="$ac_compile"
21050 case "(($ac_try" in
21051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21052 *) ac_try_echo=$ac_try;;
21054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21055 (eval "$ac_compile") 2>conftest.er1
21057 grep -v '^ *+' conftest.er1 >conftest.err
21059 cat conftest.err >&5
21060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21061 (exit $ac_status); } && {
21062 test -z "$ac_c_werror_flag" ||
21063 test ! -s conftest.err
21064 } && test -s conftest.$ac_objext; then
21065 ac_header_compiler=yes
21067 echo "$as_me: failed program was
:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21070 ac_header_compiler=no
21073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21074 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21075 echo "${ECHO_T}$ac_header_compiler" >&6; }
21077 # Is the header present?
21078 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21079 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21080 cat >conftest.$ac_ext <<_ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21086 #include <$ac_header>
21088 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21089 case "(($ac_try" in
21090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21091 *) ac_try_echo=$ac_try;;
21093 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21094 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21096 grep -v '^ *+' conftest.er1 >conftest.err
21098 cat conftest.err >&5
21099 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21100 (exit $ac_status); } >/dev/null && {
21101 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21102 test ! -s conftest.err
21104 ac_header_preproc=yes
21106 echo "$as_me: failed program was
:" >&5
21107 sed 's/^/| /' conftest.$ac_ext >&5
21109 ac_header_preproc=no
21112 rm -f conftest.err conftest.$ac_ext
21113 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21114 echo "${ECHO_T}$ac_header_preproc" >&6; }
21116 # So? What about this header?
21117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21119 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21120 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21121 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21123 ac_header_preproc=yes
21126 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21127 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21128 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21129 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21130 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21131 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21132 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21133 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21134 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21136 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21137 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21141 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21142 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21143 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21144 echo $ECHO_N "(cached
) $ECHO_C" >&6
21146 eval "$as_ac_Header=\
$ac_header_preproc"
21148 ac_res=`eval echo '${'$as_ac_Header'}'`
21149 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21150 echo "${ECHO_T}$ac_res" >&6; }
21153 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21154 cat >>confdefs.h <<_ACEOF
21155 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21160 for ac_header in kerberosIV/des.h
21162 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21163 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21164 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21165 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21166 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21167 echo $ECHO_N "(cached
) $ECHO_C" >&6
21169 ac_res=`eval echo '${'$as_ac_Header'}'`
21170 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21171 echo "${ECHO_T}$ac_res" >&6; }
21173 # Is the header compilable?
21174 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21175 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21176 cat >conftest.$ac_ext <<_ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21182 $ac_includes_default
21183 #include <$ac_header>
21185 rm -f conftest.$ac_objext
21186 if { (ac_try="$ac_compile"
21187 case "(($ac_try" in
21188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189 *) ac_try_echo=$ac_try;;
21191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21192 (eval "$ac_compile") 2>conftest.er1
21194 grep -v '^ *+' conftest.er1 >conftest.err
21196 cat conftest.err >&5
21197 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21198 (exit $ac_status); } && {
21199 test -z "$ac_c_werror_flag" ||
21200 test ! -s conftest.err
21201 } && test -s conftest.$ac_objext; then
21202 ac_header_compiler=yes
21204 echo "$as_me: failed program was
:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21207 ac_header_compiler=no
21210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21211 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21212 echo "${ECHO_T}$ac_header_compiler" >&6; }
21214 # Is the header present?
21215 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21216 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21217 cat >conftest.$ac_ext <<_ACEOF
21220 cat confdefs.h >>conftest.$ac_ext
21221 cat >>conftest.$ac_ext <<_ACEOF
21222 /* end confdefs.h. */
21223 #include <$ac_header>
21225 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21226 case "(($ac_try" in
21227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21228 *) ac_try_echo=$ac_try;;
21230 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21231 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21233 grep -v '^ *+' conftest.er1 >conftest.err
21235 cat conftest.err >&5
21236 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21237 (exit $ac_status); } >/dev/null && {
21238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21239 test ! -s conftest.err
21241 ac_header_preproc=yes
21243 echo "$as_me: failed program was
:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21246 ac_header_preproc=no
21249 rm -f conftest.err conftest.$ac_ext
21250 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21251 echo "${ECHO_T}$ac_header_preproc" >&6; }
21253 # So? What about this header?
21254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21256 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21257 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21258 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21259 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21260 ac_header_preproc=yes
21263 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21264 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21265 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21266 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21267 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21268 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21269 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21270 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21271 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21272 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21273 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21274 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21278 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21279 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21280 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21281 echo $ECHO_N "(cached
) $ECHO_C" >&6
21283 eval "$as_ac_Header=\
$ac_header_preproc"
21285 ac_res=`eval echo '${'$as_ac_Header'}'`
21286 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21287 echo "${ECHO_T}$ac_res" >&6; }
21290 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21291 cat >>confdefs.h <<_ACEOF
21292 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21297 for ac_header in kerberos/des.h
21299 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21300 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21301 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21302 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21303 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21304 echo $ECHO_N "(cached
) $ECHO_C" >&6
21306 ac_res=`eval echo '${'$as_ac_Header'}'`
21307 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21308 echo "${ECHO_T}$ac_res" >&6; }
21310 # Is the header compilable?
21311 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21312 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21313 cat >conftest.$ac_ext <<_ACEOF
21316 cat confdefs.h >>conftest.$ac_ext
21317 cat >>conftest.$ac_ext <<_ACEOF
21318 /* end confdefs.h. */
21319 $ac_includes_default
21320 #include <$ac_header>
21322 rm -f conftest.$ac_objext
21323 if { (ac_try="$ac_compile"
21324 case "(($ac_try" in
21325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21326 *) ac_try_echo=$ac_try;;
21328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21329 (eval "$ac_compile") 2>conftest.er1
21331 grep -v '^ *+' conftest.er1 >conftest.err
21333 cat conftest.err >&5
21334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21335 (exit $ac_status); } && {
21336 test -z "$ac_c_werror_flag" ||
21337 test ! -s conftest.err
21338 } && test -s conftest.$ac_objext; then
21339 ac_header_compiler=yes
21341 echo "$as_me: failed program was
:" >&5
21342 sed 's/^/| /' conftest.$ac_ext >&5
21344 ac_header_compiler=no
21347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21348 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21349 echo "${ECHO_T}$ac_header_compiler" >&6; }
21351 # Is the header present?
21352 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21353 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21354 cat >conftest.$ac_ext <<_ACEOF
21357 cat confdefs.h >>conftest.$ac_ext
21358 cat >>conftest.$ac_ext <<_ACEOF
21359 /* end confdefs.h. */
21360 #include <$ac_header>
21362 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21363 case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21368 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21370 grep -v '^ *+' conftest.er1 >conftest.err
21372 cat conftest.err >&5
21373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21374 (exit $ac_status); } >/dev/null && {
21375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21376 test ! -s conftest.err
21378 ac_header_preproc=yes
21380 echo "$as_me: failed program was
:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21383 ac_header_preproc=no
21386 rm -f conftest.err conftest.$ac_ext
21387 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21388 echo "${ECHO_T}$ac_header_preproc" >&6; }
21390 # So? What about this header?
21391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21393 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21394 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21395 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21396 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21397 ac_header_preproc=yes
21400 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21401 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21402 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21403 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21404 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21405 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21406 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21407 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21408 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21409 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21410 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21411 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21415 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21416 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21417 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21418 echo $ECHO_N "(cached
) $ECHO_C" >&6
21420 eval "$as_ac_Header=\
$ac_header_preproc"
21422 ac_res=`eval echo '${'$as_ac_Header'}'`
21423 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21424 echo "${ECHO_T}$ac_res" >&6; }
21427 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21428 cat >>confdefs.h <<_ACEOF
21429 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21445 for ac_header in krb.h
21447 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21448 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21449 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21450 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21451 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21452 echo $ECHO_N "(cached
) $ECHO_C" >&6
21454 ac_res=`eval echo '${'$as_ac_Header'}'`
21455 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21456 echo "${ECHO_T}$ac_res" >&6; }
21458 # Is the header compilable?
21459 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21460 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21461 cat >conftest.$ac_ext <<_ACEOF
21464 cat confdefs.h >>conftest.$ac_ext
21465 cat >>conftest.$ac_ext <<_ACEOF
21466 /* end confdefs.h. */
21467 $ac_includes_default
21468 #include <$ac_header>
21470 rm -f conftest.$ac_objext
21471 if { (ac_try="$ac_compile"
21472 case "(($ac_try" in
21473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21474 *) ac_try_echo=$ac_try;;
21476 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21477 (eval "$ac_compile") 2>conftest.er1
21479 grep -v '^ *+' conftest.er1 >conftest.err
21481 cat conftest.err >&5
21482 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21483 (exit $ac_status); } && {
21484 test -z "$ac_c_werror_flag" ||
21485 test ! -s conftest.err
21486 } && test -s conftest.$ac_objext; then
21487 ac_header_compiler=yes
21489 echo "$as_me: failed program was
:" >&5
21490 sed 's/^/| /' conftest.$ac_ext >&5
21492 ac_header_compiler=no
21495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21496 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21497 echo "${ECHO_T}$ac_header_compiler" >&6; }
21499 # Is the header present?
21500 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21501 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21502 cat >conftest.$ac_ext <<_ACEOF
21505 cat confdefs.h >>conftest.$ac_ext
21506 cat >>conftest.$ac_ext <<_ACEOF
21507 /* end confdefs.h. */
21508 #include <$ac_header>
21510 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21511 case "(($ac_try" in
21512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21513 *) ac_try_echo=$ac_try;;
21515 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21516 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21518 grep -v '^ *+' conftest.er1 >conftest.err
21520 cat conftest.err >&5
21521 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21522 (exit $ac_status); } >/dev/null && {
21523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21524 test ! -s conftest.err
21526 ac_header_preproc=yes
21528 echo "$as_me: failed program was
:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21531 ac_header_preproc=no
21534 rm -f conftest.err conftest.$ac_ext
21535 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21536 echo "${ECHO_T}$ac_header_preproc" >&6; }
21538 # So? What about this header?
21539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21541 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21542 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21543 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21545 ac_header_preproc=yes
21548 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21549 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21550 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21551 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21552 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21553 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21554 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21555 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21556 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21558 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21559 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21563 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21564 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21565 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21566 echo $ECHO_N "(cached
) $ECHO_C" >&6
21568 eval "$as_ac_Header=\
$ac_header_preproc"
21570 ac_res=`eval echo '${'$as_ac_Header'}'`
21571 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21572 echo "${ECHO_T}$ac_res" >&6; }
21575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21576 cat >>confdefs.h <<_ACEOF
21577 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21582 for ac_header in kerberosIV/krb.h
21584 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21585 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21586 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21587 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21588 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21589 echo $ECHO_N "(cached
) $ECHO_C" >&6
21591 ac_res=`eval echo '${'$as_ac_Header'}'`
21592 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21593 echo "${ECHO_T}$ac_res" >&6; }
21595 # Is the header compilable?
21596 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21597 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21598 cat >conftest.$ac_ext <<_ACEOF
21601 cat confdefs.h >>conftest.$ac_ext
21602 cat >>conftest.$ac_ext <<_ACEOF
21603 /* end confdefs.h. */
21604 $ac_includes_default
21605 #include <$ac_header>
21607 rm -f conftest.$ac_objext
21608 if { (ac_try="$ac_compile"
21609 case "(($ac_try" in
21610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21611 *) ac_try_echo=$ac_try;;
21613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21614 (eval "$ac_compile") 2>conftest.er1
21616 grep -v '^ *+' conftest.er1 >conftest.err
21618 cat conftest.err >&5
21619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21620 (exit $ac_status); } && {
21621 test -z "$ac_c_werror_flag" ||
21622 test ! -s conftest.err
21623 } && test -s conftest.$ac_objext; then
21624 ac_header_compiler=yes
21626 echo "$as_me: failed program was
:" >&5
21627 sed 's/^/| /' conftest.$ac_ext >&5
21629 ac_header_compiler=no
21632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21633 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21634 echo "${ECHO_T}$ac_header_compiler" >&6; }
21636 # Is the header present?
21637 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21638 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21639 cat >conftest.$ac_ext <<_ACEOF
21642 cat confdefs.h >>conftest.$ac_ext
21643 cat >>conftest.$ac_ext <<_ACEOF
21644 /* end confdefs.h. */
21645 #include <$ac_header>
21647 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21648 case "(($ac_try" in
21649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21650 *) ac_try_echo=$ac_try;;
21652 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21653 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21655 grep -v '^ *+' conftest.er1 >conftest.err
21657 cat conftest.err >&5
21658 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21659 (exit $ac_status); } >/dev/null && {
21660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21661 test ! -s conftest.err
21663 ac_header_preproc=yes
21665 echo "$as_me: failed program was
:" >&5
21666 sed 's/^/| /' conftest.$ac_ext >&5
21668 ac_header_preproc=no
21671 rm -f conftest.err conftest.$ac_ext
21672 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21673 echo "${ECHO_T}$ac_header_preproc" >&6; }
21675 # So? What about this header?
21676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21678 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21679 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21680 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21681 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21682 ac_header_preproc=yes
21685 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21686 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21687 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21688 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21689 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21690 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21691 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21692 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21693 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21694 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21695 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21696 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21700 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21701 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21702 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21703 echo $ECHO_N "(cached
) $ECHO_C" >&6
21705 eval "$as_ac_Header=\
$ac_header_preproc"
21707 ac_res=`eval echo '${'$as_ac_Header'}'`
21708 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21709 echo "${ECHO_T}$ac_res" >&6; }
21712 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21713 cat >>confdefs.h <<_ACEOF
21714 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21719 for ac_header in kerberos/krb.h
21721 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21722 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21723 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21724 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21725 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21726 echo $ECHO_N "(cached
) $ECHO_C" >&6
21728 ac_res=`eval echo '${'$as_ac_Header'}'`
21729 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21730 echo "${ECHO_T}$ac_res" >&6; }
21732 # Is the header compilable?
21733 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21734 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21735 cat >conftest.$ac_ext <<_ACEOF
21738 cat confdefs.h >>conftest.$ac_ext
21739 cat >>conftest.$ac_ext <<_ACEOF
21740 /* end confdefs.h. */
21741 $ac_includes_default
21742 #include <$ac_header>
21744 rm -f conftest.$ac_objext
21745 if { (ac_try="$ac_compile"
21746 case "(($ac_try" in
21747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21748 *) ac_try_echo=$ac_try;;
21750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21751 (eval "$ac_compile") 2>conftest.er1
21753 grep -v '^ *+' conftest.er1 >conftest.err
21755 cat conftest.err >&5
21756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21757 (exit $ac_status); } && {
21758 test -z "$ac_c_werror_flag" ||
21759 test ! -s conftest.err
21760 } && test -s conftest.$ac_objext; then
21761 ac_header_compiler=yes
21763 echo "$as_me: failed program was
:" >&5
21764 sed 's/^/| /' conftest.$ac_ext >&5
21766 ac_header_compiler=no
21769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21770 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21771 echo "${ECHO_T}$ac_header_compiler" >&6; }
21773 # Is the header present?
21774 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21775 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21776 cat >conftest.$ac_ext <<_ACEOF
21779 cat confdefs.h >>conftest.$ac_ext
21780 cat >>conftest.$ac_ext <<_ACEOF
21781 /* end confdefs.h. */
21782 #include <$ac_header>
21784 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21785 case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21792 grep -v '^ *+' conftest.er1 >conftest.err
21794 cat conftest.err >&5
21795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21796 (exit $ac_status); } >/dev/null && {
21797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21798 test ! -s conftest.err
21800 ac_header_preproc=yes
21802 echo "$as_me: failed program was
:" >&5
21803 sed 's/^/| /' conftest.$ac_ext >&5
21805 ac_header_preproc=no
21808 rm -f conftest.err conftest.$ac_ext
21809 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21810 echo "${ECHO_T}$ac_header_preproc" >&6; }
21812 # So? What about this header?
21813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21815 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21816 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21817 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21819 ac_header_preproc=yes
21822 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21823 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21824 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21825 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21826 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21827 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21828 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21829 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21830 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21832 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21833 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21837 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21838 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21839 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21840 echo $ECHO_N "(cached
) $ECHO_C" >&6
21842 eval "$as_ac_Header=\
$ac_header_preproc"
21844 ac_res=`eval echo '${'$as_ac_Header'}'`
21845 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21846 echo "${ECHO_T}$ac_res" >&6; }
21849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21850 cat >>confdefs.h <<_ACEOF
21851 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21868 for ac_header in com_err.h
21870 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21871 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21872 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21873 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21874 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21875 echo $ECHO_N "(cached
) $ECHO_C" >&6
21877 ac_res=`eval echo '${'$as_ac_Header'}'`
21878 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21879 echo "${ECHO_T}$ac_res" >&6; }
21881 # Is the header compilable?
21882 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21883 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21884 cat >conftest.$ac_ext <<_ACEOF
21887 cat confdefs.h >>conftest.$ac_ext
21888 cat >>conftest.$ac_ext <<_ACEOF
21889 /* end confdefs.h. */
21890 $ac_includes_default
21891 #include <$ac_header>
21893 rm -f conftest.$ac_objext
21894 if { (ac_try="$ac_compile"
21895 case "(($ac_try" in
21896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21897 *) ac_try_echo=$ac_try;;
21899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21900 (eval "$ac_compile") 2>conftest.er1
21902 grep -v '^ *+' conftest.er1 >conftest.err
21904 cat conftest.err >&5
21905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21906 (exit $ac_status); } && {
21907 test -z "$ac_c_werror_flag" ||
21908 test ! -s conftest.err
21909 } && test -s conftest.$ac_objext; then
21910 ac_header_compiler=yes
21912 echo "$as_me: failed program was
:" >&5
21913 sed 's/^/| /' conftest.$ac_ext >&5
21915 ac_header_compiler=no
21918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21919 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21920 echo "${ECHO_T}$ac_header_compiler" >&6; }
21922 # Is the header present?
21923 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21924 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21925 cat >conftest.$ac_ext <<_ACEOF
21928 cat confdefs.h >>conftest.$ac_ext
21929 cat >>conftest.$ac_ext <<_ACEOF
21930 /* end confdefs.h. */
21931 #include <$ac_header>
21933 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21934 case "(($ac_try" in
21935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21936 *) ac_try_echo=$ac_try;;
21938 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21939 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21941 grep -v '^ *+' conftest.er1 >conftest.err
21943 cat conftest.err >&5
21944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21945 (exit $ac_status); } >/dev/null && {
21946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21947 test ! -s conftest.err
21949 ac_header_preproc=yes
21951 echo "$as_me: failed program was
:" >&5
21952 sed 's/^/| /' conftest.$ac_ext >&5
21954 ac_header_preproc=no
21957 rm -f conftest.err conftest.$ac_ext
21958 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21959 echo "${ECHO_T}$ac_header_preproc" >&6; }
21961 # So? What about this header?
21962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21964 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21965 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21966 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21967 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21968 ac_header_preproc=yes
21971 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21972 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21973 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21974 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21975 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21976 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21977 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21978 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21979 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21980 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21981 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21982 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21986 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21987 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21988 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21989 echo $ECHO_N "(cached
) $ECHO_C" >&6
21991 eval "$as_ac_Header=\
$ac_header_preproc"
21993 ac_res=`eval echo '${'$as_ac_Header'}'`
21994 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21995 echo "${ECHO_T}$ac_res" >&6; }
21998 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21999 cat >>confdefs.h <<_ACEOF
22000 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22009 # Solaris requires -lintl if you want strerror (which calls dgettext)
22010 # to return localized messages.
22012 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22013 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22014 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22015 echo $ECHO_N "(cached
) $ECHO_C" >&6
22017 ac_check_lib_save_LIBS=$LIBS
22018 LIBS="-lintl $LIBS"
22019 cat >conftest.$ac_ext <<_ACEOF
22022 cat confdefs.h >>conftest.$ac_ext
22023 cat >>conftest.$ac_ext <<_ACEOF
22024 /* end confdefs.h. */
22026 /* Override any GCC internal prototype to avoid an error.
22027 Use char because int might match the return type of a GCC
22028 builtin and then its argument prototype would still apply. */
22036 return dgettext ();
22041 rm -f conftest.$ac_objext conftest$ac_exeext
22042 if { (ac_try="$ac_link"
22043 case "(($ac_try" in
22044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22045 *) ac_try_echo=$ac_try;;
22047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22048 (eval "$ac_link") 2>conftest.er1
22050 grep -v '^ *+' conftest.er1 >conftest.err
22052 cat conftest.err >&5
22053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22054 (exit $ac_status); } && {
22055 test -z "$ac_c_werror_flag" ||
22056 test ! -s conftest.err
22057 } && test -s conftest$ac_exeext &&
22058 $as_test_x conftest$ac_exeext; then
22059 ac_cv_lib_intl_dgettext=yes
22061 echo "$as_me: failed program was
:" >&5
22062 sed 's/^/| /' conftest.$ac_ext >&5
22064 ac_cv_lib_intl_dgettext=no
22067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22068 conftest$ac_exeext conftest.$ac_ext
22069 LIBS=$ac_check_lib_save_LIBS
22071 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22072 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22073 if test $ac_cv_lib_intl_dgettext = yes; then
22074 cat >>confdefs.h <<_ACEOF
22075 #define HAVE_LIBINTL 1
22078 LIBS="-lintl $LIBS"
22083 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22084 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22085 if test "${emacs_cv_localtime_cache+set}" = set; then
22086 echo $ECHO_N "(cached
) $ECHO_C" >&6
22088 if test x$ac_cv_func_tzset = xyes; then
22089 if test "$cross_compiling" = yes; then
22090 # If we have tzset, assume the worst when cross-compiling.
22091 emacs_cv_localtime_cache=yes
22093 cat >conftest.$ac_ext <<_ACEOF
22096 cat confdefs.h >>conftest.$ac_ext
22097 cat >>conftest.$ac_ext <<_ACEOF
22098 /* end confdefs.h. */
22100 extern char **environ;
22104 for (to = from = environ; (*to = *from); from++)
22105 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22108 char TZ_GMT0[] = "TZ
=GMT0
";
22109 char TZ_PST8[] = "TZ
=PST8
";
22112 time_t now = time ((time_t *) 0);
22113 int hour_GMT0, hour_unset;
22114 if (putenv (TZ_GMT0) != 0)
22116 hour_GMT0 = localtime (&now)->tm_hour;
22118 hour_unset = localtime (&now)->tm_hour;
22119 if (putenv (TZ_PST8) != 0)
22121 if (localtime (&now)->tm_hour == hour_GMT0)
22124 if (localtime (&now)->tm_hour != hour_unset)
22129 rm -f conftest$ac_exeext
22130 if { (ac_try="$ac_link"
22131 case "(($ac_try" in
22132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22133 *) ac_try_echo=$ac_try;;
22135 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22136 (eval "$ac_link") 2>&5
22138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22139 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22140 { (case "(($ac_try" in
22141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22142 *) ac_try_echo=$ac_try;;
22144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22145 (eval "$ac_try") 2>&5
22147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22148 (exit $ac_status); }; }; then
22149 emacs_cv_localtime_cache=no
22151 echo "$as_me: program exited with status
$ac_status" >&5
22152 echo "$as_me: failed program was
:" >&5
22153 sed 's/^/| /' conftest.$ac_ext >&5
22155 ( exit $ac_status )
22156 emacs_cv_localtime_cache=yes
22158 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22163 # If we lack tzset, report that localtime does not cache TZ,
22164 # since we can't invalidate the cache if we don't have tzset.
22165 emacs_cv_localtime_cache=no
22168 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22169 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22170 if test $emacs_cv_localtime_cache = yes; then
22172 cat >>confdefs.h <<\_ACEOF
22173 #define LOCALTIME_CACHE 1
22178 if test "x
$HAVE_TIMEVAL" = xyes; then
22180 for ac_func in gettimeofday
22182 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22183 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22184 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22185 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22186 echo $ECHO_N "(cached
) $ECHO_C" >&6
22188 cat >conftest.$ac_ext <<_ACEOF
22191 cat confdefs.h >>conftest.$ac_ext
22192 cat >>conftest.$ac_ext <<_ACEOF
22193 /* end confdefs.h. */
22194 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22196 #define $ac_func innocuous_$ac_func
22198 /* System header to define __stub macros and hopefully few prototypes,
22199 which can conflict with char $ac_func (); below.
22200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22201 <limits.h> exists even on freestanding compilers. */
22204 # include <limits.h>
22206 # include <assert.h>
22211 /* Override any GCC internal prototype to avoid an error.
22212 Use char because int might match the return type of a GCC
22213 builtin and then its argument prototype would still apply. */
22218 /* The GNU C library defines this for functions which it implements
22219 to always fail with ENOSYS. Some functions are actually named
22220 something starting with __ and the normal name is an alias. */
22221 #if defined __stub_$ac_func || defined __stub___$ac_func
22228 return $ac_func ();
22233 rm -f conftest.$ac_objext conftest$ac_exeext
22234 if { (ac_try="$ac_link"
22235 case "(($ac_try" in
22236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22237 *) ac_try_echo=$ac_try;;
22239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22240 (eval "$ac_link") 2>conftest.er1
22242 grep -v '^ *+' conftest.er1 >conftest.err
22244 cat conftest.err >&5
22245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22246 (exit $ac_status); } && {
22247 test -z "$ac_c_werror_flag" ||
22248 test ! -s conftest.err
22249 } && test -s conftest$ac_exeext &&
22250 $as_test_x conftest$ac_exeext; then
22251 eval "$as_ac_var=yes"
22253 echo "$as_me: failed program was
:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22256 eval "$as_ac_var=no
"
22259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22260 conftest$ac_exeext conftest.$ac_ext
22262 ac_res=`eval echo '${'$as_ac_var'}'`
22263 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22264 echo "${ECHO_T}$ac_res" >&6; }
22265 if test `eval echo '${'$as_ac_var'}'` = yes; then
22266 cat >>confdefs.h <<_ACEOF
22267 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22273 if test $ac_cv_func_gettimeofday = yes; then
22274 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22275 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22276 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22277 echo $ECHO_N "(cached
) $ECHO_C" >&6
22279 cat >conftest.$ac_ext <<_ACEOF
22282 cat confdefs.h >>conftest.$ac_ext
22283 cat >>conftest.$ac_ext <<_ACEOF
22284 /* end confdefs.h. */
22286 #ifdef TIME_WITH_SYS_TIME
22287 #include <sys/time.h>
22290 #ifdef HAVE_SYS_TIME_H
22291 #include <sys/time.h>
22299 struct timeval time;
22300 gettimeofday (&time, 0);
22305 rm -f conftest.$ac_objext
22306 if { (ac_try="$ac_compile"
22307 case "(($ac_try" in
22308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22309 *) ac_try_echo=$ac_try;;
22311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22312 (eval "$ac_compile") 2>conftest.er1
22314 grep -v '^ *+' conftest.er1 >conftest.err
22316 cat conftest.err >&5
22317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22318 (exit $ac_status); } && {
22319 test -z "$ac_c_werror_flag" ||
22320 test ! -s conftest.err
22321 } && test -s conftest.$ac_objext; then
22322 emacs_cv_gettimeofday_two_arguments=yes
22324 echo "$as_me: failed program was
:" >&5
22325 sed 's/^/| /' conftest.$ac_ext >&5
22327 emacs_cv_gettimeofday_two_arguments=no
22330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22332 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22333 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22334 if test $emacs_cv_gettimeofday_two_arguments = no; then
22336 cat >>confdefs.h <<\_ACEOF
22337 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22345 { echo "$as_me:$LINENO: checking
for socket
" >&5
22346 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22347 if test "${ac_cv_func_socket+set}" = set; then
22348 echo $ECHO_N "(cached
) $ECHO_C" >&6
22350 cat >conftest.$ac_ext <<_ACEOF
22353 cat confdefs.h >>conftest.$ac_ext
22354 cat >>conftest.$ac_ext <<_ACEOF
22355 /* end confdefs.h. */
22356 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22358 #define socket innocuous_socket
22360 /* System header to define __stub macros and hopefully few prototypes,
22361 which can conflict with char socket (); below.
22362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22363 <limits.h> exists even on freestanding compilers. */
22366 # include <limits.h>
22368 # include <assert.h>
22373 /* Override any GCC internal prototype to avoid an error.
22374 Use char because int might match the return type of a GCC
22375 builtin and then its argument prototype would still apply. */
22380 /* The GNU C library defines this for functions which it implements
22381 to always fail with ENOSYS. Some functions are actually named
22382 something starting with __ and the normal name is an alias. */
22383 #if defined __stub_socket || defined __stub___socket
22395 rm -f conftest.$ac_objext conftest$ac_exeext
22396 if { (ac_try="$ac_link"
22397 case "(($ac_try" in
22398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22399 *) ac_try_echo=$ac_try;;
22401 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22402 (eval "$ac_link") 2>conftest.er1
22404 grep -v '^ *+' conftest.er1 >conftest.err
22406 cat conftest.err >&5
22407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22408 (exit $ac_status); } && {
22409 test -z "$ac_c_werror_flag" ||
22410 test ! -s conftest.err
22411 } && test -s conftest$ac_exeext &&
22412 $as_test_x conftest$ac_exeext; then
22413 ac_cv_func_socket=yes
22415 echo "$as_me: failed program was
:" >&5
22416 sed 's/^/| /' conftest.$ac_ext >&5
22418 ac_cv_func_socket=no
22421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22422 conftest$ac_exeext conftest.$ac_ext
22424 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22425 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22426 if test $ac_cv_func_socket = yes; then
22432 if test $ok_so_far = yes; then
22433 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22434 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22435 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22436 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22437 echo $ECHO_N "(cached
) $ECHO_C" >&6
22439 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22440 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22442 # Is the header compilable?
22443 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22444 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22445 cat >conftest.$ac_ext <<_ACEOF
22448 cat confdefs.h >>conftest.$ac_ext
22449 cat >>conftest.$ac_ext <<_ACEOF
22450 /* end confdefs.h. */
22451 $ac_includes_default
22452 #include <netinet/in.h>
22454 rm -f conftest.$ac_objext
22455 if { (ac_try="$ac_compile"
22456 case "(($ac_try" in
22457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22458 *) ac_try_echo=$ac_try;;
22460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22461 (eval "$ac_compile") 2>conftest.er1
22463 grep -v '^ *+' conftest.er1 >conftest.err
22465 cat conftest.err >&5
22466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22467 (exit $ac_status); } && {
22468 test -z "$ac_c_werror_flag" ||
22469 test ! -s conftest.err
22470 } && test -s conftest.$ac_objext; then
22471 ac_header_compiler=yes
22473 echo "$as_me: failed program was
:" >&5
22474 sed 's/^/| /' conftest.$ac_ext >&5
22476 ac_header_compiler=no
22479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22480 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22481 echo "${ECHO_T}$ac_header_compiler" >&6; }
22483 # Is the header present?
22484 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22485 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22486 cat >conftest.$ac_ext <<_ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h. */
22492 #include <netinet/in.h>
22494 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22495 case "(($ac_try" in
22496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22497 *) ac_try_echo=$ac_try;;
22499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22500 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22502 grep -v '^ *+' conftest.er1 >conftest.err
22504 cat conftest.err >&5
22505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22506 (exit $ac_status); } >/dev/null && {
22507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22508 test ! -s conftest.err
22510 ac_header_preproc=yes
22512 echo "$as_me: failed program was
:" >&5
22513 sed 's/^/| /' conftest.$ac_ext >&5
22515 ac_header_preproc=no
22518 rm -f conftest.err conftest.$ac_ext
22519 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22520 echo "${ECHO_T}$ac_header_preproc" >&6; }
22522 # So? What about this header?
22523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22525 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22526 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22527 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22528 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22529 ac_header_preproc=yes
22532 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22533 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22534 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22535 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22536 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22537 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22538 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22539 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22540 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22541 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22542 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22543 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22547 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22548 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22549 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22550 echo $ECHO_N "(cached
) $ECHO_C" >&6
22552 ac_cv_header_netinet_in_h=$ac_header_preproc
22554 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22555 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22558 if test $ac_cv_header_netinet_in_h = yes; then
22566 if test $ok_so_far = yes; then
22567 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22568 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22569 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22570 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22571 echo $ECHO_N "(cached
) $ECHO_C" >&6
22573 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22574 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22576 # Is the header compilable?
22577 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22578 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22579 cat >conftest.$ac_ext <<_ACEOF
22582 cat confdefs.h >>conftest.$ac_ext
22583 cat >>conftest.$ac_ext <<_ACEOF
22584 /* end confdefs.h. */
22585 $ac_includes_default
22586 #include <arpa/inet.h>
22588 rm -f conftest.$ac_objext
22589 if { (ac_try="$ac_compile"
22590 case "(($ac_try" in
22591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22592 *) ac_try_echo=$ac_try;;
22594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22595 (eval "$ac_compile") 2>conftest.er1
22597 grep -v '^ *+' conftest.er1 >conftest.err
22599 cat conftest.err >&5
22600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22601 (exit $ac_status); } && {
22602 test -z "$ac_c_werror_flag" ||
22603 test ! -s conftest.err
22604 } && test -s conftest.$ac_objext; then
22605 ac_header_compiler=yes
22607 echo "$as_me: failed program was
:" >&5
22608 sed 's/^/| /' conftest.$ac_ext >&5
22610 ac_header_compiler=no
22613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22614 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22615 echo "${ECHO_T}$ac_header_compiler" >&6; }
22617 # Is the header present?
22618 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22619 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22620 cat >conftest.$ac_ext <<_ACEOF
22623 cat confdefs.h >>conftest.$ac_ext
22624 cat >>conftest.$ac_ext <<_ACEOF
22625 /* end confdefs.h. */
22626 #include <arpa/inet.h>
22628 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22629 case "(($ac_try" in
22630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22631 *) ac_try_echo=$ac_try;;
22633 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22634 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22636 grep -v '^ *+' conftest.er1 >conftest.err
22638 cat conftest.err >&5
22639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22640 (exit $ac_status); } >/dev/null && {
22641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22642 test ! -s conftest.err
22644 ac_header_preproc=yes
22646 echo "$as_me: failed program was
:" >&5
22647 sed 's/^/| /' conftest.$ac_ext >&5
22649 ac_header_preproc=no
22652 rm -f conftest.err conftest.$ac_ext
22653 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22654 echo "${ECHO_T}$ac_header_preproc" >&6; }
22656 # So? What about this header?
22657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22659 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22660 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22661 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22662 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22663 ac_header_preproc=yes
22666 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22667 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22668 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22669 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22670 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22671 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22672 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22673 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22674 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22675 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22676 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22677 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22681 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22682 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22683 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22684 echo $ECHO_N "(cached
) $ECHO_C" >&6
22686 ac_cv_header_arpa_inet_h=$ac_header_preproc
22688 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22689 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22692 if test $ac_cv_header_arpa_inet_h = yes; then
22700 if test $ok_so_far = yes; then
22702 cat >>confdefs.h <<\_ACEOF
22703 #define HAVE_INET_SOCKETS 1
22709 for ac_header in sys/ioctl.h
22711 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22712 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22713 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22714 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22715 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22716 echo $ECHO_N "(cached
) $ECHO_C" >&6
22718 ac_res=`eval echo '${'$as_ac_Header'}'`
22719 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22720 echo "${ECHO_T}$ac_res" >&6; }
22722 # Is the header compilable?
22723 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22724 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22725 cat >conftest.$ac_ext <<_ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h. */
22731 $ac_includes_default
22732 #include <$ac_header>
22734 rm -f conftest.$ac_objext
22735 if { (ac_try="$ac_compile"
22736 case "(($ac_try" in
22737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22738 *) ac_try_echo=$ac_try;;
22740 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22741 (eval "$ac_compile") 2>conftest.er1
22743 grep -v '^ *+' conftest.er1 >conftest.err
22745 cat conftest.err >&5
22746 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22747 (exit $ac_status); } && {
22748 test -z "$ac_c_werror_flag" ||
22749 test ! -s conftest.err
22750 } && test -s conftest.$ac_objext; then
22751 ac_header_compiler=yes
22753 echo "$as_me: failed program was
:" >&5
22754 sed 's/^/| /' conftest.$ac_ext >&5
22756 ac_header_compiler=no
22759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22760 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22761 echo "${ECHO_T}$ac_header_compiler" >&6; }
22763 # Is the header present?
22764 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22765 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22766 cat >conftest.$ac_ext <<_ACEOF
22769 cat confdefs.h >>conftest.$ac_ext
22770 cat >>conftest.$ac_ext <<_ACEOF
22771 /* end confdefs.h. */
22772 #include <$ac_header>
22774 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22775 case "(($ac_try" in
22776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22777 *) ac_try_echo=$ac_try;;
22779 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22780 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22782 grep -v '^ *+' conftest.er1 >conftest.err
22784 cat conftest.err >&5
22785 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22786 (exit $ac_status); } >/dev/null && {
22787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22788 test ! -s conftest.err
22790 ac_header_preproc=yes
22792 echo "$as_me: failed program was
:" >&5
22793 sed 's/^/| /' conftest.$ac_ext >&5
22795 ac_header_preproc=no
22798 rm -f conftest.err conftest.$ac_ext
22799 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22800 echo "${ECHO_T}$ac_header_preproc" >&6; }
22802 # So? What about this header?
22803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22805 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22806 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22807 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22809 ac_header_preproc=yes
22812 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22813 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22814 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22815 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22816 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22817 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22818 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22819 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22820 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22822 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22823 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22827 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22828 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22829 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22830 echo $ECHO_N "(cached
) $ECHO_C" >&6
22832 eval "$as_ac_Header=\
$ac_header_preproc"
22834 ac_res=`eval echo '${'$as_ac_Header'}'`
22835 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22836 echo "${ECHO_T}$ac_res" >&6; }
22839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22840 cat >>confdefs.h <<_ACEOF
22841 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22849 if test -f /usr/lpp/X11/bin/smt.exp; then
22851 cat >>confdefs.h <<\_ACEOF
22852 #define HAVE_AIX_SMT_EXP 1
22857 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22858 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22859 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22860 { echo "$as_me:$LINENO: result
: yes" >&5
22861 echo "${ECHO_T}yes" >&6; }
22863 cat >>confdefs.h <<\_ACEOF
22864 #define HAVE_DEV_PTMX 1
22868 { echo "$as_me:$LINENO: result
: no
" >&5
22869 echo "${ECHO_T}no
" >&6; }
22872 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22873 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22874 if test "${ac_cv_type_pid_t+set}" = set; then
22875 echo $ECHO_N "(cached
) $ECHO_C" >&6
22877 cat >conftest.$ac_ext <<_ACEOF
22880 cat confdefs.h >>conftest.$ac_ext
22881 cat >>conftest.$ac_ext <<_ACEOF
22882 /* end confdefs.h. */
22883 $ac_includes_default
22884 typedef pid_t ac__type_new_;
22888 if ((ac__type_new_ *) 0)
22890 if (sizeof (ac__type_new_))
22896 rm -f conftest.$ac_objext
22897 if { (ac_try="$ac_compile"
22898 case "(($ac_try" in
22899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22900 *) ac_try_echo=$ac_try;;
22902 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22903 (eval "$ac_compile") 2>conftest.er1
22905 grep -v '^ *+' conftest.er1 >conftest.err
22907 cat conftest.err >&5
22908 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22909 (exit $ac_status); } && {
22910 test -z "$ac_c_werror_flag" ||
22911 test ! -s conftest.err
22912 } && test -s conftest.$ac_objext; then
22913 ac_cv_type_pid_t=yes
22915 echo "$as_me: failed program was
:" >&5
22916 sed 's/^/| /' conftest.$ac_ext >&5
22918 ac_cv_type_pid_t=no
22921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22923 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22924 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22925 if test $ac_cv_type_pid_t = yes; then
22929 cat >>confdefs.h <<_ACEOF
22936 for ac_header in vfork.h
22938 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22939 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22940 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22941 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22942 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22943 echo $ECHO_N "(cached
) $ECHO_C" >&6
22945 ac_res=`eval echo '${'$as_ac_Header'}'`
22946 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22947 echo "${ECHO_T}$ac_res" >&6; }
22949 # Is the header compilable?
22950 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22951 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22952 cat >conftest.$ac_ext <<_ACEOF
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h. */
22958 $ac_includes_default
22959 #include <$ac_header>
22961 rm -f conftest.$ac_objext
22962 if { (ac_try="$ac_compile"
22963 case "(($ac_try" in
22964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22965 *) ac_try_echo=$ac_try;;
22967 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22968 (eval "$ac_compile") 2>conftest.er1
22970 grep -v '^ *+' conftest.er1 >conftest.err
22972 cat conftest.err >&5
22973 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22974 (exit $ac_status); } && {
22975 test -z "$ac_c_werror_flag" ||
22976 test ! -s conftest.err
22977 } && test -s conftest.$ac_objext; then
22978 ac_header_compiler=yes
22980 echo "$as_me: failed program was
:" >&5
22981 sed 's/^/| /' conftest.$ac_ext >&5
22983 ac_header_compiler=no
22986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22987 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22988 echo "${ECHO_T}$ac_header_compiler" >&6; }
22990 # Is the header present?
22991 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22992 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22993 cat >conftest.$ac_ext <<_ACEOF
22996 cat confdefs.h >>conftest.$ac_ext
22997 cat >>conftest.$ac_ext <<_ACEOF
22998 /* end confdefs.h. */
22999 #include <$ac_header>
23001 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23002 case "(($ac_try" in
23003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23004 *) ac_try_echo=$ac_try;;
23006 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23007 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23009 grep -v '^ *+' conftest.er1 >conftest.err
23011 cat conftest.err >&5
23012 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23013 (exit $ac_status); } >/dev/null && {
23014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23015 test ! -s conftest.err
23017 ac_header_preproc=yes
23019 echo "$as_me: failed program was
:" >&5
23020 sed 's/^/| /' conftest.$ac_ext >&5
23022 ac_header_preproc=no
23025 rm -f conftest.err conftest.$ac_ext
23026 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23027 echo "${ECHO_T}$ac_header_preproc" >&6; }
23029 # So? What about this header?
23030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23032 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23033 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23034 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23036 ac_header_preproc=yes
23039 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23040 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23041 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23042 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23043 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23044 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23045 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23046 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23047 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23049 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23050 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23054 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23055 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23056 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23057 echo $ECHO_N "(cached
) $ECHO_C" >&6
23059 eval "$as_ac_Header=\
$ac_header_preproc"
23061 ac_res=`eval echo '${'$as_ac_Header'}'`
23062 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23063 echo "${ECHO_T}$ac_res" >&6; }
23066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23067 cat >>confdefs.h <<_ACEOF
23068 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23077 for ac_func in fork vfork
23079 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23080 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23081 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23082 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23083 echo $ECHO_N "(cached
) $ECHO_C" >&6
23085 cat >conftest.$ac_ext <<_ACEOF
23088 cat confdefs.h >>conftest.$ac_ext
23089 cat >>conftest.$ac_ext <<_ACEOF
23090 /* end confdefs.h. */
23091 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23092 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23093 #define $ac_func innocuous_$ac_func
23095 /* System header to define __stub macros and hopefully few prototypes,
23096 which can conflict with char $ac_func (); below.
23097 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23098 <limits.h> exists even on freestanding compilers. */
23101 # include <limits.h>
23103 # include <assert.h>
23108 /* Override any GCC internal prototype to avoid an error.
23109 Use char because int might match the return type of a GCC
23110 builtin and then its argument prototype would still apply. */
23115 /* The GNU C library defines this for functions which it implements
23116 to always fail with ENOSYS. Some functions are actually named
23117 something starting with __ and the normal name is an alias. */
23118 #if defined __stub_$ac_func || defined __stub___$ac_func
23125 return $ac_func ();
23130 rm -f conftest.$ac_objext conftest$ac_exeext
23131 if { (ac_try="$ac_link"
23132 case "(($ac_try" in
23133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23134 *) ac_try_echo=$ac_try;;
23136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23137 (eval "$ac_link") 2>conftest.er1
23139 grep -v '^ *+' conftest.er1 >conftest.err
23141 cat conftest.err >&5
23142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23143 (exit $ac_status); } && {
23144 test -z "$ac_c_werror_flag" ||
23145 test ! -s conftest.err
23146 } && test -s conftest$ac_exeext &&
23147 $as_test_x conftest$ac_exeext; then
23148 eval "$as_ac_var=yes"
23150 echo "$as_me: failed program was
:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23153 eval "$as_ac_var=no
"
23156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23157 conftest$ac_exeext conftest.$ac_ext
23159 ac_res=`eval echo '${'$as_ac_var'}'`
23160 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23161 echo "${ECHO_T}$ac_res" >&6; }
23162 if test `eval echo '${'$as_ac_var'}'` = yes; then
23163 cat >>confdefs.h <<_ACEOF
23164 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23170 if test "x
$ac_cv_func_fork" = xyes; then
23171 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23172 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23173 if test "${ac_cv_func_fork_works+set}" = set; then
23174 echo $ECHO_N "(cached
) $ECHO_C" >&6
23176 if test "$cross_compiling" = yes; then
23177 ac_cv_func_fork_works=cross
23179 cat >conftest.$ac_ext <<_ACEOF
23182 cat confdefs.h >>conftest.$ac_ext
23183 cat >>conftest.$ac_ext <<_ACEOF
23184 /* end confdefs.h. */
23185 $ac_includes_default
23190 /* By Ruediger Kuhlmann. */
23191 return fork () < 0;
23197 rm -f conftest$ac_exeext
23198 if { (ac_try="$ac_link"
23199 case "(($ac_try" in
23200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23201 *) ac_try_echo=$ac_try;;
23203 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23204 (eval "$ac_link") 2>&5
23206 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23207 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23208 { (case "(($ac_try" in
23209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23210 *) ac_try_echo=$ac_try;;
23212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23213 (eval "$ac_try") 2>&5
23215 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23216 (exit $ac_status); }; }; then
23217 ac_cv_func_fork_works=yes
23219 echo "$as_me: program exited with status
$ac_status" >&5
23220 echo "$as_me: failed program was
:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23223 ( exit $ac_status )
23224 ac_cv_func_fork_works=no
23226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23231 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23232 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23235 ac_cv_func_fork_works=$ac_cv_func_fork
23237 if test "x
$ac_cv_func_fork_works" = xcross; then
23239 *-*-amigaos* | *-*-msdosdjgpp*)
23240 # Override, as these systems have only a dummy fork() stub
23241 ac_cv_func_fork_works=no
23244 ac_cv_func_fork_works=yes
23247 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23248 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23250 ac_cv_func_vfork_works=$ac_cv_func_vfork
23251 if test "x
$ac_cv_func_vfork" = xyes; then
23252 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23253 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23254 if test "${ac_cv_func_vfork_works+set}" = set; then
23255 echo $ECHO_N "(cached
) $ECHO_C" >&6
23257 if test "$cross_compiling" = yes; then
23258 ac_cv_func_vfork_works=cross
23260 cat >conftest.$ac_ext <<_ACEOF
23263 cat confdefs.h >>conftest.$ac_ext
23264 cat >>conftest.$ac_ext <<_ACEOF
23265 /* end confdefs.h. */
23266 /* Thanks to Paul Eggert for this test. */
23267 $ac_includes_default
23268 #include <sys/wait.h>
23269 #ifdef HAVE_VFORK_H
23270 # include <vfork.h>
23272 /* On some sparc systems, changes by the child to local and incoming
23273 argument registers are propagated back to the parent. The compiler
23274 is told about this with #include <vfork.h>, but some compilers
23275 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23276 static variable whose address is put into a register that is
23277 clobbered by the vfork. */
23280 sparc_address_test (int arg)
23282 sparc_address_test (arg) int arg;
23285 static pid_t child;
23303 pid_t parent = getpid ();
23306 sparc_address_test (0);
23311 /* Here is another test for sparc vfork register problems. This
23312 test uses lots of local variables, at least as many local
23313 variables as main has allocated so far including compiler
23314 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23315 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23316 reuse the register of parent for one of the local variables,
23317 since it will think that parent can't possibly be used any more
23318 in this routine. Assigning to the local variable will thus
23319 munge parent in the parent process. */
23321 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23322 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23323 /* Convince the compiler that p..p7 are live; otherwise, it might
23324 use the same hardware register for all 8 local variables. */
23325 if (p != p1 || p != p2 || p != p3 || p != p4
23326 || p != p5 || p != p6 || p != p7)
23329 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23330 from child file descriptors. If the child closes a descriptor
23331 before it execs or exits, this munges the parent's descriptor
23332 as well. Test for this by closing stdout in the child. */
23333 _exit(close(fileno(stdout)) != 0);
23338 while (wait(&status) != child)
23341 /* Was there some problem with vforking? */
23344 /* Did the child fail? (This shouldn't happen.) */
23347 /* Did the vfork/compiler bug occur? */
23348 || parent != getpid()
23350 /* Did the file descriptor bug occur? */
23351 || fstat(fileno(stdout), &st) != 0
23356 rm -f conftest$ac_exeext
23357 if { (ac_try="$ac_link"
23358 case "(($ac_try" in
23359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23360 *) ac_try_echo=$ac_try;;
23362 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23363 (eval "$ac_link") 2>&5
23365 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23366 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23367 { (case "(($ac_try" in
23368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23369 *) ac_try_echo=$ac_try;;
23371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23372 (eval "$ac_try") 2>&5
23374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23375 (exit $ac_status); }; }; then
23376 ac_cv_func_vfork_works=yes
23378 echo "$as_me: program exited with status
$ac_status" >&5
23379 echo "$as_me: failed program was
:" >&5
23380 sed 's/^/| /' conftest.$ac_ext >&5
23382 ( exit $ac_status )
23383 ac_cv_func_vfork_works=no
23385 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23390 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23391 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23394 if test "x
$ac_cv_func_fork_works" = xcross; then
23395 ac_cv_func_vfork_works=$ac_cv_func_vfork
23396 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23397 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23400 if test "x
$ac_cv_func_vfork_works" = xyes; then
23402 cat >>confdefs.h <<\_ACEOF
23403 #define HAVE_WORKING_VFORK 1
23408 cat >>confdefs.h <<\_ACEOF
23413 if test "x
$ac_cv_func_fork_works" = xyes; then
23415 cat >>confdefs.h <<\_ACEOF
23416 #define HAVE_WORKING_FORK 1
23422 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23423 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23424 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23425 echo $ECHO_N "(cached
) $ECHO_C" >&6
23427 cat >conftest.$ac_ext <<_ACEOF
23430 cat confdefs.h >>conftest.$ac_ext
23431 cat >>conftest.$ac_ext <<_ACEOF
23432 /* end confdefs.h. */
23433 #include <langinfo.h>
23437 char* cs = nl_langinfo(CODESET);
23442 rm -f conftest.$ac_objext conftest$ac_exeext
23443 if { (ac_try="$ac_link"
23444 case "(($ac_try" in
23445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23446 *) ac_try_echo=$ac_try;;
23448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23449 (eval "$ac_link") 2>conftest.er1
23451 grep -v '^ *+' conftest.er1 >conftest.err
23453 cat conftest.err >&5
23454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23455 (exit $ac_status); } && {
23456 test -z "$ac_c_werror_flag" ||
23457 test ! -s conftest.err
23458 } && test -s conftest$ac_exeext &&
23459 $as_test_x conftest$ac_exeext; then
23460 emacs_cv_langinfo_codeset=yes
23462 echo "$as_me: failed program was
:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23465 emacs_cv_langinfo_codeset=no
23468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23469 conftest$ac_exeext conftest.$ac_ext
23472 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23473 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23474 if test $emacs_cv_langinfo_codeset = yes; then
23476 cat >>confdefs.h <<\_ACEOF
23477 #define HAVE_LANGINFO_CODESET 1
23482 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23483 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23484 if test "${ac_cv_type_size_t+set}" = set; then
23485 echo $ECHO_N "(cached
) $ECHO_C" >&6
23487 cat >conftest.$ac_ext <<_ACEOF
23490 cat confdefs.h >>conftest.$ac_ext
23491 cat >>conftest.$ac_ext <<_ACEOF
23492 /* end confdefs.h. */
23493 $ac_includes_default
23494 typedef size_t ac__type_new_;
23498 if ((ac__type_new_ *) 0)
23500 if (sizeof (ac__type_new_))
23506 rm -f conftest.$ac_objext
23507 if { (ac_try="$ac_compile"
23508 case "(($ac_try" in
23509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23510 *) ac_try_echo=$ac_try;;
23512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23513 (eval "$ac_compile") 2>conftest.er1
23515 grep -v '^ *+' conftest.er1 >conftest.err
23517 cat conftest.err >&5
23518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23519 (exit $ac_status); } && {
23520 test -z "$ac_c_werror_flag" ||
23521 test ! -s conftest.err
23522 } && test -s conftest.$ac_objext; then
23523 ac_cv_type_size_t=yes
23525 echo "$as_me: failed program was
:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23528 ac_cv_type_size_t=no
23531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23533 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23534 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23535 if test $ac_cv_type_size_t = yes; then
23537 cat >>confdefs.h <<_ACEOF
23538 #define HAVE_SIZE_T 1
23545 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23546 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23547 if test "${ac_cv_type_mbstate_t+set}" = set; then
23548 echo $ECHO_N "(cached
) $ECHO_C" >&6
23550 cat >conftest.$ac_ext <<_ACEOF
23553 cat confdefs.h >>conftest.$ac_ext
23554 cat >>conftest.$ac_ext <<_ACEOF
23555 /* end confdefs.h. */
23556 $ac_includes_default
23557 # include <wchar.h>
23561 mbstate_t x; return sizeof x;
23566 rm -f conftest.$ac_objext
23567 if { (ac_try="$ac_compile"
23568 case "(($ac_try" in
23569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23570 *) ac_try_echo=$ac_try;;
23572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23573 (eval "$ac_compile") 2>conftest.er1
23575 grep -v '^ *+' conftest.er1 >conftest.err
23577 cat conftest.err >&5
23578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23579 (exit $ac_status); } && {
23580 test -z "$ac_c_werror_flag" ||
23581 test ! -s conftest.err
23582 } && test -s conftest.$ac_objext; then
23583 ac_cv_type_mbstate_t=yes
23585 echo "$as_me: failed program was
:" >&5
23586 sed 's/^/| /' conftest.$ac_ext >&5
23588 ac_cv_type_mbstate_t=no
23591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23593 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23594 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23595 if test $ac_cv_type_mbstate_t = yes; then
23597 cat >>confdefs.h <<\_ACEOF
23598 #define HAVE_MBSTATE_T 1
23603 cat >>confdefs.h <<\_ACEOF
23604 #define mbstate_t int
23609 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23610 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23611 if test "${emacs_cv_c_restrict+set}" = set; then
23612 echo $ECHO_N "(cached
) $ECHO_C" >&6
23614 cat >conftest.$ac_ext <<_ACEOF
23617 cat confdefs.h >>conftest.$ac_ext
23618 cat >>conftest.$ac_ext <<_ACEOF
23619 /* end confdefs.h. */
23620 void fred (int *restrict x);
23629 rm -f conftest.$ac_objext
23630 if { (ac_try="$ac_compile"
23631 case "(($ac_try" in
23632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23633 *) ac_try_echo=$ac_try;;
23635 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23636 (eval "$ac_compile") 2>conftest.er1
23638 grep -v '^ *+' conftest.er1 >conftest.err
23640 cat conftest.err >&5
23641 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23642 (exit $ac_status); } && {
23643 test -z "$ac_c_werror_flag" ||
23644 test ! -s conftest.err
23645 } && test -s conftest.$ac_objext; then
23646 emacs_cv_c_restrict=yes
23648 echo "$as_me: failed program was
:" >&5
23649 sed 's/^/| /' conftest.$ac_ext >&5
23651 cat >conftest.$ac_ext <<_ACEOF
23654 cat confdefs.h >>conftest.$ac_ext
23655 cat >>conftest.$ac_ext <<_ACEOF
23656 /* end confdefs.h. */
23657 void fred (int *__restrict x);
23666 rm -f conftest.$ac_objext
23667 if { (ac_try="$ac_compile"
23668 case "(($ac_try" in
23669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23670 *) ac_try_echo=$ac_try;;
23672 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23673 (eval "$ac_compile") 2>conftest.er1
23675 grep -v '^ *+' conftest.er1 >conftest.err
23677 cat conftest.err >&5
23678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23679 (exit $ac_status); } && {
23680 test -z "$ac_c_werror_flag" ||
23681 test ! -s conftest.err
23682 } && test -s conftest.$ac_objext; then
23683 emacs_cv_c_restrict=__restrict
23685 echo "$as_me: failed program was
:" >&5
23686 sed 's/^/| /' conftest.$ac_ext >&5
23688 emacs_cv_c_restrict=no
23691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23696 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23697 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23698 case "$emacs_cv_c_restrict" in
23699 yes) emacs_restrict=restrict;;
23700 no) emacs_restrict="";;
23701 *) emacs_restrict="$emacs_cv_c_restrict";;
23703 if test "$emacs_restrict" != __restrict; then
23705 cat >>confdefs.h <<_ACEOF
23706 #define __restrict $emacs_restrict
23711 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23712 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23713 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23714 echo $ECHO_N "(cached
) $ECHO_C" >&6
23716 cat >conftest.$ac_ext <<_ACEOF
23719 cat confdefs.h >>conftest.$ac_ext
23720 cat >>conftest.$ac_ext <<_ACEOF
23721 /* end confdefs.h. */
23722 void fred (int x[__restrict]);
23731 rm -f conftest.$ac_objext
23732 if { (ac_try="$ac_compile"
23733 case "(($ac_try" in
23734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23735 *) ac_try_echo=$ac_try;;
23737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23738 (eval "$ac_compile") 2>conftest.er1
23740 grep -v '^ *+' conftest.er1 >conftest.err
23742 cat conftest.err >&5
23743 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23744 (exit $ac_status); } && {
23745 test -z "$ac_c_werror_flag" ||
23746 test ! -s conftest.err
23747 } && test -s conftest.$ac_objext; then
23748 emacs_cv_c_restrict_arr=yes
23750 echo "$as_me: failed program was
:" >&5
23751 sed 's/^/| /' conftest.$ac_ext >&5
23753 emacs_cv_c_restrict_arr=no
23756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23758 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23759 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23760 if test "$emacs_cv_c_restrict_arr" = yes; then
23762 cat >>confdefs.h <<\_ACEOF
23763 #define __restrict_arr __restrict
23770 # Set up the CFLAGS for real compilation, so we can substitute it.
23771 CFLAGS="$REAL_CFLAGS"
23772 CPPFLAGS="$REAL_CPPFLAGS"
23774 #### Find out which version of Emacs this is.
23775 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23776 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23777 if test x"${version}" = x; then
23778 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23779 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23780 { (exit 1); exit 1; }; }
23783 ### Specify what sort of things we'll be editing into Makefile and config.h.
23784 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23820 cat >>confdefs.h <<_ACEOF
23821 #define EMACS_CONFIGURATION "${canonical}"
23825 cat >>confdefs.h <<_ACEOF
23826 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23830 cat >>confdefs.h <<_ACEOF
23831 #define config_machfile "${machfile}"
23835 cat >>confdefs.h <<_ACEOF
23836 #define config_opsysfile "${opsysfile}"
23840 cat >>confdefs.h <<_ACEOF
23841 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23845 cat >>confdefs.h <<_ACEOF
23846 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23850 cat >>confdefs.h <<_ACEOF
23851 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23855 cat >>confdefs.h <<_ACEOF
23856 #define UNEXEC_SRC ${UNEXEC_SRC}
23860 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23862 cat >>confdefs.h <<\_ACEOF
23863 #define HAVE_X_WINDOWS 1
23867 if test "${USE_X_TOOLKIT}" != "none
" ; then
23869 cat >>confdefs.h <<\_ACEOF
23870 #define USE_X_TOOLKIT 1
23874 if test "${HAVE_X11}" = "yes" ; then
23876 cat >>confdefs.h <<\_ACEOF
23881 if test "${HAVE_XFREE386}" = "yes" ; then
23883 cat >>confdefs.h <<\_ACEOF
23884 #define HAVE_XFREE386 1
23888 if test "${HAVE_MENUS}" = "yes" ; then
23890 cat >>confdefs.h <<\_ACEOF
23891 #define HAVE_MENUS 1
23895 if test "${GNU_MALLOC}" = "yes" ; then
23897 cat >>confdefs.h <<\_ACEOF
23898 #define GNU_MALLOC 1
23902 if test "${REL_ALLOC}" = "yes" ; then
23904 cat >>confdefs.h <<\_ACEOF
23905 #define REL_ALLOC 1
23915 #### Report on what we decided to do.
23916 #### Report GTK as a toolkit, even if it doesn't use Xt.
23917 #### It makes printing result more understandable as using GTK sets
23918 #### toolkit_scroll_bars to yes by default.
23919 if test "${HAVE_GTK}" = "yes"; then
23924 Configured
for \
`${canonical}'.
23926 Where should the build process find the source code? ${srcdir}
23927 What operating system and machine description files should Emacs use?
23928 \`${opsysfile}' and \`${machfile}'
23929 What compiler should emacs be built with?
${CC} ${CFLAGS}
23930 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23931 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23932 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23933 What window system should Emacs use?
${window_system}
23934 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23936 if test -n "${x_includes}"; then
23937 echo " Where
do we
find X Windows header files?
${x_includes}"
23939 echo " Where
do we
find X Windows header files? Standard
dirs"
23941 if test -n "${x_libraries}"; then
23942 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23944 echo " Where
do we
find X Windows libraries? Standard
dirs"
23947 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23948 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23949 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23950 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23951 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23952 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23953 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23954 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23955 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
23956 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23959 if test $USE_XASSERTS = yes; then
23960 echo " Compiling with asserts turned on.
"
23961 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23965 if test "$USE_X_TOOLKIT" = GTK; then
23966 case "$canonical" in
23968 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23969 will probably get a crash on startup. If this happens
, please use another
23970 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23976 if test "$HAVE_CARBON" = "yes"; then
23978 echo "Warning
: The Mac Carbon port is currently unsupported and has
23979 known problems. It is not recommended
for use by non-developers.
23980 Read the emacs-devel archives
for more information.
"
23984 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
23985 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
23990 # Remove any trailing slashes in these variables.
23991 test "${prefix}" != NONE &&
23992 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23993 test "${exec_prefix}" != NONE &&
23994 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23996 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23997 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23998 ## from Makefile.c can correctly provide the arg `-traditional' to the
24001 cat >conftest.$ac_ext <<_ACEOF
24004 cat confdefs.h >>conftest.$ac_ext
24005 cat >>conftest.$ac_ext <<_ACEOF
24006 /* end confdefs.h. */
24009 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24010 $EGREP "yes..
yes" >/dev/null 2>&1; then
24011 CPP_NEED_TRADITIONAL=no
24013 CPP_NEED_TRADITIONAL=yes
24018 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
"
24020 ac_config_commands="$ac_config_commands default
"
24022 cat >confcache <<\_ACEOF
24023 # This file is a shell script that caches the results of configure
24024 # tests run on this system so they can be shared between configure
24025 # scripts and configure runs, see configure's option --config-cache.
24026 # It is not useful on other systems. If it contains results you don't
24027 # want to keep, you may remove or edit it.
24029 # config.status only pays attention to the cache file if you give it
24030 # the --recheck option to rerun configure.
24032 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24033 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24034 # following values.
24038 # The following way of writing the cache mishandles newlines in values,
24039 # but we know of no workaround that is simple, portable, and efficient.
24040 # So, we kill variables containing newlines.
24041 # Ultrix sh set writes to stderr and can't be redirected directly,
24042 # and sets the high bit in the cache file unless we assign to the vars.
24044 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24045 eval ac_val=\$$ac_var
24049 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24050 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24053 _ | IFS | as_nl) ;; #(
24054 *) $as_unset $ac_var ;;
24060 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24061 *${as_nl}ac_space=\ *)
24062 # `set' does not quote correctly, so add quotes (double-quote
24063 # substitution turns \\\\ into \\, and sed turns \\ into \).
24066 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24069 # `set' quotes correctly as required by POSIX, so do not add quotes.
24070 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24079 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24081 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24083 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24084 if test -w "$cache_file"; then
24085 test "x
$cache_file" != "x
/dev
/null
" &&
24086 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24087 echo "$as_me: updating cache
$cache_file" >&6;}
24088 cat confcache >$cache_file
24090 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24091 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24096 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24097 # Let make expand exec_prefix.
24098 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24100 DEFS=-DHAVE_CONFIG_H
24104 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24105 # 1. Remove the extension, and $U if already installed.
24106 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24107 ac_i=`echo "$ac_i" | sed "$ac_script"`
24108 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24109 # will be set to the directory where LIBOBJS objects are built.
24110 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24111 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24113 LIBOBJS=$ac_libobjs
24115 LTLIBOBJS=$ac_ltlibobjs
24119 : ${CONFIG_STATUS=./config.status}
24120 ac_clean_files_save=$ac_clean_files
24121 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24122 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24123 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24124 cat >$CONFIG_STATUS <<_ACEOF
24126 # Generated by $as_me.
24127 # Run this file to recreate the current configuration.
24128 # Compiler output produced by configure, useful for debugging
24129 # configure, is in config.log if it exists.
24132 ac_cs_recheck=false
24134 SHELL=\${CONFIG_SHELL-$SHELL}
24137 cat >>$CONFIG_STATUS <<\_ACEOF
24138 ## --------------------- ##
24139 ## M4sh Initialization. ##
24140 ## --------------------- ##
24142 # Be more Bourne compatible
24143 DUALCASE=1; export DUALCASE # for MKS sh
24144 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24147 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24148 # is contrary to our usage. Disable this feature.
24149 alias -g '${1+"$@"}'='"$@
"'
24150 setopt NO_GLOB_SUBST
24152 case `(set -o) 2>/dev/null` in
24153 *posix*) set -o posix ;;
24162 # Avoid depending upon Character Ranges.
24163 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24164 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24165 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24166 as_cr_digits='0123456789'
24167 as_cr_alnum=$as_cr_Letters$as_cr_digits
24169 # The user is always right.
24170 if test "${PATH_SEPARATOR+set}" != set; then
24171 echo "#! /bin/sh" >conf$$.sh
24172 echo "exit 0" >>conf$$.sh
24174 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24182 # Support unset when possible.
24183 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24191 # We need space, tab and new line, in precisely that order. Quoting is
24192 # there to prevent editors from complaining about space-tab.
24193 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24194 # splitting by setting IFS to empty value.)
24199 # Find who we are. Look in the path if we contain no directory separator.
24201 *[\\/]* ) as_myself
=$0 ;;
24202 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24203 for as_dir
in $PATH
24206 test -z "$as_dir" && as_dir
=.
24207 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24213 # We did not find ourselves, most probably we were run as `sh COMMAND'
24214 # in which case we are not to be found in the path.
24215 if test "x$as_myself" = x
; then
24218 if test ! -f "$as_myself"; then
24219 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24220 { (exit 1); exit 1; }
24223 # Work around bugs in pre-3.0 UWIN ksh.
24224 for as_var
in ENV MAIL MAILPATH
24225 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24233 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24234 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24235 LC_TELEPHONE LC_TIME
24237 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24238 eval $as_var=C
; export $as_var
24240 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24244 # Required to use basename.
24245 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24246 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24252 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24253 as_basename
=basename
24259 # Name of the executable.
24260 as_me
=`$as_basename -- "$0" ||
24261 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24262 X"$0" : 'X\(//\)$' \| \
24263 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24265 sed '/^.*\/\([^/][^/]*\)\/*$/{
24284 as_lineno_1
=$LINENO
24285 as_lineno_2
=$LINENO
24286 test "x$as_lineno_1" != "x$as_lineno_2" &&
24287 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24289 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24290 # uniformly replaced by the line number. The first 'sed' inserts a
24291 # line-number line after each line using $LINENO; the second 'sed'
24292 # does the real work. The second script uses 'N' to pair each
24293 # line-number line with the line containing $LINENO, and appends
24294 # trailing '-' during substitution so that $LINENO is not a special
24295 # case at line end.
24296 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24297 # scripts with optimization help from Paolo Bonzini. Blame Lee
24298 # E. McMahon (1931-1989) for sed's syntax. :-)
24310 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24313 ' >$as_me.lineno
&&
24314 chmod +x
"$as_me.lineno" ||
24315 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24316 { (exit 1); exit 1; }; }
24318 # Don't try to exec as it changes $[0], causing all sort of problems
24319 # (the dirname of $[0] is not the place where we might find the
24320 # original and so on. Autoconf is especially sensitive to this).
24321 .
"./$as_me.lineno"
24322 # Exit status is that of the last command.
24327 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24333 ECHO_C
= ECHO_N
= ECHO_T
=
24334 case `echo -n x` in
24336 case `echo 'x\c'` in
24337 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24344 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24345 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24351 rm -f conf$$ conf$$.exe conf$$.
file
24352 if test -d conf$$.dir
; then
24353 rm -f conf$$.dir
/conf$$.
file
24359 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24361 # ... but there are two gotchas:
24362 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24363 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24364 # In both cases, we have to default to `cp -p'.
24365 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24367 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24372 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24373 rmdir conf$$.dir
2>/dev
/null
24375 if mkdir
-p .
2>/dev
/null
; then
24378 test -d .
/-p && rmdir .
/-p
24382 if test -x / >/dev
/null
2>&1; then
24383 as_test_x
='test -x'
24385 if ls -dL / >/dev
/null
2>&1; then
24392 if test -d "$1"; then
24398 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24399 ???[sx]*):;;*)false;;esac;fi
24403 as_executable_p
=$as_test_x
24405 # Sed expression to map a string onto a valid CPP name.
24406 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24408 # Sed expression to map a string onto a valid variable name.
24409 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24414 # Save the log message, to keep $[0] and so on meaningful, and to
24415 # report actual input values of CONFIG_FILES etc. instead of their
24416 # values after options handling.
24418 This file was extended by emacs $as_me 23.0.50, which was
24419 generated by GNU Autoconf 2.61. Invocation command line was
24421 CONFIG_FILES = $CONFIG_FILES
24422 CONFIG_HEADERS = $CONFIG_HEADERS
24423 CONFIG_LINKS = $CONFIG_LINKS
24424 CONFIG_COMMANDS = $CONFIG_COMMANDS
24427 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24432 cat >>$CONFIG_STATUS <<_ACEOF
24433 # Files that config.status was made for.
24434 config_files="$ac_config_files"
24435 config_headers="$ac_config_headers"
24436 config_commands="$ac_config_commands"
24440 cat >>$CONFIG_STATUS <<\_ACEOF
24442 \`$as_me' instantiates files from templates according to the
24443 current configuration.
24445 Usage: $0 [OPTIONS] [FILE]...
24447 -h, --help print this help, then exit
24448 -V, --version print version number and configuration settings, then exit
24449 -q, --quiet do not print progress messages
24450 -d, --debug don't remove temporary files
24451 --recheck update $as_me by reconfiguring in the same conditions
24452 --file=FILE[:TEMPLATE]
24453 instantiate the configuration file FILE
24454 --header=FILE[:TEMPLATE]
24455 instantiate the configuration header FILE
24457 Configuration files:
24460 Configuration headers:
24463 Configuration commands:
24466 Report bugs to <bug-autoconf@gnu.org>."
24469 cat >>$CONFIG_STATUS <<_ACEOF
24471 emacs config.status 23.0.50
24472 configured by $0, generated by GNU Autoconf 2.61,
24473 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24475 Copyright (C) 2006 Free Software Foundation, Inc.
24476 This config.status script is free software; the Free Software Foundation
24477 gives unlimited permission to copy, distribute and modify it."
24484 cat >>$CONFIG_STATUS <<\_ACEOF
24485 # If no file are specified by the user, then we need to provide default
24486 # value. By we need to know if files were specified by the user.
24492 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24493 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24504 # Handling of the options.
24505 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24507 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24508 echo "$ac_cs_version"; exit ;;
24509 --debug |
--debu |
--deb |
--de |
--d |
-d )
24511 --file |
--fil |
--fi |
--f )
24513 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24514 ac_need_defaults
=false
;;
24515 --header |
--heade |
--head |
--hea )
24517 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24518 ac_need_defaults
=false
;;
24520 # Conflict between --help and --header
24521 { echo "$as_me: error: ambiguous option: $1
24522 Try \`$0 --help' for more information." >&2
24523 { (exit 1); exit 1; }; };;
24524 --help |
--hel |
-h )
24525 echo "$ac_cs_usage"; exit ;;
24526 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24527 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24530 # This is an error.
24531 -*) { echo "$as_me: error: unrecognized option: $1
24532 Try \`$0 --help' for more information." >&2
24533 { (exit 1); exit 1; }; } ;;
24535 *) ac_config_targets
="$ac_config_targets $1"
24536 ac_need_defaults
=false
;;
24542 ac_configure_extra_args
=
24544 if $ac_cs_silent; then
24546 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24550 cat >>$CONFIG_STATUS <<_ACEOF
24551 if \$ac_cs_recheck; then
24552 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24553 CONFIG_SHELL=$SHELL
24554 export CONFIG_SHELL
24555 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24559 cat >>$CONFIG_STATUS <<\_ACEOF
24563 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24564 ## Running $as_me. ##
24570 cat >>$CONFIG_STATUS <<_ACEOF
24574 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24578 cat >>$CONFIG_STATUS <<\_ACEOF
24580 # Handling of arguments.
24581 for ac_config_target
in $ac_config_targets
24583 case $ac_config_target in
24584 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24585 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24586 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24587 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24588 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24589 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24590 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24591 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24592 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24593 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24594 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24595 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24596 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24598 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24599 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24600 { (exit 1); exit 1; }; };;
24605 # If the user did not use the arguments to specify the items to instantiate,
24606 # then the envvar interface is used. Set only those that are not.
24607 # We use the long form for the default assignment because of an extremely
24608 # bizarre bug on SunOS 4.1.3.
24609 if $ac_need_defaults; then
24610 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24611 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24612 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24615 # Have a temporary directory for convenience. Make it in the build tree
24616 # simply because there is no reason against having it here, and in addition,
24617 # creating and moving files from /tmp can sometimes cause problems.
24618 # Hook for its removal unless debugging.
24619 # Note that there is a small window in which the directory will not be cleaned:
24620 # after its creation but before its name has been assigned to `$tmp'.
24624 trap 'exit_status=$?
24625 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24627 trap '{ (exit 1); exit 1; }' 1 2 13 15
24629 # Create a (secure) tmp directory for tmp files.
24632 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24633 test -n "$tmp" && test -d "$tmp"
24636 tmp
=.
/conf$$
-$RANDOM
24637 (umask 077 && mkdir
"$tmp")
24640 echo "$me: cannot create a temporary directory in ." >&2
24641 { (exit 1); exit 1; }
24645 # Set up the sed scripts for CONFIG_FILES section.
24648 # No need to generate the scripts if there are no CONFIG_FILES.
24649 # This happens for instance when ./config.status config.h
24650 if test -n "$CONFIG_FILES"; then
24657 for ac_last_try
in false false false false false
:; do
24658 cat >conf$
$subs.
sed <<_ACEOF
24659 SHELL!$SHELL$ac_delim
24660 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24661 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24662 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24663 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24664 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24665 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24666 exec_prefix!$exec_prefix$ac_delim
24667 prefix!$prefix$ac_delim
24668 program_transform_name!$program_transform_name$ac_delim
24669 bindir!$bindir$ac_delim
24670 sbindir!$sbindir$ac_delim
24671 libexecdir!$libexecdir$ac_delim
24672 datarootdir!$datarootdir$ac_delim
24673 datadir!$datadir$ac_delim
24674 sysconfdir!$sysconfdir$ac_delim
24675 sharedstatedir!$sharedstatedir$ac_delim
24676 localstatedir!$localstatedir$ac_delim
24677 includedir!$includedir$ac_delim
24678 oldincludedir!$oldincludedir$ac_delim
24679 docdir!$docdir$ac_delim
24680 infodir!$infodir$ac_delim
24681 htmldir!$htmldir$ac_delim
24682 dvidir!$dvidir$ac_delim
24683 pdfdir!$pdfdir$ac_delim
24684 psdir!$psdir$ac_delim
24685 libdir!$libdir$ac_delim
24686 localedir!$localedir$ac_delim
24687 mandir!$mandir$ac_delim
24688 DEFS!$DEFS$ac_delim
24689 ECHO_C!$ECHO_C$ac_delim
24690 ECHO_N!$ECHO_N$ac_delim
24691 ECHO_T!$ECHO_T$ac_delim
24692 LIBS!$LIBS$ac_delim
24693 build_alias!$build_alias$ac_delim
24694 host_alias!$host_alias$ac_delim
24695 target_alias!$target_alias$ac_delim
24696 MAINT!$MAINT$ac_delim
24697 build!$build$ac_delim
24698 build_cpu!$build_cpu$ac_delim
24699 build_vendor!$build_vendor$ac_delim
24700 build_os!$build_os$ac_delim
24701 host!$host$ac_delim
24702 host_cpu!$host_cpu$ac_delim
24703 host_vendor!$host_vendor$ac_delim
24704 host_os!$host_os$ac_delim
24706 CFLAGS!$CFLAGS$ac_delim
24707 LDFLAGS!$LDFLAGS$ac_delim
24708 CPPFLAGS!$CPPFLAGS$ac_delim
24709 ac_ct_CC!$ac_ct_CC$ac_delim
24710 EXEEXT!$EXEEXT$ac_delim
24711 OBJEXT!$OBJEXT$ac_delim
24713 GREP!$GREP$ac_delim
24714 EGREP!$EGREP$ac_delim
24715 LN_S!$LN_S$ac_delim
24716 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24717 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24718 INSTALL_DATA!$INSTALL_DATA$ac_delim
24719 RANLIB!$RANLIB$ac_delim
24720 INSTALL_INFO!$INSTALL_INFO$ac_delim
24721 GZIP_PROG!$GZIP_PROG$ac_delim
24722 MAKEINFO!$MAKEINFO$ac_delim
24723 LIBSOUND!$LIBSOUND$ac_delim
24724 PKG_CONFIG!$PKG_CONFIG$ac_delim
24725 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24726 ALSA_LIBS!$ALSA_LIBS$ac_delim
24727 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24728 SET_MAKE!$SET_MAKE$ac_delim
24729 XMKMF!$XMKMF$ac_delim
24730 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24731 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24732 RSVG_LIBS!$RSVG_LIBS$ac_delim
24733 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24734 GTK_LIBS!$GTK_LIBS$ac_delim
24735 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24736 DBUS_LIBS!$DBUS_LIBS$ac_delim
24737 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24738 XFT_LIBS!$XFT_LIBS$ac_delim
24739 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24740 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24741 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24742 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24743 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24744 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24745 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24746 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24747 ALLOCA!$ALLOCA$ac_delim
24748 liblockfile!$liblockfile$ac_delim
24749 LIBOBJS!$LIBOBJS$ac_delim
24750 NEED_SETGID!$NEED_SETGID$ac_delim
24751 KMEM_GROUP!$KMEM_GROUP$ac_delim
24752 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24753 GETOPT_H!$GETOPT_H$ac_delim
24754 GETOPTOBJS!$GETOPTOBJS$ac_delim
24755 version!$version$ac_delim
24758 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24760 elif $ac_last_try; then
24761 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24762 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24763 { (exit 1); exit 1; }; }
24765 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24769 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24770 if test -n "$ac_eof"; then
24771 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24772 ac_eof
=`expr $ac_eof + 1`
24775 cat >>$CONFIG_STATUS <<_ACEOF
24776 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24777 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24780 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24781 s/^/s,@/; s/!/@,|#_!!_#|/
24784 s/'"$ac_delim"'$/,g/; t
24786 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24787 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24788 rm -f conf$
$subs.
sed
24789 cat >>$CONFIG_STATUS <<_ACEOF
24795 for ac_last_try
in false false false false false
:; do
24796 cat >conf$
$subs.
sed <<_ACEOF
24797 configuration!$configuration$ac_delim
24798 canonical!$canonical$ac_delim
24799 srcdir!$srcdir$ac_delim
24800 lispdir!$lispdir$ac_delim
24801 locallisppath!$locallisppath$ac_delim
24802 lisppath!$lisppath$ac_delim
24803 x_default_search_path!$x_default_search_path$ac_delim
24804 etcdir!$etcdir$ac_delim
24805 archlibdir!$archlibdir$ac_delim
24806 bitmapdir!$bitmapdir$ac_delim
24807 gamedir!$gamedir$ac_delim
24808 gameuser!$gameuser$ac_delim
24809 c_switch_system!$c_switch_system$ac_delim
24810 c_switch_machine!$c_switch_machine$ac_delim
24811 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24812 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24813 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24814 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24815 machfile!$machfile$ac_delim
24816 opsysfile!$opsysfile$ac_delim
24817 carbon_appdir!$carbon_appdir$ac_delim
24818 LTLIBOBJS!$LTLIBOBJS$ac_delim
24821 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24823 elif $ac_last_try; then
24824 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24825 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24826 { (exit 1); exit 1; }; }
24828 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24832 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24833 if test -n "$ac_eof"; then
24834 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24835 ac_eof
=`expr $ac_eof + 1`
24838 cat >>$CONFIG_STATUS <<_ACEOF
24839 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24840 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24843 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24844 s/^/s,@/; s/!/@,|#_!!_#|/
24847 s/'"$ac_delim"'$/,g/; t
24849 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24850 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24851 rm -f conf$
$subs.
sed
24852 cat >>$CONFIG_STATUS <<_ACEOF
24859 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24860 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24861 # trailing colons and then remove the whole line if VPATH becomes empty
24862 # (actually we leave an empty line to preserve line numbers).
24863 if test "x$srcdir" = x.
; then
24864 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24865 s/:*\$(srcdir):*/:/
24866 s/:*\${srcdir}:*/:/
24868 s/^\([^=]*=[ ]*\):*/\1/
24874 cat >>$CONFIG_STATUS <<\_ACEOF
24875 fi # test -n "$CONFIG_FILES"
24878 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24881 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24883 case $ac_mode$ac_tag in
24885 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24886 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24887 { (exit 1); exit 1; }; };;
24888 :[FH
]-) ac_tag
=-:-;;
24889 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24906 -) ac_f
="$tmp/stdin";;
24907 *) # Look for the file first in the build tree, then in the source tree
24908 # (if the path is not absolute). The absolute path cannot be DOS-style,
24909 # because $ac_f cannot contain `:'.
24913 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24915 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24916 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24917 { (exit 1); exit 1; }; };;
24919 ac_file_inputs
="$ac_file_inputs $ac_f"
24922 # Let's still pretend it is `configure' which instantiates (i.e., don't
24923 # use $as_me), people would be surprised to read:
24924 # /* config.h. Generated by config.status. */
24925 configure_input
="Generated from "`IFS=:
24926 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24927 if test x
"$ac_file" != x-
; then
24928 configure_input
="$ac_file. $configure_input"
24929 { echo "$as_me:$LINENO: creating $ac_file" >&5
24930 echo "$as_me: creating $ac_file" >&6;}
24934 *:-:* |
*:-) cat >"$tmp/stdin";;
24939 ac_dir
=`$as_dirname -- "$ac_file" ||
24940 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24941 X"$ac_file" : 'X\(//\)[^/]' \| \
24942 X"$ac_file" : 'X\(//\)$' \| \
24943 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24949 /^X\(\/\/\)[^/].*/{
24964 -*) as_dir
=.
/$as_dir;;
24966 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24970 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24971 *) as_qdir
=$as_dir;;
24973 as_dirs
="'$as_qdir' $as_dirs"
24974 as_dir
=`$as_dirname -- "$as_dir" ||
24975 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24976 X"$as_dir" : 'X\(//\)[^/]' \| \
24977 X"$as_dir" : 'X\(//\)$' \| \
24978 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24984 /^X\(\/\/\)[^/].*/{
24997 test -d "$as_dir" && break
24999 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25000 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25001 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25002 { (exit 1); exit 1; }; }; }
25006 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25008 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25009 # A ".." for each directory in $ac_dir_suffix.
25010 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25011 case $ac_top_builddir_sub in
25012 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25013 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25016 ac_abs_top_builddir
=$ac_pwd
25017 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25018 # for backward compatibility:
25019 ac_top_builddir
=$ac_top_build_prefix
25022 .
) # We are building in place.
25024 ac_top_srcdir
=$ac_top_builddir_sub
25025 ac_abs_top_srcdir
=$ac_pwd ;;
25026 [\\/]* | ?
:[\\/]* ) # Absolute name.
25027 ac_srcdir
=$srcdir$ac_dir_suffix;
25028 ac_top_srcdir
=$srcdir
25029 ac_abs_top_srcdir
=$srcdir ;;
25030 *) # Relative name.
25031 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25032 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25033 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25035 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25045 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25046 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25050 cat >>$CONFIG_STATUS <<\_ACEOF
25051 # If the template does not know about datarootdir, expand it.
25052 # FIXME: This hack should be removed a few years after 2.60.
25053 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25055 case `sed -n '/datarootdir/ {
25064 ' $ac_file_inputs` in
25065 *datarootdir
*) ac_datarootdir_seen
=yes;;
25066 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25067 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25068 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25070 cat >>$CONFIG_STATUS <<_ACEOF
25071 ac_datarootdir_hack='
25072 s&@datadir@&$datadir&g
25073 s&@docdir@&$docdir&g
25074 s&@infodir@&$infodir&g
25075 s&@localedir@&$localedir&g
25076 s&@mandir@&$mandir&g
25077 s&\\\${datarootdir}&$datarootdir&g' ;;
25081 # Neutralize VPATH when `$srcdir' = `.'.
25082 # Shell code in configure.ac might set extrasub.
25083 # FIXME: do we really want to maintain this feature?
25084 cat >>$CONFIG_STATUS <<_ACEOF
25088 cat >>$CONFIG_STATUS <<\_ACEOF
25090 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25091 s
&@configure_input@
&$configure_input&;t t
25092 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25093 s
&@srcdir@
&$ac_srcdir&;t t
25094 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25095 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25096 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25097 s
&@builddir@
&$ac_builddir&;t t
25098 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25099 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25100 s
&@INSTALL@
&$ac_INSTALL&;t t
25101 $ac_datarootdir_hack
25102 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25104 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25105 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25106 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25107 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25108 which seems to be undefined. Please make sure it is defined." >&5
25109 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25110 which seems to be undefined. Please make sure it is defined." >&2;}
25114 -) cat "$tmp/out"; rm -f "$tmp/out";;
25115 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25124 # Transform confdefs.h into a sed script `conftest.defines', that
25125 # substitutes the proper values into config.h.in to produce config.h.
25126 rm -f conftest.defines conftest.
tail
25127 # First, append a space to every undef/define line, to ease matching.
25128 echo 's/$/ /' >conftest.defines
25129 # Then, protect against being on the right side of a sed subst, or in
25130 # an unquoted here document, in config.status. If some macros were
25131 # called several times there might be several #defines for the same
25132 # symbol, which is useless. But do not sort them, since the last
25133 # AC_DEFINE must be honored.
25134 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25135 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25136 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25137 # PARAMS is the parameter list in the macro definition--in most cases, it's
25138 # just an empty string.
25139 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25140 ac_dB
='\\)[ (].*,\\1define\\2'
25148 s/^[ ]*#[ ]*define[ ][ ]*//
25153 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25154 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25155 ' >>conftest.defines
25157 # Remove the space that was appended to ease matching.
25158 # Then replace #undef with comments. This is necessary, for
25159 # example, in the case of _POSIX_SOURCE, which is predefined and required
25160 # on some systems where configure will not decide to define it.
25161 # (The regexp can be short, since the line contains either #define or #undef.)
25163 s,^[ #]*u.*,/* & */,' >>conftest.defines
25165 # Break up conftest.defines:
25166 ac_max_sed_lines
=50
25168 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25169 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25170 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25172 ac_in
='$ac_file_inputs'
25173 ac_out
='"$tmp/out1"'
25174 ac_nxt
='"$tmp/out2"'
25178 # Write a here document:
25179 cat >>$CONFIG_STATUS <<_ACEOF
25180 # First, check the format of the line:
25181 cat >"\$tmp/defines.sed" <<\\CEOF
25182 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25183 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25187 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25189 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25190 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25191 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25192 grep . conftest.
tail >/dev
/null ||
break
25193 rm -f conftest.defines
25194 mv conftest.
tail conftest.defines
25196 rm -f conftest.defines conftest.
tail
25198 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25199 cat >>$CONFIG_STATUS <<\_ACEOF
25200 if test x
"$ac_file" != x-
; then
25201 echo "/* $configure_input */" >"$tmp/config.h"
25202 cat "$ac_result" >>"$tmp/config.h"
25203 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25204 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25205 echo "$as_me: $ac_file is unchanged" >&6;}
25208 mv "$tmp/config.h" $ac_file
25211 echo "/* $configure_input */"
25217 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25218 echo "$as_me: executing $ac_file commands" >&6;}
25223 case $ac_file$ac_mode in
25226 ### Make the necessary directories, if they don't exist.
25227 for dir
in etc lisp
; do
25228 test -d ${dir} || mkdir
${dir}
25231 # Build src/Makefile from ${srcdir}/src/Makefile.c
25232 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25233 # This must be done after src/config.h is built, since we rely on that file.
25235 # Now get this: Some word that is part of the ${srcdir} directory name
25236 # or the ${configuration} value might, just might, happen to be an
25237 # identifier like `sun4' or `i386' or something, and be predefined by
25238 # the C preprocessor to some helpful value like 1, or maybe the empty
25239 # string. Needless to say consequent macro substitutions are less
25240 # than conducive to the makefile finding the correct directory.
25241 undefs
="`echo $top_srcdir $configuration $canonical |
25242 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25243 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25246 echo creating src
/epaths.h
25247 ${MAKE-make} epaths-force
25249 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25250 # `..' to `. .' unless invoked with -traditional
25252 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25253 CPPFLAGS
="$CPPFLAGS -traditional"
25256 echo creating lib-src
/Makefile
25258 rm -f junk.c junk1.c junk2.c
25259 sed -e '/start of cpp stuff/q' \
25260 < Makefile.c
> junk1.c
25261 sed -e '1,/start of cpp stuff/d'\
25262 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25263 < Makefile.c
> junk.c
25264 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25265 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25266 cat junk1.c junk2.c
> Makefile.new
25267 rm -f junk.c junk1.c junk2.c
25268 chmod 444 Makefile.new
25269 mv -f Makefile.new Makefile
25272 echo creating src
/Makefile
25274 rm -f junk.c junk1.c junk2.c
25275 sed -e '/start of cpp stuff/q' \
25276 < Makefile.c
> junk1.c
25277 sed -e '1,/start of cpp stuff/d'\
25278 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25279 < Makefile.c
> junk.c
25280 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
25281 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
25283 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25284 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25285 cat junk1.c junk2.c
> Makefile.new
25286 rm -f junk.c junk1.c junk2.c
25287 chmod 444 Makefile.new
25288 mv -f Makefile.new Makefile
25291 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25292 echo creating src
/.gdbinit
25293 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25296 # This is how we know whether to re-run configure in certain cases.
25297 touch src
/config.stamp
25305 { (exit 0); exit 0; }
25307 chmod +x
$CONFIG_STATUS
25308 ac_clean_files
=$ac_clean_files_save
25311 # configure is writing to config.log, and then calls config.status.
25312 # config.status does its own redirection, appending to config.log.
25313 # Unfortunately, on DOS this fails, as config.log is still kept open
25314 # by configure, so config.status won't be able to write to it; its
25315 # output is simply discarded. So we exec the FD to /dev/null,
25316 # effectively closing config.log, so it can be properly (re)opened and
25317 # appended to by config.status. When coming back to configure, we
25318 # need to make the FD available again.
25319 if test "$no_create" != yes; then
25321 ac_config_status_args
=
25322 test "$silent" = yes &&
25323 ac_config_status_args
="$ac_config_status_args --quiet"
25325 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25327 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25328 # would make configure fail if this is the last instruction.
25329 $ac_cs_success ||
{ (exit 1); exit 1; }