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
743 ac_precious_vars
='build_alias
755 # Initialize some variables set by options.
757 ac_init_version
=false
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
767 program_transform_name
=s
,x
,x
,
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir
='${exec_prefix}/bin'
782 sbindir
='${exec_prefix}/sbin'
783 libexecdir
='${exec_prefix}/libexec'
784 datarootdir
='${prefix}/share'
785 datadir
='${datarootdir}'
786 sysconfdir
='${prefix}/etc'
787 sharedstatedir
='${prefix}/com'
788 localstatedir
='${prefix}/var'
789 includedir
='${prefix}/include'
790 oldincludedir
='/usr/include'
791 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir
='${datarootdir}/info'
797 libdir
='${exec_prefix}/lib'
798 localedir
='${datarootdir}/locale'
799 mandir
='${datarootdir}/man'
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\
$ac_option
813 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
817 # Accept the important Cygnus configure options, so we can diagnose typos.
819 case $ac_dashdash$ac_option in
823 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
825 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
828 -build |
--build |
--buil |
--bui |
--bu)
829 ac_prev
=build_alias
;;
830 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
831 build_alias
=$ac_optarg ;;
833 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
834 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
835 ac_prev
=cache_file
;;
836 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
837 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
838 cache_file
=$ac_optarg ;;
841 cache_file
=config.cache
;;
843 -datadir |
--datadir |
--datadi |
--datad)
845 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
846 datadir
=$ac_optarg ;;
848 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
849 |
--dataroo |
--dataro |
--datar)
850 ac_prev
=datarootdir
;;
851 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
852 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
853 datarootdir
=$ac_optarg ;;
855 -disable-* |
--disable-*)
856 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860 { (exit 1); exit 1; }; }
861 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
862 eval enable_
$ac_feature=no
;;
864 -docdir |
--docdir |
--docdi |
--doc |
--do)
866 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
869 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
871 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
874 -enable-* |
--enable-*)
875 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
878 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
879 { (exit 1); exit 1; }; }
880 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
881 eval enable_
$ac_feature=\
$ac_optarg ;;
883 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
884 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
885 |
--exec |
--exe |
--ex)
886 ac_prev
=exec_prefix
;;
887 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
888 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
889 |
--exec=* |
--exe=* |
--ex=*)
890 exec_prefix
=$ac_optarg ;;
892 -gas |
--gas |
--ga |
--g)
893 # Obsolete; use --with-gas.
896 -help |
--help |
--hel |
--he |
-h)
898 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
899 ac_init_help
=recursive
;;
900 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
901 ac_init_help
=short
;;
903 -host |
--host |
--hos |
--ho)
904 ac_prev
=host_alias
;;
905 -host=* |
--host=* |
--hos=* |
--ho=*)
906 host_alias
=$ac_optarg ;;
908 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
910 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
912 htmldir
=$ac_optarg ;;
914 -includedir |
--includedir |
--includedi |
--included |
--include \
915 |
--includ |
--inclu |
--incl |
--inc)
916 ac_prev
=includedir
;;
917 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
918 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
919 includedir
=$ac_optarg ;;
921 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
923 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
924 infodir
=$ac_optarg ;;
926 -libdir |
--libdir |
--libdi |
--libd)
928 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
931 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
932 |
--libexe |
--libex |
--libe)
933 ac_prev
=libexecdir
;;
934 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
935 |
--libexe=* |
--libex=* |
--libe=*)
936 libexecdir
=$ac_optarg ;;
938 -localedir |
--localedir |
--localedi |
--localed |
--locale)
940 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
941 localedir
=$ac_optarg ;;
943 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
944 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
945 ac_prev
=localstatedir
;;
946 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
947 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
948 localstatedir
=$ac_optarg ;;
950 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
952 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
956 # Obsolete; use --without-fp.
959 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
960 |
--no-cr |
--no-c |
-n)
963 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
964 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
967 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
968 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
969 |
--oldin |
--oldi |
--old |
--ol |
--o)
970 ac_prev
=oldincludedir
;;
971 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
972 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
973 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
974 oldincludedir
=$ac_optarg ;;
976 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
978 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
981 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
982 |
--program-pre |
--program-pr |
--program-p)
983 ac_prev
=program_prefix
;;
984 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
985 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
986 program_prefix
=$ac_optarg ;;
988 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
989 |
--program-suf |
--program-su |
--program-s)
990 ac_prev
=program_suffix
;;
991 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
992 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
993 program_suffix
=$ac_optarg ;;
995 -program-transform-name |
--program-transform-name \
996 |
--program-transform-nam |
--program-transform-na \
997 |
--program-transform-n |
--program-transform- \
998 |
--program-transform |
--program-transfor \
999 |
--program-transfo |
--program-transf \
1000 |
--program-trans |
--program-tran \
1001 |
--progr-tra |
--program-tr |
--program-t)
1002 ac_prev
=program_transform_name
;;
1003 -program-transform-name=* |
--program-transform-name=* \
1004 |
--program-transform-nam=* |
--program-transform-na=* \
1005 |
--program-transform-n=* |
--program-transform-=* \
1006 |
--program-transform=* |
--program-transfor=* \
1007 |
--program-transfo=* |
--program-transf=* \
1008 |
--program-trans=* |
--program-tran=* \
1009 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1010 program_transform_name
=$ac_optarg ;;
1012 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1014 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1015 pdfdir
=$ac_optarg ;;
1017 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1019 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1022 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1023 |
-silent |
--silent |
--silen |
--sile |
--sil)
1026 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1028 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1030 sbindir
=$ac_optarg ;;
1032 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1033 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1034 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1036 ac_prev
=sharedstatedir
;;
1037 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1038 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1039 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1041 sharedstatedir
=$ac_optarg ;;
1043 -site |
--site |
--sit)
1045 -site=* |
--site=* |
--sit=*)
1048 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1050 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1051 srcdir
=$ac_optarg ;;
1053 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1054 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1055 ac_prev
=sysconfdir
;;
1056 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1057 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1058 sysconfdir
=$ac_optarg ;;
1060 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1061 ac_prev
=target_alias
;;
1062 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1063 target_alias
=$ac_optarg ;;
1065 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1068 -version |
--version |
--versio |
--versi |
--vers |
-V)
1069 ac_init_version
=: ;;
1072 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1075 { echo "$as_me: error: invalid package name: $ac_package" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1078 eval with_
$ac_package=\
$ac_optarg ;;
1080 -without-* |
--without-*)
1081 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1084 { echo "$as_me: error: invalid package name: $ac_package" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1087 eval with_
$ac_package=no
;;
1090 # Obsolete; use --with-x.
1093 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1094 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1095 ac_prev
=x_includes
;;
1096 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1097 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1098 x_includes
=$ac_optarg ;;
1100 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1101 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1102 ac_prev
=x_libraries
;;
1103 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1104 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1105 x_libraries
=$ac_optarg ;;
1107 -*) { echo "$as_me: error: unrecognized option: $ac_option
1108 Try \`$0 --help' for more information." >&2
1109 { (exit 1); exit 1; }; }
1113 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1116 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1117 { (exit 1); exit 1; }; }
1118 eval $ac_envvar=\
$ac_optarg
1119 export $ac_envvar ;;
1122 # FIXME: should be removed in autoconf 3.0.
1123 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1125 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1132 if test -n "$ac_prev"; then
1133 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1134 { echo "$as_me: error: missing argument to $ac_option" >&2
1135 { (exit 1); exit 1; }; }
1138 # Be sure to have absolute directory names.
1139 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1140 datadir sysconfdir sharedstatedir localstatedir includedir \
1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1142 libdir localedir mandir
1144 eval ac_val
=\$
$ac_var
1146 [\\/$
]* | ?
:[\\/]* ) continue;;
1147 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1149 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1150 { (exit 1); exit 1; }; }
1153 # There might be people who depend on the old broken behavior: `$host'
1154 # used to hold the argument of --host etc.
1155 # FIXME: To remove some day.
1158 target
=$target_alias
1160 # FIXME: To remove some day.
1161 if test "x$host_alias" != x
; then
1162 if test "x$build_alias" = x
; then
1163 cross_compiling
=maybe
1164 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1165 If a cross compiler is detected then cross compile mode will be used." >&2
1166 elif test "x$build_alias" != "x$host_alias"; then
1172 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1174 test "$silent" = yes && exec 6>/dev
/null
1177 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1178 ac_ls_di
=`ls -di .` &&
1179 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1180 { echo "$as_me: error: Working directory cannot be determined" >&2
1181 { (exit 1); exit 1; }; }
1182 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1183 { echo "$as_me: error: pwd does not report name of working directory" >&2
1184 { (exit 1); exit 1; }; }
1187 # Find the source files, if location was not specified.
1188 if test -z "$srcdir"; then
1189 ac_srcdir_defaulted
=yes
1190 # Try the directory containing this script, then the parent directory.
1191 ac_confdir
=`$as_dirname -- "$0" ||
1192 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1193 X"$0" : 'X\(//\)[^/]' \| \
1194 X"$0" : 'X\(//\)$' \| \
1195 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1219 ac_srcdir_defaulted
=no
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1223 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1224 { (exit 1); exit 1; }; }
1226 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1228 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1229 { (exit 1); exit 1; }; }
1231 # When building in place, set srcdir=.
1232 if test "$ac_abs_confdir" = "$ac_pwd"; then
1235 # Remove unnecessary trailing slashes from srcdir.
1236 # Double slashes in file names in object file debugging info
1237 # mess up M-x gdb in Emacs.
1239 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1241 for ac_var
in $ac_precious_vars; do
1242 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1243 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1244 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1245 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1249 # Report the --help message.
1251 if test "$ac_init_help" = "long"; then
1252 # Omit some internal or obsolete options to make the list less imposing.
1253 # This message is too long to be a string in the A/UX 3.1 sh.
1255 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1257 Usage: $0 [OPTION]... [VAR=VALUE]...
1259 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260 VAR=VALUE. See below for descriptions of some of the useful variables.
1262 Defaults for the options are specified in brackets.
1265 -h, --help display this help and exit
1266 --help=short display options specific to this package
1267 --help=recursive display the short help of all the included packages
1268 -V, --version display version information and exit
1269 -q, --quiet, --silent do not print \`checking...' messages
1270 --cache-file=FILE cache test results in FILE [disabled]
1271 -C, --config-cache alias for \`--cache-file=config.cache'
1272 -n, --no-create do not create output files
1273 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1275 Installation directories:
1276 --prefix=PREFIX install architecture-independent files in PREFIX
1277 [$ac_default_prefix]
1278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1281 By default, \`make install' will install all the files in
1282 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1283 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284 for instance \`--prefix=\$HOME'.
1286 For better control, use the options below.
1288 Fine tuning of the installation directories:
1289 --bindir=DIR user executables [EPREFIX/bin]
1290 --sbindir=DIR system admin executables [EPREFIX/sbin]
1291 --libexecdir=DIR program executables [EPREFIX/libexec]
1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1295 --libdir=DIR object code libraries [EPREFIX/lib]
1296 --includedir=DIR C header files [PREFIX/include]
1297 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1300 --infodir=DIR info documentation [DATAROOTDIR/info]
1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1302 --mandir=DIR man documentation [DATAROOTDIR/man]
1303 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1304 --htmldir=DIR html documentation [DOCDIR]
1305 --dvidir=DIR dvi documentation [DOCDIR]
1306 --pdfdir=DIR pdf documentation [DOCDIR]
1307 --psdir=DIR ps documentation [DOCDIR]
1313 --program-prefix=PREFIX prepend PREFIX to installed program names
1314 --program-suffix=SUFFIX append SUFFIX to installed program names
1315 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1318 --x-includes=DIR X include files are
in DIR
1319 --x-libraries=DIR X library files are
in DIR
1322 --build=BUILD configure
for building on BUILD
[guessed
]
1323 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1327 if test -n "$ac_init_help"; then
1328 case $ac_init_help in
1329 short | recursive
) echo "Configuration of emacs 23.0.60:";;
1334 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1335 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1336 --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition
1337 --disable-ns-self-contained disable self contained build under NS
1338 --enable-asserts compile code with asserts enabled
1339 --enable-maintainer-mode
1340 enable make rules and dependencies not useful
(and
1341 sometimes confusing
) to the casual installer
1342 --enable-locallisppath=PATH
1343 directories Emacs should search
for lisp files
1344 specific to this site
1345 --disable-largefile omit support
for large files
1348 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1349 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1350 --without-pop don
't support POP mail retrieval with movemail
1351 --with-kerberos support Kerberos-authenticated POP
1352 --with-kerberos5 support Kerberos version 5 authenticated POP
1353 --with-hesiod support Hesiod to get the POP server host
1354 --without-sound don't compile with sound support
1355 --without-sync-input Process async input synchronously
1356 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1358 --without-xpm don
't compile with XPM image support
1359 --without-jpeg don't compile with JPEG image support
1360 --without-tiff don
't compile with TIFF image support
1361 --without-gif don't compile with GIF image support
1362 --without-png don
't compile with PNG image support
1363 --without-rsvg don't compile with SVG image support
1364 --without-freetype don
't use Freetype for local font support
1365 --without-xft don't use XFT
for anti aliased fonts
1366 --without-libotf don
't use libotf for OpenType font support
1367 --without-m17n-flt don't use m17n-flt
for text shaping
1368 --without-toolkit-scroll-bars
1369 don
't use Motif or Xaw3d scroll bars
1370 --without-xaw3d don't use Xaw3d
1371 --without-xim don
't use X11 XIM
1372 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1373 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
1375 --without-dbus don
't compile with D-Bus support
1376 --without-makeinfo don't require makeinfo
for building manuals
1378 --with-pkg-config-prog=PATH
1379 Path to pkg-config
for finding GTK and librsvg
1380 --with-x use the X Window System
1382 Some influential environment variables
:
1383 CC C compiler
command
1384 CFLAGS C compiler flags
1385 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1386 nonstandard directory
<lib dir
>
1387 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1388 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1389 you have headers
in a nonstandard directory
<include dir
>
1391 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1393 Use these variables to override the choices made by
`configure' or to help
1394 it to find libraries and programs with nonstandard names/locations.
1400 if test "$ac_init_help" = "recursive"; then
1401 # If there are subdirs, report their specific --help.
1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403 test -d "$ac_dir" || continue
1407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1409 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1410 # A ".." for each directory in $ac_dir_suffix.
1411 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1412 case $ac_top_builddir_sub in
1413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1417 ac_abs_top_builddir=$ac_pwd
1418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1419 # for backward compatibility:
1420 ac_top_builddir=$ac_top_build_prefix
1423 .) # We are building in place.
1425 ac_top_srcdir=$ac_top_builddir_sub
1426 ac_abs_top_srcdir=$ac_pwd ;;
1427 [\\/]* | ?:[\\/]* ) # Absolute name.
1428 ac_srcdir=$srcdir$ac_dir_suffix;
1429 ac_top_srcdir=$srcdir
1430 ac_abs_top_srcdir=$srcdir ;;
1432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1433 ac_top_srcdir=$ac_top_build_prefix$srcdir
1434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1438 cd "$ac_dir" || { ac_status=$?; continue; }
1439 # Check for guested configure.
1440 if test -f "$ac_srcdir/configure.gnu"; then
1442 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1443 elif test -f "$ac_srcdir/configure"; then
1445 $SHELL "$ac_srcdir/configure" --help=recursive
1447 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1449 cd "$ac_pwd" || { ac_status=$?; break; }
1453 test -n "$ac_init_help" && exit $ac_status
1454 if $ac_init_version; then
1456 emacs configure 23.0.60
1457 generated by GNU Autoconf 2.61
1459 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1460 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1461 This configure script is free software; the Free Software Foundation
1462 gives unlimited permission to copy, distribute and modify it.
1466 cat >config.log <<_ACEOF
1467 This file contains any messages produced by compilers while
1468 running configure, to aid debugging if configure makes a mistake.
1470 It was created by emacs $as_me 23.0.60, which was
1471 generated by GNU Autoconf 2.61. Invocation command line was
1483 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1484 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1485 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1486 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1487 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1489 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1490 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1492 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1493 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1494 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1495 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1496 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1497 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1498 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1506 test -z "$as_dir" && as_dir=.
1507 echo "PATH: $as_dir"
1523 # Keep a trace of the command line.
1524 # Strip out --no-create and --no-recursion so they do not pile up.
1525 # Strip out --silent because we don't want to record it for future runs.
1526 # Also quote any args containing shell meta-characters.
1527 # Make two passes to allow for proper duplicate-argument suppression.
1531 ac_must_keep_next=false
1537 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1539 | -silent | --silent | --silen | --sile | --sil)
1542 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1545 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1547 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1548 if test $ac_must_keep_next = true; then
1549 ac_must_keep_next=false # Got value, back to normal.
1552 *=* | --config-cache | -C | -disable-* | --disable-* \
1553 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1554 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1555 | -with-* | --with-* | -without-* | --without-* | --x)
1556 case "$ac_configure_args0 " in
1557 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1560 -* ) ac_must_keep_next=true ;;
1563 ac_configure_args="$ac_configure_args '$ac_arg'"
1568 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1569 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1571 # When interrupted or exit'd, cleanup temporary files, and complete
1572 # config.log. We remove comments because anyway the quotes in there
1573 # would cause problems or look ugly.
1574 # WARNING: Use '\'' to represent an apostrophe within the trap.
1575 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1576 trap 'exit_status=$?
1577 # Save into config.log some information that might help in debugging.
1582 ## ---------------- ##
1583 ## Cache variables. ##
1584 ## ---------------- ##
1587 # The following way of writing the cache mishandles newlines in values,
1589 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1590 eval ac_val=\$$ac_var
1594 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1595 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1598 _ | IFS | as_nl) ;; #(
1599 *) $as_unset $ac_var ;;
1604 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1605 *${as_nl}ac_space=\ *)
1607 "s/'\''/'\''\\\\'\'''\''/g;
1608 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1619 ## ----------------- ##
1620 ## Output variables. ##
1621 ## ----------------- ##
1624 for ac_var in $ac_subst_vars
1626 eval ac_val=\$$ac_var
1628 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 echo "$ac_var='\''$ac_val'\''"
1634 if test -n "$ac_subst_files"; then
1636 ## ------------------- ##
1637 ## File substitutions. ##
1638 ## ------------------- ##
1641 for ac_var in $ac_subst_files
1643 eval ac_val=\$$ac_var
1645 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1647 echo "$ac_var='\''$ac_val'\''"
1652 if test -s confdefs.h; then
1662 test "$ac_signal" != 0 &&
1663 echo "$as_me: caught signal $ac_signal"
1664 echo "$as_me: exit $exit_status"
1666 rm -f core *.core core.conftest.* &&
1667 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1670 for ac_signal in 1 2 13 15; do
1671 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1675 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1676 rm -f -r conftest* confdefs.h
1678 # Predefined preprocessor variables.
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_NAME "$PACKAGE_NAME"
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_STRING "$PACKAGE_STRING"
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1705 # Let the site file select an alternate cache file if it wants to.
1706 # Prefer explicitly selected file to automatically selected ones.
1707 if test -n "$CONFIG_SITE"; then
1708 set x "$CONFIG_SITE"
1709 elif test "x$prefix" != xNONE; then
1710 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1712 set x "$ac_default_prefix/share/config.site" \
1713 "$ac_default_prefix/etc/config.site"
1718 if test -r "$ac_site_file"; then
1719 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1720 echo "$as_me: loading site script $ac_site_file" >&6;}
1721 sed 's/^/| /' "$ac_site_file" >&5
1726 if test -r "$cache_file"; then
1727 # Some versions of bash will fail to source /dev/null (special
1728 # files actually), so we avoid doing that.
1729 if test -f "$cache_file"; then
1730 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1731 echo "$as_me: loading cache $cache_file" >&6;}
1733 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1734 *) . "./$cache_file";;
1738 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1739 echo "$as_me: creating cache $cache_file" >&6;}
1743 ac_header_list="$ac_header_list sys/time.h"
1744 ac_header_list="$ac_header_list unistd.h"
1745 ac_func_list="$ac_func_list alarm"
1746 # Check that the precious variables saved in the cache have kept the same
1748 ac_cache_corrupted=false
1749 for ac_var in $ac_precious_vars; do
1750 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1751 eval ac_new_set=\$ac_env_${ac_var}_set
1752 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1753 eval ac_new_val=\$ac_env_${ac_var}_value
1754 case $ac_old_set,$ac_new_set in
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1757 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1758 ac_cache_corrupted=: ;;
1760 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1761 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1762 ac_cache_corrupted=: ;;
1765 if test "x$ac_old_val" != "x$ac_new_val"; then
1766 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1767 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1768 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1769 echo "$as_me: former value
: $ac_old_val" >&2;}
1770 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1771 echo "$as_me: current value
: $ac_new_val" >&2;}
1772 ac_cache_corrupted=:
1775 # Pass precious variables to config.status.
1776 if test "$ac_new_set" = set; then
1778 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1779 *) ac_arg=$ac_var=$ac_new_val ;;
1781 case " $ac_configure_args " in
1782 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1783 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1787 if $ac_cache_corrupted; then
1788 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1789 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1790 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1791 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1792 { (exit 1); exit 1; }; }
1820 ac_cpp='$CPP $CPPFLAGS'
1821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1826 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1830 test "$program_prefix" != NONE &&
1831 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1832 # Use a double $ so make ignores it.
1833 test "$program_suffix" != NONE &&
1834 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1835 # Double any \ or $. echo might interpret backslashes.
1836 # By default was `s
,x
,x
', remove it if useless.
1837 cat <<\_ACEOF >conftest.sed
1838 s/[\\$]/&&/g;s/;s,x,x,$//
1840 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1844 lispdir='${datadir}/emacs
/${version}/lisp
'
1845 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1846 '${datadir}/emacs
/site-lisp
'
1847 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1848 etcdir='${datadir}/emacs
/${version}/etc
'
1849 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1850 docdir='${datadir}/emacs
/${version}/etc
'
1851 gamedir='${localstatedir}/games
/emacs
'
1858 # Check whether --with-pop was given.
1859 if test "${with_pop+set}" = set; then
1865 if test "$with_pop" = yes; then
1866 cat >>confdefs.h <<\_ACEOF
1867 #define MAIL_USE_POP 1
1874 # Check whether --with-kerberos was given.
1875 if test "${with_kerberos+set}" = set; then
1876 withval=$with_kerberos;
1881 if test "$with_kerberos" != no; then
1882 cat >>confdefs.h <<\_ACEOF
1890 # Check whether --with-kerberos5 was given.
1891 if test "${with_kerberos5+set}" = set; then
1892 withval=$with_kerberos5;
1897 if test "${with_kerberos5}" != no; then
1898 if test "${with_kerberos}" = no; then
1900 cat >>confdefs.h <<\_ACEOF
1906 cat >>confdefs.h <<\_ACEOF
1913 # Check whether --with-hesiod was given.
1914 if test "${with_hesiod+set}" = set; then
1915 withval=$with_hesiod;
1920 if test "$with_hesiod" != no; then
1922 cat >>confdefs.h <<\_ACEOF
1929 # Check whether --with-sound was given.
1930 if test "${with_sound+set}" = set; then
1931 withval=$with_sound;
1938 # Check whether --with-sync-input was given.
1939 if test "${with_sync_input+set}" = set; then
1940 withval=$with_sync_input;
1945 if test "$with_sync_input" = yes; then
1947 cat >>confdefs.h <<\_ACEOF
1948 #define SYNC_INPUT 1
1954 # Check whether --with-x-toolkit was given.
1955 if test "${with_x_toolkit+set}" = set; then
1956 withval=$with_x_toolkit; case "${withval}" in
1957 y | ye | yes ) val=gtk ;;
1959 l | lu | luc | luci | lucid ) val=lucid ;;
1960 a | at | ath | athe | athen | athena ) val=athena ;;
1961 m | mo | mot | moti | motif ) val=motif ;;
1962 g | gt | gtk ) val=gtk ;;
1964 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1965 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1966 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1967 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1968 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1969 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1970 { (exit 1); exit 1; }; }
1979 # Check whether --with-xpm was given.
1980 if test "${with_xpm+set}" = set; then
1987 # Check whether --with-jpeg was given.
1988 if test "${with_jpeg+set}" = set; then
1995 # Check whether --with-tiff was given.
1996 if test "${with_tiff+set}" = set; then
2003 # Check whether --with-gif was given.
2004 if test "${with_gif+set}" = set; then
2011 # Check whether --with-png was given.
2012 if test "${with_png+set}" = set; then
2019 # Check whether --with-rsvg was given.
2020 if test "${with_rsvg+set}" = set; then
2028 # Check whether --with-freetype was given.
2029 if test "${with_freetype+set}" = set; then
2030 withval=$with_freetype;
2036 # Check whether --with-xft was given.
2037 if test "${with_xft+set}" = set; then
2044 # Check whether --with-libotf was given.
2045 if test "${with_libotf+set}" = set; then
2046 withval=$with_libotf;
2052 # Check whether --with-m17n-flt was given.
2053 if test "${with_m17n_flt+set}" = set; then
2054 withval=$with_m17n_flt;
2061 # Check whether --with-toolkit-scroll-bars was given.
2062 if test "${with_toolkit_scroll_bars+set}" = set; then
2063 withval=$with_toolkit_scroll_bars;
2065 with_toolkit_scroll_bars=yes
2069 # Check whether --with-xaw3d was given.
2070 if test "${with_xaw3d+set}" = set; then
2071 withval=$with_xaw3d;
2077 # Check whether --with-xim was given.
2078 if test "${with_xim+set}" = set; then
2085 # Check whether --with-ns was given.
2086 if test "${with_ns+set}" = set; then
2094 # Check whether --with-gpm was given.
2095 if test "${with_gpm+set}" = set; then
2102 # Check whether --with-dbus was given.
2103 if test "${with_dbus+set}" = set; then
2110 ## For the times when you want to build Emacs but don't have
2111 ## a suitable makeinfo, and can live without the manuals.
2113 # Check whether --with-makeinfo was given.
2114 if test "${with_makeinfo+set}" = set; then
2115 withval
=$with_makeinfo;
2122 # Check whether --with-gtk was given.
2123 if test "${with_gtk+set}" = set; then
2124 withval
=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2125 specify a toolkit." >&5
2126 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2127 specify a toolkit." >&2;}
2128 { (exit 1); exit 1; }; }
2133 # Check whether --with-gcc was given.
2134 if test "${with_gcc+set}" = set; then
2135 withval
=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2136 variable to specify a compiler." >&5
2137 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2138 variable to specify a compiler." >&2;}
2139 { (exit 1); exit 1; }; }
2144 # Check whether --with-pkg-config-prog was given.
2145 if test "${with_pkg_config_prog+set}" = set; then
2146 withval
=$with_pkg_config_prog;
2149 if test "X${with_pkg_config_prog}" != X
; then
2150 if test "${with_pkg_config_prog}" != yes; then
2151 PKG_CONFIG
="${with_pkg_config_prog}"
2155 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2156 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2157 enableval
=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G
=yes
2159 EN_COCOA_EXPERIMENTAL_CTRL_G
=no
2163 # Check whether --enable-ns-self-contained was given.
2164 if test "${enable_ns_self_contained+set}" = set; then
2165 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=no
2167 EN_NS_SELF_CONTAINED
=yes
2171 # Check whether --enable-asserts was given.
2172 if test "${enable_asserts+set}" = set; then
2173 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2179 # Check whether --enable-maintainer-mode was given.
2180 if test "${enable_maintainer_mode+set}" = set; then
2181 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2183 USE_MAINTAINER_MODE
=no
2186 if test $USE_MAINTAINER_MODE = yes; then
2193 # Check whether --enable-locallisppath was given.
2194 if test "${enable_locallisppath+set}" = set; then
2195 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2197 elif test "${enableval}" != "yes"; then
2198 locallisppath
=${enableval}
2203 #### Make srcdir absolute, if it isn't already. It's important to
2204 #### avoid running the path through pwd unnecessarily, since pwd can
2205 #### give you automounter prefixes, which can go away. We do all this
2206 #### so Emacs can find its files when run uninstalled.
2207 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2212 ## We may be able to use the $PWD environment variable to make this
2213 ## absolute. But sometimes PWD is inaccurate.
2214 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2215 ## but that tested only for a well-formed and valid PWD,
2216 ## it did not object when PWD was well-formed and valid but just wrong.
2217 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2221 srcdir
="`(cd ${srcdir}; pwd)`"
2224 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2227 #### Check if the source directory already has a configured system in it.
2228 if test `pwd` != `(cd ${srcdir} && pwd)` \
2229 && test -f "${srcdir}/src/config.h" ; then
2230 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2231 as a build directory right now; it has been configured in its own
2232 right. To configure in another directory as well, you MUST
2233 use GNU make. If you do not have GNU make, then you must
2234 now do \`make distclean' in ${srcdir},
2235 and then run $0 again." >&5
2236 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2237 as a build directory right now; it has been configured in its own
2238 right. To configure in another directory as well, you MUST
2239 use GNU make. If you do not have GNU make, then you must
2240 now do \`make distclean' in ${srcdir},
2241 and then run $0 again." >&2;}
2244 #### Given the configuration name, set machfile and opsysfile to the
2245 #### names of the m/*.h and s/*.h files we should use.
2247 ### Canonicalize the configuration name.
2250 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2251 if test -f "$ac_dir/install-sh"; then
2253 ac_install_sh
="$ac_aux_dir/install-sh -c"
2255 elif test -f "$ac_dir/install.sh"; then
2257 ac_install_sh
="$ac_aux_dir/install.sh -c"
2259 elif test -f "$ac_dir/shtool"; then
2261 ac_install_sh
="$ac_aux_dir/shtool install -c"
2265 if test -z "$ac_aux_dir"; then
2266 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2267 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2268 { (exit 1); exit 1; }; }
2271 # These three variables are undocumented and unsupported,
2272 # and are intended to be withdrawn in a future Autoconf release.
2273 # They can cause serious problems if a builder's source tree is in a directory
2274 # whose full name contains unusual characters.
2275 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2276 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2277 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2280 # Make sure we can run config.sub.
2281 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2282 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2283 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2284 { (exit 1); exit 1; }; }
2286 { echo "$as_me:$LINENO: checking build system type" >&5
2287 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2288 if test "${ac_cv_build+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2291 ac_build_alias
=$build_alias
2292 test "x$ac_build_alias" = x
&&
2293 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2294 test "x$ac_build_alias" = x
&&
2295 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2296 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2297 { (exit 1); exit 1; }; }
2298 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2299 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2300 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2301 { (exit 1); exit 1; }; }
2304 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2305 echo "${ECHO_T}$ac_cv_build" >&6; }
2306 case $ac_cv_build in
2308 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2309 echo "$as_me: error: invalid value of canonical build" >&2;}
2310 { (exit 1); exit 1; }; };;
2313 ac_save_IFS
=$IFS; IFS
='-'
2319 # Remember, the first character of IFS is used to create $*,
2320 # except with old shells:
2323 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2326 { echo "$as_me:$LINENO: checking host system type" >&5
2327 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2328 if test "${ac_cv_host+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2331 if test "x$host_alias" = x
; then
2332 ac_cv_host
=$ac_cv_build
2334 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2335 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2336 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2337 { (exit 1); exit 1; }; }
2341 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2342 echo "${ECHO_T}$ac_cv_host" >&6; }
2345 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2346 echo "$as_me: error: invalid value of canonical host" >&2;}
2347 { (exit 1); exit 1; }; };;
2350 ac_save_IFS
=$IFS; IFS
='-'
2356 # Remember, the first character of IFS is used to create $*,
2357 # except with old shells:
2360 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2364 configuration
=${host_alias-${build_alias-$host}}
2368 ### If you add support for a new configuration, add code to this
2369 ### switch statement to recognize your configuration name and select
2370 ### the appropriate operating system and machine description files.
2372 ### You would hope that you could choose an m/*.h file pretty much
2373 ### based on the machine portion of the configuration name, and an s-
2374 ### file based on the operating system portion. However, it turns out
2375 ### that each m/*.h file is pretty manufacturer-specific - for
2376 ### example mips.h is MIPS
2377 ### So we basically have to have a special case for each
2378 ### configuration name.
2380 ### As far as handling version numbers on operating systems is
2381 ### concerned, make sure things will fail in a fixable way. If
2382 ### /etc/MACHINES doesn't say anything about version numbers, be
2383 ### prepared to handle anything reasonably. If version numbers
2384 ### matter, be sure /etc/MACHINES says something about it.
2386 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2387 ### "System V Release 4"; he writes, "The old convention encouraged
2388 ### confusion between `system' and `release' levels'."
2390 machine
='' opsys
='' unported
=no
2391 case "${canonical}" in
2396 case "${canonical}" in
2397 alpha
*-*-freebsd*) machine
=alpha
;;
2398 arm
*-*-freebsd*) machine
=arm
;;
2399 ia64-
*-freebsd*) machine
=ia64
;;
2400 sparc-
*-freebsd*) machine
=sparc
;;
2401 sparc64-
*-freebsd*) machine
=sparc
;;
2402 powerpc-
*-freebsd*) machine
=macppc
;;
2403 i
[3456]86-*-freebsd*) machine
=intel386
;;
2404 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2408 ## FreeBSD kernel + glibc based userland
2411 case "${canonical}" in
2412 alpha
*-*-kfreebsd*) machine
=alpha
;;
2413 ia64-
*-kfreebsd*) machine
=ia64
;;
2414 sparc-
*-kfreebsd*) machine
=sparc
;;
2415 sparc64-
*-kfreebsd*) machine
=sparc
;;
2416 powerpc-
*-kfreebsd*) machine
=macppc
;;
2417 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2418 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2425 if test -f /usr
/lib
/crti.o
; then
2427 cat >>confdefs.h
<<\_ACEOF
2433 case "${canonical}" in
2434 alpha
*-*-netbsd*) machine
=alpha
;;
2435 i
[3456]86-*-netbsd*) machine
=intel386
;;
2436 powerpc-
*-netbsd*) machine
=macppc
;;
2437 sparc
*-*-netbsd*) machine
=sparc
;;
2438 vax-
*-netbsd*) machine
=vax
;;
2439 arm-
*-netbsd*) machine
=arm
;;
2440 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2441 hppa-
*-netbsd*) machine
=hp800
;;
2448 case "${canonical}" in
2449 alpha
*-*-openbsd*) machine
=alpha
;;
2450 arm-
*-openbsd*) machine
=arm
;;
2451 i386-
*-openbsd*) machine
=intel386
;;
2452 powerpc-
*-openbsd*) machine
=macppc
;;
2453 sparc
*-*-openbsd*) machine
=sparc
;;
2454 vax-
*-openbsd*) machine
=vax
;;
2455 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2462 case "${canonical}" in
2463 i
[3456]86-*-lynxos*) machine
=intel386
;;
2464 powerpc-
*-lynxos*) machine
=powerpc
;;
2468 alpha
*-*-linux-gnu* )
2469 machine
=alpha opsys
=gnu-linux
2473 machine
=arm opsys
=gnu-linux
2476 ## Apple Darwin / Mac OS X
2478 case "${canonical}" in
2479 i
[3456]86-* ) machine
=intel386
;;
2480 powerpc-
* ) machine
=macppc
;;
2484 # Define CPP as follows to make autoconf work correctly.
2485 CPP
="${CC-cc} -E -no-cpp-precomp"
2486 # Use fink packages if available.
2487 if test -d /sw
/include
&& test -d /sw
/lib
; then
2488 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2489 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2490 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2494 ## HP 9000 series 700 and 800, running HP/UX
2495 hppa
*-hp-hpux10.2
* )
2496 machine
=hp800 opsys
=hpux10-20
2498 hppa
*-hp-hpux1[1-9]* )
2499 machine
=hp800 opsys
=hpux11
2500 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2503 hppa
*-*-linux-gnu* )
2504 machine
=hp800 opsys
=gnu-linux
2509 machine
=ibms390 opsys
=gnu-linux
2511 s390x-
*-linux-gnu* )
2512 machine
=ibms390x opsys
=gnu-linux
2514 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2515 machine
=ibmrs6000 opsys
=aix4-2
2517 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2518 machine
=ibmrs6000 opsys
=aix4-2
2520 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2521 machine
=ibmrs6000 opsys
=aix4-2
2523 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2524 machine
=ibmrs6000 opsys
=aix4-2
2527 ## Macintosh PowerPC
2528 powerpc
*-*-linux-gnu* )
2529 machine
=macppc opsys
=gnu-linux
2532 ## Silicon Graphics machines
2535 machine
=iris4d opsys
=irix6-5
2536 # Without defining _LANGUAGE_C, things get masked out in the headers
2537 # so that, for instance, grepping for `free' in stdlib.h fails and
2538 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2539 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2540 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2544 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2545 machine
=sparc opsys
=gnu-linux
2549 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2550 | rs6000-
*-solaris2*)
2551 case "${canonical}" in
2552 i
[3456]86-*-* ) machine
=intel386
;;
2553 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2554 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2555 sparc
* ) machine
=sparc
;;
2558 case "${canonical}" in
2559 *-sunos5.3
* |
*-solaris2.3
* )
2561 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2563 *-sunos5.4
* |
*-solaris2.4
* )
2565 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2568 *-sunos5.5
* |
*-solaris2.5
* )
2570 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2573 *-sunos5.6
* |
*-solaris2.6
* )
2575 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2578 *-sunos5* |
*-solaris* )
2580 emacs_check_sunpro_c
=yes
2581 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2584 ## Watch out for a compiler that we know will not work.
2585 case "${canonical}" in
2586 *-solaris* |
*-sunos5* )
2587 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2588 ## /usr/ucb/cc doesn't work;
2589 ## we should find some other compiler that does work.
2600 case "${canonical}" in
2601 *-vms* ) opsys
=vms
;;
2608 machine
=ia64 opsys
=gnu-linux
2611 ## Intel 386 machines where we don't care about the manufacturer
2614 case "${canonical}" in
2615 *-cygwin ) opsys
=cygwin
;;
2616 *-darwin* ) opsys
=darwin
2617 CPP
="${CC-cc} -E -no-cpp-precomp"
2619 *-linux-gnu* ) opsys
=gnu-linux
;;
2620 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2621 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2622 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2623 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2627 ## m68k Linux-based GNU system
2629 machine
=m68k opsys
=gnu-linux
2632 ## Mips Linux-based GNU system
2633 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2634 machine
=mips opsys
=gnu-linux
2637 ## AMD x86-64 Linux-based GNU system
2638 x86_64-
*-linux-gnu* )
2639 machine
=amdx86-64 opsys
=gnu-linux
2642 ## Tensilica Xtensa Linux-based GNU system
2643 xtensa
*-*-linux-gnu* )
2644 machine
=xtensa opsys
=gnu-linux
2652 ### If the code above didn't choose an operating system, just choose
2653 ### an operating system based on the configuration name. You really
2654 ### only want to use this when you have no idea what the right
2655 ### operating system is; if you know what operating systems a machine
2656 ### runs, it's cleaner to make it explicit in the case statement
2658 if test x
"${opsys}" = x
; then
2659 case "${canonical}" in
2660 *-gnu* ) opsys
=gnu
;;
2661 *-sysv4.2uw
* ) opsys
=unixware
;;
2662 *-sysv5uw* ) opsys
=unixware
;;
2663 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2664 *-sysv4.1
* |
*-sysvr4.1
* )
2665 NON_GNU_CPP
=/usr
/lib
/cpp
2667 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2668 if [ x
$NON_GNU_CPP = x
]; then
2669 if [ -f /usr
/ccs
/lib
/cpp
]; then
2670 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2672 NON_GNU_CPP
=/lib
/cpp
2676 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2685 if test $unported = yes; then
2686 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2687 Check \`etc/MACHINES' for recognized configuration names." >&5
2688 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2689 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2690 { (exit 1); exit 1; }; }
2693 machfile
="m/${machine}.h"
2694 opsysfile
="s/${opsys}.h"
2697 #### Choose a compiler.
2698 test -n "$CC" && cc_specified
=yes
2700 # Save the value of CFLAGS that the user specified.
2701 SPECIFIED_CFLAGS
="$CFLAGS"
2704 ac_cpp
='$CPP $CPPFLAGS'
2705 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2710 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2713 if test "${ac_cv_prog_CC+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC
="$CC" # Let the user override the test.
2719 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2723 test -z "$as_dir" && as_dir
=.
2724 for ac_exec_ext
in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2737 if test -n "$CC"; then
2738 { echo "$as_me:$LINENO: result: $CC" >&5
2739 echo "${ECHO_T}$CC" >&6; }
2741 { echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6; }
2747 if test -z "$ac_cv_prog_CC"; then
2749 # Extract the first word of "gcc", so it can be a program name with args.
2750 set dummy gcc
; ac_word
=$2
2751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2756 if test -n "$ac_ct_CC"; then
2757 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2759 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2763 test -z "$as_dir" && as_dir
=.
2764 for ac_exec_ext
in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_ac_ct_CC
="gcc"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2777 if test -n "$ac_ct_CC"; then
2778 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2779 echo "${ECHO_T}$ac_ct_CC" >&6; }
2781 { echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6; }
2785 if test "x$ac_ct_CC" = x
; then
2788 case $cross_compiling:$ac_tool_warned in
2790 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2791 whose name does not start with the host triplet. If you think this
2792 configuration is useful to you, please write to autoconf@gnu.org." >&5
2793 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2794 whose name does not start with the host triplet. If you think this
2795 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2796 ac_tool_warned
=yes ;;
2804 if test -z "$CC"; then
2805 if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2807 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2810 if test "${ac_cv_prog_CC+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC
="$CC" # Let the user override the test.
2816 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2820 test -z "$as_dir" && as_dir
=.
2821 for ac_exec_ext
in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2834 if test -n "$CC"; then
2835 { echo "$as_me:$LINENO: result: $CC" >&5
2836 echo "${ECHO_T}$CC" >&6; }
2838 { echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6; }
2845 if test -z "$CC"; then
2846 # Extract the first word of "cc", so it can be a program name with args.
2847 set dummy cc
; ac_word
=$2
2848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2850 if test "${ac_cv_prog_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC
="$CC" # Let the user override the test.
2857 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2861 test -z "$as_dir" && as_dir
=.
2862 for ac_exec_ext
in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2865 ac_prog_rejected
=yes
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2876 if test $ac_prog_rejected = yes; then
2877 # We found a bogon in the path, so make sure we never use it.
2878 set dummy
$ac_cv_prog_CC
2880 if test $# != 0; then
2881 # We chose a different compiler from the bogus one.
2882 # However, it has the same basename, so the bogon will be chosen
2883 # first if we set CC to just the basename; use the full file name.
2885 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2891 if test -n "$CC"; then
2892 { echo "$as_me:$LINENO: result: $CC" >&5
2893 echo "${ECHO_T}$CC" >&6; }
2895 { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2901 if test -z "$CC"; then
2902 if test -n "$ac_tool_prefix"; then
2903 for ac_prog
in cl.exe
2905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2909 if test "${ac_cv_prog_CC+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 if test -n "$CC"; then
2913 ac_cv_prog_CC
="$CC" # Let the user override the test.
2915 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2919 test -z "$as_dir" && as_dir
=.
2920 for ac_exec_ext
in '' $ac_executable_extensions; do
2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2933 if test -n "$CC"; then
2934 { echo "$as_me:$LINENO: result: $CC" >&5
2935 echo "${ECHO_T}$CC" >&6; }
2937 { echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6; }
2942 test -n "$CC" && break
2945 if test -z "$CC"; then
2947 for ac_prog
in cl.exe
2949 # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy
$ac_prog; ac_word
=$2
2951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2956 if test -n "$ac_ct_CC"; then
2957 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2963 test -z "$as_dir" && as_dir
=.
2964 for ac_exec_ext
in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_ac_ct_CC
="$ac_prog"
2967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2976 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6; }
2981 { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2986 test -n "$ac_ct_CC" && break
2989 if test "x$ac_ct_CC" = x
; then
2992 case $cross_compiling:$ac_tool_warned in
2994 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2995 whose name does not start with the host triplet. If you think this
2996 configuration is useful to you, please write to autoconf@gnu.org." >&5
2997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2998 whose name does not start with the host triplet. If you think this
2999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3000 ac_tool_warned
=yes ;;
3009 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3010 See \`config.log' for more details." >&5
3011 echo "$as_me: error: no acceptable C compiler found in \$PATH
3012 See \`config.log' for more details." >&2;}
3013 { (exit 1); exit 1; }; }
3015 # Provide some information about the compiler.
3016 echo "$as_me:$LINENO: checking for C compiler version" >&5
3017 ac_compiler
=`set X $ac_compile; echo $2`
3018 { (ac_try
="$ac_compiler --version >&5"
3020 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compiler --version >&5") 2>&5
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3028 { (ac_try="$ac_compiler -v >&5"
3030 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3031 *) ac_try_echo
=$ac_try;;
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compiler -v >&5") 2>&5
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
3038 { (ac_try
="$ac_compiler -V >&5"
3040 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compiler -V >&5") 2>&5
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3049 cat >conftest.$ac_ext <<_ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3064 ac_clean_files_save=$ac_clean_files
3065 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3069 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3070 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3071 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3073 # List of possible output files, starting from the most likely.
3074 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3075 # only as a last resort. b.out is created by i960 compilers.
3076 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3078 # The IRIX 6 linker writes into existing files which may not be
3079 # executable, retaining their permissions. Remove them first so a
3080 # subsequent execution test works.
3082 for ac_file in $ac_files
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3086 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3091 if { (ac_try="$ac_link_default"
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_link_default") 2>&5
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; then
3101 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3102 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3103 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3104 # so that the user can short-circuit this test for compilers unknown to
3106 for ac_file
in $ac_files ''
3108 test -f "$ac_file" ||
continue
3110 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3113 # We found the default executable, but exeext='' is most
3117 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3119 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3121 # We set ac_cv_exeext here because the later test for it is not
3122 # safe: cross compilers may not add the suffix if given an `-o'
3123 # argument, so we may need to know it at that point already.
3124 # Even if this section looks crufty: it has the advantage of
3131 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3137 { echo "$as_me:$LINENO: result: $ac_file" >&5
3138 echo "${ECHO_T}$ac_file" >&6; }
3139 if test -z "$ac_file"; then
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.
$ac_ext >&5
3143 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3144 See \`config.log' for more details." >&5
3145 echo "$as_me: error: C compiler cannot create executables
3146 See \`config.log' for more details." >&2;}
3147 { (exit 77); exit 77; }; }
3150 ac_exeext
=$ac_cv_exeext
3152 # Check that the compiler produces executables we can run. If not, either
3153 # the compiler is broken, or we cross compile.
3154 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3155 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3156 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3157 # If not cross compiling, check that we can run a simple program.
3158 if test "$cross_compiling" != yes; then
3159 if { ac_try
='./$ac_file'
3160 { (case "(($ac_try" in
3161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3171 if test "$cross_compiling" = maybe; then
3174 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3175 If you meant to cross compile, use \`--host'.
3176 See \`config.log' for more details.
" >&5
3177 echo "$as_me: error
: cannot run C compiled programs.
3178 If you meant to cross compile
, use \
`--host'.
3179 See \`config.log
' for more details." >&2;}
3180 { (exit 1); exit 1; }; }
3184 { echo "$as_me:$LINENO: result: yes" >&5
3185 echo "${ECHO_T}yes" >&6; }
3187 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3188 ac_clean_files=$ac_clean_files_save
3189 # Check that the compiler produces executables we can run. If not, either
3190 # the compiler is broken, or we cross compile.
3191 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3192 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3193 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3194 echo "${ECHO_T}$cross_compiling" >&6; }
3196 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3197 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3198 if { (ac_try="$ac_link"
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_link") 2>&5
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; then
3208 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3209 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3210 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3212 for ac_file
in conftest.exe conftest conftest.
*; do
3213 test -f "$ac_file" ||
continue
3215 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3216 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3222 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3223 See \`config.log' for more details." >&5
3224 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3225 See \`config.log' for more details." >&2;}
3226 { (exit 1); exit 1; }; }
3229 rm -f conftest
$ac_cv_exeext
3230 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3231 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3233 rm -f conftest.
$ac_ext
3234 EXEEXT
=$ac_cv_exeext
3236 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3237 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3238 if test "${ac_cv_objext+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3241 cat >conftest.
$ac_ext <<_ACEOF
3244 cat confdefs.h
>>conftest.
$ac_ext
3245 cat >>conftest.
$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3256 rm -f conftest.o conftest.obj
3257 if { (ac_try
="$ac_compile"
3259 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263 (eval "$ac_compile") 2>&5
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; then
3267 for ac_file in conftest.o conftest.obj conftest.*; do
3268 test -f "$ac_file" || continue;
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3279 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3280 See \`config.log
' for more details." >&5
3281 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3282 See \`config.log' for more details.
" >&2;}
3283 { (exit 1); exit 1; }; }
3286 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3288 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3289 echo "${ECHO_T}$ac_cv_objext" >&6; }
3290 OBJEXT=$ac_cv_objext
3292 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3293 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3295 echo $ECHO_N "(cached
) $ECHO_C" >&6
3297 cat >conftest.$ac_ext <<_ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3321 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3324 grep -v '^ *+' conftest.er1 >conftest.err
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3328 (exit $ac_status); } && {
3329 test -z "$ac_c_werror_flag" ||
3330 test ! -s conftest.err
3331 } && test -s conftest.$ac_objext; then
3334 echo "$as_me: failed program was
:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3344 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3345 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3346 GCC=`test $ac_compiler_gnu = yes && echo yes`
3347 ac_test_CFLAGS=${CFLAGS+set}
3348 ac_save_CFLAGS=$CFLAGS
3349 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3350 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3351 if test "${ac_cv_prog_cc_g+set}" = set; then
3352 echo $ECHO_N "(cached
) $ECHO_C" >&6
3354 ac_save_c_werror_flag=$ac_c_werror_flag
3355 ac_c_werror_flag=yes
3358 cat >conftest.$ac_ext <<_ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compile") 2>conftest.er1
3382 grep -v '^ *+' conftest.er1 >conftest.err
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3386 (exit $ac_status); } && {
3387 test -z "$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 } && test -s conftest.$ac_objext; then
3392 echo "$as_me: failed program was
:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3396 cat >conftest.$ac_ext <<_ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3411 rm -f conftest.$ac_objext
3412 if { (ac_try="$ac_compile"
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_compile") 2>conftest.er1
3420 grep -v '^ *+' conftest.er1 >conftest.err
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3424 (exit $ac_status); } && {
3425 test -z "$ac_c_werror_flag" ||
3426 test ! -s conftest.err
3427 } && test -s conftest.$ac_objext; then
3430 echo "$as_me: failed program was
:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3433 ac_c_werror_flag=$ac_save_c_werror_flag
3435 cat >conftest.$ac_ext <<_ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3450 rm -f conftest.$ac_objext
3451 if { (ac_try="$ac_compile"
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_compile") 2>conftest.er1
3459 grep -v '^ *+' conftest.er1 >conftest.err
3461 cat conftest.err >&5
3462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3463 (exit $ac_status); } && {
3464 test -z "$ac_c_werror_flag" ||
3465 test ! -s conftest.err
3466 } && test -s conftest.$ac_objext; then
3469 echo "$as_me: failed program was
:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482 ac_c_werror_flag=$ac_save_c_werror_flag
3484 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3485 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3486 if test "$ac_test_CFLAGS" = set; then
3487 CFLAGS=$ac_save_CFLAGS
3488 elif test $ac_cv_prog_cc_g = yes; then
3489 if test "$GCC" = yes; then
3495 if test "$GCC" = yes; then
3501 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3502 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3503 if test "${ac_cv_prog_cc_c89+set}" = set; then
3504 echo $ECHO_N "(cached
) $ECHO_C" >&6
3506 ac_cv_prog_cc_c89=no
3508 cat >conftest.$ac_ext <<_ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3516 #include <sys/types.h>
3517 #include <sys/stat.h>
3518 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3519 struct buf { int x; };
3520 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3521 static char *e (p, i)
3527 static char *f (char * (*g) (char **, int), char **p, ...)
3532 s = g (p, va_arg (v,int));
3537 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3538 function prototypes and stuff, but not '\xHH' hex character constants.
3539 These don't provoke an error unfortunately, instead are silently treated
3540 as 'x'. The following induces an error, until -std is added to get
3541 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3542 array size at least. It's necessary to write '\x00'==0 to get something
3543 that's true only with -std. */
3544 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3546 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3547 inside strings and character constants. */
3549 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3551 int test (int i, double x);
3552 struct s1 {int (*f) (int a);};
3553 struct s2 {int (*f) (double a);};
3554 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3560 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3565 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3566 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3568 CC="$ac_save_CC $ac_arg"
3569 rm -f conftest.$ac_objext
3570 if { (ac_try="$ac_compile"
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3575 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_compile") 2>conftest.er1
3578 grep -v '^ *+' conftest.er1 >conftest.err
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3582 (exit $ac_status); } && {
3583 test -z "$ac_c_werror_flag" ||
3584 test ! -s conftest.err
3585 } && test -s conftest.$ac_objext; then
3586 ac_cv_prog_cc_c89=$ac_arg
3588 echo "$as_me: failed program was
:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3594 rm -f core conftest.err conftest.$ac_objext
3595 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3597 rm -f conftest.$ac_ext
3602 case "x
$ac_cv_prog_cc_c89" in
3604 { echo "$as_me:$LINENO: result
: none needed
" >&5
3605 echo "${ECHO_T}none needed
" >&6; } ;;
3607 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3608 echo "${ECHO_T}unsupported
" >&6; } ;;
3610 CC="$CC $ac_cv_prog_cc_c89"
3611 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3612 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3623 # On Suns, sometimes $CPP names a directory.
3624 if test -n "$CPP" && test -d "$CPP"; then
3628 ## If not using gcc, and on Solaris, and no CPP specified, see if
3629 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3630 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3631 test x"$CPP" = x; then
3632 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3633 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3635 if test "${emacs_cv_sunpro_c+set}" = set; then
3636 echo $ECHO_N "(cached
) $ECHO_C" >&6
3638 cat >conftest.$ac_ext <<_ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3656 rm -f conftest.$ac_objext conftest$ac_exeext
3657 if { (ac_try="$ac_link"
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_link") 2>conftest.er1
3665 grep -v '^ *+' conftest.er1 >conftest.err
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3669 (exit $ac_status); } && {
3670 test -z "$ac_c_werror_flag" ||
3671 test ! -s conftest.err
3672 } && test -s conftest$ac_exeext &&
3673 $as_test_x conftest$ac_exeext; then
3674 emacs_cv_sunpro_c=yes
3676 echo "$as_me: failed program was
:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3679 emacs_cv_sunpro_c=no
3682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3683 conftest$ac_exeext conftest.$ac_ext
3686 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3687 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3689 if test x"$emacs_cv_sunpro_c" = xyes; then
3690 NON_GNU_CPP="$CC -E -Xs"
3694 #### Some systems specify a CPP to use unless we are using GCC.
3695 #### Now that we know whether we are using GCC, we can decide whether
3696 #### to use that one.
3697 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3702 #### Some systems specify a CC to use unless we are using GCC.
3703 #### Now that we know whether we are using GCC, we can decide whether
3704 #### to use that one.
3705 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3706 test x$cc_specified != xyes
3711 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3713 CC="$CC $GCC_TEST_OPTIONS"
3716 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3718 CC="$CC $NON_GCC_TEST_OPTIONS"
3722 cat >>confdefs.h <<\_ACEOF
3723 #define _GNU_SOURCE 1
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3733 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3734 # On Suns, sometimes $CPP names a directory.
3735 if test -n "$CPP" && test -d "$CPP"; then
3738 if test -z "$CPP"; then
3739 if test "${ac_cv_prog_CPP+set}" = set; then
3740 echo $ECHO_N "(cached
) $ECHO_C" >&6
3742 # Double quotes because CPP needs to be expanded
3743 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3746 for ac_c_preproc_warn_flag in '' yes
3748 # Use a header file that comes with gcc, so configuring glibc
3749 # with a fresh cross-compiler works.
3750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3751 # <limits.h> exists even on freestanding compilers.
3752 # On the NeXT, cc -E runs the code through the compiler's parser,
3753 # not just through cpp. "Syntax error
" is here to catch this case.
3754 cat >conftest.$ac_ext <<_ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3761 # include <limits.h>
3763 # include <assert.h>
3767 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3772 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3773 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3775 grep -v '^ *+' conftest.er1 >conftest.err
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3779 (exit $ac_status); } >/dev/null && {
3780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3785 echo "$as_me: failed program was
:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3788 # Broken: fails on valid input.
3792 rm -f conftest.err conftest.$ac_ext
3794 # OK, works on sane cases. Now check whether nonexistent headers
3795 # can be detected and how.
3796 cat >conftest.$ac_ext <<_ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3802 #include <ac_nonexistent.h>
3804 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3812 grep -v '^ *+' conftest.er1 >conftest.err
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3816 (exit $ac_status); } >/dev/null && {
3817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3818 test ! -s conftest.err
3820 # Broken: success on invalid input.
3823 echo "$as_me: failed program was
:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3826 # Passes both tests.
3831 rm -f conftest.err conftest.$ac_ext
3834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3835 rm -f conftest.err conftest.$ac_ext
3836 if $ac_preproc_ok; then
3848 { echo "$as_me:$LINENO: result
: $CPP" >&5
3849 echo "${ECHO_T}$CPP" >&6; }
3851 for ac_c_preproc_warn_flag in '' yes
3853 # Use a header file that comes with gcc, so configuring glibc
3854 # with a fresh cross-compiler works.
3855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3856 # <limits.h> exists even on freestanding compilers.
3857 # On the NeXT, cc -E runs the code through the compiler's parser,
3858 # not just through cpp. "Syntax error
" is here to catch this case.
3859 cat >conftest.$ac_ext <<_ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3866 # include <limits.h>
3868 # include <assert.h>
3872 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3878 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3880 grep -v '^ *+' conftest.er1 >conftest.err
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3884 (exit $ac_status); } >/dev/null && {
3885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3886 test ! -s conftest.err
3890 echo "$as_me: failed program was
:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3893 # Broken: fails on valid input.
3897 rm -f conftest.err conftest.$ac_ext
3899 # OK, works on sane cases. Now check whether nonexistent headers
3900 # can be detected and how.
3901 cat >conftest.$ac_ext <<_ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3907 #include <ac_nonexistent.h>
3909 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3914 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3917 grep -v '^ *+' conftest.er1 >conftest.err
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3921 (exit $ac_status); } >/dev/null && {
3922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3925 # Broken: success on invalid input.
3928 echo "$as_me: failed program was
:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 # Passes both tests.
3936 rm -f conftest.err conftest.$ac_ext
3939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3940 rm -f conftest.err conftest.$ac_ext
3941 if $ac_preproc_ok; then
3944 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3945 See \
`config.log' for more details." >&5
3946 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3947 See \`config.log
' for more details." >&2;}
3948 { (exit 1); exit 1; }; }
3952 ac_cpp='$CPP $CPPFLAGS'
3953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3954 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3958 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3959 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_GREP+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3963 # Extract the first word of "grep ggrep" to use in msg output
3964 if test -z "$GREP"; then
3965 set dummy grep ggrep; ac_prog_name=$2
3966 if test "${ac_cv_path_GREP+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3969 ac_path_GREP_found=false
3970 # Loop through the user's path and
test for each of PROGNAME-LIST
3971 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3972 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3975 test -z "$as_dir" && as_dir
=.
3976 for ac_prog
in grep ggrep
; do
3977 for ac_exec_ext
in '' $ac_executable_extensions; do
3978 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3979 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3980 # Check for GNU ac_path_GREP and select it if it is found.
3981 # Check for GNU $ac_path_GREP
3982 case `"$ac_path_GREP" --version 2>&1` in
3984 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3987 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3990 cat "conftest.in" "conftest.in" >"conftest.tmp"
3991 mv "conftest.tmp" "conftest.in"
3992 cp "conftest.in" "conftest.nl"
3993 echo 'GREP' >> "conftest.nl"
3994 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3995 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3996 ac_count
=`expr $ac_count + 1`
3997 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3998 # Best one so far, save it but keep looking for a better one
3999 ac_cv_path_GREP
="$ac_path_GREP"
4000 ac_path_GREP_max
=$ac_count
4002 # 10*(2^10) chars as input seems more than enough
4003 test $ac_count -gt 10 && break
4005 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4009 $ac_path_GREP_found && break 3
4019 GREP
="$ac_cv_path_GREP"
4020 if test -z "$GREP"; then
4021 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4022 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4023 { (exit 1); exit 1; }; }
4027 ac_cv_path_GREP
=$GREP
4032 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4033 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4034 GREP
="$ac_cv_path_GREP"
4037 { echo "$as_me:$LINENO: checking for egrep" >&5
4038 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4039 if test "${ac_cv_path_EGREP+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4042 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4043 then ac_cv_path_EGREP
="$GREP -E"
4045 # Extract the first word of "egrep" to use in msg output
4046 if test -z "$EGREP"; then
4047 set dummy
egrep; ac_prog_name
=$2
4048 if test "${ac_cv_path_EGREP+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4051 ac_path_EGREP_found
=false
4052 # Loop through the user's path and test for each of PROGNAME-LIST
4053 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4054 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4057 test -z "$as_dir" && as_dir
=.
4058 for ac_prog
in egrep; do
4059 for ac_exec_ext
in '' $ac_executable_extensions; do
4060 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4061 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4062 # Check for GNU ac_path_EGREP and select it if it is found.
4063 # Check for GNU $ac_path_EGREP
4064 case `"$ac_path_EGREP" --version 2>&1` in
4066 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4069 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4072 cat "conftest.in" "conftest.in" >"conftest.tmp"
4073 mv "conftest.tmp" "conftest.in"
4074 cp "conftest.in" "conftest.nl"
4075 echo 'EGREP' >> "conftest.nl"
4076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4077 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4078 ac_count
=`expr $ac_count + 1`
4079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4080 # Best one so far, save it but keep looking for a better one
4081 ac_cv_path_EGREP
="$ac_path_EGREP"
4082 ac_path_EGREP_max
=$ac_count
4084 # 10*(2^10) chars as input seems more than enough
4085 test $ac_count -gt 10 && break
4087 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4091 $ac_path_EGREP_found && break 3
4101 EGREP
="$ac_cv_path_EGREP"
4102 if test -z "$EGREP"; then
4103 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4104 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4105 { (exit 1); exit 1; }; }
4109 ac_cv_path_EGREP
=$EGREP
4115 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4116 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4117 EGREP
="$ac_cv_path_EGREP"
4121 { echo "$as_me:$LINENO: checking for AIX" >&5
4122 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4123 cat >conftest.
$ac_ext <<_ACEOF
4126 cat confdefs.h
>>conftest.
$ac_ext
4127 cat >>conftest.
$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 $EGREP "yes" >/dev
/null
2>&1; then
4136 { echo "$as_me:$LINENO: result: yes" >&5
4137 echo "${ECHO_T}yes" >&6; }
4138 cat >>confdefs.h
<<\_ACEOF
4139 #define _ALL_SOURCE 1
4143 { echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6; }
4149 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4150 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4151 if test "${ac_cv_header_stdc+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 cat >conftest.
$ac_ext <<_ACEOF
4157 cat confdefs.h
>>conftest.
$ac_ext
4158 cat >>conftest.
$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4173 rm -f conftest.
$ac_objext
4174 if { (ac_try
="$ac_compile"
4176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_compile") 2>conftest.er1
4182 grep -v '^ *+' conftest.er1 >conftest.err
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } && {
4187 test -z "$ac_c_werror_flag" ||
4188 test ! -s conftest.err
4189 } && test -s conftest.$ac_objext; then
4190 ac_cv_header_stdc=yes
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4195 ac_cv_header_stdc=no
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4200 if test $ac_cv_header_stdc = yes; then
4201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4202 cat >conftest.$ac_ext <<_ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212 $EGREP "memchr" >/dev/null 2>&1; then
4215 ac_cv_header_stdc=no
4221 if test $ac_cv_header_stdc = yes; then
4222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4223 cat >conftest.$ac_ext <<_ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4233 $EGREP "free" >/dev/null 2>&1; then
4236 ac_cv_header_stdc=no
4242 if test $ac_cv_header_stdc = yes; then
4243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4244 if test "$cross_compiling" = yes; then
4247 cat >conftest.$ac_ext <<_ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4255 #if ((' ' & 0x0FF) == 0x020)
4256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4259 # define ISLOWER(c) \
4260 (('a' <= (c) && (c) <= 'i') \
4261 || ('j' <= (c) && (c) <= 'r') \
4262 || ('s' <= (c) && (c) <= 'z'))
4263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4271 for (i = 0; i < 256; i++)
4272 if (XOR (islower (i), ISLOWER (i))
4273 || toupper (i) != TOUPPER (i))
4278 rm -f conftest$ac_exeext
4279 if { (ac_try="$ac_link"
4281 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4282 *) ac_try_echo
=$ac_try;;
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_link") 2>&5
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4289 { (case "(($ac_try" in
4290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_try") 2>&5
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4300 echo "$as_me: program exited with status $ac_status" >&5
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4305 ac_cv_header_stdc=no
4307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4313 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4314 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4315 if test $ac_cv_header_stdc = yes; then
4317 cat >>confdefs.h <<\_ACEOF
4318 #define STDC_HEADERS 1
4323 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4333 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4334 inttypes.h stdint.h unistd.h
4336 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4342 cat >conftest.$ac_ext <<_ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4348 $ac_includes_default
4350 #include <$ac_header>
4352 rm -f conftest.$ac_objext
4353 if { (ac_try="$ac_compile"
4355 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4356 *) ac_try_echo
=$ac_try;;
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_compile") 2>conftest.er1
4361 grep -v '^ *+' conftest.er1
>conftest.err
4363 cat conftest.err
>&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } && {
4366 test -z "$ac_c_werror_flag" ||
4367 test ! -s conftest.err
4368 } && test -s conftest.
$ac_objext; then
4369 eval "$as_ac_Header=yes"
4371 echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.
$ac_ext >&5
4374 eval "$as_ac_Header=no"
4377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4379 ac_res
=`eval echo '${'$as_ac_Header'}'`
4380 { echo "$as_me:$LINENO: result: $ac_res" >&5
4381 echo "${ECHO_T}$ac_res" >&6; }
4382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4383 cat >>confdefs.h
<<_ACEOF
4384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4392 if test "${ac_cv_header_minix_config_h+set}" = set; then
4393 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4394 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4395 if test "${ac_cv_header_minix_config_h+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4398 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4399 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4401 # Is the header compilable?
4402 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4403 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4404 cat >conftest.
$ac_ext <<_ACEOF
4407 cat confdefs.h
>>conftest.
$ac_ext
4408 cat >>conftest.
$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 $ac_includes_default
4411 #include <minix/config.h>
4413 rm -f conftest.
$ac_objext
4414 if { (ac_try
="$ac_compile"
4416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_compile") 2>conftest.er1
4422 grep -v '^ *+' conftest.er1 >conftest.err
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } && {
4427 test -z "$ac_c_werror_flag" ||
4428 test ! -s conftest.err
4429 } && test -s conftest.$ac_objext; then
4430 ac_header_compiler=yes
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4435 ac_header_compiler=no
4438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4440 echo "${ECHO_T}$ac_header_compiler" >&6; }
4442 # Is the header present?
4443 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4444 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4445 cat >conftest.$ac_ext <<_ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 #include <minix/config.h>
4453 if { (ac_try="$ac_cpp conftest.$ac_ext"
4455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4456 *) ac_try_echo
=$ac_try;;
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4461 grep -v '^ *+' conftest.er1
>conftest.err
4463 cat conftest.err
>&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } >/dev
/null
&& {
4466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4469 ac_header_preproc
=yes
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.
$ac_ext >&5
4474 ac_header_preproc
=no
4477 rm -f conftest.err conftest.
$ac_ext
4478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4479 echo "${ECHO_T}$ac_header_preproc" >&6; }
4481 # So? What about this header?
4482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4484 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4485 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4486 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4487 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4488 ac_header_preproc
=yes
4491 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4492 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4494 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4496 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4498 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4500 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4502 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4506 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4507 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4508 if test "${ac_cv_header_minix_config_h+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 ac_cv_header_minix_config_h
=$ac_header_preproc
4513 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4514 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4517 if test $ac_cv_header_minix_config_h = yes; then
4524 if test "$MINIX" = yes; then
4526 cat >>confdefs.h
<<\_ACEOF
4527 #define _POSIX_SOURCE 1
4531 cat >>confdefs.h
<<\_ACEOF
4532 #define _POSIX_1_SOURCE 2
4536 cat >>confdefs.h
<<\_ACEOF
4552 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4553 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4554 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4557 cat >conftest.
$ac_ext <<_ACEOF
4560 cat confdefs.h
>>conftest.
$ac_ext
4561 cat >>conftest.
$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4564 # define __EXTENSIONS__ 1
4565 $ac_includes_default
4574 rm -f conftest.
$ac_objext
4575 if { (ac_try
="$ac_compile"
4577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_compile") 2>conftest.er1
4583 grep -v '^ *+' conftest.er1 >conftest.err
4585 cat conftest.err >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && {
4588 test -z "$ac_c_werror_flag" ||
4589 test ! -s conftest.err
4590 } && test -s conftest.$ac_objext; then
4591 ac_cv_safe_to_define___extensions__=yes
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4596 ac_cv_safe_to_define___extensions__=no
4599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4601 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4602 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4603 test $ac_cv_safe_to_define___extensions__ = yes &&
4604 cat >>confdefs.h <<\_ACEOF
4605 #define __EXTENSIONS__ 1
4608 cat >>confdefs.h <<\_ACEOF
4609 #define _POSIX_PTHREAD_SEMANTICS 1
4612 cat >>confdefs.h <<\_ACEOF
4613 #define _TANDEM_SOURCE 1
4618 ### Use -Wno-pointer-sign if the compiler supports it
4619 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4620 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4621 SAVE_CFLAGS="$CFLAGS"
4622 CFLAGS="$CFLAGS -Wno-pointer-sign"
4623 cat >conftest.$ac_ext <<_ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
4641 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4642 *) ac_try_echo
=$ac_try;;
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645 (eval "$ac_compile") 2>conftest.er1
4647 grep -v '^ *+' conftest.er1
>conftest.err
4649 cat conftest.err
>&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } && {
4652 test -z "$ac_c_werror_flag" ||
4653 test ! -s conftest.err
4654 } && test -s conftest.
$ac_objext; then
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.
$ac_ext >&5
4663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4664 if test $has_option = yes; then
4665 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4667 { echo "$as_me:$LINENO: result: $has_option" >&5
4668 echo "${ECHO_T}$has_option" >&6; }
4669 CFLAGS
="$SAVE_CFLAGS"
4673 #### Some other nice autoconf tests.
4675 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4676 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4678 if test "$LN_S" = "ln -s"; then
4679 { echo "$as_me:$LINENO: result: yes" >&5
4680 echo "${ECHO_T}yes" >&6; }
4682 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4683 echo "${ECHO_T}no, using $LN_S" >&6; }
4687 ac_cpp
='$CPP $CPPFLAGS'
4688 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4691 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4692 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4693 # On Suns, sometimes $CPP names a directory.
4694 if test -n "$CPP" && test -d "$CPP"; then
4697 if test -z "$CPP"; then
4698 if test "${ac_cv_prog_CPP+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4701 # Double quotes because CPP needs to be expanded
4702 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4705 for ac_c_preproc_warn_flag
in '' yes
4707 # Use a header file that comes with gcc, so configuring glibc
4708 # with a fresh cross-compiler works.
4709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4710 # <limits.h> exists even on freestanding compilers.
4711 # On the NeXT, cc -E runs the code through the compiler's parser,
4712 # not just through cpp. "Syntax error" is here to catch this case.
4713 cat >conftest.
$ac_ext <<_ACEOF
4716 cat confdefs.h
>>conftest.
$ac_ext
4717 cat >>conftest.
$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4720 # include <limits.h>
4722 # include <assert.h>
4726 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4734 grep -v '^ *+' conftest.er1 >conftest.err
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } >/dev/null && {
4739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4740 test ! -s conftest.err
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4747 # Broken: fails on valid input.
4751 rm -f conftest.err conftest.$ac_ext
4753 # OK, works on sane cases. Now check whether nonexistent headers
4754 # can be detected and how.
4755 cat >conftest.$ac_ext <<_ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 #include <ac_nonexistent.h>
4763 if { (ac_try="$ac_cpp conftest.$ac_ext"
4765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4766 *) ac_try_echo
=$ac_try;;
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4771 grep -v '^ *+' conftest.er1
>conftest.err
4773 cat conftest.err
>&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev
/null
&& {
4776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4777 test ! -s conftest.err
4779 # Broken: success on invalid input.
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.
$ac_ext >&5
4785 # Passes both tests.
4790 rm -f conftest.err conftest.
$ac_ext
4793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4794 rm -f conftest.err conftest.
$ac_ext
4795 if $ac_preproc_ok; then
4807 { echo "$as_me:$LINENO: result: $CPP" >&5
4808 echo "${ECHO_T}$CPP" >&6; }
4810 for ac_c_preproc_warn_flag
in '' yes
4812 # Use a header file that comes with gcc, so configuring glibc
4813 # with a fresh cross-compiler works.
4814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4815 # <limits.h> exists even on freestanding compilers.
4816 # On the NeXT, cc -E runs the code through the compiler's parser,
4817 # not just through cpp. "Syntax error" is here to catch this case.
4818 cat >conftest.
$ac_ext <<_ACEOF
4821 cat confdefs.h
>>conftest.
$ac_ext
4822 cat >>conftest.
$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4825 # include <limits.h>
4827 # include <assert.h>
4831 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4833 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4839 grep -v '^ *+' conftest.er1 >conftest.err
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } >/dev/null && {
4844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4852 # Broken: fails on valid input.
4856 rm -f conftest.err conftest.$ac_ext
4858 # OK, works on sane cases. Now check whether nonexistent headers
4859 # can be detected and how.
4860 cat >conftest.$ac_ext <<_ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <ac_nonexistent.h>
4868 if { (ac_try="$ac_cpp conftest.$ac_ext"
4870 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4871 *) ac_try_echo
=$ac_try;;
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4876 grep -v '^ *+' conftest.er1
>conftest.err
4878 cat conftest.err
>&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } >/dev
/null
&& {
4881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4882 test ! -s conftest.err
4884 # Broken: success on invalid input.
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.
$ac_ext >&5
4890 # Passes both tests.
4895 rm -f conftest.err conftest.
$ac_ext
4898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4899 rm -f conftest.err conftest.
$ac_ext
4900 if $ac_preproc_ok; then
4903 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4904 See \`config.log' for more details." >&5
4905 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4906 See \`config.log' for more details." >&2;}
4907 { (exit 1); exit 1; }; }
4911 ac_cpp
='$CPP $CPPFLAGS'
4912 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4916 # Find a good install program. We prefer a C program (faster),
4917 # so one script is as good as another. But avoid the broken or
4918 # incompatible versions:
4919 # SysV /etc/install, /usr/sbin/install
4920 # SunOS /usr/etc/install
4921 # IRIX /sbin/install
4923 # AmigaOS /C/install, which installs bootblocks on floppy discs
4924 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4925 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4926 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4927 # OS/2's system install, which has a completely different semantic
4928 # ./install, which can be erroneously created by make from ./install.sh.
4929 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4930 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4931 if test -z "$INSTALL"; then
4932 if test "${ac_cv_path_install+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4939 test -z "$as_dir" && as_dir
=.
4940 # Account for people who put trailing slashes in PATH elements.
4942 .
/ | .
// |
/cC
/* | \
4943 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4944 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4947 # OSF1 and SCO ODT 3.0 have their own names for install.
4948 # Don't use installbsd from OSF since it installs stuff as root
4950 for ac_prog
in ginstall scoinst
install; do
4951 for ac_exec_ext
in '' $ac_executable_extensions; do
4952 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4953 if test $ac_prog = install &&
4954 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4955 # AIX install. It has an incompatible calling convention.
4957 elif test $ac_prog = install &&
4958 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4959 # program-specific install script used by HP pwplus--don't use.
4962 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4975 if test "${ac_cv_path_install+set}" = set; then
4976 INSTALL
=$ac_cv_path_install
4978 # As a last resort, use the slow shell script. Don't cache a
4979 # value for INSTALL within a source directory, because that will
4980 # break other packages using the cache if that directory is
4981 # removed, or if the value is a relative name.
4982 INSTALL
=$ac_install_sh
4985 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4986 echo "${ECHO_T}$INSTALL" >&6; }
4988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4989 # It thinks the first close brace ends the variable substitution.
4990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4994 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4996 if test "x$RANLIB" = x
; then
4997 if test -n "$ac_tool_prefix"; then
4998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4999 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5002 if test "${ac_cv_prog_RANLIB+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 if test -n "$RANLIB"; then
5006 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5012 test -z "$as_dir" && as_dir
=.
5013 for ac_exec_ext
in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 RANLIB
=$ac_cv_prog_RANLIB
5026 if test -n "$RANLIB"; then
5027 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5028 echo "${ECHO_T}$RANLIB" >&6; }
5030 { echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6; }
5036 if test -z "$ac_cv_prog_RANLIB"; then
5037 ac_ct_RANLIB
=$RANLIB
5038 # Extract the first word of "ranlib", so it can be a program name with args.
5039 set dummy ranlib
; ac_word
=$2
5040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5042 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5045 if test -n "$ac_ct_RANLIB"; then
5046 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5052 test -z "$as_dir" && as_dir
=.
5053 for ac_exec_ext
in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5066 if test -n "$ac_ct_RANLIB"; then
5067 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5068 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5070 { echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6; }
5074 if test "x$ac_ct_RANLIB" = x
; then
5077 case $cross_compiling:$ac_tool_warned in
5079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5080 whose name does not start with the host triplet. If you think this
5081 configuration is useful to you, please write to autoconf@gnu.org." >&5
5082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5083 whose name does not start with the host triplet. If you think this
5084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5085 ac_tool_warned
=yes ;;
5087 RANLIB
=$ac_ct_RANLIB
5090 RANLIB
="$ac_cv_prog_RANLIB"
5094 # Extract the first word of "install-info", so it can be a program name with args.
5095 set dummy install-info
; ac_word
=$2
5096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5098 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5101 case $INSTALL_INFO in
5103 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5110 test -z "$as_dir" && as_dir
=.
5111 for ac_exec_ext
in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5124 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5125 if test -n "$INSTALL_INFO"; then
5126 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5127 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5129 { echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6; }
5134 # Extract the first word of "install-info", so it can be a program name with args.
5135 set dummy install-info
; ac_word
=$2
5136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5141 case $INSTALL_INFO in
5143 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5147 for as_dir
in /usr
/sbin
5150 test -z "$as_dir" && as_dir
=.
5151 for ac_exec_ext
in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5164 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5165 if test -n "$INSTALL_INFO"; then
5166 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5167 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5169 { echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6; }
5174 # Extract the first word of "install-info", so it can be a program name with args.
5175 set dummy install-info
; ac_word
=$2
5176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5178 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5181 case $INSTALL_INFO in
5183 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5186 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5190 test -z "$as_dir" && as_dir
=.
5191 for ac_exec_ext
in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5205 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5206 if test -n "$INSTALL_INFO"; then
5207 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5208 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5210 { echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6; }
5215 # Extract the first word of "gzip", so it can be a program name with args.
5216 set dummy
gzip; ac_word
=$2
5217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5219 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5224 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5227 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5231 test -z "$as_dir" && as_dir
=.
5232 for ac_exec_ext
in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5246 if test -n "$GZIP_PROG"; then
5247 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5248 echo "${ECHO_T}$GZIP_PROG" >&6; }
5250 { echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6; }
5257 ## Need makeinfo >= 4.6 (?) to build the manuals.
5258 # Extract the first word of "makeinfo", so it can be a program name with args.
5259 set dummy makeinfo
; ac_word
=$2
5260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5262 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5267 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5274 test -z "$as_dir" && as_dir
=.
5275 for ac_exec_ext
in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5285 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5289 MAKEINFO
=$ac_cv_path_MAKEINFO
5290 if test -n "$MAKEINFO"; then
5291 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5292 echo "${ECHO_T}$MAKEINFO" >&6; }
5294 { echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6; }
5299 if test "$MAKEINFO" != "no" && \
5300 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
5304 ## Makeinfo is unusual. For a released Emacs, the manuals are
5305 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5306 ## therefore in the category of "special tools" not normally required, which
5307 ## configure does not have to check for (eg autoconf itself).
5308 ## In a CVS checkout on the other hand, the manuals are not included.
5309 ## So makeinfo is a requirement to build from CVS, and configure
5310 ## should test for it as it does for any other build requirement.
5311 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5312 ## with pre-built manuals, from a CVS checkout.
5313 if test "$MAKEINFO" = "no"; then
5314 if test "x${with_makeinfo}" = "xno"; then
5316 elif ! test -e $srcdir/info
/emacs
; then
5317 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5318 source tree does not seem to have pre-built manuals in the \`info' directory.
5319 Either install a suitable version of makeinfo, or re-run configure
5320 with the \`--without-makeinfo' option to build without the manuals. " >&5
5321 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5322 source tree does not seem to have pre-built manuals in the \`info' directory.
5323 Either install a suitable version of makeinfo, or re-run configure
5324 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5325 { (exit 1); exit 1; }; }
5330 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5332 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5335 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5337 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5341 late_LDFLAGS
=$LDFLAGS
5342 if test "$GCC" = yes; then
5343 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5345 LDFLAGS
="$LDFLAGS -znocombreloc"
5348 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5349 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5350 cat >conftest.
$ac_ext <<_ACEOF
5353 rm -f conftest.
$ac_objext conftest
$ac_exeext
5354 if { (ac_try
="$ac_link"
5356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_link") 2>conftest.er1
5362 grep -v '^ *+' conftest.er1 >conftest.err
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } && {
5367 test -z "$ac_c_werror_flag" ||
5368 test ! -s conftest.err
5369 } && test -s conftest$ac_exeext &&
5370 $as_test_x conftest$ac_exeext; then
5371 { echo "$as_me:$LINENO: result: yes" >&5
5372 echo "${ECHO_T}yes" >&6; }
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5377 LDFLAGS=$late_LDFLAGS
5378 { echo "$as_me:$LINENO: result: no" >&5
5379 echo "${ECHO_T}no" >&6; }
5382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5383 conftest$ac_exeext conftest.$ac_ext
5385 #### Extract some information from the operating system and machine files.
5387 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5388 - which libraries the lib-src programs will want, and
5389 - whether the GNU malloc routines are usable..." >&5
5390 echo "$as_me: checking the machine- and system-dependent files to find out
5391 - which libraries the lib-src programs will want, and
5392 - whether the GNU malloc routines are usable..." >&6;}
5394 ### First figure out CFLAGS (which we use for running the compiler here)
5395 ### and REAL_CFLAGS (which we use for real compilation).
5396 ### The two are the same except on a few systems, where they are made
5397 ### different to work around various lossages. For example,
5398 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5399 ### as implying static linking.
5401 ### If the CFLAGS env var is specified, we use that value
5402 ### instead of the default.
5404 ### It's not important that this name contain the PID; you can't run
5405 ### two configures in the same directory and have anything work
5407 tempcname="conftest.c"
5410 #include "'${srcdir}'/src/'${opsysfile}'"
5411 #include "'${srcdir}'/src/'${machfile}'"
5412 #ifndef LIBS_MACHINE
5413 #define LIBS_MACHINE
5418 #ifndef C_SWITCH_SYSTEM
5419 #define C_SWITCH_SYSTEM
5421 #ifndef C_SWITCH_MACHINE
5422 #define C_SWITCH_MACHINE
5424 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5425 configure___ c_switch_system=C_SWITCH_SYSTEM
5426 configure___ c_switch_machine=C_SWITCH_MACHINE
5429 #define LIB_X11_LIB -lX11
5432 #ifndef LIBX11_SYSTEM
5433 #define LIBX11_SYSTEM
5435 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5438 configure___ unexec=UNEXEC
5440 configure___ unexec=unexec.o
5443 #ifdef SYSTEM_MALLOC
5444 configure___ system_malloc=yes
5446 configure___ system_malloc=no
5449 #ifdef USE_MMAP_FOR_BUFFERS
5450 configure___ use_mmap_for_buffers=yes
5452 configure___ use_mmap_for_buffers=no
5455 #ifndef C_DEBUG_SWITCH
5456 #define C_DEBUG_SWITCH -g
5459 #ifndef C_OPTIMIZE_SWITCH
5461 #define C_OPTIMIZE_SWITCH -O2
5463 #define C_OPTIMIZE_SWITCH -O
5467 #ifndef C_WARNINGS_SWITCH
5468 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5471 #ifndef LD_SWITCH_MACHINE
5472 #define LD_SWITCH_MACHINE
5475 #ifndef LD_SWITCH_SYSTEM
5476 #define LD_SWITCH_SYSTEM
5479 #ifndef LD_SWITCH_X_SITE_AUX
5480 #define LD_SWITCH_X_SITE_AUX
5483 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5484 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5486 #ifdef THIS_IS_CONFIGURE
5488 /* Get the CFLAGS for tests in configure. */
5490 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5492 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5495 #else /* not THIS_IS_CONFIGURE */
5497 /* Get the CFLAGS for real compilation. */
5499 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5501 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5504 #endif /* not THIS_IS_CONFIGURE */
5507 # The value of CPP is a quoted variable reference, so we need to do this
5508 # to get its actual value...
5509 CPP=`eval "echo $CPP"`
5510 eval `${CPP} -Isrc ${tempcname} \
5511 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5512 if test "x$SPECIFIED_CFLAGS" = x; then
5513 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5514 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5516 REAL_CFLAGS="$CFLAGS"
5520 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5522 ### Make sure subsequent tests use flags consistent with the build flags.
5524 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5525 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5527 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5532 # Check whether --enable-largefile was given.
5533 if test "${enable_largefile+set}" = set; then
5534 enableval=$enable_largefile;
5537 if test "$enable_largefile" != no; then
5539 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5540 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5541 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5544 ac_cv_sys_largefile_CC=no
5545 if test "$GCC" != yes; then
5548 # IRIX 6.2 and later do not support large files by default,
5549 # so use the C compiler's -n32 option if that helps.
5550 cat >conftest.$ac_ext <<_ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 #include <sys/types.h>
5557 /* Check that off_t can represent 2**63 - 1 correctly.
5558 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5559 since some C++ compilers masquerading as C compilers
5560 incorrectly reject 9223372036854775807. */
5561 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5562 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5563 && LARGE_OFF_T % 2147483647 == 1)
5573 rm -f conftest.$ac_objext
5574 if { (ac_try="$ac_compile"
5576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5577 *) ac_try_echo
=$ac_try;;
5579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_compile") 2>conftest.er1
5582 grep -v '^ *+' conftest.er1
>conftest.err
5584 cat conftest.err
>&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && {
5587 test -z "$ac_c_werror_flag" ||
5588 test ! -s conftest.err
5589 } && test -s conftest.
$ac_objext; then
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.
$ac_ext >&5
5598 rm -f core conftest.err conftest.
$ac_objext
5600 rm -f conftest.
$ac_objext
5601 if { (ac_try
="$ac_compile"
5603 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_compile") 2>conftest.er1
5609 grep -v '^ *+' conftest.er1 >conftest.err
5611 cat conftest.err >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } && {
5614 test -z "$ac_c_werror_flag" ||
5615 test ! -s conftest.err
5616 } && test -s conftest.$ac_objext; then
5617 ac_cv_sys_largefile_CC=' -n32'; break
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5625 rm -f core conftest.err conftest.$ac_objext
5629 rm -f conftest.$ac_ext
5632 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5633 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5634 if test "$ac_cv_sys_largefile_CC" != no; then
5635 CC=$CC$ac_cv_sys_largefile_CC
5638 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5639 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5640 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 cat >conftest.$ac_ext <<_ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 #include <sys/types.h>
5651 /* Check that off_t can represent 2**63 - 1 correctly.
5652 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5653 since some C++ compilers masquerading as C compilers
5654 incorrectly reject 9223372036854775807. */
5655 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5656 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5657 && LARGE_OFF_T % 2147483647 == 1)
5667 rm -f conftest.$ac_objext
5668 if { (ac_try="$ac_compile"
5670 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5671 *) ac_try_echo
=$ac_try;;
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_compile") 2>conftest.er1
5676 grep -v '^ *+' conftest.er1
>conftest.err
5678 cat conftest.err
>&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } && {
5681 test -z "$ac_c_werror_flag" ||
5682 test ! -s conftest.err
5683 } && test -s conftest.
$ac_objext; then
5684 ac_cv_sys_file_offset_bits
=no
; break
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.
$ac_ext >&5
5692 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5693 cat >conftest.
$ac_ext <<_ACEOF
5696 cat confdefs.h
>>conftest.
$ac_ext
5697 cat >>conftest.
$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5699 #define _FILE_OFFSET_BITS 64
5700 #include <sys/types.h>
5701 /* Check that off_t can represent 2**63 - 1 correctly.
5702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5703 since some C++ compilers masquerading as C compilers
5704 incorrectly reject 9223372036854775807. */
5705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5707 && LARGE_OFF_T % 2147483647 == 1)
5717 rm -f conftest.
$ac_objext
5718 if { (ac_try
="$ac_compile"
5720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5726 grep -v '^ *+' conftest.er1 >conftest.err
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest.$ac_objext; then
5734 ac_cv_sys_file_offset_bits=64; break
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 ac_cv_sys_file_offset_bits=unknown
5747 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5748 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5749 case $ac_cv_sys_file_offset_bits in #(
5752 cat >>confdefs.h <<_ACEOF
5753 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5758 if test $ac_cv_sys_file_offset_bits = unknown; then
5759 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5760 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5761 if test "${ac_cv_sys_large_files+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5765 cat >conftest.$ac_ext <<_ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5771 #include <sys/types.h>
5772 /* Check that off_t can represent 2**63 - 1 correctly.
5773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5774 since some C++ compilers masquerading as C compilers
5775 incorrectly reject 9223372036854775807. */
5776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5778 && LARGE_OFF_T % 2147483647 == 1)
5788 rm -f conftest.$ac_objext
5789 if { (ac_try="$ac_compile"
5791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5792 *) ac_try_echo
=$ac_try;;
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compile") 2>conftest.er1
5797 grep -v '^ *+' conftest.er1
>conftest.err
5799 cat conftest.err
>&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } && {
5802 test -z "$ac_c_werror_flag" ||
5803 test ! -s conftest.err
5804 } && test -s conftest.
$ac_objext; then
5805 ac_cv_sys_large_files
=no
; break
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.
$ac_ext >&5
5813 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5814 cat >conftest.
$ac_ext <<_ACEOF
5817 cat confdefs.h
>>conftest.
$ac_ext
5818 cat >>conftest.
$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 #define _LARGE_FILES 1
5821 #include <sys/types.h>
5822 /* Check that off_t can represent 2**63 - 1 correctly.
5823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5824 since some C++ compilers masquerading as C compilers
5825 incorrectly reject 9223372036854775807. */
5826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5828 && LARGE_OFF_T % 2147483647 == 1)
5838 rm -f conftest.
$ac_objext
5839 if { (ac_try
="$ac_compile"
5841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_compile") 2>conftest.er1
5847 grep -v '^ *+' conftest.er1 >conftest.err
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } && {
5852 test -z "$ac_c_werror_flag" ||
5853 test ! -s conftest.err
5854 } && test -s conftest.$ac_objext; then
5855 ac_cv_sys_large_files=1; break
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864 ac_cv_sys_large_files=unknown
5868 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5869 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5870 case $ac_cv_sys_large_files in #(
5873 cat >>confdefs.h <<_ACEOF
5874 #define _LARGE_FILES $ac_cv_sys_large_files
5884 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5885 ### be located in either /usr/lib64 or /usr/lib.
5886 case "${canonical}" in
5887 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5888 if test -d /usr/lib64; then
5890 cat >>confdefs.h <<\_ACEOF
5891 #define HAVE_LIB64_DIR 1
5900 if test "${with_sound}" != "no"; then
5901 # Sound support for GNU/Linux and the free BSDs.
5905 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5907 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5914 ac_res=`eval echo '${'$as_ac_Header'}'`
5915 { echo "$as_me:$LINENO: result: $ac_res" >&5
5916 echo "${ECHO_T}$ac_res" >&6; }
5918 # Is the header compilable?
5919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5921 cat >conftest.$ac_ext <<_ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5927 $ac_includes_default
5928 #include <$ac_header>
5930 rm -f conftest.$ac_objext
5931 if { (ac_try="$ac_compile"
5933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5934 *) ac_try_echo
=$ac_try;;
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_compile") 2>conftest.er1
5939 grep -v '^ *+' conftest.er1
>conftest.err
5941 cat conftest.err
>&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && {
5944 test -z "$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5946 } && test -s conftest.
$ac_objext; then
5947 ac_header_compiler
=yes
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.
$ac_ext >&5
5952 ac_header_compiler
=no
5955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5957 echo "${ECHO_T}$ac_header_compiler" >&6; }
5959 # Is the header present?
5960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5962 cat >conftest.
$ac_ext <<_ACEOF
5965 cat confdefs.h
>>conftest.
$ac_ext
5966 cat >>conftest.
$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <$ac_header>
5970 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5978 grep -v '^ *+' conftest.er1 >conftest.err
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } >/dev/null && {
5983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5984 test ! -s conftest.err
5986 ac_header_preproc=yes
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5991 ac_header_preproc=no
5994 rm -f conftest.err conftest.$ac_ext
5995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5996 echo "${ECHO_T}$ac_header_preproc" >&6; }
5998 # So? What about this header?
5999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6005 ac_header_preproc=yes
6008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 eval "$as_ac_Header=\$ac_header_preproc"
6030 ac_res=`eval echo '${'$as_ac_Header'}'`
6031 { echo "$as_me:$LINENO: result: $ac_res" >&5
6032 echo "${ECHO_T}$ac_res" >&6; }
6035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6036 cat >>confdefs.h <<_ACEOF
6037 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6044 # Emulation library used on NetBSD.
6045 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6046 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6047 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6050 ac_check_lib_save_LIBS=$LIBS
6051 LIBS="-lossaudio $LIBS"
6052 cat >conftest.$ac_ext <<_ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6059 /* Override any GCC internal prototype to avoid an error.
6060 Use char because int might match the return type of a GCC
6061 builtin and then its argument prototype would still apply. */
6069 return _oss_ioctl ();
6074 rm -f conftest.$ac_objext conftest$ac_exeext
6075 if { (ac_try="$ac_link"
6077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6078 *) ac_try_echo
=$ac_try;;
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_link") 2>conftest.er1
6083 grep -v '^ *+' conftest.er1
>conftest.err
6085 cat conftest.err
>&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } && {
6088 test -z "$ac_c_werror_flag" ||
6089 test ! -s conftest.err
6090 } && test -s conftest
$ac_exeext &&
6091 $as_test_x conftest
$ac_exeext; then
6092 ac_cv_lib_ossaudio__oss_ioctl
=yes
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.
$ac_ext >&5
6097 ac_cv_lib_ossaudio__oss_ioctl
=no
6100 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6101 conftest
$ac_exeext conftest.
$ac_ext
6102 LIBS
=$ac_check_lib_save_LIBS
6104 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6105 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6106 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6115 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6119 # Extract the first word of "pkg-config", so it can be a program name with args.
6120 set dummy pkg-config
; ac_word
=$2
6121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6123 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6128 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6131 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6135 test -z "$as_dir" && as_dir
=.
6136 for ac_exec_ext
in '' $ac_executable_extensions; do
6137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6138 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6150 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6151 if test -n "$PKG_CONFIG"; then
6152 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6153 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6155 { echo "$as_me:$LINENO: result: no" >&5
6156 echo "${ECHO_T}no" >&6; }
6161 if test "$PKG_CONFIG" = "no" ; then
6164 PKG_CONFIG_MIN_VERSION
=0.9.0
6165 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6166 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6167 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6169 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6170 { echo "$as_me:$LINENO: result: yes" >&5
6171 echo "${ECHO_T}yes" >&6; }
6174 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6175 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6176 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6177 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6178 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6180 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6181 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6182 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6183 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6184 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6186 { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6190 ## If we have a custom action on failure, don't print errors, but
6191 ## do set a variable so people can do so.
6192 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6199 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6200 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6204 if test $succeeded = yes; then
6210 if test $HAVE_ALSA = yes; then
6211 SAVE_CFLAGS
="$CFLAGS"
6212 SAVE_LDFLAGS
="$LDFLAGS"
6213 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6214 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6215 cat >conftest.
$ac_ext <<_ACEOF
6218 cat confdefs.h
>>conftest.
$ac_ext
6219 cat >>conftest.
$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 #include <asoundlib.h>
6225 snd_lib_error_set_handler (0);
6230 rm -f conftest.
$ac_objext
6231 if { (ac_try
="$ac_compile"
6233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_compile") 2>conftest.er1
6239 grep -v '^ *+' conftest.er1 >conftest.err
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } && {
6244 test -z "$ac_c_werror_flag" ||
6245 test ! -s conftest.err
6246 } && test -s conftest.$ac_objext; then
6247 emacs_alsa_normal=yes
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6252 emacs_alsa_normal=no
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 if test "$emacs_alsa_normal" != yes; then
6257 cat >conftest.$ac_ext <<_ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 #include <alsa/asoundlib.h>
6267 snd_lib_error_set_handler (0);
6272 rm -f conftest.$ac_objext
6273 if { (ac_try="$ac_compile"
6275 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6276 *) ac_try_echo
=$ac_try;;
6278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_compile") 2>conftest.er1
6281 grep -v '^ *+' conftest.er1
>conftest.err
6283 cat conftest.err
>&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && {
6286 test -z "$ac_c_werror_flag" ||
6287 test ! -s conftest.err
6288 } && test -s conftest.
$ac_objext; then
6289 emacs_alsa_subdir
=yes
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.
$ac_ext >&5
6294 emacs_alsa_subdir
=no
6297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6298 if test "$emacs_alsa_subdir" != yes; then
6299 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6300 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6301 { (exit 1); exit 1; }; }
6303 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6306 CFLAGS
="$SAVE_CFLAGS"
6307 LDFLAGS
="$SAVE_LDFLAGS"
6308 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6309 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6311 cat >>confdefs.h
<<\_ACEOF
6344 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6345 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6346 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6347 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6350 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6351 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6354 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6357 ac_res
=`eval echo '${'$as_ac_Header'}'`
6358 { echo "$as_me:$LINENO: result: $ac_res" >&5
6359 echo "${ECHO_T}$ac_res" >&6; }
6361 # Is the header compilable?
6362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6364 cat >conftest.
$ac_ext <<_ACEOF
6367 cat confdefs.h
>>conftest.
$ac_ext
6368 cat >>conftest.
$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 $ac_includes_default
6371 #include <$ac_header>
6373 rm -f conftest.
$ac_objext
6374 if { (ac_try
="$ac_compile"
6376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6377 *) ac_try_echo=$ac_try;;
6379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6380 (eval "$ac_compile") 2>conftest.er1
6382 grep -v '^ *+' conftest.er1 >conftest.err
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } && {
6387 test -z "$ac_c_werror_flag" ||
6388 test ! -s conftest.err
6389 } && test -s conftest.$ac_objext; then
6390 ac_header_compiler=yes
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6395 ac_header_compiler=no
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6400 echo "${ECHO_T}$ac_header_compiler" >&6; }
6402 # Is the header present?
6403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6405 cat >conftest.$ac_ext <<_ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6411 #include <$ac_header>
6413 if { (ac_try="$ac_cpp conftest.$ac_ext"
6415 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6416 *) ac_try_echo
=$ac_try;;
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6421 grep -v '^ *+' conftest.er1
>conftest.err
6423 cat conftest.err
>&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } >/dev
/null
&& {
6426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6427 test ! -s conftest.err
6429 ac_header_preproc
=yes
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.
$ac_ext >&5
6434 ac_header_preproc
=no
6437 rm -f conftest.err conftest.
$ac_ext
6438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6439 echo "${ECHO_T}$ac_header_preproc" >&6; }
6441 # So? What about this header?
6442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6448 ac_header_preproc
=yes
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6468 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 eval "$as_ac_Header=\$ac_header_preproc"
6473 ac_res
=`eval echo '${'$as_ac_Header'}'`
6474 { echo "$as_me:$LINENO: result: $ac_res" >&5
6475 echo "${ECHO_T}$ac_res" >&6; }
6478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6479 cat >>confdefs.h
<<_ACEOF
6480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6488 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6489 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6490 cat >conftest.
$ac_ext <<_ACEOF
6493 cat confdefs.h
>>conftest.
$ac_ext
6494 cat >>conftest.
$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 #include <sys/personality.h>
6500 personality (PER_LINUX32)
6505 rm -f conftest.
$ac_objext
6506 if { (ac_try
="$ac_compile"
6508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_compile") 2>conftest.er1
6514 grep -v '^ *+' conftest.er1 >conftest.err
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } && {
6519 test -z "$ac_c_werror_flag" ||
6520 test ! -s conftest.err
6521 } && test -s conftest.$ac_objext; then
6522 emacs_cv_personality_linux32=yes
6524 echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6527 emacs_cv_personality_linux32=no
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6532 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6534 if test $emacs_cv_personality_linux32 = yes; then
6536 cat >>confdefs.h <<\_ACEOF
6537 #define HAVE_PERSONALITY_LINUX32 1
6543 for ac_header in term.h
6545 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 cat >conftest.$ac_ext <<_ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 #include <$ac_header>
6559 if { (ac_try="$ac_cpp conftest.$ac_ext"
6561 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6562 *) ac_try_echo
=$ac_try;;
6564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6567 grep -v '^ *+' conftest.er1
>conftest.err
6569 cat conftest.err
>&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } >/dev
/null
&& {
6572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6573 test ! -s conftest.err
6575 eval "$as_ac_Header=yes"
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.
$ac_ext >&5
6580 eval "$as_ac_Header=no"
6583 rm -f conftest.err conftest.
$ac_ext
6585 ac_res
=`eval echo '${'$as_ac_Header'}'`
6586 { echo "$as_me:$LINENO: result: $ac_res" >&5
6587 echo "${ECHO_T}$ac_res" >&6; }
6588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6589 cat >>confdefs.h
<<_ACEOF
6590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6597 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6598 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6599 if test "${ac_cv_header_stdc+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 cat >conftest.
$ac_ext <<_ACEOF
6605 cat confdefs.h
>>conftest.
$ac_ext
6606 cat >>conftest.
$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6621 rm -f conftest.
$ac_objext
6622 if { (ac_try
="$ac_compile"
6624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6625 *) ac_try_echo=$ac_try;;
6627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628 (eval "$ac_compile") 2>conftest.er1
6630 grep -v '^ *+' conftest.er1 >conftest.err
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } && {
6635 test -z "$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6637 } && test -s conftest.$ac_objext; then
6638 ac_cv_header_stdc=yes
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6643 ac_cv_header_stdc=no
6646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6648 if test $ac_cv_header_stdc = yes; then
6649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6650 cat >conftest.$ac_ext <<_ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6660 $EGREP "memchr" >/dev/null 2>&1; then
6663 ac_cv_header_stdc=no
6669 if test $ac_cv_header_stdc = yes; then
6670 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6671 cat >conftest.$ac_ext <<_ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6681 $EGREP "free" >/dev/null 2>&1; then
6684 ac_cv_header_stdc=no
6690 if test $ac_cv_header_stdc = yes; then
6691 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6692 if test "$cross_compiling" = yes; then
6695 cat >conftest.$ac_ext <<_ACEOF
6698 cat confdefs.h >>conftest.$ac_ext
6699 cat >>conftest.$ac_ext <<_ACEOF
6700 /* end confdefs.h. */
6703 #if ((' ' & 0x0FF) == 0x020)
6704 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6705 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6707 # define ISLOWER(c) \
6708 (('a' <= (c) && (c) <= 'i') \
6709 || ('j' <= (c) && (c) <= 'r') \
6710 || ('s' <= (c) && (c) <= 'z'))
6711 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6714 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6719 for (i = 0; i < 256; i++)
6720 if (XOR (islower (i), ISLOWER (i))
6721 || toupper (i) != TOUPPER (i))
6726 rm -f conftest$ac_exeext
6727 if { (ac_try="$ac_link"
6729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6730 *) ac_try_echo
=$ac_try;;
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_link") 2>&5
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6737 { (case "(($ac_try" in
6738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6739 *) ac_try_echo=$ac_try;;
6741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6742 (eval "$ac_try") 2>&5
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; }; then
6748 echo "$as_me: program exited with status $ac_status" >&5
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6753 ac_cv_header_stdc=no
6755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6761 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6762 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6763 if test $ac_cv_header_stdc = yes; then
6765 cat >>confdefs.h <<\_ACEOF
6766 #define STDC_HEADERS 1
6771 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6772 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6773 if test "${ac_cv_header_time+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6776 cat >conftest.$ac_ext <<_ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 #include <sys/types.h>
6783 #include <sys/time.h>
6789 if ((struct tm *) 0)
6795 rm -f conftest.$ac_objext
6796 if { (ac_try="$ac_compile"
6798 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6799 *) ac_try_echo
=$ac_try;;
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_compile") 2>conftest.er1
6804 grep -v '^ *+' conftest.er1
>conftest.err
6806 cat conftest.err
>&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest.
$ac_objext; then
6812 ac_cv_header_time
=yes
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.
$ac_ext >&5
6817 ac_cv_header_time
=no
6820 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6822 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6823 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6824 if test $ac_cv_header_time = yes; then
6826 cat >>confdefs.h
<<\_ACEOF
6827 #define TIME_WITH_SYS_TIME 1
6832 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6833 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6834 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 cat >conftest.
$ac_ext <<_ACEOF
6840 cat confdefs.h
>>conftest.
$ac_ext
6841 cat >>conftest.
$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 $ac_includes_default
6855 rm -f conftest.
$ac_objext
6856 if { (ac_try
="$ac_compile"
6858 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6859 *) ac_try_echo=$ac_try;;
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_compile") 2>conftest.er1
6864 grep -v '^ *+' conftest.er1 >conftest.err
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && {
6869 test -z "$ac_c_werror_flag" ||
6870 test ! -s conftest.err
6871 } && test -s conftest.$ac_objext; then
6872 ac_cv_have_decl_sys_siglist=yes
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6877 ac_cv_have_decl_sys_siglist=no
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6882 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6883 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6884 if test $ac_cv_have_decl_sys_siglist = yes; then
6886 cat >>confdefs.h <<_ACEOF
6887 #define HAVE_DECL_SYS_SIGLIST 1
6892 cat >>confdefs.h <<_ACEOF
6893 #define HAVE_DECL_SYS_SIGLIST 0
6900 if test $ac_cv_have_decl_sys_siglist != yes; then
6901 # For Tru64, at least:
6902 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6903 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6904 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 cat >conftest.$ac_ext <<_ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 $ac_includes_default
6917 #ifndef __sys_siglist
6918 (void) __sys_siglist;
6925 rm -f conftest.$ac_objext
6926 if { (ac_try="$ac_compile"
6928 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6929 *) ac_try_echo
=$ac_try;;
6931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6932 (eval "$ac_compile") 2>conftest.er1
6934 grep -v '^ *+' conftest.er1
>conftest.err
6936 cat conftest.err
>&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } && {
6939 test -z "$ac_c_werror_flag" ||
6940 test ! -s conftest.err
6941 } && test -s conftest.
$ac_objext; then
6942 ac_cv_have_decl___sys_siglist
=yes
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.
$ac_ext >&5
6947 ac_cv_have_decl___sys_siglist
=no
6950 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6952 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6953 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6954 if test $ac_cv_have_decl___sys_siglist = yes; then
6956 cat >>confdefs.h
<<_ACEOF
6957 #define HAVE_DECL___SYS_SIGLIST 1
6962 cat >>confdefs.h
<<_ACEOF
6963 #define HAVE_DECL___SYS_SIGLIST 0
6970 if test $ac_cv_have_decl___sys_siglist = yes; then
6972 cat >>confdefs.h
<<\_ACEOF
6973 #define sys_siglist __sys_siglist
6978 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6979 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6980 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6983 cat >conftest.
$ac_ext <<_ACEOF
6986 cat confdefs.h
>>conftest.
$ac_ext
6987 cat >>conftest.
$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 #include <sys/types.h>
6990 #include <sys/wait.h>
6992 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6995 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7003 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7008 rm -f conftest.
$ac_objext
7009 if { (ac_try
="$ac_compile"
7011 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015 (eval "$ac_compile") 2>conftest.er1
7017 grep -v '^ *+' conftest.er1 >conftest.err
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest.$ac_objext; then
7025 ac_cv_header_sys_wait_h=yes
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7030 ac_cv_header_sys_wait_h=no
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7035 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7036 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7037 if test $ac_cv_header_sys_wait_h = yes; then
7039 cat >>confdefs.h <<\_ACEOF
7040 #define HAVE_SYS_WAIT_H 1
7046 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7047 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7048 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 cat >conftest.$ac_ext <<_ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 #ifdef TIME_WITH_SYS_TIME
7058 #include <sys/time.h>
7061 #ifdef HAVE_SYS_TIME_H
7062 #include <sys/time.h>
7073 static struct utimbuf x; x.actime = x.modtime;
7078 rm -f conftest.$ac_objext
7079 if { (ac_try="$ac_compile"
7081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7082 *) ac_try_echo
=$ac_try;;
7084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7085 (eval "$ac_compile") 2>conftest.er1
7087 grep -v '^ *+' conftest.er1
>conftest.err
7089 cat conftest.err
>&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } && {
7092 test -z "$ac_c_werror_flag" ||
7093 test ! -s conftest.err
7094 } && test -s conftest.
$ac_objext; then
7095 emacs_cv_struct_utimbuf
=yes
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.
$ac_ext >&5
7100 emacs_cv_struct_utimbuf
=no
7103 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7105 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7106 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7107 if test $emacs_cv_struct_utimbuf = yes; then
7109 cat >>confdefs.h
<<\_ACEOF
7110 #define HAVE_STRUCT_UTIMBUF 1
7115 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7116 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7117 if test "${ac_cv_type_signal+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7120 cat >conftest.
$ac_ext <<_ACEOF
7123 cat confdefs.h
>>conftest.
$ac_ext
7124 cat >>conftest.
$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 #include <sys/types.h>
7132 return *(signal (0, 0)) (0) == 1;
7137 rm -f conftest.
$ac_objext
7138 if { (ac_try
="$ac_compile"
7140 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7141 *) ac_try_echo=$ac_try;;
7143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7144 (eval "$ac_compile") 2>conftest.er1
7146 grep -v '^ *+' conftest.er1 >conftest.err
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } && {
7151 test -z "$ac_c_werror_flag" ||
7152 test ! -s conftest.err
7153 } && test -s conftest.$ac_objext; then
7154 ac_cv_type_signal=int
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7159 ac_cv_type_signal=void
7162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7164 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7165 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7167 cat >>confdefs.h <<_ACEOF
7168 #define RETSIGTYPE $ac_cv_type_signal
7173 { echo "$as_me:$LINENO: checking for speed_t" >&5
7174 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7175 if test "${emacs_cv_speed_t+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7178 cat >conftest.$ac_ext <<_ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7184 #include <termios.h>
7193 rm -f conftest.$ac_objext
7194 if { (ac_try="$ac_compile"
7196 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7197 *) ac_try_echo
=$ac_try;;
7199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7200 (eval "$ac_compile") 2>conftest.er1
7202 grep -v '^ *+' conftest.er1
>conftest.err
7204 cat conftest.err
>&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest.
$ac_objext; then
7210 emacs_cv_speed_t
=yes
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.
$ac_ext >&5
7218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7220 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7221 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7222 if test $emacs_cv_speed_t = yes; then
7224 cat >>confdefs.h
<<\_ACEOF
7225 #define HAVE_SPEED_T 1
7230 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7231 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7232 if test "${emacs_cv_struct_timeval+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7235 cat >conftest.
$ac_ext <<_ACEOF
7238 cat confdefs.h
>>conftest.
$ac_ext
7239 cat >>conftest.
$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 #ifdef TIME_WITH_SYS_TIME
7242 #include <sys/time.h>
7245 #ifdef HAVE_SYS_TIME_H
7246 #include <sys/time.h>
7254 static struct timeval x; x.tv_sec = x.tv_usec;
7259 rm -f conftest.
$ac_objext
7260 if { (ac_try
="$ac_compile"
7262 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7268 grep -v '^ *+' conftest.er1 >conftest.err
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
7276 emacs_cv_struct_timeval=yes
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7281 emacs_cv_struct_timeval=no
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7286 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7287 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7288 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7289 if test $emacs_cv_struct_timeval = yes; then
7291 cat >>confdefs.h <<\_ACEOF
7292 #define HAVE_TIMEVAL 1
7297 { echo "$as_me:$LINENO: checking for struct exception" >&5
7298 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7299 if test "${emacs_cv_struct_exception+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7302 cat >conftest.$ac_ext <<_ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7312 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7317 rm -f conftest.$ac_objext
7318 if { (ac_try="$ac_compile"
7320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7321 *) ac_try_echo
=$ac_try;;
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324 (eval "$ac_compile") 2>conftest.er1
7326 grep -v '^ *+' conftest.er1
>conftest.err
7328 cat conftest.err
>&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest.
$ac_objext; then
7334 emacs_cv_struct_exception
=yes
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.
$ac_ext >&5
7339 emacs_cv_struct_exception
=no
7342 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7344 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7345 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7346 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7347 if test $emacs_cv_struct_exception != yes; then
7349 cat >>confdefs.h
<<\_ACEOF
7350 #define NO_MATHERR 1
7356 for ac_header
in sys
/socket.h
7358 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7359 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7362 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 ac_res
=`eval echo '${'$as_ac_Header'}'`
7366 { echo "$as_me:$LINENO: result: $ac_res" >&5
7367 echo "${ECHO_T}$ac_res" >&6; }
7369 # Is the header compilable?
7370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7372 cat >conftest.
$ac_ext <<_ACEOF
7375 cat confdefs.h
>>conftest.
$ac_ext
7376 cat >>conftest.
$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7378 $ac_includes_default
7379 #include <$ac_header>
7381 rm -f conftest.
$ac_objext
7382 if { (ac_try
="$ac_compile"
7384 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7390 grep -v '^ *+' conftest.er1 >conftest.err
7392 cat conftest.err >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
7398 ac_header_compiler=yes
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7403 ac_header_compiler=no
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7408 echo "${ECHO_T}$ac_header_compiler" >&6; }
7410 # Is the header present?
7411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7413 cat >conftest.$ac_ext <<_ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 #include <$ac_header>
7421 if { (ac_try="$ac_cpp conftest.$ac_ext"
7423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7424 *) ac_try_echo
=$ac_try;;
7426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7429 grep -v '^ *+' conftest.er1
>conftest.err
7431 cat conftest.err
>&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } >/dev
/null
&& {
7434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7435 test ! -s conftest.err
7437 ac_header_preproc
=yes
7439 echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.
$ac_ext >&5
7442 ac_header_preproc
=no
7445 rm -f conftest.err conftest.
$ac_ext
7446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7447 echo "${ECHO_T}$ac_header_preproc" >&6; }
7449 # So? What about this header?
7450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7456 ac_header_preproc
=yes
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7476 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 eval "$as_ac_Header=\$ac_header_preproc"
7481 ac_res
=`eval echo '${'$as_ac_Header'}'`
7482 { echo "$as_me:$LINENO: result: $ac_res" >&5
7483 echo "${ECHO_T}$ac_res" >&6; }
7486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7487 cat >>confdefs.h
<<_ACEOF
7488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7496 for ac_header
in net
/if.h
7498 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7501 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7504 cat >conftest.
$ac_ext <<_ACEOF
7507 cat confdefs.h
>>conftest.
$ac_ext
7508 cat >>conftest.
$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 $ac_includes_default
7511 #if HAVE_SYS_SOCKET_H
7512 #include <sys/socket.h>
7515 #include <$ac_header>
7517 rm -f conftest.
$ac_objext
7518 if { (ac_try
="$ac_compile"
7520 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7524 (eval "$ac_compile") 2>conftest.er1
7526 grep -v '^ *+' conftest.er1 >conftest.err
7528 cat conftest.err >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } && {
7531 test -z "$ac_c_werror_flag" ||
7532 test ! -s conftest.err
7533 } && test -s conftest.$ac_objext; then
7534 eval "$as_ac_Header=yes"
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.$ac_ext >&5
7539 eval "$as_ac_Header=no"
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7544 ac_res=`eval echo '${'$as_ac_Header'}'`
7545 { echo "$as_me:$LINENO: result: $ac_res" >&5
7546 echo "${ECHO_T}$ac_res" >&6; }
7547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7548 cat >>confdefs.h <<_ACEOF
7549 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7557 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7558 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7559 if test "${ac_cv_struct_tm+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7562 cat >conftest.$ac_ext <<_ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #include <sys/types.h>
7575 int *p = &tm.tm_sec;
7581 rm -f conftest.$ac_objext
7582 if { (ac_try="$ac_compile"
7584 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7585 *) ac_try_echo
=$ac_try;;
7587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7588 (eval "$ac_compile") 2>conftest.er1
7590 grep -v '^ *+' conftest.er1
>conftest.err
7592 cat conftest.err
>&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } && {
7595 test -z "$ac_c_werror_flag" ||
7596 test ! -s conftest.err
7597 } && test -s conftest.
$ac_objext; then
7598 ac_cv_struct_tm
=time.h
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.
$ac_ext >&5
7603 ac_cv_struct_tm
=sys
/time.h
7606 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7608 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7609 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7610 if test $ac_cv_struct_tm = sys
/time.h
; then
7612 cat >>confdefs.h
<<\_ACEOF
7613 #define TM_IN_SYS_TIME 1
7618 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7619 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7620 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 cat >conftest.
$ac_ext <<_ACEOF
7626 cat confdefs.h
>>conftest.
$ac_ext
7627 cat >>conftest.
$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 #include <sys/types.h>
7630 #include <$ac_cv_struct_tm>
7636 static struct tm ac_aggr;
7637 if (ac_aggr.tm_zone)
7643 rm -f conftest.
$ac_objext
7644 if { (ac_try
="$ac_compile"
7646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_compile") 2>conftest.er1
7652 grep -v '^ *+' conftest.er1 >conftest.err
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_c_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest.$ac_objext; then
7660 ac_cv_member_struct_tm_tm_zone=yes
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7665 cat >conftest.$ac_ext <<_ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 #include <sys/types.h>
7672 #include <$ac_cv_struct_tm>
7678 static struct tm ac_aggr;
7679 if (sizeof ac_aggr.tm_zone)
7685 rm -f conftest.$ac_objext
7686 if { (ac_try="$ac_compile"
7688 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7689 *) ac_try_echo
=$ac_try;;
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_compile") 2>conftest.er1
7694 grep -v '^ *+' conftest.er1
>conftest.err
7696 cat conftest.err
>&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && {
7699 test -z "$ac_c_werror_flag" ||
7700 test ! -s conftest.err
7701 } && test -s conftest.
$ac_objext; then
7702 ac_cv_member_struct_tm_tm_zone
=yes
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.
$ac_ext >&5
7707 ac_cv_member_struct_tm_tm_zone
=no
7710 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7713 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7715 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7716 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7717 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7719 cat >>confdefs.h
<<_ACEOF
7720 #define HAVE_STRUCT_TM_TM_ZONE 1
7726 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7728 cat >>confdefs.h
<<\_ACEOF
7729 #define HAVE_TM_ZONE 1
7733 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7734 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7735 if test "${ac_cv_have_decl_tzname+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 cat >conftest.
$ac_ext <<_ACEOF
7741 cat confdefs.h
>>conftest.
$ac_ext
7742 cat >>conftest.
$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7757 rm -f conftest.
$ac_objext
7758 if { (ac_try
="$ac_compile"
7760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_compile") 2>conftest.er1
7766 grep -v '^ *+' conftest.er1 >conftest.err
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest.$ac_objext; then
7774 ac_cv_have_decl_tzname=yes
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7779 ac_cv_have_decl_tzname=no
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7784 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7785 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7786 if test $ac_cv_have_decl_tzname = yes; then
7788 cat >>confdefs.h <<_ACEOF
7789 #define HAVE_DECL_TZNAME 1
7794 cat >>confdefs.h <<_ACEOF
7795 #define HAVE_DECL_TZNAME 0
7802 { echo "$as_me:$LINENO: checking for tzname" >&5
7803 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7804 if test "${ac_cv_var_tzname+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7807 cat >conftest.$ac_ext <<_ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7814 #if !HAVE_DECL_TZNAME
7815 extern char *tzname[];
7821 return tzname[0][0];
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (ac_try="$ac_link"
7829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7830 *) ac_try_echo
=$ac_try;;
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833 (eval "$ac_link") 2>conftest.er1
7835 grep -v '^ *+' conftest.er1
>conftest.err
7837 cat conftest.err
>&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && {
7840 test -z "$ac_c_werror_flag" ||
7841 test ! -s conftest.err
7842 } && test -s conftest
$ac_exeext &&
7843 $as_test_x conftest
$ac_exeext; then
7844 ac_cv_var_tzname
=yes
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.
$ac_ext >&5
7852 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7853 conftest
$ac_exeext conftest.
$ac_ext
7855 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7856 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7857 if test $ac_cv_var_tzname = yes; then
7859 cat >>confdefs.h
<<\_ACEOF
7860 #define HAVE_TZNAME 1
7866 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7867 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7868 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 cat >conftest.
$ac_ext <<_ACEOF
7874 cat confdefs.h
>>conftest.
$ac_ext
7875 cat >>conftest.
$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7882 static struct tm ac_aggr;
7883 if (ac_aggr.tm_gmtoff)
7889 rm -f conftest.
$ac_objext
7890 if { (ac_try
="$ac_compile"
7892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_compile") 2>conftest.er1
7898 grep -v '^ *+' conftest.er1 >conftest.err
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } && {
7903 test -z "$ac_c_werror_flag" ||
7904 test ! -s conftest.err
7905 } && test -s conftest.$ac_objext; then
7906 ac_cv_member_struct_tm_tm_gmtoff=yes
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7911 cat >conftest.$ac_ext <<_ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7922 static struct tm ac_aggr;
7923 if (sizeof ac_aggr.tm_gmtoff)
7929 rm -f conftest.$ac_objext
7930 if { (ac_try="$ac_compile"
7932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7933 *) ac_try_echo
=$ac_try;;
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_compile") 2>conftest.er1
7938 grep -v '^ *+' conftest.er1
>conftest.err
7940 cat conftest.err
>&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_c_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest.
$ac_objext; then
7946 ac_cv_member_struct_tm_tm_gmtoff
=yes
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.
$ac_ext >&5
7951 ac_cv_member_struct_tm_tm_gmtoff
=no
7954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7959 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7960 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7961 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7963 cat >>confdefs.h
<<\_ACEOF
7964 #define HAVE_TM_GMTOFF 1
7969 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7970 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7971 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7974 cat >conftest.
$ac_ext <<_ACEOF
7977 cat confdefs.h
>>conftest.
$ac_ext
7978 cat >>conftest.
$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 $ac_includes_default
7981 #if HAVE_SYS_SOCKET_H
7982 #include <sys/socket.h>
7991 static struct ifreq ac_aggr;
7992 if (ac_aggr.ifr_flags)
7998 rm -f conftest.
$ac_objext
7999 if { (ac_try
="$ac_compile"
8001 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8002 *) ac_try_echo=$ac_try;;
8004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8005 (eval "$ac_compile") 2>conftest.er1
8007 grep -v '^ *+' conftest.er1 >conftest.err
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } && {
8012 test -z "$ac_c_werror_flag" ||
8013 test ! -s conftest.err
8014 } && test -s conftest.$ac_objext; then
8015 ac_cv_member_struct_ifreq_ifr_flags=yes
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8020 cat >conftest.$ac_ext <<_ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 $ac_includes_default
8027 #if HAVE_SYS_SOCKET_H
8028 #include <sys/socket.h>
8037 static struct ifreq ac_aggr;
8038 if (sizeof ac_aggr.ifr_flags)
8044 rm -f conftest.$ac_objext
8045 if { (ac_try="$ac_compile"
8047 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8048 *) ac_try_echo
=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8053 grep -v '^ *+' conftest.er1
>conftest.err
8055 cat conftest.err
>&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest.
$ac_objext; then
8061 ac_cv_member_struct_ifreq_ifr_flags
=yes
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.
$ac_ext >&5
8066 ac_cv_member_struct_ifreq_ifr_flags
=no
8069 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8072 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8074 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8075 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8076 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8078 cat >>confdefs.h
<<_ACEOF
8079 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8084 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8085 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8086 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 cat >conftest.
$ac_ext <<_ACEOF
8092 cat confdefs.h
>>conftest.
$ac_ext
8093 cat >>conftest.
$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8095 $ac_includes_default
8096 #if HAVE_SYS_SOCKET_H
8097 #include <sys/socket.h>
8106 static struct ifreq ac_aggr;
8107 if (ac_aggr.ifr_hwaddr)
8113 rm -f conftest.
$ac_objext
8114 if { (ac_try
="$ac_compile"
8116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_compile") 2>conftest.er1
8122 grep -v '^ *+' conftest.er1 >conftest.err
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest.$ac_objext; then
8130 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8135 cat >conftest.$ac_ext <<_ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8141 $ac_includes_default
8142 #if HAVE_SYS_SOCKET_H
8143 #include <sys/socket.h>
8152 static struct ifreq ac_aggr;
8153 if (sizeof ac_aggr.ifr_hwaddr)
8159 rm -f conftest.$ac_objext
8160 if { (ac_try="$ac_compile"
8162 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8163 *) ac_try_echo
=$ac_try;;
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8168 grep -v '^ *+' conftest.er1
>conftest.err
8170 cat conftest.err
>&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.
$ac_objext; then
8176 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.
$ac_ext >&5
8181 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8184 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8189 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8190 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8191 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8193 cat >>confdefs.h
<<_ACEOF
8194 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8199 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8200 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8201 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8204 cat >conftest.
$ac_ext <<_ACEOF
8207 cat confdefs.h
>>conftest.
$ac_ext
8208 cat >>conftest.
$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8210 $ac_includes_default
8211 #if HAVE_SYS_SOCKET_H
8212 #include <sys/socket.h>
8221 static struct ifreq ac_aggr;
8222 if (ac_aggr.ifr_netmask)
8228 rm -f conftest.
$ac_objext
8229 if { (ac_try
="$ac_compile"
8231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_compile") 2>conftest.er1
8237 grep -v '^ *+' conftest.er1 >conftest.err
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } && {
8242 test -z "$ac_c_werror_flag" ||
8243 test ! -s conftest.err
8244 } && test -s conftest.$ac_objext; then
8245 ac_cv_member_struct_ifreq_ifr_netmask=yes
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8250 cat >conftest.$ac_ext <<_ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 $ac_includes_default
8257 #if HAVE_SYS_SOCKET_H
8258 #include <sys/socket.h>
8267 static struct ifreq ac_aggr;
8268 if (sizeof ac_aggr.ifr_netmask)
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8278 *) ac_try_echo
=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8283 grep -v '^ *+' conftest.er1
>conftest.err
8285 cat conftest.err
>&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.
$ac_objext; then
8291 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.
$ac_ext >&5
8296 ac_cv_member_struct_ifreq_ifr_netmask
=no
8299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8305 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8306 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8308 cat >>confdefs.h
<<_ACEOF
8309 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8314 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8315 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8316 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8319 cat >conftest.
$ac_ext <<_ACEOF
8322 cat confdefs.h
>>conftest.
$ac_ext
8323 cat >>conftest.
$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8325 $ac_includes_default
8326 #if HAVE_SYS_SOCKET_H
8327 #include <sys/socket.h>
8336 static struct ifreq ac_aggr;
8337 if (ac_aggr.ifr_broadaddr)
8343 rm -f conftest.
$ac_objext
8344 if { (ac_try
="$ac_compile"
8346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_compile") 2>conftest.er1
8352 grep -v '^ *+' conftest.er1 >conftest.err
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } && {
8357 test -z "$ac_c_werror_flag" ||
8358 test ! -s conftest.err
8359 } && test -s conftest.$ac_objext; then
8360 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8365 cat >conftest.$ac_ext <<_ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #if HAVE_SYS_SOCKET_H
8373 #include <sys/socket.h>
8382 static struct ifreq ac_aggr;
8383 if (sizeof ac_aggr.ifr_broadaddr)
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8392 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8393 *) ac_try_echo
=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1
>conftest.err
8400 cat conftest.err
>&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.
$ac_objext; then
8406 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.
$ac_ext >&5
8411 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8414 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8417 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8419 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8420 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8421 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8423 cat >>confdefs.h
<<_ACEOF
8424 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8429 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8430 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8431 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8434 cat >conftest.
$ac_ext <<_ACEOF
8437 cat confdefs.h
>>conftest.
$ac_ext
8438 cat >>conftest.
$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_includes_default
8441 #if HAVE_SYS_SOCKET_H
8442 #include <sys/socket.h>
8451 static struct ifreq ac_aggr;
8452 if (ac_aggr.ifr_addr)
8458 rm -f conftest.
$ac_objext
8459 if { (ac_try
="$ac_compile"
8461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8467 grep -v '^ *+' conftest.er1 >conftest.err
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8475 ac_cv_member_struct_ifreq_ifr_addr=yes
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8480 cat >conftest.$ac_ext <<_ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 $ac_includes_default
8487 #if HAVE_SYS_SOCKET_H
8488 #include <sys/socket.h>
8497 static struct ifreq ac_aggr;
8498 if (sizeof ac_aggr.ifr_addr)
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8507 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8508 *) ac_try_echo
=$ac_try;;
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_compile") 2>conftest.er1
8513 grep -v '^ *+' conftest.er1
>conftest.err
8515 cat conftest.err
>&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest.
$ac_objext; then
8521 ac_cv_member_struct_ifreq_ifr_addr
=yes
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.
$ac_ext >&5
8526 ac_cv_member_struct_ifreq_ifr_addr
=no
8529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8532 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8534 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8535 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8536 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8538 cat >>confdefs.h
<<_ACEOF
8539 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8547 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8548 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8549 if test "$ac_cv_prog_cc_c89" != no
; then
8550 { echo "$as_me:$LINENO: result: yes" >&5
8551 echo "${ECHO_T}yes" >&6; }
8553 cat >>confdefs.h
<<\_ACEOF
8554 #define PROTOTYPES 1
8558 cat >>confdefs.h
<<\_ACEOF
8559 #define __PROTOTYPES 1
8563 { echo "$as_me:$LINENO: result: no" >&5
8564 echo "${ECHO_T}no" >&6; }
8567 { echo "$as_me:$LINENO: checking for working volatile" >&5
8568 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8569 if test "${ac_cv_c_volatile+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8572 cat >conftest.
$ac_ext <<_ACEOF
8575 cat confdefs.h
>>conftest.
$ac_ext
8576 cat >>conftest.
$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8584 int * volatile y = (int *) 0;
8590 rm -f conftest.
$ac_objext
8591 if { (ac_try
="$ac_compile"
8593 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 (eval "$ac_compile") 2>conftest.er1
8599 grep -v '^ *+' conftest.er1 >conftest.err
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } && {
8604 test -z "$ac_c_werror_flag" ||
8605 test ! -s conftest.err
8606 } && test -s conftest.$ac_objext; then
8607 ac_cv_c_volatile=yes
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8617 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8618 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8619 if test $ac_cv_c_volatile = no; then
8621 cat >>confdefs.h <<\_ACEOF
8627 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8628 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8629 if test "${ac_cv_c_const+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8632 cat >conftest.$ac_ext <<_ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8642 /* FIXME: Include the comments suggested by Paul. */
8644 /* Ultrix mips cc rejects this. */
8645 typedef int charset[2];
8647 /* SunOS 4.1.1 cc rejects this. */
8648 char const *const *pcpcc;
8650 /* NEC SVR4.0.2 mips cc rejects this. */
8651 struct point {int x, y;};
8652 static struct point const zero = {0,0};
8653 /* AIX XL C 1.02.0.0 rejects this.
8654 It does not let you subtract one const X* pointer from another in
8655 an arm of an if-expression whose if-part is not a constant
8657 const char *g = "string";
8658 pcpcc = &g + (g ? g-g : 0);
8659 /* HPUX 7.0 cc rejects these. */
8661 ppc = (char**) pcpcc;
8662 pcpcc = (char const *const *) ppc;
8663 { /* SCO 3.2v4 cc rejects this. */
8665 char const *s = 0 ? (char *) 0 : (char const *) 0;
8670 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8672 const int *foo = &x[0];
8675 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8676 typedef const int *iptr;
8680 { /* AIX XL C 1.02.0.0 rejects this saying
8681 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8682 struct s { int j; const int *ap[3]; };
8683 struct s *b; b->j = 5;
8685 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8689 return !cs[0] && !zero.x;
8696 rm -f conftest.$ac_objext
8697 if { (ac_try="$ac_compile"
8699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8700 *) ac_try_echo
=$ac_try;;
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_compile") 2>conftest.er1
8705 grep -v '^ *+' conftest.er1
>conftest.err
8707 cat conftest.err
>&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } && {
8710 test -z "$ac_c_werror_flag" ||
8711 test ! -s conftest.err
8712 } && test -s conftest.
$ac_objext; then
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.
$ac_ext >&5
8721 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8723 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8724 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8725 if test $ac_cv_c_const = no
; then
8727 cat >>confdefs.h
<<\_ACEOF
8733 { echo "$as_me:$LINENO: checking for void * support" >&5
8734 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8735 if test "${emacs_cv_void_star+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8738 cat >conftest.
$ac_ext <<_ACEOF
8741 cat confdefs.h
>>conftest.
$ac_ext
8742 cat >>conftest.
$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8753 rm -f conftest.
$ac_objext
8754 if { (ac_try
="$ac_compile"
8756 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8757 *) ac_try_echo=$ac_try;;
8759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8760 (eval "$ac_compile") 2>conftest.er1
8762 grep -v '^ *+' conftest.er1 >conftest.err
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } && {
8767 test -z "$ac_c_werror_flag" ||
8768 test ! -s conftest.err
8769 } && test -s conftest.$ac_objext; then
8770 emacs_cv_void_star=yes
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8775 emacs_cv_void_star=no
8778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8780 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8781 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8782 if test $emacs_cv_void_star = yes; then
8783 cat >>confdefs.h <<\_ACEOF
8784 #define POINTER_TYPE void
8788 cat >>confdefs.h <<\_ACEOF
8789 #define POINTER_TYPE char
8798 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8799 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8800 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8801 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8804 cat >conftest.make <<\_ACEOF
8807 @echo '@@@%%%=$(MAKE)=@@@%%%'
8809 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8810 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8812 eval ac_cv_prog_make_${ac_make}_set=yes;;
8814 eval ac_cv_prog_make_${ac_make}_set=no;;
8818 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8819 { echo "$as_me:$LINENO: result: yes" >&5
8820 echo "${ECHO_T}yes" >&6; }
8823 { echo "$as_me:$LINENO: result: no" >&5
8824 echo "${ECHO_T}no" >&6; }
8825 SET_MAKE="MAKE=${MAKE-make}"
8829 { echo "$as_me:$LINENO: checking for long file names" >&5
8830 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8831 if test "${ac_cv_sys_long_file_names+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8834 ac_cv_sys_long_file_names=yes
8835 # Test for long file names in all the places we know might matter:
8836 # . the current directory, where building will happen
8837 # $prefix/lib where we will be installing things
8838 # $exec_prefix/lib likewise
8839 # $TMPDIR if set, where it might want to write temporary files
8840 # /tmp where it might want to write temporary files
8843 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8844 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8845 # in the usual case where exec_prefix is '${prefix}'.
8847 . | /* | ?:[\\/]*) ;; #(
8850 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8851 ac_xdir=$ac_dir/cf$$
8852 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8853 ac_tf1=$ac_xdir/conftest9012345
8854 ac_tf2=$ac_xdir/conftest9012346
8855 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8856 ac_cv_sys_long_file_names=no
8857 rm -f -r "$ac_xdir" 2>/dev/null
8858 test $ac_cv_sys_long_file_names = no && break
8861 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8862 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8863 if test $ac_cv_sys_long_file_names = yes; then
8865 cat >>confdefs.h <<\_ACEOF
8866 #define HAVE_LONG_FILE_NAMES 1
8872 #### Choose a window system.
8874 { echo "$as_me:$LINENO: checking for X" >&5
8875 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8878 # Check whether --with-x was given.
8879 if test "${with_x+set}" = set; then
8883 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8884 if test "x$with_x" = xno; then
8885 # The user explicitly disabled X.
8888 case $x_includes,$x_libraries in #(
8889 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8890 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8891 { (exit 1); exit 1; }; };; #(
8892 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8895 # One or both of the vars are not set, and there is no cached value.
8896 ac_x_includes=no ac_x_libraries=no
8897 rm -f -r conftest.dir
8898 if mkdir conftest.dir; then
8900 cat >Imakefile <<'_ACEOF'
8902 @echo incroot='${INCROOT}'
8904 @echo usrlibdir='${USRLIBDIR}'
8906 @echo libdir='${LIBDIR}'
8908 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8909 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8910 for ac_var in incroot usrlibdir libdir; do
8911 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8913 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8914 for ac_extension in a so sl; do
8915 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8916 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8917 ac_im_usrlibdir=$ac_im_libdir; break
8920 # Screen out bogus values from the imake configuration. They are
8921 # bogus both because they are the default anyway, and because
8922 # using them would break gcc on systems where it needs fixed includes.
8923 case $ac_im_incroot in
8924 /usr/include) ac_x_includes= ;;
8925 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8927 case $ac_im_usrlibdir in
8929 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8933 rm -f -r conftest.dir
8936 # Standard set of common directories for X headers.
8937 # Check X11 before X11Rn because it is often a symlink to the current release.
8949 /usr/local/X11/include
8950 /usr/local/X11R6/include
8951 /usr/local/X11R5/include
8952 /usr/local/X11R4/include
8954 /usr/local/include/X11
8955 /usr/local/include/X11R6
8956 /usr/local/include/X11R5
8957 /usr/local/include/X11R4
8961 /usr/XFree86/include/X11
8965 /usr/unsupported/include
8967 /usr/local/x11r5/include
8968 /usr/lpp/Xamples/include
8970 /usr/openwin/include
8971 /usr/openwin/share/include'
8973 if test "$ac_x_includes" = no; then
8974 # Guess where to find include files, by looking for Xlib.h.
8975 # First, try using that file with no special directory specified.
8976 cat >conftest.$ac_ext <<_ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 #include <X11/Xlib.h>
8984 if { (ac_try="$ac_cpp conftest.$ac_ext"
8986 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8987 *) ac_try_echo
=$ac_try;;
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8992 grep -v '^ *+' conftest.er1
>conftest.err
8994 cat conftest.err
>&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } >/dev
/null
&& {
8997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8998 test ! -s conftest.err
9000 # We can compile using X headers with no special include directory.
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.
$ac_ext >&5
9006 for ac_dir
in $ac_x_header_dirs; do
9007 if test -r "$ac_dir/X11/Xlib.h"; then
9008 ac_x_includes
=$ac_dir
9014 rm -f conftest.err conftest.
$ac_ext
9015 fi # $ac_x_includes = no
9017 if test "$ac_x_libraries" = no
; then
9018 # Check for the libraries.
9019 # See if we find them without any special options.
9020 # Don't add to $LIBS permanently.
9023 cat >conftest.
$ac_ext <<_ACEOF
9026 cat confdefs.h
>>conftest.
$ac_ext
9027 cat >>conftest.
$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 #include <X11/Xlib.h>
9038 rm -f conftest.
$ac_objext conftest
$ac_exeext
9039 if { (ac_try
="$ac_link"
9041 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_link") 2>conftest.er1
9047 grep -v '^ *+' conftest.er1 >conftest.err
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } && {
9052 test -z "$ac_c_werror_flag" ||
9053 test ! -s conftest.err
9054 } && test -s conftest$ac_exeext &&
9055 $as_test_x conftest$ac_exeext; then
9057 # We can link X programs with no special library path.
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9064 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9066 # Don't even attempt the hair of trying to link an X program!
9067 for ac_extension in a so sl; do
9068 if test -r "$ac_dir/libX11.$ac_extension"; then
9069 ac_x_libraries=$ac_dir
9076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9077 conftest$ac_exeext conftest.$ac_ext
9078 fi # $ac_x_libraries = no
9080 case $ac_x_includes,$ac_x_libraries in #(
9082 # Didn't find X, or a directory has "'" in its name.
9083 ac_cv_have_x="have_x=no";; #(
9085 # Record where we found X for the cache.
9086 ac_cv_have_x="have_x=yes\
9087 ac_x_includes='$ac_x_includes'\
9088 ac_x_libraries='$ac_x_libraries'"
9094 eval "$ac_cv_have_x"
9097 if test "$have_x" != yes; then
9098 { echo "$as_me:$LINENO: result: $have_x" >&5
9099 echo "${ECHO_T}$have_x" >&6; }
9102 # If each of the values was on the command line, it overrides each guess.
9103 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9104 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9105 # Update the cache value to reflect the command line values.
9106 ac_cv_have_x="have_x=yes\
9107 ac_x_includes='$x_includes'\
9108 ac_x_libraries='$x_libraries'"
9109 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9110 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9113 if test "$no_x" = yes; then
9119 ## Workaround for bug in autoconf <= 2.62.
9120 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9121 ## No need to do anything special for these standard directories.
9122 ## This is an experiment, take it out if it causes problems.
9123 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9125 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9129 if test "${x_libraries}" != NONE; then
9130 if test -n "${x_libraries}"; then
9131 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9132 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9134 x_default_search_path=""
9135 x_search_path=${x_libraries}
9136 if test -z "${x_search_path}"; then
9137 x_search_path=/usr/lib
9139 for x_library in `echo ${x_search_path}: | \
9140 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9142 ${x_library}/X11/%L/%T/%N%C%S:\
9143 ${x_library}/X11/%l/%T/%N%C%S:\
9144 ${x_library}/X11/%T/%N%C%S:\
9145 ${x_library}/X11/%L/%T/%N%S:\
9146 ${x_library}/X11/%l/%T/%N%S:\
9147 ${x_library}/X11/%T/%N%S"
9148 if test x"${x_default_search_path}" = x; then
9149 x_default_search_path=${x_search_path}
9151 x_default_search_path="${x_search_path}:${x_default_search_path}"
9155 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9156 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9159 if test x"${x_includes}" = x; then
9160 bitmapdir=/usr/include/X11/bitmaps
9162 # accumulate include directories that have X11 bitmap subdirectories
9164 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9165 if test -d "${bmd}/X11/bitmaps"; then
9166 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9168 if test -d "${bmd}/bitmaps"; then
9169 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9172 if test ${bmd_acc} != "dummyval"; then
9173 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9180 tmp_CPPFLAGS="$CPPFLAGS"
9181 tmp_CFLAGS="$CFLAGS"
9182 CPPFLAGS="$CPPFLAGS -x objective-c"
9183 CFLAGS="$CFLAGS -x objective-c"
9184 if test "${with_ns}" != no; then
9185 if test "${opsys}" = darwin; then
9187 ns_appdir=`pwd`/nextstep/Emacs.app
9188 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9189 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9190 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9191 elif test -f /etc/GNUstep/GNUstep.conf; then
9193 ns_appdir=`pwd`/nextstep/Emacs.app
9194 ns_appbindir=`pwd`/nextstep/Emacs.app
9195 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9196 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9197 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)"
9198 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9199 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9200 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9201 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9202 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9203 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9205 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9206 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9207 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9208 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9211 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9212 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9214 # Is the header compilable?
9215 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9216 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9217 cat >conftest.$ac_ext <<_ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9223 $ac_includes_default
9224 #include <AppKit/AppKit.h>
9226 rm -f conftest.$ac_objext
9227 if { (ac_try="$ac_compile"
9229 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9230 *) ac_try_echo
=$ac_try;;
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_compile") 2>conftest.er1
9235 grep -v '^ *+' conftest.er1
>conftest.err
9237 cat conftest.err
>&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && {
9240 test -z "$ac_c_werror_flag" ||
9241 test ! -s conftest.err
9242 } && test -s conftest.
$ac_objext; then
9243 ac_header_compiler
=yes
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.
$ac_ext >&5
9248 ac_header_compiler
=no
9251 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9253 echo "${ECHO_T}$ac_header_compiler" >&6; }
9255 # Is the header present?
9256 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9257 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9258 cat >conftest.
$ac_ext <<_ACEOF
9261 cat confdefs.h
>>conftest.
$ac_ext
9262 cat >>conftest.
$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9264 #include <AppKit/AppKit.h>
9266 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9268 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9269 *) ac_try_echo=$ac_try;;
9271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9274 grep -v '^ *+' conftest.er1 >conftest.err
9276 cat conftest.err >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); } >/dev/null && {
9279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9280 test ! -s conftest.err
9282 ac_header_preproc=yes
9284 echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9287 ac_header_preproc=no
9290 rm -f conftest.err conftest.$ac_ext
9291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9292 echo "${ECHO_T}$ac_header_preproc" >&6; }
9294 # So? What about this header?
9295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9297 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9298 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9300 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9301 ac_header_preproc=yes
9304 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9305 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9306 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9307 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9308 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9309 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9311 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9313 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9315 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9319 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9320 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9321 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9324 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9326 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9327 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9330 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9335 NS_HAVE_NSINTEGER=yes
9336 cat >conftest.$ac_ext <<_ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9342 #include <Foundation/NSObjCRuntime.h>
9351 rm -f conftest.$ac_objext
9352 if { (ac_try="$ac_compile"
9354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9355 *) ac_try_echo
=$ac_try;;
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_compile") 2>conftest.er1
9360 grep -v '^ *+' conftest.er1
>conftest.err
9362 cat conftest.err
>&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } && {
9365 test -z "$ac_c_werror_flag" ||
9366 test ! -s conftest.err
9367 } && test -s conftest.
$ac_objext; then
9368 ns_have_nsinteger
=yes
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.
$ac_ext >&5
9373 ns_have_nsinteger
=no
9376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9377 if test $ns_have_nsinteger = no
; then
9378 NS_HAVE_NSINTEGER
=no
9381 if test "${HAVE_NS}" = yes; then
9382 window_system
=nextstep
9385 # set up packaging dirs
9386 exec_prefix
=${ns_appbindir}
9387 libexecdir
=${ns_appbindir}/libexec
9388 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9389 prefix
=${ns_appresdir}
9392 CFLAGS
="$tmp_CFLAGS"
9393 CPPFLAGS
="$tmp_CPPFLAGS"
9395 case "${window_system}" in
9399 case "${with_x_toolkit}" in
9400 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9401 motif
) USE_X_TOOLKIT
=MOTIF
;;
9403 USE_X_TOOLKIT
=none
;;
9404 no
) USE_X_TOOLKIT
=none
;;
9405 * ) USE_X_TOOLKIT
=maybe
;;
9415 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9416 # Extract the first word of "X", so it can be a program name with args.
9417 set dummy X
; ac_word
=$2
9418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9420 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 if test -n "$HAVE_XSERVER"; then
9424 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9426 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9430 test -z "$as_dir" && as_dir
=.
9431 for ac_exec_ext
in '' $ac_executable_extensions; do
9432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9433 ac_cv_prog_HAVE_XSERVER
="true"
9434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9441 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9444 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9445 if test -n "$HAVE_XSERVER"; then
9446 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9447 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9449 { echo "$as_me:$LINENO: result: no" >&5
9450 echo "${ECHO_T}no" >&6; }
9454 if test "$HAVE_XSERVER" = true ||
9455 test -n "$DISPLAY" ||
9456 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9457 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9458 were found. You should install the relevant development files for X
9459 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9460 sure you have development files for image handling, i.e.
9461 tiff, gif, jpeg, png and xpm.
9462 If you are sure you want Emacs compiled without X window support, pass
9465 echo "$as_me: error: You seem to be running X, but no X development libraries
9466 were found. You should install the relevant development files for X
9467 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9468 sure you have development files for image handling, i.e.
9469 tiff, gif, jpeg, png and xpm.
9470 If you are sure you want Emacs compiled without X window support, pass
9472 to configure." >&2;}
9473 { (exit 1); exit 1; }; }
9477 ### If we're using X11, we should use the X menu package.
9480 yes ) HAVE_MENUS
=yes ;;
9483 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9484 # Assume not, until told otherwise.
9487 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9488 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9489 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9492 cat >conftest.
$ac_ext <<_ACEOF
9495 cat confdefs.h
>>conftest.
$ac_ext
9496 cat >>conftest.
$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9498 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9500 #define malloc_get_state innocuous_malloc_get_state
9502 /* System header to define __stub macros and hopefully few prototypes,
9503 which can conflict with char malloc_get_state (); below.
9504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9505 <limits.h> exists even on freestanding compilers. */
9508 # include <limits.h>
9510 # include <assert.h>
9513 #undef malloc_get_state
9515 /* Override any GCC internal prototype to avoid an error.
9516 Use char because int might match the return type of a GCC
9517 builtin and then its argument prototype would still apply. */
9521 char malloc_get_state ();
9522 /* The GNU C library defines this for functions which it implements
9523 to always fail with ENOSYS. Some functions are actually named
9524 something starting with __ and the normal name is an alias. */
9525 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9532 return malloc_get_state ();
9537 rm -f conftest.
$ac_objext conftest
$ac_exeext
9538 if { (ac_try
="$ac_link"
9540 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9541 *) ac_try_echo=$ac_try;;
9543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544 (eval "$ac_link") 2>conftest.er1
9546 grep -v '^ *+' conftest.er1 >conftest.err
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && {
9551 test -z "$ac_c_werror_flag" ||
9552 test ! -s conftest.err
9553 } && test -s conftest$ac_exeext &&
9554 $as_test_x conftest$ac_exeext; then
9555 ac_cv_func_malloc_get_state=yes
9557 echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9560 ac_cv_func_malloc_get_state=no
9563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9564 conftest$ac_exeext conftest.$ac_ext
9566 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9567 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9568 if test $ac_cv_func_malloc_get_state = yes; then
9574 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9575 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9576 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9579 cat >conftest.$ac_ext <<_ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9587 #define malloc_set_state innocuous_malloc_set_state
9589 /* System header to define __stub macros and hopefully few prototypes,
9590 which can conflict with char malloc_set_state (); below.
9591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9592 <limits.h> exists even on freestanding compilers. */
9595 # include <limits.h>
9597 # include <assert.h>
9600 #undef malloc_set_state
9602 /* Override any GCC internal prototype to avoid an error.
9603 Use char because int might match the return type of a GCC
9604 builtin and then its argument prototype would still apply. */
9608 char malloc_set_state ();
9609 /* The GNU C library defines this for functions which it implements
9610 to always fail with ENOSYS. Some functions are actually named
9611 something starting with __ and the normal name is an alias. */
9612 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9619 return malloc_set_state ();
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (ac_try="$ac_link"
9627 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9628 *) ac_try_echo
=$ac_try;;
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_link") 2>conftest.er1
9633 grep -v '^ *+' conftest.er1
>conftest.err
9635 cat conftest.err
>&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } && {
9638 test -z "$ac_c_werror_flag" ||
9639 test ! -s conftest.err
9640 } && test -s conftest
$ac_exeext &&
9641 $as_test_x conftest
$ac_exeext; then
9642 ac_cv_func_malloc_set_state
=yes
9644 echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.
$ac_ext >&5
9647 ac_cv_func_malloc_set_state
=no
9650 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9651 conftest
$ac_exeext conftest.
$ac_ext
9653 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9654 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9655 if test $ac_cv_func_malloc_set_state = yes; then
9661 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9662 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9663 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9666 cat >conftest.
$ac_ext <<_ACEOF
9669 cat confdefs.h
>>conftest.
$ac_ext
9670 cat >>conftest.
$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9672 extern void (* __after_morecore_hook)();
9676 __after_morecore_hook = 0
9681 rm -f conftest.
$ac_objext conftest
$ac_exeext
9682 if { (ac_try
="$ac_link"
9684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_link") 2>conftest.er1
9690 grep -v '^ *+' conftest.er1 >conftest.err
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest$ac_exeext &&
9698 $as_test_x conftest$ac_exeext; then
9699 emacs_cv_var___after_morecore_hook=yes
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9704 emacs_cv_var___after_morecore_hook=no
9707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9708 conftest$ac_exeext conftest.$ac_ext
9710 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9711 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9712 if test $emacs_cv_var___after_morecore_hook = no; then
9715 if test "${system_malloc}" = "yes"; then
9718 (The GNU allocators don't work with this system configuration.)"
9720 if test "$doug_lea_malloc" = "yes" ; then
9721 if test "$GNU_MALLOC" = yes ; then
9723 (Using Doug Lea's new malloc from the GNU C Library.)"
9726 cat >>confdefs.h <<\_ACEOF
9727 #define DOUG_LEA_MALLOC 1
9732 if test x"${REL_ALLOC}" = x; then
9733 REL_ALLOC=${GNU_MALLOC}
9739 for ac_header in stdlib.h unistd.h
9741 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9748 ac_res=`eval echo '${'$as_ac_Header'}'`
9749 { echo "$as_me:$LINENO: result: $ac_res" >&5
9750 echo "${ECHO_T}$ac_res" >&6; }
9752 # Is the header compilable?
9753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9755 cat >conftest.$ac_ext <<_ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9761 $ac_includes_default
9762 #include <$ac_header>
9764 rm -f conftest.$ac_objext
9765 if { (ac_try="$ac_compile"
9767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9768 *) ac_try_echo
=$ac_try;;
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_compile") 2>conftest.er1
9773 grep -v '^ *+' conftest.er1
>conftest.err
9775 cat conftest.err
>&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest.
$ac_objext; then
9781 ac_header_compiler
=yes
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.
$ac_ext >&5
9786 ac_header_compiler
=no
9789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9791 echo "${ECHO_T}$ac_header_compiler" >&6; }
9793 # Is the header present?
9794 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9796 cat >conftest.
$ac_ext <<_ACEOF
9799 cat confdefs.h
>>conftest.
$ac_ext
9800 cat >>conftest.
$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9802 #include <$ac_header>
9804 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9812 grep -v '^ *+' conftest.er1 >conftest.err
9814 cat conftest.err >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } >/dev/null && {
9817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9818 test ! -s conftest.err
9820 ac_header_preproc=yes
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9825 ac_header_preproc=no
9828 rm -f conftest.err conftest.$ac_ext
9829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9830 echo "${ECHO_T}$ac_header_preproc" >&6; }
9832 # So? What about this header?
9833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9839 ac_header_preproc=yes
9842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9862 eval "$as_ac_Header=\$ac_header_preproc"
9864 ac_res=`eval echo '${'$as_ac_Header'}'`
9865 { echo "$as_me:$LINENO: result: $ac_res" >&5
9866 echo "${ECHO_T}$ac_res" >&6; }
9869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9870 cat >>confdefs.h <<_ACEOF
9871 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9879 for ac_func in getpagesize
9881 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9882 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9884 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9887 cat >conftest.$ac_ext <<_ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9895 #define $ac_func innocuous_$ac_func
9897 /* System header to define __stub macros and hopefully few prototypes,
9898 which can conflict with char $ac_func (); below.
9899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9900 <limits.h> exists even on freestanding compilers. */
9903 # include <limits.h>
9905 # include <assert.h>
9910 /* Override any GCC internal prototype to avoid an error.
9911 Use char because int might match the return type of a GCC
9912 builtin and then its argument prototype would still apply. */
9917 /* The GNU C library defines this for functions which it implements
9918 to always fail with ENOSYS. Some functions are actually named
9919 something starting with __ and the normal name is an alias. */
9920 #if defined __stub_$ac_func || defined __stub___$ac_func
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (ac_try="$ac_link"
9935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9936 *) ac_try_echo
=$ac_try;;
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_link") 2>conftest.er1
9941 grep -v '^ *+' conftest.er1
>conftest.err
9943 cat conftest.err
>&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && {
9946 test -z "$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9948 } && test -s conftest
$ac_exeext &&
9949 $as_test_x conftest
$ac_exeext; then
9950 eval "$as_ac_var=yes"
9952 echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.
$ac_ext >&5
9955 eval "$as_ac_var=no"
9958 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9959 conftest
$ac_exeext conftest.
$ac_ext
9961 ac_res
=`eval echo '${'$as_ac_var'}'`
9962 { echo "$as_me:$LINENO: result: $ac_res" >&5
9963 echo "${ECHO_T}$ac_res" >&6; }
9964 if test `eval echo '${'$as_ac_var'}'` = yes; then
9965 cat >>confdefs.h
<<_ACEOF
9966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9972 { echo "$as_me:$LINENO: checking for working mmap" >&5
9973 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9974 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9977 if test "$cross_compiling" = yes; then
9978 ac_cv_func_mmap_fixed_mapped
=no
9980 cat >conftest.
$ac_ext <<_ACEOF
9983 cat confdefs.h
>>conftest.
$ac_ext
9984 cat >>conftest.
$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 $ac_includes_default
9987 /* malloc might have been renamed as rpl_malloc. */
9990 /* Thanks to Mike Haertel and Jim Avera for this test.
9991 Here is a matrix of mmap possibilities:
9992 mmap private not fixed
9993 mmap private fixed at somewhere currently unmapped
9994 mmap private fixed at somewhere already mapped
9995 mmap shared not fixed
9996 mmap shared fixed at somewhere currently unmapped
9997 mmap shared fixed at somewhere already mapped
9998 For private mappings, we should verify that changes cannot be read()
9999 back from the file, nor mmap's back from the file at a different
10000 address. (There have been systems where private was not correctly
10001 implemented like the infamous i386 svr4.0, and systems where the
10002 VM page cache was not coherent with the file system buffer cache
10003 like early versions of FreeBSD and possibly contemporary NetBSD.)
10004 For shared mappings, we should conversely verify that changes get
10005 propagated back to all the places they're supposed to be.
10007 Grep wants private fixed already mapped.
10008 The main things grep needs to know about mmap are:
10009 * does it exist and is it safe to write into the mmap'd area
10010 * how to use it (BSD variants) */
10013 #include <sys/mman.h>
10015 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10019 /* This mess was copied from the GNU getpagesize.h. */
10020 #ifndef HAVE_GETPAGESIZE
10021 /* Assume that all systems that can run configure have sys/param.h. */
10022 # ifndef HAVE_SYS_PARAM_H
10023 # define HAVE_SYS_PARAM_H 1
10026 # ifdef _SC_PAGESIZE
10027 # define getpagesize() sysconf(_SC_PAGESIZE)
10028 # else /* no _SC_PAGESIZE */
10029 # ifdef HAVE_SYS_PARAM_H
10030 # include <sys/param.h>
10031 # ifdef EXEC_PAGESIZE
10032 # define getpagesize() EXEC_PAGESIZE
10033 # else /* no EXEC_PAGESIZE */
10035 # define getpagesize() NBPG * CLSIZE
10038 # endif /* no CLSIZE */
10039 # else /* no NBPG */
10041 # define getpagesize() NBPC
10042 # else /* no NBPC */
10044 # define getpagesize() PAGESIZE
10045 # endif /* PAGESIZE */
10046 # endif /* no NBPC */
10047 # endif /* no NBPG */
10048 # endif /* no EXEC_PAGESIZE */
10049 # else /* no HAVE_SYS_PARAM_H */
10050 # define getpagesize() 8192 /* punt totally */
10051 # endif /* no HAVE_SYS_PARAM_H */
10052 # endif /* no _SC_PAGESIZE */
10054 #endif /* no HAVE_GETPAGESIZE */
10059 char *data, *data2, *data3;
10063 pagesize = getpagesize ();
10065 /* First, make a file with some known garbage in it. */
10066 data = (char *) malloc (pagesize);
10069 for (i = 0; i < pagesize; ++i)
10070 *(data + i) = rand ();
10072 fd = creat ("conftest.mmap", 0600);
10075 if (write (fd, data, pagesize) != pagesize)
10079 /* Next, try to mmap the file at a fixed address which already has
10080 something else allocated at it. If we can, also make sure that
10081 we see the same garbage. */
10082 fd = open ("conftest.mmap", O_RDWR);
10085 data2 = (char *) malloc (2 * pagesize);
10088 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10089 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10090 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10092 for (i = 0; i < pagesize; ++i)
10093 if (*(data + i) != *(data2 + i))
10096 /* Finally, make sure that changes to the mapped area do not
10097 percolate back to the file as seen by read(). (This is a bug on
10098 some variants of i386 svr4.0.) */
10099 for (i = 0; i < pagesize; ++i)
10100 *(data2 + i) = *(data2 + i) + 1;
10101 data3 = (char *) malloc (pagesize);
10104 if (read (fd, data3, pagesize) != pagesize)
10106 for (i = 0; i < pagesize; ++i)
10107 if (*(data + i) != *(data3 + i))
10113 rm -f conftest
$ac_exeext
10114 if { (ac_try
="$ac_link"
10115 case "(($ac_try" in
10116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_link") 2>&5
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10124 { (case "(($ac_try" in
10125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10126 *) ac_try_echo
=$ac_try;;
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_try") 2>&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10133 ac_cv_func_mmap_fixed_mapped
=yes
10135 echo "$as_me: program exited with status $ac_status" >&5
10136 echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.
$ac_ext >&5
10139 ( exit $ac_status )
10140 ac_cv_func_mmap_fixed_mapped
=no
10142 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10147 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10148 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10149 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10151 cat >>confdefs.h
<<\_ACEOF
10152 #define HAVE_MMAP 1
10156 rm -f conftest.mmap
10158 if test $use_mmap_for_buffers = yes; then
10162 LIBS
="$libsrc_libs $LIBS"
10165 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10166 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10167 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10170 ac_check_lib_save_LIBS
=$LIBS
10171 LIBS
="-ldnet $LIBS"
10172 cat >conftest.
$ac_ext <<_ACEOF
10175 cat confdefs.h
>>conftest.
$ac_ext
10176 cat >>conftest.
$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10179 /* Override any GCC internal prototype to avoid an error.
10180 Use char because int might match the return type of a GCC
10181 builtin and then its argument prototype would still apply. */
10189 return dnet_ntoa ();
10194 rm -f conftest.
$ac_objext conftest
$ac_exeext
10195 if { (ac_try
="$ac_link"
10196 case "(($ac_try" in
10197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10198 *) ac_try_echo=$ac_try;;
10200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201 (eval "$ac_link") 2>conftest.er1
10203 grep -v '^ *+' conftest.er1 >conftest.err
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } && {
10208 test -z "$ac_c_werror_flag" ||
10209 test ! -s conftest.err
10210 } && test -s conftest$ac_exeext &&
10211 $as_test_x conftest$ac_exeext; then
10212 ac_cv_lib_dnet_dnet_ntoa=yes
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10217 ac_cv_lib_dnet_dnet_ntoa=no
10220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10221 conftest$ac_exeext conftest.$ac_ext
10222 LIBS=$ac_check_lib_save_LIBS
10224 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10225 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10226 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10227 cat >>confdefs.h <<_ACEOF
10228 #define HAVE_LIBDNET 1
10231 LIBS="-ldnet $LIBS"
10236 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10237 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10238 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10241 ac_check_lib_save_LIBS=$LIBS
10242 LIBS="-lXbsd $LIBS"
10243 cat >conftest.$ac_ext <<_ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10259 rm -f conftest.$ac_objext conftest$ac_exeext
10260 if { (ac_try="$ac_link"
10261 case "(($ac_try" in
10262 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10263 *) ac_try_echo
=$ac_try;;
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_link") 2>conftest.er1
10268 grep -v '^ *+' conftest.er1
>conftest.err
10270 cat conftest.err
>&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } && {
10273 test -z "$ac_c_werror_flag" ||
10274 test ! -s conftest.err
10275 } && test -s conftest
$ac_exeext &&
10276 $as_test_x conftest
$ac_exeext; then
10277 ac_cv_lib_Xbsd_main
=yes
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.
$ac_ext >&5
10282 ac_cv_lib_Xbsd_main
=no
10285 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10286 conftest
$ac_exeext conftest.
$ac_ext
10287 LIBS
=$ac_check_lib_save_LIBS
10289 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10290 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10291 if test $ac_cv_lib_Xbsd_main = yes; then
10292 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10297 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10298 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10299 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10302 ac_check_lib_save_LIBS
=$LIBS
10303 LIBS
="-lpthreads $LIBS"
10304 cat >conftest.
$ac_ext <<_ACEOF
10307 cat confdefs.h
>>conftest.
$ac_ext
10308 cat >>conftest.
$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10311 /* Override any GCC internal prototype to avoid an error.
10312 Use char because int might match the return type of a GCC
10313 builtin and then its argument prototype would still apply. */
10321 return cma_open ();
10326 rm -f conftest.
$ac_objext conftest
$ac_exeext
10327 if { (ac_try
="$ac_link"
10328 case "(($ac_try" in
10329 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_link") 2>conftest.er1
10335 grep -v '^ *+' conftest.er1 >conftest.err
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && {
10340 test -z "$ac_c_werror_flag" ||
10341 test ! -s conftest.err
10342 } && test -s conftest$ac_exeext &&
10343 $as_test_x conftest$ac_exeext; then
10344 ac_cv_lib_pthreads_cma_open=yes
10346 echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10349 ac_cv_lib_pthreads_cma_open=no
10352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10353 conftest$ac_exeext conftest.$ac_ext
10354 LIBS=$ac_check_lib_save_LIBS
10356 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10357 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10358 if test $ac_cv_lib_pthreads_cma_open = yes; then
10359 cat >>confdefs.h <<_ACEOF
10360 #define HAVE_LIBPTHREADS 1
10363 LIBS="-lpthreads $LIBS"
10371 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10372 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10373 if test "${gdb_cv_bigtoc+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10378 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10379 *) gdb_cv_bigtoc=-bbigtoc ;;
10382 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10383 cat >conftest.$ac_ext <<_ACEOF
10386 cat confdefs.h >>conftest.$ac_ext
10387 cat >>conftest.$ac_ext <<_ACEOF
10388 /* end confdefs.h. */
10398 rm -f conftest.$ac_objext conftest$ac_exeext
10399 if { (ac_try="$ac_link"
10400 case "(($ac_try" in
10401 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10402 *) ac_try_echo
=$ac_try;;
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_link") 2>conftest.er1
10407 grep -v '^ *+' conftest.er1
>conftest.err
10409 cat conftest.err
>&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } && {
10412 test -z "$ac_c_werror_flag" ||
10413 test ! -s conftest.err
10414 } && test -s conftest
$ac_exeext &&
10415 $as_test_x conftest
$ac_exeext; then
10418 echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.
$ac_ext >&5
10424 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10425 conftest
$ac_exeext conftest.
$ac_ext
10428 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10429 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10433 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10434 # used for the tests that follow. We set them back to REAL_CFLAGS and
10435 # REAL_CPPFLAGS later on.
10437 REAL_CPPFLAGS
="$CPPFLAGS"
10439 if test "${HAVE_X11}" = "yes"; then
10440 DEFS
="$C_SWITCH_X_SITE $DEFS"
10441 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10443 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10444 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10446 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10447 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10448 # but it's more convenient here to set LD_RUN_PATH
10449 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10450 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10451 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10455 if test "${opsys}" = "gnu-linux"; then
10456 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10457 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10458 cat >conftest.
$ac_ext <<_ACEOF
10461 cat confdefs.h
>>conftest.
$ac_ext
10462 cat >>conftest.
$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10468 XOpenDisplay ("foo");
10473 rm -f conftest.
$ac_objext conftest
$ac_exeext
10474 if { (ac_try
="$ac_link"
10475 case "(($ac_try" in
10476 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_link") 2>conftest.er1
10482 grep -v '^ *+' conftest.er1 >conftest.err
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest$ac_exeext &&
10490 $as_test_x conftest$ac_exeext; then
10491 xlinux_first_failure=no
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10496 xlinux_first_failure=yes
10499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10500 conftest$ac_exeext conftest.$ac_ext
10501 if test "${xlinux_first_failure}" = "yes"; then
10502 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10503 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10504 OLD_CPPFLAGS="$CPPFLAGS"
10506 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10507 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10508 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10509 LIBS="$LIBS -b i486-linuxaout"
10510 cat >conftest.$ac_ext <<_ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10520 XOpenDisplay ("foo");
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (ac_try="$ac_link"
10527 case "(($ac_try" in
10528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10529 *) ac_try_echo
=$ac_try;;
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_link") 2>conftest.er1
10534 grep -v '^ *+' conftest.er1
>conftest.err
10536 cat conftest.err
>&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } && {
10539 test -z "$ac_c_werror_flag" ||
10540 test ! -s conftest.err
10541 } && test -s conftest
$ac_exeext &&
10542 $as_test_x conftest
$ac_exeext; then
10543 xlinux_second_failure
=no
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.
$ac_ext >&5
10548 xlinux_second_failure
=yes
10551 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10552 conftest
$ac_exeext conftest.
$ac_ext
10553 if test "${xlinux_second_failure}" = "yes"; then
10554 # If we get the same failure with -b, there is no use adding -b.
10555 # So take it out. This plays safe.
10556 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10557 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10558 CPPFLAGS
="$OLD_CPPFLAGS"
10560 { echo "$as_me:$LINENO: result: no" >&5
10561 echo "${ECHO_T}no" >&6; }
10563 { echo "$as_me:$LINENO: result: yes" >&5
10564 echo "${ECHO_T}yes" >&6; }
10567 { echo "$as_me:$LINENO: result: no" >&5
10568 echo "${ECHO_T}no" >&6; }
10572 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10573 # header files included from there.
10574 { echo "$as_me:$LINENO: checking for Xkb" >&5
10575 echo $ECHO_N "checking for Xkb... $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. */
10582 #include <X11/Xlib.h>
10583 #include <X11/XKBlib.h>
10587 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10592 rm -f conftest.
$ac_objext conftest
$ac_exeext
10593 if { (ac_try
="$ac_link"
10594 case "(($ac_try" in
10595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599 (eval "$ac_link") 2>conftest.er1
10601 grep -v '^ *+' conftest.er1 >conftest.err
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } && {
10606 test -z "$ac_c_werror_flag" ||
10607 test ! -s conftest.err
10608 } && test -s conftest$ac_exeext &&
10609 $as_test_x conftest$ac_exeext; then
10612 echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10619 conftest$ac_exeext conftest.$ac_ext
10620 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10621 echo "${ECHO_T}$emacs_xkb" >&6; }
10622 if test $emacs_xkb = yes; then
10624 cat >>confdefs.h <<\_ACEOF
10625 #define HAVE_XKBGETKEYBOARD 1
10634 for ac_func in XrmSetDatabase XScreenResourceString \
10635 XScreenNumberOfScreen XSetWMProtocols
10637 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10643 cat >conftest.$ac_ext <<_ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10651 #define $ac_func innocuous_$ac_func
10653 /* System header to define __stub macros and hopefully few prototypes,
10654 which can conflict with char $ac_func (); below.
10655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10656 <limits.h> exists even on freestanding compilers. */
10659 # include <limits.h>
10661 # include <assert.h>
10666 /* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
10673 /* The GNU C library defines this for functions which it implements
10674 to always fail with ENOSYS. Some functions are actually named
10675 something starting with __ and the normal name is an alias. */
10676 #if defined __stub_$ac_func || defined __stub___$ac_func
10683 return $ac_func ();
10688 rm -f conftest.$ac_objext conftest$ac_exeext
10689 if { (ac_try="$ac_link"
10690 case "(($ac_try" in
10691 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10692 *) ac_try_echo
=$ac_try;;
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_link") 2>conftest.er1
10697 grep -v '^ *+' conftest.er1
>conftest.err
10699 cat conftest.err
>&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } && {
10702 test -z "$ac_c_werror_flag" ||
10703 test ! -s conftest.err
10704 } && test -s conftest
$ac_exeext &&
10705 $as_test_x conftest
$ac_exeext; then
10706 eval "$as_ac_var=yes"
10708 echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.
$ac_ext >&5
10711 eval "$as_ac_var=no"
10714 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10715 conftest
$ac_exeext conftest.
$ac_ext
10717 ac_res
=`eval echo '${'$as_ac_var'}'`
10718 { echo "$as_me:$LINENO: result: $ac_res" >&5
10719 echo "${ECHO_T}$ac_res" >&6; }
10720 if test `eval echo '${'$as_ac_var'}'` = yes; then
10721 cat >>confdefs.h
<<_ACEOF
10722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10730 if test "${window_system}" = "x11"; then
10731 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10732 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10733 if test "${emacs_cv_x11_version_6+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10736 cat >conftest.
$ac_ext <<_ACEOF
10739 cat confdefs.h
>>conftest.
$ac_ext
10740 cat >>conftest.
$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 #include <X11/Xlib.h>
10746 #if XlibSpecificationRelease < 6
10754 rm -f conftest.
$ac_objext conftest
$ac_exeext
10755 if { (ac_try
="$ac_link"
10756 case "(($ac_try" in
10757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761 (eval "$ac_link") 2>conftest.er1
10763 grep -v '^ *+' conftest.er1 >conftest.err
10765 cat conftest.err >&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } && {
10768 test -z "$ac_c_werror_flag" ||
10769 test ! -s conftest.err
10770 } && test -s conftest$ac_exeext &&
10771 $as_test_x conftest$ac_exeext; then
10772 emacs_cv_x11_version_6=yes
10774 echo "$as_me: failed program was:" >&5
10775 sed 's/^/| /' conftest.$ac_ext >&5
10777 emacs_cv_x11_version_6=no
10780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10781 conftest$ac_exeext conftest.$ac_ext
10784 if test $emacs_cv_x11_version_6 = yes; then
10785 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10786 echo "${ECHO_T}6 or newer" >&6; }
10788 cat >>confdefs.h <<\_ACEOF
10789 #define HAVE_X11R6 1
10793 { echo "$as_me:$LINENO: result: before 6" >&5
10794 echo "${ECHO_T}before 6" >&6; }
10799 ### Use -lrsvg-2 if available, unless `--with-rsvg=no
' is specified.
10801 if test "${HAVE_X11}" = "yes"; then
10802 if test "${with_rsvg}" != "no"; then
10803 RSVG_REQUIRED=2.0.0
10804 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10809 # Extract the first word of "pkg-config", so it can be a program name with args.
10810 set dummy pkg-config; ac_word=$2
10811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10813 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10816 case $PKG_CONFIG in
10818 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10822 for as_dir in $PATH
10825 test -z "$as_dir" && as_dir=.
10826 for ac_exec_ext in '' $ac_executable_extensions; do
10827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10828 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10836 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10840 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10841 if test -n "$PKG_CONFIG"; then
10842 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10843 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10845 { echo "$as_me:$LINENO: result: no" >&5
10846 echo "${ECHO_T}no" >&6; }
10851 if test "$PKG_CONFIG" = "no" ; then
10854 PKG_CONFIG_MIN_VERSION=0.9.0
10855 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10856 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10857 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10859 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10860 { echo "$as_me:$LINENO: result: yes" >&5
10861 echo "${ECHO_T}yes" >&6; }
10864 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10865 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10866 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
10867 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10868 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10870 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10871 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10872 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
10873 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10874 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10876 { echo "$as_me:$LINENO: result: no" >&5
10877 echo "${ECHO_T}no" >&6; }
10880 ## If we have a custom action on failure, don't print errors
, but
10881 ## do set a variable so people can do so.
10882 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10889 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10890 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10894 if test $succeeded = yes; then
10903 if test ".${RSVG_CFLAGS}" != "."; then
10906 cat >>confdefs.h
<<\_ACEOF
10907 #define HAVE_RSVG 1
10910 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10911 LIBS
="$RSVG_LIBS $LIBS"
10918 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10921 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10926 # Extract the first word of "pkg-config", so it can be a program name with args.
10927 set dummy pkg-config
; ac_word
=$2
10928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10930 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
10933 case $PKG_CONFIG in
10935 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10939 for as_dir
in $PATH
10942 test -z "$as_dir" && as_dir
=.
10943 for ac_exec_ext
in '' $ac_executable_extensions; do
10944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10945 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10957 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10958 if test -n "$PKG_CONFIG"; then
10959 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10960 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10962 { echo "$as_me:$LINENO: result: no" >&5
10963 echo "${ECHO_T}no" >&6; }
10968 if test "$PKG_CONFIG" = "no" ; then
10971 PKG_CONFIG_MIN_VERSION
=0.9.0
10972 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10973 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10974 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10976 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10977 { echo "$as_me:$LINENO: result: yes" >&5
10978 echo "${ECHO_T}yes" >&6; }
10981 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10982 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10983 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10984 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10985 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10987 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10988 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10989 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10990 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10991 echo "${ECHO_T}$GTK_LIBS" >&6; }
10993 { echo "$as_me:$LINENO: result: no" >&5
10994 echo "${ECHO_T}no" >&6; }
10997 ## If we have a custom action on failure, don't print errors, but
10998 ## do set a variable so people can do so.
10999 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11006 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11007 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11011 if test $succeeded = yes; then
11017 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11018 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11019 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11020 { (exit 1); exit 1; }; }
11025 if test x
"$pkg_check_gtk" = xyes
; then
11029 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11030 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11031 LIBS
="$GTK_LIBS $LIBS"
11034 for ac_func
in gtk_main
11036 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11039 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 cat >conftest.
$ac_ext <<_ACEOF
11045 cat confdefs.h
>>conftest.
$ac_ext
11046 cat >>conftest.
$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11050 #define $ac_func innocuous_$ac_func
11052 /* System header to define __stub macros and hopefully few prototypes,
11053 which can conflict with char $ac_func (); below.
11054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11055 <limits.h> exists even on freestanding compilers. */
11058 # include <limits.h>
11060 # include <assert.h>
11065 /* Override any GCC internal prototype to avoid an error.
11066 Use char because int might match the return type of a GCC
11067 builtin and then its argument prototype would still apply. */
11072 /* The GNU C library defines this for functions which it implements
11073 to always fail with ENOSYS. Some functions are actually named
11074 something starting with __ and the normal name is an alias. */
11075 #if defined __stub_$ac_func || defined __stub___$ac_func
11082 return $ac_func ();
11087 rm -f conftest.
$ac_objext conftest
$ac_exeext
11088 if { (ac_try
="$ac_link"
11089 case "(($ac_try" in
11090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11091 *) ac_try_echo=$ac_try;;
11093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11094 (eval "$ac_link") 2>conftest.er1
11096 grep -v '^ *+' conftest.er1 >conftest.err
11098 cat conftest.err >&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } && {
11101 test -z "$ac_c_werror_flag" ||
11102 test ! -s conftest.err
11103 } && test -s conftest$ac_exeext &&
11104 $as_test_x conftest$ac_exeext; then
11105 eval "$as_ac_var=yes"
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11110 eval "$as_ac_var=no"
11113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11114 conftest$ac_exeext conftest.$ac_ext
11116 ac_res=`eval echo '${'$as_ac_var'}'`
11117 { echo "$as_me:$LINENO: result: $ac_res" >&5
11118 echo "${ECHO_T}$ac_res" >&6; }
11119 if test `eval echo '${'$as_ac_var'}'` = yes; then
11120 cat >>confdefs.h <<_ACEOF
11121 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11127 if test "${GTK_COMPILES}" != "yes"; then
11128 if test "$USE_X_TOOLKIT" != "maybe"; then
11129 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11130 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11131 { (exit 1); exit 1; }; };
11136 cat >>confdefs.h <<\_ACEOF
11141 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11144 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11145 closing open displays. This is no problem if you just use
11146 one display, but if you use more than one and close one of them
11147 Emacs may crash." >&5
11148 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11149 closing open displays. This is no problem if you just use
11150 one display, but if you use more than one and close one of them
11151 Emacs may crash." >&2;}
11159 if test "${HAVE_GTK}" = "yes"; then
11161 if test "$with_toolkit_scroll_bars" != no; then
11162 with_toolkit_scroll_bars=yes
11165 HAVE_GTK_MULTIDISPLAY=no
11167 for ac_func in gdk_display_open
11169 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11175 cat >conftest.$ac_ext <<_ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11183 #define $ac_func innocuous_$ac_func
11185 /* System header to define __stub macros and hopefully few prototypes,
11186 which can conflict with char $ac_func (); below.
11187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11188 <limits.h> exists even on freestanding compilers. */
11191 # include <limits.h>
11193 # include <assert.h>
11198 /* Override any GCC internal prototype to avoid an error.
11199 Use char because int might match the return type of a GCC
11200 builtin and then its argument prototype would still apply. */
11205 /* The GNU C library defines this for functions which it implements
11206 to always fail with ENOSYS. Some functions are actually named
11207 something starting with __ and the normal name is an alias. */
11208 #if defined __stub_$ac_func || defined __stub___$ac_func
11215 return $ac_func ();
11220 rm -f conftest.$ac_objext conftest$ac_exeext
11221 if { (ac_try="$ac_link"
11222 case "(($ac_try" in
11223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11224 *) ac_try_echo
=$ac_try;;
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_link") 2>conftest.er1
11229 grep -v '^ *+' conftest.er1
>conftest.err
11231 cat conftest.err
>&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } && {
11234 test -z "$ac_c_werror_flag" ||
11235 test ! -s conftest.err
11236 } && test -s conftest
$ac_exeext &&
11237 $as_test_x conftest
$ac_exeext; then
11238 eval "$as_ac_var=yes"
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.
$ac_ext >&5
11243 eval "$as_ac_var=no"
11246 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11247 conftest
$ac_exeext conftest.
$ac_ext
11249 ac_res
=`eval echo '${'$as_ac_var'}'`
11250 { echo "$as_me:$LINENO: result: $ac_res" >&5
11251 echo "${ECHO_T}$ac_res" >&6; }
11252 if test `eval echo '${'$as_ac_var'}'` = yes; then
11253 cat >>confdefs.h
<<_ACEOF
11254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11256 HAVE_GTK_MULTIDISPLAY
=yes
11260 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11262 cat >>confdefs.h
<<\_ACEOF
11263 #define HAVE_GTK_MULTIDISPLAY 1
11268 HAVE_GTK_FILE_SELECTION
=no
11270 for ac_func
in gtk_file_selection_new
11272 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11275 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11278 cat >conftest.
$ac_ext <<_ACEOF
11281 cat confdefs.h
>>conftest.
$ac_ext
11282 cat >>conftest.
$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11286 #define $ac_func innocuous_$ac_func
11288 /* System header to define __stub macros and hopefully few prototypes,
11289 which can conflict with char $ac_func (); below.
11290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11291 <limits.h> exists even on freestanding compilers. */
11294 # include <limits.h>
11296 # include <assert.h>
11301 /* Override any GCC internal prototype to avoid an error.
11302 Use char because int might match the return type of a GCC
11303 builtin and then its argument prototype would still apply. */
11308 /* The GNU C library defines this for functions which it implements
11309 to always fail with ENOSYS. Some functions are actually named
11310 something starting with __ and the normal name is an alias. */
11311 #if defined __stub_$ac_func || defined __stub___$ac_func
11318 return $ac_func ();
11323 rm -f conftest.
$ac_objext conftest
$ac_exeext
11324 if { (ac_try
="$ac_link"
11325 case "(($ac_try" in
11326 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_link") 2>conftest.er1
11332 grep -v '^ *+' conftest.er1 >conftest.err
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } && {
11337 test -z "$ac_c_werror_flag" ||
11338 test ! -s conftest.err
11339 } && test -s conftest$ac_exeext &&
11340 $as_test_x conftest$ac_exeext; then
11341 eval "$as_ac_var=yes"
11343 echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11346 eval "$as_ac_var=no"
11349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11350 conftest$ac_exeext conftest.$ac_ext
11352 ac_res=`eval echo '${'$as_ac_var'}'`
11353 { echo "$as_me:$LINENO: result: $ac_res" >&5
11354 echo "${ECHO_T}$ac_res" >&6; }
11355 if test `eval echo '${'$as_ac_var'}'` = yes; then
11356 cat >>confdefs.h <<_ACEOF
11357 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11359 HAVE_GTK_FILE_SELECTION=yes
11364 HAVE_GTK_FILE_CHOOSER=no
11366 for ac_func in gtk_file_chooser_dialog_new
11368 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11374 cat >conftest.$ac_ext <<_ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11382 #define $ac_func innocuous_$ac_func
11384 /* System header to define __stub macros and hopefully few prototypes,
11385 which can conflict with char $ac_func (); below.
11386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11387 <limits.h> exists even on freestanding compilers. */
11390 # include <limits.h>
11392 # include <assert.h>
11397 /* Override any GCC internal prototype to avoid an error.
11398 Use char because int might match the return type of a GCC
11399 builtin and then its argument prototype would still apply. */
11404 /* The GNU C library defines this for functions which it implements
11405 to always fail with ENOSYS. Some functions are actually named
11406 something starting with __ and the normal name is an alias. */
11407 #if defined __stub_$ac_func || defined __stub___$ac_func
11414 return $ac_func ();
11419 rm -f conftest.$ac_objext conftest$ac_exeext
11420 if { (ac_try="$ac_link"
11421 case "(($ac_try" in
11422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11423 *) ac_try_echo
=$ac_try;;
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_link") 2>conftest.er1
11428 grep -v '^ *+' conftest.er1
>conftest.err
11430 cat conftest.err
>&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } && {
11433 test -z "$ac_c_werror_flag" ||
11434 test ! -s conftest.err
11435 } && test -s conftest
$ac_exeext &&
11436 $as_test_x conftest
$ac_exeext; then
11437 eval "$as_ac_var=yes"
11439 echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.
$ac_ext >&5
11442 eval "$as_ac_var=no"
11445 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11446 conftest
$ac_exeext conftest.
$ac_ext
11448 ac_res
=`eval echo '${'$as_ac_var'}'`
11449 { echo "$as_me:$LINENO: result: $ac_res" >&5
11450 echo "${ECHO_T}$ac_res" >&6; }
11451 if test `eval echo '${'$as_ac_var'}'` = yes; then
11452 cat >>confdefs.h
<<_ACEOF
11453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11455 HAVE_GTK_FILE_CHOOSER
=yes
11460 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11461 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11463 cat >>confdefs.h
<<\_ACEOF
11464 #define HAVE_GTK_FILE_BOTH 1
11469 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11470 HAVE_GTK_AND_PTHREAD
=no
11472 for ac_header
in pthread.h
11474 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11475 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11478 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11481 ac_res
=`eval echo '${'$as_ac_Header'}'`
11482 { echo "$as_me:$LINENO: result: $ac_res" >&5
11483 echo "${ECHO_T}$ac_res" >&6; }
11485 # Is the header compilable?
11486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11488 cat >conftest.
$ac_ext <<_ACEOF
11491 cat confdefs.h
>>conftest.
$ac_ext
11492 cat >>conftest.
$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 $ac_includes_default
11495 #include <$ac_header>
11497 rm -f conftest.
$ac_objext
11498 if { (ac_try
="$ac_compile"
11499 case "(($ac_try" in
11500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504 (eval "$ac_compile") 2>conftest.er1
11506 grep -v '^ *+' conftest.er1 >conftest.err
11508 cat conftest.err >&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } && {
11511 test -z "$ac_c_werror_flag" ||
11512 test ! -s conftest.err
11513 } && test -s conftest.$ac_objext; then
11514 ac_header_compiler=yes
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_header_compiler=no
11522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11524 echo "${ECHO_T}$ac_header_compiler" >&6; }
11526 # Is the header present?
11527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11529 cat >conftest.$ac_ext <<_ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535 #include <$ac_header>
11537 if { (ac_try="$ac_cpp conftest.$ac_ext"
11538 case "(($ac_try" in
11539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11540 *) ac_try_echo
=$ac_try;;
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11545 grep -v '^ *+' conftest.er1
>conftest.err
11547 cat conftest.err
>&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } >/dev
/null
&& {
11550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11553 ac_header_preproc
=yes
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.
$ac_ext >&5
11558 ac_header_preproc
=no
11561 rm -f conftest.err conftest.
$ac_ext
11562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11563 echo "${ECHO_T}$ac_header_preproc" >&6; }
11565 # So? What about this header?
11566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11572 ac_header_preproc
=yes
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11592 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11595 eval "$as_ac_Header=\$ac_header_preproc"
11597 ac_res
=`eval echo '${'$as_ac_Header'}'`
11598 { echo "$as_me:$LINENO: result: $ac_res" >&5
11599 echo "${ECHO_T}$ac_res" >&6; }
11602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11603 cat >>confdefs.h
<<_ACEOF
11604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11611 if test "$ac_cv_header_pthread_h"; then
11612 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11613 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11614 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11617 ac_check_lib_save_LIBS
=$LIBS
11618 LIBS
="-lpthread $LIBS"
11619 cat >conftest.
$ac_ext <<_ACEOF
11622 cat confdefs.h
>>conftest.
$ac_ext
11623 cat >>conftest.
$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11626 /* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11632 char pthread_self ();
11636 return pthread_self ();
11641 rm -f conftest.
$ac_objext conftest
$ac_exeext
11642 if { (ac_try
="$ac_link"
11643 case "(($ac_try" in
11644 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11645 *) ac_try_echo=$ac_try;;
11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648 (eval "$ac_link") 2>conftest.er1
11650 grep -v '^ *+' conftest.er1 >conftest.err
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } && {
11655 test -z "$ac_c_werror_flag" ||
11656 test ! -s conftest.err
11657 } && test -s conftest$ac_exeext &&
11658 $as_test_x conftest$ac_exeext; then
11659 ac_cv_lib_pthread_pthread_self=yes
11661 echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11664 ac_cv_lib_pthread_pthread_self=no
11667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11668 conftest$ac_exeext conftest.$ac_ext
11669 LIBS=$ac_check_lib_save_LIBS
11671 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11672 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11673 if test $ac_cv_lib_pthread_pthread_self = yes; then
11674 HAVE_GTK_AND_PTHREAD=yes
11678 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11679 case "${canonical}" in
11681 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11684 cat >>confdefs.h <<\_ACEOF
11685 #define HAVE_GTK_AND_PTHREAD 1
11693 if test "${with_dbus}" = "yes"; then
11697 # Extract the first word of "pkg-config", so it can be a program name with args.
11698 set dummy pkg-config; ac_word=$2
11699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11701 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11704 case $PKG_CONFIG in
11706 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in $PATH
11713 test -z "$as_dir" && as_dir=.
11714 for ac_exec_ext in '' $ac_executable_extensions; do
11715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11716 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11724 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11728 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11729 if test -n "$PKG_CONFIG"; then
11730 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11731 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11733 { echo "$as_me:$LINENO: result: no" >&5
11734 echo "${ECHO_T}no" >&6; }
11739 if test "$PKG_CONFIG" = "no" ; then
11742 PKG_CONFIG_MIN_VERSION=0.9.0
11743 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11744 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11745 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11747 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11748 { echo "$as_me:$LINENO: result: yes" >&5
11749 echo "${ECHO_T}yes" >&6; }
11752 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11753 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11754 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11755 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11756 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11758 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11759 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11760 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11761 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11762 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11764 { echo "$as_me:$LINENO: result: no" >&5
11765 echo "${ECHO_T}no" >&6; }
11768 ## If we have a custom action on failure, don't print errors, but
11769 ## do set a variable so people can do so.
11770 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11777 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11778 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11782 if test $succeeded = yes; then
11788 if test "$HAVE_DBUS" = yes; then
11790 cat >>confdefs.h <<\_ACEOF
11791 #define HAVE_DBUS 1
11798 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11799 if test "$with_xaw3d" != no; then
11800 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11801 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11802 if test "${emacs_cv_xaw3d+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11805 cat >conftest.$ac_ext <<_ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11812 #include <X11/Intrinsic.h>
11813 #include <X11/Xaw3d/Simple.h>
11822 rm -f conftest.$ac_objext conftest$ac_exeext
11823 if { (ac_try="$ac_link"
11824 case "(($ac_try" in
11825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11826 *) ac_try_echo
=$ac_try;;
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_link") 2>conftest.er1
11831 grep -v '^ *+' conftest.er1
>conftest.err
11833 cat conftest.err
>&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } && {
11836 test -z "$ac_c_werror_flag" ||
11837 test ! -s conftest.err
11838 } && test -s conftest
$ac_exeext &&
11839 $as_test_x conftest
$ac_exeext; then
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.
$ac_ext >&5
11848 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11849 conftest
$ac_exeext conftest.
$ac_ext
11855 if test $emacs_cv_xaw3d = yes; then
11856 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11857 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11858 USE_X_TOOLKIT
=LUCID
11861 cat >>confdefs.h
<<\_ACEOF
11862 #define HAVE_XAW3D 1
11866 { echo "$as_me:$LINENO: result: no" >&5
11867 echo "${ECHO_T}no" >&6; }
11868 { echo "$as_me:$LINENO: checking for libXaw" >&5
11869 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11870 if test "${emacs_cv_xaw+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 cat >conftest.
$ac_ext <<_ACEOF
11876 cat confdefs.h
>>conftest.
$ac_ext
11877 cat >>conftest.
$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11880 #include <X11/Intrinsic.h>
11881 #include <X11/Xaw/Simple.h>
11890 rm -f conftest.
$ac_objext conftest
$ac_exeext
11891 if { (ac_try
="$ac_link"
11892 case "(($ac_try" in
11893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_link") 2>conftest.er1
11899 grep -v '^ *+' conftest.er1 >conftest.err
11901 cat conftest.err >&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } && {
11904 test -z "$ac_c_werror_flag" ||
11905 test ! -s conftest.err
11906 } && test -s conftest$ac_exeext &&
11907 $as_test_x conftest$ac_exeext; then
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11917 conftest$ac_exeext conftest.$ac_ext
11920 if test $emacs_cv_xaw = yes; then
11921 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11922 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11923 USE_X_TOOLKIT=LUCID
11924 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11925 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11926 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11927 { (exit 1); exit 1; }; }
11929 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11930 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11936 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11938 if test "${USE_X_TOOLKIT}" != "none"; then
11939 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11940 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11941 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11944 cat >conftest.$ac_ext <<_ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11950 #include <X11/Intrinsic.h>
11954 #if XtSpecificationRelease < 6
11962 rm -f conftest.$ac_objext conftest$ac_exeext
11963 if { (ac_try="$ac_link"
11964 case "(($ac_try" in
11965 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11966 *) ac_try_echo
=$ac_try;;
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_link") 2>conftest.er1
11971 grep -v '^ *+' conftest.er1
>conftest.err
11973 cat conftest.err
>&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } && {
11976 test -z "$ac_c_werror_flag" ||
11977 test ! -s conftest.err
11978 } && test -s conftest
$ac_exeext &&
11979 $as_test_x conftest
$ac_exeext; then
11980 emacs_cv_x11_toolkit_version_6
=yes
11982 echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.
$ac_ext >&5
11985 emacs_cv_x11_toolkit_version_6
=no
11988 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11989 conftest
$ac_exeext conftest.
$ac_ext
11992 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11993 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11994 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11995 echo "${ECHO_T}6 or newer" >&6; }
11997 cat >>confdefs.h
<<\_ACEOF
11998 #define HAVE_X11XTR6 1
12002 { echo "$as_me:$LINENO: result: before 6" >&5
12003 echo "${ECHO_T}before 6" >&6; }
12007 if test x
$HAVE_X11XTR6 = xyes
; then
12008 LIBS
="-lXt -lSM -lICE $LIBS"
12013 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12014 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12015 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12018 ac_check_lib_save_LIBS
=$LIBS
12020 cat >conftest.
$ac_ext <<_ACEOF
12023 cat confdefs.h
>>conftest.
$ac_ext
12024 cat >>conftest.
$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12027 /* Override any GCC internal prototype to avoid an error.
12028 Use char because int might match the return type of a GCC
12029 builtin and then its argument prototype would still apply. */
12033 char XmuConvertStandardSelection ();
12037 return XmuConvertStandardSelection ();
12042 rm -f conftest.
$ac_objext conftest
$ac_exeext
12043 if { (ac_try
="$ac_link"
12044 case "(($ac_try" in
12045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_link") 2>conftest.er1
12051 grep -v '^ *+' conftest.er1 >conftest.err
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } && {
12056 test -z "$ac_c_werror_flag" ||
12057 test ! -s conftest.err
12058 } && test -s conftest$ac_exeext &&
12059 $as_test_x conftest$ac_exeext; then
12060 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12069 conftest$ac_exeext conftest.$ac_ext
12070 LIBS=$ac_check_lib_save_LIBS
12072 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12073 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12074 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12075 cat >>confdefs.h <<_ACEOF
12076 #define HAVE_LIBXMU 1
12083 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12086 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12087 if test "${HAVE_X11}" = "yes"; then
12088 if test "${USE_X_TOOLKIT}" != "none"; then
12090 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12091 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12092 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12095 ac_check_lib_save_LIBS=$LIBS
12096 LIBS="-lXext $LIBS"
12097 cat >conftest.$ac_ext <<_ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12104 /* Override any GCC internal prototype to avoid an error.
12105 Use char because int might match the return type of a GCC
12106 builtin and then its argument prototype would still apply. */
12110 char XShapeQueryExtension ();
12114 return XShapeQueryExtension ();
12119 rm -f conftest.$ac_objext conftest$ac_exeext
12120 if { (ac_try="$ac_link"
12121 case "(($ac_try" in
12122 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12123 *) ac_try_echo
=$ac_try;;
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_link") 2>conftest.er1
12128 grep -v '^ *+' conftest.er1
>conftest.err
12130 cat conftest.err
>&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } && {
12133 test -z "$ac_c_werror_flag" ||
12134 test ! -s conftest.err
12135 } && test -s conftest
$ac_exeext &&
12136 $as_test_x conftest
$ac_exeext; then
12137 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.
$ac_ext >&5
12142 ac_cv_lib_Xext_XShapeQueryExtension
=no
12145 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12146 conftest
$ac_exeext conftest.
$ac_ext
12147 LIBS
=$ac_check_lib_save_LIBS
12149 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12150 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12151 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12152 cat >>confdefs.h
<<_ACEOF
12153 #define HAVE_LIBXEXT 1
12156 LIBS
="-lXext $LIBS"
12163 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12164 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12165 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12166 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12169 cat >conftest.
$ac_ext <<_ACEOF
12172 cat confdefs.h
>>conftest.
$ac_ext
12173 cat >>conftest.
$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12179 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12182 Motif version prior to 2.1.
12188 rm -f conftest.
$ac_objext
12189 if { (ac_try
="$ac_compile"
12190 case "(($ac_try" in
12191 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_compile") 2>conftest.er1
12197 grep -v '^ *+' conftest.er1 >conftest.err
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } && {
12202 test -z "$ac_c_werror_flag" ||
12203 test ! -s conftest.err
12204 } && test -s conftest.$ac_objext; then
12205 emacs_cv_motif_version_2_1=yes
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12210 emacs_cv_motif_version_2_1=no
12213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12215 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12216 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12217 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12218 if test $emacs_cv_motif_version_2_1 = yes; then
12221 cat >>confdefs.h <<\_ACEOF
12222 #define HAVE_MOTIF_2_1 1
12225 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12226 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12227 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12230 ac_check_lib_save_LIBS=$LIBS
12232 cat >conftest.$ac_ext <<_ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12239 /* Override any GCC internal prototype to avoid an error.
12240 Use char because int might match the return type of a GCC
12241 builtin and then its argument prototype would still apply. */
12245 char XpCreateContext ();
12249 return XpCreateContext ();
12254 rm -f conftest.$ac_objext conftest$ac_exeext
12255 if { (ac_try="$ac_link"
12256 case "(($ac_try" in
12257 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12258 *) ac_try_echo
=$ac_try;;
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_link") 2>conftest.er1
12263 grep -v '^ *+' conftest.er1
>conftest.err
12265 cat conftest.err
>&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } && {
12268 test -z "$ac_c_werror_flag" ||
12269 test ! -s conftest.err
12270 } && test -s conftest
$ac_exeext &&
12271 $as_test_x conftest
$ac_exeext; then
12272 ac_cv_lib_Xp_XpCreateContext
=yes
12274 echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.
$ac_ext >&5
12277 ac_cv_lib_Xp_XpCreateContext
=no
12280 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12281 conftest
$ac_exeext conftest.
$ac_ext
12282 LIBS
=$ac_check_lib_save_LIBS
12284 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12285 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12286 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12290 if test ${HAVE_LIBXP} = yes; then
12292 cat >>confdefs.h
<<\_ACEOF
12293 #define HAVE_LIBXP 1
12298 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12299 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12300 if test "${emacs_cv_lesstif+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12303 # We put this in CFLAGS temporarily to precede other -I options
12304 # that might be in CFLAGS temporarily.
12305 # We put this in CPPFLAGS where it precedes the other -I options.
12306 OLD_CPPFLAGS
=$CPPFLAGS
12308 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12309 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12310 cat >conftest.
$ac_ext <<_ACEOF
12313 cat confdefs.h
>>conftest.
$ac_ext
12314 cat >>conftest.
$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12325 rm -f conftest.
$ac_objext
12326 if { (ac_try
="$ac_compile"
12327 case "(($ac_try" in
12328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332 (eval "$ac_compile") 2>conftest.er1
12334 grep -v '^ *+' conftest.er1 >conftest.err
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } && {
12339 test -z "$ac_c_werror_flag" ||
12340 test ! -s conftest.err
12341 } && test -s conftest.$ac_objext; then
12342 emacs_cv_lesstif=yes
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12347 emacs_cv_lesstif=no
12350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12352 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12353 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12354 if test $emacs_cv_lesstif = yes; then
12355 # Make sure this -I option remains in CPPFLAGS after it is set
12356 # back to REAL_CPPFLAGS.
12357 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12358 # have those other -I options anyway. Ultimately, having this
12359 # directory ultimately in CPPFLAGS will be enough.
12360 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12361 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12364 CPPFLAGS=$OLD_CPPFLAGS
12371 USE_TOOLKIT_SCROLL_BARS=no
12372 if test "${with_toolkit_scroll_bars}" != "no"; then
12373 if test "${USE_X_TOOLKIT}" != "none"; then
12374 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12375 cat >>confdefs.h <<\_ACEOF
12376 #define USE_TOOLKIT_SCROLL_BARS 1
12380 USE_TOOLKIT_SCROLL_BARS=yes
12381 elif test "${HAVE_XAW3D}" = "yes"; then
12382 cat >>confdefs.h <<\_ACEOF
12383 #define USE_TOOLKIT_SCROLL_BARS 1
12386 USE_TOOLKIT_SCROLL_BARS=yes
12388 elif test "${HAVE_GTK}" = "yes"; then
12389 cat >>confdefs.h <<\_ACEOF
12390 #define USE_TOOLKIT_SCROLL_BARS 1
12393 USE_TOOLKIT_SCROLL_BARS=yes
12394 elif test "${HAVE_NS}" = "yes"; then
12395 cat >>confdefs.h <<\_ACEOF
12396 #define USE_TOOLKIT_SCROLL_BARS 1
12399 USE_TOOLKIT_SCROLL_BARS=yes
12403 cat >conftest.$ac_ext <<_ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12410 #include <X11/Xlib.h>
12411 #include <X11/Xresource.h>
12420 rm -f conftest.$ac_objext
12421 if { (ac_try="$ac_compile"
12422 case "(($ac_try" in
12423 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12424 *) ac_try_echo
=$ac_try;;
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_compile") 2>conftest.er1
12429 grep -v '^ *+' conftest.er1
>conftest.err
12431 cat conftest.err
>&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } && {
12434 test -z "$ac_c_werror_flag" ||
12435 test ! -s conftest.err
12436 } && test -s conftest.
$ac_objext; then
12439 cat >>confdefs.h
<<\_ACEOF
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.
$ac_ext >&5
12450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12453 if test "${with_xim}" != "no"; then
12455 cat >>confdefs.h
<<\_ACEOF
12462 if test "${HAVE_XIM}" != "no"; then
12463 late_CFLAGS
=$CFLAGS
12464 if test "$GCC" = yes; then
12465 CFLAGS
="$CFLAGS --pedantic-errors"
12467 cat >conftest.
$ac_ext <<_ACEOF
12470 cat confdefs.h
>>conftest.
$ac_ext
12471 cat >>conftest.
$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12474 #include <X11/Xlib.h>
12475 #include <X11/Xresource.h>
12484 XPointer *client_data;
12486 /* If we're not using GCC, it's probably not XFree86, and this is
12487 probably right, but we can't use something like --pedantic-errors. */
12488 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12489 char*, XIMProc, XPointer*);
12491 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12497 rm -f conftest.
$ac_objext
12498 if { (ac_try
="$ac_compile"
12499 case "(($ac_try" in
12500 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12501 *) ac_try_echo=$ac_try;;
12503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504 (eval "$ac_compile") 2>conftest.er1
12506 grep -v '^ *+' conftest.er1 >conftest.err
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } && {
12511 test -z "$ac_c_werror_flag" ||
12512 test ! -s conftest.err
12513 } && test -s conftest.$ac_objext; then
12514 emacs_cv_arg6_star=yes
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12524 if test "$emacs_cv_arg6_star" = yes; then
12525 cat >>confdefs.h <<\_ACEOF
12526 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12530 cat >>confdefs.h <<\_ACEOF
12531 #define XRegisterIMInstantiateCallback_arg6 XPointer
12535 CFLAGS=$late_CFLAGS
12538 ### Start of font-backend section.
12540 ## Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12542 if test "x${with_freetype}" = "xno"; then
12545 if test "x${with_xft}" != "xno"; then
12550 # Extract the first word of "pkg-config", so it can be a program name with args.
12551 set dummy pkg-config
; ac_word
=$2
12552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12554 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12557 case $PKG_CONFIG in
12559 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12562 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12563 for as_dir
in $PATH
12566 test -z "$as_dir" && as_dir
=.
12567 for ac_exec_ext
in '' $ac_executable_extensions; do
12568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12569 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12577 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12581 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12582 if test -n "$PKG_CONFIG"; then
12583 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12584 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12586 { echo "$as_me:$LINENO: result: no" >&5
12587 echo "${ECHO_T}no" >&6; }
12592 if test "$PKG_CONFIG" = "no" ; then
12595 PKG_CONFIG_MIN_VERSION
=0.9.0
12596 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12597 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12598 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12600 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12601 { echo "$as_me:$LINENO: result: yes" >&5
12602 echo "${ECHO_T}yes" >&6; }
12605 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12606 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12607 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12608 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12609 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12611 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12612 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12613 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12614 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12615 echo "${ECHO_T}$XFT_LIBS" >&6; }
12617 { echo "$as_me:$LINENO: result: no" >&5
12618 echo "${ECHO_T}no" >&6; }
12621 ## If we have a custom action on failure, don't print errors, but
12622 ## do set a variable so people can do so.
12623 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12630 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12631 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12635 if test $succeeded = yes; then
12641 if test "$HAVE_XFT" != no
; then
12642 OLD_CPPFLAGS
="$CPPFLAGS"
12643 OLD_CFLAGS
="$CFLAGS"
12645 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12646 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12647 LIBS
="$XFT_LIBS $LIBS"
12648 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12649 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12650 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12651 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12654 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12655 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12657 # Is the header compilable?
12658 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12659 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12660 cat >conftest.
$ac_ext <<_ACEOF
12663 cat confdefs.h
>>conftest.
$ac_ext
12664 cat >>conftest.
$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12666 $ac_includes_default
12667 #include <X11/Xft/Xft.h>
12669 rm -f conftest.
$ac_objext
12670 if { (ac_try
="$ac_compile"
12671 case "(($ac_try" in
12672 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_compile") 2>conftest.er1
12678 grep -v '^ *+' conftest.er1 >conftest.err
12680 cat conftest.err >&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } && {
12683 test -z "$ac_c_werror_flag" ||
12684 test ! -s conftest.err
12685 } && test -s conftest.$ac_objext; then
12686 ac_header_compiler=yes
12688 echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12691 ac_header_compiler=no
12694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12696 echo "${ECHO_T}$ac_header_compiler" >&6; }
12698 # Is the header present?
12699 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12700 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12701 cat >conftest.$ac_ext <<_ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 #include <X11/Xft/Xft.h>
12709 if { (ac_try="$ac_cpp conftest.$ac_ext"
12710 case "(($ac_try" in
12711 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12712 *) ac_try_echo
=$ac_try;;
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12717 grep -v '^ *+' conftest.er1
>conftest.err
12719 cat conftest.err
>&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } >/dev
/null
&& {
12722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12723 test ! -s conftest.err
12725 ac_header_preproc
=yes
12727 echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.
$ac_ext >&5
12730 ac_header_preproc
=no
12733 rm -f conftest.err conftest.
$ac_ext
12734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12735 echo "${ECHO_T}$ac_header_preproc" >&6; }
12737 # So? What about this header?
12738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12740 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12741 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12742 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12743 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12744 ac_header_preproc
=yes
12747 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12748 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12749 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12750 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12752 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12754 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12756 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12758 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12762 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12763 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12764 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12767 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12769 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12770 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12773 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12774 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12775 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12776 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12779 ac_check_lib_save_LIBS
=$LIBS
12780 LIBS
="-lXft $XFT_LIBS $LIBS"
12781 cat >conftest.
$ac_ext <<_ACEOF
12784 cat confdefs.h
>>conftest.
$ac_ext
12785 cat >>conftest.
$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12788 /* Override any GCC internal prototype to avoid an error.
12789 Use char because int might match the return type of a GCC
12790 builtin and then its argument prototype would still apply. */
12794 char XftFontOpen ();
12798 return XftFontOpen ();
12803 rm -f conftest.
$ac_objext conftest
$ac_exeext
12804 if { (ac_try
="$ac_link"
12805 case "(($ac_try" in
12806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_link") 2>conftest.er1
12812 grep -v '^ *+' conftest.er1 >conftest.err
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } && {
12817 test -z "$ac_c_werror_flag" ||
12818 test ! -s conftest.err
12819 } && test -s conftest$ac_exeext &&
12820 $as_test_x conftest$ac_exeext; then
12821 ac_cv_lib_Xft_XftFontOpen=yes
12823 echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.$ac_ext >&5
12826 ac_cv_lib_Xft_XftFontOpen=no
12829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12830 conftest$ac_exeext conftest.$ac_ext
12831 LIBS=$ac_check_lib_save_LIBS
12833 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12834 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12835 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12843 if test "${HAVE_XFT}" = "yes"; then
12845 cat >>confdefs.h <<\_ACEOF
12850 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12852 CPPFLAGS="$OLD_CPPFLAGS"
12853 CFLAGS="$OLD_CFLAGS"
12855 fi # "${HAVE_XFT}" = "yes"
12856 fi # "$HAVE_XFT" != no
12857 fi # "x${with_xft}" != "xno"
12859 if test "$HAVE_XFT" != "yes"; then
12865 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12866 if test "${HAVE_XFT}" = "yes"; then
12868 elif test "x${with_freetype}" != "xno"; then
12873 # Extract the first word of "pkg-config", so it can be a program name with args.
12874 set dummy pkg-config; ac_word=$2
12875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12877 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12880 case $PKG_CONFIG in
12882 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886 for as_dir in $PATH
12889 test -z "$as_dir" && as_dir=.
12890 for ac_exec_ext in '' $ac_executable_extensions; do
12891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12892 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12900 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12904 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12905 if test -n "$PKG_CONFIG"; then
12906 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12907 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12909 { echo "$as_me:$LINENO: result: no" >&5
12910 echo "${ECHO_T}no" >&6; }
12915 if test "$PKG_CONFIG" = "no" ; then
12918 PKG_CONFIG_MIN_VERSION=0.9.0
12919 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12920 { echo "$as_me:$LINENO: checking for freetype2" >&5
12921 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12923 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12924 { echo "$as_me:$LINENO: result: yes" >&5
12925 echo "${ECHO_T}yes" >&6; }
12928 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12929 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12930 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12931 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12932 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12934 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12935 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12936 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12937 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12938 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12940 { echo "$as_me:$LINENO: result: no" >&5
12941 echo "${ECHO_T}no" >&6; }
12944 ## If we have a custom action on failure, don't print errors
, but
12945 ## do set a variable so people can do so.
12946 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12953 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12954 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12958 if test $succeeded = yes; then
12964 if test "${HAVE_FREETYPE}" = "yes"; then
12968 # Extract the first word of "pkg-config", so it can be a program name with args.
12969 set dummy pkg-config
; ac_word
=$2
12970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12972 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12973 echo $ECHO_N "(cached) $ECHO_C" >&6
12975 case $PKG_CONFIG in
12977 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12981 for as_dir
in $PATH
12984 test -z "$as_dir" && as_dir
=.
12985 for ac_exec_ext
in '' $ac_executable_extensions; do
12986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12987 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12995 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12999 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13000 if test -n "$PKG_CONFIG"; then
13001 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13002 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13004 { echo "$as_me:$LINENO: result: no" >&5
13005 echo "${ECHO_T}no" >&6; }
13010 if test "$PKG_CONFIG" = "no" ; then
13013 PKG_CONFIG_MIN_VERSION
=0.9.0
13014 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13015 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13016 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13018 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13019 { echo "$as_me:$LINENO: result: yes" >&5
13020 echo "${ECHO_T}yes" >&6; }
13023 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13024 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13025 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13026 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13027 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13029 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13030 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13031 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13032 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13033 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13035 { echo "$as_me:$LINENO: result: no" >&5
13036 echo "${ECHO_T}no" >&6; }
13037 FONTCONFIG_CFLAGS
=""
13039 ## If we have a custom action on failure, don't print errors, but
13040 ## do set a variable so people can do so.
13041 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13048 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13049 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13053 if test $succeeded = yes; then
13059 if test "${HAVE_FC}" = "no"; then
13066 if test "${HAVE_FREETYPE}" = "yes"; then
13068 cat >>confdefs.h
<<\_ACEOF
13069 #define HAVE_FREETYPE 1
13072 if test "${with_libotf}" != "no"; then
13076 # Extract the first word of "pkg-config", so it can be a program name with args.
13077 set dummy pkg-config
; ac_word
=$2
13078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13080 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13083 case $PKG_CONFIG in
13085 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13089 for as_dir
in $PATH
13092 test -z "$as_dir" && as_dir
=.
13093 for ac_exec_ext
in '' $ac_executable_extensions; do
13094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13095 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13103 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13107 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13108 if test -n "$PKG_CONFIG"; then
13109 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13110 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13112 { echo "$as_me:$LINENO: result: no" >&5
13113 echo "${ECHO_T}no" >&6; }
13118 if test "$PKG_CONFIG" = "no" ; then
13121 PKG_CONFIG_MIN_VERSION
=0.9.0
13122 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13123 { echo "$as_me:$LINENO: checking for libotf" >&5
13124 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13126 if $PKG_CONFIG --exists "libotf" 2>&5; then
13127 { echo "$as_me:$LINENO: result: yes" >&5
13128 echo "${ECHO_T}yes" >&6; }
13131 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13132 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13133 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13134 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13135 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13137 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13138 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13139 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13140 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13141 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13143 { echo "$as_me:$LINENO: result: no" >&5
13144 echo "${ECHO_T}no" >&6; }
13147 ## If we have a custom action on failure, don't print errors, but
13148 ## do set a variable so people can do so.
13149 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13156 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13157 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13161 if test $succeeded = yes; then
13167 if test "$HAVE_LIBOTF" = "yes"; then
13169 cat >>confdefs.h
<<\_ACEOF
13170 #define HAVE_LIBOTF 1
13178 if test "${with_m17n_flt}" != "no"; then
13182 # Extract the first word of "pkg-config", so it can be a program name with args.
13183 set dummy pkg-config
; ac_word
=$2
13184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13186 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13189 case $PKG_CONFIG in
13191 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13194 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13195 for as_dir
in $PATH
13198 test -z "$as_dir" && as_dir
=.
13199 for ac_exec_ext
in '' $ac_executable_extensions; do
13200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13201 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13209 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13213 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13214 if test -n "$PKG_CONFIG"; then
13215 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13216 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13218 { echo "$as_me:$LINENO: result: no" >&5
13219 echo "${ECHO_T}no" >&6; }
13224 if test "$PKG_CONFIG" = "no" ; then
13227 PKG_CONFIG_MIN_VERSION
=0.9.0
13228 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13229 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13230 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13232 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13233 { echo "$as_me:$LINENO: result: yes" >&5
13234 echo "${ECHO_T}yes" >&6; }
13237 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13238 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13239 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13240 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13241 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13243 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13244 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13245 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13246 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13247 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13249 { echo "$as_me:$LINENO: result: no" >&5
13250 echo "${ECHO_T}no" >&6; }
13253 ## If we have a custom action on failure, don't print errors, but
13254 ## do set a variable so people can do so.
13255 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13262 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13263 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13267 if test $succeeded = yes; then
13273 if test "$HAVE_M17N_FLT" = "yes"; then
13275 cat >>confdefs.h
<<\_ACEOF
13276 #define HAVE_M17N_FLT 1
13291 ### End of font-backend section.
13293 ### Use -lXpm if available, unless `--with-xpm=no'.
13295 if test "${HAVE_X11}" = "yes"; then
13296 if test "${with_xpm}" != "no"; then
13297 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13298 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13299 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13300 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13303 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13304 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13306 # Is the header compilable?
13307 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13308 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13309 cat >conftest.
$ac_ext <<_ACEOF
13312 cat confdefs.h
>>conftest.
$ac_ext
13313 cat >>conftest.
$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13315 $ac_includes_default
13316 #include <X11/xpm.h>
13318 rm -f conftest.
$ac_objext
13319 if { (ac_try
="$ac_compile"
13320 case "(($ac_try" in
13321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_compile") 2>conftest.er1
13327 grep -v '^ *+' conftest.er1 >conftest.err
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } && {
13332 test -z "$ac_c_werror_flag" ||
13333 test ! -s conftest.err
13334 } && test -s conftest.$ac_objext; then
13335 ac_header_compiler=yes
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13340 ac_header_compiler=no
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13345 echo "${ECHO_T}$ac_header_compiler" >&6; }
13347 # Is the header present?
13348 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13349 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13350 cat >conftest.$ac_ext <<_ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13356 #include <X11/xpm.h>
13358 if { (ac_try="$ac_cpp conftest.$ac_ext"
13359 case "(($ac_try" in
13360 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13361 *) ac_try_echo
=$ac_try;;
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13366 grep -v '^ *+' conftest.er1
>conftest.err
13368 cat conftest.err
>&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } >/dev
/null
&& {
13371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13372 test ! -s conftest.err
13374 ac_header_preproc
=yes
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.
$ac_ext >&5
13379 ac_header_preproc
=no
13382 rm -f conftest.err conftest.
$ac_ext
13383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13384 echo "${ECHO_T}$ac_header_preproc" >&6; }
13386 # So? What about this header?
13387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13389 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13390 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13391 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13392 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13393 ac_header_preproc
=yes
13396 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13397 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13398 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13399 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13401 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13402 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13403 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13405 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13407 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13411 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13412 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13413 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13418 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13419 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13422 if test $ac_cv_header_X11_xpm_h = yes; then
13423 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13424 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13425 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13428 ac_check_lib_save_LIBS
=$LIBS
13429 LIBS
="-lXpm -lX11 $LIBS"
13430 cat >conftest.
$ac_ext <<_ACEOF
13433 cat confdefs.h
>>conftest.
$ac_ext
13434 cat >>conftest.
$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13437 /* Override any GCC internal prototype to avoid an error.
13438 Use char because int might match the return type of a GCC
13439 builtin and then its argument prototype would still apply. */
13443 char XpmReadFileToPixmap ();
13447 return XpmReadFileToPixmap ();
13452 rm -f conftest.
$ac_objext conftest
$ac_exeext
13453 if { (ac_try
="$ac_link"
13454 case "(($ac_try" in
13455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_link") 2>conftest.er1
13461 grep -v '^ *+' conftest.er1 >conftest.err
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } && {
13466 test -z "$ac_c_werror_flag" ||
13467 test ! -s conftest.err
13468 } && test -s conftest$ac_exeext &&
13469 $as_test_x conftest$ac_exeext; then
13470 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13472 echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13475 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13479 conftest$ac_exeext conftest.$ac_ext
13480 LIBS=$ac_check_lib_save_LIBS
13482 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13483 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13484 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13491 if test "${HAVE_XPM}" = "yes"; then
13492 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13493 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13494 cat >conftest.$ac_ext <<_ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h. */
13500 #include "X11/xpm.h"
13501 #ifndef XpmReturnAllocPixels
13502 no_return_alloc_pixels
13506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13507 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13515 if test "${HAVE_XPM}" = "yes"; then
13516 { echo "$as_me:$LINENO: result: yes" >&5
13517 echo "${ECHO_T}yes" >&6; }
13519 { echo "$as_me:$LINENO: result: no" >&5
13520 echo "${ECHO_T}no" >&6; }
13525 if test "${HAVE_XPM}" = "yes"; then
13527 cat >>confdefs.h <<\_ACEOF
13534 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13536 if test "${HAVE_X11}" = "yes"; then
13537 if test "${with_jpeg}" != "no"; then
13538 if test "${ac_cv_header_jerror_h+set}" = set; then
13539 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13540 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13541 if test "${ac_cv_header_jerror_h+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13544 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13545 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13547 # Is the header compilable?
13548 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13549 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13550 cat >conftest.$ac_ext <<_ACEOF
13553 cat confdefs.h >>conftest.$ac_ext
13554 cat >>conftest.$ac_ext <<_ACEOF
13555 /* end confdefs.h. */
13556 $ac_includes_default
13557 #include <jerror.h>
13559 rm -f conftest.$ac_objext
13560 if { (ac_try="$ac_compile"
13561 case "(($ac_try" in
13562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563 *) ac_try_echo=$ac_try;;
13565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566 (eval "$ac_compile") 2>conftest.er1
13568 grep -v '^
*+' conftest.er1 >conftest.err
13570 cat conftest.err >&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } && {
13573 test -z "$ac_c_werror_flag" ||
13574 test ! -s conftest.err
13575 } && test -s conftest.$ac_objext; then
13576 ac_header_compiler=yes
13578 echo "$as_me: failed program was:" >&5
13579 sed 's
/^
/|
/' conftest.$ac_ext >&5
13581 ac_header_compiler=no
13584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13586 echo "${ECHO_T}$ac_header_compiler" >&6; }
13588 # Is the header present?
13589 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13590 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13591 cat >conftest.$ac_ext <<_ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13597 #include <jerror.h>
13599 if { (ac_try="$ac_cpp conftest.$ac_ext"
13600 case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13607 grep -v '^
*+' conftest.er1 >conftest.err
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } >/dev/null && {
13612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13613 test ! -s conftest.err
13615 ac_header_preproc=yes
13617 echo "$as_me: failed program was:" >&5
13618 sed 's
/^
/|
/' conftest.$ac_ext >&5
13620 ac_header_preproc=no
13623 rm -f conftest.err conftest.$ac_ext
13624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13625 echo "${ECHO_T}$ac_header_preproc" >&6; }
13627 # So? What about this header?
13628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13630 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13631 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13632 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13633 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13634 ac_header_preproc=yes
13637 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13638 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13639 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13640 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13641 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13642 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13643 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13644 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13646 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13648 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13652 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13653 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13654 if test "${ac_cv_header_jerror_h+set}" = set; then
13655 echo $ECHO_N "(cached) $ECHO_C" >&6
13657 ac_cv_header_jerror_h=$ac_header_preproc
13659 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13660 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13663 if test $ac_cv_header_jerror_h = yes; then
13664 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13665 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13666 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13669 ac_check_lib_save_LIBS=$LIBS
13670 LIBS="-ljpeg $LIBS"
13671 cat >conftest.$ac_ext <<_ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13678 /* Override any GCC internal prototype to avoid an error.
13679 Use char because int might match the return type of a GCC
13680 builtin and then its argument prototype would still apply. */
13684 char jpeg_destroy_compress ();
13688 return jpeg_destroy_compress ();
13693 rm -f conftest.$ac_objext conftest$ac_exeext
13694 if { (ac_try="$ac_link"
13695 case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_link") 2>conftest.er1
13702 grep -v '^
*+' conftest.er1 >conftest.err
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } && {
13707 test -z "$ac_c_werror_flag" ||
13708 test ! -s conftest.err
13709 } && test -s conftest$ac_exeext &&
13710 $as_test_x conftest$ac_exeext; then
13711 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13713 echo "$as_me: failed program was:" >&5
13714 sed 's
/^
/|
/' conftest.$ac_ext >&5
13716 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13720 conftest$ac_exeext conftest.$ac_ext
13721 LIBS=$ac_check_lib_save_LIBS
13723 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13724 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13725 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13735 if test "${HAVE_JPEG}" = "yes"; then
13736 cat >>confdefs.h <<\_ACEOF
13737 #define HAVE_JPEG 1
13740 cat >conftest.$ac_ext <<_ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746 #include <jpeglib.h>
13747 version=JPEG_LIB_VERSION
13750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13751 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13752 cat >>confdefs.h <<\_ACEOF
13753 #define HAVE_JPEG 1
13757 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13758 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13766 ### Use -lpng if available, unless `--with-png=no'.
13768 if test "${HAVE_X11}" = "yes"; then
13769 if test "${with_png}" != "no"; then
13770 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13771 # in /usr/include/libpng.
13774 for ac_header
in png.h libpng
/png.h
13776 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13777 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13780 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13783 ac_res
=`eval echo '${'$as_ac_Header'}'`
13784 { echo "$as_me:$LINENO: result: $ac_res" >&5
13785 echo "${ECHO_T}$ac_res" >&6; }
13787 # Is the header compilable?
13788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13790 cat >conftest.
$ac_ext <<_ACEOF
13793 cat confdefs.h
>>conftest.
$ac_ext
13794 cat >>conftest.
$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13796 $ac_includes_default
13797 #include <$ac_header>
13799 rm -f conftest.
$ac_objext
13800 if { (ac_try
="$ac_compile"
13801 case "(($ac_try" in
13802 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_compile") 2>conftest.er1
13808 grep -v '^ *+' conftest.er1 >conftest.err
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } && {
13813 test -z "$ac_c_werror_flag" ||
13814 test ! -s conftest.err
13815 } && test -s conftest.$ac_objext; then
13816 ac_header_compiler=yes
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13821 ac_header_compiler=no
13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13826 echo "${ECHO_T}$ac_header_compiler" >&6; }
13828 # Is the header present?
13829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13831 cat >conftest.$ac_ext <<_ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13837 #include <$ac_header>
13839 if { (ac_try="$ac_cpp conftest.$ac_ext"
13840 case "(($ac_try" in
13841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13842 *) ac_try_echo
=$ac_try;;
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13847 grep -v '^ *+' conftest.er1
>conftest.err
13849 cat conftest.err
>&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } >/dev
/null
&& {
13852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13853 test ! -s conftest.err
13855 ac_header_preproc
=yes
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.
$ac_ext >&5
13860 ac_header_preproc
=no
13863 rm -f conftest.err conftest.
$ac_ext
13864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13865 echo "${ECHO_T}$ac_header_preproc" >&6; }
13867 # So? What about this header?
13868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13874 ac_header_preproc
=yes
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13894 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13895 echo $ECHO_N "(cached) $ECHO_C" >&6
13897 eval "$as_ac_Header=\$ac_header_preproc"
13899 ac_res
=`eval echo '${'$as_ac_Header'}'`
13900 { echo "$as_me:$LINENO: result: $ac_res" >&5
13901 echo "${ECHO_T}$ac_res" >&6; }
13904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13905 cat >>confdefs.h
<<_ACEOF
13906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13913 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13914 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13915 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13916 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13919 ac_check_lib_save_LIBS
=$LIBS
13920 LIBS
="-lpng -lz -lm $LIBS"
13921 cat >conftest.
$ac_ext <<_ACEOF
13924 cat confdefs.h
>>conftest.
$ac_ext
13925 cat >>conftest.
$ac_ext <<_ACEOF
13926 /* end confdefs.h. */
13928 /* Override any GCC internal prototype to avoid an error.
13929 Use char because int might match the return type of a GCC
13930 builtin and then its argument prototype would still apply. */
13934 char png_get_channels ();
13938 return png_get_channels ();
13943 rm -f conftest.
$ac_objext conftest
$ac_exeext
13944 if { (ac_try
="$ac_link"
13945 case "(($ac_try" in
13946 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13947 *) ac_try_echo=$ac_try;;
13949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950 (eval "$ac_link") 2>conftest.er1
13952 grep -v '^ *+' conftest.er1 >conftest.err
13954 cat conftest.err >&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); } && {
13957 test -z "$ac_c_werror_flag" ||
13958 test ! -s conftest.err
13959 } && test -s conftest$ac_exeext &&
13960 $as_test_x conftest$ac_exeext; then
13961 ac_cv_lib_png_png_get_channels=yes
13963 echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13966 ac_cv_lib_png_png_get_channels=no
13969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13970 conftest$ac_exeext conftest.$ac_ext
13971 LIBS=$ac_check_lib_save_LIBS
13973 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13974 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13975 if test $ac_cv_lib_png_png_get_channels = yes; then
13982 if test "${HAVE_PNG}" = "yes"; then
13984 cat >>confdefs.h <<\_ACEOF
13991 ### Use -ltiff if available, unless `--with-tiff=no
'.
13993 if test "${HAVE_X11}" = "yes"; then
13994 if test "${with_tiff}" != "no"; then
13995 if test "${ac_cv_header_tiffio_h+set}" = set; then
13996 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13997 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13998 if test "${ac_cv_header_tiffio_h+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14001 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14002 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14004 # Is the header compilable?
14005 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14006 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14007 cat >conftest.$ac_ext <<_ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013 $ac_includes_default
14014 #include <tiffio.h>
14016 rm -f conftest.$ac_objext
14017 if { (ac_try="$ac_compile"
14018 case "(($ac_try" in
14019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020 *) ac_try_echo=$ac_try;;
14022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023 (eval "$ac_compile") 2>conftest.er1
14025 grep -v '^
*+' conftest.er1 >conftest.err
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } && {
14030 test -z "$ac_c_werror_flag" ||
14031 test ! -s conftest.err
14032 } && test -s conftest.$ac_objext; then
14033 ac_header_compiler=yes
14035 echo "$as_me: failed program was:" >&5
14036 sed 's
/^
/|
/' conftest.$ac_ext >&5
14038 ac_header_compiler=no
14041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14042 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14043 echo "${ECHO_T}$ac_header_compiler" >&6; }
14045 # Is the header present?
14046 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14047 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14048 cat >conftest.$ac_ext <<_ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h. */
14054 #include <tiffio.h>
14056 if { (ac_try="$ac_cpp conftest.$ac_ext"
14057 case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14064 grep -v '^
*+' conftest.er1 >conftest.err
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } >/dev/null && {
14069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14070 test ! -s conftest.err
14072 ac_header_preproc=yes
14074 echo "$as_me: failed program was:" >&5
14075 sed 's
/^
/|
/' conftest.$ac_ext >&5
14077 ac_header_preproc=no
14080 rm -f conftest.err conftest.$ac_ext
14081 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14082 echo "${ECHO_T}$ac_header_preproc" >&6; }
14084 # So? What about this header?
14085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14087 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14088 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14089 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14090 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14091 ac_header_preproc=yes
14094 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14095 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14097 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14099 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14101 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14103 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14105 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14109 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14110 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14111 if test "${ac_cv_header_tiffio_h+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14114 ac_cv_header_tiffio_h=$ac_header_preproc
14116 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14117 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14120 if test $ac_cv_header_tiffio_h = yes; then
14122 # At least one tiff package requires the jpeg library.
14123 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14124 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14125 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14126 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14129 ac_check_lib_save_LIBS=$LIBS
14130 LIBS="-ltiff $tifflibs $LIBS"
14131 cat >conftest.$ac_ext <<_ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14138 /* Override any GCC internal prototype to avoid an error.
14139 Use char because int might match the return type of a GCC
14140 builtin and then its argument prototype would still apply. */
14144 char TIFFGetVersion ();
14148 return TIFFGetVersion ();
14153 rm -f conftest.$ac_objext conftest$ac_exeext
14154 if { (ac_try="$ac_link"
14155 case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_link") 2>conftest.er1
14162 grep -v '^
*+' conftest.er1 >conftest.err
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } && {
14167 test -z "$ac_c_werror_flag" ||
14168 test ! -s conftest.err
14169 } && test -s conftest$ac_exeext &&
14170 $as_test_x conftest$ac_exeext; then
14171 ac_cv_lib_tiff_TIFFGetVersion=yes
14173 echo "$as_me: failed program was:" >&5
14174 sed 's
/^
/|
/' conftest.$ac_ext >&5
14176 ac_cv_lib_tiff_TIFFGetVersion=no
14179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14180 conftest$ac_exeext conftest.$ac_ext
14181 LIBS=$ac_check_lib_save_LIBS
14183 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14184 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14185 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14194 if test "${HAVE_TIFF}" = "yes"; then
14196 cat >>confdefs.h <<\_ACEOF
14197 #define HAVE_TIFF 1
14203 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14205 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14206 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14207 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14208 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14209 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14212 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14213 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14215 # Is the header compilable?
14216 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14217 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14218 cat >conftest.
$ac_ext <<_ACEOF
14221 cat confdefs.h
>>conftest.
$ac_ext
14222 cat >>conftest.
$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 $ac_includes_default
14225 #include <gif_lib.h>
14227 rm -f conftest.
$ac_objext
14228 if { (ac_try
="$ac_compile"
14229 case "(($ac_try" in
14230 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14231 *) ac_try_echo=$ac_try;;
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234 (eval "$ac_compile") 2>conftest.er1
14236 grep -v '^ *+' conftest.er1 >conftest.err
14238 cat conftest.err >&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } && {
14241 test -z "$ac_c_werror_flag" ||
14242 test ! -s conftest.err
14243 } && test -s conftest.$ac_objext; then
14244 ac_header_compiler=yes
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14249 ac_header_compiler=no
14252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14254 echo "${ECHO_T}$ac_header_compiler" >&6; }
14256 # Is the header present?
14257 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14258 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14259 cat >conftest.$ac_ext <<_ACEOF
14262 cat confdefs.h >>conftest.$ac_ext
14263 cat >>conftest.$ac_ext <<_ACEOF
14264 /* end confdefs.h. */
14265 #include <gif_lib.h>
14267 if { (ac_try="$ac_cpp conftest.$ac_ext"
14268 case "(($ac_try" in
14269 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14270 *) ac_try_echo
=$ac_try;;
14272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14275 grep -v '^ *+' conftest.er1
>conftest.err
14277 cat conftest.err
>&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } >/dev
/null
&& {
14280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14281 test ! -s conftest.err
14283 ac_header_preproc
=yes
14285 echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.
$ac_ext >&5
14288 ac_header_preproc
=no
14291 rm -f conftest.err conftest.
$ac_ext
14292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14293 echo "${ECHO_T}$ac_header_preproc" >&6; }
14295 # So? What about this header?
14296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14298 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14299 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14300 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14301 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14302 ac_header_preproc
=yes
14305 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14306 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14307 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14308 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14309 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14310 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14311 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14312 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14314 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14316 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14320 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14321 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14322 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14325 ac_cv_header_gif_lib_h
=$ac_header_preproc
14327 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14328 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14331 if test $ac_cv_header_gif_lib_h = yes; then
14332 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14333 # Earlier versions can crash Emacs.
14334 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14335 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14336 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14339 ac_check_lib_save_LIBS
=$LIBS
14341 cat >conftest.
$ac_ext <<_ACEOF
14344 cat confdefs.h
>>conftest.
$ac_ext
14345 cat >>conftest.
$ac_ext <<_ACEOF
14346 /* end confdefs.h. */
14348 /* Override any GCC internal prototype to avoid an error.
14349 Use char because int might match the return type of a GCC
14350 builtin and then its argument prototype would still apply. */
14354 char EGifPutExtensionLast ();
14358 return EGifPutExtensionLast ();
14363 rm -f conftest.
$ac_objext conftest
$ac_exeext
14364 if { (ac_try
="$ac_link"
14365 case "(($ac_try" in
14366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14367 *) ac_try_echo=$ac_try;;
14369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14370 (eval "$ac_link") 2>conftest.er1
14372 grep -v '^ *+' conftest.er1 >conftest.err
14374 cat conftest.err >&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } && {
14377 test -z "$ac_c_werror_flag" ||
14378 test ! -s conftest.err
14379 } && test -s conftest$ac_exeext &&
14380 $as_test_x conftest$ac_exeext; then
14381 ac_cv_lib_gif_EGifPutExtensionLast=yes
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14386 ac_cv_lib_gif_EGifPutExtensionLast=no
14389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14390 conftest$ac_exeext conftest.$ac_ext
14391 LIBS=$ac_check_lib_save_LIBS
14393 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14394 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14395 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14405 if test "$HAVE_GIF" = yes; then
14406 ac_gif_lib_name="-lgif"
14409 # If gif_lib.h but no libgif, try libungif.
14410 if test x"$try_libungif" = xyes; then
14411 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14412 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14413 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14414 echo $ECHO_N "(cached) $ECHO_C" >&6
14416 ac_check_lib_save_LIBS=$LIBS
14417 LIBS="-lungif $LIBS"
14418 cat >conftest.$ac_ext <<_ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14425 /* Override any GCC internal prototype to avoid an error.
14426 Use char because int might match the return type of a GCC
14427 builtin and then its argument prototype would still apply. */
14431 char EGifPutExtensionLast ();
14435 return EGifPutExtensionLast ();
14440 rm -f conftest.$ac_objext conftest$ac_exeext
14441 if { (ac_try="$ac_link"
14442 case "(($ac_try" in
14443 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14444 *) ac_try_echo
=$ac_try;;
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_link") 2>conftest.er1
14449 grep -v '^ *+' conftest.er1
>conftest.err
14451 cat conftest.err
>&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } && {
14454 test -z "$ac_c_werror_flag" ||
14455 test ! -s conftest.err
14456 } && test -s conftest
$ac_exeext &&
14457 $as_test_x conftest
$ac_exeext; then
14458 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.
$ac_ext >&5
14463 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14466 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14467 conftest
$ac_exeext conftest.
$ac_ext
14468 LIBS
=$ac_check_lib_save_LIBS
14470 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14471 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14472 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14477 if test "$HAVE_GIF" = yes; then
14479 cat >>confdefs.h
<<\_ACEOF
14480 #define LIBGIF -lungif
14483 ac_gif_lib_name
="-lungif"
14487 if test "${HAVE_GIF}" = "yes"; then
14489 cat >>confdefs.h
<<\_ACEOF
14496 if test "${HAVE_X11}" = "yes"; then
14499 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14500 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14501 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14502 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14503 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14504 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14505 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14506 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14507 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14508 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14510 if test "X${MISSING}" != X
; then
14511 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14513 Maybe some development libraries/packages are missing?
14514 If you don't want to link with them give
14516 as options to configure" >&5
14517 echo "$as_me: error: The following required libraries were not found:
14519 Maybe some development libraries/packages are missing?
14520 If you don't want to link with them give
14522 as options to configure" >&2;}
14523 { (exit 1); exit 1; }; }
14527 ### Use -lgpm if available, unless `--with-gpm=no'.
14529 if test "${with_gpm}" != "no"; then
14530 if test "${ac_cv_header_gpm_h+set}" = set; then
14531 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14532 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14533 if test "${ac_cv_header_gpm_h+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14536 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14537 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14539 # Is the header compilable?
14540 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14541 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14542 cat >conftest.
$ac_ext <<_ACEOF
14545 cat confdefs.h
>>conftest.
$ac_ext
14546 cat >>conftest.
$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14548 $ac_includes_default
14551 rm -f conftest.
$ac_objext
14552 if { (ac_try
="$ac_compile"
14553 case "(($ac_try" in
14554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_compile") 2>conftest.er1
14560 grep -v '^ *+' conftest.er1 >conftest.err
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } && {
14565 test -z "$ac_c_werror_flag" ||
14566 test ! -s conftest.err
14567 } && test -s conftest.$ac_objext; then
14568 ac_header_compiler=yes
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14573 ac_header_compiler=no
14576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14578 echo "${ECHO_T}$ac_header_compiler" >&6; }
14580 # Is the header present?
14581 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14582 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14583 cat >conftest.$ac_ext <<_ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h. */
14591 if { (ac_try="$ac_cpp conftest.$ac_ext"
14592 case "(($ac_try" in
14593 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14594 *) ac_try_echo
=$ac_try;;
14596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14599 grep -v '^ *+' conftest.er1
>conftest.err
14601 cat conftest.err
>&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } >/dev
/null
&& {
14604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14605 test ! -s conftest.err
14607 ac_header_preproc
=yes
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.
$ac_ext >&5
14612 ac_header_preproc
=no
14615 rm -f conftest.err conftest.
$ac_ext
14616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14617 echo "${ECHO_T}$ac_header_preproc" >&6; }
14619 # So? What about this header?
14620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14622 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14623 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14624 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14625 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14626 ac_header_preproc
=yes
14629 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14630 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14631 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14632 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14634 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14636 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14638 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14640 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14644 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14645 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14646 if test "${ac_cv_header_gpm_h+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14649 ac_cv_header_gpm_h
=$ac_header_preproc
14651 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14652 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14655 if test $ac_cv_header_gpm_h = yes; then
14656 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14657 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14658 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14661 ac_check_lib_save_LIBS
=$LIBS
14663 cat >conftest.
$ac_ext <<_ACEOF
14666 cat confdefs.h
>>conftest.
$ac_ext
14667 cat >>conftest.
$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14670 /* Override any GCC internal prototype to avoid an error.
14671 Use char because int might match the return type of a GCC
14672 builtin and then its argument prototype would still apply. */
14680 return Gpm_Open ();
14685 rm -f conftest.
$ac_objext conftest
$ac_exeext
14686 if { (ac_try
="$ac_link"
14687 case "(($ac_try" in
14688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14689 *) ac_try_echo=$ac_try;;
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692 (eval "$ac_link") 2>conftest.er1
14694 grep -v '^ *+' conftest.er1 >conftest.err
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } && {
14699 test -z "$ac_c_werror_flag" ||
14700 test ! -s conftest.err
14701 } && test -s conftest$ac_exeext &&
14702 $as_test_x conftest$ac_exeext; then
14703 ac_cv_lib_gpm_Gpm_Open=yes
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14708 ac_cv_lib_gpm_Gpm_Open=no
14711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14712 conftest$ac_exeext conftest.$ac_ext
14713 LIBS=$ac_check_lib_save_LIBS
14715 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14716 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14717 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14726 if test "${HAVE_GPM}" = "yes"; then
14728 cat >>confdefs.h <<\_ACEOF
14734 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14735 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14736 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14737 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14740 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14741 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14743 # Is the header compilable?
14744 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14745 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14746 cat >conftest.$ac_ext <<_ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14752 $ac_includes_default
14753 #include <malloc/malloc.h>
14755 rm -f conftest.$ac_objext
14756 if { (ac_try="$ac_compile"
14757 case "(($ac_try" in
14758 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14759 *) ac_try_echo
=$ac_try;;
14761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762 (eval "$ac_compile") 2>conftest.er1
14764 grep -v '^ *+' conftest.er1
>conftest.err
14766 cat conftest.err
>&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } && {
14769 test -z "$ac_c_werror_flag" ||
14770 test ! -s conftest.err
14771 } && test -s conftest.
$ac_objext; then
14772 ac_header_compiler
=yes
14774 echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.
$ac_ext >&5
14777 ac_header_compiler
=no
14780 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14782 echo "${ECHO_T}$ac_header_compiler" >&6; }
14784 # Is the header present?
14785 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14786 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14787 cat >conftest.
$ac_ext <<_ACEOF
14790 cat confdefs.h
>>conftest.
$ac_ext
14791 cat >>conftest.
$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14793 #include <malloc/malloc.h>
14795 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14796 case "(($ac_try" in
14797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14803 grep -v '^ *+' conftest.er1 >conftest.err
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } >/dev/null && {
14808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14809 test ! -s conftest.err
14811 ac_header_preproc=yes
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_header_preproc=no
14819 rm -f conftest.err conftest.$ac_ext
14820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14821 echo "${ECHO_T}$ac_header_preproc" >&6; }
14823 # So? What about this header?
14824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14826 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14827 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14828 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14829 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14830 ac_header_preproc=yes
14833 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14834 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14836 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14838 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14840 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14842 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14844 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14848 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14849 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14850 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14853 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14855 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14856 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14859 if test $ac_cv_header_malloc_malloc_h = yes; then
14861 cat >>confdefs.h <<\_ACEOF
14862 #define HAVE_MALLOC_MALLOC_H 1
14869 ### Use NeXTstep API to implement GUI.
14870 if test "${HAVE_NS}" = "yes"; then
14872 cat >>confdefs.h <<\_ACEOF
14876 if test "${NS_IMPL_COCOA}" = "yes"; then
14878 cat >>confdefs.h <<\_ACEOF
14879 #define NS_IMPL_COCOA 1
14883 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14885 cat >>confdefs.h <<\_ACEOF
14886 #define COCOA_EXPERIMENTAL_CTRL_G 1
14890 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14892 cat >>confdefs.h <<\_ACEOF
14893 #define NS_IMPL_GNUSTEP 1
14897 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
14899 cat >>confdefs.h <<\_ACEOF
14900 #define NS_HAVE_NSINTEGER 1
14904 # We also have mouse menus.
14909 ### Use session management (-lSM -lICE) if available
14911 if test "${HAVE_X11}" = "yes"; then
14912 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14913 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14914 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14915 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14918 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14919 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14921 # Is the header compilable?
14922 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14923 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14924 cat >conftest.$ac_ext <<_ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14930 $ac_includes_default
14931 #include <X11/SM/SMlib.h>
14933 rm -f conftest.$ac_objext
14934 if { (ac_try="$ac_compile"
14935 case "(($ac_try" in
14936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14937 *) ac_try_echo
=$ac_try;;
14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_compile") 2>conftest.er1
14942 grep -v '^ *+' conftest.er1
>conftest.err
14944 cat conftest.err
>&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } && {
14947 test -z "$ac_c_werror_flag" ||
14948 test ! -s conftest.err
14949 } && test -s conftest.
$ac_objext; then
14950 ac_header_compiler
=yes
14952 echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.
$ac_ext >&5
14955 ac_header_compiler
=no
14958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14959 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14960 echo "${ECHO_T}$ac_header_compiler" >&6; }
14962 # Is the header present?
14963 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14964 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14965 cat >conftest.
$ac_ext <<_ACEOF
14968 cat confdefs.h
>>conftest.
$ac_ext
14969 cat >>conftest.
$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 #include <X11/SM/SMlib.h>
14973 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14974 case "(($ac_try" in
14975 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14981 grep -v '^ *+' conftest.er1 >conftest.err
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } >/dev/null && {
14986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14987 test ! -s conftest.err
14989 ac_header_preproc=yes
14991 echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14994 ac_header_preproc=no
14997 rm -f conftest.err conftest.$ac_ext
14998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14999 echo "${ECHO_T}$ac_header_preproc" >&6; }
15001 # So? What about this header?
15002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15004 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15005 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15006 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15007 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15008 ac_header_preproc=yes
15011 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15012 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15013 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15014 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15015 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15016 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15017 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15018 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15019 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15020 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15021 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15022 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15026 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15027 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15028 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15031 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15033 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15034 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15037 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15038 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15039 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15040 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 ac_check_lib_save_LIBS=$LIBS
15044 LIBS="-lSM -lICE $LIBS"
15045 cat >conftest.$ac_ext <<_ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15052 /* Override any GCC internal prototype to avoid an error.
15053 Use char because int might match the return type of a GCC
15054 builtin and then its argument prototype would still apply. */
15058 char SmcOpenConnection ();
15062 return SmcOpenConnection ();
15067 rm -f conftest.$ac_objext conftest$ac_exeext
15068 if { (ac_try="$ac_link"
15069 case "(($ac_try" in
15070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15071 *) ac_try_echo
=$ac_try;;
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_link") 2>conftest.er1
15076 grep -v '^ *+' conftest.er1
>conftest.err
15078 cat conftest.err
>&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } && {
15081 test -z "$ac_c_werror_flag" ||
15082 test ! -s conftest.err
15083 } && test -s conftest
$ac_exeext &&
15084 $as_test_x conftest
$ac_exeext; then
15085 ac_cv_lib_SM_SmcOpenConnection
=yes
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.
$ac_ext >&5
15090 ac_cv_lib_SM_SmcOpenConnection
=no
15093 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15094 conftest
$ac_exeext conftest.
$ac_ext
15095 LIBS
=$ac_check_lib_save_LIBS
15097 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15098 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15099 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15107 if test "${HAVE_X_SM}" = "yes"; then
15109 cat >>confdefs.h
<<\_ACEOF
15110 #define HAVE_X_SM 1
15115 *) LIBS
="-lSM -lICE $LIBS" ;;
15120 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15121 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15122 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15123 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15126 cat >conftest.
$ac_ext <<_ACEOF
15129 cat confdefs.h
>>conftest.
$ac_ext
15130 cat >>conftest.
$ac_ext <<_ACEOF
15131 /* end confdefs.h. */
15141 rm -f conftest.
$ac_objext conftest
$ac_exeext
15142 if { (ac_try
="$ac_link"
15143 case "(($ac_try" in
15144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148 (eval "$ac_link") 2>conftest.er1
15150 grep -v '^ *+' conftest.er1 >conftest.err
15152 cat conftest.err >&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } && {
15155 test -z "$ac_c_werror_flag" ||
15156 test ! -s conftest.err
15157 } && test -s conftest$ac_exeext &&
15158 $as_test_x conftest$ac_exeext; then
15159 emacs_cv_netdb_declares_h_errno=yes
15161 echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15164 emacs_cv_netdb_declares_h_errno=no
15167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15168 conftest$ac_exeext conftest.$ac_ext
15170 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15171 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15172 if test $emacs_cv_netdb_declares_h_errno = yes; then
15174 cat >>confdefs.h <<\_ACEOF
15175 #define HAVE_H_ERRNO 1
15180 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15181 # for constant arguments. Useless!
15182 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15183 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15184 if test "${ac_cv_working_alloca_h+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15187 cat >conftest.$ac_ext <<_ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15193 #include <alloca.h>
15197 char *p = (char *) alloca (2 * sizeof (int));
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (ac_try="$ac_link"
15205 case "(($ac_try" in
15206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15207 *) ac_try_echo
=$ac_try;;
15209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_link") 2>conftest.er1
15212 grep -v '^ *+' conftest.er1
>conftest.err
15214 cat conftest.err
>&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } && {
15217 test -z "$ac_c_werror_flag" ||
15218 test ! -s conftest.err
15219 } && test -s conftest
$ac_exeext &&
15220 $as_test_x conftest
$ac_exeext; then
15221 ac_cv_working_alloca_h
=yes
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.
$ac_ext >&5
15226 ac_cv_working_alloca_h
=no
15229 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15230 conftest
$ac_exeext conftest.
$ac_ext
15232 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15233 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15234 if test $ac_cv_working_alloca_h = yes; then
15236 cat >>confdefs.h
<<\_ACEOF
15237 #define HAVE_ALLOCA_H 1
15242 { echo "$as_me:$LINENO: checking for alloca" >&5
15243 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15244 if test "${ac_cv_func_alloca_works+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15247 cat >conftest.
$ac_ext <<_ACEOF
15250 cat confdefs.h
>>conftest.
$ac_ext
15251 cat >>conftest.
$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15254 # define alloca __builtin_alloca
15257 # include <malloc.h>
15258 # define alloca _alloca
15260 # ifdef HAVE_ALLOCA_H
15261 # include <alloca.h>
15266 # ifndef alloca /* predefined by HP cc +Olibcalls */
15277 char *p = (char *) alloca (1);
15283 rm -f conftest.
$ac_objext conftest
$ac_exeext
15284 if { (ac_try
="$ac_link"
15285 case "(($ac_try" in
15286 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290 (eval "$ac_link") 2>conftest.er1
15292 grep -v '^ *+' conftest.er1 >conftest.err
15294 cat conftest.err >&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); } && {
15297 test -z "$ac_c_werror_flag" ||
15298 test ! -s conftest.err
15299 } && test -s conftest$ac_exeext &&
15300 $as_test_x conftest$ac_exeext; then
15301 ac_cv_func_alloca_works=yes
15303 echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15306 ac_cv_func_alloca_works=no
15309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15310 conftest$ac_exeext conftest.$ac_ext
15312 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15313 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15315 if test $ac_cv_func_alloca_works = yes; then
15317 cat >>confdefs.h <<\_ACEOF
15318 #define HAVE_ALLOCA 1
15322 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15323 # that cause trouble. Some versions do not even contain alloca or
15324 # contain a buggy version. If you still want to use their alloca,
15325 # use ar to extract alloca.o from them instead of compiling alloca.c.
15327 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15329 cat >>confdefs.h <<\_ACEOF
15334 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15335 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15336 if test "${ac_cv_os_cray+set}" = set; then
15337 echo $ECHO_N "(cached
) $ECHO_C" >&6
15339 cat >conftest.$ac_ext <<_ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h. */
15345 #if defined CRAY && ! defined CRAY2
15352 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15353 $EGREP "webecray
" >/dev/null 2>&1; then
15361 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15362 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15363 if test $ac_cv_os_cray = yes; then
15364 for ac_func in _getb67 GETB67 getb67; do
15365 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15366 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15367 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15368 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15369 echo $ECHO_N "(cached
) $ECHO_C" >&6
15371 cat >conftest.$ac_ext <<_ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15379 #define $ac_func innocuous_$ac_func
15381 /* System header to define __stub macros and hopefully few prototypes,
15382 which can conflict with char $ac_func (); below.
15383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15384 <limits.h> exists even on freestanding compilers. */
15387 # include <limits.h>
15389 # include <assert.h>
15394 /* Override any GCC internal prototype to avoid an error.
15395 Use char because int might match the return type of a GCC
15396 builtin and then its argument prototype would still apply. */
15401 /* The GNU C library defines this for functions which it implements
15402 to always fail with ENOSYS. Some functions are actually named
15403 something starting with __ and the normal name is an alias. */
15404 #if defined __stub_$ac_func || defined __stub___$ac_func
15411 return $ac_func ();
15416 rm -f conftest.$ac_objext conftest$ac_exeext
15417 if { (ac_try="$ac_link"
15418 case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_link") 2>conftest.er1
15425 grep -v '^ *+' conftest.er1 >conftest.err
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15429 (exit $ac_status); } && {
15430 test -z "$ac_c_werror_flag" ||
15431 test ! -s conftest.err
15432 } && test -s conftest$ac_exeext &&
15433 $as_test_x conftest$ac_exeext; then
15434 eval "$as_ac_var=yes"
15436 echo "$as_me: failed program was
:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15439 eval "$as_ac_var=no
"
15442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15443 conftest$ac_exeext conftest.$ac_ext
15445 ac_res=`eval echo '${'$as_ac_var'}'`
15446 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15447 echo "${ECHO_T}$ac_res" >&6; }
15448 if test `eval echo '${'$as_ac_var'}'` = yes; then
15450 cat >>confdefs.h <<_ACEOF
15451 #define CRAY_STACKSEG_END $ac_func
15460 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15461 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15462 if test "${ac_cv_c_stack_direction+set}" = set; then
15463 echo $ECHO_N "(cached
) $ECHO_C" >&6
15465 if test "$cross_compiling" = yes; then
15466 ac_cv_c_stack_direction=0
15468 cat >conftest.$ac_ext <<_ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474 $ac_includes_default
15476 find_stack_direction ()
15478 static char *addr = 0;
15483 return find_stack_direction ();
15486 return (&dummy > addr) ? 1 : -1;
15492 return find_stack_direction () < 0;
15495 rm -f conftest$ac_exeext
15496 if { (ac_try="$ac_link"
15497 case "(($ac_try" in
15498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499 *) ac_try_echo=$ac_try;;
15501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15502 (eval "$ac_link") 2>&5
15504 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15506 { (case "(($ac_try" in
15507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15508 *) ac_try_echo=$ac_try;;
15510 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15511 (eval "$ac_try") 2>&5
15513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515 ac_cv_c_stack_direction=1
15517 echo "$as_me: program exited with status
$ac_status" >&5
15518 echo "$as_me: failed program was
:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15521 ( exit $ac_status )
15522 ac_cv_c_stack_direction=-1
15524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15529 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15530 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15532 cat >>confdefs.h <<_ACEOF
15533 #define STACK_DIRECTION $ac_cv_c_stack_direction
15540 if test x"$ac_cv_func_alloca_works" != xyes; then
15541 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15542 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15543 { (exit 1); exit 1; }; }
15546 # fmod, logb, and frexp are found in -lm on most systems.
15547 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15549 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15550 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15551 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15552 echo $ECHO_N "(cached
) $ECHO_C" >&6
15554 ac_check_lib_save_LIBS=$LIBS
15556 cat >conftest.$ac_ext <<_ACEOF
15559 cat confdefs.h >>conftest.$ac_ext
15560 cat >>conftest.$ac_ext <<_ACEOF
15561 /* end confdefs.h. */
15563 /* Override any GCC internal prototype to avoid an error.
15564 Use char because int might match the return type of a GCC
15565 builtin and then its argument prototype would still apply. */
15578 rm -f conftest.$ac_objext conftest$ac_exeext
15579 if { (ac_try="$ac_link"
15580 case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15584 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_link") 2>conftest.er1
15587 grep -v '^ *+' conftest.er1 >conftest.err
15589 cat conftest.err >&5
15590 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15591 (exit $ac_status); } && {
15592 test -z "$ac_c_werror_flag" ||
15593 test ! -s conftest.err
15594 } && test -s conftest$ac_exeext &&
15595 $as_test_x conftest$ac_exeext; then
15596 ac_cv_lib_m_sqrt=yes
15598 echo "$as_me: failed program was
:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15601 ac_cv_lib_m_sqrt=no
15604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15605 conftest$ac_exeext conftest.$ac_ext
15606 LIBS=$ac_check_lib_save_LIBS
15608 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15609 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15610 if test $ac_cv_lib_m_sqrt = yes; then
15611 cat >>confdefs.h <<_ACEOF
15612 #define HAVE_LIBM 1
15620 # Check for mail-locking functions in a "mail" library. Probably this should
15621 # have the same check as for liblockfile below.
15623 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15624 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15625 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15626 echo $ECHO_N "(cached
) $ECHO_C" >&6
15628 ac_check_lib_save_LIBS=$LIBS
15629 LIBS="-lmail $LIBS"
15630 cat >conftest.$ac_ext <<_ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15637 /* Override any GCC internal prototype to avoid an error.
15638 Use char because int might match the return type of a GCC
15639 builtin and then its argument prototype would still apply. */
15647 return maillock ();
15652 rm -f conftest.$ac_objext conftest$ac_exeext
15653 if { (ac_try="$ac_link"
15654 case "(($ac_try" in
15655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656 *) ac_try_echo=$ac_try;;
15658 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15659 (eval "$ac_link") 2>conftest.er1
15661 grep -v '^ *+' conftest.er1 >conftest.err
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15665 (exit $ac_status); } && {
15666 test -z "$ac_c_werror_flag" ||
15667 test ! -s conftest.err
15668 } && test -s conftest$ac_exeext &&
15669 $as_test_x conftest$ac_exeext; then
15670 ac_cv_lib_mail_maillock=yes
15672 echo "$as_me: failed program was
:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15675 ac_cv_lib_mail_maillock=no
15678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15679 conftest$ac_exeext conftest.$ac_ext
15680 LIBS=$ac_check_lib_save_LIBS
15682 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15683 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15684 if test $ac_cv_lib_mail_maillock = yes; then
15685 cat >>confdefs.h <<_ACEOF
15686 #define HAVE_LIBMAIL 1
15689 LIBS="-lmail $LIBS"
15694 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15695 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15696 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15697 echo $ECHO_N "(cached
) $ECHO_C" >&6
15699 ac_check_lib_save_LIBS=$LIBS
15700 LIBS="-llockfile $LIBS"
15701 cat >conftest.$ac_ext <<_ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15708 /* Override any GCC internal prototype to avoid an error.
15709 Use char because int might match the return type of a GCC
15710 builtin and then its argument prototype would still apply. */
15718 return maillock ();
15723 rm -f conftest.$ac_objext conftest$ac_exeext
15724 if { (ac_try="$ac_link"
15725 case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_link") 2>conftest.er1
15732 grep -v '^ *+' conftest.er1 >conftest.err
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15736 (exit $ac_status); } && {
15737 test -z "$ac_c_werror_flag" ||
15738 test ! -s conftest.err
15739 } && test -s conftest$ac_exeext &&
15740 $as_test_x conftest$ac_exeext; then
15741 ac_cv_lib_lockfile_maillock=yes
15743 echo "$as_me: failed program was
:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15746 ac_cv_lib_lockfile_maillock=no
15749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15750 conftest$ac_exeext conftest.$ac_ext
15751 LIBS=$ac_check_lib_save_LIBS
15753 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15754 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15755 if test $ac_cv_lib_lockfile_maillock = yes; then
15756 cat >>confdefs.h <<_ACEOF
15757 #define HAVE_LIBLOCKFILE 1
15760 LIBS="-llockfile $LIBS"
15764 # If we have the shared liblockfile, assume we must use it for mail
15765 # locking (e.g. Debian). If we couldn't link against liblockfile
15766 # (no liblockfile.a installed), ensure that we don't need to.
15767 if test "$ac_cv_lib_lockfile_maillock" = no; then
15768 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15769 set dummy liblockfile.so; ac_word=$2
15770 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15771 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15772 if test "${ac_cv_prog_liblockfile+set}" = set; then
15773 echo $ECHO_N "(cached
) $ECHO_C" >&6
15775 if test -n "$liblockfile"; then
15776 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15779 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15780 for as_dir in $as_dummy
15783 test -z "$as_dir" && as_dir=.
15784 for ac_exec_ext in '' $ac_executable_extensions; do
15785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15786 ac_cv_prog_liblockfile="yes"
15787 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15794 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15797 liblockfile=$ac_cv_prog_liblockfile
15798 if test -n "$liblockfile"; then
15799 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15800 echo "${ECHO_T}$liblockfile" >&6; }
15802 { echo "$as_me:$LINENO: result
: no
" >&5
15803 echo "${ECHO_T}no
" >&6; }
15807 if test $ac_cv_prog_liblockfile = yes; then
15808 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15809 This probably means that movemail could lose mail.
15810 There may be a \`development' package to
install containing liblockfile.
" >&5
15811 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15812 This probably means that movemail could lose mail.
15813 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15814 { (exit 1); exit 1; }; }
15819 for ac_func in touchlock
15821 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15822 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15823 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15824 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15825 echo $ECHO_N "(cached
) $ECHO_C" >&6
15827 cat >conftest.$ac_ext <<_ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15835 #define $ac_func innocuous_$ac_func
15837 /* System header to define __stub macros and hopefully few prototypes,
15838 which can conflict with char $ac_func (); below.
15839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15840 <limits.h> exists even on freestanding compilers. */
15843 # include <limits.h>
15845 # include <assert.h>
15850 /* Override any GCC internal prototype to avoid an error.
15851 Use char because int might match the return type of a GCC
15852 builtin and then its argument prototype would still apply. */
15857 /* The GNU C library defines this for functions which it implements
15858 to always fail with ENOSYS. Some functions are actually named
15859 something starting with __ and the normal name is an alias. */
15860 #if defined __stub_$ac_func || defined __stub___$ac_func
15867 return $ac_func ();
15872 rm -f conftest.$ac_objext conftest$ac_exeext
15873 if { (ac_try="$ac_link"
15874 case "(($ac_try" in
15875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15876 *) ac_try_echo=$ac_try;;
15878 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15879 (eval "$ac_link") 2>conftest.er1
15881 grep -v '^ *+' conftest.er1 >conftest.err
15883 cat conftest.err >&5
15884 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15885 (exit $ac_status); } && {
15886 test -z "$ac_c_werror_flag" ||
15887 test ! -s conftest.err
15888 } && test -s conftest$ac_exeext &&
15889 $as_test_x conftest$ac_exeext; then
15890 eval "$as_ac_var=yes"
15892 echo "$as_me: failed program was
:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15895 eval "$as_ac_var=no
"
15898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15899 conftest$ac_exeext conftest.$ac_ext
15901 ac_res=`eval echo '${'$as_ac_var'}'`
15902 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15903 echo "${ECHO_T}$ac_res" >&6; }
15904 if test `eval echo '${'$as_ac_var'}'` = yes; then
15905 cat >>confdefs.h <<_ACEOF
15906 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15913 for ac_header in maillock.h
15915 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15916 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15917 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15918 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15919 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15920 echo $ECHO_N "(cached
) $ECHO_C" >&6
15922 ac_res=`eval echo '${'$as_ac_Header'}'`
15923 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15924 echo "${ECHO_T}$ac_res" >&6; }
15926 # Is the header compilable?
15927 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15928 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15929 cat >conftest.$ac_ext <<_ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h. */
15935 $ac_includes_default
15936 #include <$ac_header>
15938 rm -f conftest.$ac_objext
15939 if { (ac_try="$ac_compile"
15940 case "(($ac_try" in
15941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942 *) ac_try_echo=$ac_try;;
15944 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15945 (eval "$ac_compile") 2>conftest.er1
15947 grep -v '^ *+' conftest.er1 >conftest.err
15949 cat conftest.err >&5
15950 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15951 (exit $ac_status); } && {
15952 test -z "$ac_c_werror_flag" ||
15953 test ! -s conftest.err
15954 } && test -s conftest.$ac_objext; then
15955 ac_header_compiler=yes
15957 echo "$as_me: failed program was
:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15960 ac_header_compiler=no
15963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15964 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15965 echo "${ECHO_T}$ac_header_compiler" >&6; }
15967 # Is the header present?
15968 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15969 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15970 cat >conftest.$ac_ext <<_ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 #include <$ac_header>
15978 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15979 case "(($ac_try" in
15980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15984 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15986 grep -v '^ *+' conftest.er1 >conftest.err
15988 cat conftest.err >&5
15989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15990 (exit $ac_status); } >/dev/null && {
15991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15992 test ! -s conftest.err
15994 ac_header_preproc=yes
15996 echo "$as_me: failed program was
:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15999 ac_header_preproc=no
16002 rm -f conftest.err conftest.$ac_ext
16003 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16004 echo "${ECHO_T}$ac_header_preproc" >&6; }
16006 # So? What about this header?
16007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16009 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16010 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16011 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16013 ac_header_preproc=yes
16016 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16017 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16018 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16019 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16020 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16021 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16022 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16023 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16024 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16026 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16027 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16031 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16032 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16033 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16034 echo $ECHO_N "(cached
) $ECHO_C" >&6
16036 eval "$as_ac_Header=\
$ac_header_preproc"
16038 ac_res=`eval echo '${'$as_ac_Header'}'`
16039 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16040 echo "${ECHO_T}$ac_res" >&6; }
16043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16044 cat >>confdefs.h <<_ACEOF
16045 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16124 for ac_func in gethostname getdomainname dup2 \
16125 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16126 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16127 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16128 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16129 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16130 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16131 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16132 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16133 cfmakeraw cfsetspeed
16135 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16136 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16137 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16138 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16139 echo $ECHO_N "(cached
) $ECHO_C" >&6
16141 cat >conftest.$ac_ext <<_ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16149 #define $ac_func innocuous_$ac_func
16151 /* System header to define __stub macros and hopefully few prototypes,
16152 which can conflict with char $ac_func (); below.
16153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16154 <limits.h> exists even on freestanding compilers. */
16157 # include <limits.h>
16159 # include <assert.h>
16164 /* Override any GCC internal prototype to avoid an error.
16165 Use char because int might match the return type of a GCC
16166 builtin and then its argument prototype would still apply. */
16171 /* The GNU C library defines this for functions which it implements
16172 to always fail with ENOSYS. Some functions are actually named
16173 something starting with __ and the normal name is an alias. */
16174 #if defined __stub_$ac_func || defined __stub___$ac_func
16181 return $ac_func ();
16186 rm -f conftest.$ac_objext conftest$ac_exeext
16187 if { (ac_try="$ac_link"
16188 case "(($ac_try" in
16189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190 *) ac_try_echo=$ac_try;;
16192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16193 (eval "$ac_link") 2>conftest.er1
16195 grep -v '^ *+' conftest.er1 >conftest.err
16197 cat conftest.err >&5
16198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16199 (exit $ac_status); } && {
16200 test -z "$ac_c_werror_flag" ||
16201 test ! -s conftest.err
16202 } && test -s conftest$ac_exeext &&
16203 $as_test_x conftest$ac_exeext; then
16204 eval "$as_ac_var=yes"
16206 echo "$as_me: failed program was
:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16209 eval "$as_ac_var=no
"
16212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16213 conftest$ac_exeext conftest.$ac_ext
16215 ac_res=`eval echo '${'$as_ac_var'}'`
16216 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16217 echo "${ECHO_T}$ac_res" >&6; }
16218 if test `eval echo '${'$as_ac_var'}'` = yes; then
16219 cat >>confdefs.h <<_ACEOF
16220 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16228 for ac_header in sys/un.h
16230 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16231 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16232 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16233 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16234 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16235 echo $ECHO_N "(cached
) $ECHO_C" >&6
16237 ac_res=`eval echo '${'$as_ac_Header'}'`
16238 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16239 echo "${ECHO_T}$ac_res" >&6; }
16241 # Is the header compilable?
16242 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16243 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16244 cat >conftest.$ac_ext <<_ACEOF
16247 cat confdefs.h >>conftest.$ac_ext
16248 cat >>conftest.$ac_ext <<_ACEOF
16249 /* end confdefs.h. */
16250 $ac_includes_default
16251 #include <$ac_header>
16253 rm -f conftest.$ac_objext
16254 if { (ac_try="$ac_compile"
16255 case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16259 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_compile") 2>conftest.er1
16262 grep -v '^ *+' conftest.er1 >conftest.err
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16266 (exit $ac_status); } && {
16267 test -z "$ac_c_werror_flag" ||
16268 test ! -s conftest.err
16269 } && test -s conftest.$ac_objext; then
16270 ac_header_compiler=yes
16272 echo "$as_me: failed program was
:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16275 ac_header_compiler=no
16278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16279 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16280 echo "${ECHO_T}$ac_header_compiler" >&6; }
16282 # Is the header present?
16283 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16284 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16285 cat >conftest.$ac_ext <<_ACEOF
16288 cat confdefs.h >>conftest.$ac_ext
16289 cat >>conftest.$ac_ext <<_ACEOF
16290 /* end confdefs.h. */
16291 #include <$ac_header>
16293 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16294 case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16298 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16301 grep -v '^ *+' conftest.er1 >conftest.err
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16305 (exit $ac_status); } >/dev/null && {
16306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16307 test ! -s conftest.err
16309 ac_header_preproc=yes
16311 echo "$as_me: failed program was
:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16314 ac_header_preproc=no
16317 rm -f conftest.err conftest.$ac_ext
16318 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16319 echo "${ECHO_T}$ac_header_preproc" >&6; }
16321 # So? What about this header?
16322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16324 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16325 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16326 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16328 ac_header_preproc=yes
16331 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16332 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16333 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16334 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16335 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16336 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16337 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16338 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16339 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16341 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16342 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16346 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16347 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16348 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16349 echo $ECHO_N "(cached
) $ECHO_C" >&6
16351 eval "$as_ac_Header=\
$ac_header_preproc"
16353 ac_res=`eval echo '${'$as_ac_Header'}'`
16354 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16355 echo "${ECHO_T}$ac_res" >&6; }
16358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16359 cat >>confdefs.h <<_ACEOF
16360 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16372 for ac_header in $ac_header_list
16374 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16375 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16376 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16377 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16378 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16379 echo $ECHO_N "(cached
) $ECHO_C" >&6
16381 ac_res=`eval echo '${'$as_ac_Header'}'`
16382 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16383 echo "${ECHO_T}$ac_res" >&6; }
16385 # Is the header compilable?
16386 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16387 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16388 cat >conftest.$ac_ext <<_ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16394 $ac_includes_default
16395 #include <$ac_header>
16397 rm -f conftest.$ac_objext
16398 if { (ac_try="$ac_compile"
16399 case "(($ac_try" in
16400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401 *) ac_try_echo=$ac_try;;
16403 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16404 (eval "$ac_compile") 2>conftest.er1
16406 grep -v '^ *+' conftest.er1 >conftest.err
16408 cat conftest.err >&5
16409 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16410 (exit $ac_status); } && {
16411 test -z "$ac_c_werror_flag" ||
16412 test ! -s conftest.err
16413 } && test -s conftest.$ac_objext; then
16414 ac_header_compiler=yes
16416 echo "$as_me: failed program was
:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16419 ac_header_compiler=no
16422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16423 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16424 echo "${ECHO_T}$ac_header_compiler" >&6; }
16426 # Is the header present?
16427 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16428 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16429 cat >conftest.$ac_ext <<_ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h. */
16435 #include <$ac_header>
16437 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16438 case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16442 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16445 grep -v '^ *+' conftest.er1 >conftest.err
16447 cat conftest.err >&5
16448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16449 (exit $ac_status); } >/dev/null && {
16450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16451 test ! -s conftest.err
16453 ac_header_preproc=yes
16455 echo "$as_me: failed program was
:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16458 ac_header_preproc=no
16461 rm -f conftest.err conftest.$ac_ext
16462 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16463 echo "${ECHO_T}$ac_header_preproc" >&6; }
16465 # So? What about this header?
16466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16468 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16469 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16470 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16472 ac_header_preproc=yes
16475 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16476 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16477 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16478 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16479 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16480 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16481 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16482 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16483 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16485 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16486 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16490 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16491 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16492 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16493 echo $ECHO_N "(cached
) $ECHO_C" >&6
16495 eval "$as_ac_Header=\
$ac_header_preproc"
16497 ac_res=`eval echo '${'$as_ac_Header'}'`
16498 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16499 echo "${ECHO_T}$ac_res" >&6; }
16502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16503 cat >>confdefs.h <<_ACEOF
16504 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16519 for ac_func in $ac_func_list
16521 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16522 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16523 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16524 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16525 echo $ECHO_N "(cached
) $ECHO_C" >&6
16527 cat >conftest.$ac_ext <<_ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h. */
16533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16535 #define $ac_func innocuous_$ac_func
16537 /* System header to define __stub macros and hopefully few prototypes,
16538 which can conflict with char $ac_func (); below.
16539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16540 <limits.h> exists even on freestanding compilers. */
16543 # include <limits.h>
16545 # include <assert.h>
16550 /* Override any GCC internal prototype to avoid an error.
16551 Use char because int might match the return type of a GCC
16552 builtin and then its argument prototype would still apply. */
16557 /* The GNU C library defines this for functions which it implements
16558 to always fail with ENOSYS. Some functions are actually named
16559 something starting with __ and the normal name is an alias. */
16560 #if defined __stub_$ac_func || defined __stub___$ac_func
16567 return $ac_func ();
16572 rm -f conftest.$ac_objext conftest$ac_exeext
16573 if { (ac_try="$ac_link"
16574 case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_link") 2>conftest.er1
16581 grep -v '^ *+' conftest.er1 >conftest.err
16583 cat conftest.err >&5
16584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16585 (exit $ac_status); } && {
16586 test -z "$ac_c_werror_flag" ||
16587 test ! -s conftest.err
16588 } && test -s conftest$ac_exeext &&
16589 $as_test_x conftest$ac_exeext; then
16590 eval "$as_ac_var=yes"
16592 echo "$as_me: failed program was
:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16595 eval "$as_ac_var=no
"
16598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16599 conftest$ac_exeext conftest.$ac_ext
16601 ac_res=`eval echo '${'$as_ac_var'}'`
16602 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16603 echo "${ECHO_T}$ac_res" >&6; }
16604 if test `eval echo '${'$as_ac_var'}'` = yes; then
16605 cat >>confdefs.h <<_ACEOF
16606 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16628 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16629 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16630 if test "${ac_cv_func_working_mktime+set}" = set; then
16631 echo $ECHO_N "(cached
) $ECHO_C" >&6
16633 if test "$cross_compiling" = yes; then
16634 ac_cv_func_working_mktime=no
16636 cat >conftest.$ac_ext <<_ACEOF
16639 cat confdefs.h >>conftest.$ac_ext
16640 cat >>conftest.$ac_ext <<_ACEOF
16641 /* end confdefs.h. */
16642 /* Test program from Paul Eggert and Tony Leneis. */
16643 #ifdef TIME_WITH_SYS_TIME
16644 # include <sys/time.h>
16647 # ifdef HAVE_SYS_TIME_H
16648 # include <sys/time.h>
16654 #include <stdlib.h>
16656 #ifdef HAVE_UNISTD_H
16657 # include <unistd.h>
16661 # define alarm(X) /* empty */
16664 /* Work around redefinition to rpl_putenv by other config tests. */
16667 static time_t time_t_max;
16668 static time_t time_t_min;
16670 /* Values we'll use to set the TZ environment variable. */
16671 static char *tz_strings[] = {
16672 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16673 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16675 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16677 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16678 Based on a problem report from Andreas Jaeger. */
16680 spring_forward_gap ()
16682 /* glibc (up to about 1998-10-07) failed this test. */
16685 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16686 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16687 on systems that don't support the Olson extension, or don't have the
16688 full zoneinfo tables installed. */
16689 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16698 return mktime (&tm) != (time_t) -1;
16706 return ! (lt = localtime (&now)) || mktime (lt) == now;
16713 return (mktime_test1 (now)
16714 && mktime_test1 ((time_t) (time_t_max - now))
16715 && mktime_test1 ((time_t) (time_t_min + now)));
16721 /* Based on code from Ariel Faigon. */
16731 return tm.tm_mon == 2 && tm.tm_mday == 31;
16740 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16741 now = mktime (&tm);
16742 if (now != (time_t) -1)
16744 struct tm *lt = localtime (&now);
16746 && lt->tm_year == tm.tm_year
16747 && lt->tm_mon == tm.tm_mon
16748 && lt->tm_mday == tm.tm_mday
16749 && lt->tm_hour == tm.tm_hour
16750 && lt->tm_min == tm.tm_min
16751 && lt->tm_sec == tm.tm_sec
16752 && lt->tm_yday == tm.tm_yday
16753 && lt->tm_wday == tm.tm_wday
16754 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16755 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16764 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16765 ignoring leap seconds. */
16766 unsigned long int answer = 2527315200UL;
16770 tm.tm_year = 2050 - 1900;
16773 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16776 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16777 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16778 on systems that don't support the Olson extension, or don't have the
16779 full zoneinfo tables installed. */
16780 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16784 /* Check that the result is either a failure, or close enough
16785 to the correct answer that we can assume the discrepancy is
16786 due to leap seconds. */
16787 return (t == (time_t) -1
16788 || (0 < t && answer - 120 <= t && t <= answer + 120));
16797 /* This test makes some buggy mktime implementations loop.
16798 Give up after 60 seconds; a mktime slower than that
16799 isn't worth using anyway. */
16802 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16805 if ((time_t) -1 < 0)
16806 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16808 delta = time_t_max / 997; /* a suitable prime number */
16809 for (i = 0; i < N_STRINGS; i++)
16812 putenv (tz_strings[i]);
16814 for (t = 0; t <= time_t_max - delta; t += delta)
16815 if (! mktime_test (t))
16817 if (! (mktime_test ((time_t) 1)
16818 && mktime_test ((time_t) (60 * 60))
16819 && mktime_test ((time_t) (60 * 60 * 24))))
16822 for (j = 1; 0 < j; j *= 2)
16823 if (! bigtime_test (j))
16825 if (! bigtime_test (j - 1))
16828 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16831 rm -f conftest$ac_exeext
16832 if { (ac_try="$ac_link"
16833 case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_link") 2>&5
16840 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16842 { (case "(($ac_try" in
16843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16844 *) ac_try_echo=$ac_try;;
16846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16847 (eval "$ac_try") 2>&5
16849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16850 (exit $ac_status); }; }; then
16851 ac_cv_func_working_mktime=yes
16853 echo "$as_me: program exited with status
$ac_status" >&5
16854 echo "$as_me: failed program was
:" >&5
16855 sed 's/^/| /' conftest.$ac_ext >&5
16857 ( exit $ac_status )
16858 ac_cv_func_working_mktime=no
16860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16865 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16866 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16867 if test $ac_cv_func_working_mktime = no; then
16868 case " $LIBOBJS " in
16869 *" mktime.
$ac_objext "* ) ;;
16870 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16876 if test "$ac_cv_func_working_mktime" = no; then
16878 cat >>confdefs.h <<\_ACEOF
16879 #define BROKEN_MKTIME 1
16884 ac_have_func=no # yes means we've found a way to get the load average.
16886 # Make sure getloadavg.c is where it belongs, at configure-time.
16887 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16888 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16889 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16890 { (exit 1); exit 1; }; }
16894 # Check for getloadavg, but be sure not to touch the cache variable.
16895 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16896 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16897 if test "${ac_cv_func_getloadavg+set}" = set; then
16898 echo $ECHO_N "(cached
) $ECHO_C" >&6
16900 cat >conftest.$ac_ext <<_ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16908 #define getloadavg innocuous_getloadavg
16910 /* System header to define __stub macros and hopefully few prototypes,
16911 which can conflict with char getloadavg (); below.
16912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16913 <limits.h> exists even on freestanding compilers. */
16916 # include <limits.h>
16918 # include <assert.h>
16923 /* Override any GCC internal prototype to avoid an error.
16924 Use char because int might match the return type of a GCC
16925 builtin and then its argument prototype would still apply. */
16929 char getloadavg ();
16930 /* The GNU C library defines this for functions which it implements
16931 to always fail with ENOSYS. Some functions are actually named
16932 something starting with __ and the normal name is an alias. */
16933 #if defined __stub_getloadavg || defined __stub___getloadavg
16940 return getloadavg ();
16945 rm -f conftest.$ac_objext conftest$ac_exeext
16946 if { (ac_try="$ac_link"
16947 case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_link") 2>conftest.er1
16954 grep -v '^ *+' conftest.er1 >conftest.err
16956 cat conftest.err >&5
16957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16958 (exit $ac_status); } && {
16959 test -z "$ac_c_werror_flag" ||
16960 test ! -s conftest.err
16961 } && test -s conftest$ac_exeext &&
16962 $as_test_x conftest$ac_exeext; then
16963 ac_cv_func_getloadavg=yes
16965 echo "$as_me: failed program was
:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16968 ac_cv_func_getloadavg=no
16971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16972 conftest$ac_exeext conftest.$ac_ext
16974 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16975 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16976 if test $ac_cv_func_getloadavg = yes; then
16981 ) && ac_have_func=yes
16983 # On HPUX9, an unprivileged user can get load averages through this function.
16985 for ac_func in pstat_getdynamic
16987 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16988 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16989 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16990 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16991 echo $ECHO_N "(cached
) $ECHO_C" >&6
16993 cat >conftest.$ac_ext <<_ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17001 #define $ac_func innocuous_$ac_func
17003 /* System header to define __stub macros and hopefully few prototypes,
17004 which can conflict with char $ac_func (); below.
17005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17006 <limits.h> exists even on freestanding compilers. */
17009 # include <limits.h>
17011 # include <assert.h>
17016 /* Override any GCC internal prototype to avoid an error.
17017 Use char because int might match the return type of a GCC
17018 builtin and then its argument prototype would still apply. */
17023 /* The GNU C library defines this for functions which it implements
17024 to always fail with ENOSYS. Some functions are actually named
17025 something starting with __ and the normal name is an alias. */
17026 #if defined __stub_$ac_func || defined __stub___$ac_func
17033 return $ac_func ();
17038 rm -f conftest.$ac_objext conftest$ac_exeext
17039 if { (ac_try="$ac_link"
17040 case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_link") 2>conftest.er1
17047 grep -v '^ *+' conftest.er1 >conftest.err
17049 cat conftest.err >&5
17050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17051 (exit $ac_status); } && {
17052 test -z "$ac_c_werror_flag" ||
17053 test ! -s conftest.err
17054 } && test -s conftest$ac_exeext &&
17055 $as_test_x conftest$ac_exeext; then
17056 eval "$as_ac_var=yes"
17058 echo "$as_me: failed program was
:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17061 eval "$as_ac_var=no
"
17064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17065 conftest$ac_exeext conftest.$ac_ext
17067 ac_res=`eval echo '${'$as_ac_var'}'`
17068 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17069 echo "${ECHO_T}$ac_res" >&6; }
17070 if test `eval echo '${'$as_ac_var'}'` = yes; then
17071 cat >>confdefs.h <<_ACEOF
17072 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17079 # Solaris has libkstat which does not require root.
17081 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17082 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17083 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17084 echo $ECHO_N "(cached
) $ECHO_C" >&6
17086 ac_check_lib_save_LIBS=$LIBS
17087 LIBS="-lkstat $LIBS"
17088 cat >conftest.$ac_ext <<_ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17095 /* Override any GCC internal prototype to avoid an error.
17096 Use char because int might match the return type of a GCC
17097 builtin and then its argument prototype would still apply. */
17101 char kstat_open ();
17105 return kstat_open ();
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (ac_try="$ac_link"
17112 case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17116 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_link") 2>conftest.er1
17119 grep -v '^ *+' conftest.er1 >conftest.err
17121 cat conftest.err >&5
17122 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17123 (exit $ac_status); } && {
17124 test -z "$ac_c_werror_flag" ||
17125 test ! -s conftest.err
17126 } && test -s conftest$ac_exeext &&
17127 $as_test_x conftest$ac_exeext; then
17128 ac_cv_lib_kstat_kstat_open=yes
17130 echo "$as_me: failed program was
:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17133 ac_cv_lib_kstat_kstat_open=no
17136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17137 conftest$ac_exeext conftest.$ac_ext
17138 LIBS=$ac_check_lib_save_LIBS
17140 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17141 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17142 if test $ac_cv_lib_kstat_kstat_open = yes; then
17143 cat >>confdefs.h <<_ACEOF
17144 #define HAVE_LIBKSTAT 1
17147 LIBS="-lkstat $LIBS"
17151 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17153 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17154 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17155 # to get the right answer into the cache.
17156 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17157 if test $ac_have_func = no; then
17158 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17159 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17160 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17161 echo $ECHO_N "(cached
) $ECHO_C" >&6
17163 ac_check_lib_save_LIBS=$LIBS
17165 cat >conftest.$ac_ext <<_ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17172 /* Override any GCC internal prototype to avoid an error.
17173 Use char because int might match the return type of a GCC
17174 builtin and then its argument prototype would still apply. */
17182 return elf_begin ();
17187 rm -f conftest.$ac_objext conftest$ac_exeext
17188 if { (ac_try="$ac_link"
17189 case "(($ac_try" in
17190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191 *) ac_try_echo=$ac_try;;
17193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17194 (eval "$ac_link") 2>conftest.er1
17196 grep -v '^ *+' conftest.er1 >conftest.err
17198 cat conftest.err >&5
17199 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17200 (exit $ac_status); } && {
17201 test -z "$ac_c_werror_flag" ||
17202 test ! -s conftest.err
17203 } && test -s conftest$ac_exeext &&
17204 $as_test_x conftest$ac_exeext; then
17205 ac_cv_lib_elf_elf_begin=yes
17207 echo "$as_me: failed program was
:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17210 ac_cv_lib_elf_elf_begin=no
17213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17214 conftest$ac_exeext conftest.$ac_ext
17215 LIBS=$ac_check_lib_save_LIBS
17217 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17218 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17219 if test $ac_cv_lib_elf_elf_begin = yes; then
17224 if test $ac_have_func = no; then
17225 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17226 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17227 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17228 echo $ECHO_N "(cached
) $ECHO_C" >&6
17230 ac_check_lib_save_LIBS=$LIBS
17232 cat >conftest.$ac_ext <<_ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h. */
17239 /* Override any GCC internal prototype to avoid an error.
17240 Use char because int might match the return type of a GCC
17241 builtin and then its argument prototype would still apply. */
17249 return kvm_open ();
17254 rm -f conftest.$ac_objext conftest$ac_exeext
17255 if { (ac_try="$ac_link"
17256 case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17260 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_link") 2>conftest.er1
17263 grep -v '^ *+' conftest.er1 >conftest.err
17265 cat conftest.err >&5
17266 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17267 (exit $ac_status); } && {
17268 test -z "$ac_c_werror_flag" ||
17269 test ! -s conftest.err
17270 } && test -s conftest$ac_exeext &&
17271 $as_test_x conftest$ac_exeext; then
17272 ac_cv_lib_kvm_kvm_open=yes
17274 echo "$as_me: failed program was
:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17277 ac_cv_lib_kvm_kvm_open=no
17280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17281 conftest$ac_exeext conftest.$ac_ext
17282 LIBS=$ac_check_lib_save_LIBS
17284 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17285 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17286 if test $ac_cv_lib_kvm_kvm_open = yes; then
17290 # Check for the 4.4BSD definition of getloadavg.
17291 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17292 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17293 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17294 echo $ECHO_N "(cached
) $ECHO_C" >&6
17296 ac_check_lib_save_LIBS=$LIBS
17297 LIBS="-lutil $LIBS"
17298 cat >conftest.$ac_ext <<_ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17305 /* Override any GCC internal prototype to avoid an error.
17306 Use char because int might match the return type of a GCC
17307 builtin and then its argument prototype would still apply. */
17311 char getloadavg ();
17315 return getloadavg ();
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (ac_try="$ac_link"
17322 case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17326 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_link") 2>conftest.er1
17329 grep -v '^ *+' conftest.er1 >conftest.err
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17333 (exit $ac_status); } && {
17334 test -z "$ac_c_werror_flag" ||
17335 test ! -s conftest.err
17336 } && test -s conftest$ac_exeext &&
17337 $as_test_x conftest$ac_exeext; then
17338 ac_cv_lib_util_getloadavg=yes
17340 echo "$as_me: failed program was
:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17343 ac_cv_lib_util_getloadavg=no
17346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17347 conftest$ac_exeext conftest.$ac_ext
17348 LIBS=$ac_check_lib_save_LIBS
17350 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17351 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17352 if test $ac_cv_lib_util_getloadavg = yes; then
17353 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17358 if test $ac_have_func = no; then
17359 # There is a commonly available library for RS/6000 AIX.
17360 # Since it is not a standard part of AIX, it might be installed locally.
17361 ac_getloadavg_LIBS=$LIBS
17362 LIBS="-L/usr
/local
/lib
$LIBS"
17363 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17364 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17365 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17366 echo $ECHO_N "(cached
) $ECHO_C" >&6
17368 ac_check_lib_save_LIBS=$LIBS
17369 LIBS="-lgetloadavg $LIBS"
17370 cat >conftest.$ac_ext <<_ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17377 /* Override any GCC internal prototype to avoid an error.
17378 Use char because int might match the return type of a GCC
17379 builtin and then its argument prototype would still apply. */
17383 char getloadavg ();
17387 return getloadavg ();
17392 rm -f conftest.$ac_objext conftest$ac_exeext
17393 if { (ac_try="$ac_link"
17394 case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_link") 2>conftest.er1
17401 grep -v '^ *+' conftest.er1 >conftest.err
17403 cat conftest.err >&5
17404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17405 (exit $ac_status); } && {
17406 test -z "$ac_c_werror_flag" ||
17407 test ! -s conftest.err
17408 } && test -s conftest$ac_exeext &&
17409 $as_test_x conftest$ac_exeext; then
17410 ac_cv_lib_getloadavg_getloadavg=yes
17412 echo "$as_me: failed program was
:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17415 ac_cv_lib_getloadavg_getloadavg=no
17418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17419 conftest$ac_exeext conftest.$ac_ext
17420 LIBS=$ac_check_lib_save_LIBS
17422 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17423 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17424 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17425 LIBS="-lgetloadavg $LIBS"
17427 LIBS=$ac_getloadavg_LIBS
17432 # Make sure it is really in the library, if we think we found it,
17433 # otherwise set up the replacement function.
17435 for ac_func in getloadavg
17437 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17438 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17439 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17440 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17441 echo $ECHO_N "(cached
) $ECHO_C" >&6
17443 cat >conftest.$ac_ext <<_ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h. */
17449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17451 #define $ac_func innocuous_$ac_func
17453 /* System header to define __stub macros and hopefully few prototypes,
17454 which can conflict with char $ac_func (); below.
17455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17456 <limits.h> exists even on freestanding compilers. */
17459 # include <limits.h>
17461 # include <assert.h>
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17473 /* The GNU C library defines this for functions which it implements
17474 to always fail with ENOSYS. Some functions are actually named
17475 something starting with __ and the normal name is an alias. */
17476 #if defined __stub_$ac_func || defined __stub___$ac_func
17483 return $ac_func ();
17488 rm -f conftest.$ac_objext conftest$ac_exeext
17489 if { (ac_try="$ac_link"
17490 case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_link") 2>conftest.er1
17497 grep -v '^ *+' conftest.er1 >conftest.err
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17501 (exit $ac_status); } && {
17502 test -z "$ac_c_werror_flag" ||
17503 test ! -s conftest.err
17504 } && test -s conftest$ac_exeext &&
17505 $as_test_x conftest$ac_exeext; then
17506 eval "$as_ac_var=yes"
17508 echo "$as_me: failed program was
:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17511 eval "$as_ac_var=no
"
17514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17515 conftest$ac_exeext conftest.$ac_ext
17517 ac_res=`eval echo '${'$as_ac_var'}'`
17518 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17519 echo "${ECHO_T}$ac_res" >&6; }
17520 if test `eval echo '${'$as_ac_var'}'` = yes; then
17521 cat >>confdefs.h <<_ACEOF
17522 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17526 case " $LIBOBJS " in
17527 *" getloadavg.
$ac_objext "* ) ;;
17528 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17533 cat >>confdefs.h <<\_ACEOF
17534 #define C_GETLOADAVG 1
17537 # Figure out what our getloadavg.c needs.
17539 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17540 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17541 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17542 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17543 echo $ECHO_N "(cached
) $ECHO_C" >&6
17545 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17546 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17548 # Is the header compilable?
17549 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17550 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17551 cat >conftest.$ac_ext <<_ACEOF
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h. */
17557 $ac_includes_default
17558 #include <sys/dg_sys_info.h>
17560 rm -f conftest.$ac_objext
17561 if { (ac_try="$ac_compile"
17562 case "(($ac_try" in
17563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564 *) ac_try_echo=$ac_try;;
17566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17567 (eval "$ac_compile") 2>conftest.er1
17569 grep -v '^ *+' conftest.er1 >conftest.err
17571 cat conftest.err >&5
17572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17573 (exit $ac_status); } && {
17574 test -z "$ac_c_werror_flag" ||
17575 test ! -s conftest.err
17576 } && test -s conftest.$ac_objext; then
17577 ac_header_compiler=yes
17579 echo "$as_me: failed program was
:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17582 ac_header_compiler=no
17585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17586 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17587 echo "${ECHO_T}$ac_header_compiler" >&6; }
17589 # Is the header present?
17590 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17591 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17592 cat >conftest.$ac_ext <<_ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 #include <sys/dg_sys_info.h>
17600 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17601 case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17608 grep -v '^ *+' conftest.er1 >conftest.err
17610 cat conftest.err >&5
17611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17612 (exit $ac_status); } >/dev/null && {
17613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17614 test ! -s conftest.err
17616 ac_header_preproc=yes
17618 echo "$as_me: failed program was
:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17621 ac_header_preproc=no
17624 rm -f conftest.err conftest.$ac_ext
17625 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17626 echo "${ECHO_T}$ac_header_preproc" >&6; }
17628 # So? What about this header?
17629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17631 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17632 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17633 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17634 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17635 ac_header_preproc=yes
17638 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17639 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17640 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17641 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17642 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17643 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17644 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17645 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17646 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17647 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17648 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17649 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17653 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17654 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17655 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17656 echo $ECHO_N "(cached
) $ECHO_C" >&6
17658 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17660 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17661 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17664 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17667 cat >>confdefs.h <<\_ACEOF
17672 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17673 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17674 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17675 echo $ECHO_N "(cached
) $ECHO_C" >&6
17677 ac_check_lib_save_LIBS=$LIBS
17679 cat >conftest.$ac_ext <<_ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17686 /* Override any GCC internal prototype to avoid an error.
17687 Use char because int might match the return type of a GCC
17688 builtin and then its argument prototype would still apply. */
17692 char dg_sys_info ();
17696 return dg_sys_info ();
17701 rm -f conftest.$ac_objext conftest$ac_exeext
17702 if { (ac_try="$ac_link"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_link") 2>conftest.er1
17710 grep -v '^ *+' conftest.er1 >conftest.err
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17714 (exit $ac_status); } && {
17715 test -z "$ac_c_werror_flag" ||
17716 test ! -s conftest.err
17717 } && test -s conftest$ac_exeext &&
17718 $as_test_x conftest$ac_exeext; then
17719 ac_cv_lib_dgc_dg_sys_info=yes
17721 echo "$as_me: failed program was
:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17724 ac_cv_lib_dgc_dg_sys_info=no
17727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17728 conftest$ac_exeext conftest.$ac_ext
17729 LIBS=$ac_check_lib_save_LIBS
17731 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17732 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17733 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17734 cat >>confdefs.h <<_ACEOF
17735 #define HAVE_LIBDGC 1
17746 if test "${ac_cv_header_locale_h+set}" = set; then
17747 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17748 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17749 if test "${ac_cv_header_locale_h+set}" = set; then
17750 echo $ECHO_N "(cached
) $ECHO_C" >&6
17752 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17753 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17755 # Is the header compilable?
17756 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17757 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17758 cat >conftest.$ac_ext <<_ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h. */
17764 $ac_includes_default
17765 #include <locale.h>
17767 rm -f conftest.$ac_objext
17768 if { (ac_try="$ac_compile"
17769 case "(($ac_try" in
17770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771 *) ac_try_echo=$ac_try;;
17773 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17774 (eval "$ac_compile") 2>conftest.er1
17776 grep -v '^ *+' conftest.er1 >conftest.err
17778 cat conftest.err >&5
17779 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17780 (exit $ac_status); } && {
17781 test -z "$ac_c_werror_flag" ||
17782 test ! -s conftest.err
17783 } && test -s conftest.$ac_objext; then
17784 ac_header_compiler=yes
17786 echo "$as_me: failed program was
:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17789 ac_header_compiler=no
17792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17794 echo "${ECHO_T}$ac_header_compiler" >&6; }
17796 # Is the header present?
17797 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17798 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17799 cat >conftest.$ac_ext <<_ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17805 #include <locale.h>
17807 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17808 case "(($ac_try" in
17809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810 *) ac_try_echo=$ac_try;;
17812 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17813 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17815 grep -v '^ *+' conftest.er1 >conftest.err
17817 cat conftest.err >&5
17818 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17819 (exit $ac_status); } >/dev/null && {
17820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17821 test ! -s conftest.err
17823 ac_header_preproc=yes
17825 echo "$as_me: failed program was
:" >&5
17826 sed 's/^/| /' conftest.$ac_ext >&5
17828 ac_header_preproc=no
17831 rm -f conftest.err conftest.$ac_ext
17832 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17833 echo "${ECHO_T}$ac_header_preproc" >&6; }
17835 # So? What about this header?
17836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17838 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17839 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17840 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17841 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17842 ac_header_preproc=yes
17845 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17846 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17847 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17848 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17849 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17850 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17851 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17852 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17853 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17854 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17855 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17856 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17860 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17861 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17862 if test "${ac_cv_header_locale_h+set}" = set; then
17863 echo $ECHO_N "(cached
) $ECHO_C" >&6
17865 ac_cv_header_locale_h=$ac_header_preproc
17867 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17868 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17874 for ac_func in setlocale
17876 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17877 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17878 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17879 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17880 echo $ECHO_N "(cached
) $ECHO_C" >&6
17882 cat >conftest.$ac_ext <<_ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17890 #define $ac_func innocuous_$ac_func
17892 /* System header to define __stub macros and hopefully few prototypes,
17893 which can conflict with char $ac_func (); below.
17894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17895 <limits.h> exists even on freestanding compilers. */
17898 # include <limits.h>
17900 # include <assert.h>
17905 /* Override any GCC internal prototype to avoid an error.
17906 Use char because int might match the return type of a GCC
17907 builtin and then its argument prototype would still apply. */
17912 /* The GNU C library defines this for functions which it implements
17913 to always fail with ENOSYS. Some functions are actually named
17914 something starting with __ and the normal name is an alias. */
17915 #if defined __stub_$ac_func || defined __stub___$ac_func
17922 return $ac_func ();
17927 rm -f conftest.$ac_objext conftest$ac_exeext
17928 if { (ac_try="$ac_link"
17929 case "(($ac_try" in
17930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17931 *) ac_try_echo=$ac_try;;
17933 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17934 (eval "$ac_link") 2>conftest.er1
17936 grep -v '^ *+' conftest.er1 >conftest.err
17938 cat conftest.err >&5
17939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17940 (exit $ac_status); } && {
17941 test -z "$ac_c_werror_flag" ||
17942 test ! -s conftest.err
17943 } && test -s conftest$ac_exeext &&
17944 $as_test_x conftest$ac_exeext; then
17945 eval "$as_ac_var=yes"
17947 echo "$as_me: failed program was
:" >&5
17948 sed 's/^/| /' conftest.$ac_ext >&5
17950 eval "$as_ac_var=no
"
17953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17954 conftest$ac_exeext conftest.$ac_ext
17956 ac_res=`eval echo '${'$as_ac_var'}'`
17957 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17958 echo "${ECHO_T}$ac_res" >&6; }
17959 if test `eval echo '${'$as_ac_var'}'` = yes; then
17960 cat >>confdefs.h <<_ACEOF
17961 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17968 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17969 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17970 # Irix 4.0.5F has the header but not the library.
17971 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17974 cat >>confdefs.h <<\_ACEOF
17980 if test $ac_have_func = no; then
17981 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17982 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17983 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17984 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17985 echo $ECHO_N "(cached
) $ECHO_C" >&6
17987 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17988 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17990 # Is the header compilable?
17991 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17992 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17993 cat >conftest.$ac_ext <<_ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
17999 $ac_includes_default
18000 #include <inq_stats/cpustats.h>
18002 rm -f conftest.$ac_objext
18003 if { (ac_try="$ac_compile"
18004 case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18008 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_compile") 2>conftest.er1
18011 grep -v '^ *+' conftest.er1 >conftest.err
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18015 (exit $ac_status); } && {
18016 test -z "$ac_c_werror_flag" ||
18017 test ! -s conftest.err
18018 } && test -s conftest.$ac_objext; then
18019 ac_header_compiler=yes
18021 echo "$as_me: failed program was
:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18024 ac_header_compiler=no
18027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18028 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18029 echo "${ECHO_T}$ac_header_compiler" >&6; }
18031 # Is the header present?
18032 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18033 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
18034 cat >conftest.$ac_ext <<_ACEOF
18037 cat confdefs.h >>conftest.$ac_ext
18038 cat >>conftest.$ac_ext <<_ACEOF
18039 /* end confdefs.h. */
18040 #include <inq_stats/cpustats.h>
18042 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18043 case "(($ac_try" in
18044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18045 *) ac_try_echo=$ac_try;;
18047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18048 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18050 grep -v '^ *+' conftest.er1 >conftest.err
18052 cat conftest.err >&5
18053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18054 (exit $ac_status); } >/dev/null && {
18055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18056 test ! -s conftest.err
18058 ac_header_preproc=yes
18060 echo "$as_me: failed program was
:" >&5
18061 sed 's/^/| /' conftest.$ac_ext >&5
18063 ac_header_preproc=no
18066 rm -f conftest.err conftest.$ac_ext
18067 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18068 echo "${ECHO_T}$ac_header_preproc" >&6; }
18070 # So? What about this header?
18071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18073 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18074 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18075 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18076 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18077 ac_header_preproc=yes
18080 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18081 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18082 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18083 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18084 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18085 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18086 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18087 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18088 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18089 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18090 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18091 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18095 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18096 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18097 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18098 echo $ECHO_N "(cached
) $ECHO_C" >&6
18100 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18102 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18103 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18106 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18109 cat >>confdefs.h <<\_ACEOF
18114 cat >>confdefs.h <<\_ACEOF
18123 if test $ac_have_func = no; then
18124 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18125 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18126 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18127 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18128 echo $ECHO_N "(cached
) $ECHO_C" >&6
18130 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18131 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18133 # Is the header compilable?
18134 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18135 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18136 cat >conftest.$ac_ext <<_ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18142 $ac_includes_default
18143 #include <sys/cpustats.h>
18145 rm -f conftest.$ac_objext
18146 if { (ac_try="$ac_compile"
18147 case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18151 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_compile") 2>conftest.er1
18154 grep -v '^ *+' conftest.er1 >conftest.err
18156 cat conftest.err >&5
18157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18158 (exit $ac_status); } && {
18159 test -z "$ac_c_werror_flag" ||
18160 test ! -s conftest.err
18161 } && test -s conftest.$ac_objext; then
18162 ac_header_compiler=yes
18164 echo "$as_me: failed program was
:" >&5
18165 sed 's/^/| /' conftest.$ac_ext >&5
18167 ac_header_compiler=no
18170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18171 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18172 echo "${ECHO_T}$ac_header_compiler" >&6; }
18174 # Is the header present?
18175 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18176 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18177 cat >conftest.$ac_ext <<_ACEOF
18180 cat confdefs.h >>conftest.$ac_ext
18181 cat >>conftest.$ac_ext <<_ACEOF
18182 /* end confdefs.h. */
18183 #include <sys/cpustats.h>
18185 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18186 case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18191 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18193 grep -v '^ *+' conftest.er1 >conftest.err
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18197 (exit $ac_status); } >/dev/null && {
18198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18199 test ! -s conftest.err
18201 ac_header_preproc=yes
18203 echo "$as_me: failed program was
:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18206 ac_header_preproc=no
18209 rm -f conftest.err conftest.$ac_ext
18210 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18211 echo "${ECHO_T}$ac_header_preproc" >&6; }
18213 # So? What about this header?
18214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18216 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18217 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18218 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18219 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18220 ac_header_preproc=yes
18223 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18224 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18225 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18226 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18227 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18228 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18229 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18230 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18231 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18232 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18233 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18234 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18238 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18239 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18240 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18241 echo $ECHO_N "(cached
) $ECHO_C" >&6
18243 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18245 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18246 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18249 if test $ac_cv_header_sys_cpustats_h = yes; then
18250 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18259 if test $ac_have_func = no; then
18261 for ac_header in mach/mach.h
18263 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18264 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18265 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18266 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18267 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18268 echo $ECHO_N "(cached
) $ECHO_C" >&6
18270 ac_res=`eval echo '${'$as_ac_Header'}'`
18271 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18272 echo "${ECHO_T}$ac_res" >&6; }
18274 # Is the header compilable?
18275 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18276 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18277 cat >conftest.$ac_ext <<_ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18283 $ac_includes_default
18284 #include <$ac_header>
18286 rm -f conftest.$ac_objext
18287 if { (ac_try="$ac_compile"
18288 case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18292 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_compile") 2>conftest.er1
18295 grep -v '^ *+' conftest.er1 >conftest.err
18297 cat conftest.err >&5
18298 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18299 (exit $ac_status); } && {
18300 test -z "$ac_c_werror_flag" ||
18301 test ! -s conftest.err
18302 } && test -s conftest.$ac_objext; then
18303 ac_header_compiler=yes
18305 echo "$as_me: failed program was
:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18308 ac_header_compiler=no
18311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18312 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18313 echo "${ECHO_T}$ac_header_compiler" >&6; }
18315 # Is the header present?
18316 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18317 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18318 cat >conftest.$ac_ext <<_ACEOF
18321 cat confdefs.h >>conftest.$ac_ext
18322 cat >>conftest.$ac_ext <<_ACEOF
18323 /* end confdefs.h. */
18324 #include <$ac_header>
18326 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18327 case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18334 grep -v '^ *+' conftest.er1 >conftest.err
18336 cat conftest.err >&5
18337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18338 (exit $ac_status); } >/dev/null && {
18339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18340 test ! -s conftest.err
18342 ac_header_preproc=yes
18344 echo "$as_me: failed program was
:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18347 ac_header_preproc=no
18350 rm -f conftest.err conftest.$ac_ext
18351 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18352 echo "${ECHO_T}$ac_header_preproc" >&6; }
18354 # So? What about this header?
18355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18357 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18358 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18359 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18361 ac_header_preproc=yes
18364 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18365 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18366 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18367 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18368 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18369 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18370 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18371 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18372 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18374 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18375 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18379 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18380 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18381 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18382 echo $ECHO_N "(cached
) $ECHO_C" >&6
18384 eval "$as_ac_Header=\
$ac_header_preproc"
18386 ac_res=`eval echo '${'$as_ac_Header'}'`
18387 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18388 echo "${ECHO_T}$ac_res" >&6; }
18391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18392 cat >>confdefs.h <<_ACEOF
18393 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18403 for ac_header in nlist.h
18405 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18406 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18407 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18408 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18409 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18410 echo $ECHO_N "(cached
) $ECHO_C" >&6
18412 ac_res=`eval echo '${'$as_ac_Header'}'`
18413 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18414 echo "${ECHO_T}$ac_res" >&6; }
18416 # Is the header compilable?
18417 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18418 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18419 cat >conftest.$ac_ext <<_ACEOF
18422 cat confdefs.h >>conftest.$ac_ext
18423 cat >>conftest.$ac_ext <<_ACEOF
18424 /* end confdefs.h. */
18425 $ac_includes_default
18426 #include <$ac_header>
18428 rm -f conftest.$ac_objext
18429 if { (ac_try="$ac_compile"
18430 case "(($ac_try" in
18431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18432 *) ac_try_echo=$ac_try;;
18434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18435 (eval "$ac_compile") 2>conftest.er1
18437 grep -v '^ *+' conftest.er1 >conftest.err
18439 cat conftest.err >&5
18440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18441 (exit $ac_status); } && {
18442 test -z "$ac_c_werror_flag" ||
18443 test ! -s conftest.err
18444 } && test -s conftest.$ac_objext; then
18445 ac_header_compiler=yes
18447 echo "$as_me: failed program was
:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18450 ac_header_compiler=no
18453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18454 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18455 echo "${ECHO_T}$ac_header_compiler" >&6; }
18457 # Is the header present?
18458 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18459 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18460 cat >conftest.$ac_ext <<_ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h. */
18466 #include <$ac_header>
18468 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18469 case "(($ac_try" in
18470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18471 *) ac_try_echo=$ac_try;;
18473 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18474 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18476 grep -v '^ *+' conftest.er1 >conftest.err
18478 cat conftest.err >&5
18479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18480 (exit $ac_status); } >/dev/null && {
18481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18482 test ! -s conftest.err
18484 ac_header_preproc=yes
18486 echo "$as_me: failed program was
:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18489 ac_header_preproc=no
18492 rm -f conftest.err conftest.$ac_ext
18493 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18494 echo "${ECHO_T}$ac_header_preproc" >&6; }
18496 # So? What about this header?
18497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18499 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18500 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18501 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18503 ac_header_preproc=yes
18506 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18507 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18508 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18509 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18510 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18511 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18512 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18513 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18514 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18516 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18517 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18521 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18522 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18523 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18524 echo $ECHO_N "(cached
) $ECHO_C" >&6
18526 eval "$as_ac_Header=\
$ac_header_preproc"
18528 ac_res=`eval echo '${'$as_ac_Header'}'`
18529 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18530 echo "${ECHO_T}$ac_res" >&6; }
18533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18534 cat >>confdefs.h <<_ACEOF
18535 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18537 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18538 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18539 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18540 echo $ECHO_N "(cached
) $ECHO_C" >&6
18542 cat >conftest.$ac_ext <<_ACEOF
18545 cat confdefs.h >>conftest.$ac_ext
18546 cat >>conftest.$ac_ext <<_ACEOF
18547 /* end confdefs.h. */
18553 static struct nlist ac_aggr;
18554 if (ac_aggr.n_un.n_name)
18560 rm -f conftest.$ac_objext
18561 if { (ac_try="$ac_compile"
18562 case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_compile") 2>conftest.er1
18569 grep -v '^ *+' conftest.er1 >conftest.err
18571 cat conftest.err >&5
18572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18573 (exit $ac_status); } && {
18574 test -z "$ac_c_werror_flag" ||
18575 test ! -s conftest.err
18576 } && test -s conftest.$ac_objext; then
18577 ac_cv_member_struct_nlist_n_un_n_name=yes
18579 echo "$as_me: failed program was
:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18582 cat >conftest.$ac_ext <<_ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18593 static struct nlist ac_aggr;
18594 if (sizeof ac_aggr.n_un.n_name)
18600 rm -f conftest.$ac_objext
18601 if { (ac_try="$ac_compile"
18602 case "(($ac_try" in
18603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604 *) ac_try_echo=$ac_try;;
18606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18607 (eval "$ac_compile") 2>conftest.er1
18609 grep -v '^ *+' conftest.er1 >conftest.err
18611 cat conftest.err >&5
18612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18613 (exit $ac_status); } && {
18614 test -z "$ac_c_werror_flag" ||
18615 test ! -s conftest.err
18616 } && test -s conftest.$ac_objext; then
18617 ac_cv_member_struct_nlist_n_un_n_name=yes
18619 echo "$as_me: failed program was
:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18622 ac_cv_member_struct_nlist_n_un_n_name=no
18625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18630 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18631 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18632 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18634 cat >>confdefs.h <<_ACEOF
18635 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18639 cat >>confdefs.h <<\_ACEOF
18640 #define NLIST_NAME_UNION 1
18654 # Some definitions of getloadavg require that the program be installed setgid.
18655 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18656 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18657 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18658 echo $ECHO_N "(cached
) $ECHO_C" >&6
18660 cat >conftest.$ac_ext <<_ACEOF
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h. */
18666 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18667 #ifdef LDAV_PRIVILEGED
18668 Yowza Am I SETGID yet
18671 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18672 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18673 ac_cv_func_getloadavg_setgid=yes
18675 ac_cv_func_getloadavg_setgid=no
18680 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18681 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18682 if test $ac_cv_func_getloadavg_setgid = yes; then
18685 cat >>confdefs.h <<\_ACEOF
18686 #define GETLOADAVG_PRIVILEGED 1
18693 if test $ac_cv_func_getloadavg_setgid = yes; then
18694 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18695 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18696 if test "${ac_cv_group_kmem+set}" = set; then
18697 echo $ECHO_N "(cached
) $ECHO_C" >&6
18699 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18700 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18701 # If we got an error (system does not support symlinks), try without -L.
18702 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18703 ac_cv_group_kmem=`echo $ac_ls_output \
18704 | sed -ne 's/[ ][ ]*/ /g;
18705 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18709 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18710 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18711 KMEM_GROUP=$ac_cv_group_kmem
18713 if test "x
$ac_save_LIBS" = x; then
18714 GETLOADAVG_LIBS=$LIBS
18716 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18722 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18723 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18724 if test "${ac_cv_sys_largefile_source+set}" = set; then
18725 echo $ECHO_N "(cached
) $ECHO_C" >&6
18728 cat >conftest.$ac_ext <<_ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h. */
18738 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18743 rm -f conftest.$ac_objext conftest$ac_exeext
18744 if { (ac_try="$ac_link"
18745 case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_link") 2>conftest.er1
18752 grep -v '^ *+' conftest.er1 >conftest.err
18754 cat conftest.err >&5
18755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18756 (exit $ac_status); } && {
18757 test -z "$ac_c_werror_flag" ||
18758 test ! -s conftest.err
18759 } && test -s conftest$ac_exeext &&
18760 $as_test_x conftest$ac_exeext; then
18761 ac_cv_sys_largefile_source=no; break
18763 echo "$as_me: failed program was
:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18770 conftest$ac_exeext conftest.$ac_ext
18771 cat >conftest.$ac_ext <<_ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h. */
18777 #define _LARGEFILE_SOURCE 1
18782 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18787 rm -f conftest.$ac_objext conftest$ac_exeext
18788 if { (ac_try="$ac_link"
18789 case "(($ac_try" in
18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18791 *) ac_try_echo=$ac_try;;
18793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18794 (eval "$ac_link") 2>conftest.er1
18796 grep -v '^ *+' conftest.er1 >conftest.err
18798 cat conftest.err >&5
18799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18800 (exit $ac_status); } && {
18801 test -z "$ac_c_werror_flag" ||
18802 test ! -s conftest.err
18803 } && test -s conftest$ac_exeext &&
18804 $as_test_x conftest$ac_exeext; then
18805 ac_cv_sys_largefile_source=1; break
18807 echo "$as_me: failed program was
:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18814 conftest$ac_exeext conftest.$ac_ext
18815 ac_cv_sys_largefile_source=unknown
18819 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18820 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18821 case $ac_cv_sys_largefile_source in #(
18824 cat >>confdefs.h <<_ACEOF
18825 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18831 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18832 # in glibc 2.1.3, but that breaks too many other things.
18833 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18834 if test $ac_cv_sys_largefile_source != unknown; then
18836 cat >>confdefs.h <<\_ACEOF
18837 #define HAVE_FSEEKO 1
18843 # Configure getopt.
18844 # getopt.m4 serial 10
18846 # The getopt module assume you want GNU getopt, with getopt_long etc,
18847 # rather than vanilla POSIX getopt. This means your your code should
18848 # always include <getopt.h> for the getopt prototypes.
18860 # Prerequisites of lib/getopt*.
18867 for ac_header in getopt.h
18869 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18870 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18871 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18872 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18873 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18874 echo $ECHO_N "(cached
) $ECHO_C" >&6
18876 ac_res=`eval echo '${'$as_ac_Header'}'`
18877 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18878 echo "${ECHO_T}$ac_res" >&6; }
18880 # Is the header compilable?
18881 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18882 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18883 cat >conftest.$ac_ext <<_ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h. */
18889 $ac_includes_default
18890 #include <$ac_header>
18892 rm -f conftest.$ac_objext
18893 if { (ac_try="$ac_compile"
18894 case "(($ac_try" in
18895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896 *) ac_try_echo=$ac_try;;
18898 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18899 (eval "$ac_compile") 2>conftest.er1
18901 grep -v '^ *+' conftest.er1 >conftest.err
18903 cat conftest.err >&5
18904 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18905 (exit $ac_status); } && {
18906 test -z "$ac_c_werror_flag" ||
18907 test ! -s conftest.err
18908 } && test -s conftest.$ac_objext; then
18909 ac_header_compiler=yes
18911 echo "$as_me: failed program was
:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18914 ac_header_compiler=no
18917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18918 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18919 echo "${ECHO_T}$ac_header_compiler" >&6; }
18921 # Is the header present?
18922 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18923 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18924 cat >conftest.$ac_ext <<_ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18930 #include <$ac_header>
18932 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18933 case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18937 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18940 grep -v '^ *+' conftest.er1 >conftest.err
18942 cat conftest.err >&5
18943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18944 (exit $ac_status); } >/dev/null && {
18945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18946 test ! -s conftest.err
18948 ac_header_preproc=yes
18950 echo "$as_me: failed program was
:" >&5
18951 sed 's/^/| /' conftest.$ac_ext >&5
18953 ac_header_preproc=no
18956 rm -f conftest.err conftest.$ac_ext
18957 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18958 echo "${ECHO_T}$ac_header_preproc" >&6; }
18960 # So? What about this header?
18961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18963 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18964 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18965 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18967 ac_header_preproc=yes
18970 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18971 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18972 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18973 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18974 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18975 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18976 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18977 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18978 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18980 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18981 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18985 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18986 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18987 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18988 echo $ECHO_N "(cached
) $ECHO_C" >&6
18990 eval "$as_ac_Header=\
$ac_header_preproc"
18992 ac_res=`eval echo '${'$as_ac_Header'}'`
18993 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18994 echo "${ECHO_T}$ac_res" >&6; }
18997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18998 cat >>confdefs.h <<_ACEOF
18999 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19008 if test -z "$GETOPT_H"; then
19010 for ac_func in getopt_long_only
19012 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19013 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19014 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19015 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19016 echo $ECHO_N "(cached
) $ECHO_C" >&6
19018 cat >conftest.$ac_ext <<_ACEOF
19021 cat confdefs.h >>conftest.$ac_ext
19022 cat >>conftest.$ac_ext <<_ACEOF
19023 /* end confdefs.h. */
19024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19026 #define $ac_func innocuous_$ac_func
19028 /* System header to define __stub macros and hopefully few prototypes,
19029 which can conflict with char $ac_func (); below.
19030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19031 <limits.h> exists even on freestanding compilers. */
19034 # include <limits.h>
19036 # include <assert.h>
19041 /* Override any GCC internal prototype to avoid an error.
19042 Use char because int might match the return type of a GCC
19043 builtin and then its argument prototype would still apply. */
19048 /* The GNU C library defines this for functions which it implements
19049 to always fail with ENOSYS. Some functions are actually named
19050 something starting with __ and the normal name is an alias. */
19051 #if defined __stub_$ac_func || defined __stub___$ac_func
19058 return $ac_func ();
19063 rm -f conftest.$ac_objext conftest$ac_exeext
19064 if { (ac_try="$ac_link"
19065 case "(($ac_try" in
19066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067 *) ac_try_echo=$ac_try;;
19069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19070 (eval "$ac_link") 2>conftest.er1
19072 grep -v '^ *+' conftest.er1 >conftest.err
19074 cat conftest.err >&5
19075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19076 (exit $ac_status); } && {
19077 test -z "$ac_c_werror_flag" ||
19078 test ! -s conftest.err
19079 } && test -s conftest$ac_exeext &&
19080 $as_test_x conftest$ac_exeext; then
19081 eval "$as_ac_var=yes"
19083 echo "$as_me: failed program was
:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19086 eval "$as_ac_var=no
"
19089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19090 conftest$ac_exeext conftest.$ac_ext
19092 ac_res=`eval echo '${'$as_ac_var'}'`
19093 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19094 echo "${ECHO_T}$ac_res" >&6; }
19095 if test `eval echo '${'$as_ac_var'}'` = yes; then
19096 cat >>confdefs.h <<_ACEOF
19097 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19107 if test -z "$GETOPT_H"; then
19108 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19109 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19110 if test "${ac_cv_have_decl_optreset+set}" = set; then
19111 echo $ECHO_N "(cached
) $ECHO_C" >&6
19113 cat >conftest.$ac_ext <<_ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h. */
19119 #include <getopt.h>
19132 rm -f conftest.$ac_objext
19133 if { (ac_try="$ac_compile"
19134 case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_compile") 2>conftest.er1
19141 grep -v '^ *+' conftest.er1 >conftest.err
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19145 (exit $ac_status); } && {
19146 test -z "$ac_c_werror_flag" ||
19147 test ! -s conftest.err
19148 } && test -s conftest.$ac_objext; then
19149 ac_cv_have_decl_optreset=yes
19151 echo "$as_me: failed program was
:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19154 ac_cv_have_decl_optreset=no
19157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19159 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19160 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19161 if test $ac_cv_have_decl_optreset = yes; then
19167 if test -z "$GETOPT_H"; then
19168 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19169 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19170 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19171 echo $ECHO_N "(cached
) $ECHO_C" >&6
19173 if test "$cross_compiling" = yes; then
19174 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19175 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19176 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19177 echo $ECHO_N "(cached
) $ECHO_C" >&6
19179 cat >conftest.$ac_ext <<_ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19185 #include <getopt.h>
19190 #ifndef getopt_clip
19191 (void) getopt_clip;
19198 rm -f conftest.$ac_objext
19199 if { (ac_try="$ac_compile"
19200 case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19205 (eval "$ac_compile") 2>conftest.er1
19207 grep -v '^ *+' conftest.er1 >conftest.err
19209 cat conftest.err >&5
19210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19211 (exit $ac_status); } && {
19212 test -z "$ac_c_werror_flag" ||
19213 test ! -s conftest.err
19214 } && test -s conftest.$ac_objext; then
19215 ac_cv_have_decl_getopt_clip=yes
19217 echo "$as_me: failed program was
:" >&5
19218 sed 's/^/| /' conftest.$ac_ext >&5
19220 ac_cv_have_decl_getopt_clip=no
19223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19225 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19226 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19227 if test $ac_cv_have_decl_getopt_clip = yes; then
19228 gl_cv_func_gnu_getopt=no
19230 gl_cv_func_gnu_getopt=yes
19234 cat >conftest.$ac_ext <<_ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19240 #include <getopt.h>
19246 myargv[0] = "conftest
";
19249 return getopt (2, myargv, "+a
") != '?';
19255 rm -f conftest$ac_exeext
19256 if { (ac_try="$ac_link"
19257 case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_link") 2>&5
19264 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19266 { (case "(($ac_try" in
19267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19268 *) ac_try_echo=$ac_try;;
19270 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19271 (eval "$ac_try") 2>&5
19273 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19274 (exit $ac_status); }; }; then
19275 gl_cv_func_gnu_getopt=yes
19277 echo "$as_me: program exited with status
$ac_status" >&5
19278 echo "$as_me: failed program was
:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19281 ( exit $ac_status )
19282 gl_cv_func_gnu_getopt=no
19284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19289 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19290 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19291 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19298 if test -n "$GETOPT_H"; then
19303 cat >>confdefs.h <<\_ACEOF
19304 #define __GETOPT_PREFIX rpl_
19310 GETOPTOBJS='getopt.o getopt1.o'
19317 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19318 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19319 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19320 echo $ECHO_N "(cached
) $ECHO_C" >&6
19322 # Use it with a single arg.
19323 cat >conftest.$ac_ext <<_ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19329 $ac_includes_default
19338 rm -f conftest.$ac_objext
19339 if { (ac_try="$ac_compile"
19340 case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19344 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_compile") 2>conftest.er1
19347 grep -v '^ *+' conftest.er1 >conftest.err
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19351 (exit $ac_status); } && {
19352 test -z "$ac_c_werror_flag" ||
19353 test ! -s conftest.err
19354 } && test -s conftest.$ac_objext; then
19355 ac_cv_func_getpgrp_void=no
19357 echo "$as_me: failed program was
:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19360 ac_cv_func_getpgrp_void=yes
19363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19366 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19367 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19368 if test $ac_cv_func_getpgrp_void = yes; then
19370 cat >>confdefs.h <<\_ACEOF
19371 #define GETPGRP_VOID 1
19378 for ac_func in strftime
19380 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19381 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19382 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19383 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19384 echo $ECHO_N "(cached
) $ECHO_C" >&6
19386 cat >conftest.$ac_ext <<_ACEOF
19389 cat confdefs.h >>conftest.$ac_ext
19390 cat >>conftest.$ac_ext <<_ACEOF
19391 /* end confdefs.h. */
19392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19394 #define $ac_func innocuous_$ac_func
19396 /* System header to define __stub macros and hopefully few prototypes,
19397 which can conflict with char $ac_func (); below.
19398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19399 <limits.h> exists even on freestanding compilers. */
19402 # include <limits.h>
19404 # include <assert.h>
19409 /* Override any GCC internal prototype to avoid an error.
19410 Use char because int might match the return type of a GCC
19411 builtin and then its argument prototype would still apply. */
19416 /* The GNU C library defines this for functions which it implements
19417 to always fail with ENOSYS. Some functions are actually named
19418 something starting with __ and the normal name is an alias. */
19419 #if defined __stub_$ac_func || defined __stub___$ac_func
19426 return $ac_func ();
19431 rm -f conftest.$ac_objext conftest$ac_exeext
19432 if { (ac_try="$ac_link"
19433 case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_link") 2>conftest.er1
19440 grep -v '^ *+' conftest.er1 >conftest.err
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19444 (exit $ac_status); } && {
19445 test -z "$ac_c_werror_flag" ||
19446 test ! -s conftest.err
19447 } && test -s conftest$ac_exeext &&
19448 $as_test_x conftest$ac_exeext; then
19449 eval "$as_ac_var=yes"
19451 echo "$as_me: failed program was
:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19454 eval "$as_ac_var=no
"
19457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19458 conftest$ac_exeext conftest.$ac_ext
19460 ac_res=`eval echo '${'$as_ac_var'}'`
19461 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19462 echo "${ECHO_T}$ac_res" >&6; }
19463 if test `eval echo '${'$as_ac_var'}'` = yes; then
19464 cat >>confdefs.h <<_ACEOF
19465 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19469 # strftime is in -lintl on SCO UNIX.
19470 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19471 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19472 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19473 echo $ECHO_N "(cached
) $ECHO_C" >&6
19475 ac_check_lib_save_LIBS=$LIBS
19476 LIBS="-lintl $LIBS"
19477 cat >conftest.$ac_ext <<_ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h. */
19484 /* Override any GCC internal prototype to avoid an error.
19485 Use char because int might match the return type of a GCC
19486 builtin and then its argument prototype would still apply. */
19494 return strftime ();
19499 rm -f conftest.$ac_objext conftest$ac_exeext
19500 if { (ac_try="$ac_link"
19501 case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19505 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_link") 2>conftest.er1
19508 grep -v '^ *+' conftest.er1 >conftest.err
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19512 (exit $ac_status); } && {
19513 test -z "$ac_c_werror_flag" ||
19514 test ! -s conftest.err
19515 } && test -s conftest$ac_exeext &&
19516 $as_test_x conftest$ac_exeext; then
19517 ac_cv_lib_intl_strftime=yes
19519 echo "$as_me: failed program was
:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19522 ac_cv_lib_intl_strftime=no
19525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19526 conftest$ac_exeext conftest.$ac_ext
19527 LIBS=$ac_check_lib_save_LIBS
19529 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19530 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19531 if test $ac_cv_lib_intl_strftime = yes; then
19532 cat >>confdefs.h <<\_ACEOF
19533 #define HAVE_STRFTIME 1
19536 LIBS="-lintl $LIBS"
19545 for ac_func in grantpt
19547 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19548 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19549 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19550 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19551 echo $ECHO_N "(cached
) $ECHO_C" >&6
19553 cat >conftest.$ac_ext <<_ACEOF
19556 cat confdefs.h >>conftest.$ac_ext
19557 cat >>conftest.$ac_ext <<_ACEOF
19558 /* end confdefs.h. */
19559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19561 #define $ac_func innocuous_$ac_func
19563 /* System header to define __stub macros and hopefully few prototypes,
19564 which can conflict with char $ac_func (); below.
19565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19566 <limits.h> exists even on freestanding compilers. */
19569 # include <limits.h>
19571 # include <assert.h>
19576 /* Override any GCC internal prototype to avoid an error.
19577 Use char because int might match the return type of a GCC
19578 builtin and then its argument prototype would still apply. */
19583 /* The GNU C library defines this for functions which it implements
19584 to always fail with ENOSYS. Some functions are actually named
19585 something starting with __ and the normal name is an alias. */
19586 #if defined __stub_$ac_func || defined __stub___$ac_func
19593 return $ac_func ();
19598 rm -f conftest.$ac_objext conftest$ac_exeext
19599 if { (ac_try="$ac_link"
19600 case "(($ac_try" in
19601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602 *) ac_try_echo=$ac_try;;
19604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19605 (eval "$ac_link") 2>conftest.er1
19607 grep -v '^ *+' conftest.er1 >conftest.err
19609 cat conftest.err >&5
19610 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19611 (exit $ac_status); } && {
19612 test -z "$ac_c_werror_flag" ||
19613 test ! -s conftest.err
19614 } && test -s conftest$ac_exeext &&
19615 $as_test_x conftest$ac_exeext; then
19616 eval "$as_ac_var=yes"
19618 echo "$as_me: failed program was
:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19621 eval "$as_ac_var=no
"
19624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19625 conftest$ac_exeext conftest.$ac_ext
19627 ac_res=`eval echo '${'$as_ac_var'}'`
19628 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19629 echo "${ECHO_T}$ac_res" >&6; }
19630 if test `eval echo '${'$as_ac_var'}'` = yes; then
19631 cat >>confdefs.h <<_ACEOF
19632 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19639 # PTY-related GNU extensions.
19641 for ac_func in getpt
19643 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19644 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19645 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19646 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19647 echo $ECHO_N "(cached
) $ECHO_C" >&6
19649 cat >conftest.$ac_ext <<_ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19657 #define $ac_func innocuous_$ac_func
19659 /* System header to define __stub macros and hopefully few prototypes,
19660 which can conflict with char $ac_func (); below.
19661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19662 <limits.h> exists even on freestanding compilers. */
19665 # include <limits.h>
19667 # include <assert.h>
19672 /* Override any GCC internal prototype to avoid an error.
19673 Use char because int might match the return type of a GCC
19674 builtin and then its argument prototype would still apply. */
19679 /* The GNU C library defines this for functions which it implements
19680 to always fail with ENOSYS. Some functions are actually named
19681 something starting with __ and the normal name is an alias. */
19682 #if defined __stub_$ac_func || defined __stub___$ac_func
19689 return $ac_func ();
19694 rm -f conftest.$ac_objext conftest$ac_exeext
19695 if { (ac_try="$ac_link"
19696 case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19700 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_link") 2>conftest.er1
19703 grep -v '^ *+' conftest.er1 >conftest.err
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19707 (exit $ac_status); } && {
19708 test -z "$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19710 } && test -s conftest$ac_exeext &&
19711 $as_test_x conftest$ac_exeext; then
19712 eval "$as_ac_var=yes"
19714 echo "$as_me: failed program was
:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19717 eval "$as_ac_var=no
"
19720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19721 conftest$ac_exeext conftest.$ac_ext
19723 ac_res=`eval echo '${'$as_ac_var'}'`
19724 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19725 echo "${ECHO_T}$ac_res" >&6; }
19726 if test `eval echo '${'$as_ac_var'}'` = yes; then
19727 cat >>confdefs.h <<_ACEOF
19728 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19735 # Check this now, so that we will NOT find the above functions in ncurses.
19736 # That is because we have not set up to link ncurses in lib-src.
19737 # It's better to believe a function is not available
19738 # than to expect to find it in ncurses.
19740 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19741 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19742 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19743 echo $ECHO_N "(cached
) $ECHO_C" >&6
19745 ac_check_lib_save_LIBS=$LIBS
19746 LIBS="-lncurses $LIBS"
19747 cat >conftest.$ac_ext <<_ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19754 /* Override any GCC internal prototype to avoid an error.
19755 Use char because int might match the return type of a GCC
19756 builtin and then its argument prototype would still apply. */
19769 rm -f conftest.$ac_objext conftest$ac_exeext
19770 if { (ac_try="$ac_link"
19771 case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19775 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_link") 2>conftest.er1
19778 grep -v '^ *+' conftest.er1 >conftest.err
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19782 (exit $ac_status); } && {
19783 test -z "$ac_c_werror_flag" ||
19784 test ! -s conftest.err
19785 } && test -s conftest$ac_exeext &&
19786 $as_test_x conftest$ac_exeext; then
19787 ac_cv_lib_ncurses_tparm=yes
19789 echo "$as_me: failed program was
:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19792 ac_cv_lib_ncurses_tparm=no
19795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19796 conftest$ac_exeext conftest.$ac_ext
19797 LIBS=$ac_check_lib_save_LIBS
19799 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19800 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19801 if test $ac_cv_lib_ncurses_tparm = yes; then
19802 cat >>confdefs.h <<_ACEOF
19803 #define HAVE_LIBNCURSES 1
19806 LIBS="-lncurses $LIBS"
19811 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19814 cat >conftest.$ac_ext <<_ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 #include <netinet/in.h>
19821 #include <arpa/nameser.h>
19822 #include <resolv.h>
19831 rm -f conftest.$ac_objext conftest$ac_exeext
19832 if { (ac_try="$ac_link"
19833 case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_link") 2>conftest.er1
19840 grep -v '^ *+' conftest.er1 >conftest.err
19842 cat conftest.err >&5
19843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19844 (exit $ac_status); } && {
19845 test -z "$ac_c_werror_flag" ||
19846 test ! -s conftest.err
19847 } && test -s conftest$ac_exeext &&
19848 $as_test_x conftest$ac_exeext; then
19851 echo "$as_me: failed program was
:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19858 conftest$ac_exeext conftest.$ac_ext
19859 if test "$have_res_init" = no; then
19861 LIBS="$LIBS -lresolv"
19862 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19863 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19864 cat >conftest.$ac_ext <<_ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19870 #include <netinet/in.h>
19871 #include <arpa/nameser.h>
19872 #include <resolv.h>
19881 rm -f conftest.$ac_objext conftest$ac_exeext
19882 if { (ac_try="$ac_link"
19883 case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19887 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_link") 2>conftest.er1
19890 grep -v '^ *+' conftest.er1 >conftest.err
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19894 (exit $ac_status); } && {
19895 test -z "$ac_c_werror_flag" ||
19896 test ! -s conftest.err
19897 } && test -s conftest$ac_exeext &&
19898 $as_test_x conftest$ac_exeext; then
19901 echo "$as_me: failed program was
:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19908 conftest$ac_exeext conftest.$ac_ext
19909 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19910 echo "${ECHO_T}$have_res_init" >&6; }
19911 if test "$have_res_init" = yes ; then
19917 if test "$have_res_init" = yes; then
19919 cat >>confdefs.h <<\_ACEOF
19920 #define HAVE_RES_INIT 1
19925 # Do we need the Hesiod library to provide the support routines?
19926 if test "$with_hesiod" != no ; then
19927 # Don't set $LIBS here -- see comments above.
19928 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19929 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19930 if test "${ac_cv_func_res_send+set}" = set; then
19931 echo $ECHO_N "(cached
) $ECHO_C" >&6
19933 cat >conftest.$ac_ext <<_ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19941 #define res_send innocuous_res_send
19943 /* System header to define __stub macros and hopefully few prototypes,
19944 which can conflict with char res_send (); below.
19945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19946 <limits.h> exists even on freestanding compilers. */
19949 # include <limits.h>
19951 # include <assert.h>
19956 /* Override any GCC internal prototype to avoid an error.
19957 Use char because int might match the return type of a GCC
19958 builtin and then its argument prototype would still apply. */
19963 /* The GNU C library defines this for functions which it implements
19964 to always fail with ENOSYS. Some functions are actually named
19965 something starting with __ and the normal name is an alias. */
19966 #if defined __stub_res_send || defined __stub___res_send
19973 return res_send ();
19978 rm -f conftest.$ac_objext conftest$ac_exeext
19979 if { (ac_try="$ac_link"
19980 case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19984 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_link") 2>conftest.er1
19987 grep -v '^ *+' conftest.er1 >conftest.err
19989 cat conftest.err >&5
19990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19991 (exit $ac_status); } && {
19992 test -z "$ac_c_werror_flag" ||
19993 test ! -s conftest.err
19994 } && test -s conftest$ac_exeext &&
19995 $as_test_x conftest$ac_exeext; then
19996 ac_cv_func_res_send=yes
19998 echo "$as_me: failed program was
:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20001 ac_cv_func_res_send=no
20004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20005 conftest$ac_exeext conftest.$ac_ext
20007 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
20008 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20009 if test $ac_cv_func_res_send = yes; then
20012 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
20013 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
20014 if test "${ac_cv_func___res_send+set}" = set; then
20015 echo $ECHO_N "(cached
) $ECHO_C" >&6
20017 cat >conftest.$ac_ext <<_ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h. */
20023 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20025 #define __res_send innocuous___res_send
20027 /* System header to define __stub macros and hopefully few prototypes,
20028 which can conflict with char __res_send (); below.
20029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20030 <limits.h> exists even on freestanding compilers. */
20033 # include <limits.h>
20035 # include <assert.h>
20040 /* Override any GCC internal prototype to avoid an error.
20041 Use char because int might match the return type of a GCC
20042 builtin and then its argument prototype would still apply. */
20046 char __res_send ();
20047 /* The GNU C library defines this for functions which it implements
20048 to always fail with ENOSYS. Some functions are actually named
20049 something starting with __ and the normal name is an alias. */
20050 #if defined __stub___res_send || defined __stub_____res_send
20057 return __res_send ();
20062 rm -f conftest.$ac_objext conftest$ac_exeext
20063 if { (ac_try="$ac_link"
20064 case "(($ac_try" in
20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066 *) ac_try_echo=$ac_try;;
20068 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20069 (eval "$ac_link") 2>conftest.er1
20071 grep -v '^ *+' conftest.er1 >conftest.err
20073 cat conftest.err >&5
20074 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20075 (exit $ac_status); } && {
20076 test -z "$ac_c_werror_flag" ||
20077 test ! -s conftest.err
20078 } && test -s conftest$ac_exeext &&
20079 $as_test_x conftest$ac_exeext; then
20080 ac_cv_func___res_send=yes
20082 echo "$as_me: failed program was
:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20085 ac_cv_func___res_send=no
20088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20089 conftest$ac_exeext conftest.$ac_ext
20091 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20092 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20093 if test $ac_cv_func___res_send = yes; then
20096 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20097 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20098 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20099 echo $ECHO_N "(cached
) $ECHO_C" >&6
20101 ac_check_lib_save_LIBS=$LIBS
20102 LIBS="-lresolv $LIBS"
20103 cat >conftest.$ac_ext <<_ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20110 /* Override any GCC internal prototype to avoid an error.
20111 Use char because int might match the return type of a GCC
20112 builtin and then its argument prototype would still apply. */
20120 return res_send ();
20125 rm -f conftest.$ac_objext conftest$ac_exeext
20126 if { (ac_try="$ac_link"
20127 case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20131 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20132 (eval "$ac_link") 2>conftest.er1
20134 grep -v '^ *+' conftest.er1 >conftest.err
20136 cat conftest.err >&5
20137 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20138 (exit $ac_status); } && {
20139 test -z "$ac_c_werror_flag" ||
20140 test ! -s conftest.err
20141 } && test -s conftest$ac_exeext &&
20142 $as_test_x conftest$ac_exeext; then
20143 ac_cv_lib_resolv_res_send=yes
20145 echo "$as_me: failed program was
:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20148 ac_cv_lib_resolv_res_send=no
20151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20152 conftest$ac_exeext conftest.$ac_ext
20153 LIBS=$ac_check_lib_save_LIBS
20155 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20156 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20157 if test $ac_cv_lib_resolv_res_send = yes; then
20160 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20161 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20162 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20163 echo $ECHO_N "(cached
) $ECHO_C" >&6
20165 ac_check_lib_save_LIBS=$LIBS
20166 LIBS="-lresolv $LIBS"
20167 cat >conftest.$ac_ext <<_ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20174 /* Override any GCC internal prototype to avoid an error.
20175 Use char because int might match the return type of a GCC
20176 builtin and then its argument prototype would still apply. */
20180 char __res_send ();
20184 return __res_send ();
20189 rm -f conftest.$ac_objext conftest$ac_exeext
20190 if { (ac_try="$ac_link"
20191 case "(($ac_try" in
20192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193 *) ac_try_echo=$ac_try;;
20195 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20196 (eval "$ac_link") 2>conftest.er1
20198 grep -v '^ *+' conftest.er1 >conftest.err
20200 cat conftest.err >&5
20201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20202 (exit $ac_status); } && {
20203 test -z "$ac_c_werror_flag" ||
20204 test ! -s conftest.err
20205 } && test -s conftest$ac_exeext &&
20206 $as_test_x conftest$ac_exeext; then
20207 ac_cv_lib_resolv___res_send=yes
20209 echo "$as_me: failed program was
:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20212 ac_cv_lib_resolv___res_send=no
20215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20216 conftest$ac_exeext conftest.$ac_ext
20217 LIBS=$ac_check_lib_save_LIBS
20219 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20220 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20221 if test $ac_cv_lib_resolv___res_send = yes; then
20231 if test "$resolv" = yes ; then
20236 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20237 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20238 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20239 echo $ECHO_N "(cached
) $ECHO_C" >&6
20241 cat >conftest.$ac_ext <<_ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h. */
20247 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20249 #define hes_getmailhost innocuous_hes_getmailhost
20251 /* System header to define __stub macros and hopefully few prototypes,
20252 which can conflict with char hes_getmailhost (); below.
20253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20254 <limits.h> exists even on freestanding compilers. */
20257 # include <limits.h>
20259 # include <assert.h>
20262 #undef hes_getmailhost
20264 /* Override any GCC internal prototype to avoid an error.
20265 Use char because int might match the return type of a GCC
20266 builtin and then its argument prototype would still apply. */
20270 char hes_getmailhost ();
20271 /* The GNU C library defines this for functions which it implements
20272 to always fail with ENOSYS. Some functions are actually named
20273 something starting with __ and the normal name is an alias. */
20274 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20281 return hes_getmailhost ();
20286 rm -f conftest.$ac_objext conftest$ac_exeext
20287 if { (ac_try="$ac_link"
20288 case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20292 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20293 (eval "$ac_link") 2>conftest.er1
20295 grep -v '^ *+' conftest.er1 >conftest.err
20297 cat conftest.err >&5
20298 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20299 (exit $ac_status); } && {
20300 test -z "$ac_c_werror_flag" ||
20301 test ! -s conftest.err
20302 } && test -s conftest$ac_exeext &&
20303 $as_test_x conftest$ac_exeext; then
20304 ac_cv_func_hes_getmailhost=yes
20306 echo "$as_me: failed program was
:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20309 ac_cv_func_hes_getmailhost=no
20312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20313 conftest$ac_exeext conftest.$ac_ext
20315 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20316 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20317 if test $ac_cv_func_hes_getmailhost = yes; then
20320 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20321 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20322 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20323 echo $ECHO_N "(cached
) $ECHO_C" >&6
20325 ac_check_lib_save_LIBS=$LIBS
20326 LIBS="-lhesiod $RESOLVLIB $LIBS"
20327 cat >conftest.$ac_ext <<_ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h. */
20334 /* Override any GCC internal prototype to avoid an error.
20335 Use char because int might match the return type of a GCC
20336 builtin and then its argument prototype would still apply. */
20340 char hes_getmailhost ();
20344 return hes_getmailhost ();
20349 rm -f conftest.$ac_objext conftest$ac_exeext
20350 if { (ac_try="$ac_link"
20351 case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20355 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_link") 2>conftest.er1
20358 grep -v '^ *+' conftest.er1 >conftest.err
20360 cat conftest.err >&5
20361 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20362 (exit $ac_status); } && {
20363 test -z "$ac_c_werror_flag" ||
20364 test ! -s conftest.err
20365 } && test -s conftest$ac_exeext &&
20366 $as_test_x conftest$ac_exeext; then
20367 ac_cv_lib_hesiod_hes_getmailhost=yes
20369 echo "$as_me: failed program was
:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20372 ac_cv_lib_hesiod_hes_getmailhost=no
20375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20376 conftest$ac_exeext conftest.$ac_ext
20377 LIBS=$ac_check_lib_save_LIBS
20379 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20380 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20381 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20383 cat >>confdefs.h <<\_ACEOF
20384 #define HAVE_LIBHESIOD 1
20395 # Do we need libresolv (due to res_init or Hesiod)?
20396 if test "$resolv" = yes ; then
20398 cat >>confdefs.h <<\_ACEOF
20399 #define HAVE_LIBRESOLV 1
20404 # These tell us which Kerberos-related libraries to use.
20405 if test "${with_kerberos}" != no; then
20407 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20408 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20409 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20410 echo $ECHO_N "(cached
) $ECHO_C" >&6
20412 ac_check_lib_save_LIBS=$LIBS
20413 LIBS="-lcom_err $LIBS"
20414 cat >conftest.$ac_ext <<_ACEOF
20417 cat confdefs.h >>conftest.$ac_ext
20418 cat >>conftest.$ac_ext <<_ACEOF
20419 /* end confdefs.h. */
20421 /* Override any GCC internal prototype to avoid an error.
20422 Use char because int might match the return type of a GCC
20423 builtin and then its argument prototype would still apply. */
20436 rm -f conftest.$ac_objext conftest$ac_exeext
20437 if { (ac_try="$ac_link"
20438 case "(($ac_try" in
20439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440 *) ac_try_echo=$ac_try;;
20442 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20443 (eval "$ac_link") 2>conftest.er1
20445 grep -v '^ *+' conftest.er1 >conftest.err
20447 cat conftest.err >&5
20448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20449 (exit $ac_status); } && {
20450 test -z "$ac_c_werror_flag" ||
20451 test ! -s conftest.err
20452 } && test -s conftest$ac_exeext &&
20453 $as_test_x conftest$ac_exeext; then
20454 ac_cv_lib_com_err_com_err=yes
20456 echo "$as_me: failed program was
:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20459 ac_cv_lib_com_err_com_err=no
20462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20463 conftest$ac_exeext conftest.$ac_ext
20464 LIBS=$ac_check_lib_save_LIBS
20466 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20467 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20468 if test $ac_cv_lib_com_err_com_err = yes; then
20469 cat >>confdefs.h <<_ACEOF
20470 #define HAVE_LIBCOM_ERR 1
20473 LIBS="-lcom_err $LIBS"
20478 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20479 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20480 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20481 echo $ECHO_N "(cached
) $ECHO_C" >&6
20483 ac_check_lib_save_LIBS=$LIBS
20484 LIBS="-lk5crypto $LIBS"
20485 cat >conftest.$ac_ext <<_ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20492 /* Override any GCC internal prototype to avoid an error.
20493 Use char because int might match the return type of a GCC
20494 builtin and then its argument prototype would still apply. */
20498 char mit_des_cbc_encrypt ();
20502 return mit_des_cbc_encrypt ();
20507 rm -f conftest.$ac_objext conftest$ac_exeext
20508 if { (ac_try="$ac_link"
20509 case "(($ac_try" in
20510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20513 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20514 (eval "$ac_link") 2>conftest.er1
20516 grep -v '^ *+' conftest.er1 >conftest.err
20518 cat conftest.err >&5
20519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20520 (exit $ac_status); } && {
20521 test -z "$ac_c_werror_flag" ||
20522 test ! -s conftest.err
20523 } && test -s conftest$ac_exeext &&
20524 $as_test_x conftest$ac_exeext; then
20525 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20527 echo "$as_me: failed program was
:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20530 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20534 conftest$ac_exeext conftest.$ac_ext
20535 LIBS=$ac_check_lib_save_LIBS
20537 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20538 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20539 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20540 cat >>confdefs.h <<_ACEOF
20541 #define HAVE_LIBK5CRYPTO 1
20544 LIBS="-lk5crypto $LIBS"
20549 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20550 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20551 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20552 echo $ECHO_N "(cached
) $ECHO_C" >&6
20554 ac_check_lib_save_LIBS=$LIBS
20555 LIBS="-lcrypto $LIBS"
20556 cat >conftest.$ac_ext <<_ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20563 /* Override any GCC internal prototype to avoid an error.
20564 Use char because int might match the return type of a GCC
20565 builtin and then its argument prototype would still apply. */
20569 char mit_des_cbc_encrypt ();
20573 return mit_des_cbc_encrypt ();
20578 rm -f conftest.$ac_objext conftest$ac_exeext
20579 if { (ac_try="$ac_link"
20580 case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20584 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_link") 2>conftest.er1
20587 grep -v '^ *+' conftest.er1 >conftest.err
20589 cat conftest.err >&5
20590 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20591 (exit $ac_status); } && {
20592 test -z "$ac_c_werror_flag" ||
20593 test ! -s conftest.err
20594 } && test -s conftest$ac_exeext &&
20595 $as_test_x conftest$ac_exeext; then
20596 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20598 echo "$as_me: failed program was
:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20601 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20605 conftest$ac_exeext conftest.$ac_ext
20606 LIBS=$ac_check_lib_save_LIBS
20608 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20609 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20610 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20611 cat >>confdefs.h <<_ACEOF
20612 #define HAVE_LIBCRYPTO 1
20615 LIBS="-lcrypto $LIBS"
20620 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20621 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20622 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20623 echo $ECHO_N "(cached
) $ECHO_C" >&6
20625 ac_check_lib_save_LIBS=$LIBS
20626 LIBS="-lkrb5 $LIBS"
20627 cat >conftest.$ac_ext <<_ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20634 /* Override any GCC internal prototype to avoid an error.
20635 Use char because int might match the return type of a GCC
20636 builtin and then its argument prototype would still apply. */
20640 char krb5_init_context ();
20644 return krb5_init_context ();
20649 rm -f conftest.$ac_objext conftest$ac_exeext
20650 if { (ac_try="$ac_link"
20651 case "(($ac_try" in
20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20656 (eval "$ac_link") 2>conftest.er1
20658 grep -v '^ *+' conftest.er1 >conftest.err
20660 cat conftest.err >&5
20661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20662 (exit $ac_status); } && {
20663 test -z "$ac_c_werror_flag" ||
20664 test ! -s conftest.err
20665 } && test -s conftest$ac_exeext &&
20666 $as_test_x conftest$ac_exeext; then
20667 ac_cv_lib_krb5_krb5_init_context=yes
20669 echo "$as_me: failed program was
:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20672 ac_cv_lib_krb5_krb5_init_context=no
20675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20676 conftest$ac_exeext conftest.$ac_ext
20677 LIBS=$ac_check_lib_save_LIBS
20679 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20680 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20681 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20682 cat >>confdefs.h <<_ACEOF
20683 #define HAVE_LIBKRB5 1
20686 LIBS="-lkrb5 $LIBS"
20690 if test "${with_kerberos5}" = no; then
20692 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20693 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20694 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20695 echo $ECHO_N "(cached
) $ECHO_C" >&6
20697 ac_check_lib_save_LIBS=$LIBS
20698 LIBS="-ldes425 $LIBS"
20699 cat >conftest.$ac_ext <<_ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20706 /* Override any GCC internal prototype to avoid an error.
20707 Use char because int might match the return type of a GCC
20708 builtin and then its argument prototype would still apply. */
20712 char des_cbc_encrypt ();
20716 return des_cbc_encrypt ();
20721 rm -f conftest.$ac_objext conftest$ac_exeext
20722 if { (ac_try="$ac_link"
20723 case "(($ac_try" in
20724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20725 *) ac_try_echo=$ac_try;;
20727 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20728 (eval "$ac_link") 2>conftest.er1
20730 grep -v '^ *+' conftest.er1 >conftest.err
20732 cat conftest.err >&5
20733 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20734 (exit $ac_status); } && {
20735 test -z "$ac_c_werror_flag" ||
20736 test ! -s conftest.err
20737 } && test -s conftest$ac_exeext &&
20738 $as_test_x conftest$ac_exeext; then
20739 ac_cv_lib_des425_des_cbc_encrypt=yes
20741 echo "$as_me: failed program was
:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20744 ac_cv_lib_des425_des_cbc_encrypt=no
20747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20748 conftest$ac_exeext conftest.$ac_ext
20749 LIBS=$ac_check_lib_save_LIBS
20751 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20752 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20753 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20754 cat >>confdefs.h <<_ACEOF
20755 #define HAVE_LIBDES425 1
20758 LIBS="-ldes425 $LIBS"
20762 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20763 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20764 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20765 echo $ECHO_N "(cached
) $ECHO_C" >&6
20767 ac_check_lib_save_LIBS=$LIBS
20769 cat >conftest.$ac_ext <<_ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h. */
20776 /* Override any GCC internal prototype to avoid an error.
20777 Use char because int might match the return type of a GCC
20778 builtin and then its argument prototype would still apply. */
20782 char des_cbc_encrypt ();
20786 return des_cbc_encrypt ();
20791 rm -f conftest.$ac_objext conftest$ac_exeext
20792 if { (ac_try="$ac_link"
20793 case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20797 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_link") 2>conftest.er1
20800 grep -v '^ *+' conftest.er1 >conftest.err
20802 cat conftest.err >&5
20803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20804 (exit $ac_status); } && {
20805 test -z "$ac_c_werror_flag" ||
20806 test ! -s conftest.err
20807 } && test -s conftest$ac_exeext &&
20808 $as_test_x conftest$ac_exeext; then
20809 ac_cv_lib_des_des_cbc_encrypt=yes
20811 echo "$as_me: failed program was
:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20814 ac_cv_lib_des_des_cbc_encrypt=no
20817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20818 conftest$ac_exeext conftest.$ac_ext
20819 LIBS=$ac_check_lib_save_LIBS
20821 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20822 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20823 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20824 cat >>confdefs.h <<_ACEOF
20825 #define HAVE_LIBDES 1
20835 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20836 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20837 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20838 echo $ECHO_N "(cached
) $ECHO_C" >&6
20840 ac_check_lib_save_LIBS=$LIBS
20841 LIBS="-lkrb4 $LIBS"
20842 cat >conftest.$ac_ext <<_ACEOF
20845 cat confdefs.h >>conftest.$ac_ext
20846 cat >>conftest.$ac_ext <<_ACEOF
20847 /* end confdefs.h. */
20849 /* Override any GCC internal prototype to avoid an error.
20850 Use char because int might match the return type of a GCC
20851 builtin and then its argument prototype would still apply. */
20855 char krb_get_cred ();
20859 return krb_get_cred ();
20864 rm -f conftest.$ac_objext conftest$ac_exeext
20865 if { (ac_try="$ac_link"
20866 case "(($ac_try" in
20867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868 *) ac_try_echo=$ac_try;;
20870 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20871 (eval "$ac_link") 2>conftest.er1
20873 grep -v '^ *+' conftest.er1 >conftest.err
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20877 (exit $ac_status); } && {
20878 test -z "$ac_c_werror_flag" ||
20879 test ! -s conftest.err
20880 } && test -s conftest$ac_exeext &&
20881 $as_test_x conftest$ac_exeext; then
20882 ac_cv_lib_krb4_krb_get_cred=yes
20884 echo "$as_me: failed program was
:" >&5
20885 sed 's/^/| /' conftest.$ac_ext >&5
20887 ac_cv_lib_krb4_krb_get_cred=no
20890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20891 conftest$ac_exeext conftest.$ac_ext
20892 LIBS=$ac_check_lib_save_LIBS
20894 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20895 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20896 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20897 cat >>confdefs.h <<_ACEOF
20898 #define HAVE_LIBKRB4 1
20901 LIBS="-lkrb4 $LIBS"
20905 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20906 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20907 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20908 echo $ECHO_N "(cached
) $ECHO_C" >&6
20910 ac_check_lib_save_LIBS=$LIBS
20912 cat >conftest.$ac_ext <<_ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20919 /* Override any GCC internal prototype to avoid an error.
20920 Use char because int might match the return type of a GCC
20921 builtin and then its argument prototype would still apply. */
20925 char krb_get_cred ();
20929 return krb_get_cred ();
20934 rm -f conftest.$ac_objext conftest$ac_exeext
20935 if { (ac_try="$ac_link"
20936 case "(($ac_try" in
20937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20938 *) ac_try_echo=$ac_try;;
20940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20941 (eval "$ac_link") 2>conftest.er1
20943 grep -v '^ *+' conftest.er1 >conftest.err
20945 cat conftest.err >&5
20946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20947 (exit $ac_status); } && {
20948 test -z "$ac_c_werror_flag" ||
20949 test ! -s conftest.err
20950 } && test -s conftest$ac_exeext &&
20951 $as_test_x conftest$ac_exeext; then
20952 ac_cv_lib_krb_krb_get_cred=yes
20954 echo "$as_me: failed program was
:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20957 ac_cv_lib_krb_krb_get_cred=no
20960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20961 conftest$ac_exeext conftest.$ac_ext
20962 LIBS=$ac_check_lib_save_LIBS
20964 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20965 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20966 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20967 cat >>confdefs.h <<_ACEOF
20968 #define HAVE_LIBKRB 1
20979 if test "${with_kerberos5}" != no; then
20981 for ac_header in krb5.h
20983 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20984 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20985 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20986 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20987 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20988 echo $ECHO_N "(cached
) $ECHO_C" >&6
20990 ac_res=`eval echo '${'$as_ac_Header'}'`
20991 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20992 echo "${ECHO_T}$ac_res" >&6; }
20994 # Is the header compilable?
20995 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20996 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20997 cat >conftest.$ac_ext <<_ACEOF
21000 cat confdefs.h >>conftest.$ac_ext
21001 cat >>conftest.$ac_ext <<_ACEOF
21002 /* end confdefs.h. */
21003 $ac_includes_default
21004 #include <$ac_header>
21006 rm -f conftest.$ac_objext
21007 if { (ac_try="$ac_compile"
21008 case "(($ac_try" in
21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010 *) ac_try_echo=$ac_try;;
21012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21013 (eval "$ac_compile") 2>conftest.er1
21015 grep -v '^ *+' conftest.er1 >conftest.err
21017 cat conftest.err >&5
21018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21019 (exit $ac_status); } && {
21020 test -z "$ac_c_werror_flag" ||
21021 test ! -s conftest.err
21022 } && test -s conftest.$ac_objext; then
21023 ac_header_compiler=yes
21025 echo "$as_me: failed program was
:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21028 ac_header_compiler=no
21031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21032 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21033 echo "${ECHO_T}$ac_header_compiler" >&6; }
21035 # Is the header present?
21036 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21037 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21038 cat >conftest.$ac_ext <<_ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 #include <$ac_header>
21046 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21047 case "(($ac_try" in
21048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049 *) ac_try_echo=$ac_try;;
21051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21052 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21054 grep -v '^ *+' conftest.er1 >conftest.err
21056 cat conftest.err >&5
21057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21058 (exit $ac_status); } >/dev/null && {
21059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21060 test ! -s conftest.err
21062 ac_header_preproc=yes
21064 echo "$as_me: failed program was
:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21067 ac_header_preproc=no
21070 rm -f conftest.err conftest.$ac_ext
21071 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21072 echo "${ECHO_T}$ac_header_preproc" >&6; }
21074 # So? What about this header?
21075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21077 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21078 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21079 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21081 ac_header_preproc=yes
21084 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21085 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21086 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21087 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21088 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21089 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21090 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21091 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21092 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21094 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21095 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21099 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21100 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21101 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21102 echo $ECHO_N "(cached
) $ECHO_C" >&6
21104 eval "$as_ac_Header=\
$ac_header_preproc"
21106 ac_res=`eval echo '${'$as_ac_Header'}'`
21107 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21108 echo "${ECHO_T}$ac_res" >&6; }
21111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21112 cat >>confdefs.h <<_ACEOF
21113 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21115 { echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
21116 echo $ECHO_N "checking
for krb5_error.text...
$ECHO_C" >&6; }
21117 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21118 echo $ECHO_N "(cached
) $ECHO_C" >&6
21120 cat >conftest.$ac_ext <<_ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21131 static krb5_error ac_aggr;
21138 rm -f conftest.$ac_objext
21139 if { (ac_try="$ac_compile"
21140 case "(($ac_try" in
21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142 *) ac_try_echo=$ac_try;;
21144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_compile") 2>conftest.er1
21147 grep -v '^ *+' conftest.er1 >conftest.err
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21151 (exit $ac_status); } && {
21152 test -z "$ac_c_werror_flag" ||
21153 test ! -s conftest.err
21154 } && test -s conftest.$ac_objext; then
21155 ac_cv_member_krb5_error_text=yes
21157 echo "$as_me: failed program was
:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21160 cat >conftest.$ac_ext <<_ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21171 static krb5_error ac_aggr;
21172 if (sizeof ac_aggr.text)
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21184 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_compile") 2>conftest.er1
21187 grep -v '^ *+' conftest.er1 >conftest.err
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21191 (exit $ac_status); } && {
21192 test -z "$ac_c_werror_flag" ||
21193 test ! -s conftest.err
21194 } && test -s conftest.$ac_objext; then
21195 ac_cv_member_krb5_error_text=yes
21197 echo "$as_me: failed program was
:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21200 ac_cv_member_krb5_error_text=no
21203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21208 { echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
21209 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21210 if test $ac_cv_member_krb5_error_text = yes; then
21212 cat >>confdefs.h <<_ACEOF
21213 #define HAVE_KRB5_ERROR_TEXT 1
21218 { echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
21219 echo $ECHO_N "checking
for krb5_error.e_text...
$ECHO_C" >&6; }
21220 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21221 echo $ECHO_N "(cached
) $ECHO_C" >&6
21223 cat >conftest.$ac_ext <<_ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h. */
21234 static krb5_error ac_aggr;
21235 if (ac_aggr.e_text)
21241 rm -f conftest.$ac_objext
21242 if { (ac_try="$ac_compile"
21243 case "(($ac_try" in
21244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245 *) ac_try_echo=$ac_try;;
21247 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21248 (eval "$ac_compile") 2>conftest.er1
21250 grep -v '^ *+' conftest.er1 >conftest.err
21252 cat conftest.err >&5
21253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21254 (exit $ac_status); } && {
21255 test -z "$ac_c_werror_flag" ||
21256 test ! -s conftest.err
21257 } && test -s conftest.$ac_objext; then
21258 ac_cv_member_krb5_error_e_text=yes
21260 echo "$as_me: failed program was
:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21263 cat >conftest.$ac_ext <<_ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21274 static krb5_error ac_aggr;
21275 if (sizeof ac_aggr.e_text)
21281 rm -f conftest.$ac_objext
21282 if { (ac_try="$ac_compile"
21283 case "(($ac_try" in
21284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21287 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21288 (eval "$ac_compile") 2>conftest.er1
21290 grep -v '^ *+' conftest.er1 >conftest.err
21292 cat conftest.err >&5
21293 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21294 (exit $ac_status); } && {
21295 test -z "$ac_c_werror_flag" ||
21296 test ! -s conftest.err
21297 } && test -s conftest.$ac_objext; then
21298 ac_cv_member_krb5_error_e_text=yes
21300 echo "$as_me: failed program was
:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21303 ac_cv_member_krb5_error_e_text=no
21306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21311 { echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
21312 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21313 if test $ac_cv_member_krb5_error_e_text = yes; then
21315 cat >>confdefs.h <<_ACEOF
21316 #define HAVE_KRB5_ERROR_E_TEXT 1
21328 for ac_header in des.h
21330 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21331 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21332 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21333 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21334 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21335 echo $ECHO_N "(cached
) $ECHO_C" >&6
21337 ac_res=`eval echo '${'$as_ac_Header'}'`
21338 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21339 echo "${ECHO_T}$ac_res" >&6; }
21341 # Is the header compilable?
21342 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21343 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21344 cat >conftest.$ac_ext <<_ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21350 $ac_includes_default
21351 #include <$ac_header>
21353 rm -f conftest.$ac_objext
21354 if { (ac_try="$ac_compile"
21355 case "(($ac_try" in
21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21359 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21360 (eval "$ac_compile") 2>conftest.er1
21362 grep -v '^ *+' conftest.er1 >conftest.err
21364 cat conftest.err >&5
21365 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21366 (exit $ac_status); } && {
21367 test -z "$ac_c_werror_flag" ||
21368 test ! -s conftest.err
21369 } && test -s conftest.$ac_objext; then
21370 ac_header_compiler=yes
21372 echo "$as_me: failed program was
:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21375 ac_header_compiler=no
21378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21379 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21380 echo "${ECHO_T}$ac_header_compiler" >&6; }
21382 # Is the header present?
21383 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21384 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21385 cat >conftest.$ac_ext <<_ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21391 #include <$ac_header>
21393 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21394 case "(($ac_try" in
21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21398 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21399 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21401 grep -v '^ *+' conftest.er1 >conftest.err
21403 cat conftest.err >&5
21404 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21405 (exit $ac_status); } >/dev/null && {
21406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21407 test ! -s conftest.err
21409 ac_header_preproc=yes
21411 echo "$as_me: failed program was
:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21414 ac_header_preproc=no
21417 rm -f conftest.err conftest.$ac_ext
21418 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21419 echo "${ECHO_T}$ac_header_preproc" >&6; }
21421 # So? What about this header?
21422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21424 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21425 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21426 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21428 ac_header_preproc=yes
21431 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21432 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21433 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21434 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21435 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21436 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21437 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21438 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21439 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21441 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21442 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21446 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21447 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21448 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21449 echo $ECHO_N "(cached
) $ECHO_C" >&6
21451 eval "$as_ac_Header=\
$ac_header_preproc"
21453 ac_res=`eval echo '${'$as_ac_Header'}'`
21454 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21455 echo "${ECHO_T}$ac_res" >&6; }
21458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21459 cat >>confdefs.h <<_ACEOF
21460 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21465 for ac_header in kerberosIV/des.h
21467 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21468 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21469 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21470 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21471 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21472 echo $ECHO_N "(cached
) $ECHO_C" >&6
21474 ac_res=`eval echo '${'$as_ac_Header'}'`
21475 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21476 echo "${ECHO_T}$ac_res" >&6; }
21478 # Is the header compilable?
21479 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21480 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21481 cat >conftest.$ac_ext <<_ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21487 $ac_includes_default
21488 #include <$ac_header>
21490 rm -f conftest.$ac_objext
21491 if { (ac_try="$ac_compile"
21492 case "(($ac_try" in
21493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21494 *) ac_try_echo=$ac_try;;
21496 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21497 (eval "$ac_compile") 2>conftest.er1
21499 grep -v '^ *+' conftest.er1 >conftest.err
21501 cat conftest.err >&5
21502 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21503 (exit $ac_status); } && {
21504 test -z "$ac_c_werror_flag" ||
21505 test ! -s conftest.err
21506 } && test -s conftest.$ac_objext; then
21507 ac_header_compiler=yes
21509 echo "$as_me: failed program was
:" >&5
21510 sed 's/^/| /' conftest.$ac_ext >&5
21512 ac_header_compiler=no
21515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21516 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21517 echo "${ECHO_T}$ac_header_compiler" >&6; }
21519 # Is the header present?
21520 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21521 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21522 cat >conftest.$ac_ext <<_ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 #include <$ac_header>
21530 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21531 case "(($ac_try" in
21532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21533 *) ac_try_echo=$ac_try;;
21535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21536 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21538 grep -v '^ *+' conftest.er1 >conftest.err
21540 cat conftest.err >&5
21541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21542 (exit $ac_status); } >/dev/null && {
21543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21544 test ! -s conftest.err
21546 ac_header_preproc=yes
21548 echo "$as_me: failed program was
:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21551 ac_header_preproc=no
21554 rm -f conftest.err conftest.$ac_ext
21555 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21556 echo "${ECHO_T}$ac_header_preproc" >&6; }
21558 # So? What about this header?
21559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21561 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21562 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21563 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21565 ac_header_preproc=yes
21568 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21569 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21570 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21571 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21572 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21573 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21574 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21575 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21576 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21578 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21579 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21583 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21584 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21585 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21586 echo $ECHO_N "(cached
) $ECHO_C" >&6
21588 eval "$as_ac_Header=\
$ac_header_preproc"
21590 ac_res=`eval echo '${'$as_ac_Header'}'`
21591 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21592 echo "${ECHO_T}$ac_res" >&6; }
21595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21596 cat >>confdefs.h <<_ACEOF
21597 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21602 for ac_header in kerberos/des.h
21604 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21605 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21606 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21607 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21608 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21609 echo $ECHO_N "(cached
) $ECHO_C" >&6
21611 ac_res=`eval echo '${'$as_ac_Header'}'`
21612 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21613 echo "${ECHO_T}$ac_res" >&6; }
21615 # Is the header compilable?
21616 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21617 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21618 cat >conftest.$ac_ext <<_ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 $ac_includes_default
21625 #include <$ac_header>
21627 rm -f conftest.$ac_objext
21628 if { (ac_try="$ac_compile"
21629 case "(($ac_try" in
21630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21631 *) ac_try_echo=$ac_try;;
21633 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21634 (eval "$ac_compile") 2>conftest.er1
21636 grep -v '^ *+' conftest.er1 >conftest.err
21638 cat conftest.err >&5
21639 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21640 (exit $ac_status); } && {
21641 test -z "$ac_c_werror_flag" ||
21642 test ! -s conftest.err
21643 } && test -s conftest.$ac_objext; then
21644 ac_header_compiler=yes
21646 echo "$as_me: failed program was
:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21649 ac_header_compiler=no
21652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21653 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21654 echo "${ECHO_T}$ac_header_compiler" >&6; }
21656 # Is the header present?
21657 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21658 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21659 cat >conftest.$ac_ext <<_ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21665 #include <$ac_header>
21667 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21668 case "(($ac_try" in
21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670 *) ac_try_echo=$ac_try;;
21672 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21673 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21675 grep -v '^ *+' conftest.er1 >conftest.err
21677 cat conftest.err >&5
21678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21679 (exit $ac_status); } >/dev/null && {
21680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21681 test ! -s conftest.err
21683 ac_header_preproc=yes
21685 echo "$as_me: failed program was
:" >&5
21686 sed 's/^/| /' conftest.$ac_ext >&5
21688 ac_header_preproc=no
21691 rm -f conftest.err conftest.$ac_ext
21692 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21693 echo "${ECHO_T}$ac_header_preproc" >&6; }
21695 # So? What about this header?
21696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21698 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21699 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21700 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21702 ac_header_preproc=yes
21705 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21706 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21707 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21708 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21709 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21710 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21711 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21712 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21713 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21715 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21716 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21720 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21721 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21722 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21723 echo $ECHO_N "(cached
) $ECHO_C" >&6
21725 eval "$as_ac_Header=\
$ac_header_preproc"
21727 ac_res=`eval echo '${'$as_ac_Header'}'`
21728 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21729 echo "${ECHO_T}$ac_res" >&6; }
21732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21733 cat >>confdefs.h <<_ACEOF
21734 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21750 for ac_header in krb.h
21752 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21753 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21754 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21755 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21756 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21757 echo $ECHO_N "(cached
) $ECHO_C" >&6
21759 ac_res=`eval echo '${'$as_ac_Header'}'`
21760 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21761 echo "${ECHO_T}$ac_res" >&6; }
21763 # Is the header compilable?
21764 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21765 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21766 cat >conftest.$ac_ext <<_ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h. */
21772 $ac_includes_default
21773 #include <$ac_header>
21775 rm -f conftest.$ac_objext
21776 if { (ac_try="$ac_compile"
21777 case "(($ac_try" in
21778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779 *) ac_try_echo=$ac_try;;
21781 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21782 (eval "$ac_compile") 2>conftest.er1
21784 grep -v '^ *+' conftest.er1 >conftest.err
21786 cat conftest.err >&5
21787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21788 (exit $ac_status); } && {
21789 test -z "$ac_c_werror_flag" ||
21790 test ! -s conftest.err
21791 } && test -s conftest.$ac_objext; then
21792 ac_header_compiler=yes
21794 echo "$as_me: failed program was
:" >&5
21795 sed 's/^/| /' conftest.$ac_ext >&5
21797 ac_header_compiler=no
21800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21801 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21802 echo "${ECHO_T}$ac_header_compiler" >&6; }
21804 # Is the header present?
21805 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21806 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21807 cat >conftest.$ac_ext <<_ACEOF
21810 cat confdefs.h >>conftest.$ac_ext
21811 cat >>conftest.$ac_ext <<_ACEOF
21812 /* end confdefs.h. */
21813 #include <$ac_header>
21815 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21816 case "(($ac_try" in
21817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21818 *) ac_try_echo=$ac_try;;
21820 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21821 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21823 grep -v '^ *+' conftest.er1 >conftest.err
21825 cat conftest.err >&5
21826 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21827 (exit $ac_status); } >/dev/null && {
21828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21829 test ! -s conftest.err
21831 ac_header_preproc=yes
21833 echo "$as_me: failed program was
:" >&5
21834 sed 's/^/| /' conftest.$ac_ext >&5
21836 ac_header_preproc=no
21839 rm -f conftest.err conftest.$ac_ext
21840 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21841 echo "${ECHO_T}$ac_header_preproc" >&6; }
21843 # So? What about this header?
21844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21846 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21847 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21848 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21850 ac_header_preproc=yes
21853 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21854 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21855 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21856 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21857 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21858 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21859 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21860 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21861 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21863 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21864 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21868 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21869 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21870 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21871 echo $ECHO_N "(cached
) $ECHO_C" >&6
21873 eval "$as_ac_Header=\
$ac_header_preproc"
21875 ac_res=`eval echo '${'$as_ac_Header'}'`
21876 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21877 echo "${ECHO_T}$ac_res" >&6; }
21880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21881 cat >>confdefs.h <<_ACEOF
21882 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21887 for ac_header in kerberosIV/krb.h
21889 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21890 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21891 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21892 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21893 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21894 echo $ECHO_N "(cached
) $ECHO_C" >&6
21896 ac_res=`eval echo '${'$as_ac_Header'}'`
21897 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21898 echo "${ECHO_T}$ac_res" >&6; }
21900 # Is the header compilable?
21901 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21902 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21903 cat >conftest.$ac_ext <<_ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h. */
21909 $ac_includes_default
21910 #include <$ac_header>
21912 rm -f conftest.$ac_objext
21913 if { (ac_try="$ac_compile"
21914 case "(($ac_try" in
21915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21916 *) ac_try_echo=$ac_try;;
21918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21919 (eval "$ac_compile") 2>conftest.er1
21921 grep -v '^ *+' conftest.er1 >conftest.err
21923 cat conftest.err >&5
21924 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21925 (exit $ac_status); } && {
21926 test -z "$ac_c_werror_flag" ||
21927 test ! -s conftest.err
21928 } && test -s conftest.$ac_objext; then
21929 ac_header_compiler=yes
21931 echo "$as_me: failed program was
:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21934 ac_header_compiler=no
21937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21938 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21939 echo "${ECHO_T}$ac_header_compiler" >&6; }
21941 # Is the header present?
21942 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21943 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21944 cat >conftest.$ac_ext <<_ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h. */
21950 #include <$ac_header>
21952 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21953 case "(($ac_try" in
21954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21955 *) ac_try_echo=$ac_try;;
21957 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21958 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21960 grep -v '^ *+' conftest.er1 >conftest.err
21962 cat conftest.err >&5
21963 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21964 (exit $ac_status); } >/dev/null && {
21965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21966 test ! -s conftest.err
21968 ac_header_preproc=yes
21970 echo "$as_me: failed program was
:" >&5
21971 sed 's/^/| /' conftest.$ac_ext >&5
21973 ac_header_preproc=no
21976 rm -f conftest.err conftest.$ac_ext
21977 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21978 echo "${ECHO_T}$ac_header_preproc" >&6; }
21980 # So? What about this header?
21981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21983 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21984 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21985 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21987 ac_header_preproc=yes
21990 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21991 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21992 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21993 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21994 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21995 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21996 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21997 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21998 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22000 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22001 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22005 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22006 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22007 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22008 echo $ECHO_N "(cached
) $ECHO_C" >&6
22010 eval "$as_ac_Header=\
$ac_header_preproc"
22012 ac_res=`eval echo '${'$as_ac_Header'}'`
22013 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22014 echo "${ECHO_T}$ac_res" >&6; }
22017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22018 cat >>confdefs.h <<_ACEOF
22019 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22024 for ac_header in kerberos/krb.h
22026 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22027 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22028 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22029 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22030 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22031 echo $ECHO_N "(cached
) $ECHO_C" >&6
22033 ac_res=`eval echo '${'$as_ac_Header'}'`
22034 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22035 echo "${ECHO_T}$ac_res" >&6; }
22037 # Is the header compilable?
22038 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22039 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22040 cat >conftest.$ac_ext <<_ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h. */
22046 $ac_includes_default
22047 #include <$ac_header>
22049 rm -f conftest.$ac_objext
22050 if { (ac_try="$ac_compile"
22051 case "(($ac_try" in
22052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053 *) ac_try_echo=$ac_try;;
22055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22056 (eval "$ac_compile") 2>conftest.er1
22058 grep -v '^ *+' conftest.er1 >conftest.err
22060 cat conftest.err >&5
22061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22062 (exit $ac_status); } && {
22063 test -z "$ac_c_werror_flag" ||
22064 test ! -s conftest.err
22065 } && test -s conftest.$ac_objext; then
22066 ac_header_compiler=yes
22068 echo "$as_me: failed program was
:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22071 ac_header_compiler=no
22074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22076 echo "${ECHO_T}$ac_header_compiler" >&6; }
22078 # Is the header present?
22079 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22080 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22081 cat >conftest.$ac_ext <<_ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h. */
22087 #include <$ac_header>
22089 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22090 case "(($ac_try" in
22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22094 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22095 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22097 grep -v '^ *+' conftest.er1 >conftest.err
22099 cat conftest.err >&5
22100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22101 (exit $ac_status); } >/dev/null && {
22102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22103 test ! -s conftest.err
22105 ac_header_preproc=yes
22107 echo "$as_me: failed program was
:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22110 ac_header_preproc=no
22113 rm -f conftest.err conftest.$ac_ext
22114 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22115 echo "${ECHO_T}$ac_header_preproc" >&6; }
22117 # So? What about this header?
22118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22120 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22121 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22122 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22124 ac_header_preproc=yes
22127 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22128 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22129 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22130 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22131 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22132 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22133 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22134 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22135 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22137 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22138 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22142 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22143 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22144 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22145 echo $ECHO_N "(cached
) $ECHO_C" >&6
22147 eval "$as_ac_Header=\
$ac_header_preproc"
22149 ac_res=`eval echo '${'$as_ac_Header'}'`
22150 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22151 echo "${ECHO_T}$ac_res" >&6; }
22154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22155 cat >>confdefs.h <<_ACEOF
22156 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22173 for ac_header in com_err.h
22175 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22176 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22177 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22178 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22179 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22180 echo $ECHO_N "(cached
) $ECHO_C" >&6
22182 ac_res=`eval echo '${'$as_ac_Header'}'`
22183 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22184 echo "${ECHO_T}$ac_res" >&6; }
22186 # Is the header compilable?
22187 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22188 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22189 cat >conftest.$ac_ext <<_ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22195 $ac_includes_default
22196 #include <$ac_header>
22198 rm -f conftest.$ac_objext
22199 if { (ac_try="$ac_compile"
22200 case "(($ac_try" in
22201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22202 *) ac_try_echo=$ac_try;;
22204 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22205 (eval "$ac_compile") 2>conftest.er1
22207 grep -v '^ *+' conftest.er1 >conftest.err
22209 cat conftest.err >&5
22210 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22211 (exit $ac_status); } && {
22212 test -z "$ac_c_werror_flag" ||
22213 test ! -s conftest.err
22214 } && test -s conftest.$ac_objext; then
22215 ac_header_compiler=yes
22217 echo "$as_me: failed program was
:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22220 ac_header_compiler=no
22223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22224 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22225 echo "${ECHO_T}$ac_header_compiler" >&6; }
22227 # Is the header present?
22228 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22229 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22230 cat >conftest.$ac_ext <<_ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22236 #include <$ac_header>
22238 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22239 case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22243 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22246 grep -v '^ *+' conftest.er1 >conftest.err
22248 cat conftest.err >&5
22249 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22250 (exit $ac_status); } >/dev/null && {
22251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22252 test ! -s conftest.err
22254 ac_header_preproc=yes
22256 echo "$as_me: failed program was
:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22259 ac_header_preproc=no
22262 rm -f conftest.err conftest.$ac_ext
22263 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22264 echo "${ECHO_T}$ac_header_preproc" >&6; }
22266 # So? What about this header?
22267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22269 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22270 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22271 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22273 ac_header_preproc=yes
22276 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22277 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22278 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22279 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22280 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22281 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22282 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22283 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22284 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22286 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22287 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22291 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22292 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22293 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22294 echo $ECHO_N "(cached
) $ECHO_C" >&6
22296 eval "$as_ac_Header=\
$ac_header_preproc"
22298 ac_res=`eval echo '${'$as_ac_Header'}'`
22299 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22300 echo "${ECHO_T}$ac_res" >&6; }
22303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22304 cat >>confdefs.h <<_ACEOF
22305 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22314 # Solaris requires -lintl if you want strerror (which calls dgettext)
22315 # to return localized messages.
22317 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22318 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22319 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22320 echo $ECHO_N "(cached
) $ECHO_C" >&6
22322 ac_check_lib_save_LIBS=$LIBS
22323 LIBS="-lintl $LIBS"
22324 cat >conftest.$ac_ext <<_ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h. */
22331 /* Override any GCC internal prototype to avoid an error.
22332 Use char because int might match the return type of a GCC
22333 builtin and then its argument prototype would still apply. */
22341 return dgettext ();
22346 rm -f conftest.$ac_objext conftest$ac_exeext
22347 if { (ac_try="$ac_link"
22348 case "(($ac_try" in
22349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22350 *) ac_try_echo=$ac_try;;
22352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22353 (eval "$ac_link") 2>conftest.er1
22355 grep -v '^ *+' conftest.er1 >conftest.err
22357 cat conftest.err >&5
22358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22359 (exit $ac_status); } && {
22360 test -z "$ac_c_werror_flag" ||
22361 test ! -s conftest.err
22362 } && test -s conftest$ac_exeext &&
22363 $as_test_x conftest$ac_exeext; then
22364 ac_cv_lib_intl_dgettext=yes
22366 echo "$as_me: failed program was
:" >&5
22367 sed 's/^/| /' conftest.$ac_ext >&5
22369 ac_cv_lib_intl_dgettext=no
22372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22373 conftest$ac_exeext conftest.$ac_ext
22374 LIBS=$ac_check_lib_save_LIBS
22376 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22377 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22378 if test $ac_cv_lib_intl_dgettext = yes; then
22379 cat >>confdefs.h <<_ACEOF
22380 #define HAVE_LIBINTL 1
22383 LIBS="-lintl $LIBS"
22388 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22389 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22390 if test "${emacs_cv_localtime_cache+set}" = set; then
22391 echo $ECHO_N "(cached
) $ECHO_C" >&6
22393 if test x$ac_cv_func_tzset = xyes; then
22394 if test "$cross_compiling" = yes; then
22395 # If we have tzset, assume the worst when cross-compiling.
22396 emacs_cv_localtime_cache=yes
22398 cat >conftest.$ac_ext <<_ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h. */
22405 extern char **environ;
22409 for (to = from = environ; (*to = *from); from++)
22410 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22413 char TZ_GMT0[] = "TZ
=GMT0
";
22414 char TZ_PST8[] = "TZ
=PST8
";
22417 time_t now = time ((time_t *) 0);
22418 int hour_GMT0, hour_unset;
22419 if (putenv (TZ_GMT0) != 0)
22421 hour_GMT0 = localtime (&now)->tm_hour;
22423 hour_unset = localtime (&now)->tm_hour;
22424 if (putenv (TZ_PST8) != 0)
22426 if (localtime (&now)->tm_hour == hour_GMT0)
22429 if (localtime (&now)->tm_hour != hour_unset)
22434 rm -f conftest$ac_exeext
22435 if { (ac_try="$ac_link"
22436 case "(($ac_try" in
22437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438 *) ac_try_echo=$ac_try;;
22440 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22441 (eval "$ac_link") 2>&5
22443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22445 { (case "(($ac_try" in
22446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22447 *) ac_try_echo=$ac_try;;
22449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22450 (eval "$ac_try") 2>&5
22452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22453 (exit $ac_status); }; }; then
22454 emacs_cv_localtime_cache=no
22456 echo "$as_me: program exited with status
$ac_status" >&5
22457 echo "$as_me: failed program was
:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22460 ( exit $ac_status )
22461 emacs_cv_localtime_cache=yes
22463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22468 # If we lack tzset, report that localtime does not cache TZ,
22469 # since we can't invalidate the cache if we don't have tzset.
22470 emacs_cv_localtime_cache=no
22473 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22474 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22475 if test $emacs_cv_localtime_cache = yes; then
22477 cat >>confdefs.h <<\_ACEOF
22478 #define LOCALTIME_CACHE 1
22483 if test "x
$HAVE_TIMEVAL" = xyes; then
22485 for ac_func in gettimeofday
22487 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22488 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22489 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22490 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22491 echo $ECHO_N "(cached
) $ECHO_C" >&6
22493 cat >conftest.$ac_ext <<_ACEOF
22496 cat confdefs.h >>conftest.$ac_ext
22497 cat >>conftest.$ac_ext <<_ACEOF
22498 /* end confdefs.h. */
22499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22501 #define $ac_func innocuous_$ac_func
22503 /* System header to define __stub macros and hopefully few prototypes,
22504 which can conflict with char $ac_func (); below.
22505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22506 <limits.h> exists even on freestanding compilers. */
22509 # include <limits.h>
22511 # include <assert.h>
22516 /* Override any GCC internal prototype to avoid an error.
22517 Use char because int might match the return type of a GCC
22518 builtin and then its argument prototype would still apply. */
22523 /* The GNU C library defines this for functions which it implements
22524 to always fail with ENOSYS. Some functions are actually named
22525 something starting with __ and the normal name is an alias. */
22526 #if defined __stub_$ac_func || defined __stub___$ac_func
22533 return $ac_func ();
22538 rm -f conftest.$ac_objext conftest$ac_exeext
22539 if { (ac_try="$ac_link"
22540 case "(($ac_try" in
22541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22542 *) ac_try_echo=$ac_try;;
22544 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22545 (eval "$ac_link") 2>conftest.er1
22547 grep -v '^ *+' conftest.er1 >conftest.err
22549 cat conftest.err >&5
22550 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22551 (exit $ac_status); } && {
22552 test -z "$ac_c_werror_flag" ||
22553 test ! -s conftest.err
22554 } && test -s conftest$ac_exeext &&
22555 $as_test_x conftest$ac_exeext; then
22556 eval "$as_ac_var=yes"
22558 echo "$as_me: failed program was
:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22561 eval "$as_ac_var=no
"
22564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22565 conftest$ac_exeext conftest.$ac_ext
22567 ac_res=`eval echo '${'$as_ac_var'}'`
22568 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22569 echo "${ECHO_T}$ac_res" >&6; }
22570 if test `eval echo '${'$as_ac_var'}'` = yes; then
22571 cat >>confdefs.h <<_ACEOF
22572 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22578 if test $ac_cv_func_gettimeofday = yes; then
22579 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22580 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22581 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22582 echo $ECHO_N "(cached
) $ECHO_C" >&6
22584 cat >conftest.$ac_ext <<_ACEOF
22587 cat confdefs.h >>conftest.$ac_ext
22588 cat >>conftest.$ac_ext <<_ACEOF
22589 /* end confdefs.h. */
22591 #ifdef TIME_WITH_SYS_TIME
22592 #include <sys/time.h>
22595 #ifdef HAVE_SYS_TIME_H
22596 #include <sys/time.h>
22604 struct timeval time;
22605 gettimeofday (&time, 0);
22610 rm -f conftest.$ac_objext
22611 if { (ac_try="$ac_compile"
22612 case "(($ac_try" in
22613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614 *) ac_try_echo=$ac_try;;
22616 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22617 (eval "$ac_compile") 2>conftest.er1
22619 grep -v '^ *+' conftest.er1 >conftest.err
22621 cat conftest.err >&5
22622 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22623 (exit $ac_status); } && {
22624 test -z "$ac_c_werror_flag" ||
22625 test ! -s conftest.err
22626 } && test -s conftest.$ac_objext; then
22627 emacs_cv_gettimeofday_two_arguments=yes
22629 echo "$as_me: failed program was
:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22632 emacs_cv_gettimeofday_two_arguments=no
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22637 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22638 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22639 if test $emacs_cv_gettimeofday_two_arguments = no; then
22641 cat >>confdefs.h <<\_ACEOF
22642 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22650 { echo "$as_me:$LINENO: checking
for socket
" >&5
22651 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22652 if test "${ac_cv_func_socket+set}" = set; then
22653 echo $ECHO_N "(cached
) $ECHO_C" >&6
22655 cat >conftest.$ac_ext <<_ACEOF
22658 cat confdefs.h >>conftest.$ac_ext
22659 cat >>conftest.$ac_ext <<_ACEOF
22660 /* end confdefs.h. */
22661 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22663 #define socket innocuous_socket
22665 /* System header to define __stub macros and hopefully few prototypes,
22666 which can conflict with char socket (); below.
22667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22668 <limits.h> exists even on freestanding compilers. */
22671 # include <limits.h>
22673 # include <assert.h>
22678 /* Override any GCC internal prototype to avoid an error.
22679 Use char because int might match the return type of a GCC
22680 builtin and then its argument prototype would still apply. */
22685 /* The GNU C library defines this for functions which it implements
22686 to always fail with ENOSYS. Some functions are actually named
22687 something starting with __ and the normal name is an alias. */
22688 #if defined __stub_socket || defined __stub___socket
22700 rm -f conftest.$ac_objext conftest$ac_exeext
22701 if { (ac_try="$ac_link"
22702 case "(($ac_try" in
22703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22704 *) ac_try_echo=$ac_try;;
22706 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22707 (eval "$ac_link") 2>conftest.er1
22709 grep -v '^ *+' conftest.er1 >conftest.err
22711 cat conftest.err >&5
22712 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22713 (exit $ac_status); } && {
22714 test -z "$ac_c_werror_flag" ||
22715 test ! -s conftest.err
22716 } && test -s conftest$ac_exeext &&
22717 $as_test_x conftest$ac_exeext; then
22718 ac_cv_func_socket=yes
22720 echo "$as_me: failed program was
:" >&5
22721 sed 's/^/| /' conftest.$ac_ext >&5
22723 ac_cv_func_socket=no
22726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22727 conftest$ac_exeext conftest.$ac_ext
22729 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22730 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22731 if test $ac_cv_func_socket = yes; then
22737 if test $ok_so_far = yes; then
22738 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22739 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22740 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22741 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22742 echo $ECHO_N "(cached
) $ECHO_C" >&6
22744 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22745 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22747 # Is the header compilable?
22748 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22749 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22750 cat >conftest.$ac_ext <<_ACEOF
22753 cat confdefs.h >>conftest.$ac_ext
22754 cat >>conftest.$ac_ext <<_ACEOF
22755 /* end confdefs.h. */
22756 $ac_includes_default
22757 #include <netinet/in.h>
22759 rm -f conftest.$ac_objext
22760 if { (ac_try="$ac_compile"
22761 case "(($ac_try" in
22762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763 *) ac_try_echo=$ac_try;;
22765 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22766 (eval "$ac_compile") 2>conftest.er1
22768 grep -v '^ *+' conftest.er1 >conftest.err
22770 cat conftest.err >&5
22771 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22772 (exit $ac_status); } && {
22773 test -z "$ac_c_werror_flag" ||
22774 test ! -s conftest.err
22775 } && test -s conftest.$ac_objext; then
22776 ac_header_compiler=yes
22778 echo "$as_me: failed program was
:" >&5
22779 sed 's/^/| /' conftest.$ac_ext >&5
22781 ac_header_compiler=no
22784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22785 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22786 echo "${ECHO_T}$ac_header_compiler" >&6; }
22788 # Is the header present?
22789 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22790 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22791 cat >conftest.$ac_ext <<_ACEOF
22794 cat confdefs.h >>conftest.$ac_ext
22795 cat >>conftest.$ac_ext <<_ACEOF
22796 /* end confdefs.h. */
22797 #include <netinet/in.h>
22799 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22800 case "(($ac_try" in
22801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22802 *) ac_try_echo=$ac_try;;
22804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22805 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22807 grep -v '^ *+' conftest.er1 >conftest.err
22809 cat conftest.err >&5
22810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22811 (exit $ac_status); } >/dev/null && {
22812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22813 test ! -s conftest.err
22815 ac_header_preproc=yes
22817 echo "$as_me: failed program was
:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22820 ac_header_preproc=no
22823 rm -f conftest.err conftest.$ac_ext
22824 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22825 echo "${ECHO_T}$ac_header_preproc" >&6; }
22827 # So? What about this header?
22828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22830 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22831 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22832 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22833 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22834 ac_header_preproc=yes
22837 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22838 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22839 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22840 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22841 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22842 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22843 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22844 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22845 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22846 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22847 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22848 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22852 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22853 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22854 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22855 echo $ECHO_N "(cached
) $ECHO_C" >&6
22857 ac_cv_header_netinet_in_h=$ac_header_preproc
22859 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22860 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22863 if test $ac_cv_header_netinet_in_h = yes; then
22871 if test $ok_so_far = yes; then
22872 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22873 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22874 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22875 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22876 echo $ECHO_N "(cached
) $ECHO_C" >&6
22878 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22879 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22881 # Is the header compilable?
22882 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22883 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22884 cat >conftest.$ac_ext <<_ACEOF
22887 cat confdefs.h >>conftest.$ac_ext
22888 cat >>conftest.$ac_ext <<_ACEOF
22889 /* end confdefs.h. */
22890 $ac_includes_default
22891 #include <arpa/inet.h>
22893 rm -f conftest.$ac_objext
22894 if { (ac_try="$ac_compile"
22895 case "(($ac_try" in
22896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22897 *) ac_try_echo=$ac_try;;
22899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22900 (eval "$ac_compile") 2>conftest.er1
22902 grep -v '^ *+' conftest.er1 >conftest.err
22904 cat conftest.err >&5
22905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22906 (exit $ac_status); } && {
22907 test -z "$ac_c_werror_flag" ||
22908 test ! -s conftest.err
22909 } && test -s conftest.$ac_objext; then
22910 ac_header_compiler=yes
22912 echo "$as_me: failed program was
:" >&5
22913 sed 's/^/| /' conftest.$ac_ext >&5
22915 ac_header_compiler=no
22918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22919 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22920 echo "${ECHO_T}$ac_header_compiler" >&6; }
22922 # Is the header present?
22923 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22924 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22925 cat >conftest.$ac_ext <<_ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h. */
22931 #include <arpa/inet.h>
22933 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22934 case "(($ac_try" in
22935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936 *) ac_try_echo=$ac_try;;
22938 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22939 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22941 grep -v '^ *+' conftest.er1 >conftest.err
22943 cat conftest.err >&5
22944 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22945 (exit $ac_status); } >/dev/null && {
22946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22947 test ! -s conftest.err
22949 ac_header_preproc=yes
22951 echo "$as_me: failed program was
:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22954 ac_header_preproc=no
22957 rm -f conftest.err conftest.$ac_ext
22958 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22959 echo "${ECHO_T}$ac_header_preproc" >&6; }
22961 # So? What about this header?
22962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22964 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22965 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22966 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22967 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22968 ac_header_preproc=yes
22971 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22972 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22973 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22974 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22975 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22976 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22977 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22978 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22979 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22980 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22981 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22982 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22986 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22987 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22988 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22989 echo $ECHO_N "(cached
) $ECHO_C" >&6
22991 ac_cv_header_arpa_inet_h=$ac_header_preproc
22993 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22994 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22997 if test $ac_cv_header_arpa_inet_h = yes; then
23005 if test $ok_so_far = yes; then
23007 cat >>confdefs.h <<\_ACEOF
23008 #define HAVE_INET_SOCKETS 1
23014 for ac_header in sys/ioctl.h
23016 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23017 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23018 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23019 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23020 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23021 echo $ECHO_N "(cached
) $ECHO_C" >&6
23023 ac_res=`eval echo '${'$as_ac_Header'}'`
23024 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23025 echo "${ECHO_T}$ac_res" >&6; }
23027 # Is the header compilable?
23028 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23029 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23030 cat >conftest.$ac_ext <<_ACEOF
23033 cat confdefs.h >>conftest.$ac_ext
23034 cat >>conftest.$ac_ext <<_ACEOF
23035 /* end confdefs.h. */
23036 $ac_includes_default
23037 #include <$ac_header>
23039 rm -f conftest.$ac_objext
23040 if { (ac_try="$ac_compile"
23041 case "(($ac_try" in
23042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043 *) ac_try_echo=$ac_try;;
23045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23046 (eval "$ac_compile") 2>conftest.er1
23048 grep -v '^ *+' conftest.er1 >conftest.err
23050 cat conftest.err >&5
23051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23052 (exit $ac_status); } && {
23053 test -z "$ac_c_werror_flag" ||
23054 test ! -s conftest.err
23055 } && test -s conftest.$ac_objext; then
23056 ac_header_compiler=yes
23058 echo "$as_me: failed program was
:" >&5
23059 sed 's/^/| /' conftest.$ac_ext >&5
23061 ac_header_compiler=no
23064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23065 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23066 echo "${ECHO_T}$ac_header_compiler" >&6; }
23068 # Is the header present?
23069 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23070 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23071 cat >conftest.$ac_ext <<_ACEOF
23074 cat confdefs.h >>conftest.$ac_ext
23075 cat >>conftest.$ac_ext <<_ACEOF
23076 /* end confdefs.h. */
23077 #include <$ac_header>
23079 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23080 case "(($ac_try" in
23081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23082 *) ac_try_echo=$ac_try;;
23084 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23085 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23087 grep -v '^ *+' conftest.er1 >conftest.err
23089 cat conftest.err >&5
23090 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23091 (exit $ac_status); } >/dev/null && {
23092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23093 test ! -s conftest.err
23095 ac_header_preproc=yes
23097 echo "$as_me: failed program was
:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23100 ac_header_preproc=no
23103 rm -f conftest.err conftest.$ac_ext
23104 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23105 echo "${ECHO_T}$ac_header_preproc" >&6; }
23107 # So? What about this header?
23108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23110 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23111 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23112 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23114 ac_header_preproc=yes
23117 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23118 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23119 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23120 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23121 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23122 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23123 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23124 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23125 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23127 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23128 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23132 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23133 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23134 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23135 echo $ECHO_N "(cached
) $ECHO_C" >&6
23137 eval "$as_ac_Header=\
$ac_header_preproc"
23139 ac_res=`eval echo '${'$as_ac_Header'}'`
23140 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23141 echo "${ECHO_T}$ac_res" >&6; }
23144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23145 cat >>confdefs.h <<_ACEOF
23146 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23154 if test -f /usr/lpp/X11/bin/smt.exp; then
23156 cat >>confdefs.h <<\_ACEOF
23157 #define HAVE_AIX_SMT_EXP 1
23162 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
23163 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
23164 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23165 { echo "$as_me:$LINENO: result
: yes" >&5
23166 echo "${ECHO_T}yes" >&6; }
23168 cat >>confdefs.h <<\_ACEOF
23169 #define HAVE_DEV_PTMX 1
23173 { echo "$as_me:$LINENO: result
: no
" >&5
23174 echo "${ECHO_T}no
" >&6; }
23177 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
23178 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
23179 if test "${ac_cv_type_pid_t+set}" = set; then
23180 echo $ECHO_N "(cached
) $ECHO_C" >&6
23182 cat >conftest.$ac_ext <<_ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23188 $ac_includes_default
23189 typedef pid_t ac__type_new_;
23193 if ((ac__type_new_ *) 0)
23195 if (sizeof (ac__type_new_))
23201 rm -f conftest.$ac_objext
23202 if { (ac_try="$ac_compile"
23203 case "(($ac_try" in
23204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23205 *) ac_try_echo=$ac_try;;
23207 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23208 (eval "$ac_compile") 2>conftest.er1
23210 grep -v '^ *+' conftest.er1 >conftest.err
23212 cat conftest.err >&5
23213 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23214 (exit $ac_status); } && {
23215 test -z "$ac_c_werror_flag" ||
23216 test ! -s conftest.err
23217 } && test -s conftest.$ac_objext; then
23218 ac_cv_type_pid_t=yes
23220 echo "$as_me: failed program was
:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23223 ac_cv_type_pid_t=no
23226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23228 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
23229 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23230 if test $ac_cv_type_pid_t = yes; then
23234 cat >>confdefs.h <<_ACEOF
23241 for ac_header in vfork.h
23243 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23244 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23245 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23246 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23247 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23248 echo $ECHO_N "(cached
) $ECHO_C" >&6
23250 ac_res=`eval echo '${'$as_ac_Header'}'`
23251 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23252 echo "${ECHO_T}$ac_res" >&6; }
23254 # Is the header compilable?
23255 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23256 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23257 cat >conftest.$ac_ext <<_ACEOF
23260 cat confdefs.h >>conftest.$ac_ext
23261 cat >>conftest.$ac_ext <<_ACEOF
23262 /* end confdefs.h. */
23263 $ac_includes_default
23264 #include <$ac_header>
23266 rm -f conftest.$ac_objext
23267 if { (ac_try="$ac_compile"
23268 case "(($ac_try" in
23269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270 *) ac_try_echo=$ac_try;;
23272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23273 (eval "$ac_compile") 2>conftest.er1
23275 grep -v '^ *+' conftest.er1 >conftest.err
23277 cat conftest.err >&5
23278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23279 (exit $ac_status); } && {
23280 test -z "$ac_c_werror_flag" ||
23281 test ! -s conftest.err
23282 } && test -s conftest.$ac_objext; then
23283 ac_header_compiler=yes
23285 echo "$as_me: failed program was
:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23288 ac_header_compiler=no
23291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23292 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23293 echo "${ECHO_T}$ac_header_compiler" >&6; }
23295 # Is the header present?
23296 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23297 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23298 cat >conftest.$ac_ext <<_ACEOF
23301 cat confdefs.h >>conftest.$ac_ext
23302 cat >>conftest.$ac_ext <<_ACEOF
23303 /* end confdefs.h. */
23304 #include <$ac_header>
23306 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23307 case "(($ac_try" in
23308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23309 *) ac_try_echo=$ac_try;;
23311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23312 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23314 grep -v '^ *+' conftest.er1 >conftest.err
23316 cat conftest.err >&5
23317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23318 (exit $ac_status); } >/dev/null && {
23319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23320 test ! -s conftest.err
23322 ac_header_preproc=yes
23324 echo "$as_me: failed program was
:" >&5
23325 sed 's/^/| /' conftest.$ac_ext >&5
23327 ac_header_preproc=no
23330 rm -f conftest.err conftest.$ac_ext
23331 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23332 echo "${ECHO_T}$ac_header_preproc" >&6; }
23334 # So? What about this header?
23335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23337 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23338 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23339 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23341 ac_header_preproc=yes
23344 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23345 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23346 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23347 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23348 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23349 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23350 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23351 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23352 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23354 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23355 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23359 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23360 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23361 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23362 echo $ECHO_N "(cached
) $ECHO_C" >&6
23364 eval "$as_ac_Header=\
$ac_header_preproc"
23366 ac_res=`eval echo '${'$as_ac_Header'}'`
23367 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23368 echo "${ECHO_T}$ac_res" >&6; }
23371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23372 cat >>confdefs.h <<_ACEOF
23373 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23382 for ac_func in fork vfork
23384 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23385 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23386 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23387 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23388 echo $ECHO_N "(cached
) $ECHO_C" >&6
23390 cat >conftest.$ac_ext <<_ACEOF
23393 cat confdefs.h >>conftest.$ac_ext
23394 cat >>conftest.$ac_ext <<_ACEOF
23395 /* end confdefs.h. */
23396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23398 #define $ac_func innocuous_$ac_func
23400 /* System header to define __stub macros and hopefully few prototypes,
23401 which can conflict with char $ac_func (); below.
23402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23403 <limits.h> exists even on freestanding compilers. */
23406 # include <limits.h>
23408 # include <assert.h>
23413 /* Override any GCC internal prototype to avoid an error.
23414 Use char because int might match the return type of a GCC
23415 builtin and then its argument prototype would still apply. */
23420 /* The GNU C library defines this for functions which it implements
23421 to always fail with ENOSYS. Some functions are actually named
23422 something starting with __ and the normal name is an alias. */
23423 #if defined __stub_$ac_func || defined __stub___$ac_func
23430 return $ac_func ();
23435 rm -f conftest.$ac_objext conftest$ac_exeext
23436 if { (ac_try="$ac_link"
23437 case "(($ac_try" in
23438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23439 *) ac_try_echo=$ac_try;;
23441 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23442 (eval "$ac_link") 2>conftest.er1
23444 grep -v '^ *+' conftest.er1 >conftest.err
23446 cat conftest.err >&5
23447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23448 (exit $ac_status); } && {
23449 test -z "$ac_c_werror_flag" ||
23450 test ! -s conftest.err
23451 } && test -s conftest$ac_exeext &&
23452 $as_test_x conftest$ac_exeext; then
23453 eval "$as_ac_var=yes"
23455 echo "$as_me: failed program was
:" >&5
23456 sed 's/^/| /' conftest.$ac_ext >&5
23458 eval "$as_ac_var=no
"
23461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23462 conftest$ac_exeext conftest.$ac_ext
23464 ac_res=`eval echo '${'$as_ac_var'}'`
23465 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23466 echo "${ECHO_T}$ac_res" >&6; }
23467 if test `eval echo '${'$as_ac_var'}'` = yes; then
23468 cat >>confdefs.h <<_ACEOF
23469 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23475 if test "x
$ac_cv_func_fork" = xyes; then
23476 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23477 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23478 if test "${ac_cv_func_fork_works+set}" = set; then
23479 echo $ECHO_N "(cached
) $ECHO_C" >&6
23481 if test "$cross_compiling" = yes; then
23482 ac_cv_func_fork_works=cross
23484 cat >conftest.$ac_ext <<_ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h. */
23490 $ac_includes_default
23495 /* By Ruediger Kuhlmann. */
23496 return fork () < 0;
23502 rm -f conftest$ac_exeext
23503 if { (ac_try="$ac_link"
23504 case "(($ac_try" in
23505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23506 *) ac_try_echo=$ac_try;;
23508 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23509 (eval "$ac_link") 2>&5
23511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23513 { (case "(($ac_try" in
23514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23515 *) ac_try_echo=$ac_try;;
23517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23518 (eval "$ac_try") 2>&5
23520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23521 (exit $ac_status); }; }; then
23522 ac_cv_func_fork_works=yes
23524 echo "$as_me: program exited with status
$ac_status" >&5
23525 echo "$as_me: failed program was
:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23528 ( exit $ac_status )
23529 ac_cv_func_fork_works=no
23531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23536 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23537 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23540 ac_cv_func_fork_works=$ac_cv_func_fork
23542 if test "x
$ac_cv_func_fork_works" = xcross; then
23544 *-*-amigaos* | *-*-msdosdjgpp*)
23545 # Override, as these systems have only a dummy fork() stub
23546 ac_cv_func_fork_works=no
23549 ac_cv_func_fork_works=yes
23552 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23553 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23555 ac_cv_func_vfork_works=$ac_cv_func_vfork
23556 if test "x
$ac_cv_func_vfork" = xyes; then
23557 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23558 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23559 if test "${ac_cv_func_vfork_works+set}" = set; then
23560 echo $ECHO_N "(cached
) $ECHO_C" >&6
23562 if test "$cross_compiling" = yes; then
23563 ac_cv_func_vfork_works=cross
23565 cat >conftest.$ac_ext <<_ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h. */
23571 /* Thanks to Paul Eggert for this test. */
23572 $ac_includes_default
23573 #include <sys/wait.h>
23574 #ifdef HAVE_VFORK_H
23575 # include <vfork.h>
23577 /* On some sparc systems, changes by the child to local and incoming
23578 argument registers are propagated back to the parent. The compiler
23579 is told about this with #include <vfork.h>, but some compilers
23580 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23581 static variable whose address is put into a register that is
23582 clobbered by the vfork. */
23585 sparc_address_test (int arg)
23587 sparc_address_test (arg) int arg;
23590 static pid_t child;
23608 pid_t parent = getpid ();
23611 sparc_address_test (0);
23616 /* Here is another test for sparc vfork register problems. This
23617 test uses lots of local variables, at least as many local
23618 variables as main has allocated so far including compiler
23619 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23620 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23621 reuse the register of parent for one of the local variables,
23622 since it will think that parent can't possibly be used any more
23623 in this routine. Assigning to the local variable will thus
23624 munge parent in the parent process. */
23626 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23627 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23628 /* Convince the compiler that p..p7 are live; otherwise, it might
23629 use the same hardware register for all 8 local variables. */
23630 if (p != p1 || p != p2 || p != p3 || p != p4
23631 || p != p5 || p != p6 || p != p7)
23634 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23635 from child file descriptors. If the child closes a descriptor
23636 before it execs or exits, this munges the parent's descriptor
23637 as well. Test for this by closing stdout in the child. */
23638 _exit(close(fileno(stdout)) != 0);
23643 while (wait(&status) != child)
23646 /* Was there some problem with vforking? */
23649 /* Did the child fail? (This shouldn't happen.) */
23652 /* Did the vfork/compiler bug occur? */
23653 || parent != getpid()
23655 /* Did the file descriptor bug occur? */
23656 || fstat(fileno(stdout), &st) != 0
23661 rm -f conftest$ac_exeext
23662 if { (ac_try="$ac_link"
23663 case "(($ac_try" in
23664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23665 *) ac_try_echo=$ac_try;;
23667 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23668 (eval "$ac_link") 2>&5
23670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23672 { (case "(($ac_try" in
23673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23674 *) ac_try_echo=$ac_try;;
23676 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23677 (eval "$ac_try") 2>&5
23679 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23680 (exit $ac_status); }; }; then
23681 ac_cv_func_vfork_works=yes
23683 echo "$as_me: program exited with status
$ac_status" >&5
23684 echo "$as_me: failed program was
:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23687 ( exit $ac_status )
23688 ac_cv_func_vfork_works=no
23690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23695 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23696 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23699 if test "x
$ac_cv_func_fork_works" = xcross; then
23700 ac_cv_func_vfork_works=$ac_cv_func_vfork
23701 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23702 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23705 if test "x
$ac_cv_func_vfork_works" = xyes; then
23707 cat >>confdefs.h <<\_ACEOF
23708 #define HAVE_WORKING_VFORK 1
23713 cat >>confdefs.h <<\_ACEOF
23718 if test "x
$ac_cv_func_fork_works" = xyes; then
23720 cat >>confdefs.h <<\_ACEOF
23721 #define HAVE_WORKING_FORK 1
23727 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23728 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23729 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23730 echo $ECHO_N "(cached
) $ECHO_C" >&6
23732 cat >conftest.$ac_ext <<_ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h. */
23738 #include <langinfo.h>
23742 char* cs = nl_langinfo(CODESET);
23747 rm -f conftest.$ac_objext conftest$ac_exeext
23748 if { (ac_try="$ac_link"
23749 case "(($ac_try" in
23750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751 *) ac_try_echo=$ac_try;;
23753 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23754 (eval "$ac_link") 2>conftest.er1
23756 grep -v '^ *+' conftest.er1 >conftest.err
23758 cat conftest.err >&5
23759 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23760 (exit $ac_status); } && {
23761 test -z "$ac_c_werror_flag" ||
23762 test ! -s conftest.err
23763 } && test -s conftest$ac_exeext &&
23764 $as_test_x conftest$ac_exeext; then
23765 emacs_cv_langinfo_codeset=yes
23767 echo "$as_me: failed program was
:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23770 emacs_cv_langinfo_codeset=no
23773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23774 conftest$ac_exeext conftest.$ac_ext
23777 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23778 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23779 if test $emacs_cv_langinfo_codeset = yes; then
23781 cat >>confdefs.h <<\_ACEOF
23782 #define HAVE_LANGINFO_CODESET 1
23787 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23788 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23789 if test "${ac_cv_type_size_t+set}" = set; then
23790 echo $ECHO_N "(cached
) $ECHO_C" >&6
23792 cat >conftest.$ac_ext <<_ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23798 $ac_includes_default
23799 typedef size_t ac__type_new_;
23803 if ((ac__type_new_ *) 0)
23805 if (sizeof (ac__type_new_))
23811 rm -f conftest.$ac_objext
23812 if { (ac_try="$ac_compile"
23813 case "(($ac_try" in
23814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815 *) ac_try_echo=$ac_try;;
23817 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23818 (eval "$ac_compile") 2>conftest.er1
23820 grep -v '^ *+' conftest.er1 >conftest.err
23822 cat conftest.err >&5
23823 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23824 (exit $ac_status); } && {
23825 test -z "$ac_c_werror_flag" ||
23826 test ! -s conftest.err
23827 } && test -s conftest.$ac_objext; then
23828 ac_cv_type_size_t=yes
23830 echo "$as_me: failed program was
:" >&5
23831 sed 's/^/| /' conftest.$ac_ext >&5
23833 ac_cv_type_size_t=no
23836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23838 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23839 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23840 if test $ac_cv_type_size_t = yes; then
23842 cat >>confdefs.h <<_ACEOF
23843 #define HAVE_SIZE_T 1
23850 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23851 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23852 if test "${ac_cv_type_mbstate_t+set}" = set; then
23853 echo $ECHO_N "(cached
) $ECHO_C" >&6
23855 cat >conftest.$ac_ext <<_ACEOF
23858 cat confdefs.h >>conftest.$ac_ext
23859 cat >>conftest.$ac_ext <<_ACEOF
23860 /* end confdefs.h. */
23861 $ac_includes_default
23862 # include <wchar.h>
23866 mbstate_t x; return sizeof x;
23871 rm -f conftest.$ac_objext
23872 if { (ac_try="$ac_compile"
23873 case "(($ac_try" in
23874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23875 *) ac_try_echo=$ac_try;;
23877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23878 (eval "$ac_compile") 2>conftest.er1
23880 grep -v '^ *+' conftest.er1 >conftest.err
23882 cat conftest.err >&5
23883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23884 (exit $ac_status); } && {
23885 test -z "$ac_c_werror_flag" ||
23886 test ! -s conftest.err
23887 } && test -s conftest.$ac_objext; then
23888 ac_cv_type_mbstate_t=yes
23890 echo "$as_me: failed program was
:" >&5
23891 sed 's/^/| /' conftest.$ac_ext >&5
23893 ac_cv_type_mbstate_t=no
23896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23898 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23899 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23900 if test $ac_cv_type_mbstate_t = yes; then
23902 cat >>confdefs.h <<\_ACEOF
23903 #define HAVE_MBSTATE_T 1
23908 cat >>confdefs.h <<\_ACEOF
23909 #define mbstate_t int
23914 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23915 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23916 if test "${emacs_cv_c_restrict+set}" = set; then
23917 echo $ECHO_N "(cached
) $ECHO_C" >&6
23919 cat >conftest.$ac_ext <<_ACEOF
23922 cat confdefs.h >>conftest.$ac_ext
23923 cat >>conftest.$ac_ext <<_ACEOF
23924 /* end confdefs.h. */
23925 void fred (int *restrict x);
23934 rm -f conftest.$ac_objext
23935 if { (ac_try="$ac_compile"
23936 case "(($ac_try" in
23937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23938 *) ac_try_echo=$ac_try;;
23940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23941 (eval "$ac_compile") 2>conftest.er1
23943 grep -v '^ *+' conftest.er1 >conftest.err
23945 cat conftest.err >&5
23946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23947 (exit $ac_status); } && {
23948 test -z "$ac_c_werror_flag" ||
23949 test ! -s conftest.err
23950 } && test -s conftest.$ac_objext; then
23951 emacs_cv_c_restrict=yes
23953 echo "$as_me: failed program was
:" >&5
23954 sed 's/^/| /' conftest.$ac_ext >&5
23956 cat >conftest.$ac_ext <<_ACEOF
23959 cat confdefs.h >>conftest.$ac_ext
23960 cat >>conftest.$ac_ext <<_ACEOF
23961 /* end confdefs.h. */
23962 void fred (int *__restrict x);
23971 rm -f conftest.$ac_objext
23972 if { (ac_try="$ac_compile"
23973 case "(($ac_try" in
23974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975 *) ac_try_echo=$ac_try;;
23977 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23978 (eval "$ac_compile") 2>conftest.er1
23980 grep -v '^ *+' conftest.er1 >conftest.err
23982 cat conftest.err >&5
23983 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23984 (exit $ac_status); } && {
23985 test -z "$ac_c_werror_flag" ||
23986 test ! -s conftest.err
23987 } && test -s conftest.$ac_objext; then
23988 emacs_cv_c_restrict=__restrict
23990 echo "$as_me: failed program was
:" >&5
23991 sed 's/^/| /' conftest.$ac_ext >&5
23993 emacs_cv_c_restrict=no
23996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24001 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
24002 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24003 case "$emacs_cv_c_restrict" in
24004 yes) emacs_restrict=restrict;;
24005 no) emacs_restrict="";;
24006 *) emacs_restrict="$emacs_cv_c_restrict";;
24008 if test "$emacs_restrict" != __restrict; then
24010 cat >>confdefs.h <<_ACEOF
24011 #define __restrict $emacs_restrict
24016 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
24017 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
24018 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24019 echo $ECHO_N "(cached
) $ECHO_C" >&6
24021 cat >conftest.$ac_ext <<_ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h. */
24027 void fred (int x[__restrict]);
24036 rm -f conftest.$ac_objext
24037 if { (ac_try="$ac_compile"
24038 case "(($ac_try" in
24039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040 *) ac_try_echo=$ac_try;;
24042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24043 (eval "$ac_compile") 2>conftest.er1
24045 grep -v '^ *+' conftest.er1 >conftest.err
24047 cat conftest.err >&5
24048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24049 (exit $ac_status); } && {
24050 test -z "$ac_c_werror_flag" ||
24051 test ! -s conftest.err
24052 } && test -s conftest.$ac_objext; then
24053 emacs_cv_c_restrict_arr=yes
24055 echo "$as_me: failed program was
:" >&5
24056 sed 's/^/| /' conftest.$ac_ext >&5
24058 emacs_cv_c_restrict_arr=no
24061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24063 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
24064 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24065 if test "$emacs_cv_c_restrict_arr" = yes; then
24067 cat >>confdefs.h <<\_ACEOF
24068 #define __restrict_arr __restrict
24075 # Set up the CFLAGS for real compilation, so we can substitute it.
24076 CFLAGS="$REAL_CFLAGS"
24077 CPPFLAGS="$REAL_CPPFLAGS"
24079 #### Find out which version of Emacs this is.
24080 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24081 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
24082 if test x"${version}" = x; then
24083 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
24084 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
24085 { (exit 1); exit 1; }; }
24088 ### Specify what sort of things we'll be editing into Makefile and config.h.
24089 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24129 cat >>confdefs.h <<_ACEOF
24130 #define EMACS_CONFIGURATION "${canonical}"
24134 cat >>confdefs.h <<_ACEOF
24135 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24139 cat >>confdefs.h <<_ACEOF
24140 #define config_machfile "${machfile}"
24144 cat >>confdefs.h <<_ACEOF
24145 #define config_opsysfile "${opsysfile}"
24149 cat >>confdefs.h <<_ACEOF
24150 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24154 cat >>confdefs.h <<_ACEOF
24155 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24159 cat >>confdefs.h <<_ACEOF
24160 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24164 cat >>confdefs.h <<_ACEOF
24165 #define UNEXEC_SRC ${UNEXEC_SRC}
24169 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24171 cat >>confdefs.h <<\_ACEOF
24172 #define HAVE_X_WINDOWS 1
24176 if test "${USE_X_TOOLKIT}" != "none
" ; then
24178 cat >>confdefs.h <<\_ACEOF
24179 #define USE_X_TOOLKIT 1
24182 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
24184 cat >>confdefs.h <<\_ACEOF
24185 #define USE_LUCID 1
24188 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
24190 cat >>confdefs.h <<\_ACEOF
24191 #define USE_MOTIF 1
24196 if test "${HAVE_X11}" = "yes" ; then
24198 cat >>confdefs.h <<\_ACEOF
24203 if test "${HAVE_MENUS}" = "yes" ; then
24205 cat >>confdefs.h <<\_ACEOF
24206 #define HAVE_MENUS 1
24210 if test "${GNU_MALLOC}" = "yes" ; then
24212 cat >>confdefs.h <<\_ACEOF
24213 #define GNU_MALLOC 1
24217 if test "${REL_ALLOC}" = "yes" ; then
24219 cat >>confdefs.h <<\_ACEOF
24220 #define REL_ALLOC 1
24230 #### Report on what we decided to do.
24231 #### Report GTK as a toolkit, even if it doesn't use Xt.
24232 #### It makes printing result more understandable as using GTK sets
24233 #### toolkit_scroll_bars to yes by default.
24234 if test "${HAVE_GTK}" = "yes"; then
24239 Configured
for \
`${canonical}'.
24241 Where should the build process find the source code? ${srcdir}
24242 What operating system and machine description files should Emacs use?
24243 \`${opsysfile}' and \`${machfile}'
24244 What compiler should emacs be built with?
${CC} ${CFLAGS}
24245 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
24246 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
24247 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
24248 What window system should Emacs use?
${window_system}
24249 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
24251 if test -n "${x_includes}"; then
24252 echo " Where
do we
find X Windows header files?
${x_includes}"
24254 echo " Where
do we
find X Windows header files? Standard
dirs"
24256 if test -n "${x_libraries}"; then
24257 echo " Where
do we
find X Windows libraries?
${x_libraries}"
24259 echo " Where
do we
find X Windows libraries? Standard
dirs"
24262 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
24263 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
24264 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
24265 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
24266 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
24267 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
24268 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
24269 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
24270 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
24272 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
24273 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
24274 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
24275 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
24277 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
24280 if test $USE_XASSERTS = yes; then
24281 echo " Compiling with asserts turned on.
"
24282 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24287 if test "$USE_X_TOOLKIT" = GTK; then
24288 case "$canonical" in
24290 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
24291 will probably get a crash on startup. If this happens
, please use another
24292 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
24297 if test "$HAVE_NS" = "yes"; then
24299 echo "You must run
\"make install\" in order to
test the built application.
24300 The installed application will go to nextstep
/Emacs.app and can be
24301 run or moved from there.
"
24302 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24303 echo "The application will be fully self-contained.
"
24305 echo "The lisp resources
for the application will be installed under
${prefix}.
24306 You may need to run
\"make install\" with sudo. The application will fail
24307 to run
if these resources are not installed.
"
24312 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24313 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24318 # Remove any trailing slashes in these variables.
24319 test "${prefix}" != NONE &&
24320 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24321 test "${exec_prefix}" != NONE &&
24322 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24324 # Now get this: Some word that is part of the ${srcdir} directory name
24325 # or the ${configuration} value might, just might, happen to be an
24326 # identifier like `sun4' or `i386' or something, and be predefined by
24327 # the C preprocessor to some helpful value like 1, or maybe the empty
24328 # string. Needless to say consequent macro substitutions are less
24329 # than conducive to the makefile finding the correct directory.
24330 cpp_undefs="`echo $srcdir $configuration $canonical |
24331 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24332 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24334 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24335 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24336 ## from Makefile.c can correctly provide the arg `-traditional' to the
24339 cat >conftest.$ac_ext <<_ACEOF
24342 cat confdefs.h >>conftest.$ac_ext
24343 cat >>conftest.$ac_ext <<_ACEOF
24344 /* end confdefs.h. */
24347 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24348 $EGREP "yes..
yes" >/dev/null 2>&1; then
24349 CPP_NEED_TRADITIONAL=no
24351 CPP_NEED_TRADITIONAL=yes
24356 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
"
24358 ac_config_commands="$ac_config_commands default
"
24360 cat >confcache <<\_ACEOF
24361 # This file is a shell script that caches the results of configure
24362 # tests run on this system so they can be shared between configure
24363 # scripts and configure runs, see configure's option --config-cache.
24364 # It is not useful on other systems. If it contains results you don't
24365 # want to keep, you may remove or edit it.
24367 # config.status only pays attention to the cache file if you give it
24368 # the --recheck option to rerun configure.
24370 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24371 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24372 # following values.
24376 # The following way of writing the cache mishandles newlines in values,
24377 # but we know of no workaround that is simple, portable, and efficient.
24378 # So, we kill variables containing newlines.
24379 # Ultrix sh set writes to stderr and can't be redirected directly,
24380 # and sets the high bit in the cache file unless we assign to the vars.
24382 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24383 eval ac_val=\$$ac_var
24387 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24388 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24391 _ | IFS | as_nl) ;; #(
24392 *) $as_unset $ac_var ;;
24398 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24399 *${as_nl}ac_space=\ *)
24400 # `set' does not quote correctly, so add quotes (double-quote
24401 # substitution turns \\\\ into \\, and sed turns \\ into \).
24404 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24407 # `set' quotes correctly as required by POSIX, so do not add quotes.
24408 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24417 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24419 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24421 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24422 if test -w "$cache_file"; then
24423 test "x
$cache_file" != "x
/dev
/null
" &&
24424 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24425 echo "$as_me: updating cache
$cache_file" >&6;}
24426 cat confcache >$cache_file
24428 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24429 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24434 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24435 # Let make expand exec_prefix.
24436 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24438 DEFS=-DHAVE_CONFIG_H
24442 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24443 # 1. Remove the extension, and $U if already installed.
24444 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24445 ac_i=`echo "$ac_i" | sed "$ac_script"`
24446 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24447 # will be set to the directory where LIBOBJS objects are built.
24448 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24449 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24451 LIBOBJS=$ac_libobjs
24453 LTLIBOBJS=$ac_ltlibobjs
24457 : ${CONFIG_STATUS=./config.status}
24458 ac_clean_files_save=$ac_clean_files
24459 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24460 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24461 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24462 cat >$CONFIG_STATUS <<_ACEOF
24464 # Generated by $as_me.
24465 # Run this file to recreate the current configuration.
24466 # Compiler output produced by configure, useful for debugging
24467 # configure, is in config.log if it exists.
24470 ac_cs_recheck=false
24472 SHELL=\${CONFIG_SHELL-$SHELL}
24475 cat >>$CONFIG_STATUS <<\_ACEOF
24476 ## --------------------- ##
24477 ## M4sh Initialization. ##
24478 ## --------------------- ##
24480 # Be more Bourne compatible
24481 DUALCASE=1; export DUALCASE # for MKS sh
24482 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24485 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24486 # is contrary to our usage. Disable this feature.
24487 alias -g '${1+"$@"}'='"$@
"'
24488 setopt NO_GLOB_SUBST
24490 case `(set -o) 2>/dev/null` in
24491 *posix*) set -o posix ;;
24500 # Avoid depending upon Character Ranges.
24501 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24502 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24503 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24504 as_cr_digits='0123456789'
24505 as_cr_alnum=$as_cr_Letters$as_cr_digits
24507 # The user is always right.
24508 if test "${PATH_SEPARATOR+set}" != set; then
24509 echo "#! /bin/sh" >conf$$.sh
24510 echo "exit 0" >>conf$$.sh
24512 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24520 # Support unset when possible.
24521 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24529 # We need space, tab and new line, in precisely that order. Quoting is
24530 # there to prevent editors from complaining about space-tab.
24531 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24532 # splitting by setting IFS to empty value.)
24537 # Find who we are. Look in the path if we contain no directory separator.
24539 *[\\/]* ) as_myself
=$0 ;;
24540 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24541 for as_dir
in $PATH
24544 test -z "$as_dir" && as_dir
=.
24545 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24551 # We did not find ourselves, most probably we were run as `sh COMMAND'
24552 # in which case we are not to be found in the path.
24553 if test "x$as_myself" = x
; then
24556 if test ! -f "$as_myself"; then
24557 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24558 { (exit 1); exit 1; }
24561 # Work around bugs in pre-3.0 UWIN ksh.
24562 for as_var
in ENV MAIL MAILPATH
24563 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24571 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24572 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24573 LC_TELEPHONE LC_TIME
24575 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24576 eval $as_var=C
; export $as_var
24578 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24582 # Required to use basename.
24583 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24584 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24590 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24591 as_basename
=basename
24597 # Name of the executable.
24598 as_me
=`$as_basename -- "$0" ||
24599 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24600 X"$0" : 'X\(//\)$' \| \
24601 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24603 sed '/^.*\/\([^/][^/]*\)\/*$/{
24622 as_lineno_1
=$LINENO
24623 as_lineno_2
=$LINENO
24624 test "x$as_lineno_1" != "x$as_lineno_2" &&
24625 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24627 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24628 # uniformly replaced by the line number. The first 'sed' inserts a
24629 # line-number line after each line using $LINENO; the second 'sed'
24630 # does the real work. The second script uses 'N' to pair each
24631 # line-number line with the line containing $LINENO, and appends
24632 # trailing '-' during substitution so that $LINENO is not a special
24633 # case at line end.
24634 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24635 # scripts with optimization help from Paolo Bonzini. Blame Lee
24636 # E. McMahon (1931-1989) for sed's syntax. :-)
24648 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24651 ' >$as_me.lineno
&&
24652 chmod +x
"$as_me.lineno" ||
24653 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24654 { (exit 1); exit 1; }; }
24656 # Don't try to exec as it changes $[0], causing all sort of problems
24657 # (the dirname of $[0] is not the place where we might find the
24658 # original and so on. Autoconf is especially sensitive to this).
24659 .
"./$as_me.lineno"
24660 # Exit status is that of the last command.
24665 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24671 ECHO_C
= ECHO_N
= ECHO_T
=
24672 case `echo -n x` in
24674 case `echo 'x\c'` in
24675 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24682 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24683 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24689 rm -f conf$$ conf$$.exe conf$$.
file
24690 if test -d conf$$.dir
; then
24691 rm -f conf$$.dir
/conf$$.
file
24697 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24699 # ... but there are two gotchas:
24700 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24701 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24702 # In both cases, we have to default to `cp -p'.
24703 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24705 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24710 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24711 rmdir conf$$.dir
2>/dev
/null
24713 if mkdir
-p .
2>/dev
/null
; then
24716 test -d .
/-p && rmdir .
/-p
24720 if test -x / >/dev
/null
2>&1; then
24721 as_test_x
='test -x'
24723 if ls -dL / >/dev
/null
2>&1; then
24730 if test -d "$1"; then
24736 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24737 ???[sx]*):;;*)false;;esac;fi
24741 as_executable_p
=$as_test_x
24743 # Sed expression to map a string onto a valid CPP name.
24744 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24746 # Sed expression to map a string onto a valid variable name.
24747 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24752 # Save the log message, to keep $[0] and so on meaningful, and to
24753 # report actual input values of CONFIG_FILES etc. instead of their
24754 # values after options handling.
24756 This file was extended by emacs $as_me 23.0.60, which was
24757 generated by GNU Autoconf 2.61. Invocation command line was
24759 CONFIG_FILES = $CONFIG_FILES
24760 CONFIG_HEADERS = $CONFIG_HEADERS
24761 CONFIG_LINKS = $CONFIG_LINKS
24762 CONFIG_COMMANDS = $CONFIG_COMMANDS
24765 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24770 cat >>$CONFIG_STATUS <<_ACEOF
24771 # Files that config.status was made for.
24772 config_files="$ac_config_files"
24773 config_headers="$ac_config_headers"
24774 config_commands="$ac_config_commands"
24778 cat >>$CONFIG_STATUS <<\_ACEOF
24780 \`$as_me' instantiates files from templates according to the
24781 current configuration.
24783 Usage: $0 [OPTIONS] [FILE]...
24785 -h, --help print this help, then exit
24786 -V, --version print version number and configuration settings, then exit
24787 -q, --quiet do not print progress messages
24788 -d, --debug don't remove temporary files
24789 --recheck update $as_me by reconfiguring in the same conditions
24790 --file=FILE[:TEMPLATE]
24791 instantiate the configuration file FILE
24792 --header=FILE[:TEMPLATE]
24793 instantiate the configuration header FILE
24795 Configuration files:
24798 Configuration headers:
24801 Configuration commands:
24804 Report bugs to <bug-autoconf@gnu.org>."
24807 cat >>$CONFIG_STATUS <<_ACEOF
24809 emacs config.status 23.0.60
24810 configured by $0, generated by GNU Autoconf 2.61,
24811 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24813 Copyright (C) 2006 Free Software Foundation, Inc.
24814 This config.status script is free software; the Free Software Foundation
24815 gives unlimited permission to copy, distribute and modify it."
24822 cat >>$CONFIG_STATUS <<\_ACEOF
24823 # If no file are specified by the user, then we need to provide default
24824 # value. By we need to know if files were specified by the user.
24830 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24831 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24842 # Handling of the options.
24843 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24845 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24846 echo "$ac_cs_version"; exit ;;
24847 --debug |
--debu |
--deb |
--de |
--d |
-d )
24849 --file |
--fil |
--fi |
--f )
24851 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24852 ac_need_defaults
=false
;;
24853 --header |
--heade |
--head |
--hea )
24855 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24856 ac_need_defaults
=false
;;
24858 # Conflict between --help and --header
24859 { echo "$as_me: error: ambiguous option: $1
24860 Try \`$0 --help' for more information." >&2
24861 { (exit 1); exit 1; }; };;
24862 --help |
--hel |
-h )
24863 echo "$ac_cs_usage"; exit ;;
24864 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24865 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24868 # This is an error.
24869 -*) { echo "$as_me: error: unrecognized option: $1
24870 Try \`$0 --help' for more information." >&2
24871 { (exit 1); exit 1; }; } ;;
24873 *) ac_config_targets
="$ac_config_targets $1"
24874 ac_need_defaults
=false
;;
24880 ac_configure_extra_args
=
24882 if $ac_cs_silent; then
24884 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24888 cat >>$CONFIG_STATUS <<_ACEOF
24889 if \$ac_cs_recheck; then
24890 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24891 CONFIG_SHELL=$SHELL
24892 export CONFIG_SHELL
24893 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24897 cat >>$CONFIG_STATUS <<\_ACEOF
24901 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24902 ## Running $as_me. ##
24908 cat >>$CONFIG_STATUS <<_ACEOF
24912 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24916 cat >>$CONFIG_STATUS <<\_ACEOF
24918 # Handling of arguments.
24919 for ac_config_target
in $ac_config_targets
24921 case $ac_config_target in
24922 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24923 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24924 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24925 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24926 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24927 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24928 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24929 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24930 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24931 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24932 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24933 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24934 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24936 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24937 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24938 { (exit 1); exit 1; }; };;
24943 # If the user did not use the arguments to specify the items to instantiate,
24944 # then the envvar interface is used. Set only those that are not.
24945 # We use the long form for the default assignment because of an extremely
24946 # bizarre bug on SunOS 4.1.3.
24947 if $ac_need_defaults; then
24948 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24949 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24950 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24953 # Have a temporary directory for convenience. Make it in the build tree
24954 # simply because there is no reason against having it here, and in addition,
24955 # creating and moving files from /tmp can sometimes cause problems.
24956 # Hook for its removal unless debugging.
24957 # Note that there is a small window in which the directory will not be cleaned:
24958 # after its creation but before its name has been assigned to `$tmp'.
24962 trap 'exit_status=$?
24963 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24965 trap '{ (exit 1); exit 1; }' 1 2 13 15
24967 # Create a (secure) tmp directory for tmp files.
24970 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24971 test -n "$tmp" && test -d "$tmp"
24974 tmp
=.
/conf$$
-$RANDOM
24975 (umask 077 && mkdir
"$tmp")
24978 echo "$me: cannot create a temporary directory in ." >&2
24979 { (exit 1); exit 1; }
24983 # Set up the sed scripts for CONFIG_FILES section.
24986 # No need to generate the scripts if there are no CONFIG_FILES.
24987 # This happens for instance when ./config.status config.h
24988 if test -n "$CONFIG_FILES"; then
24995 for ac_last_try
in false false false false false
:; do
24996 cat >conf$
$subs.
sed <<_ACEOF
24997 SHELL!$SHELL$ac_delim
24998 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24999 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25000 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25001 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25002 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25003 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25004 exec_prefix!$exec_prefix$ac_delim
25005 prefix!$prefix$ac_delim
25006 program_transform_name!$program_transform_name$ac_delim
25007 bindir!$bindir$ac_delim
25008 sbindir!$sbindir$ac_delim
25009 libexecdir!$libexecdir$ac_delim
25010 datarootdir!$datarootdir$ac_delim
25011 datadir!$datadir$ac_delim
25012 sysconfdir!$sysconfdir$ac_delim
25013 sharedstatedir!$sharedstatedir$ac_delim
25014 localstatedir!$localstatedir$ac_delim
25015 includedir!$includedir$ac_delim
25016 oldincludedir!$oldincludedir$ac_delim
25017 docdir!$docdir$ac_delim
25018 infodir!$infodir$ac_delim
25019 htmldir!$htmldir$ac_delim
25020 dvidir!$dvidir$ac_delim
25021 pdfdir!$pdfdir$ac_delim
25022 psdir!$psdir$ac_delim
25023 libdir!$libdir$ac_delim
25024 localedir!$localedir$ac_delim
25025 mandir!$mandir$ac_delim
25026 DEFS!$DEFS$ac_delim
25027 ECHO_C!$ECHO_C$ac_delim
25028 ECHO_N!$ECHO_N$ac_delim
25029 ECHO_T!$ECHO_T$ac_delim
25030 LIBS!$LIBS$ac_delim
25031 build_alias!$build_alias$ac_delim
25032 host_alias!$host_alias$ac_delim
25033 target_alias!$target_alias$ac_delim
25034 MAINT!$MAINT$ac_delim
25035 build!$build$ac_delim
25036 build_cpu!$build_cpu$ac_delim
25037 build_vendor!$build_vendor$ac_delim
25038 build_os!$build_os$ac_delim
25039 host!$host$ac_delim
25040 host_cpu!$host_cpu$ac_delim
25041 host_vendor!$host_vendor$ac_delim
25042 host_os!$host_os$ac_delim
25044 CFLAGS!$CFLAGS$ac_delim
25045 LDFLAGS!$LDFLAGS$ac_delim
25046 CPPFLAGS!$CPPFLAGS$ac_delim
25047 ac_ct_CC!$ac_ct_CC$ac_delim
25048 EXEEXT!$EXEEXT$ac_delim
25049 OBJEXT!$OBJEXT$ac_delim
25051 GREP!$GREP$ac_delim
25052 EGREP!$EGREP$ac_delim
25053 LN_S!$LN_S$ac_delim
25054 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25055 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25056 INSTALL_DATA!$INSTALL_DATA$ac_delim
25057 RANLIB!$RANLIB$ac_delim
25058 INSTALL_INFO!$INSTALL_INFO$ac_delim
25059 GZIP_PROG!$GZIP_PROG$ac_delim
25060 MAKEINFO!$MAKEINFO$ac_delim
25061 LIBSOUND!$LIBSOUND$ac_delim
25062 PKG_CONFIG!$PKG_CONFIG$ac_delim
25063 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25064 ALSA_LIBS!$ALSA_LIBS$ac_delim
25065 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25066 SET_MAKE!$SET_MAKE$ac_delim
25067 XMKMF!$XMKMF$ac_delim
25068 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25069 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25070 RSVG_LIBS!$RSVG_LIBS$ac_delim
25071 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25072 GTK_LIBS!$GTK_LIBS$ac_delim
25073 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25074 DBUS_LIBS!$DBUS_LIBS$ac_delim
25075 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25076 XFT_LIBS!$XFT_LIBS$ac_delim
25077 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25078 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25079 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25080 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25081 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25082 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25083 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25084 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25085 ALLOCA!$ALLOCA$ac_delim
25086 liblockfile!$liblockfile$ac_delim
25087 LIBOBJS!$LIBOBJS$ac_delim
25088 NEED_SETGID!$NEED_SETGID$ac_delim
25089 KMEM_GROUP!$KMEM_GROUP$ac_delim
25090 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25091 GETOPT_H!$GETOPT_H$ac_delim
25092 GETOPTOBJS!$GETOPTOBJS$ac_delim
25093 version!$version$ac_delim
25096 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25098 elif $ac_last_try; then
25099 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25100 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25101 { (exit 1); exit 1; }; }
25103 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25107 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25108 if test -n "$ac_eof"; then
25109 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25110 ac_eof
=`expr $ac_eof + 1`
25113 cat >>$CONFIG_STATUS <<_ACEOF
25114 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25115 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25118 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25119 s/^/s,@/; s/!/@,|#_!!_#|/
25122 s/'"$ac_delim"'$/,g/; t
25124 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25125 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25126 rm -f conf$
$subs.
sed
25127 cat >>$CONFIG_STATUS <<_ACEOF
25133 for ac_last_try
in false false false false false
:; do
25134 cat >conf$
$subs.
sed <<_ACEOF
25135 configuration!$configuration$ac_delim
25136 canonical!$canonical$ac_delim
25137 srcdir!$srcdir$ac_delim
25138 lispdir!$lispdir$ac_delim
25139 locallisppath!$locallisppath$ac_delim
25140 lisppath!$lisppath$ac_delim
25141 x_default_search_path!$x_default_search_path$ac_delim
25142 etcdir!$etcdir$ac_delim
25143 archlibdir!$archlibdir$ac_delim
25144 bitmapdir!$bitmapdir$ac_delim
25145 gamedir!$gamedir$ac_delim
25146 gameuser!$gameuser$ac_delim
25147 c_switch_system!$c_switch_system$ac_delim
25148 c_switch_machine!$c_switch_machine$ac_delim
25149 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25150 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25151 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25152 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25153 machfile!$machfile$ac_delim
25154 opsysfile!$opsysfile$ac_delim
25155 ns_appdir!$ns_appdir$ac_delim
25156 ns_appbindir!$ns_appbindir$ac_delim
25157 ns_appresdir!$ns_appresdir$ac_delim
25158 ns_appsrc!$ns_appsrc$ac_delim
25159 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25160 LTLIBOBJS!$LTLIBOBJS$ac_delim
25163 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
25165 elif $ac_last_try; then
25166 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25167 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25168 { (exit 1); exit 1; }; }
25170 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25174 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25175 if test -n "$ac_eof"; then
25176 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25177 ac_eof
=`expr $ac_eof + 1`
25180 cat >>$CONFIG_STATUS <<_ACEOF
25181 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25185 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25186 s/^/s,@/; s/!/@,|#_!!_#|/
25189 s/'"$ac_delim"'$/,g/; t
25191 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25192 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25193 rm -f conf$
$subs.
sed
25194 cat >>$CONFIG_STATUS <<_ACEOF
25201 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25202 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25203 # trailing colons and then remove the whole line if VPATH becomes empty
25204 # (actually we leave an empty line to preserve line numbers).
25205 if test "x$srcdir" = x.
; then
25206 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25207 s/:*\$(srcdir):*/:/
25208 s/:*\${srcdir}:*/:/
25210 s/^\([^=]*=[ ]*\):*/\1/
25216 cat >>$CONFIG_STATUS <<\_ACEOF
25217 fi # test -n "$CONFIG_FILES"
25220 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25223 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25225 case $ac_mode$ac_tag in
25227 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25228 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25229 { (exit 1); exit 1; }; };;
25230 :[FH
]-) ac_tag
=-:-;;
25231 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25248 -) ac_f
="$tmp/stdin";;
25249 *) # Look for the file first in the build tree, then in the source tree
25250 # (if the path is not absolute). The absolute path cannot be DOS-style,
25251 # because $ac_f cannot contain `:'.
25255 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25257 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25258 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25259 { (exit 1); exit 1; }; };;
25261 ac_file_inputs
="$ac_file_inputs $ac_f"
25264 # Let's still pretend it is `configure' which instantiates (i.e., don't
25265 # use $as_me), people would be surprised to read:
25266 # /* config.h. Generated by config.status. */
25267 configure_input
="Generated from "`IFS=:
25268 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25269 if test x
"$ac_file" != x-
; then
25270 configure_input
="$ac_file. $configure_input"
25271 { echo "$as_me:$LINENO: creating $ac_file" >&5
25272 echo "$as_me: creating $ac_file" >&6;}
25276 *:-:* |
*:-) cat >"$tmp/stdin";;
25281 ac_dir
=`$as_dirname -- "$ac_file" ||
25282 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25283 X"$ac_file" : 'X\(//\)[^/]' \| \
25284 X"$ac_file" : 'X\(//\)$' \| \
25285 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25291 /^X\(\/\/\)[^/].*/{
25306 -*) as_dir
=.
/$as_dir;;
25308 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25312 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25313 *) as_qdir
=$as_dir;;
25315 as_dirs
="'$as_qdir' $as_dirs"
25316 as_dir
=`$as_dirname -- "$as_dir" ||
25317 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25318 X"$as_dir" : 'X\(//\)[^/]' \| \
25319 X"$as_dir" : 'X\(//\)$' \| \
25320 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25326 /^X\(\/\/\)[^/].*/{
25339 test -d "$as_dir" && break
25341 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25342 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25343 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25344 { (exit 1); exit 1; }; }; }
25348 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25350 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25351 # A ".." for each directory in $ac_dir_suffix.
25352 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25353 case $ac_top_builddir_sub in
25354 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25355 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25358 ac_abs_top_builddir
=$ac_pwd
25359 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25360 # for backward compatibility:
25361 ac_top_builddir
=$ac_top_build_prefix
25364 .
) # We are building in place.
25366 ac_top_srcdir
=$ac_top_builddir_sub
25367 ac_abs_top_srcdir
=$ac_pwd ;;
25368 [\\/]* | ?
:[\\/]* ) # Absolute name.
25369 ac_srcdir
=$srcdir$ac_dir_suffix;
25370 ac_top_srcdir
=$srcdir
25371 ac_abs_top_srcdir
=$srcdir ;;
25372 *) # Relative name.
25373 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25374 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25375 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25377 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25387 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25388 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25392 cat >>$CONFIG_STATUS <<\_ACEOF
25393 # If the template does not know about datarootdir, expand it.
25394 # FIXME: This hack should be removed a few years after 2.60.
25395 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25397 case `sed -n '/datarootdir/ {
25406 ' $ac_file_inputs` in
25407 *datarootdir
*) ac_datarootdir_seen
=yes;;
25408 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25409 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25410 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25412 cat >>$CONFIG_STATUS <<_ACEOF
25413 ac_datarootdir_hack='
25414 s&@datadir@&$datadir&g
25415 s&@docdir@&$docdir&g
25416 s&@infodir@&$infodir&g
25417 s&@localedir@&$localedir&g
25418 s&@mandir@&$mandir&g
25419 s&\\\${datarootdir}&$datarootdir&g' ;;
25423 # Neutralize VPATH when `$srcdir' = `.'.
25424 # Shell code in configure.ac might set extrasub.
25425 # FIXME: do we really want to maintain this feature?
25426 cat >>$CONFIG_STATUS <<_ACEOF
25430 cat >>$CONFIG_STATUS <<\_ACEOF
25432 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25433 s
&@configure_input@
&$configure_input&;t t
25434 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25435 s
&@srcdir@
&$ac_srcdir&;t t
25436 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25437 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25438 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25439 s
&@builddir@
&$ac_builddir&;t t
25440 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25441 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25442 s
&@INSTALL@
&$ac_INSTALL&;t t
25443 $ac_datarootdir_hack
25444 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25446 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25447 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25448 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25449 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25450 which seems to be undefined. Please make sure it is defined." >&5
25451 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25452 which seems to be undefined. Please make sure it is defined." >&2;}
25456 -) cat "$tmp/out"; rm -f "$tmp/out";;
25457 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25466 # Transform confdefs.h into a sed script `conftest.defines', that
25467 # substitutes the proper values into config.h.in to produce config.h.
25468 rm -f conftest.defines conftest.
tail
25469 # First, append a space to every undef/define line, to ease matching.
25470 echo 's/$/ /' >conftest.defines
25471 # Then, protect against being on the right side of a sed subst, or in
25472 # an unquoted here document, in config.status. If some macros were
25473 # called several times there might be several #defines for the same
25474 # symbol, which is useless. But do not sort them, since the last
25475 # AC_DEFINE must be honored.
25476 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25477 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25478 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25479 # PARAMS is the parameter list in the macro definition--in most cases, it's
25480 # just an empty string.
25481 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25482 ac_dB
='\\)[ (].*,\\1define\\2'
25490 s/^[ ]*#[ ]*define[ ][ ]*//
25495 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25496 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25497 ' >>conftest.defines
25499 # Remove the space that was appended to ease matching.
25500 # Then replace #undef with comments. This is necessary, for
25501 # example, in the case of _POSIX_SOURCE, which is predefined and required
25502 # on some systems where configure will not decide to define it.
25503 # (The regexp can be short, since the line contains either #define or #undef.)
25505 s,^[ #]*u.*,/* & */,' >>conftest.defines
25507 # Break up conftest.defines:
25508 ac_max_sed_lines
=50
25510 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25511 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25512 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25514 ac_in
='$ac_file_inputs'
25515 ac_out
='"$tmp/out1"'
25516 ac_nxt
='"$tmp/out2"'
25520 # Write a here document:
25521 cat >>$CONFIG_STATUS <<_ACEOF
25522 # First, check the format of the line:
25523 cat >"\$tmp/defines.sed" <<\\CEOF
25524 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25525 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25529 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25531 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25532 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25533 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25534 grep . conftest.
tail >/dev
/null ||
break
25535 rm -f conftest.defines
25536 mv conftest.
tail conftest.defines
25538 rm -f conftest.defines conftest.
tail
25540 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25541 cat >>$CONFIG_STATUS <<\_ACEOF
25542 if test x
"$ac_file" != x-
; then
25543 echo "/* $configure_input */" >"$tmp/config.h"
25544 cat "$ac_result" >>"$tmp/config.h"
25545 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25546 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25547 echo "$as_me: $ac_file is unchanged" >&6;}
25550 mv "$tmp/config.h" $ac_file
25553 echo "/* $configure_input */"
25559 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25560 echo "$as_me: executing $ac_file commands" >&6;}
25565 case $ac_file$ac_mode in
25568 ### Make the necessary directories, if they don't exist.
25569 for dir
in etc lisp
; do
25570 test -d ${dir} || mkdir
${dir}
25573 # Build src/Makefile from ${srcdir}/src/Makefile.c
25574 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25575 # This must be done after src/config.h is built, since we rely on that file.
25577 echo creating src
/epaths.h
25578 ${MAKE-make} epaths-force
25580 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25581 # `..' to `. .' unless invoked with -traditional
25583 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25584 CPPFLAGS
="$CPPFLAGS -traditional"
25587 echo creating lib-src
/Makefile
25589 rm -f junk.c junk1.c junk2.c
25590 sed -e '/start of cpp stuff/q' \
25591 < Makefile.c
> junk1.c
25592 sed -e '1,/start of cpp stuff/d'\
25593 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25594 < Makefile.c
> junk.c
25595 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25596 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25597 cat junk1.c junk2.c
> Makefile.new
25598 rm -f junk.c junk1.c junk2.c
25599 chmod 444 Makefile.new
25600 mv -f Makefile.new Makefile
25603 echo creating src
/Makefile
25605 rm -f junk.c junk1.c junk2.c
25606 sed -e '/start of cpp stuff/q' \
25607 < Makefile.c
> junk1.c
25608 sed -e '1,/start of cpp stuff/d'\
25609 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25610 < Makefile.c
> junk.c
25611 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25612 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25613 cat junk1.c junk2.c
> Makefile.new
25614 rm -f junk.c junk1.c junk2.c
25615 chmod 444 Makefile.new
25616 mv -f Makefile.new Makefile
25619 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25620 echo creating src
/.gdbinit
25621 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25630 { (exit 0); exit 0; }
25632 chmod +x
$CONFIG_STATUS
25633 ac_clean_files
=$ac_clean_files_save
25636 # configure is writing to config.log, and then calls config.status.
25637 # config.status does its own redirection, appending to config.log.
25638 # Unfortunately, on DOS this fails, as config.log is still kept open
25639 # by configure, so config.status won't be able to write to it; its
25640 # output is simply discarded. So we exec the FD to /dev/null,
25641 # effectively closing config.log, so it can be properly (re)opened and
25642 # appended to by config.status. When coming back to configure, we
25643 # need to make the FD available again.
25644 if test "$no_create" != yes; then
25646 ac_config_status_args
=
25647 test "$silent" = yes &&
25648 ac_config_status_args
="$ac_config_status_args --quiet"
25650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25653 # would make configure fail if this is the last instruction.
25654 $ac_cs_success ||
{ (exit 1); exit 1; }