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 <limits.h>
16937 #include <stdlib.h>
16939 #ifdef HAVE_UNISTD_H
16940 # include <unistd.h>
16944 # define alarm(X) /* empty */
16947 /* Work around redefinition to rpl_putenv by other config tests. */
16950 static time_t time_t_max;
16951 static time_t time_t_min;
16953 /* Values we'll use to set the TZ environment variable. */
16954 static char *tz_strings[] = {
16955 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16956 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16958 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16960 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16961 Based on a problem report from Andreas Jaeger. */
16963 spring_forward_gap ()
16965 /* glibc (up to about 1998-10-07) failed this test. */
16968 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16969 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16970 on systems that don't support the Olson extension, or don't have the
16971 full zoneinfo tables installed. */
16972 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16981 return mktime (&tm) != (time_t) -1;
16989 return ! (lt = localtime (&now)) || mktime (lt) == now;
16996 return (mktime_test1 (now)
16997 && mktime_test1 ((time_t) (time_t_max - now))
16998 && mktime_test1 ((time_t) (time_t_min + now)));
17004 /* Based on code from Ariel Faigon. */
17014 return tm.tm_mon == 2 && tm.tm_mday == 31;
17023 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17024 now = mktime (&tm);
17025 if (now != (time_t) -1)
17027 struct tm *lt = localtime (&now);
17029 && lt->tm_year == tm.tm_year
17030 && lt->tm_mon == tm.tm_mon
17031 && lt->tm_mday == tm.tm_mday
17032 && lt->tm_hour == tm.tm_hour
17033 && lt->tm_min == tm.tm_min
17034 && lt->tm_sec == tm.tm_sec
17035 && lt->tm_yday == tm.tm_yday
17036 && lt->tm_wday == tm.tm_wday
17037 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17038 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17047 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
17048 ignoring leap seconds. */
17049 unsigned long int answer = 2527315200UL;
17053 tm.tm_year = 2050 - 1900;
17056 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
17059 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
17060 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
17061 on systems that don't support the Olson extension, or don't have the
17062 full zoneinfo tables installed. */
17063 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
17067 /* Check that the result is either a failure, or close enough
17068 to the correct answer that we can assume the discrepancy is
17069 due to leap seconds. */
17070 return (t == (time_t) -1
17071 || (0 < t && answer - 120 <= t && t <= answer + 120));
17080 /* This test makes some buggy mktime implementations loop.
17081 Give up after 60 seconds; a mktime slower than that
17082 isn't worth using anyway. */
17087 t = (time_t_max << 1) + 1;
17088 if (t <= time_t_max)
17092 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
17094 delta = time_t_max / 997; /* a suitable prime number */
17095 for (i = 0; i < N_STRINGS; i++)
17098 putenv (tz_strings[i]);
17100 for (t = 0; t <= time_t_max - delta; t += delta)
17101 if (! mktime_test (t))
17103 if (! (mktime_test ((time_t) 1)
17104 && mktime_test ((time_t) (60 * 60))
17105 && mktime_test ((time_t) (60 * 60 * 24))))
17108 for (j = 1; ; j <<= 1)
17109 if (! bigtime_test (j))
17111 else if (INT_MAX / 2 < j)
17113 if (! bigtime_test (INT_MAX))
17116 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
17119 rm -f conftest$ac_exeext
17120 if { (ac_try="$ac_link"
17121 case "(($ac_try" in
17122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17123 *) ac_try_echo=$ac_try;;
17125 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17126 (eval "$ac_link") 2>&5
17128 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17130 { (case "(($ac_try" in
17131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17132 *) ac_try_echo=$ac_try;;
17134 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17135 (eval "$ac_try") 2>&5
17137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17138 (exit $ac_status); }; }; then
17139 ac_cv_func_working_mktime=yes
17141 echo "$as_me: program exited with status
$ac_status" >&5
17142 echo "$as_me: failed program was
:" >&5
17143 sed 's/^/| /' conftest.$ac_ext >&5
17145 ( exit $ac_status )
17146 ac_cv_func_working_mktime=no
17148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17153 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
17154 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17155 if test $ac_cv_func_working_mktime = no; then
17156 case " $LIBOBJS " in
17157 *" mktime.
$ac_objext "* ) ;;
17158 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
17164 if test "$ac_cv_func_working_mktime" = no; then
17166 cat >>confdefs.h <<\_ACEOF
17167 #define BROKEN_MKTIME 1
17172 ac_have_func=no # yes means we've found a way to get the load average.
17174 # Make sure getloadavg.c is where it belongs, at configure-time.
17175 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
17176 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
17177 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
17178 { (exit 1); exit 1; }; }
17182 # Check for getloadavg, but be sure not to touch the cache variable.
17183 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
17184 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
17185 if test "${ac_cv_func_getloadavg+set}" = set; then
17186 echo $ECHO_N "(cached
) $ECHO_C" >&6
17188 cat >conftest.$ac_ext <<_ACEOF
17191 cat confdefs.h >>conftest.$ac_ext
17192 cat >>conftest.$ac_ext <<_ACEOF
17193 /* end confdefs.h. */
17194 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17195 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17196 #define getloadavg innocuous_getloadavg
17198 /* System header to define __stub macros and hopefully few prototypes,
17199 which can conflict with char getloadavg (); below.
17200 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17201 <limits.h> exists even on freestanding compilers. */
17204 # include <limits.h>
17206 # include <assert.h>
17211 /* Override any GCC internal prototype to avoid an error.
17212 Use char because int might match the return type of a GCC
17213 builtin and then its argument prototype would still apply. */
17217 char getloadavg ();
17218 /* The GNU C library defines this for functions which it implements
17219 to always fail with ENOSYS. Some functions are actually named
17220 something starting with __ and the normal name is an alias. */
17221 #if defined __stub_getloadavg || defined __stub___getloadavg
17228 return getloadavg ();
17233 rm -f conftest.$ac_objext conftest$ac_exeext
17234 if { (ac_try="$ac_link"
17235 case "(($ac_try" in
17236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237 *) ac_try_echo=$ac_try;;
17239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17240 (eval "$ac_link") 2>conftest.er1
17242 grep -v '^ *+' conftest.er1 >conftest.err
17244 cat conftest.err >&5
17245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17246 (exit $ac_status); } && {
17247 test -z "$ac_c_werror_flag" ||
17248 test ! -s conftest.err
17249 } && test -s conftest$ac_exeext &&
17250 $as_test_x conftest$ac_exeext; then
17251 ac_cv_func_getloadavg=yes
17253 echo "$as_me: failed program was
:" >&5
17254 sed 's/^/| /' conftest.$ac_ext >&5
17256 ac_cv_func_getloadavg=no
17259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17260 conftest$ac_exeext conftest.$ac_ext
17262 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
17263 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17264 if test $ac_cv_func_getloadavg = yes; then
17269 ) && ac_have_func=yes
17271 # On HPUX9, an unprivileged user can get load averages through this function.
17273 for ac_func in pstat_getdynamic
17275 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17276 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17277 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17278 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17279 echo $ECHO_N "(cached
) $ECHO_C" >&6
17281 cat >conftest.$ac_ext <<_ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17289 #define $ac_func innocuous_$ac_func
17291 /* System header to define __stub macros and hopefully few prototypes,
17292 which can conflict with char $ac_func (); below.
17293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17294 <limits.h> exists even on freestanding compilers. */
17297 # include <limits.h>
17299 # include <assert.h>
17304 /* Override any GCC internal prototype to avoid an error.
17305 Use char because int might match the return type of a GCC
17306 builtin and then its argument prototype would still apply. */
17311 /* The GNU C library defines this for functions which it implements
17312 to always fail with ENOSYS. Some functions are actually named
17313 something starting with __ and the normal name is an alias. */
17314 #if defined __stub_$ac_func || defined __stub___$ac_func
17321 return $ac_func ();
17326 rm -f conftest.$ac_objext conftest$ac_exeext
17327 if { (ac_try="$ac_link"
17328 case "(($ac_try" in
17329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330 *) ac_try_echo=$ac_try;;
17332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17333 (eval "$ac_link") 2>conftest.er1
17335 grep -v '^ *+' conftest.er1 >conftest.err
17337 cat conftest.err >&5
17338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17339 (exit $ac_status); } && {
17340 test -z "$ac_c_werror_flag" ||
17341 test ! -s conftest.err
17342 } && test -s conftest$ac_exeext &&
17343 $as_test_x conftest$ac_exeext; then
17344 eval "$as_ac_var=yes"
17346 echo "$as_me: failed program was
:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17349 eval "$as_ac_var=no
"
17352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17353 conftest$ac_exeext conftest.$ac_ext
17355 ac_res=`eval echo '${'$as_ac_var'}'`
17356 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17357 echo "${ECHO_T}$ac_res" >&6; }
17358 if test `eval echo '${'$as_ac_var'}'` = yes; then
17359 cat >>confdefs.h <<_ACEOF
17360 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17367 # Solaris has libkstat which does not require root.
17369 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17370 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17371 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17372 echo $ECHO_N "(cached
) $ECHO_C" >&6
17374 ac_check_lib_save_LIBS=$LIBS
17375 LIBS="-lkstat $LIBS"
17376 cat >conftest.$ac_ext <<_ACEOF
17379 cat confdefs.h >>conftest.$ac_ext
17380 cat >>conftest.$ac_ext <<_ACEOF
17381 /* end confdefs.h. */
17383 /* Override any GCC internal prototype to avoid an error.
17384 Use char because int might match the return type of a GCC
17385 builtin and then its argument prototype would still apply. */
17389 char kstat_open ();
17393 return kstat_open ();
17398 rm -f conftest.$ac_objext conftest$ac_exeext
17399 if { (ac_try="$ac_link"
17400 case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_link") 2>conftest.er1
17407 grep -v '^ *+' conftest.er1 >conftest.err
17409 cat conftest.err >&5
17410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17411 (exit $ac_status); } && {
17412 test -z "$ac_c_werror_flag" ||
17413 test ! -s conftest.err
17414 } && test -s conftest$ac_exeext &&
17415 $as_test_x conftest$ac_exeext; then
17416 ac_cv_lib_kstat_kstat_open=yes
17418 echo "$as_me: failed program was
:" >&5
17419 sed 's/^/| /' conftest.$ac_ext >&5
17421 ac_cv_lib_kstat_kstat_open=no
17424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17425 conftest$ac_exeext conftest.$ac_ext
17426 LIBS=$ac_check_lib_save_LIBS
17428 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17429 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17430 if test $ac_cv_lib_kstat_kstat_open = yes; then
17431 cat >>confdefs.h <<_ACEOF
17432 #define HAVE_LIBKSTAT 1
17435 LIBS="-lkstat $LIBS"
17439 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17441 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17442 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17443 # to get the right answer into the cache.
17444 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17445 if test $ac_have_func = no; then
17446 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17447 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17448 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17449 echo $ECHO_N "(cached
) $ECHO_C" >&6
17451 ac_check_lib_save_LIBS=$LIBS
17453 cat >conftest.$ac_ext <<_ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17460 /* Override any GCC internal prototype to avoid an error.
17461 Use char because int might match the return type of a GCC
17462 builtin and then its argument prototype would still apply. */
17470 return elf_begin ();
17475 rm -f conftest.$ac_objext conftest$ac_exeext
17476 if { (ac_try="$ac_link"
17477 case "(($ac_try" in
17478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17479 *) ac_try_echo=$ac_try;;
17481 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17482 (eval "$ac_link") 2>conftest.er1
17484 grep -v '^ *+' conftest.er1 >conftest.err
17486 cat conftest.err >&5
17487 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17488 (exit $ac_status); } && {
17489 test -z "$ac_c_werror_flag" ||
17490 test ! -s conftest.err
17491 } && test -s conftest$ac_exeext &&
17492 $as_test_x conftest$ac_exeext; then
17493 ac_cv_lib_elf_elf_begin=yes
17495 echo "$as_me: failed program was
:" >&5
17496 sed 's/^/| /' conftest.$ac_ext >&5
17498 ac_cv_lib_elf_elf_begin=no
17501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17502 conftest$ac_exeext conftest.$ac_ext
17503 LIBS=$ac_check_lib_save_LIBS
17505 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17506 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17507 if test $ac_cv_lib_elf_elf_begin = yes; then
17512 if test $ac_have_func = no; then
17513 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17514 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17515 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17516 echo $ECHO_N "(cached
) $ECHO_C" >&6
17518 ac_check_lib_save_LIBS=$LIBS
17520 cat >conftest.$ac_ext <<_ACEOF
17523 cat confdefs.h >>conftest.$ac_ext
17524 cat >>conftest.$ac_ext <<_ACEOF
17525 /* end confdefs.h. */
17527 /* Override any GCC internal prototype to avoid an error.
17528 Use char because int might match the return type of a GCC
17529 builtin and then its argument prototype would still apply. */
17537 return kvm_open ();
17542 rm -f conftest.$ac_objext conftest$ac_exeext
17543 if { (ac_try="$ac_link"
17544 case "(($ac_try" in
17545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17546 *) ac_try_echo=$ac_try;;
17548 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17549 (eval "$ac_link") 2>conftest.er1
17551 grep -v '^ *+' conftest.er1 >conftest.err
17553 cat conftest.err >&5
17554 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17555 (exit $ac_status); } && {
17556 test -z "$ac_c_werror_flag" ||
17557 test ! -s conftest.err
17558 } && test -s conftest$ac_exeext &&
17559 $as_test_x conftest$ac_exeext; then
17560 ac_cv_lib_kvm_kvm_open=yes
17562 echo "$as_me: failed program was
:" >&5
17563 sed 's/^/| /' conftest.$ac_ext >&5
17565 ac_cv_lib_kvm_kvm_open=no
17568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17569 conftest$ac_exeext conftest.$ac_ext
17570 LIBS=$ac_check_lib_save_LIBS
17572 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17573 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17574 if test $ac_cv_lib_kvm_kvm_open = yes; then
17578 # Check for the 4.4BSD definition of getloadavg.
17579 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17580 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17581 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17582 echo $ECHO_N "(cached
) $ECHO_C" >&6
17584 ac_check_lib_save_LIBS=$LIBS
17585 LIBS="-lutil $LIBS"
17586 cat >conftest.$ac_ext <<_ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17593 /* Override any GCC internal prototype to avoid an error.
17594 Use char because int might match the return type of a GCC
17595 builtin and then its argument prototype would still apply. */
17599 char getloadavg ();
17603 return getloadavg ();
17608 rm -f conftest.$ac_objext conftest$ac_exeext
17609 if { (ac_try="$ac_link"
17610 case "(($ac_try" in
17611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17612 *) ac_try_echo=$ac_try;;
17614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17615 (eval "$ac_link") 2>conftest.er1
17617 grep -v '^ *+' conftest.er1 >conftest.err
17619 cat conftest.err >&5
17620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17621 (exit $ac_status); } && {
17622 test -z "$ac_c_werror_flag" ||
17623 test ! -s conftest.err
17624 } && test -s conftest$ac_exeext &&
17625 $as_test_x conftest$ac_exeext; then
17626 ac_cv_lib_util_getloadavg=yes
17628 echo "$as_me: failed program was
:" >&5
17629 sed 's/^/| /' conftest.$ac_ext >&5
17631 ac_cv_lib_util_getloadavg=no
17634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17635 conftest$ac_exeext conftest.$ac_ext
17636 LIBS=$ac_check_lib_save_LIBS
17638 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17639 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17640 if test $ac_cv_lib_util_getloadavg = yes; then
17641 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17646 if test $ac_have_func = no; then
17647 # There is a commonly available library for RS/6000 AIX.
17648 # Since it is not a standard part of AIX, it might be installed locally.
17649 ac_getloadavg_LIBS=$LIBS
17650 LIBS="-L/usr
/local
/lib
$LIBS"
17651 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17652 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17653 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17654 echo $ECHO_N "(cached
) $ECHO_C" >&6
17656 ac_check_lib_save_LIBS=$LIBS
17657 LIBS="-lgetloadavg $LIBS"
17658 cat >conftest.$ac_ext <<_ACEOF
17661 cat confdefs.h >>conftest.$ac_ext
17662 cat >>conftest.$ac_ext <<_ACEOF
17663 /* end confdefs.h. */
17665 /* Override any GCC internal prototype to avoid an error.
17666 Use char because int might match the return type of a GCC
17667 builtin and then its argument prototype would still apply. */
17671 char getloadavg ();
17675 return getloadavg ();
17680 rm -f conftest.$ac_objext conftest$ac_exeext
17681 if { (ac_try="$ac_link"
17682 case "(($ac_try" in
17683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684 *) ac_try_echo=$ac_try;;
17686 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17687 (eval "$ac_link") 2>conftest.er1
17689 grep -v '^ *+' conftest.er1 >conftest.err
17691 cat conftest.err >&5
17692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17693 (exit $ac_status); } && {
17694 test -z "$ac_c_werror_flag" ||
17695 test ! -s conftest.err
17696 } && test -s conftest$ac_exeext &&
17697 $as_test_x conftest$ac_exeext; then
17698 ac_cv_lib_getloadavg_getloadavg=yes
17700 echo "$as_me: failed program was
:" >&5
17701 sed 's/^/| /' conftest.$ac_ext >&5
17703 ac_cv_lib_getloadavg_getloadavg=no
17706 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17707 conftest$ac_exeext conftest.$ac_ext
17708 LIBS=$ac_check_lib_save_LIBS
17710 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17711 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17712 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17713 LIBS="-lgetloadavg $LIBS"
17715 LIBS=$ac_getloadavg_LIBS
17720 # Make sure it is really in the library, if we think we found it,
17721 # otherwise set up the replacement function.
17723 for ac_func in getloadavg
17725 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17726 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17727 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17728 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17729 echo $ECHO_N "(cached
) $ECHO_C" >&6
17731 cat >conftest.$ac_ext <<_ACEOF
17734 cat confdefs.h >>conftest.$ac_ext
17735 cat >>conftest.$ac_ext <<_ACEOF
17736 /* end confdefs.h. */
17737 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17738 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17739 #define $ac_func innocuous_$ac_func
17741 /* System header to define __stub macros and hopefully few prototypes,
17742 which can conflict with char $ac_func (); below.
17743 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17744 <limits.h> exists even on freestanding compilers. */
17747 # include <limits.h>
17749 # include <assert.h>
17754 /* Override any GCC internal prototype to avoid an error.
17755 Use char because int might match the return type of a GCC
17756 builtin and then its argument prototype would still apply. */
17761 /* The GNU C library defines this for functions which it implements
17762 to always fail with ENOSYS. Some functions are actually named
17763 something starting with __ and the normal name is an alias. */
17764 #if defined __stub_$ac_func || defined __stub___$ac_func
17771 return $ac_func ();
17776 rm -f conftest.$ac_objext conftest$ac_exeext
17777 if { (ac_try="$ac_link"
17778 case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17782 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_link") 2>conftest.er1
17785 grep -v '^ *+' conftest.er1 >conftest.err
17787 cat conftest.err >&5
17788 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17789 (exit $ac_status); } && {
17790 test -z "$ac_c_werror_flag" ||
17791 test ! -s conftest.err
17792 } && test -s conftest$ac_exeext &&
17793 $as_test_x conftest$ac_exeext; then
17794 eval "$as_ac_var=yes"
17796 echo "$as_me: failed program was
:" >&5
17797 sed 's/^/| /' conftest.$ac_ext >&5
17799 eval "$as_ac_var=no
"
17802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17803 conftest$ac_exeext conftest.$ac_ext
17805 ac_res=`eval echo '${'$as_ac_var'}'`
17806 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17807 echo "${ECHO_T}$ac_res" >&6; }
17808 if test `eval echo '${'$as_ac_var'}'` = yes; then
17809 cat >>confdefs.h <<_ACEOF
17810 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17814 case " $LIBOBJS " in
17815 *" getloadavg.
$ac_objext "* ) ;;
17816 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17821 cat >>confdefs.h <<\_ACEOF
17822 #define C_GETLOADAVG 1
17825 # Figure out what our getloadavg.c needs.
17827 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17828 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17829 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17830 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17831 echo $ECHO_N "(cached
) $ECHO_C" >&6
17833 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17834 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17836 # Is the header compilable?
17837 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17838 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17839 cat >conftest.$ac_ext <<_ACEOF
17842 cat confdefs.h >>conftest.$ac_ext
17843 cat >>conftest.$ac_ext <<_ACEOF
17844 /* end confdefs.h. */
17845 $ac_includes_default
17846 #include <sys/dg_sys_info.h>
17848 rm -f conftest.$ac_objext
17849 if { (ac_try="$ac_compile"
17850 case "(($ac_try" in
17851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17852 *) ac_try_echo=$ac_try;;
17854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17855 (eval "$ac_compile") 2>conftest.er1
17857 grep -v '^ *+' conftest.er1 >conftest.err
17859 cat conftest.err >&5
17860 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17861 (exit $ac_status); } && {
17862 test -z "$ac_c_werror_flag" ||
17863 test ! -s conftest.err
17864 } && test -s conftest.$ac_objext; then
17865 ac_header_compiler=yes
17867 echo "$as_me: failed program was
:" >&5
17868 sed 's/^/| /' conftest.$ac_ext >&5
17870 ac_header_compiler=no
17873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17874 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17875 echo "${ECHO_T}$ac_header_compiler" >&6; }
17877 # Is the header present?
17878 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17879 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17880 cat >conftest.$ac_ext <<_ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17886 #include <sys/dg_sys_info.h>
17888 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17889 case "(($ac_try" in
17890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17891 *) ac_try_echo=$ac_try;;
17893 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17894 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17896 grep -v '^ *+' conftest.er1 >conftest.err
17898 cat conftest.err >&5
17899 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17900 (exit $ac_status); } >/dev/null && {
17901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17902 test ! -s conftest.err
17904 ac_header_preproc=yes
17906 echo "$as_me: failed program was
:" >&5
17907 sed 's/^/| /' conftest.$ac_ext >&5
17909 ac_header_preproc=no
17912 rm -f conftest.err conftest.$ac_ext
17913 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17914 echo "${ECHO_T}$ac_header_preproc" >&6; }
17916 # So? What about this header?
17917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17919 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17920 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17921 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17922 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17923 ac_header_preproc=yes
17926 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17927 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17928 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17929 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17930 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17931 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17932 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17933 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17934 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17935 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17936 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17937 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17941 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17942 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17943 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17944 echo $ECHO_N "(cached
) $ECHO_C" >&6
17946 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17948 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17949 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17952 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17955 cat >>confdefs.h <<\_ACEOF
17960 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17961 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17962 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17963 echo $ECHO_N "(cached
) $ECHO_C" >&6
17965 ac_check_lib_save_LIBS=$LIBS
17967 cat >conftest.$ac_ext <<_ACEOF
17970 cat confdefs.h >>conftest.$ac_ext
17971 cat >>conftest.$ac_ext <<_ACEOF
17972 /* end confdefs.h. */
17974 /* Override any GCC internal prototype to avoid an error.
17975 Use char because int might match the return type of a GCC
17976 builtin and then its argument prototype would still apply. */
17980 char dg_sys_info ();
17984 return dg_sys_info ();
17989 rm -f conftest.$ac_objext conftest$ac_exeext
17990 if { (ac_try="$ac_link"
17991 case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_link") 2>conftest.er1
17998 grep -v '^ *+' conftest.er1 >conftest.err
18000 cat conftest.err >&5
18001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18002 (exit $ac_status); } && {
18003 test -z "$ac_c_werror_flag" ||
18004 test ! -s conftest.err
18005 } && test -s conftest$ac_exeext &&
18006 $as_test_x conftest$ac_exeext; then
18007 ac_cv_lib_dgc_dg_sys_info=yes
18009 echo "$as_me: failed program was
:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18012 ac_cv_lib_dgc_dg_sys_info=no
18015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18016 conftest$ac_exeext conftest.$ac_ext
18017 LIBS=$ac_check_lib_save_LIBS
18019 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
18020 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
18021 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18022 cat >>confdefs.h <<_ACEOF
18023 #define HAVE_LIBDGC 1
18034 if test "${ac_cv_header_locale_h+set}" = set; then
18035 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
18036 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
18037 if test "${ac_cv_header_locale_h+set}" = set; then
18038 echo $ECHO_N "(cached
) $ECHO_C" >&6
18040 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18041 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18043 # Is the header compilable?
18044 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
18045 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
18046 cat >conftest.$ac_ext <<_ACEOF
18049 cat confdefs.h >>conftest.$ac_ext
18050 cat >>conftest.$ac_ext <<_ACEOF
18051 /* end confdefs.h. */
18052 $ac_includes_default
18053 #include <locale.h>
18055 rm -f conftest.$ac_objext
18056 if { (ac_try="$ac_compile"
18057 case "(($ac_try" in
18058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059 *) ac_try_echo=$ac_try;;
18061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18062 (eval "$ac_compile") 2>conftest.er1
18064 grep -v '^ *+' conftest.er1 >conftest.err
18066 cat conftest.err >&5
18067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18068 (exit $ac_status); } && {
18069 test -z "$ac_c_werror_flag" ||
18070 test ! -s conftest.err
18071 } && test -s conftest.$ac_objext; then
18072 ac_header_compiler=yes
18074 echo "$as_me: failed program was
:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18077 ac_header_compiler=no
18080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18081 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18082 echo "${ECHO_T}$ac_header_compiler" >&6; }
18084 # Is the header present?
18085 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
18086 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
18087 cat >conftest.$ac_ext <<_ACEOF
18090 cat confdefs.h >>conftest.$ac_ext
18091 cat >>conftest.$ac_ext <<_ACEOF
18092 /* end confdefs.h. */
18093 #include <locale.h>
18095 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18096 case "(($ac_try" in
18097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18098 *) ac_try_echo=$ac_try;;
18100 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18101 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18103 grep -v '^ *+' conftest.er1 >conftest.err
18105 cat conftest.err >&5
18106 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18107 (exit $ac_status); } >/dev/null && {
18108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18109 test ! -s conftest.err
18111 ac_header_preproc=yes
18113 echo "$as_me: failed program was
:" >&5
18114 sed 's/^/| /' conftest.$ac_ext >&5
18116 ac_header_preproc=no
18119 rm -f conftest.err conftest.$ac_ext
18120 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18121 echo "${ECHO_T}$ac_header_preproc" >&6; }
18123 # So? What about this header?
18124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18126 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18127 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18128 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
18129 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
18130 ac_header_preproc=yes
18133 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
18134 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
18135 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
18136 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
18137 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
18138 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
18139 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18140 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18141 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
18142 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
18143 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
18144 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
18148 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
18149 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
18150 if test "${ac_cv_header_locale_h+set}" = set; then
18151 echo $ECHO_N "(cached
) $ECHO_C" >&6
18153 ac_cv_header_locale_h=$ac_header_preproc
18155 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
18156 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18162 for ac_func in setlocale
18164 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18165 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18166 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18167 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18168 echo $ECHO_N "(cached
) $ECHO_C" >&6
18170 cat >conftest.$ac_ext <<_ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18176 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18177 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18178 #define $ac_func innocuous_$ac_func
18180 /* System header to define __stub macros and hopefully few prototypes,
18181 which can conflict with char $ac_func (); below.
18182 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18183 <limits.h> exists even on freestanding compilers. */
18186 # include <limits.h>
18188 # include <assert.h>
18193 /* Override any GCC internal prototype to avoid an error.
18194 Use char because int might match the return type of a GCC
18195 builtin and then its argument prototype would still apply. */
18200 /* The GNU C library defines this for functions which it implements
18201 to always fail with ENOSYS. Some functions are actually named
18202 something starting with __ and the normal name is an alias. */
18203 #if defined __stub_$ac_func || defined __stub___$ac_func
18210 return $ac_func ();
18215 rm -f conftest.$ac_objext conftest$ac_exeext
18216 if { (ac_try="$ac_link"
18217 case "(($ac_try" in
18218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18219 *) ac_try_echo=$ac_try;;
18221 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18222 (eval "$ac_link") 2>conftest.er1
18224 grep -v '^ *+' conftest.er1 >conftest.err
18226 cat conftest.err >&5
18227 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18228 (exit $ac_status); } && {
18229 test -z "$ac_c_werror_flag" ||
18230 test ! -s conftest.err
18231 } && test -s conftest$ac_exeext &&
18232 $as_test_x conftest$ac_exeext; then
18233 eval "$as_ac_var=yes"
18235 echo "$as_me: failed program was
:" >&5
18236 sed 's/^/| /' conftest.$ac_ext >&5
18238 eval "$as_ac_var=no
"
18241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18242 conftest$ac_exeext conftest.$ac_ext
18244 ac_res=`eval echo '${'$as_ac_var'}'`
18245 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18246 echo "${ECHO_T}$ac_res" >&6; }
18247 if test `eval echo '${'$as_ac_var'}'` = yes; then
18248 cat >>confdefs.h <<_ACEOF
18249 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18256 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18257 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18258 # Irix 4.0.5F has the header but not the library.
18259 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18262 cat >>confdefs.h <<\_ACEOF
18268 if test $ac_have_func = no; then
18269 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18270 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18271 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18272 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18273 echo $ECHO_N "(cached
) $ECHO_C" >&6
18275 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18276 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18278 # Is the header compilable?
18279 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
18280 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
18281 cat >conftest.$ac_ext <<_ACEOF
18284 cat confdefs.h >>conftest.$ac_ext
18285 cat >>conftest.$ac_ext <<_ACEOF
18286 /* end confdefs.h. */
18287 $ac_includes_default
18288 #include <inq_stats/cpustats.h>
18290 rm -f conftest.$ac_objext
18291 if { (ac_try="$ac_compile"
18292 case "(($ac_try" in
18293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18294 *) ac_try_echo=$ac_try;;
18296 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18297 (eval "$ac_compile") 2>conftest.er1
18299 grep -v '^ *+' conftest.er1 >conftest.err
18301 cat conftest.err >&5
18302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18303 (exit $ac_status); } && {
18304 test -z "$ac_c_werror_flag" ||
18305 test ! -s conftest.err
18306 } && test -s conftest.$ac_objext; then
18307 ac_header_compiler=yes
18309 echo "$as_me: failed program was
:" >&5
18310 sed 's/^/| /' conftest.$ac_ext >&5
18312 ac_header_compiler=no
18315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18316 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18317 echo "${ECHO_T}$ac_header_compiler" >&6; }
18319 # Is the header present?
18320 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18321 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
18322 cat >conftest.$ac_ext <<_ACEOF
18325 cat confdefs.h >>conftest.$ac_ext
18326 cat >>conftest.$ac_ext <<_ACEOF
18327 /* end confdefs.h. */
18328 #include <inq_stats/cpustats.h>
18330 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18331 case "(($ac_try" in
18332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18333 *) ac_try_echo=$ac_try;;
18335 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18336 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18338 grep -v '^ *+' conftest.er1 >conftest.err
18340 cat conftest.err >&5
18341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18342 (exit $ac_status); } >/dev/null && {
18343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18344 test ! -s conftest.err
18346 ac_header_preproc=yes
18348 echo "$as_me: failed program was
:" >&5
18349 sed 's/^/| /' conftest.$ac_ext >&5
18351 ac_header_preproc=no
18354 rm -f conftest.err conftest.$ac_ext
18355 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18356 echo "${ECHO_T}$ac_header_preproc" >&6; }
18358 # So? What about this header?
18359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18361 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18362 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18363 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18364 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18365 ac_header_preproc=yes
18368 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18369 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18370 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18371 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18372 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18373 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18374 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18375 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18376 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18377 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18378 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18379 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18383 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18384 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18385 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18386 echo $ECHO_N "(cached
) $ECHO_C" >&6
18388 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18390 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18391 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18394 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18397 cat >>confdefs.h <<\_ACEOF
18402 cat >>confdefs.h <<\_ACEOF
18411 if test $ac_have_func = no; then
18412 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18413 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18414 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18415 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18416 echo $ECHO_N "(cached
) $ECHO_C" >&6
18418 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18419 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18421 # Is the header compilable?
18422 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18423 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18424 cat >conftest.$ac_ext <<_ACEOF
18427 cat confdefs.h >>conftest.$ac_ext
18428 cat >>conftest.$ac_ext <<_ACEOF
18429 /* end confdefs.h. */
18430 $ac_includes_default
18431 #include <sys/cpustats.h>
18433 rm -f conftest.$ac_objext
18434 if { (ac_try="$ac_compile"
18435 case "(($ac_try" in
18436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18437 *) ac_try_echo=$ac_try;;
18439 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18440 (eval "$ac_compile") 2>conftest.er1
18442 grep -v '^ *+' conftest.er1 >conftest.err
18444 cat conftest.err >&5
18445 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18446 (exit $ac_status); } && {
18447 test -z "$ac_c_werror_flag" ||
18448 test ! -s conftest.err
18449 } && test -s conftest.$ac_objext; then
18450 ac_header_compiler=yes
18452 echo "$as_me: failed program was
:" >&5
18453 sed 's/^/| /' conftest.$ac_ext >&5
18455 ac_header_compiler=no
18458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18459 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18460 echo "${ECHO_T}$ac_header_compiler" >&6; }
18462 # Is the header present?
18463 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18464 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18465 cat >conftest.$ac_ext <<_ACEOF
18468 cat confdefs.h >>conftest.$ac_ext
18469 cat >>conftest.$ac_ext <<_ACEOF
18470 /* end confdefs.h. */
18471 #include <sys/cpustats.h>
18473 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18474 case "(($ac_try" in
18475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18476 *) ac_try_echo=$ac_try;;
18478 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18479 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18481 grep -v '^ *+' conftest.er1 >conftest.err
18483 cat conftest.err >&5
18484 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18485 (exit $ac_status); } >/dev/null && {
18486 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18487 test ! -s conftest.err
18489 ac_header_preproc=yes
18491 echo "$as_me: failed program was
:" >&5
18492 sed 's/^/| /' conftest.$ac_ext >&5
18494 ac_header_preproc=no
18497 rm -f conftest.err conftest.$ac_ext
18498 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18499 echo "${ECHO_T}$ac_header_preproc" >&6; }
18501 # So? What about this header?
18502 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18504 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18505 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18506 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18507 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18508 ac_header_preproc=yes
18511 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18512 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18513 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18514 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18515 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18516 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18517 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18518 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18519 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18520 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18521 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18522 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18526 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18527 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18528 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18529 echo $ECHO_N "(cached
) $ECHO_C" >&6
18531 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18533 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18534 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18537 if test $ac_cv_header_sys_cpustats_h = yes; then
18538 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18547 if test $ac_have_func = no; then
18549 for ac_header in mach/mach.h
18551 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18552 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18553 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18554 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18555 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18556 echo $ECHO_N "(cached
) $ECHO_C" >&6
18558 ac_res=`eval echo '${'$as_ac_Header'}'`
18559 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18560 echo "${ECHO_T}$ac_res" >&6; }
18562 # Is the header compilable?
18563 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18564 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18565 cat >conftest.$ac_ext <<_ACEOF
18568 cat confdefs.h >>conftest.$ac_ext
18569 cat >>conftest.$ac_ext <<_ACEOF
18570 /* end confdefs.h. */
18571 $ac_includes_default
18572 #include <$ac_header>
18574 rm -f conftest.$ac_objext
18575 if { (ac_try="$ac_compile"
18576 case "(($ac_try" in
18577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18578 *) ac_try_echo=$ac_try;;
18580 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18581 (eval "$ac_compile") 2>conftest.er1
18583 grep -v '^ *+' conftest.er1 >conftest.err
18585 cat conftest.err >&5
18586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18587 (exit $ac_status); } && {
18588 test -z "$ac_c_werror_flag" ||
18589 test ! -s conftest.err
18590 } && test -s conftest.$ac_objext; then
18591 ac_header_compiler=yes
18593 echo "$as_me: failed program was
:" >&5
18594 sed 's/^/| /' conftest.$ac_ext >&5
18596 ac_header_compiler=no
18599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18600 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18601 echo "${ECHO_T}$ac_header_compiler" >&6; }
18603 # Is the header present?
18604 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18605 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18606 cat >conftest.$ac_ext <<_ACEOF
18609 cat confdefs.h >>conftest.$ac_ext
18610 cat >>conftest.$ac_ext <<_ACEOF
18611 /* end confdefs.h. */
18612 #include <$ac_header>
18614 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18615 case "(($ac_try" in
18616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18617 *) ac_try_echo=$ac_try;;
18619 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18620 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18622 grep -v '^ *+' conftest.er1 >conftest.err
18624 cat conftest.err >&5
18625 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18626 (exit $ac_status); } >/dev/null && {
18627 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18628 test ! -s conftest.err
18630 ac_header_preproc=yes
18632 echo "$as_me: failed program was
:" >&5
18633 sed 's/^/| /' conftest.$ac_ext >&5
18635 ac_header_preproc=no
18638 rm -f conftest.err conftest.$ac_ext
18639 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18640 echo "${ECHO_T}$ac_header_preproc" >&6; }
18642 # So? What about this header?
18643 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18645 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18646 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18647 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18648 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18649 ac_header_preproc=yes
18652 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18653 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18654 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18655 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18656 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18657 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18658 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18659 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18660 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18661 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18662 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18663 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18667 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18668 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18669 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18670 echo $ECHO_N "(cached
) $ECHO_C" >&6
18672 eval "$as_ac_Header=\
$ac_header_preproc"
18674 ac_res=`eval echo '${'$as_ac_Header'}'`
18675 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18676 echo "${ECHO_T}$ac_res" >&6; }
18679 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18680 cat >>confdefs.h <<_ACEOF
18681 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18691 for ac_header in nlist.h
18693 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18694 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18695 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18696 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18697 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18698 echo $ECHO_N "(cached
) $ECHO_C" >&6
18700 ac_res=`eval echo '${'$as_ac_Header'}'`
18701 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18702 echo "${ECHO_T}$ac_res" >&6; }
18704 # Is the header compilable?
18705 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18706 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18707 cat >conftest.$ac_ext <<_ACEOF
18710 cat confdefs.h >>conftest.$ac_ext
18711 cat >>conftest.$ac_ext <<_ACEOF
18712 /* end confdefs.h. */
18713 $ac_includes_default
18714 #include <$ac_header>
18716 rm -f conftest.$ac_objext
18717 if { (ac_try="$ac_compile"
18718 case "(($ac_try" in
18719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18720 *) ac_try_echo=$ac_try;;
18722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18723 (eval "$ac_compile") 2>conftest.er1
18725 grep -v '^ *+' conftest.er1 >conftest.err
18727 cat conftest.err >&5
18728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18729 (exit $ac_status); } && {
18730 test -z "$ac_c_werror_flag" ||
18731 test ! -s conftest.err
18732 } && test -s conftest.$ac_objext; then
18733 ac_header_compiler=yes
18735 echo "$as_me: failed program was
:" >&5
18736 sed 's/^/| /' conftest.$ac_ext >&5
18738 ac_header_compiler=no
18741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18742 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18743 echo "${ECHO_T}$ac_header_compiler" >&6; }
18745 # Is the header present?
18746 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18747 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18748 cat >conftest.$ac_ext <<_ACEOF
18751 cat confdefs.h >>conftest.$ac_ext
18752 cat >>conftest.$ac_ext <<_ACEOF
18753 /* end confdefs.h. */
18754 #include <$ac_header>
18756 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18757 case "(($ac_try" in
18758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18759 *) ac_try_echo=$ac_try;;
18761 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18762 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18764 grep -v '^ *+' conftest.er1 >conftest.err
18766 cat conftest.err >&5
18767 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18768 (exit $ac_status); } >/dev/null && {
18769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18770 test ! -s conftest.err
18772 ac_header_preproc=yes
18774 echo "$as_me: failed program was
:" >&5
18775 sed 's/^/| /' conftest.$ac_ext >&5
18777 ac_header_preproc=no
18780 rm -f conftest.err conftest.$ac_ext
18781 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18782 echo "${ECHO_T}$ac_header_preproc" >&6; }
18784 # So? What about this header?
18785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18787 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18788 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18789 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18791 ac_header_preproc=yes
18794 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18795 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18796 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18797 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18798 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18799 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18800 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18801 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18802 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18804 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18805 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18809 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18810 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18811 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18812 echo $ECHO_N "(cached
) $ECHO_C" >&6
18814 eval "$as_ac_Header=\
$ac_header_preproc"
18816 ac_res=`eval echo '${'$as_ac_Header'}'`
18817 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18818 echo "${ECHO_T}$ac_res" >&6; }
18821 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18822 cat >>confdefs.h <<_ACEOF
18823 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18825 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18826 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18827 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18828 echo $ECHO_N "(cached
) $ECHO_C" >&6
18830 cat >conftest.$ac_ext <<_ACEOF
18833 cat confdefs.h >>conftest.$ac_ext
18834 cat >>conftest.$ac_ext <<_ACEOF
18835 /* end confdefs.h. */
18841 static struct nlist ac_aggr;
18842 if (ac_aggr.n_un.n_name)
18848 rm -f conftest.$ac_objext
18849 if { (ac_try="$ac_compile"
18850 case "(($ac_try" in
18851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18852 *) ac_try_echo=$ac_try;;
18854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18855 (eval "$ac_compile") 2>conftest.er1
18857 grep -v '^ *+' conftest.er1 >conftest.err
18859 cat conftest.err >&5
18860 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18861 (exit $ac_status); } && {
18862 test -z "$ac_c_werror_flag" ||
18863 test ! -s conftest.err
18864 } && test -s conftest.$ac_objext; then
18865 ac_cv_member_struct_nlist_n_un_n_name=yes
18867 echo "$as_me: failed program was
:" >&5
18868 sed 's/^/| /' conftest.$ac_ext >&5
18870 cat >conftest.$ac_ext <<_ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18881 static struct nlist ac_aggr;
18882 if (sizeof ac_aggr.n_un.n_name)
18888 rm -f conftest.$ac_objext
18889 if { (ac_try="$ac_compile"
18890 case "(($ac_try" in
18891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18892 *) ac_try_echo=$ac_try;;
18894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18895 (eval "$ac_compile") 2>conftest.er1
18897 grep -v '^ *+' conftest.er1 >conftest.err
18899 cat conftest.err >&5
18900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18901 (exit $ac_status); } && {
18902 test -z "$ac_c_werror_flag" ||
18903 test ! -s conftest.err
18904 } && test -s conftest.$ac_objext; then
18905 ac_cv_member_struct_nlist_n_un_n_name=yes
18907 echo "$as_me: failed program was
:" >&5
18908 sed 's/^/| /' conftest.$ac_ext >&5
18910 ac_cv_member_struct_nlist_n_un_n_name=no
18913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18918 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18919 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18920 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18922 cat >>confdefs.h <<_ACEOF
18923 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18927 cat >>confdefs.h <<\_ACEOF
18928 #define NLIST_NAME_UNION 1
18942 # Some definitions of getloadavg require that the program be installed setgid.
18943 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18944 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18945 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18946 echo $ECHO_N "(cached
) $ECHO_C" >&6
18948 cat >conftest.$ac_ext <<_ACEOF
18951 cat confdefs.h >>conftest.$ac_ext
18952 cat >>conftest.$ac_ext <<_ACEOF
18953 /* end confdefs.h. */
18954 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18955 #ifdef LDAV_PRIVILEGED
18956 Yowza Am I SETGID yet
18959 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18960 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18961 ac_cv_func_getloadavg_setgid=yes
18963 ac_cv_func_getloadavg_setgid=no
18968 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18969 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18970 if test $ac_cv_func_getloadavg_setgid = yes; then
18973 cat >>confdefs.h <<\_ACEOF
18974 #define GETLOADAVG_PRIVILEGED 1
18981 if test $ac_cv_func_getloadavg_setgid = yes; then
18982 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18983 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18984 if test "${ac_cv_group_kmem+set}" = set; then
18985 echo $ECHO_N "(cached
) $ECHO_C" >&6
18987 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18988 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18989 # If we got an error (system does not support symlinks), try without -L.
18990 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18991 ac_cv_group_kmem=`echo $ac_ls_output \
18992 | sed -ne 's/[ ][ ]*/ /g;
18993 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18997 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18998 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18999 KMEM_GROUP=$ac_cv_group_kmem
19001 if test "x
$ac_save_LIBS" = x; then
19002 GETLOADAVG_LIBS=$LIBS
19004 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
19010 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
19011 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
19012 if test "${ac_cv_sys_largefile_source+set}" = set; then
19013 echo $ECHO_N "(cached
) $ECHO_C" >&6
19016 cat >conftest.$ac_ext <<_ACEOF
19019 cat confdefs.h >>conftest.$ac_ext
19020 cat >>conftest.$ac_ext <<_ACEOF
19021 /* end confdefs.h. */
19026 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19031 rm -f conftest.$ac_objext conftest$ac_exeext
19032 if { (ac_try="$ac_link"
19033 case "(($ac_try" in
19034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19035 *) ac_try_echo=$ac_try;;
19037 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19038 (eval "$ac_link") 2>conftest.er1
19040 grep -v '^ *+' conftest.er1 >conftest.err
19042 cat conftest.err >&5
19043 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19044 (exit $ac_status); } && {
19045 test -z "$ac_c_werror_flag" ||
19046 test ! -s conftest.err
19047 } && test -s conftest$ac_exeext &&
19048 $as_test_x conftest$ac_exeext; then
19049 ac_cv_sys_largefile_source=no; break
19051 echo "$as_me: failed program was
:" >&5
19052 sed 's/^/| /' conftest.$ac_ext >&5
19057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19058 conftest$ac_exeext conftest.$ac_ext
19059 cat >conftest.$ac_ext <<_ACEOF
19062 cat confdefs.h >>conftest.$ac_ext
19063 cat >>conftest.$ac_ext <<_ACEOF
19064 /* end confdefs.h. */
19065 #define _LARGEFILE_SOURCE 1
19070 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
19075 rm -f conftest.$ac_objext conftest$ac_exeext
19076 if { (ac_try="$ac_link"
19077 case "(($ac_try" in
19078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19079 *) ac_try_echo=$ac_try;;
19081 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19082 (eval "$ac_link") 2>conftest.er1
19084 grep -v '^ *+' conftest.er1 >conftest.err
19086 cat conftest.err >&5
19087 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19088 (exit $ac_status); } && {
19089 test -z "$ac_c_werror_flag" ||
19090 test ! -s conftest.err
19091 } && test -s conftest$ac_exeext &&
19092 $as_test_x conftest$ac_exeext; then
19093 ac_cv_sys_largefile_source=1; break
19095 echo "$as_me: failed program was
:" >&5
19096 sed 's/^/| /' conftest.$ac_ext >&5
19101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19102 conftest$ac_exeext conftest.$ac_ext
19103 ac_cv_sys_largefile_source=unknown
19107 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
19108 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19109 case $ac_cv_sys_largefile_source in #(
19112 cat >>confdefs.h <<_ACEOF
19113 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19119 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19120 # in glibc 2.1.3, but that breaks too many other things.
19121 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19122 if test $ac_cv_sys_largefile_source != unknown; then
19124 cat >>confdefs.h <<\_ACEOF
19125 #define HAVE_FSEEKO 1
19131 # Configure getopt.
19132 # getopt.m4 serial 10
19134 # The getopt module assume you want GNU getopt, with getopt_long etc,
19135 # rather than vanilla POSIX getopt. This means your your code should
19136 # always include <getopt.h> for the getopt prototypes.
19148 # Prerequisites of lib/getopt*.
19155 for ac_header in getopt.h
19157 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19158 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19159 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19160 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19161 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19162 echo $ECHO_N "(cached
) $ECHO_C" >&6
19164 ac_res=`eval echo '${'$as_ac_Header'}'`
19165 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19166 echo "${ECHO_T}$ac_res" >&6; }
19168 # Is the header compilable?
19169 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19170 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19171 cat >conftest.$ac_ext <<_ACEOF
19174 cat confdefs.h >>conftest.$ac_ext
19175 cat >>conftest.$ac_ext <<_ACEOF
19176 /* end confdefs.h. */
19177 $ac_includes_default
19178 #include <$ac_header>
19180 rm -f conftest.$ac_objext
19181 if { (ac_try="$ac_compile"
19182 case "(($ac_try" in
19183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19184 *) ac_try_echo=$ac_try;;
19186 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19187 (eval "$ac_compile") 2>conftest.er1
19189 grep -v '^ *+' conftest.er1 >conftest.err
19191 cat conftest.err >&5
19192 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19193 (exit $ac_status); } && {
19194 test -z "$ac_c_werror_flag" ||
19195 test ! -s conftest.err
19196 } && test -s conftest.$ac_objext; then
19197 ac_header_compiler=yes
19199 echo "$as_me: failed program was
:" >&5
19200 sed 's/^/| /' conftest.$ac_ext >&5
19202 ac_header_compiler=no
19205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19206 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19207 echo "${ECHO_T}$ac_header_compiler" >&6; }
19209 # Is the header present?
19210 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19211 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19212 cat >conftest.$ac_ext <<_ACEOF
19215 cat confdefs.h >>conftest.$ac_ext
19216 cat >>conftest.$ac_ext <<_ACEOF
19217 /* end confdefs.h. */
19218 #include <$ac_header>
19220 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19221 case "(($ac_try" in
19222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223 *) ac_try_echo=$ac_try;;
19225 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19226 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19228 grep -v '^ *+' conftest.er1 >conftest.err
19230 cat conftest.err >&5
19231 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19232 (exit $ac_status); } >/dev/null && {
19233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19234 test ! -s conftest.err
19236 ac_header_preproc=yes
19238 echo "$as_me: failed program was
:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19241 ac_header_preproc=no
19244 rm -f conftest.err conftest.$ac_ext
19245 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19246 echo "${ECHO_T}$ac_header_preproc" >&6; }
19248 # So? What about this header?
19249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19251 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19252 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19253 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19255 ac_header_preproc=yes
19258 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19259 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19260 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19261 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19262 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19263 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19264 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19265 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19266 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19268 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19269 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19273 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19274 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19275 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19276 echo $ECHO_N "(cached
) $ECHO_C" >&6
19278 eval "$as_ac_Header=\
$ac_header_preproc"
19280 ac_res=`eval echo '${'$as_ac_Header'}'`
19281 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19282 echo "${ECHO_T}$ac_res" >&6; }
19285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19286 cat >>confdefs.h <<_ACEOF
19287 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19296 if test -z "$GETOPT_H"; then
19298 for ac_func in getopt_long_only
19300 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19301 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19302 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19303 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19304 echo $ECHO_N "(cached
) $ECHO_C" >&6
19306 cat >conftest.$ac_ext <<_ACEOF
19309 cat confdefs.h >>conftest.$ac_ext
19310 cat >>conftest.$ac_ext <<_ACEOF
19311 /* end confdefs.h. */
19312 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19313 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19314 #define $ac_func innocuous_$ac_func
19316 /* System header to define __stub macros and hopefully few prototypes,
19317 which can conflict with char $ac_func (); below.
19318 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19319 <limits.h> exists even on freestanding compilers. */
19322 # include <limits.h>
19324 # include <assert.h>
19329 /* Override any GCC internal prototype to avoid an error.
19330 Use char because int might match the return type of a GCC
19331 builtin and then its argument prototype would still apply. */
19336 /* The GNU C library defines this for functions which it implements
19337 to always fail with ENOSYS. Some functions are actually named
19338 something starting with __ and the normal name is an alias. */
19339 #if defined __stub_$ac_func || defined __stub___$ac_func
19346 return $ac_func ();
19351 rm -f conftest.$ac_objext conftest$ac_exeext
19352 if { (ac_try="$ac_link"
19353 case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_link") 2>conftest.er1
19360 grep -v '^ *+' conftest.er1 >conftest.err
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19364 (exit $ac_status); } && {
19365 test -z "$ac_c_werror_flag" ||
19366 test ! -s conftest.err
19367 } && test -s conftest$ac_exeext &&
19368 $as_test_x conftest$ac_exeext; then
19369 eval "$as_ac_var=yes"
19371 echo "$as_me: failed program was
:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19374 eval "$as_ac_var=no
"
19377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19378 conftest$ac_exeext conftest.$ac_ext
19380 ac_res=`eval echo '${'$as_ac_var'}'`
19381 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19382 echo "${ECHO_T}$ac_res" >&6; }
19383 if test `eval echo '${'$as_ac_var'}'` = yes; then
19384 cat >>confdefs.h <<_ACEOF
19385 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19395 if test -z "$GETOPT_H"; then
19396 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19397 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19398 if test "${ac_cv_have_decl_optreset+set}" = set; then
19399 echo $ECHO_N "(cached
) $ECHO_C" >&6
19401 cat >conftest.$ac_ext <<_ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19407 #include <getopt.h>
19420 rm -f conftest.$ac_objext
19421 if { (ac_try="$ac_compile"
19422 case "(($ac_try" in
19423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19424 *) ac_try_echo=$ac_try;;
19426 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19427 (eval "$ac_compile") 2>conftest.er1
19429 grep -v '^ *+' conftest.er1 >conftest.err
19431 cat conftest.err >&5
19432 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19433 (exit $ac_status); } && {
19434 test -z "$ac_c_werror_flag" ||
19435 test ! -s conftest.err
19436 } && test -s conftest.$ac_objext; then
19437 ac_cv_have_decl_optreset=yes
19439 echo "$as_me: failed program was
:" >&5
19440 sed 's/^/| /' conftest.$ac_ext >&5
19442 ac_cv_have_decl_optreset=no
19445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19447 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19448 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19449 if test $ac_cv_have_decl_optreset = yes; then
19455 if test -z "$GETOPT_H"; then
19456 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19457 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19458 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19459 echo $ECHO_N "(cached
) $ECHO_C" >&6
19461 if test "$cross_compiling" = yes; then
19462 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19463 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19464 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19465 echo $ECHO_N "(cached
) $ECHO_C" >&6
19467 cat >conftest.$ac_ext <<_ACEOF
19470 cat confdefs.h >>conftest.$ac_ext
19471 cat >>conftest.$ac_ext <<_ACEOF
19472 /* end confdefs.h. */
19473 #include <getopt.h>
19478 #ifndef getopt_clip
19479 (void) getopt_clip;
19486 rm -f conftest.$ac_objext
19487 if { (ac_try="$ac_compile"
19488 case "(($ac_try" in
19489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19490 *) ac_try_echo=$ac_try;;
19492 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19493 (eval "$ac_compile") 2>conftest.er1
19495 grep -v '^ *+' conftest.er1 >conftest.err
19497 cat conftest.err >&5
19498 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19499 (exit $ac_status); } && {
19500 test -z "$ac_c_werror_flag" ||
19501 test ! -s conftest.err
19502 } && test -s conftest.$ac_objext; then
19503 ac_cv_have_decl_getopt_clip=yes
19505 echo "$as_me: failed program was
:" >&5
19506 sed 's/^/| /' conftest.$ac_ext >&5
19508 ac_cv_have_decl_getopt_clip=no
19511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19513 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19514 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19515 if test $ac_cv_have_decl_getopt_clip = yes; then
19516 gl_cv_func_gnu_getopt=no
19518 gl_cv_func_gnu_getopt=yes
19522 cat >conftest.$ac_ext <<_ACEOF
19525 cat confdefs.h >>conftest.$ac_ext
19526 cat >>conftest.$ac_ext <<_ACEOF
19527 /* end confdefs.h. */
19528 #include <getopt.h>
19534 myargv[0] = "conftest
";
19537 return getopt (2, myargv, "+a
") != '?';
19543 rm -f conftest$ac_exeext
19544 if { (ac_try="$ac_link"
19545 case "(($ac_try" in
19546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19547 *) ac_try_echo=$ac_try;;
19549 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19550 (eval "$ac_link") 2>&5
19552 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19553 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19554 { (case "(($ac_try" in
19555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19556 *) ac_try_echo=$ac_try;;
19558 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19559 (eval "$ac_try") 2>&5
19561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19562 (exit $ac_status); }; }; then
19563 gl_cv_func_gnu_getopt=yes
19565 echo "$as_me: program exited with status
$ac_status" >&5
19566 echo "$as_me: failed program was
:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 ( exit $ac_status )
19570 gl_cv_func_gnu_getopt=no
19572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19577 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19578 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19579 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19586 if test -n "$GETOPT_H"; then
19591 cat >>confdefs.h <<\_ACEOF
19592 #define __GETOPT_PREFIX rpl_
19598 GETOPTOBJS='getopt.o getopt1.o'
19605 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19606 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19607 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19608 echo $ECHO_N "(cached
) $ECHO_C" >&6
19610 # Use it with a single arg.
19611 cat >conftest.$ac_ext <<_ACEOF
19614 cat confdefs.h >>conftest.$ac_ext
19615 cat >>conftest.$ac_ext <<_ACEOF
19616 /* end confdefs.h. */
19617 $ac_includes_default
19626 rm -f conftest.$ac_objext
19627 if { (ac_try="$ac_compile"
19628 case "(($ac_try" in
19629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19630 *) ac_try_echo=$ac_try;;
19632 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19633 (eval "$ac_compile") 2>conftest.er1
19635 grep -v '^ *+' conftest.er1 >conftest.err
19637 cat conftest.err >&5
19638 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19639 (exit $ac_status); } && {
19640 test -z "$ac_c_werror_flag" ||
19641 test ! -s conftest.err
19642 } && test -s conftest.$ac_objext; then
19643 ac_cv_func_getpgrp_void=no
19645 echo "$as_me: failed program was
:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19648 ac_cv_func_getpgrp_void=yes
19651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19654 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19655 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19656 if test $ac_cv_func_getpgrp_void = yes; then
19658 cat >>confdefs.h <<\_ACEOF
19659 #define GETPGRP_VOID 1
19666 for ac_func in strftime
19668 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19669 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19670 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19671 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19672 echo $ECHO_N "(cached
) $ECHO_C" >&6
19674 cat >conftest.$ac_ext <<_ACEOF
19677 cat confdefs.h >>conftest.$ac_ext
19678 cat >>conftest.$ac_ext <<_ACEOF
19679 /* end confdefs.h. */
19680 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19681 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19682 #define $ac_func innocuous_$ac_func
19684 /* System header to define __stub macros and hopefully few prototypes,
19685 which can conflict with char $ac_func (); below.
19686 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19687 <limits.h> exists even on freestanding compilers. */
19690 # include <limits.h>
19692 # include <assert.h>
19697 /* Override any GCC internal prototype to avoid an error.
19698 Use char because int might match the return type of a GCC
19699 builtin and then its argument prototype would still apply. */
19704 /* The GNU C library defines this for functions which it implements
19705 to always fail with ENOSYS. Some functions are actually named
19706 something starting with __ and the normal name is an alias. */
19707 #if defined __stub_$ac_func || defined __stub___$ac_func
19714 return $ac_func ();
19719 rm -f conftest.$ac_objext conftest$ac_exeext
19720 if { (ac_try="$ac_link"
19721 case "(($ac_try" in
19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723 *) ac_try_echo=$ac_try;;
19725 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19726 (eval "$ac_link") 2>conftest.er1
19728 grep -v '^ *+' conftest.er1 >conftest.err
19730 cat conftest.err >&5
19731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19732 (exit $ac_status); } && {
19733 test -z "$ac_c_werror_flag" ||
19734 test ! -s conftest.err
19735 } && test -s conftest$ac_exeext &&
19736 $as_test_x conftest$ac_exeext; then
19737 eval "$as_ac_var=yes"
19739 echo "$as_me: failed program was
:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19742 eval "$as_ac_var=no
"
19745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19746 conftest$ac_exeext conftest.$ac_ext
19748 ac_res=`eval echo '${'$as_ac_var'}'`
19749 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19750 echo "${ECHO_T}$ac_res" >&6; }
19751 if test `eval echo '${'$as_ac_var'}'` = yes; then
19752 cat >>confdefs.h <<_ACEOF
19753 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19757 # strftime is in -lintl on SCO UNIX.
19758 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19759 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19760 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19761 echo $ECHO_N "(cached
) $ECHO_C" >&6
19763 ac_check_lib_save_LIBS=$LIBS
19764 LIBS="-lintl $LIBS"
19765 cat >conftest.$ac_ext <<_ACEOF
19768 cat confdefs.h >>conftest.$ac_ext
19769 cat >>conftest.$ac_ext <<_ACEOF
19770 /* end confdefs.h. */
19772 /* Override any GCC internal prototype to avoid an error.
19773 Use char because int might match the return type of a GCC
19774 builtin and then its argument prototype would still apply. */
19782 return strftime ();
19787 rm -f conftest.$ac_objext conftest$ac_exeext
19788 if { (ac_try="$ac_link"
19789 case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19794 (eval "$ac_link") 2>conftest.er1
19796 grep -v '^ *+' conftest.er1 >conftest.err
19798 cat conftest.err >&5
19799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19800 (exit $ac_status); } && {
19801 test -z "$ac_c_werror_flag" ||
19802 test ! -s conftest.err
19803 } && test -s conftest$ac_exeext &&
19804 $as_test_x conftest$ac_exeext; then
19805 ac_cv_lib_intl_strftime=yes
19807 echo "$as_me: failed program was
:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19810 ac_cv_lib_intl_strftime=no
19813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19814 conftest$ac_exeext conftest.$ac_ext
19815 LIBS=$ac_check_lib_save_LIBS
19817 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19818 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19819 if test $ac_cv_lib_intl_strftime = yes; then
19820 cat >>confdefs.h <<\_ACEOF
19821 #define HAVE_STRFTIME 1
19824 LIBS="-lintl $LIBS"
19833 for ac_func in grantpt
19835 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19836 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19837 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19838 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19839 echo $ECHO_N "(cached
) $ECHO_C" >&6
19841 cat >conftest.$ac_ext <<_ACEOF
19844 cat confdefs.h >>conftest.$ac_ext
19845 cat >>conftest.$ac_ext <<_ACEOF
19846 /* end confdefs.h. */
19847 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19849 #define $ac_func innocuous_$ac_func
19851 /* System header to define __stub macros and hopefully few prototypes,
19852 which can conflict with char $ac_func (); below.
19853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19854 <limits.h> exists even on freestanding compilers. */
19857 # include <limits.h>
19859 # include <assert.h>
19864 /* Override any GCC internal prototype to avoid an error.
19865 Use char because int might match the return type of a GCC
19866 builtin and then its argument prototype would still apply. */
19871 /* The GNU C library defines this for functions which it implements
19872 to always fail with ENOSYS. Some functions are actually named
19873 something starting with __ and the normal name is an alias. */
19874 #if defined __stub_$ac_func || defined __stub___$ac_func
19881 return $ac_func ();
19886 rm -f conftest.$ac_objext conftest$ac_exeext
19887 if { (ac_try="$ac_link"
19888 case "(($ac_try" in
19889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890 *) ac_try_echo=$ac_try;;
19892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19893 (eval "$ac_link") 2>conftest.er1
19895 grep -v '^ *+' conftest.er1 >conftest.err
19897 cat conftest.err >&5
19898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19899 (exit $ac_status); } && {
19900 test -z "$ac_c_werror_flag" ||
19901 test ! -s conftest.err
19902 } && test -s conftest$ac_exeext &&
19903 $as_test_x conftest$ac_exeext; then
19904 eval "$as_ac_var=yes"
19906 echo "$as_me: failed program was
:" >&5
19907 sed 's/^/| /' conftest.$ac_ext >&5
19909 eval "$as_ac_var=no
"
19912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19913 conftest$ac_exeext conftest.$ac_ext
19915 ac_res=`eval echo '${'$as_ac_var'}'`
19916 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19917 echo "${ECHO_T}$ac_res" >&6; }
19918 if test `eval echo '${'$as_ac_var'}'` = yes; then
19919 cat >>confdefs.h <<_ACEOF
19920 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19927 # PTY-related GNU extensions.
19929 for ac_func in getpt
19931 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19932 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19933 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19934 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19935 echo $ECHO_N "(cached
) $ECHO_C" >&6
19937 cat >conftest.$ac_ext <<_ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h. */
19943 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19944 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19945 #define $ac_func innocuous_$ac_func
19947 /* System header to define __stub macros and hopefully few prototypes,
19948 which can conflict with char $ac_func (); below.
19949 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19950 <limits.h> exists even on freestanding compilers. */
19953 # include <limits.h>
19955 # include <assert.h>
19960 /* Override any GCC internal prototype to avoid an error.
19961 Use char because int might match the return type of a GCC
19962 builtin and then its argument prototype would still apply. */
19967 /* The GNU C library defines this for functions which it implements
19968 to always fail with ENOSYS. Some functions are actually named
19969 something starting with __ and the normal name is an alias. */
19970 #if defined __stub_$ac_func || defined __stub___$ac_func
19977 return $ac_func ();
19982 rm -f conftest.$ac_objext conftest$ac_exeext
19983 if { (ac_try="$ac_link"
19984 case "(($ac_try" in
19985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19986 *) ac_try_echo=$ac_try;;
19988 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19989 (eval "$ac_link") 2>conftest.er1
19991 grep -v '^ *+' conftest.er1 >conftest.err
19993 cat conftest.err >&5
19994 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19995 (exit $ac_status); } && {
19996 test -z "$ac_c_werror_flag" ||
19997 test ! -s conftest.err
19998 } && test -s conftest$ac_exeext &&
19999 $as_test_x conftest$ac_exeext; then
20000 eval "$as_ac_var=yes"
20002 echo "$as_me: failed program was
:" >&5
20003 sed 's/^/| /' conftest.$ac_ext >&5
20005 eval "$as_ac_var=no
"
20008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20009 conftest$ac_exeext conftest.$ac_ext
20011 ac_res=`eval echo '${'$as_ac_var'}'`
20012 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20013 echo "${ECHO_T}$ac_res" >&6; }
20014 if test `eval echo '${'$as_ac_var'}'` = yes; then
20015 cat >>confdefs.h <<_ACEOF
20016 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
20023 # Check this now, so that we will NOT find the above functions in ncurses.
20024 # That is because we have not set up to link ncurses in lib-src.
20025 # It's better to believe a function is not available
20026 # than to expect to find it in ncurses.
20028 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
20029 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
20030 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20031 echo $ECHO_N "(cached
) $ECHO_C" >&6
20033 ac_check_lib_save_LIBS=$LIBS
20034 LIBS="-lncurses $LIBS"
20035 cat >conftest.$ac_ext <<_ACEOF
20038 cat confdefs.h >>conftest.$ac_ext
20039 cat >>conftest.$ac_ext <<_ACEOF
20040 /* end confdefs.h. */
20042 /* Override any GCC internal prototype to avoid an error.
20043 Use char because int might match the return type of a GCC
20044 builtin and then its argument prototype would still apply. */
20057 rm -f conftest.$ac_objext conftest$ac_exeext
20058 if { (ac_try="$ac_link"
20059 case "(($ac_try" in
20060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20061 *) ac_try_echo=$ac_try;;
20063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20064 (eval "$ac_link") 2>conftest.er1
20066 grep -v '^ *+' conftest.er1 >conftest.err
20068 cat conftest.err >&5
20069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20070 (exit $ac_status); } && {
20071 test -z "$ac_c_werror_flag" ||
20072 test ! -s conftest.err
20073 } && test -s conftest$ac_exeext &&
20074 $as_test_x conftest$ac_exeext; then
20075 ac_cv_lib_ncurses_tparm=yes
20077 echo "$as_me: failed program was
:" >&5
20078 sed 's/^/| /' conftest.$ac_ext >&5
20080 ac_cv_lib_ncurses_tparm=no
20083 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20084 conftest$ac_exeext conftest.$ac_ext
20085 LIBS=$ac_check_lib_save_LIBS
20087 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
20088 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
20089 if test $ac_cv_lib_ncurses_tparm = yes; then
20090 cat >>confdefs.h <<_ACEOF
20091 #define HAVE_LIBNCURSES 1
20094 LIBS="-lncurses $LIBS"
20099 # Do we have res_init, for detecting changes in /etc/resolv.conf?
20102 cat >conftest.$ac_ext <<_ACEOF
20105 cat confdefs.h >>conftest.$ac_ext
20106 cat >>conftest.$ac_ext <<_ACEOF
20107 /* end confdefs.h. */
20108 #include <netinet/in.h>
20109 #include <arpa/nameser.h>
20110 #include <resolv.h>
20119 rm -f conftest.$ac_objext conftest$ac_exeext
20120 if { (ac_try="$ac_link"
20121 case "(($ac_try" in
20122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20123 *) ac_try_echo=$ac_try;;
20125 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20126 (eval "$ac_link") 2>conftest.er1
20128 grep -v '^ *+' conftest.er1 >conftest.err
20130 cat conftest.err >&5
20131 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20132 (exit $ac_status); } && {
20133 test -z "$ac_c_werror_flag" ||
20134 test ! -s conftest.err
20135 } && test -s conftest$ac_exeext &&
20136 $as_test_x conftest$ac_exeext; then
20139 echo "$as_me: failed program was
:" >&5
20140 sed 's/^/| /' conftest.$ac_ext >&5
20145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20146 conftest$ac_exeext conftest.$ac_ext
20147 if test "$have_res_init" = no; then
20149 LIBS="$LIBS -lresolv"
20150 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
20151 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
20152 cat >conftest.$ac_ext <<_ACEOF
20155 cat confdefs.h >>conftest.$ac_ext
20156 cat >>conftest.$ac_ext <<_ACEOF
20157 /* end confdefs.h. */
20158 #include <netinet/in.h>
20159 #include <arpa/nameser.h>
20160 #include <resolv.h>
20169 rm -f conftest.$ac_objext conftest$ac_exeext
20170 if { (ac_try="$ac_link"
20171 case "(($ac_try" in
20172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20173 *) ac_try_echo=$ac_try;;
20175 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20176 (eval "$ac_link") 2>conftest.er1
20178 grep -v '^ *+' conftest.er1 >conftest.err
20180 cat conftest.err >&5
20181 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20182 (exit $ac_status); } && {
20183 test -z "$ac_c_werror_flag" ||
20184 test ! -s conftest.err
20185 } && test -s conftest$ac_exeext &&
20186 $as_test_x conftest$ac_exeext; then
20189 echo "$as_me: failed program was
:" >&5
20190 sed 's/^/| /' conftest.$ac_ext >&5
20195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20196 conftest$ac_exeext conftest.$ac_ext
20197 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
20198 echo "${ECHO_T}$have_res_init" >&6; }
20199 if test "$have_res_init" = yes ; then
20205 if test "$have_res_init" = yes; then
20207 cat >>confdefs.h <<\_ACEOF
20208 #define HAVE_RES_INIT 1
20213 # Do we need the Hesiod library to provide the support routines?
20214 if test "$with_hesiod" = yes ; then
20215 # Don't set $LIBS here -- see comments above.
20216 { echo "$as_me:$LINENO: checking
for res_send
" >&5
20217 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
20218 if test "${ac_cv_func_res_send+set}" = set; then
20219 echo $ECHO_N "(cached
) $ECHO_C" >&6
20221 cat >conftest.$ac_ext <<_ACEOF
20224 cat confdefs.h >>conftest.$ac_ext
20225 cat >>conftest.$ac_ext <<_ACEOF
20226 /* end confdefs.h. */
20227 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20229 #define res_send innocuous_res_send
20231 /* System header to define __stub macros and hopefully few prototypes,
20232 which can conflict with char res_send (); below.
20233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20234 <limits.h> exists even on freestanding compilers. */
20237 # include <limits.h>
20239 # include <assert.h>
20244 /* Override any GCC internal prototype to avoid an error.
20245 Use char because int might match the return type of a GCC
20246 builtin and then its argument prototype would still apply. */
20251 /* The GNU C library defines this for functions which it implements
20252 to always fail with ENOSYS. Some functions are actually named
20253 something starting with __ and the normal name is an alias. */
20254 #if defined __stub_res_send || defined __stub___res_send
20261 return res_send ();
20266 rm -f conftest.$ac_objext conftest$ac_exeext
20267 if { (ac_try="$ac_link"
20268 case "(($ac_try" in
20269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20270 *) ac_try_echo=$ac_try;;
20272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20273 (eval "$ac_link") 2>conftest.er1
20275 grep -v '^ *+' conftest.er1 >conftest.err
20277 cat conftest.err >&5
20278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20279 (exit $ac_status); } && {
20280 test -z "$ac_c_werror_flag" ||
20281 test ! -s conftest.err
20282 } && test -s conftest$ac_exeext &&
20283 $as_test_x conftest$ac_exeext; then
20284 ac_cv_func_res_send=yes
20286 echo "$as_me: failed program was
:" >&5
20287 sed 's/^/| /' conftest.$ac_ext >&5
20289 ac_cv_func_res_send=no
20292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20293 conftest$ac_exeext conftest.$ac_ext
20295 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
20296 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20297 if test $ac_cv_func_res_send = yes; then
20300 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
20301 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
20302 if test "${ac_cv_func___res_send+set}" = set; then
20303 echo $ECHO_N "(cached
) $ECHO_C" >&6
20305 cat >conftest.$ac_ext <<_ACEOF
20308 cat confdefs.h >>conftest.$ac_ext
20309 cat >>conftest.$ac_ext <<_ACEOF
20310 /* end confdefs.h. */
20311 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20313 #define __res_send innocuous___res_send
20315 /* System header to define __stub macros and hopefully few prototypes,
20316 which can conflict with char __res_send (); below.
20317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20318 <limits.h> exists even on freestanding compilers. */
20321 # include <limits.h>
20323 # include <assert.h>
20328 /* Override any GCC internal prototype to avoid an error.
20329 Use char because int might match the return type of a GCC
20330 builtin and then its argument prototype would still apply. */
20334 char __res_send ();
20335 /* The GNU C library defines this for functions which it implements
20336 to always fail with ENOSYS. Some functions are actually named
20337 something starting with __ and the normal name is an alias. */
20338 #if defined __stub___res_send || defined __stub_____res_send
20345 return __res_send ();
20350 rm -f conftest.$ac_objext conftest$ac_exeext
20351 if { (ac_try="$ac_link"
20352 case "(($ac_try" in
20353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20354 *) ac_try_echo=$ac_try;;
20356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20357 (eval "$ac_link") 2>conftest.er1
20359 grep -v '^ *+' conftest.er1 >conftest.err
20361 cat conftest.err >&5
20362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20363 (exit $ac_status); } && {
20364 test -z "$ac_c_werror_flag" ||
20365 test ! -s conftest.err
20366 } && test -s conftest$ac_exeext &&
20367 $as_test_x conftest$ac_exeext; then
20368 ac_cv_func___res_send=yes
20370 echo "$as_me: failed program was
:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20373 ac_cv_func___res_send=no
20376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20377 conftest$ac_exeext conftest.$ac_ext
20379 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20380 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20381 if test $ac_cv_func___res_send = yes; then
20384 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20385 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20386 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20387 echo $ECHO_N "(cached
) $ECHO_C" >&6
20389 ac_check_lib_save_LIBS=$LIBS
20390 LIBS="-lresolv $LIBS"
20391 cat >conftest.$ac_ext <<_ACEOF
20394 cat confdefs.h >>conftest.$ac_ext
20395 cat >>conftest.$ac_ext <<_ACEOF
20396 /* end confdefs.h. */
20398 /* Override any GCC internal prototype to avoid an error.
20399 Use char because int might match the return type of a GCC
20400 builtin and then its argument prototype would still apply. */
20408 return res_send ();
20413 rm -f conftest.$ac_objext conftest$ac_exeext
20414 if { (ac_try="$ac_link"
20415 case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20419 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_link") 2>conftest.er1
20422 grep -v '^ *+' conftest.er1 >conftest.err
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20426 (exit $ac_status); } && {
20427 test -z "$ac_c_werror_flag" ||
20428 test ! -s conftest.err
20429 } && test -s conftest$ac_exeext &&
20430 $as_test_x conftest$ac_exeext; then
20431 ac_cv_lib_resolv_res_send=yes
20433 echo "$as_me: failed program was
:" >&5
20434 sed 's/^/| /' conftest.$ac_ext >&5
20436 ac_cv_lib_resolv_res_send=no
20439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20440 conftest$ac_exeext conftest.$ac_ext
20441 LIBS=$ac_check_lib_save_LIBS
20443 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20444 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20445 if test $ac_cv_lib_resolv_res_send = yes; then
20448 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20449 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20450 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20451 echo $ECHO_N "(cached
) $ECHO_C" >&6
20453 ac_check_lib_save_LIBS=$LIBS
20454 LIBS="-lresolv $LIBS"
20455 cat >conftest.$ac_ext <<_ACEOF
20458 cat confdefs.h >>conftest.$ac_ext
20459 cat >>conftest.$ac_ext <<_ACEOF
20460 /* end confdefs.h. */
20462 /* Override any GCC internal prototype to avoid an error.
20463 Use char because int might match the return type of a GCC
20464 builtin and then its argument prototype would still apply. */
20468 char __res_send ();
20472 return __res_send ();
20477 rm -f conftest.$ac_objext conftest$ac_exeext
20478 if { (ac_try="$ac_link"
20479 case "(($ac_try" in
20480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20481 *) ac_try_echo=$ac_try;;
20483 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20484 (eval "$ac_link") 2>conftest.er1
20486 grep -v '^ *+' conftest.er1 >conftest.err
20488 cat conftest.err >&5
20489 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20490 (exit $ac_status); } && {
20491 test -z "$ac_c_werror_flag" ||
20492 test ! -s conftest.err
20493 } && test -s conftest$ac_exeext &&
20494 $as_test_x conftest$ac_exeext; then
20495 ac_cv_lib_resolv___res_send=yes
20497 echo "$as_me: failed program was
:" >&5
20498 sed 's/^/| /' conftest.$ac_ext >&5
20500 ac_cv_lib_resolv___res_send=no
20503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20504 conftest$ac_exeext conftest.$ac_ext
20505 LIBS=$ac_check_lib_save_LIBS
20507 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20508 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20509 if test $ac_cv_lib_resolv___res_send = yes; then
20519 if test "$resolv" = yes ; then
20524 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20525 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20526 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20527 echo $ECHO_N "(cached
) $ECHO_C" >&6
20529 cat >conftest.$ac_ext <<_ACEOF
20532 cat confdefs.h >>conftest.$ac_ext
20533 cat >>conftest.$ac_ext <<_ACEOF
20534 /* end confdefs.h. */
20535 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20537 #define hes_getmailhost innocuous_hes_getmailhost
20539 /* System header to define __stub macros and hopefully few prototypes,
20540 which can conflict with char hes_getmailhost (); below.
20541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20542 <limits.h> exists even on freestanding compilers. */
20545 # include <limits.h>
20547 # include <assert.h>
20550 #undef hes_getmailhost
20552 /* Override any GCC internal prototype to avoid an error.
20553 Use char because int might match the return type of a GCC
20554 builtin and then its argument prototype would still apply. */
20558 char hes_getmailhost ();
20559 /* The GNU C library defines this for functions which it implements
20560 to always fail with ENOSYS. Some functions are actually named
20561 something starting with __ and the normal name is an alias. */
20562 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20569 return hes_getmailhost ();
20574 rm -f conftest.$ac_objext conftest$ac_exeext
20575 if { (ac_try="$ac_link"
20576 case "(($ac_try" in
20577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20578 *) ac_try_echo=$ac_try;;
20580 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20581 (eval "$ac_link") 2>conftest.er1
20583 grep -v '^ *+' conftest.er1 >conftest.err
20585 cat conftest.err >&5
20586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20587 (exit $ac_status); } && {
20588 test -z "$ac_c_werror_flag" ||
20589 test ! -s conftest.err
20590 } && test -s conftest$ac_exeext &&
20591 $as_test_x conftest$ac_exeext; then
20592 ac_cv_func_hes_getmailhost=yes
20594 echo "$as_me: failed program was
:" >&5
20595 sed 's/^/| /' conftest.$ac_ext >&5
20597 ac_cv_func_hes_getmailhost=no
20600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20601 conftest$ac_exeext conftest.$ac_ext
20603 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20604 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20605 if test $ac_cv_func_hes_getmailhost = yes; then
20608 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20609 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20610 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20611 echo $ECHO_N "(cached
) $ECHO_C" >&6
20613 ac_check_lib_save_LIBS=$LIBS
20614 LIBS="-lhesiod $RESOLVLIB $LIBS"
20615 cat >conftest.$ac_ext <<_ACEOF
20618 cat confdefs.h >>conftest.$ac_ext
20619 cat >>conftest.$ac_ext <<_ACEOF
20620 /* end confdefs.h. */
20622 /* Override any GCC internal prototype to avoid an error.
20623 Use char because int might match the return type of a GCC
20624 builtin and then its argument prototype would still apply. */
20628 char hes_getmailhost ();
20632 return hes_getmailhost ();
20637 rm -f conftest.$ac_objext conftest$ac_exeext
20638 if { (ac_try="$ac_link"
20639 case "(($ac_try" in
20640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20641 *) ac_try_echo=$ac_try;;
20643 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20644 (eval "$ac_link") 2>conftest.er1
20646 grep -v '^ *+' conftest.er1 >conftest.err
20648 cat conftest.err >&5
20649 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20650 (exit $ac_status); } && {
20651 test -z "$ac_c_werror_flag" ||
20652 test ! -s conftest.err
20653 } && test -s conftest$ac_exeext &&
20654 $as_test_x conftest$ac_exeext; then
20655 ac_cv_lib_hesiod_hes_getmailhost=yes
20657 echo "$as_me: failed program was
:" >&5
20658 sed 's/^/| /' conftest.$ac_ext >&5
20660 ac_cv_lib_hesiod_hes_getmailhost=no
20663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20664 conftest$ac_exeext conftest.$ac_ext
20665 LIBS=$ac_check_lib_save_LIBS
20667 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20668 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20669 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20671 cat >>confdefs.h <<\_ACEOF
20672 #define HAVE_LIBHESIOD 1
20683 # Do we need libresolv (due to res_init or Hesiod)?
20684 if test "$resolv" = yes ; then
20686 cat >>confdefs.h <<\_ACEOF
20687 #define HAVE_LIBRESOLV 1
20692 # These tell us which Kerberos-related libraries to use.
20693 if test "${with_kerberos+set}" = set; then
20695 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20696 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20697 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20698 echo $ECHO_N "(cached
) $ECHO_C" >&6
20700 ac_check_lib_save_LIBS=$LIBS
20701 LIBS="-lcom_err $LIBS"
20702 cat >conftest.$ac_ext <<_ACEOF
20705 cat confdefs.h >>conftest.$ac_ext
20706 cat >>conftest.$ac_ext <<_ACEOF
20707 /* end confdefs.h. */
20709 /* Override any GCC internal prototype to avoid an error.
20710 Use char because int might match the return type of a GCC
20711 builtin and then its argument prototype would still apply. */
20724 rm -f conftest.$ac_objext conftest$ac_exeext
20725 if { (ac_try="$ac_link"
20726 case "(($ac_try" in
20727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20728 *) ac_try_echo=$ac_try;;
20730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20731 (eval "$ac_link") 2>conftest.er1
20733 grep -v '^ *+' conftest.er1 >conftest.err
20735 cat conftest.err >&5
20736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20737 (exit $ac_status); } && {
20738 test -z "$ac_c_werror_flag" ||
20739 test ! -s conftest.err
20740 } && test -s conftest$ac_exeext &&
20741 $as_test_x conftest$ac_exeext; then
20742 ac_cv_lib_com_err_com_err=yes
20744 echo "$as_me: failed program was
:" >&5
20745 sed 's/^/| /' conftest.$ac_ext >&5
20747 ac_cv_lib_com_err_com_err=no
20750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20751 conftest$ac_exeext conftest.$ac_ext
20752 LIBS=$ac_check_lib_save_LIBS
20754 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20755 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20756 if test $ac_cv_lib_com_err_com_err = yes; then
20757 cat >>confdefs.h <<_ACEOF
20758 #define HAVE_LIBCOM_ERR 1
20761 LIBS="-lcom_err $LIBS"
20766 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20767 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20768 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20769 echo $ECHO_N "(cached
) $ECHO_C" >&6
20771 ac_check_lib_save_LIBS=$LIBS
20772 LIBS="-lk5crypto $LIBS"
20773 cat >conftest.$ac_ext <<_ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20780 /* Override any GCC internal prototype to avoid an error.
20781 Use char because int might match the return type of a GCC
20782 builtin and then its argument prototype would still apply. */
20786 char mit_des_cbc_encrypt ();
20790 return mit_des_cbc_encrypt ();
20795 rm -f conftest.$ac_objext conftest$ac_exeext
20796 if { (ac_try="$ac_link"
20797 case "(($ac_try" in
20798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20799 *) ac_try_echo=$ac_try;;
20801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20802 (eval "$ac_link") 2>conftest.er1
20804 grep -v '^ *+' conftest.er1 >conftest.err
20806 cat conftest.err >&5
20807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20808 (exit $ac_status); } && {
20809 test -z "$ac_c_werror_flag" ||
20810 test ! -s conftest.err
20811 } && test -s conftest$ac_exeext &&
20812 $as_test_x conftest$ac_exeext; then
20813 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20815 echo "$as_me: failed program was
:" >&5
20816 sed 's/^/| /' conftest.$ac_ext >&5
20818 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20822 conftest$ac_exeext conftest.$ac_ext
20823 LIBS=$ac_check_lib_save_LIBS
20825 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20826 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20827 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20828 cat >>confdefs.h <<_ACEOF
20829 #define HAVE_LIBK5CRYPTO 1
20832 LIBS="-lk5crypto $LIBS"
20837 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20838 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20839 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20840 echo $ECHO_N "(cached
) $ECHO_C" >&6
20842 ac_check_lib_save_LIBS=$LIBS
20843 LIBS="-lcrypto $LIBS"
20844 cat >conftest.$ac_ext <<_ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20851 /* Override any GCC internal prototype to avoid an error.
20852 Use char because int might match the return type of a GCC
20853 builtin and then its argument prototype would still apply. */
20857 char mit_des_cbc_encrypt ();
20861 return mit_des_cbc_encrypt ();
20866 rm -f conftest.$ac_objext conftest$ac_exeext
20867 if { (ac_try="$ac_link"
20868 case "(($ac_try" in
20869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20870 *) ac_try_echo=$ac_try;;
20872 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20873 (eval "$ac_link") 2>conftest.er1
20875 grep -v '^ *+' conftest.er1 >conftest.err
20877 cat conftest.err >&5
20878 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20879 (exit $ac_status); } && {
20880 test -z "$ac_c_werror_flag" ||
20881 test ! -s conftest.err
20882 } && test -s conftest$ac_exeext &&
20883 $as_test_x conftest$ac_exeext; then
20884 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20886 echo "$as_me: failed program was
:" >&5
20887 sed 's/^/| /' conftest.$ac_ext >&5
20889 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20892 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20893 conftest$ac_exeext conftest.$ac_ext
20894 LIBS=$ac_check_lib_save_LIBS
20896 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20897 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20898 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20899 cat >>confdefs.h <<_ACEOF
20900 #define HAVE_LIBCRYPTO 1
20903 LIBS="-lcrypto $LIBS"
20908 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20909 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20910 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20911 echo $ECHO_N "(cached
) $ECHO_C" >&6
20913 ac_check_lib_save_LIBS=$LIBS
20914 LIBS="-lkrb5 $LIBS"
20915 cat >conftest.$ac_ext <<_ACEOF
20918 cat confdefs.h >>conftest.$ac_ext
20919 cat >>conftest.$ac_ext <<_ACEOF
20920 /* end confdefs.h. */
20922 /* Override any GCC internal prototype to avoid an error.
20923 Use char because int might match the return type of a GCC
20924 builtin and then its argument prototype would still apply. */
20928 char krb5_init_context ();
20932 return krb5_init_context ();
20937 rm -f conftest.$ac_objext conftest$ac_exeext
20938 if { (ac_try="$ac_link"
20939 case "(($ac_try" in
20940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20941 *) ac_try_echo=$ac_try;;
20943 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20944 (eval "$ac_link") 2>conftest.er1
20946 grep -v '^ *+' conftest.er1 >conftest.err
20948 cat conftest.err >&5
20949 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20950 (exit $ac_status); } && {
20951 test -z "$ac_c_werror_flag" ||
20952 test ! -s conftest.err
20953 } && test -s conftest$ac_exeext &&
20954 $as_test_x conftest$ac_exeext; then
20955 ac_cv_lib_krb5_krb5_init_context=yes
20957 echo "$as_me: failed program was
:" >&5
20958 sed 's/^/| /' conftest.$ac_ext >&5
20960 ac_cv_lib_krb5_krb5_init_context=no
20963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20964 conftest$ac_exeext conftest.$ac_ext
20965 LIBS=$ac_check_lib_save_LIBS
20967 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20968 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20969 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20970 cat >>confdefs.h <<_ACEOF
20971 #define HAVE_LIBKRB5 1
20974 LIBS="-lkrb5 $LIBS"
20978 if test "${with_kerberos5+set}" != set; then
20980 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20981 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20982 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20983 echo $ECHO_N "(cached
) $ECHO_C" >&6
20985 ac_check_lib_save_LIBS=$LIBS
20986 LIBS="-ldes425 $LIBS"
20987 cat >conftest.$ac_ext <<_ACEOF
20990 cat confdefs.h >>conftest.$ac_ext
20991 cat >>conftest.$ac_ext <<_ACEOF
20992 /* end confdefs.h. */
20994 /* Override any GCC internal prototype to avoid an error.
20995 Use char because int might match the return type of a GCC
20996 builtin and then its argument prototype would still apply. */
21000 char des_cbc_encrypt ();
21004 return des_cbc_encrypt ();
21009 rm -f conftest.$ac_objext conftest$ac_exeext
21010 if { (ac_try="$ac_link"
21011 case "(($ac_try" in
21012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21013 *) ac_try_echo=$ac_try;;
21015 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21016 (eval "$ac_link") 2>conftest.er1
21018 grep -v '^ *+' conftest.er1 >conftest.err
21020 cat conftest.err >&5
21021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21022 (exit $ac_status); } && {
21023 test -z "$ac_c_werror_flag" ||
21024 test ! -s conftest.err
21025 } && test -s conftest$ac_exeext &&
21026 $as_test_x conftest$ac_exeext; then
21027 ac_cv_lib_des425_des_cbc_encrypt=yes
21029 echo "$as_me: failed program was
:" >&5
21030 sed 's/^/| /' conftest.$ac_ext >&5
21032 ac_cv_lib_des425_des_cbc_encrypt=no
21035 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21036 conftest$ac_exeext conftest.$ac_ext
21037 LIBS=$ac_check_lib_save_LIBS
21039 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
21040 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
21041 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
21042 cat >>confdefs.h <<_ACEOF
21043 #define HAVE_LIBDES425 1
21046 LIBS="-ldes425 $LIBS"
21050 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
21051 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
21052 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
21053 echo $ECHO_N "(cached
) $ECHO_C" >&6
21055 ac_check_lib_save_LIBS=$LIBS
21057 cat >conftest.$ac_ext <<_ACEOF
21060 cat confdefs.h >>conftest.$ac_ext
21061 cat >>conftest.$ac_ext <<_ACEOF
21062 /* end confdefs.h. */
21064 /* Override any GCC internal prototype to avoid an error.
21065 Use char because int might match the return type of a GCC
21066 builtin and then its argument prototype would still apply. */
21070 char des_cbc_encrypt ();
21074 return des_cbc_encrypt ();
21079 rm -f conftest.$ac_objext conftest$ac_exeext
21080 if { (ac_try="$ac_link"
21081 case "(($ac_try" in
21082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21083 *) ac_try_echo=$ac_try;;
21085 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21086 (eval "$ac_link") 2>conftest.er1
21088 grep -v '^ *+' conftest.er1 >conftest.err
21090 cat conftest.err >&5
21091 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21092 (exit $ac_status); } && {
21093 test -z "$ac_c_werror_flag" ||
21094 test ! -s conftest.err
21095 } && test -s conftest$ac_exeext &&
21096 $as_test_x conftest$ac_exeext; then
21097 ac_cv_lib_des_des_cbc_encrypt=yes
21099 echo "$as_me: failed program was
:" >&5
21100 sed 's/^/| /' conftest.$ac_ext >&5
21102 ac_cv_lib_des_des_cbc_encrypt=no
21105 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21106 conftest$ac_exeext conftest.$ac_ext
21107 LIBS=$ac_check_lib_save_LIBS
21109 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
21110 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
21111 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
21112 cat >>confdefs.h <<_ACEOF
21113 #define HAVE_LIBDES 1
21123 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
21124 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
21125 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
21126 echo $ECHO_N "(cached
) $ECHO_C" >&6
21128 ac_check_lib_save_LIBS=$LIBS
21129 LIBS="-lkrb4 $LIBS"
21130 cat >conftest.$ac_ext <<_ACEOF
21133 cat confdefs.h >>conftest.$ac_ext
21134 cat >>conftest.$ac_ext <<_ACEOF
21135 /* end confdefs.h. */
21137 /* Override any GCC internal prototype to avoid an error.
21138 Use char because int might match the return type of a GCC
21139 builtin and then its argument prototype would still apply. */
21143 char krb_get_cred ();
21147 return krb_get_cred ();
21152 rm -f conftest.$ac_objext conftest$ac_exeext
21153 if { (ac_try="$ac_link"
21154 case "(($ac_try" in
21155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156 *) ac_try_echo=$ac_try;;
21158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21159 (eval "$ac_link") 2>conftest.er1
21161 grep -v '^ *+' conftest.er1 >conftest.err
21163 cat conftest.err >&5
21164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21165 (exit $ac_status); } && {
21166 test -z "$ac_c_werror_flag" ||
21167 test ! -s conftest.err
21168 } && test -s conftest$ac_exeext &&
21169 $as_test_x conftest$ac_exeext; then
21170 ac_cv_lib_krb4_krb_get_cred=yes
21172 echo "$as_me: failed program was
:" >&5
21173 sed 's/^/| /' conftest.$ac_ext >&5
21175 ac_cv_lib_krb4_krb_get_cred=no
21178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21179 conftest$ac_exeext conftest.$ac_ext
21180 LIBS=$ac_check_lib_save_LIBS
21182 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
21183 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
21184 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
21185 cat >>confdefs.h <<_ACEOF
21186 #define HAVE_LIBKRB4 1
21189 LIBS="-lkrb4 $LIBS"
21193 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
21194 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
21195 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21196 echo $ECHO_N "(cached
) $ECHO_C" >&6
21198 ac_check_lib_save_LIBS=$LIBS
21200 cat >conftest.$ac_ext <<_ACEOF
21203 cat confdefs.h >>conftest.$ac_ext
21204 cat >>conftest.$ac_ext <<_ACEOF
21205 /* end confdefs.h. */
21207 /* Override any GCC internal prototype to avoid an error.
21208 Use char because int might match the return type of a GCC
21209 builtin and then its argument prototype would still apply. */
21213 char krb_get_cred ();
21217 return krb_get_cred ();
21222 rm -f conftest.$ac_objext conftest$ac_exeext
21223 if { (ac_try="$ac_link"
21224 case "(($ac_try" in
21225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21226 *) ac_try_echo=$ac_try;;
21228 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21229 (eval "$ac_link") 2>conftest.er1
21231 grep -v '^ *+' conftest.er1 >conftest.err
21233 cat conftest.err >&5
21234 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21235 (exit $ac_status); } && {
21236 test -z "$ac_c_werror_flag" ||
21237 test ! -s conftest.err
21238 } && test -s conftest$ac_exeext &&
21239 $as_test_x conftest$ac_exeext; then
21240 ac_cv_lib_krb_krb_get_cred=yes
21242 echo "$as_me: failed program was
:" >&5
21243 sed 's/^/| /' conftest.$ac_ext >&5
21245 ac_cv_lib_krb_krb_get_cred=no
21248 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21249 conftest$ac_exeext conftest.$ac_ext
21250 LIBS=$ac_check_lib_save_LIBS
21252 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
21253 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21254 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21255 cat >>confdefs.h <<_ACEOF
21256 #define HAVE_LIBKRB 1
21267 if test "${with_kerberos5+set}" = set; then
21269 for ac_header in krb5.h
21271 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21272 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21273 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21274 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21275 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21276 echo $ECHO_N "(cached
) $ECHO_C" >&6
21278 ac_res=`eval echo '${'$as_ac_Header'}'`
21279 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21280 echo "${ECHO_T}$ac_res" >&6; }
21282 # Is the header compilable?
21283 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21284 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21285 cat >conftest.$ac_ext <<_ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 $ac_includes_default
21292 #include <$ac_header>
21294 rm -f conftest.$ac_objext
21295 if { (ac_try="$ac_compile"
21296 case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_compile") 2>conftest.er1
21303 grep -v '^ *+' conftest.er1 >conftest.err
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21307 (exit $ac_status); } && {
21308 test -z "$ac_c_werror_flag" ||
21309 test ! -s conftest.err
21310 } && test -s conftest.$ac_objext; then
21311 ac_header_compiler=yes
21313 echo "$as_me: failed program was
:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21316 ac_header_compiler=no
21319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21320 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21321 echo "${ECHO_T}$ac_header_compiler" >&6; }
21323 # Is the header present?
21324 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21325 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21326 cat >conftest.$ac_ext <<_ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21332 #include <$ac_header>
21334 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21335 case "(($ac_try" in
21336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21337 *) ac_try_echo=$ac_try;;
21339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21340 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21342 grep -v '^ *+' conftest.er1 >conftest.err
21344 cat conftest.err >&5
21345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21346 (exit $ac_status); } >/dev/null && {
21347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21348 test ! -s conftest.err
21350 ac_header_preproc=yes
21352 echo "$as_me: failed program was
:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21355 ac_header_preproc=no
21358 rm -f conftest.err conftest.$ac_ext
21359 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21360 echo "${ECHO_T}$ac_header_preproc" >&6; }
21362 # So? What about this header?
21363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21365 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21366 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21367 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21369 ac_header_preproc=yes
21372 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21373 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21374 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21375 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21376 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21377 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21378 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21379 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21380 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21382 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21383 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21387 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21388 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21389 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21390 echo $ECHO_N "(cached
) $ECHO_C" >&6
21392 eval "$as_ac_Header=\
$ac_header_preproc"
21394 ac_res=`eval echo '${'$as_ac_Header'}'`
21395 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21396 echo "${ECHO_T}$ac_res" >&6; }
21399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21400 cat >>confdefs.h <<_ACEOF
21401 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21410 for ac_header in des.h
21412 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21413 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21414 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21415 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21416 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21417 echo $ECHO_N "(cached
) $ECHO_C" >&6
21419 ac_res=`eval echo '${'$as_ac_Header'}'`
21420 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21421 echo "${ECHO_T}$ac_res" >&6; }
21423 # Is the header compilable?
21424 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21425 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21426 cat >conftest.$ac_ext <<_ACEOF
21429 cat confdefs.h >>conftest.$ac_ext
21430 cat >>conftest.$ac_ext <<_ACEOF
21431 /* end confdefs.h. */
21432 $ac_includes_default
21433 #include <$ac_header>
21435 rm -f conftest.$ac_objext
21436 if { (ac_try="$ac_compile"
21437 case "(($ac_try" in
21438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21439 *) ac_try_echo=$ac_try;;
21441 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21442 (eval "$ac_compile") 2>conftest.er1
21444 grep -v '^ *+' conftest.er1 >conftest.err
21446 cat conftest.err >&5
21447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21448 (exit $ac_status); } && {
21449 test -z "$ac_c_werror_flag" ||
21450 test ! -s conftest.err
21451 } && test -s conftest.$ac_objext; then
21452 ac_header_compiler=yes
21454 echo "$as_me: failed program was
:" >&5
21455 sed 's/^/| /' conftest.$ac_ext >&5
21457 ac_header_compiler=no
21460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21461 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21462 echo "${ECHO_T}$ac_header_compiler" >&6; }
21464 # Is the header present?
21465 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21466 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21467 cat >conftest.$ac_ext <<_ACEOF
21470 cat confdefs.h >>conftest.$ac_ext
21471 cat >>conftest.$ac_ext <<_ACEOF
21472 /* end confdefs.h. */
21473 #include <$ac_header>
21475 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21476 case "(($ac_try" in
21477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21478 *) ac_try_echo=$ac_try;;
21480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21481 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21483 grep -v '^ *+' conftest.er1 >conftest.err
21485 cat conftest.err >&5
21486 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21487 (exit $ac_status); } >/dev/null && {
21488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21489 test ! -s conftest.err
21491 ac_header_preproc=yes
21493 echo "$as_me: failed program was
:" >&5
21494 sed 's/^/| /' conftest.$ac_ext >&5
21496 ac_header_preproc=no
21499 rm -f conftest.err conftest.$ac_ext
21500 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21501 echo "${ECHO_T}$ac_header_preproc" >&6; }
21503 # So? What about this header?
21504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21506 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21507 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21508 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21510 ac_header_preproc=yes
21513 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21514 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21515 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21516 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21517 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21518 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21519 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21520 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21521 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21523 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21524 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21528 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21529 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21530 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21531 echo $ECHO_N "(cached
) $ECHO_C" >&6
21533 eval "$as_ac_Header=\
$ac_header_preproc"
21535 ac_res=`eval echo '${'$as_ac_Header'}'`
21536 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21537 echo "${ECHO_T}$ac_res" >&6; }
21540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21541 cat >>confdefs.h <<_ACEOF
21542 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21547 for ac_header in kerberosIV/des.h
21549 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21550 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21551 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21552 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21553 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21554 echo $ECHO_N "(cached
) $ECHO_C" >&6
21556 ac_res=`eval echo '${'$as_ac_Header'}'`
21557 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21558 echo "${ECHO_T}$ac_res" >&6; }
21560 # Is the header compilable?
21561 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21562 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21563 cat >conftest.$ac_ext <<_ACEOF
21566 cat confdefs.h >>conftest.$ac_ext
21567 cat >>conftest.$ac_ext <<_ACEOF
21568 /* end confdefs.h. */
21569 $ac_includes_default
21570 #include <$ac_header>
21572 rm -f conftest.$ac_objext
21573 if { (ac_try="$ac_compile"
21574 case "(($ac_try" in
21575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21576 *) ac_try_echo=$ac_try;;
21578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21579 (eval "$ac_compile") 2>conftest.er1
21581 grep -v '^ *+' conftest.er1 >conftest.err
21583 cat conftest.err >&5
21584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21585 (exit $ac_status); } && {
21586 test -z "$ac_c_werror_flag" ||
21587 test ! -s conftest.err
21588 } && test -s conftest.$ac_objext; then
21589 ac_header_compiler=yes
21591 echo "$as_me: failed program was
:" >&5
21592 sed 's/^/| /' conftest.$ac_ext >&5
21594 ac_header_compiler=no
21597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21598 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21599 echo "${ECHO_T}$ac_header_compiler" >&6; }
21601 # Is the header present?
21602 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21603 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21604 cat >conftest.$ac_ext <<_ACEOF
21607 cat confdefs.h >>conftest.$ac_ext
21608 cat >>conftest.$ac_ext <<_ACEOF
21609 /* end confdefs.h. */
21610 #include <$ac_header>
21612 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21613 case "(($ac_try" in
21614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21615 *) ac_try_echo=$ac_try;;
21617 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21618 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21620 grep -v '^ *+' conftest.er1 >conftest.err
21622 cat conftest.err >&5
21623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21624 (exit $ac_status); } >/dev/null && {
21625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21626 test ! -s conftest.err
21628 ac_header_preproc=yes
21630 echo "$as_me: failed program was
:" >&5
21631 sed 's/^/| /' conftest.$ac_ext >&5
21633 ac_header_preproc=no
21636 rm -f conftest.err conftest.$ac_ext
21637 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21638 echo "${ECHO_T}$ac_header_preproc" >&6; }
21640 # So? What about this header?
21641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21643 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21644 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21645 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21647 ac_header_preproc=yes
21650 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21651 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21652 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21653 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21654 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21655 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21656 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21657 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21658 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21660 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21661 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21665 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21666 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21667 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21668 echo $ECHO_N "(cached
) $ECHO_C" >&6
21670 eval "$as_ac_Header=\
$ac_header_preproc"
21672 ac_res=`eval echo '${'$as_ac_Header'}'`
21673 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21674 echo "${ECHO_T}$ac_res" >&6; }
21677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21678 cat >>confdefs.h <<_ACEOF
21679 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21684 for ac_header in kerberos/des.h
21686 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21687 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21688 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21689 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21690 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21691 echo $ECHO_N "(cached
) $ECHO_C" >&6
21693 ac_res=`eval echo '${'$as_ac_Header'}'`
21694 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21695 echo "${ECHO_T}$ac_res" >&6; }
21697 # Is the header compilable?
21698 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21699 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21700 cat >conftest.$ac_ext <<_ACEOF
21703 cat confdefs.h >>conftest.$ac_ext
21704 cat >>conftest.$ac_ext <<_ACEOF
21705 /* end confdefs.h. */
21706 $ac_includes_default
21707 #include <$ac_header>
21709 rm -f conftest.$ac_objext
21710 if { (ac_try="$ac_compile"
21711 case "(($ac_try" in
21712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21713 *) ac_try_echo=$ac_try;;
21715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21716 (eval "$ac_compile") 2>conftest.er1
21718 grep -v '^ *+' conftest.er1 >conftest.err
21720 cat conftest.err >&5
21721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21722 (exit $ac_status); } && {
21723 test -z "$ac_c_werror_flag" ||
21724 test ! -s conftest.err
21725 } && test -s conftest.$ac_objext; then
21726 ac_header_compiler=yes
21728 echo "$as_me: failed program was
:" >&5
21729 sed 's/^/| /' conftest.$ac_ext >&5
21731 ac_header_compiler=no
21734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21735 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21736 echo "${ECHO_T}$ac_header_compiler" >&6; }
21738 # Is the header present?
21739 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21740 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21741 cat >conftest.$ac_ext <<_ACEOF
21744 cat confdefs.h >>conftest.$ac_ext
21745 cat >>conftest.$ac_ext <<_ACEOF
21746 /* end confdefs.h. */
21747 #include <$ac_header>
21749 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21750 case "(($ac_try" in
21751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21752 *) ac_try_echo=$ac_try;;
21754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21755 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21757 grep -v '^ *+' conftest.er1 >conftest.err
21759 cat conftest.err >&5
21760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21761 (exit $ac_status); } >/dev/null && {
21762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21763 test ! -s conftest.err
21765 ac_header_preproc=yes
21767 echo "$as_me: failed program was
:" >&5
21768 sed 's/^/| /' conftest.$ac_ext >&5
21770 ac_header_preproc=no
21773 rm -f conftest.err conftest.$ac_ext
21774 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21775 echo "${ECHO_T}$ac_header_preproc" >&6; }
21777 # So? What about this header?
21778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21780 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21781 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21782 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21784 ac_header_preproc=yes
21787 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21788 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21789 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21790 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21791 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21792 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21793 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21794 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21795 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21797 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21798 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21802 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21803 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21804 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21805 echo $ECHO_N "(cached
) $ECHO_C" >&6
21807 eval "$as_ac_Header=\
$ac_header_preproc"
21809 ac_res=`eval echo '${'$as_ac_Header'}'`
21810 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21811 echo "${ECHO_T}$ac_res" >&6; }
21814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21815 cat >>confdefs.h <<_ACEOF
21816 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21832 for ac_header in krb.h
21834 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21835 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21836 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21837 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21838 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21839 echo $ECHO_N "(cached
) $ECHO_C" >&6
21841 ac_res=`eval echo '${'$as_ac_Header'}'`
21842 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21843 echo "${ECHO_T}$ac_res" >&6; }
21845 # Is the header compilable?
21846 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21847 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21848 cat >conftest.$ac_ext <<_ACEOF
21851 cat confdefs.h >>conftest.$ac_ext
21852 cat >>conftest.$ac_ext <<_ACEOF
21853 /* end confdefs.h. */
21854 $ac_includes_default
21855 #include <$ac_header>
21857 rm -f conftest.$ac_objext
21858 if { (ac_try="$ac_compile"
21859 case "(($ac_try" in
21860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21861 *) ac_try_echo=$ac_try;;
21863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21864 (eval "$ac_compile") 2>conftest.er1
21866 grep -v '^ *+' conftest.er1 >conftest.err
21868 cat conftest.err >&5
21869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21870 (exit $ac_status); } && {
21871 test -z "$ac_c_werror_flag" ||
21872 test ! -s conftest.err
21873 } && test -s conftest.$ac_objext; then
21874 ac_header_compiler=yes
21876 echo "$as_me: failed program was
:" >&5
21877 sed 's/^/| /' conftest.$ac_ext >&5
21879 ac_header_compiler=no
21882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21883 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21884 echo "${ECHO_T}$ac_header_compiler" >&6; }
21886 # Is the header present?
21887 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21888 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21889 cat >conftest.$ac_ext <<_ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895 #include <$ac_header>
21897 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21898 case "(($ac_try" in
21899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21900 *) ac_try_echo=$ac_try;;
21902 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21903 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21905 grep -v '^ *+' conftest.er1 >conftest.err
21907 cat conftest.err >&5
21908 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21909 (exit $ac_status); } >/dev/null && {
21910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21911 test ! -s conftest.err
21913 ac_header_preproc=yes
21915 echo "$as_me: failed program was
:" >&5
21916 sed 's/^/| /' conftest.$ac_ext >&5
21918 ac_header_preproc=no
21921 rm -f conftest.err conftest.$ac_ext
21922 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21923 echo "${ECHO_T}$ac_header_preproc" >&6; }
21925 # So? What about this header?
21926 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21928 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21929 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21930 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21931 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21932 ac_header_preproc=yes
21935 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21936 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21937 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21938 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21939 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21940 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21941 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21942 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21943 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21944 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21945 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21946 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21950 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21951 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21952 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21953 echo $ECHO_N "(cached
) $ECHO_C" >&6
21955 eval "$as_ac_Header=\
$ac_header_preproc"
21957 ac_res=`eval echo '${'$as_ac_Header'}'`
21958 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21959 echo "${ECHO_T}$ac_res" >&6; }
21962 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21963 cat >>confdefs.h <<_ACEOF
21964 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21969 for ac_header in kerberosIV/krb.h
21971 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21972 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21973 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21974 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21975 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21976 echo $ECHO_N "(cached
) $ECHO_C" >&6
21978 ac_res=`eval echo '${'$as_ac_Header'}'`
21979 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21980 echo "${ECHO_T}$ac_res" >&6; }
21982 # Is the header compilable?
21983 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21984 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21985 cat >conftest.$ac_ext <<_ACEOF
21988 cat confdefs.h >>conftest.$ac_ext
21989 cat >>conftest.$ac_ext <<_ACEOF
21990 /* end confdefs.h. */
21991 $ac_includes_default
21992 #include <$ac_header>
21994 rm -f conftest.$ac_objext
21995 if { (ac_try="$ac_compile"
21996 case "(($ac_try" in
21997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21998 *) ac_try_echo=$ac_try;;
22000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22001 (eval "$ac_compile") 2>conftest.er1
22003 grep -v '^ *+' conftest.er1 >conftest.err
22005 cat conftest.err >&5
22006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22007 (exit $ac_status); } && {
22008 test -z "$ac_c_werror_flag" ||
22009 test ! -s conftest.err
22010 } && test -s conftest.$ac_objext; then
22011 ac_header_compiler=yes
22013 echo "$as_me: failed program was
:" >&5
22014 sed 's/^/| /' conftest.$ac_ext >&5
22016 ac_header_compiler=no
22019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22020 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22021 echo "${ECHO_T}$ac_header_compiler" >&6; }
22023 # Is the header present?
22024 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22025 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22026 cat >conftest.$ac_ext <<_ACEOF
22029 cat confdefs.h >>conftest.$ac_ext
22030 cat >>conftest.$ac_ext <<_ACEOF
22031 /* end confdefs.h. */
22032 #include <$ac_header>
22034 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22035 case "(($ac_try" in
22036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22037 *) ac_try_echo=$ac_try;;
22039 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22040 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22042 grep -v '^ *+' conftest.er1 >conftest.err
22044 cat conftest.err >&5
22045 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22046 (exit $ac_status); } >/dev/null && {
22047 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22048 test ! -s conftest.err
22050 ac_header_preproc=yes
22052 echo "$as_me: failed program was
:" >&5
22053 sed 's/^/| /' conftest.$ac_ext >&5
22055 ac_header_preproc=no
22058 rm -f conftest.err conftest.$ac_ext
22059 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22060 echo "${ECHO_T}$ac_header_preproc" >&6; }
22062 # So? What about this header?
22063 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22065 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22066 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22067 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22068 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22069 ac_header_preproc=yes
22072 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22073 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22074 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22075 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22076 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22077 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22078 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22079 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22080 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22081 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22082 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22083 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22087 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22088 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22089 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22090 echo $ECHO_N "(cached
) $ECHO_C" >&6
22092 eval "$as_ac_Header=\
$ac_header_preproc"
22094 ac_res=`eval echo '${'$as_ac_Header'}'`
22095 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22096 echo "${ECHO_T}$ac_res" >&6; }
22099 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22100 cat >>confdefs.h <<_ACEOF
22101 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22106 for ac_header in kerberos/krb.h
22108 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22109 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22110 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22111 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22112 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22113 echo $ECHO_N "(cached
) $ECHO_C" >&6
22115 ac_res=`eval echo '${'$as_ac_Header'}'`
22116 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22117 echo "${ECHO_T}$ac_res" >&6; }
22119 # Is the header compilable?
22120 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22121 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22122 cat >conftest.$ac_ext <<_ACEOF
22125 cat confdefs.h >>conftest.$ac_ext
22126 cat >>conftest.$ac_ext <<_ACEOF
22127 /* end confdefs.h. */
22128 $ac_includes_default
22129 #include <$ac_header>
22131 rm -f conftest.$ac_objext
22132 if { (ac_try="$ac_compile"
22133 case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22137 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_compile") 2>conftest.er1
22140 grep -v '^ *+' conftest.er1 >conftest.err
22142 cat conftest.err >&5
22143 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22144 (exit $ac_status); } && {
22145 test -z "$ac_c_werror_flag" ||
22146 test ! -s conftest.err
22147 } && test -s conftest.$ac_objext; then
22148 ac_header_compiler=yes
22150 echo "$as_me: failed program was
:" >&5
22151 sed 's/^/| /' conftest.$ac_ext >&5
22153 ac_header_compiler=no
22156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22157 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22158 echo "${ECHO_T}$ac_header_compiler" >&6; }
22160 # Is the header present?
22161 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22162 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22163 cat >conftest.$ac_ext <<_ACEOF
22166 cat confdefs.h >>conftest.$ac_ext
22167 cat >>conftest.$ac_ext <<_ACEOF
22168 /* end confdefs.h. */
22169 #include <$ac_header>
22171 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22172 case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22176 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22177 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22179 grep -v '^ *+' conftest.er1 >conftest.err
22181 cat conftest.err >&5
22182 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22183 (exit $ac_status); } >/dev/null && {
22184 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22185 test ! -s conftest.err
22187 ac_header_preproc=yes
22189 echo "$as_me: failed program was
:" >&5
22190 sed 's/^/| /' conftest.$ac_ext >&5
22192 ac_header_preproc=no
22195 rm -f conftest.err conftest.$ac_ext
22196 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22197 echo "${ECHO_T}$ac_header_preproc" >&6; }
22199 # So? What about this header?
22200 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22202 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22203 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22204 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22205 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22206 ac_header_preproc=yes
22209 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22210 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22211 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22212 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22213 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22214 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22215 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22216 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22217 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22218 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22219 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22220 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22224 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22225 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22226 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22227 echo $ECHO_N "(cached
) $ECHO_C" >&6
22229 eval "$as_ac_Header=\
$ac_header_preproc"
22231 ac_res=`eval echo '${'$as_ac_Header'}'`
22232 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22233 echo "${ECHO_T}$ac_res" >&6; }
22236 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22237 cat >>confdefs.h <<_ACEOF
22238 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22255 for ac_header in com_err.h
22257 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22258 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22259 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22260 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22261 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22262 echo $ECHO_N "(cached
) $ECHO_C" >&6
22264 ac_res=`eval echo '${'$as_ac_Header'}'`
22265 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22266 echo "${ECHO_T}$ac_res" >&6; }
22268 # Is the header compilable?
22269 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22270 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22271 cat >conftest.$ac_ext <<_ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h. */
22277 $ac_includes_default
22278 #include <$ac_header>
22280 rm -f conftest.$ac_objext
22281 if { (ac_try="$ac_compile"
22282 case "(($ac_try" in
22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284 *) ac_try_echo=$ac_try;;
22286 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22287 (eval "$ac_compile") 2>conftest.er1
22289 grep -v '^ *+' conftest.er1 >conftest.err
22291 cat conftest.err >&5
22292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22293 (exit $ac_status); } && {
22294 test -z "$ac_c_werror_flag" ||
22295 test ! -s conftest.err
22296 } && test -s conftest.$ac_objext; then
22297 ac_header_compiler=yes
22299 echo "$as_me: failed program was
:" >&5
22300 sed 's/^/| /' conftest.$ac_ext >&5
22302 ac_header_compiler=no
22305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22306 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22307 echo "${ECHO_T}$ac_header_compiler" >&6; }
22309 # Is the header present?
22310 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22311 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22312 cat >conftest.$ac_ext <<_ACEOF
22315 cat confdefs.h >>conftest.$ac_ext
22316 cat >>conftest.$ac_ext <<_ACEOF
22317 /* end confdefs.h. */
22318 #include <$ac_header>
22320 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22321 case "(($ac_try" in
22322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22323 *) ac_try_echo=$ac_try;;
22325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22326 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22328 grep -v '^ *+' conftest.er1 >conftest.err
22330 cat conftest.err >&5
22331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22332 (exit $ac_status); } >/dev/null && {
22333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22334 test ! -s conftest.err
22336 ac_header_preproc=yes
22338 echo "$as_me: failed program was
:" >&5
22339 sed 's/^/| /' conftest.$ac_ext >&5
22341 ac_header_preproc=no
22344 rm -f conftest.err conftest.$ac_ext
22345 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22346 echo "${ECHO_T}$ac_header_preproc" >&6; }
22348 # So? What about this header?
22349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22351 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22352 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22353 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22355 ac_header_preproc=yes
22358 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22359 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22360 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22361 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22362 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22363 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22364 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22365 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22366 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22368 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22369 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22373 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22374 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22375 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22376 echo $ECHO_N "(cached
) $ECHO_C" >&6
22378 eval "$as_ac_Header=\
$ac_header_preproc"
22380 ac_res=`eval echo '${'$as_ac_Header'}'`
22381 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22382 echo "${ECHO_T}$ac_res" >&6; }
22385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22386 cat >>confdefs.h <<_ACEOF
22387 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22396 # Solaris requires -lintl if you want strerror (which calls dgettext)
22397 # to return localized messages.
22399 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22400 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22401 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22402 echo $ECHO_N "(cached
) $ECHO_C" >&6
22404 ac_check_lib_save_LIBS=$LIBS
22405 LIBS="-lintl $LIBS"
22406 cat >conftest.$ac_ext <<_ACEOF
22409 cat confdefs.h >>conftest.$ac_ext
22410 cat >>conftest.$ac_ext <<_ACEOF
22411 /* end confdefs.h. */
22413 /* Override any GCC internal prototype to avoid an error.
22414 Use char because int might match the return type of a GCC
22415 builtin and then its argument prototype would still apply. */
22423 return dgettext ();
22428 rm -f conftest.$ac_objext conftest$ac_exeext
22429 if { (ac_try="$ac_link"
22430 case "(($ac_try" in
22431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22432 *) ac_try_echo=$ac_try;;
22434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22435 (eval "$ac_link") 2>conftest.er1
22437 grep -v '^ *+' conftest.er1 >conftest.err
22439 cat conftest.err >&5
22440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22441 (exit $ac_status); } && {
22442 test -z "$ac_c_werror_flag" ||
22443 test ! -s conftest.err
22444 } && test -s conftest$ac_exeext &&
22445 $as_test_x conftest$ac_exeext; then
22446 ac_cv_lib_intl_dgettext=yes
22448 echo "$as_me: failed program was
:" >&5
22449 sed 's/^/| /' conftest.$ac_ext >&5
22451 ac_cv_lib_intl_dgettext=no
22454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22455 conftest$ac_exeext conftest.$ac_ext
22456 LIBS=$ac_check_lib_save_LIBS
22458 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22459 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22460 if test $ac_cv_lib_intl_dgettext = yes; then
22461 cat >>confdefs.h <<_ACEOF
22462 #define HAVE_LIBINTL 1
22465 LIBS="-lintl $LIBS"
22470 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22471 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22472 if test "${emacs_cv_localtime_cache+set}" = set; then
22473 echo $ECHO_N "(cached
) $ECHO_C" >&6
22475 if test x$ac_cv_func_tzset = xyes; then
22476 if test "$cross_compiling" = yes; then
22477 # If we have tzset, assume the worst when cross-compiling.
22478 emacs_cv_localtime_cache=yes
22480 cat >conftest.$ac_ext <<_ACEOF
22483 cat confdefs.h >>conftest.$ac_ext
22484 cat >>conftest.$ac_ext <<_ACEOF
22485 /* end confdefs.h. */
22487 extern char **environ;
22491 for (to = from = environ; (*to = *from); from++)
22492 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22495 char TZ_GMT0[] = "TZ
=GMT0
";
22496 char TZ_PST8[] = "TZ
=PST8
";
22499 time_t now = time ((time_t *) 0);
22500 int hour_GMT0, hour_unset;
22501 if (putenv (TZ_GMT0) != 0)
22503 hour_GMT0 = localtime (&now)->tm_hour;
22505 hour_unset = localtime (&now)->tm_hour;
22506 if (putenv (TZ_PST8) != 0)
22508 if (localtime (&now)->tm_hour == hour_GMT0)
22511 if (localtime (&now)->tm_hour != hour_unset)
22516 rm -f conftest$ac_exeext
22517 if { (ac_try="$ac_link"
22518 case "(($ac_try" in
22519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22520 *) ac_try_echo=$ac_try;;
22522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22523 (eval "$ac_link") 2>&5
22525 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22526 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22527 { (case "(($ac_try" in
22528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529 *) ac_try_echo=$ac_try;;
22531 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22532 (eval "$ac_try") 2>&5
22534 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22535 (exit $ac_status); }; }; then
22536 emacs_cv_localtime_cache=no
22538 echo "$as_me: program exited with status
$ac_status" >&5
22539 echo "$as_me: failed program was
:" >&5
22540 sed 's/^/| /' conftest.$ac_ext >&5
22542 ( exit $ac_status )
22543 emacs_cv_localtime_cache=yes
22545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22550 # If we lack tzset, report that localtime does not cache TZ,
22551 # since we can't invalidate the cache if we don't have tzset.
22552 emacs_cv_localtime_cache=no
22555 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22556 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22557 if test $emacs_cv_localtime_cache = yes; then
22559 cat >>confdefs.h <<\_ACEOF
22560 #define LOCALTIME_CACHE 1
22565 if test "x
$HAVE_TIMEVAL" = xyes; then
22567 for ac_func in gettimeofday
22569 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22570 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22571 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22572 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22573 echo $ECHO_N "(cached
) $ECHO_C" >&6
22575 cat >conftest.$ac_ext <<_ACEOF
22578 cat confdefs.h >>conftest.$ac_ext
22579 cat >>conftest.$ac_ext <<_ACEOF
22580 /* end confdefs.h. */
22581 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22582 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22583 #define $ac_func innocuous_$ac_func
22585 /* System header to define __stub macros and hopefully few prototypes,
22586 which can conflict with char $ac_func (); below.
22587 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22588 <limits.h> exists even on freestanding compilers. */
22591 # include <limits.h>
22593 # include <assert.h>
22598 /* Override any GCC internal prototype to avoid an error.
22599 Use char because int might match the return type of a GCC
22600 builtin and then its argument prototype would still apply. */
22605 /* The GNU C library defines this for functions which it implements
22606 to always fail with ENOSYS. Some functions are actually named
22607 something starting with __ and the normal name is an alias. */
22608 #if defined __stub_$ac_func || defined __stub___$ac_func
22615 return $ac_func ();
22620 rm -f conftest.$ac_objext conftest$ac_exeext
22621 if { (ac_try="$ac_link"
22622 case "(($ac_try" in
22623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22624 *) ac_try_echo=$ac_try;;
22626 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22627 (eval "$ac_link") 2>conftest.er1
22629 grep -v '^ *+' conftest.er1 >conftest.err
22631 cat conftest.err >&5
22632 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22633 (exit $ac_status); } && {
22634 test -z "$ac_c_werror_flag" ||
22635 test ! -s conftest.err
22636 } && test -s conftest$ac_exeext &&
22637 $as_test_x conftest$ac_exeext; then
22638 eval "$as_ac_var=yes"
22640 echo "$as_me: failed program was
:" >&5
22641 sed 's/^/| /' conftest.$ac_ext >&5
22643 eval "$as_ac_var=no
"
22646 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22647 conftest$ac_exeext conftest.$ac_ext
22649 ac_res=`eval echo '${'$as_ac_var'}'`
22650 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22651 echo "${ECHO_T}$ac_res" >&6; }
22652 if test `eval echo '${'$as_ac_var'}'` = yes; then
22653 cat >>confdefs.h <<_ACEOF
22654 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22660 if test $ac_cv_func_gettimeofday = yes; then
22661 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22662 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22663 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22664 echo $ECHO_N "(cached
) $ECHO_C" >&6
22666 cat >conftest.$ac_ext <<_ACEOF
22669 cat confdefs.h >>conftest.$ac_ext
22670 cat >>conftest.$ac_ext <<_ACEOF
22671 /* end confdefs.h. */
22673 #ifdef TIME_WITH_SYS_TIME
22674 #include <sys/time.h>
22677 #ifdef HAVE_SYS_TIME_H
22678 #include <sys/time.h>
22686 struct timeval time;
22687 gettimeofday (&time, 0);
22692 rm -f conftest.$ac_objext
22693 if { (ac_try="$ac_compile"
22694 case "(($ac_try" in
22695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22696 *) ac_try_echo=$ac_try;;
22698 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22699 (eval "$ac_compile") 2>conftest.er1
22701 grep -v '^ *+' conftest.er1 >conftest.err
22703 cat conftest.err >&5
22704 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22705 (exit $ac_status); } && {
22706 test -z "$ac_c_werror_flag" ||
22707 test ! -s conftest.err
22708 } && test -s conftest.$ac_objext; then
22709 emacs_cv_gettimeofday_two_arguments=yes
22711 echo "$as_me: failed program was
:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22714 emacs_cv_gettimeofday_two_arguments=no
22717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22719 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22720 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22721 if test $emacs_cv_gettimeofday_two_arguments = no; then
22723 cat >>confdefs.h <<\_ACEOF
22724 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22732 { echo "$as_me:$LINENO: checking
for socket
" >&5
22733 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22734 if test "${ac_cv_func_socket+set}" = set; then
22735 echo $ECHO_N "(cached
) $ECHO_C" >&6
22737 cat >conftest.$ac_ext <<_ACEOF
22740 cat confdefs.h >>conftest.$ac_ext
22741 cat >>conftest.$ac_ext <<_ACEOF
22742 /* end confdefs.h. */
22743 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22745 #define socket innocuous_socket
22747 /* System header to define __stub macros and hopefully few prototypes,
22748 which can conflict with char socket (); below.
22749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22750 <limits.h> exists even on freestanding compilers. */
22753 # include <limits.h>
22755 # include <assert.h>
22760 /* Override any GCC internal prototype to avoid an error.
22761 Use char because int might match the return type of a GCC
22762 builtin and then its argument prototype would still apply. */
22767 /* The GNU C library defines this for functions which it implements
22768 to always fail with ENOSYS. Some functions are actually named
22769 something starting with __ and the normal name is an alias. */
22770 #if defined __stub_socket || defined __stub___socket
22782 rm -f conftest.$ac_objext conftest$ac_exeext
22783 if { (ac_try="$ac_link"
22784 case "(($ac_try" in
22785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22786 *) ac_try_echo=$ac_try;;
22788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22789 (eval "$ac_link") 2>conftest.er1
22791 grep -v '^ *+' conftest.er1 >conftest.err
22793 cat conftest.err >&5
22794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22795 (exit $ac_status); } && {
22796 test -z "$ac_c_werror_flag" ||
22797 test ! -s conftest.err
22798 } && test -s conftest$ac_exeext &&
22799 $as_test_x conftest$ac_exeext; then
22800 ac_cv_func_socket=yes
22802 echo "$as_me: failed program was
:" >&5
22803 sed 's/^/| /' conftest.$ac_ext >&5
22805 ac_cv_func_socket=no
22808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22809 conftest$ac_exeext conftest.$ac_ext
22811 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22812 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22813 if test $ac_cv_func_socket = yes; then
22819 if test $ok_so_far = yes; then
22820 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22821 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22822 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22823 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22824 echo $ECHO_N "(cached
) $ECHO_C" >&6
22826 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22827 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22829 # Is the header compilable?
22830 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22831 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22832 cat >conftest.$ac_ext <<_ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h. */
22838 $ac_includes_default
22839 #include <netinet/in.h>
22841 rm -f conftest.$ac_objext
22842 if { (ac_try="$ac_compile"
22843 case "(($ac_try" in
22844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22845 *) ac_try_echo=$ac_try;;
22847 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22848 (eval "$ac_compile") 2>conftest.er1
22850 grep -v '^ *+' conftest.er1 >conftest.err
22852 cat conftest.err >&5
22853 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22854 (exit $ac_status); } && {
22855 test -z "$ac_c_werror_flag" ||
22856 test ! -s conftest.err
22857 } && test -s conftest.$ac_objext; then
22858 ac_header_compiler=yes
22860 echo "$as_me: failed program was
:" >&5
22861 sed 's/^/| /' conftest.$ac_ext >&5
22863 ac_header_compiler=no
22866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22867 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22868 echo "${ECHO_T}$ac_header_compiler" >&6; }
22870 # Is the header present?
22871 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22872 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22873 cat >conftest.$ac_ext <<_ACEOF
22876 cat confdefs.h >>conftest.$ac_ext
22877 cat >>conftest.$ac_ext <<_ACEOF
22878 /* end confdefs.h. */
22879 #include <netinet/in.h>
22881 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22882 case "(($ac_try" in
22883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22884 *) ac_try_echo=$ac_try;;
22886 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22887 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22889 grep -v '^ *+' conftest.er1 >conftest.err
22891 cat conftest.err >&5
22892 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22893 (exit $ac_status); } >/dev/null && {
22894 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22895 test ! -s conftest.err
22897 ac_header_preproc=yes
22899 echo "$as_me: failed program was
:" >&5
22900 sed 's/^/| /' conftest.$ac_ext >&5
22902 ac_header_preproc=no
22905 rm -f conftest.err conftest.$ac_ext
22906 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22907 echo "${ECHO_T}$ac_header_preproc" >&6; }
22909 # So? What about this header?
22910 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22912 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22913 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22914 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22915 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22916 ac_header_preproc=yes
22919 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22920 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22921 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22922 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22923 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22924 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22925 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22926 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22927 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22928 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22929 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22930 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22934 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22935 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22936 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22937 echo $ECHO_N "(cached
) $ECHO_C" >&6
22939 ac_cv_header_netinet_in_h=$ac_header_preproc
22941 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22942 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22945 if test $ac_cv_header_netinet_in_h = yes; then
22953 if test $ok_so_far = yes; then
22954 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22955 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22956 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22957 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22958 echo $ECHO_N "(cached
) $ECHO_C" >&6
22960 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22961 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22963 # Is the header compilable?
22964 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22965 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22966 cat >conftest.$ac_ext <<_ACEOF
22969 cat confdefs.h >>conftest.$ac_ext
22970 cat >>conftest.$ac_ext <<_ACEOF
22971 /* end confdefs.h. */
22972 $ac_includes_default
22973 #include <arpa/inet.h>
22975 rm -f conftest.$ac_objext
22976 if { (ac_try="$ac_compile"
22977 case "(($ac_try" in
22978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22979 *) ac_try_echo=$ac_try;;
22981 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22982 (eval "$ac_compile") 2>conftest.er1
22984 grep -v '^ *+' conftest.er1 >conftest.err
22986 cat conftest.err >&5
22987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22988 (exit $ac_status); } && {
22989 test -z "$ac_c_werror_flag" ||
22990 test ! -s conftest.err
22991 } && test -s conftest.$ac_objext; then
22992 ac_header_compiler=yes
22994 echo "$as_me: failed program was
:" >&5
22995 sed 's/^/| /' conftest.$ac_ext >&5
22997 ac_header_compiler=no
23000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23001 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23002 echo "${ECHO_T}$ac_header_compiler" >&6; }
23004 # Is the header present?
23005 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
23006 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
23007 cat >conftest.$ac_ext <<_ACEOF
23010 cat confdefs.h >>conftest.$ac_ext
23011 cat >>conftest.$ac_ext <<_ACEOF
23012 /* end confdefs.h. */
23013 #include <arpa/inet.h>
23015 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23016 case "(($ac_try" in
23017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23018 *) ac_try_echo=$ac_try;;
23020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23021 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23023 grep -v '^ *+' conftest.er1 >conftest.err
23025 cat conftest.err >&5
23026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23027 (exit $ac_status); } >/dev/null && {
23028 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23029 test ! -s conftest.err
23031 ac_header_preproc=yes
23033 echo "$as_me: failed program was
:" >&5
23034 sed 's/^/| /' conftest.$ac_ext >&5
23036 ac_header_preproc=no
23039 rm -f conftest.err conftest.$ac_ext
23040 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23041 echo "${ECHO_T}$ac_header_preproc" >&6; }
23043 # So? What about this header?
23044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23046 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
23047 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23048 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
23049 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
23050 ac_header_preproc=yes
23053 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
23054 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
23055 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
23056 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
23057 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
23058 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
23059 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
23060 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
23061 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
23062 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
23063 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
23064 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
23068 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
23069 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
23070 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
23071 echo $ECHO_N "(cached
) $ECHO_C" >&6
23073 ac_cv_header_arpa_inet_h=$ac_header_preproc
23075 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
23076 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23079 if test $ac_cv_header_arpa_inet_h = yes; then
23087 if test $ok_so_far = yes; then
23089 cat >>confdefs.h <<\_ACEOF
23090 #define HAVE_INET_SOCKETS 1
23096 for ac_header in sys/ioctl.h
23098 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23099 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23100 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23101 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23102 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23103 echo $ECHO_N "(cached
) $ECHO_C" >&6
23105 ac_res=`eval echo '${'$as_ac_Header'}'`
23106 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23107 echo "${ECHO_T}$ac_res" >&6; }
23109 # Is the header compilable?
23110 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23111 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23112 cat >conftest.$ac_ext <<_ACEOF
23115 cat confdefs.h >>conftest.$ac_ext
23116 cat >>conftest.$ac_ext <<_ACEOF
23117 /* end confdefs.h. */
23118 $ac_includes_default
23119 #include <$ac_header>
23121 rm -f conftest.$ac_objext
23122 if { (ac_try="$ac_compile"
23123 case "(($ac_try" in
23124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23125 *) ac_try_echo=$ac_try;;
23127 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23128 (eval "$ac_compile") 2>conftest.er1
23130 grep -v '^ *+' conftest.er1 >conftest.err
23132 cat conftest.err >&5
23133 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23134 (exit $ac_status); } && {
23135 test -z "$ac_c_werror_flag" ||
23136 test ! -s conftest.err
23137 } && test -s conftest.$ac_objext; then
23138 ac_header_compiler=yes
23140 echo "$as_me: failed program was
:" >&5
23141 sed 's/^/| /' conftest.$ac_ext >&5
23143 ac_header_compiler=no
23146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23147 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23148 echo "${ECHO_T}$ac_header_compiler" >&6; }
23150 # Is the header present?
23151 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23152 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23153 cat >conftest.$ac_ext <<_ACEOF
23156 cat confdefs.h >>conftest.$ac_ext
23157 cat >>conftest.$ac_ext <<_ACEOF
23158 /* end confdefs.h. */
23159 #include <$ac_header>
23161 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23162 case "(($ac_try" in
23163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23164 *) ac_try_echo=$ac_try;;
23166 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23167 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23169 grep -v '^ *+' conftest.er1 >conftest.err
23171 cat conftest.err >&5
23172 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23173 (exit $ac_status); } >/dev/null && {
23174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23175 test ! -s conftest.err
23177 ac_header_preproc=yes
23179 echo "$as_me: failed program was
:" >&5
23180 sed 's/^/| /' conftest.$ac_ext >&5
23182 ac_header_preproc=no
23185 rm -f conftest.err conftest.$ac_ext
23186 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23187 echo "${ECHO_T}$ac_header_preproc" >&6; }
23189 # So? What about this header?
23190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23192 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23193 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23194 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23195 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23196 ac_header_preproc=yes
23199 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23200 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23201 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23202 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23203 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23204 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23205 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23206 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23207 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23208 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23209 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23210 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23214 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23215 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23216 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23217 echo $ECHO_N "(cached
) $ECHO_C" >&6
23219 eval "$as_ac_Header=\
$ac_header_preproc"
23221 ac_res=`eval echo '${'$as_ac_Header'}'`
23222 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23223 echo "${ECHO_T}$ac_res" >&6; }
23226 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23227 cat >>confdefs.h <<_ACEOF
23228 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23236 if test -f /usr/lpp/X11/bin/smt.exp; then
23238 cat >>confdefs.h <<\_ACEOF
23239 #define HAVE_AIX_SMT_EXP 1
23244 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
23245 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
23246 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23247 { echo "$as_me:$LINENO: result
: yes" >&5
23248 echo "${ECHO_T}yes" >&6; }
23250 cat >>confdefs.h <<\_ACEOF
23251 #define HAVE_DEV_PTMX 1
23255 { echo "$as_me:$LINENO: result
: no
" >&5
23256 echo "${ECHO_T}no
" >&6; }
23259 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
23260 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
23261 if test "${ac_cv_type_pid_t+set}" = set; then
23262 echo $ECHO_N "(cached
) $ECHO_C" >&6
23264 cat >conftest.$ac_ext <<_ACEOF
23267 cat confdefs.h >>conftest.$ac_ext
23268 cat >>conftest.$ac_ext <<_ACEOF
23269 /* end confdefs.h. */
23270 $ac_includes_default
23271 typedef pid_t ac__type_new_;
23275 if ((ac__type_new_ *) 0)
23277 if (sizeof (ac__type_new_))
23283 rm -f conftest.$ac_objext
23284 if { (ac_try="$ac_compile"
23285 case "(($ac_try" in
23286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23287 *) ac_try_echo=$ac_try;;
23289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23290 (eval "$ac_compile") 2>conftest.er1
23292 grep -v '^ *+' conftest.er1 >conftest.err
23294 cat conftest.err >&5
23295 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23296 (exit $ac_status); } && {
23297 test -z "$ac_c_werror_flag" ||
23298 test ! -s conftest.err
23299 } && test -s conftest.$ac_objext; then
23300 ac_cv_type_pid_t=yes
23302 echo "$as_me: failed program was
:" >&5
23303 sed 's/^/| /' conftest.$ac_ext >&5
23305 ac_cv_type_pid_t=no
23308 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23310 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
23311 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23312 if test $ac_cv_type_pid_t = yes; then
23316 cat >>confdefs.h <<_ACEOF
23323 for ac_header in vfork.h
23325 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23326 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23327 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23328 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23329 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23330 echo $ECHO_N "(cached
) $ECHO_C" >&6
23332 ac_res=`eval echo '${'$as_ac_Header'}'`
23333 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23334 echo "${ECHO_T}$ac_res" >&6; }
23336 # Is the header compilable?
23337 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23338 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23339 cat >conftest.$ac_ext <<_ACEOF
23342 cat confdefs.h >>conftest.$ac_ext
23343 cat >>conftest.$ac_ext <<_ACEOF
23344 /* end confdefs.h. */
23345 $ac_includes_default
23346 #include <$ac_header>
23348 rm -f conftest.$ac_objext
23349 if { (ac_try="$ac_compile"
23350 case "(($ac_try" in
23351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23352 *) ac_try_echo=$ac_try;;
23354 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23355 (eval "$ac_compile") 2>conftest.er1
23357 grep -v '^ *+' conftest.er1 >conftest.err
23359 cat conftest.err >&5
23360 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23361 (exit $ac_status); } && {
23362 test -z "$ac_c_werror_flag" ||
23363 test ! -s conftest.err
23364 } && test -s conftest.$ac_objext; then
23365 ac_header_compiler=yes
23367 echo "$as_me: failed program was
:" >&5
23368 sed 's/^/| /' conftest.$ac_ext >&5
23370 ac_header_compiler=no
23373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23374 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23375 echo "${ECHO_T}$ac_header_compiler" >&6; }
23377 # Is the header present?
23378 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23379 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23380 cat >conftest.$ac_ext <<_ACEOF
23383 cat confdefs.h >>conftest.$ac_ext
23384 cat >>conftest.$ac_ext <<_ACEOF
23385 /* end confdefs.h. */
23386 #include <$ac_header>
23388 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23389 case "(($ac_try" in
23390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23391 *) ac_try_echo=$ac_try;;
23393 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23394 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23396 grep -v '^ *+' conftest.er1 >conftest.err
23398 cat conftest.err >&5
23399 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23400 (exit $ac_status); } >/dev/null && {
23401 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23402 test ! -s conftest.err
23404 ac_header_preproc=yes
23406 echo "$as_me: failed program was
:" >&5
23407 sed 's/^/| /' conftest.$ac_ext >&5
23409 ac_header_preproc=no
23412 rm -f conftest.err conftest.$ac_ext
23413 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23414 echo "${ECHO_T}$ac_header_preproc" >&6; }
23416 # So? What about this header?
23417 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23419 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23420 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23421 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23422 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23423 ac_header_preproc=yes
23426 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23427 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23428 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23429 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23430 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23431 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23432 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23433 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23434 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23435 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23436 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23437 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23441 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23442 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23443 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23444 echo $ECHO_N "(cached
) $ECHO_C" >&6
23446 eval "$as_ac_Header=\
$ac_header_preproc"
23448 ac_res=`eval echo '${'$as_ac_Header'}'`
23449 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23450 echo "${ECHO_T}$ac_res" >&6; }
23453 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23454 cat >>confdefs.h <<_ACEOF
23455 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23464 for ac_func in fork vfork
23466 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23467 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23468 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23469 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23470 echo $ECHO_N "(cached
) $ECHO_C" >&6
23472 cat >conftest.$ac_ext <<_ACEOF
23475 cat confdefs.h >>conftest.$ac_ext
23476 cat >>conftest.$ac_ext <<_ACEOF
23477 /* end confdefs.h. */
23478 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23479 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23480 #define $ac_func innocuous_$ac_func
23482 /* System header to define __stub macros and hopefully few prototypes,
23483 which can conflict with char $ac_func (); below.
23484 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23485 <limits.h> exists even on freestanding compilers. */
23488 # include <limits.h>
23490 # include <assert.h>
23495 /* Override any GCC internal prototype to avoid an error.
23496 Use char because int might match the return type of a GCC
23497 builtin and then its argument prototype would still apply. */
23502 /* The GNU C library defines this for functions which it implements
23503 to always fail with ENOSYS. Some functions are actually named
23504 something starting with __ and the normal name is an alias. */
23505 #if defined __stub_$ac_func || defined __stub___$ac_func
23512 return $ac_func ();
23517 rm -f conftest.$ac_objext conftest$ac_exeext
23518 if { (ac_try="$ac_link"
23519 case "(($ac_try" in
23520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23521 *) ac_try_echo=$ac_try;;
23523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23524 (eval "$ac_link") 2>conftest.er1
23526 grep -v '^ *+' conftest.er1 >conftest.err
23528 cat conftest.err >&5
23529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23530 (exit $ac_status); } && {
23531 test -z "$ac_c_werror_flag" ||
23532 test ! -s conftest.err
23533 } && test -s conftest$ac_exeext &&
23534 $as_test_x conftest$ac_exeext; then
23535 eval "$as_ac_var=yes"
23537 echo "$as_me: failed program was
:" >&5
23538 sed 's/^/| /' conftest.$ac_ext >&5
23540 eval "$as_ac_var=no
"
23543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23544 conftest$ac_exeext conftest.$ac_ext
23546 ac_res=`eval echo '${'$as_ac_var'}'`
23547 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23548 echo "${ECHO_T}$ac_res" >&6; }
23549 if test `eval echo '${'$as_ac_var'}'` = yes; then
23550 cat >>confdefs.h <<_ACEOF
23551 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23557 if test "x
$ac_cv_func_fork" = xyes; then
23558 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23559 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23560 if test "${ac_cv_func_fork_works+set}" = set; then
23561 echo $ECHO_N "(cached
) $ECHO_C" >&6
23563 if test "$cross_compiling" = yes; then
23564 ac_cv_func_fork_works=cross
23566 cat >conftest.$ac_ext <<_ACEOF
23569 cat confdefs.h >>conftest.$ac_ext
23570 cat >>conftest.$ac_ext <<_ACEOF
23571 /* end confdefs.h. */
23572 $ac_includes_default
23577 /* By Ruediger Kuhlmann. */
23578 return fork () < 0;
23584 rm -f conftest$ac_exeext
23585 if { (ac_try="$ac_link"
23586 case "(($ac_try" in
23587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23588 *) ac_try_echo=$ac_try;;
23590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23591 (eval "$ac_link") 2>&5
23593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23594 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23595 { (case "(($ac_try" in
23596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23597 *) ac_try_echo=$ac_try;;
23599 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23600 (eval "$ac_try") 2>&5
23602 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23603 (exit $ac_status); }; }; then
23604 ac_cv_func_fork_works=yes
23606 echo "$as_me: program exited with status
$ac_status" >&5
23607 echo "$as_me: failed program was
:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23610 ( exit $ac_status )
23611 ac_cv_func_fork_works=no
23613 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23618 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23619 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23622 ac_cv_func_fork_works=$ac_cv_func_fork
23624 if test "x
$ac_cv_func_fork_works" = xcross; then
23626 *-*-amigaos* | *-*-msdosdjgpp*)
23627 # Override, as these systems have only a dummy fork() stub
23628 ac_cv_func_fork_works=no
23631 ac_cv_func_fork_works=yes
23634 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23635 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23637 ac_cv_func_vfork_works=$ac_cv_func_vfork
23638 if test "x
$ac_cv_func_vfork" = xyes; then
23639 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23640 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23641 if test "${ac_cv_func_vfork_works+set}" = set; then
23642 echo $ECHO_N "(cached
) $ECHO_C" >&6
23644 if test "$cross_compiling" = yes; then
23645 ac_cv_func_vfork_works=cross
23647 cat >conftest.$ac_ext <<_ACEOF
23650 cat confdefs.h >>conftest.$ac_ext
23651 cat >>conftest.$ac_ext <<_ACEOF
23652 /* end confdefs.h. */
23653 /* Thanks to Paul Eggert for this test. */
23654 $ac_includes_default
23655 #include <sys/wait.h>
23656 #ifdef HAVE_VFORK_H
23657 # include <vfork.h>
23659 /* On some sparc systems, changes by the child to local and incoming
23660 argument registers are propagated back to the parent. The compiler
23661 is told about this with #include <vfork.h>, but some compilers
23662 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23663 static variable whose address is put into a register that is
23664 clobbered by the vfork. */
23667 sparc_address_test (int arg)
23669 sparc_address_test (arg) int arg;
23672 static pid_t child;
23690 pid_t parent = getpid ();
23693 sparc_address_test (0);
23698 /* Here is another test for sparc vfork register problems. This
23699 test uses lots of local variables, at least as many local
23700 variables as main has allocated so far including compiler
23701 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23702 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23703 reuse the register of parent for one of the local variables,
23704 since it will think that parent can't possibly be used any more
23705 in this routine. Assigning to the local variable will thus
23706 munge parent in the parent process. */
23708 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23709 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23710 /* Convince the compiler that p..p7 are live; otherwise, it might
23711 use the same hardware register for all 8 local variables. */
23712 if (p != p1 || p != p2 || p != p3 || p != p4
23713 || p != p5 || p != p6 || p != p7)
23716 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23717 from child file descriptors. If the child closes a descriptor
23718 before it execs or exits, this munges the parent's descriptor
23719 as well. Test for this by closing stdout in the child. */
23720 _exit(close(fileno(stdout)) != 0);
23725 while (wait(&status) != child)
23728 /* Was there some problem with vforking? */
23731 /* Did the child fail? (This shouldn't happen.) */
23734 /* Did the vfork/compiler bug occur? */
23735 || parent != getpid()
23737 /* Did the file descriptor bug occur? */
23738 || fstat(fileno(stdout), &st) != 0
23743 rm -f conftest$ac_exeext
23744 if { (ac_try="$ac_link"
23745 case "(($ac_try" in
23746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23747 *) ac_try_echo=$ac_try;;
23749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23750 (eval "$ac_link") 2>&5
23752 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23753 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23754 { (case "(($ac_try" in
23755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23756 *) ac_try_echo=$ac_try;;
23758 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23759 (eval "$ac_try") 2>&5
23761 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23762 (exit $ac_status); }; }; then
23763 ac_cv_func_vfork_works=yes
23765 echo "$as_me: program exited with status
$ac_status" >&5
23766 echo "$as_me: failed program was
:" >&5
23767 sed 's/^/| /' conftest.$ac_ext >&5
23769 ( exit $ac_status )
23770 ac_cv_func_vfork_works=no
23772 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23777 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23778 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23781 if test "x
$ac_cv_func_fork_works" = xcross; then
23782 ac_cv_func_vfork_works=$ac_cv_func_vfork
23783 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23784 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23787 if test "x
$ac_cv_func_vfork_works" = xyes; then
23789 cat >>confdefs.h <<\_ACEOF
23790 #define HAVE_WORKING_VFORK 1
23795 cat >>confdefs.h <<\_ACEOF
23800 if test "x
$ac_cv_func_fork_works" = xyes; then
23802 cat >>confdefs.h <<\_ACEOF
23803 #define HAVE_WORKING_FORK 1
23809 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23810 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23811 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23812 echo $ECHO_N "(cached
) $ECHO_C" >&6
23814 cat >conftest.$ac_ext <<_ACEOF
23817 cat confdefs.h >>conftest.$ac_ext
23818 cat >>conftest.$ac_ext <<_ACEOF
23819 /* end confdefs.h. */
23820 #include <langinfo.h>
23824 char* cs = nl_langinfo(CODESET);
23829 rm -f conftest.$ac_objext conftest$ac_exeext
23830 if { (ac_try="$ac_link"
23831 case "(($ac_try" in
23832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23833 *) ac_try_echo=$ac_try;;
23835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23836 (eval "$ac_link") 2>conftest.er1
23838 grep -v '^ *+' conftest.er1 >conftest.err
23840 cat conftest.err >&5
23841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23842 (exit $ac_status); } && {
23843 test -z "$ac_c_werror_flag" ||
23844 test ! -s conftest.err
23845 } && test -s conftest$ac_exeext &&
23846 $as_test_x conftest$ac_exeext; then
23847 emacs_cv_langinfo_codeset=yes
23849 echo "$as_me: failed program was
:" >&5
23850 sed 's/^/| /' conftest.$ac_ext >&5
23852 emacs_cv_langinfo_codeset=no
23855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23856 conftest$ac_exeext conftest.$ac_ext
23859 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23860 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23861 if test $emacs_cv_langinfo_codeset = yes; then
23863 cat >>confdefs.h <<\_ACEOF
23864 #define HAVE_LANGINFO_CODESET 1
23869 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23870 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23871 if test "${ac_cv_type_size_t+set}" = set; then
23872 echo $ECHO_N "(cached
) $ECHO_C" >&6
23874 cat >conftest.$ac_ext <<_ACEOF
23877 cat confdefs.h >>conftest.$ac_ext
23878 cat >>conftest.$ac_ext <<_ACEOF
23879 /* end confdefs.h. */
23880 $ac_includes_default
23881 typedef size_t ac__type_new_;
23885 if ((ac__type_new_ *) 0)
23887 if (sizeof (ac__type_new_))
23893 rm -f conftest.$ac_objext
23894 if { (ac_try="$ac_compile"
23895 case "(($ac_try" in
23896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23897 *) ac_try_echo=$ac_try;;
23899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23900 (eval "$ac_compile") 2>conftest.er1
23902 grep -v '^ *+' conftest.er1 >conftest.err
23904 cat conftest.err >&5
23905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23906 (exit $ac_status); } && {
23907 test -z "$ac_c_werror_flag" ||
23908 test ! -s conftest.err
23909 } && test -s conftest.$ac_objext; then
23910 ac_cv_type_size_t=yes
23912 echo "$as_me: failed program was
:" >&5
23913 sed 's/^/| /' conftest.$ac_ext >&5
23915 ac_cv_type_size_t=no
23918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23920 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23921 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23922 if test $ac_cv_type_size_t = yes; then
23924 cat >>confdefs.h <<_ACEOF
23925 #define HAVE_SIZE_T 1
23932 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23933 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23934 if test "${ac_cv_type_mbstate_t+set}" = set; then
23935 echo $ECHO_N "(cached
) $ECHO_C" >&6
23937 cat >conftest.$ac_ext <<_ACEOF
23940 cat confdefs.h >>conftest.$ac_ext
23941 cat >>conftest.$ac_ext <<_ACEOF
23942 /* end confdefs.h. */
23943 $ac_includes_default
23944 # include <wchar.h>
23948 mbstate_t x; return sizeof x;
23953 rm -f conftest.$ac_objext
23954 if { (ac_try="$ac_compile"
23955 case "(($ac_try" in
23956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23957 *) ac_try_echo=$ac_try;;
23959 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23960 (eval "$ac_compile") 2>conftest.er1
23962 grep -v '^ *+' conftest.er1 >conftest.err
23964 cat conftest.err >&5
23965 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23966 (exit $ac_status); } && {
23967 test -z "$ac_c_werror_flag" ||
23968 test ! -s conftest.err
23969 } && test -s conftest.$ac_objext; then
23970 ac_cv_type_mbstate_t=yes
23972 echo "$as_me: failed program was
:" >&5
23973 sed 's/^/| /' conftest.$ac_ext >&5
23975 ac_cv_type_mbstate_t=no
23978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23980 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23981 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23982 if test $ac_cv_type_mbstate_t = yes; then
23984 cat >>confdefs.h <<\_ACEOF
23985 #define HAVE_MBSTATE_T 1
23990 cat >>confdefs.h <<\_ACEOF
23991 #define mbstate_t int
23996 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23997 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23998 if test "${emacs_cv_c_restrict+set}" = set; then
23999 echo $ECHO_N "(cached
) $ECHO_C" >&6
24001 cat >conftest.$ac_ext <<_ACEOF
24004 cat confdefs.h >>conftest.$ac_ext
24005 cat >>conftest.$ac_ext <<_ACEOF
24006 /* end confdefs.h. */
24007 void fred (int *restrict x);
24016 rm -f conftest.$ac_objext
24017 if { (ac_try="$ac_compile"
24018 case "(($ac_try" in
24019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020 *) ac_try_echo=$ac_try;;
24022 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24023 (eval "$ac_compile") 2>conftest.er1
24025 grep -v '^ *+' conftest.er1 >conftest.err
24027 cat conftest.err >&5
24028 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24029 (exit $ac_status); } && {
24030 test -z "$ac_c_werror_flag" ||
24031 test ! -s conftest.err
24032 } && test -s conftest.$ac_objext; then
24033 emacs_cv_c_restrict=yes
24035 echo "$as_me: failed program was
:" >&5
24036 sed 's/^/| /' conftest.$ac_ext >&5
24038 cat >conftest.$ac_ext <<_ACEOF
24041 cat confdefs.h >>conftest.$ac_ext
24042 cat >>conftest.$ac_ext <<_ACEOF
24043 /* end confdefs.h. */
24044 void fred (int *__restrict x);
24053 rm -f conftest.$ac_objext
24054 if { (ac_try="$ac_compile"
24055 case "(($ac_try" in
24056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24057 *) ac_try_echo=$ac_try;;
24059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24060 (eval "$ac_compile") 2>conftest.er1
24062 grep -v '^ *+' conftest.er1 >conftest.err
24064 cat conftest.err >&5
24065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24066 (exit $ac_status); } && {
24067 test -z "$ac_c_werror_flag" ||
24068 test ! -s conftest.err
24069 } && test -s conftest.$ac_objext; then
24070 emacs_cv_c_restrict=__restrict
24072 echo "$as_me: failed program was
:" >&5
24073 sed 's/^/| /' conftest.$ac_ext >&5
24075 emacs_cv_c_restrict=no
24078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24083 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
24084 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24085 case "$emacs_cv_c_restrict" in
24086 yes) emacs_restrict=restrict;;
24087 no) emacs_restrict="";;
24088 *) emacs_restrict="$emacs_cv_c_restrict";;
24090 if test "$emacs_restrict" != __restrict; then
24092 cat >>confdefs.h <<_ACEOF
24093 #define __restrict $emacs_restrict
24098 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
24099 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
24100 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24101 echo $ECHO_N "(cached
) $ECHO_C" >&6
24103 cat >conftest.$ac_ext <<_ACEOF
24106 cat confdefs.h >>conftest.$ac_ext
24107 cat >>conftest.$ac_ext <<_ACEOF
24108 /* end confdefs.h. */
24109 void fred (int x[__restrict]);
24118 rm -f conftest.$ac_objext
24119 if { (ac_try="$ac_compile"
24120 case "(($ac_try" in
24121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24122 *) ac_try_echo=$ac_try;;
24124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24125 (eval "$ac_compile") 2>conftest.er1
24127 grep -v '^ *+' conftest.er1 >conftest.err
24129 cat conftest.err >&5
24130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24131 (exit $ac_status); } && {
24132 test -z "$ac_c_werror_flag" ||
24133 test ! -s conftest.err
24134 } && test -s conftest.$ac_objext; then
24135 emacs_cv_c_restrict_arr=yes
24137 echo "$as_me: failed program was
:" >&5
24138 sed 's/^/| /' conftest.$ac_ext >&5
24140 emacs_cv_c_restrict_arr=no
24143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24145 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
24146 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24147 if test "$emacs_cv_c_restrict_arr" = yes; then
24149 cat >>confdefs.h <<\_ACEOF
24150 #define __restrict_arr __restrict
24157 # Set up the CFLAGS for real compilation, so we can substitute it.
24158 CFLAGS="$REAL_CFLAGS"
24159 CPPFLAGS="$REAL_CPPFLAGS"
24161 #### Find out which version of Emacs this is.
24162 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24163 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
24164 if test x"${version}" = x; then
24165 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
24166 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
24167 { (exit 1); exit 1; }; }
24170 ### Specify what sort of things we'll be editing into Makefile and config.h.
24171 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24208 cat >>confdefs.h <<_ACEOF
24209 #define EMACS_CONFIGURATION "${canonical}"
24213 cat >>confdefs.h <<_ACEOF
24214 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24218 cat >>confdefs.h <<_ACEOF
24219 #define config_machfile "${machfile}"
24223 cat >>confdefs.h <<_ACEOF
24224 #define config_opsysfile "${opsysfile}"
24228 cat >>confdefs.h <<_ACEOF
24229 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24233 cat >>confdefs.h <<_ACEOF
24234 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24238 cat >>confdefs.h <<_ACEOF
24239 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24243 cat >>confdefs.h <<_ACEOF
24244 #define UNEXEC_SRC ${UNEXEC_SRC}
24248 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24250 cat >>confdefs.h <<\_ACEOF
24251 #define HAVE_X_WINDOWS 1
24255 if test "${USE_X_TOOLKIT}" != "none
" ; then
24257 cat >>confdefs.h <<\_ACEOF
24258 #define USE_X_TOOLKIT 1
24261 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
24263 cat >>confdefs.h <<\_ACEOF
24264 #define USE_LUCID 1
24267 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
24269 cat >>confdefs.h <<\_ACEOF
24270 #define USE_MOTIF 1
24275 if test "${HAVE_X11}" = "yes" ; then
24277 cat >>confdefs.h <<\_ACEOF
24282 if test "${HAVE_MENUS}" = "yes" ; then
24284 cat >>confdefs.h <<\_ACEOF
24285 #define HAVE_MENUS 1
24289 if test "${GNU_MALLOC}" = "yes" ; then
24291 cat >>confdefs.h <<\_ACEOF
24292 #define GNU_MALLOC 1
24296 if test "${REL_ALLOC}" = "yes" ; then
24298 cat >>confdefs.h <<\_ACEOF
24299 #define REL_ALLOC 1
24309 #### Report on what we decided to do.
24310 #### Report GTK as a toolkit, even if it doesn't use Xt.
24311 #### It makes printing result more understandable as using GTK sets
24312 #### toolkit_scroll_bars to yes by default.
24313 if test "${HAVE_GTK}" = "yes"; then
24318 Configured
for \
`${canonical}'.
24320 Where should the build process find the source code? ${srcdir}
24321 What operating system and machine description files should Emacs use?
24322 \`${opsysfile}' and \`${machfile}'
24323 What compiler should emacs be built with?
${CC} ${CFLAGS}
24324 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
24325 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
24326 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
24327 What window system should Emacs use?
${window_system}
24328 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
24330 if test -n "${x_includes}"; then
24331 echo " Where
do we
find X Windows header files?
${x_includes}"
24333 echo " Where
do we
find X Windows header files? Standard
dirs"
24335 if test -n "${x_libraries}"; then
24336 echo " Where
do we
find X Windows libraries?
${x_libraries}"
24338 echo " Where
do we
find X Windows libraries? Standard
dirs"
24341 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
24342 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
24343 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
24344 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
24345 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
24346 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
24347 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
24348 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
24349 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
24351 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
24352 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
24353 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
24354 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
24356 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
24359 if test $USE_XASSERTS = yes; then
24360 echo " Compiling with asserts turned on.
"
24361 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24366 if test "$USE_X_TOOLKIT" = GTK; then
24367 case "$canonical" in
24369 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
24370 will probably get a crash on startup. If this happens
, please use another
24371 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
24377 if test "$HAVE_CARBON" = "yes"; then
24379 echo "Warning
: The Mac Carbon port is currently unsupported and has
24380 known problems. It is not recommended
for use by non-developers.
24381 Read the emacs-devel archives
for more information.
"
24385 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24386 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24391 # Remove any trailing slashes in these variables.
24392 test "${prefix}" != NONE &&
24393 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24394 test "${exec_prefix}" != NONE &&
24395 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24397 # Now get this: Some word that is part of the ${srcdir} directory name
24398 # or the ${configuration} value might, just might, happen to be an
24399 # identifier like `sun4' or `i386' or something, and be predefined by
24400 # the C preprocessor to some helpful value like 1, or maybe the empty
24401 # string. Needless to say consequent macro substitutions are less
24402 # than conducive to the makefile finding the correct directory.
24403 cpp_undefs="`echo $srcdir $configuration $canonical |
24404 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24405 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24407 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24408 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24409 ## from Makefile.c can correctly provide the arg `-traditional' to the
24412 cat >conftest.$ac_ext <<_ACEOF
24415 cat confdefs.h >>conftest.$ac_ext
24416 cat >>conftest.$ac_ext <<_ACEOF
24417 /* end confdefs.h. */
24420 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24421 $EGREP "yes..
yes" >/dev/null 2>&1; then
24422 CPP_NEED_TRADITIONAL=no
24424 CPP_NEED_TRADITIONAL=yes
24429 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
"
24431 ac_config_commands="$ac_config_commands default
"
24433 cat >confcache <<\_ACEOF
24434 # This file is a shell script that caches the results of configure
24435 # tests run on this system so they can be shared between configure
24436 # scripts and configure runs, see configure's option --config-cache.
24437 # It is not useful on other systems. If it contains results you don't
24438 # want to keep, you may remove or edit it.
24440 # config.status only pays attention to the cache file if you give it
24441 # the --recheck option to rerun configure.
24443 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24444 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24445 # following values.
24449 # The following way of writing the cache mishandles newlines in values,
24450 # but we know of no workaround that is simple, portable, and efficient.
24451 # So, we kill variables containing newlines.
24452 # Ultrix sh set writes to stderr and can't be redirected directly,
24453 # and sets the high bit in the cache file unless we assign to the vars.
24455 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24456 eval ac_val=\$$ac_var
24460 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24461 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24464 _ | IFS | as_nl) ;; #(
24465 *) $as_unset $ac_var ;;
24471 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24472 *${as_nl}ac_space=\ *)
24473 # `set' does not quote correctly, so add quotes (double-quote
24474 # substitution turns \\\\ into \\, and sed turns \\ into \).
24477 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24480 # `set' quotes correctly as required by POSIX, so do not add quotes.
24481 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24490 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24492 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24494 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24495 if test -w "$cache_file"; then
24496 test "x
$cache_file" != "x
/dev
/null
" &&
24497 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24498 echo "$as_me: updating cache
$cache_file" >&6;}
24499 cat confcache >$cache_file
24501 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24502 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24507 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24508 # Let make expand exec_prefix.
24509 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24511 DEFS=-DHAVE_CONFIG_H
24515 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24516 # 1. Remove the extension, and $U if already installed.
24517 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24518 ac_i=`echo "$ac_i" | sed "$ac_script"`
24519 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24520 # will be set to the directory where LIBOBJS objects are built.
24521 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24522 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24524 LIBOBJS=$ac_libobjs
24526 LTLIBOBJS=$ac_ltlibobjs
24530 : ${CONFIG_STATUS=./config.status}
24531 ac_clean_files_save=$ac_clean_files
24532 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24533 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24534 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24535 cat >$CONFIG_STATUS <<_ACEOF
24537 # Generated by $as_me.
24538 # Run this file to recreate the current configuration.
24539 # Compiler output produced by configure, useful for debugging
24540 # configure, is in config.log if it exists.
24543 ac_cs_recheck=false
24545 SHELL=\${CONFIG_SHELL-$SHELL}
24548 cat >>$CONFIG_STATUS <<\_ACEOF
24549 ## --------------------- ##
24550 ## M4sh Initialization. ##
24551 ## --------------------- ##
24553 # Be more Bourne compatible
24554 DUALCASE=1; export DUALCASE # for MKS sh
24555 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24558 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24559 # is contrary to our usage. Disable this feature.
24560 alias -g '${1+"$@"}'='"$@
"'
24561 setopt NO_GLOB_SUBST
24563 case `(set -o) 2>/dev/null` in
24564 *posix*) set -o posix ;;
24573 # Avoid depending upon Character Ranges.
24574 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24575 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24576 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24577 as_cr_digits='0123456789'
24578 as_cr_alnum=$as_cr_Letters$as_cr_digits
24580 # The user is always right.
24581 if test "${PATH_SEPARATOR+set}" != set; then
24582 echo "#! /bin/sh" >conf$$.sh
24583 echo "exit 0" >>conf$$.sh
24585 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24593 # Support unset when possible.
24594 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24602 # We need space, tab and new line, in precisely that order. Quoting is
24603 # there to prevent editors from complaining about space-tab.
24604 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24605 # splitting by setting IFS to empty value.)
24610 # Find who we are. Look in the path if we contain no directory separator.
24612 *[\\/]* ) as_myself
=$0 ;;
24613 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24614 for as_dir
in $PATH
24617 test -z "$as_dir" && as_dir
=.
24618 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24624 # We did not find ourselves, most probably we were run as `sh COMMAND'
24625 # in which case we are not to be found in the path.
24626 if test "x$as_myself" = x
; then
24629 if test ! -f "$as_myself"; then
24630 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24631 { (exit 1); exit 1; }
24634 # Work around bugs in pre-3.0 UWIN ksh.
24635 for as_var
in ENV MAIL MAILPATH
24636 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24644 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24645 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24646 LC_TELEPHONE LC_TIME
24648 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24649 eval $as_var=C
; export $as_var
24651 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24655 # Required to use basename.
24656 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24657 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24663 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24664 as_basename
=basename
24670 # Name of the executable.
24671 as_me
=`$as_basename -- "$0" ||
24672 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24673 X"$0" : 'X\(//\)$' \| \
24674 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24676 sed '/^.*\/\([^/][^/]*\)\/*$/{
24695 as_lineno_1
=$LINENO
24696 as_lineno_2
=$LINENO
24697 test "x$as_lineno_1" != "x$as_lineno_2" &&
24698 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24700 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24701 # uniformly replaced by the line number. The first 'sed' inserts a
24702 # line-number line after each line using $LINENO; the second 'sed'
24703 # does the real work. The second script uses 'N' to pair each
24704 # line-number line with the line containing $LINENO, and appends
24705 # trailing '-' during substitution so that $LINENO is not a special
24706 # case at line end.
24707 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24708 # scripts with optimization help from Paolo Bonzini. Blame Lee
24709 # E. McMahon (1931-1989) for sed's syntax. :-)
24721 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24724 ' >$as_me.lineno
&&
24725 chmod +x
"$as_me.lineno" ||
24726 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24727 { (exit 1); exit 1; }; }
24729 # Don't try to exec as it changes $[0], causing all sort of problems
24730 # (the dirname of $[0] is not the place where we might find the
24731 # original and so on. Autoconf is especially sensitive to this).
24732 .
"./$as_me.lineno"
24733 # Exit status is that of the last command.
24738 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24744 ECHO_C
= ECHO_N
= ECHO_T
=
24745 case `echo -n x` in
24747 case `echo 'x\c'` in
24748 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24755 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24756 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24762 rm -f conf$$ conf$$.exe conf$$.
file
24763 if test -d conf$$.dir
; then
24764 rm -f conf$$.dir
/conf$$.
file
24770 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24772 # ... but there are two gotchas:
24773 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24774 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24775 # In both cases, we have to default to `cp -p'.
24776 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24778 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24783 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24784 rmdir conf$$.dir
2>/dev
/null
24786 if mkdir
-p .
2>/dev
/null
; then
24789 test -d .
/-p && rmdir .
/-p
24793 if test -x / >/dev
/null
2>&1; then
24794 as_test_x
='test -x'
24796 if ls -dL / >/dev
/null
2>&1; then
24803 if test -d "$1"; then
24809 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24810 ???[sx]*):;;*)false;;esac;fi
24814 as_executable_p
=$as_test_x
24816 # Sed expression to map a string onto a valid CPP name.
24817 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24819 # Sed expression to map a string onto a valid variable name.
24820 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24825 # Save the log message, to keep $[0] and so on meaningful, and to
24826 # report actual input values of CONFIG_FILES etc. instead of their
24827 # values after options handling.
24829 This file was extended by emacs $as_me 23.0.60, which was
24830 generated by GNU Autoconf 2.61. Invocation command line was
24832 CONFIG_FILES = $CONFIG_FILES
24833 CONFIG_HEADERS = $CONFIG_HEADERS
24834 CONFIG_LINKS = $CONFIG_LINKS
24835 CONFIG_COMMANDS = $CONFIG_COMMANDS
24838 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24843 cat >>$CONFIG_STATUS <<_ACEOF
24844 # Files that config.status was made for.
24845 config_files="$ac_config_files"
24846 config_headers="$ac_config_headers"
24847 config_commands="$ac_config_commands"
24851 cat >>$CONFIG_STATUS <<\_ACEOF
24853 \`$as_me' instantiates files from templates according to the
24854 current configuration.
24856 Usage: $0 [OPTIONS] [FILE]...
24858 -h, --help print this help, then exit
24859 -V, --version print version number and configuration settings, then exit
24860 -q, --quiet do not print progress messages
24861 -d, --debug don't remove temporary files
24862 --recheck update $as_me by reconfiguring in the same conditions
24863 --file=FILE[:TEMPLATE]
24864 instantiate the configuration file FILE
24865 --header=FILE[:TEMPLATE]
24866 instantiate the configuration header FILE
24868 Configuration files:
24871 Configuration headers:
24874 Configuration commands:
24877 Report bugs to <bug-autoconf@gnu.org>."
24880 cat >>$CONFIG_STATUS <<_ACEOF
24882 emacs config.status 23.0.60
24883 configured by $0, generated by GNU Autoconf 2.61,
24884 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24886 Copyright (C) 2006 Free Software Foundation, Inc.
24887 This config.status script is free software; the Free Software Foundation
24888 gives unlimited permission to copy, distribute and modify it."
24895 cat >>$CONFIG_STATUS <<\_ACEOF
24896 # If no file are specified by the user, then we need to provide default
24897 # value. By we need to know if files were specified by the user.
24903 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24904 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24915 # Handling of the options.
24916 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24918 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24919 echo "$ac_cs_version"; exit ;;
24920 --debug |
--debu |
--deb |
--de |
--d |
-d )
24922 --file |
--fil |
--fi |
--f )
24924 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24925 ac_need_defaults
=false
;;
24926 --header |
--heade |
--head |
--hea )
24928 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24929 ac_need_defaults
=false
;;
24931 # Conflict between --help and --header
24932 { echo "$as_me: error: ambiguous option: $1
24933 Try \`$0 --help' for more information." >&2
24934 { (exit 1); exit 1; }; };;
24935 --help |
--hel |
-h )
24936 echo "$ac_cs_usage"; exit ;;
24937 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24938 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24941 # This is an error.
24942 -*) { echo "$as_me: error: unrecognized option: $1
24943 Try \`$0 --help' for more information." >&2
24944 { (exit 1); exit 1; }; } ;;
24946 *) ac_config_targets
="$ac_config_targets $1"
24947 ac_need_defaults
=false
;;
24953 ac_configure_extra_args
=
24955 if $ac_cs_silent; then
24957 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24961 cat >>$CONFIG_STATUS <<_ACEOF
24962 if \$ac_cs_recheck; then
24963 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24964 CONFIG_SHELL=$SHELL
24965 export CONFIG_SHELL
24966 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24970 cat >>$CONFIG_STATUS <<\_ACEOF
24974 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24975 ## Running $as_me. ##
24981 cat >>$CONFIG_STATUS <<_ACEOF
24985 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24989 cat >>$CONFIG_STATUS <<\_ACEOF
24991 # Handling of arguments.
24992 for ac_config_target
in $ac_config_targets
24994 case $ac_config_target in
24995 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24996 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24997 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24998 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24999 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
25000 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
25001 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
25002 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
25003 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
25004 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
25005 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
25006 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
25007 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
25009 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
25010 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
25011 { (exit 1); exit 1; }; };;
25016 # If the user did not use the arguments to specify the items to instantiate,
25017 # then the envvar interface is used. Set only those that are not.
25018 # We use the long form for the default assignment because of an extremely
25019 # bizarre bug on SunOS 4.1.3.
25020 if $ac_need_defaults; then
25021 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
25022 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
25023 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
25026 # Have a temporary directory for convenience. Make it in the build tree
25027 # simply because there is no reason against having it here, and in addition,
25028 # creating and moving files from /tmp can sometimes cause problems.
25029 # Hook for its removal unless debugging.
25030 # Note that there is a small window in which the directory will not be cleaned:
25031 # after its creation but before its name has been assigned to `$tmp'.
25035 trap 'exit_status=$?
25036 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25038 trap '{ (exit 1); exit 1; }' 1 2 13 15
25040 # Create a (secure) tmp directory for tmp files.
25043 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25044 test -n "$tmp" && test -d "$tmp"
25047 tmp
=.
/conf$$
-$RANDOM
25048 (umask 077 && mkdir
"$tmp")
25051 echo "$me: cannot create a temporary directory in ." >&2
25052 { (exit 1); exit 1; }
25056 # Set up the sed scripts for CONFIG_FILES section.
25059 # No need to generate the scripts if there are no CONFIG_FILES.
25060 # This happens for instance when ./config.status config.h
25061 if test -n "$CONFIG_FILES"; then
25068 for ac_last_try
in false false false false false
:; do
25069 cat >conf$
$subs.
sed <<_ACEOF
25070 SHELL!$SHELL$ac_delim
25071 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25072 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25073 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25074 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25075 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25076 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25077 exec_prefix!$exec_prefix$ac_delim
25078 prefix!$prefix$ac_delim
25079 program_transform_name!$program_transform_name$ac_delim
25080 bindir!$bindir$ac_delim
25081 sbindir!$sbindir$ac_delim
25082 libexecdir!$libexecdir$ac_delim
25083 datarootdir!$datarootdir$ac_delim
25084 datadir!$datadir$ac_delim
25085 sysconfdir!$sysconfdir$ac_delim
25086 sharedstatedir!$sharedstatedir$ac_delim
25087 localstatedir!$localstatedir$ac_delim
25088 includedir!$includedir$ac_delim
25089 oldincludedir!$oldincludedir$ac_delim
25090 docdir!$docdir$ac_delim
25091 infodir!$infodir$ac_delim
25092 htmldir!$htmldir$ac_delim
25093 dvidir!$dvidir$ac_delim
25094 pdfdir!$pdfdir$ac_delim
25095 psdir!$psdir$ac_delim
25096 libdir!$libdir$ac_delim
25097 localedir!$localedir$ac_delim
25098 mandir!$mandir$ac_delim
25099 DEFS!$DEFS$ac_delim
25100 ECHO_C!$ECHO_C$ac_delim
25101 ECHO_N!$ECHO_N$ac_delim
25102 ECHO_T!$ECHO_T$ac_delim
25103 LIBS!$LIBS$ac_delim
25104 build_alias!$build_alias$ac_delim
25105 host_alias!$host_alias$ac_delim
25106 target_alias!$target_alias$ac_delim
25107 MAINT!$MAINT$ac_delim
25108 build!$build$ac_delim
25109 build_cpu!$build_cpu$ac_delim
25110 build_vendor!$build_vendor$ac_delim
25111 build_os!$build_os$ac_delim
25112 host!$host$ac_delim
25113 host_cpu!$host_cpu$ac_delim
25114 host_vendor!$host_vendor$ac_delim
25115 host_os!$host_os$ac_delim
25117 CFLAGS!$CFLAGS$ac_delim
25118 LDFLAGS!$LDFLAGS$ac_delim
25119 CPPFLAGS!$CPPFLAGS$ac_delim
25120 ac_ct_CC!$ac_ct_CC$ac_delim
25121 EXEEXT!$EXEEXT$ac_delim
25122 OBJEXT!$OBJEXT$ac_delim
25124 GREP!$GREP$ac_delim
25125 EGREP!$EGREP$ac_delim
25126 LN_S!$LN_S$ac_delim
25127 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25128 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25129 INSTALL_DATA!$INSTALL_DATA$ac_delim
25130 RANLIB!$RANLIB$ac_delim
25131 INSTALL_INFO!$INSTALL_INFO$ac_delim
25132 GZIP_PROG!$GZIP_PROG$ac_delim
25133 MAKEINFO!$MAKEINFO$ac_delim
25134 LIBSOUND!$LIBSOUND$ac_delim
25135 PKG_CONFIG!$PKG_CONFIG$ac_delim
25136 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25137 ALSA_LIBS!$ALSA_LIBS$ac_delim
25138 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25139 SET_MAKE!$SET_MAKE$ac_delim
25140 XMKMF!$XMKMF$ac_delim
25141 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25142 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25143 RSVG_LIBS!$RSVG_LIBS$ac_delim
25144 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25145 GTK_LIBS!$GTK_LIBS$ac_delim
25146 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25147 DBUS_LIBS!$DBUS_LIBS$ac_delim
25148 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25149 XFT_LIBS!$XFT_LIBS$ac_delim
25150 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25151 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25152 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25153 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25154 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25155 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25156 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25157 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25158 ALLOCA!$ALLOCA$ac_delim
25159 liblockfile!$liblockfile$ac_delim
25160 LIBOBJS!$LIBOBJS$ac_delim
25161 NEED_SETGID!$NEED_SETGID$ac_delim
25162 KMEM_GROUP!$KMEM_GROUP$ac_delim
25163 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25164 GETOPT_H!$GETOPT_H$ac_delim
25165 GETOPTOBJS!$GETOPTOBJS$ac_delim
25166 version!$version$ac_delim
25169 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25171 elif $ac_last_try; then
25172 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25173 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25174 { (exit 1); exit 1; }; }
25176 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25180 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25181 if test -n "$ac_eof"; then
25182 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25183 ac_eof
=`expr $ac_eof + 1`
25186 cat >>$CONFIG_STATUS <<_ACEOF
25187 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25188 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25191 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25192 s/^/s,@/; s/!/@,|#_!!_#|/
25195 s/'"$ac_delim"'$/,g/; t
25197 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25198 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25199 rm -f conf$
$subs.
sed
25200 cat >>$CONFIG_STATUS <<_ACEOF
25206 for ac_last_try
in false false false false false
:; do
25207 cat >conf$
$subs.
sed <<_ACEOF
25208 configuration!$configuration$ac_delim
25209 canonical!$canonical$ac_delim
25210 srcdir!$srcdir$ac_delim
25211 lispdir!$lispdir$ac_delim
25212 locallisppath!$locallisppath$ac_delim
25213 lisppath!$lisppath$ac_delim
25214 x_default_search_path!$x_default_search_path$ac_delim
25215 etcdir!$etcdir$ac_delim
25216 archlibdir!$archlibdir$ac_delim
25217 bitmapdir!$bitmapdir$ac_delim
25218 gamedir!$gamedir$ac_delim
25219 gameuser!$gameuser$ac_delim
25220 c_switch_system!$c_switch_system$ac_delim
25221 c_switch_machine!$c_switch_machine$ac_delim
25222 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25223 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25224 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25225 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25226 machfile!$machfile$ac_delim
25227 opsysfile!$opsysfile$ac_delim
25228 carbon_appdir!$carbon_appdir$ac_delim
25229 ns_appdir!$ns_appdir$ac_delim
25230 LTLIBOBJS!$LTLIBOBJS$ac_delim
25233 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 23; then
25235 elif $ac_last_try; then
25236 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25237 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25238 { (exit 1); exit 1; }; }
25240 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25244 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25245 if test -n "$ac_eof"; then
25246 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25247 ac_eof
=`expr $ac_eof + 1`
25250 cat >>$CONFIG_STATUS <<_ACEOF
25251 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25252 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25255 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25256 s/^/s,@/; s/!/@,|#_!!_#|/
25259 s/'"$ac_delim"'$/,g/; t
25261 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25262 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25263 rm -f conf$
$subs.
sed
25264 cat >>$CONFIG_STATUS <<_ACEOF
25271 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25272 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25273 # trailing colons and then remove the whole line if VPATH becomes empty
25274 # (actually we leave an empty line to preserve line numbers).
25275 if test "x$srcdir" = x.
; then
25276 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25277 s/:*\$(srcdir):*/:/
25278 s/:*\${srcdir}:*/:/
25280 s/^\([^=]*=[ ]*\):*/\1/
25286 cat >>$CONFIG_STATUS <<\_ACEOF
25287 fi # test -n "$CONFIG_FILES"
25290 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25293 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25295 case $ac_mode$ac_tag in
25297 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25298 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25299 { (exit 1); exit 1; }; };;
25300 :[FH
]-) ac_tag
=-:-;;
25301 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25318 -) ac_f
="$tmp/stdin";;
25319 *) # Look for the file first in the build tree, then in the source tree
25320 # (if the path is not absolute). The absolute path cannot be DOS-style,
25321 # because $ac_f cannot contain `:'.
25325 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25327 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25328 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25329 { (exit 1); exit 1; }; };;
25331 ac_file_inputs
="$ac_file_inputs $ac_f"
25334 # Let's still pretend it is `configure' which instantiates (i.e., don't
25335 # use $as_me), people would be surprised to read:
25336 # /* config.h. Generated by config.status. */
25337 configure_input
="Generated from "`IFS=:
25338 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25339 if test x
"$ac_file" != x-
; then
25340 configure_input
="$ac_file. $configure_input"
25341 { echo "$as_me:$LINENO: creating $ac_file" >&5
25342 echo "$as_me: creating $ac_file" >&6;}
25346 *:-:* |
*:-) cat >"$tmp/stdin";;
25351 ac_dir
=`$as_dirname -- "$ac_file" ||
25352 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25353 X"$ac_file" : 'X\(//\)[^/]' \| \
25354 X"$ac_file" : 'X\(//\)$' \| \
25355 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25357 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25361 /^X\(\/\/\)[^/].*/{
25376 -*) as_dir
=.
/$as_dir;;
25378 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25382 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25383 *) as_qdir
=$as_dir;;
25385 as_dirs
="'$as_qdir' $as_dirs"
25386 as_dir
=`$as_dirname -- "$as_dir" ||
25387 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25388 X"$as_dir" : 'X\(//\)[^/]' \| \
25389 X"$as_dir" : 'X\(//\)$' \| \
25390 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25392 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25396 /^X\(\/\/\)[^/].*/{
25409 test -d "$as_dir" && break
25411 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25412 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25413 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25414 { (exit 1); exit 1; }; }; }
25418 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25420 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25421 # A ".." for each directory in $ac_dir_suffix.
25422 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25423 case $ac_top_builddir_sub in
25424 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25425 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25428 ac_abs_top_builddir
=$ac_pwd
25429 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25430 # for backward compatibility:
25431 ac_top_builddir
=$ac_top_build_prefix
25434 .
) # We are building in place.
25436 ac_top_srcdir
=$ac_top_builddir_sub
25437 ac_abs_top_srcdir
=$ac_pwd ;;
25438 [\\/]* | ?
:[\\/]* ) # Absolute name.
25439 ac_srcdir
=$srcdir$ac_dir_suffix;
25440 ac_top_srcdir
=$srcdir
25441 ac_abs_top_srcdir
=$srcdir ;;
25442 *) # Relative name.
25443 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25444 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25445 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25447 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25457 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25458 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25462 cat >>$CONFIG_STATUS <<\_ACEOF
25463 # If the template does not know about datarootdir, expand it.
25464 # FIXME: This hack should be removed a few years after 2.60.
25465 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25467 case `sed -n '/datarootdir/ {
25476 ' $ac_file_inputs` in
25477 *datarootdir
*) ac_datarootdir_seen
=yes;;
25478 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25479 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25480 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25482 cat >>$CONFIG_STATUS <<_ACEOF
25483 ac_datarootdir_hack='
25484 s&@datadir@&$datadir&g
25485 s&@docdir@&$docdir&g
25486 s&@infodir@&$infodir&g
25487 s&@localedir@&$localedir&g
25488 s&@mandir@&$mandir&g
25489 s&\\\${datarootdir}&$datarootdir&g' ;;
25493 # Neutralize VPATH when `$srcdir' = `.'.
25494 # Shell code in configure.ac might set extrasub.
25495 # FIXME: do we really want to maintain this feature?
25496 cat >>$CONFIG_STATUS <<_ACEOF
25500 cat >>$CONFIG_STATUS <<\_ACEOF
25502 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25503 s
&@configure_input@
&$configure_input&;t t
25504 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25505 s
&@srcdir@
&$ac_srcdir&;t t
25506 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25507 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25508 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25509 s
&@builddir@
&$ac_builddir&;t t
25510 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25511 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25512 s
&@INSTALL@
&$ac_INSTALL&;t t
25513 $ac_datarootdir_hack
25514 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25516 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25517 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25518 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25519 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25520 which seems to be undefined. Please make sure it is defined." >&5
25521 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25522 which seems to be undefined. Please make sure it is defined." >&2;}
25526 -) cat "$tmp/out"; rm -f "$tmp/out";;
25527 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25536 # Transform confdefs.h into a sed script `conftest.defines', that
25537 # substitutes the proper values into config.h.in to produce config.h.
25538 rm -f conftest.defines conftest.
tail
25539 # First, append a space to every undef/define line, to ease matching.
25540 echo 's/$/ /' >conftest.defines
25541 # Then, protect against being on the right side of a sed subst, or in
25542 # an unquoted here document, in config.status. If some macros were
25543 # called several times there might be several #defines for the same
25544 # symbol, which is useless. But do not sort them, since the last
25545 # AC_DEFINE must be honored.
25546 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25547 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25548 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25549 # PARAMS is the parameter list in the macro definition--in most cases, it's
25550 # just an empty string.
25551 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25552 ac_dB
='\\)[ (].*,\\1define\\2'
25560 s/^[ ]*#[ ]*define[ ][ ]*//
25565 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25566 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25567 ' >>conftest.defines
25569 # Remove the space that was appended to ease matching.
25570 # Then replace #undef with comments. This is necessary, for
25571 # example, in the case of _POSIX_SOURCE, which is predefined and required
25572 # on some systems where configure will not decide to define it.
25573 # (The regexp can be short, since the line contains either #define or #undef.)
25575 s,^[ #]*u.*,/* & */,' >>conftest.defines
25577 # Break up conftest.defines:
25578 ac_max_sed_lines
=50
25580 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25581 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25582 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25584 ac_in
='$ac_file_inputs'
25585 ac_out
='"$tmp/out1"'
25586 ac_nxt
='"$tmp/out2"'
25590 # Write a here document:
25591 cat >>$CONFIG_STATUS <<_ACEOF
25592 # First, check the format of the line:
25593 cat >"\$tmp/defines.sed" <<\\CEOF
25594 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25595 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25599 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25601 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25602 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25603 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25604 grep . conftest.
tail >/dev
/null ||
break
25605 rm -f conftest.defines
25606 mv conftest.
tail conftest.defines
25608 rm -f conftest.defines conftest.
tail
25610 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25611 cat >>$CONFIG_STATUS <<\_ACEOF
25612 if test x
"$ac_file" != x-
; then
25613 echo "/* $configure_input */" >"$tmp/config.h"
25614 cat "$ac_result" >>"$tmp/config.h"
25615 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25616 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25617 echo "$as_me: $ac_file is unchanged" >&6;}
25620 mv "$tmp/config.h" $ac_file
25623 echo "/* $configure_input */"
25629 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25630 echo "$as_me: executing $ac_file commands" >&6;}
25635 case $ac_file$ac_mode in
25638 ### Make the necessary directories, if they don't exist.
25639 for dir
in etc lisp
; do
25640 test -d ${dir} || mkdir
${dir}
25643 # Build src/Makefile from ${srcdir}/src/Makefile.c
25644 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25645 # This must be done after src/config.h is built, since we rely on that file.
25647 echo creating src
/epaths.h
25648 ${MAKE-make} epaths-force
25650 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25651 # `..' to `. .' unless invoked with -traditional
25653 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25654 CPPFLAGS
="$CPPFLAGS -traditional"
25657 echo creating lib-src
/Makefile
25659 rm -f junk.c junk1.c junk2.c
25660 sed -e '/start of cpp stuff/q' \
25661 < Makefile.c
> junk1.c
25662 sed -e '1,/start of cpp stuff/d'\
25663 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25664 < Makefile.c
> junk.c
25665 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25666 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25667 cat junk1.c junk2.c
> Makefile.new
25668 rm -f junk.c junk1.c junk2.c
25669 chmod 444 Makefile.new
25670 mv -f Makefile.new Makefile
25673 echo creating src
/Makefile
25675 rm -f junk.c junk1.c junk2.c
25676 sed -e '/start of cpp stuff/q' \
25677 < Makefile.c
> junk1.c
25678 sed -e '1,/start of cpp stuff/d'\
25679 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25680 < Makefile.c
> junk.c
25681 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25682 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25683 cat junk1.c junk2.c
> Makefile.new
25684 rm -f junk.c junk1.c junk2.c
25685 chmod 444 Makefile.new
25686 mv -f Makefile.new Makefile
25689 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25690 echo creating src
/.gdbinit
25691 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25700 { (exit 0); exit 0; }
25702 chmod +x
$CONFIG_STATUS
25703 ac_clean_files
=$ac_clean_files_save
25706 # configure is writing to config.log, and then calls config.status.
25707 # config.status does its own redirection, appending to config.log.
25708 # Unfortunately, on DOS this fails, as config.log is still kept open
25709 # by configure, so config.status won't be able to write to it; its
25710 # output is simply discarded. So we exec the FD to /dev/null,
25711 # effectively closing config.log, so it can be properly (re)opened and
25712 # appended to by config.status. When coming back to configure, we
25713 # need to make the FD available again.
25714 if test "$no_create" != yes; then
25716 ac_config_status_args
=
25717 test "$silent" = yes &&
25718 ac_config_status_args
="$ac_config_status_args --quiet"
25720 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25722 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25723 # would make configure fail if this is the last instruction.
25724 $ac_cs_success ||
{ (exit 1); exit 1; }