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
9336 if test "${HAVE_NS}" = yes; then
9337 window_system=nextstep
9340 # set up packaging dirs
9341 exec_prefix=${ns_appbindir}
9342 libexecdir=${ns_appbindir}/libexec
9343 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9344 prefix=${ns_appresdir}
9347 CFLAGS="$tmp_CFLAGS"
9348 CPPFLAGS="$tmp_CPPFLAGS"
9350 case "${window_system}" in
9354 case "${with_x_toolkit}" in
9355 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9356 motif ) USE_X_TOOLKIT=MOTIF ;;
9358 USE_X_TOOLKIT=none ;;
9359 no ) USE_X_TOOLKIT=none ;;
9360 * ) USE_X_TOOLKIT=maybe ;;
9370 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9371 # Extract the first word of "X", so it can be a program name with args.
9372 set dummy X; ac_word=$2
9373 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9374 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9375 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9376 echo $ECHO_N "(cached) $ECHO_C" >&6
9378 if test -n "$HAVE_XSERVER"; then
9379 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9385 test -z "$as_dir" && as_dir=.
9386 for ac_exec_ext in '' $ac_executable_extensions; do
9387 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9388 ac_cv_prog_HAVE_XSERVER="true"
9389 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9396 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9399 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9400 if test -n "$HAVE_XSERVER"; then
9401 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9402 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9404 { echo "$as_me:$LINENO: result: no" >&5
9405 echo "${ECHO_T}no" >&6; }
9409 if test "$HAVE_XSERVER" = true ||
9410 test -n "$DISPLAY" ||
9411 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9412 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9413 were found. You should install the relevant development files for X
9414 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9415 sure you have development files for image handling, i.e.
9416 tiff, gif, jpeg, png and xpm.
9417 If you are sure you want Emacs compiled without X window support, pass
9420 echo "$as_me: error: You seem to be running X, but no X development libraries
9421 were found. You should install the relevant development files for X
9422 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9423 sure you have development files for image handling, i.e.
9424 tiff, gif, jpeg, png and xpm.
9425 If you are sure you want Emacs compiled without X window support, pass
9427 to configure." >&2;}
9428 { (exit 1); exit 1; }; }
9432 ### If we're using X11, we should use the X menu package.
9435 yes ) HAVE_MENUS=yes ;;
9438 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9439 # Assume not, until told otherwise.
9442 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9443 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9444 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9445 echo $ECHO_N "(cached) $ECHO_C" >&6
9447 cat >conftest.$ac_ext <<_ACEOF
9450 cat confdefs.h >>conftest.$ac_ext
9451 cat >>conftest.$ac_ext <<_ACEOF
9452 /* end confdefs.h. */
9453 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9455 #define malloc_get_state innocuous_malloc_get_state
9457 /* System header to define __stub macros and hopefully few prototypes,
9458 which can conflict with char malloc_get_state (); below.
9459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9460 <limits.h> exists even on freestanding compilers. */
9463 # include <limits.h>
9465 # include <assert.h>
9468 #undef malloc_get_state
9470 /* Override any GCC internal prototype to avoid an error.
9471 Use char because int might match the return type of a GCC
9472 builtin and then its argument prototype would still apply. */
9476 char malloc_get_state ();
9477 /* The GNU C library defines this for functions which it implements
9478 to always fail with ENOSYS. Some functions are actually named
9479 something starting with __ and the normal name is an alias. */
9480 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9487 return malloc_get_state ();
9492 rm -f conftest.$ac_objext conftest$ac_exeext
9493 if { (ac_try="$ac_link"
9495 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9496 *) ac_try_echo
=$ac_try;;
9498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9499 (eval "$ac_link") 2>conftest.er1
9501 grep -v '^ *+' conftest.er1
>conftest.err
9503 cat conftest.err
>&5
9504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9505 (exit $ac_status); } && {
9506 test -z "$ac_c_werror_flag" ||
9507 test ! -s conftest.err
9508 } && test -s conftest
$ac_exeext &&
9509 $as_test_x conftest
$ac_exeext; then
9510 ac_cv_func_malloc_get_state
=yes
9512 echo "$as_me: failed program was:" >&5
9513 sed 's/^/| /' conftest.
$ac_ext >&5
9515 ac_cv_func_malloc_get_state
=no
9518 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9519 conftest
$ac_exeext conftest.
$ac_ext
9521 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9522 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9523 if test $ac_cv_func_malloc_get_state = yes; then
9529 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9530 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9531 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9532 echo $ECHO_N "(cached) $ECHO_C" >&6
9534 cat >conftest.
$ac_ext <<_ACEOF
9537 cat confdefs.h
>>conftest.
$ac_ext
9538 cat >>conftest.
$ac_ext <<_ACEOF
9539 /* end confdefs.h. */
9540 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9542 #define malloc_set_state innocuous_malloc_set_state
9544 /* System header to define __stub macros and hopefully few prototypes,
9545 which can conflict with char malloc_set_state (); below.
9546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9547 <limits.h> exists even on freestanding compilers. */
9550 # include <limits.h>
9552 # include <assert.h>
9555 #undef malloc_set_state
9557 /* Override any GCC internal prototype to avoid an error.
9558 Use char because int might match the return type of a GCC
9559 builtin and then its argument prototype would still apply. */
9563 char malloc_set_state ();
9564 /* The GNU C library defines this for functions which it implements
9565 to always fail with ENOSYS. Some functions are actually named
9566 something starting with __ and the normal name is an alias. */
9567 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9574 return malloc_set_state ();
9579 rm -f conftest.
$ac_objext conftest
$ac_exeext
9580 if { (ac_try
="$ac_link"
9582 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9583 *) ac_try_echo=$ac_try;;
9585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9586 (eval "$ac_link") 2>conftest.er1
9588 grep -v '^ *+' conftest.er1 >conftest.err
9590 cat conftest.err >&5
9591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9592 (exit $ac_status); } && {
9593 test -z "$ac_c_werror_flag" ||
9594 test ! -s conftest.err
9595 } && test -s conftest$ac_exeext &&
9596 $as_test_x conftest$ac_exeext; then
9597 ac_cv_func_malloc_set_state=yes
9599 echo "$as_me: failed program was:" >&5
9600 sed 's/^/| /' conftest.$ac_ext >&5
9602 ac_cv_func_malloc_set_state=no
9605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9606 conftest$ac_exeext conftest.$ac_ext
9608 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9609 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9610 if test $ac_cv_func_malloc_set_state = yes; then
9616 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9617 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9618 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9619 echo $ECHO_N "(cached) $ECHO_C" >&6
9621 cat >conftest.$ac_ext <<_ACEOF
9624 cat confdefs.h >>conftest.$ac_ext
9625 cat >>conftest.$ac_ext <<_ACEOF
9626 /* end confdefs.h. */
9627 extern void (* __after_morecore_hook)();
9631 __after_morecore_hook = 0
9636 rm -f conftest.$ac_objext conftest$ac_exeext
9637 if { (ac_try="$ac_link"
9639 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9640 *) ac_try_echo
=$ac_try;;
9642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9643 (eval "$ac_link") 2>conftest.er1
9645 grep -v '^ *+' conftest.er1
>conftest.err
9647 cat conftest.err
>&5
9648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9649 (exit $ac_status); } && {
9650 test -z "$ac_c_werror_flag" ||
9651 test ! -s conftest.err
9652 } && test -s conftest
$ac_exeext &&
9653 $as_test_x conftest
$ac_exeext; then
9654 emacs_cv_var___after_morecore_hook
=yes
9656 echo "$as_me: failed program was:" >&5
9657 sed 's/^/| /' conftest.
$ac_ext >&5
9659 emacs_cv_var___after_morecore_hook
=no
9662 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9663 conftest
$ac_exeext conftest.
$ac_ext
9665 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9666 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9667 if test $emacs_cv_var___after_morecore_hook = no
; then
9670 if test "${system_malloc}" = "yes"; then
9673 (The GNU allocators don't work with this system configuration.)"
9675 if test "$doug_lea_malloc" = "yes" ; then
9676 if test "$GNU_MALLOC" = yes ; then
9678 (Using Doug Lea's new malloc from the GNU C Library.)"
9681 cat >>confdefs.h
<<\_ACEOF
9682 #define DOUG_LEA_MALLOC 1
9687 if test x
"${REL_ALLOC}" = x
; then
9688 REL_ALLOC
=${GNU_MALLOC}
9694 for ac_header
in stdlib.h unistd.h
9696 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9697 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9698 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9699 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9700 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9701 echo $ECHO_N "(cached) $ECHO_C" >&6
9703 ac_res
=`eval echo '${'$as_ac_Header'}'`
9704 { echo "$as_me:$LINENO: result: $ac_res" >&5
9705 echo "${ECHO_T}$ac_res" >&6; }
9707 # Is the header compilable?
9708 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9709 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9710 cat >conftest.
$ac_ext <<_ACEOF
9713 cat confdefs.h
>>conftest.
$ac_ext
9714 cat >>conftest.
$ac_ext <<_ACEOF
9715 /* end confdefs.h. */
9716 $ac_includes_default
9717 #include <$ac_header>
9719 rm -f conftest.
$ac_objext
9720 if { (ac_try
="$ac_compile"
9722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9723 *) ac_try_echo=$ac_try;;
9725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9726 (eval "$ac_compile") 2>conftest.er1
9728 grep -v '^ *+' conftest.er1 >conftest.err
9730 cat conftest.err >&5
9731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9732 (exit $ac_status); } && {
9733 test -z "$ac_c_werror_flag" ||
9734 test ! -s conftest.err
9735 } && test -s conftest.$ac_objext; then
9736 ac_header_compiler=yes
9738 echo "$as_me: failed program was:" >&5
9739 sed 's/^/| /' conftest.$ac_ext >&5
9741 ac_header_compiler=no
9744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9745 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9746 echo "${ECHO_T}$ac_header_compiler" >&6; }
9748 # Is the header present?
9749 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9750 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9751 cat >conftest.$ac_ext <<_ACEOF
9754 cat confdefs.h >>conftest.$ac_ext
9755 cat >>conftest.$ac_ext <<_ACEOF
9756 /* end confdefs.h. */
9757 #include <$ac_header>
9759 if { (ac_try="$ac_cpp conftest.$ac_ext"
9761 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9762 *) ac_try_echo
=$ac_try;;
9764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9765 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9767 grep -v '^ *+' conftest.er1
>conftest.err
9769 cat conftest.err
>&5
9770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9771 (exit $ac_status); } >/dev
/null
&& {
9772 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9773 test ! -s conftest.err
9775 ac_header_preproc
=yes
9777 echo "$as_me: failed program was:" >&5
9778 sed 's/^/| /' conftest.
$ac_ext >&5
9780 ac_header_preproc
=no
9783 rm -f conftest.err conftest.
$ac_ext
9784 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9785 echo "${ECHO_T}$ac_header_preproc" >&6; }
9787 # So? What about this header?
9788 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9790 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9791 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9792 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9793 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9794 ac_header_preproc
=yes
9797 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9798 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9799 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9800 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9801 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9802 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9803 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9804 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9805 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9806 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9807 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9808 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9812 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9813 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9814 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9815 echo $ECHO_N "(cached) $ECHO_C" >&6
9817 eval "$as_ac_Header=\$ac_header_preproc"
9819 ac_res
=`eval echo '${'$as_ac_Header'}'`
9820 { echo "$as_me:$LINENO: result: $ac_res" >&5
9821 echo "${ECHO_T}$ac_res" >&6; }
9824 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9825 cat >>confdefs.h
<<_ACEOF
9826 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9834 for ac_func
in getpagesize
9836 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9839 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9840 echo $ECHO_N "(cached) $ECHO_C" >&6
9842 cat >conftest.
$ac_ext <<_ACEOF
9845 cat confdefs.h
>>conftest.
$ac_ext
9846 cat >>conftest.
$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9850 #define $ac_func innocuous_$ac_func
9852 /* System header to define __stub macros and hopefully few prototypes,
9853 which can conflict with char $ac_func (); below.
9854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9855 <limits.h> exists even on freestanding compilers. */
9858 # include <limits.h>
9860 # include <assert.h>
9865 /* Override any GCC internal prototype to avoid an error.
9866 Use char because int might match the return type of a GCC
9867 builtin and then its argument prototype would still apply. */
9872 /* The GNU C library defines this for functions which it implements
9873 to always fail with ENOSYS. Some functions are actually named
9874 something starting with __ and the normal name is an alias. */
9875 #if defined __stub_$ac_func || defined __stub___$ac_func
9887 rm -f conftest.
$ac_objext conftest
$ac_exeext
9888 if { (ac_try
="$ac_link"
9890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9891 *) ac_try_echo=$ac_try;;
9893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9894 (eval "$ac_link") 2>conftest.er1
9896 grep -v '^ *+' conftest.er1 >conftest.err
9898 cat conftest.err >&5
9899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9900 (exit $ac_status); } && {
9901 test -z "$ac_c_werror_flag" ||
9902 test ! -s conftest.err
9903 } && test -s conftest$ac_exeext &&
9904 $as_test_x conftest$ac_exeext; then
9905 eval "$as_ac_var=yes"
9907 echo "$as_me: failed program was:" >&5
9908 sed 's/^/| /' conftest.$ac_ext >&5
9910 eval "$as_ac_var=no"
9913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9914 conftest$ac_exeext conftest.$ac_ext
9916 ac_res=`eval echo '${'$as_ac_var'}'`
9917 { echo "$as_me:$LINENO: result: $ac_res" >&5
9918 echo "${ECHO_T}$ac_res" >&6; }
9919 if test `eval echo '${'$as_ac_var'}'` = yes; then
9920 cat >>confdefs.h <<_ACEOF
9921 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9927 { echo "$as_me:$LINENO: checking for working mmap" >&5
9928 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9929 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9930 echo $ECHO_N "(cached) $ECHO_C" >&6
9932 if test "$cross_compiling" = yes; then
9933 ac_cv_func_mmap_fixed_mapped=no
9935 cat >conftest.$ac_ext <<_ACEOF
9938 cat confdefs.h >>conftest.$ac_ext
9939 cat >>conftest.$ac_ext <<_ACEOF
9940 /* end confdefs.h. */
9941 $ac_includes_default
9942 /* malloc might have been renamed as rpl_malloc. */
9945 /* Thanks to Mike Haertel and Jim Avera for this test.
9946 Here is a matrix of mmap possibilities:
9947 mmap private not fixed
9948 mmap private fixed at somewhere currently unmapped
9949 mmap private fixed at somewhere already mapped
9950 mmap shared not fixed
9951 mmap shared fixed at somewhere currently unmapped
9952 mmap shared fixed at somewhere already mapped
9953 For private mappings, we should verify that changes cannot be read()
9954 back from the file, nor mmap's back from the file at a different
9955 address. (There have been systems where private was not correctly
9956 implemented like the infamous i386 svr4.0, and systems where the
9957 VM page cache was not coherent with the file system buffer cache
9958 like early versions of FreeBSD and possibly contemporary NetBSD.)
9959 For shared mappings, we should conversely verify that changes get
9960 propagated back to all the places they're supposed to be.
9962 Grep wants private fixed already mapped.
9963 The main things grep needs to know about mmap are:
9964 * does it exist and is it safe to write into the mmap'd area
9965 * how to use it (BSD variants) */
9968 #include <sys/mman.h>
9970 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9974 /* This mess was copied from the GNU getpagesize.h. */
9975 #ifndef HAVE_GETPAGESIZE
9976 /* Assume that all systems that can run configure have sys/param.h. */
9977 # ifndef HAVE_SYS_PARAM_H
9978 # define HAVE_SYS_PARAM_H 1
9981 # ifdef _SC_PAGESIZE
9982 # define getpagesize() sysconf(_SC_PAGESIZE)
9983 # else /* no _SC_PAGESIZE */
9984 # ifdef HAVE_SYS_PARAM_H
9985 # include <sys/param.h>
9986 # ifdef EXEC_PAGESIZE
9987 # define getpagesize() EXEC_PAGESIZE
9988 # else /* no EXEC_PAGESIZE */
9990 # define getpagesize() NBPG * CLSIZE
9993 # endif /* no CLSIZE */
9994 # else /* no NBPG */
9996 # define getpagesize() NBPC
9997 # else /* no NBPC */
9999 # define getpagesize() PAGESIZE
10000 # endif /* PAGESIZE */
10001 # endif /* no NBPC */
10002 # endif /* no NBPG */
10003 # endif /* no EXEC_PAGESIZE */
10004 # else /* no HAVE_SYS_PARAM_H */
10005 # define getpagesize() 8192 /* punt totally */
10006 # endif /* no HAVE_SYS_PARAM_H */
10007 # endif /* no _SC_PAGESIZE */
10009 #endif /* no HAVE_GETPAGESIZE */
10014 char *data, *data2, *data3;
10018 pagesize = getpagesize ();
10020 /* First, make a file with some known garbage in it. */
10021 data = (char *) malloc (pagesize);
10024 for (i = 0; i < pagesize; ++i)
10025 *(data + i) = rand ();
10027 fd = creat ("conftest.mmap", 0600);
10030 if (write (fd, data, pagesize) != pagesize)
10034 /* Next, try to mmap the file at a fixed address which already has
10035 something else allocated at it. If we can, also make sure that
10036 we see the same garbage. */
10037 fd = open ("conftest.mmap", O_RDWR);
10040 data2 = (char *) malloc (2 * pagesize);
10043 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10044 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10045 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10047 for (i = 0; i < pagesize; ++i)
10048 if (*(data + i) != *(data2 + i))
10051 /* Finally, make sure that changes to the mapped area do not
10052 percolate back to the file as seen by read(). (This is a bug on
10053 some variants of i386 svr4.0.) */
10054 for (i = 0; i < pagesize; ++i)
10055 *(data2 + i) = *(data2 + i) + 1;
10056 data3 = (char *) malloc (pagesize);
10059 if (read (fd, data3, pagesize) != pagesize)
10061 for (i = 0; i < pagesize; ++i)
10062 if (*(data + i) != *(data3 + i))
10068 rm -f conftest$ac_exeext
10069 if { (ac_try="$ac_link"
10070 case "(($ac_try" in
10071 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10072 *) ac_try_echo
=$ac_try;;
10074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10075 (eval "$ac_link") 2>&5
10077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10078 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10079 { (case "(($ac_try" in
10080 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10081 *) ac_try_echo=$ac_try;;
10083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10084 (eval "$ac_try") 2>&5
10086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10087 (exit $ac_status); }; }; then
10088 ac_cv_func_mmap_fixed_mapped=yes
10090 echo "$as_me: program exited with status $ac_status" >&5
10091 echo "$as_me: failed program was:" >&5
10092 sed 's/^/| /' conftest.$ac_ext >&5
10094 ( exit $ac_status )
10095 ac_cv_func_mmap_fixed_mapped=no
10097 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10102 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10103 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10104 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10106 cat >>confdefs.h <<\_ACEOF
10107 #define HAVE_MMAP 1
10111 rm -f conftest.mmap
10113 if test $use_mmap_for_buffers = yes; then
10117 LIBS="$libsrc_libs $LIBS"
10120 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10121 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10122 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10123 echo $ECHO_N "(cached) $ECHO_C" >&6
10125 ac_check_lib_save_LIBS=$LIBS
10126 LIBS="-ldnet $LIBS"
10127 cat >conftest.$ac_ext <<_ACEOF
10130 cat confdefs.h >>conftest.$ac_ext
10131 cat >>conftest.$ac_ext <<_ACEOF
10132 /* end confdefs.h. */
10134 /* Override any GCC internal prototype to avoid an error.
10135 Use char because int might match the return type of a GCC
10136 builtin and then its argument prototype would still apply. */
10144 return dnet_ntoa ();
10149 rm -f conftest.$ac_objext conftest$ac_exeext
10150 if { (ac_try="$ac_link"
10151 case "(($ac_try" in
10152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10153 *) ac_try_echo
=$ac_try;;
10155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10156 (eval "$ac_link") 2>conftest.er1
10158 grep -v '^ *+' conftest.er1
>conftest.err
10160 cat conftest.err
>&5
10161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10162 (exit $ac_status); } && {
10163 test -z "$ac_c_werror_flag" ||
10164 test ! -s conftest.err
10165 } && test -s conftest
$ac_exeext &&
10166 $as_test_x conftest
$ac_exeext; then
10167 ac_cv_lib_dnet_dnet_ntoa
=yes
10169 echo "$as_me: failed program was:" >&5
10170 sed 's/^/| /' conftest.
$ac_ext >&5
10172 ac_cv_lib_dnet_dnet_ntoa
=no
10175 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10176 conftest
$ac_exeext conftest.
$ac_ext
10177 LIBS
=$ac_check_lib_save_LIBS
10179 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10180 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10181 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10182 cat >>confdefs.h
<<_ACEOF
10183 #define HAVE_LIBDNET 1
10186 LIBS
="-ldnet $LIBS"
10191 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10192 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10193 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10194 echo $ECHO_N "(cached) $ECHO_C" >&6
10196 ac_check_lib_save_LIBS
=$LIBS
10197 LIBS
="-lXbsd $LIBS"
10198 cat >conftest.
$ac_ext <<_ACEOF
10201 cat confdefs.h
>>conftest.
$ac_ext
10202 cat >>conftest.
$ac_ext <<_ACEOF
10203 /* end confdefs.h. */
10214 rm -f conftest.
$ac_objext conftest
$ac_exeext
10215 if { (ac_try
="$ac_link"
10216 case "(($ac_try" in
10217 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10218 *) ac_try_echo=$ac_try;;
10220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10221 (eval "$ac_link") 2>conftest.er1
10223 grep -v '^ *+' conftest.er1 >conftest.err
10225 cat conftest.err >&5
10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10227 (exit $ac_status); } && {
10228 test -z "$ac_c_werror_flag" ||
10229 test ! -s conftest.err
10230 } && test -s conftest$ac_exeext &&
10231 $as_test_x conftest$ac_exeext; then
10232 ac_cv_lib_Xbsd_main=yes
10234 echo "$as_me: failed program was:" >&5
10235 sed 's/^/| /' conftest.$ac_ext >&5
10237 ac_cv_lib_Xbsd_main=no
10240 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10241 conftest$ac_exeext conftest.$ac_ext
10242 LIBS=$ac_check_lib_save_LIBS
10244 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10245 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10246 if test $ac_cv_lib_Xbsd_main = yes; then
10247 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10252 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10253 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10254 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10257 ac_check_lib_save_LIBS=$LIBS
10258 LIBS="-lpthreads $LIBS"
10259 cat >conftest.$ac_ext <<_ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10266 /* Override any GCC internal prototype to avoid an error.
10267 Use char because int might match the return type of a GCC
10268 builtin and then its argument prototype would still apply. */
10276 return cma_open ();
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (ac_try="$ac_link"
10283 case "(($ac_try" in
10284 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10285 *) ac_try_echo
=$ac_try;;
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_link") 2>conftest.er1
10290 grep -v '^ *+' conftest.er1
>conftest.err
10292 cat conftest.err
>&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } && {
10295 test -z "$ac_c_werror_flag" ||
10296 test ! -s conftest.err
10297 } && test -s conftest
$ac_exeext &&
10298 $as_test_x conftest
$ac_exeext; then
10299 ac_cv_lib_pthreads_cma_open
=yes
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.
$ac_ext >&5
10304 ac_cv_lib_pthreads_cma_open
=no
10307 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10308 conftest
$ac_exeext conftest.
$ac_ext
10309 LIBS
=$ac_check_lib_save_LIBS
10311 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10312 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10313 if test $ac_cv_lib_pthreads_cma_open = yes; then
10314 cat >>confdefs.h
<<_ACEOF
10315 #define HAVE_LIBPTHREADS 1
10318 LIBS
="-lpthreads $LIBS"
10326 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10327 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10328 if test "${gdb_cv_bigtoc+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10333 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10334 *) gdb_cv_bigtoc
=-bbigtoc ;;
10337 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10338 cat >conftest.
$ac_ext <<_ACEOF
10341 cat confdefs.h
>>conftest.
$ac_ext
10342 cat >>conftest.
$ac_ext <<_ACEOF
10343 /* end confdefs.h. */
10353 rm -f conftest.
$ac_objext conftest
$ac_exeext
10354 if { (ac_try
="$ac_link"
10355 case "(($ac_try" in
10356 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10357 *) ac_try_echo=$ac_try;;
10359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10360 (eval "$ac_link") 2>conftest.er1
10362 grep -v '^ *+' conftest.er1 >conftest.err
10364 cat conftest.err >&5
10365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10366 (exit $ac_status); } && {
10367 test -z "$ac_c_werror_flag" ||
10368 test ! -s conftest.err
10369 } && test -s conftest$ac_exeext &&
10370 $as_test_x conftest$ac_exeext; then
10373 echo "$as_me: failed program was:" >&5
10374 sed 's/^/| /' conftest.$ac_ext >&5
10379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10380 conftest$ac_exeext conftest.$ac_ext
10383 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10384 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10388 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10389 # used for the tests that follow. We set them back to REAL_CFLAGS and
10390 # REAL_CPPFLAGS later on.
10392 REAL_CPPFLAGS="$CPPFLAGS"
10394 if test "${HAVE_X11}" = "yes"; then
10395 DEFS="$C_SWITCH_X_SITE $DEFS"
10396 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10398 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10399 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10401 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10402 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10403 # but it's more convenient here to set LD_RUN_PATH
10404 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10405 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10406 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10410 if test "${opsys}" = "gnu-linux"; then
10411 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10412 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10413 cat >conftest.$ac_ext <<_ACEOF
10416 cat confdefs.h >>conftest.$ac_ext
10417 cat >>conftest.$ac_ext <<_ACEOF
10418 /* end confdefs.h. */
10423 XOpenDisplay ("foo");
10428 rm -f conftest.$ac_objext conftest$ac_exeext
10429 if { (ac_try="$ac_link"
10430 case "(($ac_try" in
10431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10432 *) ac_try_echo
=$ac_try;;
10434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10435 (eval "$ac_link") 2>conftest.er1
10437 grep -v '^ *+' conftest.er1
>conftest.err
10439 cat conftest.err
>&5
10440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10441 (exit $ac_status); } && {
10442 test -z "$ac_c_werror_flag" ||
10443 test ! -s conftest.err
10444 } && test -s conftest
$ac_exeext &&
10445 $as_test_x conftest
$ac_exeext; then
10446 xlinux_first_failure
=no
10448 echo "$as_me: failed program was:" >&5
10449 sed 's/^/| /' conftest.
$ac_ext >&5
10451 xlinux_first_failure
=yes
10454 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10455 conftest
$ac_exeext conftest.
$ac_ext
10456 if test "${xlinux_first_failure}" = "yes"; then
10457 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10458 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10459 OLD_CPPFLAGS
="$CPPFLAGS"
10461 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10462 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10463 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10464 LIBS
="$LIBS -b i486-linuxaout"
10465 cat >conftest.
$ac_ext <<_ACEOF
10468 cat confdefs.h
>>conftest.
$ac_ext
10469 cat >>conftest.
$ac_ext <<_ACEOF
10470 /* end confdefs.h. */
10475 XOpenDisplay ("foo");
10480 rm -f conftest.
$ac_objext conftest
$ac_exeext
10481 if { (ac_try
="$ac_link"
10482 case "(($ac_try" in
10483 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10484 *) ac_try_echo=$ac_try;;
10486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10487 (eval "$ac_link") 2>conftest.er1
10489 grep -v '^ *+' conftest.er1 >conftest.err
10491 cat conftest.err >&5
10492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10493 (exit $ac_status); } && {
10494 test -z "$ac_c_werror_flag" ||
10495 test ! -s conftest.err
10496 } && test -s conftest$ac_exeext &&
10497 $as_test_x conftest$ac_exeext; then
10498 xlinux_second_failure=no
10500 echo "$as_me: failed program was:" >&5
10501 sed 's/^/| /' conftest.$ac_ext >&5
10503 xlinux_second_failure=yes
10506 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10507 conftest$ac_exeext conftest.$ac_ext
10508 if test "${xlinux_second_failure}" = "yes"; then
10509 # If we get the same failure with -b, there is no use adding -b.
10510 # So take it out. This plays safe.
10511 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10512 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10513 CPPFLAGS="$OLD_CPPFLAGS"
10515 { echo "$as_me:$LINENO: result: no" >&5
10516 echo "${ECHO_T}no" >&6; }
10518 { echo "$as_me:$LINENO: result: yes" >&5
10519 echo "${ECHO_T}yes" >&6; }
10522 { echo "$as_me:$LINENO: result: no" >&5
10523 echo "${ECHO_T}no" >&6; }
10527 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10528 # header files included from there.
10529 { echo "$as_me:$LINENO: checking for Xkb" >&5
10530 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10531 cat >conftest.$ac_ext <<_ACEOF
10534 cat confdefs.h >>conftest.$ac_ext
10535 cat >>conftest.$ac_ext <<_ACEOF
10536 /* end confdefs.h. */
10537 #include <X11/Xlib.h>
10538 #include <X11/XKBlib.h>
10542 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (ac_try="$ac_link"
10549 case "(($ac_try" in
10550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10551 *) ac_try_echo
=$ac_try;;
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_link") 2>conftest.er1
10556 grep -v '^ *+' conftest.er1
>conftest.err
10558 cat conftest.err
>&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } && {
10561 test -z "$ac_c_werror_flag" ||
10562 test ! -s conftest.err
10563 } && test -s conftest
$ac_exeext &&
10564 $as_test_x conftest
$ac_exeext; then
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.
$ac_ext >&5
10573 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10574 conftest
$ac_exeext conftest.
$ac_ext
10575 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10576 echo "${ECHO_T}$emacs_xkb" >&6; }
10577 if test $emacs_xkb = yes; then
10579 cat >>confdefs.h
<<\_ACEOF
10580 #define HAVE_XKBGETKEYBOARD 1
10589 for ac_func
in XrmSetDatabase XScreenResourceString \
10590 XScreenNumberOfScreen XSetWMProtocols
10592 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10593 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10594 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10595 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10596 echo $ECHO_N "(cached) $ECHO_C" >&6
10598 cat >conftest.
$ac_ext <<_ACEOF
10601 cat confdefs.h
>>conftest.
$ac_ext
10602 cat >>conftest.
$ac_ext <<_ACEOF
10603 /* end confdefs.h. */
10604 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10605 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10606 #define $ac_func innocuous_$ac_func
10608 /* System header to define __stub macros and hopefully few prototypes,
10609 which can conflict with char $ac_func (); below.
10610 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10611 <limits.h> exists even on freestanding compilers. */
10614 # include <limits.h>
10616 # include <assert.h>
10621 /* Override any GCC internal prototype to avoid an error.
10622 Use char because int might match the return type of a GCC
10623 builtin and then its argument prototype would still apply. */
10628 /* The GNU C library defines this for functions which it implements
10629 to always fail with ENOSYS. Some functions are actually named
10630 something starting with __ and the normal name is an alias. */
10631 #if defined __stub_$ac_func || defined __stub___$ac_func
10638 return $ac_func ();
10643 rm -f conftest.
$ac_objext conftest
$ac_exeext
10644 if { (ac_try
="$ac_link"
10645 case "(($ac_try" in
10646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10647 *) ac_try_echo=$ac_try;;
10649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10650 (eval "$ac_link") 2>conftest.er1
10652 grep -v '^ *+' conftest.er1 >conftest.err
10654 cat conftest.err >&5
10655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10656 (exit $ac_status); } && {
10657 test -z "$ac_c_werror_flag" ||
10658 test ! -s conftest.err
10659 } && test -s conftest$ac_exeext &&
10660 $as_test_x conftest$ac_exeext; then
10661 eval "$as_ac_var=yes"
10663 echo "$as_me: failed program was:" >&5
10664 sed 's/^/| /' conftest.$ac_ext >&5
10666 eval "$as_ac_var=no"
10669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10670 conftest$ac_exeext conftest.$ac_ext
10672 ac_res=`eval echo '${'$as_ac_var'}'`
10673 { echo "$as_me:$LINENO: result: $ac_res" >&5
10674 echo "${ECHO_T}$ac_res" >&6; }
10675 if test `eval echo '${'$as_ac_var'}'` = yes; then
10676 cat >>confdefs.h <<_ACEOF
10677 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10685 if test "${window_system}" = "x11"; then
10686 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10687 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10688 if test "${emacs_cv_x11_version_6+set}" = set; then
10689 echo $ECHO_N "(cached) $ECHO_C" >&6
10691 cat >conftest.$ac_ext <<_ACEOF
10694 cat confdefs.h >>conftest.$ac_ext
10695 cat >>conftest.$ac_ext <<_ACEOF
10696 /* end confdefs.h. */
10697 #include <X11/Xlib.h>
10701 #if XlibSpecificationRelease < 6
10709 rm -f conftest.$ac_objext conftest$ac_exeext
10710 if { (ac_try="$ac_link"
10711 case "(($ac_try" in
10712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10713 *) ac_try_echo
=$ac_try;;
10715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10716 (eval "$ac_link") 2>conftest.er1
10718 grep -v '^ *+' conftest.er1
>conftest.err
10720 cat conftest.err
>&5
10721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10722 (exit $ac_status); } && {
10723 test -z "$ac_c_werror_flag" ||
10724 test ! -s conftest.err
10725 } && test -s conftest
$ac_exeext &&
10726 $as_test_x conftest
$ac_exeext; then
10727 emacs_cv_x11_version_6
=yes
10729 echo "$as_me: failed program was:" >&5
10730 sed 's/^/| /' conftest.
$ac_ext >&5
10732 emacs_cv_x11_version_6
=no
10735 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10736 conftest
$ac_exeext conftest.
$ac_ext
10739 if test $emacs_cv_x11_version_6 = yes; then
10740 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10741 echo "${ECHO_T}6 or newer" >&6; }
10743 cat >>confdefs.h
<<\_ACEOF
10744 #define HAVE_X11R6 1
10748 { echo "$as_me:$LINENO: result: before 6" >&5
10749 echo "${ECHO_T}before 6" >&6; }
10754 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10756 if test "${HAVE_X11}" = "yes"; then
10757 if test "${with_rsvg}" != "no"; then
10758 RSVG_REQUIRED
=2.0.0
10759 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10764 # Extract the first word of "pkg-config", so it can be a program name with args.
10765 set dummy pkg-config
; ac_word
=$2
10766 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10767 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10768 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10769 echo $ECHO_N "(cached) $ECHO_C" >&6
10771 case $PKG_CONFIG in
10773 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10776 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10777 for as_dir
in $PATH
10780 test -z "$as_dir" && as_dir
=.
10781 for ac_exec_ext
in '' $ac_executable_extensions; do
10782 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10783 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10784 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10791 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10795 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10796 if test -n "$PKG_CONFIG"; then
10797 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10798 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10800 { echo "$as_me:$LINENO: result: no" >&5
10801 echo "${ECHO_T}no" >&6; }
10806 if test "$PKG_CONFIG" = "no" ; then
10809 PKG_CONFIG_MIN_VERSION
=0.9.0
10810 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10811 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10812 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10814 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10815 { echo "$as_me:$LINENO: result: yes" >&5
10816 echo "${ECHO_T}yes" >&6; }
10819 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10820 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10821 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10822 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10823 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10825 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10826 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10827 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10828 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10829 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10831 { echo "$as_me:$LINENO: result: no" >&5
10832 echo "${ECHO_T}no" >&6; }
10835 ## If we have a custom action on failure, don't print errors, but
10836 ## do set a variable so people can do so.
10837 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10844 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10845 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10849 if test $succeeded = yes; then
10858 if test ".${RSVG_CFLAGS}" != "."; then
10861 cat >>confdefs.h
<<\_ACEOF
10862 #define HAVE_RSVG 1
10865 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10866 LIBS
="$RSVG_LIBS $LIBS"
10873 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10876 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10881 # Extract the first word of "pkg-config", so it can be a program name with args.
10882 set dummy pkg-config
; ac_word
=$2
10883 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10884 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10885 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10886 echo $ECHO_N "(cached) $ECHO_C" >&6
10888 case $PKG_CONFIG in
10890 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10894 for as_dir
in $PATH
10897 test -z "$as_dir" && as_dir
=.
10898 for ac_exec_ext
in '' $ac_executable_extensions; do
10899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10900 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10908 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10912 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10913 if test -n "$PKG_CONFIG"; then
10914 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10915 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10917 { echo "$as_me:$LINENO: result: no" >&5
10918 echo "${ECHO_T}no" >&6; }
10923 if test "$PKG_CONFIG" = "no" ; then
10926 PKG_CONFIG_MIN_VERSION
=0.9.0
10927 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10928 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10929 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10931 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10932 { echo "$as_me:$LINENO: result: yes" >&5
10933 echo "${ECHO_T}yes" >&6; }
10936 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10937 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10938 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10939 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10940 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10942 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10943 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10944 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10945 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10946 echo "${ECHO_T}$GTK_LIBS" >&6; }
10948 { echo "$as_me:$LINENO: result: no" >&5
10949 echo "${ECHO_T}no" >&6; }
10952 ## If we have a custom action on failure, don't print errors, but
10953 ## do set a variable so people can do so.
10954 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10961 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10962 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10966 if test $succeeded = yes; then
10972 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10973 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10974 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10975 { (exit 1); exit 1; }; }
10980 if test x
"$pkg_check_gtk" = xyes
; then
10984 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10985 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10986 LIBS
="$GTK_LIBS $LIBS"
10989 for ac_func
in gtk_main
10991 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10994 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10995 echo $ECHO_N "(cached) $ECHO_C" >&6
10997 cat >conftest.
$ac_ext <<_ACEOF
11000 cat confdefs.h
>>conftest.
$ac_ext
11001 cat >>conftest.
$ac_ext <<_ACEOF
11002 /* end confdefs.h. */
11003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11005 #define $ac_func innocuous_$ac_func
11007 /* System header to define __stub macros and hopefully few prototypes,
11008 which can conflict with char $ac_func (); below.
11009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11010 <limits.h> exists even on freestanding compilers. */
11013 # include <limits.h>
11015 # include <assert.h>
11020 /* Override any GCC internal prototype to avoid an error.
11021 Use char because int might match the return type of a GCC
11022 builtin and then its argument prototype would still apply. */
11027 /* The GNU C library defines this for functions which it implements
11028 to always fail with ENOSYS. Some functions are actually named
11029 something starting with __ and the normal name is an alias. */
11030 #if defined __stub_$ac_func || defined __stub___$ac_func
11037 return $ac_func ();
11042 rm -f conftest.
$ac_objext conftest
$ac_exeext
11043 if { (ac_try
="$ac_link"
11044 case "(($ac_try" in
11045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11046 *) ac_try_echo=$ac_try;;
11048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11049 (eval "$ac_link") 2>conftest.er1
11051 grep -v '^ *+' conftest.er1 >conftest.err
11053 cat conftest.err >&5
11054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11055 (exit $ac_status); } && {
11056 test -z "$ac_c_werror_flag" ||
11057 test ! -s conftest.err
11058 } && test -s conftest$ac_exeext &&
11059 $as_test_x conftest$ac_exeext; then
11060 eval "$as_ac_var=yes"
11062 echo "$as_me: failed program was:" >&5
11063 sed 's/^/| /' conftest.$ac_ext >&5
11065 eval "$as_ac_var=no"
11068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11069 conftest$ac_exeext conftest.$ac_ext
11071 ac_res=`eval echo '${'$as_ac_var'}'`
11072 { echo "$as_me:$LINENO: result: $ac_res" >&5
11073 echo "${ECHO_T}$ac_res" >&6; }
11074 if test `eval echo '${'$as_ac_var'}'` = yes; then
11075 cat >>confdefs.h <<_ACEOF
11076 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11082 if test "${GTK_COMPILES}" != "yes"; then
11083 if test "$USE_X_TOOLKIT" != "maybe"; then
11084 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11085 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11086 { (exit 1); exit 1; }; };
11091 cat >>confdefs.h <<\_ACEOF
11096 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11099 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11100 closing open displays. This is no problem if you just use
11101 one display, but if you use more than one and close one of them
11102 Emacs may crash." >&5
11103 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11104 closing open displays. This is no problem if you just use
11105 one display, but if you use more than one and close one of them
11106 Emacs may crash." >&2;}
11114 if test "${HAVE_GTK}" = "yes"; then
11116 if test "$with_toolkit_scroll_bars" != no; then
11117 with_toolkit_scroll_bars=yes
11120 HAVE_GTK_MULTIDISPLAY=no
11122 for ac_func in gdk_display_open
11124 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11125 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11126 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11127 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11128 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 cat >conftest.$ac_ext <<_ACEOF
11133 cat confdefs.h >>conftest.$ac_ext
11134 cat >>conftest.$ac_ext <<_ACEOF
11135 /* end confdefs.h. */
11136 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11137 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11138 #define $ac_func innocuous_$ac_func
11140 /* System header to define __stub macros and hopefully few prototypes,
11141 which can conflict with char $ac_func (); below.
11142 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11143 <limits.h> exists even on freestanding compilers. */
11146 # include <limits.h>
11148 # include <assert.h>
11153 /* Override any GCC internal prototype to avoid an error.
11154 Use char because int might match the return type of a GCC
11155 builtin and then its argument prototype would still apply. */
11160 /* The GNU C library defines this for functions which it implements
11161 to always fail with ENOSYS. Some functions are actually named
11162 something starting with __ and the normal name is an alias. */
11163 #if defined __stub_$ac_func || defined __stub___$ac_func
11170 return $ac_func ();
11175 rm -f conftest.$ac_objext conftest$ac_exeext
11176 if { (ac_try="$ac_link"
11177 case "(($ac_try" in
11178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11179 *) ac_try_echo
=$ac_try;;
11181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11182 (eval "$ac_link") 2>conftest.er1
11184 grep -v '^ *+' conftest.er1
>conftest.err
11186 cat conftest.err
>&5
11187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11188 (exit $ac_status); } && {
11189 test -z "$ac_c_werror_flag" ||
11190 test ! -s conftest.err
11191 } && test -s conftest
$ac_exeext &&
11192 $as_test_x conftest
$ac_exeext; then
11193 eval "$as_ac_var=yes"
11195 echo "$as_me: failed program was:" >&5
11196 sed 's/^/| /' conftest.
$ac_ext >&5
11198 eval "$as_ac_var=no"
11201 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11202 conftest
$ac_exeext conftest.
$ac_ext
11204 ac_res
=`eval echo '${'$as_ac_var'}'`
11205 { echo "$as_me:$LINENO: result: $ac_res" >&5
11206 echo "${ECHO_T}$ac_res" >&6; }
11207 if test `eval echo '${'$as_ac_var'}'` = yes; then
11208 cat >>confdefs.h
<<_ACEOF
11209 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11211 HAVE_GTK_MULTIDISPLAY
=yes
11215 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11217 cat >>confdefs.h
<<\_ACEOF
11218 #define HAVE_GTK_MULTIDISPLAY 1
11223 HAVE_GTK_FILE_SELECTION
=no
11225 for ac_func
in gtk_file_selection_new
11227 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11228 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11229 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11230 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11233 cat >conftest.
$ac_ext <<_ACEOF
11236 cat confdefs.h
>>conftest.
$ac_ext
11237 cat >>conftest.
$ac_ext <<_ACEOF
11238 /* end confdefs.h. */
11239 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11240 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11241 #define $ac_func innocuous_$ac_func
11243 /* System header to define __stub macros and hopefully few prototypes,
11244 which can conflict with char $ac_func (); below.
11245 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11246 <limits.h> exists even on freestanding compilers. */
11249 # include <limits.h>
11251 # include <assert.h>
11256 /* Override any GCC internal prototype to avoid an error.
11257 Use char because int might match the return type of a GCC
11258 builtin and then its argument prototype would still apply. */
11263 /* The GNU C library defines this for functions which it implements
11264 to always fail with ENOSYS. Some functions are actually named
11265 something starting with __ and the normal name is an alias. */
11266 #if defined __stub_$ac_func || defined __stub___$ac_func
11273 return $ac_func ();
11278 rm -f conftest.
$ac_objext conftest
$ac_exeext
11279 if { (ac_try
="$ac_link"
11280 case "(($ac_try" in
11281 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11282 *) ac_try_echo=$ac_try;;
11284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11285 (eval "$ac_link") 2>conftest.er1
11287 grep -v '^ *+' conftest.er1 >conftest.err
11289 cat conftest.err >&5
11290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11291 (exit $ac_status); } && {
11292 test -z "$ac_c_werror_flag" ||
11293 test ! -s conftest.err
11294 } && test -s conftest$ac_exeext &&
11295 $as_test_x conftest$ac_exeext; then
11296 eval "$as_ac_var=yes"
11298 echo "$as_me: failed program was:" >&5
11299 sed 's/^/| /' conftest.$ac_ext >&5
11301 eval "$as_ac_var=no"
11304 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11305 conftest$ac_exeext conftest.$ac_ext
11307 ac_res=`eval echo '${'$as_ac_var'}'`
11308 { echo "$as_me:$LINENO: result: $ac_res" >&5
11309 echo "${ECHO_T}$ac_res" >&6; }
11310 if test `eval echo '${'$as_ac_var'}'` = yes; then
11311 cat >>confdefs.h <<_ACEOF
11312 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11314 HAVE_GTK_FILE_SELECTION=yes
11319 HAVE_GTK_FILE_CHOOSER=no
11321 for ac_func in gtk_file_chooser_dialog_new
11323 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11324 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11325 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11326 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11327 echo $ECHO_N "(cached) $ECHO_C" >&6
11329 cat >conftest.$ac_ext <<_ACEOF
11332 cat confdefs.h >>conftest.$ac_ext
11333 cat >>conftest.$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11336 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11337 #define $ac_func innocuous_$ac_func
11339 /* System header to define __stub macros and hopefully few prototypes,
11340 which can conflict with char $ac_func (); below.
11341 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11342 <limits.h> exists even on freestanding compilers. */
11345 # include <limits.h>
11347 # include <assert.h>
11352 /* Override any GCC internal prototype to avoid an error.
11353 Use char because int might match the return type of a GCC
11354 builtin and then its argument prototype would still apply. */
11359 /* The GNU C library defines this for functions which it implements
11360 to always fail with ENOSYS. Some functions are actually named
11361 something starting with __ and the normal name is an alias. */
11362 #if defined __stub_$ac_func || defined __stub___$ac_func
11369 return $ac_func ();
11374 rm -f conftest.$ac_objext conftest$ac_exeext
11375 if { (ac_try="$ac_link"
11376 case "(($ac_try" in
11377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11378 *) ac_try_echo
=$ac_try;;
11380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11381 (eval "$ac_link") 2>conftest.er1
11383 grep -v '^ *+' conftest.er1
>conftest.err
11385 cat conftest.err
>&5
11386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11387 (exit $ac_status); } && {
11388 test -z "$ac_c_werror_flag" ||
11389 test ! -s conftest.err
11390 } && test -s conftest
$ac_exeext &&
11391 $as_test_x conftest
$ac_exeext; then
11392 eval "$as_ac_var=yes"
11394 echo "$as_me: failed program was:" >&5
11395 sed 's/^/| /' conftest.
$ac_ext >&5
11397 eval "$as_ac_var=no"
11400 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11401 conftest
$ac_exeext conftest.
$ac_ext
11403 ac_res
=`eval echo '${'$as_ac_var'}'`
11404 { echo "$as_me:$LINENO: result: $ac_res" >&5
11405 echo "${ECHO_T}$ac_res" >&6; }
11406 if test `eval echo '${'$as_ac_var'}'` = yes; then
11407 cat >>confdefs.h
<<_ACEOF
11408 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11410 HAVE_GTK_FILE_CHOOSER
=yes
11415 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11416 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11418 cat >>confdefs.h
<<\_ACEOF
11419 #define HAVE_GTK_FILE_BOTH 1
11424 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11425 HAVE_GTK_AND_PTHREAD
=no
11427 for ac_header
in pthread.h
11429 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11430 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11433 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 ac_res
=`eval echo '${'$as_ac_Header'}'`
11437 { echo "$as_me:$LINENO: result: $ac_res" >&5
11438 echo "${ECHO_T}$ac_res" >&6; }
11440 # Is the header compilable?
11441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11443 cat >conftest.
$ac_ext <<_ACEOF
11446 cat confdefs.h
>>conftest.
$ac_ext
11447 cat >>conftest.
$ac_ext <<_ACEOF
11448 /* end confdefs.h. */
11449 $ac_includes_default
11450 #include <$ac_header>
11452 rm -f conftest.
$ac_objext
11453 if { (ac_try
="$ac_compile"
11454 case "(($ac_try" in
11455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_compile") 2>conftest.er1
11461 grep -v '^ *+' conftest.er1 >conftest.err
11463 cat conftest.err >&5
11464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11465 (exit $ac_status); } && {
11466 test -z "$ac_c_werror_flag" ||
11467 test ! -s conftest.err
11468 } && test -s conftest.$ac_objext; then
11469 ac_header_compiler=yes
11471 echo "$as_me: failed program was:" >&5
11472 sed 's/^/| /' conftest.$ac_ext >&5
11474 ac_header_compiler=no
11477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11479 echo "${ECHO_T}$ac_header_compiler" >&6; }
11481 # Is the header present?
11482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11484 cat >conftest.$ac_ext <<_ACEOF
11487 cat confdefs.h >>conftest.$ac_ext
11488 cat >>conftest.$ac_ext <<_ACEOF
11489 /* end confdefs.h. */
11490 #include <$ac_header>
11492 if { (ac_try="$ac_cpp conftest.$ac_ext"
11493 case "(($ac_try" in
11494 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11495 *) ac_try_echo
=$ac_try;;
11497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11500 grep -v '^ *+' conftest.er1
>conftest.err
11502 cat conftest.err
>&5
11503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11504 (exit $ac_status); } >/dev
/null
&& {
11505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11506 test ! -s conftest.err
11508 ac_header_preproc
=yes
11510 echo "$as_me: failed program was:" >&5
11511 sed 's/^/| /' conftest.
$ac_ext >&5
11513 ac_header_preproc
=no
11516 rm -f conftest.err conftest.
$ac_ext
11517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11518 echo "${ECHO_T}$ac_header_preproc" >&6; }
11520 # So? What about this header?
11521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11527 ac_header_preproc
=yes
11530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11547 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11550 eval "$as_ac_Header=\$ac_header_preproc"
11552 ac_res
=`eval echo '${'$as_ac_Header'}'`
11553 { echo "$as_me:$LINENO: result: $ac_res" >&5
11554 echo "${ECHO_T}$ac_res" >&6; }
11557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11558 cat >>confdefs.h
<<_ACEOF
11559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11566 if test "$ac_cv_header_pthread_h"; then
11567 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11568 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11569 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11570 echo $ECHO_N "(cached) $ECHO_C" >&6
11572 ac_check_lib_save_LIBS
=$LIBS
11573 LIBS
="-lpthread $LIBS"
11574 cat >conftest.
$ac_ext <<_ACEOF
11577 cat confdefs.h
>>conftest.
$ac_ext
11578 cat >>conftest.
$ac_ext <<_ACEOF
11579 /* end confdefs.h. */
11581 /* Override any GCC internal prototype to avoid an error.
11582 Use char because int might match the return type of a GCC
11583 builtin and then its argument prototype would still apply. */
11587 char pthread_self ();
11591 return pthread_self ();
11596 rm -f conftest.
$ac_objext conftest
$ac_exeext
11597 if { (ac_try
="$ac_link"
11598 case "(($ac_try" in
11599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11600 *) ac_try_echo=$ac_try;;
11602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11603 (eval "$ac_link") 2>conftest.er1
11605 grep -v '^ *+' conftest.er1 >conftest.err
11607 cat conftest.err >&5
11608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11609 (exit $ac_status); } && {
11610 test -z "$ac_c_werror_flag" ||
11611 test ! -s conftest.err
11612 } && test -s conftest$ac_exeext &&
11613 $as_test_x conftest$ac_exeext; then
11614 ac_cv_lib_pthread_pthread_self=yes
11616 echo "$as_me: failed program was:" >&5
11617 sed 's/^/| /' conftest.$ac_ext >&5
11619 ac_cv_lib_pthread_pthread_self=no
11622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11623 conftest$ac_exeext conftest.$ac_ext
11624 LIBS=$ac_check_lib_save_LIBS
11626 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11627 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11628 if test $ac_cv_lib_pthread_pthread_self = yes; then
11629 HAVE_GTK_AND_PTHREAD=yes
11633 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11634 case "${canonical}" in
11636 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11639 cat >>confdefs.h <<\_ACEOF
11640 #define HAVE_GTK_AND_PTHREAD 1
11648 if test "${with_dbus}" = "yes"; then
11652 # Extract the first word of "pkg-config", so it can be a program name with args.
11653 set dummy pkg-config; ac_word=$2
11654 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11655 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11656 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11657 echo $ECHO_N "(cached) $ECHO_C" >&6
11659 case $PKG_CONFIG in
11661 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11665 for as_dir in $PATH
11668 test -z "$as_dir" && as_dir=.
11669 for ac_exec_ext in '' $ac_executable_extensions; do
11670 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11671 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11672 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11679 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11683 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11684 if test -n "$PKG_CONFIG"; then
11685 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11686 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11688 { echo "$as_me:$LINENO: result: no" >&5
11689 echo "${ECHO_T}no" >&6; }
11694 if test "$PKG_CONFIG" = "no" ; then
11697 PKG_CONFIG_MIN_VERSION=0.9.0
11698 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11699 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11700 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11702 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11703 { echo "$as_me:$LINENO: result: yes" >&5
11704 echo "${ECHO_T}yes" >&6; }
11707 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11708 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11709 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11710 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11711 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11713 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11714 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11715 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11716 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11717 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11719 { echo "$as_me:$LINENO: result: no" >&5
11720 echo "${ECHO_T}no" >&6; }
11723 ## If we have a custom action on failure, don't print errors, but
11724 ## do set a variable so people can do so.
11725 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11732 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11733 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11737 if test $succeeded = yes; then
11743 if test "$HAVE_DBUS" = yes; then
11745 cat >>confdefs.h <<\_ACEOF
11746 #define HAVE_DBUS 1
11753 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11754 if test "$with_xaw3d" != no; then
11755 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11756 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11757 if test "${emacs_cv_xaw3d+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 cat >conftest.$ac_ext <<_ACEOF
11763 cat confdefs.h >>conftest.$ac_ext
11764 cat >>conftest.$ac_ext <<_ACEOF
11765 /* end confdefs.h. */
11767 #include <X11/Intrinsic.h>
11768 #include <X11/Xaw3d/Simple.h>
11777 rm -f conftest.$ac_objext conftest$ac_exeext
11778 if { (ac_try="$ac_link"
11779 case "(($ac_try" in
11780 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11781 *) ac_try_echo
=$ac_try;;
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_link") 2>conftest.er1
11786 grep -v '^ *+' conftest.er1
>conftest.err
11788 cat conftest.err
>&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && {
11791 test -z "$ac_c_werror_flag" ||
11792 test ! -s conftest.err
11793 } && test -s conftest
$ac_exeext &&
11794 $as_test_x conftest
$ac_exeext; then
11797 echo "$as_me: failed program was:" >&5
11798 sed 's/^/| /' conftest.
$ac_ext >&5
11803 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11804 conftest
$ac_exeext conftest.
$ac_ext
11810 if test $emacs_cv_xaw3d = yes; then
11811 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11812 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11813 USE_X_TOOLKIT
=LUCID
11816 cat >>confdefs.h
<<\_ACEOF
11817 #define HAVE_XAW3D 1
11821 { echo "$as_me:$LINENO: result: no" >&5
11822 echo "${ECHO_T}no" >&6; }
11823 { echo "$as_me:$LINENO: checking for libXaw" >&5
11824 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11825 if test "${emacs_cv_xaw+set}" = set; then
11826 echo $ECHO_N "(cached) $ECHO_C" >&6
11828 cat >conftest.
$ac_ext <<_ACEOF
11831 cat confdefs.h
>>conftest.
$ac_ext
11832 cat >>conftest.
$ac_ext <<_ACEOF
11833 /* end confdefs.h. */
11835 #include <X11/Intrinsic.h>
11836 #include <X11/Xaw/Simple.h>
11845 rm -f conftest.
$ac_objext conftest
$ac_exeext
11846 if { (ac_try
="$ac_link"
11847 case "(($ac_try" in
11848 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11849 *) ac_try_echo=$ac_try;;
11851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11852 (eval "$ac_link") 2>conftest.er1
11854 grep -v '^ *+' conftest.er1 >conftest.err
11856 cat conftest.err >&5
11857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11858 (exit $ac_status); } && {
11859 test -z "$ac_c_werror_flag" ||
11860 test ! -s conftest.err
11861 } && test -s conftest$ac_exeext &&
11862 $as_test_x conftest$ac_exeext; then
11865 echo "$as_me: failed program was:" >&5
11866 sed 's/^/| /' conftest.$ac_ext >&5
11871 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11872 conftest$ac_exeext conftest.$ac_ext
11875 if test $emacs_cv_xaw = yes; then
11876 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11877 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11878 USE_X_TOOLKIT=LUCID
11879 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11880 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11881 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11882 { (exit 1); exit 1; }; }
11884 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11885 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11891 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11893 if test "${USE_X_TOOLKIT}" != "none"; then
11894 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11895 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11896 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11897 echo $ECHO_N "(cached) $ECHO_C" >&6
11899 cat >conftest.$ac_ext <<_ACEOF
11902 cat confdefs.h >>conftest.$ac_ext
11903 cat >>conftest.$ac_ext <<_ACEOF
11904 /* end confdefs.h. */
11905 #include <X11/Intrinsic.h>
11909 #if XtSpecificationRelease < 6
11917 rm -f conftest.$ac_objext conftest$ac_exeext
11918 if { (ac_try="$ac_link"
11919 case "(($ac_try" in
11920 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11921 *) ac_try_echo
=$ac_try;;
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_link") 2>conftest.er1
11926 grep -v '^ *+' conftest.er1
>conftest.err
11928 cat conftest.err
>&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest
$ac_exeext &&
11934 $as_test_x conftest
$ac_exeext; then
11935 emacs_cv_x11_toolkit_version_6
=yes
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.
$ac_ext >&5
11940 emacs_cv_x11_toolkit_version_6
=no
11943 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11944 conftest
$ac_exeext conftest.
$ac_ext
11947 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11948 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11949 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11950 echo "${ECHO_T}6 or newer" >&6; }
11952 cat >>confdefs.h
<<\_ACEOF
11953 #define HAVE_X11XTR6 1
11957 { echo "$as_me:$LINENO: result: before 6" >&5
11958 echo "${ECHO_T}before 6" >&6; }
11962 if test x
$HAVE_X11XTR6 = xyes
; then
11963 LIBS
="-lXt -lSM -lICE $LIBS"
11968 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11969 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11970 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11973 ac_check_lib_save_LIBS
=$LIBS
11975 cat >conftest.
$ac_ext <<_ACEOF
11978 cat confdefs.h
>>conftest.
$ac_ext
11979 cat >>conftest.
$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11982 /* Override any GCC internal prototype to avoid an error.
11983 Use char because int might match the return type of a GCC
11984 builtin and then its argument prototype would still apply. */
11988 char XmuConvertStandardSelection ();
11992 return XmuConvertStandardSelection ();
11997 rm -f conftest.
$ac_objext conftest
$ac_exeext
11998 if { (ac_try
="$ac_link"
11999 case "(($ac_try" in
12000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12001 *) ac_try_echo=$ac_try;;
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_link") 2>conftest.er1
12006 grep -v '^ *+' conftest.er1 >conftest.err
12008 cat conftest.err >&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } && {
12011 test -z "$ac_c_werror_flag" ||
12012 test ! -s conftest.err
12013 } && test -s conftest$ac_exeext &&
12014 $as_test_x conftest$ac_exeext; then
12015 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.$ac_ext >&5
12020 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12024 conftest$ac_exeext conftest.$ac_ext
12025 LIBS=$ac_check_lib_save_LIBS
12027 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12028 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12029 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12030 cat >>confdefs.h <<_ACEOF
12031 #define HAVE_LIBXMU 1
12038 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12041 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12042 if test "${HAVE_X11}" = "yes"; then
12043 if test "${USE_X_TOOLKIT}" != "none"; then
12045 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12046 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12047 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12048 echo $ECHO_N "(cached) $ECHO_C" >&6
12050 ac_check_lib_save_LIBS=$LIBS
12051 LIBS="-lXext $LIBS"
12052 cat >conftest.$ac_ext <<_ACEOF
12055 cat confdefs.h >>conftest.$ac_ext
12056 cat >>conftest.$ac_ext <<_ACEOF
12057 /* end confdefs.h. */
12059 /* Override any GCC internal prototype to avoid an error.
12060 Use char because int might match the return type of a GCC
12061 builtin and then its argument prototype would still apply. */
12065 char XShapeQueryExtension ();
12069 return XShapeQueryExtension ();
12074 rm -f conftest.$ac_objext conftest$ac_exeext
12075 if { (ac_try="$ac_link"
12076 case "(($ac_try" in
12077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12078 *) ac_try_echo
=$ac_try;;
12080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12081 (eval "$ac_link") 2>conftest.er1
12083 grep -v '^ *+' conftest.er1
>conftest.err
12085 cat conftest.err
>&5
12086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12087 (exit $ac_status); } && {
12088 test -z "$ac_c_werror_flag" ||
12089 test ! -s conftest.err
12090 } && test -s conftest
$ac_exeext &&
12091 $as_test_x conftest
$ac_exeext; then
12092 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12094 echo "$as_me: failed program was:" >&5
12095 sed 's/^/| /' conftest.
$ac_ext >&5
12097 ac_cv_lib_Xext_XShapeQueryExtension
=no
12100 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12101 conftest
$ac_exeext conftest.
$ac_ext
12102 LIBS
=$ac_check_lib_save_LIBS
12104 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12105 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12106 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12107 cat >>confdefs.h
<<_ACEOF
12108 #define HAVE_LIBXEXT 1
12111 LIBS
="-lXext $LIBS"
12118 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12119 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12120 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12121 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12122 echo $ECHO_N "(cached) $ECHO_C" >&6
12124 cat >conftest.
$ac_ext <<_ACEOF
12127 cat confdefs.h
>>conftest.
$ac_ext
12128 cat >>conftest.
$ac_ext <<_ACEOF
12129 /* end confdefs.h. */
12134 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12137 Motif version prior to 2.1.
12143 rm -f conftest.
$ac_objext
12144 if { (ac_try
="$ac_compile"
12145 case "(($ac_try" in
12146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12147 *) ac_try_echo=$ac_try;;
12149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150 (eval "$ac_compile") 2>conftest.er1
12152 grep -v '^ *+' conftest.er1 >conftest.err
12154 cat conftest.err >&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } && {
12157 test -z "$ac_c_werror_flag" ||
12158 test ! -s conftest.err
12159 } && test -s conftest.$ac_objext; then
12160 emacs_cv_motif_version_2_1=yes
12162 echo "$as_me: failed program was:" >&5
12163 sed 's/^/| /' conftest.$ac_ext >&5
12165 emacs_cv_motif_version_2_1=no
12168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12170 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12171 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12172 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12173 if test $emacs_cv_motif_version_2_1 = yes; then
12176 cat >>confdefs.h <<\_ACEOF
12177 #define HAVE_MOTIF_2_1 1
12180 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12181 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12182 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12185 ac_check_lib_save_LIBS=$LIBS
12187 cat >conftest.$ac_ext <<_ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h. */
12194 /* Override any GCC internal prototype to avoid an error.
12195 Use char because int might match the return type of a GCC
12196 builtin and then its argument prototype would still apply. */
12200 char XpCreateContext ();
12204 return XpCreateContext ();
12209 rm -f conftest.$ac_objext conftest$ac_exeext
12210 if { (ac_try="$ac_link"
12211 case "(($ac_try" in
12212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12213 *) ac_try_echo
=$ac_try;;
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_link") 2>conftest.er1
12218 grep -v '^ *+' conftest.er1
>conftest.err
12220 cat conftest.err
>&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && {
12223 test -z "$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 } && test -s conftest
$ac_exeext &&
12226 $as_test_x conftest
$ac_exeext; then
12227 ac_cv_lib_Xp_XpCreateContext
=yes
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.
$ac_ext >&5
12232 ac_cv_lib_Xp_XpCreateContext
=no
12235 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12236 conftest
$ac_exeext conftest.
$ac_ext
12237 LIBS
=$ac_check_lib_save_LIBS
12239 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12240 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12241 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12245 if test ${HAVE_LIBXP} = yes; then
12247 cat >>confdefs.h
<<\_ACEOF
12248 #define HAVE_LIBXP 1
12253 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12254 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12255 if test "${emacs_cv_lesstif+set}" = set; then
12256 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 # We put this in CFLAGS temporarily to precede other -I options
12259 # that might be in CFLAGS temporarily.
12260 # We put this in CPPFLAGS where it precedes the other -I options.
12261 OLD_CPPFLAGS
=$CPPFLAGS
12263 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12264 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12265 cat >conftest.
$ac_ext <<_ACEOF
12268 cat confdefs.h
>>conftest.
$ac_ext
12269 cat >>conftest.
$ac_ext <<_ACEOF
12270 /* end confdefs.h. */
12271 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12280 rm -f conftest.
$ac_objext
12281 if { (ac_try
="$ac_compile"
12282 case "(($ac_try" in
12283 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12284 *) ac_try_echo=$ac_try;;
12286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12287 (eval "$ac_compile") 2>conftest.er1
12289 grep -v '^ *+' conftest.er1 >conftest.err
12291 cat conftest.err >&5
12292 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12293 (exit $ac_status); } && {
12294 test -z "$ac_c_werror_flag" ||
12295 test ! -s conftest.err
12296 } && test -s conftest.$ac_objext; then
12297 emacs_cv_lesstif=yes
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.$ac_ext >&5
12302 emacs_cv_lesstif=no
12305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12307 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12308 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12309 if test $emacs_cv_lesstif = yes; then
12310 # Make sure this -I option remains in CPPFLAGS after it is set
12311 # back to REAL_CPPFLAGS.
12312 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12313 # have those other -I options anyway. Ultimately, having this
12314 # directory ultimately in CPPFLAGS will be enough.
12315 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12316 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12319 CPPFLAGS=$OLD_CPPFLAGS
12326 USE_TOOLKIT_SCROLL_BARS=no
12327 if test "${with_toolkit_scroll_bars}" != "no"; then
12328 if test "${USE_X_TOOLKIT}" != "none"; then
12329 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12330 cat >>confdefs.h <<\_ACEOF
12331 #define USE_TOOLKIT_SCROLL_BARS 1
12335 USE_TOOLKIT_SCROLL_BARS=yes
12336 elif test "${HAVE_XAW3D}" = "yes"; then
12337 cat >>confdefs.h <<\_ACEOF
12338 #define USE_TOOLKIT_SCROLL_BARS 1
12341 USE_TOOLKIT_SCROLL_BARS=yes
12343 elif test "${HAVE_GTK}" = "yes"; then
12344 cat >>confdefs.h <<\_ACEOF
12345 #define USE_TOOLKIT_SCROLL_BARS 1
12348 USE_TOOLKIT_SCROLL_BARS=yes
12349 elif test "${HAVE_NS}" = "yes"; then
12350 cat >>confdefs.h <<\_ACEOF
12351 #define USE_TOOLKIT_SCROLL_BARS 1
12354 USE_TOOLKIT_SCROLL_BARS=yes
12358 cat >conftest.$ac_ext <<_ACEOF
12361 cat confdefs.h >>conftest.$ac_ext
12362 cat >>conftest.$ac_ext <<_ACEOF
12363 /* end confdefs.h. */
12365 #include <X11/Xlib.h>
12366 #include <X11/Xresource.h>
12375 rm -f conftest.$ac_objext
12376 if { (ac_try="$ac_compile"
12377 case "(($ac_try" in
12378 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12379 *) ac_try_echo
=$ac_try;;
12381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12382 (eval "$ac_compile") 2>conftest.er1
12384 grep -v '^ *+' conftest.er1
>conftest.err
12386 cat conftest.err
>&5
12387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12388 (exit $ac_status); } && {
12389 test -z "$ac_c_werror_flag" ||
12390 test ! -s conftest.err
12391 } && test -s conftest.
$ac_objext; then
12394 cat >>confdefs.h
<<\_ACEOF
12399 echo "$as_me: failed program was:" >&5
12400 sed 's/^/| /' conftest.
$ac_ext >&5
12405 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12408 if test "${with_xim}" != "no"; then
12410 cat >>confdefs.h
<<\_ACEOF
12417 if test "${HAVE_XIM}" != "no"; then
12418 late_CFLAGS
=$CFLAGS
12419 if test "$GCC" = yes; then
12420 CFLAGS
="$CFLAGS --pedantic-errors"
12422 cat >conftest.
$ac_ext <<_ACEOF
12425 cat confdefs.h
>>conftest.
$ac_ext
12426 cat >>conftest.
$ac_ext <<_ACEOF
12427 /* end confdefs.h. */
12429 #include <X11/Xlib.h>
12430 #include <X11/Xresource.h>
12439 XPointer *client_data;
12441 /* If we're not using GCC, it's probably not XFree86, and this is
12442 probably right, but we can't use something like --pedantic-errors. */
12443 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12444 char*, XIMProc, XPointer*);
12446 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12452 rm -f conftest.
$ac_objext
12453 if { (ac_try
="$ac_compile"
12454 case "(($ac_try" in
12455 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12456 *) ac_try_echo=$ac_try;;
12458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12459 (eval "$ac_compile") 2>conftest.er1
12461 grep -v '^ *+' conftest.er1 >conftest.err
12463 cat conftest.err >&5
12464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12465 (exit $ac_status); } && {
12466 test -z "$ac_c_werror_flag" ||
12467 test ! -s conftest.err
12468 } && test -s conftest.$ac_objext; then
12469 emacs_cv_arg6_star=yes
12471 echo "$as_me: failed program was:" >&5
12472 sed 's/^/| /' conftest.$ac_ext >&5
12477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12479 if test "$emacs_cv_arg6_star" = yes; then
12480 cat >>confdefs.h <<\_ACEOF
12481 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12485 cat >>confdefs.h <<\_ACEOF
12486 #define XRegisterIMInstantiateCallback_arg6 XPointer
12490 CFLAGS=$late_CFLAGS
12493 ### Start of font-backend section.
12495 ## Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12497 if test "x${with_freetype}" = "xno"; then
12500 if test "x${with_xft}" != "xno"; then
12505 # Extract the first word of "pkg-config", so it can be a program name with args.
12506 set dummy pkg-config
; ac_word
=$2
12507 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12508 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12509 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12510 echo $ECHO_N "(cached) $ECHO_C" >&6
12512 case $PKG_CONFIG in
12514 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12518 for as_dir
in $PATH
12521 test -z "$as_dir" && as_dir
=.
12522 for ac_exec_ext
in '' $ac_executable_extensions; do
12523 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12524 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12525 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12532 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12536 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12537 if test -n "$PKG_CONFIG"; then
12538 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12539 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12541 { echo "$as_me:$LINENO: result: no" >&5
12542 echo "${ECHO_T}no" >&6; }
12547 if test "$PKG_CONFIG" = "no" ; then
12550 PKG_CONFIG_MIN_VERSION
=0.9.0
12551 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12552 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12553 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12555 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12556 { echo "$as_me:$LINENO: result: yes" >&5
12557 echo "${ECHO_T}yes" >&6; }
12560 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12561 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12562 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12563 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12564 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12566 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12567 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12568 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12569 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12570 echo "${ECHO_T}$XFT_LIBS" >&6; }
12572 { echo "$as_me:$LINENO: result: no" >&5
12573 echo "${ECHO_T}no" >&6; }
12576 ## If we have a custom action on failure, don't print errors, but
12577 ## do set a variable so people can do so.
12578 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12585 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12586 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12590 if test $succeeded = yes; then
12596 if test "$HAVE_XFT" != no
; then
12597 OLD_CPPFLAGS
="$CPPFLAGS"
12598 OLD_CFLAGS
="$CFLAGS"
12600 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12601 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12602 LIBS
="$XFT_LIBS $LIBS"
12603 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12604 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12605 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12606 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12607 echo $ECHO_N "(cached) $ECHO_C" >&6
12609 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12610 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12612 # Is the header compilable?
12613 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12614 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12615 cat >conftest.
$ac_ext <<_ACEOF
12618 cat confdefs.h
>>conftest.
$ac_ext
12619 cat >>conftest.
$ac_ext <<_ACEOF
12620 /* end confdefs.h. */
12621 $ac_includes_default
12622 #include <X11/Xft/Xft.h>
12624 rm -f conftest.
$ac_objext
12625 if { (ac_try
="$ac_compile"
12626 case "(($ac_try" in
12627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12628 *) ac_try_echo=$ac_try;;
12630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12631 (eval "$ac_compile") 2>conftest.er1
12633 grep -v '^ *+' conftest.er1 >conftest.err
12635 cat conftest.err >&5
12636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12637 (exit $ac_status); } && {
12638 test -z "$ac_c_werror_flag" ||
12639 test ! -s conftest.err
12640 } && test -s conftest.$ac_objext; then
12641 ac_header_compiler=yes
12643 echo "$as_me: failed program was:" >&5
12644 sed 's/^/| /' conftest.$ac_ext >&5
12646 ac_header_compiler=no
12649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12650 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12651 echo "${ECHO_T}$ac_header_compiler" >&6; }
12653 # Is the header present?
12654 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12655 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12656 cat >conftest.$ac_ext <<_ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12662 #include <X11/Xft/Xft.h>
12664 if { (ac_try="$ac_cpp conftest.$ac_ext"
12665 case "(($ac_try" in
12666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12667 *) ac_try_echo
=$ac_try;;
12669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12670 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12672 grep -v '^ *+' conftest.er1
>conftest.err
12674 cat conftest.err
>&5
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); } >/dev
/null
&& {
12677 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12678 test ! -s conftest.err
12680 ac_header_preproc
=yes
12682 echo "$as_me: failed program was:" >&5
12683 sed 's/^/| /' conftest.
$ac_ext >&5
12685 ac_header_preproc
=no
12688 rm -f conftest.err conftest.
$ac_ext
12689 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12690 echo "${ECHO_T}$ac_header_preproc" >&6; }
12692 # So? What about this header?
12693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12695 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12696 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12697 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12698 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12699 ac_header_preproc
=yes
12702 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12703 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12704 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12705 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12706 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12707 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12708 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12709 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12710 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12711 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12712 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12713 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12717 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12718 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12719 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12720 echo $ECHO_N "(cached) $ECHO_C" >&6
12722 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12724 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12725 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12728 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12729 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12730 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12731 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12732 echo $ECHO_N "(cached) $ECHO_C" >&6
12734 ac_check_lib_save_LIBS
=$LIBS
12735 LIBS
="-lXft $XFT_LIBS $LIBS"
12736 cat >conftest.
$ac_ext <<_ACEOF
12739 cat confdefs.h
>>conftest.
$ac_ext
12740 cat >>conftest.
$ac_ext <<_ACEOF
12741 /* end confdefs.h. */
12743 /* Override any GCC internal prototype to avoid an error.
12744 Use char because int might match the return type of a GCC
12745 builtin and then its argument prototype would still apply. */
12749 char XftFontOpen ();
12753 return XftFontOpen ();
12758 rm -f conftest.
$ac_objext conftest
$ac_exeext
12759 if { (ac_try
="$ac_link"
12760 case "(($ac_try" in
12761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12762 *) ac_try_echo=$ac_try;;
12764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12765 (eval "$ac_link") 2>conftest.er1
12767 grep -v '^ *+' conftest.er1 >conftest.err
12769 cat conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 (exit $ac_status); } && {
12772 test -z "$ac_c_werror_flag" ||
12773 test ! -s conftest.err
12774 } && test -s conftest$ac_exeext &&
12775 $as_test_x conftest$ac_exeext; then
12776 ac_cv_lib_Xft_XftFontOpen=yes
12778 echo "$as_me: failed program was:" >&5
12779 sed 's/^/| /' conftest.$ac_ext >&5
12781 ac_cv_lib_Xft_XftFontOpen=no
12784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12785 conftest$ac_exeext conftest.$ac_ext
12786 LIBS=$ac_check_lib_save_LIBS
12788 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12789 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12790 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12798 if test "${HAVE_XFT}" = "yes"; then
12800 cat >>confdefs.h <<\_ACEOF
12805 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12807 CPPFLAGS="$OLD_CPPFLAGS"
12808 CFLAGS="$OLD_CFLAGS"
12810 fi # "${HAVE_XFT}" = "yes"
12811 fi # "$HAVE_XFT" != no
12812 fi # "x${with_xft}" != "xno"
12814 if test "$HAVE_XFT" != "yes"; then
12820 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12821 if test "${HAVE_XFT}" = "yes"; then
12823 elif test "x${with_freetype}" != "xno"; then
12828 # Extract the first word of "pkg-config", so it can be a program name with args.
12829 set dummy pkg-config; ac_word=$2
12830 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12831 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12832 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12833 echo $ECHO_N "(cached) $ECHO_C" >&6
12835 case $PKG_CONFIG in
12837 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12841 for as_dir in $PATH
12844 test -z "$as_dir" && as_dir=.
12845 for ac_exec_ext in '' $ac_executable_extensions; do
12846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12847 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12848 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12855 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12859 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12860 if test -n "$PKG_CONFIG"; then
12861 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12862 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12864 { echo "$as_me:$LINENO: result: no" >&5
12865 echo "${ECHO_T}no" >&6; }
12870 if test "$PKG_CONFIG" = "no" ; then
12873 PKG_CONFIG_MIN_VERSION=0.9.0
12874 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12875 { echo "$as_me:$LINENO: checking for freetype2" >&5
12876 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12878 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12879 { echo "$as_me:$LINENO: result: yes" >&5
12880 echo "${ECHO_T}yes" >&6; }
12883 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12884 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12885 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12886 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12887 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12889 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12890 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12891 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12892 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12893 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12895 { echo "$as_me:$LINENO: result: no" >&5
12896 echo "${ECHO_T}no" >&6; }
12899 ## If we have a custom action on failure, don't print errors
, but
12900 ## do set a variable so people can do so.
12901 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12908 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12909 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12913 if test $succeeded = yes; then
12919 if test "${HAVE_FREETYPE}" = "yes"; then
12923 # Extract the first word of "pkg-config", so it can be a program name with args.
12924 set dummy pkg-config
; ac_word
=$2
12925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12927 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12928 echo $ECHO_N "(cached) $ECHO_C" >&6
12930 case $PKG_CONFIG in
12932 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12935 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12936 for as_dir
in $PATH
12939 test -z "$as_dir" && as_dir
=.
12940 for ac_exec_ext
in '' $ac_executable_extensions; do
12941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12942 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12950 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12954 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12955 if test -n "$PKG_CONFIG"; then
12956 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12957 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12959 { echo "$as_me:$LINENO: result: no" >&5
12960 echo "${ECHO_T}no" >&6; }
12965 if test "$PKG_CONFIG" = "no" ; then
12968 PKG_CONFIG_MIN_VERSION
=0.9.0
12969 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12970 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12971 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12973 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12974 { echo "$as_me:$LINENO: result: yes" >&5
12975 echo "${ECHO_T}yes" >&6; }
12978 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12979 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12980 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12981 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12982 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12984 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12985 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12986 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12987 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12988 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12990 { echo "$as_me:$LINENO: result: no" >&5
12991 echo "${ECHO_T}no" >&6; }
12992 FONTCONFIG_CFLAGS
=""
12994 ## If we have a custom action on failure, don't print errors, but
12995 ## do set a variable so people can do so.
12996 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13003 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13004 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13008 if test $succeeded = yes; then
13014 if test "${HAVE_FC}" = "no"; then
13021 if test "${HAVE_FREETYPE}" = "yes"; then
13023 cat >>confdefs.h
<<\_ACEOF
13024 #define HAVE_FREETYPE 1
13027 if test "${with_libotf}" != "no"; then
13031 # Extract the first word of "pkg-config", so it can be a program name with args.
13032 set dummy pkg-config
; ac_word
=$2
13033 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13034 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13035 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13036 echo $ECHO_N "(cached) $ECHO_C" >&6
13038 case $PKG_CONFIG in
13040 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13043 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13044 for as_dir
in $PATH
13047 test -z "$as_dir" && as_dir
=.
13048 for ac_exec_ext
in '' $ac_executable_extensions; do
13049 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13050 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13051 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13058 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13062 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13063 if test -n "$PKG_CONFIG"; then
13064 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13065 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13067 { echo "$as_me:$LINENO: result: no" >&5
13068 echo "${ECHO_T}no" >&6; }
13073 if test "$PKG_CONFIG" = "no" ; then
13076 PKG_CONFIG_MIN_VERSION
=0.9.0
13077 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13078 { echo "$as_me:$LINENO: checking for libotf" >&5
13079 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13081 if $PKG_CONFIG --exists "libotf" 2>&5; then
13082 { echo "$as_me:$LINENO: result: yes" >&5
13083 echo "${ECHO_T}yes" >&6; }
13086 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13087 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13088 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13089 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13090 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13092 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13093 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13094 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13095 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13096 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13098 { echo "$as_me:$LINENO: result: no" >&5
13099 echo "${ECHO_T}no" >&6; }
13102 ## If we have a custom action on failure, don't print errors, but
13103 ## do set a variable so people can do so.
13104 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13111 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13112 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13116 if test $succeeded = yes; then
13122 if test "$HAVE_LIBOTF" = "yes"; then
13124 cat >>confdefs.h
<<\_ACEOF
13125 #define HAVE_LIBOTF 1
13133 if test "${with_m17n_flt}" != "no"; then
13137 # Extract the first word of "pkg-config", so it can be a program name with args.
13138 set dummy pkg-config
; ac_word
=$2
13139 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13140 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13141 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13142 echo $ECHO_N "(cached) $ECHO_C" >&6
13144 case $PKG_CONFIG in
13146 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13149 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13150 for as_dir
in $PATH
13153 test -z "$as_dir" && as_dir
=.
13154 for ac_exec_ext
in '' $ac_executable_extensions; do
13155 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13156 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13157 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13164 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13168 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13169 if test -n "$PKG_CONFIG"; then
13170 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13171 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13173 { echo "$as_me:$LINENO: result: no" >&5
13174 echo "${ECHO_T}no" >&6; }
13179 if test "$PKG_CONFIG" = "no" ; then
13182 PKG_CONFIG_MIN_VERSION
=0.9.0
13183 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13184 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13185 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13187 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13188 { echo "$as_me:$LINENO: result: yes" >&5
13189 echo "${ECHO_T}yes" >&6; }
13192 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13193 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13194 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13195 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13196 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13198 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13199 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13200 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13201 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13202 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13204 { echo "$as_me:$LINENO: result: no" >&5
13205 echo "${ECHO_T}no" >&6; }
13208 ## If we have a custom action on failure, don't print errors, but
13209 ## do set a variable so people can do so.
13210 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13217 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13218 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13222 if test $succeeded = yes; then
13228 if test "$HAVE_M17N_FLT" = "yes"; then
13230 cat >>confdefs.h
<<\_ACEOF
13231 #define HAVE_M17N_FLT 1
13246 ### End of font-backend section.
13248 ### Use -lXpm if available, unless `--with-xpm=no'.
13250 if test "${HAVE_X11}" = "yes"; then
13251 if test "${with_xpm}" != "no"; then
13252 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13253 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13254 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13255 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13256 echo $ECHO_N "(cached) $ECHO_C" >&6
13258 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13259 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13261 # Is the header compilable?
13262 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13263 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13264 cat >conftest.
$ac_ext <<_ACEOF
13267 cat confdefs.h
>>conftest.
$ac_ext
13268 cat >>conftest.
$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13270 $ac_includes_default
13271 #include <X11/xpm.h>
13273 rm -f conftest.
$ac_objext
13274 if { (ac_try
="$ac_compile"
13275 case "(($ac_try" in
13276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_compile") 2>conftest.er1
13282 grep -v '^ *+' conftest.er1 >conftest.err
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } && {
13287 test -z "$ac_c_werror_flag" ||
13288 test ! -s conftest.err
13289 } && test -s conftest.$ac_objext; then
13290 ac_header_compiler=yes
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13295 ac_header_compiler=no
13298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13300 echo "${ECHO_T}$ac_header_compiler" >&6; }
13302 # Is the header present?
13303 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13304 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13305 cat >conftest.$ac_ext <<_ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13311 #include <X11/xpm.h>
13313 if { (ac_try="$ac_cpp conftest.$ac_ext"
13314 case "(($ac_try" in
13315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13316 *) ac_try_echo
=$ac_try;;
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13321 grep -v '^ *+' conftest.er1
>conftest.err
13323 cat conftest.err
>&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } >/dev
/null
&& {
13326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13327 test ! -s conftest.err
13329 ac_header_preproc
=yes
13331 echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.
$ac_ext >&5
13334 ac_header_preproc
=no
13337 rm -f conftest.err conftest.
$ac_ext
13338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13339 echo "${ECHO_T}$ac_header_preproc" >&6; }
13341 # So? What about this header?
13342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13344 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13345 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13347 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13348 ac_header_preproc
=yes
13351 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13352 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13353 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13354 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13355 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13356 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13357 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13358 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13359 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13360 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13361 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13362 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13366 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13367 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13368 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13371 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13373 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13374 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13377 if test $ac_cv_header_X11_xpm_h = yes; then
13378 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13379 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13380 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13381 echo $ECHO_N "(cached) $ECHO_C" >&6
13383 ac_check_lib_save_LIBS
=$LIBS
13384 LIBS
="-lXpm -lX11 $LIBS"
13385 cat >conftest.
$ac_ext <<_ACEOF
13388 cat confdefs.h
>>conftest.
$ac_ext
13389 cat >>conftest.
$ac_ext <<_ACEOF
13390 /* end confdefs.h. */
13392 /* Override any GCC internal prototype to avoid an error.
13393 Use char because int might match the return type of a GCC
13394 builtin and then its argument prototype would still apply. */
13398 char XpmReadFileToPixmap ();
13402 return XpmReadFileToPixmap ();
13407 rm -f conftest.
$ac_objext conftest
$ac_exeext
13408 if { (ac_try
="$ac_link"
13409 case "(($ac_try" in
13410 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13411 *) ac_try_echo=$ac_try;;
13413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13414 (eval "$ac_link") 2>conftest.er1
13416 grep -v '^ *+' conftest.er1 >conftest.err
13418 cat conftest.err >&5
13419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13420 (exit $ac_status); } && {
13421 test -z "$ac_c_werror_flag" ||
13422 test ! -s conftest.err
13423 } && test -s conftest$ac_exeext &&
13424 $as_test_x conftest$ac_exeext; then
13425 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13427 echo "$as_me: failed program was:" >&5
13428 sed 's/^/| /' conftest.$ac_ext >&5
13430 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13434 conftest$ac_exeext conftest.$ac_ext
13435 LIBS=$ac_check_lib_save_LIBS
13437 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13438 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13439 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13446 if test "${HAVE_XPM}" = "yes"; then
13447 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13448 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13449 cat >conftest.$ac_ext <<_ACEOF
13452 cat confdefs.h >>conftest.$ac_ext
13453 cat >>conftest.$ac_ext <<_ACEOF
13454 /* end confdefs.h. */
13455 #include "X11/xpm.h"
13456 #ifndef XpmReturnAllocPixels
13457 no_return_alloc_pixels
13461 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13462 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13470 if test "${HAVE_XPM}" = "yes"; then
13471 { echo "$as_me:$LINENO: result: yes" >&5
13472 echo "${ECHO_T}yes" >&6; }
13474 { echo "$as_me:$LINENO: result: no" >&5
13475 echo "${ECHO_T}no" >&6; }
13480 if test "${HAVE_XPM}" = "yes"; then
13482 cat >>confdefs.h <<\_ACEOF
13489 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13491 if test "${HAVE_X11}" = "yes"; then
13492 if test "${with_jpeg}" != "no"; then
13493 if test "${ac_cv_header_jerror_h+set}" = set; then
13494 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13495 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13496 if test "${ac_cv_header_jerror_h+set}" = set; then
13497 echo $ECHO_N "(cached) $ECHO_C" >&6
13499 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13500 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13502 # Is the header compilable?
13503 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13504 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13505 cat >conftest.$ac_ext <<_ACEOF
13508 cat confdefs.h >>conftest.$ac_ext
13509 cat >>conftest.$ac_ext <<_ACEOF
13510 /* end confdefs.h. */
13511 $ac_includes_default
13512 #include <jerror.h>
13514 rm -f conftest.$ac_objext
13515 if { (ac_try="$ac_compile"
13516 case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_compile") 2>conftest.er1
13523 grep -v '^
*+' conftest.er1 >conftest.err
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } && {
13528 test -z "$ac_c_werror_flag" ||
13529 test ! -s conftest.err
13530 } && test -s conftest.$ac_objext; then
13531 ac_header_compiler=yes
13533 echo "$as_me: failed program was:" >&5
13534 sed 's
/^
/|
/' conftest.$ac_ext >&5
13536 ac_header_compiler=no
13539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13541 echo "${ECHO_T}$ac_header_compiler" >&6; }
13543 # Is the header present?
13544 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13545 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13546 cat >conftest.$ac_ext <<_ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13552 #include <jerror.h>
13554 if { (ac_try="$ac_cpp conftest.$ac_ext"
13555 case "(($ac_try" in
13556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13557 *) ac_try_echo=$ac_try;;
13559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13562 grep -v '^
*+' conftest.er1 >conftest.err
13564 cat conftest.err >&5
13565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13566 (exit $ac_status); } >/dev/null && {
13567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13568 test ! -s conftest.err
13570 ac_header_preproc=yes
13572 echo "$as_me: failed program was:" >&5
13573 sed 's
/^
/|
/' conftest.$ac_ext >&5
13575 ac_header_preproc=no
13578 rm -f conftest.err conftest.$ac_ext
13579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13580 echo "${ECHO_T}$ac_header_preproc" >&6; }
13582 # So? What about this header?
13583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13585 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13586 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13587 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13588 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13589 ac_header_preproc=yes
13592 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13593 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13594 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13595 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13596 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13597 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13598 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13599 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13600 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13601 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13602 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13603 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13607 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13608 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13609 if test "${ac_cv_header_jerror_h+set}" = set; then
13610 echo $ECHO_N "(cached) $ECHO_C" >&6
13612 ac_cv_header_jerror_h=$ac_header_preproc
13614 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13615 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13618 if test $ac_cv_header_jerror_h = yes; then
13619 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13620 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13621 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13622 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 ac_check_lib_save_LIBS=$LIBS
13625 LIBS="-ljpeg $LIBS"
13626 cat >conftest.$ac_ext <<_ACEOF
13629 cat confdefs.h >>conftest.$ac_ext
13630 cat >>conftest.$ac_ext <<_ACEOF
13631 /* end confdefs.h. */
13633 /* Override any GCC internal prototype to avoid an error.
13634 Use char because int might match the return type of a GCC
13635 builtin and then its argument prototype would still apply. */
13639 char jpeg_destroy_compress ();
13643 return jpeg_destroy_compress ();
13648 rm -f conftest.$ac_objext conftest$ac_exeext
13649 if { (ac_try="$ac_link"
13650 case "(($ac_try" in
13651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13652 *) ac_try_echo=$ac_try;;
13654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13655 (eval "$ac_link") 2>conftest.er1
13657 grep -v '^
*+' conftest.er1 >conftest.err
13659 cat conftest.err >&5
13660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13661 (exit $ac_status); } && {
13662 test -z "$ac_c_werror_flag" ||
13663 test ! -s conftest.err
13664 } && test -s conftest$ac_exeext &&
13665 $as_test_x conftest$ac_exeext; then
13666 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13668 echo "$as_me: failed program was:" >&5
13669 sed 's
/^
/|
/' conftest.$ac_ext >&5
13671 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13675 conftest$ac_exeext conftest.$ac_ext
13676 LIBS=$ac_check_lib_save_LIBS
13678 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13679 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13680 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13690 if test "${HAVE_JPEG}" = "yes"; then
13691 cat >>confdefs.h <<\_ACEOF
13692 #define HAVE_JPEG 1
13695 cat >conftest.$ac_ext <<_ACEOF
13698 cat confdefs.h >>conftest.$ac_ext
13699 cat >>conftest.$ac_ext <<_ACEOF
13700 /* end confdefs.h. */
13701 #include <jpeglib.h>
13702 version=JPEG_LIB_VERSION
13705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13706 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13707 cat >>confdefs.h <<\_ACEOF
13708 #define HAVE_JPEG 1
13712 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13713 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13721 ### Use -lpng if available, unless `--with-png=no'.
13723 if test "${HAVE_X11}" = "yes"; then
13724 if test "${with_png}" != "no"; then
13725 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13726 # in /usr/include/libpng.
13729 for ac_header
in png.h libpng
/png.h
13731 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13732 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13733 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13734 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13735 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13738 ac_res
=`eval echo '${'$as_ac_Header'}'`
13739 { echo "$as_me:$LINENO: result: $ac_res" >&5
13740 echo "${ECHO_T}$ac_res" >&6; }
13742 # Is the header compilable?
13743 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13744 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13745 cat >conftest.
$ac_ext <<_ACEOF
13748 cat confdefs.h
>>conftest.
$ac_ext
13749 cat >>conftest.
$ac_ext <<_ACEOF
13750 /* end confdefs.h. */
13751 $ac_includes_default
13752 #include <$ac_header>
13754 rm -f conftest.
$ac_objext
13755 if { (ac_try
="$ac_compile"
13756 case "(($ac_try" in
13757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13758 *) ac_try_echo=$ac_try;;
13760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13761 (eval "$ac_compile") 2>conftest.er1
13763 grep -v '^ *+' conftest.er1 >conftest.err
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } && {
13768 test -z "$ac_c_werror_flag" ||
13769 test ! -s conftest.err
13770 } && test -s conftest.$ac_objext; then
13771 ac_header_compiler=yes
13773 echo "$as_me: failed program was:" >&5
13774 sed 's/^/| /' conftest.$ac_ext >&5
13776 ac_header_compiler=no
13779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13780 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13781 echo "${ECHO_T}$ac_header_compiler" >&6; }
13783 # Is the header present?
13784 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13785 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13786 cat >conftest.$ac_ext <<_ACEOF
13789 cat confdefs.h >>conftest.$ac_ext
13790 cat >>conftest.$ac_ext <<_ACEOF
13791 /* end confdefs.h. */
13792 #include <$ac_header>
13794 if { (ac_try="$ac_cpp conftest.$ac_ext"
13795 case "(($ac_try" in
13796 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13797 *) ac_try_echo
=$ac_try;;
13799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13800 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13802 grep -v '^ *+' conftest.er1
>conftest.err
13804 cat conftest.err
>&5
13805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13806 (exit $ac_status); } >/dev
/null
&& {
13807 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13808 test ! -s conftest.err
13810 ac_header_preproc
=yes
13812 echo "$as_me: failed program was:" >&5
13813 sed 's/^/| /' conftest.
$ac_ext >&5
13815 ac_header_preproc
=no
13818 rm -f conftest.err conftest.
$ac_ext
13819 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13820 echo "${ECHO_T}$ac_header_preproc" >&6; }
13822 # So? What about this header?
13823 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13825 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13826 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13827 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13828 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13829 ac_header_preproc
=yes
13832 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13833 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13835 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13836 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13837 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13838 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13839 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13841 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13842 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13843 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13847 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13848 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13849 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13850 echo $ECHO_N "(cached) $ECHO_C" >&6
13852 eval "$as_ac_Header=\$ac_header_preproc"
13854 ac_res
=`eval echo '${'$as_ac_Header'}'`
13855 { echo "$as_me:$LINENO: result: $ac_res" >&5
13856 echo "${ECHO_T}$ac_res" >&6; }
13859 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13860 cat >>confdefs.h
<<_ACEOF
13861 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13868 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13869 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13870 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13871 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13874 ac_check_lib_save_LIBS
=$LIBS
13875 LIBS
="-lpng -lz -lm $LIBS"
13876 cat >conftest.
$ac_ext <<_ACEOF
13879 cat confdefs.h
>>conftest.
$ac_ext
13880 cat >>conftest.
$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13883 /* Override any GCC internal prototype to avoid an error.
13884 Use char because int might match the return type of a GCC
13885 builtin and then its argument prototype would still apply. */
13889 char png_get_channels ();
13893 return png_get_channels ();
13898 rm -f conftest.
$ac_objext conftest
$ac_exeext
13899 if { (ac_try
="$ac_link"
13900 case "(($ac_try" in
13901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_link") 2>conftest.er1
13907 grep -v '^ *+' conftest.er1 >conftest.err
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } && {
13912 test -z "$ac_c_werror_flag" ||
13913 test ! -s conftest.err
13914 } && test -s conftest$ac_exeext &&
13915 $as_test_x conftest$ac_exeext; then
13916 ac_cv_lib_png_png_get_channels=yes
13918 echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13921 ac_cv_lib_png_png_get_channels=no
13924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13925 conftest$ac_exeext conftest.$ac_ext
13926 LIBS=$ac_check_lib_save_LIBS
13928 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13929 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13930 if test $ac_cv_lib_png_png_get_channels = yes; then
13937 if test "${HAVE_PNG}" = "yes"; then
13939 cat >>confdefs.h <<\_ACEOF
13946 ### Use -ltiff if available, unless `--with-tiff=no
'.
13948 if test "${HAVE_X11}" = "yes"; then
13949 if test "${with_tiff}" != "no"; then
13950 if test "${ac_cv_header_tiffio_h+set}" = set; then
13951 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13952 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13953 if test "${ac_cv_header_tiffio_h+set}" = set; then
13954 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13957 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13959 # Is the header compilable?
13960 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13961 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13962 cat >conftest.$ac_ext <<_ACEOF
13965 cat confdefs.h >>conftest.$ac_ext
13966 cat >>conftest.$ac_ext <<_ACEOF
13967 /* end confdefs.h. */
13968 $ac_includes_default
13969 #include <tiffio.h>
13971 rm -f conftest.$ac_objext
13972 if { (ac_try="$ac_compile"
13973 case "(($ac_try" in
13974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13975 *) ac_try_echo=$ac_try;;
13977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13978 (eval "$ac_compile") 2>conftest.er1
13980 grep -v '^
*+' conftest.er1 >conftest.err
13982 cat conftest.err >&5
13983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13984 (exit $ac_status); } && {
13985 test -z "$ac_c_werror_flag" ||
13986 test ! -s conftest.err
13987 } && test -s conftest.$ac_objext; then
13988 ac_header_compiler=yes
13990 echo "$as_me: failed program was:" >&5
13991 sed 's
/^
/|
/' conftest.$ac_ext >&5
13993 ac_header_compiler=no
13996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13998 echo "${ECHO_T}$ac_header_compiler" >&6; }
14000 # Is the header present?
14001 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14002 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14003 cat >conftest.$ac_ext <<_ACEOF
14006 cat confdefs.h >>conftest.$ac_ext
14007 cat >>conftest.$ac_ext <<_ACEOF
14008 /* end confdefs.h. */
14009 #include <tiffio.h>
14011 if { (ac_try="$ac_cpp conftest.$ac_ext"
14012 case "(($ac_try" in
14013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14014 *) ac_try_echo=$ac_try;;
14016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14017 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14019 grep -v '^
*+' conftest.er1 >conftest.err
14021 cat conftest.err >&5
14022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14023 (exit $ac_status); } >/dev/null && {
14024 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14025 test ! -s conftest.err
14027 ac_header_preproc=yes
14029 echo "$as_me: failed program was:" >&5
14030 sed 's
/^
/|
/' conftest.$ac_ext >&5
14032 ac_header_preproc=no
14035 rm -f conftest.err conftest.$ac_ext
14036 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14037 echo "${ECHO_T}$ac_header_preproc" >&6; }
14039 # So? What about this header?
14040 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14042 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14043 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14044 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14045 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14046 ac_header_preproc=yes
14049 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14050 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14051 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14052 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14053 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14054 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14055 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14056 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14057 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14058 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14059 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14060 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14064 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14065 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14066 if test "${ac_cv_header_tiffio_h+set}" = set; then
14067 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 ac_cv_header_tiffio_h=$ac_header_preproc
14071 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14072 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14075 if test $ac_cv_header_tiffio_h = yes; then
14077 # At least one tiff package requires the jpeg library.
14078 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14079 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14080 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14081 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14084 ac_check_lib_save_LIBS=$LIBS
14085 LIBS="-ltiff $tifflibs $LIBS"
14086 cat >conftest.$ac_ext <<_ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14093 /* Override any GCC internal prototype to avoid an error.
14094 Use char because int might match the return type of a GCC
14095 builtin and then its argument prototype would still apply. */
14099 char TIFFGetVersion ();
14103 return TIFFGetVersion ();
14108 rm -f conftest.$ac_objext conftest$ac_exeext
14109 if { (ac_try="$ac_link"
14110 case "(($ac_try" in
14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_link") 2>conftest.er1
14117 grep -v '^
*+' conftest.er1 >conftest.err
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } && {
14122 test -z "$ac_c_werror_flag" ||
14123 test ! -s conftest.err
14124 } && test -s conftest$ac_exeext &&
14125 $as_test_x conftest$ac_exeext; then
14126 ac_cv_lib_tiff_TIFFGetVersion=yes
14128 echo "$as_me: failed program was:" >&5
14129 sed 's
/^
/|
/' conftest.$ac_ext >&5
14131 ac_cv_lib_tiff_TIFFGetVersion=no
14134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14135 conftest$ac_exeext conftest.$ac_ext
14136 LIBS=$ac_check_lib_save_LIBS
14138 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14139 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14140 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14149 if test "${HAVE_TIFF}" = "yes"; then
14151 cat >>confdefs.h <<\_ACEOF
14152 #define HAVE_TIFF 1
14158 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14160 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14161 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14162 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14163 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14164 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14167 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14168 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14170 # Is the header compilable?
14171 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14172 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14173 cat >conftest.
$ac_ext <<_ACEOF
14176 cat confdefs.h
>>conftest.
$ac_ext
14177 cat >>conftest.
$ac_ext <<_ACEOF
14178 /* end confdefs.h. */
14179 $ac_includes_default
14180 #include <gif_lib.h>
14182 rm -f conftest.
$ac_objext
14183 if { (ac_try
="$ac_compile"
14184 case "(($ac_try" in
14185 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14186 *) ac_try_echo=$ac_try;;
14188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14189 (eval "$ac_compile") 2>conftest.er1
14191 grep -v '^ *+' conftest.er1 >conftest.err
14193 cat conftest.err >&5
14194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195 (exit $ac_status); } && {
14196 test -z "$ac_c_werror_flag" ||
14197 test ! -s conftest.err
14198 } && test -s conftest.$ac_objext; then
14199 ac_header_compiler=yes
14201 echo "$as_me: failed program was:" >&5
14202 sed 's/^/| /' conftest.$ac_ext >&5
14204 ac_header_compiler=no
14207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14208 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14209 echo "${ECHO_T}$ac_header_compiler" >&6; }
14211 # Is the header present?
14212 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14213 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14214 cat >conftest.$ac_ext <<_ACEOF
14217 cat confdefs.h >>conftest.$ac_ext
14218 cat >>conftest.$ac_ext <<_ACEOF
14219 /* end confdefs.h. */
14220 #include <gif_lib.h>
14222 if { (ac_try="$ac_cpp conftest.$ac_ext"
14223 case "(($ac_try" in
14224 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14225 *) ac_try_echo
=$ac_try;;
14227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14228 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14230 grep -v '^ *+' conftest.er1
>conftest.err
14232 cat conftest.err
>&5
14233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14234 (exit $ac_status); } >/dev
/null
&& {
14235 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14236 test ! -s conftest.err
14238 ac_header_preproc
=yes
14240 echo "$as_me: failed program was:" >&5
14241 sed 's/^/| /' conftest.
$ac_ext >&5
14243 ac_header_preproc
=no
14246 rm -f conftest.err conftest.
$ac_ext
14247 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14248 echo "${ECHO_T}$ac_header_preproc" >&6; }
14250 # So? What about this header?
14251 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14253 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14254 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14255 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14256 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14257 ac_header_preproc
=yes
14260 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14261 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14262 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14263 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14264 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14265 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14266 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14267 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14268 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14269 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14270 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14271 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14275 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14276 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14277 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14278 echo $ECHO_N "(cached) $ECHO_C" >&6
14280 ac_cv_header_gif_lib_h
=$ac_header_preproc
14282 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14283 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14286 if test $ac_cv_header_gif_lib_h = yes; then
14287 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14288 # Earlier versions can crash Emacs.
14289 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14290 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14291 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14292 echo $ECHO_N "(cached) $ECHO_C" >&6
14294 ac_check_lib_save_LIBS
=$LIBS
14296 cat >conftest.
$ac_ext <<_ACEOF
14299 cat confdefs.h
>>conftest.
$ac_ext
14300 cat >>conftest.
$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14303 /* Override any GCC internal prototype to avoid an error.
14304 Use char because int might match the return type of a GCC
14305 builtin and then its argument prototype would still apply. */
14309 char EGifPutExtensionLast ();
14313 return EGifPutExtensionLast ();
14318 rm -f conftest.
$ac_objext conftest
$ac_exeext
14319 if { (ac_try
="$ac_link"
14320 case "(($ac_try" in
14321 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14322 *) ac_try_echo=$ac_try;;
14324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14325 (eval "$ac_link") 2>conftest.er1
14327 grep -v '^ *+' conftest.er1 >conftest.err
14329 cat conftest.err >&5
14330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14331 (exit $ac_status); } && {
14332 test -z "$ac_c_werror_flag" ||
14333 test ! -s conftest.err
14334 } && test -s conftest$ac_exeext &&
14335 $as_test_x conftest$ac_exeext; then
14336 ac_cv_lib_gif_EGifPutExtensionLast=yes
14338 echo "$as_me: failed program was:" >&5
14339 sed 's/^/| /' conftest.$ac_ext >&5
14341 ac_cv_lib_gif_EGifPutExtensionLast=no
14344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14345 conftest$ac_exeext conftest.$ac_ext
14346 LIBS=$ac_check_lib_save_LIBS
14348 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14349 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14350 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14360 if test "$HAVE_GIF" = yes; then
14361 ac_gif_lib_name="-lgif"
14364 # If gif_lib.h but no libgif, try libungif.
14365 if test x"$try_libungif" = xyes; then
14366 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14367 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14368 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14369 echo $ECHO_N "(cached) $ECHO_C" >&6
14371 ac_check_lib_save_LIBS=$LIBS
14372 LIBS="-lungif $LIBS"
14373 cat >conftest.$ac_ext <<_ACEOF
14376 cat confdefs.h >>conftest.$ac_ext
14377 cat >>conftest.$ac_ext <<_ACEOF
14378 /* end confdefs.h. */
14380 /* Override any GCC internal prototype to avoid an error.
14381 Use char because int might match the return type of a GCC
14382 builtin and then its argument prototype would still apply. */
14386 char EGifPutExtensionLast ();
14390 return EGifPutExtensionLast ();
14395 rm -f conftest.$ac_objext conftest$ac_exeext
14396 if { (ac_try="$ac_link"
14397 case "(($ac_try" in
14398 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14399 *) ac_try_echo
=$ac_try;;
14401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14402 (eval "$ac_link") 2>conftest.er1
14404 grep -v '^ *+' conftest.er1
>conftest.err
14406 cat conftest.err
>&5
14407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408 (exit $ac_status); } && {
14409 test -z "$ac_c_werror_flag" ||
14410 test ! -s conftest.err
14411 } && test -s conftest
$ac_exeext &&
14412 $as_test_x conftest
$ac_exeext; then
14413 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14415 echo "$as_me: failed program was:" >&5
14416 sed 's/^/| /' conftest.
$ac_ext >&5
14418 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14421 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14422 conftest
$ac_exeext conftest.
$ac_ext
14423 LIBS
=$ac_check_lib_save_LIBS
14425 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14426 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14427 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14432 if test "$HAVE_GIF" = yes; then
14434 cat >>confdefs.h
<<\_ACEOF
14435 #define LIBGIF -lungif
14438 ac_gif_lib_name
="-lungif"
14442 if test "${HAVE_GIF}" = "yes"; then
14444 cat >>confdefs.h
<<\_ACEOF
14451 if test "${HAVE_X11}" = "yes"; then
14454 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14455 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14456 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14457 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14458 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14459 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14460 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14461 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14462 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14463 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14465 if test "X${MISSING}" != X
; then
14466 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14468 Maybe some development libraries/packages are missing?
14469 If you don't want to link with them give
14471 as options to configure" >&5
14472 echo "$as_me: error: The following required libraries were not found:
14474 Maybe some development libraries/packages are missing?
14475 If you don't want to link with them give
14477 as options to configure" >&2;}
14478 { (exit 1); exit 1; }; }
14482 ### Use -lgpm if available, unless `--with-gpm=no'.
14484 if test "${with_gpm}" != "no"; then
14485 if test "${ac_cv_header_gpm_h+set}" = set; then
14486 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14487 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14488 if test "${ac_cv_header_gpm_h+set}" = set; then
14489 echo $ECHO_N "(cached) $ECHO_C" >&6
14491 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14492 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14494 # Is the header compilable?
14495 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14496 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14497 cat >conftest.
$ac_ext <<_ACEOF
14500 cat confdefs.h
>>conftest.
$ac_ext
14501 cat >>conftest.
$ac_ext <<_ACEOF
14502 /* end confdefs.h. */
14503 $ac_includes_default
14506 rm -f conftest.
$ac_objext
14507 if { (ac_try
="$ac_compile"
14508 case "(($ac_try" in
14509 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14510 *) ac_try_echo=$ac_try;;
14512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14513 (eval "$ac_compile") 2>conftest.er1
14515 grep -v '^ *+' conftest.er1 >conftest.err
14517 cat conftest.err >&5
14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14519 (exit $ac_status); } && {
14520 test -z "$ac_c_werror_flag" ||
14521 test ! -s conftest.err
14522 } && test -s conftest.$ac_objext; then
14523 ac_header_compiler=yes
14525 echo "$as_me: failed program was:" >&5
14526 sed 's/^/| /' conftest.$ac_ext >&5
14528 ac_header_compiler=no
14531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14533 echo "${ECHO_T}$ac_header_compiler" >&6; }
14535 # Is the header present?
14536 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14537 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14538 cat >conftest.$ac_ext <<_ACEOF
14541 cat confdefs.h >>conftest.$ac_ext
14542 cat >>conftest.$ac_ext <<_ACEOF
14543 /* end confdefs.h. */
14546 if { (ac_try="$ac_cpp conftest.$ac_ext"
14547 case "(($ac_try" in
14548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14549 *) ac_try_echo
=$ac_try;;
14551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14554 grep -v '^ *+' conftest.er1
>conftest.err
14556 cat conftest.err
>&5
14557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14558 (exit $ac_status); } >/dev
/null
&& {
14559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14560 test ! -s conftest.err
14562 ac_header_preproc
=yes
14564 echo "$as_me: failed program was:" >&5
14565 sed 's/^/| /' conftest.
$ac_ext >&5
14567 ac_header_preproc
=no
14570 rm -f conftest.err conftest.
$ac_ext
14571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14572 echo "${ECHO_T}$ac_header_preproc" >&6; }
14574 # So? What about this header?
14575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14577 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14578 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14579 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14580 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14581 ac_header_preproc
=yes
14584 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14585 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14586 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14587 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14588 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14589 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14590 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14591 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14592 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14593 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14594 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14595 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14599 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14600 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14601 if test "${ac_cv_header_gpm_h+set}" = set; then
14602 echo $ECHO_N "(cached) $ECHO_C" >&6
14604 ac_cv_header_gpm_h
=$ac_header_preproc
14606 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14607 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14610 if test $ac_cv_header_gpm_h = yes; then
14611 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14612 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14613 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14614 echo $ECHO_N "(cached) $ECHO_C" >&6
14616 ac_check_lib_save_LIBS
=$LIBS
14618 cat >conftest.
$ac_ext <<_ACEOF
14621 cat confdefs.h
>>conftest.
$ac_ext
14622 cat >>conftest.
$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14625 /* Override any GCC internal prototype to avoid an error.
14626 Use char because int might match the return type of a GCC
14627 builtin and then its argument prototype would still apply. */
14635 return Gpm_Open ();
14640 rm -f conftest.
$ac_objext conftest
$ac_exeext
14641 if { (ac_try
="$ac_link"
14642 case "(($ac_try" in
14643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14644 *) ac_try_echo=$ac_try;;
14646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14647 (eval "$ac_link") 2>conftest.er1
14649 grep -v '^ *+' conftest.er1 >conftest.err
14651 cat conftest.err >&5
14652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14653 (exit $ac_status); } && {
14654 test -z "$ac_c_werror_flag" ||
14655 test ! -s conftest.err
14656 } && test -s conftest$ac_exeext &&
14657 $as_test_x conftest$ac_exeext; then
14658 ac_cv_lib_gpm_Gpm_Open=yes
14660 echo "$as_me: failed program was:" >&5
14661 sed 's/^/| /' conftest.$ac_ext >&5
14663 ac_cv_lib_gpm_Gpm_Open=no
14666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14667 conftest$ac_exeext conftest.$ac_ext
14668 LIBS=$ac_check_lib_save_LIBS
14670 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14671 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14672 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14681 if test "${HAVE_GPM}" = "yes"; then
14683 cat >>confdefs.h <<\_ACEOF
14689 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14690 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14691 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14692 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14693 echo $ECHO_N "(cached) $ECHO_C" >&6
14695 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14696 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14698 # Is the header compilable?
14699 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14700 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14701 cat >conftest.$ac_ext <<_ACEOF
14704 cat confdefs.h >>conftest.$ac_ext
14705 cat >>conftest.$ac_ext <<_ACEOF
14706 /* end confdefs.h. */
14707 $ac_includes_default
14708 #include <malloc/malloc.h>
14710 rm -f conftest.$ac_objext
14711 if { (ac_try="$ac_compile"
14712 case "(($ac_try" in
14713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14714 *) ac_try_echo
=$ac_try;;
14716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14717 (eval "$ac_compile") 2>conftest.er1
14719 grep -v '^ *+' conftest.er1
>conftest.err
14721 cat conftest.err
>&5
14722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14723 (exit $ac_status); } && {
14724 test -z "$ac_c_werror_flag" ||
14725 test ! -s conftest.err
14726 } && test -s conftest.
$ac_objext; then
14727 ac_header_compiler
=yes
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.
$ac_ext >&5
14732 ac_header_compiler
=no
14735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14737 echo "${ECHO_T}$ac_header_compiler" >&6; }
14739 # Is the header present?
14740 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14741 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14742 cat >conftest.
$ac_ext <<_ACEOF
14745 cat confdefs.h
>>conftest.
$ac_ext
14746 cat >>conftest.
$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 #include <malloc/malloc.h>
14750 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14751 case "(($ac_try" in
14752 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14758 grep -v '^ *+' conftest.er1 >conftest.err
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } >/dev/null && {
14763 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14764 test ! -s conftest.err
14766 ac_header_preproc=yes
14768 echo "$as_me: failed program was:" >&5
14769 sed 's/^/| /' conftest.$ac_ext >&5
14771 ac_header_preproc=no
14774 rm -f conftest.err conftest.$ac_ext
14775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14776 echo "${ECHO_T}$ac_header_preproc" >&6; }
14778 # So? What about this header?
14779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14781 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14782 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14783 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14784 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14785 ac_header_preproc=yes
14788 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14789 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14791 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14792 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14793 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14794 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14795 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14796 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14797 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14798 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14799 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14803 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14804 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14805 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14806 echo $ECHO_N "(cached) $ECHO_C" >&6
14808 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14810 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14811 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14814 if test $ac_cv_header_malloc_malloc_h = yes; then
14816 cat >>confdefs.h <<\_ACEOF
14817 #define HAVE_MALLOC_MALLOC_H 1
14824 ### Use NeXTstep API to implement GUI.
14825 if test "${HAVE_NS}" = "yes"; then
14827 cat >>confdefs.h <<\_ACEOF
14831 if test "${NS_IMPL_COCOA}" = "yes"; then
14833 cat >>confdefs.h <<\_ACEOF
14834 #define NS_IMPL_COCOA 1
14838 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14840 cat >>confdefs.h <<\_ACEOF
14841 #define COCOA_EXPERIMENTAL_CTRL_G 1
14845 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14847 cat >>confdefs.h <<\_ACEOF
14848 #define NS_IMPL_GNUSTEP 1
14852 # We also have mouse menus.
14857 ### Use session management (-lSM -lICE) if available
14859 if test "${HAVE_X11}" = "yes"; then
14860 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14861 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14862 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14863 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14864 echo $ECHO_N "(cached) $ECHO_C" >&6
14866 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14867 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14869 # Is the header compilable?
14870 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14871 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14872 cat >conftest.$ac_ext <<_ACEOF
14875 cat confdefs.h >>conftest.$ac_ext
14876 cat >>conftest.$ac_ext <<_ACEOF
14877 /* end confdefs.h. */
14878 $ac_includes_default
14879 #include <X11/SM/SMlib.h>
14881 rm -f conftest.$ac_objext
14882 if { (ac_try="$ac_compile"
14883 case "(($ac_try" in
14884 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14885 *) ac_try_echo
=$ac_try;;
14887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14888 (eval "$ac_compile") 2>conftest.er1
14890 grep -v '^ *+' conftest.er1
>conftest.err
14892 cat conftest.err
>&5
14893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14894 (exit $ac_status); } && {
14895 test -z "$ac_c_werror_flag" ||
14896 test ! -s conftest.err
14897 } && test -s conftest.
$ac_objext; then
14898 ac_header_compiler
=yes
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.
$ac_ext >&5
14903 ac_header_compiler
=no
14906 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14907 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14908 echo "${ECHO_T}$ac_header_compiler" >&6; }
14910 # Is the header present?
14911 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14912 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14913 cat >conftest.
$ac_ext <<_ACEOF
14916 cat confdefs.h
>>conftest.
$ac_ext
14917 cat >>conftest.
$ac_ext <<_ACEOF
14918 /* end confdefs.h. */
14919 #include <X11/SM/SMlib.h>
14921 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14922 case "(($ac_try" in
14923 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14924 *) ac_try_echo=$ac_try;;
14926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14927 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14929 grep -v '^ *+' conftest.er1 >conftest.err
14931 cat conftest.err >&5
14932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14933 (exit $ac_status); } >/dev/null && {
14934 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14935 test ! -s conftest.err
14937 ac_header_preproc=yes
14939 echo "$as_me: failed program was:" >&5
14940 sed 's/^/| /' conftest.$ac_ext >&5
14942 ac_header_preproc=no
14945 rm -f conftest.err conftest.$ac_ext
14946 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14947 echo "${ECHO_T}$ac_header_preproc" >&6; }
14949 # So? What about this header?
14950 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14952 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14953 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14954 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14955 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14956 ac_header_preproc=yes
14959 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14960 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14961 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14962 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14963 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14964 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14965 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14966 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14967 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14968 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14969 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14970 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14974 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14975 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14976 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14977 echo $ECHO_N "(cached) $ECHO_C" >&6
14979 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14981 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14982 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14985 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14986 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14987 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14988 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14989 echo $ECHO_N "(cached) $ECHO_C" >&6
14991 ac_check_lib_save_LIBS=$LIBS
14992 LIBS="-lSM -lICE $LIBS"
14993 cat >conftest.$ac_ext <<_ACEOF
14996 cat confdefs.h >>conftest.$ac_ext
14997 cat >>conftest.$ac_ext <<_ACEOF
14998 /* end confdefs.h. */
15000 /* Override any GCC internal prototype to avoid an error.
15001 Use char because int might match the return type of a GCC
15002 builtin and then its argument prototype would still apply. */
15006 char SmcOpenConnection ();
15010 return SmcOpenConnection ();
15015 rm -f conftest.$ac_objext conftest$ac_exeext
15016 if { (ac_try="$ac_link"
15017 case "(($ac_try" in
15018 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15019 *) ac_try_echo
=$ac_try;;
15021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15022 (eval "$ac_link") 2>conftest.er1
15024 grep -v '^ *+' conftest.er1
>conftest.err
15026 cat conftest.err
>&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } && {
15029 test -z "$ac_c_werror_flag" ||
15030 test ! -s conftest.err
15031 } && test -s conftest
$ac_exeext &&
15032 $as_test_x conftest
$ac_exeext; then
15033 ac_cv_lib_SM_SmcOpenConnection
=yes
15035 echo "$as_me: failed program was:" >&5
15036 sed 's/^/| /' conftest.
$ac_ext >&5
15038 ac_cv_lib_SM_SmcOpenConnection
=no
15041 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15042 conftest
$ac_exeext conftest.
$ac_ext
15043 LIBS
=$ac_check_lib_save_LIBS
15045 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15046 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15047 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15055 if test "${HAVE_X_SM}" = "yes"; then
15057 cat >>confdefs.h
<<\_ACEOF
15058 #define HAVE_X_SM 1
15063 *) LIBS
="-lSM -lICE $LIBS" ;;
15068 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15069 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15070 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15071 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15072 echo $ECHO_N "(cached) $ECHO_C" >&6
15074 cat >conftest.
$ac_ext <<_ACEOF
15077 cat confdefs.h
>>conftest.
$ac_ext
15078 cat >>conftest.
$ac_ext <<_ACEOF
15079 /* end confdefs.h. */
15089 rm -f conftest.
$ac_objext conftest
$ac_exeext
15090 if { (ac_try
="$ac_link"
15091 case "(($ac_try" in
15092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_link") 2>conftest.er1
15098 grep -v '^ *+' conftest.er1 >conftest.err
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } && {
15103 test -z "$ac_c_werror_flag" ||
15104 test ! -s conftest.err
15105 } && test -s conftest$ac_exeext &&
15106 $as_test_x conftest$ac_exeext; then
15107 emacs_cv_netdb_declares_h_errno=yes
15109 echo "$as_me: failed program was:" >&5
15110 sed 's/^/| /' conftest.$ac_ext >&5
15112 emacs_cv_netdb_declares_h_errno=no
15115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15116 conftest$ac_exeext conftest.$ac_ext
15118 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15119 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15120 if test $emacs_cv_netdb_declares_h_errno = yes; then
15122 cat >>confdefs.h <<\_ACEOF
15123 #define HAVE_H_ERRNO 1
15128 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15129 # for constant arguments. Useless!
15130 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15131 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15132 if test "${ac_cv_working_alloca_h+set}" = set; then
15133 echo $ECHO_N "(cached) $ECHO_C" >&6
15135 cat >conftest.$ac_ext <<_ACEOF
15138 cat confdefs.h >>conftest.$ac_ext
15139 cat >>conftest.$ac_ext <<_ACEOF
15140 /* end confdefs.h. */
15141 #include <alloca.h>
15145 char *p = (char *) alloca (2 * sizeof (int));
15151 rm -f conftest.$ac_objext conftest$ac_exeext
15152 if { (ac_try="$ac_link"
15153 case "(($ac_try" in
15154 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15155 *) ac_try_echo
=$ac_try;;
15157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15158 (eval "$ac_link") 2>conftest.er1
15160 grep -v '^ *+' conftest.er1
>conftest.err
15162 cat conftest.err
>&5
15163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15164 (exit $ac_status); } && {
15165 test -z "$ac_c_werror_flag" ||
15166 test ! -s conftest.err
15167 } && test -s conftest
$ac_exeext &&
15168 $as_test_x conftest
$ac_exeext; then
15169 ac_cv_working_alloca_h
=yes
15171 echo "$as_me: failed program was:" >&5
15172 sed 's/^/| /' conftest.
$ac_ext >&5
15174 ac_cv_working_alloca_h
=no
15177 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15178 conftest
$ac_exeext conftest.
$ac_ext
15180 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15181 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15182 if test $ac_cv_working_alloca_h = yes; then
15184 cat >>confdefs.h
<<\_ACEOF
15185 #define HAVE_ALLOCA_H 1
15190 { echo "$as_me:$LINENO: checking for alloca" >&5
15191 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15192 if test "${ac_cv_func_alloca_works+set}" = set; then
15193 echo $ECHO_N "(cached) $ECHO_C" >&6
15195 cat >conftest.
$ac_ext <<_ACEOF
15198 cat confdefs.h
>>conftest.
$ac_ext
15199 cat >>conftest.
$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15202 # define alloca __builtin_alloca
15205 # include <malloc.h>
15206 # define alloca _alloca
15208 # ifdef HAVE_ALLOCA_H
15209 # include <alloca.h>
15214 # ifndef alloca /* predefined by HP cc +Olibcalls */
15225 char *p = (char *) alloca (1);
15231 rm -f conftest.
$ac_objext conftest
$ac_exeext
15232 if { (ac_try
="$ac_link"
15233 case "(($ac_try" in
15234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15235 *) ac_try_echo=$ac_try;;
15237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15238 (eval "$ac_link") 2>conftest.er1
15240 grep -v '^ *+' conftest.er1 >conftest.err
15242 cat conftest.err >&5
15243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15244 (exit $ac_status); } && {
15245 test -z "$ac_c_werror_flag" ||
15246 test ! -s conftest.err
15247 } && test -s conftest$ac_exeext &&
15248 $as_test_x conftest$ac_exeext; then
15249 ac_cv_func_alloca_works=yes
15251 echo "$as_me: failed program was:" >&5
15252 sed 's/^/| /' conftest.$ac_ext >&5
15254 ac_cv_func_alloca_works=no
15257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15258 conftest$ac_exeext conftest.$ac_ext
15260 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15261 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15263 if test $ac_cv_func_alloca_works = yes; then
15265 cat >>confdefs.h <<\_ACEOF
15266 #define HAVE_ALLOCA 1
15270 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15271 # that cause trouble. Some versions do not even contain alloca or
15272 # contain a buggy version. If you still want to use their alloca,
15273 # use ar to extract alloca.o from them instead of compiling alloca.c.
15275 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15277 cat >>confdefs.h <<\_ACEOF
15282 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15283 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15284 if test "${ac_cv_os_cray+set}" = set; then
15285 echo $ECHO_N "(cached
) $ECHO_C" >&6
15287 cat >conftest.$ac_ext <<_ACEOF
15290 cat confdefs.h >>conftest.$ac_ext
15291 cat >>conftest.$ac_ext <<_ACEOF
15292 /* end confdefs.h. */
15293 #if defined CRAY && ! defined CRAY2
15300 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15301 $EGREP "webecray
" >/dev/null 2>&1; then
15309 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15310 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15311 if test $ac_cv_os_cray = yes; then
15312 for ac_func in _getb67 GETB67 getb67; do
15313 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15314 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15315 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15316 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15317 echo $ECHO_N "(cached
) $ECHO_C" >&6
15319 cat >conftest.$ac_ext <<_ACEOF
15322 cat confdefs.h >>conftest.$ac_ext
15323 cat >>conftest.$ac_ext <<_ACEOF
15324 /* end confdefs.h. */
15325 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15327 #define $ac_func innocuous_$ac_func
15329 /* System header to define __stub macros and hopefully few prototypes,
15330 which can conflict with char $ac_func (); below.
15331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15332 <limits.h> exists even on freestanding compilers. */
15335 # include <limits.h>
15337 # include <assert.h>
15342 /* Override any GCC internal prototype to avoid an error.
15343 Use char because int might match the return type of a GCC
15344 builtin and then its argument prototype would still apply. */
15349 /* The GNU C library defines this for functions which it implements
15350 to always fail with ENOSYS. Some functions are actually named
15351 something starting with __ and the normal name is an alias. */
15352 #if defined __stub_$ac_func || defined __stub___$ac_func
15359 return $ac_func ();
15364 rm -f conftest.$ac_objext conftest$ac_exeext
15365 if { (ac_try="$ac_link"
15366 case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_link") 2>conftest.er1
15373 grep -v '^ *+' conftest.er1 >conftest.err
15375 cat conftest.err >&5
15376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15377 (exit $ac_status); } && {
15378 test -z "$ac_c_werror_flag" ||
15379 test ! -s conftest.err
15380 } && test -s conftest$ac_exeext &&
15381 $as_test_x conftest$ac_exeext; then
15382 eval "$as_ac_var=yes"
15384 echo "$as_me: failed program was
:" >&5
15385 sed 's/^/| /' conftest.$ac_ext >&5
15387 eval "$as_ac_var=no
"
15390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15391 conftest$ac_exeext conftest.$ac_ext
15393 ac_res=`eval echo '${'$as_ac_var'}'`
15394 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15395 echo "${ECHO_T}$ac_res" >&6; }
15396 if test `eval echo '${'$as_ac_var'}'` = yes; then
15398 cat >>confdefs.h <<_ACEOF
15399 #define CRAY_STACKSEG_END $ac_func
15408 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15409 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15410 if test "${ac_cv_c_stack_direction+set}" = set; then
15411 echo $ECHO_N "(cached
) $ECHO_C" >&6
15413 if test "$cross_compiling" = yes; then
15414 ac_cv_c_stack_direction=0
15416 cat >conftest.$ac_ext <<_ACEOF
15419 cat confdefs.h >>conftest.$ac_ext
15420 cat >>conftest.$ac_ext <<_ACEOF
15421 /* end confdefs.h. */
15422 $ac_includes_default
15424 find_stack_direction ()
15426 static char *addr = 0;
15431 return find_stack_direction ();
15434 return (&dummy > addr) ? 1 : -1;
15440 return find_stack_direction () < 0;
15443 rm -f conftest$ac_exeext
15444 if { (ac_try="$ac_link"
15445 case "(($ac_try" in
15446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15447 *) ac_try_echo=$ac_try;;
15449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15450 (eval "$ac_link") 2>&5
15452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15453 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15454 { (case "(($ac_try" in
15455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15456 *) ac_try_echo=$ac_try;;
15458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15459 (eval "$ac_try") 2>&5
15461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15462 (exit $ac_status); }; }; then
15463 ac_cv_c_stack_direction=1
15465 echo "$as_me: program exited with status
$ac_status" >&5
15466 echo "$as_me: failed program was
:" >&5
15467 sed 's/^/| /' conftest.$ac_ext >&5
15469 ( exit $ac_status )
15470 ac_cv_c_stack_direction=-1
15472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15477 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15478 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15480 cat >>confdefs.h <<_ACEOF
15481 #define STACK_DIRECTION $ac_cv_c_stack_direction
15488 if test x"$ac_cv_func_alloca_works" != xyes; then
15489 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15490 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15491 { (exit 1); exit 1; }; }
15494 # fmod, logb, and frexp are found in -lm on most systems.
15495 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15497 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15498 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15499 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15500 echo $ECHO_N "(cached
) $ECHO_C" >&6
15502 ac_check_lib_save_LIBS=$LIBS
15504 cat >conftest.$ac_ext <<_ACEOF
15507 cat confdefs.h >>conftest.$ac_ext
15508 cat >>conftest.$ac_ext <<_ACEOF
15509 /* end confdefs.h. */
15511 /* Override any GCC internal prototype to avoid an error.
15512 Use char because int might match the return type of a GCC
15513 builtin and then its argument prototype would still apply. */
15526 rm -f conftest.$ac_objext conftest$ac_exeext
15527 if { (ac_try="$ac_link"
15528 case "(($ac_try" in
15529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15530 *) ac_try_echo=$ac_try;;
15532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15533 (eval "$ac_link") 2>conftest.er1
15535 grep -v '^ *+' conftest.er1 >conftest.err
15537 cat conftest.err >&5
15538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15539 (exit $ac_status); } && {
15540 test -z "$ac_c_werror_flag" ||
15541 test ! -s conftest.err
15542 } && test -s conftest$ac_exeext &&
15543 $as_test_x conftest$ac_exeext; then
15544 ac_cv_lib_m_sqrt=yes
15546 echo "$as_me: failed program was
:" >&5
15547 sed 's/^/| /' conftest.$ac_ext >&5
15549 ac_cv_lib_m_sqrt=no
15552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15553 conftest$ac_exeext conftest.$ac_ext
15554 LIBS=$ac_check_lib_save_LIBS
15556 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15557 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15558 if test $ac_cv_lib_m_sqrt = yes; then
15559 cat >>confdefs.h <<_ACEOF
15560 #define HAVE_LIBM 1
15568 # Check for mail-locking functions in a "mail" library. Probably this should
15569 # have the same check as for liblockfile below.
15571 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15572 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15573 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15574 echo $ECHO_N "(cached
) $ECHO_C" >&6
15576 ac_check_lib_save_LIBS=$LIBS
15577 LIBS="-lmail $LIBS"
15578 cat >conftest.$ac_ext <<_ACEOF
15581 cat confdefs.h >>conftest.$ac_ext
15582 cat >>conftest.$ac_ext <<_ACEOF
15583 /* end confdefs.h. */
15585 /* Override any GCC internal prototype to avoid an error.
15586 Use char because int might match the return type of a GCC
15587 builtin and then its argument prototype would still apply. */
15595 return maillock ();
15600 rm -f conftest.$ac_objext conftest$ac_exeext
15601 if { (ac_try="$ac_link"
15602 case "(($ac_try" in
15603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15604 *) ac_try_echo=$ac_try;;
15606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15607 (eval "$ac_link") 2>conftest.er1
15609 grep -v '^ *+' conftest.er1 >conftest.err
15611 cat conftest.err >&5
15612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15613 (exit $ac_status); } && {
15614 test -z "$ac_c_werror_flag" ||
15615 test ! -s conftest.err
15616 } && test -s conftest$ac_exeext &&
15617 $as_test_x conftest$ac_exeext; then
15618 ac_cv_lib_mail_maillock=yes
15620 echo "$as_me: failed program was
:" >&5
15621 sed 's/^/| /' conftest.$ac_ext >&5
15623 ac_cv_lib_mail_maillock=no
15626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15627 conftest$ac_exeext conftest.$ac_ext
15628 LIBS=$ac_check_lib_save_LIBS
15630 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15631 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15632 if test $ac_cv_lib_mail_maillock = yes; then
15633 cat >>confdefs.h <<_ACEOF
15634 #define HAVE_LIBMAIL 1
15637 LIBS="-lmail $LIBS"
15642 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15643 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15644 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15645 echo $ECHO_N "(cached
) $ECHO_C" >&6
15647 ac_check_lib_save_LIBS=$LIBS
15648 LIBS="-llockfile $LIBS"
15649 cat >conftest.$ac_ext <<_ACEOF
15652 cat confdefs.h >>conftest.$ac_ext
15653 cat >>conftest.$ac_ext <<_ACEOF
15654 /* end confdefs.h. */
15656 /* Override any GCC internal prototype to avoid an error.
15657 Use char because int might match the return type of a GCC
15658 builtin and then its argument prototype would still apply. */
15666 return maillock ();
15671 rm -f conftest.$ac_objext conftest$ac_exeext
15672 if { (ac_try="$ac_link"
15673 case "(($ac_try" in
15674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15675 *) ac_try_echo=$ac_try;;
15677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15678 (eval "$ac_link") 2>conftest.er1
15680 grep -v '^ *+' conftest.er1 >conftest.err
15682 cat conftest.err >&5
15683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15684 (exit $ac_status); } && {
15685 test -z "$ac_c_werror_flag" ||
15686 test ! -s conftest.err
15687 } && test -s conftest$ac_exeext &&
15688 $as_test_x conftest$ac_exeext; then
15689 ac_cv_lib_lockfile_maillock=yes
15691 echo "$as_me: failed program was
:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 ac_cv_lib_lockfile_maillock=no
15697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15698 conftest$ac_exeext conftest.$ac_ext
15699 LIBS=$ac_check_lib_save_LIBS
15701 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15702 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15703 if test $ac_cv_lib_lockfile_maillock = yes; then
15704 cat >>confdefs.h <<_ACEOF
15705 #define HAVE_LIBLOCKFILE 1
15708 LIBS="-llockfile $LIBS"
15712 # If we have the shared liblockfile, assume we must use it for mail
15713 # locking (e.g. Debian). If we couldn't link against liblockfile
15714 # (no liblockfile.a installed), ensure that we don't need to.
15715 if test "$ac_cv_lib_lockfile_maillock" = no; then
15716 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15717 set dummy liblockfile.so; ac_word=$2
15718 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15719 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15720 if test "${ac_cv_prog_liblockfile+set}" = set; then
15721 echo $ECHO_N "(cached
) $ECHO_C" >&6
15723 if test -n "$liblockfile"; then
15724 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15727 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15728 for as_dir in $as_dummy
15731 test -z "$as_dir" && as_dir=.
15732 for ac_exec_ext in '' $ac_executable_extensions; do
15733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15734 ac_cv_prog_liblockfile="yes"
15735 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15742 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15745 liblockfile=$ac_cv_prog_liblockfile
15746 if test -n "$liblockfile"; then
15747 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15748 echo "${ECHO_T}$liblockfile" >&6; }
15750 { echo "$as_me:$LINENO: result
: no
" >&5
15751 echo "${ECHO_T}no
" >&6; }
15755 if test $ac_cv_prog_liblockfile = yes; then
15756 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15757 This probably means that movemail could lose mail.
15758 There may be a \`development' package to
install containing liblockfile.
" >&5
15759 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15760 This probably means that movemail could lose mail.
15761 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15762 { (exit 1); exit 1; }; }
15767 for ac_func in touchlock
15769 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15770 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15771 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15772 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15773 echo $ECHO_N "(cached
) $ECHO_C" >&6
15775 cat >conftest.$ac_ext <<_ACEOF
15778 cat confdefs.h >>conftest.$ac_ext
15779 cat >>conftest.$ac_ext <<_ACEOF
15780 /* end confdefs.h. */
15781 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15782 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15783 #define $ac_func innocuous_$ac_func
15785 /* System header to define __stub macros and hopefully few prototypes,
15786 which can conflict with char $ac_func (); below.
15787 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15788 <limits.h> exists even on freestanding compilers. */
15791 # include <limits.h>
15793 # include <assert.h>
15798 /* Override any GCC internal prototype to avoid an error.
15799 Use char because int might match the return type of a GCC
15800 builtin and then its argument prototype would still apply. */
15805 /* The GNU C library defines this for functions which it implements
15806 to always fail with ENOSYS. Some functions are actually named
15807 something starting with __ and the normal name is an alias. */
15808 #if defined __stub_$ac_func || defined __stub___$ac_func
15815 return $ac_func ();
15820 rm -f conftest.$ac_objext conftest$ac_exeext
15821 if { (ac_try="$ac_link"
15822 case "(($ac_try" in
15823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15824 *) ac_try_echo=$ac_try;;
15826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15827 (eval "$ac_link") 2>conftest.er1
15829 grep -v '^ *+' conftest.er1 >conftest.err
15831 cat conftest.err >&5
15832 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15833 (exit $ac_status); } && {
15834 test -z "$ac_c_werror_flag" ||
15835 test ! -s conftest.err
15836 } && test -s conftest$ac_exeext &&
15837 $as_test_x conftest$ac_exeext; then
15838 eval "$as_ac_var=yes"
15840 echo "$as_me: failed program was
:" >&5
15841 sed 's/^/| /' conftest.$ac_ext >&5
15843 eval "$as_ac_var=no
"
15846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15847 conftest$ac_exeext conftest.$ac_ext
15849 ac_res=`eval echo '${'$as_ac_var'}'`
15850 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15851 echo "${ECHO_T}$ac_res" >&6; }
15852 if test `eval echo '${'$as_ac_var'}'` = yes; then
15853 cat >>confdefs.h <<_ACEOF
15854 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15861 for ac_header in maillock.h
15863 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15864 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15865 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15866 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15867 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15868 echo $ECHO_N "(cached
) $ECHO_C" >&6
15870 ac_res=`eval echo '${'$as_ac_Header'}'`
15871 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15872 echo "${ECHO_T}$ac_res" >&6; }
15874 # Is the header compilable?
15875 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15876 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15877 cat >conftest.$ac_ext <<_ACEOF
15880 cat confdefs.h >>conftest.$ac_ext
15881 cat >>conftest.$ac_ext <<_ACEOF
15882 /* end confdefs.h. */
15883 $ac_includes_default
15884 #include <$ac_header>
15886 rm -f conftest.$ac_objext
15887 if { (ac_try="$ac_compile"
15888 case "(($ac_try" in
15889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15890 *) ac_try_echo=$ac_try;;
15892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15893 (eval "$ac_compile") 2>conftest.er1
15895 grep -v '^ *+' conftest.er1 >conftest.err
15897 cat conftest.err >&5
15898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15899 (exit $ac_status); } && {
15900 test -z "$ac_c_werror_flag" ||
15901 test ! -s conftest.err
15902 } && test -s conftest.$ac_objext; then
15903 ac_header_compiler=yes
15905 echo "$as_me: failed program was
:" >&5
15906 sed 's/^/| /' conftest.$ac_ext >&5
15908 ac_header_compiler=no
15911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15912 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15913 echo "${ECHO_T}$ac_header_compiler" >&6; }
15915 # Is the header present?
15916 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15917 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15918 cat >conftest.$ac_ext <<_ACEOF
15921 cat confdefs.h >>conftest.$ac_ext
15922 cat >>conftest.$ac_ext <<_ACEOF
15923 /* end confdefs.h. */
15924 #include <$ac_header>
15926 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15927 case "(($ac_try" in
15928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15929 *) ac_try_echo=$ac_try;;
15931 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15932 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15934 grep -v '^ *+' conftest.er1 >conftest.err
15936 cat conftest.err >&5
15937 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15938 (exit $ac_status); } >/dev/null && {
15939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15940 test ! -s conftest.err
15942 ac_header_preproc=yes
15944 echo "$as_me: failed program was
:" >&5
15945 sed 's/^/| /' conftest.$ac_ext >&5
15947 ac_header_preproc=no
15950 rm -f conftest.err conftest.$ac_ext
15951 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15952 echo "${ECHO_T}$ac_header_preproc" >&6; }
15954 # So? What about this header?
15955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15957 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15958 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15959 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15961 ac_header_preproc=yes
15964 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15965 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15966 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15967 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15968 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15969 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15970 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15971 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15972 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15974 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15975 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15979 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15980 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15981 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15982 echo $ECHO_N "(cached
) $ECHO_C" >&6
15984 eval "$as_ac_Header=\
$ac_header_preproc"
15986 ac_res=`eval echo '${'$as_ac_Header'}'`
15987 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15988 echo "${ECHO_T}$ac_res" >&6; }
15991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15992 cat >>confdefs.h <<_ACEOF
15993 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16072 for ac_func in gethostname getdomainname dup2 \
16073 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16074 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16075 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16076 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16077 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16078 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16079 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16080 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16081 cfmakeraw cfsetspeed
16083 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16084 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16085 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16086 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16087 echo $ECHO_N "(cached
) $ECHO_C" >&6
16089 cat >conftest.$ac_ext <<_ACEOF
16092 cat confdefs.h >>conftest.$ac_ext
16093 cat >>conftest.$ac_ext <<_ACEOF
16094 /* end confdefs.h. */
16095 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16096 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16097 #define $ac_func innocuous_$ac_func
16099 /* System header to define __stub macros and hopefully few prototypes,
16100 which can conflict with char $ac_func (); below.
16101 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16102 <limits.h> exists even on freestanding compilers. */
16105 # include <limits.h>
16107 # include <assert.h>
16112 /* Override any GCC internal prototype to avoid an error.
16113 Use char because int might match the return type of a GCC
16114 builtin and then its argument prototype would still apply. */
16119 /* The GNU C library defines this for functions which it implements
16120 to always fail with ENOSYS. Some functions are actually named
16121 something starting with __ and the normal name is an alias. */
16122 #if defined __stub_$ac_func || defined __stub___$ac_func
16129 return $ac_func ();
16134 rm -f conftest.$ac_objext conftest$ac_exeext
16135 if { (ac_try="$ac_link"
16136 case "(($ac_try" in
16137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16138 *) ac_try_echo=$ac_try;;
16140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16141 (eval "$ac_link") 2>conftest.er1
16143 grep -v '^ *+' conftest.er1 >conftest.err
16145 cat conftest.err >&5
16146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16147 (exit $ac_status); } && {
16148 test -z "$ac_c_werror_flag" ||
16149 test ! -s conftest.err
16150 } && test -s conftest$ac_exeext &&
16151 $as_test_x conftest$ac_exeext; then
16152 eval "$as_ac_var=yes"
16154 echo "$as_me: failed program was
:" >&5
16155 sed 's/^/| /' conftest.$ac_ext >&5
16157 eval "$as_ac_var=no
"
16160 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16161 conftest$ac_exeext conftest.$ac_ext
16163 ac_res=`eval echo '${'$as_ac_var'}'`
16164 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16165 echo "${ECHO_T}$ac_res" >&6; }
16166 if test `eval echo '${'$as_ac_var'}'` = yes; then
16167 cat >>confdefs.h <<_ACEOF
16168 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16176 for ac_header in sys/un.h
16178 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16179 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16180 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16181 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16182 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16183 echo $ECHO_N "(cached
) $ECHO_C" >&6
16185 ac_res=`eval echo '${'$as_ac_Header'}'`
16186 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16187 echo "${ECHO_T}$ac_res" >&6; }
16189 # Is the header compilable?
16190 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16191 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16192 cat >conftest.$ac_ext <<_ACEOF
16195 cat confdefs.h >>conftest.$ac_ext
16196 cat >>conftest.$ac_ext <<_ACEOF
16197 /* end confdefs.h. */
16198 $ac_includes_default
16199 #include <$ac_header>
16201 rm -f conftest.$ac_objext
16202 if { (ac_try="$ac_compile"
16203 case "(($ac_try" in
16204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16205 *) ac_try_echo=$ac_try;;
16207 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16208 (eval "$ac_compile") 2>conftest.er1
16210 grep -v '^ *+' conftest.er1 >conftest.err
16212 cat conftest.err >&5
16213 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16214 (exit $ac_status); } && {
16215 test -z "$ac_c_werror_flag" ||
16216 test ! -s conftest.err
16217 } && test -s conftest.$ac_objext; then
16218 ac_header_compiler=yes
16220 echo "$as_me: failed program was
:" >&5
16221 sed 's/^/| /' conftest.$ac_ext >&5
16223 ac_header_compiler=no
16226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16227 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16228 echo "${ECHO_T}$ac_header_compiler" >&6; }
16230 # Is the header present?
16231 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16232 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16233 cat >conftest.$ac_ext <<_ACEOF
16236 cat confdefs.h >>conftest.$ac_ext
16237 cat >>conftest.$ac_ext <<_ACEOF
16238 /* end confdefs.h. */
16239 #include <$ac_header>
16241 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16242 case "(($ac_try" in
16243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16244 *) ac_try_echo=$ac_try;;
16246 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16247 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16249 grep -v '^ *+' conftest.er1 >conftest.err
16251 cat conftest.err >&5
16252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16253 (exit $ac_status); } >/dev/null && {
16254 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16255 test ! -s conftest.err
16257 ac_header_preproc=yes
16259 echo "$as_me: failed program was
:" >&5
16260 sed 's/^/| /' conftest.$ac_ext >&5
16262 ac_header_preproc=no
16265 rm -f conftest.err conftest.$ac_ext
16266 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16267 echo "${ECHO_T}$ac_header_preproc" >&6; }
16269 # So? What about this header?
16270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16272 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16273 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16274 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16275 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16276 ac_header_preproc=yes
16279 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16280 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16281 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16282 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16283 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16284 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16285 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16286 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16287 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16288 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16289 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16290 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16294 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16295 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16296 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16297 echo $ECHO_N "(cached
) $ECHO_C" >&6
16299 eval "$as_ac_Header=\
$ac_header_preproc"
16301 ac_res=`eval echo '${'$as_ac_Header'}'`
16302 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16303 echo "${ECHO_T}$ac_res" >&6; }
16306 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16307 cat >>confdefs.h <<_ACEOF
16308 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16320 for ac_header in $ac_header_list
16322 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16323 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16324 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16325 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16326 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16327 echo $ECHO_N "(cached
) $ECHO_C" >&6
16329 ac_res=`eval echo '${'$as_ac_Header'}'`
16330 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16331 echo "${ECHO_T}$ac_res" >&6; }
16333 # Is the header compilable?
16334 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16335 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16336 cat >conftest.$ac_ext <<_ACEOF
16339 cat confdefs.h >>conftest.$ac_ext
16340 cat >>conftest.$ac_ext <<_ACEOF
16341 /* end confdefs.h. */
16342 $ac_includes_default
16343 #include <$ac_header>
16345 rm -f conftest.$ac_objext
16346 if { (ac_try="$ac_compile"
16347 case "(($ac_try" in
16348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16349 *) ac_try_echo=$ac_try;;
16351 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16352 (eval "$ac_compile") 2>conftest.er1
16354 grep -v '^ *+' conftest.er1 >conftest.err
16356 cat conftest.err >&5
16357 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16358 (exit $ac_status); } && {
16359 test -z "$ac_c_werror_flag" ||
16360 test ! -s conftest.err
16361 } && test -s conftest.$ac_objext; then
16362 ac_header_compiler=yes
16364 echo "$as_me: failed program was
:" >&5
16365 sed 's/^/| /' conftest.$ac_ext >&5
16367 ac_header_compiler=no
16370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16371 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16372 echo "${ECHO_T}$ac_header_compiler" >&6; }
16374 # Is the header present?
16375 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16376 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16377 cat >conftest.$ac_ext <<_ACEOF
16380 cat confdefs.h >>conftest.$ac_ext
16381 cat >>conftest.$ac_ext <<_ACEOF
16382 /* end confdefs.h. */
16383 #include <$ac_header>
16385 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16386 case "(($ac_try" in
16387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16388 *) ac_try_echo=$ac_try;;
16390 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16391 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16393 grep -v '^ *+' conftest.er1 >conftest.err
16395 cat conftest.err >&5
16396 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16397 (exit $ac_status); } >/dev/null && {
16398 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16399 test ! -s conftest.err
16401 ac_header_preproc=yes
16403 echo "$as_me: failed program was
:" >&5
16404 sed 's/^/| /' conftest.$ac_ext >&5
16406 ac_header_preproc=no
16409 rm -f conftest.err conftest.$ac_ext
16410 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16411 echo "${ECHO_T}$ac_header_preproc" >&6; }
16413 # So? What about this header?
16414 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16416 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16417 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16418 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16419 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16420 ac_header_preproc=yes
16423 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16424 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16425 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16426 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16427 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16428 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16429 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16430 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16431 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16432 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16433 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16434 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16438 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16439 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16440 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16441 echo $ECHO_N "(cached
) $ECHO_C" >&6
16443 eval "$as_ac_Header=\
$ac_header_preproc"
16445 ac_res=`eval echo '${'$as_ac_Header'}'`
16446 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16447 echo "${ECHO_T}$ac_res" >&6; }
16450 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16451 cat >>confdefs.h <<_ACEOF
16452 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16467 for ac_func in $ac_func_list
16469 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16470 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16471 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16472 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16473 echo $ECHO_N "(cached
) $ECHO_C" >&6
16475 cat >conftest.$ac_ext <<_ACEOF
16478 cat confdefs.h >>conftest.$ac_ext
16479 cat >>conftest.$ac_ext <<_ACEOF
16480 /* end confdefs.h. */
16481 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16482 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16483 #define $ac_func innocuous_$ac_func
16485 /* System header to define __stub macros and hopefully few prototypes,
16486 which can conflict with char $ac_func (); below.
16487 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16488 <limits.h> exists even on freestanding compilers. */
16491 # include <limits.h>
16493 # include <assert.h>
16498 /* Override any GCC internal prototype to avoid an error.
16499 Use char because int might match the return type of a GCC
16500 builtin and then its argument prototype would still apply. */
16505 /* The GNU C library defines this for functions which it implements
16506 to always fail with ENOSYS. Some functions are actually named
16507 something starting with __ and the normal name is an alias. */
16508 #if defined __stub_$ac_func || defined __stub___$ac_func
16515 return $ac_func ();
16520 rm -f conftest.$ac_objext conftest$ac_exeext
16521 if { (ac_try="$ac_link"
16522 case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_link") 2>conftest.er1
16529 grep -v '^ *+' conftest.er1 >conftest.err
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16533 (exit $ac_status); } && {
16534 test -z "$ac_c_werror_flag" ||
16535 test ! -s conftest.err
16536 } && test -s conftest$ac_exeext &&
16537 $as_test_x conftest$ac_exeext; then
16538 eval "$as_ac_var=yes"
16540 echo "$as_me: failed program was
:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16543 eval "$as_ac_var=no
"
16546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16547 conftest$ac_exeext conftest.$ac_ext
16549 ac_res=`eval echo '${'$as_ac_var'}'`
16550 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16551 echo "${ECHO_T}$ac_res" >&6; }
16552 if test `eval echo '${'$as_ac_var'}'` = yes; then
16553 cat >>confdefs.h <<_ACEOF
16554 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16576 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16577 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16578 if test "${ac_cv_func_working_mktime+set}" = set; then
16579 echo $ECHO_N "(cached
) $ECHO_C" >&6
16581 if test "$cross_compiling" = yes; then
16582 ac_cv_func_working_mktime=no
16584 cat >conftest.$ac_ext <<_ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16590 /* Test program from Paul Eggert and Tony Leneis. */
16591 #ifdef TIME_WITH_SYS_TIME
16592 # include <sys/time.h>
16595 # ifdef HAVE_SYS_TIME_H
16596 # include <sys/time.h>
16602 #include <stdlib.h>
16604 #ifdef HAVE_UNISTD_H
16605 # include <unistd.h>
16609 # define alarm(X) /* empty */
16612 /* Work around redefinition to rpl_putenv by other config tests. */
16615 static time_t time_t_max;
16616 static time_t time_t_min;
16618 /* Values we'll use to set the TZ environment variable. */
16619 static char *tz_strings[] = {
16620 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16621 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16623 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16625 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16626 Based on a problem report from Andreas Jaeger. */
16628 spring_forward_gap ()
16630 /* glibc (up to about 1998-10-07) failed this test. */
16633 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16634 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16635 on systems that don't support the Olson extension, or don't have the
16636 full zoneinfo tables installed. */
16637 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16646 return mktime (&tm) != (time_t) -1;
16654 return ! (lt = localtime (&now)) || mktime (lt) == now;
16661 return (mktime_test1 (now)
16662 && mktime_test1 ((time_t) (time_t_max - now))
16663 && mktime_test1 ((time_t) (time_t_min + now)));
16669 /* Based on code from Ariel Faigon. */
16679 return tm.tm_mon == 2 && tm.tm_mday == 31;
16688 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16689 now = mktime (&tm);
16690 if (now != (time_t) -1)
16692 struct tm *lt = localtime (&now);
16694 && lt->tm_year == tm.tm_year
16695 && lt->tm_mon == tm.tm_mon
16696 && lt->tm_mday == tm.tm_mday
16697 && lt->tm_hour == tm.tm_hour
16698 && lt->tm_min == tm.tm_min
16699 && lt->tm_sec == tm.tm_sec
16700 && lt->tm_yday == tm.tm_yday
16701 && lt->tm_wday == tm.tm_wday
16702 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16703 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16712 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16713 ignoring leap seconds. */
16714 unsigned long int answer = 2527315200UL;
16718 tm.tm_year = 2050 - 1900;
16721 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16724 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16725 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16726 on systems that don't support the Olson extension, or don't have the
16727 full zoneinfo tables installed. */
16728 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16732 /* Check that the result is either a failure, or close enough
16733 to the correct answer that we can assume the discrepancy is
16734 due to leap seconds. */
16735 return (t == (time_t) -1
16736 || (0 < t && answer - 120 <= t && t <= answer + 120));
16745 /* This test makes some buggy mktime implementations loop.
16746 Give up after 60 seconds; a mktime slower than that
16747 isn't worth using anyway. */
16750 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16753 if ((time_t) -1 < 0)
16754 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16756 delta = time_t_max / 997; /* a suitable prime number */
16757 for (i = 0; i < N_STRINGS; i++)
16760 putenv (tz_strings[i]);
16762 for (t = 0; t <= time_t_max - delta; t += delta)
16763 if (! mktime_test (t))
16765 if (! (mktime_test ((time_t) 1)
16766 && mktime_test ((time_t) (60 * 60))
16767 && mktime_test ((time_t) (60 * 60 * 24))))
16770 for (j = 1; 0 < j; j *= 2)
16771 if (! bigtime_test (j))
16773 if (! bigtime_test (j - 1))
16776 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16779 rm -f conftest$ac_exeext
16780 if { (ac_try="$ac_link"
16781 case "(($ac_try" in
16782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16783 *) ac_try_echo=$ac_try;;
16785 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16786 (eval "$ac_link") 2>&5
16788 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16789 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16790 { (case "(($ac_try" in
16791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16792 *) ac_try_echo=$ac_try;;
16794 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16795 (eval "$ac_try") 2>&5
16797 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16798 (exit $ac_status); }; }; then
16799 ac_cv_func_working_mktime=yes
16801 echo "$as_me: program exited with status
$ac_status" >&5
16802 echo "$as_me: failed program was
:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16805 ( exit $ac_status )
16806 ac_cv_func_working_mktime=no
16808 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16813 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16814 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16815 if test $ac_cv_func_working_mktime = no; then
16816 case " $LIBOBJS " in
16817 *" mktime.
$ac_objext "* ) ;;
16818 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16824 if test "$ac_cv_func_working_mktime" = no; then
16826 cat >>confdefs.h <<\_ACEOF
16827 #define BROKEN_MKTIME 1
16832 ac_have_func=no # yes means we've found a way to get the load average.
16834 # Make sure getloadavg.c is where it belongs, at configure-time.
16835 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16836 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16837 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16838 { (exit 1); exit 1; }; }
16842 # Check for getloadavg, but be sure not to touch the cache variable.
16843 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16844 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16845 if test "${ac_cv_func_getloadavg+set}" = set; then
16846 echo $ECHO_N "(cached
) $ECHO_C" >&6
16848 cat >conftest.$ac_ext <<_ACEOF
16851 cat confdefs.h >>conftest.$ac_ext
16852 cat >>conftest.$ac_ext <<_ACEOF
16853 /* end confdefs.h. */
16854 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16856 #define getloadavg innocuous_getloadavg
16858 /* System header to define __stub macros and hopefully few prototypes,
16859 which can conflict with char getloadavg (); below.
16860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16861 <limits.h> exists even on freestanding compilers. */
16864 # include <limits.h>
16866 # include <assert.h>
16871 /* Override any GCC internal prototype to avoid an error.
16872 Use char because int might match the return type of a GCC
16873 builtin and then its argument prototype would still apply. */
16877 char getloadavg ();
16878 /* The GNU C library defines this for functions which it implements
16879 to always fail with ENOSYS. Some functions are actually named
16880 something starting with __ and the normal name is an alias. */
16881 #if defined __stub_getloadavg || defined __stub___getloadavg
16888 return getloadavg ();
16893 rm -f conftest.$ac_objext conftest$ac_exeext
16894 if { (ac_try="$ac_link"
16895 case "(($ac_try" in
16896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16897 *) ac_try_echo=$ac_try;;
16899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16900 (eval "$ac_link") 2>conftest.er1
16902 grep -v '^ *+' conftest.er1 >conftest.err
16904 cat conftest.err >&5
16905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16906 (exit $ac_status); } && {
16907 test -z "$ac_c_werror_flag" ||
16908 test ! -s conftest.err
16909 } && test -s conftest$ac_exeext &&
16910 $as_test_x conftest$ac_exeext; then
16911 ac_cv_func_getloadavg=yes
16913 echo "$as_me: failed program was
:" >&5
16914 sed 's/^/| /' conftest.$ac_ext >&5
16916 ac_cv_func_getloadavg=no
16919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16920 conftest$ac_exeext conftest.$ac_ext
16922 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16923 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16924 if test $ac_cv_func_getloadavg = yes; then
16929 ) && ac_have_func=yes
16931 # On HPUX9, an unprivileged user can get load averages through this function.
16933 for ac_func in pstat_getdynamic
16935 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16936 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16937 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16938 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16939 echo $ECHO_N "(cached
) $ECHO_C" >&6
16941 cat >conftest.$ac_ext <<_ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16947 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16949 #define $ac_func innocuous_$ac_func
16951 /* System header to define __stub macros and hopefully few prototypes,
16952 which can conflict with char $ac_func (); below.
16953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16954 <limits.h> exists even on freestanding compilers. */
16957 # include <limits.h>
16959 # include <assert.h>
16964 /* Override any GCC internal prototype to avoid an error.
16965 Use char because int might match the return type of a GCC
16966 builtin and then its argument prototype would still apply. */
16971 /* The GNU C library defines this for functions which it implements
16972 to always fail with ENOSYS. Some functions are actually named
16973 something starting with __ and the normal name is an alias. */
16974 #if defined __stub_$ac_func || defined __stub___$ac_func
16981 return $ac_func ();
16986 rm -f conftest.$ac_objext conftest$ac_exeext
16987 if { (ac_try="$ac_link"
16988 case "(($ac_try" in
16989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16990 *) ac_try_echo=$ac_try;;
16992 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16993 (eval "$ac_link") 2>conftest.er1
16995 grep -v '^ *+' conftest.er1 >conftest.err
16997 cat conftest.err >&5
16998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16999 (exit $ac_status); } && {
17000 test -z "$ac_c_werror_flag" ||
17001 test ! -s conftest.err
17002 } && test -s conftest$ac_exeext &&
17003 $as_test_x conftest$ac_exeext; then
17004 eval "$as_ac_var=yes"
17006 echo "$as_me: failed program was
:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17009 eval "$as_ac_var=no
"
17012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17013 conftest$ac_exeext conftest.$ac_ext
17015 ac_res=`eval echo '${'$as_ac_var'}'`
17016 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17017 echo "${ECHO_T}$ac_res" >&6; }
17018 if test `eval echo '${'$as_ac_var'}'` = yes; then
17019 cat >>confdefs.h <<_ACEOF
17020 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17027 # Solaris has libkstat which does not require root.
17029 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17030 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17031 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17032 echo $ECHO_N "(cached
) $ECHO_C" >&6
17034 ac_check_lib_save_LIBS=$LIBS
17035 LIBS="-lkstat $LIBS"
17036 cat >conftest.$ac_ext <<_ACEOF
17039 cat confdefs.h >>conftest.$ac_ext
17040 cat >>conftest.$ac_ext <<_ACEOF
17041 /* end confdefs.h. */
17043 /* Override any GCC internal prototype to avoid an error.
17044 Use char because int might match the return type of a GCC
17045 builtin and then its argument prototype would still apply. */
17049 char kstat_open ();
17053 return kstat_open ();
17058 rm -f conftest.$ac_objext conftest$ac_exeext
17059 if { (ac_try="$ac_link"
17060 case "(($ac_try" in
17061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17062 *) ac_try_echo=$ac_try;;
17064 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17065 (eval "$ac_link") 2>conftest.er1
17067 grep -v '^ *+' conftest.er1 >conftest.err
17069 cat conftest.err >&5
17070 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17071 (exit $ac_status); } && {
17072 test -z "$ac_c_werror_flag" ||
17073 test ! -s conftest.err
17074 } && test -s conftest$ac_exeext &&
17075 $as_test_x conftest$ac_exeext; then
17076 ac_cv_lib_kstat_kstat_open=yes
17078 echo "$as_me: failed program was
:" >&5
17079 sed 's/^/| /' conftest.$ac_ext >&5
17081 ac_cv_lib_kstat_kstat_open=no
17084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17085 conftest$ac_exeext conftest.$ac_ext
17086 LIBS=$ac_check_lib_save_LIBS
17088 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17089 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17090 if test $ac_cv_lib_kstat_kstat_open = yes; then
17091 cat >>confdefs.h <<_ACEOF
17092 #define HAVE_LIBKSTAT 1
17095 LIBS="-lkstat $LIBS"
17099 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17101 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17102 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17103 # to get the right answer into the cache.
17104 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17105 if test $ac_have_func = no; then
17106 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17107 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17108 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17109 echo $ECHO_N "(cached
) $ECHO_C" >&6
17111 ac_check_lib_save_LIBS=$LIBS
17113 cat >conftest.$ac_ext <<_ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17120 /* Override any GCC internal prototype to avoid an error.
17121 Use char because int might match the return type of a GCC
17122 builtin and then its argument prototype would still apply. */
17130 return elf_begin ();
17135 rm -f conftest.$ac_objext conftest$ac_exeext
17136 if { (ac_try="$ac_link"
17137 case "(($ac_try" in
17138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17139 *) ac_try_echo=$ac_try;;
17141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17142 (eval "$ac_link") 2>conftest.er1
17144 grep -v '^ *+' conftest.er1 >conftest.err
17146 cat conftest.err >&5
17147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17148 (exit $ac_status); } && {
17149 test -z "$ac_c_werror_flag" ||
17150 test ! -s conftest.err
17151 } && test -s conftest$ac_exeext &&
17152 $as_test_x conftest$ac_exeext; then
17153 ac_cv_lib_elf_elf_begin=yes
17155 echo "$as_me: failed program was
:" >&5
17156 sed 's/^/| /' conftest.$ac_ext >&5
17158 ac_cv_lib_elf_elf_begin=no
17161 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17162 conftest$ac_exeext conftest.$ac_ext
17163 LIBS=$ac_check_lib_save_LIBS
17165 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17166 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17167 if test $ac_cv_lib_elf_elf_begin = yes; then
17172 if test $ac_have_func = no; then
17173 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17174 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17175 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17176 echo $ECHO_N "(cached
) $ECHO_C" >&6
17178 ac_check_lib_save_LIBS=$LIBS
17180 cat >conftest.$ac_ext <<_ACEOF
17183 cat confdefs.h >>conftest.$ac_ext
17184 cat >>conftest.$ac_ext <<_ACEOF
17185 /* end confdefs.h. */
17187 /* Override any GCC internal prototype to avoid an error.
17188 Use char because int might match the return type of a GCC
17189 builtin and then its argument prototype would still apply. */
17197 return kvm_open ();
17202 rm -f conftest.$ac_objext conftest$ac_exeext
17203 if { (ac_try="$ac_link"
17204 case "(($ac_try" in
17205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17206 *) ac_try_echo=$ac_try;;
17208 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17209 (eval "$ac_link") 2>conftest.er1
17211 grep -v '^ *+' conftest.er1 >conftest.err
17213 cat conftest.err >&5
17214 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17215 (exit $ac_status); } && {
17216 test -z "$ac_c_werror_flag" ||
17217 test ! -s conftest.err
17218 } && test -s conftest$ac_exeext &&
17219 $as_test_x conftest$ac_exeext; then
17220 ac_cv_lib_kvm_kvm_open=yes
17222 echo "$as_me: failed program was
:" >&5
17223 sed 's/^/| /' conftest.$ac_ext >&5
17225 ac_cv_lib_kvm_kvm_open=no
17228 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17229 conftest$ac_exeext conftest.$ac_ext
17230 LIBS=$ac_check_lib_save_LIBS
17232 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17233 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17234 if test $ac_cv_lib_kvm_kvm_open = yes; then
17238 # Check for the 4.4BSD definition of getloadavg.
17239 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17240 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17241 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17242 echo $ECHO_N "(cached
) $ECHO_C" >&6
17244 ac_check_lib_save_LIBS=$LIBS
17245 LIBS="-lutil $LIBS"
17246 cat >conftest.$ac_ext <<_ACEOF
17249 cat confdefs.h >>conftest.$ac_ext
17250 cat >>conftest.$ac_ext <<_ACEOF
17251 /* end confdefs.h. */
17253 /* Override any GCC internal prototype to avoid an error.
17254 Use char because int might match the return type of a GCC
17255 builtin and then its argument prototype would still apply. */
17259 char getloadavg ();
17263 return getloadavg ();
17268 rm -f conftest.$ac_objext conftest$ac_exeext
17269 if { (ac_try="$ac_link"
17270 case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17274 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_link") 2>conftest.er1
17277 grep -v '^ *+' conftest.er1 >conftest.err
17279 cat conftest.err >&5
17280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17281 (exit $ac_status); } && {
17282 test -z "$ac_c_werror_flag" ||
17283 test ! -s conftest.err
17284 } && test -s conftest$ac_exeext &&
17285 $as_test_x conftest$ac_exeext; then
17286 ac_cv_lib_util_getloadavg=yes
17288 echo "$as_me: failed program was
:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17291 ac_cv_lib_util_getloadavg=no
17294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17295 conftest$ac_exeext conftest.$ac_ext
17296 LIBS=$ac_check_lib_save_LIBS
17298 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17299 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17300 if test $ac_cv_lib_util_getloadavg = yes; then
17301 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17306 if test $ac_have_func = no; then
17307 # There is a commonly available library for RS/6000 AIX.
17308 # Since it is not a standard part of AIX, it might be installed locally.
17309 ac_getloadavg_LIBS=$LIBS
17310 LIBS="-L/usr
/local
/lib
$LIBS"
17311 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17312 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17313 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17314 echo $ECHO_N "(cached
) $ECHO_C" >&6
17316 ac_check_lib_save_LIBS=$LIBS
17317 LIBS="-lgetloadavg $LIBS"
17318 cat >conftest.$ac_ext <<_ACEOF
17321 cat confdefs.h >>conftest.$ac_ext
17322 cat >>conftest.$ac_ext <<_ACEOF
17323 /* end confdefs.h. */
17325 /* Override any GCC internal prototype to avoid an error.
17326 Use char because int might match the return type of a GCC
17327 builtin and then its argument prototype would still apply. */
17331 char getloadavg ();
17335 return getloadavg ();
17340 rm -f conftest.$ac_objext conftest$ac_exeext
17341 if { (ac_try="$ac_link"
17342 case "(($ac_try" in
17343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_link") 2>conftest.er1
17349 grep -v '^ *+' conftest.er1 >conftest.err
17351 cat conftest.err >&5
17352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17353 (exit $ac_status); } && {
17354 test -z "$ac_c_werror_flag" ||
17355 test ! -s conftest.err
17356 } && test -s conftest$ac_exeext &&
17357 $as_test_x conftest$ac_exeext; then
17358 ac_cv_lib_getloadavg_getloadavg=yes
17360 echo "$as_me: failed program was
:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17363 ac_cv_lib_getloadavg_getloadavg=no
17366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17367 conftest$ac_exeext conftest.$ac_ext
17368 LIBS=$ac_check_lib_save_LIBS
17370 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17371 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17372 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17373 LIBS="-lgetloadavg $LIBS"
17375 LIBS=$ac_getloadavg_LIBS
17380 # Make sure it is really in the library, if we think we found it,
17381 # otherwise set up the replacement function.
17383 for ac_func in getloadavg
17385 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17386 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17387 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17388 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17389 echo $ECHO_N "(cached
) $ECHO_C" >&6
17391 cat >conftest.$ac_ext <<_ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h. */
17397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17399 #define $ac_func innocuous_$ac_func
17401 /* System header to define __stub macros and hopefully few prototypes,
17402 which can conflict with char $ac_func (); below.
17403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17404 <limits.h> exists even on freestanding compilers. */
17407 # include <limits.h>
17409 # include <assert.h>
17414 /* Override any GCC internal prototype to avoid an error.
17415 Use char because int might match the return type of a GCC
17416 builtin and then its argument prototype would still apply. */
17421 /* The GNU C library defines this for functions which it implements
17422 to always fail with ENOSYS. Some functions are actually named
17423 something starting with __ and the normal name is an alias. */
17424 #if defined __stub_$ac_func || defined __stub___$ac_func
17431 return $ac_func ();
17436 rm -f conftest.$ac_objext conftest$ac_exeext
17437 if { (ac_try="$ac_link"
17438 case "(($ac_try" in
17439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17440 *) ac_try_echo=$ac_try;;
17442 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17443 (eval "$ac_link") 2>conftest.er1
17445 grep -v '^ *+' conftest.er1 >conftest.err
17447 cat conftest.err >&5
17448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17449 (exit $ac_status); } && {
17450 test -z "$ac_c_werror_flag" ||
17451 test ! -s conftest.err
17452 } && test -s conftest$ac_exeext &&
17453 $as_test_x conftest$ac_exeext; then
17454 eval "$as_ac_var=yes"
17456 echo "$as_me: failed program was
:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17459 eval "$as_ac_var=no
"
17462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17463 conftest$ac_exeext conftest.$ac_ext
17465 ac_res=`eval echo '${'$as_ac_var'}'`
17466 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17467 echo "${ECHO_T}$ac_res" >&6; }
17468 if test `eval echo '${'$as_ac_var'}'` = yes; then
17469 cat >>confdefs.h <<_ACEOF
17470 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17474 case " $LIBOBJS " in
17475 *" getloadavg.
$ac_objext "* ) ;;
17476 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17481 cat >>confdefs.h <<\_ACEOF
17482 #define C_GETLOADAVG 1
17485 # Figure out what our getloadavg.c needs.
17487 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17488 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17489 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17490 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17491 echo $ECHO_N "(cached
) $ECHO_C" >&6
17493 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17494 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17496 # Is the header compilable?
17497 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17498 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17499 cat >conftest.$ac_ext <<_ACEOF
17502 cat confdefs.h >>conftest.$ac_ext
17503 cat >>conftest.$ac_ext <<_ACEOF
17504 /* end confdefs.h. */
17505 $ac_includes_default
17506 #include <sys/dg_sys_info.h>
17508 rm -f conftest.$ac_objext
17509 if { (ac_try="$ac_compile"
17510 case "(($ac_try" in
17511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17512 *) ac_try_echo=$ac_try;;
17514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17515 (eval "$ac_compile") 2>conftest.er1
17517 grep -v '^ *+' conftest.er1 >conftest.err
17519 cat conftest.err >&5
17520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17521 (exit $ac_status); } && {
17522 test -z "$ac_c_werror_flag" ||
17523 test ! -s conftest.err
17524 } && test -s conftest.$ac_objext; then
17525 ac_header_compiler=yes
17527 echo "$as_me: failed program was
:" >&5
17528 sed 's/^/| /' conftest.$ac_ext >&5
17530 ac_header_compiler=no
17533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17534 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17535 echo "${ECHO_T}$ac_header_compiler" >&6; }
17537 # Is the header present?
17538 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17539 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17540 cat >conftest.$ac_ext <<_ACEOF
17543 cat confdefs.h >>conftest.$ac_ext
17544 cat >>conftest.$ac_ext <<_ACEOF
17545 /* end confdefs.h. */
17546 #include <sys/dg_sys_info.h>
17548 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17549 case "(($ac_try" in
17550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17551 *) ac_try_echo=$ac_try;;
17553 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17554 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17556 grep -v '^ *+' conftest.er1 >conftest.err
17558 cat conftest.err >&5
17559 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17560 (exit $ac_status); } >/dev/null && {
17561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17562 test ! -s conftest.err
17564 ac_header_preproc=yes
17566 echo "$as_me: failed program was
:" >&5
17567 sed 's/^/| /' conftest.$ac_ext >&5
17569 ac_header_preproc=no
17572 rm -f conftest.err conftest.$ac_ext
17573 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17574 echo "${ECHO_T}$ac_header_preproc" >&6; }
17576 # So? What about this header?
17577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17579 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17580 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17581 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17582 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17583 ac_header_preproc=yes
17586 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17587 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17588 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17589 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17590 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17591 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17592 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17593 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17594 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17595 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17596 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17597 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17601 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17602 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17603 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17604 echo $ECHO_N "(cached
) $ECHO_C" >&6
17606 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17608 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17609 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17612 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17615 cat >>confdefs.h <<\_ACEOF
17620 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17621 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17622 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17623 echo $ECHO_N "(cached
) $ECHO_C" >&6
17625 ac_check_lib_save_LIBS=$LIBS
17627 cat >conftest.$ac_ext <<_ACEOF
17630 cat confdefs.h >>conftest.$ac_ext
17631 cat >>conftest.$ac_ext <<_ACEOF
17632 /* end confdefs.h. */
17634 /* Override any GCC internal prototype to avoid an error.
17635 Use char because int might match the return type of a GCC
17636 builtin and then its argument prototype would still apply. */
17640 char dg_sys_info ();
17644 return dg_sys_info ();
17649 rm -f conftest.$ac_objext conftest$ac_exeext
17650 if { (ac_try="$ac_link"
17651 case "(($ac_try" in
17652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17653 *) ac_try_echo=$ac_try;;
17655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17656 (eval "$ac_link") 2>conftest.er1
17658 grep -v '^ *+' conftest.er1 >conftest.err
17660 cat conftest.err >&5
17661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17662 (exit $ac_status); } && {
17663 test -z "$ac_c_werror_flag" ||
17664 test ! -s conftest.err
17665 } && test -s conftest$ac_exeext &&
17666 $as_test_x conftest$ac_exeext; then
17667 ac_cv_lib_dgc_dg_sys_info=yes
17669 echo "$as_me: failed program was
:" >&5
17670 sed 's/^/| /' conftest.$ac_ext >&5
17672 ac_cv_lib_dgc_dg_sys_info=no
17675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17676 conftest$ac_exeext conftest.$ac_ext
17677 LIBS=$ac_check_lib_save_LIBS
17679 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17680 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17681 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17682 cat >>confdefs.h <<_ACEOF
17683 #define HAVE_LIBDGC 1
17694 if test "${ac_cv_header_locale_h+set}" = set; then
17695 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17696 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17697 if test "${ac_cv_header_locale_h+set}" = set; then
17698 echo $ECHO_N "(cached
) $ECHO_C" >&6
17700 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17701 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17703 # Is the header compilable?
17704 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17705 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17706 cat >conftest.$ac_ext <<_ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712 $ac_includes_default
17713 #include <locale.h>
17715 rm -f conftest.$ac_objext
17716 if { (ac_try="$ac_compile"
17717 case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17721 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_compile") 2>conftest.er1
17724 grep -v '^ *+' conftest.er1 >conftest.err
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17728 (exit $ac_status); } && {
17729 test -z "$ac_c_werror_flag" ||
17730 test ! -s conftest.err
17731 } && test -s conftest.$ac_objext; then
17732 ac_header_compiler=yes
17734 echo "$as_me: failed program was
:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17737 ac_header_compiler=no
17740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17741 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17742 echo "${ECHO_T}$ac_header_compiler" >&6; }
17744 # Is the header present?
17745 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17746 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17747 cat >conftest.$ac_ext <<_ACEOF
17750 cat confdefs.h >>conftest.$ac_ext
17751 cat >>conftest.$ac_ext <<_ACEOF
17752 /* end confdefs.h. */
17753 #include <locale.h>
17755 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17756 case "(($ac_try" in
17757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17758 *) ac_try_echo=$ac_try;;
17760 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17761 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17763 grep -v '^ *+' conftest.er1 >conftest.err
17765 cat conftest.err >&5
17766 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17767 (exit $ac_status); } >/dev/null && {
17768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17769 test ! -s conftest.err
17771 ac_header_preproc=yes
17773 echo "$as_me: failed program was
:" >&5
17774 sed 's/^/| /' conftest.$ac_ext >&5
17776 ac_header_preproc=no
17779 rm -f conftest.err conftest.$ac_ext
17780 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17781 echo "${ECHO_T}$ac_header_preproc" >&6; }
17783 # So? What about this header?
17784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17786 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17787 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17788 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17789 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17790 ac_header_preproc=yes
17793 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17794 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17795 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17796 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17797 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17798 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17799 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17800 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17801 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17802 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17803 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17804 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17808 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17809 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17810 if test "${ac_cv_header_locale_h+set}" = set; then
17811 echo $ECHO_N "(cached
) $ECHO_C" >&6
17813 ac_cv_header_locale_h=$ac_header_preproc
17815 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17816 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17822 for ac_func in setlocale
17824 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17825 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17826 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17827 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17828 echo $ECHO_N "(cached
) $ECHO_C" >&6
17830 cat >conftest.$ac_ext <<_ACEOF
17833 cat confdefs.h >>conftest.$ac_ext
17834 cat >>conftest.$ac_ext <<_ACEOF
17835 /* end confdefs.h. */
17836 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17838 #define $ac_func innocuous_$ac_func
17840 /* System header to define __stub macros and hopefully few prototypes,
17841 which can conflict with char $ac_func (); below.
17842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17843 <limits.h> exists even on freestanding compilers. */
17846 # include <limits.h>
17848 # include <assert.h>
17853 /* Override any GCC internal prototype to avoid an error.
17854 Use char because int might match the return type of a GCC
17855 builtin and then its argument prototype would still apply. */
17860 /* The GNU C library defines this for functions which it implements
17861 to always fail with ENOSYS. Some functions are actually named
17862 something starting with __ and the normal name is an alias. */
17863 #if defined __stub_$ac_func || defined __stub___$ac_func
17870 return $ac_func ();
17875 rm -f conftest.$ac_objext conftest$ac_exeext
17876 if { (ac_try="$ac_link"
17877 case "(($ac_try" in
17878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879 *) ac_try_echo=$ac_try;;
17881 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17882 (eval "$ac_link") 2>conftest.er1
17884 grep -v '^ *+' conftest.er1 >conftest.err
17886 cat conftest.err >&5
17887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17888 (exit $ac_status); } && {
17889 test -z "$ac_c_werror_flag" ||
17890 test ! -s conftest.err
17891 } && test -s conftest$ac_exeext &&
17892 $as_test_x conftest$ac_exeext; then
17893 eval "$as_ac_var=yes"
17895 echo "$as_me: failed program was
:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17898 eval "$as_ac_var=no
"
17901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17902 conftest$ac_exeext conftest.$ac_ext
17904 ac_res=`eval echo '${'$as_ac_var'}'`
17905 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17906 echo "${ECHO_T}$ac_res" >&6; }
17907 if test `eval echo '${'$as_ac_var'}'` = yes; then
17908 cat >>confdefs.h <<_ACEOF
17909 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17916 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17917 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17918 # Irix 4.0.5F has the header but not the library.
17919 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17922 cat >>confdefs.h <<\_ACEOF
17928 if test $ac_have_func = no; then
17929 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17930 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17931 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17932 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17933 echo $ECHO_N "(cached
) $ECHO_C" >&6
17935 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17936 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17938 # Is the header compilable?
17939 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17940 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17941 cat >conftest.$ac_ext <<_ACEOF
17944 cat confdefs.h >>conftest.$ac_ext
17945 cat >>conftest.$ac_ext <<_ACEOF
17946 /* end confdefs.h. */
17947 $ac_includes_default
17948 #include <inq_stats/cpustats.h>
17950 rm -f conftest.$ac_objext
17951 if { (ac_try="$ac_compile"
17952 case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17956 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_compile") 2>conftest.er1
17959 grep -v '^ *+' conftest.er1 >conftest.err
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17963 (exit $ac_status); } && {
17964 test -z "$ac_c_werror_flag" ||
17965 test ! -s conftest.err
17966 } && test -s conftest.$ac_objext; then
17967 ac_header_compiler=yes
17969 echo "$as_me: failed program was
:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17972 ac_header_compiler=no
17975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17976 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17977 echo "${ECHO_T}$ac_header_compiler" >&6; }
17979 # Is the header present?
17980 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17981 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17982 cat >conftest.$ac_ext <<_ACEOF
17985 cat confdefs.h >>conftest.$ac_ext
17986 cat >>conftest.$ac_ext <<_ACEOF
17987 /* end confdefs.h. */
17988 #include <inq_stats/cpustats.h>
17990 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17991 case "(($ac_try" in
17992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17993 *) ac_try_echo=$ac_try;;
17995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17996 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17998 grep -v '^ *+' conftest.er1 >conftest.err
18000 cat conftest.err >&5
18001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18002 (exit $ac_status); } >/dev/null && {
18003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18004 test ! -s conftest.err
18006 ac_header_preproc=yes
18008 echo "$as_me: failed program was
:" >&5
18009 sed 's/^/| /' conftest.$ac_ext >&5
18011 ac_header_preproc=no
18014 rm -f conftest.err conftest.$ac_ext
18015 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18016 echo "${ECHO_T}$ac_header_preproc" >&6; }
18018 # So? What about this header?
18019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18021 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18022 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18023 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18024 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18025 ac_header_preproc=yes
18028 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18029 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18030 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18031 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18032 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18033 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18034 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18035 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18036 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18037 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18038 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18039 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18043 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18044 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18045 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18046 echo $ECHO_N "(cached
) $ECHO_C" >&6
18048 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18050 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18051 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18054 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18057 cat >>confdefs.h <<\_ACEOF
18062 cat >>confdefs.h <<\_ACEOF
18071 if test $ac_have_func = no; then
18072 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18073 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18074 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18075 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18076 echo $ECHO_N "(cached
) $ECHO_C" >&6
18078 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18079 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18081 # Is the header compilable?
18082 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18083 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18084 cat >conftest.$ac_ext <<_ACEOF
18087 cat confdefs.h >>conftest.$ac_ext
18088 cat >>conftest.$ac_ext <<_ACEOF
18089 /* end confdefs.h. */
18090 $ac_includes_default
18091 #include <sys/cpustats.h>
18093 rm -f conftest.$ac_objext
18094 if { (ac_try="$ac_compile"
18095 case "(($ac_try" in
18096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18097 *) ac_try_echo=$ac_try;;
18099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18100 (eval "$ac_compile") 2>conftest.er1
18102 grep -v '^ *+' conftest.er1 >conftest.err
18104 cat conftest.err >&5
18105 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18106 (exit $ac_status); } && {
18107 test -z "$ac_c_werror_flag" ||
18108 test ! -s conftest.err
18109 } && test -s conftest.$ac_objext; then
18110 ac_header_compiler=yes
18112 echo "$as_me: failed program was
:" >&5
18113 sed 's/^/| /' conftest.$ac_ext >&5
18115 ac_header_compiler=no
18118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18119 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18120 echo "${ECHO_T}$ac_header_compiler" >&6; }
18122 # Is the header present?
18123 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18124 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18125 cat >conftest.$ac_ext <<_ACEOF
18128 cat confdefs.h >>conftest.$ac_ext
18129 cat >>conftest.$ac_ext <<_ACEOF
18130 /* end confdefs.h. */
18131 #include <sys/cpustats.h>
18133 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18134 case "(($ac_try" in
18135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18136 *) ac_try_echo=$ac_try;;
18138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18139 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18141 grep -v '^ *+' conftest.er1 >conftest.err
18143 cat conftest.err >&5
18144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18145 (exit $ac_status); } >/dev/null && {
18146 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18147 test ! -s conftest.err
18149 ac_header_preproc=yes
18151 echo "$as_me: failed program was
:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18154 ac_header_preproc=no
18157 rm -f conftest.err conftest.$ac_ext
18158 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18159 echo "${ECHO_T}$ac_header_preproc" >&6; }
18161 # So? What about this header?
18162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18164 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18165 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18166 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18167 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18168 ac_header_preproc=yes
18171 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18172 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18173 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18174 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18175 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18176 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18177 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18178 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18179 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18180 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18181 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18182 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18186 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18187 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18188 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18189 echo $ECHO_N "(cached
) $ECHO_C" >&6
18191 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18193 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18194 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18197 if test $ac_cv_header_sys_cpustats_h = yes; then
18198 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18207 if test $ac_have_func = no; then
18209 for ac_header in mach/mach.h
18211 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18212 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18213 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18214 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18215 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18216 echo $ECHO_N "(cached
) $ECHO_C" >&6
18218 ac_res=`eval echo '${'$as_ac_Header'}'`
18219 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18220 echo "${ECHO_T}$ac_res" >&6; }
18222 # Is the header compilable?
18223 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18224 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18225 cat >conftest.$ac_ext <<_ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231 $ac_includes_default
18232 #include <$ac_header>
18234 rm -f conftest.$ac_objext
18235 if { (ac_try="$ac_compile"
18236 case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18240 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_compile") 2>conftest.er1
18243 grep -v '^ *+' conftest.er1 >conftest.err
18245 cat conftest.err >&5
18246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18247 (exit $ac_status); } && {
18248 test -z "$ac_c_werror_flag" ||
18249 test ! -s conftest.err
18250 } && test -s conftest.$ac_objext; then
18251 ac_header_compiler=yes
18253 echo "$as_me: failed program was
:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 ac_header_compiler=no
18259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18260 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18261 echo "${ECHO_T}$ac_header_compiler" >&6; }
18263 # Is the header present?
18264 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18265 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18266 cat >conftest.$ac_ext <<_ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 #include <$ac_header>
18274 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18275 case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18279 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18282 grep -v '^ *+' conftest.er1 >conftest.err
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18286 (exit $ac_status); } >/dev/null && {
18287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18288 test ! -s conftest.err
18290 ac_header_preproc=yes
18292 echo "$as_me: failed program was
:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18295 ac_header_preproc=no
18298 rm -f conftest.err conftest.$ac_ext
18299 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18300 echo "${ECHO_T}$ac_header_preproc" >&6; }
18302 # So? What about this header?
18303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18305 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18306 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18307 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18309 ac_header_preproc=yes
18312 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18313 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18314 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18315 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18316 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18317 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18318 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18319 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18320 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18322 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18323 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18327 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18328 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18329 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18330 echo $ECHO_N "(cached
) $ECHO_C" >&6
18332 eval "$as_ac_Header=\
$ac_header_preproc"
18334 ac_res=`eval echo '${'$as_ac_Header'}'`
18335 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18336 echo "${ECHO_T}$ac_res" >&6; }
18339 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18340 cat >>confdefs.h <<_ACEOF
18341 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18351 for ac_header in nlist.h
18353 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18354 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18355 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18356 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18357 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18358 echo $ECHO_N "(cached
) $ECHO_C" >&6
18360 ac_res=`eval echo '${'$as_ac_Header'}'`
18361 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18362 echo "${ECHO_T}$ac_res" >&6; }
18364 # Is the header compilable?
18365 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18366 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18367 cat >conftest.$ac_ext <<_ACEOF
18370 cat confdefs.h >>conftest.$ac_ext
18371 cat >>conftest.$ac_ext <<_ACEOF
18372 /* end confdefs.h. */
18373 $ac_includes_default
18374 #include <$ac_header>
18376 rm -f conftest.$ac_objext
18377 if { (ac_try="$ac_compile"
18378 case "(($ac_try" in
18379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18380 *) ac_try_echo=$ac_try;;
18382 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18383 (eval "$ac_compile") 2>conftest.er1
18385 grep -v '^ *+' conftest.er1 >conftest.err
18387 cat conftest.err >&5
18388 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18389 (exit $ac_status); } && {
18390 test -z "$ac_c_werror_flag" ||
18391 test ! -s conftest.err
18392 } && test -s conftest.$ac_objext; then
18393 ac_header_compiler=yes
18395 echo "$as_me: failed program was
:" >&5
18396 sed 's/^/| /' conftest.$ac_ext >&5
18398 ac_header_compiler=no
18401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18402 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18403 echo "${ECHO_T}$ac_header_compiler" >&6; }
18405 # Is the header present?
18406 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18407 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18408 cat >conftest.$ac_ext <<_ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18414 #include <$ac_header>
18416 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18417 case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18422 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18424 grep -v '^ *+' conftest.er1 >conftest.err
18426 cat conftest.err >&5
18427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18428 (exit $ac_status); } >/dev/null && {
18429 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18430 test ! -s conftest.err
18432 ac_header_preproc=yes
18434 echo "$as_me: failed program was
:" >&5
18435 sed 's/^/| /' conftest.$ac_ext >&5
18437 ac_header_preproc=no
18440 rm -f conftest.err conftest.$ac_ext
18441 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18442 echo "${ECHO_T}$ac_header_preproc" >&6; }
18444 # So? What about this header?
18445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18447 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18448 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18449 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18451 ac_header_preproc=yes
18454 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18455 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18456 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18457 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18458 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18459 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18460 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18461 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18462 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18464 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18465 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18469 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18470 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18471 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18472 echo $ECHO_N "(cached
) $ECHO_C" >&6
18474 eval "$as_ac_Header=\
$ac_header_preproc"
18476 ac_res=`eval echo '${'$as_ac_Header'}'`
18477 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18478 echo "${ECHO_T}$ac_res" >&6; }
18481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18482 cat >>confdefs.h <<_ACEOF
18483 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18485 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18486 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18487 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18488 echo $ECHO_N "(cached
) $ECHO_C" >&6
18490 cat >conftest.$ac_ext <<_ACEOF
18493 cat confdefs.h >>conftest.$ac_ext
18494 cat >>conftest.$ac_ext <<_ACEOF
18495 /* end confdefs.h. */
18501 static struct nlist ac_aggr;
18502 if (ac_aggr.n_un.n_name)
18508 rm -f conftest.$ac_objext
18509 if { (ac_try="$ac_compile"
18510 case "(($ac_try" in
18511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18512 *) ac_try_echo=$ac_try;;
18514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18515 (eval "$ac_compile") 2>conftest.er1
18517 grep -v '^ *+' conftest.er1 >conftest.err
18519 cat conftest.err >&5
18520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18521 (exit $ac_status); } && {
18522 test -z "$ac_c_werror_flag" ||
18523 test ! -s conftest.err
18524 } && test -s conftest.$ac_objext; then
18525 ac_cv_member_struct_nlist_n_un_n_name=yes
18527 echo "$as_me: failed program was
:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18530 cat >conftest.$ac_ext <<_ACEOF
18533 cat confdefs.h >>conftest.$ac_ext
18534 cat >>conftest.$ac_ext <<_ACEOF
18535 /* end confdefs.h. */
18541 static struct nlist ac_aggr;
18542 if (sizeof ac_aggr.n_un.n_name)
18548 rm -f conftest.$ac_objext
18549 if { (ac_try="$ac_compile"
18550 case "(($ac_try" in
18551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18552 *) ac_try_echo=$ac_try;;
18554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18555 (eval "$ac_compile") 2>conftest.er1
18557 grep -v '^ *+' conftest.er1 >conftest.err
18559 cat conftest.err >&5
18560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18561 (exit $ac_status); } && {
18562 test -z "$ac_c_werror_flag" ||
18563 test ! -s conftest.err
18564 } && test -s conftest.$ac_objext; then
18565 ac_cv_member_struct_nlist_n_un_n_name=yes
18567 echo "$as_me: failed program was
:" >&5
18568 sed 's/^/| /' conftest.$ac_ext >&5
18570 ac_cv_member_struct_nlist_n_un_n_name=no
18573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18578 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18579 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18580 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18582 cat >>confdefs.h <<_ACEOF
18583 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18587 cat >>confdefs.h <<\_ACEOF
18588 #define NLIST_NAME_UNION 1
18602 # Some definitions of getloadavg require that the program be installed setgid.
18603 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18604 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18605 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18606 echo $ECHO_N "(cached
) $ECHO_C" >&6
18608 cat >conftest.$ac_ext <<_ACEOF
18611 cat confdefs.h >>conftest.$ac_ext
18612 cat >>conftest.$ac_ext <<_ACEOF
18613 /* end confdefs.h. */
18614 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18615 #ifdef LDAV_PRIVILEGED
18616 Yowza Am I SETGID yet
18619 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18620 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18621 ac_cv_func_getloadavg_setgid=yes
18623 ac_cv_func_getloadavg_setgid=no
18628 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18629 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18630 if test $ac_cv_func_getloadavg_setgid = yes; then
18633 cat >>confdefs.h <<\_ACEOF
18634 #define GETLOADAVG_PRIVILEGED 1
18641 if test $ac_cv_func_getloadavg_setgid = yes; then
18642 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18643 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18644 if test "${ac_cv_group_kmem+set}" = set; then
18645 echo $ECHO_N "(cached
) $ECHO_C" >&6
18647 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18648 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18649 # If we got an error (system does not support symlinks), try without -L.
18650 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18651 ac_cv_group_kmem=`echo $ac_ls_output \
18652 | sed -ne 's/[ ][ ]*/ /g;
18653 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18657 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18658 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18659 KMEM_GROUP=$ac_cv_group_kmem
18661 if test "x
$ac_save_LIBS" = x; then
18662 GETLOADAVG_LIBS=$LIBS
18664 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18670 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18671 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18672 if test "${ac_cv_sys_largefile_source+set}" = set; then
18673 echo $ECHO_N "(cached
) $ECHO_C" >&6
18676 cat >conftest.$ac_ext <<_ACEOF
18679 cat confdefs.h >>conftest.$ac_ext
18680 cat >>conftest.$ac_ext <<_ACEOF
18681 /* end confdefs.h. */
18686 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18691 rm -f conftest.$ac_objext conftest$ac_exeext
18692 if { (ac_try="$ac_link"
18693 case "(($ac_try" in
18694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18695 *) ac_try_echo=$ac_try;;
18697 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18698 (eval "$ac_link") 2>conftest.er1
18700 grep -v '^ *+' conftest.er1 >conftest.err
18702 cat conftest.err >&5
18703 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18704 (exit $ac_status); } && {
18705 test -z "$ac_c_werror_flag" ||
18706 test ! -s conftest.err
18707 } && test -s conftest$ac_exeext &&
18708 $as_test_x conftest$ac_exeext; then
18709 ac_cv_sys_largefile_source=no; break
18711 echo "$as_me: failed program was
:" >&5
18712 sed 's/^/| /' conftest.$ac_ext >&5
18717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18718 conftest$ac_exeext conftest.$ac_ext
18719 cat >conftest.$ac_ext <<_ACEOF
18722 cat confdefs.h >>conftest.$ac_ext
18723 cat >>conftest.$ac_ext <<_ACEOF
18724 /* end confdefs.h. */
18725 #define _LARGEFILE_SOURCE 1
18730 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18735 rm -f conftest.$ac_objext conftest$ac_exeext
18736 if { (ac_try="$ac_link"
18737 case "(($ac_try" in
18738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18739 *) ac_try_echo=$ac_try;;
18741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18742 (eval "$ac_link") 2>conftest.er1
18744 grep -v '^ *+' conftest.er1 >conftest.err
18746 cat conftest.err >&5
18747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18748 (exit $ac_status); } && {
18749 test -z "$ac_c_werror_flag" ||
18750 test ! -s conftest.err
18751 } && test -s conftest$ac_exeext &&
18752 $as_test_x conftest$ac_exeext; then
18753 ac_cv_sys_largefile_source=1; break
18755 echo "$as_me: failed program was
:" >&5
18756 sed 's/^/| /' conftest.$ac_ext >&5
18761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18762 conftest$ac_exeext conftest.$ac_ext
18763 ac_cv_sys_largefile_source=unknown
18767 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18768 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18769 case $ac_cv_sys_largefile_source in #(
18772 cat >>confdefs.h <<_ACEOF
18773 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18779 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18780 # in glibc 2.1.3, but that breaks too many other things.
18781 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18782 if test $ac_cv_sys_largefile_source != unknown; then
18784 cat >>confdefs.h <<\_ACEOF
18785 #define HAVE_FSEEKO 1
18791 # Configure getopt.
18792 # getopt.m4 serial 10
18794 # The getopt module assume you want GNU getopt, with getopt_long etc,
18795 # rather than vanilla POSIX getopt. This means your your code should
18796 # always include <getopt.h> for the getopt prototypes.
18808 # Prerequisites of lib/getopt*.
18815 for ac_header in getopt.h
18817 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18818 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18819 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18820 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18821 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18822 echo $ECHO_N "(cached
) $ECHO_C" >&6
18824 ac_res=`eval echo '${'$as_ac_Header'}'`
18825 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18826 echo "${ECHO_T}$ac_res" >&6; }
18828 # Is the header compilable?
18829 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18830 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18831 cat >conftest.$ac_ext <<_ACEOF
18834 cat confdefs.h >>conftest.$ac_ext
18835 cat >>conftest.$ac_ext <<_ACEOF
18836 /* end confdefs.h. */
18837 $ac_includes_default
18838 #include <$ac_header>
18840 rm -f conftest.$ac_objext
18841 if { (ac_try="$ac_compile"
18842 case "(($ac_try" in
18843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18844 *) ac_try_echo=$ac_try;;
18846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18847 (eval "$ac_compile") 2>conftest.er1
18849 grep -v '^ *+' conftest.er1 >conftest.err
18851 cat conftest.err >&5
18852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18853 (exit $ac_status); } && {
18854 test -z "$ac_c_werror_flag" ||
18855 test ! -s conftest.err
18856 } && test -s conftest.$ac_objext; then
18857 ac_header_compiler=yes
18859 echo "$as_me: failed program was
:" >&5
18860 sed 's/^/| /' conftest.$ac_ext >&5
18862 ac_header_compiler=no
18865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18866 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18867 echo "${ECHO_T}$ac_header_compiler" >&6; }
18869 # Is the header present?
18870 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18871 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18872 cat >conftest.$ac_ext <<_ACEOF
18875 cat confdefs.h >>conftest.$ac_ext
18876 cat >>conftest.$ac_ext <<_ACEOF
18877 /* end confdefs.h. */
18878 #include <$ac_header>
18880 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18881 case "(($ac_try" in
18882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18883 *) ac_try_echo=$ac_try;;
18885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18886 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18888 grep -v '^ *+' conftest.er1 >conftest.err
18890 cat conftest.err >&5
18891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18892 (exit $ac_status); } >/dev/null && {
18893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18894 test ! -s conftest.err
18896 ac_header_preproc=yes
18898 echo "$as_me: failed program was
:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18901 ac_header_preproc=no
18904 rm -f conftest.err conftest.$ac_ext
18905 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18906 echo "${ECHO_T}$ac_header_preproc" >&6; }
18908 # So? What about this header?
18909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18911 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18912 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18913 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18915 ac_header_preproc=yes
18918 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18919 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18920 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18921 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18922 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18923 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18924 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18925 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18926 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18928 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18929 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18933 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18934 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18935 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18936 echo $ECHO_N "(cached
) $ECHO_C" >&6
18938 eval "$as_ac_Header=\
$ac_header_preproc"
18940 ac_res=`eval echo '${'$as_ac_Header'}'`
18941 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18942 echo "${ECHO_T}$ac_res" >&6; }
18945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18946 cat >>confdefs.h <<_ACEOF
18947 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18956 if test -z "$GETOPT_H"; then
18958 for ac_func in getopt_long_only
18960 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18961 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18962 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18963 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18964 echo $ECHO_N "(cached
) $ECHO_C" >&6
18966 cat >conftest.$ac_ext <<_ACEOF
18969 cat confdefs.h >>conftest.$ac_ext
18970 cat >>conftest.$ac_ext <<_ACEOF
18971 /* end confdefs.h. */
18972 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18973 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18974 #define $ac_func innocuous_$ac_func
18976 /* System header to define __stub macros and hopefully few prototypes,
18977 which can conflict with char $ac_func (); below.
18978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18979 <limits.h> exists even on freestanding compilers. */
18982 # include <limits.h>
18984 # include <assert.h>
18989 /* Override any GCC internal prototype to avoid an error.
18990 Use char because int might match the return type of a GCC
18991 builtin and then its argument prototype would still apply. */
18996 /* The GNU C library defines this for functions which it implements
18997 to always fail with ENOSYS. Some functions are actually named
18998 something starting with __ and the normal name is an alias. */
18999 #if defined __stub_$ac_func || defined __stub___$ac_func
19006 return $ac_func ();
19011 rm -f conftest.$ac_objext conftest$ac_exeext
19012 if { (ac_try="$ac_link"
19013 case "(($ac_try" in
19014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19015 *) ac_try_echo=$ac_try;;
19017 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19018 (eval "$ac_link") 2>conftest.er1
19020 grep -v '^ *+' conftest.er1 >conftest.err
19022 cat conftest.err >&5
19023 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19024 (exit $ac_status); } && {
19025 test -z "$ac_c_werror_flag" ||
19026 test ! -s conftest.err
19027 } && test -s conftest$ac_exeext &&
19028 $as_test_x conftest$ac_exeext; then
19029 eval "$as_ac_var=yes"
19031 echo "$as_me: failed program was
:" >&5
19032 sed 's/^/| /' conftest.$ac_ext >&5
19034 eval "$as_ac_var=no
"
19037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19038 conftest$ac_exeext conftest.$ac_ext
19040 ac_res=`eval echo '${'$as_ac_var'}'`
19041 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19042 echo "${ECHO_T}$ac_res" >&6; }
19043 if test `eval echo '${'$as_ac_var'}'` = yes; then
19044 cat >>confdefs.h <<_ACEOF
19045 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19055 if test -z "$GETOPT_H"; then
19056 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19057 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19058 if test "${ac_cv_have_decl_optreset+set}" = set; then
19059 echo $ECHO_N "(cached
) $ECHO_C" >&6
19061 cat >conftest.$ac_ext <<_ACEOF
19064 cat confdefs.h >>conftest.$ac_ext
19065 cat >>conftest.$ac_ext <<_ACEOF
19066 /* end confdefs.h. */
19067 #include <getopt.h>
19080 rm -f conftest.$ac_objext
19081 if { (ac_try="$ac_compile"
19082 case "(($ac_try" in
19083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19084 *) ac_try_echo=$ac_try;;
19086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19087 (eval "$ac_compile") 2>conftest.er1
19089 grep -v '^ *+' conftest.er1 >conftest.err
19091 cat conftest.err >&5
19092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19093 (exit $ac_status); } && {
19094 test -z "$ac_c_werror_flag" ||
19095 test ! -s conftest.err
19096 } && test -s conftest.$ac_objext; then
19097 ac_cv_have_decl_optreset=yes
19099 echo "$as_me: failed program was
:" >&5
19100 sed 's/^/| /' conftest.$ac_ext >&5
19102 ac_cv_have_decl_optreset=no
19105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19107 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19108 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19109 if test $ac_cv_have_decl_optreset = yes; then
19115 if test -z "$GETOPT_H"; then
19116 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19117 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19118 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19119 echo $ECHO_N "(cached
) $ECHO_C" >&6
19121 if test "$cross_compiling" = yes; then
19122 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19123 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19124 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19125 echo $ECHO_N "(cached
) $ECHO_C" >&6
19127 cat >conftest.$ac_ext <<_ACEOF
19130 cat confdefs.h >>conftest.$ac_ext
19131 cat >>conftest.$ac_ext <<_ACEOF
19132 /* end confdefs.h. */
19133 #include <getopt.h>
19138 #ifndef getopt_clip
19139 (void) getopt_clip;
19146 rm -f conftest.$ac_objext
19147 if { (ac_try="$ac_compile"
19148 case "(($ac_try" in
19149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19150 *) ac_try_echo=$ac_try;;
19152 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19153 (eval "$ac_compile") 2>conftest.er1
19155 grep -v '^ *+' conftest.er1 >conftest.err
19157 cat conftest.err >&5
19158 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19159 (exit $ac_status); } && {
19160 test -z "$ac_c_werror_flag" ||
19161 test ! -s conftest.err
19162 } && test -s conftest.$ac_objext; then
19163 ac_cv_have_decl_getopt_clip=yes
19165 echo "$as_me: failed program was
:" >&5
19166 sed 's/^/| /' conftest.$ac_ext >&5
19168 ac_cv_have_decl_getopt_clip=no
19171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19173 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19174 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19175 if test $ac_cv_have_decl_getopt_clip = yes; then
19176 gl_cv_func_gnu_getopt=no
19178 gl_cv_func_gnu_getopt=yes
19182 cat >conftest.$ac_ext <<_ACEOF
19185 cat confdefs.h >>conftest.$ac_ext
19186 cat >>conftest.$ac_ext <<_ACEOF
19187 /* end confdefs.h. */
19188 #include <getopt.h>
19194 myargv[0] = "conftest
";
19197 return getopt (2, myargv, "+a
") != '?';
19203 rm -f conftest$ac_exeext
19204 if { (ac_try="$ac_link"
19205 case "(($ac_try" in
19206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19207 *) ac_try_echo=$ac_try;;
19209 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19210 (eval "$ac_link") 2>&5
19212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19213 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19214 { (case "(($ac_try" in
19215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19216 *) ac_try_echo=$ac_try;;
19218 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19219 (eval "$ac_try") 2>&5
19221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19222 (exit $ac_status); }; }; then
19223 gl_cv_func_gnu_getopt=yes
19225 echo "$as_me: program exited with status
$ac_status" >&5
19226 echo "$as_me: failed program was
:" >&5
19227 sed 's/^/| /' conftest.$ac_ext >&5
19229 ( exit $ac_status )
19230 gl_cv_func_gnu_getopt=no
19232 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19237 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19238 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19239 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19246 if test -n "$GETOPT_H"; then
19251 cat >>confdefs.h <<\_ACEOF
19252 #define __GETOPT_PREFIX rpl_
19258 GETOPTOBJS='getopt.o getopt1.o'
19265 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19266 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19267 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19268 echo $ECHO_N "(cached
) $ECHO_C" >&6
19270 # Use it with a single arg.
19271 cat >conftest.$ac_ext <<_ACEOF
19274 cat confdefs.h >>conftest.$ac_ext
19275 cat >>conftest.$ac_ext <<_ACEOF
19276 /* end confdefs.h. */
19277 $ac_includes_default
19286 rm -f conftest.$ac_objext
19287 if { (ac_try="$ac_compile"
19288 case "(($ac_try" in
19289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19290 *) ac_try_echo=$ac_try;;
19292 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19293 (eval "$ac_compile") 2>conftest.er1
19295 grep -v '^ *+' conftest.er1 >conftest.err
19297 cat conftest.err >&5
19298 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19299 (exit $ac_status); } && {
19300 test -z "$ac_c_werror_flag" ||
19301 test ! -s conftest.err
19302 } && test -s conftest.$ac_objext; then
19303 ac_cv_func_getpgrp_void=no
19305 echo "$as_me: failed program was
:" >&5
19306 sed 's/^/| /' conftest.$ac_ext >&5
19308 ac_cv_func_getpgrp_void=yes
19311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19314 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19315 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19316 if test $ac_cv_func_getpgrp_void = yes; then
19318 cat >>confdefs.h <<\_ACEOF
19319 #define GETPGRP_VOID 1
19326 for ac_func in strftime
19328 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19329 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19330 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19331 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19332 echo $ECHO_N "(cached
) $ECHO_C" >&6
19334 cat >conftest.$ac_ext <<_ACEOF
19337 cat confdefs.h >>conftest.$ac_ext
19338 cat >>conftest.$ac_ext <<_ACEOF
19339 /* end confdefs.h. */
19340 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19342 #define $ac_func innocuous_$ac_func
19344 /* System header to define __stub macros and hopefully few prototypes,
19345 which can conflict with char $ac_func (); below.
19346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19347 <limits.h> exists even on freestanding compilers. */
19350 # include <limits.h>
19352 # include <assert.h>
19357 /* Override any GCC internal prototype to avoid an error.
19358 Use char because int might match the return type of a GCC
19359 builtin and then its argument prototype would still apply. */
19364 /* The GNU C library defines this for functions which it implements
19365 to always fail with ENOSYS. Some functions are actually named
19366 something starting with __ and the normal name is an alias. */
19367 #if defined __stub_$ac_func || defined __stub___$ac_func
19374 return $ac_func ();
19379 rm -f conftest.$ac_objext conftest$ac_exeext
19380 if { (ac_try="$ac_link"
19381 case "(($ac_try" in
19382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19383 *) ac_try_echo=$ac_try;;
19385 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19386 (eval "$ac_link") 2>conftest.er1
19388 grep -v '^ *+' conftest.er1 >conftest.err
19390 cat conftest.err >&5
19391 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19392 (exit $ac_status); } && {
19393 test -z "$ac_c_werror_flag" ||
19394 test ! -s conftest.err
19395 } && test -s conftest$ac_exeext &&
19396 $as_test_x conftest$ac_exeext; then
19397 eval "$as_ac_var=yes"
19399 echo "$as_me: failed program was
:" >&5
19400 sed 's/^/| /' conftest.$ac_ext >&5
19402 eval "$as_ac_var=no
"
19405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19406 conftest$ac_exeext conftest.$ac_ext
19408 ac_res=`eval echo '${'$as_ac_var'}'`
19409 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19410 echo "${ECHO_T}$ac_res" >&6; }
19411 if test `eval echo '${'$as_ac_var'}'` = yes; then
19412 cat >>confdefs.h <<_ACEOF
19413 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19417 # strftime is in -lintl on SCO UNIX.
19418 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19419 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19420 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19421 echo $ECHO_N "(cached
) $ECHO_C" >&6
19423 ac_check_lib_save_LIBS=$LIBS
19424 LIBS="-lintl $LIBS"
19425 cat >conftest.$ac_ext <<_ACEOF
19428 cat confdefs.h >>conftest.$ac_ext
19429 cat >>conftest.$ac_ext <<_ACEOF
19430 /* end confdefs.h. */
19432 /* Override any GCC internal prototype to avoid an error.
19433 Use char because int might match the return type of a GCC
19434 builtin and then its argument prototype would still apply. */
19442 return strftime ();
19447 rm -f conftest.$ac_objext conftest$ac_exeext
19448 if { (ac_try="$ac_link"
19449 case "(($ac_try" in
19450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19451 *) ac_try_echo=$ac_try;;
19453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19454 (eval "$ac_link") 2>conftest.er1
19456 grep -v '^ *+' conftest.er1 >conftest.err
19458 cat conftest.err >&5
19459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19460 (exit $ac_status); } && {
19461 test -z "$ac_c_werror_flag" ||
19462 test ! -s conftest.err
19463 } && test -s conftest$ac_exeext &&
19464 $as_test_x conftest$ac_exeext; then
19465 ac_cv_lib_intl_strftime=yes
19467 echo "$as_me: failed program was
:" >&5
19468 sed 's/^/| /' conftest.$ac_ext >&5
19470 ac_cv_lib_intl_strftime=no
19473 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19474 conftest$ac_exeext conftest.$ac_ext
19475 LIBS=$ac_check_lib_save_LIBS
19477 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19478 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19479 if test $ac_cv_lib_intl_strftime = yes; then
19480 cat >>confdefs.h <<\_ACEOF
19481 #define HAVE_STRFTIME 1
19484 LIBS="-lintl $LIBS"
19493 for ac_func in grantpt
19495 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19496 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19497 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19498 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19499 echo $ECHO_N "(cached
) $ECHO_C" >&6
19501 cat >conftest.$ac_ext <<_ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19509 #define $ac_func innocuous_$ac_func
19511 /* System header to define __stub macros and hopefully few prototypes,
19512 which can conflict with char $ac_func (); below.
19513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19514 <limits.h> exists even on freestanding compilers. */
19517 # include <limits.h>
19519 # include <assert.h>
19524 /* Override any GCC internal prototype to avoid an error.
19525 Use char because int might match the return type of a GCC
19526 builtin and then its argument prototype would still apply. */
19531 /* The GNU C library defines this for functions which it implements
19532 to always fail with ENOSYS. Some functions are actually named
19533 something starting with __ and the normal name is an alias. */
19534 #if defined __stub_$ac_func || defined __stub___$ac_func
19541 return $ac_func ();
19546 rm -f conftest.$ac_objext conftest$ac_exeext
19547 if { (ac_try="$ac_link"
19548 case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_link") 2>conftest.er1
19555 grep -v '^ *+' conftest.er1 >conftest.err
19557 cat conftest.err >&5
19558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19559 (exit $ac_status); } && {
19560 test -z "$ac_c_werror_flag" ||
19561 test ! -s conftest.err
19562 } && test -s conftest$ac_exeext &&
19563 $as_test_x conftest$ac_exeext; then
19564 eval "$as_ac_var=yes"
19566 echo "$as_me: failed program was
:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 eval "$as_ac_var=no
"
19572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19573 conftest$ac_exeext conftest.$ac_ext
19575 ac_res=`eval echo '${'$as_ac_var'}'`
19576 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19577 echo "${ECHO_T}$ac_res" >&6; }
19578 if test `eval echo '${'$as_ac_var'}'` = yes; then
19579 cat >>confdefs.h <<_ACEOF
19580 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19587 # PTY-related GNU extensions.
19589 for ac_func in getpt
19591 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19592 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19593 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19594 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19595 echo $ECHO_N "(cached
) $ECHO_C" >&6
19597 cat >conftest.$ac_ext <<_ACEOF
19600 cat confdefs.h >>conftest.$ac_ext
19601 cat >>conftest.$ac_ext <<_ACEOF
19602 /* end confdefs.h. */
19603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19605 #define $ac_func innocuous_$ac_func
19607 /* System header to define __stub macros and hopefully few prototypes,
19608 which can conflict with char $ac_func (); below.
19609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19610 <limits.h> exists even on freestanding compilers. */
19613 # include <limits.h>
19615 # include <assert.h>
19620 /* Override any GCC internal prototype to avoid an error.
19621 Use char because int might match the return type of a GCC
19622 builtin and then its argument prototype would still apply. */
19627 /* The GNU C library defines this for functions which it implements
19628 to always fail with ENOSYS. Some functions are actually named
19629 something starting with __ and the normal name is an alias. */
19630 #if defined __stub_$ac_func || defined __stub___$ac_func
19637 return $ac_func ();
19642 rm -f conftest.$ac_objext conftest$ac_exeext
19643 if { (ac_try="$ac_link"
19644 case "(($ac_try" in
19645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19646 *) ac_try_echo=$ac_try;;
19648 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19649 (eval "$ac_link") 2>conftest.er1
19651 grep -v '^ *+' conftest.er1 >conftest.err
19653 cat conftest.err >&5
19654 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19655 (exit $ac_status); } && {
19656 test -z "$ac_c_werror_flag" ||
19657 test ! -s conftest.err
19658 } && test -s conftest$ac_exeext &&
19659 $as_test_x conftest$ac_exeext; then
19660 eval "$as_ac_var=yes"
19662 echo "$as_me: failed program was
:" >&5
19663 sed 's/^/| /' conftest.$ac_ext >&5
19665 eval "$as_ac_var=no
"
19668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19669 conftest$ac_exeext conftest.$ac_ext
19671 ac_res=`eval echo '${'$as_ac_var'}'`
19672 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19673 echo "${ECHO_T}$ac_res" >&6; }
19674 if test `eval echo '${'$as_ac_var'}'` = yes; then
19675 cat >>confdefs.h <<_ACEOF
19676 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19683 # Check this now, so that we will NOT find the above functions in ncurses.
19684 # That is because we have not set up to link ncurses in lib-src.
19685 # It's better to believe a function is not available
19686 # than to expect to find it in ncurses.
19688 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19689 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19690 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19691 echo $ECHO_N "(cached
) $ECHO_C" >&6
19693 ac_check_lib_save_LIBS=$LIBS
19694 LIBS="-lncurses $LIBS"
19695 cat >conftest.$ac_ext <<_ACEOF
19698 cat confdefs.h >>conftest.$ac_ext
19699 cat >>conftest.$ac_ext <<_ACEOF
19700 /* end confdefs.h. */
19702 /* Override any GCC internal prototype to avoid an error.
19703 Use char because int might match the return type of a GCC
19704 builtin and then its argument prototype would still apply. */
19717 rm -f conftest.$ac_objext conftest$ac_exeext
19718 if { (ac_try="$ac_link"
19719 case "(($ac_try" in
19720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19721 *) ac_try_echo=$ac_try;;
19723 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19724 (eval "$ac_link") 2>conftest.er1
19726 grep -v '^ *+' conftest.er1 >conftest.err
19728 cat conftest.err >&5
19729 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19730 (exit $ac_status); } && {
19731 test -z "$ac_c_werror_flag" ||
19732 test ! -s conftest.err
19733 } && test -s conftest$ac_exeext &&
19734 $as_test_x conftest$ac_exeext; then
19735 ac_cv_lib_ncurses_tparm=yes
19737 echo "$as_me: failed program was
:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19740 ac_cv_lib_ncurses_tparm=no
19743 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19744 conftest$ac_exeext conftest.$ac_ext
19745 LIBS=$ac_check_lib_save_LIBS
19747 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19748 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19749 if test $ac_cv_lib_ncurses_tparm = yes; then
19750 cat >>confdefs.h <<_ACEOF
19751 #define HAVE_LIBNCURSES 1
19754 LIBS="-lncurses $LIBS"
19759 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19762 cat >conftest.$ac_ext <<_ACEOF
19765 cat confdefs.h >>conftest.$ac_ext
19766 cat >>conftest.$ac_ext <<_ACEOF
19767 /* end confdefs.h. */
19768 #include <netinet/in.h>
19769 #include <arpa/nameser.h>
19770 #include <resolv.h>
19779 rm -f conftest.$ac_objext conftest$ac_exeext
19780 if { (ac_try="$ac_link"
19781 case "(($ac_try" in
19782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19783 *) ac_try_echo=$ac_try;;
19785 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19786 (eval "$ac_link") 2>conftest.er1
19788 grep -v '^ *+' conftest.er1 >conftest.err
19790 cat conftest.err >&5
19791 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19792 (exit $ac_status); } && {
19793 test -z "$ac_c_werror_flag" ||
19794 test ! -s conftest.err
19795 } && test -s conftest$ac_exeext &&
19796 $as_test_x conftest$ac_exeext; then
19799 echo "$as_me: failed program was
:" >&5
19800 sed 's/^/| /' conftest.$ac_ext >&5
19805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19806 conftest$ac_exeext conftest.$ac_ext
19807 if test "$have_res_init" = no; then
19809 LIBS="$LIBS -lresolv"
19810 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19811 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19812 cat >conftest.$ac_ext <<_ACEOF
19815 cat confdefs.h >>conftest.$ac_ext
19816 cat >>conftest.$ac_ext <<_ACEOF
19817 /* end confdefs.h. */
19818 #include <netinet/in.h>
19819 #include <arpa/nameser.h>
19820 #include <resolv.h>
19829 rm -f conftest.$ac_objext conftest$ac_exeext
19830 if { (ac_try="$ac_link"
19831 case "(($ac_try" in
19832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19833 *) ac_try_echo=$ac_try;;
19835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19836 (eval "$ac_link") 2>conftest.er1
19838 grep -v '^ *+' conftest.er1 >conftest.err
19840 cat conftest.err >&5
19841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19842 (exit $ac_status); } && {
19843 test -z "$ac_c_werror_flag" ||
19844 test ! -s conftest.err
19845 } && test -s conftest$ac_exeext &&
19846 $as_test_x conftest$ac_exeext; then
19849 echo "$as_me: failed program was
:" >&5
19850 sed 's/^/| /' conftest.$ac_ext >&5
19855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19856 conftest$ac_exeext conftest.$ac_ext
19857 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19858 echo "${ECHO_T}$have_res_init" >&6; }
19859 if test "$have_res_init" = yes ; then
19865 if test "$have_res_init" = yes; then
19867 cat >>confdefs.h <<\_ACEOF
19868 #define HAVE_RES_INIT 1
19873 # Do we need the Hesiod library to provide the support routines?
19874 if test "$with_hesiod" != no ; then
19875 # Don't set $LIBS here -- see comments above.
19876 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19877 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19878 if test "${ac_cv_func_res_send+set}" = set; then
19879 echo $ECHO_N "(cached
) $ECHO_C" >&6
19881 cat >conftest.$ac_ext <<_ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19887 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19889 #define res_send innocuous_res_send
19891 /* System header to define __stub macros and hopefully few prototypes,
19892 which can conflict with char res_send (); below.
19893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19894 <limits.h> exists even on freestanding compilers. */
19897 # include <limits.h>
19899 # include <assert.h>
19904 /* Override any GCC internal prototype to avoid an error.
19905 Use char because int might match the return type of a GCC
19906 builtin and then its argument prototype would still apply. */
19911 /* The GNU C library defines this for functions which it implements
19912 to always fail with ENOSYS. Some functions are actually named
19913 something starting with __ and the normal name is an alias. */
19914 #if defined __stub_res_send || defined __stub___res_send
19921 return res_send ();
19926 rm -f conftest.$ac_objext conftest$ac_exeext
19927 if { (ac_try="$ac_link"
19928 case "(($ac_try" in
19929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930 *) ac_try_echo=$ac_try;;
19932 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19933 (eval "$ac_link") 2>conftest.er1
19935 grep -v '^ *+' conftest.er1 >conftest.err
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19939 (exit $ac_status); } && {
19940 test -z "$ac_c_werror_flag" ||
19941 test ! -s conftest.err
19942 } && test -s conftest$ac_exeext &&
19943 $as_test_x conftest$ac_exeext; then
19944 ac_cv_func_res_send=yes
19946 echo "$as_me: failed program was
:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19949 ac_cv_func_res_send=no
19952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19953 conftest$ac_exeext conftest.$ac_ext
19955 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19956 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19957 if test $ac_cv_func_res_send = yes; then
19960 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19961 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19962 if test "${ac_cv_func___res_send+set}" = set; then
19963 echo $ECHO_N "(cached
) $ECHO_C" >&6
19965 cat >conftest.$ac_ext <<_ACEOF
19968 cat confdefs.h >>conftest.$ac_ext
19969 cat >>conftest.$ac_ext <<_ACEOF
19970 /* end confdefs.h. */
19971 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19972 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19973 #define __res_send innocuous___res_send
19975 /* System header to define __stub macros and hopefully few prototypes,
19976 which can conflict with char __res_send (); below.
19977 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19978 <limits.h> exists even on freestanding compilers. */
19981 # include <limits.h>
19983 # include <assert.h>
19988 /* Override any GCC internal prototype to avoid an error.
19989 Use char because int might match the return type of a GCC
19990 builtin and then its argument prototype would still apply. */
19994 char __res_send ();
19995 /* The GNU C library defines this for functions which it implements
19996 to always fail with ENOSYS. Some functions are actually named
19997 something starting with __ and the normal name is an alias. */
19998 #if defined __stub___res_send || defined __stub_____res_send
20005 return __res_send ();
20010 rm -f conftest.$ac_objext conftest$ac_exeext
20011 if { (ac_try="$ac_link"
20012 case "(($ac_try" in
20013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20014 *) ac_try_echo=$ac_try;;
20016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20017 (eval "$ac_link") 2>conftest.er1
20019 grep -v '^ *+' conftest.er1 >conftest.err
20021 cat conftest.err >&5
20022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20023 (exit $ac_status); } && {
20024 test -z "$ac_c_werror_flag" ||
20025 test ! -s conftest.err
20026 } && test -s conftest$ac_exeext &&
20027 $as_test_x conftest$ac_exeext; then
20028 ac_cv_func___res_send=yes
20030 echo "$as_me: failed program was
:" >&5
20031 sed 's/^/| /' conftest.$ac_ext >&5
20033 ac_cv_func___res_send=no
20036 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20037 conftest$ac_exeext conftest.$ac_ext
20039 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20040 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20041 if test $ac_cv_func___res_send = yes; then
20044 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20045 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20046 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20047 echo $ECHO_N "(cached
) $ECHO_C" >&6
20049 ac_check_lib_save_LIBS=$LIBS
20050 LIBS="-lresolv $LIBS"
20051 cat >conftest.$ac_ext <<_ACEOF
20054 cat confdefs.h >>conftest.$ac_ext
20055 cat >>conftest.$ac_ext <<_ACEOF
20056 /* end confdefs.h. */
20058 /* Override any GCC internal prototype to avoid an error.
20059 Use char because int might match the return type of a GCC
20060 builtin and then its argument prototype would still apply. */
20068 return res_send ();
20073 rm -f conftest.$ac_objext conftest$ac_exeext
20074 if { (ac_try="$ac_link"
20075 case "(($ac_try" in
20076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20077 *) ac_try_echo=$ac_try;;
20079 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20080 (eval "$ac_link") 2>conftest.er1
20082 grep -v '^ *+' conftest.er1 >conftest.err
20084 cat conftest.err >&5
20085 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20086 (exit $ac_status); } && {
20087 test -z "$ac_c_werror_flag" ||
20088 test ! -s conftest.err
20089 } && test -s conftest$ac_exeext &&
20090 $as_test_x conftest$ac_exeext; then
20091 ac_cv_lib_resolv_res_send=yes
20093 echo "$as_me: failed program was
:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20096 ac_cv_lib_resolv_res_send=no
20099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20100 conftest$ac_exeext conftest.$ac_ext
20101 LIBS=$ac_check_lib_save_LIBS
20103 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20104 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20105 if test $ac_cv_lib_resolv_res_send = yes; then
20108 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20109 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20110 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20111 echo $ECHO_N "(cached
) $ECHO_C" >&6
20113 ac_check_lib_save_LIBS=$LIBS
20114 LIBS="-lresolv $LIBS"
20115 cat >conftest.$ac_ext <<_ACEOF
20118 cat confdefs.h >>conftest.$ac_ext
20119 cat >>conftest.$ac_ext <<_ACEOF
20120 /* end confdefs.h. */
20122 /* Override any GCC internal prototype to avoid an error.
20123 Use char because int might match the return type of a GCC
20124 builtin and then its argument prototype would still apply. */
20128 char __res_send ();
20132 return __res_send ();
20137 rm -f conftest.$ac_objext conftest$ac_exeext
20138 if { (ac_try="$ac_link"
20139 case "(($ac_try" in
20140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141 *) ac_try_echo=$ac_try;;
20143 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20144 (eval "$ac_link") 2>conftest.er1
20146 grep -v '^ *+' conftest.er1 >conftest.err
20148 cat conftest.err >&5
20149 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20150 (exit $ac_status); } && {
20151 test -z "$ac_c_werror_flag" ||
20152 test ! -s conftest.err
20153 } && test -s conftest$ac_exeext &&
20154 $as_test_x conftest$ac_exeext; then
20155 ac_cv_lib_resolv___res_send=yes
20157 echo "$as_me: failed program was
:" >&5
20158 sed 's/^/| /' conftest.$ac_ext >&5
20160 ac_cv_lib_resolv___res_send=no
20163 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20164 conftest$ac_exeext conftest.$ac_ext
20165 LIBS=$ac_check_lib_save_LIBS
20167 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20168 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20169 if test $ac_cv_lib_resolv___res_send = yes; then
20179 if test "$resolv" = yes ; then
20184 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20185 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20186 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20187 echo $ECHO_N "(cached
) $ECHO_C" >&6
20189 cat >conftest.$ac_ext <<_ACEOF
20192 cat confdefs.h >>conftest.$ac_ext
20193 cat >>conftest.$ac_ext <<_ACEOF
20194 /* end confdefs.h. */
20195 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20197 #define hes_getmailhost innocuous_hes_getmailhost
20199 /* System header to define __stub macros and hopefully few prototypes,
20200 which can conflict with char hes_getmailhost (); below.
20201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20202 <limits.h> exists even on freestanding compilers. */
20205 # include <limits.h>
20207 # include <assert.h>
20210 #undef hes_getmailhost
20212 /* Override any GCC internal prototype to avoid an error.
20213 Use char because int might match the return type of a GCC
20214 builtin and then its argument prototype would still apply. */
20218 char hes_getmailhost ();
20219 /* The GNU C library defines this for functions which it implements
20220 to always fail with ENOSYS. Some functions are actually named
20221 something starting with __ and the normal name is an alias. */
20222 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20229 return hes_getmailhost ();
20234 rm -f conftest.$ac_objext conftest$ac_exeext
20235 if { (ac_try="$ac_link"
20236 case "(($ac_try" in
20237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20238 *) ac_try_echo=$ac_try;;
20240 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20241 (eval "$ac_link") 2>conftest.er1
20243 grep -v '^ *+' conftest.er1 >conftest.err
20245 cat conftest.err >&5
20246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20247 (exit $ac_status); } && {
20248 test -z "$ac_c_werror_flag" ||
20249 test ! -s conftest.err
20250 } && test -s conftest$ac_exeext &&
20251 $as_test_x conftest$ac_exeext; then
20252 ac_cv_func_hes_getmailhost=yes
20254 echo "$as_me: failed program was
:" >&5
20255 sed 's/^/| /' conftest.$ac_ext >&5
20257 ac_cv_func_hes_getmailhost=no
20260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20261 conftest$ac_exeext conftest.$ac_ext
20263 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20264 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20265 if test $ac_cv_func_hes_getmailhost = yes; then
20268 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20269 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20270 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20271 echo $ECHO_N "(cached
) $ECHO_C" >&6
20273 ac_check_lib_save_LIBS=$LIBS
20274 LIBS="-lhesiod $RESOLVLIB $LIBS"
20275 cat >conftest.$ac_ext <<_ACEOF
20278 cat confdefs.h >>conftest.$ac_ext
20279 cat >>conftest.$ac_ext <<_ACEOF
20280 /* end confdefs.h. */
20282 /* Override any GCC internal prototype to avoid an error.
20283 Use char because int might match the return type of a GCC
20284 builtin and then its argument prototype would still apply. */
20288 char hes_getmailhost ();
20292 return hes_getmailhost ();
20297 rm -f conftest.$ac_objext conftest$ac_exeext
20298 if { (ac_try="$ac_link"
20299 case "(($ac_try" in
20300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20301 *) ac_try_echo=$ac_try;;
20303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20304 (eval "$ac_link") 2>conftest.er1
20306 grep -v '^ *+' conftest.er1 >conftest.err
20308 cat conftest.err >&5
20309 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20310 (exit $ac_status); } && {
20311 test -z "$ac_c_werror_flag" ||
20312 test ! -s conftest.err
20313 } && test -s conftest$ac_exeext &&
20314 $as_test_x conftest$ac_exeext; then
20315 ac_cv_lib_hesiod_hes_getmailhost=yes
20317 echo "$as_me: failed program was
:" >&5
20318 sed 's/^/| /' conftest.$ac_ext >&5
20320 ac_cv_lib_hesiod_hes_getmailhost=no
20323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20324 conftest$ac_exeext conftest.$ac_ext
20325 LIBS=$ac_check_lib_save_LIBS
20327 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20328 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20329 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20331 cat >>confdefs.h <<\_ACEOF
20332 #define HAVE_LIBHESIOD 1
20343 # Do we need libresolv (due to res_init or Hesiod)?
20344 if test "$resolv" = yes ; then
20346 cat >>confdefs.h <<\_ACEOF
20347 #define HAVE_LIBRESOLV 1
20352 # These tell us which Kerberos-related libraries to use.
20353 if test "${with_kerberos}" != no; then
20355 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20356 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20357 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20358 echo $ECHO_N "(cached
) $ECHO_C" >&6
20360 ac_check_lib_save_LIBS=$LIBS
20361 LIBS="-lcom_err $LIBS"
20362 cat >conftest.$ac_ext <<_ACEOF
20365 cat confdefs.h >>conftest.$ac_ext
20366 cat >>conftest.$ac_ext <<_ACEOF
20367 /* end confdefs.h. */
20369 /* Override any GCC internal prototype to avoid an error.
20370 Use char because int might match the return type of a GCC
20371 builtin and then its argument prototype would still apply. */
20384 rm -f conftest.$ac_objext conftest$ac_exeext
20385 if { (ac_try="$ac_link"
20386 case "(($ac_try" in
20387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388 *) ac_try_echo=$ac_try;;
20390 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20391 (eval "$ac_link") 2>conftest.er1
20393 grep -v '^ *+' conftest.er1 >conftest.err
20395 cat conftest.err >&5
20396 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20397 (exit $ac_status); } && {
20398 test -z "$ac_c_werror_flag" ||
20399 test ! -s conftest.err
20400 } && test -s conftest$ac_exeext &&
20401 $as_test_x conftest$ac_exeext; then
20402 ac_cv_lib_com_err_com_err=yes
20404 echo "$as_me: failed program was
:" >&5
20405 sed 's/^/| /' conftest.$ac_ext >&5
20407 ac_cv_lib_com_err_com_err=no
20410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20411 conftest$ac_exeext conftest.$ac_ext
20412 LIBS=$ac_check_lib_save_LIBS
20414 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20415 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20416 if test $ac_cv_lib_com_err_com_err = yes; then
20417 cat >>confdefs.h <<_ACEOF
20418 #define HAVE_LIBCOM_ERR 1
20421 LIBS="-lcom_err $LIBS"
20426 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20427 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20428 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20429 echo $ECHO_N "(cached
) $ECHO_C" >&6
20431 ac_check_lib_save_LIBS=$LIBS
20432 LIBS="-lk5crypto $LIBS"
20433 cat >conftest.$ac_ext <<_ACEOF
20436 cat confdefs.h >>conftest.$ac_ext
20437 cat >>conftest.$ac_ext <<_ACEOF
20438 /* end confdefs.h. */
20440 /* Override any GCC internal prototype to avoid an error.
20441 Use char because int might match the return type of a GCC
20442 builtin and then its argument prototype would still apply. */
20446 char mit_des_cbc_encrypt ();
20450 return mit_des_cbc_encrypt ();
20455 rm -f conftest.$ac_objext conftest$ac_exeext
20456 if { (ac_try="$ac_link"
20457 case "(($ac_try" in
20458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20459 *) ac_try_echo=$ac_try;;
20461 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20462 (eval "$ac_link") 2>conftest.er1
20464 grep -v '^ *+' conftest.er1 >conftest.err
20466 cat conftest.err >&5
20467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20468 (exit $ac_status); } && {
20469 test -z "$ac_c_werror_flag" ||
20470 test ! -s conftest.err
20471 } && test -s conftest$ac_exeext &&
20472 $as_test_x conftest$ac_exeext; then
20473 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20475 echo "$as_me: failed program was
:" >&5
20476 sed 's/^/| /' conftest.$ac_ext >&5
20478 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20482 conftest$ac_exeext conftest.$ac_ext
20483 LIBS=$ac_check_lib_save_LIBS
20485 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20486 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20487 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20488 cat >>confdefs.h <<_ACEOF
20489 #define HAVE_LIBK5CRYPTO 1
20492 LIBS="-lk5crypto $LIBS"
20497 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20498 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20499 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20500 echo $ECHO_N "(cached
) $ECHO_C" >&6
20502 ac_check_lib_save_LIBS=$LIBS
20503 LIBS="-lcrypto $LIBS"
20504 cat >conftest.$ac_ext <<_ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20511 /* Override any GCC internal prototype to avoid an error.
20512 Use char because int might match the return type of a GCC
20513 builtin and then its argument prototype would still apply. */
20517 char mit_des_cbc_encrypt ();
20521 return mit_des_cbc_encrypt ();
20526 rm -f conftest.$ac_objext conftest$ac_exeext
20527 if { (ac_try="$ac_link"
20528 case "(($ac_try" in
20529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20530 *) ac_try_echo=$ac_try;;
20532 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20533 (eval "$ac_link") 2>conftest.er1
20535 grep -v '^ *+' conftest.er1 >conftest.err
20537 cat conftest.err >&5
20538 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20539 (exit $ac_status); } && {
20540 test -z "$ac_c_werror_flag" ||
20541 test ! -s conftest.err
20542 } && test -s conftest$ac_exeext &&
20543 $as_test_x conftest$ac_exeext; then
20544 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20546 echo "$as_me: failed program was
:" >&5
20547 sed 's/^/| /' conftest.$ac_ext >&5
20549 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20553 conftest$ac_exeext conftest.$ac_ext
20554 LIBS=$ac_check_lib_save_LIBS
20556 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20557 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20558 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20559 cat >>confdefs.h <<_ACEOF
20560 #define HAVE_LIBCRYPTO 1
20563 LIBS="-lcrypto $LIBS"
20568 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20569 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20570 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20571 echo $ECHO_N "(cached
) $ECHO_C" >&6
20573 ac_check_lib_save_LIBS=$LIBS
20574 LIBS="-lkrb5 $LIBS"
20575 cat >conftest.$ac_ext <<_ACEOF
20578 cat confdefs.h >>conftest.$ac_ext
20579 cat >>conftest.$ac_ext <<_ACEOF
20580 /* end confdefs.h. */
20582 /* Override any GCC internal prototype to avoid an error.
20583 Use char because int might match the return type of a GCC
20584 builtin and then its argument prototype would still apply. */
20588 char krb5_init_context ();
20592 return krb5_init_context ();
20597 rm -f conftest.$ac_objext conftest$ac_exeext
20598 if { (ac_try="$ac_link"
20599 case "(($ac_try" in
20600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601 *) ac_try_echo=$ac_try;;
20603 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20604 (eval "$ac_link") 2>conftest.er1
20606 grep -v '^ *+' conftest.er1 >conftest.err
20608 cat conftest.err >&5
20609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20610 (exit $ac_status); } && {
20611 test -z "$ac_c_werror_flag" ||
20612 test ! -s conftest.err
20613 } && test -s conftest$ac_exeext &&
20614 $as_test_x conftest$ac_exeext; then
20615 ac_cv_lib_krb5_krb5_init_context=yes
20617 echo "$as_me: failed program was
:" >&5
20618 sed 's/^/| /' conftest.$ac_ext >&5
20620 ac_cv_lib_krb5_krb5_init_context=no
20623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20624 conftest$ac_exeext conftest.$ac_ext
20625 LIBS=$ac_check_lib_save_LIBS
20627 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20628 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20629 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20630 cat >>confdefs.h <<_ACEOF
20631 #define HAVE_LIBKRB5 1
20634 LIBS="-lkrb5 $LIBS"
20638 if test "${with_kerberos5}" = no; then
20640 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20641 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20642 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20643 echo $ECHO_N "(cached
) $ECHO_C" >&6
20645 ac_check_lib_save_LIBS=$LIBS
20646 LIBS="-ldes425 $LIBS"
20647 cat >conftest.$ac_ext <<_ACEOF
20650 cat confdefs.h >>conftest.$ac_ext
20651 cat >>conftest.$ac_ext <<_ACEOF
20652 /* end confdefs.h. */
20654 /* Override any GCC internal prototype to avoid an error.
20655 Use char because int might match the return type of a GCC
20656 builtin and then its argument prototype would still apply. */
20660 char des_cbc_encrypt ();
20664 return des_cbc_encrypt ();
20669 rm -f conftest.$ac_objext conftest$ac_exeext
20670 if { (ac_try="$ac_link"
20671 case "(($ac_try" in
20672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20673 *) ac_try_echo=$ac_try;;
20675 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20676 (eval "$ac_link") 2>conftest.er1
20678 grep -v '^ *+' conftest.er1 >conftest.err
20680 cat conftest.err >&5
20681 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20682 (exit $ac_status); } && {
20683 test -z "$ac_c_werror_flag" ||
20684 test ! -s conftest.err
20685 } && test -s conftest$ac_exeext &&
20686 $as_test_x conftest$ac_exeext; then
20687 ac_cv_lib_des425_des_cbc_encrypt=yes
20689 echo "$as_me: failed program was
:" >&5
20690 sed 's/^/| /' conftest.$ac_ext >&5
20692 ac_cv_lib_des425_des_cbc_encrypt=no
20695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20696 conftest$ac_exeext conftest.$ac_ext
20697 LIBS=$ac_check_lib_save_LIBS
20699 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20700 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20701 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20702 cat >>confdefs.h <<_ACEOF
20703 #define HAVE_LIBDES425 1
20706 LIBS="-ldes425 $LIBS"
20710 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20711 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20712 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20713 echo $ECHO_N "(cached
) $ECHO_C" >&6
20715 ac_check_lib_save_LIBS=$LIBS
20717 cat >conftest.$ac_ext <<_ACEOF
20720 cat confdefs.h >>conftest.$ac_ext
20721 cat >>conftest.$ac_ext <<_ACEOF
20722 /* end confdefs.h. */
20724 /* Override any GCC internal prototype to avoid an error.
20725 Use char because int might match the return type of a GCC
20726 builtin and then its argument prototype would still apply. */
20730 char des_cbc_encrypt ();
20734 return des_cbc_encrypt ();
20739 rm -f conftest.$ac_objext conftest$ac_exeext
20740 if { (ac_try="$ac_link"
20741 case "(($ac_try" in
20742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20743 *) ac_try_echo=$ac_try;;
20745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20746 (eval "$ac_link") 2>conftest.er1
20748 grep -v '^ *+' conftest.er1 >conftest.err
20750 cat conftest.err >&5
20751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20752 (exit $ac_status); } && {
20753 test -z "$ac_c_werror_flag" ||
20754 test ! -s conftest.err
20755 } && test -s conftest$ac_exeext &&
20756 $as_test_x conftest$ac_exeext; then
20757 ac_cv_lib_des_des_cbc_encrypt=yes
20759 echo "$as_me: failed program was
:" >&5
20760 sed 's/^/| /' conftest.$ac_ext >&5
20762 ac_cv_lib_des_des_cbc_encrypt=no
20765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20766 conftest$ac_exeext conftest.$ac_ext
20767 LIBS=$ac_check_lib_save_LIBS
20769 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20770 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20771 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20772 cat >>confdefs.h <<_ACEOF
20773 #define HAVE_LIBDES 1
20783 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20784 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20785 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20786 echo $ECHO_N "(cached
) $ECHO_C" >&6
20788 ac_check_lib_save_LIBS=$LIBS
20789 LIBS="-lkrb4 $LIBS"
20790 cat >conftest.$ac_ext <<_ACEOF
20793 cat confdefs.h >>conftest.$ac_ext
20794 cat >>conftest.$ac_ext <<_ACEOF
20795 /* end confdefs.h. */
20797 /* Override any GCC internal prototype to avoid an error.
20798 Use char because int might match the return type of a GCC
20799 builtin and then its argument prototype would still apply. */
20803 char krb_get_cred ();
20807 return krb_get_cred ();
20812 rm -f conftest.$ac_objext conftest$ac_exeext
20813 if { (ac_try="$ac_link"
20814 case "(($ac_try" in
20815 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20816 *) ac_try_echo=$ac_try;;
20818 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20819 (eval "$ac_link") 2>conftest.er1
20821 grep -v '^ *+' conftest.er1 >conftest.err
20823 cat conftest.err >&5
20824 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20825 (exit $ac_status); } && {
20826 test -z "$ac_c_werror_flag" ||
20827 test ! -s conftest.err
20828 } && test -s conftest$ac_exeext &&
20829 $as_test_x conftest$ac_exeext; then
20830 ac_cv_lib_krb4_krb_get_cred=yes
20832 echo "$as_me: failed program was
:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20835 ac_cv_lib_krb4_krb_get_cred=no
20838 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20839 conftest$ac_exeext conftest.$ac_ext
20840 LIBS=$ac_check_lib_save_LIBS
20842 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20843 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20844 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20845 cat >>confdefs.h <<_ACEOF
20846 #define HAVE_LIBKRB4 1
20849 LIBS="-lkrb4 $LIBS"
20853 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20854 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20855 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20856 echo $ECHO_N "(cached
) $ECHO_C" >&6
20858 ac_check_lib_save_LIBS=$LIBS
20860 cat >conftest.$ac_ext <<_ACEOF
20863 cat confdefs.h >>conftest.$ac_ext
20864 cat >>conftest.$ac_ext <<_ACEOF
20865 /* end confdefs.h. */
20867 /* Override any GCC internal prototype to avoid an error.
20868 Use char because int might match the return type of a GCC
20869 builtin and then its argument prototype would still apply. */
20873 char krb_get_cred ();
20877 return krb_get_cred ();
20882 rm -f conftest.$ac_objext conftest$ac_exeext
20883 if { (ac_try="$ac_link"
20884 case "(($ac_try" in
20885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20886 *) ac_try_echo=$ac_try;;
20888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20889 (eval "$ac_link") 2>conftest.er1
20891 grep -v '^ *+' conftest.er1 >conftest.err
20893 cat conftest.err >&5
20894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20895 (exit $ac_status); } && {
20896 test -z "$ac_c_werror_flag" ||
20897 test ! -s conftest.err
20898 } && test -s conftest$ac_exeext &&
20899 $as_test_x conftest$ac_exeext; then
20900 ac_cv_lib_krb_krb_get_cred=yes
20902 echo "$as_me: failed program was
:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20905 ac_cv_lib_krb_krb_get_cred=no
20908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20909 conftest$ac_exeext conftest.$ac_ext
20910 LIBS=$ac_check_lib_save_LIBS
20912 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20913 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20914 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20915 cat >>confdefs.h <<_ACEOF
20916 #define HAVE_LIBKRB 1
20927 if test "${with_kerberos5}" != no; then
20929 for ac_header in krb5.h
20931 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20932 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20933 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20934 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20935 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20936 echo $ECHO_N "(cached
) $ECHO_C" >&6
20938 ac_res=`eval echo '${'$as_ac_Header'}'`
20939 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20940 echo "${ECHO_T}$ac_res" >&6; }
20942 # Is the header compilable?
20943 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20944 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20945 cat >conftest.$ac_ext <<_ACEOF
20948 cat confdefs.h >>conftest.$ac_ext
20949 cat >>conftest.$ac_ext <<_ACEOF
20950 /* end confdefs.h. */
20951 $ac_includes_default
20952 #include <$ac_header>
20954 rm -f conftest.$ac_objext
20955 if { (ac_try="$ac_compile"
20956 case "(($ac_try" in
20957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20958 *) ac_try_echo=$ac_try;;
20960 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20961 (eval "$ac_compile") 2>conftest.er1
20963 grep -v '^ *+' conftest.er1 >conftest.err
20965 cat conftest.err >&5
20966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20967 (exit $ac_status); } && {
20968 test -z "$ac_c_werror_flag" ||
20969 test ! -s conftest.err
20970 } && test -s conftest.$ac_objext; then
20971 ac_header_compiler=yes
20973 echo "$as_me: failed program was
:" >&5
20974 sed 's/^/| /' conftest.$ac_ext >&5
20976 ac_header_compiler=no
20979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20980 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20981 echo "${ECHO_T}$ac_header_compiler" >&6; }
20983 # Is the header present?
20984 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20985 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20986 cat >conftest.$ac_ext <<_ACEOF
20989 cat confdefs.h >>conftest.$ac_ext
20990 cat >>conftest.$ac_ext <<_ACEOF
20991 /* end confdefs.h. */
20992 #include <$ac_header>
20994 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20995 case "(($ac_try" in
20996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20997 *) ac_try_echo=$ac_try;;
20999 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21000 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21002 grep -v '^ *+' conftest.er1 >conftest.err
21004 cat conftest.err >&5
21005 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21006 (exit $ac_status); } >/dev/null && {
21007 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21008 test ! -s conftest.err
21010 ac_header_preproc=yes
21012 echo "$as_me: failed program was
:" >&5
21013 sed 's/^/| /' conftest.$ac_ext >&5
21015 ac_header_preproc=no
21018 rm -f conftest.err conftest.$ac_ext
21019 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21020 echo "${ECHO_T}$ac_header_preproc" >&6; }
21022 # So? What about this header?
21023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21025 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21026 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21027 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21028 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21029 ac_header_preproc=yes
21032 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21033 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21034 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21035 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21036 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21037 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21038 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21039 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21040 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21041 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21042 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21043 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21047 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21048 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21049 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21050 echo $ECHO_N "(cached
) $ECHO_C" >&6
21052 eval "$as_ac_Header=\
$ac_header_preproc"
21054 ac_res=`eval echo '${'$as_ac_Header'}'`
21055 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21056 echo "${ECHO_T}$ac_res" >&6; }
21059 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21060 cat >>confdefs.h <<_ACEOF
21061 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21070 for ac_header in des.h
21072 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21073 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21074 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21075 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21076 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21077 echo $ECHO_N "(cached
) $ECHO_C" >&6
21079 ac_res=`eval echo '${'$as_ac_Header'}'`
21080 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21081 echo "${ECHO_T}$ac_res" >&6; }
21083 # Is the header compilable?
21084 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21085 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21086 cat >conftest.$ac_ext <<_ACEOF
21089 cat confdefs.h >>conftest.$ac_ext
21090 cat >>conftest.$ac_ext <<_ACEOF
21091 /* end confdefs.h. */
21092 $ac_includes_default
21093 #include <$ac_header>
21095 rm -f conftest.$ac_objext
21096 if { (ac_try="$ac_compile"
21097 case "(($ac_try" in
21098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21099 *) ac_try_echo=$ac_try;;
21101 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21102 (eval "$ac_compile") 2>conftest.er1
21104 grep -v '^ *+' conftest.er1 >conftest.err
21106 cat conftest.err >&5
21107 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21108 (exit $ac_status); } && {
21109 test -z "$ac_c_werror_flag" ||
21110 test ! -s conftest.err
21111 } && test -s conftest.$ac_objext; then
21112 ac_header_compiler=yes
21114 echo "$as_me: failed program was
:" >&5
21115 sed 's/^/| /' conftest.$ac_ext >&5
21117 ac_header_compiler=no
21120 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21121 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21122 echo "${ECHO_T}$ac_header_compiler" >&6; }
21124 # Is the header present?
21125 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21126 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21127 cat >conftest.$ac_ext <<_ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21133 #include <$ac_header>
21135 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21136 case "(($ac_try" in
21137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21138 *) ac_try_echo=$ac_try;;
21140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21141 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21143 grep -v '^ *+' conftest.er1 >conftest.err
21145 cat conftest.err >&5
21146 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21147 (exit $ac_status); } >/dev/null && {
21148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21149 test ! -s conftest.err
21151 ac_header_preproc=yes
21153 echo "$as_me: failed program was
:" >&5
21154 sed 's/^/| /' conftest.$ac_ext >&5
21156 ac_header_preproc=no
21159 rm -f conftest.err conftest.$ac_ext
21160 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21161 echo "${ECHO_T}$ac_header_preproc" >&6; }
21163 # So? What about this header?
21164 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21166 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21167 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21168 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21169 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21170 ac_header_preproc=yes
21173 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21174 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21175 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21176 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21177 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21178 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21179 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21180 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21181 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21182 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21183 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21184 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21188 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21189 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21190 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21191 echo $ECHO_N "(cached
) $ECHO_C" >&6
21193 eval "$as_ac_Header=\
$ac_header_preproc"
21195 ac_res=`eval echo '${'$as_ac_Header'}'`
21196 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21197 echo "${ECHO_T}$ac_res" >&6; }
21200 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21201 cat >>confdefs.h <<_ACEOF
21202 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21207 for ac_header in kerberosIV/des.h
21209 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21210 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21211 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21212 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21213 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21214 echo $ECHO_N "(cached
) $ECHO_C" >&6
21216 ac_res=`eval echo '${'$as_ac_Header'}'`
21217 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21218 echo "${ECHO_T}$ac_res" >&6; }
21220 # Is the header compilable?
21221 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21222 echo $ECHO_N "checking
$ac_header usability...
$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. */
21229 $ac_includes_default
21230 #include <$ac_header>
21232 rm -f conftest.$ac_objext
21233 if { (ac_try="$ac_compile"
21234 case "(($ac_try" in
21235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21236 *) ac_try_echo=$ac_try;;
21238 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21239 (eval "$ac_compile") 2>conftest.er1
21241 grep -v '^ *+' conftest.er1 >conftest.err
21243 cat conftest.err >&5
21244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21245 (exit $ac_status); } && {
21246 test -z "$ac_c_werror_flag" ||
21247 test ! -s conftest.err
21248 } && test -s conftest.$ac_objext; then
21249 ac_header_compiler=yes
21251 echo "$as_me: failed program was
:" >&5
21252 sed 's/^/| /' conftest.$ac_ext >&5
21254 ac_header_compiler=no
21257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21258 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21259 echo "${ECHO_T}$ac_header_compiler" >&6; }
21261 # Is the header present?
21262 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21263 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21264 cat >conftest.$ac_ext <<_ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h. */
21270 #include <$ac_header>
21272 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21273 case "(($ac_try" in
21274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21275 *) ac_try_echo=$ac_try;;
21277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21278 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21280 grep -v '^ *+' conftest.er1 >conftest.err
21282 cat conftest.err >&5
21283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21284 (exit $ac_status); } >/dev/null && {
21285 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21286 test ! -s conftest.err
21288 ac_header_preproc=yes
21290 echo "$as_me: failed program was
:" >&5
21291 sed 's/^/| /' conftest.$ac_ext >&5
21293 ac_header_preproc=no
21296 rm -f conftest.err conftest.$ac_ext
21297 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21298 echo "${ECHO_T}$ac_header_preproc" >&6; }
21300 # So? What about this header?
21301 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21303 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21304 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21305 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21306 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21307 ac_header_preproc=yes
21310 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21311 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21312 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21313 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21314 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21315 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21316 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21317 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21318 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21319 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21320 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21321 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21325 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21326 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21327 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21328 echo $ECHO_N "(cached
) $ECHO_C" >&6
21330 eval "$as_ac_Header=\
$ac_header_preproc"
21332 ac_res=`eval echo '${'$as_ac_Header'}'`
21333 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21334 echo "${ECHO_T}$ac_res" >&6; }
21337 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21338 cat >>confdefs.h <<_ACEOF
21339 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21344 for ac_header in kerberos/des.h
21346 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21347 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21348 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21349 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21350 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21351 echo $ECHO_N "(cached
) $ECHO_C" >&6
21353 ac_res=`eval echo '${'$as_ac_Header'}'`
21354 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21355 echo "${ECHO_T}$ac_res" >&6; }
21357 # Is the header compilable?
21358 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21359 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21360 cat >conftest.$ac_ext <<_ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21366 $ac_includes_default
21367 #include <$ac_header>
21369 rm -f conftest.$ac_objext
21370 if { (ac_try="$ac_compile"
21371 case "(($ac_try" in
21372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21373 *) ac_try_echo=$ac_try;;
21375 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21376 (eval "$ac_compile") 2>conftest.er1
21378 grep -v '^ *+' conftest.er1 >conftest.err
21380 cat conftest.err >&5
21381 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21382 (exit $ac_status); } && {
21383 test -z "$ac_c_werror_flag" ||
21384 test ! -s conftest.err
21385 } && test -s conftest.$ac_objext; then
21386 ac_header_compiler=yes
21388 echo "$as_me: failed program was
:" >&5
21389 sed 's/^/| /' conftest.$ac_ext >&5
21391 ac_header_compiler=no
21394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21395 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21396 echo "${ECHO_T}$ac_header_compiler" >&6; }
21398 # Is the header present?
21399 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21400 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21401 cat >conftest.$ac_ext <<_ACEOF
21404 cat confdefs.h >>conftest.$ac_ext
21405 cat >>conftest.$ac_ext <<_ACEOF
21406 /* end confdefs.h. */
21407 #include <$ac_header>
21409 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21410 case "(($ac_try" in
21411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21412 *) ac_try_echo=$ac_try;;
21414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21415 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21417 grep -v '^ *+' conftest.er1 >conftest.err
21419 cat conftest.err >&5
21420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21421 (exit $ac_status); } >/dev/null && {
21422 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21423 test ! -s conftest.err
21425 ac_header_preproc=yes
21427 echo "$as_me: failed program was
:" >&5
21428 sed 's/^/| /' conftest.$ac_ext >&5
21430 ac_header_preproc=no
21433 rm -f conftest.err conftest.$ac_ext
21434 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21435 echo "${ECHO_T}$ac_header_preproc" >&6; }
21437 # So? What about this header?
21438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21440 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21441 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21442 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21444 ac_header_preproc=yes
21447 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21448 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21449 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21450 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21451 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21452 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21453 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21454 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21455 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21457 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21458 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21462 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21463 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21464 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21465 echo $ECHO_N "(cached
) $ECHO_C" >&6
21467 eval "$as_ac_Header=\
$ac_header_preproc"
21469 ac_res=`eval echo '${'$as_ac_Header'}'`
21470 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21471 echo "${ECHO_T}$ac_res" >&6; }
21474 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21475 cat >>confdefs.h <<_ACEOF
21476 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21492 for ac_header in krb.h
21494 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21495 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21496 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21497 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21498 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21499 echo $ECHO_N "(cached
) $ECHO_C" >&6
21501 ac_res=`eval echo '${'$as_ac_Header'}'`
21502 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21503 echo "${ECHO_T}$ac_res" >&6; }
21505 # Is the header compilable?
21506 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21507 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21508 cat >conftest.$ac_ext <<_ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21514 $ac_includes_default
21515 #include <$ac_header>
21517 rm -f conftest.$ac_objext
21518 if { (ac_try="$ac_compile"
21519 case "(($ac_try" in
21520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21521 *) ac_try_echo=$ac_try;;
21523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21524 (eval "$ac_compile") 2>conftest.er1
21526 grep -v '^ *+' conftest.er1 >conftest.err
21528 cat conftest.err >&5
21529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21530 (exit $ac_status); } && {
21531 test -z "$ac_c_werror_flag" ||
21532 test ! -s conftest.err
21533 } && test -s conftest.$ac_objext; then
21534 ac_header_compiler=yes
21536 echo "$as_me: failed program was
:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21539 ac_header_compiler=no
21542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21543 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21544 echo "${ECHO_T}$ac_header_compiler" >&6; }
21546 # Is the header present?
21547 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21548 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21549 cat >conftest.$ac_ext <<_ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h. */
21555 #include <$ac_header>
21557 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21558 case "(($ac_try" in
21559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560 *) ac_try_echo=$ac_try;;
21562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21563 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21565 grep -v '^ *+' conftest.er1 >conftest.err
21567 cat conftest.err >&5
21568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21569 (exit $ac_status); } >/dev/null && {
21570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21571 test ! -s conftest.err
21573 ac_header_preproc=yes
21575 echo "$as_me: failed program was
:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21578 ac_header_preproc=no
21581 rm -f conftest.err conftest.$ac_ext
21582 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21583 echo "${ECHO_T}$ac_header_preproc" >&6; }
21585 # So? What about this header?
21586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21588 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21589 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21590 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21592 ac_header_preproc=yes
21595 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21596 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21597 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21598 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21599 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21600 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21601 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21602 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21603 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21605 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21606 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21610 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21611 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21612 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21613 echo $ECHO_N "(cached
) $ECHO_C" >&6
21615 eval "$as_ac_Header=\
$ac_header_preproc"
21617 ac_res=`eval echo '${'$as_ac_Header'}'`
21618 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21619 echo "${ECHO_T}$ac_res" >&6; }
21622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21623 cat >>confdefs.h <<_ACEOF
21624 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21629 for ac_header in kerberosIV/krb.h
21631 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21632 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21633 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21634 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21635 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21636 echo $ECHO_N "(cached
) $ECHO_C" >&6
21638 ac_res=`eval echo '${'$as_ac_Header'}'`
21639 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21640 echo "${ECHO_T}$ac_res" >&6; }
21642 # Is the header compilable?
21643 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21644 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21645 cat >conftest.$ac_ext <<_ACEOF
21648 cat confdefs.h >>conftest.$ac_ext
21649 cat >>conftest.$ac_ext <<_ACEOF
21650 /* end confdefs.h. */
21651 $ac_includes_default
21652 #include <$ac_header>
21654 rm -f conftest.$ac_objext
21655 if { (ac_try="$ac_compile"
21656 case "(($ac_try" in
21657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21658 *) ac_try_echo=$ac_try;;
21660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21661 (eval "$ac_compile") 2>conftest.er1
21663 grep -v '^ *+' conftest.er1 >conftest.err
21665 cat conftest.err >&5
21666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21667 (exit $ac_status); } && {
21668 test -z "$ac_c_werror_flag" ||
21669 test ! -s conftest.err
21670 } && test -s conftest.$ac_objext; then
21671 ac_header_compiler=yes
21673 echo "$as_me: failed program was
:" >&5
21674 sed 's/^/| /' conftest.$ac_ext >&5
21676 ac_header_compiler=no
21679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21680 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21681 echo "${ECHO_T}$ac_header_compiler" >&6; }
21683 # Is the header present?
21684 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21685 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21686 cat >conftest.$ac_ext <<_ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h. */
21692 #include <$ac_header>
21694 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21695 case "(($ac_try" in
21696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21697 *) ac_try_echo=$ac_try;;
21699 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21700 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21702 grep -v '^ *+' conftest.er1 >conftest.err
21704 cat conftest.err >&5
21705 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21706 (exit $ac_status); } >/dev/null && {
21707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21708 test ! -s conftest.err
21710 ac_header_preproc=yes
21712 echo "$as_me: failed program was
:" >&5
21713 sed 's/^/| /' conftest.$ac_ext >&5
21715 ac_header_preproc=no
21718 rm -f conftest.err conftest.$ac_ext
21719 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21720 echo "${ECHO_T}$ac_header_preproc" >&6; }
21722 # So? What about this header?
21723 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21725 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21726 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21727 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21728 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21729 ac_header_preproc=yes
21732 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21733 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21734 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21735 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21736 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21737 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21738 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21739 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21740 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21741 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21742 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21743 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21747 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21748 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21749 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21750 echo $ECHO_N "(cached
) $ECHO_C" >&6
21752 eval "$as_ac_Header=\
$ac_header_preproc"
21754 ac_res=`eval echo '${'$as_ac_Header'}'`
21755 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21756 echo "${ECHO_T}$ac_res" >&6; }
21759 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21760 cat >>confdefs.h <<_ACEOF
21761 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21766 for ac_header in kerberos/krb.h
21768 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21769 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21770 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21771 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21772 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21773 echo $ECHO_N "(cached
) $ECHO_C" >&6
21775 ac_res=`eval echo '${'$as_ac_Header'}'`
21776 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21777 echo "${ECHO_T}$ac_res" >&6; }
21779 # Is the header compilable?
21780 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21781 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21782 cat >conftest.$ac_ext <<_ACEOF
21785 cat confdefs.h >>conftest.$ac_ext
21786 cat >>conftest.$ac_ext <<_ACEOF
21787 /* end confdefs.h. */
21788 $ac_includes_default
21789 #include <$ac_header>
21791 rm -f conftest.$ac_objext
21792 if { (ac_try="$ac_compile"
21793 case "(($ac_try" in
21794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21795 *) ac_try_echo=$ac_try;;
21797 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21798 (eval "$ac_compile") 2>conftest.er1
21800 grep -v '^ *+' conftest.er1 >conftest.err
21802 cat conftest.err >&5
21803 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21804 (exit $ac_status); } && {
21805 test -z "$ac_c_werror_flag" ||
21806 test ! -s conftest.err
21807 } && test -s conftest.$ac_objext; then
21808 ac_header_compiler=yes
21810 echo "$as_me: failed program was
:" >&5
21811 sed 's/^/| /' conftest.$ac_ext >&5
21813 ac_header_compiler=no
21816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21817 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21818 echo "${ECHO_T}$ac_header_compiler" >&6; }
21820 # Is the header present?
21821 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21822 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21823 cat >conftest.$ac_ext <<_ACEOF
21826 cat confdefs.h >>conftest.$ac_ext
21827 cat >>conftest.$ac_ext <<_ACEOF
21828 /* end confdefs.h. */
21829 #include <$ac_header>
21831 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21832 case "(($ac_try" in
21833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834 *) ac_try_echo=$ac_try;;
21836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21837 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21839 grep -v '^ *+' conftest.er1 >conftest.err
21841 cat conftest.err >&5
21842 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21843 (exit $ac_status); } >/dev/null && {
21844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21845 test ! -s conftest.err
21847 ac_header_preproc=yes
21849 echo "$as_me: failed program was
:" >&5
21850 sed 's/^/| /' conftest.$ac_ext >&5
21852 ac_header_preproc=no
21855 rm -f conftest.err conftest.$ac_ext
21856 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21857 echo "${ECHO_T}$ac_header_preproc" >&6; }
21859 # So? What about this header?
21860 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21862 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21863 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21864 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21865 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21866 ac_header_preproc=yes
21869 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21870 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21871 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21872 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21873 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21874 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21875 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21876 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21877 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21878 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21879 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21880 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21884 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21885 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21886 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21887 echo $ECHO_N "(cached
) $ECHO_C" >&6
21889 eval "$as_ac_Header=\
$ac_header_preproc"
21891 ac_res=`eval echo '${'$as_ac_Header'}'`
21892 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21893 echo "${ECHO_T}$ac_res" >&6; }
21896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21897 cat >>confdefs.h <<_ACEOF
21898 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21915 for ac_header in com_err.h
21917 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21918 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21919 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21920 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21921 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21922 echo $ECHO_N "(cached
) $ECHO_C" >&6
21924 ac_res=`eval echo '${'$as_ac_Header'}'`
21925 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21926 echo "${ECHO_T}$ac_res" >&6; }
21928 # Is the header compilable?
21929 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21930 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21931 cat >conftest.$ac_ext <<_ACEOF
21934 cat confdefs.h >>conftest.$ac_ext
21935 cat >>conftest.$ac_ext <<_ACEOF
21936 /* end confdefs.h. */
21937 $ac_includes_default
21938 #include <$ac_header>
21940 rm -f conftest.$ac_objext
21941 if { (ac_try="$ac_compile"
21942 case "(($ac_try" in
21943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21944 *) ac_try_echo=$ac_try;;
21946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21947 (eval "$ac_compile") 2>conftest.er1
21949 grep -v '^ *+' conftest.er1 >conftest.err
21951 cat conftest.err >&5
21952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21953 (exit $ac_status); } && {
21954 test -z "$ac_c_werror_flag" ||
21955 test ! -s conftest.err
21956 } && test -s conftest.$ac_objext; then
21957 ac_header_compiler=yes
21959 echo "$as_me: failed program was
:" >&5
21960 sed 's/^/| /' conftest.$ac_ext >&5
21962 ac_header_compiler=no
21965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21966 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21967 echo "${ECHO_T}$ac_header_compiler" >&6; }
21969 # Is the header present?
21970 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21971 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21972 cat >conftest.$ac_ext <<_ACEOF
21975 cat confdefs.h >>conftest.$ac_ext
21976 cat >>conftest.$ac_ext <<_ACEOF
21977 /* end confdefs.h. */
21978 #include <$ac_header>
21980 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21981 case "(($ac_try" in
21982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21983 *) ac_try_echo=$ac_try;;
21985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21986 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21988 grep -v '^ *+' conftest.er1 >conftest.err
21990 cat conftest.err >&5
21991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21992 (exit $ac_status); } >/dev/null && {
21993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21994 test ! -s conftest.err
21996 ac_header_preproc=yes
21998 echo "$as_me: failed program was
:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22001 ac_header_preproc=no
22004 rm -f conftest.err conftest.$ac_ext
22005 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22006 echo "${ECHO_T}$ac_header_preproc" >&6; }
22008 # So? What about this header?
22009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22011 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22012 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22013 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22015 ac_header_preproc=yes
22018 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22019 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22020 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22021 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22022 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22023 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22024 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22025 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22026 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22028 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22029 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22033 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22034 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22035 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22036 echo $ECHO_N "(cached
) $ECHO_C" >&6
22038 eval "$as_ac_Header=\
$ac_header_preproc"
22040 ac_res=`eval echo '${'$as_ac_Header'}'`
22041 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22042 echo "${ECHO_T}$ac_res" >&6; }
22045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22046 cat >>confdefs.h <<_ACEOF
22047 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22056 # Solaris requires -lintl if you want strerror (which calls dgettext)
22057 # to return localized messages.
22059 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22060 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22061 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22062 echo $ECHO_N "(cached
) $ECHO_C" >&6
22064 ac_check_lib_save_LIBS=$LIBS
22065 LIBS="-lintl $LIBS"
22066 cat >conftest.$ac_ext <<_ACEOF
22069 cat confdefs.h >>conftest.$ac_ext
22070 cat >>conftest.$ac_ext <<_ACEOF
22071 /* end confdefs.h. */
22073 /* Override any GCC internal prototype to avoid an error.
22074 Use char because int might match the return type of a GCC
22075 builtin and then its argument prototype would still apply. */
22083 return dgettext ();
22088 rm -f conftest.$ac_objext conftest$ac_exeext
22089 if { (ac_try="$ac_link"
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_link") 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); } && {
22102 test -z "$ac_c_werror_flag" ||
22103 test ! -s conftest.err
22104 } && test -s conftest$ac_exeext &&
22105 $as_test_x conftest$ac_exeext; then
22106 ac_cv_lib_intl_dgettext=yes
22108 echo "$as_me: failed program was
:" >&5
22109 sed 's/^/| /' conftest.$ac_ext >&5
22111 ac_cv_lib_intl_dgettext=no
22114 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22115 conftest$ac_exeext conftest.$ac_ext
22116 LIBS=$ac_check_lib_save_LIBS
22118 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22119 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22120 if test $ac_cv_lib_intl_dgettext = yes; then
22121 cat >>confdefs.h <<_ACEOF
22122 #define HAVE_LIBINTL 1
22125 LIBS="-lintl $LIBS"
22130 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22131 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22132 if test "${emacs_cv_localtime_cache+set}" = set; then
22133 echo $ECHO_N "(cached
) $ECHO_C" >&6
22135 if test x$ac_cv_func_tzset = xyes; then
22136 if test "$cross_compiling" = yes; then
22137 # If we have tzset, assume the worst when cross-compiling.
22138 emacs_cv_localtime_cache=yes
22140 cat >conftest.$ac_ext <<_ACEOF
22143 cat confdefs.h >>conftest.$ac_ext
22144 cat >>conftest.$ac_ext <<_ACEOF
22145 /* end confdefs.h. */
22147 extern char **environ;
22151 for (to = from = environ; (*to = *from); from++)
22152 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22155 char TZ_GMT0[] = "TZ
=GMT0
";
22156 char TZ_PST8[] = "TZ
=PST8
";
22159 time_t now = time ((time_t *) 0);
22160 int hour_GMT0, hour_unset;
22161 if (putenv (TZ_GMT0) != 0)
22163 hour_GMT0 = localtime (&now)->tm_hour;
22165 hour_unset = localtime (&now)->tm_hour;
22166 if (putenv (TZ_PST8) != 0)
22168 if (localtime (&now)->tm_hour == hour_GMT0)
22171 if (localtime (&now)->tm_hour != hour_unset)
22176 rm -f conftest$ac_exeext
22177 if { (ac_try="$ac_link"
22178 case "(($ac_try" in
22179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22180 *) ac_try_echo=$ac_try;;
22182 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22183 (eval "$ac_link") 2>&5
22185 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22186 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22187 { (case "(($ac_try" in
22188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22189 *) ac_try_echo=$ac_try;;
22191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22192 (eval "$ac_try") 2>&5
22194 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22195 (exit $ac_status); }; }; then
22196 emacs_cv_localtime_cache=no
22198 echo "$as_me: program exited with status
$ac_status" >&5
22199 echo "$as_me: failed program was
:" >&5
22200 sed 's/^/| /' conftest.$ac_ext >&5
22202 ( exit $ac_status )
22203 emacs_cv_localtime_cache=yes
22205 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22210 # If we lack tzset, report that localtime does not cache TZ,
22211 # since we can't invalidate the cache if we don't have tzset.
22212 emacs_cv_localtime_cache=no
22215 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22216 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22217 if test $emacs_cv_localtime_cache = yes; then
22219 cat >>confdefs.h <<\_ACEOF
22220 #define LOCALTIME_CACHE 1
22225 if test "x
$HAVE_TIMEVAL" = xyes; then
22227 for ac_func in gettimeofday
22229 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22230 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22231 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22232 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22233 echo $ECHO_N "(cached
) $ECHO_C" >&6
22235 cat >conftest.$ac_ext <<_ACEOF
22238 cat confdefs.h >>conftest.$ac_ext
22239 cat >>conftest.$ac_ext <<_ACEOF
22240 /* end confdefs.h. */
22241 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22242 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22243 #define $ac_func innocuous_$ac_func
22245 /* System header to define __stub macros and hopefully few prototypes,
22246 which can conflict with char $ac_func (); below.
22247 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22248 <limits.h> exists even on freestanding compilers. */
22251 # include <limits.h>
22253 # include <assert.h>
22258 /* Override any GCC internal prototype to avoid an error.
22259 Use char because int might match the return type of a GCC
22260 builtin and then its argument prototype would still apply. */
22265 /* The GNU C library defines this for functions which it implements
22266 to always fail with ENOSYS. Some functions are actually named
22267 something starting with __ and the normal name is an alias. */
22268 #if defined __stub_$ac_func || defined __stub___$ac_func
22275 return $ac_func ();
22280 rm -f conftest.$ac_objext conftest$ac_exeext
22281 if { (ac_try="$ac_link"
22282 case "(($ac_try" in
22283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22284 *) ac_try_echo=$ac_try;;
22286 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22287 (eval "$ac_link") 2>conftest.er1
22289 grep -v '^ *+' conftest.er1 >conftest.err
22291 cat conftest.err >&5
22292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22293 (exit $ac_status); } && {
22294 test -z "$ac_c_werror_flag" ||
22295 test ! -s conftest.err
22296 } && test -s conftest$ac_exeext &&
22297 $as_test_x conftest$ac_exeext; then
22298 eval "$as_ac_var=yes"
22300 echo "$as_me: failed program was
:" >&5
22301 sed 's/^/| /' conftest.$ac_ext >&5
22303 eval "$as_ac_var=no
"
22306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22307 conftest$ac_exeext conftest.$ac_ext
22309 ac_res=`eval echo '${'$as_ac_var'}'`
22310 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22311 echo "${ECHO_T}$ac_res" >&6; }
22312 if test `eval echo '${'$as_ac_var'}'` = yes; then
22313 cat >>confdefs.h <<_ACEOF
22314 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22320 if test $ac_cv_func_gettimeofday = yes; then
22321 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22322 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22323 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22324 echo $ECHO_N "(cached
) $ECHO_C" >&6
22326 cat >conftest.$ac_ext <<_ACEOF
22329 cat confdefs.h >>conftest.$ac_ext
22330 cat >>conftest.$ac_ext <<_ACEOF
22331 /* end confdefs.h. */
22333 #ifdef TIME_WITH_SYS_TIME
22334 #include <sys/time.h>
22337 #ifdef HAVE_SYS_TIME_H
22338 #include <sys/time.h>
22346 struct timeval time;
22347 gettimeofday (&time, 0);
22352 rm -f conftest.$ac_objext
22353 if { (ac_try="$ac_compile"
22354 case "(($ac_try" in
22355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22356 *) ac_try_echo=$ac_try;;
22358 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22359 (eval "$ac_compile") 2>conftest.er1
22361 grep -v '^ *+' conftest.er1 >conftest.err
22363 cat conftest.err >&5
22364 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22365 (exit $ac_status); } && {
22366 test -z "$ac_c_werror_flag" ||
22367 test ! -s conftest.err
22368 } && test -s conftest.$ac_objext; then
22369 emacs_cv_gettimeofday_two_arguments=yes
22371 echo "$as_me: failed program was
:" >&5
22372 sed 's/^/| /' conftest.$ac_ext >&5
22374 emacs_cv_gettimeofday_two_arguments=no
22377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22379 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22380 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22381 if test $emacs_cv_gettimeofday_two_arguments = no; then
22383 cat >>confdefs.h <<\_ACEOF
22384 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22392 { echo "$as_me:$LINENO: checking
for socket
" >&5
22393 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22394 if test "${ac_cv_func_socket+set}" = set; then
22395 echo $ECHO_N "(cached
) $ECHO_C" >&6
22397 cat >conftest.$ac_ext <<_ACEOF
22400 cat confdefs.h >>conftest.$ac_ext
22401 cat >>conftest.$ac_ext <<_ACEOF
22402 /* end confdefs.h. */
22403 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22405 #define socket innocuous_socket
22407 /* System header to define __stub macros and hopefully few prototypes,
22408 which can conflict with char socket (); below.
22409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22410 <limits.h> exists even on freestanding compilers. */
22413 # include <limits.h>
22415 # include <assert.h>
22420 /* Override any GCC internal prototype to avoid an error.
22421 Use char because int might match the return type of a GCC
22422 builtin and then its argument prototype would still apply. */
22427 /* The GNU C library defines this for functions which it implements
22428 to always fail with ENOSYS. Some functions are actually named
22429 something starting with __ and the normal name is an alias. */
22430 #if defined __stub_socket || defined __stub___socket
22442 rm -f conftest.$ac_objext conftest$ac_exeext
22443 if { (ac_try="$ac_link"
22444 case "(($ac_try" in
22445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22446 *) ac_try_echo=$ac_try;;
22448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22449 (eval "$ac_link") 2>conftest.er1
22451 grep -v '^ *+' conftest.er1 >conftest.err
22453 cat conftest.err >&5
22454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22455 (exit $ac_status); } && {
22456 test -z "$ac_c_werror_flag" ||
22457 test ! -s conftest.err
22458 } && test -s conftest$ac_exeext &&
22459 $as_test_x conftest$ac_exeext; then
22460 ac_cv_func_socket=yes
22462 echo "$as_me: failed program was
:" >&5
22463 sed 's/^/| /' conftest.$ac_ext >&5
22465 ac_cv_func_socket=no
22468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22469 conftest$ac_exeext conftest.$ac_ext
22471 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22472 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22473 if test $ac_cv_func_socket = yes; then
22479 if test $ok_so_far = yes; then
22480 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22481 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22482 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22483 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22484 echo $ECHO_N "(cached
) $ECHO_C" >&6
22486 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22487 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22489 # Is the header compilable?
22490 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22491 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22492 cat >conftest.$ac_ext <<_ACEOF
22495 cat confdefs.h >>conftest.$ac_ext
22496 cat >>conftest.$ac_ext <<_ACEOF
22497 /* end confdefs.h. */
22498 $ac_includes_default
22499 #include <netinet/in.h>
22501 rm -f conftest.$ac_objext
22502 if { (ac_try="$ac_compile"
22503 case "(($ac_try" in
22504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22505 *) ac_try_echo=$ac_try;;
22507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22508 (eval "$ac_compile") 2>conftest.er1
22510 grep -v '^ *+' conftest.er1 >conftest.err
22512 cat conftest.err >&5
22513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22514 (exit $ac_status); } && {
22515 test -z "$ac_c_werror_flag" ||
22516 test ! -s conftest.err
22517 } && test -s conftest.$ac_objext; then
22518 ac_header_compiler=yes
22520 echo "$as_me: failed program was
:" >&5
22521 sed 's/^/| /' conftest.$ac_ext >&5
22523 ac_header_compiler=no
22526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22527 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22528 echo "${ECHO_T}$ac_header_compiler" >&6; }
22530 # Is the header present?
22531 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22532 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22533 cat >conftest.$ac_ext <<_ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h. */
22539 #include <netinet/in.h>
22541 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22542 case "(($ac_try" in
22543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22544 *) ac_try_echo=$ac_try;;
22546 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22547 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22549 grep -v '^ *+' conftest.er1 >conftest.err
22551 cat conftest.err >&5
22552 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22553 (exit $ac_status); } >/dev/null && {
22554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22555 test ! -s conftest.err
22557 ac_header_preproc=yes
22559 echo "$as_me: failed program was
:" >&5
22560 sed 's/^/| /' conftest.$ac_ext >&5
22562 ac_header_preproc=no
22565 rm -f conftest.err conftest.$ac_ext
22566 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22567 echo "${ECHO_T}$ac_header_preproc" >&6; }
22569 # So? What about this header?
22570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22572 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22573 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22574 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22575 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22576 ac_header_preproc=yes
22579 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22580 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22581 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22582 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22583 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22584 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22585 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22586 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22587 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22588 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22589 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22590 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22594 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22595 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22596 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22597 echo $ECHO_N "(cached
) $ECHO_C" >&6
22599 ac_cv_header_netinet_in_h=$ac_header_preproc
22601 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22602 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22605 if test $ac_cv_header_netinet_in_h = yes; then
22613 if test $ok_so_far = yes; then
22614 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22615 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22616 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22617 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22618 echo $ECHO_N "(cached
) $ECHO_C" >&6
22620 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22621 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22623 # Is the header compilable?
22624 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22625 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22626 cat >conftest.$ac_ext <<_ACEOF
22629 cat confdefs.h >>conftest.$ac_ext
22630 cat >>conftest.$ac_ext <<_ACEOF
22631 /* end confdefs.h. */
22632 $ac_includes_default
22633 #include <arpa/inet.h>
22635 rm -f conftest.$ac_objext
22636 if { (ac_try="$ac_compile"
22637 case "(($ac_try" in
22638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22639 *) ac_try_echo=$ac_try;;
22641 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22642 (eval "$ac_compile") 2>conftest.er1
22644 grep -v '^ *+' conftest.er1 >conftest.err
22646 cat conftest.err >&5
22647 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22648 (exit $ac_status); } && {
22649 test -z "$ac_c_werror_flag" ||
22650 test ! -s conftest.err
22651 } && test -s conftest.$ac_objext; then
22652 ac_header_compiler=yes
22654 echo "$as_me: failed program was
:" >&5
22655 sed 's/^/| /' conftest.$ac_ext >&5
22657 ac_header_compiler=no
22660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22661 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22662 echo "${ECHO_T}$ac_header_compiler" >&6; }
22664 # Is the header present?
22665 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22666 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22667 cat >conftest.$ac_ext <<_ACEOF
22670 cat confdefs.h >>conftest.$ac_ext
22671 cat >>conftest.$ac_ext <<_ACEOF
22672 /* end confdefs.h. */
22673 #include <arpa/inet.h>
22675 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22676 case "(($ac_try" in
22677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22678 *) ac_try_echo=$ac_try;;
22680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22681 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22683 grep -v '^ *+' conftest.er1 >conftest.err
22685 cat conftest.err >&5
22686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22687 (exit $ac_status); } >/dev/null && {
22688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22689 test ! -s conftest.err
22691 ac_header_preproc=yes
22693 echo "$as_me: failed program was
:" >&5
22694 sed 's/^/| /' conftest.$ac_ext >&5
22696 ac_header_preproc=no
22699 rm -f conftest.err conftest.$ac_ext
22700 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22701 echo "${ECHO_T}$ac_header_preproc" >&6; }
22703 # So? What about this header?
22704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22706 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22707 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22708 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22709 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22710 ac_header_preproc=yes
22713 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22714 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22715 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22716 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22717 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22718 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22719 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22720 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22721 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22722 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22723 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22724 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22728 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22729 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22730 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22731 echo $ECHO_N "(cached
) $ECHO_C" >&6
22733 ac_cv_header_arpa_inet_h=$ac_header_preproc
22735 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22736 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22739 if test $ac_cv_header_arpa_inet_h = yes; then
22747 if test $ok_so_far = yes; then
22749 cat >>confdefs.h <<\_ACEOF
22750 #define HAVE_INET_SOCKETS 1
22756 for ac_header in sys/ioctl.h
22758 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22759 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22760 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22761 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22762 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22763 echo $ECHO_N "(cached
) $ECHO_C" >&6
22765 ac_res=`eval echo '${'$as_ac_Header'}'`
22766 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22767 echo "${ECHO_T}$ac_res" >&6; }
22769 # Is the header compilable?
22770 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22771 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22772 cat >conftest.$ac_ext <<_ACEOF
22775 cat confdefs.h >>conftest.$ac_ext
22776 cat >>conftest.$ac_ext <<_ACEOF
22777 /* end confdefs.h. */
22778 $ac_includes_default
22779 #include <$ac_header>
22781 rm -f conftest.$ac_objext
22782 if { (ac_try="$ac_compile"
22783 case "(($ac_try" in
22784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22785 *) ac_try_echo=$ac_try;;
22787 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22788 (eval "$ac_compile") 2>conftest.er1
22790 grep -v '^ *+' conftest.er1 >conftest.err
22792 cat conftest.err >&5
22793 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22794 (exit $ac_status); } && {
22795 test -z "$ac_c_werror_flag" ||
22796 test ! -s conftest.err
22797 } && test -s conftest.$ac_objext; then
22798 ac_header_compiler=yes
22800 echo "$as_me: failed program was
:" >&5
22801 sed 's/^/| /' conftest.$ac_ext >&5
22803 ac_header_compiler=no
22806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22807 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22808 echo "${ECHO_T}$ac_header_compiler" >&6; }
22810 # Is the header present?
22811 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22812 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22813 cat >conftest.$ac_ext <<_ACEOF
22816 cat confdefs.h >>conftest.$ac_ext
22817 cat >>conftest.$ac_ext <<_ACEOF
22818 /* end confdefs.h. */
22819 #include <$ac_header>
22821 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22822 case "(($ac_try" in
22823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22824 *) ac_try_echo=$ac_try;;
22826 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22827 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22829 grep -v '^ *+' conftest.er1 >conftest.err
22831 cat conftest.err >&5
22832 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22833 (exit $ac_status); } >/dev/null && {
22834 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22835 test ! -s conftest.err
22837 ac_header_preproc=yes
22839 echo "$as_me: failed program was
:" >&5
22840 sed 's/^/| /' conftest.$ac_ext >&5
22842 ac_header_preproc=no
22845 rm -f conftest.err conftest.$ac_ext
22846 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22847 echo "${ECHO_T}$ac_header_preproc" >&6; }
22849 # So? What about this header?
22850 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22852 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22853 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22854 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22855 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22856 ac_header_preproc=yes
22859 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22860 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22861 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22862 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22863 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22864 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22865 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22866 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22867 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22868 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22869 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22870 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22874 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22875 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22876 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22877 echo $ECHO_N "(cached
) $ECHO_C" >&6
22879 eval "$as_ac_Header=\
$ac_header_preproc"
22881 ac_res=`eval echo '${'$as_ac_Header'}'`
22882 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22883 echo "${ECHO_T}$ac_res" >&6; }
22886 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22887 cat >>confdefs.h <<_ACEOF
22888 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22896 if test -f /usr/lpp/X11/bin/smt.exp; then
22898 cat >>confdefs.h <<\_ACEOF
22899 #define HAVE_AIX_SMT_EXP 1
22904 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22905 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22906 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22907 { echo "$as_me:$LINENO: result
: yes" >&5
22908 echo "${ECHO_T}yes" >&6; }
22910 cat >>confdefs.h <<\_ACEOF
22911 #define HAVE_DEV_PTMX 1
22915 { echo "$as_me:$LINENO: result
: no
" >&5
22916 echo "${ECHO_T}no
" >&6; }
22919 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22920 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22921 if test "${ac_cv_type_pid_t+set}" = set; then
22922 echo $ECHO_N "(cached
) $ECHO_C" >&6
22924 cat >conftest.$ac_ext <<_ACEOF
22927 cat confdefs.h >>conftest.$ac_ext
22928 cat >>conftest.$ac_ext <<_ACEOF
22929 /* end confdefs.h. */
22930 $ac_includes_default
22931 typedef pid_t ac__type_new_;
22935 if ((ac__type_new_ *) 0)
22937 if (sizeof (ac__type_new_))
22943 rm -f conftest.$ac_objext
22944 if { (ac_try="$ac_compile"
22945 case "(($ac_try" in
22946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22947 *) ac_try_echo=$ac_try;;
22949 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22950 (eval "$ac_compile") 2>conftest.er1
22952 grep -v '^ *+' conftest.er1 >conftest.err
22954 cat conftest.err >&5
22955 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22956 (exit $ac_status); } && {
22957 test -z "$ac_c_werror_flag" ||
22958 test ! -s conftest.err
22959 } && test -s conftest.$ac_objext; then
22960 ac_cv_type_pid_t=yes
22962 echo "$as_me: failed program was
:" >&5
22963 sed 's/^/| /' conftest.$ac_ext >&5
22965 ac_cv_type_pid_t=no
22968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22970 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22971 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22972 if test $ac_cv_type_pid_t = yes; then
22976 cat >>confdefs.h <<_ACEOF
22983 for ac_header in vfork.h
22985 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22986 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22987 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22988 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22989 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22990 echo $ECHO_N "(cached
) $ECHO_C" >&6
22992 ac_res=`eval echo '${'$as_ac_Header'}'`
22993 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22994 echo "${ECHO_T}$ac_res" >&6; }
22996 # Is the header compilable?
22997 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22998 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22999 cat >conftest.$ac_ext <<_ACEOF
23002 cat confdefs.h >>conftest.$ac_ext
23003 cat >>conftest.$ac_ext <<_ACEOF
23004 /* end confdefs.h. */
23005 $ac_includes_default
23006 #include <$ac_header>
23008 rm -f conftest.$ac_objext
23009 if { (ac_try="$ac_compile"
23010 case "(($ac_try" in
23011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23012 *) ac_try_echo=$ac_try;;
23014 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23015 (eval "$ac_compile") 2>conftest.er1
23017 grep -v '^ *+' conftest.er1 >conftest.err
23019 cat conftest.err >&5
23020 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23021 (exit $ac_status); } && {
23022 test -z "$ac_c_werror_flag" ||
23023 test ! -s conftest.err
23024 } && test -s conftest.$ac_objext; then
23025 ac_header_compiler=yes
23027 echo "$as_me: failed program was
:" >&5
23028 sed 's/^/| /' conftest.$ac_ext >&5
23030 ac_header_compiler=no
23033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23034 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23035 echo "${ECHO_T}$ac_header_compiler" >&6; }
23037 # Is the header present?
23038 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23039 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23040 cat >conftest.$ac_ext <<_ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h. */
23046 #include <$ac_header>
23048 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23049 case "(($ac_try" in
23050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23051 *) ac_try_echo=$ac_try;;
23053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23054 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23056 grep -v '^ *+' conftest.er1 >conftest.err
23058 cat conftest.err >&5
23059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23060 (exit $ac_status); } >/dev/null && {
23061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23062 test ! -s conftest.err
23064 ac_header_preproc=yes
23066 echo "$as_me: failed program was
:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 ac_header_preproc=no
23072 rm -f conftest.err conftest.$ac_ext
23073 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23074 echo "${ECHO_T}$ac_header_preproc" >&6; }
23076 # So? What about this header?
23077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23079 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23080 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23081 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23083 ac_header_preproc=yes
23086 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23087 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23088 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23089 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23090 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23091 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23092 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23093 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23094 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23096 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23097 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23101 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23102 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23103 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23104 echo $ECHO_N "(cached
) $ECHO_C" >&6
23106 eval "$as_ac_Header=\
$ac_header_preproc"
23108 ac_res=`eval echo '${'$as_ac_Header'}'`
23109 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23110 echo "${ECHO_T}$ac_res" >&6; }
23113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23114 cat >>confdefs.h <<_ACEOF
23115 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23124 for ac_func in fork vfork
23126 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23127 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23128 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23129 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23130 echo $ECHO_N "(cached
) $ECHO_C" >&6
23132 cat >conftest.$ac_ext <<_ACEOF
23135 cat confdefs.h >>conftest.$ac_ext
23136 cat >>conftest.$ac_ext <<_ACEOF
23137 /* end confdefs.h. */
23138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23140 #define $ac_func innocuous_$ac_func
23142 /* System header to define __stub macros and hopefully few prototypes,
23143 which can conflict with char $ac_func (); below.
23144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23145 <limits.h> exists even on freestanding compilers. */
23148 # include <limits.h>
23150 # include <assert.h>
23155 /* Override any GCC internal prototype to avoid an error.
23156 Use char because int might match the return type of a GCC
23157 builtin and then its argument prototype would still apply. */
23162 /* The GNU C library defines this for functions which it implements
23163 to always fail with ENOSYS. Some functions are actually named
23164 something starting with __ and the normal name is an alias. */
23165 #if defined __stub_$ac_func || defined __stub___$ac_func
23172 return $ac_func ();
23177 rm -f conftest.$ac_objext conftest$ac_exeext
23178 if { (ac_try="$ac_link"
23179 case "(($ac_try" in
23180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23181 *) ac_try_echo=$ac_try;;
23183 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23184 (eval "$ac_link") 2>conftest.er1
23186 grep -v '^ *+' conftest.er1 >conftest.err
23188 cat conftest.err >&5
23189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23190 (exit $ac_status); } && {
23191 test -z "$ac_c_werror_flag" ||
23192 test ! -s conftest.err
23193 } && test -s conftest$ac_exeext &&
23194 $as_test_x conftest$ac_exeext; then
23195 eval "$as_ac_var=yes"
23197 echo "$as_me: failed program was
:" >&5
23198 sed 's/^/| /' conftest.$ac_ext >&5
23200 eval "$as_ac_var=no
"
23203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23204 conftest$ac_exeext conftest.$ac_ext
23206 ac_res=`eval echo '${'$as_ac_var'}'`
23207 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23208 echo "${ECHO_T}$ac_res" >&6; }
23209 if test `eval echo '${'$as_ac_var'}'` = yes; then
23210 cat >>confdefs.h <<_ACEOF
23211 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23217 if test "x
$ac_cv_func_fork" = xyes; then
23218 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23219 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23220 if test "${ac_cv_func_fork_works+set}" = set; then
23221 echo $ECHO_N "(cached
) $ECHO_C" >&6
23223 if test "$cross_compiling" = yes; then
23224 ac_cv_func_fork_works=cross
23226 cat >conftest.$ac_ext <<_ACEOF
23229 cat confdefs.h >>conftest.$ac_ext
23230 cat >>conftest.$ac_ext <<_ACEOF
23231 /* end confdefs.h. */
23232 $ac_includes_default
23237 /* By Ruediger Kuhlmann. */
23238 return fork () < 0;
23244 rm -f conftest$ac_exeext
23245 if { (ac_try="$ac_link"
23246 case "(($ac_try" in
23247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23248 *) ac_try_echo=$ac_try;;
23250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23251 (eval "$ac_link") 2>&5
23253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23254 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23255 { (case "(($ac_try" in
23256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23257 *) ac_try_echo=$ac_try;;
23259 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23260 (eval "$ac_try") 2>&5
23262 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23263 (exit $ac_status); }; }; then
23264 ac_cv_func_fork_works=yes
23266 echo "$as_me: program exited with status
$ac_status" >&5
23267 echo "$as_me: failed program was
:" >&5
23268 sed 's/^/| /' conftest.$ac_ext >&5
23270 ( exit $ac_status )
23271 ac_cv_func_fork_works=no
23273 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23278 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23279 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23282 ac_cv_func_fork_works=$ac_cv_func_fork
23284 if test "x
$ac_cv_func_fork_works" = xcross; then
23286 *-*-amigaos* | *-*-msdosdjgpp*)
23287 # Override, as these systems have only a dummy fork() stub
23288 ac_cv_func_fork_works=no
23291 ac_cv_func_fork_works=yes
23294 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23295 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23297 ac_cv_func_vfork_works=$ac_cv_func_vfork
23298 if test "x
$ac_cv_func_vfork" = xyes; then
23299 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23300 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23301 if test "${ac_cv_func_vfork_works+set}" = set; then
23302 echo $ECHO_N "(cached
) $ECHO_C" >&6
23304 if test "$cross_compiling" = yes; then
23305 ac_cv_func_vfork_works=cross
23307 cat >conftest.$ac_ext <<_ACEOF
23310 cat confdefs.h >>conftest.$ac_ext
23311 cat >>conftest.$ac_ext <<_ACEOF
23312 /* end confdefs.h. */
23313 /* Thanks to Paul Eggert for this test. */
23314 $ac_includes_default
23315 #include <sys/wait.h>
23316 #ifdef HAVE_VFORK_H
23317 # include <vfork.h>
23319 /* On some sparc systems, changes by the child to local and incoming
23320 argument registers are propagated back to the parent. The compiler
23321 is told about this with #include <vfork.h>, but some compilers
23322 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23323 static variable whose address is put into a register that is
23324 clobbered by the vfork. */
23327 sparc_address_test (int arg)
23329 sparc_address_test (arg) int arg;
23332 static pid_t child;
23350 pid_t parent = getpid ();
23353 sparc_address_test (0);
23358 /* Here is another test for sparc vfork register problems. This
23359 test uses lots of local variables, at least as many local
23360 variables as main has allocated so far including compiler
23361 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23362 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23363 reuse the register of parent for one of the local variables,
23364 since it will think that parent can't possibly be used any more
23365 in this routine. Assigning to the local variable will thus
23366 munge parent in the parent process. */
23368 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23369 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23370 /* Convince the compiler that p..p7 are live; otherwise, it might
23371 use the same hardware register for all 8 local variables. */
23372 if (p != p1 || p != p2 || p != p3 || p != p4
23373 || p != p5 || p != p6 || p != p7)
23376 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23377 from child file descriptors. If the child closes a descriptor
23378 before it execs or exits, this munges the parent's descriptor
23379 as well. Test for this by closing stdout in the child. */
23380 _exit(close(fileno(stdout)) != 0);
23385 while (wait(&status) != child)
23388 /* Was there some problem with vforking? */
23391 /* Did the child fail? (This shouldn't happen.) */
23394 /* Did the vfork/compiler bug occur? */
23395 || parent != getpid()
23397 /* Did the file descriptor bug occur? */
23398 || fstat(fileno(stdout), &st) != 0
23403 rm -f conftest$ac_exeext
23404 if { (ac_try="$ac_link"
23405 case "(($ac_try" in
23406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23407 *) ac_try_echo=$ac_try;;
23409 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23410 (eval "$ac_link") 2>&5
23412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23413 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23414 { (case "(($ac_try" in
23415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23416 *) ac_try_echo=$ac_try;;
23418 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23419 (eval "$ac_try") 2>&5
23421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23422 (exit $ac_status); }; }; then
23423 ac_cv_func_vfork_works=yes
23425 echo "$as_me: program exited with status
$ac_status" >&5
23426 echo "$as_me: failed program was
:" >&5
23427 sed 's/^/| /' conftest.$ac_ext >&5
23429 ( exit $ac_status )
23430 ac_cv_func_vfork_works=no
23432 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23437 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23438 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23441 if test "x
$ac_cv_func_fork_works" = xcross; then
23442 ac_cv_func_vfork_works=$ac_cv_func_vfork
23443 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23444 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23447 if test "x
$ac_cv_func_vfork_works" = xyes; then
23449 cat >>confdefs.h <<\_ACEOF
23450 #define HAVE_WORKING_VFORK 1
23455 cat >>confdefs.h <<\_ACEOF
23460 if test "x
$ac_cv_func_fork_works" = xyes; then
23462 cat >>confdefs.h <<\_ACEOF
23463 #define HAVE_WORKING_FORK 1
23469 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23470 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23471 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23472 echo $ECHO_N "(cached
) $ECHO_C" >&6
23474 cat >conftest.$ac_ext <<_ACEOF
23477 cat confdefs.h >>conftest.$ac_ext
23478 cat >>conftest.$ac_ext <<_ACEOF
23479 /* end confdefs.h. */
23480 #include <langinfo.h>
23484 char* cs = nl_langinfo(CODESET);
23489 rm -f conftest.$ac_objext conftest$ac_exeext
23490 if { (ac_try="$ac_link"
23491 case "(($ac_try" in
23492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23493 *) ac_try_echo=$ac_try;;
23495 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23496 (eval "$ac_link") 2>conftest.er1
23498 grep -v '^ *+' conftest.er1 >conftest.err
23500 cat conftest.err >&5
23501 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23502 (exit $ac_status); } && {
23503 test -z "$ac_c_werror_flag" ||
23504 test ! -s conftest.err
23505 } && test -s conftest$ac_exeext &&
23506 $as_test_x conftest$ac_exeext; then
23507 emacs_cv_langinfo_codeset=yes
23509 echo "$as_me: failed program was
:" >&5
23510 sed 's/^/| /' conftest.$ac_ext >&5
23512 emacs_cv_langinfo_codeset=no
23515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23516 conftest$ac_exeext conftest.$ac_ext
23519 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23520 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23521 if test $emacs_cv_langinfo_codeset = yes; then
23523 cat >>confdefs.h <<\_ACEOF
23524 #define HAVE_LANGINFO_CODESET 1
23529 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23530 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23531 if test "${ac_cv_type_size_t+set}" = set; then
23532 echo $ECHO_N "(cached
) $ECHO_C" >&6
23534 cat >conftest.$ac_ext <<_ACEOF
23537 cat confdefs.h >>conftest.$ac_ext
23538 cat >>conftest.$ac_ext <<_ACEOF
23539 /* end confdefs.h. */
23540 $ac_includes_default
23541 typedef size_t ac__type_new_;
23545 if ((ac__type_new_ *) 0)
23547 if (sizeof (ac__type_new_))
23553 rm -f conftest.$ac_objext
23554 if { (ac_try="$ac_compile"
23555 case "(($ac_try" in
23556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23557 *) ac_try_echo=$ac_try;;
23559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23560 (eval "$ac_compile") 2>conftest.er1
23562 grep -v '^ *+' conftest.er1 >conftest.err
23564 cat conftest.err >&5
23565 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23566 (exit $ac_status); } && {
23567 test -z "$ac_c_werror_flag" ||
23568 test ! -s conftest.err
23569 } && test -s conftest.$ac_objext; then
23570 ac_cv_type_size_t=yes
23572 echo "$as_me: failed program was
:" >&5
23573 sed 's/^/| /' conftest.$ac_ext >&5
23575 ac_cv_type_size_t=no
23578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23580 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23581 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23582 if test $ac_cv_type_size_t = yes; then
23584 cat >>confdefs.h <<_ACEOF
23585 #define HAVE_SIZE_T 1
23592 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23593 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23594 if test "${ac_cv_type_mbstate_t+set}" = set; then
23595 echo $ECHO_N "(cached
) $ECHO_C" >&6
23597 cat >conftest.$ac_ext <<_ACEOF
23600 cat confdefs.h >>conftest.$ac_ext
23601 cat >>conftest.$ac_ext <<_ACEOF
23602 /* end confdefs.h. */
23603 $ac_includes_default
23604 # include <wchar.h>
23608 mbstate_t x; return sizeof x;
23613 rm -f conftest.$ac_objext
23614 if { (ac_try="$ac_compile"
23615 case "(($ac_try" in
23616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23617 *) ac_try_echo=$ac_try;;
23619 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23620 (eval "$ac_compile") 2>conftest.er1
23622 grep -v '^ *+' conftest.er1 >conftest.err
23624 cat conftest.err >&5
23625 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23626 (exit $ac_status); } && {
23627 test -z "$ac_c_werror_flag" ||
23628 test ! -s conftest.err
23629 } && test -s conftest.$ac_objext; then
23630 ac_cv_type_mbstate_t=yes
23632 echo "$as_me: failed program was
:" >&5
23633 sed 's/^/| /' conftest.$ac_ext >&5
23635 ac_cv_type_mbstate_t=no
23638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23640 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23641 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23642 if test $ac_cv_type_mbstate_t = yes; then
23644 cat >>confdefs.h <<\_ACEOF
23645 #define HAVE_MBSTATE_T 1
23650 cat >>confdefs.h <<\_ACEOF
23651 #define mbstate_t int
23656 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23657 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23658 if test "${emacs_cv_c_restrict+set}" = set; then
23659 echo $ECHO_N "(cached
) $ECHO_C" >&6
23661 cat >conftest.$ac_ext <<_ACEOF
23664 cat confdefs.h >>conftest.$ac_ext
23665 cat >>conftest.$ac_ext <<_ACEOF
23666 /* end confdefs.h. */
23667 void fred (int *restrict x);
23676 rm -f conftest.$ac_objext
23677 if { (ac_try="$ac_compile"
23678 case "(($ac_try" in
23679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23680 *) ac_try_echo=$ac_try;;
23682 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23683 (eval "$ac_compile") 2>conftest.er1
23685 grep -v '^ *+' conftest.er1 >conftest.err
23687 cat conftest.err >&5
23688 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23689 (exit $ac_status); } && {
23690 test -z "$ac_c_werror_flag" ||
23691 test ! -s conftest.err
23692 } && test -s conftest.$ac_objext; then
23693 emacs_cv_c_restrict=yes
23695 echo "$as_me: failed program was
:" >&5
23696 sed 's/^/| /' conftest.$ac_ext >&5
23698 cat >conftest.$ac_ext <<_ACEOF
23701 cat confdefs.h >>conftest.$ac_ext
23702 cat >>conftest.$ac_ext <<_ACEOF
23703 /* end confdefs.h. */
23704 void fred (int *__restrict x);
23713 rm -f conftest.$ac_objext
23714 if { (ac_try="$ac_compile"
23715 case "(($ac_try" in
23716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23717 *) ac_try_echo=$ac_try;;
23719 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23720 (eval "$ac_compile") 2>conftest.er1
23722 grep -v '^ *+' conftest.er1 >conftest.err
23724 cat conftest.err >&5
23725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23726 (exit $ac_status); } && {
23727 test -z "$ac_c_werror_flag" ||
23728 test ! -s conftest.err
23729 } && test -s conftest.$ac_objext; then
23730 emacs_cv_c_restrict=__restrict
23732 echo "$as_me: failed program was
:" >&5
23733 sed 's/^/| /' conftest.$ac_ext >&5
23735 emacs_cv_c_restrict=no
23738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23743 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23744 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23745 case "$emacs_cv_c_restrict" in
23746 yes) emacs_restrict=restrict;;
23747 no) emacs_restrict="";;
23748 *) emacs_restrict="$emacs_cv_c_restrict";;
23750 if test "$emacs_restrict" != __restrict; then
23752 cat >>confdefs.h <<_ACEOF
23753 #define __restrict $emacs_restrict
23758 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23759 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23760 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23761 echo $ECHO_N "(cached
) $ECHO_C" >&6
23763 cat >conftest.$ac_ext <<_ACEOF
23766 cat confdefs.h >>conftest.$ac_ext
23767 cat >>conftest.$ac_ext <<_ACEOF
23768 /* end confdefs.h. */
23769 void fred (int x[__restrict]);
23778 rm -f conftest.$ac_objext
23779 if { (ac_try="$ac_compile"
23780 case "(($ac_try" in
23781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23782 *) ac_try_echo=$ac_try;;
23784 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23785 (eval "$ac_compile") 2>conftest.er1
23787 grep -v '^ *+' conftest.er1 >conftest.err
23789 cat conftest.err >&5
23790 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23791 (exit $ac_status); } && {
23792 test -z "$ac_c_werror_flag" ||
23793 test ! -s conftest.err
23794 } && test -s conftest.$ac_objext; then
23795 emacs_cv_c_restrict_arr=yes
23797 echo "$as_me: failed program was
:" >&5
23798 sed 's/^/| /' conftest.$ac_ext >&5
23800 emacs_cv_c_restrict_arr=no
23803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23805 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23806 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23807 if test "$emacs_cv_c_restrict_arr" = yes; then
23809 cat >>confdefs.h <<\_ACEOF
23810 #define __restrict_arr __restrict
23817 # Set up the CFLAGS for real compilation, so we can substitute it.
23818 CFLAGS="$REAL_CFLAGS"
23819 CPPFLAGS="$REAL_CPPFLAGS"
23821 #### Find out which version of Emacs this is.
23822 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23823 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23824 if test x"${version}" = x; then
23825 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23826 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23827 { (exit 1); exit 1; }; }
23830 ### Specify what sort of things we'll be editing into Makefile and config.h.
23831 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23871 cat >>confdefs.h <<_ACEOF
23872 #define EMACS_CONFIGURATION "${canonical}"
23876 cat >>confdefs.h <<_ACEOF
23877 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23881 cat >>confdefs.h <<_ACEOF
23882 #define config_machfile "${machfile}"
23886 cat >>confdefs.h <<_ACEOF
23887 #define config_opsysfile "${opsysfile}"
23891 cat >>confdefs.h <<_ACEOF
23892 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23896 cat >>confdefs.h <<_ACEOF
23897 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23901 cat >>confdefs.h <<_ACEOF
23902 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23906 cat >>confdefs.h <<_ACEOF
23907 #define UNEXEC_SRC ${UNEXEC_SRC}
23911 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23913 cat >>confdefs.h <<\_ACEOF
23914 #define HAVE_X_WINDOWS 1
23918 if test "${USE_X_TOOLKIT}" != "none
" ; then
23920 cat >>confdefs.h <<\_ACEOF
23921 #define USE_X_TOOLKIT 1
23924 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
23926 cat >>confdefs.h <<\_ACEOF
23927 #define USE_LUCID 1
23930 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
23932 cat >>confdefs.h <<\_ACEOF
23933 #define USE_MOTIF 1
23938 if test "${HAVE_X11}" = "yes" ; then
23940 cat >>confdefs.h <<\_ACEOF
23945 if test "${HAVE_MENUS}" = "yes" ; then
23947 cat >>confdefs.h <<\_ACEOF
23948 #define HAVE_MENUS 1
23952 if test "${GNU_MALLOC}" = "yes" ; then
23954 cat >>confdefs.h <<\_ACEOF
23955 #define GNU_MALLOC 1
23959 if test "${REL_ALLOC}" = "yes" ; then
23961 cat >>confdefs.h <<\_ACEOF
23962 #define REL_ALLOC 1
23972 #### Report on what we decided to do.
23973 #### Report GTK as a toolkit, even if it doesn't use Xt.
23974 #### It makes printing result more understandable as using GTK sets
23975 #### toolkit_scroll_bars to yes by default.
23976 if test "${HAVE_GTK}" = "yes"; then
23981 Configured
for \
`${canonical}'.
23983 Where should the build process find the source code? ${srcdir}
23984 What operating system and machine description files should Emacs use?
23985 \`${opsysfile}' and \`${machfile}'
23986 What compiler should emacs be built with?
${CC} ${CFLAGS}
23987 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23988 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23989 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23990 What window system should Emacs use?
${window_system}
23991 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23993 if test -n "${x_includes}"; then
23994 echo " Where
do we
find X Windows header files?
${x_includes}"
23996 echo " Where
do we
find X Windows header files? Standard
dirs"
23998 if test -n "${x_libraries}"; then
23999 echo " Where
do we
find X Windows libraries?
${x_libraries}"
24001 echo " Where
do we
find X Windows libraries? Standard
dirs"
24004 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
24005 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
24006 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
24007 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
24008 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
24009 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
24010 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
24011 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
24012 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
24014 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
24015 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
24016 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
24017 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
24019 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
24022 if test $USE_XASSERTS = yes; then
24023 echo " Compiling with asserts turned on.
"
24024 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24029 if test "$USE_X_TOOLKIT" = GTK; then
24030 case "$canonical" in
24032 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
24033 will probably get a crash on startup. If this happens
, please use another
24034 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
24039 if test "$HAVE_NS" = "yes"; then
24041 echo "You must run
\"make install\" in order to
test the built application.
24042 The installed application will go to nextstep
/Emacs.app and can be
24043 run or moved from there.
"
24044 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24045 echo "The application will be fully self-contained.
"
24047 echo "The lisp resources
for the application will be installed under
${prefix}.
24048 You may need to run
\"make install\" with sudo. The application will fail
24049 to run
if these resources are not installed.
"
24054 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24055 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24060 # Remove any trailing slashes in these variables.
24061 test "${prefix}" != NONE &&
24062 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24063 test "${exec_prefix}" != NONE &&
24064 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24066 # Now get this: Some word that is part of the ${srcdir} directory name
24067 # or the ${configuration} value might, just might, happen to be an
24068 # identifier like `sun4' or `i386' or something, and be predefined by
24069 # the C preprocessor to some helpful value like 1, or maybe the empty
24070 # string. Needless to say consequent macro substitutions are less
24071 # than conducive to the makefile finding the correct directory.
24072 cpp_undefs="`echo $srcdir $configuration $canonical |
24073 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24074 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24076 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24077 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24078 ## from Makefile.c can correctly provide the arg `-traditional' to the
24081 cat >conftest.$ac_ext <<_ACEOF
24084 cat confdefs.h >>conftest.$ac_ext
24085 cat >>conftest.$ac_ext <<_ACEOF
24086 /* end confdefs.h. */
24089 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24090 $EGREP "yes..
yes" >/dev/null 2>&1; then
24091 CPP_NEED_TRADITIONAL=no
24093 CPP_NEED_TRADITIONAL=yes
24098 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
"
24100 ac_config_commands="$ac_config_commands default
"
24102 cat >confcache <<\_ACEOF
24103 # This file is a shell script that caches the results of configure
24104 # tests run on this system so they can be shared between configure
24105 # scripts and configure runs, see configure's option --config-cache.
24106 # It is not useful on other systems. If it contains results you don't
24107 # want to keep, you may remove or edit it.
24109 # config.status only pays attention to the cache file if you give it
24110 # the --recheck option to rerun configure.
24112 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24113 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24114 # following values.
24118 # The following way of writing the cache mishandles newlines in values,
24119 # but we know of no workaround that is simple, portable, and efficient.
24120 # So, we kill variables containing newlines.
24121 # Ultrix sh set writes to stderr and can't be redirected directly,
24122 # and sets the high bit in the cache file unless we assign to the vars.
24124 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24125 eval ac_val=\$$ac_var
24129 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24130 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24133 _ | IFS | as_nl) ;; #(
24134 *) $as_unset $ac_var ;;
24140 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24141 *${as_nl}ac_space=\ *)
24142 # `set' does not quote correctly, so add quotes (double-quote
24143 # substitution turns \\\\ into \\, and sed turns \\ into \).
24146 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24149 # `set' quotes correctly as required by POSIX, so do not add quotes.
24150 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24159 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24161 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24163 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24164 if test -w "$cache_file"; then
24165 test "x
$cache_file" != "x
/dev
/null
" &&
24166 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24167 echo "$as_me: updating cache
$cache_file" >&6;}
24168 cat confcache >$cache_file
24170 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24171 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24176 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24177 # Let make expand exec_prefix.
24178 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24180 DEFS=-DHAVE_CONFIG_H
24184 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24185 # 1. Remove the extension, and $U if already installed.
24186 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24187 ac_i=`echo "$ac_i" | sed "$ac_script"`
24188 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24189 # will be set to the directory where LIBOBJS objects are built.
24190 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24191 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24193 LIBOBJS=$ac_libobjs
24195 LTLIBOBJS=$ac_ltlibobjs
24199 : ${CONFIG_STATUS=./config.status}
24200 ac_clean_files_save=$ac_clean_files
24201 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24202 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24203 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24204 cat >$CONFIG_STATUS <<_ACEOF
24206 # Generated by $as_me.
24207 # Run this file to recreate the current configuration.
24208 # Compiler output produced by configure, useful for debugging
24209 # configure, is in config.log if it exists.
24212 ac_cs_recheck=false
24214 SHELL=\${CONFIG_SHELL-$SHELL}
24217 cat >>$CONFIG_STATUS <<\_ACEOF
24218 ## --------------------- ##
24219 ## M4sh Initialization. ##
24220 ## --------------------- ##
24222 # Be more Bourne compatible
24223 DUALCASE=1; export DUALCASE # for MKS sh
24224 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24227 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24228 # is contrary to our usage. Disable this feature.
24229 alias -g '${1+"$@"}'='"$@
"'
24230 setopt NO_GLOB_SUBST
24232 case `(set -o) 2>/dev/null` in
24233 *posix*) set -o posix ;;
24242 # Avoid depending upon Character Ranges.
24243 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24244 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24245 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24246 as_cr_digits='0123456789'
24247 as_cr_alnum=$as_cr_Letters$as_cr_digits
24249 # The user is always right.
24250 if test "${PATH_SEPARATOR+set}" != set; then
24251 echo "#! /bin/sh" >conf$$.sh
24252 echo "exit 0" >>conf$$.sh
24254 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24262 # Support unset when possible.
24263 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24271 # We need space, tab and new line, in precisely that order. Quoting is
24272 # there to prevent editors from complaining about space-tab.
24273 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24274 # splitting by setting IFS to empty value.)
24279 # Find who we are. Look in the path if we contain no directory separator.
24281 *[\\/]* ) as_myself
=$0 ;;
24282 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24283 for as_dir
in $PATH
24286 test -z "$as_dir" && as_dir
=.
24287 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24293 # We did not find ourselves, most probably we were run as `sh COMMAND'
24294 # in which case we are not to be found in the path.
24295 if test "x$as_myself" = x
; then
24298 if test ! -f "$as_myself"; then
24299 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24300 { (exit 1); exit 1; }
24303 # Work around bugs in pre-3.0 UWIN ksh.
24304 for as_var
in ENV MAIL MAILPATH
24305 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24313 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24314 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24315 LC_TELEPHONE LC_TIME
24317 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24318 eval $as_var=C
; export $as_var
24320 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24324 # Required to use basename.
24325 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24326 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24332 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24333 as_basename
=basename
24339 # Name of the executable.
24340 as_me
=`$as_basename -- "$0" ||
24341 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24342 X"$0" : 'X\(//\)$' \| \
24343 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24345 sed '/^.*\/\([^/][^/]*\)\/*$/{
24364 as_lineno_1
=$LINENO
24365 as_lineno_2
=$LINENO
24366 test "x$as_lineno_1" != "x$as_lineno_2" &&
24367 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24369 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24370 # uniformly replaced by the line number. The first 'sed' inserts a
24371 # line-number line after each line using $LINENO; the second 'sed'
24372 # does the real work. The second script uses 'N' to pair each
24373 # line-number line with the line containing $LINENO, and appends
24374 # trailing '-' during substitution so that $LINENO is not a special
24375 # case at line end.
24376 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24377 # scripts with optimization help from Paolo Bonzini. Blame Lee
24378 # E. McMahon (1931-1989) for sed's syntax. :-)
24390 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24393 ' >$as_me.lineno
&&
24394 chmod +x
"$as_me.lineno" ||
24395 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24396 { (exit 1); exit 1; }; }
24398 # Don't try to exec as it changes $[0], causing all sort of problems
24399 # (the dirname of $[0] is not the place where we might find the
24400 # original and so on. Autoconf is especially sensitive to this).
24401 .
"./$as_me.lineno"
24402 # Exit status is that of the last command.
24407 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24413 ECHO_C
= ECHO_N
= ECHO_T
=
24414 case `echo -n x` in
24416 case `echo 'x\c'` in
24417 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24424 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24425 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24431 rm -f conf$$ conf$$.exe conf$$.
file
24432 if test -d conf$$.dir
; then
24433 rm -f conf$$.dir
/conf$$.
file
24439 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24441 # ... but there are two gotchas:
24442 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24443 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24444 # In both cases, we have to default to `cp -p'.
24445 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24447 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24452 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24453 rmdir conf$$.dir
2>/dev
/null
24455 if mkdir
-p .
2>/dev
/null
; then
24458 test -d .
/-p && rmdir .
/-p
24462 if test -x / >/dev
/null
2>&1; then
24463 as_test_x
='test -x'
24465 if ls -dL / >/dev
/null
2>&1; then
24472 if test -d "$1"; then
24478 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24479 ???[sx]*):;;*)false;;esac;fi
24483 as_executable_p
=$as_test_x
24485 # Sed expression to map a string onto a valid CPP name.
24486 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24488 # Sed expression to map a string onto a valid variable name.
24489 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24494 # Save the log message, to keep $[0] and so on meaningful, and to
24495 # report actual input values of CONFIG_FILES etc. instead of their
24496 # values after options handling.
24498 This file was extended by emacs $as_me 23.0.60, which was
24499 generated by GNU Autoconf 2.61. Invocation command line was
24501 CONFIG_FILES = $CONFIG_FILES
24502 CONFIG_HEADERS = $CONFIG_HEADERS
24503 CONFIG_LINKS = $CONFIG_LINKS
24504 CONFIG_COMMANDS = $CONFIG_COMMANDS
24507 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24512 cat >>$CONFIG_STATUS <<_ACEOF
24513 # Files that config.status was made for.
24514 config_files="$ac_config_files"
24515 config_headers="$ac_config_headers"
24516 config_commands="$ac_config_commands"
24520 cat >>$CONFIG_STATUS <<\_ACEOF
24522 \`$as_me' instantiates files from templates according to the
24523 current configuration.
24525 Usage: $0 [OPTIONS] [FILE]...
24527 -h, --help print this help, then exit
24528 -V, --version print version number and configuration settings, then exit
24529 -q, --quiet do not print progress messages
24530 -d, --debug don't remove temporary files
24531 --recheck update $as_me by reconfiguring in the same conditions
24532 --file=FILE[:TEMPLATE]
24533 instantiate the configuration file FILE
24534 --header=FILE[:TEMPLATE]
24535 instantiate the configuration header FILE
24537 Configuration files:
24540 Configuration headers:
24543 Configuration commands:
24546 Report bugs to <bug-autoconf@gnu.org>."
24549 cat >>$CONFIG_STATUS <<_ACEOF
24551 emacs config.status 23.0.60
24552 configured by $0, generated by GNU Autoconf 2.61,
24553 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24555 Copyright (C) 2006 Free Software Foundation, Inc.
24556 This config.status script is free software; the Free Software Foundation
24557 gives unlimited permission to copy, distribute and modify it."
24564 cat >>$CONFIG_STATUS <<\_ACEOF
24565 # If no file are specified by the user, then we need to provide default
24566 # value. By we need to know if files were specified by the user.
24572 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24573 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24584 # Handling of the options.
24585 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24587 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24588 echo "$ac_cs_version"; exit ;;
24589 --debug |
--debu |
--deb |
--de |
--d |
-d )
24591 --file |
--fil |
--fi |
--f )
24593 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24594 ac_need_defaults
=false
;;
24595 --header |
--heade |
--head |
--hea )
24597 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24598 ac_need_defaults
=false
;;
24600 # Conflict between --help and --header
24601 { echo "$as_me: error: ambiguous option: $1
24602 Try \`$0 --help' for more information." >&2
24603 { (exit 1); exit 1; }; };;
24604 --help |
--hel |
-h )
24605 echo "$ac_cs_usage"; exit ;;
24606 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24607 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24610 # This is an error.
24611 -*) { echo "$as_me: error: unrecognized option: $1
24612 Try \`$0 --help' for more information." >&2
24613 { (exit 1); exit 1; }; } ;;
24615 *) ac_config_targets
="$ac_config_targets $1"
24616 ac_need_defaults
=false
;;
24622 ac_configure_extra_args
=
24624 if $ac_cs_silent; then
24626 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24630 cat >>$CONFIG_STATUS <<_ACEOF
24631 if \$ac_cs_recheck; then
24632 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24633 CONFIG_SHELL=$SHELL
24634 export CONFIG_SHELL
24635 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24639 cat >>$CONFIG_STATUS <<\_ACEOF
24643 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24644 ## Running $as_me. ##
24650 cat >>$CONFIG_STATUS <<_ACEOF
24654 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24658 cat >>$CONFIG_STATUS <<\_ACEOF
24660 # Handling of arguments.
24661 for ac_config_target
in $ac_config_targets
24663 case $ac_config_target in
24664 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24665 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24666 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24667 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24668 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24669 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24670 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24671 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24672 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24673 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24674 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24675 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24676 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24678 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24679 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24680 { (exit 1); exit 1; }; };;
24685 # If the user did not use the arguments to specify the items to instantiate,
24686 # then the envvar interface is used. Set only those that are not.
24687 # We use the long form for the default assignment because of an extremely
24688 # bizarre bug on SunOS 4.1.3.
24689 if $ac_need_defaults; then
24690 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24691 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24692 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24695 # Have a temporary directory for convenience. Make it in the build tree
24696 # simply because there is no reason against having it here, and in addition,
24697 # creating and moving files from /tmp can sometimes cause problems.
24698 # Hook for its removal unless debugging.
24699 # Note that there is a small window in which the directory will not be cleaned:
24700 # after its creation but before its name has been assigned to `$tmp'.
24704 trap 'exit_status=$?
24705 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24707 trap '{ (exit 1); exit 1; }' 1 2 13 15
24709 # Create a (secure) tmp directory for tmp files.
24712 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24713 test -n "$tmp" && test -d "$tmp"
24716 tmp
=.
/conf$$
-$RANDOM
24717 (umask 077 && mkdir
"$tmp")
24720 echo "$me: cannot create a temporary directory in ." >&2
24721 { (exit 1); exit 1; }
24725 # Set up the sed scripts for CONFIG_FILES section.
24728 # No need to generate the scripts if there are no CONFIG_FILES.
24729 # This happens for instance when ./config.status config.h
24730 if test -n "$CONFIG_FILES"; then
24737 for ac_last_try
in false false false false false
:; do
24738 cat >conf$
$subs.
sed <<_ACEOF
24739 SHELL!$SHELL$ac_delim
24740 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24741 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24742 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24743 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24744 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24745 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24746 exec_prefix!$exec_prefix$ac_delim
24747 prefix!$prefix$ac_delim
24748 program_transform_name!$program_transform_name$ac_delim
24749 bindir!$bindir$ac_delim
24750 sbindir!$sbindir$ac_delim
24751 libexecdir!$libexecdir$ac_delim
24752 datarootdir!$datarootdir$ac_delim
24753 datadir!$datadir$ac_delim
24754 sysconfdir!$sysconfdir$ac_delim
24755 sharedstatedir!$sharedstatedir$ac_delim
24756 localstatedir!$localstatedir$ac_delim
24757 includedir!$includedir$ac_delim
24758 oldincludedir!$oldincludedir$ac_delim
24759 docdir!$docdir$ac_delim
24760 infodir!$infodir$ac_delim
24761 htmldir!$htmldir$ac_delim
24762 dvidir!$dvidir$ac_delim
24763 pdfdir!$pdfdir$ac_delim
24764 psdir!$psdir$ac_delim
24765 libdir!$libdir$ac_delim
24766 localedir!$localedir$ac_delim
24767 mandir!$mandir$ac_delim
24768 DEFS!$DEFS$ac_delim
24769 ECHO_C!$ECHO_C$ac_delim
24770 ECHO_N!$ECHO_N$ac_delim
24771 ECHO_T!$ECHO_T$ac_delim
24772 LIBS!$LIBS$ac_delim
24773 build_alias!$build_alias$ac_delim
24774 host_alias!$host_alias$ac_delim
24775 target_alias!$target_alias$ac_delim
24776 MAINT!$MAINT$ac_delim
24777 build!$build$ac_delim
24778 build_cpu!$build_cpu$ac_delim
24779 build_vendor!$build_vendor$ac_delim
24780 build_os!$build_os$ac_delim
24781 host!$host$ac_delim
24782 host_cpu!$host_cpu$ac_delim
24783 host_vendor!$host_vendor$ac_delim
24784 host_os!$host_os$ac_delim
24786 CFLAGS!$CFLAGS$ac_delim
24787 LDFLAGS!$LDFLAGS$ac_delim
24788 CPPFLAGS!$CPPFLAGS$ac_delim
24789 ac_ct_CC!$ac_ct_CC$ac_delim
24790 EXEEXT!$EXEEXT$ac_delim
24791 OBJEXT!$OBJEXT$ac_delim
24793 GREP!$GREP$ac_delim
24794 EGREP!$EGREP$ac_delim
24795 LN_S!$LN_S$ac_delim
24796 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24797 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24798 INSTALL_DATA!$INSTALL_DATA$ac_delim
24799 RANLIB!$RANLIB$ac_delim
24800 INSTALL_INFO!$INSTALL_INFO$ac_delim
24801 GZIP_PROG!$GZIP_PROG$ac_delim
24802 MAKEINFO!$MAKEINFO$ac_delim
24803 LIBSOUND!$LIBSOUND$ac_delim
24804 PKG_CONFIG!$PKG_CONFIG$ac_delim
24805 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24806 ALSA_LIBS!$ALSA_LIBS$ac_delim
24807 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24808 SET_MAKE!$SET_MAKE$ac_delim
24809 XMKMF!$XMKMF$ac_delim
24810 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24811 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24812 RSVG_LIBS!$RSVG_LIBS$ac_delim
24813 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24814 GTK_LIBS!$GTK_LIBS$ac_delim
24815 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24816 DBUS_LIBS!$DBUS_LIBS$ac_delim
24817 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24818 XFT_LIBS!$XFT_LIBS$ac_delim
24819 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24820 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24821 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24822 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24823 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24824 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24825 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24826 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24827 ALLOCA!$ALLOCA$ac_delim
24828 liblockfile!$liblockfile$ac_delim
24829 LIBOBJS!$LIBOBJS$ac_delim
24830 NEED_SETGID!$NEED_SETGID$ac_delim
24831 KMEM_GROUP!$KMEM_GROUP$ac_delim
24832 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24833 GETOPT_H!$GETOPT_H$ac_delim
24834 GETOPTOBJS!$GETOPTOBJS$ac_delim
24835 version!$version$ac_delim
24838 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24840 elif $ac_last_try; then
24841 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24842 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24843 { (exit 1); exit 1; }; }
24845 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24849 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24850 if test -n "$ac_eof"; then
24851 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24852 ac_eof
=`expr $ac_eof + 1`
24855 cat >>$CONFIG_STATUS <<_ACEOF
24856 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24860 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24861 s/^/s,@/; s/!/@,|#_!!_#|/
24864 s/'"$ac_delim"'$/,g/; t
24866 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24867 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24868 rm -f conf$
$subs.
sed
24869 cat >>$CONFIG_STATUS <<_ACEOF
24875 for ac_last_try
in false false false false false
:; do
24876 cat >conf$
$subs.
sed <<_ACEOF
24877 configuration!$configuration$ac_delim
24878 canonical!$canonical$ac_delim
24879 srcdir!$srcdir$ac_delim
24880 lispdir!$lispdir$ac_delim
24881 locallisppath!$locallisppath$ac_delim
24882 lisppath!$lisppath$ac_delim
24883 x_default_search_path!$x_default_search_path$ac_delim
24884 etcdir!$etcdir$ac_delim
24885 archlibdir!$archlibdir$ac_delim
24886 bitmapdir!$bitmapdir$ac_delim
24887 gamedir!$gamedir$ac_delim
24888 gameuser!$gameuser$ac_delim
24889 c_switch_system!$c_switch_system$ac_delim
24890 c_switch_machine!$c_switch_machine$ac_delim
24891 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24892 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24893 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24894 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24895 machfile!$machfile$ac_delim
24896 opsysfile!$opsysfile$ac_delim
24897 ns_appdir!$ns_appdir$ac_delim
24898 ns_appbindir!$ns_appbindir$ac_delim
24899 ns_appresdir!$ns_appresdir$ac_delim
24900 ns_appsrc!$ns_appsrc$ac_delim
24901 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
24902 LTLIBOBJS!$LTLIBOBJS$ac_delim
24905 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
24907 elif $ac_last_try; then
24908 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24909 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24910 { (exit 1); exit 1; }; }
24912 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24916 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24917 if test -n "$ac_eof"; then
24918 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24919 ac_eof
=`expr $ac_eof + 1`
24922 cat >>$CONFIG_STATUS <<_ACEOF
24923 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24924 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24927 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24928 s/^/s,@/; s/!/@,|#_!!_#|/
24931 s/'"$ac_delim"'$/,g/; t
24933 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24934 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24935 rm -f conf$
$subs.
sed
24936 cat >>$CONFIG_STATUS <<_ACEOF
24943 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24944 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24945 # trailing colons and then remove the whole line if VPATH becomes empty
24946 # (actually we leave an empty line to preserve line numbers).
24947 if test "x$srcdir" = x.
; then
24948 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24949 s/:*\$(srcdir):*/:/
24950 s/:*\${srcdir}:*/:/
24952 s/^\([^=]*=[ ]*\):*/\1/
24958 cat >>$CONFIG_STATUS <<\_ACEOF
24959 fi # test -n "$CONFIG_FILES"
24962 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24965 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24967 case $ac_mode$ac_tag in
24969 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24970 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24971 { (exit 1); exit 1; }; };;
24972 :[FH
]-) ac_tag
=-:-;;
24973 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24990 -) ac_f
="$tmp/stdin";;
24991 *) # Look for the file first in the build tree, then in the source tree
24992 # (if the path is not absolute). The absolute path cannot be DOS-style,
24993 # because $ac_f cannot contain `:'.
24997 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24999 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25000 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25001 { (exit 1); exit 1; }; };;
25003 ac_file_inputs
="$ac_file_inputs $ac_f"
25006 # Let's still pretend it is `configure' which instantiates (i.e., don't
25007 # use $as_me), people would be surprised to read:
25008 # /* config.h. Generated by config.status. */
25009 configure_input
="Generated from "`IFS=:
25010 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25011 if test x
"$ac_file" != x-
; then
25012 configure_input
="$ac_file. $configure_input"
25013 { echo "$as_me:$LINENO: creating $ac_file" >&5
25014 echo "$as_me: creating $ac_file" >&6;}
25018 *:-:* |
*:-) cat >"$tmp/stdin";;
25023 ac_dir
=`$as_dirname -- "$ac_file" ||
25024 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25025 X"$ac_file" : 'X\(//\)[^/]' \| \
25026 X"$ac_file" : 'X\(//\)$' \| \
25027 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25033 /^X\(\/\/\)[^/].*/{
25048 -*) as_dir
=.
/$as_dir;;
25050 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25054 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25055 *) as_qdir
=$as_dir;;
25057 as_dirs
="'$as_qdir' $as_dirs"
25058 as_dir
=`$as_dirname -- "$as_dir" ||
25059 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25060 X"$as_dir" : 'X\(//\)[^/]' \| \
25061 X"$as_dir" : 'X\(//\)$' \| \
25062 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25064 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25068 /^X\(\/\/\)[^/].*/{
25081 test -d "$as_dir" && break
25083 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25084 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25085 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25086 { (exit 1); exit 1; }; }; }
25090 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25092 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25093 # A ".." for each directory in $ac_dir_suffix.
25094 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25095 case $ac_top_builddir_sub in
25096 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25097 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25100 ac_abs_top_builddir
=$ac_pwd
25101 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25102 # for backward compatibility:
25103 ac_top_builddir
=$ac_top_build_prefix
25106 .
) # We are building in place.
25108 ac_top_srcdir
=$ac_top_builddir_sub
25109 ac_abs_top_srcdir
=$ac_pwd ;;
25110 [\\/]* | ?
:[\\/]* ) # Absolute name.
25111 ac_srcdir
=$srcdir$ac_dir_suffix;
25112 ac_top_srcdir
=$srcdir
25113 ac_abs_top_srcdir
=$srcdir ;;
25114 *) # Relative name.
25115 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25116 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25117 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25119 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25129 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25130 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25134 cat >>$CONFIG_STATUS <<\_ACEOF
25135 # If the template does not know about datarootdir, expand it.
25136 # FIXME: This hack should be removed a few years after 2.60.
25137 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25139 case `sed -n '/datarootdir/ {
25148 ' $ac_file_inputs` in
25149 *datarootdir
*) ac_datarootdir_seen
=yes;;
25150 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25151 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25152 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25154 cat >>$CONFIG_STATUS <<_ACEOF
25155 ac_datarootdir_hack='
25156 s&@datadir@&$datadir&g
25157 s&@docdir@&$docdir&g
25158 s&@infodir@&$infodir&g
25159 s&@localedir@&$localedir&g
25160 s&@mandir@&$mandir&g
25161 s&\\\${datarootdir}&$datarootdir&g' ;;
25165 # Neutralize VPATH when `$srcdir' = `.'.
25166 # Shell code in configure.ac might set extrasub.
25167 # FIXME: do we really want to maintain this feature?
25168 cat >>$CONFIG_STATUS <<_ACEOF
25172 cat >>$CONFIG_STATUS <<\_ACEOF
25174 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25175 s
&@configure_input@
&$configure_input&;t t
25176 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25177 s
&@srcdir@
&$ac_srcdir&;t t
25178 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25179 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25180 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25181 s
&@builddir@
&$ac_builddir&;t t
25182 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25183 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25184 s
&@INSTALL@
&$ac_INSTALL&;t t
25185 $ac_datarootdir_hack
25186 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25188 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25189 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25190 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25191 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25192 which seems to be undefined. Please make sure it is defined." >&5
25193 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25194 which seems to be undefined. Please make sure it is defined." >&2;}
25198 -) cat "$tmp/out"; rm -f "$tmp/out";;
25199 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25208 # Transform confdefs.h into a sed script `conftest.defines', that
25209 # substitutes the proper values into config.h.in to produce config.h.
25210 rm -f conftest.defines conftest.
tail
25211 # First, append a space to every undef/define line, to ease matching.
25212 echo 's/$/ /' >conftest.defines
25213 # Then, protect against being on the right side of a sed subst, or in
25214 # an unquoted here document, in config.status. If some macros were
25215 # called several times there might be several #defines for the same
25216 # symbol, which is useless. But do not sort them, since the last
25217 # AC_DEFINE must be honored.
25218 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25219 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25220 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25221 # PARAMS is the parameter list in the macro definition--in most cases, it's
25222 # just an empty string.
25223 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25224 ac_dB
='\\)[ (].*,\\1define\\2'
25232 s/^[ ]*#[ ]*define[ ][ ]*//
25237 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25238 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25239 ' >>conftest.defines
25241 # Remove the space that was appended to ease matching.
25242 # Then replace #undef with comments. This is necessary, for
25243 # example, in the case of _POSIX_SOURCE, which is predefined and required
25244 # on some systems where configure will not decide to define it.
25245 # (The regexp can be short, since the line contains either #define or #undef.)
25247 s,^[ #]*u.*,/* & */,' >>conftest.defines
25249 # Break up conftest.defines:
25250 ac_max_sed_lines
=50
25252 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25253 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25254 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25256 ac_in
='$ac_file_inputs'
25257 ac_out
='"$tmp/out1"'
25258 ac_nxt
='"$tmp/out2"'
25262 # Write a here document:
25263 cat >>$CONFIG_STATUS <<_ACEOF
25264 # First, check the format of the line:
25265 cat >"\$tmp/defines.sed" <<\\CEOF
25266 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25267 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25271 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25273 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25274 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25275 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25276 grep . conftest.
tail >/dev
/null ||
break
25277 rm -f conftest.defines
25278 mv conftest.
tail conftest.defines
25280 rm -f conftest.defines conftest.
tail
25282 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25283 cat >>$CONFIG_STATUS <<\_ACEOF
25284 if test x
"$ac_file" != x-
; then
25285 echo "/* $configure_input */" >"$tmp/config.h"
25286 cat "$ac_result" >>"$tmp/config.h"
25287 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25288 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25289 echo "$as_me: $ac_file is unchanged" >&6;}
25292 mv "$tmp/config.h" $ac_file
25295 echo "/* $configure_input */"
25301 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25302 echo "$as_me: executing $ac_file commands" >&6;}
25307 case $ac_file$ac_mode in
25310 ### Make the necessary directories, if they don't exist.
25311 for dir
in etc lisp
; do
25312 test -d ${dir} || mkdir
${dir}
25315 # Build src/Makefile from ${srcdir}/src/Makefile.c
25316 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25317 # This must be done after src/config.h is built, since we rely on that file.
25319 echo creating src
/epaths.h
25320 ${MAKE-make} epaths-force
25322 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25323 # `..' to `. .' unless invoked with -traditional
25325 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25326 CPPFLAGS
="$CPPFLAGS -traditional"
25329 echo creating lib-src
/Makefile
25331 rm -f junk.c junk1.c junk2.c
25332 sed -e '/start of cpp stuff/q' \
25333 < Makefile.c
> junk1.c
25334 sed -e '1,/start of cpp stuff/d'\
25335 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25336 < Makefile.c
> junk.c
25337 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25338 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25339 cat junk1.c junk2.c
> Makefile.new
25340 rm -f junk.c junk1.c junk2.c
25341 chmod 444 Makefile.new
25342 mv -f Makefile.new Makefile
25345 echo creating src
/Makefile
25347 rm -f junk.c junk1.c junk2.c
25348 sed -e '/start of cpp stuff/q' \
25349 < Makefile.c
> junk1.c
25350 sed -e '1,/start of cpp stuff/d'\
25351 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25352 < Makefile.c
> junk.c
25353 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25354 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25355 cat junk1.c junk2.c
> Makefile.new
25356 rm -f junk.c junk1.c junk2.c
25357 chmod 444 Makefile.new
25358 mv -f Makefile.new Makefile
25361 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25362 echo creating src
/.gdbinit
25363 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25372 { (exit 0); exit 0; }
25374 chmod +x
$CONFIG_STATUS
25375 ac_clean_files
=$ac_clean_files_save
25378 # configure is writing to config.log, and then calls config.status.
25379 # config.status does its own redirection, appending to config.log.
25380 # Unfortunately, on DOS this fails, as config.log is still kept open
25381 # by configure, so config.status won't be able to write to it; its
25382 # output is simply discarded. So we exec the FD to /dev/null,
25383 # effectively closing config.log, so it can be properly (re)opened and
25384 # appended to by config.status. When coming back to configure, we
25385 # need to make the FD available again.
25386 if test "$no_create" != yes; then
25388 ac_config_status_args
=
25389 test "$silent" = yes &&
25390 ac_config_status_args
="$ac_config_status_args --quiet"
25392 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25394 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25395 # would make configure fail if this is the last instruction.
25396 $ac_cs_success ||
{ (exit 1); exit 1; }