2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.60.
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.60'
576 PACKAGE_STRING
='emacs 23.0.60'
579 ac_unique_file
="src/lisp.h"
580 # Factoring default headers for most tests.
581 ac_includes_default
="\
583 #ifdef HAVE_SYS_TYPES_H
584 # include <sys/types.h>
586 #ifdef HAVE_SYS_STAT_H
587 # include <sys/stat.h>
593 # ifdef HAVE_STDLIB_H
598 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
603 #ifdef HAVE_STRINGS_H
604 # include <strings.h>
606 #ifdef HAVE_INTTYPES_H
607 # include <inttypes.h>
616 ac_config_libobj_dir
=src
628 program_transform_name
722 x_default_search_path
740 ac_precious_vars
='build_alias
752 # Initialize some variables set by options.
754 ac_init_version
=false
755 # The variables have the same names as the options, with
756 # dashes changed to underlines.
764 program_transform_name
=s
,x
,x
,
772 # Installation directory options.
773 # These are left unexpanded so users can "make install exec_prefix=/foo"
774 # and all the variables that are supposed to be based on exec_prefix
775 # by default will actually change.
776 # Use braces instead of parens because sh, perl, etc. also accept them.
777 # (The list follows the same order as the GNU Coding Standards.)
778 bindir
='${exec_prefix}/bin'
779 sbindir
='${exec_prefix}/sbin'
780 libexecdir
='${exec_prefix}/libexec'
781 datarootdir
='${prefix}/share'
782 datadir
='${datarootdir}'
783 sysconfdir
='${prefix}/etc'
784 sharedstatedir
='${prefix}/com'
785 localstatedir
='${prefix}/var'
786 includedir
='${prefix}/include'
787 oldincludedir
='/usr/include'
788 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
789 infodir
='${datarootdir}/info'
794 libdir
='${exec_prefix}/lib'
795 localedir
='${datarootdir}/locale'
796 mandir
='${datarootdir}/man'
802 # If the previous option needs an argument, assign it.
803 if test -n "$ac_prev"; then
804 eval $ac_prev=\
$ac_option
810 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 # Accept the important Cygnus configure options, so we can diagnose typos.
816 case $ac_dashdash$ac_option in
820 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
822 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
825 -build |
--build |
--buil |
--bui |
--bu)
826 ac_prev
=build_alias
;;
827 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
828 build_alias
=$ac_optarg ;;
830 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
831 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
832 ac_prev
=cache_file
;;
833 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
834 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
835 cache_file
=$ac_optarg ;;
838 cache_file
=config.cache
;;
840 -datadir |
--datadir |
--datadi |
--datad)
842 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
843 datadir
=$ac_optarg ;;
845 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
846 |
--dataroo |
--dataro |
--datar)
847 ac_prev
=datarootdir
;;
848 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
849 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
850 datarootdir
=$ac_optarg ;;
852 -disable-* |
--disable-*)
853 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
854 # Reject names that are not valid shell variable names.
855 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
856 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
857 { (exit 1); exit 1; }; }
858 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
859 eval enable_
$ac_feature=no
;;
861 -docdir |
--docdir |
--docdi |
--doc |
--do)
863 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
866 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
868 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
871 -enable-* |
--enable-*)
872 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
875 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
876 { (exit 1); exit 1; }; }
877 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
878 eval enable_
$ac_feature=\
$ac_optarg ;;
880 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
881 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
882 |
--exec |
--exe |
--ex)
883 ac_prev
=exec_prefix
;;
884 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
885 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
886 |
--exec=* |
--exe=* |
--ex=*)
887 exec_prefix
=$ac_optarg ;;
889 -gas |
--gas |
--ga |
--g)
890 # Obsolete; use --with-gas.
893 -help |
--help |
--hel |
--he |
-h)
895 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
896 ac_init_help
=recursive
;;
897 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
898 ac_init_help
=short
;;
900 -host |
--host |
--hos |
--ho)
901 ac_prev
=host_alias
;;
902 -host=* |
--host=* |
--hos=* |
--ho=*)
903 host_alias
=$ac_optarg ;;
905 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
907 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
909 htmldir
=$ac_optarg ;;
911 -includedir |
--includedir |
--includedi |
--included |
--include \
912 |
--includ |
--inclu |
--incl |
--inc)
913 ac_prev
=includedir
;;
914 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
915 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
916 includedir
=$ac_optarg ;;
918 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
920 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
921 infodir
=$ac_optarg ;;
923 -libdir |
--libdir |
--libdi |
--libd)
925 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
928 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
929 |
--libexe |
--libex |
--libe)
930 ac_prev
=libexecdir
;;
931 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
932 |
--libexe=* |
--libex=* |
--libe=*)
933 libexecdir
=$ac_optarg ;;
935 -localedir |
--localedir |
--localedi |
--localed |
--locale)
937 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
938 localedir
=$ac_optarg ;;
940 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
941 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
942 ac_prev
=localstatedir
;;
943 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
944 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
945 localstatedir
=$ac_optarg ;;
947 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
949 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
953 # Obsolete; use --without-fp.
956 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
957 |
--no-cr |
--no-c |
-n)
960 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
961 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
964 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
965 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
966 |
--oldin |
--oldi |
--old |
--ol |
--o)
967 ac_prev
=oldincludedir
;;
968 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
969 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
970 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
971 oldincludedir
=$ac_optarg ;;
973 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
975 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
978 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
979 |
--program-pre |
--program-pr |
--program-p)
980 ac_prev
=program_prefix
;;
981 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
982 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
983 program_prefix
=$ac_optarg ;;
985 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
986 |
--program-suf |
--program-su |
--program-s)
987 ac_prev
=program_suffix
;;
988 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
989 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
990 program_suffix
=$ac_optarg ;;
992 -program-transform-name |
--program-transform-name \
993 |
--program-transform-nam |
--program-transform-na \
994 |
--program-transform-n |
--program-transform- \
995 |
--program-transform |
--program-transfor \
996 |
--program-transfo |
--program-transf \
997 |
--program-trans |
--program-tran \
998 |
--progr-tra |
--program-tr |
--program-t)
999 ac_prev
=program_transform_name
;;
1000 -program-transform-name=* |
--program-transform-name=* \
1001 |
--program-transform-nam=* |
--program-transform-na=* \
1002 |
--program-transform-n=* |
--program-transform-=* \
1003 |
--program-transform=* |
--program-transfor=* \
1004 |
--program-transfo=* |
--program-transf=* \
1005 |
--program-trans=* |
--program-tran=* \
1006 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1007 program_transform_name
=$ac_optarg ;;
1009 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1011 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1012 pdfdir
=$ac_optarg ;;
1014 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1016 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1019 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1020 |
-silent |
--silent |
--silen |
--sile |
--sil)
1023 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1025 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1027 sbindir
=$ac_optarg ;;
1029 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1030 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1031 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1033 ac_prev
=sharedstatedir
;;
1034 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1035 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1036 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1038 sharedstatedir
=$ac_optarg ;;
1040 -site |
--site |
--sit)
1042 -site=* |
--site=* |
--sit=*)
1045 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1047 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1048 srcdir
=$ac_optarg ;;
1050 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1051 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1052 ac_prev
=sysconfdir
;;
1053 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1054 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1055 sysconfdir
=$ac_optarg ;;
1057 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1058 ac_prev
=target_alias
;;
1059 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1060 target_alias
=$ac_optarg ;;
1062 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1065 -version |
--version |
--versio |
--versi |
--vers |
-V)
1066 ac_init_version
=: ;;
1069 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_
$ac_package=\
$ac_optarg ;;
1077 -without-* |
--without-*)
1078 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1079 # Reject names that are not valid shell variable names.
1080 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1081 { echo "$as_me: error: invalid package name: $ac_package" >&2
1082 { (exit 1); exit 1; }; }
1083 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1084 eval with_
$ac_package=no
;;
1087 # Obsolete; use --with-x.
1090 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1091 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1092 ac_prev
=x_includes
;;
1093 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1094 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1095 x_includes
=$ac_optarg ;;
1097 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1098 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1099 ac_prev
=x_libraries
;;
1100 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1101 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1102 x_libraries
=$ac_optarg ;;
1104 -*) { echo "$as_me: error: unrecognized option: $ac_option
1105 Try \`$0 --help' for more information." >&2
1106 { (exit 1); exit 1; }; }
1110 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1113 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1114 { (exit 1); exit 1; }; }
1115 eval $ac_envvar=\
$ac_optarg
1116 export $ac_envvar ;;
1119 # FIXME: should be removed in autoconf 3.0.
1120 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1121 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1122 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1123 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1129 if test -n "$ac_prev"; then
1130 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1131 { echo "$as_me: error: missing argument to $ac_option" >&2
1132 { (exit 1); exit 1; }; }
1135 # Be sure to have absolute directory names.
1136 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1137 datadir sysconfdir sharedstatedir localstatedir includedir \
1138 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1139 libdir localedir mandir
1141 eval ac_val
=\$
$ac_var
1143 [\\/$
]* | ?
:[\\/]* ) continue;;
1144 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1146 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1147 { (exit 1); exit 1; }; }
1150 # There might be people who depend on the old broken behavior: `$host'
1151 # used to hold the argument of --host etc.
1152 # FIXME: To remove some day.
1155 target
=$target_alias
1157 # FIXME: To remove some day.
1158 if test "x$host_alias" != x
; then
1159 if test "x$build_alias" = x
; then
1160 cross_compiling
=maybe
1161 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1162 If a cross compiler is detected then cross compile mode will be used." >&2
1163 elif test "x$build_alias" != "x$host_alias"; then
1169 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1171 test "$silent" = yes && exec 6>/dev
/null
1174 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1175 ac_ls_di
=`ls -di .` &&
1176 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1177 { echo "$as_me: error: Working directory cannot be determined" >&2
1178 { (exit 1); exit 1; }; }
1179 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1180 { echo "$as_me: error: pwd does not report name of working directory" >&2
1181 { (exit 1); exit 1; }; }
1184 # Find the source files, if location was not specified.
1185 if test -z "$srcdir"; then
1186 ac_srcdir_defaulted
=yes
1187 # Try the directory containing this script, then the parent directory.
1188 ac_confdir
=`$as_dirname -- "$0" ||
1189 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1190 X"$0" : 'X\(//\)[^/]' \| \
1191 X"$0" : 'X\(//\)$' \| \
1192 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1212 if test ! -r "$srcdir/$ac_unique_file"; then
1216 ac_srcdir_defaulted
=no
1218 if test ! -r "$srcdir/$ac_unique_file"; then
1219 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1220 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1221 { (exit 1); exit 1; }; }
1223 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1225 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1226 { (exit 1); exit 1; }; }
1228 # When building in place, set srcdir=.
1229 if test "$ac_abs_confdir" = "$ac_pwd"; then
1232 # Remove unnecessary trailing slashes from srcdir.
1233 # Double slashes in file names in object file debugging info
1234 # mess up M-x gdb in Emacs.
1236 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1238 for ac_var
in $ac_precious_vars; do
1239 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1240 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1241 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1242 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1246 # Report the --help message.
1248 if test "$ac_init_help" = "long"; then
1249 # Omit some internal or obsolete options to make the list less imposing.
1250 # This message is too long to be a string in the A/UX 3.1 sh.
1252 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1254 Usage: $0 [OPTION]... [VAR=VALUE]...
1256 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1257 VAR=VALUE. See below for descriptions of some of the useful variables.
1259 Defaults for the options are specified in brackets.
1262 -h, --help display this help and exit
1263 --help=short display options specific to this package
1264 --help=recursive display the short help of all the included packages
1265 -V, --version display version information and exit
1266 -q, --quiet, --silent do not print \`checking...' messages
1267 --cache-file=FILE cache test results in FILE [disabled]
1268 -C, --config-cache alias for \`--cache-file=config.cache'
1269 -n, --no-create do not create output files
1270 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1272 Installation directories:
1273 --prefix=PREFIX install architecture-independent files in PREFIX
1274 [$ac_default_prefix]
1275 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1278 By default, \`make install' will install all the files in
1279 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1280 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1281 for instance \`--prefix=\$HOME'.
1283 For better control, use the options below.
1285 Fine tuning of the installation directories:
1286 --bindir=DIR user executables [EPREFIX/bin]
1287 --sbindir=DIR system admin executables [EPREFIX/sbin]
1288 --libexecdir=DIR program executables [EPREFIX/libexec]
1289 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1290 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1291 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1292 --libdir=DIR object code libraries [EPREFIX/lib]
1293 --includedir=DIR C header files [PREFIX/include]
1294 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1295 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1296 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1297 --infodir=DIR info documentation [DATAROOTDIR/info]
1298 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1299 --mandir=DIR man documentation [DATAROOTDIR/man]
1300 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1301 --htmldir=DIR html documentation [DOCDIR]
1302 --dvidir=DIR dvi documentation [DOCDIR]
1303 --pdfdir=DIR pdf documentation [DOCDIR]
1304 --psdir=DIR ps documentation [DOCDIR]
1310 --program-prefix=PREFIX prepend PREFIX to installed program names
1311 --program-suffix=SUFFIX append SUFFIX to installed program names
1312 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1315 --x-includes=DIR X include files are
in DIR
1316 --x-libraries=DIR X library files are
in DIR
1319 --build=BUILD configure
for building on BUILD
[guessed
]
1320 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1324 if test -n "$ac_init_help"; then
1325 case $ac_init_help in
1326 short | recursive
) echo "Configuration of emacs 23.0.60:";;
1331 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1332 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1333 --enable-carbon-app[=DIR
]
1334 specify
install directory
for Emacs.app on Mac OS X
1336 --enable-ns-app[=DIR
] [DIR
=/Applications
]
1337 specify
install directory
for Emacs.app under NS
1338 --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition
1339 --enable-asserts compile code with asserts enabled
1340 --enable-maintainer-mode
1341 enable make rules and dependencies not useful
(and
1342 sometimes confusing
) to the casual installer
1343 --enable-locallisppath=PATH
1344 directories Emacs should search
for lisp files
1345 specific to this site
1346 --disable-largefile omit support
for large files
1349 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1350 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1351 --without-pop don
't support POP mail retrieval with movemail
1352 --with-kerberos support Kerberos-authenticated POP
1353 --with-kerberos5 support Kerberos version 5 authenticated POP
1354 --with-hesiod support Hesiod to get the POP server host
1355 --without-sound don't compile with sound support
1356 --without-sync-input Process async input synchronously
1357 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1359 --without-xpm don
't compile with XPM image support
1360 --without-jpeg don't compile with JPEG image support
1361 --without-tiff don
't compile with TIFF image support
1362 --without-gif don't compile with GIF image support
1363 --without-png don
't compile with PNG image support
1364 --without-rsvg don't compile with SVG image support
1365 --without-freetype don
't use Freetype for local font support
1366 --without-xft don't use XFT
for anti aliased fonts
1367 --without-libotf don
't use libotf for OpenType font support
1368 --without-m17n-flt don't use m17n-flt
for text shaping
1369 --without-toolkit-scroll-bars
1370 don
't use Motif or Xaw3d scroll bars
1371 --without-xaw3d don't use Xaw3d
1372 --without-xim don
't use X11 XIM
1373 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1374 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1375 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
1377 --without-dbus don
't compile with D-Bus support
1378 --without-makeinfo don't require makeinfo
for building manuals
1380 --with-pkg-config-prog=PATH
1381 Path to pkg-config
for finding GTK and librsvg
1382 --with-x use the X Window System
1384 Some influential environment variables
:
1385 CC C compiler
command
1386 CFLAGS C compiler flags
1387 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1388 nonstandard directory
<lib dir
>
1389 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1390 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1391 you have headers
in a nonstandard directory
<include dir
>
1393 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1395 Use these variables to override the choices made by
`configure' or to help
1396 it to find libraries and programs with nonstandard names/locations.
1402 if test "$ac_init_help" = "recursive"; then
1403 # If there are subdirs, report their specific --help.
1404 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1405 test -d "$ac_dir" || continue
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1412 # A ".." for each directory in $ac_dir_suffix.
1413 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1414 case $ac_top_builddir_sub in
1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1419 ac_abs_top_builddir=$ac_pwd
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421 # for backward compatibility:
1422 ac_top_builddir=$ac_top_build_prefix
1425 .) # We are building in place.
1427 ac_top_srcdir=$ac_top_builddir_sub
1428 ac_abs_top_srcdir=$ac_pwd ;;
1429 [\\/]* | ?:[\\/]* ) # Absolute name.
1430 ac_srcdir=$srcdir$ac_dir_suffix;
1431 ac_top_srcdir=$srcdir
1432 ac_abs_top_srcdir=$srcdir ;;
1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435 ac_top_srcdir=$ac_top_build_prefix$srcdir
1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440 cd "$ac_dir" || { ac_status=$?; continue; }
1441 # Check for guested configure.
1442 if test -f "$ac_srcdir/configure.gnu"; then
1444 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1445 elif test -f "$ac_srcdir/configure"; then
1447 $SHELL "$ac_srcdir/configure" --help=recursive
1449 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1451 cd "$ac_pwd" || { ac_status=$?; break; }
1455 test -n "$ac_init_help" && exit $ac_status
1456 if $ac_init_version; then
1458 emacs configure 23.0.60
1459 generated by GNU Autoconf 2.61
1461 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1462 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1463 This configure script is free software; the Free Software Foundation
1464 gives unlimited permission to copy, distribute and modify it.
1468 cat >config.log <<_ACEOF
1469 This file contains any messages produced by compilers while
1470 running configure, to aid debugging if configure makes a mistake.
1472 It was created by emacs $as_me 23.0.60, which was
1473 generated by GNU Autoconf 2.61. Invocation command line was
1485 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1486 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1487 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1488 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1489 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1491 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1492 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1494 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1495 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1496 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1497 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1498 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1499 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1500 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 test -z "$as_dir" && as_dir=.
1509 echo "PATH: $as_dir"
1525 # Keep a trace of the command line.
1526 # Strip out --no-create and --no-recursion so they do not pile up.
1527 # Strip out --silent because we don't want to record it for future runs.
1528 # Also quote any args containing shell meta-characters.
1529 # Make two passes to allow for proper duplicate-argument suppression.
1533 ac_must_keep_next=false
1539 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1541 | -silent | --silent | --silen | --sile | --sil)
1544 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1547 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1549 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1550 if test $ac_must_keep_next = true; then
1551 ac_must_keep_next=false # Got value, back to normal.
1554 *=* | --config-cache | -C | -disable-* | --disable-* \
1555 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1556 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1557 | -with-* | --with-* | -without-* | --without-* | --x)
1558 case "$ac_configure_args0 " in
1559 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1562 -* ) ac_must_keep_next=true ;;
1565 ac_configure_args="$ac_configure_args '$ac_arg'"
1570 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1571 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1573 # When interrupted or exit'd, cleanup temporary files, and complete
1574 # config.log. We remove comments because anyway the quotes in there
1575 # would cause problems or look ugly.
1576 # WARNING: Use '\'' to represent an apostrophe within the trap.
1577 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1578 trap 'exit_status=$?
1579 # Save into config.log some information that might help in debugging.
1584 ## ---------------- ##
1585 ## Cache variables. ##
1586 ## ---------------- ##
1589 # The following way of writing the cache mishandles newlines in values,
1591 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1592 eval ac_val=\$$ac_var
1596 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1597 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1600 _ | IFS | as_nl) ;; #(
1601 *) $as_unset $ac_var ;;
1606 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1607 *${as_nl}ac_space=\ *)
1609 "s/'\''/'\''\\\\'\'''\''/g;
1610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1613 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1621 ## ----------------- ##
1622 ## Output variables. ##
1623 ## ----------------- ##
1626 for ac_var in $ac_subst_vars
1628 eval ac_val=\$$ac_var
1630 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1632 echo "$ac_var='\''$ac_val'\''"
1636 if test -n "$ac_subst_files"; then
1638 ## ------------------- ##
1639 ## File substitutions. ##
1640 ## ------------------- ##
1643 for ac_var in $ac_subst_files
1645 eval ac_val=\$$ac_var
1647 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 echo "$ac_var='\''$ac_val'\''"
1654 if test -s confdefs.h; then
1664 test "$ac_signal" != 0 &&
1665 echo "$as_me: caught signal $ac_signal"
1666 echo "$as_me: exit $exit_status"
1668 rm -f core *.core core.conftest.* &&
1669 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1672 for ac_signal in 1 2 13 15; do
1673 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1677 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1678 rm -f -r conftest* confdefs.h
1680 # Predefined preprocessor variables.
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_NAME "$PACKAGE_NAME"
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_STRING "$PACKAGE_STRING"
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1707 # Let the site file select an alternate cache file if it wants to.
1708 # Prefer explicitly selected file to automatically selected ones.
1709 if test -n "$CONFIG_SITE"; then
1710 set x "$CONFIG_SITE"
1711 elif test "x$prefix" != xNONE; then
1712 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1714 set x "$ac_default_prefix/share/config.site" \
1715 "$ac_default_prefix/etc/config.site"
1720 if test -r "$ac_site_file"; then
1721 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1722 echo "$as_me: loading site script $ac_site_file" >&6;}
1723 sed 's/^/| /' "$ac_site_file" >&5
1728 if test -r "$cache_file"; then
1729 # Some versions of bash will fail to source /dev/null (special
1730 # files actually), so we avoid doing that.
1731 if test -f "$cache_file"; then
1732 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1733 echo "$as_me: loading cache $cache_file" >&6;}
1735 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1736 *) . "./$cache_file";;
1740 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1741 echo "$as_me: creating cache $cache_file" >&6;}
1745 ac_header_list="$ac_header_list sys/time.h"
1746 ac_header_list="$ac_header_list unistd.h"
1747 ac_func_list="$ac_func_list alarm"
1748 # Check that the precious variables saved in the cache have kept the same
1750 ac_cache_corrupted=false
1751 for ac_var in $ac_precious_vars; do
1752 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1753 eval ac_new_set=\$ac_env_${ac_var}_set
1754 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1755 eval ac_new_val=\$ac_env_${ac_var}_value
1756 case $ac_old_set,$ac_new_set in
1758 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1759 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1760 ac_cache_corrupted=: ;;
1762 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1763 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1764 ac_cache_corrupted=: ;;
1767 if test "x$ac_old_val" != "x$ac_new_val"; then
1768 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1769 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1770 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1771 echo "$as_me: former value
: $ac_old_val" >&2;}
1772 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1773 echo "$as_me: current value
: $ac_new_val" >&2;}
1774 ac_cache_corrupted=:
1777 # Pass precious variables to config.status.
1778 if test "$ac_new_set" = set; then
1780 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1781 *) ac_arg=$ac_var=$ac_new_val ;;
1783 case " $ac_configure_args " in
1784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1785 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1789 if $ac_cache_corrupted; then
1790 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1791 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1792 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1793 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1794 { (exit 1); exit 1; }; }
1822 ac_cpp='$CPP $CPPFLAGS'
1823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1832 test "$program_prefix" != NONE &&
1833 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1834 # Use a double $ so make ignores it.
1835 test "$program_suffix" != NONE &&
1836 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1837 # Double any \ or $. echo might interpret backslashes.
1838 # By default was `s
,x
,x
', remove it if useless.
1839 cat <<\_ACEOF >conftest.sed
1840 s/[\\$]/&&/g;s/;s,x,x,$//
1842 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1846 lispdir='${datadir}/emacs
/${version}/lisp
'
1847 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1848 '${datadir}/emacs
/site-lisp
'
1849 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1850 etcdir='${datadir}/emacs
/${version}/etc
'
1851 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1852 docdir='${datadir}/emacs
/${version}/etc
'
1853 gamedir='${localstatedir}/games
/emacs
'
1860 # Check whether --with-pop was given.
1861 if test "${with_pop+set}" = set; then
1867 if test "$with_pop" = yes; then
1868 cat >>confdefs.h <<\_ACEOF
1869 #define MAIL_USE_POP 1
1876 # Check whether --with-kerberos was given.
1877 if test "${with_kerberos+set}" = set; then
1878 withval=$with_kerberos;
1883 if test "$with_kerberos" = yes; then
1884 cat >>confdefs.h <<\_ACEOF
1892 # Check whether --with-kerberos5 was given.
1893 if test "${with_kerberos5+set}" = set; then
1894 withval=$with_kerberos5;
1899 if test "${with_kerberos5}" = yes; then
1900 if test "${with_kerberos}" != yes; then
1902 cat >>confdefs.h <<\_ACEOF
1908 cat >>confdefs.h <<\_ACEOF
1915 # Check whether --with-hesiod was given.
1916 if test "${with_hesiod+set}" = set; then
1917 withval=$with_hesiod;
1922 if test "$with_hesiod" = yes; then
1924 cat >>confdefs.h <<\_ACEOF
1931 # Check whether --with-sound was given.
1932 if test "${with_sound+set}" = set; then
1933 withval=$with_sound;
1940 # Check whether --with-sync-input was given.
1941 if test "${with_sync_input+set}" = set; then
1942 withval=$with_sync_input;
1947 if test "$with_sync_input" = yes; then
1949 cat >>confdefs.h <<\_ACEOF
1950 #define SYNC_INPUT 1
1956 # Check whether --with-x-toolkit was given.
1957 if test "${with_x_toolkit+set}" = set; then
1958 withval=$with_x_toolkit; case "${withval}" in
1959 y | ye | yes ) val=gtk ;;
1961 l | lu | luc | luci | lucid ) val=lucid ;;
1962 a | at | ath | athe | athen | athena ) val=athena ;;
1963 m | mo | mot | moti | motif ) val=motif ;;
1964 g | gt | gtk ) val=gtk ;;
1966 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1967 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1968 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1969 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1970 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1971 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1972 { (exit 1); exit 1; }; }
1981 # Check whether --with-xpm was given.
1982 if test "${with_xpm+set}" = set; then
1989 # Check whether --with-jpeg was given.
1990 if test "${with_jpeg+set}" = set; then
1997 # Check whether --with-tiff was given.
1998 if test "${with_tiff+set}" = set; then
2005 # Check whether --with-gif was given.
2006 if test "${with_gif+set}" = set; then
2013 # Check whether --with-png was given.
2014 if test "${with_png+set}" = set; then
2021 # Check whether --with-rsvg was given.
2022 if test "${with_rsvg+set}" = set; then
2030 # Check whether --with-freetype was given.
2031 if test "${with_freetype+set}" = set; then
2032 withval=$with_freetype;
2038 # Check whether --with-xft was given.
2039 if test "${with_xft+set}" = set; then
2046 # Check whether --with-libotf was given.
2047 if test "${with_libotf+set}" = set; then
2048 withval=$with_libotf;
2054 # Check whether --with-m17n-flt was given.
2055 if test "${with_m17n_flt+set}" = set; then
2056 withval=$with_m17n_flt;
2063 # Check whether --with-toolkit-scroll-bars was given.
2064 if test "${with_toolkit_scroll_bars+set}" = set; then
2065 withval=$with_toolkit_scroll_bars;
2067 with_toolkit_scroll_bars=yes
2071 # Check whether --with-xaw3d was given.
2072 if test "${with_xaw3d+set}" = set; then
2073 withval=$with_xaw3d;
2079 # Check whether --with-xim was given.
2080 if test "${with_xim+set}" = set; then
2087 # Check whether --with-carbon was given.
2088 if test "${with_carbon+set}" = set; then
2089 withval=$with_carbon;
2095 # Check whether --with-ns was given.
2096 if test "${with_ns+set}" = set; then
2104 # Check whether --with-gpm was given.
2105 if test "${with_gpm+set}" = set; then
2112 # Check whether --with-dbus was given.
2113 if test "${with_dbus+set}" = set; then
2120 ## For the times when you want to build Emacs but don't have
2121 ## a suitable makeinfo, and can live without the manuals.
2123 # Check whether --with-makeinfo was given.
2124 if test "${with_makeinfo+set}" = set; then
2125 withval
=$with_makeinfo;
2132 # Check whether --with-gtk was given.
2133 if test "${with_gtk+set}" = set; then
2134 withval
=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2135 specify a toolkit." >&5
2136 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2137 specify a toolkit." >&2;}
2138 { (exit 1); exit 1; }; }
2143 # Check whether --with-gcc was given.
2144 if test "${with_gcc+set}" = set; then
2145 withval
=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2146 variable to specify a compiler." >&5
2147 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2148 variable to specify a compiler." >&2;}
2149 { (exit 1); exit 1; }; }
2154 # Check whether --with-pkg-config-prog was given.
2155 if test "${with_pkg_config_prog+set}" = set; then
2156 withval
=$with_pkg_config_prog;
2159 if test "X${with_pkg_config_prog}" != X
; then
2160 if test "${with_pkg_config_prog}" != yes; then
2161 PKG_CONFIG
="${with_pkg_config_prog}"
2165 # Check whether --enable-carbon-app was given.
2166 if test "${enable_carbon_app+set}" = set; then
2167 enableval
=$enable_carbon_app; carbon_appdir_x
=${enableval}
2171 # Check whether --enable-ns-app was given.
2172 if test "${enable_ns_app+set}" = set; then
2173 enableval
=$enable_ns_app; ns_appdir_x
=${enableval}
2177 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2178 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2179 enableval
=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G
=yes
2181 EN_COCOA_EXPERIMENTAL_CTRL_G
=no
2185 # Check whether --enable-asserts was given.
2186 if test "${enable_asserts+set}" = set; then
2187 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2193 # Check whether --enable-maintainer-mode was given.
2194 if test "${enable_maintainer_mode+set}" = set; then
2195 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2197 USE_MAINTAINER_MODE
=no
2200 if test $USE_MAINTAINER_MODE = yes; then
2207 # Check whether --enable-locallisppath was given.
2208 if test "${enable_locallisppath+set}" = set; then
2209 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2211 elif test "${enableval}" != "yes"; then
2212 locallisppath
=${enableval}
2217 #### Make srcdir absolute, if it isn't already. It's important to
2218 #### avoid running the path through pwd unnecessarily, since pwd can
2219 #### give you automounter prefixes, which can go away. We do all this
2220 #### so Emacs can find its files when run uninstalled.
2221 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2226 ## We may be able to use the $PWD environment variable to make this
2227 ## absolute. But sometimes PWD is inaccurate.
2228 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2229 ## but that tested only for a well-formed and valid PWD,
2230 ## it did not object when PWD was well-formed and valid but just wrong.
2231 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2235 srcdir
="`(cd ${srcdir}; pwd)`"
2238 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2241 #### Check if the source directory already has a configured system in it.
2242 if test `pwd` != `(cd ${srcdir} && pwd)` \
2243 && test -f "${srcdir}/src/config.h" ; then
2244 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2245 as a build directory right now; it has been configured in its own
2246 right. To configure in another directory as well, you MUST
2247 use GNU make. If you do not have GNU make, then you must
2248 now do \`make distclean' in ${srcdir},
2249 and then run $0 again." >&5
2250 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2251 as a build directory right now; it has been configured in its own
2252 right. To configure in another directory as well, you MUST
2253 use GNU make. If you do not have GNU make, then you must
2254 now do \`make distclean' in ${srcdir},
2255 and then run $0 again." >&2;}
2258 #### Given the configuration name, set machfile and opsysfile to the
2259 #### names of the m/*.h and s/*.h files we should use.
2261 ### Canonicalize the configuration name.
2264 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2265 if test -f "$ac_dir/install-sh"; then
2267 ac_install_sh
="$ac_aux_dir/install-sh -c"
2269 elif test -f "$ac_dir/install.sh"; then
2271 ac_install_sh
="$ac_aux_dir/install.sh -c"
2273 elif test -f "$ac_dir/shtool"; then
2275 ac_install_sh
="$ac_aux_dir/shtool install -c"
2279 if test -z "$ac_aux_dir"; then
2280 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2281 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2282 { (exit 1); exit 1; }; }
2285 # These three variables are undocumented and unsupported,
2286 # and are intended to be withdrawn in a future Autoconf release.
2287 # They can cause serious problems if a builder's source tree is in a directory
2288 # whose full name contains unusual characters.
2289 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2290 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2291 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2294 # Make sure we can run config.sub.
2295 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2296 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2297 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2298 { (exit 1); exit 1; }; }
2300 { echo "$as_me:$LINENO: checking build system type" >&5
2301 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2302 if test "${ac_cv_build+set}" = set; then
2303 echo $ECHO_N "(cached) $ECHO_C" >&6
2305 ac_build_alias
=$build_alias
2306 test "x$ac_build_alias" = x
&&
2307 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2308 test "x$ac_build_alias" = x
&&
2309 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2310 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2311 { (exit 1); exit 1; }; }
2312 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2313 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2314 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2315 { (exit 1); exit 1; }; }
2318 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2319 echo "${ECHO_T}$ac_cv_build" >&6; }
2320 case $ac_cv_build in
2322 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2323 echo "$as_me: error: invalid value of canonical build" >&2;}
2324 { (exit 1); exit 1; }; };;
2327 ac_save_IFS
=$IFS; IFS
='-'
2333 # Remember, the first character of IFS is used to create $*,
2334 # except with old shells:
2337 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2340 { echo "$as_me:$LINENO: checking host system type" >&5
2341 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2342 if test "${ac_cv_host+set}" = set; then
2343 echo $ECHO_N "(cached) $ECHO_C" >&6
2345 if test "x$host_alias" = x
; then
2346 ac_cv_host
=$ac_cv_build
2348 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2349 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2350 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2351 { (exit 1); exit 1; }; }
2355 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2356 echo "${ECHO_T}$ac_cv_host" >&6; }
2359 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2360 echo "$as_me: error: invalid value of canonical host" >&2;}
2361 { (exit 1); exit 1; }; };;
2364 ac_save_IFS
=$IFS; IFS
='-'
2370 # Remember, the first character of IFS is used to create $*,
2371 # except with old shells:
2374 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2378 configuration
=${host_alias-${build_alias-$host}}
2382 ### If you add support for a new configuration, add code to this
2383 ### switch statement to recognize your configuration name and select
2384 ### the appropriate operating system and machine description files.
2386 ### You would hope that you could choose an m/*.h file pretty much
2387 ### based on the machine portion of the configuration name, and an s-
2388 ### file based on the operating system portion. However, it turns out
2389 ### that each m/*.h file is pretty manufacturer-specific - for
2390 ### example mips.h is MIPS
2391 ### So we basically have to have a special case for each
2392 ### configuration name.
2394 ### As far as handling version numbers on operating systems is
2395 ### concerned, make sure things will fail in a fixable way. If
2396 ### /etc/MACHINES doesn't say anything about version numbers, be
2397 ### prepared to handle anything reasonably. If version numbers
2398 ### matter, be sure /etc/MACHINES says something about it.
2400 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2401 ### "System V Release 4"; he writes, "The old convention encouraged
2402 ### confusion between `system' and `release' levels'."
2404 machine
='' opsys
='' unported
=no
2405 case "${canonical}" in
2410 case "${canonical}" in
2411 alpha
*-*-freebsd*) machine
=alpha
;;
2412 arm
*-*-freebsd*) machine
=arm
;;
2413 ia64-
*-freebsd*) machine
=ia64
;;
2414 sparc-
*-freebsd*) machine
=sparc
;;
2415 sparc64-
*-freebsd*) machine
=sparc
;;
2416 powerpc-
*-freebsd*) machine
=macppc
;;
2417 i
[3456]86-*-freebsd*) machine
=intel386
;;
2418 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2422 ## FreeBSD kernel + glibc based userland
2425 case "${canonical}" in
2426 alpha
*-*-kfreebsd*) machine
=alpha
;;
2427 ia64-
*-kfreebsd*) machine
=ia64
;;
2428 sparc-
*-kfreebsd*) machine
=sparc
;;
2429 sparc64-
*-kfreebsd*) machine
=sparc
;;
2430 powerpc-
*-kfreebsd*) machine
=macppc
;;
2431 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2432 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2439 if test -f /usr
/lib
/crti.o
; then
2441 cat >>confdefs.h
<<\_ACEOF
2447 case "${canonical}" in
2448 alpha
*-*-netbsd*) machine
=alpha
;;
2449 i
[3456]86-*-netbsd*) machine
=intel386
;;
2450 powerpc-
*-netbsd*) machine
=macppc
;;
2451 sparc
*-*-netbsd*) machine
=sparc
;;
2452 vax-
*-netbsd*) machine
=vax
;;
2453 arm-
*-netbsd*) machine
=arm
;;
2454 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2455 hppa-
*-netbsd*) machine
=hp800
;;
2462 case "${canonical}" in
2463 alpha
*-*-openbsd*) machine
=alpha
;;
2464 arm-
*-openbsd*) machine
=arm
;;
2465 i386-
*-openbsd*) machine
=intel386
;;
2466 powerpc-
*-openbsd*) machine
=macppc
;;
2467 sparc
*-*-openbsd*) machine
=sparc
;;
2468 vax-
*-openbsd*) machine
=vax
;;
2469 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2476 case "${canonical}" in
2477 i
[3456]86-*-lynxos*) machine
=intel386
;;
2478 powerpc-
*-lynxos*) machine
=powerpc
;;
2482 alpha
*-*-linux-gnu* )
2483 machine
=alpha opsys
=gnu-linux
2487 machine
=arm opsys
=gnu-linux
2490 ## Apple Darwin / Mac OS X
2492 case "${canonical}" in
2493 i
[3456]86-* ) machine
=intel386
;;
2494 powerpc-
* ) machine
=macppc
;;
2498 # Define CPP as follows to make autoconf work correctly.
2499 CPP
="${CC-cc} -E -no-cpp-precomp"
2500 # Use fink packages if available.
2501 if test -d /sw
/include
&& test -d /sw
/lib
; then
2502 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2503 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2504 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2508 ## HP 9000 series 700 and 800, running HP/UX
2509 hppa
*-hp-hpux10.2
* )
2510 machine
=hp800 opsys
=hpux10-20
2512 hppa
*-hp-hpux1[1-9]* )
2513 machine
=hp800 opsys
=hpux11
2514 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2517 hppa
*-*-linux-gnu* )
2518 machine
=hp800 opsys
=gnu-linux
2523 machine
=ibms390 opsys
=gnu-linux
2525 s390x-
*-linux-gnu* )
2526 machine
=ibms390x opsys
=gnu-linux
2528 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2529 machine
=ibmrs6000 opsys
=aix4-2
2531 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2532 machine
=ibmrs6000 opsys
=aix4-2
2534 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2535 machine
=ibmrs6000 opsys
=aix4-2
2537 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2538 machine
=ibmrs6000 opsys
=aix4-2
2541 ## Macintosh PowerPC
2542 powerpc
*-*-linux-gnu* )
2543 machine
=macppc opsys
=gnu-linux
2546 ## Silicon Graphics machines
2549 machine
=iris4d opsys
=irix6-5
2550 # Without defining _LANGUAGE_C, things get masked out in the headers
2551 # so that, for instance, grepping for `free' in stdlib.h fails and
2552 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2553 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2554 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2558 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2559 machine
=sparc opsys
=gnu-linux
2563 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2564 | rs6000-
*-solaris2*)
2565 case "${canonical}" in
2566 i
[3456]86-*-* ) machine
=intel386
;;
2567 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2568 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2569 sparc
* ) machine
=sparc
;;
2572 case "${canonical}" in
2573 *-sunos5.3
* |
*-solaris2.3
* )
2575 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2577 *-sunos5.4
* |
*-solaris2.4
* )
2579 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2582 *-sunos5.5
* |
*-solaris2.5
* )
2584 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2587 *-sunos5.6
* |
*-solaris2.6
* )
2589 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2592 *-sunos5* |
*-solaris* )
2594 emacs_check_sunpro_c
=yes
2595 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2598 ## Watch out for a compiler that we know will not work.
2599 case "${canonical}" in
2600 *-solaris* |
*-sunos5* )
2601 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2602 ## /usr/ucb/cc doesn't work;
2603 ## we should find some other compiler that does work.
2614 case "${canonical}" in
2615 *-vms* ) opsys
=vms
;;
2622 machine
=ia64 opsys
=gnu-linux
2625 ## Intel 386 machines where we don't care about the manufacturer
2628 case "${canonical}" in
2629 *-cygwin ) opsys
=cygwin
;;
2630 *-darwin* ) opsys
=darwin
2631 CPP
="${CC-cc} -E -no-cpp-precomp"
2633 *-linux-gnu* ) opsys
=gnu-linux
;;
2634 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2635 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2636 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2637 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2641 ## m68k Linux-based GNU system
2643 machine
=m68k opsys
=gnu-linux
2646 ## Mips Linux-based GNU system
2647 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2648 machine
=mips opsys
=gnu-linux
2651 ## AMD x86-64 Linux-based GNU system
2652 x86_64-
*-linux-gnu* )
2653 machine
=amdx86-64 opsys
=gnu-linux
2656 ## Tensilica Xtensa Linux-based GNU system
2657 xtensa
*-*-linux-gnu* )
2658 machine
=xtensa opsys
=gnu-linux
2666 ### If the code above didn't choose an operating system, just choose
2667 ### an operating system based on the configuration name. You really
2668 ### only want to use this when you have no idea what the right
2669 ### operating system is; if you know what operating systems a machine
2670 ### runs, it's cleaner to make it explicit in the case statement
2672 if test x
"${opsys}" = x
; then
2673 case "${canonical}" in
2674 *-gnu* ) opsys
=gnu
;;
2675 *-sysv4.2uw
* ) opsys
=unixware
;;
2676 *-sysv5uw* ) opsys
=unixware
;;
2677 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2678 *-sysv4.1
* |
*-sysvr4.1
* )
2679 NON_GNU_CPP
=/usr
/lib
/cpp
2681 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2682 if [ x
$NON_GNU_CPP = x
]; then
2683 if [ -f /usr
/ccs
/lib
/cpp
]; then
2684 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2686 NON_GNU_CPP
=/lib
/cpp
2690 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2699 if test $unported = yes; then
2700 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2701 Check \`etc/MACHINES' for recognized configuration names." >&5
2702 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2703 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2704 { (exit 1); exit 1; }; }
2707 machfile
="m/${machine}.h"
2708 opsysfile
="s/${opsys}.h"
2711 #### Choose a compiler.
2712 test -n "$CC" && cc_specified
=yes
2714 # Save the value of CFLAGS that the user specified.
2715 SPECIFIED_CFLAGS
="$CFLAGS"
2718 ac_cpp
='$CPP $CPPFLAGS'
2719 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2720 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2721 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2722 if test -n "$ac_tool_prefix"; then
2723 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2724 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2725 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2726 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2727 if test "${ac_cv_prog_CC+set}" = set; then
2728 echo $ECHO_N "(cached) $ECHO_C" >&6
2730 if test -n "$CC"; then
2731 ac_cv_prog_CC
="$CC" # Let the user override the test.
2733 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2737 test -z "$as_dir" && as_dir
=.
2738 for ac_exec_ext
in '' $ac_executable_extensions; do
2739 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2740 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2741 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 if test -n "$CC"; then
2752 { echo "$as_me:$LINENO: result: $CC" >&5
2753 echo "${ECHO_T}$CC" >&6; }
2755 { echo "$as_me:$LINENO: result: no" >&5
2756 echo "${ECHO_T}no" >&6; }
2761 if test -z "$ac_cv_prog_CC"; then
2763 # Extract the first word of "gcc", so it can be a program name with args.
2764 set dummy gcc
; ac_word
=$2
2765 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2766 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2767 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2768 echo $ECHO_N "(cached) $ECHO_C" >&6
2770 if test -n "$ac_ct_CC"; then
2771 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2773 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2777 test -z "$as_dir" && as_dir
=.
2778 for ac_exec_ext
in '' $ac_executable_extensions; do
2779 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2780 ac_cv_prog_ac_ct_CC
="gcc"
2781 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2790 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2791 if test -n "$ac_ct_CC"; then
2792 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2793 echo "${ECHO_T}$ac_ct_CC" >&6; }
2795 { echo "$as_me:$LINENO: result: no" >&5
2796 echo "${ECHO_T}no" >&6; }
2799 if test "x$ac_ct_CC" = x
; then
2802 case $cross_compiling:$ac_tool_warned in
2804 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2805 whose name does not start with the host triplet. If you think this
2806 configuration is useful to you, please write to autoconf@gnu.org." >&5
2807 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2808 whose name does not start with the host triplet. If you think this
2809 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2810 ac_tool_warned
=yes ;;
2818 if test -z "$CC"; then
2819 if test -n "$ac_tool_prefix"; then
2820 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2821 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2822 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2823 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2824 if test "${ac_cv_prog_CC+set}" = set; then
2825 echo $ECHO_N "(cached) $ECHO_C" >&6
2827 if test -n "$CC"; then
2828 ac_cv_prog_CC
="$CC" # Let the user override the test.
2830 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2834 test -z "$as_dir" && as_dir
=.
2835 for ac_exec_ext
in '' $ac_executable_extensions; do
2836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2837 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2838 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2848 if test -n "$CC"; then
2849 { echo "$as_me:$LINENO: result: $CC" >&5
2850 echo "${ECHO_T}$CC" >&6; }
2852 { echo "$as_me:$LINENO: result: no" >&5
2853 echo "${ECHO_T}no" >&6; }
2859 if test -z "$CC"; then
2860 # Extract the first word of "cc", so it can be a program name with args.
2861 set dummy cc
; ac_word
=$2
2862 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2864 if test "${ac_cv_prog_CC+set}" = set; then
2865 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 if test -n "$CC"; then
2868 ac_cv_prog_CC
="$CC" # Let the user override the test.
2871 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2875 test -z "$as_dir" && as_dir
=.
2876 for ac_exec_ext
in '' $ac_executable_extensions; do
2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2879 ac_prog_rejected
=yes
2883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2890 if test $ac_prog_rejected = yes; then
2891 # We found a bogon in the path, so make sure we never use it.
2892 set dummy
$ac_cv_prog_CC
2894 if test $# != 0; then
2895 # We chose a different compiler from the bogus one.
2896 # However, it has the same basename, so the bogon will be chosen
2897 # first if we set CC to just the basename; use the full file name.
2899 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2905 if test -n "$CC"; then
2906 { echo "$as_me:$LINENO: result: $CC" >&5
2907 echo "${ECHO_T}$CC" >&6; }
2909 { echo "$as_me:$LINENO: result: no" >&5
2910 echo "${ECHO_T}no" >&6; }
2915 if test -z "$CC"; then
2916 if test -n "$ac_tool_prefix"; then
2917 for ac_prog
in cl.exe
2919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2920 set dummy
$ac_tool_prefix$ac_prog; 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$ac_prog"
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; }
2956 test -n "$CC" && break
2959 if test -z "$CC"; then
2961 for ac_prog
in cl.exe
2963 # Extract the first word of "$ac_prog", so it can be a program name with args.
2964 set dummy
$ac_prog; ac_word
=$2
2965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2967 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2970 if test -n "$ac_ct_CC"; then
2971 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2977 test -z "$as_dir" && as_dir
=.
2978 for ac_exec_ext
in '' $ac_executable_extensions; do
2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980 ac_cv_prog_ac_ct_CC
="$ac_prog"
2981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2990 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2991 if test -n "$ac_ct_CC"; then
2992 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2993 echo "${ECHO_T}$ac_ct_CC" >&6; }
2995 { echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6; }
3000 test -n "$ac_ct_CC" && break
3003 if test "x$ac_ct_CC" = x
; then
3006 case $cross_compiling:$ac_tool_warned in
3008 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3009 whose name does not start with the host triplet. If you think this
3010 configuration is useful to you, please write to autoconf@gnu.org." >&5
3011 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3012 whose name does not start with the host triplet. If you think this
3013 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3014 ac_tool_warned
=yes ;;
3023 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3024 See \`config.log' for more details." >&5
3025 echo "$as_me: error: no acceptable C compiler found in \$PATH
3026 See \`config.log' for more details." >&2;}
3027 { (exit 1); exit 1; }; }
3029 # Provide some information about the compiler.
3030 echo "$as_me:$LINENO: checking for C compiler version" >&5
3031 ac_compiler
=`set X $ac_compile; echo $2`
3032 { (ac_try
="$ac_compiler --version >&5"
3034 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3035 *) ac_try_echo=$ac_try;;
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_compiler --version >&5") 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (ac_try="$ac_compiler -v >&5"
3044 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3045 *) ac_try_echo
=$ac_try;;
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compiler -v >&5") 2>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3052 { (ac_try
="$ac_compiler -V >&5"
3054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3058 (eval "$ac_compiler -V >&5") 2>&5
3060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3061 (exit $ac_status); }
3063 cat >conftest.$ac_ext <<_ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3078 ac_clean_files_save=$ac_clean_files
3079 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3080 # Try to create an executable without -o first, disregard a.out.
3081 # It will help us diagnose broken compilers, and finding out an intuition
3083 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3084 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3085 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3087 # List of possible output files, starting from the most likely.
3088 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3089 # only as a last resort. b.out is created by i960 compilers.
3090 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3092 # The IRIX 6 linker writes into existing files which may not be
3093 # executable, retaining their permissions. Remove them first so a
3094 # subsequent execution test works.
3096 for ac_file in $ac_files
3099 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3100 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3105 if { (ac_try="$ac_link_default"
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3111 (eval "$ac_link_default") 2>&5
3113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3114 (exit $ac_status); }; then
3115 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3116 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3117 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3118 # so that the user can short-circuit this test for compilers unknown to
3120 for ac_file
in $ac_files ''
3122 test -f "$ac_file" ||
continue
3124 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3127 # We found the default executable, but exeext='' is most
3131 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3133 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3135 # We set ac_cv_exeext here because the later test for it is not
3136 # safe: cross compilers may not add the suffix if given an `-o'
3137 # argument, so we may need to know it at that point already.
3138 # Even if this section looks crufty: it has the advantage of
3145 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3151 { echo "$as_me:$LINENO: result: $ac_file" >&5
3152 echo "${ECHO_T}$ac_file" >&6; }
3153 if test -z "$ac_file"; then
3154 echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.
$ac_ext >&5
3157 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3158 See \`config.log' for more details." >&5
3159 echo "$as_me: error: C compiler cannot create executables
3160 See \`config.log' for more details." >&2;}
3161 { (exit 77); exit 77; }; }
3164 ac_exeext
=$ac_cv_exeext
3166 # Check that the compiler produces executables we can run. If not, either
3167 # the compiler is broken, or we cross compile.
3168 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3169 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3170 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3171 # If not cross compiling, check that we can run a simple program.
3172 if test "$cross_compiling" != yes; then
3173 if { ac_try
='./$ac_file'
3174 { (case "(($ac_try" in
3175 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_try") 2>&5
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }; }; then
3185 if test "$cross_compiling" = maybe; then
3188 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3189 If you meant to cross compile, use \`--host'.
3190 See \`config.log' for more details.
" >&5
3191 echo "$as_me: error
: cannot run C compiled programs.
3192 If you meant to cross compile
, use \
`--host'.
3193 See \`config.log
' for more details." >&2;}
3194 { (exit 1); exit 1; }; }
3198 { echo "$as_me:$LINENO: result: yes" >&5
3199 echo "${ECHO_T}yes" >&6; }
3201 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3202 ac_clean_files=$ac_clean_files_save
3203 # Check that the compiler produces executables we can run. If not, either
3204 # the compiler is broken, or we cross compile.
3205 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3206 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3207 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3208 echo "${ECHO_T}$cross_compiling" >&6; }
3210 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3211 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3212 if { (ac_try="$ac_link"
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_link") 2>&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }; then
3222 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3223 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3224 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3226 for ac_file
in conftest.exe conftest conftest.
*; do
3227 test -f "$ac_file" ||
continue
3229 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3230 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3236 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3237 See \`config.log' for more details." >&5
3238 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3239 See \`config.log' for more details." >&2;}
3240 { (exit 1); exit 1; }; }
3243 rm -f conftest
$ac_cv_exeext
3244 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3245 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3247 rm -f conftest.
$ac_ext
3248 EXEEXT
=$ac_cv_exeext
3250 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3251 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3252 if test "${ac_cv_objext+set}" = set; then
3253 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 cat >conftest.
$ac_ext <<_ACEOF
3258 cat confdefs.h
>>conftest.
$ac_ext
3259 cat >>conftest.
$ac_ext <<_ACEOF
3260 /* end confdefs.h. */
3270 rm -f conftest.o conftest.obj
3271 if { (ac_try
="$ac_compile"
3273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3274 *) ac_try_echo=$ac_try;;
3276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3277 (eval "$ac_compile") 2>&5
3279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3280 (exit $ac_status); }; then
3281 for ac_file in conftest.o conftest.obj conftest.*; do
3282 test -f "$ac_file" || continue;
3284 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3285 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3290 echo "$as_me: failed program was:" >&5
3291 sed 's/^/| /' conftest.$ac_ext >&5
3293 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3294 See \`config.log
' for more details." >&5
3295 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3296 See \`config.log' for more details.
" >&2;}
3297 { (exit 1); exit 1; }; }
3300 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3302 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3303 echo "${ECHO_T}$ac_cv_objext" >&6; }
3304 OBJEXT=$ac_cv_objext
3306 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3307 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3308 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3309 echo $ECHO_N "(cached
) $ECHO_C" >&6
3311 cat >conftest.$ac_ext <<_ACEOF
3314 cat confdefs.h >>conftest.$ac_ext
3315 cat >>conftest.$ac_ext <<_ACEOF
3316 /* end confdefs.h. */
3329 rm -f conftest.$ac_objext
3330 if { (ac_try="$ac_compile"
3332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333 *) ac_try_echo=$ac_try;;
3335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3336 (eval "$ac_compile") 2>conftest.er1
3338 grep -v '^ *+' conftest.er1 >conftest.err
3340 cat conftest.err >&5
3341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3342 (exit $ac_status); } && {
3343 test -z "$ac_c_werror_flag" ||
3344 test ! -s conftest.err
3345 } && test -s conftest.$ac_objext; then
3348 echo "$as_me: failed program was
:" >&5
3349 sed 's/^/| /' conftest.$ac_ext >&5
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3355 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3358 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3359 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3360 GCC=`test $ac_compiler_gnu = yes && echo yes`
3361 ac_test_CFLAGS=${CFLAGS+set}
3362 ac_save_CFLAGS=$CFLAGS
3363 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3364 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3365 if test "${ac_cv_prog_cc_g+set}" = set; then
3366 echo $ECHO_N "(cached
) $ECHO_C" >&6
3368 ac_save_c_werror_flag=$ac_c_werror_flag
3369 ac_c_werror_flag=yes
3372 cat >conftest.$ac_ext <<_ACEOF
3375 cat confdefs.h >>conftest.$ac_ext
3376 cat >>conftest.$ac_ext <<_ACEOF
3377 /* end confdefs.h. */
3387 rm -f conftest.$ac_objext
3388 if { (ac_try="$ac_compile"
3390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3391 *) ac_try_echo=$ac_try;;
3393 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3394 (eval "$ac_compile") 2>conftest.er1
3396 grep -v '^ *+' conftest.er1 >conftest.err
3398 cat conftest.err >&5
3399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3400 (exit $ac_status); } && {
3401 test -z "$ac_c_werror_flag" ||
3402 test ! -s conftest.err
3403 } && test -s conftest.$ac_objext; then
3406 echo "$as_me: failed program was
:" >&5
3407 sed 's/^/| /' conftest.$ac_ext >&5
3410 cat >conftest.$ac_ext <<_ACEOF
3413 cat confdefs.h >>conftest.$ac_ext
3414 cat >>conftest.$ac_ext <<_ACEOF
3415 /* end confdefs.h. */
3425 rm -f conftest.$ac_objext
3426 if { (ac_try="$ac_compile"
3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429 *) ac_try_echo=$ac_try;;
3431 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3432 (eval "$ac_compile") 2>conftest.er1
3434 grep -v '^ *+' conftest.er1 >conftest.err
3436 cat conftest.err >&5
3437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3438 (exit $ac_status); } && {
3439 test -z "$ac_c_werror_flag" ||
3440 test ! -s conftest.err
3441 } && test -s conftest.$ac_objext; then
3444 echo "$as_me: failed program was
:" >&5
3445 sed 's/^/| /' conftest.$ac_ext >&5
3447 ac_c_werror_flag=$ac_save_c_werror_flag
3449 cat >conftest.$ac_ext <<_ACEOF
3452 cat confdefs.h >>conftest.$ac_ext
3453 cat >>conftest.$ac_ext <<_ACEOF
3454 /* end confdefs.h. */
3464 rm -f conftest.$ac_objext
3465 if { (ac_try="$ac_compile"
3467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3468 *) ac_try_echo=$ac_try;;
3470 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3471 (eval "$ac_compile") 2>conftest.er1
3473 grep -v '^ *+' conftest.er1 >conftest.err
3475 cat conftest.err >&5
3476 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3477 (exit $ac_status); } && {
3478 test -z "$ac_c_werror_flag" ||
3479 test ! -s conftest.err
3480 } && test -s conftest.$ac_objext; then
3483 echo "$as_me: failed program was
:" >&5
3484 sed 's/^/| /' conftest.$ac_ext >&5
3489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_c_werror_flag=$ac_save_c_werror_flag
3498 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3499 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3500 if test "$ac_test_CFLAGS" = set; then
3501 CFLAGS=$ac_save_CFLAGS
3502 elif test $ac_cv_prog_cc_g = yes; then
3503 if test "$GCC" = yes; then
3509 if test "$GCC" = yes; then
3515 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3516 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3517 if test "${ac_cv_prog_cc_c89+set}" = set; then
3518 echo $ECHO_N "(cached
) $ECHO_C" >&6
3520 ac_cv_prog_cc_c89=no
3522 cat >conftest.$ac_ext <<_ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3530 #include <sys/types.h>
3531 #include <sys/stat.h>
3532 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3533 struct buf { int x; };
3534 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3535 static char *e (p, i)
3541 static char *f (char * (*g) (char **, int), char **p, ...)
3546 s = g (p, va_arg (v,int));
3551 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3552 function prototypes and stuff, but not '\xHH' hex character constants.
3553 These don't provoke an error unfortunately, instead are silently treated
3554 as 'x'. The following induces an error, until -std is added to get
3555 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3556 array size at least. It's necessary to write '\x00'==0 to get something
3557 that's true only with -std. */
3558 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3560 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3561 inside strings and character constants. */
3563 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3565 int test (int i, double x);
3566 struct s1 {int (*f) (int a);};
3567 struct s2 {int (*f) (double a);};
3568 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3574 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3579 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3580 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3582 CC="$ac_save_CC $ac_arg"
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
3600 ac_cv_prog_cc_c89=$ac_arg
3602 echo "$as_me: failed program was
:" >&5
3603 sed 's/^/| /' conftest.$ac_ext >&5
3608 rm -f core conftest.err conftest.$ac_objext
3609 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3611 rm -f conftest.$ac_ext
3616 case "x
$ac_cv_prog_cc_c89" in
3618 { echo "$as_me:$LINENO: result
: none needed
" >&5
3619 echo "${ECHO_T}none needed
" >&6; } ;;
3621 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3622 echo "${ECHO_T}unsupported
" >&6; } ;;
3624 CC="$CC $ac_cv_prog_cc_c89"
3625 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3626 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3631 ac_cpp='$CPP $CPPFLAGS'
3632 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3633 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3634 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3637 # On Suns, sometimes $CPP names a directory.
3638 if test -n "$CPP" && test -d "$CPP"; then
3642 ## If not using gcc, and on Solaris, and no CPP specified, see if
3643 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3644 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3645 test x"$CPP" = x; then
3646 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3647 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3649 if test "${emacs_cv_sunpro_c+set}" = set; then
3650 echo $ECHO_N "(cached
) $ECHO_C" >&6
3652 cat >conftest.$ac_ext <<_ACEOF
3655 cat confdefs.h >>conftest.$ac_ext
3656 cat >>conftest.$ac_ext <<_ACEOF
3657 /* end confdefs.h. */
3670 rm -f conftest.$ac_objext conftest$ac_exeext
3671 if { (ac_try="$ac_link"
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3676 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3677 (eval "$ac_link") 2>conftest.er1
3679 grep -v '^ *+' conftest.er1 >conftest.err
3681 cat conftest.err >&5
3682 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3683 (exit $ac_status); } && {
3684 test -z "$ac_c_werror_flag" ||
3685 test ! -s conftest.err
3686 } && test -s conftest$ac_exeext &&
3687 $as_test_x conftest$ac_exeext; then
3688 emacs_cv_sunpro_c=yes
3690 echo "$as_me: failed program was
:" >&5
3691 sed 's/^/| /' conftest.$ac_ext >&5
3693 emacs_cv_sunpro_c=no
3696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3697 conftest$ac_exeext conftest.$ac_ext
3700 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3701 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3703 if test x"$emacs_cv_sunpro_c" = xyes; then
3704 NON_GNU_CPP="$CC -E -Xs"
3708 #### Some systems specify a CPP to use unless we are using GCC.
3709 #### Now that we know whether we are using GCC, we can decide whether
3710 #### to use that one.
3711 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3716 #### Some systems specify a CC to use unless we are using GCC.
3717 #### Now that we know whether we are using GCC, we can decide whether
3718 #### to use that one.
3719 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3720 test x$cc_specified != xyes
3725 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3727 CC="$CC $GCC_TEST_OPTIONS"
3730 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3732 CC="$CC $NON_GCC_TEST_OPTIONS"
3736 cat >>confdefs.h <<\_ACEOF
3737 #define _GNU_SOURCE 1
3742 ac_cpp='$CPP $CPPFLAGS'
3743 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3744 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3745 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3746 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3747 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3748 # On Suns, sometimes $CPP names a directory.
3749 if test -n "$CPP" && test -d "$CPP"; then
3752 if test -z "$CPP"; then
3753 if test "${ac_cv_prog_CPP+set}" = set; then
3754 echo $ECHO_N "(cached
) $ECHO_C" >&6
3756 # Double quotes because CPP needs to be expanded
3757 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3760 for ac_c_preproc_warn_flag in '' yes
3762 # Use a header file that comes with gcc, so configuring glibc
3763 # with a fresh cross-compiler works.
3764 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3765 # <limits.h> exists even on freestanding compilers.
3766 # On the NeXT, cc -E runs the code through the compiler's parser,
3767 # not just through cpp. "Syntax error
" is here to catch this case.
3768 cat >conftest.$ac_ext <<_ACEOF
3771 cat confdefs.h >>conftest.$ac_ext
3772 cat >>conftest.$ac_ext <<_ACEOF
3773 /* end confdefs.h. */
3775 # include <limits.h>
3777 # include <assert.h>
3781 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3786 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3789 grep -v '^ *+' conftest.er1 >conftest.err
3791 cat conftest.err >&5
3792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3793 (exit $ac_status); } >/dev/null && {
3794 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3795 test ! -s conftest.err
3799 echo "$as_me: failed program was
:" >&5
3800 sed 's/^/| /' conftest.$ac_ext >&5
3802 # Broken: fails on valid input.
3806 rm -f conftest.err conftest.$ac_ext
3808 # OK, works on sane cases. Now check whether nonexistent headers
3809 # can be detected and how.
3810 cat >conftest.$ac_ext <<_ACEOF
3813 cat confdefs.h >>conftest.$ac_ext
3814 cat >>conftest.$ac_ext <<_ACEOF
3815 /* end confdefs.h. */
3816 #include <ac_nonexistent.h>
3818 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3823 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3824 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3826 grep -v '^ *+' conftest.er1 >conftest.err
3828 cat conftest.err >&5
3829 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3830 (exit $ac_status); } >/dev/null && {
3831 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3832 test ! -s conftest.err
3834 # Broken: success on invalid input.
3837 echo "$as_me: failed program was
:" >&5
3838 sed 's/^/| /' conftest.$ac_ext >&5
3840 # Passes both tests.
3845 rm -f conftest.err conftest.$ac_ext
3848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3849 rm -f conftest.err conftest.$ac_ext
3850 if $ac_preproc_ok; then
3862 { echo "$as_me:$LINENO: result
: $CPP" >&5
3863 echo "${ECHO_T}$CPP" >&6; }
3865 for ac_c_preproc_warn_flag in '' yes
3867 # Use a header file that comes with gcc, so configuring glibc
3868 # with a fresh cross-compiler works.
3869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3870 # <limits.h> exists even on freestanding compilers.
3871 # On the NeXT, cc -E runs the code through the compiler's parser,
3872 # not just through cpp. "Syntax error
" is here to catch this case.
3873 cat >conftest.$ac_ext <<_ACEOF
3876 cat confdefs.h >>conftest.$ac_ext
3877 cat >>conftest.$ac_ext <<_ACEOF
3878 /* end confdefs.h. */
3880 # include <limits.h>
3882 # include <assert.h>
3886 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3889 *) ac_try_echo=$ac_try;;
3891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3892 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3894 grep -v '^ *+' conftest.er1 >conftest.err
3896 cat conftest.err >&5
3897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3898 (exit $ac_status); } >/dev/null && {
3899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3900 test ! -s conftest.err
3904 echo "$as_me: failed program was
:" >&5
3905 sed 's/^/| /' conftest.$ac_ext >&5
3907 # Broken: fails on valid input.
3911 rm -f conftest.err conftest.$ac_ext
3913 # OK, works on sane cases. Now check whether nonexistent headers
3914 # can be detected and how.
3915 cat >conftest.$ac_ext <<_ACEOF
3918 cat confdefs.h >>conftest.$ac_ext
3919 cat >>conftest.$ac_ext <<_ACEOF
3920 /* end confdefs.h. */
3921 #include <ac_nonexistent.h>
3923 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3926 *) ac_try_echo=$ac_try;;
3928 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3929 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3931 grep -v '^ *+' conftest.er1 >conftest.err
3933 cat conftest.err >&5
3934 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3935 (exit $ac_status); } >/dev/null && {
3936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3937 test ! -s conftest.err
3939 # Broken: success on invalid input.
3942 echo "$as_me: failed program was
:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3945 # Passes both tests.
3950 rm -f conftest.err conftest.$ac_ext
3953 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3954 rm -f conftest.err conftest.$ac_ext
3955 if $ac_preproc_ok; then
3958 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3959 See \
`config.log' for more details." >&5
3960 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3961 See \`config.log
' for more details." >&2;}
3962 { (exit 1); exit 1; }; }
3966 ac_cpp='$CPP $CPPFLAGS'
3967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3968 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3972 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3973 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3974 if test "${ac_cv_path_GREP+set}" = set; then
3975 echo $ECHO_N "(cached) $ECHO_C" >&6
3977 # Extract the first word of "grep ggrep" to use in msg output
3978 if test -z "$GREP"; then
3979 set dummy grep ggrep; ac_prog_name=$2
3980 if test "${ac_cv_path_GREP+set}" = set; then
3981 echo $ECHO_N "(cached) $ECHO_C" >&6
3983 ac_path_GREP_found=false
3984 # Loop through the user's path and
test for each of PROGNAME-LIST
3985 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3986 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3989 test -z "$as_dir" && as_dir
=.
3990 for ac_prog
in grep ggrep
; do
3991 for ac_exec_ext
in '' $ac_executable_extensions; do
3992 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3993 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3994 # Check for GNU ac_path_GREP and select it if it is found.
3995 # Check for GNU $ac_path_GREP
3996 case `"$ac_path_GREP" --version 2>&1` in
3998 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4001 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4004 cat "conftest.in" "conftest.in" >"conftest.tmp"
4005 mv "conftest.tmp" "conftest.in"
4006 cp "conftest.in" "conftest.nl"
4007 echo 'GREP' >> "conftest.nl"
4008 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4009 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4010 ac_count
=`expr $ac_count + 1`
4011 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4012 # Best one so far, save it but keep looking for a better one
4013 ac_cv_path_GREP
="$ac_path_GREP"
4014 ac_path_GREP_max
=$ac_count
4016 # 10*(2^10) chars as input seems more than enough
4017 test $ac_count -gt 10 && break
4019 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4023 $ac_path_GREP_found && break 3
4033 GREP
="$ac_cv_path_GREP"
4034 if test -z "$GREP"; then
4035 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4036 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4037 { (exit 1); exit 1; }; }
4041 ac_cv_path_GREP
=$GREP
4046 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4047 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4048 GREP
="$ac_cv_path_GREP"
4051 { echo "$as_me:$LINENO: checking for egrep" >&5
4052 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4053 if test "${ac_cv_path_EGREP+set}" = set; then
4054 echo $ECHO_N "(cached) $ECHO_C" >&6
4056 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4057 then ac_cv_path_EGREP
="$GREP -E"
4059 # Extract the first word of "egrep" to use in msg output
4060 if test -z "$EGREP"; then
4061 set dummy
egrep; ac_prog_name
=$2
4062 if test "${ac_cv_path_EGREP+set}" = set; then
4063 echo $ECHO_N "(cached) $ECHO_C" >&6
4065 ac_path_EGREP_found
=false
4066 # Loop through the user's path and test for each of PROGNAME-LIST
4067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4068 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4071 test -z "$as_dir" && as_dir
=.
4072 for ac_prog
in egrep; do
4073 for ac_exec_ext
in '' $ac_executable_extensions; do
4074 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4075 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4076 # Check for GNU ac_path_EGREP and select it if it is found.
4077 # Check for GNU $ac_path_EGREP
4078 case `"$ac_path_EGREP" --version 2>&1` in
4080 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4083 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4086 cat "conftest.in" "conftest.in" >"conftest.tmp"
4087 mv "conftest.tmp" "conftest.in"
4088 cp "conftest.in" "conftest.nl"
4089 echo 'EGREP' >> "conftest.nl"
4090 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4091 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4092 ac_count
=`expr $ac_count + 1`
4093 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4094 # Best one so far, save it but keep looking for a better one
4095 ac_cv_path_EGREP
="$ac_path_EGREP"
4096 ac_path_EGREP_max
=$ac_count
4098 # 10*(2^10) chars as input seems more than enough
4099 test $ac_count -gt 10 && break
4101 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4105 $ac_path_EGREP_found && break 3
4115 EGREP
="$ac_cv_path_EGREP"
4116 if test -z "$EGREP"; then
4117 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4118 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4119 { (exit 1); exit 1; }; }
4123 ac_cv_path_EGREP
=$EGREP
4129 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4130 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4131 EGREP
="$ac_cv_path_EGREP"
4135 { echo "$as_me:$LINENO: checking for AIX" >&5
4136 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4137 cat >conftest.
$ac_ext <<_ACEOF
4140 cat confdefs.h
>>conftest.
$ac_ext
4141 cat >>conftest.
$ac_ext <<_ACEOF
4142 /* end confdefs.h. */
4148 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4149 $EGREP "yes" >/dev
/null
2>&1; then
4150 { echo "$as_me:$LINENO: result: yes" >&5
4151 echo "${ECHO_T}yes" >&6; }
4152 cat >>confdefs.h
<<\_ACEOF
4153 #define _ALL_SOURCE 1
4157 { echo "$as_me:$LINENO: result: no" >&5
4158 echo "${ECHO_T}no" >&6; }
4163 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4164 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4165 if test "${ac_cv_header_stdc+set}" = set; then
4166 echo $ECHO_N "(cached) $ECHO_C" >&6
4168 cat >conftest.
$ac_ext <<_ACEOF
4171 cat confdefs.h
>>conftest.
$ac_ext
4172 cat >>conftest.
$ac_ext <<_ACEOF
4173 /* end confdefs.h. */
4187 rm -f conftest.
$ac_objext
4188 if { (ac_try
="$ac_compile"
4190 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4191 *) ac_try_echo=$ac_try;;
4193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4194 (eval "$ac_compile") 2>conftest.er1
4196 grep -v '^ *+' conftest.er1 >conftest.err
4198 cat conftest.err >&5
4199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4200 (exit $ac_status); } && {
4201 test -z "$ac_c_werror_flag" ||
4202 test ! -s conftest.err
4203 } && test -s conftest.$ac_objext; then
4204 ac_cv_header_stdc=yes
4206 echo "$as_me: failed program was:" >&5
4207 sed 's/^/| /' conftest.$ac_ext >&5
4209 ac_cv_header_stdc=no
4212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 if test $ac_cv_header_stdc = yes; then
4215 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4216 cat >conftest.$ac_ext <<_ACEOF
4219 cat confdefs.h >>conftest.$ac_ext
4220 cat >>conftest.$ac_ext <<_ACEOF
4221 /* end confdefs.h. */
4225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4226 $EGREP "memchr" >/dev/null 2>&1; then
4229 ac_cv_header_stdc=no
4235 if test $ac_cv_header_stdc = yes; then
4236 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4237 cat >conftest.$ac_ext <<_ACEOF
4240 cat confdefs.h >>conftest.$ac_ext
4241 cat >>conftest.$ac_ext <<_ACEOF
4242 /* end confdefs.h. */
4246 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4247 $EGREP "free" >/dev/null 2>&1; then
4250 ac_cv_header_stdc=no
4256 if test $ac_cv_header_stdc = yes; then
4257 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4258 if test "$cross_compiling" = yes; then
4261 cat >conftest.$ac_ext <<_ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4269 #if ((' ' & 0x0FF) == 0x020)
4270 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4271 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4273 # define ISLOWER(c) \
4274 (('a' <= (c) && (c) <= 'i') \
4275 || ('j' <= (c) && (c) <= 'r') \
4276 || ('s' <= (c) && (c) <= 'z'))
4277 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4280 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4285 for (i = 0; i < 256; i++)
4286 if (XOR (islower (i), ISLOWER (i))
4287 || toupper (i) != TOUPPER (i))
4292 rm -f conftest$ac_exeext
4293 if { (ac_try="$ac_link"
4295 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4296 *) ac_try_echo
=$ac_try;;
4298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4299 (eval "$ac_link") 2>&5
4301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4302 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4303 { (case "(($ac_try" in
4304 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4305 *) ac_try_echo=$ac_try;;
4307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4308 (eval "$ac_try") 2>&5
4310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4311 (exit $ac_status); }; }; then
4314 echo "$as_me: program exited with status $ac_status" >&5
4315 echo "$as_me: failed program was:" >&5
4316 sed 's/^/| /' conftest.$ac_ext >&5
4319 ac_cv_header_stdc=no
4321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4327 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4328 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4329 if test $ac_cv_header_stdc = yes; then
4331 cat >>confdefs.h <<\_ACEOF
4332 #define STDC_HEADERS 1
4337 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4347 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4348 inttypes.h stdint.h unistd.h
4350 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4354 echo $ECHO_N "(cached) $ECHO_C" >&6
4356 cat >conftest.$ac_ext <<_ACEOF
4359 cat confdefs.h >>conftest.$ac_ext
4360 cat >>conftest.$ac_ext <<_ACEOF
4361 /* end confdefs.h. */
4362 $ac_includes_default
4364 #include <$ac_header>
4366 rm -f conftest.$ac_objext
4367 if { (ac_try="$ac_compile"
4369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4370 *) ac_try_echo
=$ac_try;;
4372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4373 (eval "$ac_compile") 2>conftest.er1
4375 grep -v '^ *+' conftest.er1
>conftest.err
4377 cat conftest.err
>&5
4378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4379 (exit $ac_status); } && {
4380 test -z "$ac_c_werror_flag" ||
4381 test ! -s conftest.err
4382 } && test -s conftest.
$ac_objext; then
4383 eval "$as_ac_Header=yes"
4385 echo "$as_me: failed program was:" >&5
4386 sed 's/^/| /' conftest.
$ac_ext >&5
4388 eval "$as_ac_Header=no"
4391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4393 ac_res
=`eval echo '${'$as_ac_Header'}'`
4394 { echo "$as_me:$LINENO: result: $ac_res" >&5
4395 echo "${ECHO_T}$ac_res" >&6; }
4396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4397 cat >>confdefs.h
<<_ACEOF
4398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4406 if test "${ac_cv_header_minix_config_h+set}" = set; then
4407 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4408 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4409 if test "${ac_cv_header_minix_config_h+set}" = set; then
4410 echo $ECHO_N "(cached) $ECHO_C" >&6
4412 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4413 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4415 # Is the header compilable?
4416 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4417 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4418 cat >conftest.
$ac_ext <<_ACEOF
4421 cat confdefs.h
>>conftest.
$ac_ext
4422 cat >>conftest.
$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4424 $ac_includes_default
4425 #include <minix/config.h>
4427 rm -f conftest.
$ac_objext
4428 if { (ac_try
="$ac_compile"
4430 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4434 (eval "$ac_compile") 2>conftest.er1
4436 grep -v '^ *+' conftest.er1 >conftest.err
4438 cat conftest.err >&5
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); } && {
4441 test -z "$ac_c_werror_flag" ||
4442 test ! -s conftest.err
4443 } && test -s conftest.$ac_objext; then
4444 ac_header_compiler=yes
4446 echo "$as_me: failed program was:" >&5
4447 sed 's/^/| /' conftest.$ac_ext >&5
4449 ac_header_compiler=no
4452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4453 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4454 echo "${ECHO_T}$ac_header_compiler" >&6; }
4456 # Is the header present?
4457 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4458 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4459 cat >conftest.$ac_ext <<_ACEOF
4462 cat confdefs.h >>conftest.$ac_ext
4463 cat >>conftest.$ac_ext <<_ACEOF
4464 /* end confdefs.h. */
4465 #include <minix/config.h>
4467 if { (ac_try="$ac_cpp conftest.$ac_ext"
4469 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4470 *) ac_try_echo
=$ac_try;;
4472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4473 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4475 grep -v '^ *+' conftest.er1
>conftest.err
4477 cat conftest.err
>&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } >/dev
/null
&& {
4480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4481 test ! -s conftest.err
4483 ac_header_preproc
=yes
4485 echo "$as_me: failed program was:" >&5
4486 sed 's/^/| /' conftest.
$ac_ext >&5
4488 ac_header_preproc
=no
4491 rm -f conftest.err conftest.
$ac_ext
4492 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4493 echo "${ECHO_T}$ac_header_preproc" >&6; }
4495 # So? What about this header?
4496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4498 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4499 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4500 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4501 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4502 ac_header_preproc
=yes
4505 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4506 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4507 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4508 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4509 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4510 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4511 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4512 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4513 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4514 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4515 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4516 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4520 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4521 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4522 if test "${ac_cv_header_minix_config_h+set}" = set; then
4523 echo $ECHO_N "(cached) $ECHO_C" >&6
4525 ac_cv_header_minix_config_h
=$ac_header_preproc
4527 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4528 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4531 if test $ac_cv_header_minix_config_h = yes; then
4538 if test "$MINIX" = yes; then
4540 cat >>confdefs.h
<<\_ACEOF
4541 #define _POSIX_SOURCE 1
4545 cat >>confdefs.h
<<\_ACEOF
4546 #define _POSIX_1_SOURCE 2
4550 cat >>confdefs.h
<<\_ACEOF
4566 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4567 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4568 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4569 echo $ECHO_N "(cached) $ECHO_C" >&6
4571 cat >conftest.
$ac_ext <<_ACEOF
4574 cat confdefs.h
>>conftest.
$ac_ext
4575 cat >>conftest.
$ac_ext <<_ACEOF
4576 /* end confdefs.h. */
4578 # define __EXTENSIONS__ 1
4579 $ac_includes_default
4588 rm -f conftest.
$ac_objext
4589 if { (ac_try
="$ac_compile"
4591 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4592 *) ac_try_echo=$ac_try;;
4594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4595 (eval "$ac_compile") 2>conftest.er1
4597 grep -v '^ *+' conftest.er1 >conftest.err
4599 cat conftest.err >&5
4600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4601 (exit $ac_status); } && {
4602 test -z "$ac_c_werror_flag" ||
4603 test ! -s conftest.err
4604 } && test -s conftest.$ac_objext; then
4605 ac_cv_safe_to_define___extensions__=yes
4607 echo "$as_me: failed program was:" >&5
4608 sed 's/^/| /' conftest.$ac_ext >&5
4610 ac_cv_safe_to_define___extensions__=no
4613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4616 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4617 test $ac_cv_safe_to_define___extensions__ = yes &&
4618 cat >>confdefs.h <<\_ACEOF
4619 #define __EXTENSIONS__ 1
4622 cat >>confdefs.h <<\_ACEOF
4623 #define _POSIX_PTHREAD_SEMANTICS 1
4626 cat >>confdefs.h <<\_ACEOF
4627 #define _TANDEM_SOURCE 1
4632 ### Use -Wno-pointer-sign if the compiler supports it
4633 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4634 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4635 SAVE_CFLAGS="$CFLAGS"
4636 CFLAGS="$CFLAGS -Wno-pointer-sign"
4637 cat >conftest.$ac_ext <<_ACEOF
4640 cat confdefs.h >>conftest.$ac_ext
4641 cat >>conftest.$ac_ext <<_ACEOF
4642 /* end confdefs.h. */
4652 rm -f conftest.$ac_objext
4653 if { (ac_try="$ac_compile"
4655 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4656 *) ac_try_echo
=$ac_try;;
4658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4659 (eval "$ac_compile") 2>conftest.er1
4661 grep -v '^ *+' conftest.er1
>conftest.err
4663 cat conftest.err
>&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); } && {
4666 test -z "$ac_c_werror_flag" ||
4667 test ! -s conftest.err
4668 } && test -s conftest.
$ac_objext; then
4671 echo "$as_me: failed program was:" >&5
4672 sed 's/^/| /' conftest.
$ac_ext >&5
4677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4678 if test $has_option = yes; then
4679 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4681 { echo "$as_me:$LINENO: result: $has_option" >&5
4682 echo "${ECHO_T}$has_option" >&6; }
4683 CFLAGS
="$SAVE_CFLAGS"
4687 #### Some other nice autoconf tests.
4689 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4690 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4692 if test "$LN_S" = "ln -s"; then
4693 { echo "$as_me:$LINENO: result: yes" >&5
4694 echo "${ECHO_T}yes" >&6; }
4696 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4697 echo "${ECHO_T}no, using $LN_S" >&6; }
4701 ac_cpp
='$CPP $CPPFLAGS'
4702 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4703 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4704 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4705 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4706 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4707 # On Suns, sometimes $CPP names a directory.
4708 if test -n "$CPP" && test -d "$CPP"; then
4711 if test -z "$CPP"; then
4712 if test "${ac_cv_prog_CPP+set}" = set; then
4713 echo $ECHO_N "(cached) $ECHO_C" >&6
4715 # Double quotes because CPP needs to be expanded
4716 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4719 for ac_c_preproc_warn_flag
in '' yes
4721 # Use a header file that comes with gcc, so configuring glibc
4722 # with a fresh cross-compiler works.
4723 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4724 # <limits.h> exists even on freestanding compilers.
4725 # On the NeXT, cc -E runs the code through the compiler's parser,
4726 # not just through cpp. "Syntax error" is here to catch this case.
4727 cat >conftest.
$ac_ext <<_ACEOF
4730 cat confdefs.h
>>conftest.
$ac_ext
4731 cat >>conftest.
$ac_ext <<_ACEOF
4732 /* end confdefs.h. */
4734 # include <limits.h>
4736 # include <assert.h>
4740 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4746 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4748 grep -v '^ *+' conftest.er1 >conftest.err
4750 cat conftest.err >&5
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); } >/dev/null && {
4753 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4754 test ! -s conftest.err
4758 echo "$as_me: failed program was:" >&5
4759 sed 's/^/| /' conftest.$ac_ext >&5
4761 # Broken: fails on valid input.
4765 rm -f conftest.err conftest.$ac_ext
4767 # OK, works on sane cases. Now check whether nonexistent headers
4768 # can be detected and how.
4769 cat >conftest.$ac_ext <<_ACEOF
4772 cat confdefs.h >>conftest.$ac_ext
4773 cat >>conftest.$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4775 #include <ac_nonexistent.h>
4777 if { (ac_try="$ac_cpp conftest.$ac_ext"
4779 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4780 *) ac_try_echo
=$ac_try;;
4782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4785 grep -v '^ *+' conftest.er1
>conftest.err
4787 cat conftest.err
>&5
4788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4789 (exit $ac_status); } >/dev
/null
&& {
4790 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4791 test ! -s conftest.err
4793 # Broken: success on invalid input.
4796 echo "$as_me: failed program was:" >&5
4797 sed 's/^/| /' conftest.
$ac_ext >&5
4799 # Passes both tests.
4804 rm -f conftest.err conftest.
$ac_ext
4807 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4808 rm -f conftest.err conftest.
$ac_ext
4809 if $ac_preproc_ok; then
4821 { echo "$as_me:$LINENO: result: $CPP" >&5
4822 echo "${ECHO_T}$CPP" >&6; }
4824 for ac_c_preproc_warn_flag
in '' yes
4826 # Use a header file that comes with gcc, so configuring glibc
4827 # with a fresh cross-compiler works.
4828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4829 # <limits.h> exists even on freestanding compilers.
4830 # On the NeXT, cc -E runs the code through the compiler's parser,
4831 # not just through cpp. "Syntax error" is here to catch this case.
4832 cat >conftest.
$ac_ext <<_ACEOF
4835 cat confdefs.h
>>conftest.
$ac_ext
4836 cat >>conftest.
$ac_ext <<_ACEOF
4837 /* end confdefs.h. */
4839 # include <limits.h>
4841 # include <assert.h>
4845 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4847 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4848 *) ac_try_echo=$ac_try;;
4850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4851 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4853 grep -v '^ *+' conftest.er1 >conftest.err
4855 cat conftest.err >&5
4856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4857 (exit $ac_status); } >/dev/null && {
4858 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4859 test ! -s conftest.err
4863 echo "$as_me: failed program was:" >&5
4864 sed 's/^/| /' conftest.$ac_ext >&5
4866 # Broken: fails on valid input.
4870 rm -f conftest.err conftest.$ac_ext
4872 # OK, works on sane cases. Now check whether nonexistent headers
4873 # can be detected and how.
4874 cat >conftest.$ac_ext <<_ACEOF
4877 cat confdefs.h >>conftest.$ac_ext
4878 cat >>conftest.$ac_ext <<_ACEOF
4879 /* end confdefs.h. */
4880 #include <ac_nonexistent.h>
4882 if { (ac_try="$ac_cpp conftest.$ac_ext"
4884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4885 *) ac_try_echo
=$ac_try;;
4887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4888 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4890 grep -v '^ *+' conftest.er1
>conftest.err
4892 cat conftest.err
>&5
4893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } >/dev
/null
&& {
4895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4896 test ! -s conftest.err
4898 # Broken: success on invalid input.
4901 echo "$as_me: failed program was:" >&5
4902 sed 's/^/| /' conftest.
$ac_ext >&5
4904 # Passes both tests.
4909 rm -f conftest.err conftest.
$ac_ext
4912 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4913 rm -f conftest.err conftest.
$ac_ext
4914 if $ac_preproc_ok; then
4917 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4918 See \`config.log' for more details." >&5
4919 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4920 See \`config.log' for more details." >&2;}
4921 { (exit 1); exit 1; }; }
4925 ac_cpp
='$CPP $CPPFLAGS'
4926 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4927 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4928 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4930 # Find a good install program. We prefer a C program (faster),
4931 # so one script is as good as another. But avoid the broken or
4932 # incompatible versions:
4933 # SysV /etc/install, /usr/sbin/install
4934 # SunOS /usr/etc/install
4935 # IRIX /sbin/install
4937 # AmigaOS /C/install, which installs bootblocks on floppy discs
4938 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4939 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4940 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4941 # OS/2's system install, which has a completely different semantic
4942 # ./install, which can be erroneously created by make from ./install.sh.
4943 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4944 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4945 if test -z "$INSTALL"; then
4946 if test "${ac_cv_path_install+set}" = set; then
4947 echo $ECHO_N "(cached) $ECHO_C" >&6
4949 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4953 test -z "$as_dir" && as_dir
=.
4954 # Account for people who put trailing slashes in PATH elements.
4956 .
/ | .
// |
/cC
/* | \
4957 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4958 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4961 # OSF1 and SCO ODT 3.0 have their own names for install.
4962 # Don't use installbsd from OSF since it installs stuff as root
4964 for ac_prog
in ginstall scoinst
install; do
4965 for ac_exec_ext
in '' $ac_executable_extensions; do
4966 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4967 if test $ac_prog = install &&
4968 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4969 # AIX install. It has an incompatible calling convention.
4971 elif test $ac_prog = install &&
4972 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4973 # program-specific install script used by HP pwplus--don't use.
4976 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4989 if test "${ac_cv_path_install+set}" = set; then
4990 INSTALL
=$ac_cv_path_install
4992 # As a last resort, use the slow shell script. Don't cache a
4993 # value for INSTALL within a source directory, because that will
4994 # break other packages using the cache if that directory is
4995 # removed, or if the value is a relative name.
4996 INSTALL
=$ac_install_sh
4999 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5000 echo "${ECHO_T}$INSTALL" >&6; }
5002 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5003 # It thinks the first close brace ends the variable substitution.
5004 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5006 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5008 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5010 if test "x$RANLIB" = x
; then
5011 if test -n "$ac_tool_prefix"; then
5012 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5013 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5014 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5015 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5016 if test "${ac_cv_prog_RANLIB+set}" = set; then
5017 echo $ECHO_N "(cached) $ECHO_C" >&6
5019 if test -n "$RANLIB"; then
5020 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5026 test -z "$as_dir" && as_dir
=.
5027 for ac_exec_ext
in '' $ac_executable_extensions; do
5028 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5029 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5030 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5039 RANLIB
=$ac_cv_prog_RANLIB
5040 if test -n "$RANLIB"; then
5041 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5042 echo "${ECHO_T}$RANLIB" >&6; }
5044 { echo "$as_me:$LINENO: result: no" >&5
5045 echo "${ECHO_T}no" >&6; }
5050 if test -z "$ac_cv_prog_RANLIB"; then
5051 ac_ct_RANLIB
=$RANLIB
5052 # Extract the first word of "ranlib", so it can be a program name with args.
5053 set dummy ranlib
; ac_word
=$2
5054 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5056 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5057 echo $ECHO_N "(cached) $ECHO_C" >&6
5059 if test -n "$ac_ct_RANLIB"; then
5060 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5066 test -z "$as_dir" && as_dir
=.
5067 for ac_exec_ext
in '' $ac_executable_extensions; do
5068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5069 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5080 if test -n "$ac_ct_RANLIB"; then
5081 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5082 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5084 { echo "$as_me:$LINENO: result: no" >&5
5085 echo "${ECHO_T}no" >&6; }
5088 if test "x$ac_ct_RANLIB" = x
; then
5091 case $cross_compiling:$ac_tool_warned in
5093 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5094 whose name does not start with the host triplet. If you think this
5095 configuration is useful to you, please write to autoconf@gnu.org." >&5
5096 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5097 whose name does not start with the host triplet. If you think this
5098 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5099 ac_tool_warned
=yes ;;
5101 RANLIB
=$ac_ct_RANLIB
5104 RANLIB
="$ac_cv_prog_RANLIB"
5108 # Extract the first word of "install-info", so it can be a program name with args.
5109 set dummy install-info
; ac_word
=$2
5110 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5111 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5112 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5113 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 case $INSTALL_INFO in
5117 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5120 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5124 test -z "$as_dir" && as_dir
=.
5125 for ac_exec_ext
in '' $ac_executable_extensions; do
5126 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5127 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5128 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5139 if test -n "$INSTALL_INFO"; then
5140 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5141 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5143 { echo "$as_me:$LINENO: result: no" >&5
5144 echo "${ECHO_T}no" >&6; }
5148 # Extract the first word of "install-info", so it can be a program name with args.
5149 set dummy install-info
; ac_word
=$2
5150 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5151 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5152 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5153 echo $ECHO_N "(cached) $ECHO_C" >&6
5155 case $INSTALL_INFO in
5157 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5160 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5161 for as_dir
in /usr
/sbin
5164 test -z "$as_dir" && as_dir
=.
5165 for ac_exec_ext
in '' $ac_executable_extensions; do
5166 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5167 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5168 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5178 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5179 if test -n "$INSTALL_INFO"; then
5180 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5181 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5183 { echo "$as_me:$LINENO: result: no" >&5
5184 echo "${ECHO_T}no" >&6; }
5188 # Extract the first word of "install-info", so it can be a program name with args.
5189 set dummy install-info
; ac_word
=$2
5190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5192 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 case $INSTALL_INFO in
5197 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5200 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5204 test -z "$as_dir" && as_dir
=.
5205 for ac_exec_ext
in '' $ac_executable_extensions; do
5206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5207 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5208 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5219 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5220 if test -n "$INSTALL_INFO"; then
5221 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5222 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5224 { echo "$as_me:$LINENO: result: no" >&5
5225 echo "${ECHO_T}no" >&6; }
5229 # Extract the first word of "gzip", so it can be a program name with args.
5230 set dummy
gzip; ac_word
=$2
5231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5233 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5238 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5241 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5245 test -z "$as_dir" && as_dir
=.
5246 for ac_exec_ext
in '' $ac_executable_extensions; do
5247 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5248 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5259 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5260 if test -n "$GZIP_PROG"; then
5261 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5262 echo "${ECHO_T}$GZIP_PROG" >&6; }
5264 { echo "$as_me:$LINENO: result: no" >&5
5265 echo "${ECHO_T}no" >&6; }
5271 ## Need makeinfo >= 4.6 (?) to build the manuals.
5272 # Extract the first word of "makeinfo", so it can be a program name with args.
5273 set dummy makeinfo
; ac_word
=$2
5274 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5275 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5276 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5277 echo $ECHO_N "(cached) $ECHO_C" >&6
5281 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5284 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5288 test -z "$as_dir" && as_dir
=.
5289 for ac_exec_ext
in '' $ac_executable_extensions; do
5290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5291 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5299 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5303 MAKEINFO
=$ac_cv_path_MAKEINFO
5304 if test -n "$MAKEINFO"; then
5305 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5306 echo "${ECHO_T}$MAKEINFO" >&6; }
5308 { echo "$as_me:$LINENO: result: no" >&5
5309 echo "${ECHO_T}no" >&6; }
5313 if test "$MAKEINFO" != "no" && \
5314 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
5318 ## Makeinfo is unusual. For a released Emacs, the manuals are
5319 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5320 ## therefore in the category of "special tools" not normally required, which
5321 ## configure does not have to check for (eg autoconf itself).
5322 ## In a CVS checkout on the other hand, the manuals are not included.
5323 ## So makeinfo is a requirement to build from CVS, and configure
5324 ## should test for it as it does for any other build requirement.
5325 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5326 ## with pre-built manuals, from a CVS checkout.
5327 if test "$MAKEINFO" = "no"; then
5328 if test "x${with_makeinfo}" = "xno"; then
5330 elif ! test -e $srcdir/info
/emacs
; then
5331 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5332 source tree does not seem to have pre-built manuals in the \`info' directory.
5333 Either install a suitable version of makeinfo, or re-run configure
5334 with the \`--without-makeinfo' option to build without the manuals. " >&5
5335 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5336 source tree does not seem to have pre-built manuals in the \`info' directory.
5337 Either install a suitable version of makeinfo, or re-run configure
5338 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5339 { (exit 1); exit 1; }; }
5344 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5346 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5349 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5351 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5355 late_LDFLAGS
=$LDFLAGS
5356 if test "$GCC" = yes; then
5357 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5359 LDFLAGS
="$LDFLAGS -znocombreloc"
5362 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5363 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5364 cat >conftest.
$ac_ext <<_ACEOF
5367 rm -f conftest.
$ac_objext conftest
$ac_exeext
5368 if { (ac_try
="$ac_link"
5370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5371 *) ac_try_echo=$ac_try;;
5373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5374 (eval "$ac_link") 2>conftest.er1
5376 grep -v '^ *+' conftest.er1 >conftest.err
5378 cat conftest.err >&5
5379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5380 (exit $ac_status); } && {
5381 test -z "$ac_c_werror_flag" ||
5382 test ! -s conftest.err
5383 } && test -s conftest$ac_exeext &&
5384 $as_test_x conftest$ac_exeext; then
5385 { echo "$as_me:$LINENO: result: yes" >&5
5386 echo "${ECHO_T}yes" >&6; }
5388 echo "$as_me: failed program was:" >&5
5389 sed 's/^/| /' conftest.$ac_ext >&5
5391 LDFLAGS=$late_LDFLAGS
5392 { echo "$as_me:$LINENO: result: no" >&5
5393 echo "${ECHO_T}no" >&6; }
5396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5397 conftest$ac_exeext conftest.$ac_ext
5399 #### Extract some information from the operating system and machine files.
5401 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5402 - which libraries the lib-src programs will want, and
5403 - whether the GNU malloc routines are usable..." >&5
5404 echo "$as_me: checking the machine- and system-dependent files to find out
5405 - which libraries the lib-src programs will want, and
5406 - whether the GNU malloc routines are usable..." >&6;}
5408 ### First figure out CFLAGS (which we use for running the compiler here)
5409 ### and REAL_CFLAGS (which we use for real compilation).
5410 ### The two are the same except on a few systems, where they are made
5411 ### different to work around various lossages. For example,
5412 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5413 ### as implying static linking.
5415 ### If the CFLAGS env var is specified, we use that value
5416 ### instead of the default.
5418 ### It's not important that this name contain the PID; you can't run
5419 ### two configures in the same directory and have anything work
5421 tempcname="conftest.c"
5424 #include "'${srcdir}'/src/'${opsysfile}'"
5425 #include "'${srcdir}'/src/'${machfile}'"
5426 #ifndef LIBS_MACHINE
5427 #define LIBS_MACHINE
5432 #ifndef C_SWITCH_SYSTEM
5433 #define C_SWITCH_SYSTEM
5435 #ifndef C_SWITCH_MACHINE
5436 #define C_SWITCH_MACHINE
5438 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5439 configure___ c_switch_system=C_SWITCH_SYSTEM
5440 configure___ c_switch_machine=C_SWITCH_MACHINE
5443 #define LIB_X11_LIB -lX11
5446 #ifndef LIBX11_SYSTEM
5447 #define LIBX11_SYSTEM
5449 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5452 configure___ unexec=UNEXEC
5454 configure___ unexec=unexec.o
5457 #ifdef SYSTEM_MALLOC
5458 configure___ system_malloc=yes
5460 configure___ system_malloc=no
5463 #ifdef USE_MMAP_FOR_BUFFERS
5464 configure___ use_mmap_for_buffers=yes
5466 configure___ use_mmap_for_buffers=no
5469 #ifndef C_DEBUG_SWITCH
5470 #define C_DEBUG_SWITCH -g
5473 #ifndef C_OPTIMIZE_SWITCH
5475 #define C_OPTIMIZE_SWITCH -O2
5477 #define C_OPTIMIZE_SWITCH -O
5481 #ifndef C_WARNINGS_SWITCH
5482 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5485 #ifndef LD_SWITCH_MACHINE
5486 #define LD_SWITCH_MACHINE
5489 #ifndef LD_SWITCH_SYSTEM
5490 #define LD_SWITCH_SYSTEM
5493 #ifndef LD_SWITCH_X_SITE_AUX
5494 #define LD_SWITCH_X_SITE_AUX
5497 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5498 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5500 #ifdef THIS_IS_CONFIGURE
5502 /* Get the CFLAGS for tests in configure. */
5504 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5506 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5509 #else /* not THIS_IS_CONFIGURE */
5511 /* Get the CFLAGS for real compilation. */
5513 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5515 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5518 #endif /* not THIS_IS_CONFIGURE */
5521 # The value of CPP is a quoted variable reference, so we need to do this
5522 # to get its actual value...
5523 CPP=`eval "echo $CPP"`
5524 eval `${CPP} -Isrc ${tempcname} \
5525 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5526 if test "x$SPECIFIED_CFLAGS" = x; then
5527 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5528 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5530 REAL_CFLAGS="$CFLAGS"
5534 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5536 ### Make sure subsequent tests use flags consistent with the build flags.
5538 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5539 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5541 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5546 # Check whether --enable-largefile was given.
5547 if test "${enable_largefile+set}" = set; then
5548 enableval=$enable_largefile;
5551 if test "$enable_largefile" != no; then
5553 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5554 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5555 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5556 echo $ECHO_N "(cached) $ECHO_C" >&6
5558 ac_cv_sys_largefile_CC=no
5559 if test "$GCC" != yes; then
5562 # IRIX 6.2 and later do not support large files by default,
5563 # so use the C compiler's -n32 option if that helps.
5564 cat >conftest.$ac_ext <<_ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5570 #include <sys/types.h>
5571 /* Check that off_t can represent 2**63 - 1 correctly.
5572 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5573 since some C++ compilers masquerading as C compilers
5574 incorrectly reject 9223372036854775807. */
5575 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5576 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5577 && LARGE_OFF_T % 2147483647 == 1)
5587 rm -f conftest.$ac_objext
5588 if { (ac_try="$ac_compile"
5590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5591 *) ac_try_echo
=$ac_try;;
5593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5594 (eval "$ac_compile") 2>conftest.er1
5596 grep -v '^ *+' conftest.er1
>conftest.err
5598 cat conftest.err
>&5
5599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5600 (exit $ac_status); } && {
5601 test -z "$ac_c_werror_flag" ||
5602 test ! -s conftest.err
5603 } && test -s conftest.
$ac_objext; then
5606 echo "$as_me: failed program was:" >&5
5607 sed 's/^/| /' conftest.
$ac_ext >&5
5612 rm -f core conftest.err conftest.
$ac_objext
5614 rm -f conftest.
$ac_objext
5615 if { (ac_try
="$ac_compile"
5617 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5618 *) ac_try_echo=$ac_try;;
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5623 grep -v '^ *+' conftest.er1 >conftest.err
5625 cat conftest.err >&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.$ac_objext; then
5631 ac_cv_sys_largefile_CC=' -n32'; break
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.$ac_ext >&5
5639 rm -f core conftest.err conftest.$ac_objext
5643 rm -f conftest.$ac_ext
5646 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5647 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5648 if test "$ac_cv_sys_largefile_CC" != no; then
5649 CC=$CC$ac_cv_sys_largefile_CC
5652 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5653 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5654 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5655 echo $ECHO_N "(cached) $ECHO_C" >&6
5658 cat >conftest.$ac_ext <<_ACEOF
5661 cat confdefs.h >>conftest.$ac_ext
5662 cat >>conftest.$ac_ext <<_ACEOF
5663 /* end confdefs.h. */
5664 #include <sys/types.h>
5665 /* Check that off_t can represent 2**63 - 1 correctly.
5666 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5667 since some C++ compilers masquerading as C compilers
5668 incorrectly reject 9223372036854775807. */
5669 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5670 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5671 && LARGE_OFF_T % 2147483647 == 1)
5681 rm -f conftest.$ac_objext
5682 if { (ac_try="$ac_compile"
5684 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5685 *) ac_try_echo
=$ac_try;;
5687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5688 (eval "$ac_compile") 2>conftest.er1
5690 grep -v '^ *+' conftest.er1
>conftest.err
5692 cat conftest.err
>&5
5693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5694 (exit $ac_status); } && {
5695 test -z "$ac_c_werror_flag" ||
5696 test ! -s conftest.err
5697 } && test -s conftest.
$ac_objext; then
5698 ac_cv_sys_file_offset_bits
=no
; break
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.
$ac_ext >&5
5706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5707 cat >conftest.
$ac_ext <<_ACEOF
5710 cat confdefs.h
>>conftest.
$ac_ext
5711 cat >>conftest.
$ac_ext <<_ACEOF
5712 /* end confdefs.h. */
5713 #define _FILE_OFFSET_BITS 64
5714 #include <sys/types.h>
5715 /* Check that off_t can represent 2**63 - 1 correctly.
5716 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5717 since some C++ compilers masquerading as C compilers
5718 incorrectly reject 9223372036854775807. */
5719 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5720 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5721 && LARGE_OFF_T % 2147483647 == 1)
5731 rm -f conftest.
$ac_objext
5732 if { (ac_try
="$ac_compile"
5734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5735 *) ac_try_echo=$ac_try;;
5737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5738 (eval "$ac_compile") 2>conftest.er1
5740 grep -v '^ *+' conftest.er1 >conftest.err
5742 cat conftest.err >&5
5743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5744 (exit $ac_status); } && {
5745 test -z "$ac_c_werror_flag" ||
5746 test ! -s conftest.err
5747 } && test -s conftest.$ac_objext; then
5748 ac_cv_sys_file_offset_bits=64; break
5750 echo "$as_me: failed program was:" >&5
5751 sed 's/^/| /' conftest.$ac_ext >&5
5756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5757 ac_cv_sys_file_offset_bits=unknown
5761 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5762 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5763 case $ac_cv_sys_file_offset_bits in #(
5766 cat >>confdefs.h <<_ACEOF
5767 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5772 if test $ac_cv_sys_file_offset_bits = unknown; then
5773 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5774 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5775 if test "${ac_cv_sys_large_files+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5779 cat >conftest.$ac_ext <<_ACEOF
5782 cat confdefs.h >>conftest.$ac_ext
5783 cat >>conftest.$ac_ext <<_ACEOF
5784 /* end confdefs.h. */
5785 #include <sys/types.h>
5786 /* Check that off_t can represent 2**63 - 1 correctly.
5787 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5788 since some C++ compilers masquerading as C compilers
5789 incorrectly reject 9223372036854775807. */
5790 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5791 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5792 && LARGE_OFF_T % 2147483647 == 1)
5802 rm -f conftest.$ac_objext
5803 if { (ac_try="$ac_compile"
5805 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5806 *) ac_try_echo
=$ac_try;;
5808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5809 (eval "$ac_compile") 2>conftest.er1
5811 grep -v '^ *+' conftest.er1
>conftest.err
5813 cat conftest.err
>&5
5814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815 (exit $ac_status); } && {
5816 test -z "$ac_c_werror_flag" ||
5817 test ! -s conftest.err
5818 } && test -s conftest.
$ac_objext; then
5819 ac_cv_sys_large_files
=no
; break
5821 echo "$as_me: failed program was:" >&5
5822 sed 's/^/| /' conftest.
$ac_ext >&5
5827 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5828 cat >conftest.
$ac_ext <<_ACEOF
5831 cat confdefs.h
>>conftest.
$ac_ext
5832 cat >>conftest.
$ac_ext <<_ACEOF
5833 /* end confdefs.h. */
5834 #define _LARGE_FILES 1
5835 #include <sys/types.h>
5836 /* Check that off_t can represent 2**63 - 1 correctly.
5837 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5838 since some C++ compilers masquerading as C compilers
5839 incorrectly reject 9223372036854775807. */
5840 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5841 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5842 && LARGE_OFF_T % 2147483647 == 1)
5852 rm -f conftest.
$ac_objext
5853 if { (ac_try
="$ac_compile"
5855 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5856 *) ac_try_echo=$ac_try;;
5858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5859 (eval "$ac_compile") 2>conftest.er1
5861 grep -v '^ *+' conftest.er1 >conftest.err
5863 cat conftest.err >&5
5864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5865 (exit $ac_status); } && {
5866 test -z "$ac_c_werror_flag" ||
5867 test ! -s conftest.err
5868 } && test -s conftest.$ac_objext; then
5869 ac_cv_sys_large_files=1; break
5871 echo "$as_me: failed program was:" >&5
5872 sed 's/^/| /' conftest.$ac_ext >&5
5877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5878 ac_cv_sys_large_files=unknown
5882 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5883 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5884 case $ac_cv_sys_large_files in #(
5887 cat >>confdefs.h <<_ACEOF
5888 #define _LARGE_FILES $ac_cv_sys_large_files
5898 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5899 ### be located in either /usr/lib64 or /usr/lib.
5900 case "${canonical}" in
5901 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5902 if test -d /usr/lib64; then
5904 cat >>confdefs.h <<\_ACEOF
5905 #define HAVE_LIB64_DIR 1
5914 if test "${with_sound}" != "no"; then
5915 # Sound support for GNU/Linux and the free BSDs.
5919 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5921 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5922 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5926 echo $ECHO_N "(cached) $ECHO_C" >&6
5928 ac_res=`eval echo '${'$as_ac_Header'}'`
5929 { echo "$as_me:$LINENO: result: $ac_res" >&5
5930 echo "${ECHO_T}$ac_res" >&6; }
5932 # Is the header compilable?
5933 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5934 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5935 cat >conftest.$ac_ext <<_ACEOF
5938 cat confdefs.h >>conftest.$ac_ext
5939 cat >>conftest.$ac_ext <<_ACEOF
5940 /* end confdefs.h. */
5941 $ac_includes_default
5942 #include <$ac_header>
5944 rm -f conftest.$ac_objext
5945 if { (ac_try="$ac_compile"
5947 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5948 *) ac_try_echo
=$ac_try;;
5950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5951 (eval "$ac_compile") 2>conftest.er1
5953 grep -v '^ *+' conftest.er1
>conftest.err
5955 cat conftest.err
>&5
5956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5957 (exit $ac_status); } && {
5958 test -z "$ac_c_werror_flag" ||
5959 test ! -s conftest.err
5960 } && test -s conftest.
$ac_objext; then
5961 ac_header_compiler
=yes
5963 echo "$as_me: failed program was:" >&5
5964 sed 's/^/| /' conftest.
$ac_ext >&5
5966 ac_header_compiler
=no
5969 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5970 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5971 echo "${ECHO_T}$ac_header_compiler" >&6; }
5973 # Is the header present?
5974 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5975 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5976 cat >conftest.
$ac_ext <<_ACEOF
5979 cat confdefs.h
>>conftest.
$ac_ext
5980 cat >>conftest.
$ac_ext <<_ACEOF
5981 /* end confdefs.h. */
5982 #include <$ac_header>
5984 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5987 *) ac_try_echo=$ac_try;;
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5992 grep -v '^ *+' conftest.er1 >conftest.err
5994 cat conftest.err >&5
5995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5996 (exit $ac_status); } >/dev/null && {
5997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5998 test ! -s conftest.err
6000 ac_header_preproc=yes
6002 echo "$as_me: failed program was:" >&5
6003 sed 's/^/| /' conftest.$ac_ext >&5
6005 ac_header_preproc=no
6008 rm -f conftest.err conftest.$ac_ext
6009 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6010 echo "${ECHO_T}$ac_header_preproc" >&6; }
6012 # So? What about this header?
6013 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6015 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6016 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6017 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6018 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6019 ac_header_preproc=yes
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6023 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6024 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6025 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6026 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6027 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6028 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6029 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6030 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6031 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6032 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6033 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6037 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6038 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6039 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6042 eval "$as_ac_Header=\$ac_header_preproc"
6044 ac_res=`eval echo '${'$as_ac_Header'}'`
6045 { echo "$as_me:$LINENO: result: $ac_res" >&5
6046 echo "${ECHO_T}$ac_res" >&6; }
6049 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6050 cat >>confdefs.h <<_ACEOF
6051 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6058 # Emulation library used on NetBSD.
6059 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6060 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6061 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6062 echo $ECHO_N "(cached) $ECHO_C" >&6
6064 ac_check_lib_save_LIBS=$LIBS
6065 LIBS="-lossaudio $LIBS"
6066 cat >conftest.$ac_ext <<_ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6073 /* Override any GCC internal prototype to avoid an error.
6074 Use char because int might match the return type of a GCC
6075 builtin and then its argument prototype would still apply. */
6083 return _oss_ioctl ();
6088 rm -f conftest.$ac_objext conftest$ac_exeext
6089 if { (ac_try="$ac_link"
6091 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6092 *) ac_try_echo
=$ac_try;;
6094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6095 (eval "$ac_link") 2>conftest.er1
6097 grep -v '^ *+' conftest.er1
>conftest.err
6099 cat conftest.err
>&5
6100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6101 (exit $ac_status); } && {
6102 test -z "$ac_c_werror_flag" ||
6103 test ! -s conftest.err
6104 } && test -s conftest
$ac_exeext &&
6105 $as_test_x conftest
$ac_exeext; then
6106 ac_cv_lib_ossaudio__oss_ioctl
=yes
6108 echo "$as_me: failed program was:" >&5
6109 sed 's/^/| /' conftest.
$ac_ext >&5
6111 ac_cv_lib_ossaudio__oss_ioctl
=no
6114 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6115 conftest
$ac_exeext conftest.
$ac_ext
6116 LIBS
=$ac_check_lib_save_LIBS
6118 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6119 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6120 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6129 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6133 # Extract the first word of "pkg-config", so it can be a program name with args.
6134 set dummy pkg-config
; ac_word
=$2
6135 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6137 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6138 echo $ECHO_N "(cached) $ECHO_C" >&6
6142 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6145 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6149 test -z "$as_dir" && as_dir
=.
6150 for ac_exec_ext
in '' $ac_executable_extensions; do
6151 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6152 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6160 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6164 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6165 if test -n "$PKG_CONFIG"; then
6166 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6167 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6169 { echo "$as_me:$LINENO: result: no" >&5
6170 echo "${ECHO_T}no" >&6; }
6175 if test "$PKG_CONFIG" = "no" ; then
6178 PKG_CONFIG_MIN_VERSION
=0.9.0
6179 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6180 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6181 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6183 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6184 { echo "$as_me:$LINENO: result: yes" >&5
6185 echo "${ECHO_T}yes" >&6; }
6188 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6189 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6190 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6191 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6192 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6194 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6195 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6196 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6197 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6198 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6200 { echo "$as_me:$LINENO: result: no" >&5
6201 echo "${ECHO_T}no" >&6; }
6204 ## If we have a custom action on failure, don't print errors, but
6205 ## do set a variable so people can do so.
6206 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6213 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6214 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6218 if test $succeeded = yes; then
6224 if test $HAVE_ALSA = yes; then
6225 SAVE_CFLAGS
="$CFLAGS"
6226 SAVE_LDFLAGS
="$LDFLAGS"
6227 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6228 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6229 cat >conftest.
$ac_ext <<_ACEOF
6232 cat confdefs.h
>>conftest.
$ac_ext
6233 cat >>conftest.
$ac_ext <<_ACEOF
6234 /* end confdefs.h. */
6235 #include <asoundlib.h>
6239 snd_lib_error_set_handler (0);
6244 rm -f conftest.
$ac_objext
6245 if { (ac_try
="$ac_compile"
6247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6248 *) ac_try_echo=$ac_try;;
6250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6251 (eval "$ac_compile") 2>conftest.er1
6253 grep -v '^ *+' conftest.er1 >conftest.err
6255 cat conftest.err >&5
6256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6257 (exit $ac_status); } && {
6258 test -z "$ac_c_werror_flag" ||
6259 test ! -s conftest.err
6260 } && test -s conftest.$ac_objext; then
6261 emacs_alsa_normal=yes
6263 echo "$as_me: failed program was:" >&5
6264 sed 's/^/| /' conftest.$ac_ext >&5
6266 emacs_alsa_normal=no
6269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6270 if test "$emacs_alsa_normal" != yes; then
6271 cat >conftest.$ac_ext <<_ACEOF
6274 cat confdefs.h >>conftest.$ac_ext
6275 cat >>conftest.$ac_ext <<_ACEOF
6276 /* end confdefs.h. */
6277 #include <alsa/asoundlib.h>
6281 snd_lib_error_set_handler (0);
6286 rm -f conftest.$ac_objext
6287 if { (ac_try="$ac_compile"
6289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6290 *) ac_try_echo
=$ac_try;;
6292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6293 (eval "$ac_compile") 2>conftest.er1
6295 grep -v '^ *+' conftest.er1
>conftest.err
6297 cat conftest.err
>&5
6298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6299 (exit $ac_status); } && {
6300 test -z "$ac_c_werror_flag" ||
6301 test ! -s conftest.err
6302 } && test -s conftest.
$ac_objext; then
6303 emacs_alsa_subdir
=yes
6305 echo "$as_me: failed program was:" >&5
6306 sed 's/^/| /' conftest.
$ac_ext >&5
6308 emacs_alsa_subdir
=no
6311 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6312 if test "$emacs_alsa_subdir" != yes; then
6313 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6314 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6315 { (exit 1); exit 1; }; }
6317 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6320 CFLAGS
="$SAVE_CFLAGS"
6321 LDFLAGS
="$SAVE_LDFLAGS"
6322 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6323 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6325 cat >>confdefs.h
<<\_ACEOF
6358 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6359 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6360 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6361 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6364 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6365 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6368 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6369 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 ac_res
=`eval echo '${'$as_ac_Header'}'`
6372 { echo "$as_me:$LINENO: result: $ac_res" >&5
6373 echo "${ECHO_T}$ac_res" >&6; }
6375 # Is the header compilable?
6376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6378 cat >conftest.
$ac_ext <<_ACEOF
6381 cat confdefs.h
>>conftest.
$ac_ext
6382 cat >>conftest.
$ac_ext <<_ACEOF
6383 /* end confdefs.h. */
6384 $ac_includes_default
6385 #include <$ac_header>
6387 rm -f conftest.
$ac_objext
6388 if { (ac_try
="$ac_compile"
6390 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6391 *) ac_try_echo=$ac_try;;
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394 (eval "$ac_compile") 2>conftest.er1
6396 grep -v '^ *+' conftest.er1 >conftest.err
6398 cat conftest.err >&5
6399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400 (exit $ac_status); } && {
6401 test -z "$ac_c_werror_flag" ||
6402 test ! -s conftest.err
6403 } && test -s conftest.$ac_objext; then
6404 ac_header_compiler=yes
6406 echo "$as_me: failed program was:" >&5
6407 sed 's/^/| /' conftest.$ac_ext >&5
6409 ac_header_compiler=no
6412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6414 echo "${ECHO_T}$ac_header_compiler" >&6; }
6416 # Is the header present?
6417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6419 cat >conftest.$ac_ext <<_ACEOF
6422 cat confdefs.h >>conftest.$ac_ext
6423 cat >>conftest.$ac_ext <<_ACEOF
6424 /* end confdefs.h. */
6425 #include <$ac_header>
6427 if { (ac_try="$ac_cpp conftest.$ac_ext"
6429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6430 *) ac_try_echo
=$ac_try;;
6432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6435 grep -v '^ *+' conftest.er1
>conftest.err
6437 cat conftest.err
>&5
6438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6439 (exit $ac_status); } >/dev
/null
&& {
6440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6441 test ! -s conftest.err
6443 ac_header_preproc
=yes
6445 echo "$as_me: failed program was:" >&5
6446 sed 's/^/| /' conftest.
$ac_ext >&5
6448 ac_header_preproc
=no
6451 rm -f conftest.err conftest.
$ac_ext
6452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6453 echo "${ECHO_T}$ac_header_preproc" >&6; }
6455 # So? What about this header?
6456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6462 ac_header_preproc
=yes
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6482 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6483 echo $ECHO_N "(cached) $ECHO_C" >&6
6485 eval "$as_ac_Header=\$ac_header_preproc"
6487 ac_res
=`eval echo '${'$as_ac_Header'}'`
6488 { echo "$as_me:$LINENO: result: $ac_res" >&5
6489 echo "${ECHO_T}$ac_res" >&6; }
6492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6493 cat >>confdefs.h
<<_ACEOF
6494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6502 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6503 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6504 cat >conftest.
$ac_ext <<_ACEOF
6507 cat confdefs.h
>>conftest.
$ac_ext
6508 cat >>conftest.
$ac_ext <<_ACEOF
6509 /* end confdefs.h. */
6510 #include <sys/personality.h>
6514 personality (PER_LINUX32)
6519 rm -f conftest.
$ac_objext
6520 if { (ac_try
="$ac_compile"
6522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6523 *) ac_try_echo=$ac_try;;
6525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6526 (eval "$ac_compile") 2>conftest.er1
6528 grep -v '^ *+' conftest.er1 >conftest.err
6530 cat conftest.err >&5
6531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6532 (exit $ac_status); } && {
6533 test -z "$ac_c_werror_flag" ||
6534 test ! -s conftest.err
6535 } && test -s conftest.$ac_objext; then
6536 emacs_cv_personality_linux32=yes
6538 echo "$as_me: failed program was:" >&5
6539 sed 's/^/| /' conftest.$ac_ext >&5
6541 emacs_cv_personality_linux32=no
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6546 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6548 if test $emacs_cv_personality_linux32 = yes; then
6550 cat >>confdefs.h <<\_ACEOF
6551 #define HAVE_PERSONALITY_LINUX32 1
6557 for ac_header in term.h
6559 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6560 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6561 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6562 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6563 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 cat >conftest.$ac_ext <<_ACEOF
6568 cat confdefs.h >>conftest.$ac_ext
6569 cat >>conftest.$ac_ext <<_ACEOF
6570 /* end confdefs.h. */
6571 #include <$ac_header>
6573 if { (ac_try="$ac_cpp conftest.$ac_ext"
6575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6576 *) ac_try_echo
=$ac_try;;
6578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6581 grep -v '^ *+' conftest.er1
>conftest.err
6583 cat conftest.err
>&5
6584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6585 (exit $ac_status); } >/dev
/null
&& {
6586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6587 test ! -s conftest.err
6589 eval "$as_ac_Header=yes"
6591 echo "$as_me: failed program was:" >&5
6592 sed 's/^/| /' conftest.
$ac_ext >&5
6594 eval "$as_ac_Header=no"
6597 rm -f conftest.err conftest.
$ac_ext
6599 ac_res
=`eval echo '${'$as_ac_Header'}'`
6600 { echo "$as_me:$LINENO: result: $ac_res" >&5
6601 echo "${ECHO_T}$ac_res" >&6; }
6602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6603 cat >>confdefs.h
<<_ACEOF
6604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6611 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6612 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6613 if test "${ac_cv_header_stdc+set}" = set; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 cat >conftest.
$ac_ext <<_ACEOF
6619 cat confdefs.h
>>conftest.
$ac_ext
6620 cat >>conftest.
$ac_ext <<_ACEOF
6621 /* end confdefs.h. */
6635 rm -f conftest.
$ac_objext
6636 if { (ac_try
="$ac_compile"
6638 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6639 *) ac_try_echo=$ac_try;;
6641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6642 (eval "$ac_compile") 2>conftest.er1
6644 grep -v '^ *+' conftest.er1 >conftest.err
6646 cat conftest.err >&5
6647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6648 (exit $ac_status); } && {
6649 test -z "$ac_c_werror_flag" ||
6650 test ! -s conftest.err
6651 } && test -s conftest.$ac_objext; then
6652 ac_cv_header_stdc=yes
6654 echo "$as_me: failed program was:" >&5
6655 sed 's/^/| /' conftest.$ac_ext >&5
6657 ac_cv_header_stdc=no
6660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 if test $ac_cv_header_stdc = yes; then
6663 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6664 cat >conftest.$ac_ext <<_ACEOF
6667 cat confdefs.h >>conftest.$ac_ext
6668 cat >>conftest.$ac_ext <<_ACEOF
6669 /* end confdefs.h. */
6673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6674 $EGREP "memchr" >/dev/null 2>&1; then
6677 ac_cv_header_stdc=no
6683 if test $ac_cv_header_stdc = yes; then
6684 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6685 cat >conftest.$ac_ext <<_ACEOF
6688 cat confdefs.h >>conftest.$ac_ext
6689 cat >>conftest.$ac_ext <<_ACEOF
6690 /* end confdefs.h. */
6694 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6695 $EGREP "free" >/dev/null 2>&1; then
6698 ac_cv_header_stdc=no
6704 if test $ac_cv_header_stdc = yes; then
6705 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6706 if test "$cross_compiling" = yes; then
6709 cat >conftest.$ac_ext <<_ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6717 #if ((' ' & 0x0FF) == 0x020)
6718 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6719 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6721 # define ISLOWER(c) \
6722 (('a' <= (c) && (c) <= 'i') \
6723 || ('j' <= (c) && (c) <= 'r') \
6724 || ('s' <= (c) && (c) <= 'z'))
6725 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6728 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6733 for (i = 0; i < 256; i++)
6734 if (XOR (islower (i), ISLOWER (i))
6735 || toupper (i) != TOUPPER (i))
6740 rm -f conftest$ac_exeext
6741 if { (ac_try="$ac_link"
6743 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6744 *) ac_try_echo
=$ac_try;;
6746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6747 (eval "$ac_link") 2>&5
6749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6750 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6751 { (case "(($ac_try" in
6752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6753 *) ac_try_echo=$ac_try;;
6755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6756 (eval "$ac_try") 2>&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); }; }; then
6762 echo "$as_me: program exited with status $ac_status" >&5
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6767 ac_cv_header_stdc=no
6769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6775 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6776 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6777 if test $ac_cv_header_stdc = yes; then
6779 cat >>confdefs.h <<\_ACEOF
6780 #define STDC_HEADERS 1
6785 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6786 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6787 if test "${ac_cv_header_time+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6790 cat >conftest.$ac_ext <<_ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6796 #include <sys/types.h>
6797 #include <sys/time.h>
6803 if ((struct tm *) 0)
6809 rm -f conftest.$ac_objext
6810 if { (ac_try="$ac_compile"
6812 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6813 *) ac_try_echo
=$ac_try;;
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_compile") 2>conftest.er1
6818 grep -v '^ *+' conftest.er1
>conftest.err
6820 cat conftest.err
>&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && {
6823 test -z "$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 } && test -s conftest.
$ac_objext; then
6826 ac_cv_header_time
=yes
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.
$ac_ext >&5
6831 ac_cv_header_time
=no
6834 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6836 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6837 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6838 if test $ac_cv_header_time = yes; then
6840 cat >>confdefs.h
<<\_ACEOF
6841 #define TIME_WITH_SYS_TIME 1
6846 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6847 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6848 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6849 echo $ECHO_N "(cached) $ECHO_C" >&6
6851 cat >conftest.
$ac_ext <<_ACEOF
6854 cat confdefs.h
>>conftest.
$ac_ext
6855 cat >>conftest.
$ac_ext <<_ACEOF
6856 /* end confdefs.h. */
6857 $ac_includes_default
6869 rm -f conftest.
$ac_objext
6870 if { (ac_try
="$ac_compile"
6872 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6873 *) ac_try_echo=$ac_try;;
6875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6876 (eval "$ac_compile") 2>conftest.er1
6878 grep -v '^ *+' conftest.er1 >conftest.err
6880 cat conftest.err >&5
6881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6882 (exit $ac_status); } && {
6883 test -z "$ac_c_werror_flag" ||
6884 test ! -s conftest.err
6885 } && test -s conftest.$ac_objext; then
6886 ac_cv_have_decl_sys_siglist=yes
6888 echo "$as_me: failed program was:" >&5
6889 sed 's/^/| /' conftest.$ac_ext >&5
6891 ac_cv_have_decl_sys_siglist=no
6894 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6896 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6897 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6898 if test $ac_cv_have_decl_sys_siglist = yes; then
6900 cat >>confdefs.h <<_ACEOF
6901 #define HAVE_DECL_SYS_SIGLIST 1
6906 cat >>confdefs.h <<_ACEOF
6907 #define HAVE_DECL_SYS_SIGLIST 0
6914 if test $ac_cv_have_decl_sys_siglist != yes; then
6915 # For Tru64, at least:
6916 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6917 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6918 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 cat >conftest.$ac_ext <<_ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 $ac_includes_default
6931 #ifndef __sys_siglist
6932 (void) __sys_siglist;
6939 rm -f conftest.$ac_objext
6940 if { (ac_try="$ac_compile"
6942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6943 *) ac_try_echo
=$ac_try;;
6945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6946 (eval "$ac_compile") 2>conftest.er1
6948 grep -v '^ *+' conftest.er1
>conftest.err
6950 cat conftest.err
>&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && {
6953 test -z "$ac_c_werror_flag" ||
6954 test ! -s conftest.err
6955 } && test -s conftest.
$ac_objext; then
6956 ac_cv_have_decl___sys_siglist
=yes
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.
$ac_ext >&5
6961 ac_cv_have_decl___sys_siglist
=no
6964 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6966 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6967 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6968 if test $ac_cv_have_decl___sys_siglist = yes; then
6970 cat >>confdefs.h
<<_ACEOF
6971 #define HAVE_DECL___SYS_SIGLIST 1
6976 cat >>confdefs.h
<<_ACEOF
6977 #define HAVE_DECL___SYS_SIGLIST 0
6984 if test $ac_cv_have_decl___sys_siglist = yes; then
6986 cat >>confdefs.h
<<\_ACEOF
6987 #define sys_siglist __sys_siglist
6992 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6993 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6994 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6995 echo $ECHO_N "(cached) $ECHO_C" >&6
6997 cat >conftest.
$ac_ext <<_ACEOF
7000 cat confdefs.h
>>conftest.
$ac_ext
7001 cat >>conftest.
$ac_ext <<_ACEOF
7002 /* end confdefs.h. */
7003 #include <sys/types.h>
7004 #include <sys/wait.h>
7006 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7009 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7017 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7022 rm -f conftest.
$ac_objext
7023 if { (ac_try
="$ac_compile"
7025 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7026 *) ac_try_echo=$ac_try;;
7028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7029 (eval "$ac_compile") 2>conftest.er1
7031 grep -v '^ *+' conftest.er1 >conftest.err
7033 cat conftest.err >&5
7034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7035 (exit $ac_status); } && {
7036 test -z "$ac_c_werror_flag" ||
7037 test ! -s conftest.err
7038 } && test -s conftest.$ac_objext; then
7039 ac_cv_header_sys_wait_h=yes
7041 echo "$as_me: failed program was:" >&5
7042 sed 's/^/| /' conftest.$ac_ext >&5
7044 ac_cv_header_sys_wait_h=no
7047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7049 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7050 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7051 if test $ac_cv_header_sys_wait_h = yes; then
7053 cat >>confdefs.h <<\_ACEOF
7054 #define HAVE_SYS_WAIT_H 1
7060 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7061 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7062 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7063 echo $ECHO_N "(cached) $ECHO_C" >&6
7065 cat >conftest.$ac_ext <<_ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7071 #ifdef TIME_WITH_SYS_TIME
7072 #include <sys/time.h>
7075 #ifdef HAVE_SYS_TIME_H
7076 #include <sys/time.h>
7087 static struct utimbuf x; x.actime = x.modtime;
7092 rm -f conftest.$ac_objext
7093 if { (ac_try="$ac_compile"
7095 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7096 *) ac_try_echo
=$ac_try;;
7098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7099 (eval "$ac_compile") 2>conftest.er1
7101 grep -v '^ *+' conftest.er1
>conftest.err
7103 cat conftest.err
>&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } && {
7106 test -z "$ac_c_werror_flag" ||
7107 test ! -s conftest.err
7108 } && test -s conftest.
$ac_objext; then
7109 emacs_cv_struct_utimbuf
=yes
7111 echo "$as_me: failed program was:" >&5
7112 sed 's/^/| /' conftest.
$ac_ext >&5
7114 emacs_cv_struct_utimbuf
=no
7117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7119 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7120 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7121 if test $emacs_cv_struct_utimbuf = yes; then
7123 cat >>confdefs.h
<<\_ACEOF
7124 #define HAVE_STRUCT_UTIMBUF 1
7129 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7130 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7131 if test "${ac_cv_type_signal+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 cat >conftest.
$ac_ext <<_ACEOF
7137 cat confdefs.h
>>conftest.
$ac_ext
7138 cat >>conftest.
$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7140 #include <sys/types.h>
7146 return *(signal (0, 0)) (0) == 1;
7151 rm -f conftest.
$ac_objext
7152 if { (ac_try
="$ac_compile"
7154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7155 *) ac_try_echo=$ac_try;;
7157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7158 (eval "$ac_compile") 2>conftest.er1
7160 grep -v '^ *+' conftest.er1 >conftest.err
7162 cat conftest.err >&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } && {
7165 test -z "$ac_c_werror_flag" ||
7166 test ! -s conftest.err
7167 } && test -s conftest.$ac_objext; then
7168 ac_cv_type_signal=int
7170 echo "$as_me: failed program was:" >&5
7171 sed 's/^/| /' conftest.$ac_ext >&5
7173 ac_cv_type_signal=void
7176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7178 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7179 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7181 cat >>confdefs.h <<_ACEOF
7182 #define RETSIGTYPE $ac_cv_type_signal
7187 { echo "$as_me:$LINENO: checking for speed_t" >&5
7188 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7189 if test "${emacs_cv_speed_t+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7192 cat >conftest.$ac_ext <<_ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7198 #include <termios.h>
7207 rm -f conftest.$ac_objext
7208 if { (ac_try="$ac_compile"
7210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7211 *) ac_try_echo
=$ac_try;;
7213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7214 (eval "$ac_compile") 2>conftest.er1
7216 grep -v '^ *+' conftest.er1
>conftest.err
7218 cat conftest.err
>&5
7219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7220 (exit $ac_status); } && {
7221 test -z "$ac_c_werror_flag" ||
7222 test ! -s conftest.err
7223 } && test -s conftest.
$ac_objext; then
7224 emacs_cv_speed_t
=yes
7226 echo "$as_me: failed program was:" >&5
7227 sed 's/^/| /' conftest.
$ac_ext >&5
7232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7234 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7235 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7236 if test $emacs_cv_speed_t = yes; then
7238 cat >>confdefs.h
<<\_ACEOF
7239 #define HAVE_SPEED_T 1
7244 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7245 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7246 if test "${emacs_cv_struct_timeval+set}" = set; then
7247 echo $ECHO_N "(cached) $ECHO_C" >&6
7249 cat >conftest.
$ac_ext <<_ACEOF
7252 cat confdefs.h
>>conftest.
$ac_ext
7253 cat >>conftest.
$ac_ext <<_ACEOF
7254 /* end confdefs.h. */
7255 #ifdef TIME_WITH_SYS_TIME
7256 #include <sys/time.h>
7259 #ifdef HAVE_SYS_TIME_H
7260 #include <sys/time.h>
7268 static struct timeval x; x.tv_sec = x.tv_usec;
7273 rm -f conftest.
$ac_objext
7274 if { (ac_try
="$ac_compile"
7276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7277 *) ac_try_echo=$ac_try;;
7279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7280 (eval "$ac_compile") 2>conftest.er1
7282 grep -v '^ *+' conftest.er1 >conftest.err
7284 cat conftest.err >&5
7285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7286 (exit $ac_status); } && {
7287 test -z "$ac_c_werror_flag" ||
7288 test ! -s conftest.err
7289 } && test -s conftest.$ac_objext; then
7290 emacs_cv_struct_timeval=yes
7292 echo "$as_me: failed program was:" >&5
7293 sed 's/^/| /' conftest.$ac_ext >&5
7295 emacs_cv_struct_timeval=no
7298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7301 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7302 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7303 if test $emacs_cv_struct_timeval = yes; then
7305 cat >>confdefs.h <<\_ACEOF
7306 #define HAVE_TIMEVAL 1
7311 { echo "$as_me:$LINENO: checking for struct exception" >&5
7312 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7313 if test "${emacs_cv_struct_exception+set}" = set; then
7314 echo $ECHO_N "(cached) $ECHO_C" >&6
7316 cat >conftest.$ac_ext <<_ACEOF
7319 cat confdefs.h >>conftest.$ac_ext
7320 cat >>conftest.$ac_ext <<_ACEOF
7321 /* end confdefs.h. */
7326 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7331 rm -f conftest.$ac_objext
7332 if { (ac_try="$ac_compile"
7334 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7335 *) ac_try_echo
=$ac_try;;
7337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338 (eval "$ac_compile") 2>conftest.er1
7340 grep -v '^ *+' conftest.er1
>conftest.err
7342 cat conftest.err
>&5
7343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7344 (exit $ac_status); } && {
7345 test -z "$ac_c_werror_flag" ||
7346 test ! -s conftest.err
7347 } && test -s conftest.
$ac_objext; then
7348 emacs_cv_struct_exception
=yes
7350 echo "$as_me: failed program was:" >&5
7351 sed 's/^/| /' conftest.
$ac_ext >&5
7353 emacs_cv_struct_exception
=no
7356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7358 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7359 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7360 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7361 if test $emacs_cv_struct_exception != yes; then
7363 cat >>confdefs.h
<<\_ACEOF
7364 #define NO_MATHERR 1
7370 for ac_header
in sys
/socket.h
7372 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7373 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7376 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7377 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 ac_res
=`eval echo '${'$as_ac_Header'}'`
7380 { echo "$as_me:$LINENO: result: $ac_res" >&5
7381 echo "${ECHO_T}$ac_res" >&6; }
7383 # Is the header compilable?
7384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7386 cat >conftest.
$ac_ext <<_ACEOF
7389 cat confdefs.h
>>conftest.
$ac_ext
7390 cat >>conftest.
$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 $ac_includes_default
7393 #include <$ac_header>
7395 rm -f conftest.
$ac_objext
7396 if { (ac_try
="$ac_compile"
7398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7399 *) ac_try_echo=$ac_try;;
7401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7402 (eval "$ac_compile") 2>conftest.er1
7404 grep -v '^ *+' conftest.er1 >conftest.err
7406 cat conftest.err >&5
7407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7408 (exit $ac_status); } && {
7409 test -z "$ac_c_werror_flag" ||
7410 test ! -s conftest.err
7411 } && test -s conftest.$ac_objext; then
7412 ac_header_compiler=yes
7414 echo "$as_me: failed program was:" >&5
7415 sed 's/^/| /' conftest.$ac_ext >&5
7417 ac_header_compiler=no
7420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7422 echo "${ECHO_T}$ac_header_compiler" >&6; }
7424 # Is the header present?
7425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7427 cat >conftest.$ac_ext <<_ACEOF
7430 cat confdefs.h >>conftest.$ac_ext
7431 cat >>conftest.$ac_ext <<_ACEOF
7432 /* end confdefs.h. */
7433 #include <$ac_header>
7435 if { (ac_try="$ac_cpp conftest.$ac_ext"
7437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7438 *) ac_try_echo
=$ac_try;;
7440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7443 grep -v '^ *+' conftest.er1
>conftest.err
7445 cat conftest.err
>&5
7446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7447 (exit $ac_status); } >/dev
/null
&& {
7448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7449 test ! -s conftest.err
7451 ac_header_preproc
=yes
7453 echo "$as_me: failed program was:" >&5
7454 sed 's/^/| /' conftest.
$ac_ext >&5
7456 ac_header_preproc
=no
7459 rm -f conftest.err conftest.
$ac_ext
7460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7461 echo "${ECHO_T}$ac_header_preproc" >&6; }
7463 # So? What about this header?
7464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7470 ac_header_preproc
=yes
7473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7490 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 eval "$as_ac_Header=\$ac_header_preproc"
7495 ac_res
=`eval echo '${'$as_ac_Header'}'`
7496 { echo "$as_me:$LINENO: result: $ac_res" >&5
7497 echo "${ECHO_T}$ac_res" >&6; }
7500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7501 cat >>confdefs.h
<<_ACEOF
7502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7510 for ac_header
in net
/if.h
7512 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7515 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7516 echo $ECHO_N "(cached) $ECHO_C" >&6
7518 cat >conftest.
$ac_ext <<_ACEOF
7521 cat confdefs.h
>>conftest.
$ac_ext
7522 cat >>conftest.
$ac_ext <<_ACEOF
7523 /* end confdefs.h. */
7524 $ac_includes_default
7525 #if HAVE_SYS_SOCKET_H
7526 #include <sys/socket.h>
7529 #include <$ac_header>
7531 rm -f conftest.
$ac_objext
7532 if { (ac_try
="$ac_compile"
7534 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7535 *) ac_try_echo=$ac_try;;
7537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7538 (eval "$ac_compile") 2>conftest.er1
7540 grep -v '^ *+' conftest.er1 >conftest.err
7542 cat conftest.err >&5
7543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7544 (exit $ac_status); } && {
7545 test -z "$ac_c_werror_flag" ||
7546 test ! -s conftest.err
7547 } && test -s conftest.$ac_objext; then
7548 eval "$as_ac_Header=yes"
7550 echo "$as_me: failed program was:" >&5
7551 sed 's/^/| /' conftest.$ac_ext >&5
7553 eval "$as_ac_Header=no"
7556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 ac_res=`eval echo '${'$as_ac_Header'}'`
7559 { echo "$as_me:$LINENO: result: $ac_res" >&5
7560 echo "${ECHO_T}$ac_res" >&6; }
7561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7562 cat >>confdefs.h <<_ACEOF
7563 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7571 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7572 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7573 if test "${ac_cv_struct_tm+set}" = set; then
7574 echo $ECHO_N "(cached) $ECHO_C" >&6
7576 cat >conftest.$ac_ext <<_ACEOF
7579 cat confdefs.h >>conftest.$ac_ext
7580 cat >>conftest.$ac_ext <<_ACEOF
7581 /* end confdefs.h. */
7582 #include <sys/types.h>
7589 int *p = &tm.tm_sec;
7595 rm -f conftest.$ac_objext
7596 if { (ac_try="$ac_compile"
7598 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7599 *) ac_try_echo
=$ac_try;;
7601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7602 (eval "$ac_compile") 2>conftest.er1
7604 grep -v '^ *+' conftest.er1
>conftest.err
7606 cat conftest.err
>&5
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } && {
7609 test -z "$ac_c_werror_flag" ||
7610 test ! -s conftest.err
7611 } && test -s conftest.
$ac_objext; then
7612 ac_cv_struct_tm
=time.h
7614 echo "$as_me: failed program was:" >&5
7615 sed 's/^/| /' conftest.
$ac_ext >&5
7617 ac_cv_struct_tm
=sys
/time.h
7620 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7622 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7623 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7624 if test $ac_cv_struct_tm = sys
/time.h
; then
7626 cat >>confdefs.h
<<\_ACEOF
7627 #define TM_IN_SYS_TIME 1
7632 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7633 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7634 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7635 echo $ECHO_N "(cached) $ECHO_C" >&6
7637 cat >conftest.
$ac_ext <<_ACEOF
7640 cat confdefs.h
>>conftest.
$ac_ext
7641 cat >>conftest.
$ac_ext <<_ACEOF
7642 /* end confdefs.h. */
7643 #include <sys/types.h>
7644 #include <$ac_cv_struct_tm>
7650 static struct tm ac_aggr;
7651 if (ac_aggr.tm_zone)
7657 rm -f conftest.
$ac_objext
7658 if { (ac_try
="$ac_compile"
7660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7661 *) ac_try_echo=$ac_try;;
7663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7664 (eval "$ac_compile") 2>conftest.er1
7666 grep -v '^ *+' conftest.er1 >conftest.err
7668 cat conftest.err >&5
7669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7670 (exit $ac_status); } && {
7671 test -z "$ac_c_werror_flag" ||
7672 test ! -s conftest.err
7673 } && test -s conftest.$ac_objext; then
7674 ac_cv_member_struct_tm_tm_zone=yes
7676 echo "$as_me: failed program was:" >&5
7677 sed 's/^/| /' conftest.$ac_ext >&5
7679 cat >conftest.$ac_ext <<_ACEOF
7682 cat confdefs.h >>conftest.$ac_ext
7683 cat >>conftest.$ac_ext <<_ACEOF
7684 /* end confdefs.h. */
7685 #include <sys/types.h>
7686 #include <$ac_cv_struct_tm>
7692 static struct tm ac_aggr;
7693 if (sizeof ac_aggr.tm_zone)
7699 rm -f conftest.$ac_objext
7700 if { (ac_try="$ac_compile"
7702 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7703 *) ac_try_echo
=$ac_try;;
7705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7706 (eval "$ac_compile") 2>conftest.er1
7708 grep -v '^ *+' conftest.er1
>conftest.err
7710 cat conftest.err
>&5
7711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7712 (exit $ac_status); } && {
7713 test -z "$ac_c_werror_flag" ||
7714 test ! -s conftest.err
7715 } && test -s conftest.
$ac_objext; then
7716 ac_cv_member_struct_tm_tm_zone
=yes
7718 echo "$as_me: failed program was:" >&5
7719 sed 's/^/| /' conftest.
$ac_ext >&5
7721 ac_cv_member_struct_tm_tm_zone
=no
7724 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7727 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7729 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7730 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7731 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7733 cat >>confdefs.h
<<_ACEOF
7734 #define HAVE_STRUCT_TM_TM_ZONE 1
7740 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7742 cat >>confdefs.h
<<\_ACEOF
7743 #define HAVE_TM_ZONE 1
7747 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7748 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7749 if test "${ac_cv_have_decl_tzname+set}" = set; then
7750 echo $ECHO_N "(cached) $ECHO_C" >&6
7752 cat >conftest.
$ac_ext <<_ACEOF
7755 cat confdefs.h
>>conftest.
$ac_ext
7756 cat >>conftest.
$ac_ext <<_ACEOF
7757 /* end confdefs.h. */
7771 rm -f conftest.
$ac_objext
7772 if { (ac_try
="$ac_compile"
7774 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7775 *) ac_try_echo=$ac_try;;
7777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7778 (eval "$ac_compile") 2>conftest.er1
7780 grep -v '^ *+' conftest.er1 >conftest.err
7782 cat conftest.err >&5
7783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7784 (exit $ac_status); } && {
7785 test -z "$ac_c_werror_flag" ||
7786 test ! -s conftest.err
7787 } && test -s conftest.$ac_objext; then
7788 ac_cv_have_decl_tzname=yes
7790 echo "$as_me: failed program was:" >&5
7791 sed 's/^/| /' conftest.$ac_ext >&5
7793 ac_cv_have_decl_tzname=no
7796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7799 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7800 if test $ac_cv_have_decl_tzname = yes; then
7802 cat >>confdefs.h <<_ACEOF
7803 #define HAVE_DECL_TZNAME 1
7808 cat >>confdefs.h <<_ACEOF
7809 #define HAVE_DECL_TZNAME 0
7816 { echo "$as_me:$LINENO: checking for tzname" >&5
7817 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7818 if test "${ac_cv_var_tzname+set}" = set; then
7819 echo $ECHO_N "(cached) $ECHO_C" >&6
7821 cat >conftest.$ac_ext <<_ACEOF
7824 cat confdefs.h >>conftest.$ac_ext
7825 cat >>conftest.$ac_ext <<_ACEOF
7826 /* end confdefs.h. */
7828 #if !HAVE_DECL_TZNAME
7829 extern char *tzname[];
7835 return tzname[0][0];
7840 rm -f conftest.$ac_objext conftest$ac_exeext
7841 if { (ac_try="$ac_link"
7843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7844 *) ac_try_echo
=$ac_try;;
7846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7847 (eval "$ac_link") 2>conftest.er1
7849 grep -v '^ *+' conftest.er1
>conftest.err
7851 cat conftest.err
>&5
7852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7853 (exit $ac_status); } && {
7854 test -z "$ac_c_werror_flag" ||
7855 test ! -s conftest.err
7856 } && test -s conftest
$ac_exeext &&
7857 $as_test_x conftest
$ac_exeext; then
7858 ac_cv_var_tzname
=yes
7860 echo "$as_me: failed program was:" >&5
7861 sed 's/^/| /' conftest.
$ac_ext >&5
7866 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7867 conftest
$ac_exeext conftest.
$ac_ext
7869 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7870 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7871 if test $ac_cv_var_tzname = yes; then
7873 cat >>confdefs.h
<<\_ACEOF
7874 #define HAVE_TZNAME 1
7880 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7881 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7882 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7883 echo $ECHO_N "(cached) $ECHO_C" >&6
7885 cat >conftest.
$ac_ext <<_ACEOF
7888 cat confdefs.h
>>conftest.
$ac_ext
7889 cat >>conftest.
$ac_ext <<_ACEOF
7890 /* end confdefs.h. */
7896 static struct tm ac_aggr;
7897 if (ac_aggr.tm_gmtoff)
7903 rm -f conftest.
$ac_objext
7904 if { (ac_try
="$ac_compile"
7906 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910 (eval "$ac_compile") 2>conftest.er1
7912 grep -v '^ *+' conftest.er1 >conftest.err
7914 cat conftest.err >&5
7915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7916 (exit $ac_status); } && {
7917 test -z "$ac_c_werror_flag" ||
7918 test ! -s conftest.err
7919 } && test -s conftest.$ac_objext; then
7920 ac_cv_member_struct_tm_tm_gmtoff=yes
7922 echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7925 cat >conftest.$ac_ext <<_ACEOF
7928 cat confdefs.h >>conftest.$ac_ext
7929 cat >>conftest.$ac_ext <<_ACEOF
7930 /* end confdefs.h. */
7936 static struct tm ac_aggr;
7937 if (sizeof ac_aggr.tm_gmtoff)
7943 rm -f conftest.$ac_objext
7944 if { (ac_try="$ac_compile"
7946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7947 *) ac_try_echo
=$ac_try;;
7949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7950 (eval "$ac_compile") 2>conftest.er1
7952 grep -v '^ *+' conftest.er1
>conftest.err
7954 cat conftest.err
>&5
7955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7956 (exit $ac_status); } && {
7957 test -z "$ac_c_werror_flag" ||
7958 test ! -s conftest.err
7959 } && test -s conftest.
$ac_objext; then
7960 ac_cv_member_struct_tm_tm_gmtoff
=yes
7962 echo "$as_me: failed program was:" >&5
7963 sed 's/^/| /' conftest.
$ac_ext >&5
7965 ac_cv_member_struct_tm_tm_gmtoff
=no
7968 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7973 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7974 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7975 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7977 cat >>confdefs.h
<<\_ACEOF
7978 #define HAVE_TM_GMTOFF 1
7983 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7984 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7985 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7986 echo $ECHO_N "(cached) $ECHO_C" >&6
7988 cat >conftest.
$ac_ext <<_ACEOF
7991 cat confdefs.h
>>conftest.
$ac_ext
7992 cat >>conftest.
$ac_ext <<_ACEOF
7993 /* end confdefs.h. */
7994 $ac_includes_default
7995 #if HAVE_SYS_SOCKET_H
7996 #include <sys/socket.h>
8005 static struct ifreq ac_aggr;
8006 if (ac_aggr.ifr_flags)
8012 rm -f conftest.
$ac_objext
8013 if { (ac_try
="$ac_compile"
8015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8021 grep -v '^ *+' conftest.er1 >conftest.err
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
8029 ac_cv_member_struct_ifreq_ifr_flags=yes
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8034 cat >conftest.$ac_ext <<_ACEOF
8037 cat confdefs.h >>conftest.$ac_ext
8038 cat >>conftest.$ac_ext <<_ACEOF
8039 /* end confdefs.h. */
8040 $ac_includes_default
8041 #if HAVE_SYS_SOCKET_H
8042 #include <sys/socket.h>
8051 static struct ifreq ac_aggr;
8052 if (sizeof ac_aggr.ifr_flags)
8058 rm -f conftest.$ac_objext
8059 if { (ac_try="$ac_compile"
8061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8062 *) ac_try_echo
=$ac_try;;
8064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8065 (eval "$ac_compile") 2>conftest.er1
8067 grep -v '^ *+' conftest.er1
>conftest.err
8069 cat conftest.err
>&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); } && {
8072 test -z "$ac_c_werror_flag" ||
8073 test ! -s conftest.err
8074 } && test -s conftest.
$ac_objext; then
8075 ac_cv_member_struct_ifreq_ifr_flags
=yes
8077 echo "$as_me: failed program was:" >&5
8078 sed 's/^/| /' conftest.
$ac_ext >&5
8080 ac_cv_member_struct_ifreq_ifr_flags
=no
8083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8086 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8088 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8089 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8090 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8092 cat >>confdefs.h
<<_ACEOF
8093 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8098 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8099 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8100 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8101 echo $ECHO_N "(cached) $ECHO_C" >&6
8103 cat >conftest.
$ac_ext <<_ACEOF
8106 cat confdefs.h
>>conftest.
$ac_ext
8107 cat >>conftest.
$ac_ext <<_ACEOF
8108 /* end confdefs.h. */
8109 $ac_includes_default
8110 #if HAVE_SYS_SOCKET_H
8111 #include <sys/socket.h>
8120 static struct ifreq ac_aggr;
8121 if (ac_aggr.ifr_hwaddr)
8127 rm -f conftest.
$ac_objext
8128 if { (ac_try
="$ac_compile"
8130 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8131 *) ac_try_echo=$ac_try;;
8133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8134 (eval "$ac_compile") 2>conftest.er1
8136 grep -v '^ *+' conftest.er1 >conftest.err
8138 cat conftest.err >&5
8139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8140 (exit $ac_status); } && {
8141 test -z "$ac_c_werror_flag" ||
8142 test ! -s conftest.err
8143 } && test -s conftest.$ac_objext; then
8144 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8146 echo "$as_me: failed program was:" >&5
8147 sed 's/^/| /' conftest.$ac_ext >&5
8149 cat >conftest.$ac_ext <<_ACEOF
8152 cat confdefs.h >>conftest.$ac_ext
8153 cat >>conftest.$ac_ext <<_ACEOF
8154 /* end confdefs.h. */
8155 $ac_includes_default
8156 #if HAVE_SYS_SOCKET_H
8157 #include <sys/socket.h>
8166 static struct ifreq ac_aggr;
8167 if (sizeof ac_aggr.ifr_hwaddr)
8173 rm -f conftest.$ac_objext
8174 if { (ac_try="$ac_compile"
8176 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8177 *) ac_try_echo
=$ac_try;;
8179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8180 (eval "$ac_compile") 2>conftest.er1
8182 grep -v '^ *+' conftest.er1
>conftest.err
8184 cat conftest.err
>&5
8185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8186 (exit $ac_status); } && {
8187 test -z "$ac_c_werror_flag" ||
8188 test ! -s conftest.err
8189 } && test -s conftest.
$ac_objext; then
8190 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8192 echo "$as_me: failed program was:" >&5
8193 sed 's/^/| /' conftest.
$ac_ext >&5
8195 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8198 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8201 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8203 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8204 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8205 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8207 cat >>confdefs.h
<<_ACEOF
8208 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8213 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8214 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8215 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8216 echo $ECHO_N "(cached) $ECHO_C" >&6
8218 cat >conftest.
$ac_ext <<_ACEOF
8221 cat confdefs.h
>>conftest.
$ac_ext
8222 cat >>conftest.
$ac_ext <<_ACEOF
8223 /* end confdefs.h. */
8224 $ac_includes_default
8225 #if HAVE_SYS_SOCKET_H
8226 #include <sys/socket.h>
8235 static struct ifreq ac_aggr;
8236 if (ac_aggr.ifr_netmask)
8242 rm -f conftest.
$ac_objext
8243 if { (ac_try
="$ac_compile"
8245 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8246 *) ac_try_echo=$ac_try;;
8248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8249 (eval "$ac_compile") 2>conftest.er1
8251 grep -v '^ *+' conftest.er1 >conftest.err
8253 cat conftest.err >&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } && {
8256 test -z "$ac_c_werror_flag" ||
8257 test ! -s conftest.err
8258 } && test -s conftest.$ac_objext; then
8259 ac_cv_member_struct_ifreq_ifr_netmask=yes
8261 echo "$as_me: failed program was:" >&5
8262 sed 's/^/| /' conftest.$ac_ext >&5
8264 cat >conftest.$ac_ext <<_ACEOF
8267 cat confdefs.h >>conftest.$ac_ext
8268 cat >>conftest.$ac_ext <<_ACEOF
8269 /* end confdefs.h. */
8270 $ac_includes_default
8271 #if HAVE_SYS_SOCKET_H
8272 #include <sys/socket.h>
8281 static struct ifreq ac_aggr;
8282 if (sizeof ac_aggr.ifr_netmask)
8288 rm -f conftest.$ac_objext
8289 if { (ac_try="$ac_compile"
8291 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8292 *) ac_try_echo
=$ac_try;;
8294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8295 (eval "$ac_compile") 2>conftest.er1
8297 grep -v '^ *+' conftest.er1
>conftest.err
8299 cat conftest.err
>&5
8300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8301 (exit $ac_status); } && {
8302 test -z "$ac_c_werror_flag" ||
8303 test ! -s conftest.err
8304 } && test -s conftest.
$ac_objext; then
8305 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8307 echo "$as_me: failed program was:" >&5
8308 sed 's/^/| /' conftest.
$ac_ext >&5
8310 ac_cv_member_struct_ifreq_ifr_netmask
=no
8313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8318 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8319 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8320 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8322 cat >>confdefs.h
<<_ACEOF
8323 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8328 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8329 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8330 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8331 echo $ECHO_N "(cached) $ECHO_C" >&6
8333 cat >conftest.
$ac_ext <<_ACEOF
8336 cat confdefs.h
>>conftest.
$ac_ext
8337 cat >>conftest.
$ac_ext <<_ACEOF
8338 /* end confdefs.h. */
8339 $ac_includes_default
8340 #if HAVE_SYS_SOCKET_H
8341 #include <sys/socket.h>
8350 static struct ifreq ac_aggr;
8351 if (ac_aggr.ifr_broadaddr)
8357 rm -f conftest.
$ac_objext
8358 if { (ac_try
="$ac_compile"
8360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_compile") 2>conftest.er1
8366 grep -v '^ *+' conftest.er1 >conftest.err
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } && {
8371 test -z "$ac_c_werror_flag" ||
8372 test ! -s conftest.err
8373 } && test -s conftest.$ac_objext; then
8374 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8376 echo "$as_me: failed program was:" >&5
8377 sed 's/^/| /' conftest.$ac_ext >&5
8379 cat >conftest.$ac_ext <<_ACEOF
8382 cat confdefs.h >>conftest.$ac_ext
8383 cat >>conftest.$ac_ext <<_ACEOF
8384 /* end confdefs.h. */
8385 $ac_includes_default
8386 #if HAVE_SYS_SOCKET_H
8387 #include <sys/socket.h>
8396 static struct ifreq ac_aggr;
8397 if (sizeof ac_aggr.ifr_broadaddr)
8403 rm -f conftest.$ac_objext
8404 if { (ac_try="$ac_compile"
8406 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8407 *) ac_try_echo
=$ac_try;;
8409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8410 (eval "$ac_compile") 2>conftest.er1
8412 grep -v '^ *+' conftest.er1
>conftest.err
8414 cat conftest.err
>&5
8415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8416 (exit $ac_status); } && {
8417 test -z "$ac_c_werror_flag" ||
8418 test ! -s conftest.err
8419 } && test -s conftest.
$ac_objext; then
8420 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8422 echo "$as_me: failed program was:" >&5
8423 sed 's/^/| /' conftest.
$ac_ext >&5
8425 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8428 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8433 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8434 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8435 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8437 cat >>confdefs.h
<<_ACEOF
8438 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8443 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8444 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8445 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8446 echo $ECHO_N "(cached) $ECHO_C" >&6
8448 cat >conftest.
$ac_ext <<_ACEOF
8451 cat confdefs.h
>>conftest.
$ac_ext
8452 cat >>conftest.
$ac_ext <<_ACEOF
8453 /* end confdefs.h. */
8454 $ac_includes_default
8455 #if HAVE_SYS_SOCKET_H
8456 #include <sys/socket.h>
8465 static struct ifreq ac_aggr;
8466 if (ac_aggr.ifr_addr)
8472 rm -f conftest.
$ac_objext
8473 if { (ac_try
="$ac_compile"
8475 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8476 *) ac_try_echo=$ac_try;;
8478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8479 (eval "$ac_compile") 2>conftest.er1
8481 grep -v '^ *+' conftest.er1 >conftest.err
8483 cat conftest.err >&5
8484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8485 (exit $ac_status); } && {
8486 test -z "$ac_c_werror_flag" ||
8487 test ! -s conftest.err
8488 } && test -s conftest.$ac_objext; then
8489 ac_cv_member_struct_ifreq_ifr_addr=yes
8491 echo "$as_me: failed program was:" >&5
8492 sed 's/^/| /' conftest.$ac_ext >&5
8494 cat >conftest.$ac_ext <<_ACEOF
8497 cat confdefs.h >>conftest.$ac_ext
8498 cat >>conftest.$ac_ext <<_ACEOF
8499 /* end confdefs.h. */
8500 $ac_includes_default
8501 #if HAVE_SYS_SOCKET_H
8502 #include <sys/socket.h>
8511 static struct ifreq ac_aggr;
8512 if (sizeof ac_aggr.ifr_addr)
8518 rm -f conftest.$ac_objext
8519 if { (ac_try="$ac_compile"
8521 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8522 *) ac_try_echo
=$ac_try;;
8524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8525 (eval "$ac_compile") 2>conftest.er1
8527 grep -v '^ *+' conftest.er1
>conftest.err
8529 cat conftest.err
>&5
8530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8531 (exit $ac_status); } && {
8532 test -z "$ac_c_werror_flag" ||
8533 test ! -s conftest.err
8534 } && test -s conftest.
$ac_objext; then
8535 ac_cv_member_struct_ifreq_ifr_addr
=yes
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.
$ac_ext >&5
8540 ac_cv_member_struct_ifreq_ifr_addr
=no
8543 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8546 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8548 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8549 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8550 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8552 cat >>confdefs.h
<<_ACEOF
8553 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8561 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8562 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8563 if test "$ac_cv_prog_cc_c89" != no
; then
8564 { echo "$as_me:$LINENO: result: yes" >&5
8565 echo "${ECHO_T}yes" >&6; }
8567 cat >>confdefs.h
<<\_ACEOF
8568 #define PROTOTYPES 1
8572 cat >>confdefs.h
<<\_ACEOF
8573 #define __PROTOTYPES 1
8577 { echo "$as_me:$LINENO: result: no" >&5
8578 echo "${ECHO_T}no" >&6; }
8581 { echo "$as_me:$LINENO: checking for working volatile" >&5
8582 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8583 if test "${ac_cv_c_volatile+set}" = set; then
8584 echo $ECHO_N "(cached) $ECHO_C" >&6
8586 cat >conftest.
$ac_ext <<_ACEOF
8589 cat confdefs.h
>>conftest.
$ac_ext
8590 cat >>conftest.
$ac_ext <<_ACEOF
8591 /* end confdefs.h. */
8598 int * volatile y = (int *) 0;
8604 rm -f conftest.
$ac_objext
8605 if { (ac_try
="$ac_compile"
8607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8608 *) ac_try_echo=$ac_try;;
8610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8611 (eval "$ac_compile") 2>conftest.er1
8613 grep -v '^ *+' conftest.er1 >conftest.err
8615 cat conftest.err >&5
8616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8617 (exit $ac_status); } && {
8618 test -z "$ac_c_werror_flag" ||
8619 test ! -s conftest.err
8620 } && test -s conftest.$ac_objext; then
8621 ac_cv_c_volatile=yes
8623 echo "$as_me: failed program was:" >&5
8624 sed 's/^/| /' conftest.$ac_ext >&5
8629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8631 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8632 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8633 if test $ac_cv_c_volatile = no; then
8635 cat >>confdefs.h <<\_ACEOF
8641 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8642 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8643 if test "${ac_cv_c_const+set}" = set; then
8644 echo $ECHO_N "(cached) $ECHO_C" >&6
8646 cat >conftest.$ac_ext <<_ACEOF
8649 cat confdefs.h >>conftest.$ac_ext
8650 cat >>conftest.$ac_ext <<_ACEOF
8651 /* end confdefs.h. */
8656 /* FIXME: Include the comments suggested by Paul. */
8658 /* Ultrix mips cc rejects this. */
8659 typedef int charset[2];
8661 /* SunOS 4.1.1 cc rejects this. */
8662 char const *const *pcpcc;
8664 /* NEC SVR4.0.2 mips cc rejects this. */
8665 struct point {int x, y;};
8666 static struct point const zero = {0,0};
8667 /* AIX XL C 1.02.0.0 rejects this.
8668 It does not let you subtract one const X* pointer from another in
8669 an arm of an if-expression whose if-part is not a constant
8671 const char *g = "string";
8672 pcpcc = &g + (g ? g-g : 0);
8673 /* HPUX 7.0 cc rejects these. */
8675 ppc = (char**) pcpcc;
8676 pcpcc = (char const *const *) ppc;
8677 { /* SCO 3.2v4 cc rejects this. */
8679 char const *s = 0 ? (char *) 0 : (char const *) 0;
8684 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8686 const int *foo = &x[0];
8689 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8690 typedef const int *iptr;
8694 { /* AIX XL C 1.02.0.0 rejects this saying
8695 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8696 struct s { int j; const int *ap[3]; };
8697 struct s *b; b->j = 5;
8699 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8703 return !cs[0] && !zero.x;
8710 rm -f conftest.$ac_objext
8711 if { (ac_try="$ac_compile"
8713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8714 *) ac_try_echo
=$ac_try;;
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_compile") 2>conftest.er1
8719 grep -v '^ *+' conftest.er1
>conftest.err
8721 cat conftest.err
>&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } && {
8724 test -z "$ac_c_werror_flag" ||
8725 test ! -s conftest.err
8726 } && test -s conftest.
$ac_objext; then
8729 echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.
$ac_ext >&5
8735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8737 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8738 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8739 if test $ac_cv_c_const = no
; then
8741 cat >>confdefs.h
<<\_ACEOF
8747 { echo "$as_me:$LINENO: checking for void * support" >&5
8748 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8749 if test "${emacs_cv_void_star+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8752 cat >conftest.
$ac_ext <<_ACEOF
8755 cat confdefs.h
>>conftest.
$ac_ext
8756 cat >>conftest.
$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8767 rm -f conftest.
$ac_objext
8768 if { (ac_try
="$ac_compile"
8770 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8771 *) ac_try_echo=$ac_try;;
8773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8774 (eval "$ac_compile") 2>conftest.er1
8776 grep -v '^ *+' conftest.er1 >conftest.err
8778 cat conftest.err >&5
8779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8780 (exit $ac_status); } && {
8781 test -z "$ac_c_werror_flag" ||
8782 test ! -s conftest.err
8783 } && test -s conftest.$ac_objext; then
8784 emacs_cv_void_star=yes
8786 echo "$as_me: failed program was:" >&5
8787 sed 's/^/| /' conftest.$ac_ext >&5
8789 emacs_cv_void_star=no
8792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8794 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8795 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8796 if test $emacs_cv_void_star = yes; then
8797 cat >>confdefs.h <<\_ACEOF
8798 #define POINTER_TYPE void
8802 cat >>confdefs.h <<\_ACEOF
8803 #define POINTER_TYPE char
8812 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8813 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8814 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8815 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8816 echo $ECHO_N "(cached) $ECHO_C" >&6
8818 cat >conftest.make <<\_ACEOF
8821 @echo '@@@%%%=$(MAKE)=@@@%%%'
8823 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8824 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8826 eval ac_cv_prog_make_${ac_make}_set=yes;;
8828 eval ac_cv_prog_make_${ac_make}_set=no;;
8832 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8833 { echo "$as_me:$LINENO: result: yes" >&5
8834 echo "${ECHO_T}yes" >&6; }
8837 { echo "$as_me:$LINENO: result: no" >&5
8838 echo "${ECHO_T}no" >&6; }
8839 SET_MAKE="MAKE=${MAKE-make}"
8843 { echo "$as_me:$LINENO: checking for long file names" >&5
8844 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8845 if test "${ac_cv_sys_long_file_names+set}" = set; then
8846 echo $ECHO_N "(cached) $ECHO_C" >&6
8848 ac_cv_sys_long_file_names=yes
8849 # Test for long file names in all the places we know might matter:
8850 # . the current directory, where building will happen
8851 # $prefix/lib where we will be installing things
8852 # $exec_prefix/lib likewise
8853 # $TMPDIR if set, where it might want to write temporary files
8854 # /tmp where it might want to write temporary files
8857 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8858 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8859 # in the usual case where exec_prefix is '${prefix}'.
8861 . | /* | ?:[\\/]*) ;; #(
8864 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8865 ac_xdir=$ac_dir/cf$$
8866 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8867 ac_tf1=$ac_xdir/conftest9012345
8868 ac_tf2=$ac_xdir/conftest9012346
8869 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8870 ac_cv_sys_long_file_names=no
8871 rm -f -r "$ac_xdir" 2>/dev/null
8872 test $ac_cv_sys_long_file_names = no && break
8875 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8876 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8877 if test $ac_cv_sys_long_file_names = yes; then
8879 cat >>confdefs.h <<\_ACEOF
8880 #define HAVE_LONG_FILE_NAMES 1
8886 #### Choose a window system.
8888 { echo "$as_me:$LINENO: checking for X" >&5
8889 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8892 # Check whether --with-x was given.
8893 if test "${with_x+set}" = set; then
8897 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8898 if test "x$with_x" = xno; then
8899 # The user explicitly disabled X.
8902 case $x_includes,$x_libraries in #(
8903 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8904 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8905 { (exit 1); exit 1; }; };; #(
8906 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8907 echo $ECHO_N "(cached) $ECHO_C" >&6
8909 # One or both of the vars are not set, and there is no cached value.
8910 ac_x_includes=no ac_x_libraries=no
8911 rm -f -r conftest.dir
8912 if mkdir conftest.dir; then
8914 cat >Imakefile <<'_ACEOF'
8916 @echo incroot='${INCROOT}'
8918 @echo usrlibdir='${USRLIBDIR}'
8920 @echo libdir='${LIBDIR}'
8922 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8923 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8924 for ac_var in incroot usrlibdir libdir; do
8925 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8927 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8928 for ac_extension in a so sl; do
8929 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8930 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8931 ac_im_usrlibdir=$ac_im_libdir; break
8934 # Screen out bogus values from the imake configuration. They are
8935 # bogus both because they are the default anyway, and because
8936 # using them would break gcc on systems where it needs fixed includes.
8937 case $ac_im_incroot in
8938 /usr/include) ac_x_includes= ;;
8939 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8941 case $ac_im_usrlibdir in
8943 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8947 rm -f -r conftest.dir
8950 # Standard set of common directories for X headers.
8951 # Check X11 before X11Rn because it is often a symlink to the current release.
8963 /usr/local/X11/include
8964 /usr/local/X11R6/include
8965 /usr/local/X11R5/include
8966 /usr/local/X11R4/include
8968 /usr/local/include/X11
8969 /usr/local/include/X11R6
8970 /usr/local/include/X11R5
8971 /usr/local/include/X11R4
8975 /usr/XFree86/include/X11
8979 /usr/unsupported/include
8981 /usr/local/x11r5/include
8982 /usr/lpp/Xamples/include
8984 /usr/openwin/include
8985 /usr/openwin/share/include'
8987 if test "$ac_x_includes" = no; then
8988 # Guess where to find include files, by looking for Xlib.h.
8989 # First, try using that file with no special directory specified.
8990 cat >conftest.$ac_ext <<_ACEOF
8993 cat confdefs.h >>conftest.$ac_ext
8994 cat >>conftest.$ac_ext <<_ACEOF
8995 /* end confdefs.h. */
8996 #include <X11/Xlib.h>
8998 if { (ac_try="$ac_cpp conftest.$ac_ext"
9000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9001 *) ac_try_echo
=$ac_try;;
9003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9004 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9006 grep -v '^ *+' conftest.er1
>conftest.err
9008 cat conftest.err
>&5
9009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9010 (exit $ac_status); } >/dev
/null
&& {
9011 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9012 test ! -s conftest.err
9014 # We can compile using X headers with no special include directory.
9017 echo "$as_me: failed program was:" >&5
9018 sed 's/^/| /' conftest.
$ac_ext >&5
9020 for ac_dir
in $ac_x_header_dirs; do
9021 if test -r "$ac_dir/X11/Xlib.h"; then
9022 ac_x_includes
=$ac_dir
9028 rm -f conftest.err conftest.
$ac_ext
9029 fi # $ac_x_includes = no
9031 if test "$ac_x_libraries" = no
; then
9032 # Check for the libraries.
9033 # See if we find them without any special options.
9034 # Don't add to $LIBS permanently.
9037 cat >conftest.
$ac_ext <<_ACEOF
9040 cat confdefs.h
>>conftest.
$ac_ext
9041 cat >>conftest.
$ac_ext <<_ACEOF
9042 /* end confdefs.h. */
9043 #include <X11/Xlib.h>
9052 rm -f conftest.
$ac_objext conftest
$ac_exeext
9053 if { (ac_try
="$ac_link"
9055 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9056 *) ac_try_echo=$ac_try;;
9058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9059 (eval "$ac_link") 2>conftest.er1
9061 grep -v '^ *+' conftest.er1 >conftest.err
9063 cat conftest.err >&5
9064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9065 (exit $ac_status); } && {
9066 test -z "$ac_c_werror_flag" ||
9067 test ! -s conftest.err
9068 } && test -s conftest$ac_exeext &&
9069 $as_test_x conftest$ac_exeext; then
9071 # We can link X programs with no special library path.
9074 echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9078 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9080 # Don't even attempt the hair of trying to link an X program!
9081 for ac_extension in a so sl; do
9082 if test -r "$ac_dir/libX11.$ac_extension"; then
9083 ac_x_libraries=$ac_dir
9090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9091 conftest$ac_exeext conftest.$ac_ext
9092 fi # $ac_x_libraries = no
9094 case $ac_x_includes,$ac_x_libraries in #(
9096 # Didn't find X, or a directory has "'" in its name.
9097 ac_cv_have_x="have_x=no";; #(
9099 # Record where we found X for the cache.
9100 ac_cv_have_x="have_x=yes\
9101 ac_x_includes='$ac_x_includes'\
9102 ac_x_libraries='$ac_x_libraries'"
9108 eval "$ac_cv_have_x"
9111 if test "$have_x" != yes; then
9112 { echo "$as_me:$LINENO: result: $have_x" >&5
9113 echo "${ECHO_T}$have_x" >&6; }
9116 # If each of the values was on the command line, it overrides each guess.
9117 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9118 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9119 # Update the cache value to reflect the command line values.
9120 ac_cv_have_x="have_x=yes\
9121 ac_x_includes='$x_includes'\
9122 ac_x_libraries='$x_libraries'"
9123 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9124 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9127 if test "$no_x" = yes; then
9133 ## Workaround for bug in autoconf <= 2.62.
9134 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9135 ## No need to do anything special for these standard directories.
9136 ## This is an experiment, take it out if it causes problems.
9137 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9139 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9143 if test "${x_libraries}" != NONE; then
9144 if test -n "${x_libraries}"; then
9145 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9146 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9148 x_default_search_path=""
9149 x_search_path=${x_libraries}
9150 if test -z "${x_search_path}"; then
9151 x_search_path=/usr/lib
9153 for x_library in `echo ${x_search_path}: | \
9154 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9156 ${x_library}/X11/%L/%T/%N%C%S:\
9157 ${x_library}/X11/%l/%T/%N%C%S:\
9158 ${x_library}/X11/%T/%N%C%S:\
9159 ${x_library}/X11/%L/%T/%N%S:\
9160 ${x_library}/X11/%l/%T/%N%S:\
9161 ${x_library}/X11/%T/%N%S"
9162 if test x"${x_default_search_path}" = x; then
9163 x_default_search_path=${x_search_path}
9165 x_default_search_path="${x_search_path}:${x_default_search_path}"
9169 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9170 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9173 if test x"${x_includes}" = x; then
9174 bitmapdir=/usr/include/X11/bitmaps
9176 # accumulate include directories that have X11 bitmap subdirectories
9178 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9179 if test -d "${bmd}/X11/bitmaps"; then
9180 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9182 if test -d "${bmd}/bitmaps"; then
9183 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9186 if test ${bmd_acc} != "dummyval"; then
9187 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9192 if test "${with_carbon}" != no; then
9193 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9194 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9195 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9196 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9197 echo $ECHO_N "(cached) $ECHO_C" >&6
9199 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9200 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9202 # Is the header compilable?
9203 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9204 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9205 cat >conftest.$ac_ext <<_ACEOF
9208 cat confdefs.h >>conftest.$ac_ext
9209 cat >>conftest.$ac_ext <<_ACEOF
9210 /* end confdefs.h. */
9211 $ac_includes_default
9212 #include <Carbon/Carbon.h>
9214 rm -f conftest.$ac_objext
9215 if { (ac_try="$ac_compile"
9217 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9218 *) ac_try_echo
=$ac_try;;
9220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9221 (eval "$ac_compile") 2>conftest.er1
9223 grep -v '^ *+' conftest.er1
>conftest.err
9225 cat conftest.err
>&5
9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9227 (exit $ac_status); } && {
9228 test -z "$ac_c_werror_flag" ||
9229 test ! -s conftest.err
9230 } && test -s conftest.
$ac_objext; then
9231 ac_header_compiler
=yes
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.
$ac_ext >&5
9236 ac_header_compiler
=no
9239 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9241 echo "${ECHO_T}$ac_header_compiler" >&6; }
9243 # Is the header present?
9244 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9245 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9246 cat >conftest.
$ac_ext <<_ACEOF
9249 cat confdefs.h
>>conftest.
$ac_ext
9250 cat >>conftest.
$ac_ext <<_ACEOF
9251 /* end confdefs.h. */
9252 #include <Carbon/Carbon.h>
9254 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9257 *) ac_try_echo=$ac_try;;
9259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9262 grep -v '^ *+' conftest.er1 >conftest.err
9264 cat conftest.err >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); } >/dev/null && {
9267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9268 test ! -s conftest.err
9270 ac_header_preproc=yes
9272 echo "$as_me: failed program was:" >&5
9273 sed 's/^/| /' conftest.$ac_ext >&5
9275 ac_header_preproc=no
9278 rm -f conftest.err conftest.$ac_ext
9279 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9280 echo "${ECHO_T}$ac_header_preproc" >&6; }
9282 # So? What about this header?
9283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9285 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9286 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9287 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9288 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9289 ac_header_preproc=yes
9292 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9293 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9294 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9295 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9296 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9297 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9298 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9299 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9300 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9301 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9302 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9303 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9307 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9308 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9309 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9312 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9314 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9315 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9318 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9324 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9325 if test "${with_carbon+set}" != set \
9326 && test "${carbon_appdir_x+set}" != set; then
9327 for var in with_x with_x_toolkit with_xim \
9328 with_xpm with_jpeg with_tiff with_gif with_png; do
9329 if eval test \"\${$var+set}\" = set; then
9336 if test "${HAVE_CARBON}" = yes; then
9343 tmp_CPPFLAGS="$CPPFLAGS"
9344 tmp_CFLAGS="$CFLAGS"
9345 CPPFLAGS="$CPPFLAGS -x objective-c"
9346 CFLAGS="$CFLAGS -x objective-c"
9347 if test "${with_ns}" != no; then
9348 if test "${opsys}" = darwin; then
9350 elif test -f /etc/GNUstep/GNUstep.conf; then
9352 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9353 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9354 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9355 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9356 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9357 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9359 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9360 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9361 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9362 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9363 echo $ECHO_N "(cached) $ECHO_C" >&6
9365 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9366 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9368 # Is the header compilable?
9369 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9370 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9371 cat >conftest.$ac_ext <<_ACEOF
9374 cat confdefs.h >>conftest.$ac_ext
9375 cat >>conftest.$ac_ext <<_ACEOF
9376 /* end confdefs.h. */
9377 $ac_includes_default
9378 #include <AppKit/AppKit.h>
9380 rm -f conftest.$ac_objext
9381 if { (ac_try="$ac_compile"
9383 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9384 *) ac_try_echo
=$ac_try;;
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_compile") 2>conftest.er1
9389 grep -v '^ *+' conftest.er1
>conftest.err
9391 cat conftest.err
>&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } && {
9394 test -z "$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9396 } && test -s conftest.
$ac_objext; then
9397 ac_header_compiler
=yes
9399 echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.
$ac_ext >&5
9402 ac_header_compiler
=no
9405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9406 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9407 echo "${ECHO_T}$ac_header_compiler" >&6; }
9409 # Is the header present?
9410 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9411 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9412 cat >conftest.
$ac_ext <<_ACEOF
9415 cat confdefs.h
>>conftest.
$ac_ext
9416 cat >>conftest.
$ac_ext <<_ACEOF
9417 /* end confdefs.h. */
9418 #include <AppKit/AppKit.h>
9420 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9422 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9423 *) ac_try_echo=$ac_try;;
9425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9426 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9428 grep -v '^ *+' conftest.er1 >conftest.err
9430 cat conftest.err >&5
9431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9432 (exit $ac_status); } >/dev/null && {
9433 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9434 test ! -s conftest.err
9436 ac_header_preproc=yes
9438 echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.$ac_ext >&5
9441 ac_header_preproc=no
9444 rm -f conftest.err conftest.$ac_ext
9445 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9446 echo "${ECHO_T}$ac_header_preproc" >&6; }
9448 # So? What about this header?
9449 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9451 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9452 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9453 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9454 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9455 ac_header_preproc=yes
9458 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9459 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9461 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9463 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9465 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9467 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9468 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9469 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9473 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9474 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9475 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9476 echo $ECHO_N "(cached) $ECHO_C" >&6
9478 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9480 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9481 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9484 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9490 if test "${window_system}" = x11 && test "${HAVE_NS}" = yes; then
9491 if test "${with_ns+set}" != set \
9492 && test "${ns_appdir_x+set}" != set; then
9497 if test "${window_system}" = mac && test "${HAVE_NS}" = yes; then
9498 if test "${with_ns+set}" != set \
9499 && test "${ns_appdir_x+set}" != set; then
9505 if test "${HAVE_NS}" = yes; then
9506 window_system=nextstep
9510 CFLAGS="$tmp_CFLAGS"
9511 CPPFLAGS="$tmp_CPPFLAGS"
9513 case "${window_system}" in
9517 case "${with_x_toolkit}" in
9518 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9519 motif ) USE_X_TOOLKIT=MOTIF ;;
9521 USE_X_TOOLKIT=none ;;
9522 no ) USE_X_TOOLKIT=none ;;
9523 * ) USE_X_TOOLKIT=maybe ;;
9526 nextstep | mac | none )
9533 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9534 # Extract the first word of "X", so it can be a program name with args.
9535 set dummy X; ac_word=$2
9536 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9538 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9539 echo $ECHO_N "(cached) $ECHO_C" >&6
9541 if test -n "$HAVE_XSERVER"; then
9542 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9548 test -z "$as_dir" && as_dir=.
9549 for ac_exec_ext in '' $ac_executable_extensions; do
9550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9551 ac_cv_prog_HAVE_XSERVER="true"
9552 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9559 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9562 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9563 if test -n "$HAVE_XSERVER"; then
9564 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9565 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9567 { echo "$as_me:$LINENO: result: no" >&5
9568 echo "${ECHO_T}no" >&6; }
9572 if test "$HAVE_XSERVER" = true ||
9573 test -n "$DISPLAY" ||
9574 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9575 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9576 were found. You should install the relevant development files for X
9577 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9578 sure you have development files for image handling, i.e.
9579 tiff, gif, jpeg, png and xpm.
9580 If you are sure you want Emacs compiled without X window support, pass
9583 echo "$as_me: error: You seem to be running X, but no X development libraries
9584 were found. You should install the relevant development files for X
9585 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9586 sure you have development files for image handling, i.e.
9587 tiff, gif, jpeg, png and xpm.
9588 If you are sure you want Emacs compiled without X window support, pass
9590 to configure." >&2;}
9591 { (exit 1); exit 1; }; }
9595 ### If we're using X11, we should use the X menu package.
9598 yes ) HAVE_MENUS=yes ;;
9601 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9602 # Assume not, until told otherwise.
9605 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9606 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9607 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9608 echo $ECHO_N "(cached) $ECHO_C" >&6
9610 cat >conftest.$ac_ext <<_ACEOF
9613 cat confdefs.h >>conftest.$ac_ext
9614 cat >>conftest.$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9618 #define malloc_get_state innocuous_malloc_get_state
9620 /* System header to define __stub macros and hopefully few prototypes,
9621 which can conflict with char malloc_get_state (); below.
9622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9623 <limits.h> exists even on freestanding compilers. */
9626 # include <limits.h>
9628 # include <assert.h>
9631 #undef malloc_get_state
9633 /* Override any GCC internal prototype to avoid an error.
9634 Use char because int might match the return type of a GCC
9635 builtin and then its argument prototype would still apply. */
9639 char malloc_get_state ();
9640 /* The GNU C library defines this for functions which it implements
9641 to always fail with ENOSYS. Some functions are actually named
9642 something starting with __ and the normal name is an alias. */
9643 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9650 return malloc_get_state ();
9655 rm -f conftest.$ac_objext conftest$ac_exeext
9656 if { (ac_try="$ac_link"
9658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9659 *) ac_try_echo
=$ac_try;;
9661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9662 (eval "$ac_link") 2>conftest.er1
9664 grep -v '^ *+' conftest.er1
>conftest.err
9666 cat conftest.err
>&5
9667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9668 (exit $ac_status); } && {
9669 test -z "$ac_c_werror_flag" ||
9670 test ! -s conftest.err
9671 } && test -s conftest
$ac_exeext &&
9672 $as_test_x conftest
$ac_exeext; then
9673 ac_cv_func_malloc_get_state
=yes
9675 echo "$as_me: failed program was:" >&5
9676 sed 's/^/| /' conftest.
$ac_ext >&5
9678 ac_cv_func_malloc_get_state
=no
9681 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9682 conftest
$ac_exeext conftest.
$ac_ext
9684 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9685 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9686 if test $ac_cv_func_malloc_get_state = yes; then
9692 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9693 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9694 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9695 echo $ECHO_N "(cached) $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 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9704 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9705 #define malloc_set_state innocuous_malloc_set_state
9707 /* System header to define __stub macros and hopefully few prototypes,
9708 which can conflict with char malloc_set_state (); below.
9709 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9710 <limits.h> exists even on freestanding compilers. */
9713 # include <limits.h>
9715 # include <assert.h>
9718 #undef malloc_set_state
9720 /* Override any GCC internal prototype to avoid an error.
9721 Use char because int might match the return type of a GCC
9722 builtin and then its argument prototype would still apply. */
9726 char malloc_set_state ();
9727 /* The GNU C library defines this for functions which it implements
9728 to always fail with ENOSYS. Some functions are actually named
9729 something starting with __ and the normal name is an alias. */
9730 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9737 return malloc_set_state ();
9742 rm -f conftest.
$ac_objext conftest
$ac_exeext
9743 if { (ac_try
="$ac_link"
9745 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9746 *) ac_try_echo=$ac_try;;
9748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9749 (eval "$ac_link") 2>conftest.er1
9751 grep -v '^ *+' conftest.er1 >conftest.err
9753 cat conftest.err >&5
9754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9755 (exit $ac_status); } && {
9756 test -z "$ac_c_werror_flag" ||
9757 test ! -s conftest.err
9758 } && test -s conftest$ac_exeext &&
9759 $as_test_x conftest$ac_exeext; then
9760 ac_cv_func_malloc_set_state=yes
9762 echo "$as_me: failed program was:" >&5
9763 sed 's/^/| /' conftest.$ac_ext >&5
9765 ac_cv_func_malloc_set_state=no
9768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9769 conftest$ac_exeext conftest.$ac_ext
9771 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9772 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9773 if test $ac_cv_func_malloc_set_state = yes; then
9779 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9780 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9781 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9782 echo $ECHO_N "(cached) $ECHO_C" >&6
9784 cat >conftest.$ac_ext <<_ACEOF
9787 cat confdefs.h >>conftest.$ac_ext
9788 cat >>conftest.$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9790 extern void (* __after_morecore_hook)();
9794 __after_morecore_hook = 0
9799 rm -f conftest.$ac_objext conftest$ac_exeext
9800 if { (ac_try="$ac_link"
9802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9803 *) ac_try_echo
=$ac_try;;
9805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9806 (eval "$ac_link") 2>conftest.er1
9808 grep -v '^ *+' conftest.er1
>conftest.err
9810 cat conftest.err
>&5
9811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9812 (exit $ac_status); } && {
9813 test -z "$ac_c_werror_flag" ||
9814 test ! -s conftest.err
9815 } && test -s conftest
$ac_exeext &&
9816 $as_test_x conftest
$ac_exeext; then
9817 emacs_cv_var___after_morecore_hook
=yes
9819 echo "$as_me: failed program was:" >&5
9820 sed 's/^/| /' conftest.
$ac_ext >&5
9822 emacs_cv_var___after_morecore_hook
=no
9825 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9826 conftest
$ac_exeext conftest.
$ac_ext
9828 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9829 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9830 if test $emacs_cv_var___after_morecore_hook = no
; then
9833 if test "${system_malloc}" = "yes"; then
9836 (The GNU allocators don't work with this system configuration.)"
9838 if test "$doug_lea_malloc" = "yes" ; then
9839 if test "$GNU_MALLOC" = yes ; then
9841 (Using Doug Lea's new malloc from the GNU C Library.)"
9844 cat >>confdefs.h
<<\_ACEOF
9845 #define DOUG_LEA_MALLOC 1
9850 if test x
"${REL_ALLOC}" = x
; then
9851 REL_ALLOC
=${GNU_MALLOC}
9857 for ac_header
in stdlib.h unistd.h
9859 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9860 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9863 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 ac_res
=`eval echo '${'$as_ac_Header'}'`
9867 { echo "$as_me:$LINENO: result: $ac_res" >&5
9868 echo "${ECHO_T}$ac_res" >&6; }
9870 # Is the header compilable?
9871 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9872 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9873 cat >conftest.
$ac_ext <<_ACEOF
9876 cat confdefs.h
>>conftest.
$ac_ext
9877 cat >>conftest.
$ac_ext <<_ACEOF
9878 /* end confdefs.h. */
9879 $ac_includes_default
9880 #include <$ac_header>
9882 rm -f conftest.
$ac_objext
9883 if { (ac_try
="$ac_compile"
9885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_compile") 2>conftest.er1
9891 grep -v '^ *+' conftest.er1 >conftest.err
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } && {
9896 test -z "$ac_c_werror_flag" ||
9897 test ! -s conftest.err
9898 } && test -s conftest.$ac_objext; then
9899 ac_header_compiler=yes
9901 echo "$as_me: failed program was:" >&5
9902 sed 's/^/| /' conftest.$ac_ext >&5
9904 ac_header_compiler=no
9907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9908 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9909 echo "${ECHO_T}$ac_header_compiler" >&6; }
9911 # Is the header present?
9912 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9913 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9914 cat >conftest.$ac_ext <<_ACEOF
9917 cat confdefs.h >>conftest.$ac_ext
9918 cat >>conftest.$ac_ext <<_ACEOF
9919 /* end confdefs.h. */
9920 #include <$ac_header>
9922 if { (ac_try="$ac_cpp conftest.$ac_ext"
9924 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9925 *) ac_try_echo
=$ac_try;;
9927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9928 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9930 grep -v '^ *+' conftest.er1
>conftest.err
9932 cat conftest.err
>&5
9933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9934 (exit $ac_status); } >/dev
/null
&& {
9935 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9936 test ! -s conftest.err
9938 ac_header_preproc
=yes
9940 echo "$as_me: failed program was:" >&5
9941 sed 's/^/| /' conftest.
$ac_ext >&5
9943 ac_header_preproc
=no
9946 rm -f conftest.err conftest.
$ac_ext
9947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9948 echo "${ECHO_T}$ac_header_preproc" >&6; }
9950 # So? What about this header?
9951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9957 ac_header_preproc
=yes
9960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9977 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9978 echo $ECHO_N "(cached) $ECHO_C" >&6
9980 eval "$as_ac_Header=\$ac_header_preproc"
9982 ac_res
=`eval echo '${'$as_ac_Header'}'`
9983 { echo "$as_me:$LINENO: result: $ac_res" >&5
9984 echo "${ECHO_T}$ac_res" >&6; }
9987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9988 cat >>confdefs.h
<<_ACEOF
9989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9997 for ac_func
in getpagesize
9999 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10000 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10001 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10002 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10003 echo $ECHO_N "(cached) $ECHO_C" >&6
10005 cat >conftest.
$ac_ext <<_ACEOF
10008 cat confdefs.h
>>conftest.
$ac_ext
10009 cat >>conftest.
$ac_ext <<_ACEOF
10010 /* end confdefs.h. */
10011 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10012 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10013 #define $ac_func innocuous_$ac_func
10015 /* System header to define __stub macros and hopefully few prototypes,
10016 which can conflict with char $ac_func (); below.
10017 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10018 <limits.h> exists even on freestanding compilers. */
10021 # include <limits.h>
10023 # include <assert.h>
10028 /* Override any GCC internal prototype to avoid an error.
10029 Use char because int might match the return type of a GCC
10030 builtin and then its argument prototype would still apply. */
10035 /* The GNU C library defines this for functions which it implements
10036 to always fail with ENOSYS. Some functions are actually named
10037 something starting with __ and the normal name is an alias. */
10038 #if defined __stub_$ac_func || defined __stub___$ac_func
10045 return $ac_func ();
10050 rm -f conftest.
$ac_objext conftest
$ac_exeext
10051 if { (ac_try
="$ac_link"
10052 case "(($ac_try" in
10053 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10054 *) ac_try_echo=$ac_try;;
10056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10057 (eval "$ac_link") 2>conftest.er1
10059 grep -v '^ *+' conftest.er1 >conftest.err
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 (exit $ac_status); } && {
10064 test -z "$ac_c_werror_flag" ||
10065 test ! -s conftest.err
10066 } && test -s conftest$ac_exeext &&
10067 $as_test_x conftest$ac_exeext; then
10068 eval "$as_ac_var=yes"
10070 echo "$as_me: failed program was:" >&5
10071 sed 's/^/| /' conftest.$ac_ext >&5
10073 eval "$as_ac_var=no"
10076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10077 conftest$ac_exeext conftest.$ac_ext
10079 ac_res=`eval echo '${'$as_ac_var'}'`
10080 { echo "$as_me:$LINENO: result: $ac_res" >&5
10081 echo "${ECHO_T}$ac_res" >&6; }
10082 if test `eval echo '${'$as_ac_var'}'` = yes; then
10083 cat >>confdefs.h <<_ACEOF
10084 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10090 { echo "$as_me:$LINENO: checking for working mmap" >&5
10091 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10092 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 if test "$cross_compiling" = yes; then
10096 ac_cv_func_mmap_fixed_mapped=no
10098 cat >conftest.$ac_ext <<_ACEOF
10101 cat confdefs.h >>conftest.$ac_ext
10102 cat >>conftest.$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10104 $ac_includes_default
10105 /* malloc might have been renamed as rpl_malloc. */
10108 /* Thanks to Mike Haertel and Jim Avera for this test.
10109 Here is a matrix of mmap possibilities:
10110 mmap private not fixed
10111 mmap private fixed at somewhere currently unmapped
10112 mmap private fixed at somewhere already mapped
10113 mmap shared not fixed
10114 mmap shared fixed at somewhere currently unmapped
10115 mmap shared fixed at somewhere already mapped
10116 For private mappings, we should verify that changes cannot be read()
10117 back from the file, nor mmap's back from the file at a different
10118 address. (There have been systems where private was not correctly
10119 implemented like the infamous i386 svr4.0, and systems where the
10120 VM page cache was not coherent with the file system buffer cache
10121 like early versions of FreeBSD and possibly contemporary NetBSD.)
10122 For shared mappings, we should conversely verify that changes get
10123 propagated back to all the places they're supposed to be.
10125 Grep wants private fixed already mapped.
10126 The main things grep needs to know about mmap are:
10127 * does it exist and is it safe to write into the mmap'd area
10128 * how to use it (BSD variants) */
10131 #include <sys/mman.h>
10133 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10137 /* This mess was copied from the GNU getpagesize.h. */
10138 #ifndef HAVE_GETPAGESIZE
10139 /* Assume that all systems that can run configure have sys/param.h. */
10140 # ifndef HAVE_SYS_PARAM_H
10141 # define HAVE_SYS_PARAM_H 1
10144 # ifdef _SC_PAGESIZE
10145 # define getpagesize() sysconf(_SC_PAGESIZE)
10146 # else /* no _SC_PAGESIZE */
10147 # ifdef HAVE_SYS_PARAM_H
10148 # include <sys/param.h>
10149 # ifdef EXEC_PAGESIZE
10150 # define getpagesize() EXEC_PAGESIZE
10151 # else /* no EXEC_PAGESIZE */
10153 # define getpagesize() NBPG * CLSIZE
10156 # endif /* no CLSIZE */
10157 # else /* no NBPG */
10159 # define getpagesize() NBPC
10160 # else /* no NBPC */
10162 # define getpagesize() PAGESIZE
10163 # endif /* PAGESIZE */
10164 # endif /* no NBPC */
10165 # endif /* no NBPG */
10166 # endif /* no EXEC_PAGESIZE */
10167 # else /* no HAVE_SYS_PARAM_H */
10168 # define getpagesize() 8192 /* punt totally */
10169 # endif /* no HAVE_SYS_PARAM_H */
10170 # endif /* no _SC_PAGESIZE */
10172 #endif /* no HAVE_GETPAGESIZE */
10177 char *data, *data2, *data3;
10181 pagesize = getpagesize ();
10183 /* First, make a file with some known garbage in it. */
10184 data = (char *) malloc (pagesize);
10187 for (i = 0; i < pagesize; ++i)
10188 *(data + i) = rand ();
10190 fd = creat ("conftest.mmap", 0600);
10193 if (write (fd, data, pagesize) != pagesize)
10197 /* Next, try to mmap the file at a fixed address which already has
10198 something else allocated at it. If we can, also make sure that
10199 we see the same garbage. */
10200 fd = open ("conftest.mmap", O_RDWR);
10203 data2 = (char *) malloc (2 * pagesize);
10206 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10207 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10208 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10210 for (i = 0; i < pagesize; ++i)
10211 if (*(data + i) != *(data2 + i))
10214 /* Finally, make sure that changes to the mapped area do not
10215 percolate back to the file as seen by read(). (This is a bug on
10216 some variants of i386 svr4.0.) */
10217 for (i = 0; i < pagesize; ++i)
10218 *(data2 + i) = *(data2 + i) + 1;
10219 data3 = (char *) malloc (pagesize);
10222 if (read (fd, data3, pagesize) != pagesize)
10224 for (i = 0; i < pagesize; ++i)
10225 if (*(data + i) != *(data3 + i))
10231 rm -f conftest$ac_exeext
10232 if { (ac_try="$ac_link"
10233 case "(($ac_try" in
10234 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10235 *) ac_try_echo
=$ac_try;;
10237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10238 (eval "$ac_link") 2>&5
10240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10241 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10242 { (case "(($ac_try" in
10243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10244 *) ac_try_echo=$ac_try;;
10246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10247 (eval "$ac_try") 2>&5
10249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10250 (exit $ac_status); }; }; then
10251 ac_cv_func_mmap_fixed_mapped=yes
10253 echo "$as_me: program exited with status $ac_status" >&5
10254 echo "$as_me: failed program was:" >&5
10255 sed 's/^/| /' conftest.$ac_ext >&5
10257 ( exit $ac_status )
10258 ac_cv_func_mmap_fixed_mapped=no
10260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10265 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10266 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10267 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10269 cat >>confdefs.h <<\_ACEOF
10270 #define HAVE_MMAP 1
10274 rm -f conftest.mmap
10276 if test $use_mmap_for_buffers = yes; then
10280 LIBS="$libsrc_libs $LIBS"
10283 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10284 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10285 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10286 echo $ECHO_N "(cached) $ECHO_C" >&6
10288 ac_check_lib_save_LIBS=$LIBS
10289 LIBS="-ldnet $LIBS"
10290 cat >conftest.$ac_ext <<_ACEOF
10293 cat confdefs.h >>conftest.$ac_ext
10294 cat >>conftest.$ac_ext <<_ACEOF
10295 /* end confdefs.h. */
10297 /* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10307 return dnet_ntoa ();
10312 rm -f conftest.$ac_objext conftest$ac_exeext
10313 if { (ac_try="$ac_link"
10314 case "(($ac_try" in
10315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10316 *) ac_try_echo
=$ac_try;;
10318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10319 (eval "$ac_link") 2>conftest.er1
10321 grep -v '^ *+' conftest.er1
>conftest.err
10323 cat conftest.err
>&5
10324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10325 (exit $ac_status); } && {
10326 test -z "$ac_c_werror_flag" ||
10327 test ! -s conftest.err
10328 } && test -s conftest
$ac_exeext &&
10329 $as_test_x conftest
$ac_exeext; then
10330 ac_cv_lib_dnet_dnet_ntoa
=yes
10332 echo "$as_me: failed program was:" >&5
10333 sed 's/^/| /' conftest.
$ac_ext >&5
10335 ac_cv_lib_dnet_dnet_ntoa
=no
10338 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10339 conftest
$ac_exeext conftest.
$ac_ext
10340 LIBS
=$ac_check_lib_save_LIBS
10342 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10343 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10344 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10345 cat >>confdefs.h
<<_ACEOF
10346 #define HAVE_LIBDNET 1
10349 LIBS
="-ldnet $LIBS"
10354 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10355 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10356 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10357 echo $ECHO_N "(cached) $ECHO_C" >&6
10359 ac_check_lib_save_LIBS
=$LIBS
10360 LIBS
="-lXbsd $LIBS"
10361 cat >conftest.
$ac_ext <<_ACEOF
10364 cat confdefs.h
>>conftest.
$ac_ext
10365 cat >>conftest.
$ac_ext <<_ACEOF
10366 /* end confdefs.h. */
10377 rm -f conftest.
$ac_objext conftest
$ac_exeext
10378 if { (ac_try
="$ac_link"
10379 case "(($ac_try" in
10380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10381 *) ac_try_echo=$ac_try;;
10383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10384 (eval "$ac_link") 2>conftest.er1
10386 grep -v '^ *+' conftest.er1 >conftest.err
10388 cat conftest.err >&5
10389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10390 (exit $ac_status); } && {
10391 test -z "$ac_c_werror_flag" ||
10392 test ! -s conftest.err
10393 } && test -s conftest$ac_exeext &&
10394 $as_test_x conftest$ac_exeext; then
10395 ac_cv_lib_Xbsd_main=yes
10397 echo "$as_me: failed program was:" >&5
10398 sed 's/^/| /' conftest.$ac_ext >&5
10400 ac_cv_lib_Xbsd_main=no
10403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10404 conftest$ac_exeext conftest.$ac_ext
10405 LIBS=$ac_check_lib_save_LIBS
10407 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10408 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10409 if test $ac_cv_lib_Xbsd_main = yes; then
10410 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10415 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10416 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10417 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10418 echo $ECHO_N "(cached) $ECHO_C" >&6
10420 ac_check_lib_save_LIBS=$LIBS
10421 LIBS="-lpthreads $LIBS"
10422 cat >conftest.$ac_ext <<_ACEOF
10425 cat confdefs.h >>conftest.$ac_ext
10426 cat >>conftest.$ac_ext <<_ACEOF
10427 /* end confdefs.h. */
10429 /* Override any GCC internal prototype to avoid an error.
10430 Use char because int might match the return type of a GCC
10431 builtin and then its argument prototype would still apply. */
10439 return cma_open ();
10444 rm -f conftest.$ac_objext conftest$ac_exeext
10445 if { (ac_try="$ac_link"
10446 case "(($ac_try" in
10447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10448 *) ac_try_echo
=$ac_try;;
10450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_link") 2>conftest.er1
10453 grep -v '^ *+' conftest.er1
>conftest.err
10455 cat conftest.err
>&5
10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10457 (exit $ac_status); } && {
10458 test -z "$ac_c_werror_flag" ||
10459 test ! -s conftest.err
10460 } && test -s conftest
$ac_exeext &&
10461 $as_test_x conftest
$ac_exeext; then
10462 ac_cv_lib_pthreads_cma_open
=yes
10464 echo "$as_me: failed program was:" >&5
10465 sed 's/^/| /' conftest.
$ac_ext >&5
10467 ac_cv_lib_pthreads_cma_open
=no
10470 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10471 conftest
$ac_exeext conftest.
$ac_ext
10472 LIBS
=$ac_check_lib_save_LIBS
10474 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10475 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10476 if test $ac_cv_lib_pthreads_cma_open = yes; then
10477 cat >>confdefs.h
<<_ACEOF
10478 #define HAVE_LIBPTHREADS 1
10481 LIBS
="-lpthreads $LIBS"
10489 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10490 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10491 if test "${gdb_cv_bigtoc+set}" = set; then
10492 echo $ECHO_N "(cached) $ECHO_C" >&6
10496 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10497 *) gdb_cv_bigtoc
=-bbigtoc ;;
10500 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10501 cat >conftest.
$ac_ext <<_ACEOF
10504 cat confdefs.h
>>conftest.
$ac_ext
10505 cat >>conftest.
$ac_ext <<_ACEOF
10506 /* end confdefs.h. */
10516 rm -f conftest.
$ac_objext conftest
$ac_exeext
10517 if { (ac_try
="$ac_link"
10518 case "(($ac_try" in
10519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10520 *) ac_try_echo=$ac_try;;
10522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10523 (eval "$ac_link") 2>conftest.er1
10525 grep -v '^ *+' conftest.er1 >conftest.err
10527 cat conftest.err >&5
10528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10529 (exit $ac_status); } && {
10530 test -z "$ac_c_werror_flag" ||
10531 test ! -s conftest.err
10532 } && test -s conftest$ac_exeext &&
10533 $as_test_x conftest$ac_exeext; then
10536 echo "$as_me: failed program was:" >&5
10537 sed 's/^/| /' conftest.$ac_ext >&5
10542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10543 conftest$ac_exeext conftest.$ac_ext
10546 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10547 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10551 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10552 # used for the tests that follow. We set them back to REAL_CFLAGS and
10553 # REAL_CPPFLAGS later on.
10555 REAL_CPPFLAGS="$CPPFLAGS"
10557 if test "${HAVE_X11}" = "yes"; then
10558 DEFS="$C_SWITCH_X_SITE $DEFS"
10559 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10561 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10562 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10564 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10565 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10566 # but it's more convenient here to set LD_RUN_PATH
10567 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10568 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10569 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10573 if test "${opsys}" = "gnu-linux"; then
10574 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10575 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10576 cat >conftest.$ac_ext <<_ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10586 XOpenDisplay ("foo");
10591 rm -f conftest.$ac_objext conftest$ac_exeext
10592 if { (ac_try="$ac_link"
10593 case "(($ac_try" in
10594 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10595 *) ac_try_echo
=$ac_try;;
10597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10598 (eval "$ac_link") 2>conftest.er1
10600 grep -v '^ *+' conftest.er1
>conftest.err
10602 cat conftest.err
>&5
10603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10604 (exit $ac_status); } && {
10605 test -z "$ac_c_werror_flag" ||
10606 test ! -s conftest.err
10607 } && test -s conftest
$ac_exeext &&
10608 $as_test_x conftest
$ac_exeext; then
10609 xlinux_first_failure
=no
10611 echo "$as_me: failed program was:" >&5
10612 sed 's/^/| /' conftest.
$ac_ext >&5
10614 xlinux_first_failure
=yes
10617 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10618 conftest
$ac_exeext conftest.
$ac_ext
10619 if test "${xlinux_first_failure}" = "yes"; then
10620 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10621 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10622 OLD_CPPFLAGS
="$CPPFLAGS"
10624 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10625 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10626 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10627 LIBS
="$LIBS -b i486-linuxaout"
10628 cat >conftest.
$ac_ext <<_ACEOF
10631 cat confdefs.h
>>conftest.
$ac_ext
10632 cat >>conftest.
$ac_ext <<_ACEOF
10633 /* end confdefs.h. */
10638 XOpenDisplay ("foo");
10643 rm -f conftest.
$ac_objext conftest
$ac_exeext
10644 if { (ac_try
="$ac_link"
10645 case "(($ac_try" in
10646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_link") 2>conftest.er1
10652 grep -v '^ *+' conftest.er1 >conftest.err
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } && {
10657 test -z "$ac_c_werror_flag" ||
10658 test ! -s conftest.err
10659 } && test -s conftest$ac_exeext &&
10660 $as_test_x conftest$ac_exeext; then
10661 xlinux_second_failure=no
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 xlinux_second_failure=yes
10669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10670 conftest$ac_exeext conftest.$ac_ext
10671 if test "${xlinux_second_failure}" = "yes"; then
10672 # If we get the same failure with -b, there is no use adding -b.
10673 # So take it out. This plays safe.
10674 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10675 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10676 CPPFLAGS="$OLD_CPPFLAGS"
10678 { echo "$as_me:$LINENO: result: no" >&5
10679 echo "${ECHO_T}no" >&6; }
10681 { echo "$as_me:$LINENO: result: yes" >&5
10682 echo "${ECHO_T}yes" >&6; }
10685 { echo "$as_me:$LINENO: result: no" >&5
10686 echo "${ECHO_T}no" >&6; }
10690 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10691 # header files included from there.
10692 { echo "$as_me:$LINENO: checking for Xkb" >&5
10693 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10694 cat >conftest.$ac_ext <<_ACEOF
10697 cat confdefs.h >>conftest.$ac_ext
10698 cat >>conftest.$ac_ext <<_ACEOF
10699 /* end confdefs.h. */
10700 #include <X11/Xlib.h>
10701 #include <X11/XKBlib.h>
10705 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10710 rm -f conftest.$ac_objext conftest$ac_exeext
10711 if { (ac_try="$ac_link"
10712 case "(($ac_try" in
10713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10714 *) ac_try_echo
=$ac_try;;
10716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10717 (eval "$ac_link") 2>conftest.er1
10719 grep -v '^ *+' conftest.er1
>conftest.err
10721 cat conftest.err
>&5
10722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10723 (exit $ac_status); } && {
10724 test -z "$ac_c_werror_flag" ||
10725 test ! -s conftest.err
10726 } && test -s conftest
$ac_exeext &&
10727 $as_test_x conftest
$ac_exeext; then
10730 echo "$as_me: failed program was:" >&5
10731 sed 's/^/| /' conftest.
$ac_ext >&5
10736 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10737 conftest
$ac_exeext conftest.
$ac_ext
10738 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10739 echo "${ECHO_T}$emacs_xkb" >&6; }
10740 if test $emacs_xkb = yes; then
10742 cat >>confdefs.h
<<\_ACEOF
10743 #define HAVE_XKBGETKEYBOARD 1
10752 for ac_func
in XrmSetDatabase XScreenResourceString \
10753 XScreenNumberOfScreen XSetWMProtocols
10755 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10756 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10757 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10758 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10759 echo $ECHO_N "(cached) $ECHO_C" >&6
10761 cat >conftest.
$ac_ext <<_ACEOF
10764 cat confdefs.h
>>conftest.
$ac_ext
10765 cat >>conftest.
$ac_ext <<_ACEOF
10766 /* end confdefs.h. */
10767 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10768 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10769 #define $ac_func innocuous_$ac_func
10771 /* System header to define __stub macros and hopefully few prototypes,
10772 which can conflict with char $ac_func (); below.
10773 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10774 <limits.h> exists even on freestanding compilers. */
10777 # include <limits.h>
10779 # include <assert.h>
10784 /* Override any GCC internal prototype to avoid an error.
10785 Use char because int might match the return type of a GCC
10786 builtin and then its argument prototype would still apply. */
10791 /* The GNU C library defines this for functions which it implements
10792 to always fail with ENOSYS. Some functions are actually named
10793 something starting with __ and the normal name is an alias. */
10794 #if defined __stub_$ac_func || defined __stub___$ac_func
10801 return $ac_func ();
10806 rm -f conftest.
$ac_objext conftest
$ac_exeext
10807 if { (ac_try
="$ac_link"
10808 case "(($ac_try" in
10809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10810 *) ac_try_echo=$ac_try;;
10812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10813 (eval "$ac_link") 2>conftest.er1
10815 grep -v '^ *+' conftest.er1 >conftest.err
10817 cat conftest.err >&5
10818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10819 (exit $ac_status); } && {
10820 test -z "$ac_c_werror_flag" ||
10821 test ! -s conftest.err
10822 } && test -s conftest$ac_exeext &&
10823 $as_test_x conftest$ac_exeext; then
10824 eval "$as_ac_var=yes"
10826 echo "$as_me: failed program was:" >&5
10827 sed 's/^/| /' conftest.$ac_ext >&5
10829 eval "$as_ac_var=no"
10832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10833 conftest$ac_exeext conftest.$ac_ext
10835 ac_res=`eval echo '${'$as_ac_var'}'`
10836 { echo "$as_me:$LINENO: result: $ac_res" >&5
10837 echo "${ECHO_T}$ac_res" >&6; }
10838 if test `eval echo '${'$as_ac_var'}'` = yes; then
10839 cat >>confdefs.h <<_ACEOF
10840 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10848 if test "${window_system}" = "x11"; then
10849 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10850 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10851 if test "${emacs_cv_x11_version_6+set}" = set; then
10852 echo $ECHO_N "(cached) $ECHO_C" >&6
10854 cat >conftest.$ac_ext <<_ACEOF
10857 cat confdefs.h >>conftest.$ac_ext
10858 cat >>conftest.$ac_ext <<_ACEOF
10859 /* end confdefs.h. */
10860 #include <X11/Xlib.h>
10864 #if XlibSpecificationRelease < 6
10872 rm -f conftest.$ac_objext conftest$ac_exeext
10873 if { (ac_try="$ac_link"
10874 case "(($ac_try" in
10875 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10876 *) ac_try_echo
=$ac_try;;
10878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10879 (eval "$ac_link") 2>conftest.er1
10881 grep -v '^ *+' conftest.er1
>conftest.err
10883 cat conftest.err
>&5
10884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10885 (exit $ac_status); } && {
10886 test -z "$ac_c_werror_flag" ||
10887 test ! -s conftest.err
10888 } && test -s conftest
$ac_exeext &&
10889 $as_test_x conftest
$ac_exeext; then
10890 emacs_cv_x11_version_6
=yes
10892 echo "$as_me: failed program was:" >&5
10893 sed 's/^/| /' conftest.
$ac_ext >&5
10895 emacs_cv_x11_version_6
=no
10898 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10899 conftest
$ac_exeext conftest.
$ac_ext
10902 if test $emacs_cv_x11_version_6 = yes; then
10903 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10904 echo "${ECHO_T}6 or newer" >&6; }
10906 cat >>confdefs.h
<<\_ACEOF
10907 #define HAVE_X11R6 1
10911 { echo "$as_me:$LINENO: result: before 6" >&5
10912 echo "${ECHO_T}before 6" >&6; }
10917 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10919 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10920 if test "${with_rsvg}" != "no"; then
10921 RSVG_REQUIRED
=2.0.0
10922 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10927 # Extract the first word of "pkg-config", so it can be a program name with args.
10928 set dummy pkg-config
; ac_word
=$2
10929 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10930 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10931 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10932 echo $ECHO_N "(cached) $ECHO_C" >&6
10934 case $PKG_CONFIG in
10936 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10940 for as_dir
in $PATH
10943 test -z "$as_dir" && as_dir
=.
10944 for ac_exec_ext
in '' $ac_executable_extensions; do
10945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10947 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10954 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10958 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10959 if test -n "$PKG_CONFIG"; then
10960 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10961 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10963 { echo "$as_me:$LINENO: result: no" >&5
10964 echo "${ECHO_T}no" >&6; }
10969 if test "$PKG_CONFIG" = "no" ; then
10972 PKG_CONFIG_MIN_VERSION
=0.9.0
10973 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10974 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10975 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10977 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10978 { echo "$as_me:$LINENO: result: yes" >&5
10979 echo "${ECHO_T}yes" >&6; }
10982 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10983 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10984 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10985 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10986 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10988 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10989 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10990 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10991 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10992 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10994 { echo "$as_me:$LINENO: result: no" >&5
10995 echo "${ECHO_T}no" >&6; }
10998 ## If we have a custom action on failure, don't print errors, but
10999 ## do set a variable so people can do so.
11000 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11007 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11008 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11012 if test $succeeded = yes; then
11021 if test ".${RSVG_CFLAGS}" != "."; then
11024 cat >>confdefs.h
<<\_ACEOF
11025 #define HAVE_RSVG 1
11028 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11029 LIBS
="$RSVG_LIBS $LIBS"
11036 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11039 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11044 # Extract the first word of "pkg-config", so it can be a program name with args.
11045 set dummy pkg-config
; ac_word
=$2
11046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11048 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11049 echo $ECHO_N "(cached) $ECHO_C" >&6
11051 case $PKG_CONFIG in
11053 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11057 for as_dir
in $PATH
11060 test -z "$as_dir" && as_dir
=.
11061 for ac_exec_ext
in '' $ac_executable_extensions; do
11062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11063 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11071 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11075 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11076 if test -n "$PKG_CONFIG"; then
11077 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11078 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11080 { echo "$as_me:$LINENO: result: no" >&5
11081 echo "${ECHO_T}no" >&6; }
11086 if test "$PKG_CONFIG" = "no" ; then
11089 PKG_CONFIG_MIN_VERSION
=0.9.0
11090 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11091 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11092 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11094 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11095 { echo "$as_me:$LINENO: result: yes" >&5
11096 echo "${ECHO_T}yes" >&6; }
11099 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11100 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11101 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11102 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11103 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11105 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11106 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11107 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11108 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11109 echo "${ECHO_T}$GTK_LIBS" >&6; }
11111 { echo "$as_me:$LINENO: result: no" >&5
11112 echo "${ECHO_T}no" >&6; }
11115 ## If we have a custom action on failure, don't print errors, but
11116 ## do set a variable so people can do so.
11117 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11124 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11125 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11129 if test $succeeded = yes; then
11135 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11136 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11137 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11138 { (exit 1); exit 1; }; }
11143 if test x
"$pkg_check_gtk" = xyes
; then
11147 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11148 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11149 LIBS
="$GTK_LIBS $LIBS"
11152 for ac_func
in gtk_main
11154 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11155 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11156 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11157 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11158 echo $ECHO_N "(cached) $ECHO_C" >&6
11160 cat >conftest.
$ac_ext <<_ACEOF
11163 cat confdefs.h
>>conftest.
$ac_ext
11164 cat >>conftest.
$ac_ext <<_ACEOF
11165 /* end confdefs.h. */
11166 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11167 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11168 #define $ac_func innocuous_$ac_func
11170 /* System header to define __stub macros and hopefully few prototypes,
11171 which can conflict with char $ac_func (); below.
11172 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11173 <limits.h> exists even on freestanding compilers. */
11176 # include <limits.h>
11178 # include <assert.h>
11183 /* Override any GCC internal prototype to avoid an error.
11184 Use char because int might match the return type of a GCC
11185 builtin and then its argument prototype would still apply. */
11190 /* The GNU C library defines this for functions which it implements
11191 to always fail with ENOSYS. Some functions are actually named
11192 something starting with __ and the normal name is an alias. */
11193 #if defined __stub_$ac_func || defined __stub___$ac_func
11200 return $ac_func ();
11205 rm -f conftest.
$ac_objext conftest
$ac_exeext
11206 if { (ac_try
="$ac_link"
11207 case "(($ac_try" in
11208 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11209 *) ac_try_echo=$ac_try;;
11211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11212 (eval "$ac_link") 2>conftest.er1
11214 grep -v '^ *+' conftest.er1 >conftest.err
11216 cat conftest.err >&5
11217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11218 (exit $ac_status); } && {
11219 test -z "$ac_c_werror_flag" ||
11220 test ! -s conftest.err
11221 } && test -s conftest$ac_exeext &&
11222 $as_test_x conftest$ac_exeext; then
11223 eval "$as_ac_var=yes"
11225 echo "$as_me: failed program was:" >&5
11226 sed 's/^/| /' conftest.$ac_ext >&5
11228 eval "$as_ac_var=no"
11231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11232 conftest$ac_exeext conftest.$ac_ext
11234 ac_res=`eval echo '${'$as_ac_var'}'`
11235 { echo "$as_me:$LINENO: result: $ac_res" >&5
11236 echo "${ECHO_T}$ac_res" >&6; }
11237 if test `eval echo '${'$as_ac_var'}'` = yes; then
11238 cat >>confdefs.h <<_ACEOF
11239 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11245 if test "${GTK_COMPILES}" != "yes"; then
11246 if test "$USE_X_TOOLKIT" != "maybe"; then
11247 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11248 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11249 { (exit 1); exit 1; }; };
11254 cat >>confdefs.h <<\_ACEOF
11259 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11262 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11263 closing open displays. This is no problem if you just use
11264 one display, but if you use more than one and close one of them
11265 Emacs may crash." >&5
11266 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11267 closing open displays. This is no problem if you just use
11268 one display, but if you use more than one and close one of them
11269 Emacs may crash." >&2;}
11277 if test "${HAVE_GTK}" = "yes"; then
11279 if test "$with_toolkit_scroll_bars" != no; then
11280 with_toolkit_scroll_bars=yes
11283 HAVE_GTK_MULTIDISPLAY=no
11285 for ac_func in gdk_display_open
11287 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11288 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11289 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11290 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11291 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 cat >conftest.$ac_ext <<_ACEOF
11296 cat confdefs.h >>conftest.$ac_ext
11297 cat >>conftest.$ac_ext <<_ACEOF
11298 /* end confdefs.h. */
11299 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11300 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11301 #define $ac_func innocuous_$ac_func
11303 /* System header to define __stub macros and hopefully few prototypes,
11304 which can conflict with char $ac_func (); below.
11305 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11306 <limits.h> exists even on freestanding compilers. */
11309 # include <limits.h>
11311 # include <assert.h>
11316 /* Override any GCC internal prototype to avoid an error.
11317 Use char because int might match the return type of a GCC
11318 builtin and then its argument prototype would still apply. */
11323 /* The GNU C library defines this for functions which it implements
11324 to always fail with ENOSYS. Some functions are actually named
11325 something starting with __ and the normal name is an alias. */
11326 #if defined __stub_$ac_func || defined __stub___$ac_func
11333 return $ac_func ();
11338 rm -f conftest.$ac_objext conftest$ac_exeext
11339 if { (ac_try="$ac_link"
11340 case "(($ac_try" in
11341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11342 *) ac_try_echo
=$ac_try;;
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_link") 2>conftest.er1
11347 grep -v '^ *+' conftest.er1
>conftest.err
11349 cat conftest.err
>&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } && {
11352 test -z "$ac_c_werror_flag" ||
11353 test ! -s conftest.err
11354 } && test -s conftest
$ac_exeext &&
11355 $as_test_x conftest
$ac_exeext; then
11356 eval "$as_ac_var=yes"
11358 echo "$as_me: failed program was:" >&5
11359 sed 's/^/| /' conftest.
$ac_ext >&5
11361 eval "$as_ac_var=no"
11364 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11365 conftest
$ac_exeext conftest.
$ac_ext
11367 ac_res
=`eval echo '${'$as_ac_var'}'`
11368 { echo "$as_me:$LINENO: result: $ac_res" >&5
11369 echo "${ECHO_T}$ac_res" >&6; }
11370 if test `eval echo '${'$as_ac_var'}'` = yes; then
11371 cat >>confdefs.h
<<_ACEOF
11372 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11374 HAVE_GTK_MULTIDISPLAY
=yes
11378 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11380 cat >>confdefs.h
<<\_ACEOF
11381 #define HAVE_GTK_MULTIDISPLAY 1
11386 HAVE_GTK_FILE_SELECTION
=no
11388 for ac_func
in gtk_file_selection_new
11390 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11391 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11392 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11393 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11394 echo $ECHO_N "(cached) $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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11403 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11404 #define $ac_func innocuous_$ac_func
11406 /* System header to define __stub macros and hopefully few prototypes,
11407 which can conflict with char $ac_func (); below.
11408 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11409 <limits.h> exists even on freestanding compilers. */
11412 # include <limits.h>
11414 # include <assert.h>
11419 /* Override any GCC internal prototype to avoid an error.
11420 Use char because int might match the return type of a GCC
11421 builtin and then its argument prototype would still apply. */
11426 /* The GNU C library defines this for functions which it implements
11427 to always fail with ENOSYS. Some functions are actually named
11428 something starting with __ and the normal name is an alias. */
11429 #if defined __stub_$ac_func || defined __stub___$ac_func
11436 return $ac_func ();
11441 rm -f conftest.
$ac_objext conftest
$ac_exeext
11442 if { (ac_try
="$ac_link"
11443 case "(($ac_try" in
11444 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11445 *) ac_try_echo=$ac_try;;
11447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11448 (eval "$ac_link") 2>conftest.er1
11450 grep -v '^ *+' conftest.er1 >conftest.err
11452 cat conftest.err >&5
11453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11454 (exit $ac_status); } && {
11455 test -z "$ac_c_werror_flag" ||
11456 test ! -s conftest.err
11457 } && test -s conftest$ac_exeext &&
11458 $as_test_x conftest$ac_exeext; then
11459 eval "$as_ac_var=yes"
11461 echo "$as_me: failed program was:" >&5
11462 sed 's/^/| /' conftest.$ac_ext >&5
11464 eval "$as_ac_var=no"
11467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11468 conftest$ac_exeext conftest.$ac_ext
11470 ac_res=`eval echo '${'$as_ac_var'}'`
11471 { echo "$as_me:$LINENO: result: $ac_res" >&5
11472 echo "${ECHO_T}$ac_res" >&6; }
11473 if test `eval echo '${'$as_ac_var'}'` = yes; then
11474 cat >>confdefs.h <<_ACEOF
11475 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11477 HAVE_GTK_FILE_SELECTION=yes
11482 HAVE_GTK_FILE_CHOOSER=no
11484 for ac_func in gtk_file_chooser_dialog_new
11486 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11487 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11488 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11489 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11490 echo $ECHO_N "(cached) $ECHO_C" >&6
11492 cat >conftest.$ac_ext <<_ACEOF
11495 cat confdefs.h >>conftest.$ac_ext
11496 cat >>conftest.$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11498 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11500 #define $ac_func innocuous_$ac_func
11502 /* System header to define __stub macros and hopefully few prototypes,
11503 which can conflict with char $ac_func (); below.
11504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11505 <limits.h> exists even on freestanding compilers. */
11508 # include <limits.h>
11510 # include <assert.h>
11515 /* Override any GCC internal prototype to avoid an error.
11516 Use char because int might match the return type of a GCC
11517 builtin and then its argument prototype would still apply. */
11522 /* The GNU C library defines this for functions which it implements
11523 to always fail with ENOSYS. Some functions are actually named
11524 something starting with __ and the normal name is an alias. */
11525 #if defined __stub_$ac_func || defined __stub___$ac_func
11532 return $ac_func ();
11537 rm -f conftest.$ac_objext conftest$ac_exeext
11538 if { (ac_try="$ac_link"
11539 case "(($ac_try" in
11540 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11541 *) ac_try_echo
=$ac_try;;
11543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11544 (eval "$ac_link") 2>conftest.er1
11546 grep -v '^ *+' conftest.er1
>conftest.err
11548 cat conftest.err
>&5
11549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11550 (exit $ac_status); } && {
11551 test -z "$ac_c_werror_flag" ||
11552 test ! -s conftest.err
11553 } && test -s conftest
$ac_exeext &&
11554 $as_test_x conftest
$ac_exeext; then
11555 eval "$as_ac_var=yes"
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.
$ac_ext >&5
11560 eval "$as_ac_var=no"
11563 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11564 conftest
$ac_exeext conftest.
$ac_ext
11566 ac_res
=`eval echo '${'$as_ac_var'}'`
11567 { echo "$as_me:$LINENO: result: $ac_res" >&5
11568 echo "${ECHO_T}$ac_res" >&6; }
11569 if test `eval echo '${'$as_ac_var'}'` = yes; then
11570 cat >>confdefs.h
<<_ACEOF
11571 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11573 HAVE_GTK_FILE_CHOOSER
=yes
11578 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11579 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11581 cat >>confdefs.h
<<\_ACEOF
11582 #define HAVE_GTK_FILE_BOTH 1
11587 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11588 HAVE_GTK_AND_PTHREAD
=no
11590 for ac_header
in pthread.h
11592 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11593 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11596 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 ac_res
=`eval echo '${'$as_ac_Header'}'`
11600 { echo "$as_me:$LINENO: result: $ac_res" >&5
11601 echo "${ECHO_T}$ac_res" >&6; }
11603 # Is the header compilable?
11604 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11605 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11606 cat >conftest.
$ac_ext <<_ACEOF
11609 cat confdefs.h
>>conftest.
$ac_ext
11610 cat >>conftest.
$ac_ext <<_ACEOF
11611 /* end confdefs.h. */
11612 $ac_includes_default
11613 #include <$ac_header>
11615 rm -f conftest.
$ac_objext
11616 if { (ac_try
="$ac_compile"
11617 case "(($ac_try" in
11618 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11619 *) ac_try_echo=$ac_try;;
11621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11622 (eval "$ac_compile") 2>conftest.er1
11624 grep -v '^ *+' conftest.er1 >conftest.err
11626 cat conftest.err >&5
11627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11628 (exit $ac_status); } && {
11629 test -z "$ac_c_werror_flag" ||
11630 test ! -s conftest.err
11631 } && test -s conftest.$ac_objext; then
11632 ac_header_compiler=yes
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11637 ac_header_compiler=no
11640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11641 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11642 echo "${ECHO_T}$ac_header_compiler" >&6; }
11644 # Is the header present?
11645 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11646 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11647 cat >conftest.$ac_ext <<_ACEOF
11650 cat confdefs.h >>conftest.$ac_ext
11651 cat >>conftest.$ac_ext <<_ACEOF
11652 /* end confdefs.h. */
11653 #include <$ac_header>
11655 if { (ac_try="$ac_cpp conftest.$ac_ext"
11656 case "(($ac_try" in
11657 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11658 *) ac_try_echo
=$ac_try;;
11660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11661 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11663 grep -v '^ *+' conftest.er1
>conftest.err
11665 cat conftest.err
>&5
11666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11667 (exit $ac_status); } >/dev
/null
&& {
11668 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11669 test ! -s conftest.err
11671 ac_header_preproc
=yes
11673 echo "$as_me: failed program was:" >&5
11674 sed 's/^/| /' conftest.
$ac_ext >&5
11676 ac_header_preproc
=no
11679 rm -f conftest.err conftest.
$ac_ext
11680 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11681 echo "${ECHO_T}$ac_header_preproc" >&6; }
11683 # So? What about this header?
11684 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11686 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11687 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11688 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11689 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11690 ac_header_preproc
=yes
11693 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11694 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11695 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11696 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11697 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11698 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11699 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11700 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11702 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11703 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11704 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11710 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11711 echo $ECHO_N "(cached) $ECHO_C" >&6
11713 eval "$as_ac_Header=\$ac_header_preproc"
11715 ac_res
=`eval echo '${'$as_ac_Header'}'`
11716 { echo "$as_me:$LINENO: result: $ac_res" >&5
11717 echo "${ECHO_T}$ac_res" >&6; }
11720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11721 cat >>confdefs.h
<<_ACEOF
11722 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11729 if test "$ac_cv_header_pthread_h"; then
11730 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11731 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11732 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11733 echo $ECHO_N "(cached) $ECHO_C" >&6
11735 ac_check_lib_save_LIBS
=$LIBS
11736 LIBS
="-lpthread $LIBS"
11737 cat >conftest.
$ac_ext <<_ACEOF
11740 cat confdefs.h
>>conftest.
$ac_ext
11741 cat >>conftest.
$ac_ext <<_ACEOF
11742 /* end confdefs.h. */
11744 /* Override any GCC internal prototype to avoid an error.
11745 Use char because int might match the return type of a GCC
11746 builtin and then its argument prototype would still apply. */
11750 char pthread_self ();
11754 return pthread_self ();
11759 rm -f conftest.
$ac_objext conftest
$ac_exeext
11760 if { (ac_try
="$ac_link"
11761 case "(($ac_try" in
11762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11763 *) ac_try_echo=$ac_try;;
11765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11766 (eval "$ac_link") 2>conftest.er1
11768 grep -v '^ *+' conftest.er1 >conftest.err
11770 cat conftest.err >&5
11771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11772 (exit $ac_status); } && {
11773 test -z "$ac_c_werror_flag" ||
11774 test ! -s conftest.err
11775 } && test -s conftest$ac_exeext &&
11776 $as_test_x conftest$ac_exeext; then
11777 ac_cv_lib_pthread_pthread_self=yes
11779 echo "$as_me: failed program was:" >&5
11780 sed 's/^/| /' conftest.$ac_ext >&5
11782 ac_cv_lib_pthread_pthread_self=no
11785 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11786 conftest$ac_exeext conftest.$ac_ext
11787 LIBS=$ac_check_lib_save_LIBS
11789 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11790 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11791 if test $ac_cv_lib_pthread_pthread_self = yes; then
11792 HAVE_GTK_AND_PTHREAD=yes
11796 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11797 case "${canonical}" in
11799 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11802 cat >>confdefs.h <<\_ACEOF
11803 #define HAVE_GTK_AND_PTHREAD 1
11811 if test "${with_dbus}" = "yes"; then
11815 # Extract the first word of "pkg-config", so it can be a program name with args.
11816 set dummy pkg-config; ac_word=$2
11817 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11818 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11819 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11820 echo $ECHO_N "(cached) $ECHO_C" >&6
11822 case $PKG_CONFIG in
11824 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11828 for as_dir in $PATH
11831 test -z "$as_dir" && as_dir=.
11832 for ac_exec_ext in '' $ac_executable_extensions; do
11833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11834 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11835 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11842 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11846 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11847 if test -n "$PKG_CONFIG"; then
11848 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11849 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11851 { echo "$as_me:$LINENO: result: no" >&5
11852 echo "${ECHO_T}no" >&6; }
11857 if test "$PKG_CONFIG" = "no" ; then
11860 PKG_CONFIG_MIN_VERSION=0.9.0
11861 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11862 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11863 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11865 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11866 { echo "$as_me:$LINENO: result: yes" >&5
11867 echo "${ECHO_T}yes" >&6; }
11870 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11871 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11872 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11873 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11874 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11876 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11877 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11878 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11879 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11880 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11882 { echo "$as_me:$LINENO: result: no" >&5
11883 echo "${ECHO_T}no" >&6; }
11886 ## If we have a custom action on failure, don't print errors, but
11887 ## do set a variable so people can do so.
11888 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11895 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11896 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11900 if test $succeeded = yes; then
11906 if test "$HAVE_DBUS" = yes; then
11908 cat >>confdefs.h <<\_ACEOF
11909 #define HAVE_DBUS 1
11916 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11917 if test "$with_xaw3d" != no; then
11918 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11919 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11920 if test "${emacs_cv_xaw3d+set}" = set; then
11921 echo $ECHO_N "(cached) $ECHO_C" >&6
11923 cat >conftest.$ac_ext <<_ACEOF
11926 cat confdefs.h >>conftest.$ac_ext
11927 cat >>conftest.$ac_ext <<_ACEOF
11928 /* end confdefs.h. */
11930 #include <X11/Intrinsic.h>
11931 #include <X11/Xaw3d/Simple.h>
11940 rm -f conftest.$ac_objext conftest$ac_exeext
11941 if { (ac_try="$ac_link"
11942 case "(($ac_try" in
11943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11944 *) ac_try_echo
=$ac_try;;
11946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11947 (eval "$ac_link") 2>conftest.er1
11949 grep -v '^ *+' conftest.er1
>conftest.err
11951 cat conftest.err
>&5
11952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11953 (exit $ac_status); } && {
11954 test -z "$ac_c_werror_flag" ||
11955 test ! -s conftest.err
11956 } && test -s conftest
$ac_exeext &&
11957 $as_test_x conftest
$ac_exeext; then
11960 echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.
$ac_ext >&5
11966 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11967 conftest
$ac_exeext conftest.
$ac_ext
11973 if test $emacs_cv_xaw3d = yes; then
11974 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11975 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11976 USE_X_TOOLKIT
=LUCID
11979 cat >>confdefs.h
<<\_ACEOF
11980 #define HAVE_XAW3D 1
11984 { echo "$as_me:$LINENO: result: no" >&5
11985 echo "${ECHO_T}no" >&6; }
11986 { echo "$as_me:$LINENO: checking for libXaw" >&5
11987 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11988 if test "${emacs_cv_xaw+set}" = set; then
11989 echo $ECHO_N "(cached) $ECHO_C" >&6
11991 cat >conftest.
$ac_ext <<_ACEOF
11994 cat confdefs.h
>>conftest.
$ac_ext
11995 cat >>conftest.
$ac_ext <<_ACEOF
11996 /* end confdefs.h. */
11998 #include <X11/Intrinsic.h>
11999 #include <X11/Xaw/Simple.h>
12008 rm -f conftest.
$ac_objext conftest
$ac_exeext
12009 if { (ac_try
="$ac_link"
12010 case "(($ac_try" in
12011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12012 *) ac_try_echo=$ac_try;;
12014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12015 (eval "$ac_link") 2>conftest.er1
12017 grep -v '^ *+' conftest.er1 >conftest.err
12019 cat conftest.err >&5
12020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12021 (exit $ac_status); } && {
12022 test -z "$ac_c_werror_flag" ||
12023 test ! -s conftest.err
12024 } && test -s conftest$ac_exeext &&
12025 $as_test_x conftest$ac_exeext; then
12028 echo "$as_me: failed program was:" >&5
12029 sed 's/^/| /' conftest.$ac_ext >&5
12034 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12035 conftest$ac_exeext conftest.$ac_ext
12038 if test $emacs_cv_xaw = yes; then
12039 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12040 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12041 USE_X_TOOLKIT=LUCID
12042 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12043 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12044 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12045 { (exit 1); exit 1; }; }
12047 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12048 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12054 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12056 if test "${USE_X_TOOLKIT}" != "none"; then
12057 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12058 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12059 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12060 echo $ECHO_N "(cached) $ECHO_C" >&6
12062 cat >conftest.$ac_ext <<_ACEOF
12065 cat confdefs.h >>conftest.$ac_ext
12066 cat >>conftest.$ac_ext <<_ACEOF
12067 /* end confdefs.h. */
12068 #include <X11/Intrinsic.h>
12072 #if XtSpecificationRelease < 6
12080 rm -f conftest.$ac_objext conftest$ac_exeext
12081 if { (ac_try="$ac_link"
12082 case "(($ac_try" in
12083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12084 *) ac_try_echo
=$ac_try;;
12086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12087 (eval "$ac_link") 2>conftest.er1
12089 grep -v '^ *+' conftest.er1
>conftest.err
12091 cat conftest.err
>&5
12092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12093 (exit $ac_status); } && {
12094 test -z "$ac_c_werror_flag" ||
12095 test ! -s conftest.err
12096 } && test -s conftest
$ac_exeext &&
12097 $as_test_x conftest
$ac_exeext; then
12098 emacs_cv_x11_toolkit_version_6
=yes
12100 echo "$as_me: failed program was:" >&5
12101 sed 's/^/| /' conftest.
$ac_ext >&5
12103 emacs_cv_x11_toolkit_version_6
=no
12106 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12107 conftest
$ac_exeext conftest.
$ac_ext
12110 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12111 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12112 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12113 echo "${ECHO_T}6 or newer" >&6; }
12115 cat >>confdefs.h
<<\_ACEOF
12116 #define HAVE_X11XTR6 1
12120 { echo "$as_me:$LINENO: result: before 6" >&5
12121 echo "${ECHO_T}before 6" >&6; }
12125 if test x
$HAVE_X11XTR6 = xyes
; then
12126 LIBS
="-lXt -lSM -lICE $LIBS"
12131 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12132 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12133 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12134 echo $ECHO_N "(cached) $ECHO_C" >&6
12136 ac_check_lib_save_LIBS
=$LIBS
12138 cat >conftest.
$ac_ext <<_ACEOF
12141 cat confdefs.h
>>conftest.
$ac_ext
12142 cat >>conftest.
$ac_ext <<_ACEOF
12143 /* end confdefs.h. */
12145 /* Override any GCC internal prototype to avoid an error.
12146 Use char because int might match the return type of a GCC
12147 builtin and then its argument prototype would still apply. */
12151 char XmuConvertStandardSelection ();
12155 return XmuConvertStandardSelection ();
12160 rm -f conftest.
$ac_objext conftest
$ac_exeext
12161 if { (ac_try
="$ac_link"
12162 case "(($ac_try" in
12163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12164 *) ac_try_echo=$ac_try;;
12166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12167 (eval "$ac_link") 2>conftest.er1
12169 grep -v '^ *+' conftest.er1 >conftest.err
12171 cat conftest.err >&5
12172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173 (exit $ac_status); } && {
12174 test -z "$ac_c_werror_flag" ||
12175 test ! -s conftest.err
12176 } && test -s conftest$ac_exeext &&
12177 $as_test_x conftest$ac_exeext; then
12178 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12180 echo "$as_me: failed program was:" >&5
12181 sed 's/^/| /' conftest.$ac_ext >&5
12183 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12187 conftest$ac_exeext conftest.$ac_ext
12188 LIBS=$ac_check_lib_save_LIBS
12190 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12191 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12192 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12193 cat >>confdefs.h <<_ACEOF
12194 #define HAVE_LIBXMU 1
12201 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12204 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12205 if test "${HAVE_X11}" = "yes"; then
12206 if test "${USE_X_TOOLKIT}" != "none"; then
12208 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12209 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12210 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12211 echo $ECHO_N "(cached) $ECHO_C" >&6
12213 ac_check_lib_save_LIBS=$LIBS
12214 LIBS="-lXext $LIBS"
12215 cat >conftest.$ac_ext <<_ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12222 /* Override any GCC internal prototype to avoid an error.
12223 Use char because int might match the return type of a GCC
12224 builtin and then its argument prototype would still apply. */
12228 char XShapeQueryExtension ();
12232 return XShapeQueryExtension ();
12237 rm -f conftest.$ac_objext conftest$ac_exeext
12238 if { (ac_try="$ac_link"
12239 case "(($ac_try" in
12240 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12241 *) ac_try_echo
=$ac_try;;
12243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12244 (eval "$ac_link") 2>conftest.er1
12246 grep -v '^ *+' conftest.er1
>conftest.err
12248 cat conftest.err
>&5
12249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12250 (exit $ac_status); } && {
12251 test -z "$ac_c_werror_flag" ||
12252 test ! -s conftest.err
12253 } && test -s conftest
$ac_exeext &&
12254 $as_test_x conftest
$ac_exeext; then
12255 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12257 echo "$as_me: failed program was:" >&5
12258 sed 's/^/| /' conftest.
$ac_ext >&5
12260 ac_cv_lib_Xext_XShapeQueryExtension
=no
12263 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12264 conftest
$ac_exeext conftest.
$ac_ext
12265 LIBS
=$ac_check_lib_save_LIBS
12267 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12268 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12269 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12270 cat >>confdefs.h
<<_ACEOF
12271 #define HAVE_LIBXEXT 1
12274 LIBS
="-lXext $LIBS"
12281 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12282 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12283 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12284 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12285 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 cat >conftest.
$ac_ext <<_ACEOF
12290 cat confdefs.h
>>conftest.
$ac_ext
12291 cat >>conftest.
$ac_ext <<_ACEOF
12292 /* end confdefs.h. */
12297 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12300 Motif version prior to 2.1.
12306 rm -f conftest.
$ac_objext
12307 if { (ac_try
="$ac_compile"
12308 case "(($ac_try" in
12309 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12310 *) ac_try_echo=$ac_try;;
12312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12313 (eval "$ac_compile") 2>conftest.er1
12315 grep -v '^ *+' conftest.er1 >conftest.err
12317 cat conftest.err >&5
12318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12319 (exit $ac_status); } && {
12320 test -z "$ac_c_werror_flag" ||
12321 test ! -s conftest.err
12322 } && test -s conftest.$ac_objext; then
12323 emacs_cv_motif_version_2_1=yes
12325 echo "$as_me: failed program was:" >&5
12326 sed 's/^/| /' conftest.$ac_ext >&5
12328 emacs_cv_motif_version_2_1=no
12331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12333 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12334 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12335 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12336 if test $emacs_cv_motif_version_2_1 = yes; then
12339 cat >>confdefs.h <<\_ACEOF
12340 #define HAVE_MOTIF_2_1 1
12343 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12344 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12345 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12346 echo $ECHO_N "(cached) $ECHO_C" >&6
12348 ac_check_lib_save_LIBS=$LIBS
12350 cat >conftest.$ac_ext <<_ACEOF
12353 cat confdefs.h >>conftest.$ac_ext
12354 cat >>conftest.$ac_ext <<_ACEOF
12355 /* end confdefs.h. */
12357 /* Override any GCC internal prototype to avoid an error.
12358 Use char because int might match the return type of a GCC
12359 builtin and then its argument prototype would still apply. */
12363 char XpCreateContext ();
12367 return XpCreateContext ();
12372 rm -f conftest.$ac_objext conftest$ac_exeext
12373 if { (ac_try="$ac_link"
12374 case "(($ac_try" in
12375 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12376 *) ac_try_echo
=$ac_try;;
12378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12379 (eval "$ac_link") 2>conftest.er1
12381 grep -v '^ *+' conftest.er1
>conftest.err
12383 cat conftest.err
>&5
12384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12385 (exit $ac_status); } && {
12386 test -z "$ac_c_werror_flag" ||
12387 test ! -s conftest.err
12388 } && test -s conftest
$ac_exeext &&
12389 $as_test_x conftest
$ac_exeext; then
12390 ac_cv_lib_Xp_XpCreateContext
=yes
12392 echo "$as_me: failed program was:" >&5
12393 sed 's/^/| /' conftest.
$ac_ext >&5
12395 ac_cv_lib_Xp_XpCreateContext
=no
12398 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12399 conftest
$ac_exeext conftest.
$ac_ext
12400 LIBS
=$ac_check_lib_save_LIBS
12402 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12403 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12404 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12408 if test ${HAVE_LIBXP} = yes; then
12410 cat >>confdefs.h
<<\_ACEOF
12411 #define HAVE_LIBXP 1
12416 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12417 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12418 if test "${emacs_cv_lesstif+set}" = set; then
12419 echo $ECHO_N "(cached) $ECHO_C" >&6
12421 # We put this in CFLAGS temporarily to precede other -I options
12422 # that might be in CFLAGS temporarily.
12423 # We put this in CPPFLAGS where it precedes the other -I options.
12424 OLD_CPPFLAGS
=$CPPFLAGS
12426 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12427 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12428 cat >conftest.
$ac_ext <<_ACEOF
12431 cat confdefs.h
>>conftest.
$ac_ext
12432 cat >>conftest.
$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12434 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12443 rm -f conftest.
$ac_objext
12444 if { (ac_try
="$ac_compile"
12445 case "(($ac_try" in
12446 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12447 *) ac_try_echo=$ac_try;;
12449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12450 (eval "$ac_compile") 2>conftest.er1
12452 grep -v '^ *+' conftest.er1 >conftest.err
12454 cat conftest.err >&5
12455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12456 (exit $ac_status); } && {
12457 test -z "$ac_c_werror_flag" ||
12458 test ! -s conftest.err
12459 } && test -s conftest.$ac_objext; then
12460 emacs_cv_lesstif=yes
12462 echo "$as_me: failed program was:" >&5
12463 sed 's/^/| /' conftest.$ac_ext >&5
12465 emacs_cv_lesstif=no
12468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12470 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12471 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12472 if test $emacs_cv_lesstif = yes; then
12473 # Make sure this -I option remains in CPPFLAGS after it is set
12474 # back to REAL_CPPFLAGS.
12475 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12476 # have those other -I options anyway. Ultimately, having this
12477 # directory ultimately in CPPFLAGS will be enough.
12478 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12479 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12482 CPPFLAGS=$OLD_CPPFLAGS
12489 USE_TOOLKIT_SCROLL_BARS=no
12490 if test "${with_toolkit_scroll_bars}" != "no"; then
12491 if test "${USE_X_TOOLKIT}" != "none"; then
12492 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12493 cat >>confdefs.h <<\_ACEOF
12494 #define USE_TOOLKIT_SCROLL_BARS 1
12498 USE_TOOLKIT_SCROLL_BARS=yes
12499 elif test "${HAVE_XAW3D}" = "yes"; then
12500 cat >>confdefs.h <<\_ACEOF
12501 #define USE_TOOLKIT_SCROLL_BARS 1
12504 USE_TOOLKIT_SCROLL_BARS=yes
12506 elif test "${HAVE_GTK}" = "yes"; then
12507 cat >>confdefs.h <<\_ACEOF
12508 #define USE_TOOLKIT_SCROLL_BARS 1
12511 USE_TOOLKIT_SCROLL_BARS=yes
12512 elif test "${HAVE_CARBON}" = "yes"; then
12513 cat >>confdefs.h <<\_ACEOF
12514 #define USE_TOOLKIT_SCROLL_BARS 1
12517 USE_TOOLKIT_SCROLL_BARS=yes
12518 elif test "${HAVE_NS}" = "yes"; then
12519 cat >>confdefs.h <<\_ACEOF
12520 #define USE_TOOLKIT_SCROLL_BARS 1
12523 USE_TOOLKIT_SCROLL_BARS=yes
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 #include <X11/Xlib.h>
12535 #include <X11/Xresource.h>
12544 rm -f conftest.$ac_objext
12545 if { (ac_try="$ac_compile"
12546 case "(($ac_try" in
12547 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12548 *) ac_try_echo
=$ac_try;;
12550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12551 (eval "$ac_compile") 2>conftest.er1
12553 grep -v '^ *+' conftest.er1
>conftest.err
12555 cat conftest.err
>&5
12556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12557 (exit $ac_status); } && {
12558 test -z "$ac_c_werror_flag" ||
12559 test ! -s conftest.err
12560 } && test -s conftest.
$ac_objext; then
12563 cat >>confdefs.h
<<\_ACEOF
12568 echo "$as_me: failed program was:" >&5
12569 sed 's/^/| /' conftest.
$ac_ext >&5
12574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12577 if test "${with_xim}" != "no"; then
12579 cat >>confdefs.h
<<\_ACEOF
12586 if test "${HAVE_XIM}" != "no"; then
12587 late_CFLAGS
=$CFLAGS
12588 if test "$GCC" = yes; then
12589 CFLAGS
="$CFLAGS --pedantic-errors"
12591 cat >conftest.
$ac_ext <<_ACEOF
12594 cat confdefs.h
>>conftest.
$ac_ext
12595 cat >>conftest.
$ac_ext <<_ACEOF
12596 /* end confdefs.h. */
12598 #include <X11/Xlib.h>
12599 #include <X11/Xresource.h>
12608 XPointer *client_data;
12610 /* If we're not using GCC, it's probably not XFree86, and this is
12611 probably right, but we can't use something like --pedantic-errors. */
12612 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12613 char*, XIMProc, XPointer*);
12615 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12621 rm -f conftest.
$ac_objext
12622 if { (ac_try
="$ac_compile"
12623 case "(($ac_try" in
12624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_compile") 2>conftest.er1
12630 grep -v '^ *+' conftest.er1 >conftest.err
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } && {
12635 test -z "$ac_c_werror_flag" ||
12636 test ! -s conftest.err
12637 } && test -s conftest.$ac_objext; then
12638 emacs_cv_arg6_star=yes
12640 echo "$as_me: failed program was:" >&5
12641 sed 's/^/| /' conftest.$ac_ext >&5
12646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12648 if test "$emacs_cv_arg6_star" = yes; then
12649 cat >>confdefs.h <<\_ACEOF
12650 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12654 cat >>confdefs.h <<\_ACEOF
12655 #define XRegisterIMInstantiateCallback_arg6 XPointer
12659 CFLAGS=$late_CFLAGS
12662 ### Start of font-backend section.
12664 ## Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12666 if test "x${with_freetype}" = "xno"; then
12669 if test "x${with_xft}" != "xno"; then
12674 # Extract the first word of "pkg-config", so it can be a program name with args.
12675 set dummy pkg-config
; ac_word
=$2
12676 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12678 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12679 echo $ECHO_N "(cached) $ECHO_C" >&6
12681 case $PKG_CONFIG in
12683 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12686 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12687 for as_dir
in $PATH
12690 test -z "$as_dir" && as_dir
=.
12691 for ac_exec_ext
in '' $ac_executable_extensions; do
12692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12693 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12701 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12705 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12706 if test -n "$PKG_CONFIG"; then
12707 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12708 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12710 { echo "$as_me:$LINENO: result: no" >&5
12711 echo "${ECHO_T}no" >&6; }
12716 if test "$PKG_CONFIG" = "no" ; then
12719 PKG_CONFIG_MIN_VERSION
=0.9.0
12720 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12721 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12722 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12724 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12725 { echo "$as_me:$LINENO: result: yes" >&5
12726 echo "${ECHO_T}yes" >&6; }
12729 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12730 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12731 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12732 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12733 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12735 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12736 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12737 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12738 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12739 echo "${ECHO_T}$XFT_LIBS" >&6; }
12741 { echo "$as_me:$LINENO: result: no" >&5
12742 echo "${ECHO_T}no" >&6; }
12745 ## If we have a custom action on failure, don't print errors, but
12746 ## do set a variable so people can do so.
12747 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12754 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12755 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12759 if test $succeeded = yes; then
12765 if test "$HAVE_XFT" != no
; then
12766 OLD_CPPFLAGS
="$CPPFLAGS"
12767 OLD_CFLAGS
="$CFLAGS"
12769 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12770 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12771 LIBS
="$XFT_LIBS $LIBS"
12772 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12773 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12774 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12775 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12776 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12779 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12781 # Is the header compilable?
12782 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12783 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12784 cat >conftest.
$ac_ext <<_ACEOF
12787 cat confdefs.h
>>conftest.
$ac_ext
12788 cat >>conftest.
$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12790 $ac_includes_default
12791 #include <X11/Xft/Xft.h>
12793 rm -f conftest.
$ac_objext
12794 if { (ac_try
="$ac_compile"
12795 case "(($ac_try" in
12796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12797 *) ac_try_echo=$ac_try;;
12799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12800 (eval "$ac_compile") 2>conftest.er1
12802 grep -v '^ *+' conftest.er1 >conftest.err
12804 cat conftest.err >&5
12805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12806 (exit $ac_status); } && {
12807 test -z "$ac_c_werror_flag" ||
12808 test ! -s conftest.err
12809 } && test -s conftest.$ac_objext; then
12810 ac_header_compiler=yes
12812 echo "$as_me: failed program was:" >&5
12813 sed 's/^/| /' conftest.$ac_ext >&5
12815 ac_header_compiler=no
12818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12820 echo "${ECHO_T}$ac_header_compiler" >&6; }
12822 # Is the header present?
12823 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12824 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12825 cat >conftest.$ac_ext <<_ACEOF
12828 cat confdefs.h >>conftest.$ac_ext
12829 cat >>conftest.$ac_ext <<_ACEOF
12830 /* end confdefs.h. */
12831 #include <X11/Xft/Xft.h>
12833 if { (ac_try="$ac_cpp conftest.$ac_ext"
12834 case "(($ac_try" in
12835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12836 *) ac_try_echo
=$ac_try;;
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12841 grep -v '^ *+' conftest.er1
>conftest.err
12843 cat conftest.err
>&5
12844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845 (exit $ac_status); } >/dev
/null
&& {
12846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12847 test ! -s conftest.err
12849 ac_header_preproc
=yes
12851 echo "$as_me: failed program was:" >&5
12852 sed 's/^/| /' conftest.
$ac_ext >&5
12854 ac_header_preproc
=no
12857 rm -f conftest.err conftest.
$ac_ext
12858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12859 echo "${ECHO_T}$ac_header_preproc" >&6; }
12861 # So? What about this header?
12862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12864 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12865 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12866 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12867 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12868 ac_header_preproc
=yes
12871 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12872 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12873 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12874 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12875 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12876 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12877 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12878 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12879 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12880 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12881 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12882 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12886 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12887 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12888 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12889 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12893 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12894 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12897 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12898 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12899 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12900 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12901 echo $ECHO_N "(cached) $ECHO_C" >&6
12903 ac_check_lib_save_LIBS
=$LIBS
12904 LIBS
="-lXft $XFT_LIBS $LIBS"
12905 cat >conftest.
$ac_ext <<_ACEOF
12908 cat confdefs.h
>>conftest.
$ac_ext
12909 cat >>conftest.
$ac_ext <<_ACEOF
12910 /* end confdefs.h. */
12912 /* Override any GCC internal prototype to avoid an error.
12913 Use char because int might match the return type of a GCC
12914 builtin and then its argument prototype would still apply. */
12918 char XftFontOpen ();
12922 return XftFontOpen ();
12927 rm -f conftest.
$ac_objext conftest
$ac_exeext
12928 if { (ac_try
="$ac_link"
12929 case "(($ac_try" in
12930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12931 *) ac_try_echo=$ac_try;;
12933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12934 (eval "$ac_link") 2>conftest.er1
12936 grep -v '^ *+' conftest.er1 >conftest.err
12938 cat conftest.err >&5
12939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12940 (exit $ac_status); } && {
12941 test -z "$ac_c_werror_flag" ||
12942 test ! -s conftest.err
12943 } && test -s conftest$ac_exeext &&
12944 $as_test_x conftest$ac_exeext; then
12945 ac_cv_lib_Xft_XftFontOpen=yes
12947 echo "$as_me: failed program was:" >&5
12948 sed 's/^/| /' conftest.$ac_ext >&5
12950 ac_cv_lib_Xft_XftFontOpen=no
12953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12954 conftest$ac_exeext conftest.$ac_ext
12955 LIBS=$ac_check_lib_save_LIBS
12957 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12958 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12959 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12967 if test "${HAVE_XFT}" = "yes"; then
12969 cat >>confdefs.h <<\_ACEOF
12974 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12976 CPPFLAGS="$OLD_CPPFLAGS"
12977 CFLAGS="$OLD_CFLAGS"
12979 fi # "${HAVE_XFT}" = "yes"
12980 fi # "$HAVE_XFT" != no
12981 fi # "x${with_xft}" != "xno"
12983 if test "$HAVE_XFT" != "yes"; then
12989 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12990 if test "${HAVE_XFT}" = "yes"; then
12992 elif test "x${with_freetype}" != "xno"; then
12997 # Extract the first word of "pkg-config", so it can be a program name with args.
12998 set dummy pkg-config; ac_word=$2
12999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13001 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13002 echo $ECHO_N "(cached) $ECHO_C" >&6
13004 case $PKG_CONFIG in
13006 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13010 for as_dir in $PATH
13013 test -z "$as_dir" && as_dir=.
13014 for ac_exec_ext in '' $ac_executable_extensions; do
13015 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13016 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13017 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13024 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13028 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13029 if test -n "$PKG_CONFIG"; then
13030 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13031 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13033 { echo "$as_me:$LINENO: result: no" >&5
13034 echo "${ECHO_T}no" >&6; }
13039 if test "$PKG_CONFIG" = "no" ; then
13042 PKG_CONFIG_MIN_VERSION=0.9.0
13043 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13044 { echo "$as_me:$LINENO: checking for freetype2" >&5
13045 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13047 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13048 { echo "$as_me:$LINENO: result: yes" >&5
13049 echo "${ECHO_T}yes" >&6; }
13052 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13053 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13054 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
13055 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13056 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13058 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13059 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13060 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
13061 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13062 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13064 { echo "$as_me:$LINENO: result: no" >&5
13065 echo "${ECHO_T}no" >&6; }
13068 ## If we have a custom action on failure, don't print errors
, but
13069 ## do set a variable so people can do so.
13070 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13077 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13078 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13082 if test $succeeded = yes; then
13088 if test "${HAVE_FREETYPE}" = "yes"; then
13092 # Extract the first word of "pkg-config", so it can be a program name with args.
13093 set dummy pkg-config
; ac_word
=$2
13094 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13095 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13096 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13097 echo $ECHO_N "(cached) $ECHO_C" >&6
13099 case $PKG_CONFIG in
13101 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13105 for as_dir
in $PATH
13108 test -z "$as_dir" && as_dir
=.
13109 for ac_exec_ext
in '' $ac_executable_extensions; do
13110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13111 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13112 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13119 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13123 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13124 if test -n "$PKG_CONFIG"; then
13125 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13126 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13128 { echo "$as_me:$LINENO: result: no" >&5
13129 echo "${ECHO_T}no" >&6; }
13134 if test "$PKG_CONFIG" = "no" ; then
13137 PKG_CONFIG_MIN_VERSION
=0.9.0
13138 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13139 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13140 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13142 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13143 { echo "$as_me:$LINENO: result: yes" >&5
13144 echo "${ECHO_T}yes" >&6; }
13147 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13148 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13149 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13150 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13151 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13153 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13154 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13155 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13156 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13157 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13159 { echo "$as_me:$LINENO: result: no" >&5
13160 echo "${ECHO_T}no" >&6; }
13161 FONTCONFIG_CFLAGS
=""
13163 ## If we have a custom action on failure, don't print errors, but
13164 ## do set a variable so people can do so.
13165 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13172 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13173 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13177 if test $succeeded = yes; then
13183 if test "${HAVE_FC}" = "no"; then
13190 if test "${HAVE_FREETYPE}" = "yes"; then
13192 cat >>confdefs.h
<<\_ACEOF
13193 #define HAVE_FREETYPE 1
13196 if test "${with_libotf}" != "no"; then
13200 # Extract the first word of "pkg-config", so it can be a program name with args.
13201 set dummy pkg-config
; ac_word
=$2
13202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13204 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13205 echo $ECHO_N "(cached) $ECHO_C" >&6
13207 case $PKG_CONFIG in
13209 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13213 for as_dir
in $PATH
13216 test -z "$as_dir" && as_dir
=.
13217 for ac_exec_ext
in '' $ac_executable_extensions; do
13218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13219 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13220 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13227 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13231 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13232 if test -n "$PKG_CONFIG"; then
13233 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13234 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13236 { echo "$as_me:$LINENO: result: no" >&5
13237 echo "${ECHO_T}no" >&6; }
13242 if test "$PKG_CONFIG" = "no" ; then
13245 PKG_CONFIG_MIN_VERSION
=0.9.0
13246 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13247 { echo "$as_me:$LINENO: checking for libotf" >&5
13248 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13250 if $PKG_CONFIG --exists "libotf" 2>&5; then
13251 { echo "$as_me:$LINENO: result: yes" >&5
13252 echo "${ECHO_T}yes" >&6; }
13255 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13256 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13257 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13258 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13259 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13261 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13262 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13263 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13264 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13265 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13267 { echo "$as_me:$LINENO: result: no" >&5
13268 echo "${ECHO_T}no" >&6; }
13271 ## If we have a custom action on failure, don't print errors, but
13272 ## do set a variable so people can do so.
13273 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13280 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13281 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13285 if test $succeeded = yes; then
13291 if test "$HAVE_LIBOTF" = "yes"; then
13293 cat >>confdefs.h
<<\_ACEOF
13294 #define HAVE_LIBOTF 1
13302 if test "${with_m17n_flt}" != "no"; then
13306 # Extract the first word of "pkg-config", so it can be a program name with args.
13307 set dummy pkg-config
; ac_word
=$2
13308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13310 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 case $PKG_CONFIG in
13315 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13318 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13319 for as_dir
in $PATH
13322 test -z "$as_dir" && as_dir
=.
13323 for ac_exec_ext
in '' $ac_executable_extensions; do
13324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13325 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13326 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13333 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13337 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13338 if test -n "$PKG_CONFIG"; then
13339 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13340 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13342 { echo "$as_me:$LINENO: result: no" >&5
13343 echo "${ECHO_T}no" >&6; }
13348 if test "$PKG_CONFIG" = "no" ; then
13351 PKG_CONFIG_MIN_VERSION
=0.9.0
13352 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13353 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13354 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13356 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13357 { echo "$as_me:$LINENO: result: yes" >&5
13358 echo "${ECHO_T}yes" >&6; }
13361 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13362 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13363 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13364 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13365 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13367 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13368 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13369 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13370 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13371 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13373 { echo "$as_me:$LINENO: result: no" >&5
13374 echo "${ECHO_T}no" >&6; }
13377 ## If we have a custom action on failure, don't print errors, but
13378 ## do set a variable so people can do so.
13379 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13386 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13387 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13391 if test $succeeded = yes; then
13397 if test "$HAVE_M17N_FLT" = "yes"; then
13399 cat >>confdefs.h
<<\_ACEOF
13400 #define HAVE_M17N_FLT 1
13415 ### End of font-backend section.
13417 ### Use -lXpm if available, unless `--with-xpm=no'.
13419 if test "${HAVE_X11}" = "yes"; then
13420 if test "${with_xpm}" != "no"; then
13421 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13422 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13423 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13424 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13425 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13428 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13430 # Is the header compilable?
13431 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13432 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13433 cat >conftest.
$ac_ext <<_ACEOF
13436 cat confdefs.h
>>conftest.
$ac_ext
13437 cat >>conftest.
$ac_ext <<_ACEOF
13438 /* end confdefs.h. */
13439 $ac_includes_default
13440 #include <X11/xpm.h>
13442 rm -f conftest.
$ac_objext
13443 if { (ac_try
="$ac_compile"
13444 case "(($ac_try" in
13445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13446 *) ac_try_echo=$ac_try;;
13448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13449 (eval "$ac_compile") 2>conftest.er1
13451 grep -v '^ *+' conftest.er1 >conftest.err
13453 cat conftest.err >&5
13454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13455 (exit $ac_status); } && {
13456 test -z "$ac_c_werror_flag" ||
13457 test ! -s conftest.err
13458 } && test -s conftest.$ac_objext; then
13459 ac_header_compiler=yes
13461 echo "$as_me: failed program was:" >&5
13462 sed 's/^/| /' conftest.$ac_ext >&5
13464 ac_header_compiler=no
13467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13469 echo "${ECHO_T}$ac_header_compiler" >&6; }
13471 # Is the header present?
13472 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13473 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13474 cat >conftest.$ac_ext <<_ACEOF
13477 cat confdefs.h >>conftest.$ac_ext
13478 cat >>conftest.$ac_ext <<_ACEOF
13479 /* end confdefs.h. */
13480 #include <X11/xpm.h>
13482 if { (ac_try="$ac_cpp conftest.$ac_ext"
13483 case "(($ac_try" in
13484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13485 *) ac_try_echo
=$ac_try;;
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13490 grep -v '^ *+' conftest.er1
>conftest.err
13492 cat conftest.err
>&5
13493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13494 (exit $ac_status); } >/dev
/null
&& {
13495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13496 test ! -s conftest.err
13498 ac_header_preproc
=yes
13500 echo "$as_me: failed program was:" >&5
13501 sed 's/^/| /' conftest.
$ac_ext >&5
13503 ac_header_preproc
=no
13506 rm -f conftest.err conftest.
$ac_ext
13507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13508 echo "${ECHO_T}$ac_header_preproc" >&6; }
13510 # So? What about this header?
13511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13513 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13514 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13516 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13517 ac_header_preproc
=yes
13520 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13521 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13523 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13525 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13526 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13527 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13528 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13529 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13530 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13531 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13535 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13536 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13537 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13538 echo $ECHO_N "(cached) $ECHO_C" >&6
13540 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13542 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13543 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13546 if test $ac_cv_header_X11_xpm_h = yes; then
13547 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13548 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13549 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 ac_check_lib_save_LIBS
=$LIBS
13553 LIBS
="-lXpm -lX11 $LIBS"
13554 cat >conftest.
$ac_ext <<_ACEOF
13557 cat confdefs.h
>>conftest.
$ac_ext
13558 cat >>conftest.
$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13561 /* Override any GCC internal prototype to avoid an error.
13562 Use char because int might match the return type of a GCC
13563 builtin and then its argument prototype would still apply. */
13567 char XpmReadFileToPixmap ();
13571 return XpmReadFileToPixmap ();
13576 rm -f conftest.
$ac_objext conftest
$ac_exeext
13577 if { (ac_try
="$ac_link"
13578 case "(($ac_try" in
13579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13580 *) ac_try_echo=$ac_try;;
13582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13583 (eval "$ac_link") 2>conftest.er1
13585 grep -v '^ *+' conftest.er1 >conftest.err
13587 cat conftest.err >&5
13588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589 (exit $ac_status); } && {
13590 test -z "$ac_c_werror_flag" ||
13591 test ! -s conftest.err
13592 } && test -s conftest$ac_exeext &&
13593 $as_test_x conftest$ac_exeext; then
13594 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13596 echo "$as_me: failed program was:" >&5
13597 sed 's/^/| /' conftest.$ac_ext >&5
13599 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13603 conftest$ac_exeext conftest.$ac_ext
13604 LIBS=$ac_check_lib_save_LIBS
13606 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13607 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13608 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13615 if test "${HAVE_XPM}" = "yes"; then
13616 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13617 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13618 cat >conftest.$ac_ext <<_ACEOF
13621 cat confdefs.h >>conftest.$ac_ext
13622 cat >>conftest.$ac_ext <<_ACEOF
13623 /* end confdefs.h. */
13624 #include "X11/xpm.h"
13625 #ifndef XpmReturnAllocPixels
13626 no_return_alloc_pixels
13630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13631 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13639 if test "${HAVE_XPM}" = "yes"; then
13640 { echo "$as_me:$LINENO: result: yes" >&5
13641 echo "${ECHO_T}yes" >&6; }
13643 { echo "$as_me:$LINENO: result: no" >&5
13644 echo "${ECHO_T}no" >&6; }
13649 if test "${HAVE_XPM}" = "yes"; then
13651 cat >>confdefs.h <<\_ACEOF
13658 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13660 if test "${HAVE_X11}" = "yes"; then
13661 if test "${with_jpeg}" != "no"; then
13662 if test "${ac_cv_header_jerror_h+set}" = set; then
13663 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13664 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13665 if test "${ac_cv_header_jerror_h+set}" = set; then
13666 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13669 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13671 # Is the header compilable?
13672 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13673 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13674 cat >conftest.$ac_ext <<_ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13680 $ac_includes_default
13681 #include <jerror.h>
13683 rm -f conftest.$ac_objext
13684 if { (ac_try="$ac_compile"
13685 case "(($ac_try" in
13686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687 *) ac_try_echo=$ac_try;;
13689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13690 (eval "$ac_compile") 2>conftest.er1
13692 grep -v '^
*+' conftest.er1 >conftest.err
13694 cat conftest.err >&5
13695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13696 (exit $ac_status); } && {
13697 test -z "$ac_c_werror_flag" ||
13698 test ! -s conftest.err
13699 } && test -s conftest.$ac_objext; then
13700 ac_header_compiler=yes
13702 echo "$as_me: failed program was:" >&5
13703 sed 's
/^
/|
/' conftest.$ac_ext >&5
13705 ac_header_compiler=no
13708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13709 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13710 echo "${ECHO_T}$ac_header_compiler" >&6; }
13712 # Is the header present?
13713 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13714 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13715 cat >conftest.$ac_ext <<_ACEOF
13718 cat confdefs.h >>conftest.$ac_ext
13719 cat >>conftest.$ac_ext <<_ACEOF
13720 /* end confdefs.h. */
13721 #include <jerror.h>
13723 if { (ac_try="$ac_cpp conftest.$ac_ext"
13724 case "(($ac_try" in
13725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13726 *) ac_try_echo=$ac_try;;
13728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13731 grep -v '^
*+' conftest.er1 >conftest.err
13733 cat conftest.err >&5
13734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13735 (exit $ac_status); } >/dev/null && {
13736 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13737 test ! -s conftest.err
13739 ac_header_preproc=yes
13741 echo "$as_me: failed program was:" >&5
13742 sed 's
/^
/|
/' conftest.$ac_ext >&5
13744 ac_header_preproc=no
13747 rm -f conftest.err conftest.$ac_ext
13748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13749 echo "${ECHO_T}$ac_header_preproc" >&6; }
13751 # So? What about this header?
13752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13754 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13755 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13756 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13757 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13758 ac_header_preproc=yes
13761 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13762 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13763 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13764 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13765 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13766 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13767 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13768 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13769 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13770 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13771 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13772 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13776 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13777 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13778 if test "${ac_cv_header_jerror_h+set}" = set; then
13779 echo $ECHO_N "(cached) $ECHO_C" >&6
13781 ac_cv_header_jerror_h=$ac_header_preproc
13783 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13784 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13787 if test $ac_cv_header_jerror_h = yes; then
13788 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13789 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13790 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13791 echo $ECHO_N "(cached) $ECHO_C" >&6
13793 ac_check_lib_save_LIBS=$LIBS
13794 LIBS="-ljpeg $LIBS"
13795 cat >conftest.$ac_ext <<_ACEOF
13798 cat confdefs.h >>conftest.$ac_ext
13799 cat >>conftest.$ac_ext <<_ACEOF
13800 /* end confdefs.h. */
13802 /* Override any GCC internal prototype to avoid an error.
13803 Use char because int might match the return type of a GCC
13804 builtin and then its argument prototype would still apply. */
13808 char jpeg_destroy_compress ();
13812 return jpeg_destroy_compress ();
13817 rm -f conftest.$ac_objext conftest$ac_exeext
13818 if { (ac_try="$ac_link"
13819 case "(($ac_try" in
13820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13821 *) ac_try_echo=$ac_try;;
13823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13824 (eval "$ac_link") 2>conftest.er1
13826 grep -v '^
*+' conftest.er1 >conftest.err
13828 cat conftest.err >&5
13829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13830 (exit $ac_status); } && {
13831 test -z "$ac_c_werror_flag" ||
13832 test ! -s conftest.err
13833 } && test -s conftest$ac_exeext &&
13834 $as_test_x conftest$ac_exeext; then
13835 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13837 echo "$as_me: failed program was:" >&5
13838 sed 's
/^
/|
/' conftest.$ac_ext >&5
13840 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13843 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13844 conftest$ac_exeext conftest.$ac_ext
13845 LIBS=$ac_check_lib_save_LIBS
13847 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13848 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13849 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13859 if test "${HAVE_JPEG}" = "yes"; then
13860 cat >>confdefs.h <<\_ACEOF
13861 #define HAVE_JPEG 1
13864 cat >conftest.$ac_ext <<_ACEOF
13867 cat confdefs.h >>conftest.$ac_ext
13868 cat >>conftest.$ac_ext <<_ACEOF
13869 /* end confdefs.h. */
13870 #include <jpeglib.h>
13871 version=JPEG_LIB_VERSION
13874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13875 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13876 cat >>confdefs.h <<\_ACEOF
13877 #define HAVE_JPEG 1
13881 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13882 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13890 ### Use -lpng if available, unless `--with-png=no'.
13892 if test "${HAVE_X11}" = "yes"; then
13893 if test "${with_png}" != "no"; then
13894 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13895 # in /usr/include/libpng.
13898 for ac_header
in png.h libpng
/png.h
13900 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13901 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13902 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13903 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13904 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13905 echo $ECHO_N "(cached) $ECHO_C" >&6
13907 ac_res
=`eval echo '${'$as_ac_Header'}'`
13908 { echo "$as_me:$LINENO: result: $ac_res" >&5
13909 echo "${ECHO_T}$ac_res" >&6; }
13911 # Is the header compilable?
13912 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13913 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13914 cat >conftest.
$ac_ext <<_ACEOF
13917 cat confdefs.h
>>conftest.
$ac_ext
13918 cat >>conftest.
$ac_ext <<_ACEOF
13919 /* end confdefs.h. */
13920 $ac_includes_default
13921 #include <$ac_header>
13923 rm -f conftest.
$ac_objext
13924 if { (ac_try
="$ac_compile"
13925 case "(($ac_try" in
13926 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13927 *) ac_try_echo=$ac_try;;
13929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13930 (eval "$ac_compile") 2>conftest.er1
13932 grep -v '^ *+' conftest.er1 >conftest.err
13934 cat conftest.err >&5
13935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13936 (exit $ac_status); } && {
13937 test -z "$ac_c_werror_flag" ||
13938 test ! -s conftest.err
13939 } && test -s conftest.$ac_objext; then
13940 ac_header_compiler=yes
13942 echo "$as_me: failed program was:" >&5
13943 sed 's/^/| /' conftest.$ac_ext >&5
13945 ac_header_compiler=no
13948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13949 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13950 echo "${ECHO_T}$ac_header_compiler" >&6; }
13952 # Is the header present?
13953 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13954 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13955 cat >conftest.$ac_ext <<_ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13961 #include <$ac_header>
13963 if { (ac_try="$ac_cpp conftest.$ac_ext"
13964 case "(($ac_try" in
13965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13966 *) ac_try_echo
=$ac_try;;
13968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13969 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13971 grep -v '^ *+' conftest.er1
>conftest.err
13973 cat conftest.err
>&5
13974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13975 (exit $ac_status); } >/dev
/null
&& {
13976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13977 test ! -s conftest.err
13979 ac_header_preproc
=yes
13981 echo "$as_me: failed program was:" >&5
13982 sed 's/^/| /' conftest.
$ac_ext >&5
13984 ac_header_preproc
=no
13987 rm -f conftest.err conftest.
$ac_ext
13988 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13989 echo "${ECHO_T}$ac_header_preproc" >&6; }
13991 # So? What about this header?
13992 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13994 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13995 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13996 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13997 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13998 ac_header_preproc
=yes
14001 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14002 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14003 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14004 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14005 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14006 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14007 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14008 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14009 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14010 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14011 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14012 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14018 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14019 echo $ECHO_N "(cached) $ECHO_C" >&6
14021 eval "$as_ac_Header=\$ac_header_preproc"
14023 ac_res
=`eval echo '${'$as_ac_Header'}'`
14024 { echo "$as_me:$LINENO: result: $ac_res" >&5
14025 echo "${ECHO_T}$ac_res" >&6; }
14028 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14029 cat >>confdefs.h
<<_ACEOF
14030 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14037 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
14038 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14039 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14040 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14041 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 ac_check_lib_save_LIBS
=$LIBS
14044 LIBS
="-lpng -lz -lm $LIBS"
14045 cat >conftest.
$ac_ext <<_ACEOF
14048 cat confdefs.h
>>conftest.
$ac_ext
14049 cat >>conftest.
$ac_ext <<_ACEOF
14050 /* end confdefs.h. */
14052 /* Override any GCC internal prototype to avoid an error.
14053 Use char because int might match the return type of a GCC
14054 builtin and then its argument prototype would still apply. */
14058 char png_get_channels ();
14062 return png_get_channels ();
14067 rm -f conftest.
$ac_objext conftest
$ac_exeext
14068 if { (ac_try
="$ac_link"
14069 case "(($ac_try" in
14070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14071 *) ac_try_echo=$ac_try;;
14073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14074 (eval "$ac_link") 2>conftest.er1
14076 grep -v '^ *+' conftest.er1 >conftest.err
14078 cat conftest.err >&5
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); } && {
14081 test -z "$ac_c_werror_flag" ||
14082 test ! -s conftest.err
14083 } && test -s conftest$ac_exeext &&
14084 $as_test_x conftest$ac_exeext; then
14085 ac_cv_lib_png_png_get_channels=yes
14087 echo "$as_me: failed program was:" >&5
14088 sed 's/^/| /' conftest.$ac_ext >&5
14090 ac_cv_lib_png_png_get_channels=no
14093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14094 conftest$ac_exeext conftest.$ac_ext
14095 LIBS=$ac_check_lib_save_LIBS
14097 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14098 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14099 if test $ac_cv_lib_png_png_get_channels = yes; then
14106 if test "${HAVE_PNG}" = "yes"; then
14108 cat >>confdefs.h <<\_ACEOF
14115 ### Use -ltiff if available, unless `--with-tiff=no
'.
14117 if test "${HAVE_X11}" = "yes"; then
14118 if test "${with_tiff}" != "no"; then
14119 if test "${ac_cv_header_tiffio_h+set}" = set; then
14120 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14121 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14122 if test "${ac_cv_header_tiffio_h+set}" = set; then
14123 echo $ECHO_N "(cached) $ECHO_C" >&6
14125 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14126 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14128 # Is the header compilable?
14129 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14130 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14131 cat >conftest.$ac_ext <<_ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14137 $ac_includes_default
14138 #include <tiffio.h>
14140 rm -f conftest.$ac_objext
14141 if { (ac_try="$ac_compile"
14142 case "(($ac_try" in
14143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14144 *) ac_try_echo=$ac_try;;
14146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14147 (eval "$ac_compile") 2>conftest.er1
14149 grep -v '^
*+' conftest.er1 >conftest.err
14151 cat conftest.err >&5
14152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14153 (exit $ac_status); } && {
14154 test -z "$ac_c_werror_flag" ||
14155 test ! -s conftest.err
14156 } && test -s conftest.$ac_objext; then
14157 ac_header_compiler=yes
14159 echo "$as_me: failed program was:" >&5
14160 sed 's
/^
/|
/' conftest.$ac_ext >&5
14162 ac_header_compiler=no
14165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14167 echo "${ECHO_T}$ac_header_compiler" >&6; }
14169 # Is the header present?
14170 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14171 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14172 cat >conftest.$ac_ext <<_ACEOF
14175 cat confdefs.h >>conftest.$ac_ext
14176 cat >>conftest.$ac_ext <<_ACEOF
14177 /* end confdefs.h. */
14178 #include <tiffio.h>
14180 if { (ac_try="$ac_cpp conftest.$ac_ext"
14181 case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14188 grep -v '^
*+' conftest.er1 >conftest.err
14190 cat conftest.err >&5
14191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14192 (exit $ac_status); } >/dev/null && {
14193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14194 test ! -s conftest.err
14196 ac_header_preproc=yes
14198 echo "$as_me: failed program was:" >&5
14199 sed 's
/^
/|
/' conftest.$ac_ext >&5
14201 ac_header_preproc=no
14204 rm -f conftest.err conftest.$ac_ext
14205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14206 echo "${ECHO_T}$ac_header_preproc" >&6; }
14208 # So? What about this header?
14209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14211 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14212 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14213 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14214 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14215 ac_header_preproc=yes
14218 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14219 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14220 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14221 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14222 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14223 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14224 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14225 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14226 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14227 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14228 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14229 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14233 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14234 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14235 if test "${ac_cv_header_tiffio_h+set}" = set; then
14236 echo $ECHO_N "(cached) $ECHO_C" >&6
14238 ac_cv_header_tiffio_h=$ac_header_preproc
14240 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14241 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14244 if test $ac_cv_header_tiffio_h = yes; then
14246 # At least one tiff package requires the jpeg library.
14247 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14248 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14249 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14250 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14253 ac_check_lib_save_LIBS=$LIBS
14254 LIBS="-ltiff $tifflibs $LIBS"
14255 cat >conftest.$ac_ext <<_ACEOF
14258 cat confdefs.h >>conftest.$ac_ext
14259 cat >>conftest.$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14262 /* Override any GCC internal prototype to avoid an error.
14263 Use char because int might match the return type of a GCC
14264 builtin and then its argument prototype would still apply. */
14268 char TIFFGetVersion ();
14272 return TIFFGetVersion ();
14277 rm -f conftest.$ac_objext conftest$ac_exeext
14278 if { (ac_try="$ac_link"
14279 case "(($ac_try" in
14280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14281 *) ac_try_echo=$ac_try;;
14283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14284 (eval "$ac_link") 2>conftest.er1
14286 grep -v '^
*+' conftest.er1 >conftest.err
14288 cat conftest.err >&5
14289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14290 (exit $ac_status); } && {
14291 test -z "$ac_c_werror_flag" ||
14292 test ! -s conftest.err
14293 } && test -s conftest$ac_exeext &&
14294 $as_test_x conftest$ac_exeext; then
14295 ac_cv_lib_tiff_TIFFGetVersion=yes
14297 echo "$as_me: failed program was:" >&5
14298 sed 's
/^
/|
/' conftest.$ac_ext >&5
14300 ac_cv_lib_tiff_TIFFGetVersion=no
14303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14304 conftest$ac_exeext conftest.$ac_ext
14305 LIBS=$ac_check_lib_save_LIBS
14307 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14308 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14309 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14318 if test "${HAVE_TIFF}" = "yes"; then
14320 cat >>confdefs.h <<\_ACEOF
14321 #define HAVE_TIFF 1
14327 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14329 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14330 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14331 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14332 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14333 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14334 echo $ECHO_N "(cached) $ECHO_C" >&6
14336 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14337 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14339 # Is the header compilable?
14340 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14341 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14342 cat >conftest.
$ac_ext <<_ACEOF
14345 cat confdefs.h
>>conftest.
$ac_ext
14346 cat >>conftest.
$ac_ext <<_ACEOF
14347 /* end confdefs.h. */
14348 $ac_includes_default
14349 #include <gif_lib.h>
14351 rm -f conftest.
$ac_objext
14352 if { (ac_try
="$ac_compile"
14353 case "(($ac_try" in
14354 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14355 *) ac_try_echo=$ac_try;;
14357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14358 (eval "$ac_compile") 2>conftest.er1
14360 grep -v '^ *+' conftest.er1 >conftest.err
14362 cat conftest.err >&5
14363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14364 (exit $ac_status); } && {
14365 test -z "$ac_c_werror_flag" ||
14366 test ! -s conftest.err
14367 } && test -s conftest.$ac_objext; then
14368 ac_header_compiler=yes
14370 echo "$as_me: failed program was:" >&5
14371 sed 's/^/| /' conftest.$ac_ext >&5
14373 ac_header_compiler=no
14376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14378 echo "${ECHO_T}$ac_header_compiler" >&6; }
14380 # Is the header present?
14381 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14382 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14383 cat >conftest.$ac_ext <<_ACEOF
14386 cat confdefs.h >>conftest.$ac_ext
14387 cat >>conftest.$ac_ext <<_ACEOF
14388 /* end confdefs.h. */
14389 #include <gif_lib.h>
14391 if { (ac_try="$ac_cpp conftest.$ac_ext"
14392 case "(($ac_try" in
14393 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14394 *) ac_try_echo
=$ac_try;;
14396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14399 grep -v '^ *+' conftest.er1
>conftest.err
14401 cat conftest.err
>&5
14402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14403 (exit $ac_status); } >/dev
/null
&& {
14404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14405 test ! -s conftest.err
14407 ac_header_preproc
=yes
14409 echo "$as_me: failed program was:" >&5
14410 sed 's/^/| /' conftest.
$ac_ext >&5
14412 ac_header_preproc
=no
14415 rm -f conftest.err conftest.
$ac_ext
14416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14417 echo "${ECHO_T}$ac_header_preproc" >&6; }
14419 # So? What about this header?
14420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14422 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14423 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14424 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14425 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14426 ac_header_preproc
=yes
14429 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14430 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14431 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14432 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14433 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14434 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14435 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14436 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14437 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14438 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14439 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14440 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14444 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14445 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14446 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14447 echo $ECHO_N "(cached) $ECHO_C" >&6
14449 ac_cv_header_gif_lib_h
=$ac_header_preproc
14451 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14452 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14455 if test $ac_cv_header_gif_lib_h = yes; then
14456 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14457 # Earlier versions can crash Emacs.
14458 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14459 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14460 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14461 echo $ECHO_N "(cached) $ECHO_C" >&6
14463 ac_check_lib_save_LIBS
=$LIBS
14465 cat >conftest.
$ac_ext <<_ACEOF
14468 cat confdefs.h
>>conftest.
$ac_ext
14469 cat >>conftest.
$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14472 /* Override any GCC internal prototype to avoid an error.
14473 Use char because int might match the return type of a GCC
14474 builtin and then its argument prototype would still apply. */
14478 char EGifPutExtensionLast ();
14482 return EGifPutExtensionLast ();
14487 rm -f conftest.
$ac_objext conftest
$ac_exeext
14488 if { (ac_try
="$ac_link"
14489 case "(($ac_try" in
14490 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14491 *) ac_try_echo=$ac_try;;
14493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14494 (eval "$ac_link") 2>conftest.er1
14496 grep -v '^ *+' conftest.er1 >conftest.err
14498 cat conftest.err >&5
14499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14500 (exit $ac_status); } && {
14501 test -z "$ac_c_werror_flag" ||
14502 test ! -s conftest.err
14503 } && test -s conftest$ac_exeext &&
14504 $as_test_x conftest$ac_exeext; then
14505 ac_cv_lib_gif_EGifPutExtensionLast=yes
14507 echo "$as_me: failed program was:" >&5
14508 sed 's/^/| /' conftest.$ac_ext >&5
14510 ac_cv_lib_gif_EGifPutExtensionLast=no
14513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14514 conftest$ac_exeext conftest.$ac_ext
14515 LIBS=$ac_check_lib_save_LIBS
14517 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14518 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14519 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14529 if test "$HAVE_GIF" = yes; then
14530 ac_gif_lib_name="-lgif"
14533 # If gif_lib.h but no libgif, try libungif.
14534 if test x"$try_libungif" = xyes; then
14535 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14536 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14537 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 ac_check_lib_save_LIBS=$LIBS
14541 LIBS="-lungif $LIBS"
14542 cat >conftest.$ac_ext <<_ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14549 /* Override any GCC internal prototype to avoid an error.
14550 Use char because int might match the return type of a GCC
14551 builtin and then its argument prototype would still apply. */
14555 char EGifPutExtensionLast ();
14559 return EGifPutExtensionLast ();
14564 rm -f conftest.$ac_objext conftest$ac_exeext
14565 if { (ac_try="$ac_link"
14566 case "(($ac_try" in
14567 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14568 *) ac_try_echo
=$ac_try;;
14570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14571 (eval "$ac_link") 2>conftest.er1
14573 grep -v '^ *+' conftest.er1
>conftest.err
14575 cat conftest.err
>&5
14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14577 (exit $ac_status); } && {
14578 test -z "$ac_c_werror_flag" ||
14579 test ! -s conftest.err
14580 } && test -s conftest
$ac_exeext &&
14581 $as_test_x conftest
$ac_exeext; then
14582 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14584 echo "$as_me: failed program was:" >&5
14585 sed 's/^/| /' conftest.
$ac_ext >&5
14587 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14590 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14591 conftest
$ac_exeext conftest.
$ac_ext
14592 LIBS
=$ac_check_lib_save_LIBS
14594 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14595 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14596 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14601 if test "$HAVE_GIF" = yes; then
14603 cat >>confdefs.h
<<\_ACEOF
14604 #define LIBGIF -lungif
14607 ac_gif_lib_name
="-lungif"
14611 if test "${HAVE_GIF}" = "yes"; then
14613 cat >>confdefs.h
<<\_ACEOF
14620 if test "${HAVE_X11}" = "yes"; then
14623 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14624 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14625 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14626 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14627 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14628 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14629 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14630 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14631 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14632 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14634 if test "X${MISSING}" != X
; then
14635 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14637 Maybe some development libraries/packages are missing?
14638 If you don't want to link with them give
14640 as options to configure" >&5
14641 echo "$as_me: error: The following required libraries were not found:
14643 Maybe some development libraries/packages are missing?
14644 If you don't want to link with them give
14646 as options to configure" >&2;}
14647 { (exit 1); exit 1; }; }
14651 ### Use -lgpm if available, unless `--with-gpm=no'.
14653 if test "${with_gpm}" != "no"; then
14654 if test "${ac_cv_header_gpm_h+set}" = set; then
14655 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14656 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14657 if test "${ac_cv_header_gpm_h+set}" = set; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
14660 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14661 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14663 # Is the header compilable?
14664 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14665 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14666 cat >conftest.
$ac_ext <<_ACEOF
14669 cat confdefs.h
>>conftest.
$ac_ext
14670 cat >>conftest.
$ac_ext <<_ACEOF
14671 /* end confdefs.h. */
14672 $ac_includes_default
14675 rm -f conftest.
$ac_objext
14676 if { (ac_try
="$ac_compile"
14677 case "(($ac_try" in
14678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682 (eval "$ac_compile") 2>conftest.er1
14684 grep -v '^ *+' conftest.er1 >conftest.err
14686 cat conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } && {
14689 test -z "$ac_c_werror_flag" ||
14690 test ! -s conftest.err
14691 } && test -s conftest.$ac_objext; then
14692 ac_header_compiler=yes
14694 echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14697 ac_header_compiler=no
14700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14701 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14702 echo "${ECHO_T}$ac_header_compiler" >&6; }
14704 # Is the header present?
14705 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14706 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14707 cat >conftest.$ac_ext <<_ACEOF
14710 cat confdefs.h >>conftest.$ac_ext
14711 cat >>conftest.$ac_ext <<_ACEOF
14712 /* end confdefs.h. */
14715 if { (ac_try="$ac_cpp conftest.$ac_ext"
14716 case "(($ac_try" in
14717 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14718 *) ac_try_echo
=$ac_try;;
14720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14721 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14723 grep -v '^ *+' conftest.er1
>conftest.err
14725 cat conftest.err
>&5
14726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14727 (exit $ac_status); } >/dev
/null
&& {
14728 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14729 test ! -s conftest.err
14731 ac_header_preproc
=yes
14733 echo "$as_me: failed program was:" >&5
14734 sed 's/^/| /' conftest.
$ac_ext >&5
14736 ac_header_preproc
=no
14739 rm -f conftest.err conftest.
$ac_ext
14740 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14741 echo "${ECHO_T}$ac_header_preproc" >&6; }
14743 # So? What about this header?
14744 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14746 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14747 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14748 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14749 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14750 ac_header_preproc
=yes
14753 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14754 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14755 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14756 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14757 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14758 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14759 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14760 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14761 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14762 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14763 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14764 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14768 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14769 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14770 if test "${ac_cv_header_gpm_h+set}" = set; then
14771 echo $ECHO_N "(cached) $ECHO_C" >&6
14773 ac_cv_header_gpm_h
=$ac_header_preproc
14775 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14776 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14779 if test $ac_cv_header_gpm_h = yes; then
14780 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14781 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14782 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14785 ac_check_lib_save_LIBS
=$LIBS
14787 cat >conftest.
$ac_ext <<_ACEOF
14790 cat confdefs.h
>>conftest.
$ac_ext
14791 cat >>conftest.
$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14794 /* Override any GCC internal prototype to avoid an error.
14795 Use char because int might match the return type of a GCC
14796 builtin and then its argument prototype would still apply. */
14804 return Gpm_Open ();
14809 rm -f conftest.
$ac_objext conftest
$ac_exeext
14810 if { (ac_try
="$ac_link"
14811 case "(($ac_try" in
14812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14813 *) ac_try_echo=$ac_try;;
14815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14816 (eval "$ac_link") 2>conftest.er1
14818 grep -v '^ *+' conftest.er1 >conftest.err
14820 cat conftest.err >&5
14821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14822 (exit $ac_status); } && {
14823 test -z "$ac_c_werror_flag" ||
14824 test ! -s conftest.err
14825 } && test -s conftest$ac_exeext &&
14826 $as_test_x conftest$ac_exeext; then
14827 ac_cv_lib_gpm_Gpm_Open=yes
14829 echo "$as_me: failed program was:" >&5
14830 sed 's/^/| /' conftest.$ac_ext >&5
14832 ac_cv_lib_gpm_Gpm_Open=no
14835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14836 conftest$ac_exeext conftest.$ac_ext
14837 LIBS=$ac_check_lib_save_LIBS
14839 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14840 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14841 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14850 if test "${HAVE_GPM}" = "yes"; then
14852 cat >>confdefs.h <<\_ACEOF
14858 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14859 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14860 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14861 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14862 echo $ECHO_N "(cached) $ECHO_C" >&6
14864 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14865 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14867 # Is the header compilable?
14868 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14869 echo $ECHO_N "checking malloc/malloc.h usability... $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 $ac_includes_default
14877 #include <malloc/malloc.h>
14879 rm -f conftest.$ac_objext
14880 if { (ac_try="$ac_compile"
14881 case "(($ac_try" in
14882 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14883 *) ac_try_echo
=$ac_try;;
14885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886 (eval "$ac_compile") 2>conftest.er1
14888 grep -v '^ *+' conftest.er1
>conftest.err
14890 cat conftest.err
>&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } && {
14893 test -z "$ac_c_werror_flag" ||
14894 test ! -s conftest.err
14895 } && test -s conftest.
$ac_objext; then
14896 ac_header_compiler
=yes
14898 echo "$as_me: failed program was:" >&5
14899 sed 's/^/| /' conftest.
$ac_ext >&5
14901 ac_header_compiler
=no
14904 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14906 echo "${ECHO_T}$ac_header_compiler" >&6; }
14908 # Is the header present?
14909 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14910 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14911 cat >conftest.
$ac_ext <<_ACEOF
14914 cat confdefs.h
>>conftest.
$ac_ext
14915 cat >>conftest.
$ac_ext <<_ACEOF
14916 /* end confdefs.h. */
14917 #include <malloc/malloc.h>
14919 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14920 case "(($ac_try" in
14921 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14922 *) ac_try_echo=$ac_try;;
14924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14927 grep -v '^ *+' conftest.er1 >conftest.err
14929 cat conftest.err >&5
14930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14931 (exit $ac_status); } >/dev/null && {
14932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14933 test ! -s conftest.err
14935 ac_header_preproc=yes
14937 echo "$as_me: failed program was:" >&5
14938 sed 's/^/| /' conftest.$ac_ext >&5
14940 ac_header_preproc=no
14943 rm -f conftest.err conftest.$ac_ext
14944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14945 echo "${ECHO_T}$ac_header_preproc" >&6; }
14947 # So? What about this header?
14948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14950 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14951 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14952 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14953 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14954 ac_header_preproc=yes
14957 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14958 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14959 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14960 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14961 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14962 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14963 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14964 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14965 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14966 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14968 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14972 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14973 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14974 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14975 echo $ECHO_N "(cached) $ECHO_C" >&6
14977 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14979 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14980 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14983 if test $ac_cv_header_malloc_malloc_h = yes; then
14985 cat >>confdefs.h <<\_ACEOF
14986 #define HAVE_MALLOC_MALLOC_H 1
14993 ### Use Mac OS X Carbon API to implement GUI.
14994 if test "${HAVE_CARBON}" = "yes"; then
14996 cat >>confdefs.h <<\_ACEOF
14997 #define HAVE_CARBON 1
15001 for ac_header in AvailabilityMacros.h
15003 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
15004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15008 echo $ECHO_N "(cached) $ECHO_C" >&6
15010 ac_res=`eval echo '${'$as_ac_Header'}'`
15011 { echo "$as_me:$LINENO: result: $ac_res" >&5
15012 echo "${ECHO_T}$ac_res" >&6; }
15014 # Is the header compilable?
15015 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15016 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15017 cat >conftest.$ac_ext <<_ACEOF
15020 cat confdefs.h >>conftest.$ac_ext
15021 cat >>conftest.$ac_ext <<_ACEOF
15022 /* end confdefs.h. */
15023 $ac_includes_default
15024 #include <$ac_header>
15026 rm -f conftest.$ac_objext
15027 if { (ac_try="$ac_compile"
15028 case "(($ac_try" in
15029 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15030 *) ac_try_echo
=$ac_try;;
15032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15033 (eval "$ac_compile") 2>conftest.er1
15035 grep -v '^ *+' conftest.er1
>conftest.err
15037 cat conftest.err
>&5
15038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15039 (exit $ac_status); } && {
15040 test -z "$ac_c_werror_flag" ||
15041 test ! -s conftest.err
15042 } && test -s conftest.
$ac_objext; then
15043 ac_header_compiler
=yes
15045 echo "$as_me: failed program was:" >&5
15046 sed 's/^/| /' conftest.
$ac_ext >&5
15048 ac_header_compiler
=no
15051 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15052 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15053 echo "${ECHO_T}$ac_header_compiler" >&6; }
15055 # Is the header present?
15056 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15057 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15058 cat >conftest.
$ac_ext <<_ACEOF
15061 cat confdefs.h
>>conftest.
$ac_ext
15062 cat >>conftest.
$ac_ext <<_ACEOF
15063 /* end confdefs.h. */
15064 #include <$ac_header>
15066 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15067 case "(($ac_try" in
15068 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15074 grep -v '^ *+' conftest.er1 >conftest.err
15076 cat conftest.err >&5
15077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078 (exit $ac_status); } >/dev/null && {
15079 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15080 test ! -s conftest.err
15082 ac_header_preproc=yes
15084 echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15087 ac_header_preproc=no
15090 rm -f conftest.err conftest.$ac_ext
15091 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15092 echo "${ECHO_T}$ac_header_preproc" >&6; }
15094 # So? What about this header?
15095 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15097 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15098 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15099 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15100 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15101 ac_header_preproc=yes
15104 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15105 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15106 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15107 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15108 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15109 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15110 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15111 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15113 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15114 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15115 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15122 echo $ECHO_N "(cached) $ECHO_C" >&6
15124 eval "$as_ac_Header=\$ac_header_preproc"
15126 ac_res=`eval echo '${'$as_ac_Header'}'`
15127 { echo "$as_me:$LINENO: result: $ac_res" >&5
15128 echo "${ECHO_T}$ac_res" >&6; }
15131 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15132 cat >>confdefs.h <<_ACEOF
15133 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
15140 ## Specify the install directory
15142 if test "${carbon_appdir_x}" != ""; then
15143 case ${carbon_appdir_x} in
15144 y | ye | yes) carbon_appdir=/Applications ;;
15145 * ) carbon_appdir=${carbon_appdir_x} ;;
15148 # We also have mouse menus.
15151 ### Use NeXTstep API to implement GUI.
15152 if test "${HAVE_NS}" = "yes"; then
15154 cat >>confdefs.h <<\_ACEOF
15158 ## Specify the install directory
15160 if test "${ns_appdir_x}" != ""; then
15161 case ${ns_appdir_x} in
15162 y | ye | yes) ns_appdir=/Applications ;;
15163 * ) ns_appdir=${ns_appdir_x} ;;
15166 if test "${COCOA}" = "yes"; then
15168 cat >>confdefs.h <<\_ACEOF
15169 #define NS_IMPL_COCOA 1
15173 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
15175 cat >>confdefs.h <<\_ACEOF
15176 #define COCOA_EXPERIMENTAL_CTRL_G 1
15180 if test "${GNUSTEP}" = "yes"; then
15182 cat >>confdefs.h <<\_ACEOF
15183 #define NS_IMPL_GNUSTEP 1
15187 # We also have mouse menus.
15192 ### Use session management (-lSM -lICE) if available
15194 if test "${HAVE_X11}" = "yes"; then
15195 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15196 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15197 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15198 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15199 echo $ECHO_N "(cached) $ECHO_C" >&6
15201 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15202 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15204 # Is the header compilable?
15205 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15206 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15207 cat >conftest.$ac_ext <<_ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 $ac_includes_default
15214 #include <X11/SM/SMlib.h>
15216 rm -f conftest.$ac_objext
15217 if { (ac_try="$ac_compile"
15218 case "(($ac_try" in
15219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15220 *) ac_try_echo
=$ac_try;;
15222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_compile") 2>conftest.er1
15225 grep -v '^ *+' conftest.er1
>conftest.err
15227 cat conftest.err
>&5
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } && {
15230 test -z "$ac_c_werror_flag" ||
15231 test ! -s conftest.err
15232 } && test -s conftest.
$ac_objext; then
15233 ac_header_compiler
=yes
15235 echo "$as_me: failed program was:" >&5
15236 sed 's/^/| /' conftest.
$ac_ext >&5
15238 ac_header_compiler
=no
15241 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15242 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15243 echo "${ECHO_T}$ac_header_compiler" >&6; }
15245 # Is the header present?
15246 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15247 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15248 cat >conftest.
$ac_ext <<_ACEOF
15251 cat confdefs.h
>>conftest.
$ac_ext
15252 cat >>conftest.
$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 #include <X11/SM/SMlib.h>
15256 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15257 case "(($ac_try" in
15258 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15259 *) ac_try_echo=$ac_try;;
15261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15264 grep -v '^ *+' conftest.er1 >conftest.err
15266 cat conftest.err >&5
15267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15268 (exit $ac_status); } >/dev/null && {
15269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15270 test ! -s conftest.err
15272 ac_header_preproc=yes
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15277 ac_header_preproc=no
15280 rm -f conftest.err conftest.$ac_ext
15281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15282 echo "${ECHO_T}$ac_header_preproc" >&6; }
15284 # So? What about this header?
15285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15287 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15288 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15289 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15290 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15291 ac_header_preproc=yes
15294 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15295 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15296 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15297 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15299 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15300 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15301 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15302 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15303 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15304 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15305 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15309 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15310 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15311 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15314 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15316 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15317 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15320 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15321 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15322 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15323 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15324 echo $ECHO_N "(cached) $ECHO_C" >&6
15326 ac_check_lib_save_LIBS=$LIBS
15327 LIBS="-lSM -lICE $LIBS"
15328 cat >conftest.$ac_ext <<_ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15335 /* Override any GCC internal prototype to avoid an error.
15336 Use char because int might match the return type of a GCC
15337 builtin and then its argument prototype would still apply. */
15341 char SmcOpenConnection ();
15345 return SmcOpenConnection ();
15350 rm -f conftest.$ac_objext conftest$ac_exeext
15351 if { (ac_try="$ac_link"
15352 case "(($ac_try" in
15353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15354 *) ac_try_echo
=$ac_try;;
15356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15357 (eval "$ac_link") 2>conftest.er1
15359 grep -v '^ *+' conftest.er1
>conftest.err
15361 cat conftest.err
>&5
15362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15363 (exit $ac_status); } && {
15364 test -z "$ac_c_werror_flag" ||
15365 test ! -s conftest.err
15366 } && test -s conftest
$ac_exeext &&
15367 $as_test_x conftest
$ac_exeext; then
15368 ac_cv_lib_SM_SmcOpenConnection
=yes
15370 echo "$as_me: failed program was:" >&5
15371 sed 's/^/| /' conftest.
$ac_ext >&5
15373 ac_cv_lib_SM_SmcOpenConnection
=no
15376 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15377 conftest
$ac_exeext conftest.
$ac_ext
15378 LIBS
=$ac_check_lib_save_LIBS
15380 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15381 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15382 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15390 if test "${HAVE_X_SM}" = "yes"; then
15392 cat >>confdefs.h
<<\_ACEOF
15393 #define HAVE_X_SM 1
15398 *) LIBS
="-lSM -lICE $LIBS" ;;
15403 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15404 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15405 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15406 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15407 echo $ECHO_N "(cached) $ECHO_C" >&6
15409 cat >conftest.
$ac_ext <<_ACEOF
15412 cat confdefs.h
>>conftest.
$ac_ext
15413 cat >>conftest.
$ac_ext <<_ACEOF
15414 /* end confdefs.h. */
15424 rm -f conftest.
$ac_objext conftest
$ac_exeext
15425 if { (ac_try
="$ac_link"
15426 case "(($ac_try" in
15427 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_link") 2>conftest.er1
15433 grep -v '^ *+' conftest.er1 >conftest.err
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } && {
15438 test -z "$ac_c_werror_flag" ||
15439 test ! -s conftest.err
15440 } && test -s conftest$ac_exeext &&
15441 $as_test_x conftest$ac_exeext; then
15442 emacs_cv_netdb_declares_h_errno=yes
15444 echo "$as_me: failed program was:" >&5
15445 sed 's/^/| /' conftest.$ac_ext >&5
15447 emacs_cv_netdb_declares_h_errno=no
15450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15451 conftest$ac_exeext conftest.$ac_ext
15453 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15454 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15455 if test $emacs_cv_netdb_declares_h_errno = yes; then
15457 cat >>confdefs.h <<\_ACEOF
15458 #define HAVE_H_ERRNO 1
15463 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15464 # for constant arguments. Useless!
15465 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15466 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15467 if test "${ac_cv_working_alloca_h+set}" = set; then
15468 echo $ECHO_N "(cached) $ECHO_C" >&6
15470 cat >conftest.$ac_ext <<_ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 #include <alloca.h>
15480 char *p = (char *) alloca (2 * sizeof (int));
15486 rm -f conftest.$ac_objext conftest$ac_exeext
15487 if { (ac_try="$ac_link"
15488 case "(($ac_try" in
15489 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15490 *) ac_try_echo
=$ac_try;;
15492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15493 (eval "$ac_link") 2>conftest.er1
15495 grep -v '^ *+' conftest.er1
>conftest.err
15497 cat conftest.err
>&5
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); } && {
15500 test -z "$ac_c_werror_flag" ||
15501 test ! -s conftest.err
15502 } && test -s conftest
$ac_exeext &&
15503 $as_test_x conftest
$ac_exeext; then
15504 ac_cv_working_alloca_h
=yes
15506 echo "$as_me: failed program was:" >&5
15507 sed 's/^/| /' conftest.
$ac_ext >&5
15509 ac_cv_working_alloca_h
=no
15512 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15513 conftest
$ac_exeext conftest.
$ac_ext
15515 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15516 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15517 if test $ac_cv_working_alloca_h = yes; then
15519 cat >>confdefs.h
<<\_ACEOF
15520 #define HAVE_ALLOCA_H 1
15525 { echo "$as_me:$LINENO: checking for alloca" >&5
15526 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15527 if test "${ac_cv_func_alloca_works+set}" = set; then
15528 echo $ECHO_N "(cached) $ECHO_C" >&6
15530 cat >conftest.
$ac_ext <<_ACEOF
15533 cat confdefs.h
>>conftest.
$ac_ext
15534 cat >>conftest.
$ac_ext <<_ACEOF
15535 /* end confdefs.h. */
15537 # define alloca __builtin_alloca
15540 # include <malloc.h>
15541 # define alloca _alloca
15543 # ifdef HAVE_ALLOCA_H
15544 # include <alloca.h>
15549 # ifndef alloca /* predefined by HP cc +Olibcalls */
15560 char *p = (char *) alloca (1);
15566 rm -f conftest.
$ac_objext conftest
$ac_exeext
15567 if { (ac_try
="$ac_link"
15568 case "(($ac_try" in
15569 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15570 *) ac_try_echo=$ac_try;;
15572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15573 (eval "$ac_link") 2>conftest.er1
15575 grep -v '^ *+' conftest.er1 >conftest.err
15577 cat conftest.err >&5
15578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15579 (exit $ac_status); } && {
15580 test -z "$ac_c_werror_flag" ||
15581 test ! -s conftest.err
15582 } && test -s conftest$ac_exeext &&
15583 $as_test_x conftest$ac_exeext; then
15584 ac_cv_func_alloca_works=yes
15586 echo "$as_me: failed program was:" >&5
15587 sed 's/^/| /' conftest.$ac_ext >&5
15589 ac_cv_func_alloca_works=no
15592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15593 conftest$ac_exeext conftest.$ac_ext
15595 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15596 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15598 if test $ac_cv_func_alloca_works = yes; then
15600 cat >>confdefs.h <<\_ACEOF
15601 #define HAVE_ALLOCA 1
15605 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15606 # that cause trouble. Some versions do not even contain alloca or
15607 # contain a buggy version. If you still want to use their alloca,
15608 # use ar to extract alloca.o from them instead of compiling alloca.c.
15610 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15612 cat >>confdefs.h <<\_ACEOF
15617 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15618 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15619 if test "${ac_cv_os_cray+set}" = set; then
15620 echo $ECHO_N "(cached
) $ECHO_C" >&6
15622 cat >conftest.$ac_ext <<_ACEOF
15625 cat confdefs.h >>conftest.$ac_ext
15626 cat >>conftest.$ac_ext <<_ACEOF
15627 /* end confdefs.h. */
15628 #if defined CRAY && ! defined CRAY2
15635 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15636 $EGREP "webecray
" >/dev/null 2>&1; then
15644 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15645 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15646 if test $ac_cv_os_cray = yes; then
15647 for ac_func in _getb67 GETB67 getb67; do
15648 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15649 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15650 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15651 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15652 echo $ECHO_N "(cached
) $ECHO_C" >&6
15654 cat >conftest.$ac_ext <<_ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h. */
15660 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15662 #define $ac_func innocuous_$ac_func
15664 /* System header to define __stub macros and hopefully few prototypes,
15665 which can conflict with char $ac_func (); below.
15666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15667 <limits.h> exists even on freestanding compilers. */
15670 # include <limits.h>
15672 # include <assert.h>
15677 /* Override any GCC internal prototype to avoid an error.
15678 Use char because int might match the return type of a GCC
15679 builtin and then its argument prototype would still apply. */
15684 /* The GNU C library defines this for functions which it implements
15685 to always fail with ENOSYS. Some functions are actually named
15686 something starting with __ and the normal name is an alias. */
15687 #if defined __stub_$ac_func || defined __stub___$ac_func
15694 return $ac_func ();
15699 rm -f conftest.$ac_objext conftest$ac_exeext
15700 if { (ac_try="$ac_link"
15701 case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15705 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_link") 2>conftest.er1
15708 grep -v '^ *+' conftest.er1 >conftest.err
15710 cat conftest.err >&5
15711 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15712 (exit $ac_status); } && {
15713 test -z "$ac_c_werror_flag" ||
15714 test ! -s conftest.err
15715 } && test -s conftest$ac_exeext &&
15716 $as_test_x conftest$ac_exeext; then
15717 eval "$as_ac_var=yes"
15719 echo "$as_me: failed program was
:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15722 eval "$as_ac_var=no
"
15725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15726 conftest$ac_exeext conftest.$ac_ext
15728 ac_res=`eval echo '${'$as_ac_var'}'`
15729 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15730 echo "${ECHO_T}$ac_res" >&6; }
15731 if test `eval echo '${'$as_ac_var'}'` = yes; then
15733 cat >>confdefs.h <<_ACEOF
15734 #define CRAY_STACKSEG_END $ac_func
15743 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15744 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15745 if test "${ac_cv_c_stack_direction+set}" = set; then
15746 echo $ECHO_N "(cached
) $ECHO_C" >&6
15748 if test "$cross_compiling" = yes; then
15749 ac_cv_c_stack_direction=0
15751 cat >conftest.$ac_ext <<_ACEOF
15754 cat confdefs.h >>conftest.$ac_ext
15755 cat >>conftest.$ac_ext <<_ACEOF
15756 /* end confdefs.h. */
15757 $ac_includes_default
15759 find_stack_direction ()
15761 static char *addr = 0;
15766 return find_stack_direction ();
15769 return (&dummy > addr) ? 1 : -1;
15775 return find_stack_direction () < 0;
15778 rm -f conftest$ac_exeext
15779 if { (ac_try="$ac_link"
15780 case "(($ac_try" in
15781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15782 *) ac_try_echo=$ac_try;;
15784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15785 (eval "$ac_link") 2>&5
15787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15788 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15789 { (case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_try") 2>&5
15796 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15797 (exit $ac_status); }; }; then
15798 ac_cv_c_stack_direction=1
15800 echo "$as_me: program exited with status
$ac_status" >&5
15801 echo "$as_me: failed program was
:" >&5
15802 sed 's/^/| /' conftest.$ac_ext >&5
15804 ( exit $ac_status )
15805 ac_cv_c_stack_direction=-1
15807 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15812 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15813 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15815 cat >>confdefs.h <<_ACEOF
15816 #define STACK_DIRECTION $ac_cv_c_stack_direction
15823 if test x"$ac_cv_func_alloca_works" != xyes; then
15824 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15825 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15826 { (exit 1); exit 1; }; }
15829 # fmod, logb, and frexp are found in -lm on most systems.
15830 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15832 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15833 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15834 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15835 echo $ECHO_N "(cached
) $ECHO_C" >&6
15837 ac_check_lib_save_LIBS=$LIBS
15839 cat >conftest.$ac_ext <<_ACEOF
15842 cat confdefs.h >>conftest.$ac_ext
15843 cat >>conftest.$ac_ext <<_ACEOF
15844 /* end confdefs.h. */
15846 /* Override any GCC internal prototype to avoid an error.
15847 Use char because int might match the return type of a GCC
15848 builtin and then its argument prototype would still apply. */
15861 rm -f conftest.$ac_objext conftest$ac_exeext
15862 if { (ac_try="$ac_link"
15863 case "(($ac_try" in
15864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15865 *) ac_try_echo=$ac_try;;
15867 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15868 (eval "$ac_link") 2>conftest.er1
15870 grep -v '^ *+' conftest.er1 >conftest.err
15872 cat conftest.err >&5
15873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15874 (exit $ac_status); } && {
15875 test -z "$ac_c_werror_flag" ||
15876 test ! -s conftest.err
15877 } && test -s conftest$ac_exeext &&
15878 $as_test_x conftest$ac_exeext; then
15879 ac_cv_lib_m_sqrt=yes
15881 echo "$as_me: failed program was
:" >&5
15882 sed 's/^/| /' conftest.$ac_ext >&5
15884 ac_cv_lib_m_sqrt=no
15887 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15888 conftest$ac_exeext conftest.$ac_ext
15889 LIBS=$ac_check_lib_save_LIBS
15891 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15892 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15893 if test $ac_cv_lib_m_sqrt = yes; then
15894 cat >>confdefs.h <<_ACEOF
15895 #define HAVE_LIBM 1
15903 # Check for mail-locking functions in a "mail" library. Probably this should
15904 # have the same check as for liblockfile below.
15906 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15907 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15908 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15909 echo $ECHO_N "(cached
) $ECHO_C" >&6
15911 ac_check_lib_save_LIBS=$LIBS
15912 LIBS="-lmail $LIBS"
15913 cat >conftest.$ac_ext <<_ACEOF
15916 cat confdefs.h >>conftest.$ac_ext
15917 cat >>conftest.$ac_ext <<_ACEOF
15918 /* end confdefs.h. */
15920 /* Override any GCC internal prototype to avoid an error.
15921 Use char because int might match the return type of a GCC
15922 builtin and then its argument prototype would still apply. */
15930 return maillock ();
15935 rm -f conftest.$ac_objext conftest$ac_exeext
15936 if { (ac_try="$ac_link"
15937 case "(($ac_try" in
15938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15939 *) ac_try_echo=$ac_try;;
15941 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15942 (eval "$ac_link") 2>conftest.er1
15944 grep -v '^ *+' conftest.er1 >conftest.err
15946 cat conftest.err >&5
15947 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15948 (exit $ac_status); } && {
15949 test -z "$ac_c_werror_flag" ||
15950 test ! -s conftest.err
15951 } && test -s conftest$ac_exeext &&
15952 $as_test_x conftest$ac_exeext; then
15953 ac_cv_lib_mail_maillock=yes
15955 echo "$as_me: failed program was
:" >&5
15956 sed 's/^/| /' conftest.$ac_ext >&5
15958 ac_cv_lib_mail_maillock=no
15961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15962 conftest$ac_exeext conftest.$ac_ext
15963 LIBS=$ac_check_lib_save_LIBS
15965 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15966 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15967 if test $ac_cv_lib_mail_maillock = yes; then
15968 cat >>confdefs.h <<_ACEOF
15969 #define HAVE_LIBMAIL 1
15972 LIBS="-lmail $LIBS"
15977 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15978 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15979 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15980 echo $ECHO_N "(cached
) $ECHO_C" >&6
15982 ac_check_lib_save_LIBS=$LIBS
15983 LIBS="-llockfile $LIBS"
15984 cat >conftest.$ac_ext <<_ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15991 /* Override any GCC internal prototype to avoid an error.
15992 Use char because int might match the return type of a GCC
15993 builtin and then its argument prototype would still apply. */
16001 return maillock ();
16006 rm -f conftest.$ac_objext conftest$ac_exeext
16007 if { (ac_try="$ac_link"
16008 case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16013 (eval "$ac_link") 2>conftest.er1
16015 grep -v '^ *+' conftest.er1 >conftest.err
16017 cat conftest.err >&5
16018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16019 (exit $ac_status); } && {
16020 test -z "$ac_c_werror_flag" ||
16021 test ! -s conftest.err
16022 } && test -s conftest$ac_exeext &&
16023 $as_test_x conftest$ac_exeext; then
16024 ac_cv_lib_lockfile_maillock=yes
16026 echo "$as_me: failed program was
:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16029 ac_cv_lib_lockfile_maillock=no
16032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16033 conftest$ac_exeext conftest.$ac_ext
16034 LIBS=$ac_check_lib_save_LIBS
16036 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
16037 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
16038 if test $ac_cv_lib_lockfile_maillock = yes; then
16039 cat >>confdefs.h <<_ACEOF
16040 #define HAVE_LIBLOCKFILE 1
16043 LIBS="-llockfile $LIBS"
16047 # If we have the shared liblockfile, assume we must use it for mail
16048 # locking (e.g. Debian). If we couldn't link against liblockfile
16049 # (no liblockfile.a installed), ensure that we don't need to.
16050 if test "$ac_cv_lib_lockfile_maillock" = no; then
16051 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
16052 set dummy liblockfile.so; ac_word=$2
16053 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
16054 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
16055 if test "${ac_cv_prog_liblockfile+set}" = set; then
16056 echo $ECHO_N "(cached
) $ECHO_C" >&6
16058 if test -n "$liblockfile"; then
16059 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16062 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
16063 for as_dir in $as_dummy
16066 test -z "$as_dir" && as_dir=.
16067 for ac_exec_ext in '' $ac_executable_extensions; do
16068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16069 ac_cv_prog_liblockfile="yes"
16070 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
16077 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
16080 liblockfile=$ac_cv_prog_liblockfile
16081 if test -n "$liblockfile"; then
16082 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
16083 echo "${ECHO_T}$liblockfile" >&6; }
16085 { echo "$as_me:$LINENO: result
: no
" >&5
16086 echo "${ECHO_T}no
" >&6; }
16090 if test $ac_cv_prog_liblockfile = yes; then
16091 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
16092 This probably means that movemail could lose mail.
16093 There may be a \`development' package to
install containing liblockfile.
" >&5
16094 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
16095 This probably means that movemail could lose mail.
16096 There may be a \`development' package to
install containing liblockfile.
" >&2;}
16097 { (exit 1); exit 1; }; }
16102 for ac_func in touchlock
16104 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16105 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16106 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16107 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16108 echo $ECHO_N "(cached
) $ECHO_C" >&6
16110 cat >conftest.$ac_ext <<_ACEOF
16113 cat confdefs.h >>conftest.$ac_ext
16114 cat >>conftest.$ac_ext <<_ACEOF
16115 /* end confdefs.h. */
16116 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16118 #define $ac_func innocuous_$ac_func
16120 /* System header to define __stub macros and hopefully few prototypes,
16121 which can conflict with char $ac_func (); below.
16122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16123 <limits.h> exists even on freestanding compilers. */
16126 # include <limits.h>
16128 # include <assert.h>
16133 /* Override any GCC internal prototype to avoid an error.
16134 Use char because int might match the return type of a GCC
16135 builtin and then its argument prototype would still apply. */
16140 /* The GNU C library defines this for functions which it implements
16141 to always fail with ENOSYS. Some functions are actually named
16142 something starting with __ and the normal name is an alias. */
16143 #if defined __stub_$ac_func || defined __stub___$ac_func
16150 return $ac_func ();
16155 rm -f conftest.$ac_objext conftest$ac_exeext
16156 if { (ac_try="$ac_link"
16157 case "(($ac_try" in
16158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16159 *) ac_try_echo=$ac_try;;
16161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16162 (eval "$ac_link") 2>conftest.er1
16164 grep -v '^ *+' conftest.er1 >conftest.err
16166 cat conftest.err >&5
16167 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16168 (exit $ac_status); } && {
16169 test -z "$ac_c_werror_flag" ||
16170 test ! -s conftest.err
16171 } && test -s conftest$ac_exeext &&
16172 $as_test_x conftest$ac_exeext; then
16173 eval "$as_ac_var=yes"
16175 echo "$as_me: failed program was
:" >&5
16176 sed 's/^/| /' conftest.$ac_ext >&5
16178 eval "$as_ac_var=no
"
16181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16182 conftest$ac_exeext conftest.$ac_ext
16184 ac_res=`eval echo '${'$as_ac_var'}'`
16185 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16186 echo "${ECHO_T}$ac_res" >&6; }
16187 if test `eval echo '${'$as_ac_var'}'` = yes; then
16188 cat >>confdefs.h <<_ACEOF
16189 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16196 for ac_header in maillock.h
16198 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16199 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16200 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16201 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16202 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16203 echo $ECHO_N "(cached
) $ECHO_C" >&6
16205 ac_res=`eval echo '${'$as_ac_Header'}'`
16206 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16207 echo "${ECHO_T}$ac_res" >&6; }
16209 # Is the header compilable?
16210 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16211 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16212 cat >conftest.$ac_ext <<_ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16218 $ac_includes_default
16219 #include <$ac_header>
16221 rm -f conftest.$ac_objext
16222 if { (ac_try="$ac_compile"
16223 case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16227 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_compile") 2>conftest.er1
16230 grep -v '^ *+' conftest.er1 >conftest.err
16232 cat conftest.err >&5
16233 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16234 (exit $ac_status); } && {
16235 test -z "$ac_c_werror_flag" ||
16236 test ! -s conftest.err
16237 } && test -s conftest.$ac_objext; then
16238 ac_header_compiler=yes
16240 echo "$as_me: failed program was
:" >&5
16241 sed 's/^/| /' conftest.$ac_ext >&5
16243 ac_header_compiler=no
16246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16247 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16248 echo "${ECHO_T}$ac_header_compiler" >&6; }
16250 # Is the header present?
16251 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16252 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16253 cat >conftest.$ac_ext <<_ACEOF
16256 cat confdefs.h >>conftest.$ac_ext
16257 cat >>conftest.$ac_ext <<_ACEOF
16258 /* end confdefs.h. */
16259 #include <$ac_header>
16261 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16262 case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16269 grep -v '^ *+' conftest.er1 >conftest.err
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16273 (exit $ac_status); } >/dev/null && {
16274 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16275 test ! -s conftest.err
16277 ac_header_preproc=yes
16279 echo "$as_me: failed program was
:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16282 ac_header_preproc=no
16285 rm -f conftest.err conftest.$ac_ext
16286 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16287 echo "${ECHO_T}$ac_header_preproc" >&6; }
16289 # So? What about this header?
16290 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16292 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16293 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16294 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16295 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16296 ac_header_preproc=yes
16299 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16300 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16301 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16302 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16303 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16304 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16305 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16306 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16307 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16308 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16309 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16310 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16314 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16315 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16316 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16317 echo $ECHO_N "(cached
) $ECHO_C" >&6
16319 eval "$as_ac_Header=\
$ac_header_preproc"
16321 ac_res=`eval echo '${'$as_ac_Header'}'`
16322 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16323 echo "${ECHO_T}$ac_res" >&6; }
16326 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16327 cat >>confdefs.h <<_ACEOF
16328 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16406 for ac_func in gethostname getdomainname dup2 \
16407 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16408 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16409 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16410 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16411 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16412 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16413 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16414 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16415 cfmakeraw cfsetspeed
16417 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16418 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16419 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16420 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16421 echo $ECHO_N "(cached
) $ECHO_C" >&6
16423 cat >conftest.$ac_ext <<_ACEOF
16426 cat confdefs.h >>conftest.$ac_ext
16427 cat >>conftest.$ac_ext <<_ACEOF
16428 /* end confdefs.h. */
16429 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16430 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16431 #define $ac_func innocuous_$ac_func
16433 /* System header to define __stub macros and hopefully few prototypes,
16434 which can conflict with char $ac_func (); below.
16435 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16436 <limits.h> exists even on freestanding compilers. */
16439 # include <limits.h>
16441 # include <assert.h>
16446 /* Override any GCC internal prototype to avoid an error.
16447 Use char because int might match the return type of a GCC
16448 builtin and then its argument prototype would still apply. */
16453 /* The GNU C library defines this for functions which it implements
16454 to always fail with ENOSYS. Some functions are actually named
16455 something starting with __ and the normal name is an alias. */
16456 #if defined __stub_$ac_func || defined __stub___$ac_func
16463 return $ac_func ();
16468 rm -f conftest.$ac_objext conftest$ac_exeext
16469 if { (ac_try="$ac_link"
16470 case "(($ac_try" in
16471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16472 *) ac_try_echo=$ac_try;;
16474 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16475 (eval "$ac_link") 2>conftest.er1
16477 grep -v '^ *+' conftest.er1 >conftest.err
16479 cat conftest.err >&5
16480 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16481 (exit $ac_status); } && {
16482 test -z "$ac_c_werror_flag" ||
16483 test ! -s conftest.err
16484 } && test -s conftest$ac_exeext &&
16485 $as_test_x conftest$ac_exeext; then
16486 eval "$as_ac_var=yes"
16488 echo "$as_me: failed program was
:" >&5
16489 sed 's/^/| /' conftest.$ac_ext >&5
16491 eval "$as_ac_var=no
"
16494 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16495 conftest$ac_exeext conftest.$ac_ext
16497 ac_res=`eval echo '${'$as_ac_var'}'`
16498 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16499 echo "${ECHO_T}$ac_res" >&6; }
16500 if test `eval echo '${'$as_ac_var'}'` = yes; then
16501 cat >>confdefs.h <<_ACEOF
16502 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16510 for ac_header in sys/un.h
16512 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16513 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16514 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16515 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16516 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16517 echo $ECHO_N "(cached
) $ECHO_C" >&6
16519 ac_res=`eval echo '${'$as_ac_Header'}'`
16520 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16521 echo "${ECHO_T}$ac_res" >&6; }
16523 # Is the header compilable?
16524 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16525 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16526 cat >conftest.$ac_ext <<_ACEOF
16529 cat confdefs.h >>conftest.$ac_ext
16530 cat >>conftest.$ac_ext <<_ACEOF
16531 /* end confdefs.h. */
16532 $ac_includes_default
16533 #include <$ac_header>
16535 rm -f conftest.$ac_objext
16536 if { (ac_try="$ac_compile"
16537 case "(($ac_try" in
16538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16539 *) ac_try_echo=$ac_try;;
16541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16542 (eval "$ac_compile") 2>conftest.er1
16544 grep -v '^ *+' conftest.er1 >conftest.err
16546 cat conftest.err >&5
16547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16548 (exit $ac_status); } && {
16549 test -z "$ac_c_werror_flag" ||
16550 test ! -s conftest.err
16551 } && test -s conftest.$ac_objext; then
16552 ac_header_compiler=yes
16554 echo "$as_me: failed program was
:" >&5
16555 sed 's/^/| /' conftest.$ac_ext >&5
16557 ac_header_compiler=no
16560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16561 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16562 echo "${ECHO_T}$ac_header_compiler" >&6; }
16564 # Is the header present?
16565 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16566 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16567 cat >conftest.$ac_ext <<_ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16573 #include <$ac_header>
16575 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16576 case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16580 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16583 grep -v '^ *+' conftest.er1 >conftest.err
16585 cat conftest.err >&5
16586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16587 (exit $ac_status); } >/dev/null && {
16588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16589 test ! -s conftest.err
16591 ac_header_preproc=yes
16593 echo "$as_me: failed program was
:" >&5
16594 sed 's/^/| /' conftest.$ac_ext >&5
16596 ac_header_preproc=no
16599 rm -f conftest.err conftest.$ac_ext
16600 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16601 echo "${ECHO_T}$ac_header_preproc" >&6; }
16603 # So? What about this header?
16604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16606 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16607 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16608 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16610 ac_header_preproc=yes
16613 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16614 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16615 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16616 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16617 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16618 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16619 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16620 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16621 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16623 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16624 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16628 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16629 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16630 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16631 echo $ECHO_N "(cached
) $ECHO_C" >&6
16633 eval "$as_ac_Header=\
$ac_header_preproc"
16635 ac_res=`eval echo '${'$as_ac_Header'}'`
16636 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16637 echo "${ECHO_T}$ac_res" >&6; }
16640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16641 cat >>confdefs.h <<_ACEOF
16642 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16654 for ac_header in $ac_header_list
16656 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16657 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16658 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16659 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16660 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16661 echo $ECHO_N "(cached
) $ECHO_C" >&6
16663 ac_res=`eval echo '${'$as_ac_Header'}'`
16664 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16665 echo "${ECHO_T}$ac_res" >&6; }
16667 # Is the header compilable?
16668 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16669 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16670 cat >conftest.$ac_ext <<_ACEOF
16673 cat confdefs.h >>conftest.$ac_ext
16674 cat >>conftest.$ac_ext <<_ACEOF
16675 /* end confdefs.h. */
16676 $ac_includes_default
16677 #include <$ac_header>
16679 rm -f conftest.$ac_objext
16680 if { (ac_try="$ac_compile"
16681 case "(($ac_try" in
16682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16683 *) ac_try_echo=$ac_try;;
16685 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16686 (eval "$ac_compile") 2>conftest.er1
16688 grep -v '^ *+' conftest.er1 >conftest.err
16690 cat conftest.err >&5
16691 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16692 (exit $ac_status); } && {
16693 test -z "$ac_c_werror_flag" ||
16694 test ! -s conftest.err
16695 } && test -s conftest.$ac_objext; then
16696 ac_header_compiler=yes
16698 echo "$as_me: failed program was
:" >&5
16699 sed 's/^/| /' conftest.$ac_ext >&5
16701 ac_header_compiler=no
16704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16705 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16706 echo "${ECHO_T}$ac_header_compiler" >&6; }
16708 # Is the header present?
16709 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16710 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16711 cat >conftest.$ac_ext <<_ACEOF
16714 cat confdefs.h >>conftest.$ac_ext
16715 cat >>conftest.$ac_ext <<_ACEOF
16716 /* end confdefs.h. */
16717 #include <$ac_header>
16719 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16720 case "(($ac_try" in
16721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16722 *) ac_try_echo=$ac_try;;
16724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16725 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16727 grep -v '^ *+' conftest.er1 >conftest.err
16729 cat conftest.err >&5
16730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16731 (exit $ac_status); } >/dev/null && {
16732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16733 test ! -s conftest.err
16735 ac_header_preproc=yes
16737 echo "$as_me: failed program was
:" >&5
16738 sed 's/^/| /' conftest.$ac_ext >&5
16740 ac_header_preproc=no
16743 rm -f conftest.err conftest.$ac_ext
16744 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16745 echo "${ECHO_T}$ac_header_preproc" >&6; }
16747 # So? What about this header?
16748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16750 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16751 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16752 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16754 ac_header_preproc=yes
16757 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16758 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16759 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16760 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16761 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16762 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16763 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16764 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16765 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16767 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16768 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16772 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16773 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16774 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16775 echo $ECHO_N "(cached
) $ECHO_C" >&6
16777 eval "$as_ac_Header=\
$ac_header_preproc"
16779 ac_res=`eval echo '${'$as_ac_Header'}'`
16780 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16781 echo "${ECHO_T}$ac_res" >&6; }
16784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16785 cat >>confdefs.h <<_ACEOF
16786 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16801 for ac_func in $ac_func_list
16803 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16804 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16805 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16806 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16807 echo $ECHO_N "(cached
) $ECHO_C" >&6
16809 cat >conftest.$ac_ext <<_ACEOF
16812 cat confdefs.h >>conftest.$ac_ext
16813 cat >>conftest.$ac_ext <<_ACEOF
16814 /* end confdefs.h. */
16815 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16817 #define $ac_func innocuous_$ac_func
16819 /* System header to define __stub macros and hopefully few prototypes,
16820 which can conflict with char $ac_func (); below.
16821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16822 <limits.h> exists even on freestanding compilers. */
16825 # include <limits.h>
16827 # include <assert.h>
16832 /* Override any GCC internal prototype to avoid an error.
16833 Use char because int might match the return type of a GCC
16834 builtin and then its argument prototype would still apply. */
16839 /* The GNU C library defines this for functions which it implements
16840 to always fail with ENOSYS. Some functions are actually named
16841 something starting with __ and the normal name is an alias. */
16842 #if defined __stub_$ac_func || defined __stub___$ac_func
16849 return $ac_func ();
16854 rm -f conftest.$ac_objext conftest$ac_exeext
16855 if { (ac_try="$ac_link"
16856 case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16860 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_link") 2>conftest.er1
16863 grep -v '^ *+' conftest.er1 >conftest.err
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16867 (exit $ac_status); } && {
16868 test -z "$ac_c_werror_flag" ||
16869 test ! -s conftest.err
16870 } && test -s conftest$ac_exeext &&
16871 $as_test_x conftest$ac_exeext; then
16872 eval "$as_ac_var=yes"
16874 echo "$as_me: failed program was
:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16877 eval "$as_ac_var=no
"
16880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16881 conftest$ac_exeext conftest.$ac_ext
16883 ac_res=`eval echo '${'$as_ac_var'}'`
16884 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16885 echo "${ECHO_T}$ac_res" >&6; }
16886 if test `eval echo '${'$as_ac_var'}'` = yes; then
16887 cat >>confdefs.h <<_ACEOF
16888 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16910 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16911 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16912 if test "${ac_cv_func_working_mktime+set}" = set; then
16913 echo $ECHO_N "(cached
) $ECHO_C" >&6
16915 if test "$cross_compiling" = yes; then
16916 ac_cv_func_working_mktime=no
16918 cat >conftest.$ac_ext <<_ACEOF
16921 cat confdefs.h >>conftest.$ac_ext
16922 cat >>conftest.$ac_ext <<_ACEOF
16923 /* end confdefs.h. */
16924 /* Test program from Paul Eggert and Tony Leneis. */
16925 #ifdef TIME_WITH_SYS_TIME
16926 # include <sys/time.h>
16929 # ifdef HAVE_SYS_TIME_H
16930 # include <sys/time.h>
16936 #include <stdlib.h>
16938 #ifdef HAVE_UNISTD_H
16939 # include <unistd.h>
16943 # define alarm(X) /* empty */
16946 /* Work around redefinition to rpl_putenv by other config tests. */
16949 static time_t time_t_max;
16950 static time_t time_t_min;
16952 /* Values we'll use to set the TZ environment variable. */
16953 static char *tz_strings[] = {
16954 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16955 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16957 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16959 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16960 Based on a problem report from Andreas Jaeger. */
16962 spring_forward_gap ()
16964 /* glibc (up to about 1998-10-07) failed this test. */
16967 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16968 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16969 on systems that don't support the Olson extension, or don't have the
16970 full zoneinfo tables installed. */
16971 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16980 return mktime (&tm) != (time_t) -1;
16988 return ! (lt = localtime (&now)) || mktime (lt) == now;
16995 return (mktime_test1 (now)
16996 && mktime_test1 ((time_t) (time_t_max - now))
16997 && mktime_test1 ((time_t) (time_t_min + now)));
17003 /* Based on code from Ariel Faigon. */
17013 return tm.tm_mon == 2 && tm.tm_mday == 31;
17022 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17023 now = mktime (&tm);
17024 if (now != (time_t) -1)
17026 struct tm *lt = localtime (&now);
17028 && lt->tm_year == tm.tm_year
17029 && lt->tm_mon == tm.tm_mon
17030 && lt->tm_mday == tm.tm_mday
17031 && lt->tm_hour == tm.tm_hour
17032 && lt->tm_min == tm.tm_min
17033 && lt->tm_sec == tm.tm_sec
17034 && lt->tm_yday == tm.tm_yday
17035 && lt->tm_wday == tm.tm_wday
17036 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17037 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17046 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17047 ignoring leap seconds. */
17048 unsigned long int answer = 2527315200UL;
17052 tm.tm_year = 2050 - 1900;
17055 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17058 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17059 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17060 on systems that don't support the Olson extension, or don't have the
17061 full zoneinfo tables installed. */
17062 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17066 /* Check that the result is either a failure, or close enough
17067 to the correct answer that we can assume the discrepancy is
17068 due to leap seconds. */
17069 return (t == (time_t) -1
17070 || (0 < t && answer - 120 <= t && t <= answer + 120));
17079 /* This test makes some buggy mktime implementations loop.
17080 Give up after 60 seconds; a mktime slower than that
17081 isn't worth using anyway. */
17084 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17087 if ((time_t) -1 < 0)
17088 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17090 delta = time_t_max / 997; /* a suitable prime number */
17091 for (i = 0; i < N_STRINGS; i++)
17094 putenv (tz_strings[i]);
17096 for (t = 0; t <= time_t_max - delta; t += delta)
17097 if (! mktime_test (t))
17099 if (! (mktime_test ((time_t) 1)
17100 && mktime_test ((time_t) (60 * 60))
17101 && mktime_test ((time_t) (60 * 60 * 24))))
17104 for (j = 1; 0 < j; j *= 2)
17105 if (! bigtime_test (j))
17107 if (! bigtime_test (j - 1))
17110 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17113 rm -f conftest$ac_exeext
17114 if { (ac_try="$ac_link"
17115 case "(($ac_try" in
17116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17117 *) ac_try_echo=$ac_try;;
17119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17120 (eval "$ac_link") 2>&5
17122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17124 { (case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_try") 2>&5
17131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17132 (exit $ac_status); }; }; then
17133 ac_cv_func_working_mktime=yes
17135 echo "$as_me: program exited with status
$ac_status" >&5
17136 echo "$as_me: failed program was
:" >&5
17137 sed 's/^/| /' conftest.$ac_ext >&5
17139 ( exit $ac_status )
17140 ac_cv_func_working_mktime=no
17142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17147 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
17148 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17149 if test $ac_cv_func_working_mktime = no; then
17150 case " $LIBOBJS " in
17151 *" mktime.
$ac_objext "* ) ;;
17152 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
17158 if test "$ac_cv_func_working_mktime" = no; then
17160 cat >>confdefs.h <<\_ACEOF
17161 #define BROKEN_MKTIME 1
17166 ac_have_func=no # yes means we've found a way to get the load average.
17168 # Make sure getloadavg.c is where it belongs, at configure-time.
17169 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
17170 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
17171 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
17172 { (exit 1); exit 1; }; }
17176 # Check for getloadavg, but be sure not to touch the cache variable.
17177 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
17178 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
17179 if test "${ac_cv_func_getloadavg+set}" = set; then
17180 echo $ECHO_N "(cached
) $ECHO_C" >&6
17182 cat >conftest.$ac_ext <<_ACEOF
17185 cat confdefs.h >>conftest.$ac_ext
17186 cat >>conftest.$ac_ext <<_ACEOF
17187 /* end confdefs.h. */
17188 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17190 #define getloadavg innocuous_getloadavg
17192 /* System header to define __stub macros and hopefully few prototypes,
17193 which can conflict with char getloadavg (); below.
17194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17195 <limits.h> exists even on freestanding compilers. */
17198 # include <limits.h>
17200 # include <assert.h>
17205 /* Override any GCC internal prototype to avoid an error.
17206 Use char because int might match the return type of a GCC
17207 builtin and then its argument prototype would still apply. */
17211 char getloadavg ();
17212 /* The GNU C library defines this for functions which it implements
17213 to always fail with ENOSYS. Some functions are actually named
17214 something starting with __ and the normal name is an alias. */
17215 #if defined __stub_getloadavg || defined __stub___getloadavg
17222 return getloadavg ();
17227 rm -f conftest.$ac_objext conftest$ac_exeext
17228 if { (ac_try="$ac_link"
17229 case "(($ac_try" in
17230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231 *) ac_try_echo=$ac_try;;
17233 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17234 (eval "$ac_link") 2>conftest.er1
17236 grep -v '^ *+' conftest.er1 >conftest.err
17238 cat conftest.err >&5
17239 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17240 (exit $ac_status); } && {
17241 test -z "$ac_c_werror_flag" ||
17242 test ! -s conftest.err
17243 } && test -s conftest$ac_exeext &&
17244 $as_test_x conftest$ac_exeext; then
17245 ac_cv_func_getloadavg=yes
17247 echo "$as_me: failed program was
:" >&5
17248 sed 's/^/| /' conftest.$ac_ext >&5
17250 ac_cv_func_getloadavg=no
17253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17254 conftest$ac_exeext conftest.$ac_ext
17256 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
17257 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17258 if test $ac_cv_func_getloadavg = yes; then
17263 ) && ac_have_func=yes
17265 # On HPUX9, an unprivileged user can get load averages through this function.
17267 for ac_func in pstat_getdynamic
17269 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17270 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17271 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17272 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17273 echo $ECHO_N "(cached
) $ECHO_C" >&6
17275 cat >conftest.$ac_ext <<_ACEOF
17278 cat confdefs.h >>conftest.$ac_ext
17279 cat >>conftest.$ac_ext <<_ACEOF
17280 /* end confdefs.h. */
17281 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17282 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17283 #define $ac_func innocuous_$ac_func
17285 /* System header to define __stub macros and hopefully few prototypes,
17286 which can conflict with char $ac_func (); below.
17287 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17288 <limits.h> exists even on freestanding compilers. */
17291 # include <limits.h>
17293 # include <assert.h>
17298 /* Override any GCC internal prototype to avoid an error.
17299 Use char because int might match the return type of a GCC
17300 builtin and then its argument prototype would still apply. */
17305 /* The GNU C library defines this for functions which it implements
17306 to always fail with ENOSYS. Some functions are actually named
17307 something starting with __ and the normal name is an alias. */
17308 #if defined __stub_$ac_func || defined __stub___$ac_func
17315 return $ac_func ();
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (ac_try="$ac_link"
17322 case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_link") 2>conftest.er1
17329 grep -v '^ *+' conftest.er1 >conftest.err
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17333 (exit $ac_status); } && {
17334 test -z "$ac_c_werror_flag" ||
17335 test ! -s conftest.err
17336 } && test -s conftest$ac_exeext &&
17337 $as_test_x conftest$ac_exeext; then
17338 eval "$as_ac_var=yes"
17340 echo "$as_me: failed program was
:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 eval "$as_ac_var=no
"
17346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17347 conftest$ac_exeext conftest.$ac_ext
17349 ac_res=`eval echo '${'$as_ac_var'}'`
17350 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17351 echo "${ECHO_T}$ac_res" >&6; }
17352 if test `eval echo '${'$as_ac_var'}'` = yes; then
17353 cat >>confdefs.h <<_ACEOF
17354 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17361 # Solaris has libkstat which does not require root.
17363 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17364 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17365 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17366 echo $ECHO_N "(cached
) $ECHO_C" >&6
17368 ac_check_lib_save_LIBS=$LIBS
17369 LIBS="-lkstat $LIBS"
17370 cat >conftest.$ac_ext <<_ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17377 /* Override any GCC internal prototype to avoid an error.
17378 Use char because int might match the return type of a GCC
17379 builtin and then its argument prototype would still apply. */
17383 char kstat_open ();
17387 return kstat_open ();
17392 rm -f conftest.$ac_objext conftest$ac_exeext
17393 if { (ac_try="$ac_link"
17394 case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_link") 2>conftest.er1
17401 grep -v '^ *+' conftest.er1 >conftest.err
17403 cat conftest.err >&5
17404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17405 (exit $ac_status); } && {
17406 test -z "$ac_c_werror_flag" ||
17407 test ! -s conftest.err
17408 } && test -s conftest$ac_exeext &&
17409 $as_test_x conftest$ac_exeext; then
17410 ac_cv_lib_kstat_kstat_open=yes
17412 echo "$as_me: failed program was
:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17415 ac_cv_lib_kstat_kstat_open=no
17418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17419 conftest$ac_exeext conftest.$ac_ext
17420 LIBS=$ac_check_lib_save_LIBS
17422 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17423 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17424 if test $ac_cv_lib_kstat_kstat_open = yes; then
17425 cat >>confdefs.h <<_ACEOF
17426 #define HAVE_LIBKSTAT 1
17429 LIBS="-lkstat $LIBS"
17433 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17435 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17436 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17437 # to get the right answer into the cache.
17438 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17439 if test $ac_have_func = no; then
17440 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17441 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17442 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17443 echo $ECHO_N "(cached
) $ECHO_C" >&6
17445 ac_check_lib_save_LIBS=$LIBS
17447 cat >conftest.$ac_ext <<_ACEOF
17450 cat confdefs.h >>conftest.$ac_ext
17451 cat >>conftest.$ac_ext <<_ACEOF
17452 /* end confdefs.h. */
17454 /* Override any GCC internal prototype to avoid an error.
17455 Use char because int might match the return type of a GCC
17456 builtin and then its argument prototype would still apply. */
17464 return elf_begin ();
17469 rm -f conftest.$ac_objext conftest$ac_exeext
17470 if { (ac_try="$ac_link"
17471 case "(($ac_try" in
17472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17473 *) ac_try_echo=$ac_try;;
17475 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17476 (eval "$ac_link") 2>conftest.er1
17478 grep -v '^ *+' conftest.er1 >conftest.err
17480 cat conftest.err >&5
17481 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17482 (exit $ac_status); } && {
17483 test -z "$ac_c_werror_flag" ||
17484 test ! -s conftest.err
17485 } && test -s conftest$ac_exeext &&
17486 $as_test_x conftest$ac_exeext; then
17487 ac_cv_lib_elf_elf_begin=yes
17489 echo "$as_me: failed program was
:" >&5
17490 sed 's/^/| /' conftest.$ac_ext >&5
17492 ac_cv_lib_elf_elf_begin=no
17495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17496 conftest$ac_exeext conftest.$ac_ext
17497 LIBS=$ac_check_lib_save_LIBS
17499 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17500 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17501 if test $ac_cv_lib_elf_elf_begin = yes; then
17506 if test $ac_have_func = no; then
17507 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17508 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17509 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17510 echo $ECHO_N "(cached
) $ECHO_C" >&6
17512 ac_check_lib_save_LIBS=$LIBS
17514 cat >conftest.$ac_ext <<_ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h. */
17521 /* Override any GCC internal prototype to avoid an error.
17522 Use char because int might match the return type of a GCC
17523 builtin and then its argument prototype would still apply. */
17531 return kvm_open ();
17536 rm -f conftest.$ac_objext conftest$ac_exeext
17537 if { (ac_try="$ac_link"
17538 case "(($ac_try" in
17539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17540 *) ac_try_echo=$ac_try;;
17542 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17543 (eval "$ac_link") 2>conftest.er1
17545 grep -v '^ *+' conftest.er1 >conftest.err
17547 cat conftest.err >&5
17548 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17549 (exit $ac_status); } && {
17550 test -z "$ac_c_werror_flag" ||
17551 test ! -s conftest.err
17552 } && test -s conftest$ac_exeext &&
17553 $as_test_x conftest$ac_exeext; then
17554 ac_cv_lib_kvm_kvm_open=yes
17556 echo "$as_me: failed program was
:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17559 ac_cv_lib_kvm_kvm_open=no
17562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17563 conftest$ac_exeext conftest.$ac_ext
17564 LIBS=$ac_check_lib_save_LIBS
17566 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17567 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17568 if test $ac_cv_lib_kvm_kvm_open = yes; then
17572 # Check for the 4.4BSD definition of getloadavg.
17573 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17574 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17575 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17576 echo $ECHO_N "(cached
) $ECHO_C" >&6
17578 ac_check_lib_save_LIBS=$LIBS
17579 LIBS="-lutil $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 getloadavg ();
17597 return getloadavg ();
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_util_getloadavg=yes
17622 echo "$as_me: failed program was
:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17625 ac_cv_lib_util_getloadavg=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_util_getloadavg" >&5
17633 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17634 if test $ac_cv_lib_util_getloadavg = yes; then
17635 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17640 if test $ac_have_func = no; then
17641 # There is a commonly available library for RS/6000 AIX.
17642 # Since it is not a standard part of AIX, it might be installed locally.
17643 ac_getloadavg_LIBS=$LIBS
17644 LIBS="-L/usr
/local
/lib
$LIBS"
17645 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17646 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17647 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17648 echo $ECHO_N "(cached
) $ECHO_C" >&6
17650 ac_check_lib_save_LIBS=$LIBS
17651 LIBS="-lgetloadavg $LIBS"
17652 cat >conftest.$ac_ext <<_ACEOF
17655 cat confdefs.h >>conftest.$ac_ext
17656 cat >>conftest.$ac_ext <<_ACEOF
17657 /* end confdefs.h. */
17659 /* Override any GCC internal prototype to avoid an error.
17660 Use char because int might match the return type of a GCC
17661 builtin and then its argument prototype would still apply. */
17665 char getloadavg ();
17669 return getloadavg ();
17674 rm -f conftest.$ac_objext conftest$ac_exeext
17675 if { (ac_try="$ac_link"
17676 case "(($ac_try" in
17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678 *) ac_try_echo=$ac_try;;
17680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17681 (eval "$ac_link") 2>conftest.er1
17683 grep -v '^ *+' conftest.er1 >conftest.err
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17687 (exit $ac_status); } && {
17688 test -z "$ac_c_werror_flag" ||
17689 test ! -s conftest.err
17690 } && test -s conftest$ac_exeext &&
17691 $as_test_x conftest$ac_exeext; then
17692 ac_cv_lib_getloadavg_getloadavg=yes
17694 echo "$as_me: failed program was
:" >&5
17695 sed 's/^/| /' conftest.$ac_ext >&5
17697 ac_cv_lib_getloadavg_getloadavg=no
17700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17701 conftest$ac_exeext conftest.$ac_ext
17702 LIBS=$ac_check_lib_save_LIBS
17704 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17705 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17706 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17707 LIBS="-lgetloadavg $LIBS"
17709 LIBS=$ac_getloadavg_LIBS
17714 # Make sure it is really in the library, if we think we found it,
17715 # otherwise set up the replacement function.
17717 for ac_func in getloadavg
17719 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17720 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17721 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17722 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17723 echo $ECHO_N "(cached
) $ECHO_C" >&6
17725 cat >conftest.$ac_ext <<_ACEOF
17728 cat confdefs.h >>conftest.$ac_ext
17729 cat >>conftest.$ac_ext <<_ACEOF
17730 /* end confdefs.h. */
17731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17733 #define $ac_func innocuous_$ac_func
17735 /* System header to define __stub macros and hopefully few prototypes,
17736 which can conflict with char $ac_func (); below.
17737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17738 <limits.h> exists even on freestanding compilers. */
17741 # include <limits.h>
17743 # include <assert.h>
17748 /* Override any GCC internal prototype to avoid an error.
17749 Use char because int might match the return type of a GCC
17750 builtin and then its argument prototype would still apply. */
17755 /* The GNU C library defines this for functions which it implements
17756 to always fail with ENOSYS. Some functions are actually named
17757 something starting with __ and the normal name is an alias. */
17758 #if defined __stub_$ac_func || defined __stub___$ac_func
17765 return $ac_func ();
17770 rm -f conftest.$ac_objext conftest$ac_exeext
17771 if { (ac_try="$ac_link"
17772 case "(($ac_try" in
17773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17774 *) ac_try_echo=$ac_try;;
17776 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17777 (eval "$ac_link") 2>conftest.er1
17779 grep -v '^ *+' conftest.er1 >conftest.err
17781 cat conftest.err >&5
17782 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17783 (exit $ac_status); } && {
17784 test -z "$ac_c_werror_flag" ||
17785 test ! -s conftest.err
17786 } && test -s conftest$ac_exeext &&
17787 $as_test_x conftest$ac_exeext; then
17788 eval "$as_ac_var=yes"
17790 echo "$as_me: failed program was
:" >&5
17791 sed 's/^/| /' conftest.$ac_ext >&5
17793 eval "$as_ac_var=no
"
17796 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17797 conftest$ac_exeext conftest.$ac_ext
17799 ac_res=`eval echo '${'$as_ac_var'}'`
17800 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17801 echo "${ECHO_T}$ac_res" >&6; }
17802 if test `eval echo '${'$as_ac_var'}'` = yes; then
17803 cat >>confdefs.h <<_ACEOF
17804 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17808 case " $LIBOBJS " in
17809 *" getloadavg.
$ac_objext "* ) ;;
17810 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17815 cat >>confdefs.h <<\_ACEOF
17816 #define C_GETLOADAVG 1
17819 # Figure out what our getloadavg.c needs.
17821 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17822 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17823 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17824 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17825 echo $ECHO_N "(cached
) $ECHO_C" >&6
17827 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17828 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17830 # Is the header compilable?
17831 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17832 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17833 cat >conftest.$ac_ext <<_ACEOF
17836 cat confdefs.h >>conftest.$ac_ext
17837 cat >>conftest.$ac_ext <<_ACEOF
17838 /* end confdefs.h. */
17839 $ac_includes_default
17840 #include <sys/dg_sys_info.h>
17842 rm -f conftest.$ac_objext
17843 if { (ac_try="$ac_compile"
17844 case "(($ac_try" in
17845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17846 *) ac_try_echo=$ac_try;;
17848 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17849 (eval "$ac_compile") 2>conftest.er1
17851 grep -v '^ *+' conftest.er1 >conftest.err
17853 cat conftest.err >&5
17854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17855 (exit $ac_status); } && {
17856 test -z "$ac_c_werror_flag" ||
17857 test ! -s conftest.err
17858 } && test -s conftest.$ac_objext; then
17859 ac_header_compiler=yes
17861 echo "$as_me: failed program was
:" >&5
17862 sed 's/^/| /' conftest.$ac_ext >&5
17864 ac_header_compiler=no
17867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17868 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17869 echo "${ECHO_T}$ac_header_compiler" >&6; }
17871 # Is the header present?
17872 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17873 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17874 cat >conftest.$ac_ext <<_ACEOF
17877 cat confdefs.h >>conftest.$ac_ext
17878 cat >>conftest.$ac_ext <<_ACEOF
17879 /* end confdefs.h. */
17880 #include <sys/dg_sys_info.h>
17882 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17883 case "(($ac_try" in
17884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17885 *) ac_try_echo=$ac_try;;
17887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17888 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17890 grep -v '^ *+' conftest.er1 >conftest.err
17892 cat conftest.err >&5
17893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17894 (exit $ac_status); } >/dev/null && {
17895 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17896 test ! -s conftest.err
17898 ac_header_preproc=yes
17900 echo "$as_me: failed program was
:" >&5
17901 sed 's/^/| /' conftest.$ac_ext >&5
17903 ac_header_preproc=no
17906 rm -f conftest.err conftest.$ac_ext
17907 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17908 echo "${ECHO_T}$ac_header_preproc" >&6; }
17910 # So? What about this header?
17911 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17913 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17914 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17915 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17916 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17917 ac_header_preproc=yes
17920 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17921 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17922 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17923 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17924 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17925 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17926 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17927 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17928 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17929 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17930 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17931 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17935 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17936 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17937 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17938 echo $ECHO_N "(cached
) $ECHO_C" >&6
17940 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17942 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17943 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17946 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17949 cat >>confdefs.h <<\_ACEOF
17954 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17955 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17956 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17957 echo $ECHO_N "(cached
) $ECHO_C" >&6
17959 ac_check_lib_save_LIBS=$LIBS
17961 cat >conftest.$ac_ext <<_ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17968 /* Override any GCC internal prototype to avoid an error.
17969 Use char because int might match the return type of a GCC
17970 builtin and then its argument prototype would still apply. */
17974 char dg_sys_info ();
17978 return dg_sys_info ();
17983 rm -f conftest.$ac_objext conftest$ac_exeext
17984 if { (ac_try="$ac_link"
17985 case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17989 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_link") 2>conftest.er1
17992 grep -v '^ *+' conftest.er1 >conftest.err
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17996 (exit $ac_status); } && {
17997 test -z "$ac_c_werror_flag" ||
17998 test ! -s conftest.err
17999 } && test -s conftest$ac_exeext &&
18000 $as_test_x conftest$ac_exeext; then
18001 ac_cv_lib_dgc_dg_sys_info=yes
18003 echo "$as_me: failed program was
:" >&5
18004 sed 's/^/| /' conftest.$ac_ext >&5
18006 ac_cv_lib_dgc_dg_sys_info=no
18009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18010 conftest$ac_exeext conftest.$ac_ext
18011 LIBS=$ac_check_lib_save_LIBS
18013 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
18014 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
18015 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18016 cat >>confdefs.h <<_ACEOF
18017 #define HAVE_LIBDGC 1
18028 if test "${ac_cv_header_locale_h+set}" = set; then
18029 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
18030 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
18031 if test "${ac_cv_header_locale_h+set}" = set; then
18032 echo $ECHO_N "(cached
) $ECHO_C" >&6
18034 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18035 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18037 # Is the header compilable?
18038 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
18039 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
18040 cat >conftest.$ac_ext <<_ACEOF
18043 cat confdefs.h >>conftest.$ac_ext
18044 cat >>conftest.$ac_ext <<_ACEOF
18045 /* end confdefs.h. */
18046 $ac_includes_default
18047 #include <locale.h>
18049 rm -f conftest.$ac_objext
18050 if { (ac_try="$ac_compile"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_compile") 2>conftest.er1
18058 grep -v '^ *+' conftest.er1 >conftest.err
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18062 (exit $ac_status); } && {
18063 test -z "$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18065 } && test -s conftest.$ac_objext; then
18066 ac_header_compiler=yes
18068 echo "$as_me: failed program was
:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 ac_header_compiler=no
18074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18075 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18076 echo "${ECHO_T}$ac_header_compiler" >&6; }
18078 # Is the header present?
18079 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
18080 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
18081 cat >conftest.$ac_ext <<_ACEOF
18084 cat confdefs.h >>conftest.$ac_ext
18085 cat >>conftest.$ac_ext <<_ACEOF
18086 /* end confdefs.h. */
18087 #include <locale.h>
18089 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18090 case "(($ac_try" in
18091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18092 *) ac_try_echo=$ac_try;;
18094 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18095 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18097 grep -v '^ *+' conftest.er1 >conftest.err
18099 cat conftest.err >&5
18100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18101 (exit $ac_status); } >/dev/null && {
18102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18103 test ! -s conftest.err
18105 ac_header_preproc=yes
18107 echo "$as_me: failed program was
:" >&5
18108 sed 's/^/| /' conftest.$ac_ext >&5
18110 ac_header_preproc=no
18113 rm -f conftest.err conftest.$ac_ext
18114 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18115 echo "${ECHO_T}$ac_header_preproc" >&6; }
18117 # So? What about this header?
18118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18120 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18121 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18122 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
18123 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
18124 ac_header_preproc=yes
18127 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
18128 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
18129 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
18130 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
18131 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
18132 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
18133 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18134 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18135 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
18136 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
18137 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
18138 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
18142 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
18143 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
18144 if test "${ac_cv_header_locale_h+set}" = set; then
18145 echo $ECHO_N "(cached
) $ECHO_C" >&6
18147 ac_cv_header_locale_h=$ac_header_preproc
18149 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18150 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18156 for ac_func in setlocale
18158 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18159 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18160 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18161 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18162 echo $ECHO_N "(cached
) $ECHO_C" >&6
18164 cat >conftest.$ac_ext <<_ACEOF
18167 cat confdefs.h >>conftest.$ac_ext
18168 cat >>conftest.$ac_ext <<_ACEOF
18169 /* end confdefs.h. */
18170 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18171 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18172 #define $ac_func innocuous_$ac_func
18174 /* System header to define __stub macros and hopefully few prototypes,
18175 which can conflict with char $ac_func (); below.
18176 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18177 <limits.h> exists even on freestanding compilers. */
18180 # include <limits.h>
18182 # include <assert.h>
18187 /* Override any GCC internal prototype to avoid an error.
18188 Use char because int might match the return type of a GCC
18189 builtin and then its argument prototype would still apply. */
18194 /* The GNU C library defines this for functions which it implements
18195 to always fail with ENOSYS. Some functions are actually named
18196 something starting with __ and the normal name is an alias. */
18197 #if defined __stub_$ac_func || defined __stub___$ac_func
18204 return $ac_func ();
18209 rm -f conftest.$ac_objext conftest$ac_exeext
18210 if { (ac_try="$ac_link"
18211 case "(($ac_try" in
18212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18213 *) ac_try_echo=$ac_try;;
18215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18216 (eval "$ac_link") 2>conftest.er1
18218 grep -v '^ *+' conftest.er1 >conftest.err
18220 cat conftest.err >&5
18221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18222 (exit $ac_status); } && {
18223 test -z "$ac_c_werror_flag" ||
18224 test ! -s conftest.err
18225 } && test -s conftest$ac_exeext &&
18226 $as_test_x conftest$ac_exeext; then
18227 eval "$as_ac_var=yes"
18229 echo "$as_me: failed program was
:" >&5
18230 sed 's/^/| /' conftest.$ac_ext >&5
18232 eval "$as_ac_var=no
"
18235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18236 conftest$ac_exeext conftest.$ac_ext
18238 ac_res=`eval echo '${'$as_ac_var'}'`
18239 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18240 echo "${ECHO_T}$ac_res" >&6; }
18241 if test `eval echo '${'$as_ac_var'}'` = yes; then
18242 cat >>confdefs.h <<_ACEOF
18243 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18250 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18251 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18252 # Irix 4.0.5F has the header but not the library.
18253 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18256 cat >>confdefs.h <<\_ACEOF
18262 if test $ac_have_func = no; then
18263 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18264 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18265 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18266 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18267 echo $ECHO_N "(cached
) $ECHO_C" >&6
18269 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18270 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18272 # Is the header compilable?
18273 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
18274 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
18275 cat >conftest.$ac_ext <<_ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18281 $ac_includes_default
18282 #include <inq_stats/cpustats.h>
18284 rm -f conftest.$ac_objext
18285 if { (ac_try="$ac_compile"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_compile") 2>conftest.er1
18293 grep -v '^ *+' conftest.er1 >conftest.err
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18297 (exit $ac_status); } && {
18298 test -z "$ac_c_werror_flag" ||
18299 test ! -s conftest.err
18300 } && test -s conftest.$ac_objext; then
18301 ac_header_compiler=yes
18303 echo "$as_me: failed program was
:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18306 ac_header_compiler=no
18309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18310 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18311 echo "${ECHO_T}$ac_header_compiler" >&6; }
18313 # Is the header present?
18314 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18315 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
18316 cat >conftest.$ac_ext <<_ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322 #include <inq_stats/cpustats.h>
18324 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18325 case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18332 grep -v '^ *+' conftest.er1 >conftest.err
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18336 (exit $ac_status); } >/dev/null && {
18337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18338 test ! -s conftest.err
18340 ac_header_preproc=yes
18342 echo "$as_me: failed program was
:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18345 ac_header_preproc=no
18348 rm -f conftest.err conftest.$ac_ext
18349 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18350 echo "${ECHO_T}$ac_header_preproc" >&6; }
18352 # So? What about this header?
18353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18355 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18356 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18357 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18358 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18359 ac_header_preproc=yes
18362 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18363 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18364 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18365 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18366 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18367 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18368 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18369 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18370 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18371 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18372 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18373 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18377 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18378 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18379 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18380 echo $ECHO_N "(cached
) $ECHO_C" >&6
18382 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18384 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18385 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18388 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18391 cat >>confdefs.h <<\_ACEOF
18396 cat >>confdefs.h <<\_ACEOF
18405 if test $ac_have_func = no; then
18406 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18407 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18408 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18409 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18410 echo $ECHO_N "(cached
) $ECHO_C" >&6
18412 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18413 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18415 # Is the header compilable?
18416 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18417 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18418 cat >conftest.$ac_ext <<_ACEOF
18421 cat confdefs.h >>conftest.$ac_ext
18422 cat >>conftest.$ac_ext <<_ACEOF
18423 /* end confdefs.h. */
18424 $ac_includes_default
18425 #include <sys/cpustats.h>
18427 rm -f conftest.$ac_objext
18428 if { (ac_try="$ac_compile"
18429 case "(($ac_try" in
18430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18431 *) ac_try_echo=$ac_try;;
18433 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18434 (eval "$ac_compile") 2>conftest.er1
18436 grep -v '^ *+' conftest.er1 >conftest.err
18438 cat conftest.err >&5
18439 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18440 (exit $ac_status); } && {
18441 test -z "$ac_c_werror_flag" ||
18442 test ! -s conftest.err
18443 } && test -s conftest.$ac_objext; then
18444 ac_header_compiler=yes
18446 echo "$as_me: failed program was
:" >&5
18447 sed 's/^/| /' conftest.$ac_ext >&5
18449 ac_header_compiler=no
18452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18453 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18454 echo "${ECHO_T}$ac_header_compiler" >&6; }
18456 # Is the header present?
18457 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18458 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18459 cat >conftest.$ac_ext <<_ACEOF
18462 cat confdefs.h >>conftest.$ac_ext
18463 cat >>conftest.$ac_ext <<_ACEOF
18464 /* end confdefs.h. */
18465 #include <sys/cpustats.h>
18467 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18468 case "(($ac_try" in
18469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18470 *) ac_try_echo=$ac_try;;
18472 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18473 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18475 grep -v '^ *+' conftest.er1 >conftest.err
18477 cat conftest.err >&5
18478 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18479 (exit $ac_status); } >/dev/null && {
18480 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18481 test ! -s conftest.err
18483 ac_header_preproc=yes
18485 echo "$as_me: failed program was
:" >&5
18486 sed 's/^/| /' conftest.$ac_ext >&5
18488 ac_header_preproc=no
18491 rm -f conftest.err conftest.$ac_ext
18492 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18493 echo "${ECHO_T}$ac_header_preproc" >&6; }
18495 # So? What about this header?
18496 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18498 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18499 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18500 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18501 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18502 ac_header_preproc=yes
18505 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18506 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18507 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18508 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18509 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18510 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18511 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18512 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18513 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18514 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18515 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18516 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18520 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18521 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18522 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18523 echo $ECHO_N "(cached
) $ECHO_C" >&6
18525 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18527 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18528 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18531 if test $ac_cv_header_sys_cpustats_h = yes; then
18532 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18541 if test $ac_have_func = no; then
18543 for ac_header in mach/mach.h
18545 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18546 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18547 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18548 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18549 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18550 echo $ECHO_N "(cached
) $ECHO_C" >&6
18552 ac_res=`eval echo '${'$as_ac_Header'}'`
18553 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18554 echo "${ECHO_T}$ac_res" >&6; }
18556 # Is the header compilable?
18557 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18558 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18559 cat >conftest.$ac_ext <<_ACEOF
18562 cat confdefs.h >>conftest.$ac_ext
18563 cat >>conftest.$ac_ext <<_ACEOF
18564 /* end confdefs.h. */
18565 $ac_includes_default
18566 #include <$ac_header>
18568 rm -f conftest.$ac_objext
18569 if { (ac_try="$ac_compile"
18570 case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_compile") 2>conftest.er1
18577 grep -v '^ *+' conftest.er1 >conftest.err
18579 cat conftest.err >&5
18580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18581 (exit $ac_status); } && {
18582 test -z "$ac_c_werror_flag" ||
18583 test ! -s conftest.err
18584 } && test -s conftest.$ac_objext; then
18585 ac_header_compiler=yes
18587 echo "$as_me: failed program was
:" >&5
18588 sed 's/^/| /' conftest.$ac_ext >&5
18590 ac_header_compiler=no
18593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18594 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18595 echo "${ECHO_T}$ac_header_compiler" >&6; }
18597 # Is the header present?
18598 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18599 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18600 cat >conftest.$ac_ext <<_ACEOF
18603 cat confdefs.h >>conftest.$ac_ext
18604 cat >>conftest.$ac_ext <<_ACEOF
18605 /* end confdefs.h. */
18606 #include <$ac_header>
18608 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18609 case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18616 grep -v '^ *+' conftest.er1 >conftest.err
18618 cat conftest.err >&5
18619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18620 (exit $ac_status); } >/dev/null && {
18621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18622 test ! -s conftest.err
18624 ac_header_preproc=yes
18626 echo "$as_me: failed program was
:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18629 ac_header_preproc=no
18632 rm -f conftest.err conftest.$ac_ext
18633 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18634 echo "${ECHO_T}$ac_header_preproc" >&6; }
18636 # So? What about this header?
18637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18639 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18640 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18641 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18643 ac_header_preproc=yes
18646 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18647 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18648 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18649 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18650 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18651 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18652 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18653 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18654 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18656 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18657 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18661 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18662 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18663 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18664 echo $ECHO_N "(cached
) $ECHO_C" >&6
18666 eval "$as_ac_Header=\
$ac_header_preproc"
18668 ac_res=`eval echo '${'$as_ac_Header'}'`
18669 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18670 echo "${ECHO_T}$ac_res" >&6; }
18673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18674 cat >>confdefs.h <<_ACEOF
18675 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18685 for ac_header in nlist.h
18687 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18688 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18689 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18690 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18691 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18692 echo $ECHO_N "(cached
) $ECHO_C" >&6
18694 ac_res=`eval echo '${'$as_ac_Header'}'`
18695 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18696 echo "${ECHO_T}$ac_res" >&6; }
18698 # Is the header compilable?
18699 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18700 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18701 cat >conftest.$ac_ext <<_ACEOF
18704 cat confdefs.h >>conftest.$ac_ext
18705 cat >>conftest.$ac_ext <<_ACEOF
18706 /* end confdefs.h. */
18707 $ac_includes_default
18708 #include <$ac_header>
18710 rm -f conftest.$ac_objext
18711 if { (ac_try="$ac_compile"
18712 case "(($ac_try" in
18713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18714 *) ac_try_echo=$ac_try;;
18716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18717 (eval "$ac_compile") 2>conftest.er1
18719 grep -v '^ *+' conftest.er1 >conftest.err
18721 cat conftest.err >&5
18722 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18723 (exit $ac_status); } && {
18724 test -z "$ac_c_werror_flag" ||
18725 test ! -s conftest.err
18726 } && test -s conftest.$ac_objext; then
18727 ac_header_compiler=yes
18729 echo "$as_me: failed program was
:" >&5
18730 sed 's/^/| /' conftest.$ac_ext >&5
18732 ac_header_compiler=no
18735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18736 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18737 echo "${ECHO_T}$ac_header_compiler" >&6; }
18739 # Is the header present?
18740 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18741 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18742 cat >conftest.$ac_ext <<_ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h. */
18748 #include <$ac_header>
18750 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18751 case "(($ac_try" in
18752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18753 *) ac_try_echo=$ac_try;;
18755 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18756 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18758 grep -v '^ *+' conftest.er1 >conftest.err
18760 cat conftest.err >&5
18761 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18762 (exit $ac_status); } >/dev/null && {
18763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18764 test ! -s conftest.err
18766 ac_header_preproc=yes
18768 echo "$as_me: failed program was
:" >&5
18769 sed 's/^/| /' conftest.$ac_ext >&5
18771 ac_header_preproc=no
18774 rm -f conftest.err conftest.$ac_ext
18775 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18776 echo "${ECHO_T}$ac_header_preproc" >&6; }
18778 # So? What about this header?
18779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18781 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18782 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18783 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18785 ac_header_preproc=yes
18788 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18789 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18790 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18791 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18792 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18793 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18794 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18795 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18796 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18798 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18799 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18803 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18804 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18805 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18806 echo $ECHO_N "(cached
) $ECHO_C" >&6
18808 eval "$as_ac_Header=\
$ac_header_preproc"
18810 ac_res=`eval echo '${'$as_ac_Header'}'`
18811 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18812 echo "${ECHO_T}$ac_res" >&6; }
18815 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18816 cat >>confdefs.h <<_ACEOF
18817 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18819 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18820 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18821 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18822 echo $ECHO_N "(cached
) $ECHO_C" >&6
18824 cat >conftest.$ac_ext <<_ACEOF
18827 cat confdefs.h >>conftest.$ac_ext
18828 cat >>conftest.$ac_ext <<_ACEOF
18829 /* end confdefs.h. */
18835 static struct nlist ac_aggr;
18836 if (ac_aggr.n_un.n_name)
18842 rm -f conftest.$ac_objext
18843 if { (ac_try="$ac_compile"
18844 case "(($ac_try" in
18845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18846 *) ac_try_echo=$ac_try;;
18848 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18849 (eval "$ac_compile") 2>conftest.er1
18851 grep -v '^ *+' conftest.er1 >conftest.err
18853 cat conftest.err >&5
18854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18855 (exit $ac_status); } && {
18856 test -z "$ac_c_werror_flag" ||
18857 test ! -s conftest.err
18858 } && test -s conftest.$ac_objext; then
18859 ac_cv_member_struct_nlist_n_un_n_name=yes
18861 echo "$as_me: failed program was
:" >&5
18862 sed 's/^/| /' conftest.$ac_ext >&5
18864 cat >conftest.$ac_ext <<_ACEOF
18867 cat confdefs.h >>conftest.$ac_ext
18868 cat >>conftest.$ac_ext <<_ACEOF
18869 /* end confdefs.h. */
18875 static struct nlist ac_aggr;
18876 if (sizeof ac_aggr.n_un.n_name)
18882 rm -f conftest.$ac_objext
18883 if { (ac_try="$ac_compile"
18884 case "(($ac_try" in
18885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18886 *) ac_try_echo=$ac_try;;
18888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18889 (eval "$ac_compile") 2>conftest.er1
18891 grep -v '^ *+' conftest.er1 >conftest.err
18893 cat conftest.err >&5
18894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18895 (exit $ac_status); } && {
18896 test -z "$ac_c_werror_flag" ||
18897 test ! -s conftest.err
18898 } && test -s conftest.$ac_objext; then
18899 ac_cv_member_struct_nlist_n_un_n_name=yes
18901 echo "$as_me: failed program was
:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18904 ac_cv_member_struct_nlist_n_un_n_name=no
18907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18912 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18913 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18914 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18916 cat >>confdefs.h <<_ACEOF
18917 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18921 cat >>confdefs.h <<\_ACEOF
18922 #define NLIST_NAME_UNION 1
18936 # Some definitions of getloadavg require that the program be installed setgid.
18937 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18938 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18939 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18940 echo $ECHO_N "(cached
) $ECHO_C" >&6
18942 cat >conftest.$ac_ext <<_ACEOF
18945 cat confdefs.h >>conftest.$ac_ext
18946 cat >>conftest.$ac_ext <<_ACEOF
18947 /* end confdefs.h. */
18948 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18949 #ifdef LDAV_PRIVILEGED
18950 Yowza Am I SETGID yet
18953 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18954 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18955 ac_cv_func_getloadavg_setgid=yes
18957 ac_cv_func_getloadavg_setgid=no
18962 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18963 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18964 if test $ac_cv_func_getloadavg_setgid = yes; then
18967 cat >>confdefs.h <<\_ACEOF
18968 #define GETLOADAVG_PRIVILEGED 1
18975 if test $ac_cv_func_getloadavg_setgid = yes; then
18976 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18977 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18978 if test "${ac_cv_group_kmem+set}" = set; then
18979 echo $ECHO_N "(cached
) $ECHO_C" >&6
18981 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18982 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18983 # If we got an error (system does not support symlinks), try without -L.
18984 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18985 ac_cv_group_kmem=`echo $ac_ls_output \
18986 | sed -ne 's/[ ][ ]*/ /g;
18987 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18991 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18992 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18993 KMEM_GROUP=$ac_cv_group_kmem
18995 if test "x
$ac_save_LIBS" = x; then
18996 GETLOADAVG_LIBS=$LIBS
18998 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
19004 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
19005 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
19006 if test "${ac_cv_sys_largefile_source+set}" = set; then
19007 echo $ECHO_N "(cached
) $ECHO_C" >&6
19010 cat >conftest.$ac_ext <<_ACEOF
19013 cat confdefs.h >>conftest.$ac_ext
19014 cat >>conftest.$ac_ext <<_ACEOF
19015 /* end confdefs.h. */
19020 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19025 rm -f conftest.$ac_objext conftest$ac_exeext
19026 if { (ac_try="$ac_link"
19027 case "(($ac_try" in
19028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19029 *) ac_try_echo=$ac_try;;
19031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19032 (eval "$ac_link") 2>conftest.er1
19034 grep -v '^ *+' conftest.er1 >conftest.err
19036 cat conftest.err >&5
19037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19038 (exit $ac_status); } && {
19039 test -z "$ac_c_werror_flag" ||
19040 test ! -s conftest.err
19041 } && test -s conftest$ac_exeext &&
19042 $as_test_x conftest$ac_exeext; then
19043 ac_cv_sys_largefile_source=no; break
19045 echo "$as_me: failed program was
:" >&5
19046 sed 's/^/| /' conftest.$ac_ext >&5
19051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19052 conftest$ac_exeext conftest.$ac_ext
19053 cat >conftest.$ac_ext <<_ACEOF
19056 cat confdefs.h >>conftest.$ac_ext
19057 cat >>conftest.$ac_ext <<_ACEOF
19058 /* end confdefs.h. */
19059 #define _LARGEFILE_SOURCE 1
19064 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19069 rm -f conftest.$ac_objext conftest$ac_exeext
19070 if { (ac_try="$ac_link"
19071 case "(($ac_try" in
19072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073 *) ac_try_echo=$ac_try;;
19075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19076 (eval "$ac_link") 2>conftest.er1
19078 grep -v '^ *+' conftest.er1 >conftest.err
19080 cat conftest.err >&5
19081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19082 (exit $ac_status); } && {
19083 test -z "$ac_c_werror_flag" ||
19084 test ! -s conftest.err
19085 } && test -s conftest$ac_exeext &&
19086 $as_test_x conftest$ac_exeext; then
19087 ac_cv_sys_largefile_source=1; break
19089 echo "$as_me: failed program was
:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19096 conftest$ac_exeext conftest.$ac_ext
19097 ac_cv_sys_largefile_source=unknown
19101 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
19102 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19103 case $ac_cv_sys_largefile_source in #(
19106 cat >>confdefs.h <<_ACEOF
19107 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19113 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19114 # in glibc 2.1.3, but that breaks too many other things.
19115 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19116 if test $ac_cv_sys_largefile_source != unknown; then
19118 cat >>confdefs.h <<\_ACEOF
19119 #define HAVE_FSEEKO 1
19125 # Configure getopt.
19126 # getopt.m4 serial 10
19128 # The getopt module assume you want GNU getopt, with getopt_long etc,
19129 # rather than vanilla POSIX getopt. This means your your code should
19130 # always include <getopt.h> for the getopt prototypes.
19142 # Prerequisites of lib/getopt*.
19149 for ac_header in getopt.h
19151 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19152 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19153 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19154 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19155 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19156 echo $ECHO_N "(cached
) $ECHO_C" >&6
19158 ac_res=`eval echo '${'$as_ac_Header'}'`
19159 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19160 echo "${ECHO_T}$ac_res" >&6; }
19162 # Is the header compilable?
19163 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19164 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19165 cat >conftest.$ac_ext <<_ACEOF
19168 cat confdefs.h >>conftest.$ac_ext
19169 cat >>conftest.$ac_ext <<_ACEOF
19170 /* end confdefs.h. */
19171 $ac_includes_default
19172 #include <$ac_header>
19174 rm -f conftest.$ac_objext
19175 if { (ac_try="$ac_compile"
19176 case "(($ac_try" in
19177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19178 *) ac_try_echo=$ac_try;;
19180 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19181 (eval "$ac_compile") 2>conftest.er1
19183 grep -v '^ *+' conftest.er1 >conftest.err
19185 cat conftest.err >&5
19186 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19187 (exit $ac_status); } && {
19188 test -z "$ac_c_werror_flag" ||
19189 test ! -s conftest.err
19190 } && test -s conftest.$ac_objext; then
19191 ac_header_compiler=yes
19193 echo "$as_me: failed program was
:" >&5
19194 sed 's/^/| /' conftest.$ac_ext >&5
19196 ac_header_compiler=no
19199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19200 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19201 echo "${ECHO_T}$ac_header_compiler" >&6; }
19203 # Is the header present?
19204 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19205 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19206 cat >conftest.$ac_ext <<_ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h. */
19212 #include <$ac_header>
19214 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19215 case "(($ac_try" in
19216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19217 *) ac_try_echo=$ac_try;;
19219 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19220 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19222 grep -v '^ *+' conftest.er1 >conftest.err
19224 cat conftest.err >&5
19225 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19226 (exit $ac_status); } >/dev/null && {
19227 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19228 test ! -s conftest.err
19230 ac_header_preproc=yes
19232 echo "$as_me: failed program was
:" >&5
19233 sed 's/^/| /' conftest.$ac_ext >&5
19235 ac_header_preproc=no
19238 rm -f conftest.err conftest.$ac_ext
19239 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19240 echo "${ECHO_T}$ac_header_preproc" >&6; }
19242 # So? What about this header?
19243 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19245 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19246 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19247 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19248 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19249 ac_header_preproc=yes
19252 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19253 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19254 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19255 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19256 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19257 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19258 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19259 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19260 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19261 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19262 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19263 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19267 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19268 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19269 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19270 echo $ECHO_N "(cached
) $ECHO_C" >&6
19272 eval "$as_ac_Header=\
$ac_header_preproc"
19274 ac_res=`eval echo '${'$as_ac_Header'}'`
19275 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19276 echo "${ECHO_T}$ac_res" >&6; }
19279 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19280 cat >>confdefs.h <<_ACEOF
19281 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19290 if test -z "$GETOPT_H"; then
19292 for ac_func in getopt_long_only
19294 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19295 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19296 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19297 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19298 echo $ECHO_N "(cached
) $ECHO_C" >&6
19300 cat >conftest.$ac_ext <<_ACEOF
19303 cat confdefs.h >>conftest.$ac_ext
19304 cat >>conftest.$ac_ext <<_ACEOF
19305 /* end confdefs.h. */
19306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19308 #define $ac_func innocuous_$ac_func
19310 /* System header to define __stub macros and hopefully few prototypes,
19311 which can conflict with char $ac_func (); below.
19312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19313 <limits.h> exists even on freestanding compilers. */
19316 # include <limits.h>
19318 # include <assert.h>
19323 /* Override any GCC internal prototype to avoid an error.
19324 Use char because int might match the return type of a GCC
19325 builtin and then its argument prototype would still apply. */
19330 /* The GNU C library defines this for functions which it implements
19331 to always fail with ENOSYS. Some functions are actually named
19332 something starting with __ and the normal name is an alias. */
19333 #if defined __stub_$ac_func || defined __stub___$ac_func
19340 return $ac_func ();
19345 rm -f conftest.$ac_objext conftest$ac_exeext
19346 if { (ac_try="$ac_link"
19347 case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19351 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_link") 2>conftest.er1
19354 grep -v '^ *+' conftest.er1 >conftest.err
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19358 (exit $ac_status); } && {
19359 test -z "$ac_c_werror_flag" ||
19360 test ! -s conftest.err
19361 } && test -s conftest$ac_exeext &&
19362 $as_test_x conftest$ac_exeext; then
19363 eval "$as_ac_var=yes"
19365 echo "$as_me: failed program was
:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19368 eval "$as_ac_var=no
"
19371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19372 conftest$ac_exeext conftest.$ac_ext
19374 ac_res=`eval echo '${'$as_ac_var'}'`
19375 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19376 echo "${ECHO_T}$ac_res" >&6; }
19377 if test `eval echo '${'$as_ac_var'}'` = yes; then
19378 cat >>confdefs.h <<_ACEOF
19379 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19389 if test -z "$GETOPT_H"; then
19390 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19391 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19392 if test "${ac_cv_have_decl_optreset+set}" = set; then
19393 echo $ECHO_N "(cached
) $ECHO_C" >&6
19395 cat >conftest.$ac_ext <<_ACEOF
19398 cat confdefs.h >>conftest.$ac_ext
19399 cat >>conftest.$ac_ext <<_ACEOF
19400 /* end confdefs.h. */
19401 #include <getopt.h>
19414 rm -f conftest.$ac_objext
19415 if { (ac_try="$ac_compile"
19416 case "(($ac_try" in
19417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19418 *) ac_try_echo=$ac_try;;
19420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19421 (eval "$ac_compile") 2>conftest.er1
19423 grep -v '^ *+' conftest.er1 >conftest.err
19425 cat conftest.err >&5
19426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19427 (exit $ac_status); } && {
19428 test -z "$ac_c_werror_flag" ||
19429 test ! -s conftest.err
19430 } && test -s conftest.$ac_objext; then
19431 ac_cv_have_decl_optreset=yes
19433 echo "$as_me: failed program was
:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19436 ac_cv_have_decl_optreset=no
19439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19441 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19442 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19443 if test $ac_cv_have_decl_optreset = yes; then
19449 if test -z "$GETOPT_H"; then
19450 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19451 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19452 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19453 echo $ECHO_N "(cached
) $ECHO_C" >&6
19455 if test "$cross_compiling" = yes; then
19456 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19457 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19458 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19459 echo $ECHO_N "(cached
) $ECHO_C" >&6
19461 cat >conftest.$ac_ext <<_ACEOF
19464 cat confdefs.h >>conftest.$ac_ext
19465 cat >>conftest.$ac_ext <<_ACEOF
19466 /* end confdefs.h. */
19467 #include <getopt.h>
19472 #ifndef getopt_clip
19473 (void) getopt_clip;
19480 rm -f conftest.$ac_objext
19481 if { (ac_try="$ac_compile"
19482 case "(($ac_try" in
19483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19484 *) ac_try_echo=$ac_try;;
19486 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19487 (eval "$ac_compile") 2>conftest.er1
19489 grep -v '^ *+' conftest.er1 >conftest.err
19491 cat conftest.err >&5
19492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19493 (exit $ac_status); } && {
19494 test -z "$ac_c_werror_flag" ||
19495 test ! -s conftest.err
19496 } && test -s conftest.$ac_objext; then
19497 ac_cv_have_decl_getopt_clip=yes
19499 echo "$as_me: failed program was
:" >&5
19500 sed 's/^/| /' conftest.$ac_ext >&5
19502 ac_cv_have_decl_getopt_clip=no
19505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19507 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19508 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19509 if test $ac_cv_have_decl_getopt_clip = yes; then
19510 gl_cv_func_gnu_getopt=no
19512 gl_cv_func_gnu_getopt=yes
19516 cat >conftest.$ac_ext <<_ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522 #include <getopt.h>
19528 myargv[0] = "conftest
";
19531 return getopt (2, myargv, "+a
") != '?';
19537 rm -f conftest$ac_exeext
19538 if { (ac_try="$ac_link"
19539 case "(($ac_try" in
19540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19541 *) ac_try_echo=$ac_try;;
19543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19544 (eval "$ac_link") 2>&5
19546 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19547 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19548 { (case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_try") 2>&5
19555 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19556 (exit $ac_status); }; }; then
19557 gl_cv_func_gnu_getopt=yes
19559 echo "$as_me: program exited with status
$ac_status" >&5
19560 echo "$as_me: failed program was
:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19563 ( exit $ac_status )
19564 gl_cv_func_gnu_getopt=no
19566 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19571 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19572 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19573 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19580 if test -n "$GETOPT_H"; then
19585 cat >>confdefs.h <<\_ACEOF
19586 #define __GETOPT_PREFIX rpl_
19592 GETOPTOBJS='getopt.o getopt1.o'
19599 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19600 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19601 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19602 echo $ECHO_N "(cached
) $ECHO_C" >&6
19604 # Use it with a single arg.
19605 cat >conftest.$ac_ext <<_ACEOF
19608 cat confdefs.h >>conftest.$ac_ext
19609 cat >>conftest.$ac_ext <<_ACEOF
19610 /* end confdefs.h. */
19611 $ac_includes_default
19620 rm -f conftest.$ac_objext
19621 if { (ac_try="$ac_compile"
19622 case "(($ac_try" in
19623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19624 *) ac_try_echo=$ac_try;;
19626 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19627 (eval "$ac_compile") 2>conftest.er1
19629 grep -v '^ *+' conftest.er1 >conftest.err
19631 cat conftest.err >&5
19632 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19633 (exit $ac_status); } && {
19634 test -z "$ac_c_werror_flag" ||
19635 test ! -s conftest.err
19636 } && test -s conftest.$ac_objext; then
19637 ac_cv_func_getpgrp_void=no
19639 echo "$as_me: failed program was
:" >&5
19640 sed 's/^/| /' conftest.$ac_ext >&5
19642 ac_cv_func_getpgrp_void=yes
19645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19648 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19649 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19650 if test $ac_cv_func_getpgrp_void = yes; then
19652 cat >>confdefs.h <<\_ACEOF
19653 #define GETPGRP_VOID 1
19660 for ac_func in strftime
19662 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19663 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19664 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19665 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19666 echo $ECHO_N "(cached
) $ECHO_C" >&6
19668 cat >conftest.$ac_ext <<_ACEOF
19671 cat confdefs.h >>conftest.$ac_ext
19672 cat >>conftest.$ac_ext <<_ACEOF
19673 /* end confdefs.h. */
19674 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19675 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19676 #define $ac_func innocuous_$ac_func
19678 /* System header to define __stub macros and hopefully few prototypes,
19679 which can conflict with char $ac_func (); below.
19680 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19681 <limits.h> exists even on freestanding compilers. */
19684 # include <limits.h>
19686 # include <assert.h>
19691 /* Override any GCC internal prototype to avoid an error.
19692 Use char because int might match the return type of a GCC
19693 builtin and then its argument prototype would still apply. */
19698 /* The GNU C library defines this for functions which it implements
19699 to always fail with ENOSYS. Some functions are actually named
19700 something starting with __ and the normal name is an alias. */
19701 #if defined __stub_$ac_func || defined __stub___$ac_func
19708 return $ac_func ();
19713 rm -f conftest.$ac_objext conftest$ac_exeext
19714 if { (ac_try="$ac_link"
19715 case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19719 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_link") 2>conftest.er1
19722 grep -v '^ *+' conftest.er1 >conftest.err
19724 cat conftest.err >&5
19725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19726 (exit $ac_status); } && {
19727 test -z "$ac_c_werror_flag" ||
19728 test ! -s conftest.err
19729 } && test -s conftest$ac_exeext &&
19730 $as_test_x conftest$ac_exeext; then
19731 eval "$as_ac_var=yes"
19733 echo "$as_me: failed program was
:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19736 eval "$as_ac_var=no
"
19739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19740 conftest$ac_exeext conftest.$ac_ext
19742 ac_res=`eval echo '${'$as_ac_var'}'`
19743 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19744 echo "${ECHO_T}$ac_res" >&6; }
19745 if test `eval echo '${'$as_ac_var'}'` = yes; then
19746 cat >>confdefs.h <<_ACEOF
19747 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19751 # strftime is in -lintl on SCO UNIX.
19752 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19753 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19754 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19755 echo $ECHO_N "(cached
) $ECHO_C" >&6
19757 ac_check_lib_save_LIBS=$LIBS
19758 LIBS="-lintl $LIBS"
19759 cat >conftest.$ac_ext <<_ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19766 /* Override any GCC internal prototype to avoid an error.
19767 Use char because int might match the return type of a GCC
19768 builtin and then its argument prototype would still apply. */
19776 return strftime ();
19781 rm -f conftest.$ac_objext conftest$ac_exeext
19782 if { (ac_try="$ac_link"
19783 case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19787 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19788 (eval "$ac_link") 2>conftest.er1
19790 grep -v '^ *+' conftest.er1 >conftest.err
19792 cat conftest.err >&5
19793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19794 (exit $ac_status); } && {
19795 test -z "$ac_c_werror_flag" ||
19796 test ! -s conftest.err
19797 } && test -s conftest$ac_exeext &&
19798 $as_test_x conftest$ac_exeext; then
19799 ac_cv_lib_intl_strftime=yes
19801 echo "$as_me: failed program was
:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19804 ac_cv_lib_intl_strftime=no
19807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19808 conftest$ac_exeext conftest.$ac_ext
19809 LIBS=$ac_check_lib_save_LIBS
19811 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19812 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19813 if test $ac_cv_lib_intl_strftime = yes; then
19814 cat >>confdefs.h <<\_ACEOF
19815 #define HAVE_STRFTIME 1
19818 LIBS="-lintl $LIBS"
19827 for ac_func in grantpt
19829 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19830 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19831 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19832 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19833 echo $ECHO_N "(cached
) $ECHO_C" >&6
19835 cat >conftest.$ac_ext <<_ACEOF
19838 cat confdefs.h >>conftest.$ac_ext
19839 cat >>conftest.$ac_ext <<_ACEOF
19840 /* end confdefs.h. */
19841 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19842 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19843 #define $ac_func innocuous_$ac_func
19845 /* System header to define __stub macros and hopefully few prototypes,
19846 which can conflict with char $ac_func (); below.
19847 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19848 <limits.h> exists even on freestanding compilers. */
19851 # include <limits.h>
19853 # include <assert.h>
19858 /* Override any GCC internal prototype to avoid an error.
19859 Use char because int might match the return type of a GCC
19860 builtin and then its argument prototype would still apply. */
19865 /* The GNU C library defines this for functions which it implements
19866 to always fail with ENOSYS. Some functions are actually named
19867 something starting with __ and the normal name is an alias. */
19868 #if defined __stub_$ac_func || defined __stub___$ac_func
19875 return $ac_func ();
19880 rm -f conftest.$ac_objext conftest$ac_exeext
19881 if { (ac_try="$ac_link"
19882 case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19886 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_link") 2>conftest.er1
19889 grep -v '^ *+' conftest.er1 >conftest.err
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19893 (exit $ac_status); } && {
19894 test -z "$ac_c_werror_flag" ||
19895 test ! -s conftest.err
19896 } && test -s conftest$ac_exeext &&
19897 $as_test_x conftest$ac_exeext; then
19898 eval "$as_ac_var=yes"
19900 echo "$as_me: failed program was
:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19903 eval "$as_ac_var=no
"
19906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19907 conftest$ac_exeext conftest.$ac_ext
19909 ac_res=`eval echo '${'$as_ac_var'}'`
19910 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19911 echo "${ECHO_T}$ac_res" >&6; }
19912 if test `eval echo '${'$as_ac_var'}'` = yes; then
19913 cat >>confdefs.h <<_ACEOF
19914 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19921 # PTY-related GNU extensions.
19923 for ac_func in getpt
19925 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19926 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19927 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19928 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19929 echo $ECHO_N "(cached
) $ECHO_C" >&6
19931 cat >conftest.$ac_ext <<_ACEOF
19934 cat confdefs.h >>conftest.$ac_ext
19935 cat >>conftest.$ac_ext <<_ACEOF
19936 /* end confdefs.h. */
19937 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19938 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19939 #define $ac_func innocuous_$ac_func
19941 /* System header to define __stub macros and hopefully few prototypes,
19942 which can conflict with char $ac_func (); below.
19943 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19944 <limits.h> exists even on freestanding compilers. */
19947 # include <limits.h>
19949 # include <assert.h>
19954 /* Override any GCC internal prototype to avoid an error.
19955 Use char because int might match the return type of a GCC
19956 builtin and then its argument prototype would still apply. */
19961 /* The GNU C library defines this for functions which it implements
19962 to always fail with ENOSYS. Some functions are actually named
19963 something starting with __ and the normal name is an alias. */
19964 #if defined __stub_$ac_func || defined __stub___$ac_func
19971 return $ac_func ();
19976 rm -f conftest.$ac_objext conftest$ac_exeext
19977 if { (ac_try="$ac_link"
19978 case "(($ac_try" in
19979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19980 *) ac_try_echo=$ac_try;;
19982 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19983 (eval "$ac_link") 2>conftest.er1
19985 grep -v '^ *+' conftest.er1 >conftest.err
19987 cat conftest.err >&5
19988 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19989 (exit $ac_status); } && {
19990 test -z "$ac_c_werror_flag" ||
19991 test ! -s conftest.err
19992 } && test -s conftest$ac_exeext &&
19993 $as_test_x conftest$ac_exeext; then
19994 eval "$as_ac_var=yes"
19996 echo "$as_me: failed program was
:" >&5
19997 sed 's/^/| /' conftest.$ac_ext >&5
19999 eval "$as_ac_var=no
"
20002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20003 conftest$ac_exeext conftest.$ac_ext
20005 ac_res=`eval echo '${'$as_ac_var'}'`
20006 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20007 echo "${ECHO_T}$ac_res" >&6; }
20008 if test `eval echo '${'$as_ac_var'}'` = yes; then
20009 cat >>confdefs.h <<_ACEOF
20010 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20017 # Check this now, so that we will NOT find the above functions in ncurses.
20018 # That is because we have not set up to link ncurses in lib-src.
20019 # It's better to believe a function is not available
20020 # than to expect to find it in ncurses.
20022 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
20023 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
20024 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20025 echo $ECHO_N "(cached
) $ECHO_C" >&6
20027 ac_check_lib_save_LIBS=$LIBS
20028 LIBS="-lncurses $LIBS"
20029 cat >conftest.$ac_ext <<_ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20036 /* Override any GCC internal prototype to avoid an error.
20037 Use char because int might match the return type of a GCC
20038 builtin and then its argument prototype would still apply. */
20051 rm -f conftest.$ac_objext conftest$ac_exeext
20052 if { (ac_try="$ac_link"
20053 case "(($ac_try" in
20054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20055 *) ac_try_echo=$ac_try;;
20057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20058 (eval "$ac_link") 2>conftest.er1
20060 grep -v '^ *+' conftest.er1 >conftest.err
20062 cat conftest.err >&5
20063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20064 (exit $ac_status); } && {
20065 test -z "$ac_c_werror_flag" ||
20066 test ! -s conftest.err
20067 } && test -s conftest$ac_exeext &&
20068 $as_test_x conftest$ac_exeext; then
20069 ac_cv_lib_ncurses_tparm=yes
20071 echo "$as_me: failed program was
:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20074 ac_cv_lib_ncurses_tparm=no
20077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20078 conftest$ac_exeext conftest.$ac_ext
20079 LIBS=$ac_check_lib_save_LIBS
20081 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
20082 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
20083 if test $ac_cv_lib_ncurses_tparm = yes; then
20084 cat >>confdefs.h <<_ACEOF
20085 #define HAVE_LIBNCURSES 1
20088 LIBS="-lncurses $LIBS"
20093 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20096 cat >conftest.$ac_ext <<_ACEOF
20099 cat confdefs.h >>conftest.$ac_ext
20100 cat >>conftest.$ac_ext <<_ACEOF
20101 /* end confdefs.h. */
20102 #include <netinet/in.h>
20103 #include <arpa/nameser.h>
20104 #include <resolv.h>
20113 rm -f conftest.$ac_objext conftest$ac_exeext
20114 if { (ac_try="$ac_link"
20115 case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_link") 2>conftest.er1
20122 grep -v '^ *+' conftest.er1 >conftest.err
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20126 (exit $ac_status); } && {
20127 test -z "$ac_c_werror_flag" ||
20128 test ! -s conftest.err
20129 } && test -s conftest$ac_exeext &&
20130 $as_test_x conftest$ac_exeext; then
20133 echo "$as_me: failed program was
:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20140 conftest$ac_exeext conftest.$ac_ext
20141 if test "$have_res_init" = no; then
20143 LIBS="$LIBS -lresolv"
20144 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
20145 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
20146 cat >conftest.$ac_ext <<_ACEOF
20149 cat confdefs.h >>conftest.$ac_ext
20150 cat >>conftest.$ac_ext <<_ACEOF
20151 /* end confdefs.h. */
20152 #include <netinet/in.h>
20153 #include <arpa/nameser.h>
20154 #include <resolv.h>
20163 rm -f conftest.$ac_objext conftest$ac_exeext
20164 if { (ac_try="$ac_link"
20165 case "(($ac_try" in
20166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167 *) ac_try_echo=$ac_try;;
20169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20170 (eval "$ac_link") 2>conftest.er1
20172 grep -v '^ *+' conftest.er1 >conftest.err
20174 cat conftest.err >&5
20175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20176 (exit $ac_status); } && {
20177 test -z "$ac_c_werror_flag" ||
20178 test ! -s conftest.err
20179 } && test -s conftest$ac_exeext &&
20180 $as_test_x conftest$ac_exeext; then
20183 echo "$as_me: failed program was
:" >&5
20184 sed 's/^/| /' conftest.$ac_ext >&5
20189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20190 conftest$ac_exeext conftest.$ac_ext
20191 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
20192 echo "${ECHO_T}$have_res_init" >&6; }
20193 if test "$have_res_init" = yes ; then
20199 if test "$have_res_init" = yes; then
20201 cat >>confdefs.h <<\_ACEOF
20202 #define HAVE_RES_INIT 1
20207 # Do we need the Hesiod library to provide the support routines?
20208 if test "$with_hesiod" = yes ; then
20209 # Don't set $LIBS here -- see comments above.
20210 { echo "$as_me:$LINENO: checking
for res_send
" >&5
20211 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
20212 if test "${ac_cv_func_res_send+set}" = set; then
20213 echo $ECHO_N "(cached
) $ECHO_C" >&6
20215 cat >conftest.$ac_ext <<_ACEOF
20218 cat confdefs.h >>conftest.$ac_ext
20219 cat >>conftest.$ac_ext <<_ACEOF
20220 /* end confdefs.h. */
20221 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20223 #define res_send innocuous_res_send
20225 /* System header to define __stub macros and hopefully few prototypes,
20226 which can conflict with char res_send (); below.
20227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20228 <limits.h> exists even on freestanding compilers. */
20231 # include <limits.h>
20233 # include <assert.h>
20238 /* Override any GCC internal prototype to avoid an error.
20239 Use char because int might match the return type of a GCC
20240 builtin and then its argument prototype would still apply. */
20245 /* The GNU C library defines this for functions which it implements
20246 to always fail with ENOSYS. Some functions are actually named
20247 something starting with __ and the normal name is an alias. */
20248 #if defined __stub_res_send || defined __stub___res_send
20255 return res_send ();
20260 rm -f conftest.$ac_objext conftest$ac_exeext
20261 if { (ac_try="$ac_link"
20262 case "(($ac_try" in
20263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20264 *) ac_try_echo=$ac_try;;
20266 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20267 (eval "$ac_link") 2>conftest.er1
20269 grep -v '^ *+' conftest.er1 >conftest.err
20271 cat conftest.err >&5
20272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20273 (exit $ac_status); } && {
20274 test -z "$ac_c_werror_flag" ||
20275 test ! -s conftest.err
20276 } && test -s conftest$ac_exeext &&
20277 $as_test_x conftest$ac_exeext; then
20278 ac_cv_func_res_send=yes
20280 echo "$as_me: failed program was
:" >&5
20281 sed 's/^/| /' conftest.$ac_ext >&5
20283 ac_cv_func_res_send=no
20286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20287 conftest$ac_exeext conftest.$ac_ext
20289 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
20290 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20291 if test $ac_cv_func_res_send = yes; then
20294 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
20295 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
20296 if test "${ac_cv_func___res_send+set}" = set; then
20297 echo $ECHO_N "(cached
) $ECHO_C" >&6
20299 cat >conftest.$ac_ext <<_ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h. */
20305 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20307 #define __res_send innocuous___res_send
20309 /* System header to define __stub macros and hopefully few prototypes,
20310 which can conflict with char __res_send (); below.
20311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20312 <limits.h> exists even on freestanding compilers. */
20315 # include <limits.h>
20317 # include <assert.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. */
20328 char __res_send ();
20329 /* The GNU C library defines this for functions which it implements
20330 to always fail with ENOSYS. Some functions are actually named
20331 something starting with __ and the normal name is an alias. */
20332 #if defined __stub___res_send || defined __stub_____res_send
20339 return __res_send ();
20344 rm -f conftest.$ac_objext conftest$ac_exeext
20345 if { (ac_try="$ac_link"
20346 case "(($ac_try" in
20347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348 *) ac_try_echo=$ac_try;;
20350 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20351 (eval "$ac_link") 2>conftest.er1
20353 grep -v '^ *+' conftest.er1 >conftest.err
20355 cat conftest.err >&5
20356 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20357 (exit $ac_status); } && {
20358 test -z "$ac_c_werror_flag" ||
20359 test ! -s conftest.err
20360 } && test -s conftest$ac_exeext &&
20361 $as_test_x conftest$ac_exeext; then
20362 ac_cv_func___res_send=yes
20364 echo "$as_me: failed program was
:" >&5
20365 sed 's/^/| /' conftest.$ac_ext >&5
20367 ac_cv_func___res_send=no
20370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20371 conftest$ac_exeext conftest.$ac_ext
20373 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20374 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20375 if test $ac_cv_func___res_send = yes; then
20378 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20379 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20380 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20381 echo $ECHO_N "(cached
) $ECHO_C" >&6
20383 ac_check_lib_save_LIBS=$LIBS
20384 LIBS="-lresolv $LIBS"
20385 cat >conftest.$ac_ext <<_ACEOF
20388 cat confdefs.h >>conftest.$ac_ext
20389 cat >>conftest.$ac_ext <<_ACEOF
20390 /* end confdefs.h. */
20392 /* Override any GCC internal prototype to avoid an error.
20393 Use char because int might match the return type of a GCC
20394 builtin and then its argument prototype would still apply. */
20402 return res_send ();
20407 rm -f conftest.$ac_objext conftest$ac_exeext
20408 if { (ac_try="$ac_link"
20409 case "(($ac_try" in
20410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20411 *) ac_try_echo=$ac_try;;
20413 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20414 (eval "$ac_link") 2>conftest.er1
20416 grep -v '^ *+' conftest.er1 >conftest.err
20418 cat conftest.err >&5
20419 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20420 (exit $ac_status); } && {
20421 test -z "$ac_c_werror_flag" ||
20422 test ! -s conftest.err
20423 } && test -s conftest$ac_exeext &&
20424 $as_test_x conftest$ac_exeext; then
20425 ac_cv_lib_resolv_res_send=yes
20427 echo "$as_me: failed program was
:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 ac_cv_lib_resolv_res_send=no
20433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20434 conftest$ac_exeext conftest.$ac_ext
20435 LIBS=$ac_check_lib_save_LIBS
20437 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20438 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20439 if test $ac_cv_lib_resolv_res_send = yes; then
20442 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20443 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20444 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20445 echo $ECHO_N "(cached
) $ECHO_C" >&6
20447 ac_check_lib_save_LIBS=$LIBS
20448 LIBS="-lresolv $LIBS"
20449 cat >conftest.$ac_ext <<_ACEOF
20452 cat confdefs.h >>conftest.$ac_ext
20453 cat >>conftest.$ac_ext <<_ACEOF
20454 /* end confdefs.h. */
20456 /* Override any GCC internal prototype to avoid an error.
20457 Use char because int might match the return type of a GCC
20458 builtin and then its argument prototype would still apply. */
20462 char __res_send ();
20466 return __res_send ();
20471 rm -f conftest.$ac_objext conftest$ac_exeext
20472 if { (ac_try="$ac_link"
20473 case "(($ac_try" in
20474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475 *) ac_try_echo=$ac_try;;
20477 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20478 (eval "$ac_link") 2>conftest.er1
20480 grep -v '^ *+' conftest.er1 >conftest.err
20482 cat conftest.err >&5
20483 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20484 (exit $ac_status); } && {
20485 test -z "$ac_c_werror_flag" ||
20486 test ! -s conftest.err
20487 } && test -s conftest$ac_exeext &&
20488 $as_test_x conftest$ac_exeext; then
20489 ac_cv_lib_resolv___res_send=yes
20491 echo "$as_me: failed program was
:" >&5
20492 sed 's/^/| /' conftest.$ac_ext >&5
20494 ac_cv_lib_resolv___res_send=no
20497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20498 conftest$ac_exeext conftest.$ac_ext
20499 LIBS=$ac_check_lib_save_LIBS
20501 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20502 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20503 if test $ac_cv_lib_resolv___res_send = yes; then
20513 if test "$resolv" = yes ; then
20518 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20519 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20520 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20521 echo $ECHO_N "(cached
) $ECHO_C" >&6
20523 cat >conftest.$ac_ext <<_ACEOF
20526 cat confdefs.h >>conftest.$ac_ext
20527 cat >>conftest.$ac_ext <<_ACEOF
20528 /* end confdefs.h. */
20529 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20530 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20531 #define hes_getmailhost innocuous_hes_getmailhost
20533 /* System header to define __stub macros and hopefully few prototypes,
20534 which can conflict with char hes_getmailhost (); below.
20535 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20536 <limits.h> exists even on freestanding compilers. */
20539 # include <limits.h>
20541 # include <assert.h>
20544 #undef hes_getmailhost
20546 /* Override any GCC internal prototype to avoid an error.
20547 Use char because int might match the return type of a GCC
20548 builtin and then its argument prototype would still apply. */
20552 char hes_getmailhost ();
20553 /* The GNU C library defines this for functions which it implements
20554 to always fail with ENOSYS. Some functions are actually named
20555 something starting with __ and the normal name is an alias. */
20556 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20563 return hes_getmailhost ();
20568 rm -f conftest.$ac_objext conftest$ac_exeext
20569 if { (ac_try="$ac_link"
20570 case "(($ac_try" in
20571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20572 *) ac_try_echo=$ac_try;;
20574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20575 (eval "$ac_link") 2>conftest.er1
20577 grep -v '^ *+' conftest.er1 >conftest.err
20579 cat conftest.err >&5
20580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20581 (exit $ac_status); } && {
20582 test -z "$ac_c_werror_flag" ||
20583 test ! -s conftest.err
20584 } && test -s conftest$ac_exeext &&
20585 $as_test_x conftest$ac_exeext; then
20586 ac_cv_func_hes_getmailhost=yes
20588 echo "$as_me: failed program was
:" >&5
20589 sed 's/^/| /' conftest.$ac_ext >&5
20591 ac_cv_func_hes_getmailhost=no
20594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20595 conftest$ac_exeext conftest.$ac_ext
20597 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20598 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20599 if test $ac_cv_func_hes_getmailhost = yes; then
20602 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20603 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20604 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20605 echo $ECHO_N "(cached
) $ECHO_C" >&6
20607 ac_check_lib_save_LIBS=$LIBS
20608 LIBS="-lhesiod $RESOLVLIB $LIBS"
20609 cat >conftest.$ac_ext <<_ACEOF
20612 cat confdefs.h >>conftest.$ac_ext
20613 cat >>conftest.$ac_ext <<_ACEOF
20614 /* end confdefs.h. */
20616 /* Override any GCC internal prototype to avoid an error.
20617 Use char because int might match the return type of a GCC
20618 builtin and then its argument prototype would still apply. */
20622 char hes_getmailhost ();
20626 return hes_getmailhost ();
20631 rm -f conftest.$ac_objext conftest$ac_exeext
20632 if { (ac_try="$ac_link"
20633 case "(($ac_try" in
20634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20635 *) ac_try_echo=$ac_try;;
20637 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20638 (eval "$ac_link") 2>conftest.er1
20640 grep -v '^ *+' conftest.er1 >conftest.err
20642 cat conftest.err >&5
20643 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20644 (exit $ac_status); } && {
20645 test -z "$ac_c_werror_flag" ||
20646 test ! -s conftest.err
20647 } && test -s conftest$ac_exeext &&
20648 $as_test_x conftest$ac_exeext; then
20649 ac_cv_lib_hesiod_hes_getmailhost=yes
20651 echo "$as_me: failed program was
:" >&5
20652 sed 's/^/| /' conftest.$ac_ext >&5
20654 ac_cv_lib_hesiod_hes_getmailhost=no
20657 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20658 conftest$ac_exeext conftest.$ac_ext
20659 LIBS=$ac_check_lib_save_LIBS
20661 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20662 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20663 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20665 cat >>confdefs.h <<\_ACEOF
20666 #define HAVE_LIBHESIOD 1
20677 # Do we need libresolv (due to res_init or Hesiod)?
20678 if test "$resolv" = yes ; then
20680 cat >>confdefs.h <<\_ACEOF
20681 #define HAVE_LIBRESOLV 1
20686 # These tell us which Kerberos-related libraries to use.
20687 if test "${with_kerberos+set}" = set; then
20689 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20690 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20691 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20692 echo $ECHO_N "(cached
) $ECHO_C" >&6
20694 ac_check_lib_save_LIBS=$LIBS
20695 LIBS="-lcom_err $LIBS"
20696 cat >conftest.$ac_ext <<_ACEOF
20699 cat confdefs.h >>conftest.$ac_ext
20700 cat >>conftest.$ac_ext <<_ACEOF
20701 /* end confdefs.h. */
20703 /* Override any GCC internal prototype to avoid an error.
20704 Use char because int might match the return type of a GCC
20705 builtin and then its argument prototype would still apply. */
20718 rm -f conftest.$ac_objext conftest$ac_exeext
20719 if { (ac_try="$ac_link"
20720 case "(($ac_try" in
20721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20722 *) ac_try_echo=$ac_try;;
20724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20725 (eval "$ac_link") 2>conftest.er1
20727 grep -v '^ *+' conftest.er1 >conftest.err
20729 cat conftest.err >&5
20730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20731 (exit $ac_status); } && {
20732 test -z "$ac_c_werror_flag" ||
20733 test ! -s conftest.err
20734 } && test -s conftest$ac_exeext &&
20735 $as_test_x conftest$ac_exeext; then
20736 ac_cv_lib_com_err_com_err=yes
20738 echo "$as_me: failed program was
:" >&5
20739 sed 's/^/| /' conftest.$ac_ext >&5
20741 ac_cv_lib_com_err_com_err=no
20744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20745 conftest$ac_exeext conftest.$ac_ext
20746 LIBS=$ac_check_lib_save_LIBS
20748 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20749 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20750 if test $ac_cv_lib_com_err_com_err = yes; then
20751 cat >>confdefs.h <<_ACEOF
20752 #define HAVE_LIBCOM_ERR 1
20755 LIBS="-lcom_err $LIBS"
20760 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20761 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20762 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20763 echo $ECHO_N "(cached
) $ECHO_C" >&6
20765 ac_check_lib_save_LIBS=$LIBS
20766 LIBS="-lk5crypto $LIBS"
20767 cat >conftest.$ac_ext <<_ACEOF
20770 cat confdefs.h >>conftest.$ac_ext
20771 cat >>conftest.$ac_ext <<_ACEOF
20772 /* end confdefs.h. */
20774 /* Override any GCC internal prototype to avoid an error.
20775 Use char because int might match the return type of a GCC
20776 builtin and then its argument prototype would still apply. */
20780 char mit_des_cbc_encrypt ();
20784 return mit_des_cbc_encrypt ();
20789 rm -f conftest.$ac_objext conftest$ac_exeext
20790 if { (ac_try="$ac_link"
20791 case "(($ac_try" in
20792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20793 *) ac_try_echo=$ac_try;;
20795 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20796 (eval "$ac_link") 2>conftest.er1
20798 grep -v '^ *+' conftest.er1 >conftest.err
20800 cat conftest.err >&5
20801 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20802 (exit $ac_status); } && {
20803 test -z "$ac_c_werror_flag" ||
20804 test ! -s conftest.err
20805 } && test -s conftest$ac_exeext &&
20806 $as_test_x conftest$ac_exeext; then
20807 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20809 echo "$as_me: failed program was
:" >&5
20810 sed 's/^/| /' conftest.$ac_ext >&5
20812 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20816 conftest$ac_exeext conftest.$ac_ext
20817 LIBS=$ac_check_lib_save_LIBS
20819 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20820 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20821 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20822 cat >>confdefs.h <<_ACEOF
20823 #define HAVE_LIBK5CRYPTO 1
20826 LIBS="-lk5crypto $LIBS"
20831 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20832 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20833 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20834 echo $ECHO_N "(cached
) $ECHO_C" >&6
20836 ac_check_lib_save_LIBS=$LIBS
20837 LIBS="-lcrypto $LIBS"
20838 cat >conftest.$ac_ext <<_ACEOF
20841 cat confdefs.h >>conftest.$ac_ext
20842 cat >>conftest.$ac_ext <<_ACEOF
20843 /* end confdefs.h. */
20845 /* Override any GCC internal prototype to avoid an error.
20846 Use char because int might match the return type of a GCC
20847 builtin and then its argument prototype would still apply. */
20851 char mit_des_cbc_encrypt ();
20855 return mit_des_cbc_encrypt ();
20860 rm -f conftest.$ac_objext conftest$ac_exeext
20861 if { (ac_try="$ac_link"
20862 case "(($ac_try" in
20863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20864 *) ac_try_echo=$ac_try;;
20866 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20867 (eval "$ac_link") 2>conftest.er1
20869 grep -v '^ *+' conftest.er1 >conftest.err
20871 cat conftest.err >&5
20872 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20873 (exit $ac_status); } && {
20874 test -z "$ac_c_werror_flag" ||
20875 test ! -s conftest.err
20876 } && test -s conftest$ac_exeext &&
20877 $as_test_x conftest$ac_exeext; then
20878 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20880 echo "$as_me: failed program was
:" >&5
20881 sed 's/^/| /' conftest.$ac_ext >&5
20883 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20887 conftest$ac_exeext conftest.$ac_ext
20888 LIBS=$ac_check_lib_save_LIBS
20890 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20891 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20892 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20893 cat >>confdefs.h <<_ACEOF
20894 #define HAVE_LIBCRYPTO 1
20897 LIBS="-lcrypto $LIBS"
20902 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20903 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20904 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20905 echo $ECHO_N "(cached
) $ECHO_C" >&6
20907 ac_check_lib_save_LIBS=$LIBS
20908 LIBS="-lkrb5 $LIBS"
20909 cat >conftest.$ac_ext <<_ACEOF
20912 cat confdefs.h >>conftest.$ac_ext
20913 cat >>conftest.$ac_ext <<_ACEOF
20914 /* end confdefs.h. */
20916 /* Override any GCC internal prototype to avoid an error.
20917 Use char because int might match the return type of a GCC
20918 builtin and then its argument prototype would still apply. */
20922 char krb5_init_context ();
20926 return krb5_init_context ();
20931 rm -f conftest.$ac_objext conftest$ac_exeext
20932 if { (ac_try="$ac_link"
20933 case "(($ac_try" in
20934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20935 *) ac_try_echo=$ac_try;;
20937 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20938 (eval "$ac_link") 2>conftest.er1
20940 grep -v '^ *+' conftest.er1 >conftest.err
20942 cat conftest.err >&5
20943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20944 (exit $ac_status); } && {
20945 test -z "$ac_c_werror_flag" ||
20946 test ! -s conftest.err
20947 } && test -s conftest$ac_exeext &&
20948 $as_test_x conftest$ac_exeext; then
20949 ac_cv_lib_krb5_krb5_init_context=yes
20951 echo "$as_me: failed program was
:" >&5
20952 sed 's/^/| /' conftest.$ac_ext >&5
20954 ac_cv_lib_krb5_krb5_init_context=no
20957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20958 conftest$ac_exeext conftest.$ac_ext
20959 LIBS=$ac_check_lib_save_LIBS
20961 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20962 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20963 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20964 cat >>confdefs.h <<_ACEOF
20965 #define HAVE_LIBKRB5 1
20968 LIBS="-lkrb5 $LIBS"
20972 if test "${with_kerberos5+set}" != set; then
20974 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20975 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20976 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20977 echo $ECHO_N "(cached
) $ECHO_C" >&6
20979 ac_check_lib_save_LIBS=$LIBS
20980 LIBS="-ldes425 $LIBS"
20981 cat >conftest.$ac_ext <<_ACEOF
20984 cat confdefs.h >>conftest.$ac_ext
20985 cat >>conftest.$ac_ext <<_ACEOF
20986 /* end confdefs.h. */
20988 /* Override any GCC internal prototype to avoid an error.
20989 Use char because int might match the return type of a GCC
20990 builtin and then its argument prototype would still apply. */
20994 char des_cbc_encrypt ();
20998 return des_cbc_encrypt ();
21003 rm -f conftest.$ac_objext conftest$ac_exeext
21004 if { (ac_try="$ac_link"
21005 case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21010 (eval "$ac_link") 2>conftest.er1
21012 grep -v '^ *+' conftest.er1 >conftest.err
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21016 (exit $ac_status); } && {
21017 test -z "$ac_c_werror_flag" ||
21018 test ! -s conftest.err
21019 } && test -s conftest$ac_exeext &&
21020 $as_test_x conftest$ac_exeext; then
21021 ac_cv_lib_des425_des_cbc_encrypt=yes
21023 echo "$as_me: failed program was
:" >&5
21024 sed 's/^/| /' conftest.$ac_ext >&5
21026 ac_cv_lib_des425_des_cbc_encrypt=no
21029 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21030 conftest$ac_exeext conftest.$ac_ext
21031 LIBS=$ac_check_lib_save_LIBS
21033 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21034 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21035 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21036 cat >>confdefs.h <<_ACEOF
21037 #define HAVE_LIBDES425 1
21040 LIBS="-ldes425 $LIBS"
21044 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
21045 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
21046 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21047 echo $ECHO_N "(cached
) $ECHO_C" >&6
21049 ac_check_lib_save_LIBS=$LIBS
21051 cat >conftest.$ac_ext <<_ACEOF
21054 cat confdefs.h >>conftest.$ac_ext
21055 cat >>conftest.$ac_ext <<_ACEOF
21056 /* end confdefs.h. */
21058 /* Override any GCC internal prototype to avoid an error.
21059 Use char because int might match the return type of a GCC
21060 builtin and then its argument prototype would still apply. */
21064 char des_cbc_encrypt ();
21068 return des_cbc_encrypt ();
21073 rm -f conftest.$ac_objext conftest$ac_exeext
21074 if { (ac_try="$ac_link"
21075 case "(($ac_try" in
21076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21077 *) ac_try_echo=$ac_try;;
21079 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21080 (eval "$ac_link") 2>conftest.er1
21082 grep -v '^ *+' conftest.er1 >conftest.err
21084 cat conftest.err >&5
21085 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21086 (exit $ac_status); } && {
21087 test -z "$ac_c_werror_flag" ||
21088 test ! -s conftest.err
21089 } && test -s conftest$ac_exeext &&
21090 $as_test_x conftest$ac_exeext; then
21091 ac_cv_lib_des_des_cbc_encrypt=yes
21093 echo "$as_me: failed program was
:" >&5
21094 sed 's/^/| /' conftest.$ac_ext >&5
21096 ac_cv_lib_des_des_cbc_encrypt=no
21099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21100 conftest$ac_exeext conftest.$ac_ext
21101 LIBS=$ac_check_lib_save_LIBS
21103 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
21104 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21105 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21106 cat >>confdefs.h <<_ACEOF
21107 #define HAVE_LIBDES 1
21117 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
21118 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
21119 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21120 echo $ECHO_N "(cached
) $ECHO_C" >&6
21122 ac_check_lib_save_LIBS=$LIBS
21123 LIBS="-lkrb4 $LIBS"
21124 cat >conftest.$ac_ext <<_ACEOF
21127 cat confdefs.h >>conftest.$ac_ext
21128 cat >>conftest.$ac_ext <<_ACEOF
21129 /* end confdefs.h. */
21131 /* Override any GCC internal prototype to avoid an error.
21132 Use char because int might match the return type of a GCC
21133 builtin and then its argument prototype would still apply. */
21137 char krb_get_cred ();
21141 return krb_get_cred ();
21146 rm -f conftest.$ac_objext conftest$ac_exeext
21147 if { (ac_try="$ac_link"
21148 case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21152 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21153 (eval "$ac_link") 2>conftest.er1
21155 grep -v '^ *+' conftest.er1 >conftest.err
21157 cat conftest.err >&5
21158 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21159 (exit $ac_status); } && {
21160 test -z "$ac_c_werror_flag" ||
21161 test ! -s conftest.err
21162 } && test -s conftest$ac_exeext &&
21163 $as_test_x conftest$ac_exeext; then
21164 ac_cv_lib_krb4_krb_get_cred=yes
21166 echo "$as_me: failed program was
:" >&5
21167 sed 's/^/| /' conftest.$ac_ext >&5
21169 ac_cv_lib_krb4_krb_get_cred=no
21172 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21173 conftest$ac_exeext conftest.$ac_ext
21174 LIBS=$ac_check_lib_save_LIBS
21176 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
21177 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21178 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21179 cat >>confdefs.h <<_ACEOF
21180 #define HAVE_LIBKRB4 1
21183 LIBS="-lkrb4 $LIBS"
21187 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
21188 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
21189 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21190 echo $ECHO_N "(cached
) $ECHO_C" >&6
21192 ac_check_lib_save_LIBS=$LIBS
21194 cat >conftest.$ac_ext <<_ACEOF
21197 cat confdefs.h >>conftest.$ac_ext
21198 cat >>conftest.$ac_ext <<_ACEOF
21199 /* end confdefs.h. */
21201 /* Override any GCC internal prototype to avoid an error.
21202 Use char because int might match the return type of a GCC
21203 builtin and then its argument prototype would still apply. */
21207 char krb_get_cred ();
21211 return krb_get_cred ();
21216 rm -f conftest.$ac_objext conftest$ac_exeext
21217 if { (ac_try="$ac_link"
21218 case "(($ac_try" in
21219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21220 *) ac_try_echo=$ac_try;;
21222 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21223 (eval "$ac_link") 2>conftest.er1
21225 grep -v '^ *+' conftest.er1 >conftest.err
21227 cat conftest.err >&5
21228 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21229 (exit $ac_status); } && {
21230 test -z "$ac_c_werror_flag" ||
21231 test ! -s conftest.err
21232 } && test -s conftest$ac_exeext &&
21233 $as_test_x conftest$ac_exeext; then
21234 ac_cv_lib_krb_krb_get_cred=yes
21236 echo "$as_me: failed program was
:" >&5
21237 sed 's/^/| /' conftest.$ac_ext >&5
21239 ac_cv_lib_krb_krb_get_cred=no
21242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21243 conftest$ac_exeext conftest.$ac_ext
21244 LIBS=$ac_check_lib_save_LIBS
21246 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
21247 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21248 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21249 cat >>confdefs.h <<_ACEOF
21250 #define HAVE_LIBKRB 1
21261 if test "${with_kerberos5+set}" = set; then
21263 for ac_header in krb5.h
21265 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21266 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21267 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21268 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21269 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21270 echo $ECHO_N "(cached
) $ECHO_C" >&6
21272 ac_res=`eval echo '${'$as_ac_Header'}'`
21273 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21274 echo "${ECHO_T}$ac_res" >&6; }
21276 # Is the header compilable?
21277 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21278 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21279 cat >conftest.$ac_ext <<_ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21285 $ac_includes_default
21286 #include <$ac_header>
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_compile") 2>conftest.er1
21297 grep -v '^ *+' conftest.er1 >conftest.err
21299 cat conftest.err >&5
21300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21301 (exit $ac_status); } && {
21302 test -z "$ac_c_werror_flag" ||
21303 test ! -s conftest.err
21304 } && test -s conftest.$ac_objext; then
21305 ac_header_compiler=yes
21307 echo "$as_me: failed program was
:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21310 ac_header_compiler=no
21313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21314 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21315 echo "${ECHO_T}$ac_header_compiler" >&6; }
21317 # Is the header present?
21318 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21319 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21320 cat >conftest.$ac_ext <<_ACEOF
21323 cat confdefs.h >>conftest.$ac_ext
21324 cat >>conftest.$ac_ext <<_ACEOF
21325 /* end confdefs.h. */
21326 #include <$ac_header>
21328 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21329 case "(($ac_try" in
21330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21331 *) ac_try_echo=$ac_try;;
21333 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21334 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21336 grep -v '^ *+' conftest.er1 >conftest.err
21338 cat conftest.err >&5
21339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21340 (exit $ac_status); } >/dev/null && {
21341 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21342 test ! -s conftest.err
21344 ac_header_preproc=yes
21346 echo "$as_me: failed program was
:" >&5
21347 sed 's/^/| /' conftest.$ac_ext >&5
21349 ac_header_preproc=no
21352 rm -f conftest.err conftest.$ac_ext
21353 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21354 echo "${ECHO_T}$ac_header_preproc" >&6; }
21356 # So? What about this header?
21357 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21359 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21360 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21361 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21362 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21363 ac_header_preproc=yes
21366 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21367 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21368 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21369 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21370 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21371 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21372 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21373 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21374 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21375 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21376 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21377 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21381 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21382 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21383 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21384 echo $ECHO_N "(cached
) $ECHO_C" >&6
21386 eval "$as_ac_Header=\
$ac_header_preproc"
21388 ac_res=`eval echo '${'$as_ac_Header'}'`
21389 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21390 echo "${ECHO_T}$ac_res" >&6; }
21393 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21394 cat >>confdefs.h <<_ACEOF
21395 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21404 for ac_header in des.h
21406 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21407 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21408 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21409 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21410 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21411 echo $ECHO_N "(cached
) $ECHO_C" >&6
21413 ac_res=`eval echo '${'$as_ac_Header'}'`
21414 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21415 echo "${ECHO_T}$ac_res" >&6; }
21417 # Is the header compilable?
21418 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21419 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21420 cat >conftest.$ac_ext <<_ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21426 $ac_includes_default
21427 #include <$ac_header>
21429 rm -f conftest.$ac_objext
21430 if { (ac_try="$ac_compile"
21431 case "(($ac_try" in
21432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21433 *) ac_try_echo=$ac_try;;
21435 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21436 (eval "$ac_compile") 2>conftest.er1
21438 grep -v '^ *+' conftest.er1 >conftest.err
21440 cat conftest.err >&5
21441 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21442 (exit $ac_status); } && {
21443 test -z "$ac_c_werror_flag" ||
21444 test ! -s conftest.err
21445 } && test -s conftest.$ac_objext; then
21446 ac_header_compiler=yes
21448 echo "$as_me: failed program was
:" >&5
21449 sed 's/^/| /' conftest.$ac_ext >&5
21451 ac_header_compiler=no
21454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21455 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21456 echo "${ECHO_T}$ac_header_compiler" >&6; }
21458 # Is the header present?
21459 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21460 echo $ECHO_N "checking
$ac_header presence...
$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 #include <$ac_header>
21469 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21470 case "(($ac_try" in
21471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21472 *) ac_try_echo=$ac_try;;
21474 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21475 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21477 grep -v '^ *+' conftest.er1 >conftest.err
21479 cat conftest.err >&5
21480 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21481 (exit $ac_status); } >/dev/null && {
21482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21483 test ! -s conftest.err
21485 ac_header_preproc=yes
21487 echo "$as_me: failed program was
:" >&5
21488 sed 's/^/| /' conftest.$ac_ext >&5
21490 ac_header_preproc=no
21493 rm -f conftest.err conftest.$ac_ext
21494 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21495 echo "${ECHO_T}$ac_header_preproc" >&6; }
21497 # So? What about this header?
21498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21500 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21501 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21502 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21503 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21504 ac_header_preproc=yes
21507 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21508 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21509 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21510 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21511 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21512 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21513 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21514 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21515 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21516 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21517 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21518 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21522 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21523 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21524 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21525 echo $ECHO_N "(cached
) $ECHO_C" >&6
21527 eval "$as_ac_Header=\
$ac_header_preproc"
21529 ac_res=`eval echo '${'$as_ac_Header'}'`
21530 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21531 echo "${ECHO_T}$ac_res" >&6; }
21534 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21535 cat >>confdefs.h <<_ACEOF
21536 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21541 for ac_header in kerberosIV/des.h
21543 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21544 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21545 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21546 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21547 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21548 echo $ECHO_N "(cached
) $ECHO_C" >&6
21550 ac_res=`eval echo '${'$as_ac_Header'}'`
21551 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21552 echo "${ECHO_T}$ac_res" >&6; }
21554 # Is the header compilable?
21555 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21556 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21557 cat >conftest.$ac_ext <<_ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h. */
21563 $ac_includes_default
21564 #include <$ac_header>
21566 rm -f conftest.$ac_objext
21567 if { (ac_try="$ac_compile"
21568 case "(($ac_try" in
21569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21570 *) ac_try_echo=$ac_try;;
21572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21573 (eval "$ac_compile") 2>conftest.er1
21575 grep -v '^ *+' conftest.er1 >conftest.err
21577 cat conftest.err >&5
21578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21579 (exit $ac_status); } && {
21580 test -z "$ac_c_werror_flag" ||
21581 test ! -s conftest.err
21582 } && test -s conftest.$ac_objext; then
21583 ac_header_compiler=yes
21585 echo "$as_me: failed program was
:" >&5
21586 sed 's/^/| /' conftest.$ac_ext >&5
21588 ac_header_compiler=no
21591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21592 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21593 echo "${ECHO_T}$ac_header_compiler" >&6; }
21595 # Is the header present?
21596 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21597 echo $ECHO_N "checking
$ac_header presence...
$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 #include <$ac_header>
21606 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21607 case "(($ac_try" in
21608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21609 *) ac_try_echo=$ac_try;;
21611 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21612 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21614 grep -v '^ *+' conftest.er1 >conftest.err
21616 cat conftest.err >&5
21617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21618 (exit $ac_status); } >/dev/null && {
21619 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21620 test ! -s conftest.err
21622 ac_header_preproc=yes
21624 echo "$as_me: failed program was
:" >&5
21625 sed 's/^/| /' conftest.$ac_ext >&5
21627 ac_header_preproc=no
21630 rm -f conftest.err conftest.$ac_ext
21631 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21632 echo "${ECHO_T}$ac_header_preproc" >&6; }
21634 # So? What about this header?
21635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21637 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21638 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21639 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21641 ac_header_preproc=yes
21644 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21645 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21646 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21647 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21648 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21649 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21650 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21651 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21652 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21654 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21655 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21659 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21660 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21661 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21662 echo $ECHO_N "(cached
) $ECHO_C" >&6
21664 eval "$as_ac_Header=\
$ac_header_preproc"
21666 ac_res=`eval echo '${'$as_ac_Header'}'`
21667 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21668 echo "${ECHO_T}$ac_res" >&6; }
21671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21672 cat >>confdefs.h <<_ACEOF
21673 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21678 for ac_header in kerberos/des.h
21680 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21681 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21682 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21683 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21684 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21685 echo $ECHO_N "(cached
) $ECHO_C" >&6
21687 ac_res=`eval echo '${'$as_ac_Header'}'`
21688 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21689 echo "${ECHO_T}$ac_res" >&6; }
21691 # Is the header compilable?
21692 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21693 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21694 cat >conftest.$ac_ext <<_ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h. */
21700 $ac_includes_default
21701 #include <$ac_header>
21703 rm -f conftest.$ac_objext
21704 if { (ac_try="$ac_compile"
21705 case "(($ac_try" in
21706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21707 *) ac_try_echo=$ac_try;;
21709 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21710 (eval "$ac_compile") 2>conftest.er1
21712 grep -v '^ *+' conftest.er1 >conftest.err
21714 cat conftest.err >&5
21715 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21716 (exit $ac_status); } && {
21717 test -z "$ac_c_werror_flag" ||
21718 test ! -s conftest.err
21719 } && test -s conftest.$ac_objext; then
21720 ac_header_compiler=yes
21722 echo "$as_me: failed program was
:" >&5
21723 sed 's/^/| /' conftest.$ac_ext >&5
21725 ac_header_compiler=no
21728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21729 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21730 echo "${ECHO_T}$ac_header_compiler" >&6; }
21732 # Is the header present?
21733 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21734 echo $ECHO_N "checking
$ac_header presence...
$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 #include <$ac_header>
21743 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21744 case "(($ac_try" in
21745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21746 *) ac_try_echo=$ac_try;;
21748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21749 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21751 grep -v '^ *+' conftest.er1 >conftest.err
21753 cat conftest.err >&5
21754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21755 (exit $ac_status); } >/dev/null && {
21756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21757 test ! -s conftest.err
21759 ac_header_preproc=yes
21761 echo "$as_me: failed program was
:" >&5
21762 sed 's/^/| /' conftest.$ac_ext >&5
21764 ac_header_preproc=no
21767 rm -f conftest.err conftest.$ac_ext
21768 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21769 echo "${ECHO_T}$ac_header_preproc" >&6; }
21771 # So? What about this header?
21772 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21774 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21775 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21776 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21777 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21778 ac_header_preproc=yes
21781 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21782 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21783 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21784 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21785 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21786 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21787 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21788 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21789 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21790 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21791 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21792 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21796 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21797 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21798 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21799 echo $ECHO_N "(cached
) $ECHO_C" >&6
21801 eval "$as_ac_Header=\
$ac_header_preproc"
21803 ac_res=`eval echo '${'$as_ac_Header'}'`
21804 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21805 echo "${ECHO_T}$ac_res" >&6; }
21808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21809 cat >>confdefs.h <<_ACEOF
21810 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21826 for ac_header in krb.h
21828 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21829 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21830 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21831 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21832 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21833 echo $ECHO_N "(cached
) $ECHO_C" >&6
21835 ac_res=`eval echo '${'$as_ac_Header'}'`
21836 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21837 echo "${ECHO_T}$ac_res" >&6; }
21839 # Is the header compilable?
21840 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21841 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21842 cat >conftest.$ac_ext <<_ACEOF
21845 cat confdefs.h >>conftest.$ac_ext
21846 cat >>conftest.$ac_ext <<_ACEOF
21847 /* end confdefs.h. */
21848 $ac_includes_default
21849 #include <$ac_header>
21851 rm -f conftest.$ac_objext
21852 if { (ac_try="$ac_compile"
21853 case "(($ac_try" in
21854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21855 *) ac_try_echo=$ac_try;;
21857 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21858 (eval "$ac_compile") 2>conftest.er1
21860 grep -v '^ *+' conftest.er1 >conftest.err
21862 cat conftest.err >&5
21863 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21864 (exit $ac_status); } && {
21865 test -z "$ac_c_werror_flag" ||
21866 test ! -s conftest.err
21867 } && test -s conftest.$ac_objext; then
21868 ac_header_compiler=yes
21870 echo "$as_me: failed program was
:" >&5
21871 sed 's/^/| /' conftest.$ac_ext >&5
21873 ac_header_compiler=no
21876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21877 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21878 echo "${ECHO_T}$ac_header_compiler" >&6; }
21880 # Is the header present?
21881 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21882 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21883 cat >conftest.$ac_ext <<_ACEOF
21886 cat confdefs.h >>conftest.$ac_ext
21887 cat >>conftest.$ac_ext <<_ACEOF
21888 /* end confdefs.h. */
21889 #include <$ac_header>
21891 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21892 case "(($ac_try" in
21893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21894 *) ac_try_echo=$ac_try;;
21896 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21897 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21899 grep -v '^ *+' conftest.er1 >conftest.err
21901 cat conftest.err >&5
21902 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21903 (exit $ac_status); } >/dev/null && {
21904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21905 test ! -s conftest.err
21907 ac_header_preproc=yes
21909 echo "$as_me: failed program was
:" >&5
21910 sed 's/^/| /' conftest.$ac_ext >&5
21912 ac_header_preproc=no
21915 rm -f conftest.err conftest.$ac_ext
21916 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21917 echo "${ECHO_T}$ac_header_preproc" >&6; }
21919 # So? What about this header?
21920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21922 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21923 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21924 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21926 ac_header_preproc=yes
21929 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21930 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21931 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21932 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21933 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21934 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21935 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21936 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21937 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21939 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21940 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21944 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21945 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21946 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21947 echo $ECHO_N "(cached
) $ECHO_C" >&6
21949 eval "$as_ac_Header=\
$ac_header_preproc"
21951 ac_res=`eval echo '${'$as_ac_Header'}'`
21952 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21953 echo "${ECHO_T}$ac_res" >&6; }
21956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21957 cat >>confdefs.h <<_ACEOF
21958 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21963 for ac_header in kerberosIV/krb.h
21965 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21966 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21967 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21968 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21969 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21970 echo $ECHO_N "(cached
) $ECHO_C" >&6
21972 ac_res=`eval echo '${'$as_ac_Header'}'`
21973 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21974 echo "${ECHO_T}$ac_res" >&6; }
21976 # Is the header compilable?
21977 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21978 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21979 cat >conftest.$ac_ext <<_ACEOF
21982 cat confdefs.h >>conftest.$ac_ext
21983 cat >>conftest.$ac_ext <<_ACEOF
21984 /* end confdefs.h. */
21985 $ac_includes_default
21986 #include <$ac_header>
21988 rm -f conftest.$ac_objext
21989 if { (ac_try="$ac_compile"
21990 case "(($ac_try" in
21991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21992 *) ac_try_echo=$ac_try;;
21994 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21995 (eval "$ac_compile") 2>conftest.er1
21997 grep -v '^ *+' conftest.er1 >conftest.err
21999 cat conftest.err >&5
22000 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22001 (exit $ac_status); } && {
22002 test -z "$ac_c_werror_flag" ||
22003 test ! -s conftest.err
22004 } && test -s conftest.$ac_objext; then
22005 ac_header_compiler=yes
22007 echo "$as_me: failed program was
:" >&5
22008 sed 's/^/| /' conftest.$ac_ext >&5
22010 ac_header_compiler=no
22013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22014 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22015 echo "${ECHO_T}$ac_header_compiler" >&6; }
22017 # Is the header present?
22018 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22019 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22020 cat >conftest.$ac_ext <<_ACEOF
22023 cat confdefs.h >>conftest.$ac_ext
22024 cat >>conftest.$ac_ext <<_ACEOF
22025 /* end confdefs.h. */
22026 #include <$ac_header>
22028 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22029 case "(($ac_try" in
22030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22031 *) ac_try_echo=$ac_try;;
22033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22034 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22036 grep -v '^ *+' conftest.er1 >conftest.err
22038 cat conftest.err >&5
22039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22040 (exit $ac_status); } >/dev/null && {
22041 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22042 test ! -s conftest.err
22044 ac_header_preproc=yes
22046 echo "$as_me: failed program was
:" >&5
22047 sed 's/^/| /' conftest.$ac_ext >&5
22049 ac_header_preproc=no
22052 rm -f conftest.err conftest.$ac_ext
22053 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22054 echo "${ECHO_T}$ac_header_preproc" >&6; }
22056 # So? What about this header?
22057 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22059 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22060 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22061 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22062 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22063 ac_header_preproc=yes
22066 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22067 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22068 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22069 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22070 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22071 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22072 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22073 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22074 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22075 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22076 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22077 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22081 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22082 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22083 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22084 echo $ECHO_N "(cached
) $ECHO_C" >&6
22086 eval "$as_ac_Header=\
$ac_header_preproc"
22088 ac_res=`eval echo '${'$as_ac_Header'}'`
22089 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22090 echo "${ECHO_T}$ac_res" >&6; }
22093 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22094 cat >>confdefs.h <<_ACEOF
22095 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22100 for ac_header in kerberos/krb.h
22102 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22103 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22104 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22105 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22106 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22107 echo $ECHO_N "(cached
) $ECHO_C" >&6
22109 ac_res=`eval echo '${'$as_ac_Header'}'`
22110 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22111 echo "${ECHO_T}$ac_res" >&6; }
22113 # Is the header compilable?
22114 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22115 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22116 cat >conftest.$ac_ext <<_ACEOF
22119 cat confdefs.h >>conftest.$ac_ext
22120 cat >>conftest.$ac_ext <<_ACEOF
22121 /* end confdefs.h. */
22122 $ac_includes_default
22123 #include <$ac_header>
22125 rm -f conftest.$ac_objext
22126 if { (ac_try="$ac_compile"
22127 case "(($ac_try" in
22128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22129 *) ac_try_echo=$ac_try;;
22131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22132 (eval "$ac_compile") 2>conftest.er1
22134 grep -v '^ *+' conftest.er1 >conftest.err
22136 cat conftest.err >&5
22137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22138 (exit $ac_status); } && {
22139 test -z "$ac_c_werror_flag" ||
22140 test ! -s conftest.err
22141 } && test -s conftest.$ac_objext; then
22142 ac_header_compiler=yes
22144 echo "$as_me: failed program was
:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22147 ac_header_compiler=no
22150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22151 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22152 echo "${ECHO_T}$ac_header_compiler" >&6; }
22154 # Is the header present?
22155 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22156 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22157 cat >conftest.$ac_ext <<_ACEOF
22160 cat confdefs.h >>conftest.$ac_ext
22161 cat >>conftest.$ac_ext <<_ACEOF
22162 /* end confdefs.h. */
22163 #include <$ac_header>
22165 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22166 case "(($ac_try" in
22167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22168 *) ac_try_echo=$ac_try;;
22170 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22171 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22173 grep -v '^ *+' conftest.er1 >conftest.err
22175 cat conftest.err >&5
22176 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22177 (exit $ac_status); } >/dev/null && {
22178 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22179 test ! -s conftest.err
22181 ac_header_preproc=yes
22183 echo "$as_me: failed program was
:" >&5
22184 sed 's/^/| /' conftest.$ac_ext >&5
22186 ac_header_preproc=no
22189 rm -f conftest.err conftest.$ac_ext
22190 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22191 echo "${ECHO_T}$ac_header_preproc" >&6; }
22193 # So? What about this header?
22194 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22196 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22197 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22198 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22199 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22200 ac_header_preproc=yes
22203 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22204 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22205 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22206 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22207 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22208 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22209 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22210 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22211 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22212 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22213 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22214 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22218 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22219 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22220 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22221 echo $ECHO_N "(cached
) $ECHO_C" >&6
22223 eval "$as_ac_Header=\
$ac_header_preproc"
22225 ac_res=`eval echo '${'$as_ac_Header'}'`
22226 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22227 echo "${ECHO_T}$ac_res" >&6; }
22230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22231 cat >>confdefs.h <<_ACEOF
22232 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22249 for ac_header in com_err.h
22251 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22252 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22253 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22254 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22255 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22256 echo $ECHO_N "(cached
) $ECHO_C" >&6
22258 ac_res=`eval echo '${'$as_ac_Header'}'`
22259 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22260 echo "${ECHO_T}$ac_res" >&6; }
22262 # Is the header compilable?
22263 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22264 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22265 cat >conftest.$ac_ext <<_ACEOF
22268 cat confdefs.h >>conftest.$ac_ext
22269 cat >>conftest.$ac_ext <<_ACEOF
22270 /* end confdefs.h. */
22271 $ac_includes_default
22272 #include <$ac_header>
22274 rm -f conftest.$ac_objext
22275 if { (ac_try="$ac_compile"
22276 case "(($ac_try" in
22277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22278 *) ac_try_echo=$ac_try;;
22280 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22281 (eval "$ac_compile") 2>conftest.er1
22283 grep -v '^ *+' conftest.er1 >conftest.err
22285 cat conftest.err >&5
22286 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22287 (exit $ac_status); } && {
22288 test -z "$ac_c_werror_flag" ||
22289 test ! -s conftest.err
22290 } && test -s conftest.$ac_objext; then
22291 ac_header_compiler=yes
22293 echo "$as_me: failed program was
:" >&5
22294 sed 's/^/| /' conftest.$ac_ext >&5
22296 ac_header_compiler=no
22299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22300 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22301 echo "${ECHO_T}$ac_header_compiler" >&6; }
22303 # Is the header present?
22304 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22305 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22306 cat >conftest.$ac_ext <<_ACEOF
22309 cat confdefs.h >>conftest.$ac_ext
22310 cat >>conftest.$ac_ext <<_ACEOF
22311 /* end confdefs.h. */
22312 #include <$ac_header>
22314 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22315 case "(($ac_try" in
22316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22317 *) ac_try_echo=$ac_try;;
22319 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22320 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22322 grep -v '^ *+' conftest.er1 >conftest.err
22324 cat conftest.err >&5
22325 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22326 (exit $ac_status); } >/dev/null && {
22327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22328 test ! -s conftest.err
22330 ac_header_preproc=yes
22332 echo "$as_me: failed program was
:" >&5
22333 sed 's/^/| /' conftest.$ac_ext >&5
22335 ac_header_preproc=no
22338 rm -f conftest.err conftest.$ac_ext
22339 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22340 echo "${ECHO_T}$ac_header_preproc" >&6; }
22342 # So? What about this header?
22343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22345 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22346 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22347 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22349 ac_header_preproc=yes
22352 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22353 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22354 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22355 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22356 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22357 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22358 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22359 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22360 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22362 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22363 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22367 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22368 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22369 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22370 echo $ECHO_N "(cached
) $ECHO_C" >&6
22372 eval "$as_ac_Header=\
$ac_header_preproc"
22374 ac_res=`eval echo '${'$as_ac_Header'}'`
22375 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22376 echo "${ECHO_T}$ac_res" >&6; }
22379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22380 cat >>confdefs.h <<_ACEOF
22381 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22390 # Solaris requires -lintl if you want strerror (which calls dgettext)
22391 # to return localized messages.
22393 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22394 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22395 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22396 echo $ECHO_N "(cached
) $ECHO_C" >&6
22398 ac_check_lib_save_LIBS=$LIBS
22399 LIBS="-lintl $LIBS"
22400 cat >conftest.$ac_ext <<_ACEOF
22403 cat confdefs.h >>conftest.$ac_ext
22404 cat >>conftest.$ac_ext <<_ACEOF
22405 /* end confdefs.h. */
22407 /* Override any GCC internal prototype to avoid an error.
22408 Use char because int might match the return type of a GCC
22409 builtin and then its argument prototype would still apply. */
22417 return dgettext ();
22422 rm -f conftest.$ac_objext conftest$ac_exeext
22423 if { (ac_try="$ac_link"
22424 case "(($ac_try" in
22425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22426 *) ac_try_echo=$ac_try;;
22428 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22429 (eval "$ac_link") 2>conftest.er1
22431 grep -v '^ *+' conftest.er1 >conftest.err
22433 cat conftest.err >&5
22434 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22435 (exit $ac_status); } && {
22436 test -z "$ac_c_werror_flag" ||
22437 test ! -s conftest.err
22438 } && test -s conftest$ac_exeext &&
22439 $as_test_x conftest$ac_exeext; then
22440 ac_cv_lib_intl_dgettext=yes
22442 echo "$as_me: failed program was
:" >&5
22443 sed 's/^/| /' conftest.$ac_ext >&5
22445 ac_cv_lib_intl_dgettext=no
22448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22449 conftest$ac_exeext conftest.$ac_ext
22450 LIBS=$ac_check_lib_save_LIBS
22452 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22453 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22454 if test $ac_cv_lib_intl_dgettext = yes; then
22455 cat >>confdefs.h <<_ACEOF
22456 #define HAVE_LIBINTL 1
22459 LIBS="-lintl $LIBS"
22464 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22465 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22466 if test "${emacs_cv_localtime_cache+set}" = set; then
22467 echo $ECHO_N "(cached
) $ECHO_C" >&6
22469 if test x$ac_cv_func_tzset = xyes; then
22470 if test "$cross_compiling" = yes; then
22471 # If we have tzset, assume the worst when cross-compiling.
22472 emacs_cv_localtime_cache=yes
22474 cat >conftest.$ac_ext <<_ACEOF
22477 cat confdefs.h >>conftest.$ac_ext
22478 cat >>conftest.$ac_ext <<_ACEOF
22479 /* end confdefs.h. */
22481 extern char **environ;
22485 for (to = from = environ; (*to = *from); from++)
22486 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22489 char TZ_GMT0[] = "TZ
=GMT0
";
22490 char TZ_PST8[] = "TZ
=PST8
";
22493 time_t now = time ((time_t *) 0);
22494 int hour_GMT0, hour_unset;
22495 if (putenv (TZ_GMT0) != 0)
22497 hour_GMT0 = localtime (&now)->tm_hour;
22499 hour_unset = localtime (&now)->tm_hour;
22500 if (putenv (TZ_PST8) != 0)
22502 if (localtime (&now)->tm_hour == hour_GMT0)
22505 if (localtime (&now)->tm_hour != hour_unset)
22510 rm -f conftest$ac_exeext
22511 if { (ac_try="$ac_link"
22512 case "(($ac_try" in
22513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22514 *) ac_try_echo=$ac_try;;
22516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22517 (eval "$ac_link") 2>&5
22519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22521 { (case "(($ac_try" in
22522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22523 *) ac_try_echo=$ac_try;;
22525 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22526 (eval "$ac_try") 2>&5
22528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22529 (exit $ac_status); }; }; then
22530 emacs_cv_localtime_cache=no
22532 echo "$as_me: program exited with status
$ac_status" >&5
22533 echo "$as_me: failed program was
:" >&5
22534 sed 's/^/| /' conftest.$ac_ext >&5
22536 ( exit $ac_status )
22537 emacs_cv_localtime_cache=yes
22539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22544 # If we lack tzset, report that localtime does not cache TZ,
22545 # since we can't invalidate the cache if we don't have tzset.
22546 emacs_cv_localtime_cache=no
22549 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22550 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22551 if test $emacs_cv_localtime_cache = yes; then
22553 cat >>confdefs.h <<\_ACEOF
22554 #define LOCALTIME_CACHE 1
22559 if test "x
$HAVE_TIMEVAL" = xyes; then
22561 for ac_func in gettimeofday
22563 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22564 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22565 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22566 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22567 echo $ECHO_N "(cached
) $ECHO_C" >&6
22569 cat >conftest.$ac_ext <<_ACEOF
22572 cat confdefs.h >>conftest.$ac_ext
22573 cat >>conftest.$ac_ext <<_ACEOF
22574 /* end confdefs.h. */
22575 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22576 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22577 #define $ac_func innocuous_$ac_func
22579 /* System header to define __stub macros and hopefully few prototypes,
22580 which can conflict with char $ac_func (); below.
22581 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22582 <limits.h> exists even on freestanding compilers. */
22585 # include <limits.h>
22587 # include <assert.h>
22592 /* Override any GCC internal prototype to avoid an error.
22593 Use char because int might match the return type of a GCC
22594 builtin and then its argument prototype would still apply. */
22599 /* The GNU C library defines this for functions which it implements
22600 to always fail with ENOSYS. Some functions are actually named
22601 something starting with __ and the normal name is an alias. */
22602 #if defined __stub_$ac_func || defined __stub___$ac_func
22609 return $ac_func ();
22614 rm -f conftest.$ac_objext conftest$ac_exeext
22615 if { (ac_try="$ac_link"
22616 case "(($ac_try" in
22617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22618 *) ac_try_echo=$ac_try;;
22620 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22621 (eval "$ac_link") 2>conftest.er1
22623 grep -v '^ *+' conftest.er1 >conftest.err
22625 cat conftest.err >&5
22626 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22627 (exit $ac_status); } && {
22628 test -z "$ac_c_werror_flag" ||
22629 test ! -s conftest.err
22630 } && test -s conftest$ac_exeext &&
22631 $as_test_x conftest$ac_exeext; then
22632 eval "$as_ac_var=yes"
22634 echo "$as_me: failed program was
:" >&5
22635 sed 's/^/| /' conftest.$ac_ext >&5
22637 eval "$as_ac_var=no
"
22640 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22641 conftest$ac_exeext conftest.$ac_ext
22643 ac_res=`eval echo '${'$as_ac_var'}'`
22644 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22645 echo "${ECHO_T}$ac_res" >&6; }
22646 if test `eval echo '${'$as_ac_var'}'` = yes; then
22647 cat >>confdefs.h <<_ACEOF
22648 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22654 if test $ac_cv_func_gettimeofday = yes; then
22655 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22656 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22657 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22658 echo $ECHO_N "(cached
) $ECHO_C" >&6
22660 cat >conftest.$ac_ext <<_ACEOF
22663 cat confdefs.h >>conftest.$ac_ext
22664 cat >>conftest.$ac_ext <<_ACEOF
22665 /* end confdefs.h. */
22667 #ifdef TIME_WITH_SYS_TIME
22668 #include <sys/time.h>
22671 #ifdef HAVE_SYS_TIME_H
22672 #include <sys/time.h>
22680 struct timeval time;
22681 gettimeofday (&time, 0);
22686 rm -f conftest.$ac_objext
22687 if { (ac_try="$ac_compile"
22688 case "(($ac_try" in
22689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22690 *) ac_try_echo=$ac_try;;
22692 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22693 (eval "$ac_compile") 2>conftest.er1
22695 grep -v '^ *+' conftest.er1 >conftest.err
22697 cat conftest.err >&5
22698 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22699 (exit $ac_status); } && {
22700 test -z "$ac_c_werror_flag" ||
22701 test ! -s conftest.err
22702 } && test -s conftest.$ac_objext; then
22703 emacs_cv_gettimeofday_two_arguments=yes
22705 echo "$as_me: failed program was
:" >&5
22706 sed 's/^/| /' conftest.$ac_ext >&5
22708 emacs_cv_gettimeofday_two_arguments=no
22711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22713 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22714 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22715 if test $emacs_cv_gettimeofday_two_arguments = no; then
22717 cat >>confdefs.h <<\_ACEOF
22718 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22726 { echo "$as_me:$LINENO: checking
for socket
" >&5
22727 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22728 if test "${ac_cv_func_socket+set}" = set; then
22729 echo $ECHO_N "(cached
) $ECHO_C" >&6
22731 cat >conftest.$ac_ext <<_ACEOF
22734 cat confdefs.h >>conftest.$ac_ext
22735 cat >>conftest.$ac_ext <<_ACEOF
22736 /* end confdefs.h. */
22737 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22739 #define socket innocuous_socket
22741 /* System header to define __stub macros and hopefully few prototypes,
22742 which can conflict with char socket (); below.
22743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22744 <limits.h> exists even on freestanding compilers. */
22747 # include <limits.h>
22749 # include <assert.h>
22754 /* Override any GCC internal prototype to avoid an error.
22755 Use char because int might match the return type of a GCC
22756 builtin and then its argument prototype would still apply. */
22761 /* The GNU C library defines this for functions which it implements
22762 to always fail with ENOSYS. Some functions are actually named
22763 something starting with __ and the normal name is an alias. */
22764 #if defined __stub_socket || defined __stub___socket
22776 rm -f conftest.$ac_objext conftest$ac_exeext
22777 if { (ac_try="$ac_link"
22778 case "(($ac_try" in
22779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22780 *) ac_try_echo=$ac_try;;
22782 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22783 (eval "$ac_link") 2>conftest.er1
22785 grep -v '^ *+' conftest.er1 >conftest.err
22787 cat conftest.err >&5
22788 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22789 (exit $ac_status); } && {
22790 test -z "$ac_c_werror_flag" ||
22791 test ! -s conftest.err
22792 } && test -s conftest$ac_exeext &&
22793 $as_test_x conftest$ac_exeext; then
22794 ac_cv_func_socket=yes
22796 echo "$as_me: failed program was
:" >&5
22797 sed 's/^/| /' conftest.$ac_ext >&5
22799 ac_cv_func_socket=no
22802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22803 conftest$ac_exeext conftest.$ac_ext
22805 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22806 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22807 if test $ac_cv_func_socket = yes; then
22813 if test $ok_so_far = yes; then
22814 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22815 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22816 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22817 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22818 echo $ECHO_N "(cached
) $ECHO_C" >&6
22820 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22821 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22823 # Is the header compilable?
22824 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22825 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22826 cat >conftest.$ac_ext <<_ACEOF
22829 cat confdefs.h >>conftest.$ac_ext
22830 cat >>conftest.$ac_ext <<_ACEOF
22831 /* end confdefs.h. */
22832 $ac_includes_default
22833 #include <netinet/in.h>
22835 rm -f conftest.$ac_objext
22836 if { (ac_try="$ac_compile"
22837 case "(($ac_try" in
22838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22839 *) ac_try_echo=$ac_try;;
22841 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22842 (eval "$ac_compile") 2>conftest.er1
22844 grep -v '^ *+' conftest.er1 >conftest.err
22846 cat conftest.err >&5
22847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22848 (exit $ac_status); } && {
22849 test -z "$ac_c_werror_flag" ||
22850 test ! -s conftest.err
22851 } && test -s conftest.$ac_objext; then
22852 ac_header_compiler=yes
22854 echo "$as_me: failed program was
:" >&5
22855 sed 's/^/| /' conftest.$ac_ext >&5
22857 ac_header_compiler=no
22860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22861 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22862 echo "${ECHO_T}$ac_header_compiler" >&6; }
22864 # Is the header present?
22865 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22866 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22867 cat >conftest.$ac_ext <<_ACEOF
22870 cat confdefs.h >>conftest.$ac_ext
22871 cat >>conftest.$ac_ext <<_ACEOF
22872 /* end confdefs.h. */
22873 #include <netinet/in.h>
22875 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22876 case "(($ac_try" in
22877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22878 *) ac_try_echo=$ac_try;;
22880 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22881 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22883 grep -v '^ *+' conftest.er1 >conftest.err
22885 cat conftest.err >&5
22886 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22887 (exit $ac_status); } >/dev/null && {
22888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22889 test ! -s conftest.err
22891 ac_header_preproc=yes
22893 echo "$as_me: failed program was
:" >&5
22894 sed 's/^/| /' conftest.$ac_ext >&5
22896 ac_header_preproc=no
22899 rm -f conftest.err conftest.$ac_ext
22900 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22901 echo "${ECHO_T}$ac_header_preproc" >&6; }
22903 # So? What about this header?
22904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22906 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22907 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22908 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22909 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22910 ac_header_preproc=yes
22913 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22914 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22915 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22916 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22917 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22918 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22919 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22920 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22921 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22922 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22923 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22924 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22928 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22929 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22930 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22931 echo $ECHO_N "(cached
) $ECHO_C" >&6
22933 ac_cv_header_netinet_in_h=$ac_header_preproc
22935 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22936 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22939 if test $ac_cv_header_netinet_in_h = yes; then
22947 if test $ok_so_far = yes; then
22948 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22949 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22950 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22951 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22952 echo $ECHO_N "(cached
) $ECHO_C" >&6
22954 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22955 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22957 # Is the header compilable?
22958 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22959 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22960 cat >conftest.$ac_ext <<_ACEOF
22963 cat confdefs.h >>conftest.$ac_ext
22964 cat >>conftest.$ac_ext <<_ACEOF
22965 /* end confdefs.h. */
22966 $ac_includes_default
22967 #include <arpa/inet.h>
22969 rm -f conftest.$ac_objext
22970 if { (ac_try="$ac_compile"
22971 case "(($ac_try" in
22972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22973 *) ac_try_echo=$ac_try;;
22975 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22976 (eval "$ac_compile") 2>conftest.er1
22978 grep -v '^ *+' conftest.er1 >conftest.err
22980 cat conftest.err >&5
22981 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22982 (exit $ac_status); } && {
22983 test -z "$ac_c_werror_flag" ||
22984 test ! -s conftest.err
22985 } && test -s conftest.$ac_objext; then
22986 ac_header_compiler=yes
22988 echo "$as_me: failed program was
:" >&5
22989 sed 's/^/| /' conftest.$ac_ext >&5
22991 ac_header_compiler=no
22994 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22995 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22996 echo "${ECHO_T}$ac_header_compiler" >&6; }
22998 # Is the header present?
22999 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
23000 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
23001 cat >conftest.$ac_ext <<_ACEOF
23004 cat confdefs.h >>conftest.$ac_ext
23005 cat >>conftest.$ac_ext <<_ACEOF
23006 /* end confdefs.h. */
23007 #include <arpa/inet.h>
23009 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23010 case "(($ac_try" in
23011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23012 *) ac_try_echo=$ac_try;;
23014 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23015 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23017 grep -v '^ *+' conftest.er1 >conftest.err
23019 cat conftest.err >&5
23020 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23021 (exit $ac_status); } >/dev/null && {
23022 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23023 test ! -s conftest.err
23025 ac_header_preproc=yes
23027 echo "$as_me: failed program was
:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23030 ac_header_preproc=no
23033 rm -f conftest.err conftest.$ac_ext
23034 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23035 echo "${ECHO_T}$ac_header_preproc" >&6; }
23037 # So? What about this header?
23038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23040 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23041 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23042 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
23043 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
23044 ac_header_preproc=yes
23047 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
23048 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
23049 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
23050 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
23051 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
23052 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
23053 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23054 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23055 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
23056 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
23057 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
23058 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
23062 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
23063 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
23064 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23065 echo $ECHO_N "(cached
) $ECHO_C" >&6
23067 ac_cv_header_arpa_inet_h=$ac_header_preproc
23069 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
23070 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23073 if test $ac_cv_header_arpa_inet_h = yes; then
23081 if test $ok_so_far = yes; then
23083 cat >>confdefs.h <<\_ACEOF
23084 #define HAVE_INET_SOCKETS 1
23090 for ac_header in sys/ioctl.h
23092 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23093 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23094 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23095 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23096 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23097 echo $ECHO_N "(cached
) $ECHO_C" >&6
23099 ac_res=`eval echo '${'$as_ac_Header'}'`
23100 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23101 echo "${ECHO_T}$ac_res" >&6; }
23103 # Is the header compilable?
23104 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23105 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23106 cat >conftest.$ac_ext <<_ACEOF
23109 cat confdefs.h >>conftest.$ac_ext
23110 cat >>conftest.$ac_ext <<_ACEOF
23111 /* end confdefs.h. */
23112 $ac_includes_default
23113 #include <$ac_header>
23115 rm -f conftest.$ac_objext
23116 if { (ac_try="$ac_compile"
23117 case "(($ac_try" in
23118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23119 *) ac_try_echo=$ac_try;;
23121 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23122 (eval "$ac_compile") 2>conftest.er1
23124 grep -v '^ *+' conftest.er1 >conftest.err
23126 cat conftest.err >&5
23127 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23128 (exit $ac_status); } && {
23129 test -z "$ac_c_werror_flag" ||
23130 test ! -s conftest.err
23131 } && test -s conftest.$ac_objext; then
23132 ac_header_compiler=yes
23134 echo "$as_me: failed program was
:" >&5
23135 sed 's/^/| /' conftest.$ac_ext >&5
23137 ac_header_compiler=no
23140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23141 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23142 echo "${ECHO_T}$ac_header_compiler" >&6; }
23144 # Is the header present?
23145 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23146 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23147 cat >conftest.$ac_ext <<_ACEOF
23150 cat confdefs.h >>conftest.$ac_ext
23151 cat >>conftest.$ac_ext <<_ACEOF
23152 /* end confdefs.h. */
23153 #include <$ac_header>
23155 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23156 case "(($ac_try" in
23157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23158 *) ac_try_echo=$ac_try;;
23160 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23161 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23163 grep -v '^ *+' conftest.er1 >conftest.err
23165 cat conftest.err >&5
23166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23167 (exit $ac_status); } >/dev/null && {
23168 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23169 test ! -s conftest.err
23171 ac_header_preproc=yes
23173 echo "$as_me: failed program was
:" >&5
23174 sed 's/^/| /' conftest.$ac_ext >&5
23176 ac_header_preproc=no
23179 rm -f conftest.err conftest.$ac_ext
23180 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23181 echo "${ECHO_T}$ac_header_preproc" >&6; }
23183 # So? What about this header?
23184 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23186 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23187 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23188 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23189 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23190 ac_header_preproc=yes
23193 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23194 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23195 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23196 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23197 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23198 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23199 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23200 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23201 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23202 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23203 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23204 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23208 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23209 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23210 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23211 echo $ECHO_N "(cached
) $ECHO_C" >&6
23213 eval "$as_ac_Header=\
$ac_header_preproc"
23215 ac_res=`eval echo '${'$as_ac_Header'}'`
23216 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23217 echo "${ECHO_T}$ac_res" >&6; }
23220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23221 cat >>confdefs.h <<_ACEOF
23222 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23230 if test -f /usr/lpp/X11/bin/smt.exp; then
23232 cat >>confdefs.h <<\_ACEOF
23233 #define HAVE_AIX_SMT_EXP 1
23238 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
23239 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
23240 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23241 { echo "$as_me:$LINENO: result
: yes" >&5
23242 echo "${ECHO_T}yes" >&6; }
23244 cat >>confdefs.h <<\_ACEOF
23245 #define HAVE_DEV_PTMX 1
23249 { echo "$as_me:$LINENO: result
: no
" >&5
23250 echo "${ECHO_T}no
" >&6; }
23253 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
23254 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
23255 if test "${ac_cv_type_pid_t+set}" = set; then
23256 echo $ECHO_N "(cached
) $ECHO_C" >&6
23258 cat >conftest.$ac_ext <<_ACEOF
23261 cat confdefs.h >>conftest.$ac_ext
23262 cat >>conftest.$ac_ext <<_ACEOF
23263 /* end confdefs.h. */
23264 $ac_includes_default
23265 typedef pid_t ac__type_new_;
23269 if ((ac__type_new_ *) 0)
23271 if (sizeof (ac__type_new_))
23277 rm -f conftest.$ac_objext
23278 if { (ac_try="$ac_compile"
23279 case "(($ac_try" in
23280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23281 *) ac_try_echo=$ac_try;;
23283 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23284 (eval "$ac_compile") 2>conftest.er1
23286 grep -v '^ *+' conftest.er1 >conftest.err
23288 cat conftest.err >&5
23289 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23290 (exit $ac_status); } && {
23291 test -z "$ac_c_werror_flag" ||
23292 test ! -s conftest.err
23293 } && test -s conftest.$ac_objext; then
23294 ac_cv_type_pid_t=yes
23296 echo "$as_me: failed program was
:" >&5
23297 sed 's/^/| /' conftest.$ac_ext >&5
23299 ac_cv_type_pid_t=no
23302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23304 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
23305 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23306 if test $ac_cv_type_pid_t = yes; then
23310 cat >>confdefs.h <<_ACEOF
23317 for ac_header in vfork.h
23319 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23320 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23321 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23322 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23323 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23324 echo $ECHO_N "(cached
) $ECHO_C" >&6
23326 ac_res=`eval echo '${'$as_ac_Header'}'`
23327 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23328 echo "${ECHO_T}$ac_res" >&6; }
23330 # Is the header compilable?
23331 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23332 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23333 cat >conftest.$ac_ext <<_ACEOF
23336 cat confdefs.h >>conftest.$ac_ext
23337 cat >>conftest.$ac_ext <<_ACEOF
23338 /* end confdefs.h. */
23339 $ac_includes_default
23340 #include <$ac_header>
23342 rm -f conftest.$ac_objext
23343 if { (ac_try="$ac_compile"
23344 case "(($ac_try" in
23345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23346 *) ac_try_echo=$ac_try;;
23348 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23349 (eval "$ac_compile") 2>conftest.er1
23351 grep -v '^ *+' conftest.er1 >conftest.err
23353 cat conftest.err >&5
23354 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23355 (exit $ac_status); } && {
23356 test -z "$ac_c_werror_flag" ||
23357 test ! -s conftest.err
23358 } && test -s conftest.$ac_objext; then
23359 ac_header_compiler=yes
23361 echo "$as_me: failed program was
:" >&5
23362 sed 's/^/| /' conftest.$ac_ext >&5
23364 ac_header_compiler=no
23367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23368 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23369 echo "${ECHO_T}$ac_header_compiler" >&6; }
23371 # Is the header present?
23372 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23373 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23374 cat >conftest.$ac_ext <<_ACEOF
23377 cat confdefs.h >>conftest.$ac_ext
23378 cat >>conftest.$ac_ext <<_ACEOF
23379 /* end confdefs.h. */
23380 #include <$ac_header>
23382 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23383 case "(($ac_try" in
23384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23385 *) ac_try_echo=$ac_try;;
23387 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23388 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23390 grep -v '^ *+' conftest.er1 >conftest.err
23392 cat conftest.err >&5
23393 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23394 (exit $ac_status); } >/dev/null && {
23395 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23396 test ! -s conftest.err
23398 ac_header_preproc=yes
23400 echo "$as_me: failed program was
:" >&5
23401 sed 's/^/| /' conftest.$ac_ext >&5
23403 ac_header_preproc=no
23406 rm -f conftest.err conftest.$ac_ext
23407 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23408 echo "${ECHO_T}$ac_header_preproc" >&6; }
23410 # So? What about this header?
23411 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23413 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23414 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23415 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23416 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23417 ac_header_preproc=yes
23420 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23421 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23422 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23423 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23424 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23425 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23426 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23427 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23428 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23429 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23430 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23431 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23435 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23436 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23437 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23438 echo $ECHO_N "(cached
) $ECHO_C" >&6
23440 eval "$as_ac_Header=\
$ac_header_preproc"
23442 ac_res=`eval echo '${'$as_ac_Header'}'`
23443 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23444 echo "${ECHO_T}$ac_res" >&6; }
23447 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23448 cat >>confdefs.h <<_ACEOF
23449 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23458 for ac_func in fork vfork
23460 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23461 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23462 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23463 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23464 echo $ECHO_N "(cached
) $ECHO_C" >&6
23466 cat >conftest.$ac_ext <<_ACEOF
23469 cat confdefs.h >>conftest.$ac_ext
23470 cat >>conftest.$ac_ext <<_ACEOF
23471 /* end confdefs.h. */
23472 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23473 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23474 #define $ac_func innocuous_$ac_func
23476 /* System header to define __stub macros and hopefully few prototypes,
23477 which can conflict with char $ac_func (); below.
23478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23479 <limits.h> exists even on freestanding compilers. */
23482 # include <limits.h>
23484 # include <assert.h>
23489 /* Override any GCC internal prototype to avoid an error.
23490 Use char because int might match the return type of a GCC
23491 builtin and then its argument prototype would still apply. */
23496 /* The GNU C library defines this for functions which it implements
23497 to always fail with ENOSYS. Some functions are actually named
23498 something starting with __ and the normal name is an alias. */
23499 #if defined __stub_$ac_func || defined __stub___$ac_func
23506 return $ac_func ();
23511 rm -f conftest.$ac_objext conftest$ac_exeext
23512 if { (ac_try="$ac_link"
23513 case "(($ac_try" in
23514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515 *) ac_try_echo=$ac_try;;
23517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23518 (eval "$ac_link") 2>conftest.er1
23520 grep -v '^ *+' conftest.er1 >conftest.err
23522 cat conftest.err >&5
23523 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23524 (exit $ac_status); } && {
23525 test -z "$ac_c_werror_flag" ||
23526 test ! -s conftest.err
23527 } && test -s conftest$ac_exeext &&
23528 $as_test_x conftest$ac_exeext; then
23529 eval "$as_ac_var=yes"
23531 echo "$as_me: failed program was
:" >&5
23532 sed 's/^/| /' conftest.$ac_ext >&5
23534 eval "$as_ac_var=no
"
23537 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23538 conftest$ac_exeext conftest.$ac_ext
23540 ac_res=`eval echo '${'$as_ac_var'}'`
23541 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23542 echo "${ECHO_T}$ac_res" >&6; }
23543 if test `eval echo '${'$as_ac_var'}'` = yes; then
23544 cat >>confdefs.h <<_ACEOF
23545 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23551 if test "x
$ac_cv_func_fork" = xyes; then
23552 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23553 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23554 if test "${ac_cv_func_fork_works+set}" = set; then
23555 echo $ECHO_N "(cached
) $ECHO_C" >&6
23557 if test "$cross_compiling" = yes; then
23558 ac_cv_func_fork_works=cross
23560 cat >conftest.$ac_ext <<_ACEOF
23563 cat confdefs.h >>conftest.$ac_ext
23564 cat >>conftest.$ac_ext <<_ACEOF
23565 /* end confdefs.h. */
23566 $ac_includes_default
23571 /* By Ruediger Kuhlmann. */
23572 return fork () < 0;
23578 rm -f conftest$ac_exeext
23579 if { (ac_try="$ac_link"
23580 case "(($ac_try" in
23581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23582 *) ac_try_echo=$ac_try;;
23584 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23585 (eval "$ac_link") 2>&5
23587 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23588 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23589 { (case "(($ac_try" in
23590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23591 *) ac_try_echo=$ac_try;;
23593 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23594 (eval "$ac_try") 2>&5
23596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23597 (exit $ac_status); }; }; then
23598 ac_cv_func_fork_works=yes
23600 echo "$as_me: program exited with status
$ac_status" >&5
23601 echo "$as_me: failed program was
:" >&5
23602 sed 's/^/| /' conftest.$ac_ext >&5
23604 ( exit $ac_status )
23605 ac_cv_func_fork_works=no
23607 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23612 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23613 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23616 ac_cv_func_fork_works=$ac_cv_func_fork
23618 if test "x
$ac_cv_func_fork_works" = xcross; then
23620 *-*-amigaos* | *-*-msdosdjgpp*)
23621 # Override, as these systems have only a dummy fork() stub
23622 ac_cv_func_fork_works=no
23625 ac_cv_func_fork_works=yes
23628 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23629 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23631 ac_cv_func_vfork_works=$ac_cv_func_vfork
23632 if test "x
$ac_cv_func_vfork" = xyes; then
23633 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23634 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23635 if test "${ac_cv_func_vfork_works+set}" = set; then
23636 echo $ECHO_N "(cached
) $ECHO_C" >&6
23638 if test "$cross_compiling" = yes; then
23639 ac_cv_func_vfork_works=cross
23641 cat >conftest.$ac_ext <<_ACEOF
23644 cat confdefs.h >>conftest.$ac_ext
23645 cat >>conftest.$ac_ext <<_ACEOF
23646 /* end confdefs.h. */
23647 /* Thanks to Paul Eggert for this test. */
23648 $ac_includes_default
23649 #include <sys/wait.h>
23650 #ifdef HAVE_VFORK_H
23651 # include <vfork.h>
23653 /* On some sparc systems, changes by the child to local and incoming
23654 argument registers are propagated back to the parent. The compiler
23655 is told about this with #include <vfork.h>, but some compilers
23656 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23657 static variable whose address is put into a register that is
23658 clobbered by the vfork. */
23661 sparc_address_test (int arg)
23663 sparc_address_test (arg) int arg;
23666 static pid_t child;
23684 pid_t parent = getpid ();
23687 sparc_address_test (0);
23692 /* Here is another test for sparc vfork register problems. This
23693 test uses lots of local variables, at least as many local
23694 variables as main has allocated so far including compiler
23695 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23696 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23697 reuse the register of parent for one of the local variables,
23698 since it will think that parent can't possibly be used any more
23699 in this routine. Assigning to the local variable will thus
23700 munge parent in the parent process. */
23702 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23703 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23704 /* Convince the compiler that p..p7 are live; otherwise, it might
23705 use the same hardware register for all 8 local variables. */
23706 if (p != p1 || p != p2 || p != p3 || p != p4
23707 || p != p5 || p != p6 || p != p7)
23710 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23711 from child file descriptors. If the child closes a descriptor
23712 before it execs or exits, this munges the parent's descriptor
23713 as well. Test for this by closing stdout in the child. */
23714 _exit(close(fileno(stdout)) != 0);
23719 while (wait(&status) != child)
23722 /* Was there some problem with vforking? */
23725 /* Did the child fail? (This shouldn't happen.) */
23728 /* Did the vfork/compiler bug occur? */
23729 || parent != getpid()
23731 /* Did the file descriptor bug occur? */
23732 || fstat(fileno(stdout), &st) != 0
23737 rm -f conftest$ac_exeext
23738 if { (ac_try="$ac_link"
23739 case "(($ac_try" in
23740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23741 *) ac_try_echo=$ac_try;;
23743 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23744 (eval "$ac_link") 2>&5
23746 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23747 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23748 { (case "(($ac_try" in
23749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23750 *) ac_try_echo=$ac_try;;
23752 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23753 (eval "$ac_try") 2>&5
23755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23756 (exit $ac_status); }; }; then
23757 ac_cv_func_vfork_works=yes
23759 echo "$as_me: program exited with status
$ac_status" >&5
23760 echo "$as_me: failed program was
:" >&5
23761 sed 's/^/| /' conftest.$ac_ext >&5
23763 ( exit $ac_status )
23764 ac_cv_func_vfork_works=no
23766 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23771 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23772 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23775 if test "x
$ac_cv_func_fork_works" = xcross; then
23776 ac_cv_func_vfork_works=$ac_cv_func_vfork
23777 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23778 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23781 if test "x
$ac_cv_func_vfork_works" = xyes; then
23783 cat >>confdefs.h <<\_ACEOF
23784 #define HAVE_WORKING_VFORK 1
23789 cat >>confdefs.h <<\_ACEOF
23794 if test "x
$ac_cv_func_fork_works" = xyes; then
23796 cat >>confdefs.h <<\_ACEOF
23797 #define HAVE_WORKING_FORK 1
23803 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23804 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23805 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23806 echo $ECHO_N "(cached
) $ECHO_C" >&6
23808 cat >conftest.$ac_ext <<_ACEOF
23811 cat confdefs.h >>conftest.$ac_ext
23812 cat >>conftest.$ac_ext <<_ACEOF
23813 /* end confdefs.h. */
23814 #include <langinfo.h>
23818 char* cs = nl_langinfo(CODESET);
23823 rm -f conftest.$ac_objext conftest$ac_exeext
23824 if { (ac_try="$ac_link"
23825 case "(($ac_try" in
23826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23827 *) ac_try_echo=$ac_try;;
23829 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23830 (eval "$ac_link") 2>conftest.er1
23832 grep -v '^ *+' conftest.er1 >conftest.err
23834 cat conftest.err >&5
23835 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23836 (exit $ac_status); } && {
23837 test -z "$ac_c_werror_flag" ||
23838 test ! -s conftest.err
23839 } && test -s conftest$ac_exeext &&
23840 $as_test_x conftest$ac_exeext; then
23841 emacs_cv_langinfo_codeset=yes
23843 echo "$as_me: failed program was
:" >&5
23844 sed 's/^/| /' conftest.$ac_ext >&5
23846 emacs_cv_langinfo_codeset=no
23849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23850 conftest$ac_exeext conftest.$ac_ext
23853 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23854 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23855 if test $emacs_cv_langinfo_codeset = yes; then
23857 cat >>confdefs.h <<\_ACEOF
23858 #define HAVE_LANGINFO_CODESET 1
23863 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23864 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23865 if test "${ac_cv_type_size_t+set}" = set; then
23866 echo $ECHO_N "(cached
) $ECHO_C" >&6
23868 cat >conftest.$ac_ext <<_ACEOF
23871 cat confdefs.h >>conftest.$ac_ext
23872 cat >>conftest.$ac_ext <<_ACEOF
23873 /* end confdefs.h. */
23874 $ac_includes_default
23875 typedef size_t ac__type_new_;
23879 if ((ac__type_new_ *) 0)
23881 if (sizeof (ac__type_new_))
23887 rm -f conftest.$ac_objext
23888 if { (ac_try="$ac_compile"
23889 case "(($ac_try" in
23890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23891 *) ac_try_echo=$ac_try;;
23893 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23894 (eval "$ac_compile") 2>conftest.er1
23896 grep -v '^ *+' conftest.er1 >conftest.err
23898 cat conftest.err >&5
23899 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23900 (exit $ac_status); } && {
23901 test -z "$ac_c_werror_flag" ||
23902 test ! -s conftest.err
23903 } && test -s conftest.$ac_objext; then
23904 ac_cv_type_size_t=yes
23906 echo "$as_me: failed program was
:" >&5
23907 sed 's/^/| /' conftest.$ac_ext >&5
23909 ac_cv_type_size_t=no
23912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23914 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23915 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23916 if test $ac_cv_type_size_t = yes; then
23918 cat >>confdefs.h <<_ACEOF
23919 #define HAVE_SIZE_T 1
23926 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23927 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23928 if test "${ac_cv_type_mbstate_t+set}" = set; then
23929 echo $ECHO_N "(cached
) $ECHO_C" >&6
23931 cat >conftest.$ac_ext <<_ACEOF
23934 cat confdefs.h >>conftest.$ac_ext
23935 cat >>conftest.$ac_ext <<_ACEOF
23936 /* end confdefs.h. */
23937 $ac_includes_default
23938 # include <wchar.h>
23942 mbstate_t x; return sizeof x;
23947 rm -f conftest.$ac_objext
23948 if { (ac_try="$ac_compile"
23949 case "(($ac_try" in
23950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23951 *) ac_try_echo=$ac_try;;
23953 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23954 (eval "$ac_compile") 2>conftest.er1
23956 grep -v '^ *+' conftest.er1 >conftest.err
23958 cat conftest.err >&5
23959 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23960 (exit $ac_status); } && {
23961 test -z "$ac_c_werror_flag" ||
23962 test ! -s conftest.err
23963 } && test -s conftest.$ac_objext; then
23964 ac_cv_type_mbstate_t=yes
23966 echo "$as_me: failed program was
:" >&5
23967 sed 's/^/| /' conftest.$ac_ext >&5
23969 ac_cv_type_mbstate_t=no
23972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23974 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23975 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23976 if test $ac_cv_type_mbstate_t = yes; then
23978 cat >>confdefs.h <<\_ACEOF
23979 #define HAVE_MBSTATE_T 1
23984 cat >>confdefs.h <<\_ACEOF
23985 #define mbstate_t int
23990 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23991 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23992 if test "${emacs_cv_c_restrict+set}" = set; then
23993 echo $ECHO_N "(cached
) $ECHO_C" >&6
23995 cat >conftest.$ac_ext <<_ACEOF
23998 cat confdefs.h >>conftest.$ac_ext
23999 cat >>conftest.$ac_ext <<_ACEOF
24000 /* end confdefs.h. */
24001 void fred (int *restrict x);
24010 rm -f conftest.$ac_objext
24011 if { (ac_try="$ac_compile"
24012 case "(($ac_try" in
24013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24014 *) ac_try_echo=$ac_try;;
24016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24017 (eval "$ac_compile") 2>conftest.er1
24019 grep -v '^ *+' conftest.er1 >conftest.err
24021 cat conftest.err >&5
24022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24023 (exit $ac_status); } && {
24024 test -z "$ac_c_werror_flag" ||
24025 test ! -s conftest.err
24026 } && test -s conftest.$ac_objext; then
24027 emacs_cv_c_restrict=yes
24029 echo "$as_me: failed program was
:" >&5
24030 sed 's/^/| /' conftest.$ac_ext >&5
24032 cat >conftest.$ac_ext <<_ACEOF
24035 cat confdefs.h >>conftest.$ac_ext
24036 cat >>conftest.$ac_ext <<_ACEOF
24037 /* end confdefs.h. */
24038 void fred (int *__restrict x);
24047 rm -f conftest.$ac_objext
24048 if { (ac_try="$ac_compile"
24049 case "(($ac_try" in
24050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24051 *) ac_try_echo=$ac_try;;
24053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24054 (eval "$ac_compile") 2>conftest.er1
24056 grep -v '^ *+' conftest.er1 >conftest.err
24058 cat conftest.err >&5
24059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24060 (exit $ac_status); } && {
24061 test -z "$ac_c_werror_flag" ||
24062 test ! -s conftest.err
24063 } && test -s conftest.$ac_objext; then
24064 emacs_cv_c_restrict=__restrict
24066 echo "$as_me: failed program was
:" >&5
24067 sed 's/^/| /' conftest.$ac_ext >&5
24069 emacs_cv_c_restrict=no
24072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24077 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
24078 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24079 case "$emacs_cv_c_restrict" in
24080 yes) emacs_restrict=restrict;;
24081 no) emacs_restrict="";;
24082 *) emacs_restrict="$emacs_cv_c_restrict";;
24084 if test "$emacs_restrict" != __restrict; then
24086 cat >>confdefs.h <<_ACEOF
24087 #define __restrict $emacs_restrict
24092 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
24093 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
24094 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24095 echo $ECHO_N "(cached
) $ECHO_C" >&6
24097 cat >conftest.$ac_ext <<_ACEOF
24100 cat confdefs.h >>conftest.$ac_ext
24101 cat >>conftest.$ac_ext <<_ACEOF
24102 /* end confdefs.h. */
24103 void fred (int x[__restrict]);
24112 rm -f conftest.$ac_objext
24113 if { (ac_try="$ac_compile"
24114 case "(($ac_try" in
24115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24116 *) ac_try_echo=$ac_try;;
24118 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24119 (eval "$ac_compile") 2>conftest.er1
24121 grep -v '^ *+' conftest.er1 >conftest.err
24123 cat conftest.err >&5
24124 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24125 (exit $ac_status); } && {
24126 test -z "$ac_c_werror_flag" ||
24127 test ! -s conftest.err
24128 } && test -s conftest.$ac_objext; then
24129 emacs_cv_c_restrict_arr=yes
24131 echo "$as_me: failed program was
:" >&5
24132 sed 's/^/| /' conftest.$ac_ext >&5
24134 emacs_cv_c_restrict_arr=no
24137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24139 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
24140 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24141 if test "$emacs_cv_c_restrict_arr" = yes; then
24143 cat >>confdefs.h <<\_ACEOF
24144 #define __restrict_arr __restrict
24151 # Set up the CFLAGS for real compilation, so we can substitute it.
24152 CFLAGS="$REAL_CFLAGS"
24153 CPPFLAGS="$REAL_CPPFLAGS"
24155 #### Find out which version of Emacs this is.
24156 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24157 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
24158 if test x"${version}" = x; then
24159 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
24160 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
24161 { (exit 1); exit 1; }; }
24164 ### Specify what sort of things we'll be editing into Makefile and config.h.
24165 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24202 cat >>confdefs.h <<_ACEOF
24203 #define EMACS_CONFIGURATION "${canonical}"
24207 cat >>confdefs.h <<_ACEOF
24208 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24212 cat >>confdefs.h <<_ACEOF
24213 #define config_machfile "${machfile}"
24217 cat >>confdefs.h <<_ACEOF
24218 #define config_opsysfile "${opsysfile}"
24222 cat >>confdefs.h <<_ACEOF
24223 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24227 cat >>confdefs.h <<_ACEOF
24228 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24232 cat >>confdefs.h <<_ACEOF
24233 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24237 cat >>confdefs.h <<_ACEOF
24238 #define UNEXEC_SRC ${UNEXEC_SRC}
24242 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24244 cat >>confdefs.h <<\_ACEOF
24245 #define HAVE_X_WINDOWS 1
24249 if test "${USE_X_TOOLKIT}" != "none
" ; then
24251 cat >>confdefs.h <<\_ACEOF
24252 #define USE_X_TOOLKIT 1
24255 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
24257 cat >>confdefs.h <<\_ACEOF
24258 #define USE_LUCID 1
24261 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
24263 cat >>confdefs.h <<\_ACEOF
24264 #define USE_MOTIF 1
24269 if test "${HAVE_X11}" = "yes" ; then
24271 cat >>confdefs.h <<\_ACEOF
24276 if test "${HAVE_MENUS}" = "yes" ; then
24278 cat >>confdefs.h <<\_ACEOF
24279 #define HAVE_MENUS 1
24283 if test "${GNU_MALLOC}" = "yes" ; then
24285 cat >>confdefs.h <<\_ACEOF
24286 #define GNU_MALLOC 1
24290 if test "${REL_ALLOC}" = "yes" ; then
24292 cat >>confdefs.h <<\_ACEOF
24293 #define REL_ALLOC 1
24303 #### Report on what we decided to do.
24304 #### Report GTK as a toolkit, even if it doesn't use Xt.
24305 #### It makes printing result more understandable as using GTK sets
24306 #### toolkit_scroll_bars to yes by default.
24307 if test "${HAVE_GTK}" = "yes"; then
24312 Configured
for \
`${canonical}'.
24314 Where should the build process find the source code? ${srcdir}
24315 What operating system and machine description files should Emacs use?
24316 \`${opsysfile}' and \`${machfile}'
24317 What compiler should emacs be built with?
${CC} ${CFLAGS}
24318 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
24319 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
24320 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
24321 What window system should Emacs use?
${window_system}
24322 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
24324 if test -n "${x_includes}"; then
24325 echo " Where
do we
find X Windows header files?
${x_includes}"
24327 echo " Where
do we
find X Windows header files? Standard
dirs"
24329 if test -n "${x_libraries}"; then
24330 echo " Where
do we
find X Windows libraries?
${x_libraries}"
24332 echo " Where
do we
find X Windows libraries? Standard
dirs"
24335 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
24336 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
24337 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
24338 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
24339 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
24340 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
24341 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
24342 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
24343 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
24345 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
24346 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
24347 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
24348 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
24350 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
24353 if test $USE_XASSERTS = yes; then
24354 echo " Compiling with asserts turned on.
"
24355 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24360 if test "$USE_X_TOOLKIT" = GTK; then
24361 case "$canonical" in
24363 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
24364 will probably get a crash on startup. If this happens
, please use another
24365 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
24371 if test "$HAVE_CARBON" = "yes"; then
24373 echo "Warning
: The Mac Carbon port is currently unsupported and has
24374 known problems. It is not recommended
for use by non-developers.
24375 Read the emacs-devel archives
for more information.
"
24379 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24380 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24385 # Remove any trailing slashes in these variables.
24386 test "${prefix}" != NONE &&
24387 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24388 test "${exec_prefix}" != NONE &&
24389 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24391 # Now get this: Some word that is part of the ${srcdir} directory name
24392 # or the ${configuration} value might, just might, happen to be an
24393 # identifier like `sun4' or `i386' or something, and be predefined by
24394 # the C preprocessor to some helpful value like 1, or maybe the empty
24395 # string. Needless to say consequent macro substitutions are less
24396 # than conducive to the makefile finding the correct directory.
24397 cpp_undefs="`echo $srcdir $configuration $canonical |
24398 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24399 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24401 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24402 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24403 ## from Makefile.c can correctly provide the arg `-traditional' to the
24406 cat >conftest.$ac_ext <<_ACEOF
24409 cat confdefs.h >>conftest.$ac_ext
24410 cat >>conftest.$ac_ext <<_ACEOF
24411 /* end confdefs.h. */
24414 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24415 $EGREP "yes..
yes" >/dev/null 2>&1; then
24416 CPP_NEED_TRADITIONAL=no
24418 CPP_NEED_TRADITIONAL=yes
24423 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
"
24425 ac_config_commands="$ac_config_commands default
"
24427 cat >confcache <<\_ACEOF
24428 # This file is a shell script that caches the results of configure
24429 # tests run on this system so they can be shared between configure
24430 # scripts and configure runs, see configure's option --config-cache.
24431 # It is not useful on other systems. If it contains results you don't
24432 # want to keep, you may remove or edit it.
24434 # config.status only pays attention to the cache file if you give it
24435 # the --recheck option to rerun configure.
24437 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24438 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24439 # following values.
24443 # The following way of writing the cache mishandles newlines in values,
24444 # but we know of no workaround that is simple, portable, and efficient.
24445 # So, we kill variables containing newlines.
24446 # Ultrix sh set writes to stderr and can't be redirected directly,
24447 # and sets the high bit in the cache file unless we assign to the vars.
24449 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24450 eval ac_val=\$$ac_var
24454 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24455 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24458 _ | IFS | as_nl) ;; #(
24459 *) $as_unset $ac_var ;;
24465 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24466 *${as_nl}ac_space=\ *)
24467 # `set' does not quote correctly, so add quotes (double-quote
24468 # substitution turns \\\\ into \\, and sed turns \\ into \).
24471 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24474 # `set' quotes correctly as required by POSIX, so do not add quotes.
24475 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24484 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24486 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24488 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24489 if test -w "$cache_file"; then
24490 test "x
$cache_file" != "x
/dev
/null
" &&
24491 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24492 echo "$as_me: updating cache
$cache_file" >&6;}
24493 cat confcache >$cache_file
24495 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24496 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24501 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24502 # Let make expand exec_prefix.
24503 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24505 DEFS=-DHAVE_CONFIG_H
24509 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24510 # 1. Remove the extension, and $U if already installed.
24511 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24512 ac_i=`echo "$ac_i" | sed "$ac_script"`
24513 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24514 # will be set to the directory where LIBOBJS objects are built.
24515 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24516 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24518 LIBOBJS=$ac_libobjs
24520 LTLIBOBJS=$ac_ltlibobjs
24524 : ${CONFIG_STATUS=./config.status}
24525 ac_clean_files_save=$ac_clean_files
24526 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24527 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24528 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24529 cat >$CONFIG_STATUS <<_ACEOF
24531 # Generated by $as_me.
24532 # Run this file to recreate the current configuration.
24533 # Compiler output produced by configure, useful for debugging
24534 # configure, is in config.log if it exists.
24537 ac_cs_recheck=false
24539 SHELL=\${CONFIG_SHELL-$SHELL}
24542 cat >>$CONFIG_STATUS <<\_ACEOF
24543 ## --------------------- ##
24544 ## M4sh Initialization. ##
24545 ## --------------------- ##
24547 # Be more Bourne compatible
24548 DUALCASE=1; export DUALCASE # for MKS sh
24549 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24552 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24553 # is contrary to our usage. Disable this feature.
24554 alias -g '${1+"$@"}'='"$@
"'
24555 setopt NO_GLOB_SUBST
24557 case `(set -o) 2>/dev/null` in
24558 *posix*) set -o posix ;;
24567 # Avoid depending upon Character Ranges.
24568 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24569 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24570 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24571 as_cr_digits='0123456789'
24572 as_cr_alnum=$as_cr_Letters$as_cr_digits
24574 # The user is always right.
24575 if test "${PATH_SEPARATOR+set}" != set; then
24576 echo "#! /bin/sh" >conf$$.sh
24577 echo "exit 0" >>conf$$.sh
24579 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24587 # Support unset when possible.
24588 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24596 # We need space, tab and new line, in precisely that order. Quoting is
24597 # there to prevent editors from complaining about space-tab.
24598 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24599 # splitting by setting IFS to empty value.)
24604 # Find who we are. Look in the path if we contain no directory separator.
24606 *[\\/]* ) as_myself
=$0 ;;
24607 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24608 for as_dir
in $PATH
24611 test -z "$as_dir" && as_dir
=.
24612 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24618 # We did not find ourselves, most probably we were run as `sh COMMAND'
24619 # in which case we are not to be found in the path.
24620 if test "x$as_myself" = x
; then
24623 if test ! -f "$as_myself"; then
24624 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24625 { (exit 1); exit 1; }
24628 # Work around bugs in pre-3.0 UWIN ksh.
24629 for as_var
in ENV MAIL MAILPATH
24630 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24638 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24639 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24640 LC_TELEPHONE LC_TIME
24642 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24643 eval $as_var=C
; export $as_var
24645 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24649 # Required to use basename.
24650 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24651 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24657 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24658 as_basename
=basename
24664 # Name of the executable.
24665 as_me
=`$as_basename -- "$0" ||
24666 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24667 X"$0" : 'X\(//\)$' \| \
24668 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24670 sed '/^.*\/\([^/][^/]*\)\/*$/{
24689 as_lineno_1
=$LINENO
24690 as_lineno_2
=$LINENO
24691 test "x$as_lineno_1" != "x$as_lineno_2" &&
24692 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24694 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24695 # uniformly replaced by the line number. The first 'sed' inserts a
24696 # line-number line after each line using $LINENO; the second 'sed'
24697 # does the real work. The second script uses 'N' to pair each
24698 # line-number line with the line containing $LINENO, and appends
24699 # trailing '-' during substitution so that $LINENO is not a special
24700 # case at line end.
24701 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24702 # scripts with optimization help from Paolo Bonzini. Blame Lee
24703 # E. McMahon (1931-1989) for sed's syntax. :-)
24715 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24718 ' >$as_me.lineno
&&
24719 chmod +x
"$as_me.lineno" ||
24720 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24721 { (exit 1); exit 1; }; }
24723 # Don't try to exec as it changes $[0], causing all sort of problems
24724 # (the dirname of $[0] is not the place where we might find the
24725 # original and so on. Autoconf is especially sensitive to this).
24726 .
"./$as_me.lineno"
24727 # Exit status is that of the last command.
24732 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24738 ECHO_C
= ECHO_N
= ECHO_T
=
24739 case `echo -n x` in
24741 case `echo 'x\c'` in
24742 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24749 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24750 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24756 rm -f conf$$ conf$$.exe conf$$.
file
24757 if test -d conf$$.dir
; then
24758 rm -f conf$$.dir
/conf$$.
file
24764 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24766 # ... but there are two gotchas:
24767 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24768 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24769 # In both cases, we have to default to `cp -p'.
24770 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24772 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24777 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24778 rmdir conf$$.dir
2>/dev
/null
24780 if mkdir
-p .
2>/dev
/null
; then
24783 test -d .
/-p && rmdir .
/-p
24787 if test -x / >/dev
/null
2>&1; then
24788 as_test_x
='test -x'
24790 if ls -dL / >/dev
/null
2>&1; then
24797 if test -d "$1"; then
24803 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24804 ???[sx]*):;;*)false;;esac;fi
24808 as_executable_p
=$as_test_x
24810 # Sed expression to map a string onto a valid CPP name.
24811 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24813 # Sed expression to map a string onto a valid variable name.
24814 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24819 # Save the log message, to keep $[0] and so on meaningful, and to
24820 # report actual input values of CONFIG_FILES etc. instead of their
24821 # values after options handling.
24823 This file was extended by emacs $as_me 23.0.60, which was
24824 generated by GNU Autoconf 2.61. Invocation command line was
24826 CONFIG_FILES = $CONFIG_FILES
24827 CONFIG_HEADERS = $CONFIG_HEADERS
24828 CONFIG_LINKS = $CONFIG_LINKS
24829 CONFIG_COMMANDS = $CONFIG_COMMANDS
24832 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24837 cat >>$CONFIG_STATUS <<_ACEOF
24838 # Files that config.status was made for.
24839 config_files="$ac_config_files"
24840 config_headers="$ac_config_headers"
24841 config_commands="$ac_config_commands"
24845 cat >>$CONFIG_STATUS <<\_ACEOF
24847 \`$as_me' instantiates files from templates according to the
24848 current configuration.
24850 Usage: $0 [OPTIONS] [FILE]...
24852 -h, --help print this help, then exit
24853 -V, --version print version number and configuration settings, then exit
24854 -q, --quiet do not print progress messages
24855 -d, --debug don't remove temporary files
24856 --recheck update $as_me by reconfiguring in the same conditions
24857 --file=FILE[:TEMPLATE]
24858 instantiate the configuration file FILE
24859 --header=FILE[:TEMPLATE]
24860 instantiate the configuration header FILE
24862 Configuration files:
24865 Configuration headers:
24868 Configuration commands:
24871 Report bugs to <bug-autoconf@gnu.org>."
24874 cat >>$CONFIG_STATUS <<_ACEOF
24876 emacs config.status 23.0.60
24877 configured by $0, generated by GNU Autoconf 2.61,
24878 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24880 Copyright (C) 2006 Free Software Foundation, Inc.
24881 This config.status script is free software; the Free Software Foundation
24882 gives unlimited permission to copy, distribute and modify it."
24889 cat >>$CONFIG_STATUS <<\_ACEOF
24890 # If no file are specified by the user, then we need to provide default
24891 # value. By we need to know if files were specified by the user.
24897 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24898 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24909 # Handling of the options.
24910 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24912 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24913 echo "$ac_cs_version"; exit ;;
24914 --debug |
--debu |
--deb |
--de |
--d |
-d )
24916 --file |
--fil |
--fi |
--f )
24918 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24919 ac_need_defaults
=false
;;
24920 --header |
--heade |
--head |
--hea )
24922 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24923 ac_need_defaults
=false
;;
24925 # Conflict between --help and --header
24926 { echo "$as_me: error: ambiguous option: $1
24927 Try \`$0 --help' for more information." >&2
24928 { (exit 1); exit 1; }; };;
24929 --help |
--hel |
-h )
24930 echo "$ac_cs_usage"; exit ;;
24931 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24932 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24935 # This is an error.
24936 -*) { echo "$as_me: error: unrecognized option: $1
24937 Try \`$0 --help' for more information." >&2
24938 { (exit 1); exit 1; }; } ;;
24940 *) ac_config_targets
="$ac_config_targets $1"
24941 ac_need_defaults
=false
;;
24947 ac_configure_extra_args
=
24949 if $ac_cs_silent; then
24951 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24955 cat >>$CONFIG_STATUS <<_ACEOF
24956 if \$ac_cs_recheck; then
24957 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24958 CONFIG_SHELL=$SHELL
24959 export CONFIG_SHELL
24960 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24964 cat >>$CONFIG_STATUS <<\_ACEOF
24968 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24969 ## Running $as_me. ##
24975 cat >>$CONFIG_STATUS <<_ACEOF
24979 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24983 cat >>$CONFIG_STATUS <<\_ACEOF
24985 # Handling of arguments.
24986 for ac_config_target
in $ac_config_targets
24988 case $ac_config_target in
24989 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24990 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24991 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24992 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24993 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24994 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24995 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24996 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24997 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24998 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24999 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
25000 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
25001 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
25003 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25004 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25005 { (exit 1); exit 1; }; };;
25010 # If the user did not use the arguments to specify the items to instantiate,
25011 # then the envvar interface is used. Set only those that are not.
25012 # We use the long form for the default assignment because of an extremely
25013 # bizarre bug on SunOS 4.1.3.
25014 if $ac_need_defaults; then
25015 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25016 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25017 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25020 # Have a temporary directory for convenience. Make it in the build tree
25021 # simply because there is no reason against having it here, and in addition,
25022 # creating and moving files from /tmp can sometimes cause problems.
25023 # Hook for its removal unless debugging.
25024 # Note that there is a small window in which the directory will not be cleaned:
25025 # after its creation but before its name has been assigned to `$tmp'.
25029 trap 'exit_status=$?
25030 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25032 trap '{ (exit 1); exit 1; }' 1 2 13 15
25034 # Create a (secure) tmp directory for tmp files.
25037 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25038 test -n "$tmp" && test -d "$tmp"
25041 tmp
=.
/conf$$
-$RANDOM
25042 (umask 077 && mkdir
"$tmp")
25045 echo "$me: cannot create a temporary directory in ." >&2
25046 { (exit 1); exit 1; }
25050 # Set up the sed scripts for CONFIG_FILES section.
25053 # No need to generate the scripts if there are no CONFIG_FILES.
25054 # This happens for instance when ./config.status config.h
25055 if test -n "$CONFIG_FILES"; then
25062 for ac_last_try
in false false false false false
:; do
25063 cat >conf$
$subs.
sed <<_ACEOF
25064 SHELL!$SHELL$ac_delim
25065 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25066 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25067 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25068 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25069 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25070 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25071 exec_prefix!$exec_prefix$ac_delim
25072 prefix!$prefix$ac_delim
25073 program_transform_name!$program_transform_name$ac_delim
25074 bindir!$bindir$ac_delim
25075 sbindir!$sbindir$ac_delim
25076 libexecdir!$libexecdir$ac_delim
25077 datarootdir!$datarootdir$ac_delim
25078 datadir!$datadir$ac_delim
25079 sysconfdir!$sysconfdir$ac_delim
25080 sharedstatedir!$sharedstatedir$ac_delim
25081 localstatedir!$localstatedir$ac_delim
25082 includedir!$includedir$ac_delim
25083 oldincludedir!$oldincludedir$ac_delim
25084 docdir!$docdir$ac_delim
25085 infodir!$infodir$ac_delim
25086 htmldir!$htmldir$ac_delim
25087 dvidir!$dvidir$ac_delim
25088 pdfdir!$pdfdir$ac_delim
25089 psdir!$psdir$ac_delim
25090 libdir!$libdir$ac_delim
25091 localedir!$localedir$ac_delim
25092 mandir!$mandir$ac_delim
25093 DEFS!$DEFS$ac_delim
25094 ECHO_C!$ECHO_C$ac_delim
25095 ECHO_N!$ECHO_N$ac_delim
25096 ECHO_T!$ECHO_T$ac_delim
25097 LIBS!$LIBS$ac_delim
25098 build_alias!$build_alias$ac_delim
25099 host_alias!$host_alias$ac_delim
25100 target_alias!$target_alias$ac_delim
25101 MAINT!$MAINT$ac_delim
25102 build!$build$ac_delim
25103 build_cpu!$build_cpu$ac_delim
25104 build_vendor!$build_vendor$ac_delim
25105 build_os!$build_os$ac_delim
25106 host!$host$ac_delim
25107 host_cpu!$host_cpu$ac_delim
25108 host_vendor!$host_vendor$ac_delim
25109 host_os!$host_os$ac_delim
25111 CFLAGS!$CFLAGS$ac_delim
25112 LDFLAGS!$LDFLAGS$ac_delim
25113 CPPFLAGS!$CPPFLAGS$ac_delim
25114 ac_ct_CC!$ac_ct_CC$ac_delim
25115 EXEEXT!$EXEEXT$ac_delim
25116 OBJEXT!$OBJEXT$ac_delim
25118 GREP!$GREP$ac_delim
25119 EGREP!$EGREP$ac_delim
25120 LN_S!$LN_S$ac_delim
25121 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25122 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25123 INSTALL_DATA!$INSTALL_DATA$ac_delim
25124 RANLIB!$RANLIB$ac_delim
25125 INSTALL_INFO!$INSTALL_INFO$ac_delim
25126 GZIP_PROG!$GZIP_PROG$ac_delim
25127 MAKEINFO!$MAKEINFO$ac_delim
25128 LIBSOUND!$LIBSOUND$ac_delim
25129 PKG_CONFIG!$PKG_CONFIG$ac_delim
25130 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25131 ALSA_LIBS!$ALSA_LIBS$ac_delim
25132 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25133 SET_MAKE!$SET_MAKE$ac_delim
25134 XMKMF!$XMKMF$ac_delim
25135 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25136 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25137 RSVG_LIBS!$RSVG_LIBS$ac_delim
25138 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25139 GTK_LIBS!$GTK_LIBS$ac_delim
25140 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25141 DBUS_LIBS!$DBUS_LIBS$ac_delim
25142 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25143 XFT_LIBS!$XFT_LIBS$ac_delim
25144 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25145 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25146 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25147 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25148 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25149 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25150 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25151 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25152 ALLOCA!$ALLOCA$ac_delim
25153 liblockfile!$liblockfile$ac_delim
25154 LIBOBJS!$LIBOBJS$ac_delim
25155 NEED_SETGID!$NEED_SETGID$ac_delim
25156 KMEM_GROUP!$KMEM_GROUP$ac_delim
25157 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25158 GETOPT_H!$GETOPT_H$ac_delim
25159 GETOPTOBJS!$GETOPTOBJS$ac_delim
25160 version!$version$ac_delim
25163 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25165 elif $ac_last_try; then
25166 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25167 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25168 { (exit 1); exit 1; }; }
25170 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25174 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25175 if test -n "$ac_eof"; then
25176 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25177 ac_eof
=`expr $ac_eof + 1`
25180 cat >>$CONFIG_STATUS <<_ACEOF
25181 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25185 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25186 s/^/s,@/; s/!/@,|#_!!_#|/
25189 s/'"$ac_delim"'$/,g/; t
25191 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25192 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25193 rm -f conf$
$subs.
sed
25194 cat >>$CONFIG_STATUS <<_ACEOF
25200 for ac_last_try
in false false false false false
:; do
25201 cat >conf$
$subs.
sed <<_ACEOF
25202 configuration!$configuration$ac_delim
25203 canonical!$canonical$ac_delim
25204 srcdir!$srcdir$ac_delim
25205 lispdir!$lispdir$ac_delim
25206 locallisppath!$locallisppath$ac_delim
25207 lisppath!$lisppath$ac_delim
25208 x_default_search_path!$x_default_search_path$ac_delim
25209 etcdir!$etcdir$ac_delim
25210 archlibdir!$archlibdir$ac_delim
25211 bitmapdir!$bitmapdir$ac_delim
25212 gamedir!$gamedir$ac_delim
25213 gameuser!$gameuser$ac_delim
25214 c_switch_system!$c_switch_system$ac_delim
25215 c_switch_machine!$c_switch_machine$ac_delim
25216 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25217 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25218 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25219 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25220 machfile!$machfile$ac_delim
25221 opsysfile!$opsysfile$ac_delim
25222 carbon_appdir!$carbon_appdir$ac_delim
25223 ns_appdir!$ns_appdir$ac_delim
25224 LTLIBOBJS!$LTLIBOBJS$ac_delim
25227 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
25229 elif $ac_last_try; then
25230 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25231 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25232 { (exit 1); exit 1; }; }
25234 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25238 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25239 if test -n "$ac_eof"; then
25240 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25241 ac_eof
=`expr $ac_eof + 1`
25244 cat >>$CONFIG_STATUS <<_ACEOF
25245 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25246 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25249 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25250 s/^/s,@/; s/!/@,|#_!!_#|/
25253 s/'"$ac_delim"'$/,g/; t
25255 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25256 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25257 rm -f conf$
$subs.
sed
25258 cat >>$CONFIG_STATUS <<_ACEOF
25265 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25266 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25267 # trailing colons and then remove the whole line if VPATH becomes empty
25268 # (actually we leave an empty line to preserve line numbers).
25269 if test "x$srcdir" = x.
; then
25270 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25271 s/:*\$(srcdir):*/:/
25272 s/:*\${srcdir}:*/:/
25274 s/^\([^=]*=[ ]*\):*/\1/
25280 cat >>$CONFIG_STATUS <<\_ACEOF
25281 fi # test -n "$CONFIG_FILES"
25284 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25287 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25289 case $ac_mode$ac_tag in
25291 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25292 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25293 { (exit 1); exit 1; }; };;
25294 :[FH
]-) ac_tag
=-:-;;
25295 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25312 -) ac_f
="$tmp/stdin";;
25313 *) # Look for the file first in the build tree, then in the source tree
25314 # (if the path is not absolute). The absolute path cannot be DOS-style,
25315 # because $ac_f cannot contain `:'.
25319 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25321 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25322 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25323 { (exit 1); exit 1; }; };;
25325 ac_file_inputs
="$ac_file_inputs $ac_f"
25328 # Let's still pretend it is `configure' which instantiates (i.e., don't
25329 # use $as_me), people would be surprised to read:
25330 # /* config.h. Generated by config.status. */
25331 configure_input
="Generated from "`IFS=:
25332 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25333 if test x
"$ac_file" != x-
; then
25334 configure_input
="$ac_file. $configure_input"
25335 { echo "$as_me:$LINENO: creating $ac_file" >&5
25336 echo "$as_me: creating $ac_file" >&6;}
25340 *:-:* |
*:-) cat >"$tmp/stdin";;
25345 ac_dir
=`$as_dirname -- "$ac_file" ||
25346 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25347 X"$ac_file" : 'X\(//\)[^/]' \| \
25348 X"$ac_file" : 'X\(//\)$' \| \
25349 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25351 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25355 /^X\(\/\/\)[^/].*/{
25370 -*) as_dir
=.
/$as_dir;;
25372 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25376 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25377 *) as_qdir
=$as_dir;;
25379 as_dirs
="'$as_qdir' $as_dirs"
25380 as_dir
=`$as_dirname -- "$as_dir" ||
25381 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25382 X"$as_dir" : 'X\(//\)[^/]' \| \
25383 X"$as_dir" : 'X\(//\)$' \| \
25384 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25386 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25390 /^X\(\/\/\)[^/].*/{
25403 test -d "$as_dir" && break
25405 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25406 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25407 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25408 { (exit 1); exit 1; }; }; }
25412 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25414 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25415 # A ".." for each directory in $ac_dir_suffix.
25416 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25417 case $ac_top_builddir_sub in
25418 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25419 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25422 ac_abs_top_builddir
=$ac_pwd
25423 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25424 # for backward compatibility:
25425 ac_top_builddir
=$ac_top_build_prefix
25428 .
) # We are building in place.
25430 ac_top_srcdir
=$ac_top_builddir_sub
25431 ac_abs_top_srcdir
=$ac_pwd ;;
25432 [\\/]* | ?
:[\\/]* ) # Absolute name.
25433 ac_srcdir
=$srcdir$ac_dir_suffix;
25434 ac_top_srcdir
=$srcdir
25435 ac_abs_top_srcdir
=$srcdir ;;
25436 *) # Relative name.
25437 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25438 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25439 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25441 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25451 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25452 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25456 cat >>$CONFIG_STATUS <<\_ACEOF
25457 # If the template does not know about datarootdir, expand it.
25458 # FIXME: This hack should be removed a few years after 2.60.
25459 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25461 case `sed -n '/datarootdir/ {
25470 ' $ac_file_inputs` in
25471 *datarootdir
*) ac_datarootdir_seen
=yes;;
25472 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25473 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25474 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25476 cat >>$CONFIG_STATUS <<_ACEOF
25477 ac_datarootdir_hack='
25478 s&@datadir@&$datadir&g
25479 s&@docdir@&$docdir&g
25480 s&@infodir@&$infodir&g
25481 s&@localedir@&$localedir&g
25482 s&@mandir@&$mandir&g
25483 s&\\\${datarootdir}&$datarootdir&g' ;;
25487 # Neutralize VPATH when `$srcdir' = `.'.
25488 # Shell code in configure.ac might set extrasub.
25489 # FIXME: do we really want to maintain this feature?
25490 cat >>$CONFIG_STATUS <<_ACEOF
25494 cat >>$CONFIG_STATUS <<\_ACEOF
25496 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25497 s
&@configure_input@
&$configure_input&;t t
25498 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25499 s
&@srcdir@
&$ac_srcdir&;t t
25500 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25501 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25502 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25503 s
&@builddir@
&$ac_builddir&;t t
25504 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25505 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25506 s
&@INSTALL@
&$ac_INSTALL&;t t
25507 $ac_datarootdir_hack
25508 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25510 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25511 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25512 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25513 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25514 which seems to be undefined. Please make sure it is defined." >&5
25515 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25516 which seems to be undefined. Please make sure it is defined." >&2;}
25520 -) cat "$tmp/out"; rm -f "$tmp/out";;
25521 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25530 # Transform confdefs.h into a sed script `conftest.defines', that
25531 # substitutes the proper values into config.h.in to produce config.h.
25532 rm -f conftest.defines conftest.
tail
25533 # First, append a space to every undef/define line, to ease matching.
25534 echo 's/$/ /' >conftest.defines
25535 # Then, protect against being on the right side of a sed subst, or in
25536 # an unquoted here document, in config.status. If some macros were
25537 # called several times there might be several #defines for the same
25538 # symbol, which is useless. But do not sort them, since the last
25539 # AC_DEFINE must be honored.
25540 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25541 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25542 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25543 # PARAMS is the parameter list in the macro definition--in most cases, it's
25544 # just an empty string.
25545 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25546 ac_dB
='\\)[ (].*,\\1define\\2'
25554 s/^[ ]*#[ ]*define[ ][ ]*//
25559 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25560 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25561 ' >>conftest.defines
25563 # Remove the space that was appended to ease matching.
25564 # Then replace #undef with comments. This is necessary, for
25565 # example, in the case of _POSIX_SOURCE, which is predefined and required
25566 # on some systems where configure will not decide to define it.
25567 # (The regexp can be short, since the line contains either #define or #undef.)
25569 s,^[ #]*u.*,/* & */,' >>conftest.defines
25571 # Break up conftest.defines:
25572 ac_max_sed_lines
=50
25574 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25575 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25576 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25578 ac_in
='$ac_file_inputs'
25579 ac_out
='"$tmp/out1"'
25580 ac_nxt
='"$tmp/out2"'
25584 # Write a here document:
25585 cat >>$CONFIG_STATUS <<_ACEOF
25586 # First, check the format of the line:
25587 cat >"\$tmp/defines.sed" <<\\CEOF
25588 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25589 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25593 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25595 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25596 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25597 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25598 grep . conftest.
tail >/dev
/null ||
break
25599 rm -f conftest.defines
25600 mv conftest.
tail conftest.defines
25602 rm -f conftest.defines conftest.
tail
25604 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25605 cat >>$CONFIG_STATUS <<\_ACEOF
25606 if test x
"$ac_file" != x-
; then
25607 echo "/* $configure_input */" >"$tmp/config.h"
25608 cat "$ac_result" >>"$tmp/config.h"
25609 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25610 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25611 echo "$as_me: $ac_file is unchanged" >&6;}
25614 mv "$tmp/config.h" $ac_file
25617 echo "/* $configure_input */"
25623 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25624 echo "$as_me: executing $ac_file commands" >&6;}
25629 case $ac_file$ac_mode in
25632 ### Make the necessary directories, if they don't exist.
25633 for dir
in etc lisp
; do
25634 test -d ${dir} || mkdir
${dir}
25637 # Build src/Makefile from ${srcdir}/src/Makefile.c
25638 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25639 # This must be done after src/config.h is built, since we rely on that file.
25641 echo creating src
/epaths.h
25642 ${MAKE-make} epaths-force
25644 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25645 # `..' to `. .' unless invoked with -traditional
25647 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25648 CPPFLAGS
="$CPPFLAGS -traditional"
25651 echo creating lib-src
/Makefile
25653 rm -f junk.c junk1.c junk2.c
25654 sed -e '/start of cpp stuff/q' \
25655 < Makefile.c
> junk1.c
25656 sed -e '1,/start of cpp stuff/d'\
25657 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25658 < Makefile.c
> junk.c
25659 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25660 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25661 cat junk1.c junk2.c
> Makefile.new
25662 rm -f junk.c junk1.c junk2.c
25663 chmod 444 Makefile.new
25664 mv -f Makefile.new Makefile
25667 echo creating src
/Makefile
25669 rm -f junk.c junk1.c junk2.c
25670 sed -e '/start of cpp stuff/q' \
25671 < Makefile.c
> junk1.c
25672 sed -e '1,/start of cpp stuff/d'\
25673 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25674 < Makefile.c
> junk.c
25675 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25676 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25677 cat junk1.c junk2.c
> Makefile.new
25678 rm -f junk.c junk1.c junk2.c
25679 chmod 444 Makefile.new
25680 mv -f Makefile.new Makefile
25683 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25684 echo creating src
/.gdbinit
25685 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25694 { (exit 0); exit 0; }
25696 chmod +x
$CONFIG_STATUS
25697 ac_clean_files
=$ac_clean_files_save
25700 # configure is writing to config.log, and then calls config.status.
25701 # config.status does its own redirection, appending to config.log.
25702 # Unfortunately, on DOS this fails, as config.log is still kept open
25703 # by configure, so config.status won't be able to write to it; its
25704 # output is simply discarded. So we exec the FD to /dev/null,
25705 # effectively closing config.log, so it can be properly (re)opened and
25706 # appended to by config.status. When coming back to configure, we
25707 # need to make the FD available again.
25708 if test "$no_create" != yes; then
25710 ac_config_status_args
=
25711 test "$silent" = yes &&
25712 ac_config_status_args
="$ac_config_status_args --quiet"
25714 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25716 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25717 # would make configure fail if this is the last instruction.
25718 $ac_cs_success ||
{ (exit 1); exit 1; }