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
1337 enable experimental improved ctrl-g recognition
1338 --disable-ns-self-contained
1339 disable self contained build under NeXTstep
1340 --enable-asserts compile code with asserts enabled
1341 --enable-maintainer-mode
1342 enable make rules and dependencies not useful
(and
1343 sometimes confusing
) to the casual installer
1344 --enable-locallisppath=PATH
1345 directories Emacs should search
for lisp files
1346 specific to this site
1347 --disable-largefile omit support
for large files
1350 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1351 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1352 --without-pop don
't support POP mail retrieval with movemail
1353 --with-kerberos support Kerberos-authenticated POP
1354 --with-kerberos5 support Kerberos version 5 authenticated POP
1355 --with-hesiod support Hesiod to get the POP server host
1356 --without-sound don't compile with sound support
1357 --without-sync-input Process async input synchronously
1358 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1360 --without-xpm don
't compile with XPM image support
1361 --without-jpeg don't compile with JPEG image support
1362 --without-tiff don
't compile with TIFF image support
1363 --without-gif don't compile with GIF image support
1364 --without-png don
't compile with PNG image support
1365 --without-rsvg don't compile with SVG image support
1366 --without-freetype don
't use Freetype for local font support
1367 --without-xft don't use XFT
for anti aliased fonts
1368 --without-libotf don
't use libotf for OpenType font support
1369 --without-m17n-flt don't use m17n-flt
for text shaping
1370 --without-toolkit-scroll-bars
1371 don
't use Motif or Xaw3d scroll bars
1372 --without-xaw3d don't use Xaw3d
1373 --without-xim don
't use X11 XIM
1374 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1375 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
1377 --without-dbus don
't compile with D-Bus support
1378 --without-makeinfo don't require makeinfo
for building manuals
1380 --with-pkg-config-prog=PATH
1381 Path to pkg-config
for finding GTK and librsvg
1382 --with-x use the X Window System
1384 Some influential environment variables
:
1385 CC C compiler
command
1386 CFLAGS C compiler flags
1387 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1388 nonstandard directory
<lib dir
>
1389 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1390 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1391 you have headers
in a nonstandard directory
<include dir
>
1393 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1395 Use these variables to override the choices made by
`configure' or to help
1396 it to find libraries and programs with nonstandard names/locations.
1402 if test "$ac_init_help" = "recursive"; then
1403 # If there are subdirs, report their specific --help.
1404 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1405 test -d "$ac_dir" || continue
1409 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1412 # A ".." for each directory in $ac_dir_suffix.
1413 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1414 case $ac_top_builddir_sub in
1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1419 ac_abs_top_builddir=$ac_pwd
1420 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1421 # for backward compatibility:
1422 ac_top_builddir=$ac_top_build_prefix
1425 .) # We are building in place.
1427 ac_top_srcdir=$ac_top_builddir_sub
1428 ac_abs_top_srcdir=$ac_pwd ;;
1429 [\\/]* | ?:[\\/]* ) # Absolute name.
1430 ac_srcdir=$srcdir$ac_dir_suffix;
1431 ac_top_srcdir=$srcdir
1432 ac_abs_top_srcdir=$srcdir ;;
1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1435 ac_top_srcdir=$ac_top_build_prefix$srcdir
1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1438 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1440 cd "$ac_dir" || { ac_status=$?; continue; }
1441 # Check for guested configure.
1442 if test -f "$ac_srcdir/configure.gnu"; then
1444 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1445 elif test -f "$ac_srcdir/configure"; then
1447 $SHELL "$ac_srcdir/configure" --help=recursive
1449 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1451 cd "$ac_pwd" || { ac_status=$?; break; }
1455 test -n "$ac_init_help" && exit $ac_status
1456 if $ac_init_version; then
1458 emacs configure 23.0.60
1459 generated by GNU Autoconf 2.61
1461 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1462 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1463 This configure script is free software; the Free Software Foundation
1464 gives unlimited permission to copy, distribute and modify it.
1468 cat >config.log <<_ACEOF
1469 This file contains any messages produced by compilers while
1470 running configure, to aid debugging if configure makes a mistake.
1472 It was created by emacs $as_me 23.0.60, which was
1473 generated by GNU Autoconf 2.61. Invocation command line was
1485 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1486 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1487 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1488 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1489 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1491 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1492 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1494 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1495 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1496 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1497 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1498 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1499 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1500 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 test -z "$as_dir" && as_dir=.
1509 echo "PATH: $as_dir"
1525 # Keep a trace of the command line.
1526 # Strip out --no-create and --no-recursion so they do not pile up.
1527 # Strip out --silent because we don't want to record it for future runs.
1528 # Also quote any args containing shell meta-characters.
1529 # Make two passes to allow for proper duplicate-argument suppression.
1533 ac_must_keep_next=false
1539 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1540 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1541 | -silent | --silent | --silen | --sile | --sil)
1544 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1547 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1549 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1550 if test $ac_must_keep_next = true; then
1551 ac_must_keep_next=false # Got value, back to normal.
1554 *=* | --config-cache | -C | -disable-* | --disable-* \
1555 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1556 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1557 | -with-* | --with-* | -without-* | --without-* | --x)
1558 case "$ac_configure_args0 " in
1559 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1562 -* ) ac_must_keep_next=true ;;
1565 ac_configure_args="$ac_configure_args '$ac_arg'"
1570 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1571 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1573 # When interrupted or exit'd, cleanup temporary files, and complete
1574 # config.log. We remove comments because anyway the quotes in there
1575 # would cause problems or look ugly.
1576 # WARNING: Use '\'' to represent an apostrophe within the trap.
1577 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1578 trap 'exit_status=$?
1579 # Save into config.log some information that might help in debugging.
1584 ## ---------------- ##
1585 ## Cache variables. ##
1586 ## ---------------- ##
1589 # The following way of writing the cache mishandles newlines in values,
1591 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1592 eval ac_val=\$$ac_var
1596 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1597 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1600 _ | IFS | as_nl) ;; #(
1601 *) $as_unset $ac_var ;;
1606 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1607 *${as_nl}ac_space=\ *)
1609 "s/'\''/'\''\\\\'\'''\''/g;
1610 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1613 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1621 ## ----------------- ##
1622 ## Output variables. ##
1623 ## ----------------- ##
1626 for ac_var in $ac_subst_vars
1628 eval ac_val=\$$ac_var
1630 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1632 echo "$ac_var='\''$ac_val'\''"
1636 if test -n "$ac_subst_files"; then
1638 ## ------------------- ##
1639 ## File substitutions. ##
1640 ## ------------------- ##
1643 for ac_var in $ac_subst_files
1645 eval ac_val=\$$ac_var
1647 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1649 echo "$ac_var='\''$ac_val'\''"
1654 if test -s confdefs.h; then
1664 test "$ac_signal" != 0 &&
1665 echo "$as_me: caught signal $ac_signal"
1666 echo "$as_me: exit $exit_status"
1668 rm -f core *.core core.conftest.* &&
1669 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1672 for ac_signal in 1 2 13 15; do
1673 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1677 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1678 rm -f -r conftest* confdefs.h
1680 # Predefined preprocessor variables.
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_NAME "$PACKAGE_NAME"
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_STRING "$PACKAGE_STRING"
1702 cat >>confdefs.h <<_ACEOF
1703 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1707 # Let the site file select an alternate cache file if it wants to.
1708 # Prefer explicitly selected file to automatically selected ones.
1709 if test -n "$CONFIG_SITE"; then
1710 set x "$CONFIG_SITE"
1711 elif test "x$prefix" != xNONE; then
1712 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1714 set x "$ac_default_prefix/share/config.site" \
1715 "$ac_default_prefix/etc/config.site"
1720 if test -r "$ac_site_file"; then
1721 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1722 echo "$as_me: loading site script $ac_site_file" >&6;}
1723 sed 's/^/| /' "$ac_site_file" >&5
1728 if test -r "$cache_file"; then
1729 # Some versions of bash will fail to source /dev/null (special
1730 # files actually), so we avoid doing that.
1731 if test -f "$cache_file"; then
1732 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1733 echo "$as_me: loading cache $cache_file" >&6;}
1735 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1736 *) . "./$cache_file";;
1740 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1741 echo "$as_me: creating cache $cache_file" >&6;}
1745 ac_header_list="$ac_header_list sys/time.h"
1746 ac_header_list="$ac_header_list unistd.h"
1747 ac_func_list="$ac_func_list alarm"
1748 # Check that the precious variables saved in the cache have kept the same
1750 ac_cache_corrupted=false
1751 for ac_var in $ac_precious_vars; do
1752 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1753 eval ac_new_set=\$ac_env_${ac_var}_set
1754 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1755 eval ac_new_val=\$ac_env_${ac_var}_value
1756 case $ac_old_set,$ac_new_set in
1758 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1759 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1760 ac_cache_corrupted=: ;;
1762 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1763 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1764 ac_cache_corrupted=: ;;
1767 if test "x$ac_old_val" != "x$ac_new_val"; then
1768 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1769 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1770 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1771 echo "$as_me: former value
: $ac_old_val" >&2;}
1772 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1773 echo "$as_me: current value
: $ac_new_val" >&2;}
1774 ac_cache_corrupted=:
1777 # Pass precious variables to config.status.
1778 if test "$ac_new_set" = set; then
1780 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1781 *) ac_arg=$ac_var=$ac_new_val ;;
1783 case " $ac_configure_args " in
1784 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1785 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1789 if $ac_cache_corrupted; then
1790 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1791 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1792 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1793 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1794 { (exit 1); exit 1; }; }
1822 ac_cpp='$CPP $CPPFLAGS'
1823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1828 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1832 test "$program_prefix" != NONE &&
1833 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1834 # Use a double $ so make ignores it.
1835 test "$program_suffix" != NONE &&
1836 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1837 # Double any \ or $. echo might interpret backslashes.
1838 # By default was `s
,x
,x
', remove it if useless.
1839 cat <<\_ACEOF >conftest.sed
1840 s/[\\$]/&&/g;s/;s,x,x,$//
1842 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1846 lispdir='${datadir}/emacs
/${version}/lisp
'
1847 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1848 '${datadir}/emacs
/site-lisp
'
1849 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1850 etcdir='${datadir}/emacs
/${version}/etc
'
1851 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1852 docdir='${datadir}/emacs
/${version}/etc
'
1853 gamedir='${localstatedir}/games
/emacs
'
1860 # Check whether --with-pop was given.
1861 if test "${with_pop+set}" = set; then
1867 if test "$with_pop" = yes; then
1868 cat >>confdefs.h <<\_ACEOF
1869 #define MAIL_USE_POP 1
1876 # Check whether --with-kerberos was given.
1877 if test "${with_kerberos+set}" = set; then
1878 withval=$with_kerberos;
1883 if test "$with_kerberos" != no; then
1884 cat >>confdefs.h <<\_ACEOF
1892 # Check whether --with-kerberos5 was given.
1893 if test "${with_kerberos5+set}" = set; then
1894 withval=$with_kerberos5;
1899 if test "${with_kerberos5}" != no; then
1900 if test "${with_kerberos}" = no; then
1902 cat >>confdefs.h <<\_ACEOF
1908 cat >>confdefs.h <<\_ACEOF
1915 # Check whether --with-hesiod was given.
1916 if test "${with_hesiod+set}" = set; then
1917 withval=$with_hesiod;
1922 if test "$with_hesiod" != no; then
1924 cat >>confdefs.h <<\_ACEOF
1931 # Check whether --with-sound was given.
1932 if test "${with_sound+set}" = set; then
1933 withval=$with_sound;
1940 # Check whether --with-sync-input was given.
1941 if test "${with_sync_input+set}" = set; then
1942 withval=$with_sync_input;
1947 if test "$with_sync_input" = yes; then
1949 cat >>confdefs.h <<\_ACEOF
1950 #define SYNC_INPUT 1
1956 # Check whether --with-x-toolkit was given.
1957 if test "${with_x_toolkit+set}" = set; then
1958 withval=$with_x_toolkit; case "${withval}" in
1959 y | ye | yes ) val=gtk ;;
1961 l | lu | luc | luci | lucid ) val=lucid ;;
1962 a | at | ath | athe | athen | athena ) val=athena ;;
1963 m | mo | mot | moti | motif ) val=motif ;;
1964 g | gt | gtk ) val=gtk ;;
1966 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1967 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1968 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1969 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1970 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1971 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1972 { (exit 1); exit 1; }; }
1981 # Check whether --with-xpm was given.
1982 if test "${with_xpm+set}" = set; then
1989 # Check whether --with-jpeg was given.
1990 if test "${with_jpeg+set}" = set; then
1997 # Check whether --with-tiff was given.
1998 if test "${with_tiff+set}" = set; then
2005 # Check whether --with-gif was given.
2006 if test "${with_gif+set}" = set; then
2013 # Check whether --with-png was given.
2014 if test "${with_png+set}" = set; then
2021 # Check whether --with-rsvg was given.
2022 if test "${with_rsvg+set}" = set; then
2030 # Check whether --with-freetype was given.
2031 if test "${with_freetype+set}" = set; then
2032 withval=$with_freetype;
2038 # Check whether --with-xft was given.
2039 if test "${with_xft+set}" = set; then
2046 # Check whether --with-libotf was given.
2047 if test "${with_libotf+set}" = set; then
2048 withval=$with_libotf;
2054 # Check whether --with-m17n-flt was given.
2055 if test "${with_m17n_flt+set}" = set; then
2056 withval=$with_m17n_flt;
2063 # Check whether --with-toolkit-scroll-bars was given.
2064 if test "${with_toolkit_scroll_bars+set}" = set; then
2065 withval=$with_toolkit_scroll_bars;
2067 with_toolkit_scroll_bars=yes
2071 # Check whether --with-xaw3d was given.
2072 if test "${with_xaw3d+set}" = set; then
2073 withval=$with_xaw3d;
2079 # Check whether --with-xim was given.
2080 if test "${with_xim+set}" = set; then
2087 # Check whether --with-ns was given.
2088 if test "${with_ns+set}" = set; then
2096 # Check whether --with-gpm was given.
2097 if test "${with_gpm+set}" = set; then
2104 # Check whether --with-dbus was given.
2105 if test "${with_dbus+set}" = set; then
2112 ## For the times when you want to build Emacs but don't have
2113 ## a suitable makeinfo, and can live without the manuals.
2115 # Check whether --with-makeinfo was given.
2116 if test "${with_makeinfo+set}" = set; then
2117 withval
=$with_makeinfo;
2124 # Check whether --with-gtk was given.
2125 if test "${with_gtk+set}" = set; then
2126 withval
=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2127 specify a toolkit." >&5
2128 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2129 specify a toolkit." >&2;}
2130 { (exit 1); exit 1; }; }
2135 # Check whether --with-gcc was given.
2136 if test "${with_gcc+set}" = set; then
2137 withval
=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2138 variable to specify a compiler." >&5
2139 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2140 variable to specify a compiler." >&2;}
2141 { (exit 1); exit 1; }; }
2146 # Check whether --with-pkg-config-prog was given.
2147 if test "${with_pkg_config_prog+set}" = set; then
2148 withval
=$with_pkg_config_prog;
2151 if test "X${with_pkg_config_prog}" != X
; then
2152 if test "${with_pkg_config_prog}" != yes; then
2153 PKG_CONFIG
="${with_pkg_config_prog}"
2157 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2158 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2159 enableval
=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G
=$enableval
2161 EN_COCOA_EXPERIMENTAL_CTRL_G
=no
2165 # Check whether --enable-ns-self-contained was given.
2166 if test "${enable_ns_self_contained+set}" = set; then
2167 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2169 EN_NS_SELF_CONTAINED
=yes
2173 # Check whether --enable-asserts was given.
2174 if test "${enable_asserts+set}" = set; then
2175 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2181 # Check whether --enable-maintainer-mode was given.
2182 if test "${enable_maintainer_mode+set}" = set; then
2183 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2185 USE_MAINTAINER_MODE
=no
2188 if test $USE_MAINTAINER_MODE = yes; then
2195 # Check whether --enable-locallisppath was given.
2196 if test "${enable_locallisppath+set}" = set; then
2197 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2199 elif test "${enableval}" != "yes"; then
2200 locallisppath
=${enableval}
2205 #### Make srcdir absolute, if it isn't already. It's important to
2206 #### avoid running the path through pwd unnecessarily, since pwd can
2207 #### give you automounter prefixes, which can go away. We do all this
2208 #### so Emacs can find its files when run uninstalled.
2209 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2214 ## We may be able to use the $PWD environment variable to make this
2215 ## absolute. But sometimes PWD is inaccurate.
2216 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2217 ## but that tested only for a well-formed and valid PWD,
2218 ## it did not object when PWD was well-formed and valid but just wrong.
2219 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2223 srcdir
="`(cd ${srcdir}; pwd)`"
2226 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2229 #### Check if the source directory already has a configured system in it.
2230 if test `pwd` != `(cd ${srcdir} && pwd)` \
2231 && test -f "${srcdir}/src/config.h" ; then
2232 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2233 as a build directory right now; it has been configured in its own
2234 right. To configure in another directory as well, you MUST
2235 use GNU make. If you do not have GNU make, then you must
2236 now do \`make distclean' in ${srcdir},
2237 and then run $0 again." >&5
2238 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2239 as a build directory right now; it has been configured in its own
2240 right. To configure in another directory as well, you MUST
2241 use GNU make. If you do not have GNU make, then you must
2242 now do \`make distclean' in ${srcdir},
2243 and then run $0 again." >&2;}
2246 #### Given the configuration name, set machfile and opsysfile to the
2247 #### names of the m/*.h and s/*.h files we should use.
2249 ### Canonicalize the configuration name.
2252 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2253 if test -f "$ac_dir/install-sh"; then
2255 ac_install_sh
="$ac_aux_dir/install-sh -c"
2257 elif test -f "$ac_dir/install.sh"; then
2259 ac_install_sh
="$ac_aux_dir/install.sh -c"
2261 elif test -f "$ac_dir/shtool"; then
2263 ac_install_sh
="$ac_aux_dir/shtool install -c"
2267 if test -z "$ac_aux_dir"; then
2268 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2269 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2270 { (exit 1); exit 1; }; }
2273 # These three variables are undocumented and unsupported,
2274 # and are intended to be withdrawn in a future Autoconf release.
2275 # They can cause serious problems if a builder's source tree is in a directory
2276 # whose full name contains unusual characters.
2277 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2278 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2279 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2282 # Make sure we can run config.sub.
2283 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2284 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2285 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2286 { (exit 1); exit 1; }; }
2288 { echo "$as_me:$LINENO: checking build system type" >&5
2289 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2290 if test "${ac_cv_build+set}" = set; then
2291 echo $ECHO_N "(cached) $ECHO_C" >&6
2293 ac_build_alias
=$build_alias
2294 test "x$ac_build_alias" = x
&&
2295 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2296 test "x$ac_build_alias" = x
&&
2297 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2298 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2299 { (exit 1); exit 1; }; }
2300 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2301 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2302 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2303 { (exit 1); exit 1; }; }
2306 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2307 echo "${ECHO_T}$ac_cv_build" >&6; }
2308 case $ac_cv_build in
2310 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2311 echo "$as_me: error: invalid value of canonical build" >&2;}
2312 { (exit 1); exit 1; }; };;
2315 ac_save_IFS
=$IFS; IFS
='-'
2321 # Remember, the first character of IFS is used to create $*,
2322 # except with old shells:
2325 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2328 { echo "$as_me:$LINENO: checking host system type" >&5
2329 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2330 if test "${ac_cv_host+set}" = set; then
2331 echo $ECHO_N "(cached) $ECHO_C" >&6
2333 if test "x$host_alias" = x
; then
2334 ac_cv_host
=$ac_cv_build
2336 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2337 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2338 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2339 { (exit 1); exit 1; }; }
2343 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2344 echo "${ECHO_T}$ac_cv_host" >&6; }
2347 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2348 echo "$as_me: error: invalid value of canonical host" >&2;}
2349 { (exit 1); exit 1; }; };;
2352 ac_save_IFS
=$IFS; IFS
='-'
2358 # Remember, the first character of IFS is used to create $*,
2359 # except with old shells:
2362 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2366 configuration
=${host_alias-${build_alias-$host}}
2370 ### If you add support for a new configuration, add code to this
2371 ### switch statement to recognize your configuration name and select
2372 ### the appropriate operating system and machine description files.
2374 ### You would hope that you could choose an m/*.h file pretty much
2375 ### based on the machine portion of the configuration name, and an s-
2376 ### file based on the operating system portion. However, it turns out
2377 ### that each m/*.h file is pretty manufacturer-specific - for
2378 ### example mips.h is MIPS
2379 ### So we basically have to have a special case for each
2380 ### configuration name.
2382 ### As far as handling version numbers on operating systems is
2383 ### concerned, make sure things will fail in a fixable way. If
2384 ### /etc/MACHINES doesn't say anything about version numbers, be
2385 ### prepared to handle anything reasonably. If version numbers
2386 ### matter, be sure /etc/MACHINES says something about it.
2388 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2389 ### "System V Release 4"; he writes, "The old convention encouraged
2390 ### confusion between `system' and `release' levels'."
2392 machine
='' opsys
='' unported
=no
2393 case "${canonical}" in
2398 case "${canonical}" in
2399 alpha
*-*-freebsd*) machine
=alpha
;;
2400 arm
*-*-freebsd*) machine
=arm
;;
2401 ia64-
*-freebsd*) machine
=ia64
;;
2402 sparc-
*-freebsd*) machine
=sparc
;;
2403 sparc64-
*-freebsd*) machine
=sparc
;;
2404 powerpc-
*-freebsd*) machine
=macppc
;;
2405 i
[3456]86-*-freebsd*) machine
=intel386
;;
2406 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2410 ## FreeBSD kernel + glibc based userland
2413 case "${canonical}" in
2414 alpha
*-*-kfreebsd*) machine
=alpha
;;
2415 ia64-
*-kfreebsd*) machine
=ia64
;;
2416 sparc-
*-kfreebsd*) machine
=sparc
;;
2417 sparc64-
*-kfreebsd*) machine
=sparc
;;
2418 powerpc-
*-kfreebsd*) machine
=macppc
;;
2419 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2420 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2427 if test -f /usr
/lib
/crti.o
; then
2429 cat >>confdefs.h
<<\_ACEOF
2435 case "${canonical}" in
2436 alpha
*-*-netbsd*) machine
=alpha
;;
2437 i
[3456]86-*-netbsd*) machine
=intel386
;;
2438 powerpc-
*-netbsd*) machine
=macppc
;;
2439 sparc
*-*-netbsd*) machine
=sparc
;;
2440 vax-
*-netbsd*) machine
=vax
;;
2441 arm-
*-netbsd*) machine
=arm
;;
2442 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2443 hppa-
*-netbsd*) machine
=hp800
;;
2450 case "${canonical}" in
2451 alpha
*-*-openbsd*) machine
=alpha
;;
2452 arm-
*-openbsd*) machine
=arm
;;
2453 i386-
*-openbsd*) machine
=intel386
;;
2454 powerpc-
*-openbsd*) machine
=macppc
;;
2455 sparc
*-*-openbsd*) machine
=sparc
;;
2456 vax-
*-openbsd*) machine
=vax
;;
2457 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2464 case "${canonical}" in
2465 i
[3456]86-*-lynxos*) machine
=intel386
;;
2466 powerpc-
*-lynxos*) machine
=powerpc
;;
2470 alpha
*-*-linux-gnu* )
2471 machine
=alpha opsys
=gnu-linux
2475 machine
=arm opsys
=gnu-linux
2478 ## Apple Darwin / Mac OS X
2480 case "${canonical}" in
2481 i
[3456]86-* ) machine
=intel386
;;
2482 powerpc-
* ) machine
=macppc
;;
2486 # Define CPP as follows to make autoconf work correctly.
2487 CPP
="${CC-cc} -E -no-cpp-precomp"
2488 # Use fink packages if available.
2489 if test -d /sw
/include
&& test -d /sw
/lib
; then
2490 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2491 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2492 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2496 ## HP 9000 series 700 and 800, running HP/UX
2497 hppa
*-hp-hpux10.2
* )
2498 machine
=hp800 opsys
=hpux10-20
2500 hppa
*-hp-hpux1[1-9]* )
2501 machine
=hp800 opsys
=hpux11
2502 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2505 hppa
*-*-linux-gnu* )
2506 machine
=hp800 opsys
=gnu-linux
2511 machine
=ibms390 opsys
=gnu-linux
2513 s390x-
*-linux-gnu* )
2514 machine
=ibms390x opsys
=gnu-linux
2516 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2517 machine
=ibmrs6000 opsys
=aix4-2
2519 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2520 machine
=ibmrs6000 opsys
=aix4-2
2522 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2523 machine
=ibmrs6000 opsys
=aix4-2
2525 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2526 machine
=ibmrs6000 opsys
=aix4-2
2529 ## Macintosh PowerPC
2530 powerpc
*-*-linux-gnu* )
2531 machine
=macppc opsys
=gnu-linux
2534 ## Silicon Graphics machines
2537 machine
=iris4d opsys
=irix6-5
2538 # Without defining _LANGUAGE_C, things get masked out in the headers
2539 # so that, for instance, grepping for `free' in stdlib.h fails and
2540 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2541 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2542 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2546 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2547 machine
=sparc opsys
=gnu-linux
2551 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2552 | rs6000-
*-solaris2*)
2553 case "${canonical}" in
2554 i
[3456]86-*-* ) machine
=intel386
;;
2555 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2556 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2557 sparc
* ) machine
=sparc
;;
2560 case "${canonical}" in
2561 *-sunos5.3
* |
*-solaris2.3
* )
2563 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2565 *-sunos5.4
* |
*-solaris2.4
* )
2567 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2570 *-sunos5.5
* |
*-solaris2.5
* )
2572 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2575 *-sunos5.6
* |
*-solaris2.6
* )
2577 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2580 *-sunos5* |
*-solaris* )
2582 emacs_check_sunpro_c
=yes
2583 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2586 ## Watch out for a compiler that we know will not work.
2587 case "${canonical}" in
2588 *-solaris* |
*-sunos5* )
2589 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2590 ## /usr/ucb/cc doesn't work;
2591 ## we should find some other compiler that does work.
2602 case "${canonical}" in
2603 *-vms* ) opsys
=vms
;;
2610 machine
=ia64 opsys
=gnu-linux
2613 ## Intel 386 machines where we don't care about the manufacturer
2616 case "${canonical}" in
2617 *-cygwin ) opsys
=cygwin
;;
2618 *-darwin* ) opsys
=darwin
2619 CPP
="${CC-cc} -E -no-cpp-precomp"
2621 *-linux-gnu* ) opsys
=gnu-linux
;;
2622 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2623 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2624 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2625 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2629 ## m68k Linux-based GNU system
2631 machine
=m68k opsys
=gnu-linux
2634 ## Mips Linux-based GNU system
2635 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2636 machine
=mips opsys
=gnu-linux
2639 ## AMD x86-64 Linux-based GNU system
2640 x86_64-
*-linux-gnu* )
2641 machine
=amdx86-64 opsys
=gnu-linux
2644 ## Tensilica Xtensa Linux-based GNU system
2645 xtensa
*-*-linux-gnu* )
2646 machine
=xtensa opsys
=gnu-linux
2654 ### If the code above didn't choose an operating system, just choose
2655 ### an operating system based on the configuration name. You really
2656 ### only want to use this when you have no idea what the right
2657 ### operating system is; if you know what operating systems a machine
2658 ### runs, it's cleaner to make it explicit in the case statement
2660 if test x
"${opsys}" = x
; then
2661 case "${canonical}" in
2662 *-gnu* ) opsys
=gnu
;;
2663 *-sysv4.2uw
* ) opsys
=unixware
;;
2664 *-sysv5uw* ) opsys
=unixware
;;
2665 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2666 *-sysv4.1
* |
*-sysvr4.1
* )
2667 NON_GNU_CPP
=/usr
/lib
/cpp
2669 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2670 if [ x
$NON_GNU_CPP = x
]; then
2671 if [ -f /usr
/ccs
/lib
/cpp
]; then
2672 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2674 NON_GNU_CPP
=/lib
/cpp
2678 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2687 if test $unported = yes; then
2688 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2689 Check \`etc/MACHINES' for recognized configuration names." >&5
2690 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2691 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2692 { (exit 1); exit 1; }; }
2695 machfile
="m/${machine}.h"
2696 opsysfile
="s/${opsys}.h"
2699 #### Choose a compiler.
2700 test -n "$CC" && cc_specified
=yes
2702 # Save the value of CFLAGS that the user specified.
2703 SPECIFIED_CFLAGS
="$CFLAGS"
2706 ac_cpp
='$CPP $CPPFLAGS'
2707 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2708 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2709 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2710 if test -n "$ac_tool_prefix"; then
2711 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2712 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2713 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2714 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2715 if test "${ac_cv_prog_CC+set}" = set; then
2716 echo $ECHO_N "(cached) $ECHO_C" >&6
2718 if test -n "$CC"; then
2719 ac_cv_prog_CC
="$CC" # Let the user override the test.
2721 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2725 test -z "$as_dir" && as_dir
=.
2726 for ac_exec_ext
in '' $ac_executable_extensions; do
2727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2728 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2729 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2739 if test -n "$CC"; then
2740 { echo "$as_me:$LINENO: result: $CC" >&5
2741 echo "${ECHO_T}$CC" >&6; }
2743 { echo "$as_me:$LINENO: result: no" >&5
2744 echo "${ECHO_T}no" >&6; }
2749 if test -z "$ac_cv_prog_CC"; then
2751 # Extract the first word of "gcc", so it can be a program name with args.
2752 set dummy gcc
; ac_word
=$2
2753 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2754 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2755 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2756 echo $ECHO_N "(cached) $ECHO_C" >&6
2758 if test -n "$ac_ct_CC"; then
2759 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2761 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2765 test -z "$as_dir" && as_dir
=.
2766 for ac_exec_ext
in '' $ac_executable_extensions; do
2767 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2768 ac_cv_prog_ac_ct_CC
="gcc"
2769 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2779 if test -n "$ac_ct_CC"; then
2780 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2781 echo "${ECHO_T}$ac_ct_CC" >&6; }
2783 { echo "$as_me:$LINENO: result: no" >&5
2784 echo "${ECHO_T}no" >&6; }
2787 if test "x$ac_ct_CC" = x
; then
2790 case $cross_compiling:$ac_tool_warned in
2792 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2793 whose name does not start with the host triplet. If you think this
2794 configuration is useful to you, please write to autoconf@gnu.org." >&5
2795 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2796 whose name does not start with the host triplet. If you think this
2797 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2798 ac_tool_warned
=yes ;;
2806 if test -z "$CC"; then
2807 if test -n "$ac_tool_prefix"; then
2808 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2809 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2810 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2811 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2812 if test "${ac_cv_prog_CC+set}" = set; then
2813 echo $ECHO_N "(cached) $ECHO_C" >&6
2815 if test -n "$CC"; then
2816 ac_cv_prog_CC
="$CC" # Let the user override the test.
2818 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2822 test -z "$as_dir" && as_dir
=.
2823 for ac_exec_ext
in '' $ac_executable_extensions; do
2824 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2825 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2826 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2836 if test -n "$CC"; then
2837 { echo "$as_me:$LINENO: result: $CC" >&5
2838 echo "${ECHO_T}$CC" >&6; }
2840 { echo "$as_me:$LINENO: result: no" >&5
2841 echo "${ECHO_T}no" >&6; }
2847 if test -z "$CC"; then
2848 # Extract the first word of "cc", so it can be a program name with args.
2849 set dummy cc
; ac_word
=$2
2850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2852 if test "${ac_cv_prog_CC+set}" = set; then
2853 echo $ECHO_N "(cached) $ECHO_C" >&6
2855 if test -n "$CC"; then
2856 ac_cv_prog_CC
="$CC" # Let the user override the test.
2859 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2863 test -z "$as_dir" && as_dir
=.
2864 for ac_exec_ext
in '' $ac_executable_extensions; do
2865 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2866 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2867 ac_prog_rejected
=yes
2871 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2878 if test $ac_prog_rejected = yes; then
2879 # We found a bogon in the path, so make sure we never use it.
2880 set dummy
$ac_cv_prog_CC
2882 if test $# != 0; then
2883 # We chose a different compiler from the bogus one.
2884 # However, it has the same basename, so the bogon will be chosen
2885 # first if we set CC to just the basename; use the full file name.
2887 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2893 if test -n "$CC"; then
2894 { echo "$as_me:$LINENO: result: $CC" >&5
2895 echo "${ECHO_T}$CC" >&6; }
2897 { echo "$as_me:$LINENO: result: no" >&5
2898 echo "${ECHO_T}no" >&6; }
2903 if test -z "$CC"; then
2904 if test -n "$ac_tool_prefix"; then
2905 for ac_prog
in cl.exe
2907 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2908 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2909 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2910 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2911 if test "${ac_cv_prog_CC+set}" = set; then
2912 echo $ECHO_N "(cached) $ECHO_C" >&6
2914 if test -n "$CC"; then
2915 ac_cv_prog_CC
="$CC" # Let the user override the test.
2917 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2921 test -z "$as_dir" && as_dir
=.
2922 for ac_exec_ext
in '' $ac_executable_extensions; do
2923 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2924 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2925 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2935 if test -n "$CC"; then
2936 { echo "$as_me:$LINENO: result: $CC" >&5
2937 echo "${ECHO_T}$CC" >&6; }
2939 { echo "$as_me:$LINENO: result: no" >&5
2940 echo "${ECHO_T}no" >&6; }
2944 test -n "$CC" && break
2947 if test -z "$CC"; then
2949 for ac_prog
in cl.exe
2951 # Extract the first word of "$ac_prog", so it can be a program name with args.
2952 set dummy
$ac_prog; ac_word
=$2
2953 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2955 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2956 echo $ECHO_N "(cached) $ECHO_C" >&6
2958 if test -n "$ac_ct_CC"; then
2959 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2965 test -z "$as_dir" && as_dir
=.
2966 for ac_exec_ext
in '' $ac_executable_extensions; do
2967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2968 ac_cv_prog_ac_ct_CC
="$ac_prog"
2969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2978 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2979 if test -n "$ac_ct_CC"; then
2980 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2981 echo "${ECHO_T}$ac_ct_CC" >&6; }
2983 { echo "$as_me:$LINENO: result: no" >&5
2984 echo "${ECHO_T}no" >&6; }
2988 test -n "$ac_ct_CC" && break
2991 if test "x$ac_ct_CC" = x
; then
2994 case $cross_compiling:$ac_tool_warned in
2996 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2997 whose name does not start with the host triplet. If you think this
2998 configuration is useful to you, please write to autoconf@gnu.org." >&5
2999 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3000 whose name does not start with the host triplet. If you think this
3001 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3002 ac_tool_warned
=yes ;;
3011 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3012 See \`config.log' for more details." >&5
3013 echo "$as_me: error: no acceptable C compiler found in \$PATH
3014 See \`config.log' for more details." >&2;}
3015 { (exit 1); exit 1; }; }
3017 # Provide some information about the compiler.
3018 echo "$as_me:$LINENO: checking for C compiler version" >&5
3019 ac_compiler
=`set X $ac_compile; echo $2`
3020 { (ac_try
="$ac_compiler --version >&5"
3022 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3023 *) ac_try_echo=$ac_try;;
3025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3026 (eval "$ac_compiler --version >&5") 2>&5
3028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3029 (exit $ac_status); }
3030 { (ac_try="$ac_compiler -v >&5"
3032 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3033 *) ac_try_echo
=$ac_try;;
3035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3036 (eval "$ac_compiler -v >&5") 2>&5
3038 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3039 (exit $ac_status); }
3040 { (ac_try
="$ac_compiler -V >&5"
3042 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3043 *) ac_try_echo=$ac_try;;
3045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3046 (eval "$ac_compiler -V >&5") 2>&5
3048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049 (exit $ac_status); }
3051 cat >conftest.$ac_ext <<_ACEOF
3054 cat confdefs.h >>conftest.$ac_ext
3055 cat >>conftest.$ac_ext <<_ACEOF
3056 /* end confdefs.h. */
3066 ac_clean_files_save=$ac_clean_files
3067 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3068 # Try to create an executable without -o first, disregard a.out.
3069 # It will help us diagnose broken compilers, and finding out an intuition
3071 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3072 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3073 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3075 # List of possible output files, starting from the most likely.
3076 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3077 # only as a last resort. b.out is created by i960 compilers.
3078 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3080 # The IRIX 6 linker writes into existing files which may not be
3081 # executable, retaining their permissions. Remove them first so a
3082 # subsequent execution test works.
3084 for ac_file in $ac_files
3087 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3088 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3093 if { (ac_try="$ac_link_default"
3095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096 *) ac_try_echo=$ac_try;;
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099 (eval "$ac_link_default") 2>&5
3101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102 (exit $ac_status); }; then
3103 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3104 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3105 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3106 # so that the user can short-circuit this test for compilers unknown to
3108 for ac_file
in $ac_files ''
3110 test -f "$ac_file" ||
continue
3112 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3115 # We found the default executable, but exeext='' is most
3119 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3121 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3123 # We set ac_cv_exeext here because the later test for it is not
3124 # safe: cross compilers may not add the suffix if given an `-o'
3125 # argument, so we may need to know it at that point already.
3126 # Even if this section looks crufty: it has the advantage of
3133 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3139 { echo "$as_me:$LINENO: result: $ac_file" >&5
3140 echo "${ECHO_T}$ac_file" >&6; }
3141 if test -z "$ac_file"; then
3142 echo "$as_me: failed program was:" >&5
3143 sed 's/^/| /' conftest.
$ac_ext >&5
3145 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3146 See \`config.log' for more details." >&5
3147 echo "$as_me: error: C compiler cannot create executables
3148 See \`config.log' for more details." >&2;}
3149 { (exit 77); exit 77; }; }
3152 ac_exeext
=$ac_cv_exeext
3154 # Check that the compiler produces executables we can run. If not, either
3155 # the compiler is broken, or we cross compile.
3156 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3157 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3158 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3159 # If not cross compiling, check that we can run a simple program.
3160 if test "$cross_compiling" != yes; then
3161 if { ac_try
='./$ac_file'
3162 { (case "(($ac_try" in
3163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3164 *) ac_try_echo=$ac_try;;
3166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3167 (eval "$ac_try") 2>&5
3169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3170 (exit $ac_status); }; }; then
3173 if test "$cross_compiling" = maybe; then
3176 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3177 If you meant to cross compile, use \`--host'.
3178 See \`config.log' for more details.
" >&5
3179 echo "$as_me: error
: cannot run C compiled programs.
3180 If you meant to cross compile
, use \
`--host'.
3181 See \`config.log
' for more details." >&2;}
3182 { (exit 1); exit 1; }; }
3186 { echo "$as_me:$LINENO: result: yes" >&5
3187 echo "${ECHO_T}yes" >&6; }
3189 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3190 ac_clean_files=$ac_clean_files_save
3191 # Check that the compiler produces executables we can run. If not, either
3192 # the compiler is broken, or we cross compile.
3193 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3194 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3195 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3196 echo "${ECHO_T}$cross_compiling" >&6; }
3198 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3199 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3200 if { (ac_try="$ac_link"
3202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3203 *) ac_try_echo=$ac_try;;
3205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3206 (eval "$ac_link") 2>&5
3208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3209 (exit $ac_status); }; then
3210 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3211 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3212 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3214 for ac_file
in conftest.exe conftest conftest.
*; do
3215 test -f "$ac_file" ||
continue
3217 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3218 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3224 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3225 See \`config.log' for more details." >&5
3226 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3227 See \`config.log' for more details." >&2;}
3228 { (exit 1); exit 1; }; }
3231 rm -f conftest
$ac_cv_exeext
3232 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3233 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3235 rm -f conftest.
$ac_ext
3236 EXEEXT
=$ac_cv_exeext
3238 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3239 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3240 if test "${ac_cv_objext+set}" = set; then
3241 echo $ECHO_N "(cached) $ECHO_C" >&6
3243 cat >conftest.
$ac_ext <<_ACEOF
3246 cat confdefs.h
>>conftest.
$ac_ext
3247 cat >>conftest.
$ac_ext <<_ACEOF
3248 /* end confdefs.h. */
3258 rm -f conftest.o conftest.obj
3259 if { (ac_try
="$ac_compile"
3261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3262 *) ac_try_echo=$ac_try;;
3264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3265 (eval "$ac_compile") 2>&5
3267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3268 (exit $ac_status); }; then
3269 for ac_file in conftest.o conftest.obj conftest.*; do
3270 test -f "$ac_file" || continue;
3272 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3273 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3278 echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3281 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3282 See \`config.log
' for more details." >&5
3283 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3284 See \`config.log' for more details.
" >&2;}
3285 { (exit 1); exit 1; }; }
3288 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3290 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3291 echo "${ECHO_T}$ac_cv_objext" >&6; }
3292 OBJEXT=$ac_cv_objext
3294 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3295 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3296 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3297 echo $ECHO_N "(cached
) $ECHO_C" >&6
3299 cat >conftest.$ac_ext <<_ACEOF
3302 cat confdefs.h >>conftest.$ac_ext
3303 cat >>conftest.$ac_ext <<_ACEOF
3304 /* end confdefs.h. */
3317 rm -f conftest.$ac_objext
3318 if { (ac_try="$ac_compile"
3320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3321 *) ac_try_echo=$ac_try;;
3323 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3324 (eval "$ac_compile") 2>conftest.er1
3326 grep -v '^ *+' conftest.er1 >conftest.err
3328 cat conftest.err >&5
3329 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3330 (exit $ac_status); } && {
3331 test -z "$ac_c_werror_flag" ||
3332 test ! -s conftest.err
3333 } && test -s conftest.$ac_objext; then
3336 echo "$as_me: failed program was
:" >&5
3337 sed 's/^/| /' conftest.$ac_ext >&5
3342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3343 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3346 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3347 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3348 GCC=`test $ac_compiler_gnu = yes && echo yes`
3349 ac_test_CFLAGS=${CFLAGS+set}
3350 ac_save_CFLAGS=$CFLAGS
3351 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3352 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3353 if test "${ac_cv_prog_cc_g+set}" = set; then
3354 echo $ECHO_N "(cached
) $ECHO_C" >&6
3356 ac_save_c_werror_flag=$ac_c_werror_flag
3357 ac_c_werror_flag=yes
3360 cat >conftest.$ac_ext <<_ACEOF
3363 cat confdefs.h >>conftest.$ac_ext
3364 cat >>conftest.$ac_ext <<_ACEOF
3365 /* end confdefs.h. */
3375 rm -f conftest.$ac_objext
3376 if { (ac_try="$ac_compile"
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3382 (eval "$ac_compile") 2>conftest.er1
3384 grep -v '^ *+' conftest.er1 >conftest.err
3386 cat conftest.err >&5
3387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3388 (exit $ac_status); } && {
3389 test -z "$ac_c_werror_flag" ||
3390 test ! -s conftest.err
3391 } && test -s conftest.$ac_objext; then
3394 echo "$as_me: failed program was
:" >&5
3395 sed 's/^/| /' conftest.$ac_ext >&5
3398 cat >conftest.$ac_ext <<_ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3413 rm -f conftest.$ac_objext
3414 if { (ac_try="$ac_compile"
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3419 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3420 (eval "$ac_compile") 2>conftest.er1
3422 grep -v '^ *+' conftest.er1 >conftest.err
3424 cat conftest.err >&5
3425 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3426 (exit $ac_status); } && {
3427 test -z "$ac_c_werror_flag" ||
3428 test ! -s conftest.err
3429 } && test -s conftest.$ac_objext; then
3432 echo "$as_me: failed program was
:" >&5
3433 sed 's/^/| /' conftest.$ac_ext >&5
3435 ac_c_werror_flag=$ac_save_c_werror_flag
3437 cat >conftest.$ac_ext <<_ACEOF
3440 cat confdefs.h >>conftest.$ac_ext
3441 cat >>conftest.$ac_ext <<_ACEOF
3442 /* end confdefs.h. */
3452 rm -f conftest.$ac_objext
3453 if { (ac_try="$ac_compile"
3455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3456 *) ac_try_echo=$ac_try;;
3458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3459 (eval "$ac_compile") 2>conftest.er1
3461 grep -v '^ *+' conftest.er1 >conftest.err
3463 cat conftest.err >&5
3464 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3465 (exit $ac_status); } && {
3466 test -z "$ac_c_werror_flag" ||
3467 test ! -s conftest.err
3468 } && test -s conftest.$ac_objext; then
3471 echo "$as_me: failed program was
:" >&5
3472 sed 's/^/| /' conftest.$ac_ext >&5
3477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3484 ac_c_werror_flag=$ac_save_c_werror_flag
3486 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3487 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3488 if test "$ac_test_CFLAGS" = set; then
3489 CFLAGS=$ac_save_CFLAGS
3490 elif test $ac_cv_prog_cc_g = yes; then
3491 if test "$GCC" = yes; then
3497 if test "$GCC" = yes; then
3503 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3504 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3505 if test "${ac_cv_prog_cc_c89+set}" = set; then
3506 echo $ECHO_N "(cached
) $ECHO_C" >&6
3508 ac_cv_prog_cc_c89=no
3510 cat >conftest.$ac_ext <<_ACEOF
3513 cat confdefs.h >>conftest.$ac_ext
3514 cat >>conftest.$ac_ext <<_ACEOF
3515 /* end confdefs.h. */
3518 #include <sys/types.h>
3519 #include <sys/stat.h>
3520 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3521 struct buf { int x; };
3522 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3523 static char *e (p, i)
3529 static char *f (char * (*g) (char **, int), char **p, ...)
3534 s = g (p, va_arg (v,int));
3539 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3540 function prototypes and stuff, but not '\xHH' hex character constants.
3541 These don't provoke an error unfortunately, instead are silently treated
3542 as 'x'. The following induces an error, until -std is added to get
3543 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3544 array size at least. It's necessary to write '\x00'==0 to get something
3545 that's true only with -std. */
3546 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3548 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3549 inside strings and character constants. */
3551 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3553 int test (int i, double x);
3554 struct s1 {int (*f) (int a);};
3555 struct s2 {int (*f) (double a);};
3556 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3562 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3567 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3568 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3570 CC="$ac_save_CC $ac_arg"
3571 rm -f conftest.$ac_objext
3572 if { (ac_try="$ac_compile"
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3577 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_compile") 2>conftest.er1
3580 grep -v '^ *+' conftest.er1 >conftest.err
3582 cat conftest.err >&5
3583 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3584 (exit $ac_status); } && {
3585 test -z "$ac_c_werror_flag" ||
3586 test ! -s conftest.err
3587 } && test -s conftest.$ac_objext; then
3588 ac_cv_prog_cc_c89=$ac_arg
3590 echo "$as_me: failed program was
:" >&5
3591 sed 's/^/| /' conftest.$ac_ext >&5
3596 rm -f core conftest.err conftest.$ac_objext
3597 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3599 rm -f conftest.$ac_ext
3604 case "x
$ac_cv_prog_cc_c89" in
3606 { echo "$as_me:$LINENO: result
: none needed
" >&5
3607 echo "${ECHO_T}none needed
" >&6; } ;;
3609 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3610 echo "${ECHO_T}unsupported
" >&6; } ;;
3612 CC="$CC $ac_cv_prog_cc_c89"
3613 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3614 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3619 ac_cpp='$CPP $CPPFLAGS'
3620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3625 # On Suns, sometimes $CPP names a directory.
3626 if test -n "$CPP" && test -d "$CPP"; then
3630 ## If not using gcc, and on Solaris, and no CPP specified, see if
3631 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3632 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3633 test x"$CPP" = x; then
3634 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3635 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3637 if test "${emacs_cv_sunpro_c+set}" = set; then
3638 echo $ECHO_N "(cached
) $ECHO_C" >&6
3640 cat >conftest.$ac_ext <<_ACEOF
3643 cat confdefs.h >>conftest.$ac_ext
3644 cat >>conftest.$ac_ext <<_ACEOF
3645 /* end confdefs.h. */
3658 rm -f conftest.$ac_objext conftest$ac_exeext
3659 if { (ac_try="$ac_link"
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3665 (eval "$ac_link") 2>conftest.er1
3667 grep -v '^ *+' conftest.er1 >conftest.err
3669 cat conftest.err >&5
3670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3671 (exit $ac_status); } && {
3672 test -z "$ac_c_werror_flag" ||
3673 test ! -s conftest.err
3674 } && test -s conftest$ac_exeext &&
3675 $as_test_x conftest$ac_exeext; then
3676 emacs_cv_sunpro_c=yes
3678 echo "$as_me: failed program was
:" >&5
3679 sed 's/^/| /' conftest.$ac_ext >&5
3681 emacs_cv_sunpro_c=no
3684 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3685 conftest$ac_exeext conftest.$ac_ext
3688 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3689 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3691 if test x"$emacs_cv_sunpro_c" = xyes; then
3692 NON_GNU_CPP="$CC -E -Xs"
3696 #### Some systems specify a CPP to use unless we are using GCC.
3697 #### Now that we know whether we are using GCC, we can decide whether
3698 #### to use that one.
3699 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3704 #### Some systems specify a CC to use unless we are using GCC.
3705 #### Now that we know whether we are using GCC, we can decide whether
3706 #### to use that one.
3707 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3708 test x$cc_specified != xyes
3713 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3715 CC="$CC $GCC_TEST_OPTIONS"
3718 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3720 CC="$CC $NON_GCC_TEST_OPTIONS"
3724 cat >>confdefs.h <<\_ACEOF
3725 #define _GNU_SOURCE 1
3730 ac_cpp='$CPP $CPPFLAGS'
3731 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3732 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3733 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3734 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3735 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3736 # On Suns, sometimes $CPP names a directory.
3737 if test -n "$CPP" && test -d "$CPP"; then
3740 if test -z "$CPP"; then
3741 if test "${ac_cv_prog_CPP+set}" = set; then
3742 echo $ECHO_N "(cached
) $ECHO_C" >&6
3744 # Double quotes because CPP needs to be expanded
3745 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3748 for ac_c_preproc_warn_flag in '' yes
3750 # Use a header file that comes with gcc, so configuring glibc
3751 # with a fresh cross-compiler works.
3752 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3753 # <limits.h> exists even on freestanding compilers.
3754 # On the NeXT, cc -E runs the code through the compiler's parser,
3755 # not just through cpp. "Syntax error
" is here to catch this case.
3756 cat >conftest.$ac_ext <<_ACEOF
3759 cat confdefs.h >>conftest.$ac_ext
3760 cat >>conftest.$ac_ext <<_ACEOF
3761 /* end confdefs.h. */
3763 # include <limits.h>
3765 # include <assert.h>
3769 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3774 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3775 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3777 grep -v '^ *+' conftest.er1 >conftest.err
3779 cat conftest.err >&5
3780 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3781 (exit $ac_status); } >/dev/null && {
3782 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3783 test ! -s conftest.err
3787 echo "$as_me: failed program was
:" >&5
3788 sed 's/^/| /' conftest.$ac_ext >&5
3790 # Broken: fails on valid input.
3794 rm -f conftest.err conftest.$ac_ext
3796 # OK, works on sane cases. Now check whether nonexistent headers
3797 # can be detected and how.
3798 cat >conftest.$ac_ext <<_ACEOF
3801 cat confdefs.h >>conftest.$ac_ext
3802 cat >>conftest.$ac_ext <<_ACEOF
3803 /* end confdefs.h. */
3804 #include <ac_nonexistent.h>
3806 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3809 *) ac_try_echo=$ac_try;;
3811 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3812 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3814 grep -v '^ *+' conftest.er1 >conftest.err
3816 cat conftest.err >&5
3817 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3818 (exit $ac_status); } >/dev/null && {
3819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3820 test ! -s conftest.err
3822 # Broken: success on invalid input.
3825 echo "$as_me: failed program was
:" >&5
3826 sed 's/^/| /' conftest.$ac_ext >&5
3828 # Passes both tests.
3833 rm -f conftest.err conftest.$ac_ext
3836 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3837 rm -f conftest.err conftest.$ac_ext
3838 if $ac_preproc_ok; then
3850 { echo "$as_me:$LINENO: result
: $CPP" >&5
3851 echo "${ECHO_T}$CPP" >&6; }
3853 for ac_c_preproc_warn_flag in '' yes
3855 # Use a header file that comes with gcc, so configuring glibc
3856 # with a fresh cross-compiler works.
3857 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3858 # <limits.h> exists even on freestanding compilers.
3859 # On the NeXT, cc -E runs the code through the compiler's parser,
3860 # not just through cpp. "Syntax error
" is here to catch this case.
3861 cat >conftest.$ac_ext <<_ACEOF
3864 cat confdefs.h >>conftest.$ac_ext
3865 cat >>conftest.$ac_ext <<_ACEOF
3866 /* end confdefs.h. */
3868 # include <limits.h>
3870 # include <assert.h>
3874 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3879 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3882 grep -v '^ *+' conftest.er1 >conftest.err
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3886 (exit $ac_status); } >/dev/null && {
3887 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3888 test ! -s conftest.err
3892 echo "$as_me: failed program was
:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3895 # Broken: fails on valid input.
3899 rm -f conftest.err conftest.$ac_ext
3901 # OK, works on sane cases. Now check whether nonexistent headers
3902 # can be detected and how.
3903 cat >conftest.$ac_ext <<_ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909 #include <ac_nonexistent.h>
3911 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3914 *) ac_try_echo=$ac_try;;
3916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3917 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3919 grep -v '^ *+' conftest.er1 >conftest.err
3921 cat conftest.err >&5
3922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3923 (exit $ac_status); } >/dev/null && {
3924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3925 test ! -s conftest.err
3927 # Broken: success on invalid input.
3930 echo "$as_me: failed program was
:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3933 # Passes both tests.
3938 rm -f conftest.err conftest.$ac_ext
3941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3942 rm -f conftest.err conftest.$ac_ext
3943 if $ac_preproc_ok; then
3946 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3947 See \
`config.log' for more details." >&5
3948 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3949 See \`config.log
' for more details." >&2;}
3950 { (exit 1); exit 1; }; }
3954 ac_cpp='$CPP $CPPFLAGS'
3955 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3956 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3957 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3960 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3961 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3962 if test "${ac_cv_path_GREP+set}" = set; then
3963 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 # Extract the first word of "grep ggrep" to use in msg output
3966 if test -z "$GREP"; then
3967 set dummy grep ggrep; ac_prog_name=$2
3968 if test "${ac_cv_path_GREP+set}" = set; then
3969 echo $ECHO_N "(cached) $ECHO_C" >&6
3971 ac_path_GREP_found=false
3972 # Loop through the user's path and
test for each of PROGNAME-LIST
3973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3974 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3977 test -z "$as_dir" && as_dir
=.
3978 for ac_prog
in grep ggrep
; do
3979 for ac_exec_ext
in '' $ac_executable_extensions; do
3980 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3981 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3982 # Check for GNU ac_path_GREP and select it if it is found.
3983 # Check for GNU $ac_path_GREP
3984 case `"$ac_path_GREP" --version 2>&1` in
3986 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3989 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3992 cat "conftest.in" "conftest.in" >"conftest.tmp"
3993 mv "conftest.tmp" "conftest.in"
3994 cp "conftest.in" "conftest.nl"
3995 echo 'GREP' >> "conftest.nl"
3996 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3997 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
3998 ac_count
=`expr $ac_count + 1`
3999 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4000 # Best one so far, save it but keep looking for a better one
4001 ac_cv_path_GREP
="$ac_path_GREP"
4002 ac_path_GREP_max
=$ac_count
4004 # 10*(2^10) chars as input seems more than enough
4005 test $ac_count -gt 10 && break
4007 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4011 $ac_path_GREP_found && break 3
4021 GREP
="$ac_cv_path_GREP"
4022 if test -z "$GREP"; then
4023 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4024 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4025 { (exit 1); exit 1; }; }
4029 ac_cv_path_GREP
=$GREP
4034 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4035 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4036 GREP
="$ac_cv_path_GREP"
4039 { echo "$as_me:$LINENO: checking for egrep" >&5
4040 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4041 if test "${ac_cv_path_EGREP+set}" = set; then
4042 echo $ECHO_N "(cached) $ECHO_C" >&6
4044 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4045 then ac_cv_path_EGREP
="$GREP -E"
4047 # Extract the first word of "egrep" to use in msg output
4048 if test -z "$EGREP"; then
4049 set dummy
egrep; ac_prog_name
=$2
4050 if test "${ac_cv_path_EGREP+set}" = set; then
4051 echo $ECHO_N "(cached) $ECHO_C" >&6
4053 ac_path_EGREP_found
=false
4054 # Loop through the user's path and test for each of PROGNAME-LIST
4055 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4056 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4059 test -z "$as_dir" && as_dir
=.
4060 for ac_prog
in egrep; do
4061 for ac_exec_ext
in '' $ac_executable_extensions; do
4062 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4063 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4064 # Check for GNU ac_path_EGREP and select it if it is found.
4065 # Check for GNU $ac_path_EGREP
4066 case `"$ac_path_EGREP" --version 2>&1` in
4068 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4071 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4074 cat "conftest.in" "conftest.in" >"conftest.tmp"
4075 mv "conftest.tmp" "conftest.in"
4076 cp "conftest.in" "conftest.nl"
4077 echo 'EGREP' >> "conftest.nl"
4078 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4079 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4080 ac_count
=`expr $ac_count + 1`
4081 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4082 # Best one so far, save it but keep looking for a better one
4083 ac_cv_path_EGREP
="$ac_path_EGREP"
4084 ac_path_EGREP_max
=$ac_count
4086 # 10*(2^10) chars as input seems more than enough
4087 test $ac_count -gt 10 && break
4089 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4093 $ac_path_EGREP_found && break 3
4103 EGREP
="$ac_cv_path_EGREP"
4104 if test -z "$EGREP"; then
4105 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4106 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4107 { (exit 1); exit 1; }; }
4111 ac_cv_path_EGREP
=$EGREP
4117 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4118 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4119 EGREP
="$ac_cv_path_EGREP"
4123 { echo "$as_me:$LINENO: checking for AIX" >&5
4124 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4125 cat >conftest.
$ac_ext <<_ACEOF
4128 cat confdefs.h
>>conftest.
$ac_ext
4129 cat >>conftest.
$ac_ext <<_ACEOF
4130 /* end confdefs.h. */
4136 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4137 $EGREP "yes" >/dev
/null
2>&1; then
4138 { echo "$as_me:$LINENO: result: yes" >&5
4139 echo "${ECHO_T}yes" >&6; }
4140 cat >>confdefs.h
<<\_ACEOF
4141 #define _ALL_SOURCE 1
4145 { echo "$as_me:$LINENO: result: no" >&5
4146 echo "${ECHO_T}no" >&6; }
4151 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4152 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4153 if test "${ac_cv_header_stdc+set}" = set; then
4154 echo $ECHO_N "(cached) $ECHO_C" >&6
4156 cat >conftest.
$ac_ext <<_ACEOF
4159 cat confdefs.h
>>conftest.
$ac_ext
4160 cat >>conftest.
$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4175 rm -f conftest.
$ac_objext
4176 if { (ac_try
="$ac_compile"
4178 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4179 *) ac_try_echo=$ac_try;;
4181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4182 (eval "$ac_compile") 2>conftest.er1
4184 grep -v '^ *+' conftest.er1 >conftest.err
4186 cat conftest.err >&5
4187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4188 (exit $ac_status); } && {
4189 test -z "$ac_c_werror_flag" ||
4190 test ! -s conftest.err
4191 } && test -s conftest.$ac_objext; then
4192 ac_cv_header_stdc=yes
4194 echo "$as_me: failed program was:" >&5
4195 sed 's/^/| /' conftest.$ac_ext >&5
4197 ac_cv_header_stdc=no
4200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4202 if test $ac_cv_header_stdc = yes; then
4203 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4204 cat >conftest.$ac_ext <<_ACEOF
4207 cat confdefs.h >>conftest.$ac_ext
4208 cat >>conftest.$ac_ext <<_ACEOF
4209 /* end confdefs.h. */
4213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4214 $EGREP "memchr" >/dev/null 2>&1; then
4217 ac_cv_header_stdc=no
4223 if test $ac_cv_header_stdc = yes; then
4224 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4225 cat >conftest.$ac_ext <<_ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4234 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4235 $EGREP "free" >/dev/null 2>&1; then
4238 ac_cv_header_stdc=no
4244 if test $ac_cv_header_stdc = yes; then
4245 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4246 if test "$cross_compiling" = yes; then
4249 cat >conftest.$ac_ext <<_ACEOF
4252 cat confdefs.h >>conftest.$ac_ext
4253 cat >>conftest.$ac_ext <<_ACEOF
4254 /* end confdefs.h. */
4257 #if ((' ' & 0x0FF) == 0x020)
4258 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4259 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4261 # define ISLOWER(c) \
4262 (('a' <= (c) && (c) <= 'i') \
4263 || ('j' <= (c) && (c) <= 'r') \
4264 || ('s' <= (c) && (c) <= 'z'))
4265 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4268 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4273 for (i = 0; i < 256; i++)
4274 if (XOR (islower (i), ISLOWER (i))
4275 || toupper (i) != TOUPPER (i))
4280 rm -f conftest$ac_exeext
4281 if { (ac_try="$ac_link"
4283 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4284 *) ac_try_echo
=$ac_try;;
4286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4287 (eval "$ac_link") 2>&5
4289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4290 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4291 { (case "(($ac_try" in
4292 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4296 (eval "$ac_try") 2>&5
4298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4299 (exit $ac_status); }; }; then
4302 echo "$as_me: program exited with status $ac_status" >&5
4303 echo "$as_me: failed program was:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4307 ac_cv_header_stdc=no
4309 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4315 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4316 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4317 if test $ac_cv_header_stdc = yes; then
4319 cat >>confdefs.h <<\_ACEOF
4320 #define STDC_HEADERS 1
4325 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4335 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4336 inttypes.h stdint.h unistd.h
4338 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4339 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4340 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4341 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4342 echo $ECHO_N "(cached) $ECHO_C" >&6
4344 cat >conftest.$ac_ext <<_ACEOF
4347 cat confdefs.h >>conftest.$ac_ext
4348 cat >>conftest.$ac_ext <<_ACEOF
4349 /* end confdefs.h. */
4350 $ac_includes_default
4352 #include <$ac_header>
4354 rm -f conftest.$ac_objext
4355 if { (ac_try="$ac_compile"
4357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4358 *) ac_try_echo
=$ac_try;;
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_compile") 2>conftest.er1
4363 grep -v '^ *+' conftest.er1
>conftest.err
4365 cat conftest.err
>&5
4366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4367 (exit $ac_status); } && {
4368 test -z "$ac_c_werror_flag" ||
4369 test ! -s conftest.err
4370 } && test -s conftest.
$ac_objext; then
4371 eval "$as_ac_Header=yes"
4373 echo "$as_me: failed program was:" >&5
4374 sed 's/^/| /' conftest.
$ac_ext >&5
4376 eval "$as_ac_Header=no"
4379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4381 ac_res
=`eval echo '${'$as_ac_Header'}'`
4382 { echo "$as_me:$LINENO: result: $ac_res" >&5
4383 echo "${ECHO_T}$ac_res" >&6; }
4384 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4385 cat >>confdefs.h
<<_ACEOF
4386 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4394 if test "${ac_cv_header_minix_config_h+set}" = set; then
4395 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4396 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4397 if test "${ac_cv_header_minix_config_h+set}" = set; then
4398 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4401 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4403 # Is the header compilable?
4404 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4405 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4406 cat >conftest.
$ac_ext <<_ACEOF
4409 cat confdefs.h
>>conftest.
$ac_ext
4410 cat >>conftest.
$ac_ext <<_ACEOF
4411 /* end confdefs.h. */
4412 $ac_includes_default
4413 #include <minix/config.h>
4415 rm -f conftest.
$ac_objext
4416 if { (ac_try
="$ac_compile"
4418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4419 *) ac_try_echo=$ac_try;;
4421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4422 (eval "$ac_compile") 2>conftest.er1
4424 grep -v '^ *+' conftest.er1 >conftest.err
4426 cat conftest.err >&5
4427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4428 (exit $ac_status); } && {
4429 test -z "$ac_c_werror_flag" ||
4430 test ! -s conftest.err
4431 } && test -s conftest.$ac_objext; then
4432 ac_header_compiler=yes
4434 echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4437 ac_header_compiler=no
4440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4441 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4442 echo "${ECHO_T}$ac_header_compiler" >&6; }
4444 # Is the header present?
4445 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4446 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4447 cat >conftest.$ac_ext <<_ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453 #include <minix/config.h>
4455 if { (ac_try="$ac_cpp conftest.$ac_ext"
4457 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4458 *) ac_try_echo
=$ac_try;;
4460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4461 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4463 grep -v '^ *+' conftest.er1
>conftest.err
4465 cat conftest.err
>&5
4466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4467 (exit $ac_status); } >/dev
/null
&& {
4468 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4469 test ! -s conftest.err
4471 ac_header_preproc
=yes
4473 echo "$as_me: failed program was:" >&5
4474 sed 's/^/| /' conftest.
$ac_ext >&5
4476 ac_header_preproc
=no
4479 rm -f conftest.err conftest.
$ac_ext
4480 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4481 echo "${ECHO_T}$ac_header_preproc" >&6; }
4483 # So? What about this header?
4484 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4486 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4487 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4488 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4489 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4490 ac_header_preproc
=yes
4493 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4494 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4496 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4498 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4500 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4502 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4504 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4508 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4509 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4510 if test "${ac_cv_header_minix_config_h+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4513 ac_cv_header_minix_config_h
=$ac_header_preproc
4515 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4516 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4519 if test $ac_cv_header_minix_config_h = yes; then
4526 if test "$MINIX" = yes; then
4528 cat >>confdefs.h
<<\_ACEOF
4529 #define _POSIX_SOURCE 1
4533 cat >>confdefs.h
<<\_ACEOF
4534 #define _POSIX_1_SOURCE 2
4538 cat >>confdefs.h
<<\_ACEOF
4554 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4555 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4556 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4559 cat >conftest.
$ac_ext <<_ACEOF
4562 cat confdefs.h
>>conftest.
$ac_ext
4563 cat >>conftest.
$ac_ext <<_ACEOF
4564 /* end confdefs.h. */
4566 # define __EXTENSIONS__ 1
4567 $ac_includes_default
4576 rm -f conftest.
$ac_objext
4577 if { (ac_try
="$ac_compile"
4579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4583 (eval "$ac_compile") 2>conftest.er1
4585 grep -v '^ *+' conftest.er1 >conftest.err
4587 cat conftest.err >&5
4588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4589 (exit $ac_status); } && {
4590 test -z "$ac_c_werror_flag" ||
4591 test ! -s conftest.err
4592 } && test -s conftest.$ac_objext; then
4593 ac_cv_safe_to_define___extensions__=yes
4595 echo "$as_me: failed program was:" >&5
4596 sed 's/^/| /' conftest.$ac_ext >&5
4598 ac_cv_safe_to_define___extensions__=no
4601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4603 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4604 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4605 test $ac_cv_safe_to_define___extensions__ = yes &&
4606 cat >>confdefs.h <<\_ACEOF
4607 #define __EXTENSIONS__ 1
4610 cat >>confdefs.h <<\_ACEOF
4611 #define _POSIX_PTHREAD_SEMANTICS 1
4614 cat >>confdefs.h <<\_ACEOF
4615 #define _TANDEM_SOURCE 1
4620 ### Use -Wno-pointer-sign if the compiler supports it
4621 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4622 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4623 SAVE_CFLAGS="$CFLAGS"
4624 CFLAGS="$CFLAGS -Wno-pointer-sign"
4625 cat >conftest.$ac_ext <<_ACEOF
4628 cat confdefs.h >>conftest.$ac_ext
4629 cat >>conftest.$ac_ext <<_ACEOF
4630 /* end confdefs.h. */
4640 rm -f conftest.$ac_objext
4641 if { (ac_try="$ac_compile"
4643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4644 *) ac_try_echo
=$ac_try;;
4646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4647 (eval "$ac_compile") 2>conftest.er1
4649 grep -v '^ *+' conftest.er1
>conftest.err
4651 cat conftest.err
>&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } && {
4654 test -z "$ac_c_werror_flag" ||
4655 test ! -s conftest.err
4656 } && test -s conftest.
$ac_objext; then
4659 echo "$as_me: failed program was:" >&5
4660 sed 's/^/| /' conftest.
$ac_ext >&5
4665 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4666 if test $has_option = yes; then
4667 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4669 { echo "$as_me:$LINENO: result: $has_option" >&5
4670 echo "${ECHO_T}$has_option" >&6; }
4671 CFLAGS
="$SAVE_CFLAGS"
4675 #### Some other nice autoconf tests.
4677 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4678 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4680 if test "$LN_S" = "ln -s"; then
4681 { echo "$as_me:$LINENO: result: yes" >&5
4682 echo "${ECHO_T}yes" >&6; }
4684 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4685 echo "${ECHO_T}no, using $LN_S" >&6; }
4689 ac_cpp
='$CPP $CPPFLAGS'
4690 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4693 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4694 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4695 # On Suns, sometimes $CPP names a directory.
4696 if test -n "$CPP" && test -d "$CPP"; then
4699 if test -z "$CPP"; then
4700 if test "${ac_cv_prog_CPP+set}" = set; then
4701 echo $ECHO_N "(cached) $ECHO_C" >&6
4703 # Double quotes because CPP needs to be expanded
4704 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4707 for ac_c_preproc_warn_flag
in '' yes
4709 # Use a header file that comes with gcc, so configuring glibc
4710 # with a fresh cross-compiler works.
4711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4712 # <limits.h> exists even on freestanding compilers.
4713 # On the NeXT, cc -E runs the code through the compiler's parser,
4714 # not just through cpp. "Syntax error" is here to catch this case.
4715 cat >conftest.
$ac_ext <<_ACEOF
4718 cat confdefs.h
>>conftest.
$ac_ext
4719 cat >>conftest.
$ac_ext <<_ACEOF
4720 /* end confdefs.h. */
4722 # include <limits.h>
4724 # include <assert.h>
4728 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4736 grep -v '^ *+' conftest.er1 >conftest.err
4738 cat conftest.err >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } >/dev/null && {
4741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4742 test ! -s conftest.err
4746 echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4749 # Broken: fails on valid input.
4753 rm -f conftest.err conftest.$ac_ext
4755 # OK, works on sane cases. Now check whether nonexistent headers
4756 # can be detected and how.
4757 cat >conftest.$ac_ext <<_ACEOF
4760 cat confdefs.h >>conftest.$ac_ext
4761 cat >>conftest.$ac_ext <<_ACEOF
4762 /* end confdefs.h. */
4763 #include <ac_nonexistent.h>
4765 if { (ac_try="$ac_cpp conftest.$ac_ext"
4767 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4768 *) ac_try_echo
=$ac_try;;
4770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4771 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4773 grep -v '^ *+' conftest.er1
>conftest.err
4775 cat conftest.err
>&5
4776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4777 (exit $ac_status); } >/dev
/null
&& {
4778 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4779 test ! -s conftest.err
4781 # Broken: success on invalid input.
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.
$ac_ext >&5
4787 # Passes both tests.
4792 rm -f conftest.err conftest.
$ac_ext
4795 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4796 rm -f conftest.err conftest.
$ac_ext
4797 if $ac_preproc_ok; then
4809 { echo "$as_me:$LINENO: result: $CPP" >&5
4810 echo "${ECHO_T}$CPP" >&6; }
4812 for ac_c_preproc_warn_flag
in '' yes
4814 # Use a header file that comes with gcc, so configuring glibc
4815 # with a fresh cross-compiler works.
4816 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4817 # <limits.h> exists even on freestanding compilers.
4818 # On the NeXT, cc -E runs the code through the compiler's parser,
4819 # not just through cpp. "Syntax error" is here to catch this case.
4820 cat >conftest.
$ac_ext <<_ACEOF
4823 cat confdefs.h
>>conftest.
$ac_ext
4824 cat >>conftest.
$ac_ext <<_ACEOF
4825 /* end confdefs.h. */
4827 # include <limits.h>
4829 # include <assert.h>
4833 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4835 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4836 *) ac_try_echo=$ac_try;;
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4841 grep -v '^ *+' conftest.er1 >conftest.err
4843 cat conftest.err >&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } >/dev/null && {
4846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4847 test ! -s conftest.err
4851 echo "$as_me: failed program was:" >&5
4852 sed 's/^/| /' conftest.$ac_ext >&5
4854 # Broken: fails on valid input.
4858 rm -f conftest.err conftest.$ac_ext
4860 # OK, works on sane cases. Now check whether nonexistent headers
4861 # can be detected and how.
4862 cat >conftest.$ac_ext <<_ACEOF
4865 cat confdefs.h >>conftest.$ac_ext
4866 cat >>conftest.$ac_ext <<_ACEOF
4867 /* end confdefs.h. */
4868 #include <ac_nonexistent.h>
4870 if { (ac_try="$ac_cpp conftest.$ac_ext"
4872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4873 *) ac_try_echo
=$ac_try;;
4875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4878 grep -v '^ *+' conftest.er1
>conftest.err
4880 cat conftest.err
>&5
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); } >/dev
/null
&& {
4883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4884 test ! -s conftest.err
4886 # Broken: success on invalid input.
4889 echo "$as_me: failed program was:" >&5
4890 sed 's/^/| /' conftest.
$ac_ext >&5
4892 # Passes both tests.
4897 rm -f conftest.err conftest.
$ac_ext
4900 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4901 rm -f conftest.err conftest.
$ac_ext
4902 if $ac_preproc_ok; then
4905 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4906 See \`config.log' for more details." >&5
4907 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4908 See \`config.log' for more details." >&2;}
4909 { (exit 1); exit 1; }; }
4913 ac_cpp
='$CPP $CPPFLAGS'
4914 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4915 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4916 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4918 # Find a good install program. We prefer a C program (faster),
4919 # so one script is as good as another. But avoid the broken or
4920 # incompatible versions:
4921 # SysV /etc/install, /usr/sbin/install
4922 # SunOS /usr/etc/install
4923 # IRIX /sbin/install
4925 # AmigaOS /C/install, which installs bootblocks on floppy discs
4926 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4927 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4928 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4929 # OS/2's system install, which has a completely different semantic
4930 # ./install, which can be erroneously created by make from ./install.sh.
4931 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4932 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4933 if test -z "$INSTALL"; then
4934 if test "${ac_cv_path_install+set}" = set; then
4935 echo $ECHO_N "(cached) $ECHO_C" >&6
4937 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4941 test -z "$as_dir" && as_dir
=.
4942 # Account for people who put trailing slashes in PATH elements.
4944 .
/ | .
// |
/cC
/* | \
4945 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4946 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4949 # OSF1 and SCO ODT 3.0 have their own names for install.
4950 # Don't use installbsd from OSF since it installs stuff as root
4952 for ac_prog
in ginstall scoinst
install; do
4953 for ac_exec_ext
in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4955 if test $ac_prog = install &&
4956 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4957 # AIX install. It has an incompatible calling convention.
4959 elif test $ac_prog = install &&
4960 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4961 # program-specific install script used by HP pwplus--don't use.
4964 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4977 if test "${ac_cv_path_install+set}" = set; then
4978 INSTALL
=$ac_cv_path_install
4980 # As a last resort, use the slow shell script. Don't cache a
4981 # value for INSTALL within a source directory, because that will
4982 # break other packages using the cache if that directory is
4983 # removed, or if the value is a relative name.
4984 INSTALL
=$ac_install_sh
4987 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4988 echo "${ECHO_T}$INSTALL" >&6; }
4990 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4991 # It thinks the first close brace ends the variable substitution.
4992 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4994 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4996 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4998 if test "x$RANLIB" = x
; then
4999 if test -n "$ac_tool_prefix"; then
5000 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5001 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5002 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5003 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5004 if test "${ac_cv_prog_RANLIB+set}" = set; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5007 if test -n "$RANLIB"; then
5008 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5010 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5014 test -z "$as_dir" && as_dir
=.
5015 for ac_exec_ext
in '' $ac_executable_extensions; do
5016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5017 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5018 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5027 RANLIB
=$ac_cv_prog_RANLIB
5028 if test -n "$RANLIB"; then
5029 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5030 echo "${ECHO_T}$RANLIB" >&6; }
5032 { echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6; }
5038 if test -z "$ac_cv_prog_RANLIB"; then
5039 ac_ct_RANLIB
=$RANLIB
5040 # Extract the first word of "ranlib", so it can be a program name with args.
5041 set dummy ranlib
; ac_word
=$2
5042 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5043 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5044 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5045 echo $ECHO_N "(cached) $ECHO_C" >&6
5047 if test -n "$ac_ct_RANLIB"; then
5048 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5054 test -z "$as_dir" && as_dir
=.
5055 for ac_exec_ext
in '' $ac_executable_extensions; do
5056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5057 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5058 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5067 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5068 if test -n "$ac_ct_RANLIB"; then
5069 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5070 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5072 { echo "$as_me:$LINENO: result: no" >&5
5073 echo "${ECHO_T}no" >&6; }
5076 if test "x$ac_ct_RANLIB" = x
; then
5079 case $cross_compiling:$ac_tool_warned in
5081 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5082 whose name does not start with the host triplet. If you think this
5083 configuration is useful to you, please write to autoconf@gnu.org." >&5
5084 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5085 whose name does not start with the host triplet. If you think this
5086 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5087 ac_tool_warned
=yes ;;
5089 RANLIB
=$ac_ct_RANLIB
5092 RANLIB
="$ac_cv_prog_RANLIB"
5096 # Extract the first word of "install-info", so it can be a program name with args.
5097 set dummy install-info
; ac_word
=$2
5098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5100 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5103 case $INSTALL_INFO in
5105 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5108 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5112 test -z "$as_dir" && as_dir
=.
5113 for ac_exec_ext
in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5115 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5127 if test -n "$INSTALL_INFO"; then
5128 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5129 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5131 { echo "$as_me:$LINENO: result: no" >&5
5132 echo "${ECHO_T}no" >&6; }
5136 # Extract the first word of "install-info", so it can be a program name with args.
5137 set dummy install-info
; ac_word
=$2
5138 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5139 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5140 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5141 echo $ECHO_N "(cached) $ECHO_C" >&6
5143 case $INSTALL_INFO in
5145 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5148 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5149 for as_dir
in /usr
/sbin
5152 test -z "$as_dir" && as_dir
=.
5153 for ac_exec_ext
in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5167 if test -n "$INSTALL_INFO"; then
5168 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5169 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5171 { echo "$as_me:$LINENO: result: no" >&5
5172 echo "${ECHO_T}no" >&6; }
5176 # Extract the first word of "install-info", so it can be a program name with args.
5177 set dummy install-info
; ac_word
=$2
5178 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5179 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5180 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5181 echo $ECHO_N "(cached) $ECHO_C" >&6
5183 case $INSTALL_INFO in
5185 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5188 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5192 test -z "$as_dir" && as_dir
=.
5193 for ac_exec_ext
in '' $ac_executable_extensions; do
5194 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5195 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5196 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5207 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5208 if test -n "$INSTALL_INFO"; then
5209 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5210 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5212 { echo "$as_me:$LINENO: result: no" >&5
5213 echo "${ECHO_T}no" >&6; }
5217 # Extract the first word of "gzip", so it can be a program name with args.
5218 set dummy
gzip; ac_word
=$2
5219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5221 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5222 echo $ECHO_N "(cached) $ECHO_C" >&6
5226 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5229 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5233 test -z "$as_dir" && as_dir
=.
5234 for ac_exec_ext
in '' $ac_executable_extensions; do
5235 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5236 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5237 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5247 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5248 if test -n "$GZIP_PROG"; then
5249 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5250 echo "${ECHO_T}$GZIP_PROG" >&6; }
5252 { echo "$as_me:$LINENO: result: no" >&5
5253 echo "${ECHO_T}no" >&6; }
5259 ## Need makeinfo >= 4.6 (?) to build the manuals.
5260 # Extract the first word of "makeinfo", so it can be a program name with args.
5261 set dummy makeinfo
; ac_word
=$2
5262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5264 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5265 echo $ECHO_N "(cached) $ECHO_C" >&6
5269 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5276 test -z "$as_dir" && as_dir
=.
5277 for ac_exec_ext
in '' $ac_executable_extensions; do
5278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5279 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5280 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5287 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5291 MAKEINFO
=$ac_cv_path_MAKEINFO
5292 if test -n "$MAKEINFO"; then
5293 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5294 echo "${ECHO_T}$MAKEINFO" >&6; }
5296 { echo "$as_me:$LINENO: result: no" >&5
5297 echo "${ECHO_T}no" >&6; }
5301 if test "$MAKEINFO" != "no" && \
5302 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
5306 ## Makeinfo is unusual. For a released Emacs, the manuals are
5307 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5308 ## therefore in the category of "special tools" not normally required, which
5309 ## configure does not have to check for (eg autoconf itself).
5310 ## In a CVS checkout on the other hand, the manuals are not included.
5311 ## So makeinfo is a requirement to build from CVS, and configure
5312 ## should test for it as it does for any other build requirement.
5313 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5314 ## with pre-built manuals, from a CVS checkout.
5315 if test "$MAKEINFO" = "no"; then
5316 if test "x${with_makeinfo}" = "xno"; then
5318 elif ! test -e $srcdir/info
/emacs
; then
5319 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5320 source tree does not seem to have pre-built manuals in the \`info' directory.
5321 Either install a suitable version of makeinfo, or re-run configure
5322 with the \`--without-makeinfo' option to build without the manuals. " >&5
5323 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5324 source tree does not seem to have pre-built manuals in the \`info' directory.
5325 Either install a suitable version of makeinfo, or re-run configure
5326 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5327 { (exit 1); exit 1; }; }
5332 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5334 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5337 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5339 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5343 late_LDFLAGS
=$LDFLAGS
5344 if test "$GCC" = yes; then
5345 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5347 LDFLAGS
="$LDFLAGS -znocombreloc"
5350 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5351 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5352 cat >conftest.
$ac_ext <<_ACEOF
5355 rm -f conftest.
$ac_objext conftest
$ac_exeext
5356 if { (ac_try
="$ac_link"
5358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5359 *) ac_try_echo=$ac_try;;
5361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362 (eval "$ac_link") 2>conftest.er1
5364 grep -v '^ *+' conftest.er1 >conftest.err
5366 cat conftest.err >&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } && {
5369 test -z "$ac_c_werror_flag" ||
5370 test ! -s conftest.err
5371 } && test -s conftest$ac_exeext &&
5372 $as_test_x conftest$ac_exeext; then
5373 { echo "$as_me:$LINENO: result: yes" >&5
5374 echo "${ECHO_T}yes" >&6; }
5376 echo "$as_me: failed program was:" >&5
5377 sed 's/^/| /' conftest.$ac_ext >&5
5379 LDFLAGS=$late_LDFLAGS
5380 { echo "$as_me:$LINENO: result: no" >&5
5381 echo "${ECHO_T}no" >&6; }
5384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5385 conftest$ac_exeext conftest.$ac_ext
5387 #### Extract some information from the operating system and machine files.
5389 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5390 - which libraries the lib-src programs will want, and
5391 - whether the GNU malloc routines are usable..." >&5
5392 echo "$as_me: checking the machine- and system-dependent files to find out
5393 - which libraries the lib-src programs will want, and
5394 - whether the GNU malloc routines are usable..." >&6;}
5396 ### First figure out CFLAGS (which we use for running the compiler here)
5397 ### and REAL_CFLAGS (which we use for real compilation).
5398 ### The two are the same except on a few systems, where they are made
5399 ### different to work around various lossages. For example,
5400 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5401 ### as implying static linking.
5403 ### If the CFLAGS env var is specified, we use that value
5404 ### instead of the default.
5406 ### It's not important that this name contain the PID; you can't run
5407 ### two configures in the same directory and have anything work
5409 tempcname="conftest.c"
5412 #include "'${srcdir}'/src/'${opsysfile}'"
5413 #include "'${srcdir}'/src/'${machfile}'"
5414 #ifndef LIBS_MACHINE
5415 #define LIBS_MACHINE
5420 #ifndef C_SWITCH_SYSTEM
5421 #define C_SWITCH_SYSTEM
5423 #ifndef C_SWITCH_MACHINE
5424 #define C_SWITCH_MACHINE
5426 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5427 configure___ c_switch_system=C_SWITCH_SYSTEM
5428 configure___ c_switch_machine=C_SWITCH_MACHINE
5431 #define LIB_X11_LIB -lX11
5434 #ifndef LIBX11_SYSTEM
5435 #define LIBX11_SYSTEM
5437 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5440 configure___ unexec=UNEXEC
5442 configure___ unexec=unexec.o
5445 #ifdef SYSTEM_MALLOC
5446 configure___ system_malloc=yes
5448 configure___ system_malloc=no
5451 #ifdef USE_MMAP_FOR_BUFFERS
5452 configure___ use_mmap_for_buffers=yes
5454 configure___ use_mmap_for_buffers=no
5457 #ifndef C_DEBUG_SWITCH
5458 #define C_DEBUG_SWITCH -g
5461 #ifndef C_OPTIMIZE_SWITCH
5463 #define C_OPTIMIZE_SWITCH -O2
5465 #define C_OPTIMIZE_SWITCH -O
5469 #ifndef C_WARNINGS_SWITCH
5470 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5473 #ifndef LD_SWITCH_MACHINE
5474 #define LD_SWITCH_MACHINE
5477 #ifndef LD_SWITCH_SYSTEM
5478 #define LD_SWITCH_SYSTEM
5481 #ifndef LD_SWITCH_X_SITE_AUX
5482 #define LD_SWITCH_X_SITE_AUX
5485 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5486 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5488 #ifdef THIS_IS_CONFIGURE
5490 /* Get the CFLAGS for tests in configure. */
5492 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5494 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5497 #else /* not THIS_IS_CONFIGURE */
5499 /* Get the CFLAGS for real compilation. */
5501 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5503 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5506 #endif /* not THIS_IS_CONFIGURE */
5509 # The value of CPP is a quoted variable reference, so we need to do this
5510 # to get its actual value...
5511 CPP=`eval "echo $CPP"`
5512 eval `${CPP} -Isrc ${tempcname} \
5513 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5514 if test "x$SPECIFIED_CFLAGS" = x; then
5515 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5516 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5518 REAL_CFLAGS="$CFLAGS"
5522 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5524 ### Make sure subsequent tests use flags consistent with the build flags.
5526 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5527 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5529 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5534 # Check whether --enable-largefile was given.
5535 if test "${enable_largefile+set}" = set; then
5536 enableval=$enable_largefile;
5539 if test "$enable_largefile" != no; then
5541 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5542 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5543 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5544 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 ac_cv_sys_largefile_CC=no
5547 if test "$GCC" != yes; then
5550 # IRIX 6.2 and later do not support large files by default,
5551 # so use the C compiler's -n32 option if that helps.
5552 cat >conftest.$ac_ext <<_ACEOF
5555 cat confdefs.h >>conftest.$ac_ext
5556 cat >>conftest.$ac_ext <<_ACEOF
5557 /* end confdefs.h. */
5558 #include <sys/types.h>
5559 /* Check that off_t can represent 2**63 - 1 correctly.
5560 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5561 since some C++ compilers masquerading as C compilers
5562 incorrectly reject 9223372036854775807. */
5563 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5564 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5565 && LARGE_OFF_T % 2147483647 == 1)
5575 rm -f conftest.$ac_objext
5576 if { (ac_try="$ac_compile"
5578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5579 *) ac_try_echo
=$ac_try;;
5581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5582 (eval "$ac_compile") 2>conftest.er1
5584 grep -v '^ *+' conftest.er1
>conftest.err
5586 cat conftest.err
>&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); } && {
5589 test -z "$ac_c_werror_flag" ||
5590 test ! -s conftest.err
5591 } && test -s conftest.
$ac_objext; then
5594 echo "$as_me: failed program was:" >&5
5595 sed 's/^/| /' conftest.
$ac_ext >&5
5600 rm -f core conftest.err conftest.
$ac_objext
5602 rm -f conftest.
$ac_objext
5603 if { (ac_try
="$ac_compile"
5605 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5606 *) ac_try_echo=$ac_try;;
5608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5609 (eval "$ac_compile") 2>conftest.er1
5611 grep -v '^ *+' conftest.er1 >conftest.err
5613 cat conftest.err >&5
5614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5615 (exit $ac_status); } && {
5616 test -z "$ac_c_werror_flag" ||
5617 test ! -s conftest.err
5618 } && test -s conftest.$ac_objext; then
5619 ac_cv_sys_largefile_CC=' -n32'; break
5621 echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5627 rm -f core conftest.err conftest.$ac_objext
5631 rm -f conftest.$ac_ext
5634 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5635 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5636 if test "$ac_cv_sys_largefile_CC" != no; then
5637 CC=$CC$ac_cv_sys_largefile_CC
5640 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5641 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5642 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5646 cat >conftest.$ac_ext <<_ACEOF
5649 cat confdefs.h >>conftest.$ac_ext
5650 cat >>conftest.$ac_ext <<_ACEOF
5651 /* end confdefs.h. */
5652 #include <sys/types.h>
5653 /* Check that off_t can represent 2**63 - 1 correctly.
5654 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5655 since some C++ compilers masquerading as C compilers
5656 incorrectly reject 9223372036854775807. */
5657 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5658 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5659 && LARGE_OFF_T % 2147483647 == 1)
5669 rm -f conftest.$ac_objext
5670 if { (ac_try="$ac_compile"
5672 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5673 *) ac_try_echo
=$ac_try;;
5675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5676 (eval "$ac_compile") 2>conftest.er1
5678 grep -v '^ *+' conftest.er1
>conftest.err
5680 cat conftest.err
>&5
5681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5682 (exit $ac_status); } && {
5683 test -z "$ac_c_werror_flag" ||
5684 test ! -s conftest.err
5685 } && test -s conftest.
$ac_objext; then
5686 ac_cv_sys_file_offset_bits
=no
; break
5688 echo "$as_me: failed program was:" >&5
5689 sed 's/^/| /' conftest.
$ac_ext >&5
5694 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5695 cat >conftest.
$ac_ext <<_ACEOF
5698 cat confdefs.h
>>conftest.
$ac_ext
5699 cat >>conftest.
$ac_ext <<_ACEOF
5700 /* end confdefs.h. */
5701 #define _FILE_OFFSET_BITS 64
5702 #include <sys/types.h>
5703 /* Check that off_t can represent 2**63 - 1 correctly.
5704 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5705 since some C++ compilers masquerading as C compilers
5706 incorrectly reject 9223372036854775807. */
5707 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5708 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5709 && LARGE_OFF_T % 2147483647 == 1)
5719 rm -f conftest.
$ac_objext
5720 if { (ac_try
="$ac_compile"
5722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_compile") 2>conftest.er1
5728 grep -v '^ *+' conftest.er1 >conftest.err
5730 cat conftest.err >&5
5731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5732 (exit $ac_status); } && {
5733 test -z "$ac_c_werror_flag" ||
5734 test ! -s conftest.err
5735 } && test -s conftest.$ac_objext; then
5736 ac_cv_sys_file_offset_bits=64; break
5738 echo "$as_me: failed program was:" >&5
5739 sed 's/^/| /' conftest.$ac_ext >&5
5744 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5745 ac_cv_sys_file_offset_bits=unknown
5749 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5750 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5751 case $ac_cv_sys_file_offset_bits in #(
5754 cat >>confdefs.h <<_ACEOF
5755 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5760 if test $ac_cv_sys_file_offset_bits = unknown; then
5761 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5762 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5763 if test "${ac_cv_sys_large_files+set}" = set; then
5764 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 cat >conftest.$ac_ext <<_ACEOF
5770 cat confdefs.h >>conftest.$ac_ext
5771 cat >>conftest.$ac_ext <<_ACEOF
5772 /* end confdefs.h. */
5773 #include <sys/types.h>
5774 /* Check that off_t can represent 2**63 - 1 correctly.
5775 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5776 since some C++ compilers masquerading as C compilers
5777 incorrectly reject 9223372036854775807. */
5778 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5780 && LARGE_OFF_T % 2147483647 == 1)
5790 rm -f conftest.$ac_objext
5791 if { (ac_try="$ac_compile"
5793 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5794 *) ac_try_echo
=$ac_try;;
5796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5797 (eval "$ac_compile") 2>conftest.er1
5799 grep -v '^ *+' conftest.er1
>conftest.err
5801 cat conftest.err
>&5
5802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5803 (exit $ac_status); } && {
5804 test -z "$ac_c_werror_flag" ||
5805 test ! -s conftest.err
5806 } && test -s conftest.
$ac_objext; then
5807 ac_cv_sys_large_files
=no
; break
5809 echo "$as_me: failed program was:" >&5
5810 sed 's/^/| /' conftest.
$ac_ext >&5
5815 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5816 cat >conftest.
$ac_ext <<_ACEOF
5819 cat confdefs.h
>>conftest.
$ac_ext
5820 cat >>conftest.
$ac_ext <<_ACEOF
5821 /* end confdefs.h. */
5822 #define _LARGE_FILES 1
5823 #include <sys/types.h>
5824 /* Check that off_t can represent 2**63 - 1 correctly.
5825 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5826 since some C++ compilers masquerading as C compilers
5827 incorrectly reject 9223372036854775807. */
5828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5829 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5830 && LARGE_OFF_T % 2147483647 == 1)
5840 rm -f conftest.
$ac_objext
5841 if { (ac_try
="$ac_compile"
5843 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5844 *) ac_try_echo=$ac_try;;
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compile") 2>conftest.er1
5849 grep -v '^ *+' conftest.er1 >conftest.err
5851 cat conftest.err >&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } && {
5854 test -z "$ac_c_werror_flag" ||
5855 test ! -s conftest.err
5856 } && test -s conftest.$ac_objext; then
5857 ac_cv_sys_large_files=1; break
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 ac_cv_sys_large_files=unknown
5870 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5871 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5872 case $ac_cv_sys_large_files in #(
5875 cat >>confdefs.h <<_ACEOF
5876 #define _LARGE_FILES $ac_cv_sys_large_files
5886 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5887 ### be located in either /usr/lib64 or /usr/lib.
5888 case "${canonical}" in
5889 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5890 if test -d /usr/lib64; then
5892 cat >>confdefs.h <<\_ACEOF
5893 #define HAVE_LIB64_DIR 1
5902 if test "${with_sound}" != "no"; then
5903 # Sound support for GNU/Linux and the free BSDs.
5907 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5909 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5914 echo $ECHO_N "(cached) $ECHO_C" >&6
5916 ac_res=`eval echo '${'$as_ac_Header'}'`
5917 { echo "$as_me:$LINENO: result: $ac_res" >&5
5918 echo "${ECHO_T}$ac_res" >&6; }
5920 # Is the header compilable?
5921 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5922 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5923 cat >conftest.$ac_ext <<_ACEOF
5926 cat confdefs.h >>conftest.$ac_ext
5927 cat >>conftest.$ac_ext <<_ACEOF
5928 /* end confdefs.h. */
5929 $ac_includes_default
5930 #include <$ac_header>
5932 rm -f conftest.$ac_objext
5933 if { (ac_try="$ac_compile"
5935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5936 *) ac_try_echo
=$ac_try;;
5938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5939 (eval "$ac_compile") 2>conftest.er1
5941 grep -v '^ *+' conftest.er1
>conftest.err
5943 cat conftest.err
>&5
5944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5945 (exit $ac_status); } && {
5946 test -z "$ac_c_werror_flag" ||
5947 test ! -s conftest.err
5948 } && test -s conftest.
$ac_objext; then
5949 ac_header_compiler
=yes
5951 echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.
$ac_ext >&5
5954 ac_header_compiler
=no
5957 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5958 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5959 echo "${ECHO_T}$ac_header_compiler" >&6; }
5961 # Is the header present?
5962 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5963 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5964 cat >conftest.
$ac_ext <<_ACEOF
5967 cat confdefs.h
>>conftest.
$ac_ext
5968 cat >>conftest.
$ac_ext <<_ACEOF
5969 /* end confdefs.h. */
5970 #include <$ac_header>
5972 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5974 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5980 grep -v '^ *+' conftest.er1 >conftest.err
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } >/dev/null && {
5985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5988 ac_header_preproc=yes
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5993 ac_header_preproc=no
5996 rm -f conftest.err conftest.$ac_ext
5997 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5998 echo "${ECHO_T}$ac_header_preproc" >&6; }
6000 # So? What about this header?
6001 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6003 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6004 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6005 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6006 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6007 ac_header_preproc=yes
6010 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6011 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6013 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6015 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6017 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6019 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6020 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6021 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6025 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6026 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6028 echo $ECHO_N "(cached) $ECHO_C" >&6
6030 eval "$as_ac_Header=\$ac_header_preproc"
6032 ac_res=`eval echo '${'$as_ac_Header'}'`
6033 { echo "$as_me:$LINENO: result: $ac_res" >&5
6034 echo "${ECHO_T}$ac_res" >&6; }
6037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6038 cat >>confdefs.h <<_ACEOF
6039 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6046 # Emulation library used on NetBSD.
6047 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6048 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6049 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6052 ac_check_lib_save_LIBS=$LIBS
6053 LIBS="-lossaudio $LIBS"
6054 cat >conftest.$ac_ext <<_ACEOF
6057 cat confdefs.h >>conftest.$ac_ext
6058 cat >>conftest.$ac_ext <<_ACEOF
6059 /* end confdefs.h. */
6061 /* Override any GCC internal prototype to avoid an error.
6062 Use char because int might match the return type of a GCC
6063 builtin and then its argument prototype would still apply. */
6071 return _oss_ioctl ();
6076 rm -f conftest.$ac_objext conftest$ac_exeext
6077 if { (ac_try="$ac_link"
6079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6080 *) ac_try_echo
=$ac_try;;
6082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6083 (eval "$ac_link") 2>conftest.er1
6085 grep -v '^ *+' conftest.er1
>conftest.err
6087 cat conftest.err
>&5
6088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6089 (exit $ac_status); } && {
6090 test -z "$ac_c_werror_flag" ||
6091 test ! -s conftest.err
6092 } && test -s conftest
$ac_exeext &&
6093 $as_test_x conftest
$ac_exeext; then
6094 ac_cv_lib_ossaudio__oss_ioctl
=yes
6096 echo "$as_me: failed program was:" >&5
6097 sed 's/^/| /' conftest.
$ac_ext >&5
6099 ac_cv_lib_ossaudio__oss_ioctl
=no
6102 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6103 conftest
$ac_exeext conftest.
$ac_ext
6104 LIBS
=$ac_check_lib_save_LIBS
6106 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6107 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6108 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6117 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6121 # Extract the first word of "pkg-config", so it can be a program name with args.
6122 set dummy pkg-config
; ac_word
=$2
6123 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6124 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6125 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6126 echo $ECHO_N "(cached) $ECHO_C" >&6
6130 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6137 test -z "$as_dir" && as_dir
=.
6138 for ac_exec_ext
in '' $ac_executable_extensions; do
6139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6140 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6148 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6152 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6153 if test -n "$PKG_CONFIG"; then
6154 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6155 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6157 { echo "$as_me:$LINENO: result: no" >&5
6158 echo "${ECHO_T}no" >&6; }
6163 if test "$PKG_CONFIG" = "no" ; then
6166 PKG_CONFIG_MIN_VERSION
=0.9.0
6167 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6168 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6169 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6171 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6172 { echo "$as_me:$LINENO: result: yes" >&5
6173 echo "${ECHO_T}yes" >&6; }
6176 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6177 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6178 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6179 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6180 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6182 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6183 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6184 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6185 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6186 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6188 { echo "$as_me:$LINENO: result: no" >&5
6189 echo "${ECHO_T}no" >&6; }
6192 ## If we have a custom action on failure, don't print errors, but
6193 ## do set a variable so people can do so.
6194 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6201 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6202 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6206 if test $succeeded = yes; then
6212 if test $HAVE_ALSA = yes; then
6213 SAVE_CFLAGS
="$CFLAGS"
6214 SAVE_LDFLAGS
="$LDFLAGS"
6215 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6216 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6217 cat >conftest.
$ac_ext <<_ACEOF
6220 cat confdefs.h
>>conftest.
$ac_ext
6221 cat >>conftest.
$ac_ext <<_ACEOF
6222 /* end confdefs.h. */
6223 #include <asoundlib.h>
6227 snd_lib_error_set_handler (0);
6232 rm -f conftest.
$ac_objext
6233 if { (ac_try
="$ac_compile"
6235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6236 *) ac_try_echo=$ac_try;;
6238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6239 (eval "$ac_compile") 2>conftest.er1
6241 grep -v '^ *+' conftest.er1 >conftest.err
6243 cat conftest.err >&5
6244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6245 (exit $ac_status); } && {
6246 test -z "$ac_c_werror_flag" ||
6247 test ! -s conftest.err
6248 } && test -s conftest.$ac_objext; then
6249 emacs_alsa_normal=yes
6251 echo "$as_me: failed program was:" >&5
6252 sed 's/^/| /' conftest.$ac_ext >&5
6254 emacs_alsa_normal=no
6257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 if test "$emacs_alsa_normal" != yes; then
6259 cat >conftest.$ac_ext <<_ACEOF
6262 cat confdefs.h >>conftest.$ac_ext
6263 cat >>conftest.$ac_ext <<_ACEOF
6264 /* end confdefs.h. */
6265 #include <alsa/asoundlib.h>
6269 snd_lib_error_set_handler (0);
6274 rm -f conftest.$ac_objext
6275 if { (ac_try="$ac_compile"
6277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6278 *) ac_try_echo
=$ac_try;;
6280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$ac_compile") 2>conftest.er1
6283 grep -v '^ *+' conftest.er1
>conftest.err
6285 cat conftest.err
>&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } && {
6288 test -z "$ac_c_werror_flag" ||
6289 test ! -s conftest.err
6290 } && test -s conftest.
$ac_objext; then
6291 emacs_alsa_subdir
=yes
6293 echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.
$ac_ext >&5
6296 emacs_alsa_subdir
=no
6299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6300 if test "$emacs_alsa_subdir" != yes; then
6301 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6302 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6303 { (exit 1); exit 1; }; }
6305 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6308 CFLAGS
="$SAVE_CFLAGS"
6309 LDFLAGS
="$SAVE_LDFLAGS"
6310 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6311 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6313 cat >>confdefs.h
<<\_ACEOF
6346 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6347 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6348 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6349 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6352 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6353 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6356 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6357 echo $ECHO_N "(cached) $ECHO_C" >&6
6359 ac_res
=`eval echo '${'$as_ac_Header'}'`
6360 { echo "$as_me:$LINENO: result: $ac_res" >&5
6361 echo "${ECHO_T}$ac_res" >&6; }
6363 # Is the header compilable?
6364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6366 cat >conftest.
$ac_ext <<_ACEOF
6369 cat confdefs.h
>>conftest.
$ac_ext
6370 cat >>conftest.
$ac_ext <<_ACEOF
6371 /* end confdefs.h. */
6372 $ac_includes_default
6373 #include <$ac_header>
6375 rm -f conftest.
$ac_objext
6376 if { (ac_try
="$ac_compile"
6378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 (eval "$ac_compile") 2>conftest.er1
6384 grep -v '^ *+' conftest.er1 >conftest.err
6386 cat conftest.err >&5
6387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6388 (exit $ac_status); } && {
6389 test -z "$ac_c_werror_flag" ||
6390 test ! -s conftest.err
6391 } && test -s conftest.$ac_objext; then
6392 ac_header_compiler=yes
6394 echo "$as_me: failed program was:" >&5
6395 sed 's/^/| /' conftest.$ac_ext >&5
6397 ac_header_compiler=no
6400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6402 echo "${ECHO_T}$ac_header_compiler" >&6; }
6404 # Is the header present?
6405 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6407 cat >conftest.$ac_ext <<_ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 #include <$ac_header>
6415 if { (ac_try="$ac_cpp conftest.$ac_ext"
6417 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6418 *) ac_try_echo
=$ac_try;;
6420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6423 grep -v '^ *+' conftest.er1
>conftest.err
6425 cat conftest.err
>&5
6426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427 (exit $ac_status); } >/dev
/null
&& {
6428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6429 test ! -s conftest.err
6431 ac_header_preproc
=yes
6433 echo "$as_me: failed program was:" >&5
6434 sed 's/^/| /' conftest.
$ac_ext >&5
6436 ac_header_preproc
=no
6439 rm -f conftest.err conftest.
$ac_ext
6440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6441 echo "${ECHO_T}$ac_header_preproc" >&6; }
6443 # So? What about this header?
6444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6450 ac_header_preproc
=yes
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6470 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6471 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 eval "$as_ac_Header=\$ac_header_preproc"
6475 ac_res
=`eval echo '${'$as_ac_Header'}'`
6476 { echo "$as_me:$LINENO: result: $ac_res" >&5
6477 echo "${ECHO_T}$ac_res" >&6; }
6480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6481 cat >>confdefs.h
<<_ACEOF
6482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6490 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6491 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6492 cat >conftest.
$ac_ext <<_ACEOF
6495 cat confdefs.h
>>conftest.
$ac_ext
6496 cat >>conftest.
$ac_ext <<_ACEOF
6497 /* end confdefs.h. */
6498 #include <sys/personality.h>
6502 personality (PER_LINUX32)
6507 rm -f conftest.
$ac_objext
6508 if { (ac_try
="$ac_compile"
6510 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6511 *) ac_try_echo=$ac_try;;
6513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6514 (eval "$ac_compile") 2>conftest.er1
6516 grep -v '^ *+' conftest.er1 >conftest.err
6518 cat conftest.err >&5
6519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6520 (exit $ac_status); } && {
6521 test -z "$ac_c_werror_flag" ||
6522 test ! -s conftest.err
6523 } && test -s conftest.$ac_objext; then
6524 emacs_cv_personality_linux32=yes
6526 echo "$as_me: failed program was:" >&5
6527 sed 's/^/| /' conftest.$ac_ext >&5
6529 emacs_cv_personality_linux32=no
6532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6533 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6534 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6536 if test $emacs_cv_personality_linux32 = yes; then
6538 cat >>confdefs.h <<\_ACEOF
6539 #define HAVE_PERSONALITY_LINUX32 1
6545 for ac_header in term.h
6547 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6551 echo $ECHO_N "(cached) $ECHO_C" >&6
6553 cat >conftest.$ac_ext <<_ACEOF
6556 cat confdefs.h >>conftest.$ac_ext
6557 cat >>conftest.$ac_ext <<_ACEOF
6558 /* end confdefs.h. */
6559 #include <$ac_header>
6561 if { (ac_try="$ac_cpp conftest.$ac_ext"
6563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6564 *) ac_try_echo
=$ac_try;;
6566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6567 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6569 grep -v '^ *+' conftest.er1
>conftest.err
6571 cat conftest.err
>&5
6572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6573 (exit $ac_status); } >/dev
/null
&& {
6574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6575 test ! -s conftest.err
6577 eval "$as_ac_Header=yes"
6579 echo "$as_me: failed program was:" >&5
6580 sed 's/^/| /' conftest.
$ac_ext >&5
6582 eval "$as_ac_Header=no"
6585 rm -f conftest.err conftest.
$ac_ext
6587 ac_res
=`eval echo '${'$as_ac_Header'}'`
6588 { echo "$as_me:$LINENO: result: $ac_res" >&5
6589 echo "${ECHO_T}$ac_res" >&6; }
6590 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6591 cat >>confdefs.h
<<_ACEOF
6592 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6599 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6600 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6601 if test "${ac_cv_header_stdc+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6604 cat >conftest.
$ac_ext <<_ACEOF
6607 cat confdefs.h
>>conftest.
$ac_ext
6608 cat >>conftest.
$ac_ext <<_ACEOF
6609 /* end confdefs.h. */
6623 rm -f conftest.
$ac_objext
6624 if { (ac_try
="$ac_compile"
6626 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6627 *) ac_try_echo=$ac_try;;
6629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6630 (eval "$ac_compile") 2>conftest.er1
6632 grep -v '^ *+' conftest.er1 >conftest.err
6634 cat conftest.err >&5
6635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6636 (exit $ac_status); } && {
6637 test -z "$ac_c_werror_flag" ||
6638 test ! -s conftest.err
6639 } && test -s conftest.$ac_objext; then
6640 ac_cv_header_stdc=yes
6642 echo "$as_me: failed program was:" >&5
6643 sed 's/^/| /' conftest.$ac_ext >&5
6645 ac_cv_header_stdc=no
6648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6650 if test $ac_cv_header_stdc = yes; then
6651 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6652 cat >conftest.$ac_ext <<_ACEOF
6655 cat confdefs.h >>conftest.$ac_ext
6656 cat >>conftest.$ac_ext <<_ACEOF
6657 /* end confdefs.h. */
6661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6662 $EGREP "memchr" >/dev/null 2>&1; then
6665 ac_cv_header_stdc=no
6671 if test $ac_cv_header_stdc = yes; then
6672 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6673 cat >conftest.$ac_ext <<_ACEOF
6676 cat confdefs.h >>conftest.$ac_ext
6677 cat >>conftest.$ac_ext <<_ACEOF
6678 /* end confdefs.h. */
6682 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6683 $EGREP "free" >/dev/null 2>&1; then
6686 ac_cv_header_stdc=no
6692 if test $ac_cv_header_stdc = yes; then
6693 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6694 if test "$cross_compiling" = yes; then
6697 cat >conftest.$ac_ext <<_ACEOF
6700 cat confdefs.h >>conftest.$ac_ext
6701 cat >>conftest.$ac_ext <<_ACEOF
6702 /* end confdefs.h. */
6705 #if ((' ' & 0x0FF) == 0x020)
6706 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6707 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6709 # define ISLOWER(c) \
6710 (('a' <= (c) && (c) <= 'i') \
6711 || ('j' <= (c) && (c) <= 'r') \
6712 || ('s' <= (c) && (c) <= 'z'))
6713 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6716 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6721 for (i = 0; i < 256; i++)
6722 if (XOR (islower (i), ISLOWER (i))
6723 || toupper (i) != TOUPPER (i))
6728 rm -f conftest$ac_exeext
6729 if { (ac_try="$ac_link"
6731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6732 *) ac_try_echo
=$ac_try;;
6734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6735 (eval "$ac_link") 2>&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6739 { (case "(($ac_try" in
6740 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6741 *) ac_try_echo=$ac_try;;
6743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6744 (eval "$ac_try") 2>&5
6746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6747 (exit $ac_status); }; }; then
6750 echo "$as_me: program exited with status $ac_status" >&5
6751 echo "$as_me: failed program was:" >&5
6752 sed 's/^/| /' conftest.$ac_ext >&5
6755 ac_cv_header_stdc=no
6757 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6763 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6764 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6765 if test $ac_cv_header_stdc = yes; then
6767 cat >>confdefs.h <<\_ACEOF
6768 #define STDC_HEADERS 1
6773 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6774 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6775 if test "${ac_cv_header_time+set}" = set; then
6776 echo $ECHO_N "(cached) $ECHO_C" >&6
6778 cat >conftest.$ac_ext <<_ACEOF
6781 cat confdefs.h >>conftest.$ac_ext
6782 cat >>conftest.$ac_ext <<_ACEOF
6783 /* end confdefs.h. */
6784 #include <sys/types.h>
6785 #include <sys/time.h>
6791 if ((struct tm *) 0)
6797 rm -f conftest.$ac_objext
6798 if { (ac_try="$ac_compile"
6800 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6801 *) ac_try_echo
=$ac_try;;
6803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6804 (eval "$ac_compile") 2>conftest.er1
6806 grep -v '^ *+' conftest.er1
>conftest.err
6808 cat conftest.err
>&5
6809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6810 (exit $ac_status); } && {
6811 test -z "$ac_c_werror_flag" ||
6812 test ! -s conftest.err
6813 } && test -s conftest.
$ac_objext; then
6814 ac_cv_header_time
=yes
6816 echo "$as_me: failed program was:" >&5
6817 sed 's/^/| /' conftest.
$ac_ext >&5
6819 ac_cv_header_time
=no
6822 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6824 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6825 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6826 if test $ac_cv_header_time = yes; then
6828 cat >>confdefs.h
<<\_ACEOF
6829 #define TIME_WITH_SYS_TIME 1
6834 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6835 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6836 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6837 echo $ECHO_N "(cached) $ECHO_C" >&6
6839 cat >conftest.
$ac_ext <<_ACEOF
6842 cat confdefs.h
>>conftest.
$ac_ext
6843 cat >>conftest.
$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 $ac_includes_default
6857 rm -f conftest.
$ac_objext
6858 if { (ac_try
="$ac_compile"
6860 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6861 *) ac_try_echo=$ac_try;;
6863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864 (eval "$ac_compile") 2>conftest.er1
6866 grep -v '^ *+' conftest.er1 >conftest.err
6868 cat conftest.err >&5
6869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6870 (exit $ac_status); } && {
6871 test -z "$ac_c_werror_flag" ||
6872 test ! -s conftest.err
6873 } && test -s conftest.$ac_objext; then
6874 ac_cv_have_decl_sys_siglist=yes
6876 echo "$as_me: failed program was:" >&5
6877 sed 's/^/| /' conftest.$ac_ext >&5
6879 ac_cv_have_decl_sys_siglist=no
6882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6884 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6885 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6886 if test $ac_cv_have_decl_sys_siglist = yes; then
6888 cat >>confdefs.h <<_ACEOF
6889 #define HAVE_DECL_SYS_SIGLIST 1
6894 cat >>confdefs.h <<_ACEOF
6895 #define HAVE_DECL_SYS_SIGLIST 0
6902 if test $ac_cv_have_decl_sys_siglist != yes; then
6903 # For Tru64, at least:
6904 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6905 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6906 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6907 echo $ECHO_N "(cached) $ECHO_C" >&6
6909 cat >conftest.$ac_ext <<_ACEOF
6912 cat confdefs.h >>conftest.$ac_ext
6913 cat >>conftest.$ac_ext <<_ACEOF
6914 /* end confdefs.h. */
6915 $ac_includes_default
6919 #ifndef __sys_siglist
6920 (void) __sys_siglist;
6927 rm -f conftest.$ac_objext
6928 if { (ac_try="$ac_compile"
6930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6931 *) ac_try_echo
=$ac_try;;
6933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6934 (eval "$ac_compile") 2>conftest.er1
6936 grep -v '^ *+' conftest.er1
>conftest.err
6938 cat conftest.err
>&5
6939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6940 (exit $ac_status); } && {
6941 test -z "$ac_c_werror_flag" ||
6942 test ! -s conftest.err
6943 } && test -s conftest.
$ac_objext; then
6944 ac_cv_have_decl___sys_siglist
=yes
6946 echo "$as_me: failed program was:" >&5
6947 sed 's/^/| /' conftest.
$ac_ext >&5
6949 ac_cv_have_decl___sys_siglist
=no
6952 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6954 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6955 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6956 if test $ac_cv_have_decl___sys_siglist = yes; then
6958 cat >>confdefs.h
<<_ACEOF
6959 #define HAVE_DECL___SYS_SIGLIST 1
6964 cat >>confdefs.h
<<_ACEOF
6965 #define HAVE_DECL___SYS_SIGLIST 0
6972 if test $ac_cv_have_decl___sys_siglist = yes; then
6974 cat >>confdefs.h
<<\_ACEOF
6975 #define sys_siglist __sys_siglist
6980 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6981 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6982 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6985 cat >conftest.
$ac_ext <<_ACEOF
6988 cat confdefs.h
>>conftest.
$ac_ext
6989 cat >>conftest.
$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6991 #include <sys/types.h>
6992 #include <sys/wait.h>
6994 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6997 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7005 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7010 rm -f conftest.
$ac_objext
7011 if { (ac_try
="$ac_compile"
7013 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7014 *) ac_try_echo=$ac_try;;
7016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7017 (eval "$ac_compile") 2>conftest.er1
7019 grep -v '^ *+' conftest.er1 >conftest.err
7021 cat conftest.err >&5
7022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7023 (exit $ac_status); } && {
7024 test -z "$ac_c_werror_flag" ||
7025 test ! -s conftest.err
7026 } && test -s conftest.$ac_objext; then
7027 ac_cv_header_sys_wait_h=yes
7029 echo "$as_me: failed program was:" >&5
7030 sed 's/^/| /' conftest.$ac_ext >&5
7032 ac_cv_header_sys_wait_h=no
7035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7038 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7039 if test $ac_cv_header_sys_wait_h = yes; then
7041 cat >>confdefs.h <<\_ACEOF
7042 #define HAVE_SYS_WAIT_H 1
7048 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7049 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7050 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7051 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 cat >conftest.$ac_ext <<_ACEOF
7056 cat confdefs.h >>conftest.$ac_ext
7057 cat >>conftest.$ac_ext <<_ACEOF
7058 /* end confdefs.h. */
7059 #ifdef TIME_WITH_SYS_TIME
7060 #include <sys/time.h>
7063 #ifdef HAVE_SYS_TIME_H
7064 #include <sys/time.h>
7075 static struct utimbuf x; x.actime = x.modtime;
7080 rm -f conftest.$ac_objext
7081 if { (ac_try="$ac_compile"
7083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7084 *) ac_try_echo
=$ac_try;;
7086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7087 (eval "$ac_compile") 2>conftest.er1
7089 grep -v '^ *+' conftest.er1
>conftest.err
7091 cat conftest.err
>&5
7092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7093 (exit $ac_status); } && {
7094 test -z "$ac_c_werror_flag" ||
7095 test ! -s conftest.err
7096 } && test -s conftest.
$ac_objext; then
7097 emacs_cv_struct_utimbuf
=yes
7099 echo "$as_me: failed program was:" >&5
7100 sed 's/^/| /' conftest.
$ac_ext >&5
7102 emacs_cv_struct_utimbuf
=no
7105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7107 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7108 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7109 if test $emacs_cv_struct_utimbuf = yes; then
7111 cat >>confdefs.h
<<\_ACEOF
7112 #define HAVE_STRUCT_UTIMBUF 1
7117 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7118 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7119 if test "${ac_cv_type_signal+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 cat >conftest.
$ac_ext <<_ACEOF
7125 cat confdefs.h
>>conftest.
$ac_ext
7126 cat >>conftest.
$ac_ext <<_ACEOF
7127 /* end confdefs.h. */
7128 #include <sys/types.h>
7134 return *(signal (0, 0)) (0) == 1;
7139 rm -f conftest.
$ac_objext
7140 if { (ac_try
="$ac_compile"
7142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7143 *) ac_try_echo=$ac_try;;
7145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7146 (eval "$ac_compile") 2>conftest.er1
7148 grep -v '^ *+' conftest.er1 >conftest.err
7150 cat conftest.err >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } && {
7153 test -z "$ac_c_werror_flag" ||
7154 test ! -s conftest.err
7155 } && test -s conftest.$ac_objext; then
7156 ac_cv_type_signal=int
7158 echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7161 ac_cv_type_signal=void
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7167 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7169 cat >>confdefs.h <<_ACEOF
7170 #define RETSIGTYPE $ac_cv_type_signal
7175 { echo "$as_me:$LINENO: checking for speed_t" >&5
7176 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7177 if test "${emacs_cv_speed_t+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7180 cat >conftest.$ac_ext <<_ACEOF
7183 cat confdefs.h >>conftest.$ac_ext
7184 cat >>conftest.$ac_ext <<_ACEOF
7185 /* end confdefs.h. */
7186 #include <termios.h>
7195 rm -f conftest.$ac_objext
7196 if { (ac_try="$ac_compile"
7198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7199 *) ac_try_echo
=$ac_try;;
7201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7202 (eval "$ac_compile") 2>conftest.er1
7204 grep -v '^ *+' conftest.er1
>conftest.err
7206 cat conftest.err
>&5
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); } && {
7209 test -z "$ac_c_werror_flag" ||
7210 test ! -s conftest.err
7211 } && test -s conftest.
$ac_objext; then
7212 emacs_cv_speed_t
=yes
7214 echo "$as_me: failed program was:" >&5
7215 sed 's/^/| /' conftest.
$ac_ext >&5
7220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7222 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7223 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7224 if test $emacs_cv_speed_t = yes; then
7226 cat >>confdefs.h
<<\_ACEOF
7227 #define HAVE_SPEED_T 1
7232 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7233 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7234 if test "${emacs_cv_struct_timeval+set}" = set; then
7235 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 cat >conftest.
$ac_ext <<_ACEOF
7240 cat confdefs.h
>>conftest.
$ac_ext
7241 cat >>conftest.
$ac_ext <<_ACEOF
7242 /* end confdefs.h. */
7243 #ifdef TIME_WITH_SYS_TIME
7244 #include <sys/time.h>
7247 #ifdef HAVE_SYS_TIME_H
7248 #include <sys/time.h>
7256 static struct timeval x; x.tv_sec = x.tv_usec;
7261 rm -f conftest.
$ac_objext
7262 if { (ac_try
="$ac_compile"
7264 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7265 *) ac_try_echo=$ac_try;;
7267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7268 (eval "$ac_compile") 2>conftest.er1
7270 grep -v '^ *+' conftest.er1 >conftest.err
7272 cat conftest.err >&5
7273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7274 (exit $ac_status); } && {
7275 test -z "$ac_c_werror_flag" ||
7276 test ! -s conftest.err
7277 } && test -s conftest.$ac_objext; then
7278 emacs_cv_struct_timeval=yes
7280 echo "$as_me: failed program was:" >&5
7281 sed 's/^/| /' conftest.$ac_ext >&5
7283 emacs_cv_struct_timeval=no
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7288 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7289 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7290 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7291 if test $emacs_cv_struct_timeval = yes; then
7293 cat >>confdefs.h <<\_ACEOF
7294 #define HAVE_TIMEVAL 1
7299 { echo "$as_me:$LINENO: checking for struct exception" >&5
7300 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7301 if test "${emacs_cv_struct_exception+set}" = set; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7304 cat >conftest.$ac_ext <<_ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7314 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7319 rm -f conftest.$ac_objext
7320 if { (ac_try="$ac_compile"
7322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7323 *) ac_try_echo
=$ac_try;;
7325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7326 (eval "$ac_compile") 2>conftest.er1
7328 grep -v '^ *+' conftest.er1
>conftest.err
7330 cat conftest.err
>&5
7331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7332 (exit $ac_status); } && {
7333 test -z "$ac_c_werror_flag" ||
7334 test ! -s conftest.err
7335 } && test -s conftest.
$ac_objext; then
7336 emacs_cv_struct_exception
=yes
7338 echo "$as_me: failed program was:" >&5
7339 sed 's/^/| /' conftest.
$ac_ext >&5
7341 emacs_cv_struct_exception
=no
7344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7346 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7347 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7348 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7349 if test $emacs_cv_struct_exception != yes; then
7351 cat >>confdefs.h
<<\_ACEOF
7352 #define NO_MATHERR 1
7358 for ac_header
in sys
/socket.h
7360 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7361 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7364 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7365 echo $ECHO_N "(cached) $ECHO_C" >&6
7367 ac_res
=`eval echo '${'$as_ac_Header'}'`
7368 { echo "$as_me:$LINENO: result: $ac_res" >&5
7369 echo "${ECHO_T}$ac_res" >&6; }
7371 # Is the header compilable?
7372 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7373 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7374 cat >conftest.
$ac_ext <<_ACEOF
7377 cat confdefs.h
>>conftest.
$ac_ext
7378 cat >>conftest.
$ac_ext <<_ACEOF
7379 /* end confdefs.h. */
7380 $ac_includes_default
7381 #include <$ac_header>
7383 rm -f conftest.
$ac_objext
7384 if { (ac_try
="$ac_compile"
7386 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7387 *) ac_try_echo=$ac_try;;
7389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7390 (eval "$ac_compile") 2>conftest.er1
7392 grep -v '^ *+' conftest.er1 >conftest.err
7394 cat conftest.err >&5
7395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7396 (exit $ac_status); } && {
7397 test -z "$ac_c_werror_flag" ||
7398 test ! -s conftest.err
7399 } && test -s conftest.$ac_objext; then
7400 ac_header_compiler=yes
7402 echo "$as_me: failed program was:" >&5
7403 sed 's/^/| /' conftest.$ac_ext >&5
7405 ac_header_compiler=no
7408 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7409 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7410 echo "${ECHO_T}$ac_header_compiler" >&6; }
7412 # Is the header present?
7413 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7414 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7415 cat >conftest.$ac_ext <<_ACEOF
7418 cat confdefs.h >>conftest.$ac_ext
7419 cat >>conftest.$ac_ext <<_ACEOF
7420 /* end confdefs.h. */
7421 #include <$ac_header>
7423 if { (ac_try="$ac_cpp conftest.$ac_ext"
7425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7426 *) ac_try_echo
=$ac_try;;
7428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7429 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7431 grep -v '^ *+' conftest.er1
>conftest.err
7433 cat conftest.err
>&5
7434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7435 (exit $ac_status); } >/dev
/null
&& {
7436 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7437 test ! -s conftest.err
7439 ac_header_preproc
=yes
7441 echo "$as_me: failed program was:" >&5
7442 sed 's/^/| /' conftest.
$ac_ext >&5
7444 ac_header_preproc
=no
7447 rm -f conftest.err conftest.
$ac_ext
7448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7449 echo "${ECHO_T}$ac_header_preproc" >&6; }
7451 # So? What about this header?
7452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7458 ac_header_preproc
=yes
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7464 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7468 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7478 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7479 echo $ECHO_N "(cached) $ECHO_C" >&6
7481 eval "$as_ac_Header=\$ac_header_preproc"
7483 ac_res
=`eval echo '${'$as_ac_Header'}'`
7484 { echo "$as_me:$LINENO: result: $ac_res" >&5
7485 echo "${ECHO_T}$ac_res" >&6; }
7488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7489 cat >>confdefs.h
<<_ACEOF
7490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7498 for ac_header
in net
/if.h
7500 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7501 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7502 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7503 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7504 echo $ECHO_N "(cached) $ECHO_C" >&6
7506 cat >conftest.
$ac_ext <<_ACEOF
7509 cat confdefs.h
>>conftest.
$ac_ext
7510 cat >>conftest.
$ac_ext <<_ACEOF
7511 /* end confdefs.h. */
7512 $ac_includes_default
7513 #if HAVE_SYS_SOCKET_H
7514 #include <sys/socket.h>
7517 #include <$ac_header>
7519 rm -f conftest.
$ac_objext
7520 if { (ac_try
="$ac_compile"
7522 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7523 *) ac_try_echo=$ac_try;;
7525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7526 (eval "$ac_compile") 2>conftest.er1
7528 grep -v '^ *+' conftest.er1 >conftest.err
7530 cat conftest.err >&5
7531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7532 (exit $ac_status); } && {
7533 test -z "$ac_c_werror_flag" ||
7534 test ! -s conftest.err
7535 } && test -s conftest.$ac_objext; then
7536 eval "$as_ac_Header=yes"
7538 echo "$as_me: failed program was:" >&5
7539 sed 's/^/| /' conftest.$ac_ext >&5
7541 eval "$as_ac_Header=no"
7544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7546 ac_res=`eval echo '${'$as_ac_Header'}'`
7547 { echo "$as_me:$LINENO: result: $ac_res" >&5
7548 echo "${ECHO_T}$ac_res" >&6; }
7549 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7550 cat >>confdefs.h <<_ACEOF
7551 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7559 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7560 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7561 if test "${ac_cv_struct_tm+set}" = set; then
7562 echo $ECHO_N "(cached) $ECHO_C" >&6
7564 cat >conftest.$ac_ext <<_ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 #include <sys/types.h>
7577 int *p = &tm.tm_sec;
7583 rm -f conftest.$ac_objext
7584 if { (ac_try="$ac_compile"
7586 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7587 *) ac_try_echo
=$ac_try;;
7589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590 (eval "$ac_compile") 2>conftest.er1
7592 grep -v '^ *+' conftest.er1
>conftest.err
7594 cat conftest.err
>&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } && {
7597 test -z "$ac_c_werror_flag" ||
7598 test ! -s conftest.err
7599 } && test -s conftest.
$ac_objext; then
7600 ac_cv_struct_tm
=time.h
7602 echo "$as_me: failed program was:" >&5
7603 sed 's/^/| /' conftest.
$ac_ext >&5
7605 ac_cv_struct_tm
=sys
/time.h
7608 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7610 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7611 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7612 if test $ac_cv_struct_tm = sys
/time.h
; then
7614 cat >>confdefs.h
<<\_ACEOF
7615 #define TM_IN_SYS_TIME 1
7620 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7621 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7622 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7623 echo $ECHO_N "(cached) $ECHO_C" >&6
7625 cat >conftest.
$ac_ext <<_ACEOF
7628 cat confdefs.h
>>conftest.
$ac_ext
7629 cat >>conftest.
$ac_ext <<_ACEOF
7630 /* end confdefs.h. */
7631 #include <sys/types.h>
7632 #include <$ac_cv_struct_tm>
7638 static struct tm ac_aggr;
7639 if (ac_aggr.tm_zone)
7645 rm -f conftest.
$ac_objext
7646 if { (ac_try
="$ac_compile"
7648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7649 *) ac_try_echo=$ac_try;;
7651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7652 (eval "$ac_compile") 2>conftest.er1
7654 grep -v '^ *+' conftest.er1 >conftest.err
7656 cat conftest.err >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } && {
7659 test -z "$ac_c_werror_flag" ||
7660 test ! -s conftest.err
7661 } && test -s conftest.$ac_objext; then
7662 ac_cv_member_struct_tm_tm_zone=yes
7664 echo "$as_me: failed program was:" >&5
7665 sed 's/^/| /' conftest.$ac_ext >&5
7667 cat >conftest.$ac_ext <<_ACEOF
7670 cat confdefs.h >>conftest.$ac_ext
7671 cat >>conftest.$ac_ext <<_ACEOF
7672 /* end confdefs.h. */
7673 #include <sys/types.h>
7674 #include <$ac_cv_struct_tm>
7680 static struct tm ac_aggr;
7681 if (sizeof ac_aggr.tm_zone)
7687 rm -f conftest.$ac_objext
7688 if { (ac_try="$ac_compile"
7690 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7691 *) ac_try_echo
=$ac_try;;
7693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7694 (eval "$ac_compile") 2>conftest.er1
7696 grep -v '^ *+' conftest.er1
>conftest.err
7698 cat conftest.err
>&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } && {
7701 test -z "$ac_c_werror_flag" ||
7702 test ! -s conftest.err
7703 } && test -s conftest.
$ac_objext; then
7704 ac_cv_member_struct_tm_tm_zone
=yes
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.
$ac_ext >&5
7709 ac_cv_member_struct_tm_tm_zone
=no
7712 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7717 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7718 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7719 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7721 cat >>confdefs.h
<<_ACEOF
7722 #define HAVE_STRUCT_TM_TM_ZONE 1
7728 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7730 cat >>confdefs.h
<<\_ACEOF
7731 #define HAVE_TM_ZONE 1
7735 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7736 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7737 if test "${ac_cv_have_decl_tzname+set}" = set; then
7738 echo $ECHO_N "(cached) $ECHO_C" >&6
7740 cat >conftest.
$ac_ext <<_ACEOF
7743 cat confdefs.h
>>conftest.
$ac_ext
7744 cat >>conftest.
$ac_ext <<_ACEOF
7745 /* end confdefs.h. */
7759 rm -f conftest.
$ac_objext
7760 if { (ac_try
="$ac_compile"
7762 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7763 *) ac_try_echo=$ac_try;;
7765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7766 (eval "$ac_compile") 2>conftest.er1
7768 grep -v '^ *+' conftest.er1 >conftest.err
7770 cat conftest.err >&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); } && {
7773 test -z "$ac_c_werror_flag" ||
7774 test ! -s conftest.err
7775 } && test -s conftest.$ac_objext; then
7776 ac_cv_have_decl_tzname=yes
7778 echo "$as_me: failed program was:" >&5
7779 sed 's/^/| /' conftest.$ac_ext >&5
7781 ac_cv_have_decl_tzname=no
7784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7786 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7787 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7788 if test $ac_cv_have_decl_tzname = yes; then
7790 cat >>confdefs.h <<_ACEOF
7791 #define HAVE_DECL_TZNAME 1
7796 cat >>confdefs.h <<_ACEOF
7797 #define HAVE_DECL_TZNAME 0
7804 { echo "$as_me:$LINENO: checking for tzname" >&5
7805 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7806 if test "${ac_cv_var_tzname+set}" = set; then
7807 echo $ECHO_N "(cached) $ECHO_C" >&6
7809 cat >conftest.$ac_ext <<_ACEOF
7812 cat confdefs.h >>conftest.$ac_ext
7813 cat >>conftest.$ac_ext <<_ACEOF
7814 /* end confdefs.h. */
7816 #if !HAVE_DECL_TZNAME
7817 extern char *tzname[];
7823 return tzname[0][0];
7828 rm -f conftest.$ac_objext conftest$ac_exeext
7829 if { (ac_try="$ac_link"
7831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7832 *) ac_try_echo
=$ac_try;;
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835 (eval "$ac_link") 2>conftest.er1
7837 grep -v '^ *+' conftest.er1
>conftest.err
7839 cat conftest.err
>&5
7840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7841 (exit $ac_status); } && {
7842 test -z "$ac_c_werror_flag" ||
7843 test ! -s conftest.err
7844 } && test -s conftest
$ac_exeext &&
7845 $as_test_x conftest
$ac_exeext; then
7846 ac_cv_var_tzname
=yes
7848 echo "$as_me: failed program was:" >&5
7849 sed 's/^/| /' conftest.
$ac_ext >&5
7854 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7855 conftest
$ac_exeext conftest.
$ac_ext
7857 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7858 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7859 if test $ac_cv_var_tzname = yes; then
7861 cat >>confdefs.h
<<\_ACEOF
7862 #define HAVE_TZNAME 1
7868 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7869 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7870 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 cat >conftest.
$ac_ext <<_ACEOF
7876 cat confdefs.h
>>conftest.
$ac_ext
7877 cat >>conftest.
$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7884 static struct tm ac_aggr;
7885 if (ac_aggr.tm_gmtoff)
7891 rm -f conftest.
$ac_objext
7892 if { (ac_try
="$ac_compile"
7894 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7895 *) ac_try_echo=$ac_try;;
7897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7898 (eval "$ac_compile") 2>conftest.er1
7900 grep -v '^ *+' conftest.er1 >conftest.err
7902 cat conftest.err >&5
7903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7904 (exit $ac_status); } && {
7905 test -z "$ac_c_werror_flag" ||
7906 test ! -s conftest.err
7907 } && test -s conftest.$ac_objext; then
7908 ac_cv_member_struct_tm_tm_gmtoff=yes
7910 echo "$as_me: failed program was:" >&5
7911 sed 's/^/| /' conftest.$ac_ext >&5
7913 cat >conftest.$ac_ext <<_ACEOF
7916 cat confdefs.h >>conftest.$ac_ext
7917 cat >>conftest.$ac_ext <<_ACEOF
7918 /* end confdefs.h. */
7924 static struct tm ac_aggr;
7925 if (sizeof ac_aggr.tm_gmtoff)
7931 rm -f conftest.$ac_objext
7932 if { (ac_try="$ac_compile"
7934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7935 *) ac_try_echo
=$ac_try;;
7937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7938 (eval "$ac_compile") 2>conftest.er1
7940 grep -v '^ *+' conftest.er1
>conftest.err
7942 cat conftest.err
>&5
7943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7944 (exit $ac_status); } && {
7945 test -z "$ac_c_werror_flag" ||
7946 test ! -s conftest.err
7947 } && test -s conftest.
$ac_objext; then
7948 ac_cv_member_struct_tm_tm_gmtoff
=yes
7950 echo "$as_me: failed program was:" >&5
7951 sed 's/^/| /' conftest.
$ac_ext >&5
7953 ac_cv_member_struct_tm_tm_gmtoff
=no
7956 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7961 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7962 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7963 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7965 cat >>confdefs.h
<<\_ACEOF
7966 #define HAVE_TM_GMTOFF 1
7971 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7972 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7973 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7974 echo $ECHO_N "(cached) $ECHO_C" >&6
7976 cat >conftest.
$ac_ext <<_ACEOF
7979 cat confdefs.h
>>conftest.
$ac_ext
7980 cat >>conftest.
$ac_ext <<_ACEOF
7981 /* end confdefs.h. */
7982 $ac_includes_default
7983 #if HAVE_SYS_SOCKET_H
7984 #include <sys/socket.h>
7993 static struct ifreq ac_aggr;
7994 if (ac_aggr.ifr_flags)
8000 rm -f conftest.
$ac_objext
8001 if { (ac_try
="$ac_compile"
8003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8004 *) ac_try_echo=$ac_try;;
8006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8007 (eval "$ac_compile") 2>conftest.er1
8009 grep -v '^ *+' conftest.er1 >conftest.err
8011 cat conftest.err >&5
8012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8013 (exit $ac_status); } && {
8014 test -z "$ac_c_werror_flag" ||
8015 test ! -s conftest.err
8016 } && test -s conftest.$ac_objext; then
8017 ac_cv_member_struct_ifreq_ifr_flags=yes
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.$ac_ext >&5
8022 cat >conftest.$ac_ext <<_ACEOF
8025 cat confdefs.h >>conftest.$ac_ext
8026 cat >>conftest.$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8028 $ac_includes_default
8029 #if HAVE_SYS_SOCKET_H
8030 #include <sys/socket.h>
8039 static struct ifreq ac_aggr;
8040 if (sizeof ac_aggr.ifr_flags)
8046 rm -f conftest.$ac_objext
8047 if { (ac_try="$ac_compile"
8049 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8050 *) ac_try_echo
=$ac_try;;
8052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8053 (eval "$ac_compile") 2>conftest.er1
8055 grep -v '^ *+' conftest.er1
>conftest.err
8057 cat conftest.err
>&5
8058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8059 (exit $ac_status); } && {
8060 test -z "$ac_c_werror_flag" ||
8061 test ! -s conftest.err
8062 } && test -s conftest.
$ac_objext; then
8063 ac_cv_member_struct_ifreq_ifr_flags
=yes
8065 echo "$as_me: failed program was:" >&5
8066 sed 's/^/| /' conftest.
$ac_ext >&5
8068 ac_cv_member_struct_ifreq_ifr_flags
=no
8071 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8074 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8076 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8077 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8078 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8080 cat >>confdefs.h
<<_ACEOF
8081 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8086 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8087 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8088 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8089 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 cat >conftest.
$ac_ext <<_ACEOF
8094 cat confdefs.h
>>conftest.
$ac_ext
8095 cat >>conftest.
$ac_ext <<_ACEOF
8096 /* end confdefs.h. */
8097 $ac_includes_default
8098 #if HAVE_SYS_SOCKET_H
8099 #include <sys/socket.h>
8108 static struct ifreq ac_aggr;
8109 if (ac_aggr.ifr_hwaddr)
8115 rm -f conftest.
$ac_objext
8116 if { (ac_try
="$ac_compile"
8118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8119 *) ac_try_echo=$ac_try;;
8121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8122 (eval "$ac_compile") 2>conftest.er1
8124 grep -v '^ *+' conftest.er1 >conftest.err
8126 cat conftest.err >&5
8127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8128 (exit $ac_status); } && {
8129 test -z "$ac_c_werror_flag" ||
8130 test ! -s conftest.err
8131 } && test -s conftest.$ac_objext; then
8132 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8134 echo "$as_me: failed program was:" >&5
8135 sed 's/^/| /' conftest.$ac_ext >&5
8137 cat >conftest.$ac_ext <<_ACEOF
8140 cat confdefs.h >>conftest.$ac_ext
8141 cat >>conftest.$ac_ext <<_ACEOF
8142 /* end confdefs.h. */
8143 $ac_includes_default
8144 #if HAVE_SYS_SOCKET_H
8145 #include <sys/socket.h>
8154 static struct ifreq ac_aggr;
8155 if (sizeof ac_aggr.ifr_hwaddr)
8161 rm -f conftest.$ac_objext
8162 if { (ac_try="$ac_compile"
8164 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8165 *) ac_try_echo
=$ac_try;;
8167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8168 (eval "$ac_compile") 2>conftest.er1
8170 grep -v '^ *+' conftest.er1
>conftest.err
8172 cat conftest.err
>&5
8173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8174 (exit $ac_status); } && {
8175 test -z "$ac_c_werror_flag" ||
8176 test ! -s conftest.err
8177 } && test -s conftest.
$ac_objext; then
8178 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8180 echo "$as_me: failed program was:" >&5
8181 sed 's/^/| /' conftest.
$ac_ext >&5
8183 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8189 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8191 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8192 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8193 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8195 cat >>confdefs.h
<<_ACEOF
8196 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8201 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8202 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8203 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8204 echo $ECHO_N "(cached) $ECHO_C" >&6
8206 cat >conftest.
$ac_ext <<_ACEOF
8209 cat confdefs.h
>>conftest.
$ac_ext
8210 cat >>conftest.
$ac_ext <<_ACEOF
8211 /* end confdefs.h. */
8212 $ac_includes_default
8213 #if HAVE_SYS_SOCKET_H
8214 #include <sys/socket.h>
8223 static struct ifreq ac_aggr;
8224 if (ac_aggr.ifr_netmask)
8230 rm -f conftest.
$ac_objext
8231 if { (ac_try
="$ac_compile"
8233 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8234 *) ac_try_echo=$ac_try;;
8236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8237 (eval "$ac_compile") 2>conftest.er1
8239 grep -v '^ *+' conftest.er1 >conftest.err
8241 cat conftest.err >&5
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); } && {
8244 test -z "$ac_c_werror_flag" ||
8245 test ! -s conftest.err
8246 } && test -s conftest.$ac_objext; then
8247 ac_cv_member_struct_ifreq_ifr_netmask=yes
8249 echo "$as_me: failed program was:" >&5
8250 sed 's/^/| /' conftest.$ac_ext >&5
8252 cat >conftest.$ac_ext <<_ACEOF
8255 cat confdefs.h >>conftest.$ac_ext
8256 cat >>conftest.$ac_ext <<_ACEOF
8257 /* end confdefs.h. */
8258 $ac_includes_default
8259 #if HAVE_SYS_SOCKET_H
8260 #include <sys/socket.h>
8269 static struct ifreq ac_aggr;
8270 if (sizeof ac_aggr.ifr_netmask)
8276 rm -f conftest.$ac_objext
8277 if { (ac_try="$ac_compile"
8279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8280 *) ac_try_echo
=$ac_try;;
8282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8283 (eval "$ac_compile") 2>conftest.er1
8285 grep -v '^ *+' conftest.er1
>conftest.err
8287 cat conftest.err
>&5
8288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8289 (exit $ac_status); } && {
8290 test -z "$ac_c_werror_flag" ||
8291 test ! -s conftest.err
8292 } && test -s conftest.
$ac_objext; then
8293 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8295 echo "$as_me: failed program was:" >&5
8296 sed 's/^/| /' conftest.
$ac_ext >&5
8298 ac_cv_member_struct_ifreq_ifr_netmask
=no
8301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8306 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8307 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8308 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8310 cat >>confdefs.h
<<_ACEOF
8311 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8316 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8317 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8318 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8319 echo $ECHO_N "(cached) $ECHO_C" >&6
8321 cat >conftest.
$ac_ext <<_ACEOF
8324 cat confdefs.h
>>conftest.
$ac_ext
8325 cat >>conftest.
$ac_ext <<_ACEOF
8326 /* end confdefs.h. */
8327 $ac_includes_default
8328 #if HAVE_SYS_SOCKET_H
8329 #include <sys/socket.h>
8338 static struct ifreq ac_aggr;
8339 if (ac_aggr.ifr_broadaddr)
8345 rm -f conftest.
$ac_objext
8346 if { (ac_try
="$ac_compile"
8348 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8349 *) ac_try_echo=$ac_try;;
8351 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8352 (eval "$ac_compile") 2>conftest.er1
8354 grep -v '^ *+' conftest.er1 >conftest.err
8356 cat conftest.err >&5
8357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8358 (exit $ac_status); } && {
8359 test -z "$ac_c_werror_flag" ||
8360 test ! -s conftest.err
8361 } && test -s conftest.$ac_objext; then
8362 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8364 echo "$as_me: failed program was:" >&5
8365 sed 's/^/| /' conftest.$ac_ext >&5
8367 cat >conftest.$ac_ext <<_ACEOF
8370 cat confdefs.h >>conftest.$ac_ext
8371 cat >>conftest.$ac_ext <<_ACEOF
8372 /* end confdefs.h. */
8373 $ac_includes_default
8374 #if HAVE_SYS_SOCKET_H
8375 #include <sys/socket.h>
8384 static struct ifreq ac_aggr;
8385 if (sizeof ac_aggr.ifr_broadaddr)
8391 rm -f conftest.$ac_objext
8392 if { (ac_try="$ac_compile"
8394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8395 *) ac_try_echo
=$ac_try;;
8397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8398 (eval "$ac_compile") 2>conftest.er1
8400 grep -v '^ *+' conftest.er1
>conftest.err
8402 cat conftest.err
>&5
8403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8404 (exit $ac_status); } && {
8405 test -z "$ac_c_werror_flag" ||
8406 test ! -s conftest.err
8407 } && test -s conftest.
$ac_objext; then
8408 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8410 echo "$as_me: failed program was:" >&5
8411 sed 's/^/| /' conftest.
$ac_ext >&5
8413 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8416 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8419 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8421 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8422 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8423 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8425 cat >>confdefs.h
<<_ACEOF
8426 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8431 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8432 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8433 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8434 echo $ECHO_N "(cached) $ECHO_C" >&6
8436 cat >conftest.
$ac_ext <<_ACEOF
8439 cat confdefs.h
>>conftest.
$ac_ext
8440 cat >>conftest.
$ac_ext <<_ACEOF
8441 /* end confdefs.h. */
8442 $ac_includes_default
8443 #if HAVE_SYS_SOCKET_H
8444 #include <sys/socket.h>
8453 static struct ifreq ac_aggr;
8454 if (ac_aggr.ifr_addr)
8460 rm -f conftest.
$ac_objext
8461 if { (ac_try
="$ac_compile"
8463 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8464 *) ac_try_echo=$ac_try;;
8466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8467 (eval "$ac_compile") 2>conftest.er1
8469 grep -v '^ *+' conftest.er1 >conftest.err
8471 cat conftest.err >&5
8472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8473 (exit $ac_status); } && {
8474 test -z "$ac_c_werror_flag" ||
8475 test ! -s conftest.err
8476 } && test -s conftest.$ac_objext; then
8477 ac_cv_member_struct_ifreq_ifr_addr=yes
8479 echo "$as_me: failed program was:" >&5
8480 sed 's/^/| /' conftest.$ac_ext >&5
8482 cat >conftest.$ac_ext <<_ACEOF
8485 cat confdefs.h >>conftest.$ac_ext
8486 cat >>conftest.$ac_ext <<_ACEOF
8487 /* end confdefs.h. */
8488 $ac_includes_default
8489 #if HAVE_SYS_SOCKET_H
8490 #include <sys/socket.h>
8499 static struct ifreq ac_aggr;
8500 if (sizeof ac_aggr.ifr_addr)
8506 rm -f conftest.$ac_objext
8507 if { (ac_try="$ac_compile"
8509 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8510 *) ac_try_echo
=$ac_try;;
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_compile") 2>conftest.er1
8515 grep -v '^ *+' conftest.er1
>conftest.err
8517 cat conftest.err
>&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } && {
8520 test -z "$ac_c_werror_flag" ||
8521 test ! -s conftest.err
8522 } && test -s conftest.
$ac_objext; then
8523 ac_cv_member_struct_ifreq_ifr_addr
=yes
8525 echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.
$ac_ext >&5
8528 ac_cv_member_struct_ifreq_ifr_addr
=no
8531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8534 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8536 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8537 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8538 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8540 cat >>confdefs.h
<<_ACEOF
8541 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8549 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8550 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8551 if test "$ac_cv_prog_cc_c89" != no
; then
8552 { echo "$as_me:$LINENO: result: yes" >&5
8553 echo "${ECHO_T}yes" >&6; }
8555 cat >>confdefs.h
<<\_ACEOF
8556 #define PROTOTYPES 1
8560 cat >>confdefs.h
<<\_ACEOF
8561 #define __PROTOTYPES 1
8565 { echo "$as_me:$LINENO: result: no" >&5
8566 echo "${ECHO_T}no" >&6; }
8569 { echo "$as_me:$LINENO: checking for working volatile" >&5
8570 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8571 if test "${ac_cv_c_volatile+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8574 cat >conftest.
$ac_ext <<_ACEOF
8577 cat confdefs.h
>>conftest.
$ac_ext
8578 cat >>conftest.
$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8586 int * volatile y = (int *) 0;
8592 rm -f conftest.
$ac_objext
8593 if { (ac_try
="$ac_compile"
8595 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8596 *) ac_try_echo=$ac_try;;
8598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8599 (eval "$ac_compile") 2>conftest.er1
8601 grep -v '^ *+' conftest.er1 >conftest.err
8603 cat conftest.err >&5
8604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8605 (exit $ac_status); } && {
8606 test -z "$ac_c_werror_flag" ||
8607 test ! -s conftest.err
8608 } && test -s conftest.$ac_objext; then
8609 ac_cv_c_volatile=yes
8611 echo "$as_me: failed program was:" >&5
8612 sed 's/^/| /' conftest.$ac_ext >&5
8617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8619 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8620 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8621 if test $ac_cv_c_volatile = no; then
8623 cat >>confdefs.h <<\_ACEOF
8629 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8630 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8631 if test "${ac_cv_c_const+set}" = set; then
8632 echo $ECHO_N "(cached) $ECHO_C" >&6
8634 cat >conftest.$ac_ext <<_ACEOF
8637 cat confdefs.h >>conftest.$ac_ext
8638 cat >>conftest.$ac_ext <<_ACEOF
8639 /* end confdefs.h. */
8644 /* FIXME: Include the comments suggested by Paul. */
8646 /* Ultrix mips cc rejects this. */
8647 typedef int charset[2];
8649 /* SunOS 4.1.1 cc rejects this. */
8650 char const *const *pcpcc;
8652 /* NEC SVR4.0.2 mips cc rejects this. */
8653 struct point {int x, y;};
8654 static struct point const zero = {0,0};
8655 /* AIX XL C 1.02.0.0 rejects this.
8656 It does not let you subtract one const X* pointer from another in
8657 an arm of an if-expression whose if-part is not a constant
8659 const char *g = "string";
8660 pcpcc = &g + (g ? g-g : 0);
8661 /* HPUX 7.0 cc rejects these. */
8663 ppc = (char**) pcpcc;
8664 pcpcc = (char const *const *) ppc;
8665 { /* SCO 3.2v4 cc rejects this. */
8667 char const *s = 0 ? (char *) 0 : (char const *) 0;
8672 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8674 const int *foo = &x[0];
8677 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8678 typedef const int *iptr;
8682 { /* AIX XL C 1.02.0.0 rejects this saying
8683 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8684 struct s { int j; const int *ap[3]; };
8685 struct s *b; b->j = 5;
8687 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8691 return !cs[0] && !zero.x;
8698 rm -f conftest.$ac_objext
8699 if { (ac_try="$ac_compile"
8701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8702 *) ac_try_echo
=$ac_try;;
8704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8705 (eval "$ac_compile") 2>conftest.er1
8707 grep -v '^ *+' conftest.er1
>conftest.err
8709 cat conftest.err
>&5
8710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8711 (exit $ac_status); } && {
8712 test -z "$ac_c_werror_flag" ||
8713 test ! -s conftest.err
8714 } && test -s conftest.
$ac_objext; then
8717 echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.
$ac_ext >&5
8723 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8725 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8726 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8727 if test $ac_cv_c_const = no
; then
8729 cat >>confdefs.h
<<\_ACEOF
8735 { echo "$as_me:$LINENO: checking for void * support" >&5
8736 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8737 if test "${emacs_cv_void_star+set}" = set; then
8738 echo $ECHO_N "(cached) $ECHO_C" >&6
8740 cat >conftest.
$ac_ext <<_ACEOF
8743 cat confdefs.h
>>conftest.
$ac_ext
8744 cat >>conftest.
$ac_ext <<_ACEOF
8745 /* end confdefs.h. */
8755 rm -f conftest.
$ac_objext
8756 if { (ac_try
="$ac_compile"
8758 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8759 *) ac_try_echo=$ac_try;;
8761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8762 (eval "$ac_compile") 2>conftest.er1
8764 grep -v '^ *+' conftest.er1 >conftest.err
8766 cat conftest.err >&5
8767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8768 (exit $ac_status); } && {
8769 test -z "$ac_c_werror_flag" ||
8770 test ! -s conftest.err
8771 } && test -s conftest.$ac_objext; then
8772 emacs_cv_void_star=yes
8774 echo "$as_me: failed program was:" >&5
8775 sed 's/^/| /' conftest.$ac_ext >&5
8777 emacs_cv_void_star=no
8780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8782 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8783 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8784 if test $emacs_cv_void_star = yes; then
8785 cat >>confdefs.h <<\_ACEOF
8786 #define POINTER_TYPE void
8790 cat >>confdefs.h <<\_ACEOF
8791 #define POINTER_TYPE char
8800 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8801 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8802 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8803 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8804 echo $ECHO_N "(cached) $ECHO_C" >&6
8806 cat >conftest.make <<\_ACEOF
8809 @echo '@@@%%%=$(MAKE)=@@@%%%'
8811 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8812 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8814 eval ac_cv_prog_make_${ac_make}_set=yes;;
8816 eval ac_cv_prog_make_${ac_make}_set=no;;
8820 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8821 { echo "$as_me:$LINENO: result: yes" >&5
8822 echo "${ECHO_T}yes" >&6; }
8825 { echo "$as_me:$LINENO: result: no" >&5
8826 echo "${ECHO_T}no" >&6; }
8827 SET_MAKE="MAKE=${MAKE-make}"
8831 { echo "$as_me:$LINENO: checking for long file names" >&5
8832 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8833 if test "${ac_cv_sys_long_file_names+set}" = set; then
8834 echo $ECHO_N "(cached) $ECHO_C" >&6
8836 ac_cv_sys_long_file_names=yes
8837 # Test for long file names in all the places we know might matter:
8838 # . the current directory, where building will happen
8839 # $prefix/lib where we will be installing things
8840 # $exec_prefix/lib likewise
8841 # $TMPDIR if set, where it might want to write temporary files
8842 # /tmp where it might want to write temporary files
8845 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8846 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8847 # in the usual case where exec_prefix is '${prefix}'.
8849 . | /* | ?:[\\/]*) ;; #(
8852 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8853 ac_xdir=$ac_dir/cf$$
8854 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8855 ac_tf1=$ac_xdir/conftest9012345
8856 ac_tf2=$ac_xdir/conftest9012346
8857 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8858 ac_cv_sys_long_file_names=no
8859 rm -f -r "$ac_xdir" 2>/dev/null
8860 test $ac_cv_sys_long_file_names = no && break
8863 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8864 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8865 if test $ac_cv_sys_long_file_names = yes; then
8867 cat >>confdefs.h <<\_ACEOF
8868 #define HAVE_LONG_FILE_NAMES 1
8874 #### Choose a window system.
8876 { echo "$as_me:$LINENO: checking for X" >&5
8877 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8880 # Check whether --with-x was given.
8881 if test "${with_x+set}" = set; then
8885 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8886 if test "x$with_x" = xno; then
8887 # The user explicitly disabled X.
8890 case $x_includes,$x_libraries in #(
8891 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8892 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8893 { (exit 1); exit 1; }; };; #(
8894 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8895 echo $ECHO_N "(cached) $ECHO_C" >&6
8897 # One or both of the vars are not set, and there is no cached value.
8898 ac_x_includes=no ac_x_libraries=no
8899 rm -f -r conftest.dir
8900 if mkdir conftest.dir; then
8902 cat >Imakefile <<'_ACEOF'
8904 @echo incroot='${INCROOT}'
8906 @echo usrlibdir='${USRLIBDIR}'
8908 @echo libdir='${LIBDIR}'
8910 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8911 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8912 for ac_var in incroot usrlibdir libdir; do
8913 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8915 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8916 for ac_extension in a so sl; do
8917 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8918 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8919 ac_im_usrlibdir=$ac_im_libdir; break
8922 # Screen out bogus values from the imake configuration. They are
8923 # bogus both because they are the default anyway, and because
8924 # using them would break gcc on systems where it needs fixed includes.
8925 case $ac_im_incroot in
8926 /usr/include) ac_x_includes= ;;
8927 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8929 case $ac_im_usrlibdir in
8931 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8935 rm -f -r conftest.dir
8938 # Standard set of common directories for X headers.
8939 # Check X11 before X11Rn because it is often a symlink to the current release.
8951 /usr/local/X11/include
8952 /usr/local/X11R6/include
8953 /usr/local/X11R5/include
8954 /usr/local/X11R4/include
8956 /usr/local/include/X11
8957 /usr/local/include/X11R6
8958 /usr/local/include/X11R5
8959 /usr/local/include/X11R4
8963 /usr/XFree86/include/X11
8967 /usr/unsupported/include
8969 /usr/local/x11r5/include
8970 /usr/lpp/Xamples/include
8972 /usr/openwin/include
8973 /usr/openwin/share/include'
8975 if test "$ac_x_includes" = no; then
8976 # Guess where to find include files, by looking for Xlib.h.
8977 # First, try using that file with no special directory specified.
8978 cat >conftest.$ac_ext <<_ACEOF
8981 cat confdefs.h >>conftest.$ac_ext
8982 cat >>conftest.$ac_ext <<_ACEOF
8983 /* end confdefs.h. */
8984 #include <X11/Xlib.h>
8986 if { (ac_try="$ac_cpp conftest.$ac_ext"
8988 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8989 *) ac_try_echo
=$ac_try;;
8991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8994 grep -v '^ *+' conftest.er1
>conftest.err
8996 cat conftest.err
>&5
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } >/dev
/null
&& {
8999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9000 test ! -s conftest.err
9002 # We can compile using X headers with no special include directory.
9005 echo "$as_me: failed program was:" >&5
9006 sed 's/^/| /' conftest.
$ac_ext >&5
9008 for ac_dir
in $ac_x_header_dirs; do
9009 if test -r "$ac_dir/X11/Xlib.h"; then
9010 ac_x_includes
=$ac_dir
9016 rm -f conftest.err conftest.
$ac_ext
9017 fi # $ac_x_includes = no
9019 if test "$ac_x_libraries" = no
; then
9020 # Check for the libraries.
9021 # See if we find them without any special options.
9022 # Don't add to $LIBS permanently.
9025 cat >conftest.
$ac_ext <<_ACEOF
9028 cat confdefs.h
>>conftest.
$ac_ext
9029 cat >>conftest.
$ac_ext <<_ACEOF
9030 /* end confdefs.h. */
9031 #include <X11/Xlib.h>
9040 rm -f conftest.
$ac_objext conftest
$ac_exeext
9041 if { (ac_try
="$ac_link"
9043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9044 *) ac_try_echo=$ac_try;;
9046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9047 (eval "$ac_link") 2>conftest.er1
9049 grep -v '^ *+' conftest.er1 >conftest.err
9051 cat conftest.err >&5
9052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); } && {
9054 test -z "$ac_c_werror_flag" ||
9055 test ! -s conftest.err
9056 } && test -s conftest$ac_exeext &&
9057 $as_test_x conftest$ac_exeext; then
9059 # We can link X programs with no special library path.
9062 echo "$as_me: failed program was:" >&5
9063 sed 's/^/| /' conftest.$ac_ext >&5
9066 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9068 # Don't even attempt the hair of trying to link an X program!
9069 for ac_extension in a so sl; do
9070 if test -r "$ac_dir/libX11.$ac_extension"; then
9071 ac_x_libraries=$ac_dir
9078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9079 conftest$ac_exeext conftest.$ac_ext
9080 fi # $ac_x_libraries = no
9082 case $ac_x_includes,$ac_x_libraries in #(
9084 # Didn't find X, or a directory has "'" in its name.
9085 ac_cv_have_x="have_x=no";; #(
9087 # Record where we found X for the cache.
9088 ac_cv_have_x="have_x=yes\
9089 ac_x_includes='$ac_x_includes'\
9090 ac_x_libraries='$ac_x_libraries'"
9096 eval "$ac_cv_have_x"
9099 if test "$have_x" != yes; then
9100 { echo "$as_me:$LINENO: result: $have_x" >&5
9101 echo "${ECHO_T}$have_x" >&6; }
9104 # If each of the values was on the command line, it overrides each guess.
9105 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9106 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9107 # Update the cache value to reflect the command line values.
9108 ac_cv_have_x="have_x=yes\
9109 ac_x_includes='$x_includes'\
9110 ac_x_libraries='$x_libraries'"
9111 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9112 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9115 if test "$no_x" = yes; then
9121 ## Workaround for bug in autoconf <= 2.62.
9122 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9123 ## No need to do anything special for these standard directories.
9124 ## This is an experiment, take it out if it causes problems.
9125 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9127 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9131 if test "${x_libraries}" != NONE; then
9132 if test -n "${x_libraries}"; then
9133 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9134 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9136 x_default_search_path=""
9137 x_search_path=${x_libraries}
9138 if test -z "${x_search_path}"; then
9139 x_search_path=/usr/lib
9141 for x_library in `echo ${x_search_path}: | \
9142 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9144 ${x_library}/X11/%L/%T/%N%C%S:\
9145 ${x_library}/X11/%l/%T/%N%C%S:\
9146 ${x_library}/X11/%T/%N%C%S:\
9147 ${x_library}/X11/%L/%T/%N%S:\
9148 ${x_library}/X11/%l/%T/%N%S:\
9149 ${x_library}/X11/%T/%N%S"
9150 if test x"${x_default_search_path}" = x; then
9151 x_default_search_path=${x_search_path}
9153 x_default_search_path="${x_search_path}:${x_default_search_path}"
9157 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9158 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9161 if test x"${x_includes}" = x; then
9162 bitmapdir=/usr/include/X11/bitmaps
9164 # accumulate include directories that have X11 bitmap subdirectories
9166 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9167 if test -d "${bmd}/X11/bitmaps"; then
9168 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9170 if test -d "${bmd}/bitmaps"; then
9171 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9174 if test ${bmd_acc} != "dummyval"; then
9175 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9182 tmp_CPPFLAGS="$CPPFLAGS"
9183 tmp_CFLAGS="$CFLAGS"
9184 CPPFLAGS="$CPPFLAGS -x objective-c"
9185 CFLAGS="$CFLAGS -x objective-c"
9186 if test "${with_ns}" != no; then
9187 if test "${opsys}" = darwin; then
9189 ns_appdir=`pwd`/nextstep/Emacs.app
9190 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9191 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9192 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9193 elif test -f /etc/GNUstep/GNUstep.conf; then
9195 ns_appdir=`pwd`/nextstep/Emacs.app
9196 ns_appbindir=`pwd`/nextstep/Emacs.app
9197 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9198 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9199 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)"
9200 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9201 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9202 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9203 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9204 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9205 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9207 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9208 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9209 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9210 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9211 echo $ECHO_N "(cached) $ECHO_C" >&6
9213 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9214 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9216 # Is the header compilable?
9217 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9218 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9219 cat >conftest.$ac_ext <<_ACEOF
9222 cat confdefs.h >>conftest.$ac_ext
9223 cat >>conftest.$ac_ext <<_ACEOF
9224 /* end confdefs.h. */
9225 $ac_includes_default
9226 #include <AppKit/AppKit.h>
9228 rm -f conftest.$ac_objext
9229 if { (ac_try="$ac_compile"
9231 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9232 *) ac_try_echo
=$ac_try;;
9234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9235 (eval "$ac_compile") 2>conftest.er1
9237 grep -v '^ *+' conftest.er1
>conftest.err
9239 cat conftest.err
>&5
9240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9241 (exit $ac_status); } && {
9242 test -z "$ac_c_werror_flag" ||
9243 test ! -s conftest.err
9244 } && test -s conftest.
$ac_objext; then
9245 ac_header_compiler
=yes
9247 echo "$as_me: failed program was:" >&5
9248 sed 's/^/| /' conftest.
$ac_ext >&5
9250 ac_header_compiler
=no
9253 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9254 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9255 echo "${ECHO_T}$ac_header_compiler" >&6; }
9257 # Is the header present?
9258 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9259 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9260 cat >conftest.
$ac_ext <<_ACEOF
9263 cat confdefs.h
>>conftest.
$ac_ext
9264 cat >>conftest.
$ac_ext <<_ACEOF
9265 /* end confdefs.h. */
9266 #include <AppKit/AppKit.h>
9268 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9270 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9271 *) ac_try_echo=$ac_try;;
9273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9274 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9276 grep -v '^ *+' conftest.er1 >conftest.err
9278 cat conftest.err >&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } >/dev/null && {
9281 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9282 test ! -s conftest.err
9284 ac_header_preproc=yes
9286 echo "$as_me: failed program was:" >&5
9287 sed 's/^/| /' conftest.$ac_ext >&5
9289 ac_header_preproc=no
9292 rm -f conftest.err conftest.$ac_ext
9293 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9294 echo "${ECHO_T}$ac_header_preproc" >&6; }
9296 # So? What about this header?
9297 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9299 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9300 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9301 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9302 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9303 ac_header_preproc=yes
9306 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9307 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9308 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9309 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9311 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9313 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9315 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9317 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9321 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9322 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9323 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9328 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9329 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9332 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9337 NS_HAVE_NSINTEGER=yes
9338 cat >conftest.$ac_ext <<_ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 #include <Foundation/NSObjCRuntime.h>
9353 rm -f conftest.$ac_objext
9354 if { (ac_try="$ac_compile"
9356 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9357 *) ac_try_echo
=$ac_try;;
9359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9360 (eval "$ac_compile") 2>conftest.er1
9362 grep -v '^ *+' conftest.er1
>conftest.err
9364 cat conftest.err
>&5
9365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366 (exit $ac_status); } && {
9367 test -z "$ac_c_werror_flag" ||
9368 test ! -s conftest.err
9369 } && test -s conftest.
$ac_objext; then
9370 ns_have_nsinteger
=yes
9372 echo "$as_me: failed program was:" >&5
9373 sed 's/^/| /' conftest.
$ac_ext >&5
9375 ns_have_nsinteger
=no
9378 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9379 if test $ns_have_nsinteger = no
; then
9380 NS_HAVE_NSINTEGER
=no
9383 if test "${HAVE_NS}" = yes; then
9384 window_system
=nextstep
9387 # set up packaging dirs
9388 exec_prefix
=${ns_appbindir}
9389 libexecdir
=${ns_appbindir}/libexec
9390 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9391 prefix
=${ns_appresdir}
9394 CFLAGS
="$tmp_CFLAGS"
9395 CPPFLAGS
="$tmp_CPPFLAGS"
9397 case "${window_system}" in
9401 case "${with_x_toolkit}" in
9402 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9403 motif
) USE_X_TOOLKIT
=MOTIF
;;
9405 USE_X_TOOLKIT
=none
;;
9406 no
) USE_X_TOOLKIT
=none
;;
9407 * ) USE_X_TOOLKIT
=maybe
;;
9417 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9418 # Extract the first word of "X", so it can be a program name with args.
9419 set dummy X
; ac_word
=$2
9420 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9421 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9422 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9425 if test -n "$HAVE_XSERVER"; then
9426 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9428 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9432 test -z "$as_dir" && as_dir
=.
9433 for ac_exec_ext
in '' $ac_executable_extensions; do
9434 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9435 ac_cv_prog_HAVE_XSERVER
="true"
9436 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9443 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9446 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9447 if test -n "$HAVE_XSERVER"; then
9448 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9449 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9451 { echo "$as_me:$LINENO: result: no" >&5
9452 echo "${ECHO_T}no" >&6; }
9456 if test "$HAVE_XSERVER" = true ||
9457 test -n "$DISPLAY" ||
9458 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9459 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9460 were found. You should install the relevant development files for X
9461 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9462 sure you have development files for image handling, i.e.
9463 tiff, gif, jpeg, png and xpm.
9464 If you are sure you want Emacs compiled without X window support, pass
9467 echo "$as_me: error: You seem to be running X, but no X development libraries
9468 were found. You should install the relevant development files for X
9469 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9470 sure you have development files for image handling, i.e.
9471 tiff, gif, jpeg, png and xpm.
9472 If you are sure you want Emacs compiled without X window support, pass
9474 to configure." >&2;}
9475 { (exit 1); exit 1; }; }
9479 ### If we're using X11, we should use the X menu package.
9482 yes ) HAVE_MENUS
=yes ;;
9485 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9486 # Assume not, until told otherwise.
9489 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9490 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9491 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9492 echo $ECHO_N "(cached) $ECHO_C" >&6
9494 cat >conftest.
$ac_ext <<_ACEOF
9497 cat confdefs.h
>>conftest.
$ac_ext
9498 cat >>conftest.
$ac_ext <<_ACEOF
9499 /* end confdefs.h. */
9500 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9501 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9502 #define malloc_get_state innocuous_malloc_get_state
9504 /* System header to define __stub macros and hopefully few prototypes,
9505 which can conflict with char malloc_get_state (); below.
9506 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9507 <limits.h> exists even on freestanding compilers. */
9510 # include <limits.h>
9512 # include <assert.h>
9515 #undef malloc_get_state
9517 /* Override any GCC internal prototype to avoid an error.
9518 Use char because int might match the return type of a GCC
9519 builtin and then its argument prototype would still apply. */
9523 char malloc_get_state ();
9524 /* The GNU C library defines this for functions which it implements
9525 to always fail with ENOSYS. Some functions are actually named
9526 something starting with __ and the normal name is an alias. */
9527 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9534 return malloc_get_state ();
9539 rm -f conftest.
$ac_objext conftest
$ac_exeext
9540 if { (ac_try
="$ac_link"
9542 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_link") 2>conftest.er1
9548 grep -v '^ *+' conftest.er1 >conftest.err
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } && {
9553 test -z "$ac_c_werror_flag" ||
9554 test ! -s conftest.err
9555 } && test -s conftest$ac_exeext &&
9556 $as_test_x conftest$ac_exeext; then
9557 ac_cv_func_malloc_get_state=yes
9559 echo "$as_me: failed program was:" >&5
9560 sed 's/^/| /' conftest.$ac_ext >&5
9562 ac_cv_func_malloc_get_state=no
9565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9566 conftest$ac_exeext conftest.$ac_ext
9568 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9569 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9570 if test $ac_cv_func_malloc_get_state = yes; then
9576 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9577 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9578 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9579 echo $ECHO_N "(cached) $ECHO_C" >&6
9581 cat >conftest.$ac_ext <<_ACEOF
9584 cat confdefs.h >>conftest.$ac_ext
9585 cat >>conftest.$ac_ext <<_ACEOF
9586 /* end confdefs.h. */
9587 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9589 #define malloc_set_state innocuous_malloc_set_state
9591 /* System header to define __stub macros and hopefully few prototypes,
9592 which can conflict with char malloc_set_state (); below.
9593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9594 <limits.h> exists even on freestanding compilers. */
9597 # include <limits.h>
9599 # include <assert.h>
9602 #undef malloc_set_state
9604 /* Override any GCC internal prototype to avoid an error.
9605 Use char because int might match the return type of a GCC
9606 builtin and then its argument prototype would still apply. */
9610 char malloc_set_state ();
9611 /* The GNU C library defines this for functions which it implements
9612 to always fail with ENOSYS. Some functions are actually named
9613 something starting with __ and the normal name is an alias. */
9614 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9621 return malloc_set_state ();
9626 rm -f conftest.$ac_objext conftest$ac_exeext
9627 if { (ac_try="$ac_link"
9629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9630 *) ac_try_echo
=$ac_try;;
9632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9633 (eval "$ac_link") 2>conftest.er1
9635 grep -v '^ *+' conftest.er1
>conftest.err
9637 cat conftest.err
>&5
9638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9639 (exit $ac_status); } && {
9640 test -z "$ac_c_werror_flag" ||
9641 test ! -s conftest.err
9642 } && test -s conftest
$ac_exeext &&
9643 $as_test_x conftest
$ac_exeext; then
9644 ac_cv_func_malloc_set_state
=yes
9646 echo "$as_me: failed program was:" >&5
9647 sed 's/^/| /' conftest.
$ac_ext >&5
9649 ac_cv_func_malloc_set_state
=no
9652 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9653 conftest
$ac_exeext conftest.
$ac_ext
9655 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9656 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9657 if test $ac_cv_func_malloc_set_state = yes; then
9663 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9664 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9665 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9666 echo $ECHO_N "(cached) $ECHO_C" >&6
9668 cat >conftest.
$ac_ext <<_ACEOF
9671 cat confdefs.h
>>conftest.
$ac_ext
9672 cat >>conftest.
$ac_ext <<_ACEOF
9673 /* end confdefs.h. */
9674 extern void (* __after_morecore_hook)();
9678 __after_morecore_hook = 0
9683 rm -f conftest.
$ac_objext conftest
$ac_exeext
9684 if { (ac_try
="$ac_link"
9686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9687 *) ac_try_echo=$ac_try;;
9689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9690 (eval "$ac_link") 2>conftest.er1
9692 grep -v '^ *+' conftest.er1 >conftest.err
9694 cat conftest.err >&5
9695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9696 (exit $ac_status); } && {
9697 test -z "$ac_c_werror_flag" ||
9698 test ! -s conftest.err
9699 } && test -s conftest$ac_exeext &&
9700 $as_test_x conftest$ac_exeext; then
9701 emacs_cv_var___after_morecore_hook=yes
9703 echo "$as_me: failed program was:" >&5
9704 sed 's/^/| /' conftest.$ac_ext >&5
9706 emacs_cv_var___after_morecore_hook=no
9709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9710 conftest$ac_exeext conftest.$ac_ext
9712 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9713 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9714 if test $emacs_cv_var___after_morecore_hook = no; then
9717 if test "${system_malloc}" = "yes"; then
9720 (The GNU allocators don't work with this system configuration.)"
9722 if test "$doug_lea_malloc" = "yes" ; then
9723 if test "$GNU_MALLOC" = yes ; then
9725 (Using Doug Lea's new malloc from the GNU C Library.)"
9728 cat >>confdefs.h <<\_ACEOF
9729 #define DOUG_LEA_MALLOC 1
9734 if test x"${REL_ALLOC}" = x; then
9735 REL_ALLOC=${GNU_MALLOC}
9741 for ac_header in stdlib.h unistd.h
9743 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9748 echo $ECHO_N "(cached) $ECHO_C" >&6
9750 ac_res=`eval echo '${'$as_ac_Header'}'`
9751 { echo "$as_me:$LINENO: result: $ac_res" >&5
9752 echo "${ECHO_T}$ac_res" >&6; }
9754 # Is the header compilable?
9755 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9757 cat >conftest.$ac_ext <<_ACEOF
9760 cat confdefs.h >>conftest.$ac_ext
9761 cat >>conftest.$ac_ext <<_ACEOF
9762 /* end confdefs.h. */
9763 $ac_includes_default
9764 #include <$ac_header>
9766 rm -f conftest.$ac_objext
9767 if { (ac_try="$ac_compile"
9769 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9770 *) ac_try_echo
=$ac_try;;
9772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9773 (eval "$ac_compile") 2>conftest.er1
9775 grep -v '^ *+' conftest.er1
>conftest.err
9777 cat conftest.err
>&5
9778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9779 (exit $ac_status); } && {
9780 test -z "$ac_c_werror_flag" ||
9781 test ! -s conftest.err
9782 } && test -s conftest.
$ac_objext; then
9783 ac_header_compiler
=yes
9785 echo "$as_me: failed program was:" >&5
9786 sed 's/^/| /' conftest.
$ac_ext >&5
9788 ac_header_compiler
=no
9791 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9793 echo "${ECHO_T}$ac_header_compiler" >&6; }
9795 # Is the header present?
9796 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9798 cat >conftest.
$ac_ext <<_ACEOF
9801 cat confdefs.h
>>conftest.
$ac_ext
9802 cat >>conftest.
$ac_ext <<_ACEOF
9803 /* end confdefs.h. */
9804 #include <$ac_header>
9806 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9809 *) ac_try_echo=$ac_try;;
9811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9814 grep -v '^ *+' conftest.er1 >conftest.err
9816 cat conftest.err >&5
9817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9818 (exit $ac_status); } >/dev/null && {
9819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9820 test ! -s conftest.err
9822 ac_header_preproc=yes
9824 echo "$as_me: failed program was:" >&5
9825 sed 's/^/| /' conftest.$ac_ext >&5
9827 ac_header_preproc=no
9830 rm -f conftest.err conftest.$ac_ext
9831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9832 echo "${ECHO_T}$ac_header_preproc" >&6; }
9834 # So? What about this header?
9835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9841 ac_header_preproc=yes
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9864 eval "$as_ac_Header=\$ac_header_preproc"
9866 ac_res=`eval echo '${'$as_ac_Header'}'`
9867 { echo "$as_me:$LINENO: result: $ac_res" >&5
9868 echo "${ECHO_T}$ac_res" >&6; }
9871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9872 cat >>confdefs.h <<_ACEOF
9873 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9881 for ac_func in getpagesize
9883 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9887 echo $ECHO_N "(cached) $ECHO_C" >&6
9889 cat >conftest.$ac_ext <<_ACEOF
9892 cat confdefs.h >>conftest.$ac_ext
9893 cat >>conftest.$ac_ext <<_ACEOF
9894 /* end confdefs.h. */
9895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9897 #define $ac_func innocuous_$ac_func
9899 /* System header to define __stub macros and hopefully few prototypes,
9900 which can conflict with char $ac_func (); below.
9901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9902 <limits.h> exists even on freestanding compilers. */
9905 # include <limits.h>
9907 # include <assert.h>
9912 /* Override any GCC internal prototype to avoid an error.
9913 Use char because int might match the return type of a GCC
9914 builtin and then its argument prototype would still apply. */
9919 /* The GNU C library defines this for functions which it implements
9920 to always fail with ENOSYS. Some functions are actually named
9921 something starting with __ and the normal name is an alias. */
9922 #if defined __stub_$ac_func || defined __stub___$ac_func
9934 rm -f conftest.$ac_objext conftest$ac_exeext
9935 if { (ac_try="$ac_link"
9937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9938 *) ac_try_echo
=$ac_try;;
9940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9941 (eval "$ac_link") 2>conftest.er1
9943 grep -v '^ *+' conftest.er1
>conftest.err
9945 cat conftest.err
>&5
9946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } && {
9948 test -z "$ac_c_werror_flag" ||
9949 test ! -s conftest.err
9950 } && test -s conftest
$ac_exeext &&
9951 $as_test_x conftest
$ac_exeext; then
9952 eval "$as_ac_var=yes"
9954 echo "$as_me: failed program was:" >&5
9955 sed 's/^/| /' conftest.
$ac_ext >&5
9957 eval "$as_ac_var=no"
9960 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9961 conftest
$ac_exeext conftest.
$ac_ext
9963 ac_res
=`eval echo '${'$as_ac_var'}'`
9964 { echo "$as_me:$LINENO: result: $ac_res" >&5
9965 echo "${ECHO_T}$ac_res" >&6; }
9966 if test `eval echo '${'$as_ac_var'}'` = yes; then
9967 cat >>confdefs.h
<<_ACEOF
9968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9974 { echo "$as_me:$LINENO: checking for working mmap" >&5
9975 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9976 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9977 echo $ECHO_N "(cached) $ECHO_C" >&6
9979 if test "$cross_compiling" = yes; then
9980 ac_cv_func_mmap_fixed_mapped
=no
9982 cat >conftest.
$ac_ext <<_ACEOF
9985 cat confdefs.h
>>conftest.
$ac_ext
9986 cat >>conftest.
$ac_ext <<_ACEOF
9987 /* end confdefs.h. */
9988 $ac_includes_default
9989 /* malloc might have been renamed as rpl_malloc. */
9992 /* Thanks to Mike Haertel and Jim Avera for this test.
9993 Here is a matrix of mmap possibilities:
9994 mmap private not fixed
9995 mmap private fixed at somewhere currently unmapped
9996 mmap private fixed at somewhere already mapped
9997 mmap shared not fixed
9998 mmap shared fixed at somewhere currently unmapped
9999 mmap shared fixed at somewhere already mapped
10000 For private mappings, we should verify that changes cannot be read()
10001 back from the file, nor mmap's back from the file at a different
10002 address. (There have been systems where private was not correctly
10003 implemented like the infamous i386 svr4.0, and systems where the
10004 VM page cache was not coherent with the file system buffer cache
10005 like early versions of FreeBSD and possibly contemporary NetBSD.)
10006 For shared mappings, we should conversely verify that changes get
10007 propagated back to all the places they're supposed to be.
10009 Grep wants private fixed already mapped.
10010 The main things grep needs to know about mmap are:
10011 * does it exist and is it safe to write into the mmap'd area
10012 * how to use it (BSD variants) */
10015 #include <sys/mman.h>
10017 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10021 /* This mess was copied from the GNU getpagesize.h. */
10022 #ifndef HAVE_GETPAGESIZE
10023 /* Assume that all systems that can run configure have sys/param.h. */
10024 # ifndef HAVE_SYS_PARAM_H
10025 # define HAVE_SYS_PARAM_H 1
10028 # ifdef _SC_PAGESIZE
10029 # define getpagesize() sysconf(_SC_PAGESIZE)
10030 # else /* no _SC_PAGESIZE */
10031 # ifdef HAVE_SYS_PARAM_H
10032 # include <sys/param.h>
10033 # ifdef EXEC_PAGESIZE
10034 # define getpagesize() EXEC_PAGESIZE
10035 # else /* no EXEC_PAGESIZE */
10037 # define getpagesize() NBPG * CLSIZE
10040 # endif /* no CLSIZE */
10041 # else /* no NBPG */
10043 # define getpagesize() NBPC
10044 # else /* no NBPC */
10046 # define getpagesize() PAGESIZE
10047 # endif /* PAGESIZE */
10048 # endif /* no NBPC */
10049 # endif /* no NBPG */
10050 # endif /* no EXEC_PAGESIZE */
10051 # else /* no HAVE_SYS_PARAM_H */
10052 # define getpagesize() 8192 /* punt totally */
10053 # endif /* no HAVE_SYS_PARAM_H */
10054 # endif /* no _SC_PAGESIZE */
10056 #endif /* no HAVE_GETPAGESIZE */
10061 char *data, *data2, *data3;
10065 pagesize = getpagesize ();
10067 /* First, make a file with some known garbage in it. */
10068 data = (char *) malloc (pagesize);
10071 for (i = 0; i < pagesize; ++i)
10072 *(data + i) = rand ();
10074 fd = creat ("conftest.mmap", 0600);
10077 if (write (fd, data, pagesize) != pagesize)
10081 /* Next, try to mmap the file at a fixed address which already has
10082 something else allocated at it. If we can, also make sure that
10083 we see the same garbage. */
10084 fd = open ("conftest.mmap", O_RDWR);
10087 data2 = (char *) malloc (2 * pagesize);
10090 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10091 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10092 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10094 for (i = 0; i < pagesize; ++i)
10095 if (*(data + i) != *(data2 + i))
10098 /* Finally, make sure that changes to the mapped area do not
10099 percolate back to the file as seen by read(). (This is a bug on
10100 some variants of i386 svr4.0.) */
10101 for (i = 0; i < pagesize; ++i)
10102 *(data2 + i) = *(data2 + i) + 1;
10103 data3 = (char *) malloc (pagesize);
10106 if (read (fd, data3, pagesize) != pagesize)
10108 for (i = 0; i < pagesize; ++i)
10109 if (*(data + i) != *(data3 + i))
10115 rm -f conftest
$ac_exeext
10116 if { (ac_try
="$ac_link"
10117 case "(($ac_try" in
10118 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_link") 2>&5
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10126 { (case "(($ac_try" in
10127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10128 *) ac_try_echo
=$ac_try;;
10130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10131 (eval "$ac_try") 2>&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); }; }; then
10135 ac_cv_func_mmap_fixed_mapped
=yes
10137 echo "$as_me: program exited with status $ac_status" >&5
10138 echo "$as_me: failed program was:" >&5
10139 sed 's/^/| /' conftest.
$ac_ext >&5
10141 ( exit $ac_status )
10142 ac_cv_func_mmap_fixed_mapped
=no
10144 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10149 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10150 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10151 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10153 cat >>confdefs.h
<<\_ACEOF
10154 #define HAVE_MMAP 1
10158 rm -f conftest.mmap
10160 if test $use_mmap_for_buffers = yes; then
10164 LIBS
="$libsrc_libs $LIBS"
10167 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10168 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10169 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10170 echo $ECHO_N "(cached) $ECHO_C" >&6
10172 ac_check_lib_save_LIBS
=$LIBS
10173 LIBS
="-ldnet $LIBS"
10174 cat >conftest.
$ac_ext <<_ACEOF
10177 cat confdefs.h
>>conftest.
$ac_ext
10178 cat >>conftest.
$ac_ext <<_ACEOF
10179 /* end confdefs.h. */
10181 /* Override any GCC internal prototype to avoid an error.
10182 Use char because int might match the return type of a GCC
10183 builtin and then its argument prototype would still apply. */
10191 return dnet_ntoa ();
10196 rm -f conftest.
$ac_objext conftest
$ac_exeext
10197 if { (ac_try
="$ac_link"
10198 case "(($ac_try" in
10199 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10200 *) ac_try_echo=$ac_try;;
10202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10203 (eval "$ac_link") 2>conftest.er1
10205 grep -v '^ *+' conftest.er1 >conftest.err
10207 cat conftest.err >&5
10208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10209 (exit $ac_status); } && {
10210 test -z "$ac_c_werror_flag" ||
10211 test ! -s conftest.err
10212 } && test -s conftest$ac_exeext &&
10213 $as_test_x conftest$ac_exeext; then
10214 ac_cv_lib_dnet_dnet_ntoa=yes
10216 echo "$as_me: failed program was:" >&5
10217 sed 's/^/| /' conftest.$ac_ext >&5
10219 ac_cv_lib_dnet_dnet_ntoa=no
10222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10223 conftest$ac_exeext conftest.$ac_ext
10224 LIBS=$ac_check_lib_save_LIBS
10226 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10227 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10228 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10229 cat >>confdefs.h <<_ACEOF
10230 #define HAVE_LIBDNET 1
10233 LIBS="-ldnet $LIBS"
10238 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10239 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10240 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10241 echo $ECHO_N "(cached) $ECHO_C" >&6
10243 ac_check_lib_save_LIBS=$LIBS
10244 LIBS="-lXbsd $LIBS"
10245 cat >conftest.$ac_ext <<_ACEOF
10248 cat confdefs.h >>conftest.$ac_ext
10249 cat >>conftest.$ac_ext <<_ACEOF
10250 /* end confdefs.h. */
10261 rm -f conftest.$ac_objext conftest$ac_exeext
10262 if { (ac_try="$ac_link"
10263 case "(($ac_try" in
10264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10265 *) ac_try_echo
=$ac_try;;
10267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10268 (eval "$ac_link") 2>conftest.er1
10270 grep -v '^ *+' conftest.er1
>conftest.err
10272 cat conftest.err
>&5
10273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10274 (exit $ac_status); } && {
10275 test -z "$ac_c_werror_flag" ||
10276 test ! -s conftest.err
10277 } && test -s conftest
$ac_exeext &&
10278 $as_test_x conftest
$ac_exeext; then
10279 ac_cv_lib_Xbsd_main
=yes
10281 echo "$as_me: failed program was:" >&5
10282 sed 's/^/| /' conftest.
$ac_ext >&5
10284 ac_cv_lib_Xbsd_main
=no
10287 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10288 conftest
$ac_exeext conftest.
$ac_ext
10289 LIBS
=$ac_check_lib_save_LIBS
10291 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10292 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10293 if test $ac_cv_lib_Xbsd_main = yes; then
10294 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10299 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10300 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10301 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10304 ac_check_lib_save_LIBS
=$LIBS
10305 LIBS
="-lpthreads $LIBS"
10306 cat >conftest.
$ac_ext <<_ACEOF
10309 cat confdefs.h
>>conftest.
$ac_ext
10310 cat >>conftest.
$ac_ext <<_ACEOF
10311 /* end confdefs.h. */
10313 /* Override any GCC internal prototype to avoid an error.
10314 Use char because int might match the return type of a GCC
10315 builtin and then its argument prototype would still apply. */
10323 return cma_open ();
10328 rm -f conftest.
$ac_objext conftest
$ac_exeext
10329 if { (ac_try
="$ac_link"
10330 case "(($ac_try" in
10331 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10332 *) ac_try_echo=$ac_try;;
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_link") 2>conftest.er1
10337 grep -v '^ *+' conftest.er1 >conftest.err
10339 cat conftest.err >&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } && {
10342 test -z "$ac_c_werror_flag" ||
10343 test ! -s conftest.err
10344 } && test -s conftest$ac_exeext &&
10345 $as_test_x conftest$ac_exeext; then
10346 ac_cv_lib_pthreads_cma_open=yes
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.$ac_ext >&5
10351 ac_cv_lib_pthreads_cma_open=no
10354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10355 conftest$ac_exeext conftest.$ac_ext
10356 LIBS=$ac_check_lib_save_LIBS
10358 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10359 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10360 if test $ac_cv_lib_pthreads_cma_open = yes; then
10361 cat >>confdefs.h <<_ACEOF
10362 #define HAVE_LIBPTHREADS 1
10365 LIBS="-lpthreads $LIBS"
10373 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10374 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10375 if test "${gdb_cv_bigtoc+set}" = set; then
10376 echo $ECHO_N "(cached) $ECHO_C" >&6
10380 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10381 *) gdb_cv_bigtoc=-bbigtoc ;;
10384 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10385 cat >conftest.$ac_ext <<_ACEOF
10388 cat confdefs.h >>conftest.$ac_ext
10389 cat >>conftest.$ac_ext <<_ACEOF
10390 /* end confdefs.h. */
10400 rm -f conftest.$ac_objext conftest$ac_exeext
10401 if { (ac_try="$ac_link"
10402 case "(($ac_try" in
10403 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10404 *) ac_try_echo
=$ac_try;;
10406 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10407 (eval "$ac_link") 2>conftest.er1
10409 grep -v '^ *+' conftest.er1
>conftest.err
10411 cat conftest.err
>&5
10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10413 (exit $ac_status); } && {
10414 test -z "$ac_c_werror_flag" ||
10415 test ! -s conftest.err
10416 } && test -s conftest
$ac_exeext &&
10417 $as_test_x conftest
$ac_exeext; then
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.
$ac_ext >&5
10426 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10427 conftest
$ac_exeext conftest.
$ac_ext
10430 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10431 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10435 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10436 # used for the tests that follow. We set them back to REAL_CFLAGS and
10437 # REAL_CPPFLAGS later on.
10439 REAL_CPPFLAGS
="$CPPFLAGS"
10441 if test "${HAVE_X11}" = "yes"; then
10442 DEFS
="$C_SWITCH_X_SITE $DEFS"
10443 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10445 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10446 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10448 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10449 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10450 # but it's more convenient here to set LD_RUN_PATH
10451 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10452 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10453 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10457 if test "${opsys}" = "gnu-linux"; then
10458 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10459 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10460 cat >conftest.
$ac_ext <<_ACEOF
10463 cat confdefs.h
>>conftest.
$ac_ext
10464 cat >>conftest.
$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10470 XOpenDisplay ("foo");
10475 rm -f conftest.
$ac_objext conftest
$ac_exeext
10476 if { (ac_try
="$ac_link"
10477 case "(($ac_try" in
10478 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482 (eval "$ac_link") 2>conftest.er1
10484 grep -v '^ *+' conftest.er1 >conftest.err
10486 cat conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } && {
10489 test -z "$ac_c_werror_flag" ||
10490 test ! -s conftest.err
10491 } && test -s conftest$ac_exeext &&
10492 $as_test_x conftest$ac_exeext; then
10493 xlinux_first_failure=no
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10498 xlinux_first_failure=yes
10501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10502 conftest$ac_exeext conftest.$ac_ext
10503 if test "${xlinux_first_failure}" = "yes"; then
10504 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10505 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10506 OLD_CPPFLAGS="$CPPFLAGS"
10508 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10509 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10510 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10511 LIBS="$LIBS -b i486-linuxaout"
10512 cat >conftest.$ac_ext <<_ACEOF
10515 cat confdefs.h >>conftest.$ac_ext
10516 cat >>conftest.$ac_ext <<_ACEOF
10517 /* end confdefs.h. */
10522 XOpenDisplay ("foo");
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (ac_try="$ac_link"
10529 case "(($ac_try" in
10530 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10531 *) ac_try_echo
=$ac_try;;
10533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534 (eval "$ac_link") 2>conftest.er1
10536 grep -v '^ *+' conftest.er1
>conftest.err
10538 cat conftest.err
>&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } && {
10541 test -z "$ac_c_werror_flag" ||
10542 test ! -s conftest.err
10543 } && test -s conftest
$ac_exeext &&
10544 $as_test_x conftest
$ac_exeext; then
10545 xlinux_second_failure
=no
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.
$ac_ext >&5
10550 xlinux_second_failure
=yes
10553 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10554 conftest
$ac_exeext conftest.
$ac_ext
10555 if test "${xlinux_second_failure}" = "yes"; then
10556 # If we get the same failure with -b, there is no use adding -b.
10557 # So take it out. This plays safe.
10558 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10559 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10560 CPPFLAGS
="$OLD_CPPFLAGS"
10562 { echo "$as_me:$LINENO: result: no" >&5
10563 echo "${ECHO_T}no" >&6; }
10565 { echo "$as_me:$LINENO: result: yes" >&5
10566 echo "${ECHO_T}yes" >&6; }
10569 { echo "$as_me:$LINENO: result: no" >&5
10570 echo "${ECHO_T}no" >&6; }
10574 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10575 # header files included from there.
10576 { echo "$as_me:$LINENO: checking for Xkb" >&5
10577 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10578 cat >conftest.
$ac_ext <<_ACEOF
10581 cat confdefs.h
>>conftest.
$ac_ext
10582 cat >>conftest.
$ac_ext <<_ACEOF
10583 /* end confdefs.h. */
10584 #include <X11/Xlib.h>
10585 #include <X11/XKBlib.h>
10589 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10594 rm -f conftest.
$ac_objext conftest
$ac_exeext
10595 if { (ac_try
="$ac_link"
10596 case "(($ac_try" in
10597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10598 *) ac_try_echo=$ac_try;;
10600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10601 (eval "$ac_link") 2>conftest.er1
10603 grep -v '^ *+' conftest.er1 >conftest.err
10605 cat conftest.err >&5
10606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10607 (exit $ac_status); } && {
10608 test -z "$ac_c_werror_flag" ||
10609 test ! -s conftest.err
10610 } && test -s conftest$ac_exeext &&
10611 $as_test_x conftest$ac_exeext; then
10614 echo "$as_me: failed program was:" >&5
10615 sed 's/^/| /' conftest.$ac_ext >&5
10620 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10621 conftest$ac_exeext conftest.$ac_ext
10622 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10623 echo "${ECHO_T}$emacs_xkb" >&6; }
10624 if test $emacs_xkb = yes; then
10626 cat >>confdefs.h <<\_ACEOF
10627 #define HAVE_XKBGETKEYBOARD 1
10636 for ac_func in XrmSetDatabase XScreenResourceString \
10637 XScreenNumberOfScreen XSetWMProtocols
10639 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10640 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10641 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10642 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 cat >conftest.$ac_ext <<_ACEOF
10648 cat confdefs.h >>conftest.$ac_ext
10649 cat >>conftest.$ac_ext <<_ACEOF
10650 /* end confdefs.h. */
10651 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10653 #define $ac_func innocuous_$ac_func
10655 /* System header to define __stub macros and hopefully few prototypes,
10656 which can conflict with char $ac_func (); below.
10657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10658 <limits.h> exists even on freestanding compilers. */
10661 # include <limits.h>
10663 # include <assert.h>
10668 /* Override any GCC internal prototype to avoid an error.
10669 Use char because int might match the return type of a GCC
10670 builtin and then its argument prototype would still apply. */
10675 /* The GNU C library defines this for functions which it implements
10676 to always fail with ENOSYS. Some functions are actually named
10677 something starting with __ and the normal name is an alias. */
10678 #if defined __stub_$ac_func || defined __stub___$ac_func
10685 return $ac_func ();
10690 rm -f conftest.$ac_objext conftest$ac_exeext
10691 if { (ac_try="$ac_link"
10692 case "(($ac_try" in
10693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10694 *) ac_try_echo
=$ac_try;;
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_link") 2>conftest.er1
10699 grep -v '^ *+' conftest.er1
>conftest.err
10701 cat conftest.err
>&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && {
10704 test -z "$ac_c_werror_flag" ||
10705 test ! -s conftest.err
10706 } && test -s conftest
$ac_exeext &&
10707 $as_test_x conftest
$ac_exeext; then
10708 eval "$as_ac_var=yes"
10710 echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.
$ac_ext >&5
10713 eval "$as_ac_var=no"
10716 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10717 conftest
$ac_exeext conftest.
$ac_ext
10719 ac_res
=`eval echo '${'$as_ac_var'}'`
10720 { echo "$as_me:$LINENO: result: $ac_res" >&5
10721 echo "${ECHO_T}$ac_res" >&6; }
10722 if test `eval echo '${'$as_ac_var'}'` = yes; then
10723 cat >>confdefs.h
<<_ACEOF
10724 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10732 if test "${window_system}" = "x11"; then
10733 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10734 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10735 if test "${emacs_cv_x11_version_6+set}" = set; then
10736 echo $ECHO_N "(cached) $ECHO_C" >&6
10738 cat >conftest.
$ac_ext <<_ACEOF
10741 cat confdefs.h
>>conftest.
$ac_ext
10742 cat >>conftest.
$ac_ext <<_ACEOF
10743 /* end confdefs.h. */
10744 #include <X11/Xlib.h>
10748 #if XlibSpecificationRelease < 6
10756 rm -f conftest.
$ac_objext conftest
$ac_exeext
10757 if { (ac_try
="$ac_link"
10758 case "(($ac_try" in
10759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10760 *) ac_try_echo=$ac_try;;
10762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10763 (eval "$ac_link") 2>conftest.er1
10765 grep -v '^ *+' conftest.er1 >conftest.err
10767 cat conftest.err >&5
10768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10769 (exit $ac_status); } && {
10770 test -z "$ac_c_werror_flag" ||
10771 test ! -s conftest.err
10772 } && test -s conftest$ac_exeext &&
10773 $as_test_x conftest$ac_exeext; then
10774 emacs_cv_x11_version_6=yes
10776 echo "$as_me: failed program was:" >&5
10777 sed 's/^/| /' conftest.$ac_ext >&5
10779 emacs_cv_x11_version_6=no
10782 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10783 conftest$ac_exeext conftest.$ac_ext
10786 if test $emacs_cv_x11_version_6 = yes; then
10787 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10788 echo "${ECHO_T}6 or newer" >&6; }
10790 cat >>confdefs.h <<\_ACEOF
10791 #define HAVE_X11R6 1
10795 { echo "$as_me:$LINENO: result: before 6" >&5
10796 echo "${ECHO_T}before 6" >&6; }
10801 ### Use -lrsvg-2 if available, unless `--with-rsvg=no
' is specified.
10803 if test "${HAVE_X11}" = "yes"; then
10804 if test "${with_rsvg}" != "no"; then
10805 RSVG_REQUIRED=2.0.0
10806 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10811 # Extract the first word of "pkg-config", so it can be a program name with args.
10812 set dummy pkg-config; ac_word=$2
10813 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10815 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10816 echo $ECHO_N "(cached) $ECHO_C" >&6
10818 case $PKG_CONFIG in
10820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10824 for as_dir in $PATH
10827 test -z "$as_dir" && as_dir=.
10828 for ac_exec_ext in '' $ac_executable_extensions; do
10829 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10830 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10838 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10842 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10843 if test -n "$PKG_CONFIG"; then
10844 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10845 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10847 { echo "$as_me:$LINENO: result: no" >&5
10848 echo "${ECHO_T}no" >&6; }
10853 if test "$PKG_CONFIG" = "no" ; then
10856 PKG_CONFIG_MIN_VERSION=0.9.0
10857 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10858 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10859 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10861 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10862 { echo "$as_me:$LINENO: result: yes" >&5
10863 echo "${ECHO_T}yes" >&6; }
10866 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10867 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10868 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
10869 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10870 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10872 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10873 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10874 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
10875 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10876 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10878 { echo "$as_me:$LINENO: result: no" >&5
10879 echo "${ECHO_T}no" >&6; }
10882 ## If we have a custom action on failure, don't print errors
, but
10883 ## do set a variable so people can do so.
10884 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10891 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10892 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10896 if test $succeeded = yes; then
10905 if test ".${RSVG_CFLAGS}" != "."; then
10908 cat >>confdefs.h
<<\_ACEOF
10909 #define HAVE_RSVG 1
10912 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10913 LIBS
="$RSVG_LIBS $LIBS"
10920 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10923 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10928 # Extract the first word of "pkg-config", so it can be a program name with args.
10929 set dummy pkg-config
; ac_word
=$2
10930 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10931 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10932 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10933 echo $ECHO_N "(cached) $ECHO_C" >&6
10935 case $PKG_CONFIG in
10937 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10940 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10941 for as_dir
in $PATH
10944 test -z "$as_dir" && as_dir
=.
10945 for ac_exec_ext
in '' $ac_executable_extensions; do
10946 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10947 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10948 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10955 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10959 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10960 if test -n "$PKG_CONFIG"; then
10961 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10962 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10964 { echo "$as_me:$LINENO: result: no" >&5
10965 echo "${ECHO_T}no" >&6; }
10970 if test "$PKG_CONFIG" = "no" ; then
10973 PKG_CONFIG_MIN_VERSION
=0.9.0
10974 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10975 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10976 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10978 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10979 { echo "$as_me:$LINENO: result: yes" >&5
10980 echo "${ECHO_T}yes" >&6; }
10983 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10984 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10985 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10986 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10987 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10989 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10990 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10991 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10992 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10993 echo "${ECHO_T}$GTK_LIBS" >&6; }
10995 { echo "$as_me:$LINENO: result: no" >&5
10996 echo "${ECHO_T}no" >&6; }
10999 ## If we have a custom action on failure, don't print errors, but
11000 ## do set a variable so people can do so.
11001 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11008 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11009 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11013 if test $succeeded = yes; then
11019 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11020 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11021 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11022 { (exit 1); exit 1; }; }
11027 if test x
"$pkg_check_gtk" = xyes
; then
11031 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11032 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11033 LIBS
="$GTK_LIBS $LIBS"
11036 for ac_func
in gtk_main
11038 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11039 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11041 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11042 echo $ECHO_N "(cached) $ECHO_C" >&6
11044 cat >conftest.
$ac_ext <<_ACEOF
11047 cat confdefs.h
>>conftest.
$ac_ext
11048 cat >>conftest.
$ac_ext <<_ACEOF
11049 /* end confdefs.h. */
11050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11052 #define $ac_func innocuous_$ac_func
11054 /* System header to define __stub macros and hopefully few prototypes,
11055 which can conflict with char $ac_func (); below.
11056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11057 <limits.h> exists even on freestanding compilers. */
11060 # include <limits.h>
11062 # include <assert.h>
11067 /* Override any GCC internal prototype to avoid an error.
11068 Use char because int might match the return type of a GCC
11069 builtin and then its argument prototype would still apply. */
11074 /* The GNU C library defines this for functions which it implements
11075 to always fail with ENOSYS. Some functions are actually named
11076 something starting with __ and the normal name is an alias. */
11077 #if defined __stub_$ac_func || defined __stub___$ac_func
11084 return $ac_func ();
11089 rm -f conftest.
$ac_objext conftest
$ac_exeext
11090 if { (ac_try
="$ac_link"
11091 case "(($ac_try" in
11092 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11093 *) ac_try_echo=$ac_try;;
11095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11096 (eval "$ac_link") 2>conftest.er1
11098 grep -v '^ *+' conftest.er1 >conftest.err
11100 cat conftest.err >&5
11101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11102 (exit $ac_status); } && {
11103 test -z "$ac_c_werror_flag" ||
11104 test ! -s conftest.err
11105 } && test -s conftest$ac_exeext &&
11106 $as_test_x conftest$ac_exeext; then
11107 eval "$as_ac_var=yes"
11109 echo "$as_me: failed program was:" >&5
11110 sed 's/^/| /' conftest.$ac_ext >&5
11112 eval "$as_ac_var=no"
11115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11116 conftest$ac_exeext conftest.$ac_ext
11118 ac_res=`eval echo '${'$as_ac_var'}'`
11119 { echo "$as_me:$LINENO: result: $ac_res" >&5
11120 echo "${ECHO_T}$ac_res" >&6; }
11121 if test `eval echo '${'$as_ac_var'}'` = yes; then
11122 cat >>confdefs.h <<_ACEOF
11123 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11129 if test "${GTK_COMPILES}" != "yes"; then
11130 if test "$USE_X_TOOLKIT" != "maybe"; then
11131 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11132 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11133 { (exit 1); exit 1; }; };
11138 cat >>confdefs.h <<\_ACEOF
11143 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11146 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11147 closing open displays. This is no problem if you just use
11148 one display, but if you use more than one and close one of them
11149 Emacs may crash." >&5
11150 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11151 closing open displays. This is no problem if you just use
11152 one display, but if you use more than one and close one of them
11153 Emacs may crash." >&2;}
11161 if test "${HAVE_GTK}" = "yes"; then
11163 if test "$with_toolkit_scroll_bars" != no; then
11164 with_toolkit_scroll_bars=yes
11167 HAVE_GTK_MULTIDISPLAY=no
11169 for ac_func in gdk_display_open
11171 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11172 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11173 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11174 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11175 echo $ECHO_N "(cached) $ECHO_C" >&6
11177 cat >conftest.$ac_ext <<_ACEOF
11180 cat confdefs.h >>conftest.$ac_ext
11181 cat >>conftest.$ac_ext <<_ACEOF
11182 /* end confdefs.h. */
11183 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11184 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11185 #define $ac_func innocuous_$ac_func
11187 /* System header to define __stub macros and hopefully few prototypes,
11188 which can conflict with char $ac_func (); below.
11189 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11190 <limits.h> exists even on freestanding compilers. */
11193 # include <limits.h>
11195 # include <assert.h>
11200 /* Override any GCC internal prototype to avoid an error.
11201 Use char because int might match the return type of a GCC
11202 builtin and then its argument prototype would still apply. */
11207 /* The GNU C library defines this for functions which it implements
11208 to always fail with ENOSYS. Some functions are actually named
11209 something starting with __ and the normal name is an alias. */
11210 #if defined __stub_$ac_func || defined __stub___$ac_func
11217 return $ac_func ();
11222 rm -f conftest.$ac_objext conftest$ac_exeext
11223 if { (ac_try="$ac_link"
11224 case "(($ac_try" in
11225 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11226 *) ac_try_echo
=$ac_try;;
11228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11229 (eval "$ac_link") 2>conftest.er1
11231 grep -v '^ *+' conftest.er1
>conftest.err
11233 cat conftest.err
>&5
11234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11235 (exit $ac_status); } && {
11236 test -z "$ac_c_werror_flag" ||
11237 test ! -s conftest.err
11238 } && test -s conftest
$ac_exeext &&
11239 $as_test_x conftest
$ac_exeext; then
11240 eval "$as_ac_var=yes"
11242 echo "$as_me: failed program was:" >&5
11243 sed 's/^/| /' conftest.
$ac_ext >&5
11245 eval "$as_ac_var=no"
11248 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11249 conftest
$ac_exeext conftest.
$ac_ext
11251 ac_res
=`eval echo '${'$as_ac_var'}'`
11252 { echo "$as_me:$LINENO: result: $ac_res" >&5
11253 echo "${ECHO_T}$ac_res" >&6; }
11254 if test `eval echo '${'$as_ac_var'}'` = yes; then
11255 cat >>confdefs.h
<<_ACEOF
11256 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11258 HAVE_GTK_MULTIDISPLAY
=yes
11262 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11264 cat >>confdefs.h
<<\_ACEOF
11265 #define HAVE_GTK_MULTIDISPLAY 1
11270 HAVE_GTK_FILE_SELECTION
=no
11272 for ac_func
in gtk_file_selection_new
11274 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11275 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11276 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11277 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11278 echo $ECHO_N "(cached) $ECHO_C" >&6
11280 cat >conftest.
$ac_ext <<_ACEOF
11283 cat confdefs.h
>>conftest.
$ac_ext
11284 cat >>conftest.
$ac_ext <<_ACEOF
11285 /* end confdefs.h. */
11286 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11287 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11288 #define $ac_func innocuous_$ac_func
11290 /* System header to define __stub macros and hopefully few prototypes,
11291 which can conflict with char $ac_func (); below.
11292 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11293 <limits.h> exists even on freestanding compilers. */
11296 # include <limits.h>
11298 # include <assert.h>
11303 /* Override any GCC internal prototype to avoid an error.
11304 Use char because int might match the return type of a GCC
11305 builtin and then its argument prototype would still apply. */
11310 /* The GNU C library defines this for functions which it implements
11311 to always fail with ENOSYS. Some functions are actually named
11312 something starting with __ and the normal name is an alias. */
11313 #if defined __stub_$ac_func || defined __stub___$ac_func
11320 return $ac_func ();
11325 rm -f conftest.
$ac_objext conftest
$ac_exeext
11326 if { (ac_try
="$ac_link"
11327 case "(($ac_try" in
11328 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11329 *) ac_try_echo=$ac_try;;
11331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11332 (eval "$ac_link") 2>conftest.er1
11334 grep -v '^ *+' conftest.er1 >conftest.err
11336 cat conftest.err >&5
11337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11338 (exit $ac_status); } && {
11339 test -z "$ac_c_werror_flag" ||
11340 test ! -s conftest.err
11341 } && test -s conftest$ac_exeext &&
11342 $as_test_x conftest$ac_exeext; then
11343 eval "$as_ac_var=yes"
11345 echo "$as_me: failed program was:" >&5
11346 sed 's/^/| /' conftest.$ac_ext >&5
11348 eval "$as_ac_var=no"
11351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11352 conftest$ac_exeext conftest.$ac_ext
11354 ac_res=`eval echo '${'$as_ac_var'}'`
11355 { echo "$as_me:$LINENO: result: $ac_res" >&5
11356 echo "${ECHO_T}$ac_res" >&6; }
11357 if test `eval echo '${'$as_ac_var'}'` = yes; then
11358 cat >>confdefs.h <<_ACEOF
11359 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11361 HAVE_GTK_FILE_SELECTION=yes
11366 HAVE_GTK_FILE_CHOOSER=no
11368 for ac_func in gtk_file_chooser_dialog_new
11370 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11371 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11372 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11373 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11374 echo $ECHO_N "(cached) $ECHO_C" >&6
11376 cat >conftest.$ac_ext <<_ACEOF
11379 cat confdefs.h >>conftest.$ac_ext
11380 cat >>conftest.$ac_ext <<_ACEOF
11381 /* end confdefs.h. */
11382 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11383 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11384 #define $ac_func innocuous_$ac_func
11386 /* System header to define __stub macros and hopefully few prototypes,
11387 which can conflict with char $ac_func (); below.
11388 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11389 <limits.h> exists even on freestanding compilers. */
11392 # include <limits.h>
11394 # include <assert.h>
11399 /* Override any GCC internal prototype to avoid an error.
11400 Use char because int might match the return type of a GCC
11401 builtin and then its argument prototype would still apply. */
11406 /* The GNU C library defines this for functions which it implements
11407 to always fail with ENOSYS. Some functions are actually named
11408 something starting with __ and the normal name is an alias. */
11409 #if defined __stub_$ac_func || defined __stub___$ac_func
11416 return $ac_func ();
11421 rm -f conftest.$ac_objext conftest$ac_exeext
11422 if { (ac_try="$ac_link"
11423 case "(($ac_try" in
11424 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11425 *) ac_try_echo
=$ac_try;;
11427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11428 (eval "$ac_link") 2>conftest.er1
11430 grep -v '^ *+' conftest.er1
>conftest.err
11432 cat conftest.err
>&5
11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11434 (exit $ac_status); } && {
11435 test -z "$ac_c_werror_flag" ||
11436 test ! -s conftest.err
11437 } && test -s conftest
$ac_exeext &&
11438 $as_test_x conftest
$ac_exeext; then
11439 eval "$as_ac_var=yes"
11441 echo "$as_me: failed program was:" >&5
11442 sed 's/^/| /' conftest.
$ac_ext >&5
11444 eval "$as_ac_var=no"
11447 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11448 conftest
$ac_exeext conftest.
$ac_ext
11450 ac_res
=`eval echo '${'$as_ac_var'}'`
11451 { echo "$as_me:$LINENO: result: $ac_res" >&5
11452 echo "${ECHO_T}$ac_res" >&6; }
11453 if test `eval echo '${'$as_ac_var'}'` = yes; then
11454 cat >>confdefs.h
<<_ACEOF
11455 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11457 HAVE_GTK_FILE_CHOOSER
=yes
11462 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11463 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11465 cat >>confdefs.h
<<\_ACEOF
11466 #define HAVE_GTK_FILE_BOTH 1
11471 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11472 HAVE_GTK_AND_PTHREAD
=no
11474 for ac_header
in pthread.h
11476 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11477 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11480 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11481 echo $ECHO_N "(cached) $ECHO_C" >&6
11483 ac_res
=`eval echo '${'$as_ac_Header'}'`
11484 { echo "$as_me:$LINENO: result: $ac_res" >&5
11485 echo "${ECHO_T}$ac_res" >&6; }
11487 # Is the header compilable?
11488 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11489 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11490 cat >conftest.
$ac_ext <<_ACEOF
11493 cat confdefs.h
>>conftest.
$ac_ext
11494 cat >>conftest.
$ac_ext <<_ACEOF
11495 /* end confdefs.h. */
11496 $ac_includes_default
11497 #include <$ac_header>
11499 rm -f conftest.
$ac_objext
11500 if { (ac_try
="$ac_compile"
11501 case "(($ac_try" in
11502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_compile") 2>conftest.er1
11508 grep -v '^ *+' conftest.er1 >conftest.err
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } && {
11513 test -z "$ac_c_werror_flag" ||
11514 test ! -s conftest.err
11515 } && test -s conftest.$ac_objext; then
11516 ac_header_compiler=yes
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 ac_header_compiler=no
11524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11525 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11526 echo "${ECHO_T}$ac_header_compiler" >&6; }
11528 # Is the header present?
11529 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11530 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11531 cat >conftest.$ac_ext <<_ACEOF
11534 cat confdefs.h >>conftest.$ac_ext
11535 cat >>conftest.$ac_ext <<_ACEOF
11536 /* end confdefs.h. */
11537 #include <$ac_header>
11539 if { (ac_try="$ac_cpp conftest.$ac_ext"
11540 case "(($ac_try" in
11541 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11542 *) ac_try_echo
=$ac_try;;
11544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11545 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11547 grep -v '^ *+' conftest.er1
>conftest.err
11549 cat conftest.err
>&5
11550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11551 (exit $ac_status); } >/dev
/null
&& {
11552 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11553 test ! -s conftest.err
11555 ac_header_preproc
=yes
11557 echo "$as_me: failed program was:" >&5
11558 sed 's/^/| /' conftest.
$ac_ext >&5
11560 ac_header_preproc
=no
11563 rm -f conftest.err conftest.
$ac_ext
11564 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11565 echo "${ECHO_T}$ac_header_preproc" >&6; }
11567 # So? What about this header?
11568 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11571 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11573 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11574 ac_header_preproc
=yes
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11578 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11580 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11582 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11584 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11586 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11588 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11592 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11593 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11594 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11595 echo $ECHO_N "(cached) $ECHO_C" >&6
11597 eval "$as_ac_Header=\$ac_header_preproc"
11599 ac_res
=`eval echo '${'$as_ac_Header'}'`
11600 { echo "$as_me:$LINENO: result: $ac_res" >&5
11601 echo "${ECHO_T}$ac_res" >&6; }
11604 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11605 cat >>confdefs.h
<<_ACEOF
11606 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11613 if test "$ac_cv_header_pthread_h"; then
11614 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11615 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11616 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11617 echo $ECHO_N "(cached) $ECHO_C" >&6
11619 ac_check_lib_save_LIBS
=$LIBS
11620 LIBS
="-lpthread $LIBS"
11621 cat >conftest.
$ac_ext <<_ACEOF
11624 cat confdefs.h
>>conftest.
$ac_ext
11625 cat >>conftest.
$ac_ext <<_ACEOF
11626 /* end confdefs.h. */
11628 /* Override any GCC internal prototype to avoid an error.
11629 Use char because int might match the return type of a GCC
11630 builtin and then its argument prototype would still apply. */
11634 char pthread_self ();
11638 return pthread_self ();
11643 rm -f conftest.
$ac_objext conftest
$ac_exeext
11644 if { (ac_try
="$ac_link"
11645 case "(($ac_try" in
11646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11647 *) ac_try_echo=$ac_try;;
11649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11650 (eval "$ac_link") 2>conftest.er1
11652 grep -v '^ *+' conftest.er1 >conftest.err
11654 cat conftest.err >&5
11655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11656 (exit $ac_status); } && {
11657 test -z "$ac_c_werror_flag" ||
11658 test ! -s conftest.err
11659 } && test -s conftest$ac_exeext &&
11660 $as_test_x conftest$ac_exeext; then
11661 ac_cv_lib_pthread_pthread_self=yes
11663 echo "$as_me: failed program was:" >&5
11664 sed 's/^/| /' conftest.$ac_ext >&5
11666 ac_cv_lib_pthread_pthread_self=no
11669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11670 conftest$ac_exeext conftest.$ac_ext
11671 LIBS=$ac_check_lib_save_LIBS
11673 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11674 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11675 if test $ac_cv_lib_pthread_pthread_self = yes; then
11676 HAVE_GTK_AND_PTHREAD=yes
11680 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11681 case "${canonical}" in
11683 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11686 cat >>confdefs.h <<\_ACEOF
11687 #define HAVE_GTK_AND_PTHREAD 1
11695 if test "${with_dbus}" = "yes"; then
11699 # Extract the first word of "pkg-config", so it can be a program name with args.
11700 set dummy pkg-config; ac_word=$2
11701 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11703 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11704 echo $ECHO_N "(cached) $ECHO_C" >&6
11706 case $PKG_CONFIG in
11708 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11712 for as_dir in $PATH
11715 test -z "$as_dir" && as_dir=.
11716 for ac_exec_ext in '' $ac_executable_extensions; do
11717 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11718 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11719 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11726 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11730 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11731 if test -n "$PKG_CONFIG"; then
11732 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11733 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11735 { echo "$as_me:$LINENO: result: no" >&5
11736 echo "${ECHO_T}no" >&6; }
11741 if test "$PKG_CONFIG" = "no" ; then
11744 PKG_CONFIG_MIN_VERSION=0.9.0
11745 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11746 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11747 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11749 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11750 { echo "$as_me:$LINENO: result: yes" >&5
11751 echo "${ECHO_T}yes" >&6; }
11754 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11755 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11756 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11757 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11758 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11760 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11761 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11762 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11763 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11764 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11766 { echo "$as_me:$LINENO: result: no" >&5
11767 echo "${ECHO_T}no" >&6; }
11770 ## If we have a custom action on failure, don't print errors, but
11771 ## do set a variable so people can do so.
11772 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11779 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11780 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11784 if test $succeeded = yes; then
11790 if test "$HAVE_DBUS" = yes; then
11792 cat >>confdefs.h <<\_ACEOF
11793 #define HAVE_DBUS 1
11800 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11801 if test "$with_xaw3d" != no; then
11802 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11803 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11804 if test "${emacs_cv_xaw3d+set}" = set; then
11805 echo $ECHO_N "(cached) $ECHO_C" >&6
11807 cat >conftest.$ac_ext <<_ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h. */
11814 #include <X11/Intrinsic.h>
11815 #include <X11/Xaw3d/Simple.h>
11824 rm -f conftest.$ac_objext conftest$ac_exeext
11825 if { (ac_try="$ac_link"
11826 case "(($ac_try" in
11827 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11828 *) ac_try_echo
=$ac_try;;
11830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11831 (eval "$ac_link") 2>conftest.er1
11833 grep -v '^ *+' conftest.er1
>conftest.err
11835 cat conftest.err
>&5
11836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11837 (exit $ac_status); } && {
11838 test -z "$ac_c_werror_flag" ||
11839 test ! -s conftest.err
11840 } && test -s conftest
$ac_exeext &&
11841 $as_test_x conftest
$ac_exeext; then
11844 echo "$as_me: failed program was:" >&5
11845 sed 's/^/| /' conftest.
$ac_ext >&5
11850 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11851 conftest
$ac_exeext conftest.
$ac_ext
11857 if test $emacs_cv_xaw3d = yes; then
11858 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11859 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11860 USE_X_TOOLKIT
=LUCID
11863 cat >>confdefs.h
<<\_ACEOF
11864 #define HAVE_XAW3D 1
11868 { echo "$as_me:$LINENO: result: no" >&5
11869 echo "${ECHO_T}no" >&6; }
11870 { echo "$as_me:$LINENO: checking for libXaw" >&5
11871 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11872 if test "${emacs_cv_xaw+set}" = set; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 cat >conftest.
$ac_ext <<_ACEOF
11878 cat confdefs.h
>>conftest.
$ac_ext
11879 cat >>conftest.
$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11882 #include <X11/Intrinsic.h>
11883 #include <X11/Xaw/Simple.h>
11892 rm -f conftest.
$ac_objext conftest
$ac_exeext
11893 if { (ac_try
="$ac_link"
11894 case "(($ac_try" in
11895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11896 *) ac_try_echo=$ac_try;;
11898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11899 (eval "$ac_link") 2>conftest.er1
11901 grep -v '^ *+' conftest.er1 >conftest.err
11903 cat conftest.err >&5
11904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11905 (exit $ac_status); } && {
11906 test -z "$ac_c_werror_flag" ||
11907 test ! -s conftest.err
11908 } && test -s conftest$ac_exeext &&
11909 $as_test_x conftest$ac_exeext; then
11912 echo "$as_me: failed program was:" >&5
11913 sed 's/^/| /' conftest.$ac_ext >&5
11918 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11919 conftest$ac_exeext conftest.$ac_ext
11922 if test $emacs_cv_xaw = yes; then
11923 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11924 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11925 USE_X_TOOLKIT=LUCID
11926 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11927 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11928 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11929 { (exit 1); exit 1; }; }
11931 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11932 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11938 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11940 if test "${USE_X_TOOLKIT}" != "none"; then
11941 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11942 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11943 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11944 echo $ECHO_N "(cached) $ECHO_C" >&6
11946 cat >conftest.$ac_ext <<_ACEOF
11949 cat confdefs.h >>conftest.$ac_ext
11950 cat >>conftest.$ac_ext <<_ACEOF
11951 /* end confdefs.h. */
11952 #include <X11/Intrinsic.h>
11956 #if XtSpecificationRelease < 6
11964 rm -f conftest.$ac_objext conftest$ac_exeext
11965 if { (ac_try="$ac_link"
11966 case "(($ac_try" in
11967 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11968 *) ac_try_echo
=$ac_try;;
11970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11971 (eval "$ac_link") 2>conftest.er1
11973 grep -v '^ *+' conftest.er1
>conftest.err
11975 cat conftest.err
>&5
11976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11977 (exit $ac_status); } && {
11978 test -z "$ac_c_werror_flag" ||
11979 test ! -s conftest.err
11980 } && test -s conftest
$ac_exeext &&
11981 $as_test_x conftest
$ac_exeext; then
11982 emacs_cv_x11_toolkit_version_6
=yes
11984 echo "$as_me: failed program was:" >&5
11985 sed 's/^/| /' conftest.
$ac_ext >&5
11987 emacs_cv_x11_toolkit_version_6
=no
11990 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11991 conftest
$ac_exeext conftest.
$ac_ext
11994 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11995 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11996 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11997 echo "${ECHO_T}6 or newer" >&6; }
11999 cat >>confdefs.h
<<\_ACEOF
12000 #define HAVE_X11XTR6 1
12004 { echo "$as_me:$LINENO: result: before 6" >&5
12005 echo "${ECHO_T}before 6" >&6; }
12009 if test x
$HAVE_X11XTR6 = xyes
; then
12010 LIBS
="-lXt -lSM -lICE $LIBS"
12015 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12016 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12017 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12018 echo $ECHO_N "(cached) $ECHO_C" >&6
12020 ac_check_lib_save_LIBS
=$LIBS
12022 cat >conftest.
$ac_ext <<_ACEOF
12025 cat confdefs.h
>>conftest.
$ac_ext
12026 cat >>conftest.
$ac_ext <<_ACEOF
12027 /* end confdefs.h. */
12029 /* Override any GCC internal prototype to avoid an error.
12030 Use char because int might match the return type of a GCC
12031 builtin and then its argument prototype would still apply. */
12035 char XmuConvertStandardSelection ();
12039 return XmuConvertStandardSelection ();
12044 rm -f conftest.
$ac_objext conftest
$ac_exeext
12045 if { (ac_try
="$ac_link"
12046 case "(($ac_try" in
12047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12048 *) ac_try_echo=$ac_try;;
12050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12051 (eval "$ac_link") 2>conftest.er1
12053 grep -v '^ *+' conftest.er1 >conftest.err
12055 cat conftest.err >&5
12056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12057 (exit $ac_status); } && {
12058 test -z "$ac_c_werror_flag" ||
12059 test ! -s conftest.err
12060 } && test -s conftest$ac_exeext &&
12061 $as_test_x conftest$ac_exeext; then
12062 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12064 echo "$as_me: failed program was:" >&5
12065 sed 's/^/| /' conftest.$ac_ext >&5
12067 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12071 conftest$ac_exeext conftest.$ac_ext
12072 LIBS=$ac_check_lib_save_LIBS
12074 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12075 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12076 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12077 cat >>confdefs.h <<_ACEOF
12078 #define HAVE_LIBXMU 1
12085 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12088 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12089 if test "${HAVE_X11}" = "yes"; then
12090 if test "${USE_X_TOOLKIT}" != "none"; then
12092 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12093 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12094 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12095 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 ac_check_lib_save_LIBS=$LIBS
12098 LIBS="-lXext $LIBS"
12099 cat >conftest.$ac_ext <<_ACEOF
12102 cat confdefs.h >>conftest.$ac_ext
12103 cat >>conftest.$ac_ext <<_ACEOF
12104 /* end confdefs.h. */
12106 /* Override any GCC internal prototype to avoid an error.
12107 Use char because int might match the return type of a GCC
12108 builtin and then its argument prototype would still apply. */
12112 char XShapeQueryExtension ();
12116 return XShapeQueryExtension ();
12121 rm -f conftest.$ac_objext conftest$ac_exeext
12122 if { (ac_try="$ac_link"
12123 case "(($ac_try" in
12124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12125 *) ac_try_echo
=$ac_try;;
12127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12128 (eval "$ac_link") 2>conftest.er1
12130 grep -v '^ *+' conftest.er1
>conftest.err
12132 cat conftest.err
>&5
12133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12134 (exit $ac_status); } && {
12135 test -z "$ac_c_werror_flag" ||
12136 test ! -s conftest.err
12137 } && test -s conftest
$ac_exeext &&
12138 $as_test_x conftest
$ac_exeext; then
12139 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12141 echo "$as_me: failed program was:" >&5
12142 sed 's/^/| /' conftest.
$ac_ext >&5
12144 ac_cv_lib_Xext_XShapeQueryExtension
=no
12147 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12148 conftest
$ac_exeext conftest.
$ac_ext
12149 LIBS
=$ac_check_lib_save_LIBS
12151 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12152 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12153 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12154 cat >>confdefs.h
<<_ACEOF
12155 #define HAVE_LIBXEXT 1
12158 LIBS
="-lXext $LIBS"
12165 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12166 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12167 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12168 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12169 echo $ECHO_N "(cached) $ECHO_C" >&6
12171 cat >conftest.
$ac_ext <<_ACEOF
12174 cat confdefs.h
>>conftest.
$ac_ext
12175 cat >>conftest.
$ac_ext <<_ACEOF
12176 /* end confdefs.h. */
12181 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12184 Motif version prior to 2.1.
12190 rm -f conftest.
$ac_objext
12191 if { (ac_try
="$ac_compile"
12192 case "(($ac_try" in
12193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12194 *) ac_try_echo=$ac_try;;
12196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12197 (eval "$ac_compile") 2>conftest.er1
12199 grep -v '^ *+' conftest.er1 >conftest.err
12201 cat conftest.err >&5
12202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12203 (exit $ac_status); } && {
12204 test -z "$ac_c_werror_flag" ||
12205 test ! -s conftest.err
12206 } && test -s conftest.$ac_objext; then
12207 emacs_cv_motif_version_2_1=yes
12209 echo "$as_me: failed program was:" >&5
12210 sed 's/^/| /' conftest.$ac_ext >&5
12212 emacs_cv_motif_version_2_1=no
12215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12217 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12218 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12219 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12220 if test $emacs_cv_motif_version_2_1 = yes; then
12223 cat >>confdefs.h <<\_ACEOF
12224 #define HAVE_MOTIF_2_1 1
12227 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12228 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12229 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12230 echo $ECHO_N "(cached) $ECHO_C" >&6
12232 ac_check_lib_save_LIBS=$LIBS
12234 cat >conftest.$ac_ext <<_ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12241 /* Override any GCC internal prototype to avoid an error.
12242 Use char because int might match the return type of a GCC
12243 builtin and then its argument prototype would still apply. */
12247 char XpCreateContext ();
12251 return XpCreateContext ();
12256 rm -f conftest.$ac_objext conftest$ac_exeext
12257 if { (ac_try="$ac_link"
12258 case "(($ac_try" in
12259 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12260 *) ac_try_echo
=$ac_try;;
12262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12263 (eval "$ac_link") 2>conftest.er1
12265 grep -v '^ *+' conftest.er1
>conftest.err
12267 cat conftest.err
>&5
12268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12269 (exit $ac_status); } && {
12270 test -z "$ac_c_werror_flag" ||
12271 test ! -s conftest.err
12272 } && test -s conftest
$ac_exeext &&
12273 $as_test_x conftest
$ac_exeext; then
12274 ac_cv_lib_Xp_XpCreateContext
=yes
12276 echo "$as_me: failed program was:" >&5
12277 sed 's/^/| /' conftest.
$ac_ext >&5
12279 ac_cv_lib_Xp_XpCreateContext
=no
12282 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12283 conftest
$ac_exeext conftest.
$ac_ext
12284 LIBS
=$ac_check_lib_save_LIBS
12286 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12287 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12288 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12292 if test ${HAVE_LIBXP} = yes; then
12294 cat >>confdefs.h
<<\_ACEOF
12295 #define HAVE_LIBXP 1
12300 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12301 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12302 if test "${emacs_cv_lesstif+set}" = set; then
12303 echo $ECHO_N "(cached) $ECHO_C" >&6
12305 # We put this in CFLAGS temporarily to precede other -I options
12306 # that might be in CFLAGS temporarily.
12307 # We put this in CPPFLAGS where it precedes the other -I options.
12308 OLD_CPPFLAGS
=$CPPFLAGS
12310 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12311 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12312 cat >conftest.
$ac_ext <<_ACEOF
12315 cat confdefs.h
>>conftest.
$ac_ext
12316 cat >>conftest.
$ac_ext <<_ACEOF
12317 /* end confdefs.h. */
12318 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12327 rm -f conftest.
$ac_objext
12328 if { (ac_try
="$ac_compile"
12329 case "(($ac_try" in
12330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12331 *) ac_try_echo=$ac_try;;
12333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12334 (eval "$ac_compile") 2>conftest.er1
12336 grep -v '^ *+' conftest.er1 >conftest.err
12338 cat conftest.err >&5
12339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12340 (exit $ac_status); } && {
12341 test -z "$ac_c_werror_flag" ||
12342 test ! -s conftest.err
12343 } && test -s conftest.$ac_objext; then
12344 emacs_cv_lesstif=yes
12346 echo "$as_me: failed program was:" >&5
12347 sed 's/^/| /' conftest.$ac_ext >&5
12349 emacs_cv_lesstif=no
12352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12354 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12355 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12356 if test $emacs_cv_lesstif = yes; then
12357 # Make sure this -I option remains in CPPFLAGS after it is set
12358 # back to REAL_CPPFLAGS.
12359 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12360 # have those other -I options anyway. Ultimately, having this
12361 # directory ultimately in CPPFLAGS will be enough.
12362 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12363 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12366 CPPFLAGS=$OLD_CPPFLAGS
12373 USE_TOOLKIT_SCROLL_BARS=no
12374 if test "${with_toolkit_scroll_bars}" != "no"; then
12375 if test "${USE_X_TOOLKIT}" != "none"; then
12376 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12377 cat >>confdefs.h <<\_ACEOF
12378 #define USE_TOOLKIT_SCROLL_BARS 1
12382 USE_TOOLKIT_SCROLL_BARS=yes
12383 elif test "${HAVE_XAW3D}" = "yes"; then
12384 cat >>confdefs.h <<\_ACEOF
12385 #define USE_TOOLKIT_SCROLL_BARS 1
12388 USE_TOOLKIT_SCROLL_BARS=yes
12390 elif test "${HAVE_GTK}" = "yes"; then
12391 cat >>confdefs.h <<\_ACEOF
12392 #define USE_TOOLKIT_SCROLL_BARS 1
12395 USE_TOOLKIT_SCROLL_BARS=yes
12396 elif test "${HAVE_NS}" = "yes"; then
12397 cat >>confdefs.h <<\_ACEOF
12398 #define USE_TOOLKIT_SCROLL_BARS 1
12401 USE_TOOLKIT_SCROLL_BARS=yes
12405 cat >conftest.$ac_ext <<_ACEOF
12408 cat confdefs.h >>conftest.$ac_ext
12409 cat >>conftest.$ac_ext <<_ACEOF
12410 /* end confdefs.h. */
12412 #include <X11/Xlib.h>
12413 #include <X11/Xresource.h>
12422 rm -f conftest.$ac_objext
12423 if { (ac_try="$ac_compile"
12424 case "(($ac_try" in
12425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12426 *) ac_try_echo
=$ac_try;;
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_compile") 2>conftest.er1
12431 grep -v '^ *+' conftest.er1
>conftest.err
12433 cat conftest.err
>&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } && {
12436 test -z "$ac_c_werror_flag" ||
12437 test ! -s conftest.err
12438 } && test -s conftest.
$ac_objext; then
12441 cat >>confdefs.h
<<\_ACEOF
12446 echo "$as_me: failed program was:" >&5
12447 sed 's/^/| /' conftest.
$ac_ext >&5
12452 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12455 if test "${with_xim}" != "no"; then
12457 cat >>confdefs.h
<<\_ACEOF
12464 if test "${HAVE_XIM}" != "no"; then
12465 late_CFLAGS
=$CFLAGS
12466 if test "$GCC" = yes; then
12467 CFLAGS
="$CFLAGS --pedantic-errors"
12469 cat >conftest.
$ac_ext <<_ACEOF
12472 cat confdefs.h
>>conftest.
$ac_ext
12473 cat >>conftest.
$ac_ext <<_ACEOF
12474 /* end confdefs.h. */
12476 #include <X11/Xlib.h>
12477 #include <X11/Xresource.h>
12486 XPointer *client_data;
12488 /* If we're not using GCC, it's probably not XFree86, and this is
12489 probably right, but we can't use something like --pedantic-errors. */
12490 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12491 char*, XIMProc, XPointer*);
12493 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12499 rm -f conftest.
$ac_objext
12500 if { (ac_try
="$ac_compile"
12501 case "(($ac_try" in
12502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12503 *) ac_try_echo=$ac_try;;
12505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12506 (eval "$ac_compile") 2>conftest.er1
12508 grep -v '^ *+' conftest.er1 >conftest.err
12510 cat conftest.err >&5
12511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12512 (exit $ac_status); } && {
12513 test -z "$ac_c_werror_flag" ||
12514 test ! -s conftest.err
12515 } && test -s conftest.$ac_objext; then
12516 emacs_cv_arg6_star=yes
12518 echo "$as_me: failed program was:" >&5
12519 sed 's/^/| /' conftest.$ac_ext >&5
12524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12526 if test "$emacs_cv_arg6_star" = yes; then
12527 cat >>confdefs.h <<\_ACEOF
12528 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12532 cat >>confdefs.h <<\_ACEOF
12533 #define XRegisterIMInstantiateCallback_arg6 XPointer
12537 CFLAGS=$late_CFLAGS
12540 ### Start of font-backend section.
12542 ## Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12544 if test "x${with_freetype}" = "xno"; then
12547 if test "x${with_xft}" != "xno"; then
12552 # Extract the first word of "pkg-config", so it can be a program name with args.
12553 set dummy pkg-config
; ac_word
=$2
12554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12556 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 case $PKG_CONFIG in
12561 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12565 for as_dir
in $PATH
12568 test -z "$as_dir" && as_dir
=.
12569 for ac_exec_ext
in '' $ac_executable_extensions; do
12570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12571 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12579 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12583 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12584 if test -n "$PKG_CONFIG"; then
12585 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12586 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12588 { echo "$as_me:$LINENO: result: no" >&5
12589 echo "${ECHO_T}no" >&6; }
12594 if test "$PKG_CONFIG" = "no" ; then
12597 PKG_CONFIG_MIN_VERSION
=0.9.0
12598 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12599 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12600 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12602 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12603 { echo "$as_me:$LINENO: result: yes" >&5
12604 echo "${ECHO_T}yes" >&6; }
12607 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12608 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12609 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12610 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12611 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12613 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12614 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12615 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12616 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12617 echo "${ECHO_T}$XFT_LIBS" >&6; }
12619 { echo "$as_me:$LINENO: result: no" >&5
12620 echo "${ECHO_T}no" >&6; }
12623 ## If we have a custom action on failure, don't print errors, but
12624 ## do set a variable so people can do so.
12625 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12632 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12633 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12637 if test $succeeded = yes; then
12643 if test "$HAVE_XFT" != no
; then
12644 OLD_CPPFLAGS
="$CPPFLAGS"
12645 OLD_CFLAGS
="$CFLAGS"
12647 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12648 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12649 LIBS
="$XFT_LIBS $LIBS"
12650 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12651 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12652 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12653 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12654 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12657 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12659 # Is the header compilable?
12660 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12661 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12662 cat >conftest.
$ac_ext <<_ACEOF
12665 cat confdefs.h
>>conftest.
$ac_ext
12666 cat >>conftest.
$ac_ext <<_ACEOF
12667 /* end confdefs.h. */
12668 $ac_includes_default
12669 #include <X11/Xft/Xft.h>
12671 rm -f conftest.
$ac_objext
12672 if { (ac_try
="$ac_compile"
12673 case "(($ac_try" in
12674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12675 *) ac_try_echo=$ac_try;;
12677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12678 (eval "$ac_compile") 2>conftest.er1
12680 grep -v '^ *+' conftest.er1 >conftest.err
12682 cat conftest.err >&5
12683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12684 (exit $ac_status); } && {
12685 test -z "$ac_c_werror_flag" ||
12686 test ! -s conftest.err
12687 } && test -s conftest.$ac_objext; then
12688 ac_header_compiler=yes
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 ac_header_compiler=no
12696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12697 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12698 echo "${ECHO_T}$ac_header_compiler" >&6; }
12700 # Is the header present?
12701 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12702 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12703 cat >conftest.$ac_ext <<_ACEOF
12706 cat confdefs.h >>conftest.$ac_ext
12707 cat >>conftest.$ac_ext <<_ACEOF
12708 /* end confdefs.h. */
12709 #include <X11/Xft/Xft.h>
12711 if { (ac_try="$ac_cpp conftest.$ac_ext"
12712 case "(($ac_try" in
12713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12714 *) ac_try_echo
=$ac_try;;
12716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12717 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12719 grep -v '^ *+' conftest.er1
>conftest.err
12721 cat conftest.err
>&5
12722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12723 (exit $ac_status); } >/dev
/null
&& {
12724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12725 test ! -s conftest.err
12727 ac_header_preproc
=yes
12729 echo "$as_me: failed program was:" >&5
12730 sed 's/^/| /' conftest.
$ac_ext >&5
12732 ac_header_preproc
=no
12735 rm -f conftest.err conftest.
$ac_ext
12736 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12737 echo "${ECHO_T}$ac_header_preproc" >&6; }
12739 # So? What about this header?
12740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12742 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12743 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12744 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12745 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12746 ac_header_preproc
=yes
12749 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12750 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12752 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12754 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12756 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12758 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12760 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12764 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12765 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12766 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12767 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12771 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12772 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12775 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12776 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12777 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12778 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12779 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 ac_check_lib_save_LIBS
=$LIBS
12782 LIBS
="-lXft $XFT_LIBS $LIBS"
12783 cat >conftest.
$ac_ext <<_ACEOF
12786 cat confdefs.h
>>conftest.
$ac_ext
12787 cat >>conftest.
$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12790 /* Override any GCC internal prototype to avoid an error.
12791 Use char because int might match the return type of a GCC
12792 builtin and then its argument prototype would still apply. */
12796 char XftFontOpen ();
12800 return XftFontOpen ();
12805 rm -f conftest.
$ac_objext conftest
$ac_exeext
12806 if { (ac_try
="$ac_link"
12807 case "(($ac_try" in
12808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12809 *) ac_try_echo=$ac_try;;
12811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12812 (eval "$ac_link") 2>conftest.er1
12814 grep -v '^ *+' conftest.er1 >conftest.err
12816 cat conftest.err >&5
12817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12818 (exit $ac_status); } && {
12819 test -z "$ac_c_werror_flag" ||
12820 test ! -s conftest.err
12821 } && test -s conftest$ac_exeext &&
12822 $as_test_x conftest$ac_exeext; then
12823 ac_cv_lib_Xft_XftFontOpen=yes
12825 echo "$as_me: failed program was:" >&5
12826 sed 's/^/| /' conftest.$ac_ext >&5
12828 ac_cv_lib_Xft_XftFontOpen=no
12831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12832 conftest$ac_exeext conftest.$ac_ext
12833 LIBS=$ac_check_lib_save_LIBS
12835 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12836 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12837 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12845 if test "${HAVE_XFT}" = "yes"; then
12847 cat >>confdefs.h <<\_ACEOF
12852 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12854 CPPFLAGS="$OLD_CPPFLAGS"
12855 CFLAGS="$OLD_CFLAGS"
12857 fi # "${HAVE_XFT}" = "yes"
12858 fi # "$HAVE_XFT" != no
12859 fi # "x${with_xft}" != "xno"
12861 if test "$HAVE_XFT" != "yes"; then
12867 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12868 if test "${HAVE_XFT}" = "yes"; then
12870 elif test "x${with_freetype}" != "xno"; then
12875 # Extract the first word of "pkg-config", so it can be a program name with args.
12876 set dummy pkg-config; ac_word=$2
12877 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12878 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12879 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12880 echo $ECHO_N "(cached) $ECHO_C" >&6
12882 case $PKG_CONFIG in
12884 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12888 for as_dir in $PATH
12891 test -z "$as_dir" && as_dir=.
12892 for ac_exec_ext in '' $ac_executable_extensions; do
12893 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12894 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12902 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12906 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12907 if test -n "$PKG_CONFIG"; then
12908 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12909 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12911 { echo "$as_me:$LINENO: result: no" >&5
12912 echo "${ECHO_T}no" >&6; }
12917 if test "$PKG_CONFIG" = "no" ; then
12920 PKG_CONFIG_MIN_VERSION=0.9.0
12921 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12922 { echo "$as_me:$LINENO: checking for freetype2" >&5
12923 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12925 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12926 { echo "$as_me:$LINENO: result: yes" >&5
12927 echo "${ECHO_T}yes" >&6; }
12930 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12931 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12932 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12933 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12934 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12936 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12937 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12938 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12939 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12940 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12942 { echo "$as_me:$LINENO: result: no" >&5
12943 echo "${ECHO_T}no" >&6; }
12946 ## If we have a custom action on failure, don't print errors
, but
12947 ## do set a variable so people can do so.
12948 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12955 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12956 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12960 if test $succeeded = yes; then
12966 if test "${HAVE_FREETYPE}" = "yes"; then
12970 # Extract the first word of "pkg-config", so it can be a program name with args.
12971 set dummy pkg-config
; ac_word
=$2
12972 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12973 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12974 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12977 case $PKG_CONFIG in
12979 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12982 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12983 for as_dir
in $PATH
12986 test -z "$as_dir" && as_dir
=.
12987 for ac_exec_ext
in '' $ac_executable_extensions; do
12988 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12989 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12990 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12997 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13001 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13002 if test -n "$PKG_CONFIG"; then
13003 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13004 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13006 { echo "$as_me:$LINENO: result: no" >&5
13007 echo "${ECHO_T}no" >&6; }
13012 if test "$PKG_CONFIG" = "no" ; then
13015 PKG_CONFIG_MIN_VERSION
=0.9.0
13016 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13017 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13018 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13020 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13021 { echo "$as_me:$LINENO: result: yes" >&5
13022 echo "${ECHO_T}yes" >&6; }
13025 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13026 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13027 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13028 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13029 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13031 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13032 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13033 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13034 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13035 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13037 { echo "$as_me:$LINENO: result: no" >&5
13038 echo "${ECHO_T}no" >&6; }
13039 FONTCONFIG_CFLAGS
=""
13041 ## If we have a custom action on failure, don't print errors, but
13042 ## do set a variable so people can do so.
13043 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13050 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13051 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13055 if test $succeeded = yes; then
13061 if test "${HAVE_FC}" = "no"; then
13068 if test "${HAVE_FREETYPE}" = "yes"; then
13070 cat >>confdefs.h
<<\_ACEOF
13071 #define HAVE_FREETYPE 1
13074 if test "${with_libotf}" != "no"; then
13078 # Extract the first word of "pkg-config", so it can be a program name with args.
13079 set dummy pkg-config
; ac_word
=$2
13080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13082 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13083 echo $ECHO_N "(cached) $ECHO_C" >&6
13085 case $PKG_CONFIG in
13087 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13090 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13091 for as_dir
in $PATH
13094 test -z "$as_dir" && as_dir
=.
13095 for ac_exec_ext
in '' $ac_executable_extensions; do
13096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13097 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13098 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13105 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13109 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13110 if test -n "$PKG_CONFIG"; then
13111 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13112 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13114 { echo "$as_me:$LINENO: result: no" >&5
13115 echo "${ECHO_T}no" >&6; }
13120 if test "$PKG_CONFIG" = "no" ; then
13123 PKG_CONFIG_MIN_VERSION
=0.9.0
13124 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13125 { echo "$as_me:$LINENO: checking for libotf" >&5
13126 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13128 if $PKG_CONFIG --exists "libotf" 2>&5; then
13129 { echo "$as_me:$LINENO: result: yes" >&5
13130 echo "${ECHO_T}yes" >&6; }
13133 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13134 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13135 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13136 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13137 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13139 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13140 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13141 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13142 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13143 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13145 { echo "$as_me:$LINENO: result: no" >&5
13146 echo "${ECHO_T}no" >&6; }
13149 ## If we have a custom action on failure, don't print errors, but
13150 ## do set a variable so people can do so.
13151 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13158 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13159 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13163 if test $succeeded = yes; then
13169 if test "$HAVE_LIBOTF" = "yes"; then
13171 cat >>confdefs.h
<<\_ACEOF
13172 #define HAVE_LIBOTF 1
13180 if test "${with_m17n_flt}" != "no"; then
13184 # Extract the first word of "pkg-config", so it can be a program name with args.
13185 set dummy pkg-config
; ac_word
=$2
13186 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13187 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13188 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13189 echo $ECHO_N "(cached) $ECHO_C" >&6
13191 case $PKG_CONFIG in
13193 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13196 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13197 for as_dir
in $PATH
13200 test -z "$as_dir" && as_dir
=.
13201 for ac_exec_ext
in '' $ac_executable_extensions; do
13202 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13203 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13204 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13211 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13215 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13216 if test -n "$PKG_CONFIG"; then
13217 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13218 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13220 { echo "$as_me:$LINENO: result: no" >&5
13221 echo "${ECHO_T}no" >&6; }
13226 if test "$PKG_CONFIG" = "no" ; then
13229 PKG_CONFIG_MIN_VERSION
=0.9.0
13230 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13231 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13232 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13234 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13235 { echo "$as_me:$LINENO: result: yes" >&5
13236 echo "${ECHO_T}yes" >&6; }
13239 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13240 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13241 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13242 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13243 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13245 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13246 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13247 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13248 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13249 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13251 { echo "$as_me:$LINENO: result: no" >&5
13252 echo "${ECHO_T}no" >&6; }
13255 ## If we have a custom action on failure, don't print errors, but
13256 ## do set a variable so people can do so.
13257 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13264 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13265 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13269 if test $succeeded = yes; then
13275 if test "$HAVE_M17N_FLT" = "yes"; then
13277 cat >>confdefs.h
<<\_ACEOF
13278 #define HAVE_M17N_FLT 1
13293 ### End of font-backend section.
13295 ### Use -lXpm if available, unless `--with-xpm=no'.
13297 if test "${HAVE_X11}" = "yes"; then
13298 if test "${with_xpm}" != "no"; then
13299 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13300 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13301 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13302 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13306 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13308 # Is the header compilable?
13309 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13310 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13311 cat >conftest.
$ac_ext <<_ACEOF
13314 cat confdefs.h
>>conftest.
$ac_ext
13315 cat >>conftest.
$ac_ext <<_ACEOF
13316 /* end confdefs.h. */
13317 $ac_includes_default
13318 #include <X11/xpm.h>
13320 rm -f conftest.
$ac_objext
13321 if { (ac_try
="$ac_compile"
13322 case "(($ac_try" in
13323 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13324 *) ac_try_echo=$ac_try;;
13326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13327 (eval "$ac_compile") 2>conftest.er1
13329 grep -v '^ *+' conftest.er1 >conftest.err
13331 cat conftest.err >&5
13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13333 (exit $ac_status); } && {
13334 test -z "$ac_c_werror_flag" ||
13335 test ! -s conftest.err
13336 } && test -s conftest.$ac_objext; then
13337 ac_header_compiler=yes
13339 echo "$as_me: failed program was:" >&5
13340 sed 's/^/| /' conftest.$ac_ext >&5
13342 ac_header_compiler=no
13345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13346 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13347 echo "${ECHO_T}$ac_header_compiler" >&6; }
13349 # Is the header present?
13350 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13351 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13352 cat >conftest.$ac_ext <<_ACEOF
13355 cat confdefs.h >>conftest.$ac_ext
13356 cat >>conftest.$ac_ext <<_ACEOF
13357 /* end confdefs.h. */
13358 #include <X11/xpm.h>
13360 if { (ac_try="$ac_cpp conftest.$ac_ext"
13361 case "(($ac_try" in
13362 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13363 *) ac_try_echo
=$ac_try;;
13365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13366 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13368 grep -v '^ *+' conftest.er1
>conftest.err
13370 cat conftest.err
>&5
13371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13372 (exit $ac_status); } >/dev
/null
&& {
13373 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13374 test ! -s conftest.err
13376 ac_header_preproc
=yes
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.
$ac_ext >&5
13381 ac_header_preproc
=no
13384 rm -f conftest.err conftest.
$ac_ext
13385 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13386 echo "${ECHO_T}$ac_header_preproc" >&6; }
13388 # So? What about this header?
13389 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13391 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13392 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13393 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13394 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13395 ac_header_preproc
=yes
13398 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13399 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13401 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13402 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13403 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13405 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13407 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13408 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13409 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13413 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13414 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13415 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13416 echo $ECHO_N "(cached) $ECHO_C" >&6
13418 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13420 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13421 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13424 if test $ac_cv_header_X11_xpm_h = yes; then
13425 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13426 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13427 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13428 echo $ECHO_N "(cached) $ECHO_C" >&6
13430 ac_check_lib_save_LIBS
=$LIBS
13431 LIBS
="-lXpm -lX11 $LIBS"
13432 cat >conftest.
$ac_ext <<_ACEOF
13435 cat confdefs.h
>>conftest.
$ac_ext
13436 cat >>conftest.
$ac_ext <<_ACEOF
13437 /* end confdefs.h. */
13439 /* Override any GCC internal prototype to avoid an error.
13440 Use char because int might match the return type of a GCC
13441 builtin and then its argument prototype would still apply. */
13445 char XpmReadFileToPixmap ();
13449 return XpmReadFileToPixmap ();
13454 rm -f conftest.
$ac_objext conftest
$ac_exeext
13455 if { (ac_try
="$ac_link"
13456 case "(($ac_try" in
13457 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13458 *) ac_try_echo=$ac_try;;
13460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13461 (eval "$ac_link") 2>conftest.er1
13463 grep -v '^ *+' conftest.er1 >conftest.err
13465 cat conftest.err >&5
13466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13467 (exit $ac_status); } && {
13468 test -z "$ac_c_werror_flag" ||
13469 test ! -s conftest.err
13470 } && test -s conftest$ac_exeext &&
13471 $as_test_x conftest$ac_exeext; then
13472 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13474 echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13477 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13481 conftest$ac_exeext conftest.$ac_ext
13482 LIBS=$ac_check_lib_save_LIBS
13484 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13485 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13486 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13493 if test "${HAVE_XPM}" = "yes"; then
13494 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13495 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13496 cat >conftest.$ac_ext <<_ACEOF
13499 cat confdefs.h >>conftest.$ac_ext
13500 cat >>conftest.$ac_ext <<_ACEOF
13501 /* end confdefs.h. */
13502 #include "X11/xpm.h"
13503 #ifndef XpmReturnAllocPixels
13504 no_return_alloc_pixels
13508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13509 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13517 if test "${HAVE_XPM}" = "yes"; then
13518 { echo "$as_me:$LINENO: result: yes" >&5
13519 echo "${ECHO_T}yes" >&6; }
13521 { echo "$as_me:$LINENO: result: no" >&5
13522 echo "${ECHO_T}no" >&6; }
13527 if test "${HAVE_XPM}" = "yes"; then
13529 cat >>confdefs.h <<\_ACEOF
13536 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13538 if test "${HAVE_X11}" = "yes"; then
13539 if test "${with_jpeg}" != "no"; then
13540 if test "${ac_cv_header_jerror_h+set}" = set; then
13541 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13542 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13543 if test "${ac_cv_header_jerror_h+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13547 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13549 # Is the header compilable?
13550 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13551 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13552 cat >conftest.$ac_ext <<_ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 $ac_includes_default
13559 #include <jerror.h>
13561 rm -f conftest.$ac_objext
13562 if { (ac_try="$ac_compile"
13563 case "(($ac_try" in
13564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13565 *) ac_try_echo=$ac_try;;
13567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13568 (eval "$ac_compile") 2>conftest.er1
13570 grep -v '^
*+' conftest.er1 >conftest.err
13572 cat conftest.err >&5
13573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13574 (exit $ac_status); } && {
13575 test -z "$ac_c_werror_flag" ||
13576 test ! -s conftest.err
13577 } && test -s conftest.$ac_objext; then
13578 ac_header_compiler=yes
13580 echo "$as_me: failed program was:" >&5
13581 sed 's
/^
/|
/' conftest.$ac_ext >&5
13583 ac_header_compiler=no
13586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13588 echo "${ECHO_T}$ac_header_compiler" >&6; }
13590 # Is the header present?
13591 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13592 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13593 cat >conftest.$ac_ext <<_ACEOF
13596 cat confdefs.h >>conftest.$ac_ext
13597 cat >>conftest.$ac_ext <<_ACEOF
13598 /* end confdefs.h. */
13599 #include <jerror.h>
13601 if { (ac_try="$ac_cpp conftest.$ac_ext"
13602 case "(($ac_try" in
13603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13604 *) ac_try_echo=$ac_try;;
13606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13609 grep -v '^
*+' conftest.er1 >conftest.err
13611 cat conftest.err >&5
13612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13613 (exit $ac_status); } >/dev/null && {
13614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13615 test ! -s conftest.err
13617 ac_header_preproc=yes
13619 echo "$as_me: failed program was:" >&5
13620 sed 's
/^
/|
/' conftest.$ac_ext >&5
13622 ac_header_preproc=no
13625 rm -f conftest.err conftest.$ac_ext
13626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13627 echo "${ECHO_T}$ac_header_preproc" >&6; }
13629 # So? What about this header?
13630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13632 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13633 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13634 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13635 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13636 ac_header_preproc=yes
13639 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13640 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13641 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13642 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13643 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13644 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13646 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13648 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13650 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13654 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13655 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13656 if test "${ac_cv_header_jerror_h+set}" = set; then
13657 echo $ECHO_N "(cached) $ECHO_C" >&6
13659 ac_cv_header_jerror_h=$ac_header_preproc
13661 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13662 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13665 if test $ac_cv_header_jerror_h = yes; then
13666 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13667 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13668 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13669 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 ac_check_lib_save_LIBS=$LIBS
13672 LIBS="-ljpeg $LIBS"
13673 cat >conftest.$ac_ext <<_ACEOF
13676 cat confdefs.h >>conftest.$ac_ext
13677 cat >>conftest.$ac_ext <<_ACEOF
13678 /* end confdefs.h. */
13680 /* Override any GCC internal prototype to avoid an error.
13681 Use char because int might match the return type of a GCC
13682 builtin and then its argument prototype would still apply. */
13686 char jpeg_destroy_compress ();
13690 return jpeg_destroy_compress ();
13695 rm -f conftest.$ac_objext conftest$ac_exeext
13696 if { (ac_try="$ac_link"
13697 case "(($ac_try" in
13698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13699 *) ac_try_echo=$ac_try;;
13701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13702 (eval "$ac_link") 2>conftest.er1
13704 grep -v '^
*+' conftest.er1 >conftest.err
13706 cat conftest.err >&5
13707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13708 (exit $ac_status); } && {
13709 test -z "$ac_c_werror_flag" ||
13710 test ! -s conftest.err
13711 } && test -s conftest$ac_exeext &&
13712 $as_test_x conftest$ac_exeext; then
13713 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13715 echo "$as_me: failed program was:" >&5
13716 sed 's
/^
/|
/' conftest.$ac_ext >&5
13718 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13722 conftest$ac_exeext conftest.$ac_ext
13723 LIBS=$ac_check_lib_save_LIBS
13725 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13726 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13727 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13737 if test "${HAVE_JPEG}" = "yes"; then
13738 cat >>confdefs.h <<\_ACEOF
13739 #define HAVE_JPEG 1
13742 cat >conftest.$ac_ext <<_ACEOF
13745 cat confdefs.h >>conftest.$ac_ext
13746 cat >>conftest.$ac_ext <<_ACEOF
13747 /* end confdefs.h. */
13748 #include <jpeglib.h>
13749 version=JPEG_LIB_VERSION
13752 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13753 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13754 cat >>confdefs.h <<\_ACEOF
13755 #define HAVE_JPEG 1
13759 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13760 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13768 ### Use -lpng if available, unless `--with-png=no'.
13770 if test "${HAVE_X11}" = "yes"; then
13771 if test "${with_png}" != "no"; then
13772 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13773 # in /usr/include/libpng.
13776 for ac_header
in png.h libpng
/png.h
13778 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13779 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13780 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13781 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13782 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13785 ac_res
=`eval echo '${'$as_ac_Header'}'`
13786 { echo "$as_me:$LINENO: result: $ac_res" >&5
13787 echo "${ECHO_T}$ac_res" >&6; }
13789 # Is the header compilable?
13790 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13791 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13792 cat >conftest.
$ac_ext <<_ACEOF
13795 cat confdefs.h
>>conftest.
$ac_ext
13796 cat >>conftest.
$ac_ext <<_ACEOF
13797 /* end confdefs.h. */
13798 $ac_includes_default
13799 #include <$ac_header>
13801 rm -f conftest.
$ac_objext
13802 if { (ac_try
="$ac_compile"
13803 case "(($ac_try" in
13804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_compile") 2>conftest.er1
13810 grep -v '^ *+' conftest.er1 >conftest.err
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } && {
13815 test -z "$ac_c_werror_flag" ||
13816 test ! -s conftest.err
13817 } && test -s conftest.$ac_objext; then
13818 ac_header_compiler=yes
13820 echo "$as_me: failed program was:" >&5
13821 sed 's/^/| /' conftest.$ac_ext >&5
13823 ac_header_compiler=no
13826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13827 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13828 echo "${ECHO_T}$ac_header_compiler" >&6; }
13830 # Is the header present?
13831 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13832 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13833 cat >conftest.$ac_ext <<_ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13839 #include <$ac_header>
13841 if { (ac_try="$ac_cpp conftest.$ac_ext"
13842 case "(($ac_try" in
13843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13844 *) ac_try_echo
=$ac_try;;
13846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13849 grep -v '^ *+' conftest.er1
>conftest.err
13851 cat conftest.err
>&5
13852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13853 (exit $ac_status); } >/dev
/null
&& {
13854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13855 test ! -s conftest.err
13857 ac_header_preproc
=yes
13859 echo "$as_me: failed program was:" >&5
13860 sed 's/^/| /' conftest.
$ac_ext >&5
13862 ac_header_preproc
=no
13865 rm -f conftest.err conftest.
$ac_ext
13866 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13867 echo "${ECHO_T}$ac_header_preproc" >&6; }
13869 # So? What about this header?
13870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13872 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13873 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13874 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13875 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13876 ac_header_preproc
=yes
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13880 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13882 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13884 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13886 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13888 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13889 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13890 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13894 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13895 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13896 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13897 echo $ECHO_N "(cached) $ECHO_C" >&6
13899 eval "$as_ac_Header=\$ac_header_preproc"
13901 ac_res
=`eval echo '${'$as_ac_Header'}'`
13902 { echo "$as_me:$LINENO: result: $ac_res" >&5
13903 echo "${ECHO_T}$ac_res" >&6; }
13906 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13907 cat >>confdefs.h
<<_ACEOF
13908 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13915 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13916 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13917 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13918 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13919 echo $ECHO_N "(cached) $ECHO_C" >&6
13921 ac_check_lib_save_LIBS
=$LIBS
13922 LIBS
="-lpng -lz -lm $LIBS"
13923 cat >conftest.
$ac_ext <<_ACEOF
13926 cat confdefs.h
>>conftest.
$ac_ext
13927 cat >>conftest.
$ac_ext <<_ACEOF
13928 /* end confdefs.h. */
13930 /* Override any GCC internal prototype to avoid an error.
13931 Use char because int might match the return type of a GCC
13932 builtin and then its argument prototype would still apply. */
13936 char png_get_channels ();
13940 return png_get_channels ();
13945 rm -f conftest.
$ac_objext conftest
$ac_exeext
13946 if { (ac_try
="$ac_link"
13947 case "(($ac_try" in
13948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13949 *) ac_try_echo=$ac_try;;
13951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13952 (eval "$ac_link") 2>conftest.er1
13954 grep -v '^ *+' conftest.er1 >conftest.err
13956 cat conftest.err >&5
13957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13958 (exit $ac_status); } && {
13959 test -z "$ac_c_werror_flag" ||
13960 test ! -s conftest.err
13961 } && test -s conftest$ac_exeext &&
13962 $as_test_x conftest$ac_exeext; then
13963 ac_cv_lib_png_png_get_channels=yes
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13968 ac_cv_lib_png_png_get_channels=no
13971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13972 conftest$ac_exeext conftest.$ac_ext
13973 LIBS=$ac_check_lib_save_LIBS
13975 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13976 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13977 if test $ac_cv_lib_png_png_get_channels = yes; then
13984 if test "${HAVE_PNG}" = "yes"; then
13986 cat >>confdefs.h <<\_ACEOF
13993 ### Use -ltiff if available, unless `--with-tiff=no
'.
13995 if test "${HAVE_X11}" = "yes"; then
13996 if test "${with_tiff}" != "no"; then
13997 if test "${ac_cv_header_tiffio_h+set}" = set; then
13998 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13999 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14000 if test "${ac_cv_header_tiffio_h+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14004 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14006 # Is the header compilable?
14007 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14008 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14009 cat >conftest.$ac_ext <<_ACEOF
14012 cat confdefs.h >>conftest.$ac_ext
14013 cat >>conftest.$ac_ext <<_ACEOF
14014 /* end confdefs.h. */
14015 $ac_includes_default
14016 #include <tiffio.h>
14018 rm -f conftest.$ac_objext
14019 if { (ac_try="$ac_compile"
14020 case "(($ac_try" in
14021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14022 *) ac_try_echo=$ac_try;;
14024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14025 (eval "$ac_compile") 2>conftest.er1
14027 grep -v '^
*+' conftest.er1 >conftest.err
14029 cat conftest.err >&5
14030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14031 (exit $ac_status); } && {
14032 test -z "$ac_c_werror_flag" ||
14033 test ! -s conftest.err
14034 } && test -s conftest.$ac_objext; then
14035 ac_header_compiler=yes
14037 echo "$as_me: failed program was:" >&5
14038 sed 's
/^
/|
/' conftest.$ac_ext >&5
14040 ac_header_compiler=no
14043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14045 echo "${ECHO_T}$ac_header_compiler" >&6; }
14047 # Is the header present?
14048 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14049 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14050 cat >conftest.$ac_ext <<_ACEOF
14053 cat confdefs.h >>conftest.$ac_ext
14054 cat >>conftest.$ac_ext <<_ACEOF
14055 /* end confdefs.h. */
14056 #include <tiffio.h>
14058 if { (ac_try="$ac_cpp conftest.$ac_ext"
14059 case "(($ac_try" in
14060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14061 *) ac_try_echo=$ac_try;;
14063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14066 grep -v '^
*+' conftest.er1 >conftest.err
14068 cat conftest.err >&5
14069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14070 (exit $ac_status); } >/dev/null && {
14071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14072 test ! -s conftest.err
14074 ac_header_preproc=yes
14076 echo "$as_me: failed program was:" >&5
14077 sed 's
/^
/|
/' conftest.$ac_ext >&5
14079 ac_header_preproc=no
14082 rm -f conftest.err conftest.$ac_ext
14083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14084 echo "${ECHO_T}$ac_header_preproc" >&6; }
14086 # So? What about this header?
14087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14089 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14090 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14091 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14092 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14093 ac_header_preproc=yes
14096 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14097 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14099 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14101 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14103 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14105 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14107 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14111 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14112 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14113 if test "${ac_cv_header_tiffio_h+set}" = set; then
14114 echo $ECHO_N "(cached) $ECHO_C" >&6
14116 ac_cv_header_tiffio_h=$ac_header_preproc
14118 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14119 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14122 if test $ac_cv_header_tiffio_h = yes; then
14124 # At least one tiff package requires the jpeg library.
14125 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14126 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14127 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14128 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14129 echo $ECHO_N "(cached) $ECHO_C" >&6
14131 ac_check_lib_save_LIBS=$LIBS
14132 LIBS="-ltiff $tifflibs $LIBS"
14133 cat >conftest.$ac_ext <<_ACEOF
14136 cat confdefs.h >>conftest.$ac_ext
14137 cat >>conftest.$ac_ext <<_ACEOF
14138 /* end confdefs.h. */
14140 /* Override any GCC internal prototype to avoid an error.
14141 Use char because int might match the return type of a GCC
14142 builtin and then its argument prototype would still apply. */
14146 char TIFFGetVersion ();
14150 return TIFFGetVersion ();
14155 rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (ac_try="$ac_link"
14157 case "(($ac_try" in
14158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159 *) ac_try_echo=$ac_try;;
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162 (eval "$ac_link") 2>conftest.er1
14164 grep -v '^
*+' conftest.er1 >conftest.err
14166 cat conftest.err >&5
14167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168 (exit $ac_status); } && {
14169 test -z "$ac_c_werror_flag" ||
14170 test ! -s conftest.err
14171 } && test -s conftest$ac_exeext &&
14172 $as_test_x conftest$ac_exeext; then
14173 ac_cv_lib_tiff_TIFFGetVersion=yes
14175 echo "$as_me: failed program was:" >&5
14176 sed 's
/^
/|
/' conftest.$ac_ext >&5
14178 ac_cv_lib_tiff_TIFFGetVersion=no
14181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14182 conftest$ac_exeext conftest.$ac_ext
14183 LIBS=$ac_check_lib_save_LIBS
14185 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14186 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14187 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14196 if test "${HAVE_TIFF}" = "yes"; then
14198 cat >>confdefs.h <<\_ACEOF
14199 #define HAVE_TIFF 1
14205 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14207 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14208 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14209 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14210 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14211 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14212 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14215 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14217 # Is the header compilable?
14218 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14219 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14220 cat >conftest.
$ac_ext <<_ACEOF
14223 cat confdefs.h
>>conftest.
$ac_ext
14224 cat >>conftest.
$ac_ext <<_ACEOF
14225 /* end confdefs.h. */
14226 $ac_includes_default
14227 #include <gif_lib.h>
14229 rm -f conftest.
$ac_objext
14230 if { (ac_try
="$ac_compile"
14231 case "(($ac_try" in
14232 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14233 *) ac_try_echo=$ac_try;;
14235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14236 (eval "$ac_compile") 2>conftest.er1
14238 grep -v '^ *+' conftest.er1 >conftest.err
14240 cat conftest.err >&5
14241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14242 (exit $ac_status); } && {
14243 test -z "$ac_c_werror_flag" ||
14244 test ! -s conftest.err
14245 } && test -s conftest.$ac_objext; then
14246 ac_header_compiler=yes
14248 echo "$as_me: failed program was:" >&5
14249 sed 's/^/| /' conftest.$ac_ext >&5
14251 ac_header_compiler=no
14254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14255 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14256 echo "${ECHO_T}$ac_header_compiler" >&6; }
14258 # Is the header present?
14259 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14260 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14261 cat >conftest.$ac_ext <<_ACEOF
14264 cat confdefs.h >>conftest.$ac_ext
14265 cat >>conftest.$ac_ext <<_ACEOF
14266 /* end confdefs.h. */
14267 #include <gif_lib.h>
14269 if { (ac_try="$ac_cpp conftest.$ac_ext"
14270 case "(($ac_try" in
14271 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14272 *) ac_try_echo
=$ac_try;;
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14277 grep -v '^ *+' conftest.er1
>conftest.err
14279 cat conftest.err
>&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } >/dev
/null
&& {
14282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14283 test ! -s conftest.err
14285 ac_header_preproc
=yes
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.
$ac_ext >&5
14290 ac_header_preproc
=no
14293 rm -f conftest.err conftest.
$ac_ext
14294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14295 echo "${ECHO_T}$ac_header_preproc" >&6; }
14297 # So? What about this header?
14298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14300 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14301 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14302 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14303 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14304 ac_header_preproc
=yes
14307 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14308 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14309 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14310 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14311 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14312 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14314 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14316 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14318 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14322 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14323 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14324 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14325 echo $ECHO_N "(cached) $ECHO_C" >&6
14327 ac_cv_header_gif_lib_h
=$ac_header_preproc
14329 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14330 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14333 if test $ac_cv_header_gif_lib_h = yes; then
14334 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14335 # Earlier versions can crash Emacs.
14336 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14337 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14338 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14339 echo $ECHO_N "(cached) $ECHO_C" >&6
14341 ac_check_lib_save_LIBS
=$LIBS
14343 cat >conftest.
$ac_ext <<_ACEOF
14346 cat confdefs.h
>>conftest.
$ac_ext
14347 cat >>conftest.
$ac_ext <<_ACEOF
14348 /* end confdefs.h. */
14350 /* Override any GCC internal prototype to avoid an error.
14351 Use char because int might match the return type of a GCC
14352 builtin and then its argument prototype would still apply. */
14356 char EGifPutExtensionLast ();
14360 return EGifPutExtensionLast ();
14365 rm -f conftest.
$ac_objext conftest
$ac_exeext
14366 if { (ac_try
="$ac_link"
14367 case "(($ac_try" in
14368 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14369 *) ac_try_echo=$ac_try;;
14371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14372 (eval "$ac_link") 2>conftest.er1
14374 grep -v '^ *+' conftest.er1 >conftest.err
14376 cat conftest.err >&5
14377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14378 (exit $ac_status); } && {
14379 test -z "$ac_c_werror_flag" ||
14380 test ! -s conftest.err
14381 } && test -s conftest$ac_exeext &&
14382 $as_test_x conftest$ac_exeext; then
14383 ac_cv_lib_gif_EGifPutExtensionLast=yes
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14388 ac_cv_lib_gif_EGifPutExtensionLast=no
14391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14392 conftest$ac_exeext conftest.$ac_ext
14393 LIBS=$ac_check_lib_save_LIBS
14395 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14396 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14397 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14407 if test "$HAVE_GIF" = yes; then
14408 ac_gif_lib_name="-lgif"
14411 # If gif_lib.h but no libgif, try libungif.
14412 if test x"$try_libungif" = xyes; then
14413 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14414 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14415 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14416 echo $ECHO_N "(cached) $ECHO_C" >&6
14418 ac_check_lib_save_LIBS=$LIBS
14419 LIBS="-lungif $LIBS"
14420 cat >conftest.$ac_ext <<_ACEOF
14423 cat confdefs.h >>conftest.$ac_ext
14424 cat >>conftest.$ac_ext <<_ACEOF
14425 /* end confdefs.h. */
14427 /* Override any GCC internal prototype to avoid an error.
14428 Use char because int might match the return type of a GCC
14429 builtin and then its argument prototype would still apply. */
14433 char EGifPutExtensionLast ();
14437 return EGifPutExtensionLast ();
14442 rm -f conftest.$ac_objext conftest$ac_exeext
14443 if { (ac_try="$ac_link"
14444 case "(($ac_try" in
14445 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14446 *) ac_try_echo
=$ac_try;;
14448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14449 (eval "$ac_link") 2>conftest.er1
14451 grep -v '^ *+' conftest.er1
>conftest.err
14453 cat conftest.err
>&5
14454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14455 (exit $ac_status); } && {
14456 test -z "$ac_c_werror_flag" ||
14457 test ! -s conftest.err
14458 } && test -s conftest
$ac_exeext &&
14459 $as_test_x conftest
$ac_exeext; then
14460 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.
$ac_ext >&5
14465 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14468 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14469 conftest
$ac_exeext conftest.
$ac_ext
14470 LIBS
=$ac_check_lib_save_LIBS
14472 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14473 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14474 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14479 if test "$HAVE_GIF" = yes; then
14481 cat >>confdefs.h
<<\_ACEOF
14482 #define LIBGIF -lungif
14485 ac_gif_lib_name
="-lungif"
14489 if test "${HAVE_GIF}" = "yes"; then
14491 cat >>confdefs.h
<<\_ACEOF
14498 if test "${HAVE_X11}" = "yes"; then
14501 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14502 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14503 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14504 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14505 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14506 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14507 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14508 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14509 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14510 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14512 if test "X${MISSING}" != X
; then
14513 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14515 Maybe some development libraries/packages are missing?
14516 If you don't want to link with them give
14518 as options to configure" >&5
14519 echo "$as_me: error: The following required libraries were not found:
14521 Maybe some development libraries/packages are missing?
14522 If you don't want to link with them give
14524 as options to configure" >&2;}
14525 { (exit 1); exit 1; }; }
14529 ### Use -lgpm if available, unless `--with-gpm=no'.
14531 if test "${with_gpm}" != "no"; then
14532 if test "${ac_cv_header_gpm_h+set}" = set; then
14533 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14534 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14535 if test "${ac_cv_header_gpm_h+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14539 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14541 # Is the header compilable?
14542 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14543 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14544 cat >conftest.
$ac_ext <<_ACEOF
14547 cat confdefs.h
>>conftest.
$ac_ext
14548 cat >>conftest.
$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14550 $ac_includes_default
14553 rm -f conftest.
$ac_objext
14554 if { (ac_try
="$ac_compile"
14555 case "(($ac_try" in
14556 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14557 *) ac_try_echo=$ac_try;;
14559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14560 (eval "$ac_compile") 2>conftest.er1
14562 grep -v '^ *+' conftest.er1 >conftest.err
14564 cat conftest.err >&5
14565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14566 (exit $ac_status); } && {
14567 test -z "$ac_c_werror_flag" ||
14568 test ! -s conftest.err
14569 } && test -s conftest.$ac_objext; then
14570 ac_header_compiler=yes
14572 echo "$as_me: failed program was:" >&5
14573 sed 's/^/| /' conftest.$ac_ext >&5
14575 ac_header_compiler=no
14578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14580 echo "${ECHO_T}$ac_header_compiler" >&6; }
14582 # Is the header present?
14583 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14584 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14585 cat >conftest.$ac_ext <<_ACEOF
14588 cat confdefs.h >>conftest.$ac_ext
14589 cat >>conftest.$ac_ext <<_ACEOF
14590 /* end confdefs.h. */
14593 if { (ac_try="$ac_cpp conftest.$ac_ext"
14594 case "(($ac_try" in
14595 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14596 *) ac_try_echo
=$ac_try;;
14598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14601 grep -v '^ *+' conftest.er1
>conftest.err
14603 cat conftest.err
>&5
14604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605 (exit $ac_status); } >/dev
/null
&& {
14606 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14607 test ! -s conftest.err
14609 ac_header_preproc
=yes
14611 echo "$as_me: failed program was:" >&5
14612 sed 's/^/| /' conftest.
$ac_ext >&5
14614 ac_header_preproc
=no
14617 rm -f conftest.err conftest.
$ac_ext
14618 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14619 echo "${ECHO_T}$ac_header_preproc" >&6; }
14621 # So? What about this header?
14622 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14624 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14625 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14626 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14627 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14628 ac_header_preproc
=yes
14631 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14632 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14634 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14636 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14638 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14640 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14641 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14642 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14646 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14647 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14648 if test "${ac_cv_header_gpm_h+set}" = set; then
14649 echo $ECHO_N "(cached) $ECHO_C" >&6
14651 ac_cv_header_gpm_h
=$ac_header_preproc
14653 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14654 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14657 if test $ac_cv_header_gpm_h = yes; then
14658 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14659 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14660 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14661 echo $ECHO_N "(cached) $ECHO_C" >&6
14663 ac_check_lib_save_LIBS
=$LIBS
14665 cat >conftest.
$ac_ext <<_ACEOF
14668 cat confdefs.h
>>conftest.
$ac_ext
14669 cat >>conftest.
$ac_ext <<_ACEOF
14670 /* end confdefs.h. */
14672 /* Override any GCC internal prototype to avoid an error.
14673 Use char because int might match the return type of a GCC
14674 builtin and then its argument prototype would still apply. */
14682 return Gpm_Open ();
14687 rm -f conftest.
$ac_objext conftest
$ac_exeext
14688 if { (ac_try
="$ac_link"
14689 case "(($ac_try" in
14690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14691 *) ac_try_echo=$ac_try;;
14693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14694 (eval "$ac_link") 2>conftest.er1
14696 grep -v '^ *+' conftest.er1 >conftest.err
14698 cat conftest.err >&5
14699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14700 (exit $ac_status); } && {
14701 test -z "$ac_c_werror_flag" ||
14702 test ! -s conftest.err
14703 } && test -s conftest$ac_exeext &&
14704 $as_test_x conftest$ac_exeext; then
14705 ac_cv_lib_gpm_Gpm_Open=yes
14707 echo "$as_me: failed program was:" >&5
14708 sed 's/^/| /' conftest.$ac_ext >&5
14710 ac_cv_lib_gpm_Gpm_Open=no
14713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14714 conftest$ac_exeext conftest.$ac_ext
14715 LIBS=$ac_check_lib_save_LIBS
14717 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14718 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14719 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14728 if test "${HAVE_GPM}" = "yes"; then
14730 cat >>confdefs.h <<\_ACEOF
14736 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14737 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14738 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14739 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14740 echo $ECHO_N "(cached) $ECHO_C" >&6
14742 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14743 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14745 # Is the header compilable?
14746 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14747 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14748 cat >conftest.$ac_ext <<_ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h. */
14754 $ac_includes_default
14755 #include <malloc/malloc.h>
14757 rm -f conftest.$ac_objext
14758 if { (ac_try="$ac_compile"
14759 case "(($ac_try" in
14760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14761 *) ac_try_echo
=$ac_try;;
14763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14764 (eval "$ac_compile") 2>conftest.er1
14766 grep -v '^ *+' conftest.er1
>conftest.err
14768 cat conftest.err
>&5
14769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14770 (exit $ac_status); } && {
14771 test -z "$ac_c_werror_flag" ||
14772 test ! -s conftest.err
14773 } && test -s conftest.
$ac_objext; then
14774 ac_header_compiler
=yes
14776 echo "$as_me: failed program was:" >&5
14777 sed 's/^/| /' conftest.
$ac_ext >&5
14779 ac_header_compiler
=no
14782 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14784 echo "${ECHO_T}$ac_header_compiler" >&6; }
14786 # Is the header present?
14787 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14788 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14789 cat >conftest.
$ac_ext <<_ACEOF
14792 cat confdefs.h
>>conftest.
$ac_ext
14793 cat >>conftest.
$ac_ext <<_ACEOF
14794 /* end confdefs.h. */
14795 #include <malloc/malloc.h>
14797 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14798 case "(($ac_try" in
14799 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14800 *) ac_try_echo=$ac_try;;
14802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14805 grep -v '^ *+' conftest.er1 >conftest.err
14807 cat conftest.err >&5
14808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14809 (exit $ac_status); } >/dev/null && {
14810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14811 test ! -s conftest.err
14813 ac_header_preproc=yes
14815 echo "$as_me: failed program was:" >&5
14816 sed 's/^/| /' conftest.$ac_ext >&5
14818 ac_header_preproc=no
14821 rm -f conftest.err conftest.$ac_ext
14822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14823 echo "${ECHO_T}$ac_header_preproc" >&6; }
14825 # So? What about this header?
14826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14828 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14829 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14830 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14831 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14832 ac_header_preproc=yes
14835 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14836 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14838 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14840 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14842 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14844 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14846 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14850 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14851 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14852 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14853 echo $ECHO_N "(cached) $ECHO_C" >&6
14855 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14857 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14858 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14861 if test $ac_cv_header_malloc_malloc_h = yes; then
14863 cat >>confdefs.h <<\_ACEOF
14864 #define HAVE_MALLOC_MALLOC_H 1
14871 ### Use NeXTstep API to implement GUI.
14872 if test "${HAVE_NS}" = "yes"; then
14874 cat >>confdefs.h <<\_ACEOF
14878 if test "${NS_IMPL_COCOA}" = "yes"; then
14880 cat >>confdefs.h <<\_ACEOF
14881 #define NS_IMPL_COCOA 1
14885 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14887 cat >>confdefs.h <<\_ACEOF
14888 #define COCOA_EXPERIMENTAL_CTRL_G 1
14892 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14894 cat >>confdefs.h <<\_ACEOF
14895 #define NS_IMPL_GNUSTEP 1
14899 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
14901 cat >>confdefs.h <<\_ACEOF
14902 #define NS_HAVE_NSINTEGER 1
14906 # We also have mouse menus.
14911 ### Use session management (-lSM -lICE) if available
14913 if test "${HAVE_X11}" = "yes"; then
14914 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14915 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14916 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14917 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14918 echo $ECHO_N "(cached) $ECHO_C" >&6
14920 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14921 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14923 # Is the header compilable?
14924 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14925 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14926 cat >conftest.$ac_ext <<_ACEOF
14929 cat confdefs.h >>conftest.$ac_ext
14930 cat >>conftest.$ac_ext <<_ACEOF
14931 /* end confdefs.h. */
14932 $ac_includes_default
14933 #include <X11/SM/SMlib.h>
14935 rm -f conftest.$ac_objext
14936 if { (ac_try="$ac_compile"
14937 case "(($ac_try" in
14938 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14939 *) ac_try_echo
=$ac_try;;
14941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14942 (eval "$ac_compile") 2>conftest.er1
14944 grep -v '^ *+' conftest.er1
>conftest.err
14946 cat conftest.err
>&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); } && {
14949 test -z "$ac_c_werror_flag" ||
14950 test ! -s conftest.err
14951 } && test -s conftest.
$ac_objext; then
14952 ac_header_compiler
=yes
14954 echo "$as_me: failed program was:" >&5
14955 sed 's/^/| /' conftest.
$ac_ext >&5
14957 ac_header_compiler
=no
14960 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14962 echo "${ECHO_T}$ac_header_compiler" >&6; }
14964 # Is the header present?
14965 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14966 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14967 cat >conftest.
$ac_ext <<_ACEOF
14970 cat confdefs.h
>>conftest.
$ac_ext
14971 cat >>conftest.
$ac_ext <<_ACEOF
14972 /* end confdefs.h. */
14973 #include <X11/SM/SMlib.h>
14975 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14976 case "(($ac_try" in
14977 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14978 *) ac_try_echo=$ac_try;;
14980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14983 grep -v '^ *+' conftest.er1 >conftest.err
14985 cat conftest.err >&5
14986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14987 (exit $ac_status); } >/dev/null && {
14988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14989 test ! -s conftest.err
14991 ac_header_preproc=yes
14993 echo "$as_me: failed program was:" >&5
14994 sed 's/^/| /' conftest.$ac_ext >&5
14996 ac_header_preproc=no
14999 rm -f conftest.err conftest.$ac_ext
15000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15001 echo "${ECHO_T}$ac_header_preproc" >&6; }
15003 # So? What about this header?
15004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15006 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15007 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15008 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15009 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15010 ac_header_preproc=yes
15013 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15014 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15015 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15016 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15017 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15018 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15019 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15020 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15021 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15022 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15023 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15024 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15028 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15029 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15030 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15031 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15035 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15036 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15039 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15040 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15041 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15042 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15043 echo $ECHO_N "(cached) $ECHO_C" >&6
15045 ac_check_lib_save_LIBS=$LIBS
15046 LIBS="-lSM -lICE $LIBS"
15047 cat >conftest.$ac_ext <<_ACEOF
15050 cat confdefs.h >>conftest.$ac_ext
15051 cat >>conftest.$ac_ext <<_ACEOF
15052 /* end confdefs.h. */
15054 /* Override any GCC internal prototype to avoid an error.
15055 Use char because int might match the return type of a GCC
15056 builtin and then its argument prototype would still apply. */
15060 char SmcOpenConnection ();
15064 return SmcOpenConnection ();
15069 rm -f conftest.$ac_objext conftest$ac_exeext
15070 if { (ac_try="$ac_link"
15071 case "(($ac_try" in
15072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15073 *) ac_try_echo
=$ac_try;;
15075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15076 (eval "$ac_link") 2>conftest.er1
15078 grep -v '^ *+' conftest.er1
>conftest.err
15080 cat conftest.err
>&5
15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15082 (exit $ac_status); } && {
15083 test -z "$ac_c_werror_flag" ||
15084 test ! -s conftest.err
15085 } && test -s conftest
$ac_exeext &&
15086 $as_test_x conftest
$ac_exeext; then
15087 ac_cv_lib_SM_SmcOpenConnection
=yes
15089 echo "$as_me: failed program was:" >&5
15090 sed 's/^/| /' conftest.
$ac_ext >&5
15092 ac_cv_lib_SM_SmcOpenConnection
=no
15095 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15096 conftest
$ac_exeext conftest.
$ac_ext
15097 LIBS
=$ac_check_lib_save_LIBS
15099 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15100 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15101 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15109 if test "${HAVE_X_SM}" = "yes"; then
15111 cat >>confdefs.h
<<\_ACEOF
15112 #define HAVE_X_SM 1
15117 *) LIBS
="-lSM -lICE $LIBS" ;;
15122 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15123 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15124 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15125 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15126 echo $ECHO_N "(cached) $ECHO_C" >&6
15128 cat >conftest.
$ac_ext <<_ACEOF
15131 cat confdefs.h
>>conftest.
$ac_ext
15132 cat >>conftest.
$ac_ext <<_ACEOF
15133 /* end confdefs.h. */
15143 rm -f conftest.
$ac_objext conftest
$ac_exeext
15144 if { (ac_try
="$ac_link"
15145 case "(($ac_try" in
15146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_link") 2>conftest.er1
15152 grep -v '^ *+' conftest.er1 >conftest.err
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } && {
15157 test -z "$ac_c_werror_flag" ||
15158 test ! -s conftest.err
15159 } && test -s conftest$ac_exeext &&
15160 $as_test_x conftest$ac_exeext; then
15161 emacs_cv_netdb_declares_h_errno=yes
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15166 emacs_cv_netdb_declares_h_errno=no
15169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15170 conftest$ac_exeext conftest.$ac_ext
15172 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15173 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15174 if test $emacs_cv_netdb_declares_h_errno = yes; then
15176 cat >>confdefs.h <<\_ACEOF
15177 #define HAVE_H_ERRNO 1
15182 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15183 # for constant arguments. Useless!
15184 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15185 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15186 if test "${ac_cv_working_alloca_h+set}" = set; then
15187 echo $ECHO_N "(cached) $ECHO_C" >&6
15189 cat >conftest.$ac_ext <<_ACEOF
15192 cat confdefs.h >>conftest.$ac_ext
15193 cat >>conftest.$ac_ext <<_ACEOF
15194 /* end confdefs.h. */
15195 #include <alloca.h>
15199 char *p = (char *) alloca (2 * sizeof (int));
15205 rm -f conftest.$ac_objext conftest$ac_exeext
15206 if { (ac_try="$ac_link"
15207 case "(($ac_try" in
15208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15209 *) ac_try_echo
=$ac_try;;
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_link") 2>conftest.er1
15214 grep -v '^ *+' conftest.er1
>conftest.err
15216 cat conftest.err
>&5
15217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15218 (exit $ac_status); } && {
15219 test -z "$ac_c_werror_flag" ||
15220 test ! -s conftest.err
15221 } && test -s conftest
$ac_exeext &&
15222 $as_test_x conftest
$ac_exeext; then
15223 ac_cv_working_alloca_h
=yes
15225 echo "$as_me: failed program was:" >&5
15226 sed 's/^/| /' conftest.
$ac_ext >&5
15228 ac_cv_working_alloca_h
=no
15231 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15232 conftest
$ac_exeext conftest.
$ac_ext
15234 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15235 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15236 if test $ac_cv_working_alloca_h = yes; then
15238 cat >>confdefs.h
<<\_ACEOF
15239 #define HAVE_ALLOCA_H 1
15244 { echo "$as_me:$LINENO: checking for alloca" >&5
15245 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15246 if test "${ac_cv_func_alloca_works+set}" = set; then
15247 echo $ECHO_N "(cached) $ECHO_C" >&6
15249 cat >conftest.
$ac_ext <<_ACEOF
15252 cat confdefs.h
>>conftest.
$ac_ext
15253 cat >>conftest.
$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15256 # define alloca __builtin_alloca
15259 # include <malloc.h>
15260 # define alloca _alloca
15262 # ifdef HAVE_ALLOCA_H
15263 # include <alloca.h>
15268 # ifndef alloca /* predefined by HP cc +Olibcalls */
15279 char *p = (char *) alloca (1);
15285 rm -f conftest.
$ac_objext conftest
$ac_exeext
15286 if { (ac_try
="$ac_link"
15287 case "(($ac_try" in
15288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15289 *) ac_try_echo=$ac_try;;
15291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15292 (eval "$ac_link") 2>conftest.er1
15294 grep -v '^ *+' conftest.er1 >conftest.err
15296 cat conftest.err >&5
15297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15298 (exit $ac_status); } && {
15299 test -z "$ac_c_werror_flag" ||
15300 test ! -s conftest.err
15301 } && test -s conftest$ac_exeext &&
15302 $as_test_x conftest$ac_exeext; then
15303 ac_cv_func_alloca_works=yes
15305 echo "$as_me: failed program was:" >&5
15306 sed 's/^/| /' conftest.$ac_ext >&5
15308 ac_cv_func_alloca_works=no
15311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15312 conftest$ac_exeext conftest.$ac_ext
15314 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15315 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15317 if test $ac_cv_func_alloca_works = yes; then
15319 cat >>confdefs.h <<\_ACEOF
15320 #define HAVE_ALLOCA 1
15324 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15325 # that cause trouble. Some versions do not even contain alloca or
15326 # contain a buggy version. If you still want to use their alloca,
15327 # use ar to extract alloca.o from them instead of compiling alloca.c.
15329 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15331 cat >>confdefs.h <<\_ACEOF
15336 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15337 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15338 if test "${ac_cv_os_cray+set}" = set; then
15339 echo $ECHO_N "(cached
) $ECHO_C" >&6
15341 cat >conftest.$ac_ext <<_ACEOF
15344 cat confdefs.h >>conftest.$ac_ext
15345 cat >>conftest.$ac_ext <<_ACEOF
15346 /* end confdefs.h. */
15347 #if defined CRAY && ! defined CRAY2
15354 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15355 $EGREP "webecray
" >/dev/null 2>&1; then
15363 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15364 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15365 if test $ac_cv_os_cray = yes; then
15366 for ac_func in _getb67 GETB67 getb67; do
15367 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15368 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15369 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15370 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15371 echo $ECHO_N "(cached
) $ECHO_C" >&6
15373 cat >conftest.$ac_ext <<_ACEOF
15376 cat confdefs.h >>conftest.$ac_ext
15377 cat >>conftest.$ac_ext <<_ACEOF
15378 /* end confdefs.h. */
15379 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15380 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15381 #define $ac_func innocuous_$ac_func
15383 /* System header to define __stub macros and hopefully few prototypes,
15384 which can conflict with char $ac_func (); below.
15385 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15386 <limits.h> exists even on freestanding compilers. */
15389 # include <limits.h>
15391 # include <assert.h>
15396 /* Override any GCC internal prototype to avoid an error.
15397 Use char because int might match the return type of a GCC
15398 builtin and then its argument prototype would still apply. */
15403 /* The GNU C library defines this for functions which it implements
15404 to always fail with ENOSYS. Some functions are actually named
15405 something starting with __ and the normal name is an alias. */
15406 #if defined __stub_$ac_func || defined __stub___$ac_func
15413 return $ac_func ();
15418 rm -f conftest.$ac_objext conftest$ac_exeext
15419 if { (ac_try="$ac_link"
15420 case "(($ac_try" in
15421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15422 *) ac_try_echo=$ac_try;;
15424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15425 (eval "$ac_link") 2>conftest.er1
15427 grep -v '^ *+' conftest.er1 >conftest.err
15429 cat conftest.err >&5
15430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15431 (exit $ac_status); } && {
15432 test -z "$ac_c_werror_flag" ||
15433 test ! -s conftest.err
15434 } && test -s conftest$ac_exeext &&
15435 $as_test_x conftest$ac_exeext; then
15436 eval "$as_ac_var=yes"
15438 echo "$as_me: failed program was
:" >&5
15439 sed 's/^/| /' conftest.$ac_ext >&5
15441 eval "$as_ac_var=no
"
15444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15445 conftest$ac_exeext conftest.$ac_ext
15447 ac_res=`eval echo '${'$as_ac_var'}'`
15448 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15449 echo "${ECHO_T}$ac_res" >&6; }
15450 if test `eval echo '${'$as_ac_var'}'` = yes; then
15452 cat >>confdefs.h <<_ACEOF
15453 #define CRAY_STACKSEG_END $ac_func
15462 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15463 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15464 if test "${ac_cv_c_stack_direction+set}" = set; then
15465 echo $ECHO_N "(cached
) $ECHO_C" >&6
15467 if test "$cross_compiling" = yes; then
15468 ac_cv_c_stack_direction=0
15470 cat >conftest.$ac_ext <<_ACEOF
15473 cat confdefs.h >>conftest.$ac_ext
15474 cat >>conftest.$ac_ext <<_ACEOF
15475 /* end confdefs.h. */
15476 $ac_includes_default
15478 find_stack_direction ()
15480 static char *addr = 0;
15485 return find_stack_direction ();
15488 return (&dummy > addr) ? 1 : -1;
15494 return find_stack_direction () < 0;
15497 rm -f conftest$ac_exeext
15498 if { (ac_try="$ac_link"
15499 case "(($ac_try" in
15500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15501 *) ac_try_echo=$ac_try;;
15503 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15504 (eval "$ac_link") 2>&5
15506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15507 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15508 { (case "(($ac_try" in
15509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510 *) ac_try_echo=$ac_try;;
15512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15513 (eval "$ac_try") 2>&5
15515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15516 (exit $ac_status); }; }; then
15517 ac_cv_c_stack_direction=1
15519 echo "$as_me: program exited with status
$ac_status" >&5
15520 echo "$as_me: failed program was
:" >&5
15521 sed 's/^/| /' conftest.$ac_ext >&5
15523 ( exit $ac_status )
15524 ac_cv_c_stack_direction=-1
15526 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15531 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15532 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15534 cat >>confdefs.h <<_ACEOF
15535 #define STACK_DIRECTION $ac_cv_c_stack_direction
15542 if test x"$ac_cv_func_alloca_works" != xyes; then
15543 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15544 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15545 { (exit 1); exit 1; }; }
15548 # fmod, logb, and frexp are found in -lm on most systems.
15549 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15551 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15552 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15553 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15554 echo $ECHO_N "(cached
) $ECHO_C" >&6
15556 ac_check_lib_save_LIBS=$LIBS
15558 cat >conftest.$ac_ext <<_ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h. */
15565 /* Override any GCC internal prototype to avoid an error.
15566 Use char because int might match the return type of a GCC
15567 builtin and then its argument prototype would still apply. */
15580 rm -f conftest.$ac_objext conftest$ac_exeext
15581 if { (ac_try="$ac_link"
15582 case "(($ac_try" in
15583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15584 *) ac_try_echo=$ac_try;;
15586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15587 (eval "$ac_link") 2>conftest.er1
15589 grep -v '^ *+' conftest.er1 >conftest.err
15591 cat conftest.err >&5
15592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15593 (exit $ac_status); } && {
15594 test -z "$ac_c_werror_flag" ||
15595 test ! -s conftest.err
15596 } && test -s conftest$ac_exeext &&
15597 $as_test_x conftest$ac_exeext; then
15598 ac_cv_lib_m_sqrt=yes
15600 echo "$as_me: failed program was
:" >&5
15601 sed 's/^/| /' conftest.$ac_ext >&5
15603 ac_cv_lib_m_sqrt=no
15606 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15607 conftest$ac_exeext conftest.$ac_ext
15608 LIBS=$ac_check_lib_save_LIBS
15610 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15611 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15612 if test $ac_cv_lib_m_sqrt = yes; then
15613 cat >>confdefs.h <<_ACEOF
15614 #define HAVE_LIBM 1
15622 # Check for mail-locking functions in a "mail" library. Probably this should
15623 # have the same check as for liblockfile below.
15625 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15626 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15627 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15628 echo $ECHO_N "(cached
) $ECHO_C" >&6
15630 ac_check_lib_save_LIBS=$LIBS
15631 LIBS="-lmail $LIBS"
15632 cat >conftest.$ac_ext <<_ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15639 /* Override any GCC internal prototype to avoid an error.
15640 Use char because int might match the return type of a GCC
15641 builtin and then its argument prototype would still apply. */
15649 return maillock ();
15654 rm -f conftest.$ac_objext conftest$ac_exeext
15655 if { (ac_try="$ac_link"
15656 case "(($ac_try" in
15657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15658 *) ac_try_echo=$ac_try;;
15660 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15661 (eval "$ac_link") 2>conftest.er1
15663 grep -v '^ *+' conftest.er1 >conftest.err
15665 cat conftest.err >&5
15666 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15667 (exit $ac_status); } && {
15668 test -z "$ac_c_werror_flag" ||
15669 test ! -s conftest.err
15670 } && test -s conftest$ac_exeext &&
15671 $as_test_x conftest$ac_exeext; then
15672 ac_cv_lib_mail_maillock=yes
15674 echo "$as_me: failed program was
:" >&5
15675 sed 's/^/| /' conftest.$ac_ext >&5
15677 ac_cv_lib_mail_maillock=no
15680 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15681 conftest$ac_exeext conftest.$ac_ext
15682 LIBS=$ac_check_lib_save_LIBS
15684 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15685 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15686 if test $ac_cv_lib_mail_maillock = yes; then
15687 cat >>confdefs.h <<_ACEOF
15688 #define HAVE_LIBMAIL 1
15691 LIBS="-lmail $LIBS"
15696 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15697 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15698 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15699 echo $ECHO_N "(cached
) $ECHO_C" >&6
15701 ac_check_lib_save_LIBS=$LIBS
15702 LIBS="-llockfile $LIBS"
15703 cat >conftest.$ac_ext <<_ACEOF
15706 cat confdefs.h >>conftest.$ac_ext
15707 cat >>conftest.$ac_ext <<_ACEOF
15708 /* end confdefs.h. */
15710 /* Override any GCC internal prototype to avoid an error.
15711 Use char because int might match the return type of a GCC
15712 builtin and then its argument prototype would still apply. */
15720 return maillock ();
15725 rm -f conftest.$ac_objext conftest$ac_exeext
15726 if { (ac_try="$ac_link"
15727 case "(($ac_try" in
15728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15729 *) ac_try_echo=$ac_try;;
15731 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15732 (eval "$ac_link") 2>conftest.er1
15734 grep -v '^ *+' conftest.er1 >conftest.err
15736 cat conftest.err >&5
15737 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15738 (exit $ac_status); } && {
15739 test -z "$ac_c_werror_flag" ||
15740 test ! -s conftest.err
15741 } && test -s conftest$ac_exeext &&
15742 $as_test_x conftest$ac_exeext; then
15743 ac_cv_lib_lockfile_maillock=yes
15745 echo "$as_me: failed program was
:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15748 ac_cv_lib_lockfile_maillock=no
15751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15752 conftest$ac_exeext conftest.$ac_ext
15753 LIBS=$ac_check_lib_save_LIBS
15755 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15756 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15757 if test $ac_cv_lib_lockfile_maillock = yes; then
15758 cat >>confdefs.h <<_ACEOF
15759 #define HAVE_LIBLOCKFILE 1
15762 LIBS="-llockfile $LIBS"
15766 # If we have the shared liblockfile, assume we must use it for mail
15767 # locking (e.g. Debian). If we couldn't link against liblockfile
15768 # (no liblockfile.a installed), ensure that we don't need to.
15769 if test "$ac_cv_lib_lockfile_maillock" = no; then
15770 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15771 set dummy liblockfile.so; ac_word=$2
15772 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15773 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15774 if test "${ac_cv_prog_liblockfile+set}" = set; then
15775 echo $ECHO_N "(cached
) $ECHO_C" >&6
15777 if test -n "$liblockfile"; then
15778 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15781 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15782 for as_dir in $as_dummy
15785 test -z "$as_dir" && as_dir=.
15786 for ac_exec_ext in '' $ac_executable_extensions; do
15787 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15788 ac_cv_prog_liblockfile="yes"
15789 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15796 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15799 liblockfile=$ac_cv_prog_liblockfile
15800 if test -n "$liblockfile"; then
15801 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15802 echo "${ECHO_T}$liblockfile" >&6; }
15804 { echo "$as_me:$LINENO: result
: no
" >&5
15805 echo "${ECHO_T}no
" >&6; }
15809 if test $ac_cv_prog_liblockfile = yes; then
15810 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15811 This probably means that movemail could lose mail.
15812 There may be a \`development' package to
install containing liblockfile.
" >&5
15813 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15814 This probably means that movemail could lose mail.
15815 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15816 { (exit 1); exit 1; }; }
15821 for ac_func in touchlock
15823 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15824 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15825 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15826 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15827 echo $ECHO_N "(cached
) $ECHO_C" >&6
15829 cat >conftest.$ac_ext <<_ACEOF
15832 cat confdefs.h >>conftest.$ac_ext
15833 cat >>conftest.$ac_ext <<_ACEOF
15834 /* end confdefs.h. */
15835 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15836 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15837 #define $ac_func innocuous_$ac_func
15839 /* System header to define __stub macros and hopefully few prototypes,
15840 which can conflict with char $ac_func (); below.
15841 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15842 <limits.h> exists even on freestanding compilers. */
15845 # include <limits.h>
15847 # include <assert.h>
15852 /* Override any GCC internal prototype to avoid an error.
15853 Use char because int might match the return type of a GCC
15854 builtin and then its argument prototype would still apply. */
15859 /* The GNU C library defines this for functions which it implements
15860 to always fail with ENOSYS. Some functions are actually named
15861 something starting with __ and the normal name is an alias. */
15862 #if defined __stub_$ac_func || defined __stub___$ac_func
15869 return $ac_func ();
15874 rm -f conftest.$ac_objext conftest$ac_exeext
15875 if { (ac_try="$ac_link"
15876 case "(($ac_try" in
15877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15878 *) ac_try_echo=$ac_try;;
15880 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15881 (eval "$ac_link") 2>conftest.er1
15883 grep -v '^ *+' conftest.er1 >conftest.err
15885 cat conftest.err >&5
15886 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15887 (exit $ac_status); } && {
15888 test -z "$ac_c_werror_flag" ||
15889 test ! -s conftest.err
15890 } && test -s conftest$ac_exeext &&
15891 $as_test_x conftest$ac_exeext; then
15892 eval "$as_ac_var=yes"
15894 echo "$as_me: failed program was
:" >&5
15895 sed 's/^/| /' conftest.$ac_ext >&5
15897 eval "$as_ac_var=no
"
15900 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15901 conftest$ac_exeext conftest.$ac_ext
15903 ac_res=`eval echo '${'$as_ac_var'}'`
15904 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15905 echo "${ECHO_T}$ac_res" >&6; }
15906 if test `eval echo '${'$as_ac_var'}'` = yes; then
15907 cat >>confdefs.h <<_ACEOF
15908 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15915 for ac_header in maillock.h
15917 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15918 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15919 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15920 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15921 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15922 echo $ECHO_N "(cached
) $ECHO_C" >&6
15924 ac_res=`eval echo '${'$as_ac_Header'}'`
15925 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15926 echo "${ECHO_T}$ac_res" >&6; }
15928 # Is the header compilable?
15929 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15930 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15931 cat >conftest.$ac_ext <<_ACEOF
15934 cat confdefs.h >>conftest.$ac_ext
15935 cat >>conftest.$ac_ext <<_ACEOF
15936 /* end confdefs.h. */
15937 $ac_includes_default
15938 #include <$ac_header>
15940 rm -f conftest.$ac_objext
15941 if { (ac_try="$ac_compile"
15942 case "(($ac_try" in
15943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15944 *) ac_try_echo=$ac_try;;
15946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15947 (eval "$ac_compile") 2>conftest.er1
15949 grep -v '^ *+' conftest.er1 >conftest.err
15951 cat conftest.err >&5
15952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15953 (exit $ac_status); } && {
15954 test -z "$ac_c_werror_flag" ||
15955 test ! -s conftest.err
15956 } && test -s conftest.$ac_objext; then
15957 ac_header_compiler=yes
15959 echo "$as_me: failed program was
:" >&5
15960 sed 's/^/| /' conftest.$ac_ext >&5
15962 ac_header_compiler=no
15965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15966 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15967 echo "${ECHO_T}$ac_header_compiler" >&6; }
15969 # Is the header present?
15970 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15971 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15972 cat >conftest.$ac_ext <<_ACEOF
15975 cat confdefs.h >>conftest.$ac_ext
15976 cat >>conftest.$ac_ext <<_ACEOF
15977 /* end confdefs.h. */
15978 #include <$ac_header>
15980 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15981 case "(($ac_try" in
15982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15983 *) ac_try_echo=$ac_try;;
15985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15986 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15988 grep -v '^ *+' conftest.er1 >conftest.err
15990 cat conftest.err >&5
15991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15992 (exit $ac_status); } >/dev/null && {
15993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15994 test ! -s conftest.err
15996 ac_header_preproc=yes
15998 echo "$as_me: failed program was
:" >&5
15999 sed 's/^/| /' conftest.$ac_ext >&5
16001 ac_header_preproc=no
16004 rm -f conftest.err conftest.$ac_ext
16005 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16006 echo "${ECHO_T}$ac_header_preproc" >&6; }
16008 # So? What about this header?
16009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16011 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16012 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16013 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16015 ac_header_preproc=yes
16018 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16019 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16020 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16021 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16022 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16023 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16024 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16025 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16026 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16028 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16029 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16033 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16034 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16035 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16036 echo $ECHO_N "(cached
) $ECHO_C" >&6
16038 eval "$as_ac_Header=\
$ac_header_preproc"
16040 ac_res=`eval echo '${'$as_ac_Header'}'`
16041 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16042 echo "${ECHO_T}$ac_res" >&6; }
16045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16046 cat >>confdefs.h <<_ACEOF
16047 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16126 for ac_func in gethostname getdomainname dup2 \
16127 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16128 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16129 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16130 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16131 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16132 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16133 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16134 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16135 cfmakeraw cfsetspeed
16137 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16138 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16139 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16140 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16141 echo $ECHO_N "(cached
) $ECHO_C" >&6
16143 cat >conftest.$ac_ext <<_ACEOF
16146 cat confdefs.h >>conftest.$ac_ext
16147 cat >>conftest.$ac_ext <<_ACEOF
16148 /* end confdefs.h. */
16149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16151 #define $ac_func innocuous_$ac_func
16153 /* System header to define __stub macros and hopefully few prototypes,
16154 which can conflict with char $ac_func (); below.
16155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16156 <limits.h> exists even on freestanding compilers. */
16159 # include <limits.h>
16161 # include <assert.h>
16166 /* Override any GCC internal prototype to avoid an error.
16167 Use char because int might match the return type of a GCC
16168 builtin and then its argument prototype would still apply. */
16173 /* The GNU C library defines this for functions which it implements
16174 to always fail with ENOSYS. Some functions are actually named
16175 something starting with __ and the normal name is an alias. */
16176 #if defined __stub_$ac_func || defined __stub___$ac_func
16183 return $ac_func ();
16188 rm -f conftest.$ac_objext conftest$ac_exeext
16189 if { (ac_try="$ac_link"
16190 case "(($ac_try" in
16191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16192 *) ac_try_echo=$ac_try;;
16194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16195 (eval "$ac_link") 2>conftest.er1
16197 grep -v '^ *+' conftest.er1 >conftest.err
16199 cat conftest.err >&5
16200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16201 (exit $ac_status); } && {
16202 test -z "$ac_c_werror_flag" ||
16203 test ! -s conftest.err
16204 } && test -s conftest$ac_exeext &&
16205 $as_test_x conftest$ac_exeext; then
16206 eval "$as_ac_var=yes"
16208 echo "$as_me: failed program was
:" >&5
16209 sed 's/^/| /' conftest.$ac_ext >&5
16211 eval "$as_ac_var=no
"
16214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16215 conftest$ac_exeext conftest.$ac_ext
16217 ac_res=`eval echo '${'$as_ac_var'}'`
16218 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16219 echo "${ECHO_T}$ac_res" >&6; }
16220 if test `eval echo '${'$as_ac_var'}'` = yes; then
16221 cat >>confdefs.h <<_ACEOF
16222 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16230 for ac_header in sys/un.h
16232 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16233 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16234 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16235 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16236 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16237 echo $ECHO_N "(cached
) $ECHO_C" >&6
16239 ac_res=`eval echo '${'$as_ac_Header'}'`
16240 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16241 echo "${ECHO_T}$ac_res" >&6; }
16243 # Is the header compilable?
16244 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16245 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16246 cat >conftest.$ac_ext <<_ACEOF
16249 cat confdefs.h >>conftest.$ac_ext
16250 cat >>conftest.$ac_ext <<_ACEOF
16251 /* end confdefs.h. */
16252 $ac_includes_default
16253 #include <$ac_header>
16255 rm -f conftest.$ac_objext
16256 if { (ac_try="$ac_compile"
16257 case "(($ac_try" in
16258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16259 *) ac_try_echo=$ac_try;;
16261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16262 (eval "$ac_compile") 2>conftest.er1
16264 grep -v '^ *+' conftest.er1 >conftest.err
16266 cat conftest.err >&5
16267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16268 (exit $ac_status); } && {
16269 test -z "$ac_c_werror_flag" ||
16270 test ! -s conftest.err
16271 } && test -s conftest.$ac_objext; then
16272 ac_header_compiler=yes
16274 echo "$as_me: failed program was
:" >&5
16275 sed 's/^/| /' conftest.$ac_ext >&5
16277 ac_header_compiler=no
16280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16281 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16282 echo "${ECHO_T}$ac_header_compiler" >&6; }
16284 # Is the header present?
16285 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16286 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16287 cat >conftest.$ac_ext <<_ACEOF
16290 cat confdefs.h >>conftest.$ac_ext
16291 cat >>conftest.$ac_ext <<_ACEOF
16292 /* end confdefs.h. */
16293 #include <$ac_header>
16295 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16296 case "(($ac_try" in
16297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16298 *) ac_try_echo=$ac_try;;
16300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16301 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16303 grep -v '^ *+' conftest.er1 >conftest.err
16305 cat conftest.err >&5
16306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16307 (exit $ac_status); } >/dev/null && {
16308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16309 test ! -s conftest.err
16311 ac_header_preproc=yes
16313 echo "$as_me: failed program was
:" >&5
16314 sed 's/^/| /' conftest.$ac_ext >&5
16316 ac_header_preproc=no
16319 rm -f conftest.err conftest.$ac_ext
16320 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16321 echo "${ECHO_T}$ac_header_preproc" >&6; }
16323 # So? What about this header?
16324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16326 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16327 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16328 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16329 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16330 ac_header_preproc=yes
16333 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16334 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16335 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16336 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16337 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16338 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16339 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16340 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16341 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16342 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16343 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16344 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16348 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16349 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16350 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16351 echo $ECHO_N "(cached
) $ECHO_C" >&6
16353 eval "$as_ac_Header=\
$ac_header_preproc"
16355 ac_res=`eval echo '${'$as_ac_Header'}'`
16356 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16357 echo "${ECHO_T}$ac_res" >&6; }
16360 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16361 cat >>confdefs.h <<_ACEOF
16362 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16374 for ac_header in $ac_header_list
16376 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16377 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16378 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16379 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16380 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16381 echo $ECHO_N "(cached
) $ECHO_C" >&6
16383 ac_res=`eval echo '${'$as_ac_Header'}'`
16384 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16385 echo "${ECHO_T}$ac_res" >&6; }
16387 # Is the header compilable?
16388 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16389 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16390 cat >conftest.$ac_ext <<_ACEOF
16393 cat confdefs.h >>conftest.$ac_ext
16394 cat >>conftest.$ac_ext <<_ACEOF
16395 /* end confdefs.h. */
16396 $ac_includes_default
16397 #include <$ac_header>
16399 rm -f conftest.$ac_objext
16400 if { (ac_try="$ac_compile"
16401 case "(($ac_try" in
16402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16403 *) ac_try_echo=$ac_try;;
16405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16406 (eval "$ac_compile") 2>conftest.er1
16408 grep -v '^ *+' conftest.er1 >conftest.err
16410 cat conftest.err >&5
16411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16412 (exit $ac_status); } && {
16413 test -z "$ac_c_werror_flag" ||
16414 test ! -s conftest.err
16415 } && test -s conftest.$ac_objext; then
16416 ac_header_compiler=yes
16418 echo "$as_me: failed program was
:" >&5
16419 sed 's/^/| /' conftest.$ac_ext >&5
16421 ac_header_compiler=no
16424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16425 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16426 echo "${ECHO_T}$ac_header_compiler" >&6; }
16428 # Is the header present?
16429 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16430 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16431 cat >conftest.$ac_ext <<_ACEOF
16434 cat confdefs.h >>conftest.$ac_ext
16435 cat >>conftest.$ac_ext <<_ACEOF
16436 /* end confdefs.h. */
16437 #include <$ac_header>
16439 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16440 case "(($ac_try" in
16441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16442 *) ac_try_echo=$ac_try;;
16444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16445 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16447 grep -v '^ *+' conftest.er1 >conftest.err
16449 cat conftest.err >&5
16450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16451 (exit $ac_status); } >/dev/null && {
16452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16453 test ! -s conftest.err
16455 ac_header_preproc=yes
16457 echo "$as_me: failed program was
:" >&5
16458 sed 's/^/| /' conftest.$ac_ext >&5
16460 ac_header_preproc=no
16463 rm -f conftest.err conftest.$ac_ext
16464 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16465 echo "${ECHO_T}$ac_header_preproc" >&6; }
16467 # So? What about this header?
16468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16470 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16471 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16472 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16473 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16474 ac_header_preproc=yes
16477 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16478 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16479 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16480 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16481 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16482 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16483 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16484 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16485 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16486 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16487 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16488 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16492 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16493 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16494 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16495 echo $ECHO_N "(cached
) $ECHO_C" >&6
16497 eval "$as_ac_Header=\
$ac_header_preproc"
16499 ac_res=`eval echo '${'$as_ac_Header'}'`
16500 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16501 echo "${ECHO_T}$ac_res" >&6; }
16504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16505 cat >>confdefs.h <<_ACEOF
16506 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16521 for ac_func in $ac_func_list
16523 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16524 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16525 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16526 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16527 echo $ECHO_N "(cached
) $ECHO_C" >&6
16529 cat >conftest.$ac_ext <<_ACEOF
16532 cat confdefs.h >>conftest.$ac_ext
16533 cat >>conftest.$ac_ext <<_ACEOF
16534 /* end confdefs.h. */
16535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16537 #define $ac_func innocuous_$ac_func
16539 /* System header to define __stub macros and hopefully few prototypes,
16540 which can conflict with char $ac_func (); below.
16541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16542 <limits.h> exists even on freestanding compilers. */
16545 # include <limits.h>
16547 # include <assert.h>
16552 /* Override any GCC internal prototype to avoid an error.
16553 Use char because int might match the return type of a GCC
16554 builtin and then its argument prototype would still apply. */
16559 /* The GNU C library defines this for functions which it implements
16560 to always fail with ENOSYS. Some functions are actually named
16561 something starting with __ and the normal name is an alias. */
16562 #if defined __stub_$ac_func || defined __stub___$ac_func
16569 return $ac_func ();
16574 rm -f conftest.$ac_objext conftest$ac_exeext
16575 if { (ac_try="$ac_link"
16576 case "(($ac_try" in
16577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16578 *) ac_try_echo=$ac_try;;
16580 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16581 (eval "$ac_link") 2>conftest.er1
16583 grep -v '^ *+' conftest.er1 >conftest.err
16585 cat conftest.err >&5
16586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16587 (exit $ac_status); } && {
16588 test -z "$ac_c_werror_flag" ||
16589 test ! -s conftest.err
16590 } && test -s conftest$ac_exeext &&
16591 $as_test_x conftest$ac_exeext; then
16592 eval "$as_ac_var=yes"
16594 echo "$as_me: failed program was
:" >&5
16595 sed 's/^/| /' conftest.$ac_ext >&5
16597 eval "$as_ac_var=no
"
16600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16601 conftest$ac_exeext conftest.$ac_ext
16603 ac_res=`eval echo '${'$as_ac_var'}'`
16604 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16605 echo "${ECHO_T}$ac_res" >&6; }
16606 if test `eval echo '${'$as_ac_var'}'` = yes; then
16607 cat >>confdefs.h <<_ACEOF
16608 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16630 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16631 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16632 if test "${ac_cv_func_working_mktime+set}" = set; then
16633 echo $ECHO_N "(cached
) $ECHO_C" >&6
16635 if test "$cross_compiling" = yes; then
16636 ac_cv_func_working_mktime=no
16638 cat >conftest.$ac_ext <<_ACEOF
16641 cat confdefs.h >>conftest.$ac_ext
16642 cat >>conftest.$ac_ext <<_ACEOF
16643 /* end confdefs.h. */
16644 /* Test program from Paul Eggert and Tony Leneis. */
16645 #ifdef TIME_WITH_SYS_TIME
16646 # include <sys/time.h>
16649 # ifdef HAVE_SYS_TIME_H
16650 # include <sys/time.h>
16656 #include <limits.h>
16657 #include <stdlib.h>
16659 #ifdef HAVE_UNISTD_H
16660 # include <unistd.h>
16664 # define alarm(X) /* empty */
16667 /* Work around redefinition to rpl_putenv by other config tests. */
16670 static time_t time_t_max;
16671 static time_t time_t_min;
16673 /* Values we'll use to set the TZ environment variable. */
16674 static char *tz_strings[] = {
16675 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16676 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16678 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16680 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16681 Based on a problem report from Andreas Jaeger. */
16683 spring_forward_gap ()
16685 /* glibc (up to about 1998-10-07) failed this test. */
16688 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16689 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16690 on systems that don't support the Olson extension, or don't have the
16691 full zoneinfo tables installed. */
16692 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16701 return mktime (&tm) != (time_t) -1;
16709 return ! (lt = localtime (&now)) || mktime (lt) == now;
16716 return (mktime_test1 (now)
16717 && mktime_test1 ((time_t) (time_t_max - now))
16718 && mktime_test1 ((time_t) (time_t_min + now)));
16724 /* Based on code from Ariel Faigon. */
16734 return tm.tm_mon == 2 && tm.tm_mday == 31;
16743 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16744 now = mktime (&tm);
16745 if (now != (time_t) -1)
16747 struct tm *lt = localtime (&now);
16749 && lt->tm_year == tm.tm_year
16750 && lt->tm_mon == tm.tm_mon
16751 && lt->tm_mday == tm.tm_mday
16752 && lt->tm_hour == tm.tm_hour
16753 && lt->tm_min == tm.tm_min
16754 && lt->tm_sec == tm.tm_sec
16755 && lt->tm_yday == tm.tm_yday
16756 && lt->tm_wday == tm.tm_wday
16757 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16758 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16767 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16768 ignoring leap seconds. */
16769 unsigned long int answer = 2527315200UL;
16773 tm.tm_year = 2050 - 1900;
16776 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16779 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16780 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16781 on systems that don't support the Olson extension, or don't have the
16782 full zoneinfo tables installed. */
16783 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16787 /* Check that the result is either a failure, or close enough
16788 to the correct answer that we can assume the discrepancy is
16789 due to leap seconds. */
16790 return (t == (time_t) -1
16791 || (0 < t && answer - 120 <= t && t <= answer + 120));
16800 /* This test makes some buggy mktime implementations loop.
16801 Give up after 60 seconds; a mktime slower than that
16802 isn't worth using anyway. */
16807 t = (time_t_max << 1) + 1;
16808 if (t <= time_t_max)
16812 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16814 delta = time_t_max / 997; /* a suitable prime number */
16815 for (i = 0; i < N_STRINGS; i++)
16818 putenv (tz_strings[i]);
16820 for (t = 0; t <= time_t_max - delta; t += delta)
16821 if (! mktime_test (t))
16823 if (! (mktime_test ((time_t) 1)
16824 && mktime_test ((time_t) (60 * 60))
16825 && mktime_test ((time_t) (60 * 60 * 24))))
16828 for (j = 1; ; j <<= 1)
16829 if (! bigtime_test (j))
16831 else if (INT_MAX / 2 < j)
16833 if (! bigtime_test (INT_MAX))
16836 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16839 rm -f conftest$ac_exeext
16840 if { (ac_try="$ac_link"
16841 case "(($ac_try" in
16842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16843 *) ac_try_echo=$ac_try;;
16845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16846 (eval "$ac_link") 2>&5
16848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16849 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16850 { (case "(($ac_try" in
16851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16852 *) ac_try_echo=$ac_try;;
16854 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16855 (eval "$ac_try") 2>&5
16857 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16858 (exit $ac_status); }; }; then
16859 ac_cv_func_working_mktime=yes
16861 echo "$as_me: program exited with status
$ac_status" >&5
16862 echo "$as_me: failed program was
:" >&5
16863 sed 's/^/| /' conftest.$ac_ext >&5
16865 ( exit $ac_status )
16866 ac_cv_func_working_mktime=no
16868 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16873 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16874 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16875 if test $ac_cv_func_working_mktime = no; then
16876 case " $LIBOBJS " in
16877 *" mktime.
$ac_objext "* ) ;;
16878 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16884 if test "$ac_cv_func_working_mktime" = no; then
16886 cat >>confdefs.h <<\_ACEOF
16887 #define BROKEN_MKTIME 1
16892 ac_have_func=no # yes means we've found a way to get the load average.
16894 # Make sure getloadavg.c is where it belongs, at configure-time.
16895 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16896 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16897 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16898 { (exit 1); exit 1; }; }
16902 # Check for getloadavg, but be sure not to touch the cache variable.
16903 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16904 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16905 if test "${ac_cv_func_getloadavg+set}" = set; then
16906 echo $ECHO_N "(cached
) $ECHO_C" >&6
16908 cat >conftest.$ac_ext <<_ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16914 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16916 #define getloadavg innocuous_getloadavg
16918 /* System header to define __stub macros and hopefully few prototypes,
16919 which can conflict with char getloadavg (); below.
16920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16921 <limits.h> exists even on freestanding compilers. */
16924 # include <limits.h>
16926 # include <assert.h>
16931 /* Override any GCC internal prototype to avoid an error.
16932 Use char because int might match the return type of a GCC
16933 builtin and then its argument prototype would still apply. */
16937 char getloadavg ();
16938 /* The GNU C library defines this for functions which it implements
16939 to always fail with ENOSYS. Some functions are actually named
16940 something starting with __ and the normal name is an alias. */
16941 #if defined __stub_getloadavg || defined __stub___getloadavg
16948 return getloadavg ();
16953 rm -f conftest.$ac_objext conftest$ac_exeext
16954 if { (ac_try="$ac_link"
16955 case "(($ac_try" in
16956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16957 *) ac_try_echo=$ac_try;;
16959 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16960 (eval "$ac_link") 2>conftest.er1
16962 grep -v '^ *+' conftest.er1 >conftest.err
16964 cat conftest.err >&5
16965 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16966 (exit $ac_status); } && {
16967 test -z "$ac_c_werror_flag" ||
16968 test ! -s conftest.err
16969 } && test -s conftest$ac_exeext &&
16970 $as_test_x conftest$ac_exeext; then
16971 ac_cv_func_getloadavg=yes
16973 echo "$as_me: failed program was
:" >&5
16974 sed 's/^/| /' conftest.$ac_ext >&5
16976 ac_cv_func_getloadavg=no
16979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16980 conftest$ac_exeext conftest.$ac_ext
16982 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16983 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16984 if test $ac_cv_func_getloadavg = yes; then
16989 ) && ac_have_func=yes
16991 # On HPUX9, an unprivileged user can get load averages through this function.
16993 for ac_func in pstat_getdynamic
16995 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16996 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16997 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16998 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16999 echo $ECHO_N "(cached
) $ECHO_C" >&6
17001 cat >conftest.$ac_ext <<_ACEOF
17004 cat confdefs.h >>conftest.$ac_ext
17005 cat >>conftest.$ac_ext <<_ACEOF
17006 /* end confdefs.h. */
17007 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17008 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17009 #define $ac_func innocuous_$ac_func
17011 /* System header to define __stub macros and hopefully few prototypes,
17012 which can conflict with char $ac_func (); below.
17013 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17014 <limits.h> exists even on freestanding compilers. */
17017 # include <limits.h>
17019 # include <assert.h>
17024 /* Override any GCC internal prototype to avoid an error.
17025 Use char because int might match the return type of a GCC
17026 builtin and then its argument prototype would still apply. */
17031 /* The GNU C library defines this for functions which it implements
17032 to always fail with ENOSYS. Some functions are actually named
17033 something starting with __ and the normal name is an alias. */
17034 #if defined __stub_$ac_func || defined __stub___$ac_func
17041 return $ac_func ();
17046 rm -f conftest.$ac_objext conftest$ac_exeext
17047 if { (ac_try="$ac_link"
17048 case "(($ac_try" in
17049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17050 *) ac_try_echo=$ac_try;;
17052 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17053 (eval "$ac_link") 2>conftest.er1
17055 grep -v '^ *+' conftest.er1 >conftest.err
17057 cat conftest.err >&5
17058 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17059 (exit $ac_status); } && {
17060 test -z "$ac_c_werror_flag" ||
17061 test ! -s conftest.err
17062 } && test -s conftest$ac_exeext &&
17063 $as_test_x conftest$ac_exeext; then
17064 eval "$as_ac_var=yes"
17066 echo "$as_me: failed program was
:" >&5
17067 sed 's/^/| /' conftest.$ac_ext >&5
17069 eval "$as_ac_var=no
"
17072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17073 conftest$ac_exeext conftest.$ac_ext
17075 ac_res=`eval echo '${'$as_ac_var'}'`
17076 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17077 echo "${ECHO_T}$ac_res" >&6; }
17078 if test `eval echo '${'$as_ac_var'}'` = yes; then
17079 cat >>confdefs.h <<_ACEOF
17080 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17087 # Solaris has libkstat which does not require root.
17089 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17090 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17091 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17092 echo $ECHO_N "(cached
) $ECHO_C" >&6
17094 ac_check_lib_save_LIBS=$LIBS
17095 LIBS="-lkstat $LIBS"
17096 cat >conftest.$ac_ext <<_ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17103 /* Override any GCC internal prototype to avoid an error.
17104 Use char because int might match the return type of a GCC
17105 builtin and then its argument prototype would still apply. */
17109 char kstat_open ();
17113 return kstat_open ();
17118 rm -f conftest.$ac_objext conftest$ac_exeext
17119 if { (ac_try="$ac_link"
17120 case "(($ac_try" in
17121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17122 *) ac_try_echo=$ac_try;;
17124 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17125 (eval "$ac_link") 2>conftest.er1
17127 grep -v '^ *+' conftest.er1 >conftest.err
17129 cat conftest.err >&5
17130 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17131 (exit $ac_status); } && {
17132 test -z "$ac_c_werror_flag" ||
17133 test ! -s conftest.err
17134 } && test -s conftest$ac_exeext &&
17135 $as_test_x conftest$ac_exeext; then
17136 ac_cv_lib_kstat_kstat_open=yes
17138 echo "$as_me: failed program was
:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17141 ac_cv_lib_kstat_kstat_open=no
17144 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17145 conftest$ac_exeext conftest.$ac_ext
17146 LIBS=$ac_check_lib_save_LIBS
17148 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17149 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17150 if test $ac_cv_lib_kstat_kstat_open = yes; then
17151 cat >>confdefs.h <<_ACEOF
17152 #define HAVE_LIBKSTAT 1
17155 LIBS="-lkstat $LIBS"
17159 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17161 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17162 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17163 # to get the right answer into the cache.
17164 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17165 if test $ac_have_func = no; then
17166 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17167 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17168 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17169 echo $ECHO_N "(cached
) $ECHO_C" >&6
17171 ac_check_lib_save_LIBS=$LIBS
17173 cat >conftest.$ac_ext <<_ACEOF
17176 cat confdefs.h >>conftest.$ac_ext
17177 cat >>conftest.$ac_ext <<_ACEOF
17178 /* end confdefs.h. */
17180 /* Override any GCC internal prototype to avoid an error.
17181 Use char because int might match the return type of a GCC
17182 builtin and then its argument prototype would still apply. */
17190 return elf_begin ();
17195 rm -f conftest.$ac_objext conftest$ac_exeext
17196 if { (ac_try="$ac_link"
17197 case "(($ac_try" in
17198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17199 *) ac_try_echo=$ac_try;;
17201 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17202 (eval "$ac_link") 2>conftest.er1
17204 grep -v '^ *+' conftest.er1 >conftest.err
17206 cat conftest.err >&5
17207 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17208 (exit $ac_status); } && {
17209 test -z "$ac_c_werror_flag" ||
17210 test ! -s conftest.err
17211 } && test -s conftest$ac_exeext &&
17212 $as_test_x conftest$ac_exeext; then
17213 ac_cv_lib_elf_elf_begin=yes
17215 echo "$as_me: failed program was
:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17218 ac_cv_lib_elf_elf_begin=no
17221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17222 conftest$ac_exeext conftest.$ac_ext
17223 LIBS=$ac_check_lib_save_LIBS
17225 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17226 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17227 if test $ac_cv_lib_elf_elf_begin = yes; then
17232 if test $ac_have_func = no; then
17233 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17234 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17235 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17236 echo $ECHO_N "(cached
) $ECHO_C" >&6
17238 ac_check_lib_save_LIBS=$LIBS
17240 cat >conftest.$ac_ext <<_ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17247 /* Override any GCC internal prototype to avoid an error.
17248 Use char because int might match the return type of a GCC
17249 builtin and then its argument prototype would still apply. */
17257 return kvm_open ();
17262 rm -f conftest.$ac_objext conftest$ac_exeext
17263 if { (ac_try="$ac_link"
17264 case "(($ac_try" in
17265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17266 *) ac_try_echo=$ac_try;;
17268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17269 (eval "$ac_link") 2>conftest.er1
17271 grep -v '^ *+' conftest.er1 >conftest.err
17273 cat conftest.err >&5
17274 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17275 (exit $ac_status); } && {
17276 test -z "$ac_c_werror_flag" ||
17277 test ! -s conftest.err
17278 } && test -s conftest$ac_exeext &&
17279 $as_test_x conftest$ac_exeext; then
17280 ac_cv_lib_kvm_kvm_open=yes
17282 echo "$as_me: failed program was
:" >&5
17283 sed 's/^/| /' conftest.$ac_ext >&5
17285 ac_cv_lib_kvm_kvm_open=no
17288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17289 conftest$ac_exeext conftest.$ac_ext
17290 LIBS=$ac_check_lib_save_LIBS
17292 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17293 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17294 if test $ac_cv_lib_kvm_kvm_open = yes; then
17298 # Check for the 4.4BSD definition of getloadavg.
17299 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17300 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17301 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17302 echo $ECHO_N "(cached
) $ECHO_C" >&6
17304 ac_check_lib_save_LIBS=$LIBS
17305 LIBS="-lutil $LIBS"
17306 cat >conftest.$ac_ext <<_ACEOF
17309 cat confdefs.h >>conftest.$ac_ext
17310 cat >>conftest.$ac_ext <<_ACEOF
17311 /* end confdefs.h. */
17313 /* Override any GCC internal prototype to avoid an error.
17314 Use char because int might match the return type of a GCC
17315 builtin and then its argument prototype would still apply. */
17319 char getloadavg ();
17323 return getloadavg ();
17328 rm -f conftest.$ac_objext conftest$ac_exeext
17329 if { (ac_try="$ac_link"
17330 case "(($ac_try" in
17331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17332 *) ac_try_echo=$ac_try;;
17334 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17335 (eval "$ac_link") 2>conftest.er1
17337 grep -v '^ *+' conftest.er1 >conftest.err
17339 cat conftest.err >&5
17340 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17341 (exit $ac_status); } && {
17342 test -z "$ac_c_werror_flag" ||
17343 test ! -s conftest.err
17344 } && test -s conftest$ac_exeext &&
17345 $as_test_x conftest$ac_exeext; then
17346 ac_cv_lib_util_getloadavg=yes
17348 echo "$as_me: failed program was
:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17351 ac_cv_lib_util_getloadavg=no
17354 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17355 conftest$ac_exeext conftest.$ac_ext
17356 LIBS=$ac_check_lib_save_LIBS
17358 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17359 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17360 if test $ac_cv_lib_util_getloadavg = yes; then
17361 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17366 if test $ac_have_func = no; then
17367 # There is a commonly available library for RS/6000 AIX.
17368 # Since it is not a standard part of AIX, it might be installed locally.
17369 ac_getloadavg_LIBS=$LIBS
17370 LIBS="-L/usr
/local
/lib
$LIBS"
17371 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17372 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17373 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17374 echo $ECHO_N "(cached
) $ECHO_C" >&6
17376 ac_check_lib_save_LIBS=$LIBS
17377 LIBS="-lgetloadavg $LIBS"
17378 cat >conftest.$ac_ext <<_ACEOF
17381 cat confdefs.h >>conftest.$ac_ext
17382 cat >>conftest.$ac_ext <<_ACEOF
17383 /* end confdefs.h. */
17385 /* Override any GCC internal prototype to avoid an error.
17386 Use char because int might match the return type of a GCC
17387 builtin and then its argument prototype would still apply. */
17391 char getloadavg ();
17395 return getloadavg ();
17400 rm -f conftest.$ac_objext conftest$ac_exeext
17401 if { (ac_try="$ac_link"
17402 case "(($ac_try" in
17403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17404 *) ac_try_echo=$ac_try;;
17406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17407 (eval "$ac_link") 2>conftest.er1
17409 grep -v '^ *+' conftest.er1 >conftest.err
17411 cat conftest.err >&5
17412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17413 (exit $ac_status); } && {
17414 test -z "$ac_c_werror_flag" ||
17415 test ! -s conftest.err
17416 } && test -s conftest$ac_exeext &&
17417 $as_test_x conftest$ac_exeext; then
17418 ac_cv_lib_getloadavg_getloadavg=yes
17420 echo "$as_me: failed program was
:" >&5
17421 sed 's/^/| /' conftest.$ac_ext >&5
17423 ac_cv_lib_getloadavg_getloadavg=no
17426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17427 conftest$ac_exeext conftest.$ac_ext
17428 LIBS=$ac_check_lib_save_LIBS
17430 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17431 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17432 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17433 LIBS="-lgetloadavg $LIBS"
17435 LIBS=$ac_getloadavg_LIBS
17440 # Make sure it is really in the library, if we think we found it,
17441 # otherwise set up the replacement function.
17443 for ac_func in getloadavg
17445 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17446 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17447 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17448 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17449 echo $ECHO_N "(cached
) $ECHO_C" >&6
17451 cat >conftest.$ac_ext <<_ACEOF
17454 cat confdefs.h >>conftest.$ac_ext
17455 cat >>conftest.$ac_ext <<_ACEOF
17456 /* end confdefs.h. */
17457 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17458 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17459 #define $ac_func innocuous_$ac_func
17461 /* System header to define __stub macros and hopefully few prototypes,
17462 which can conflict with char $ac_func (); below.
17463 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17464 <limits.h> exists even on freestanding compilers. */
17467 # include <limits.h>
17469 # include <assert.h>
17474 /* Override any GCC internal prototype to avoid an error.
17475 Use char because int might match the return type of a GCC
17476 builtin and then its argument prototype would still apply. */
17481 /* The GNU C library defines this for functions which it implements
17482 to always fail with ENOSYS. Some functions are actually named
17483 something starting with __ and the normal name is an alias. */
17484 #if defined __stub_$ac_func || defined __stub___$ac_func
17491 return $ac_func ();
17496 rm -f conftest.$ac_objext conftest$ac_exeext
17497 if { (ac_try="$ac_link"
17498 case "(($ac_try" in
17499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17500 *) ac_try_echo=$ac_try;;
17502 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17503 (eval "$ac_link") 2>conftest.er1
17505 grep -v '^ *+' conftest.er1 >conftest.err
17507 cat conftest.err >&5
17508 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17509 (exit $ac_status); } && {
17510 test -z "$ac_c_werror_flag" ||
17511 test ! -s conftest.err
17512 } && test -s conftest$ac_exeext &&
17513 $as_test_x conftest$ac_exeext; then
17514 eval "$as_ac_var=yes"
17516 echo "$as_me: failed program was
:" >&5
17517 sed 's/^/| /' conftest.$ac_ext >&5
17519 eval "$as_ac_var=no
"
17522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17523 conftest$ac_exeext conftest.$ac_ext
17525 ac_res=`eval echo '${'$as_ac_var'}'`
17526 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17527 echo "${ECHO_T}$ac_res" >&6; }
17528 if test `eval echo '${'$as_ac_var'}'` = yes; then
17529 cat >>confdefs.h <<_ACEOF
17530 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17534 case " $LIBOBJS " in
17535 *" getloadavg.
$ac_objext "* ) ;;
17536 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17541 cat >>confdefs.h <<\_ACEOF
17542 #define C_GETLOADAVG 1
17545 # Figure out what our getloadavg.c needs.
17547 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17548 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17549 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17550 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17551 echo $ECHO_N "(cached
) $ECHO_C" >&6
17553 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17554 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17556 # Is the header compilable?
17557 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17558 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17559 cat >conftest.$ac_ext <<_ACEOF
17562 cat confdefs.h >>conftest.$ac_ext
17563 cat >>conftest.$ac_ext <<_ACEOF
17564 /* end confdefs.h. */
17565 $ac_includes_default
17566 #include <sys/dg_sys_info.h>
17568 rm -f conftest.$ac_objext
17569 if { (ac_try="$ac_compile"
17570 case "(($ac_try" in
17571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17572 *) ac_try_echo=$ac_try;;
17574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17575 (eval "$ac_compile") 2>conftest.er1
17577 grep -v '^ *+' conftest.er1 >conftest.err
17579 cat conftest.err >&5
17580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17581 (exit $ac_status); } && {
17582 test -z "$ac_c_werror_flag" ||
17583 test ! -s conftest.err
17584 } && test -s conftest.$ac_objext; then
17585 ac_header_compiler=yes
17587 echo "$as_me: failed program was
:" >&5
17588 sed 's/^/| /' conftest.$ac_ext >&5
17590 ac_header_compiler=no
17593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17594 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17595 echo "${ECHO_T}$ac_header_compiler" >&6; }
17597 # Is the header present?
17598 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17599 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17600 cat >conftest.$ac_ext <<_ACEOF
17603 cat confdefs.h >>conftest.$ac_ext
17604 cat >>conftest.$ac_ext <<_ACEOF
17605 /* end confdefs.h. */
17606 #include <sys/dg_sys_info.h>
17608 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17616 grep -v '^ *+' conftest.er1 >conftest.err
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17620 (exit $ac_status); } >/dev/null && {
17621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17624 ac_header_preproc=yes
17626 echo "$as_me: failed program was
:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17629 ac_header_preproc=no
17632 rm -f conftest.err conftest.$ac_ext
17633 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17634 echo "${ECHO_T}$ac_header_preproc" >&6; }
17636 # So? What about this header?
17637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17639 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17640 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17641 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17642 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17643 ac_header_preproc=yes
17646 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17647 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17648 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17649 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17650 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17651 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17652 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17653 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17654 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17655 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17656 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17657 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17661 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17662 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17663 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17664 echo $ECHO_N "(cached
) $ECHO_C" >&6
17666 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17668 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17669 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17672 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17675 cat >>confdefs.h <<\_ACEOF
17680 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17681 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17682 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17683 echo $ECHO_N "(cached
) $ECHO_C" >&6
17685 ac_check_lib_save_LIBS=$LIBS
17687 cat >conftest.$ac_ext <<_ACEOF
17690 cat confdefs.h >>conftest.$ac_ext
17691 cat >>conftest.$ac_ext <<_ACEOF
17692 /* end confdefs.h. */
17694 /* Override any GCC internal prototype to avoid an error.
17695 Use char because int might match the return type of a GCC
17696 builtin and then its argument prototype would still apply. */
17700 char dg_sys_info ();
17704 return dg_sys_info ();
17709 rm -f conftest.$ac_objext conftest$ac_exeext
17710 if { (ac_try="$ac_link"
17711 case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_link") 2>conftest.er1
17718 grep -v '^ *+' conftest.er1 >conftest.err
17720 cat conftest.err >&5
17721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17722 (exit $ac_status); } && {
17723 test -z "$ac_c_werror_flag" ||
17724 test ! -s conftest.err
17725 } && test -s conftest$ac_exeext &&
17726 $as_test_x conftest$ac_exeext; then
17727 ac_cv_lib_dgc_dg_sys_info=yes
17729 echo "$as_me: failed program was
:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17732 ac_cv_lib_dgc_dg_sys_info=no
17735 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17736 conftest$ac_exeext conftest.$ac_ext
17737 LIBS=$ac_check_lib_save_LIBS
17739 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17740 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17741 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17742 cat >>confdefs.h <<_ACEOF
17743 #define HAVE_LIBDGC 1
17754 if test "${ac_cv_header_locale_h+set}" = set; then
17755 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17756 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17757 if test "${ac_cv_header_locale_h+set}" = set; then
17758 echo $ECHO_N "(cached
) $ECHO_C" >&6
17760 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17761 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17763 # Is the header compilable?
17764 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17765 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17766 cat >conftest.$ac_ext <<_ACEOF
17769 cat confdefs.h >>conftest.$ac_ext
17770 cat >>conftest.$ac_ext <<_ACEOF
17771 /* end confdefs.h. */
17772 $ac_includes_default
17773 #include <locale.h>
17775 rm -f conftest.$ac_objext
17776 if { (ac_try="$ac_compile"
17777 case "(($ac_try" in
17778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17779 *) ac_try_echo=$ac_try;;
17781 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17782 (eval "$ac_compile") 2>conftest.er1
17784 grep -v '^ *+' conftest.er1 >conftest.err
17786 cat conftest.err >&5
17787 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17788 (exit $ac_status); } && {
17789 test -z "$ac_c_werror_flag" ||
17790 test ! -s conftest.err
17791 } && test -s conftest.$ac_objext; then
17792 ac_header_compiler=yes
17794 echo "$as_me: failed program was
:" >&5
17795 sed 's/^/| /' conftest.$ac_ext >&5
17797 ac_header_compiler=no
17800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17801 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17802 echo "${ECHO_T}$ac_header_compiler" >&6; }
17804 # Is the header present?
17805 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17806 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17807 cat >conftest.$ac_ext <<_ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h. */
17813 #include <locale.h>
17815 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17816 case "(($ac_try" in
17817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818 *) ac_try_echo=$ac_try;;
17820 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17821 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17823 grep -v '^ *+' conftest.er1 >conftest.err
17825 cat conftest.err >&5
17826 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17827 (exit $ac_status); } >/dev/null && {
17828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17829 test ! -s conftest.err
17831 ac_header_preproc=yes
17833 echo "$as_me: failed program was
:" >&5
17834 sed 's/^/| /' conftest.$ac_ext >&5
17836 ac_header_preproc=no
17839 rm -f conftest.err conftest.$ac_ext
17840 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17841 echo "${ECHO_T}$ac_header_preproc" >&6; }
17843 # So? What about this header?
17844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17846 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17847 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17848 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17849 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17850 ac_header_preproc=yes
17853 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17854 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17855 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17856 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17857 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17858 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17859 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17860 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17861 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17862 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17863 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17864 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17868 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17869 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17870 if test "${ac_cv_header_locale_h+set}" = set; then
17871 echo $ECHO_N "(cached
) $ECHO_C" >&6
17873 ac_cv_header_locale_h=$ac_header_preproc
17875 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17876 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17882 for ac_func in setlocale
17884 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17885 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17886 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17887 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17888 echo $ECHO_N "(cached
) $ECHO_C" >&6
17890 cat >conftest.$ac_ext <<_ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h. */
17896 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17897 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17898 #define $ac_func innocuous_$ac_func
17900 /* System header to define __stub macros and hopefully few prototypes,
17901 which can conflict with char $ac_func (); below.
17902 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17903 <limits.h> exists even on freestanding compilers. */
17906 # include <limits.h>
17908 # include <assert.h>
17913 /* Override any GCC internal prototype to avoid an error.
17914 Use char because int might match the return type of a GCC
17915 builtin and then its argument prototype would still apply. */
17920 /* The GNU C library defines this for functions which it implements
17921 to always fail with ENOSYS. Some functions are actually named
17922 something starting with __ and the normal name is an alias. */
17923 #if defined __stub_$ac_func || defined __stub___$ac_func
17930 return $ac_func ();
17935 rm -f conftest.$ac_objext conftest$ac_exeext
17936 if { (ac_try="$ac_link"
17937 case "(($ac_try" in
17938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17939 *) ac_try_echo=$ac_try;;
17941 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17942 (eval "$ac_link") 2>conftest.er1
17944 grep -v '^ *+' conftest.er1 >conftest.err
17946 cat conftest.err >&5
17947 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17948 (exit $ac_status); } && {
17949 test -z "$ac_c_werror_flag" ||
17950 test ! -s conftest.err
17951 } && test -s conftest$ac_exeext &&
17952 $as_test_x conftest$ac_exeext; then
17953 eval "$as_ac_var=yes"
17955 echo "$as_me: failed program was
:" >&5
17956 sed 's/^/| /' conftest.$ac_ext >&5
17958 eval "$as_ac_var=no
"
17961 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17962 conftest$ac_exeext conftest.$ac_ext
17964 ac_res=`eval echo '${'$as_ac_var'}'`
17965 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17966 echo "${ECHO_T}$ac_res" >&6; }
17967 if test `eval echo '${'$as_ac_var'}'` = yes; then
17968 cat >>confdefs.h <<_ACEOF
17969 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17976 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17977 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17978 # Irix 4.0.5F has the header but not the library.
17979 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17982 cat >>confdefs.h <<\_ACEOF
17988 if test $ac_have_func = no; then
17989 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17990 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17991 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17992 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17993 echo $ECHO_N "(cached
) $ECHO_C" >&6
17995 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17996 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17998 # Is the header compilable?
17999 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
18000 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
18001 cat >conftest.$ac_ext <<_ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18007 $ac_includes_default
18008 #include <inq_stats/cpustats.h>
18010 rm -f conftest.$ac_objext
18011 if { (ac_try="$ac_compile"
18012 case "(($ac_try" in
18013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18014 *) ac_try_echo=$ac_try;;
18016 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18017 (eval "$ac_compile") 2>conftest.er1
18019 grep -v '^ *+' conftest.er1 >conftest.err
18021 cat conftest.err >&5
18022 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18023 (exit $ac_status); } && {
18024 test -z "$ac_c_werror_flag" ||
18025 test ! -s conftest.err
18026 } && test -s conftest.$ac_objext; then
18027 ac_header_compiler=yes
18029 echo "$as_me: failed program was
:" >&5
18030 sed 's/^/| /' conftest.$ac_ext >&5
18032 ac_header_compiler=no
18035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18036 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18037 echo "${ECHO_T}$ac_header_compiler" >&6; }
18039 # Is the header present?
18040 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18041 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
18042 cat >conftest.$ac_ext <<_ACEOF
18045 cat confdefs.h >>conftest.$ac_ext
18046 cat >>conftest.$ac_ext <<_ACEOF
18047 /* end confdefs.h. */
18048 #include <inq_stats/cpustats.h>
18050 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18051 case "(($ac_try" in
18052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18053 *) ac_try_echo=$ac_try;;
18055 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18056 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18058 grep -v '^ *+' conftest.er1 >conftest.err
18060 cat conftest.err >&5
18061 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18062 (exit $ac_status); } >/dev/null && {
18063 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18064 test ! -s conftest.err
18066 ac_header_preproc=yes
18068 echo "$as_me: failed program was
:" >&5
18069 sed 's/^/| /' conftest.$ac_ext >&5
18071 ac_header_preproc=no
18074 rm -f conftest.err conftest.$ac_ext
18075 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18076 echo "${ECHO_T}$ac_header_preproc" >&6; }
18078 # So? What about this header?
18079 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18081 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18082 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18083 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18084 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18085 ac_header_preproc=yes
18088 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18089 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18090 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18091 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18092 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18093 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18094 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18095 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18096 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18097 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18098 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18099 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18103 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18104 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18105 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18106 echo $ECHO_N "(cached
) $ECHO_C" >&6
18108 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18110 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18111 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18114 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18117 cat >>confdefs.h <<\_ACEOF
18122 cat >>confdefs.h <<\_ACEOF
18131 if test $ac_have_func = no; then
18132 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18133 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18134 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18135 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18136 echo $ECHO_N "(cached
) $ECHO_C" >&6
18138 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18139 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18141 # Is the header compilable?
18142 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18143 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18144 cat >conftest.$ac_ext <<_ACEOF
18147 cat confdefs.h >>conftest.$ac_ext
18148 cat >>conftest.$ac_ext <<_ACEOF
18149 /* end confdefs.h. */
18150 $ac_includes_default
18151 #include <sys/cpustats.h>
18153 rm -f conftest.$ac_objext
18154 if { (ac_try="$ac_compile"
18155 case "(($ac_try" in
18156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18157 *) ac_try_echo=$ac_try;;
18159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18160 (eval "$ac_compile") 2>conftest.er1
18162 grep -v '^ *+' conftest.er1 >conftest.err
18164 cat conftest.err >&5
18165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18166 (exit $ac_status); } && {
18167 test -z "$ac_c_werror_flag" ||
18168 test ! -s conftest.err
18169 } && test -s conftest.$ac_objext; then
18170 ac_header_compiler=yes
18172 echo "$as_me: failed program was
:" >&5
18173 sed 's/^/| /' conftest.$ac_ext >&5
18175 ac_header_compiler=no
18178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18179 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18180 echo "${ECHO_T}$ac_header_compiler" >&6; }
18182 # Is the header present?
18183 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18184 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18185 cat >conftest.$ac_ext <<_ACEOF
18188 cat confdefs.h >>conftest.$ac_ext
18189 cat >>conftest.$ac_ext <<_ACEOF
18190 /* end confdefs.h. */
18191 #include <sys/cpustats.h>
18193 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18194 case "(($ac_try" in
18195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18196 *) ac_try_echo=$ac_try;;
18198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18199 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18201 grep -v '^ *+' conftest.er1 >conftest.err
18203 cat conftest.err >&5
18204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18205 (exit $ac_status); } >/dev/null && {
18206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18207 test ! -s conftest.err
18209 ac_header_preproc=yes
18211 echo "$as_me: failed program was
:" >&5
18212 sed 's/^/| /' conftest.$ac_ext >&5
18214 ac_header_preproc=no
18217 rm -f conftest.err conftest.$ac_ext
18218 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18219 echo "${ECHO_T}$ac_header_preproc" >&6; }
18221 # So? What about this header?
18222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18224 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18225 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18226 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18227 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18228 ac_header_preproc=yes
18231 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18232 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18233 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18234 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18235 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18236 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18237 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18238 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18239 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18240 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18241 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18242 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18246 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18247 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18248 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18249 echo $ECHO_N "(cached
) $ECHO_C" >&6
18251 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18253 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18254 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18257 if test $ac_cv_header_sys_cpustats_h = yes; then
18258 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18267 if test $ac_have_func = no; then
18269 for ac_header in mach/mach.h
18271 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18272 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18273 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18274 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18275 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18276 echo $ECHO_N "(cached
) $ECHO_C" >&6
18278 ac_res=`eval echo '${'$as_ac_Header'}'`
18279 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18280 echo "${ECHO_T}$ac_res" >&6; }
18282 # Is the header compilable?
18283 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18284 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18285 cat >conftest.$ac_ext <<_ACEOF
18288 cat confdefs.h >>conftest.$ac_ext
18289 cat >>conftest.$ac_ext <<_ACEOF
18290 /* end confdefs.h. */
18291 $ac_includes_default
18292 #include <$ac_header>
18294 rm -f conftest.$ac_objext
18295 if { (ac_try="$ac_compile"
18296 case "(($ac_try" in
18297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18298 *) ac_try_echo=$ac_try;;
18300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18301 (eval "$ac_compile") 2>conftest.er1
18303 grep -v '^ *+' conftest.er1 >conftest.err
18305 cat conftest.err >&5
18306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18307 (exit $ac_status); } && {
18308 test -z "$ac_c_werror_flag" ||
18309 test ! -s conftest.err
18310 } && test -s conftest.$ac_objext; then
18311 ac_header_compiler=yes
18313 echo "$as_me: failed program was
:" >&5
18314 sed 's/^/| /' conftest.$ac_ext >&5
18316 ac_header_compiler=no
18319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18320 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18321 echo "${ECHO_T}$ac_header_compiler" >&6; }
18323 # Is the header present?
18324 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18325 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18326 cat >conftest.$ac_ext <<_ACEOF
18329 cat confdefs.h >>conftest.$ac_ext
18330 cat >>conftest.$ac_ext <<_ACEOF
18331 /* end confdefs.h. */
18332 #include <$ac_header>
18334 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18335 case "(($ac_try" in
18336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18337 *) ac_try_echo=$ac_try;;
18339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18340 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18342 grep -v '^ *+' conftest.er1 >conftest.err
18344 cat conftest.err >&5
18345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18346 (exit $ac_status); } >/dev/null && {
18347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18348 test ! -s conftest.err
18350 ac_header_preproc=yes
18352 echo "$as_me: failed program was
:" >&5
18353 sed 's/^/| /' conftest.$ac_ext >&5
18355 ac_header_preproc=no
18358 rm -f conftest.err conftest.$ac_ext
18359 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18360 echo "${ECHO_T}$ac_header_preproc" >&6; }
18362 # So? What about this header?
18363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18365 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18366 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18367 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18369 ac_header_preproc=yes
18372 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18373 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18374 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18375 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18376 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18377 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18378 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18379 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18380 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18382 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18383 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18387 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18388 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18389 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18390 echo $ECHO_N "(cached
) $ECHO_C" >&6
18392 eval "$as_ac_Header=\
$ac_header_preproc"
18394 ac_res=`eval echo '${'$as_ac_Header'}'`
18395 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18396 echo "${ECHO_T}$ac_res" >&6; }
18399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18400 cat >>confdefs.h <<_ACEOF
18401 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18411 for ac_header in nlist.h
18413 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18414 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18415 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18416 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18417 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18418 echo $ECHO_N "(cached
) $ECHO_C" >&6
18420 ac_res=`eval echo '${'$as_ac_Header'}'`
18421 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18422 echo "${ECHO_T}$ac_res" >&6; }
18424 # Is the header compilable?
18425 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18426 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18427 cat >conftest.$ac_ext <<_ACEOF
18430 cat confdefs.h >>conftest.$ac_ext
18431 cat >>conftest.$ac_ext <<_ACEOF
18432 /* end confdefs.h. */
18433 $ac_includes_default
18434 #include <$ac_header>
18436 rm -f conftest.$ac_objext
18437 if { (ac_try="$ac_compile"
18438 case "(($ac_try" in
18439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18440 *) ac_try_echo=$ac_try;;
18442 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18443 (eval "$ac_compile") 2>conftest.er1
18445 grep -v '^ *+' conftest.er1 >conftest.err
18447 cat conftest.err >&5
18448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18449 (exit $ac_status); } && {
18450 test -z "$ac_c_werror_flag" ||
18451 test ! -s conftest.err
18452 } && test -s conftest.$ac_objext; then
18453 ac_header_compiler=yes
18455 echo "$as_me: failed program was
:" >&5
18456 sed 's/^/| /' conftest.$ac_ext >&5
18458 ac_header_compiler=no
18461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18462 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18463 echo "${ECHO_T}$ac_header_compiler" >&6; }
18465 # Is the header present?
18466 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18467 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18468 cat >conftest.$ac_ext <<_ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h. */
18474 #include <$ac_header>
18476 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18477 case "(($ac_try" in
18478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18479 *) ac_try_echo=$ac_try;;
18481 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18482 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18484 grep -v '^ *+' conftest.er1 >conftest.err
18486 cat conftest.err >&5
18487 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18488 (exit $ac_status); } >/dev/null && {
18489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18490 test ! -s conftest.err
18492 ac_header_preproc=yes
18494 echo "$as_me: failed program was
:" >&5
18495 sed 's/^/| /' conftest.$ac_ext >&5
18497 ac_header_preproc=no
18500 rm -f conftest.err conftest.$ac_ext
18501 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18502 echo "${ECHO_T}$ac_header_preproc" >&6; }
18504 # So? What about this header?
18505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18507 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18508 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18509 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18510 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18511 ac_header_preproc=yes
18514 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18515 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18516 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18517 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18518 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18519 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18520 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18521 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18522 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18523 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18524 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18525 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18529 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18530 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18531 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18532 echo $ECHO_N "(cached
) $ECHO_C" >&6
18534 eval "$as_ac_Header=\
$ac_header_preproc"
18536 ac_res=`eval echo '${'$as_ac_Header'}'`
18537 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18538 echo "${ECHO_T}$ac_res" >&6; }
18541 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18542 cat >>confdefs.h <<_ACEOF
18543 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18545 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18546 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18547 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18548 echo $ECHO_N "(cached
) $ECHO_C" >&6
18550 cat >conftest.$ac_ext <<_ACEOF
18553 cat confdefs.h >>conftest.$ac_ext
18554 cat >>conftest.$ac_ext <<_ACEOF
18555 /* end confdefs.h. */
18561 static struct nlist ac_aggr;
18562 if (ac_aggr.n_un.n_name)
18568 rm -f conftest.$ac_objext
18569 if { (ac_try="$ac_compile"
18570 case "(($ac_try" in
18571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18572 *) ac_try_echo=$ac_try;;
18574 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18575 (eval "$ac_compile") 2>conftest.er1
18577 grep -v '^ *+' conftest.er1 >conftest.err
18579 cat conftest.err >&5
18580 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18581 (exit $ac_status); } && {
18582 test -z "$ac_c_werror_flag" ||
18583 test ! -s conftest.err
18584 } && test -s conftest.$ac_objext; then
18585 ac_cv_member_struct_nlist_n_un_n_name=yes
18587 echo "$as_me: failed program was
:" >&5
18588 sed 's/^/| /' conftest.$ac_ext >&5
18590 cat >conftest.$ac_ext <<_ACEOF
18593 cat confdefs.h >>conftest.$ac_ext
18594 cat >>conftest.$ac_ext <<_ACEOF
18595 /* end confdefs.h. */
18601 static struct nlist ac_aggr;
18602 if (sizeof ac_aggr.n_un.n_name)
18608 rm -f conftest.$ac_objext
18609 if { (ac_try="$ac_compile"
18610 case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_compile") 2>conftest.er1
18617 grep -v '^ *+' conftest.er1 >conftest.err
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18621 (exit $ac_status); } && {
18622 test -z "$ac_c_werror_flag" ||
18623 test ! -s conftest.err
18624 } && test -s conftest.$ac_objext; then
18625 ac_cv_member_struct_nlist_n_un_n_name=yes
18627 echo "$as_me: failed program was
:" >&5
18628 sed 's/^/| /' conftest.$ac_ext >&5
18630 ac_cv_member_struct_nlist_n_un_n_name=no
18633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18638 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18639 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18640 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18642 cat >>confdefs.h <<_ACEOF
18643 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18647 cat >>confdefs.h <<\_ACEOF
18648 #define NLIST_NAME_UNION 1
18662 # Some definitions of getloadavg require that the program be installed setgid.
18663 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18664 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18665 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18666 echo $ECHO_N "(cached
) $ECHO_C" >&6
18668 cat >conftest.$ac_ext <<_ACEOF
18671 cat confdefs.h >>conftest.$ac_ext
18672 cat >>conftest.$ac_ext <<_ACEOF
18673 /* end confdefs.h. */
18674 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18675 #ifdef LDAV_PRIVILEGED
18676 Yowza Am I SETGID yet
18679 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18680 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18681 ac_cv_func_getloadavg_setgid=yes
18683 ac_cv_func_getloadavg_setgid=no
18688 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18689 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18690 if test $ac_cv_func_getloadavg_setgid = yes; then
18693 cat >>confdefs.h <<\_ACEOF
18694 #define GETLOADAVG_PRIVILEGED 1
18701 if test $ac_cv_func_getloadavg_setgid = yes; then
18702 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18703 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18704 if test "${ac_cv_group_kmem+set}" = set; then
18705 echo $ECHO_N "(cached
) $ECHO_C" >&6
18707 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18708 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18709 # If we got an error (system does not support symlinks), try without -L.
18710 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18711 ac_cv_group_kmem=`echo $ac_ls_output \
18712 | sed -ne 's/[ ][ ]*/ /g;
18713 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18717 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18718 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18719 KMEM_GROUP=$ac_cv_group_kmem
18721 if test "x
$ac_save_LIBS" = x; then
18722 GETLOADAVG_LIBS=$LIBS
18724 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18730 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18731 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18732 if test "${ac_cv_sys_largefile_source+set}" = set; then
18733 echo $ECHO_N "(cached
) $ECHO_C" >&6
18736 cat >conftest.$ac_ext <<_ACEOF
18739 cat confdefs.h >>conftest.$ac_ext
18740 cat >>conftest.$ac_ext <<_ACEOF
18741 /* end confdefs.h. */
18746 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18751 rm -f conftest.$ac_objext conftest$ac_exeext
18752 if { (ac_try="$ac_link"
18753 case "(($ac_try" in
18754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18755 *) ac_try_echo=$ac_try;;
18757 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18758 (eval "$ac_link") 2>conftest.er1
18760 grep -v '^ *+' conftest.er1 >conftest.err
18762 cat conftest.err >&5
18763 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18764 (exit $ac_status); } && {
18765 test -z "$ac_c_werror_flag" ||
18766 test ! -s conftest.err
18767 } && test -s conftest$ac_exeext &&
18768 $as_test_x conftest$ac_exeext; then
18769 ac_cv_sys_largefile_source=no; break
18771 echo "$as_me: failed program was
:" >&5
18772 sed 's/^/| /' conftest.$ac_ext >&5
18777 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18778 conftest$ac_exeext conftest.$ac_ext
18779 cat >conftest.$ac_ext <<_ACEOF
18782 cat confdefs.h >>conftest.$ac_ext
18783 cat >>conftest.$ac_ext <<_ACEOF
18784 /* end confdefs.h. */
18785 #define _LARGEFILE_SOURCE 1
18790 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18795 rm -f conftest.$ac_objext conftest$ac_exeext
18796 if { (ac_try="$ac_link"
18797 case "(($ac_try" in
18798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799 *) ac_try_echo=$ac_try;;
18801 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18802 (eval "$ac_link") 2>conftest.er1
18804 grep -v '^ *+' conftest.er1 >conftest.err
18806 cat conftest.err >&5
18807 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18808 (exit $ac_status); } && {
18809 test -z "$ac_c_werror_flag" ||
18810 test ! -s conftest.err
18811 } && test -s conftest$ac_exeext &&
18812 $as_test_x conftest$ac_exeext; then
18813 ac_cv_sys_largefile_source=1; break
18815 echo "$as_me: failed program was
:" >&5
18816 sed 's/^/| /' conftest.$ac_ext >&5
18821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18822 conftest$ac_exeext conftest.$ac_ext
18823 ac_cv_sys_largefile_source=unknown
18827 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18828 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18829 case $ac_cv_sys_largefile_source in #(
18832 cat >>confdefs.h <<_ACEOF
18833 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18839 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18840 # in glibc 2.1.3, but that breaks too many other things.
18841 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18842 if test $ac_cv_sys_largefile_source != unknown; then
18844 cat >>confdefs.h <<\_ACEOF
18845 #define HAVE_FSEEKO 1
18851 # Configure getopt.
18852 # getopt.m4 serial 10
18854 # The getopt module assume you want GNU getopt, with getopt_long etc,
18855 # rather than vanilla POSIX getopt. This means your your code should
18856 # always include <getopt.h> for the getopt prototypes.
18868 # Prerequisites of lib/getopt*.
18875 for ac_header in getopt.h
18877 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18878 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18879 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18880 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18881 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18882 echo $ECHO_N "(cached
) $ECHO_C" >&6
18884 ac_res=`eval echo '${'$as_ac_Header'}'`
18885 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18886 echo "${ECHO_T}$ac_res" >&6; }
18888 # Is the header compilable?
18889 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18890 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18891 cat >conftest.$ac_ext <<_ACEOF
18894 cat confdefs.h >>conftest.$ac_ext
18895 cat >>conftest.$ac_ext <<_ACEOF
18896 /* end confdefs.h. */
18897 $ac_includes_default
18898 #include <$ac_header>
18900 rm -f conftest.$ac_objext
18901 if { (ac_try="$ac_compile"
18902 case "(($ac_try" in
18903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18904 *) ac_try_echo=$ac_try;;
18906 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18907 (eval "$ac_compile") 2>conftest.er1
18909 grep -v '^ *+' conftest.er1 >conftest.err
18911 cat conftest.err >&5
18912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18913 (exit $ac_status); } && {
18914 test -z "$ac_c_werror_flag" ||
18915 test ! -s conftest.err
18916 } && test -s conftest.$ac_objext; then
18917 ac_header_compiler=yes
18919 echo "$as_me: failed program was
:" >&5
18920 sed 's/^/| /' conftest.$ac_ext >&5
18922 ac_header_compiler=no
18925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18926 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18927 echo "${ECHO_T}$ac_header_compiler" >&6; }
18929 # Is the header present?
18930 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18931 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18932 cat >conftest.$ac_ext <<_ACEOF
18935 cat confdefs.h >>conftest.$ac_ext
18936 cat >>conftest.$ac_ext <<_ACEOF
18937 /* end confdefs.h. */
18938 #include <$ac_header>
18940 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18941 case "(($ac_try" in
18942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18943 *) ac_try_echo=$ac_try;;
18945 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18946 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18948 grep -v '^ *+' conftest.er1 >conftest.err
18950 cat conftest.err >&5
18951 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18952 (exit $ac_status); } >/dev/null && {
18953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18954 test ! -s conftest.err
18956 ac_header_preproc=yes
18958 echo "$as_me: failed program was
:" >&5
18959 sed 's/^/| /' conftest.$ac_ext >&5
18961 ac_header_preproc=no
18964 rm -f conftest.err conftest.$ac_ext
18965 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18966 echo "${ECHO_T}$ac_header_preproc" >&6; }
18968 # So? What about this header?
18969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18971 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18972 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18973 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18975 ac_header_preproc=yes
18978 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18979 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18980 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18981 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18982 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18983 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18984 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18985 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18986 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18988 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18989 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18993 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18994 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18995 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18996 echo $ECHO_N "(cached
) $ECHO_C" >&6
18998 eval "$as_ac_Header=\
$ac_header_preproc"
19000 ac_res=`eval echo '${'$as_ac_Header'}'`
19001 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19002 echo "${ECHO_T}$ac_res" >&6; }
19005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19006 cat >>confdefs.h <<_ACEOF
19007 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19016 if test -z "$GETOPT_H"; then
19018 for ac_func in getopt_long_only
19020 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19021 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19022 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19023 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19024 echo $ECHO_N "(cached
) $ECHO_C" >&6
19026 cat >conftest.$ac_ext <<_ACEOF
19029 cat confdefs.h >>conftest.$ac_ext
19030 cat >>conftest.$ac_ext <<_ACEOF
19031 /* end confdefs.h. */
19032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19034 #define $ac_func innocuous_$ac_func
19036 /* System header to define __stub macros and hopefully few prototypes,
19037 which can conflict with char $ac_func (); below.
19038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19039 <limits.h> exists even on freestanding compilers. */
19042 # include <limits.h>
19044 # include <assert.h>
19049 /* Override any GCC internal prototype to avoid an error.
19050 Use char because int might match the return type of a GCC
19051 builtin and then its argument prototype would still apply. */
19056 /* The GNU C library defines this for functions which it implements
19057 to always fail with ENOSYS. Some functions are actually named
19058 something starting with __ and the normal name is an alias. */
19059 #if defined __stub_$ac_func || defined __stub___$ac_func
19066 return $ac_func ();
19071 rm -f conftest.$ac_objext conftest$ac_exeext
19072 if { (ac_try="$ac_link"
19073 case "(($ac_try" in
19074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19075 *) ac_try_echo=$ac_try;;
19077 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19078 (eval "$ac_link") 2>conftest.er1
19080 grep -v '^ *+' conftest.er1 >conftest.err
19082 cat conftest.err >&5
19083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19084 (exit $ac_status); } && {
19085 test -z "$ac_c_werror_flag" ||
19086 test ! -s conftest.err
19087 } && test -s conftest$ac_exeext &&
19088 $as_test_x conftest$ac_exeext; then
19089 eval "$as_ac_var=yes"
19091 echo "$as_me: failed program was
:" >&5
19092 sed 's/^/| /' conftest.$ac_ext >&5
19094 eval "$as_ac_var=no
"
19097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19098 conftest$ac_exeext conftest.$ac_ext
19100 ac_res=`eval echo '${'$as_ac_var'}'`
19101 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19102 echo "${ECHO_T}$ac_res" >&6; }
19103 if test `eval echo '${'$as_ac_var'}'` = yes; then
19104 cat >>confdefs.h <<_ACEOF
19105 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19115 if test -z "$GETOPT_H"; then
19116 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19117 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19118 if test "${ac_cv_have_decl_optreset+set}" = set; then
19119 echo $ECHO_N "(cached
) $ECHO_C" >&6
19121 cat >conftest.$ac_ext <<_ACEOF
19124 cat confdefs.h >>conftest.$ac_ext
19125 cat >>conftest.$ac_ext <<_ACEOF
19126 /* end confdefs.h. */
19127 #include <getopt.h>
19140 rm -f conftest.$ac_objext
19141 if { (ac_try="$ac_compile"
19142 case "(($ac_try" in
19143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19144 *) ac_try_echo=$ac_try;;
19146 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19147 (eval "$ac_compile") 2>conftest.er1
19149 grep -v '^ *+' conftest.er1 >conftest.err
19151 cat conftest.err >&5
19152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19153 (exit $ac_status); } && {
19154 test -z "$ac_c_werror_flag" ||
19155 test ! -s conftest.err
19156 } && test -s conftest.$ac_objext; then
19157 ac_cv_have_decl_optreset=yes
19159 echo "$as_me: failed program was
:" >&5
19160 sed 's/^/| /' conftest.$ac_ext >&5
19162 ac_cv_have_decl_optreset=no
19165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19167 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19168 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19169 if test $ac_cv_have_decl_optreset = yes; then
19175 if test -z "$GETOPT_H"; then
19176 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19177 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19178 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19179 echo $ECHO_N "(cached
) $ECHO_C" >&6
19181 if test "$cross_compiling" = yes; then
19182 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19183 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19184 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19185 echo $ECHO_N "(cached
) $ECHO_C" >&6
19187 cat >conftest.$ac_ext <<_ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19193 #include <getopt.h>
19198 #ifndef getopt_clip
19199 (void) getopt_clip;
19206 rm -f conftest.$ac_objext
19207 if { (ac_try="$ac_compile"
19208 case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_compile") 2>conftest.er1
19215 grep -v '^ *+' conftest.er1 >conftest.err
19217 cat conftest.err >&5
19218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19219 (exit $ac_status); } && {
19220 test -z "$ac_c_werror_flag" ||
19221 test ! -s conftest.err
19222 } && test -s conftest.$ac_objext; then
19223 ac_cv_have_decl_getopt_clip=yes
19225 echo "$as_me: failed program was
:" >&5
19226 sed 's/^/| /' conftest.$ac_ext >&5
19228 ac_cv_have_decl_getopt_clip=no
19231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19233 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19234 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19235 if test $ac_cv_have_decl_getopt_clip = yes; then
19236 gl_cv_func_gnu_getopt=no
19238 gl_cv_func_gnu_getopt=yes
19242 cat >conftest.$ac_ext <<_ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 #include <getopt.h>
19254 myargv[0] = "conftest
";
19257 return getopt (2, myargv, "+a
") != '?';
19263 rm -f conftest$ac_exeext
19264 if { (ac_try="$ac_link"
19265 case "(($ac_try" in
19266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19267 *) ac_try_echo=$ac_try;;
19269 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19270 (eval "$ac_link") 2>&5
19272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19274 { (case "(($ac_try" in
19275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19276 *) ac_try_echo=$ac_try;;
19278 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19279 (eval "$ac_try") 2>&5
19281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19282 (exit $ac_status); }; }; then
19283 gl_cv_func_gnu_getopt=yes
19285 echo "$as_me: program exited with status
$ac_status" >&5
19286 echo "$as_me: failed program was
:" >&5
19287 sed 's/^/| /' conftest.$ac_ext >&5
19289 ( exit $ac_status )
19290 gl_cv_func_gnu_getopt=no
19292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19297 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19298 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19299 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19306 if test -n "$GETOPT_H"; then
19311 cat >>confdefs.h <<\_ACEOF
19312 #define __GETOPT_PREFIX rpl_
19318 GETOPTOBJS='getopt.o getopt1.o'
19325 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19326 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19327 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19328 echo $ECHO_N "(cached
) $ECHO_C" >&6
19330 # Use it with a single arg.
19331 cat >conftest.$ac_ext <<_ACEOF
19334 cat confdefs.h >>conftest.$ac_ext
19335 cat >>conftest.$ac_ext <<_ACEOF
19336 /* end confdefs.h. */
19337 $ac_includes_default
19346 rm -f conftest.$ac_objext
19347 if { (ac_try="$ac_compile"
19348 case "(($ac_try" in
19349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19350 *) ac_try_echo=$ac_try;;
19352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19353 (eval "$ac_compile") 2>conftest.er1
19355 grep -v '^ *+' conftest.er1 >conftest.err
19357 cat conftest.err >&5
19358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19359 (exit $ac_status); } && {
19360 test -z "$ac_c_werror_flag" ||
19361 test ! -s conftest.err
19362 } && test -s conftest.$ac_objext; then
19363 ac_cv_func_getpgrp_void=no
19365 echo "$as_me: failed program was
:" >&5
19366 sed 's/^/| /' conftest.$ac_ext >&5
19368 ac_cv_func_getpgrp_void=yes
19371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19374 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19375 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19376 if test $ac_cv_func_getpgrp_void = yes; then
19378 cat >>confdefs.h <<\_ACEOF
19379 #define GETPGRP_VOID 1
19386 for ac_func in strftime
19388 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19389 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19390 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19391 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19392 echo $ECHO_N "(cached
) $ECHO_C" >&6
19394 cat >conftest.$ac_ext <<_ACEOF
19397 cat confdefs.h >>conftest.$ac_ext
19398 cat >>conftest.$ac_ext <<_ACEOF
19399 /* end confdefs.h. */
19400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19402 #define $ac_func innocuous_$ac_func
19404 /* System header to define __stub macros and hopefully few prototypes,
19405 which can conflict with char $ac_func (); below.
19406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19407 <limits.h> exists even on freestanding compilers. */
19410 # include <limits.h>
19412 # include <assert.h>
19417 /* Override any GCC internal prototype to avoid an error.
19418 Use char because int might match the return type of a GCC
19419 builtin and then its argument prototype would still apply. */
19424 /* The GNU C library defines this for functions which it implements
19425 to always fail with ENOSYS. Some functions are actually named
19426 something starting with __ and the normal name is an alias. */
19427 #if defined __stub_$ac_func || defined __stub___$ac_func
19434 return $ac_func ();
19439 rm -f conftest.$ac_objext conftest$ac_exeext
19440 if { (ac_try="$ac_link"
19441 case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_link") 2>conftest.er1
19448 grep -v '^ *+' conftest.er1 >conftest.err
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19452 (exit $ac_status); } && {
19453 test -z "$ac_c_werror_flag" ||
19454 test ! -s conftest.err
19455 } && test -s conftest$ac_exeext &&
19456 $as_test_x conftest$ac_exeext; then
19457 eval "$as_ac_var=yes"
19459 echo "$as_me: failed program was
:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19462 eval "$as_ac_var=no
"
19465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19466 conftest$ac_exeext conftest.$ac_ext
19468 ac_res=`eval echo '${'$as_ac_var'}'`
19469 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19470 echo "${ECHO_T}$ac_res" >&6; }
19471 if test `eval echo '${'$as_ac_var'}'` = yes; then
19472 cat >>confdefs.h <<_ACEOF
19473 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19477 # strftime is in -lintl on SCO UNIX.
19478 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19479 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19480 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19481 echo $ECHO_N "(cached
) $ECHO_C" >&6
19483 ac_check_lib_save_LIBS=$LIBS
19484 LIBS="-lintl $LIBS"
19485 cat >conftest.$ac_ext <<_ACEOF
19488 cat confdefs.h >>conftest.$ac_ext
19489 cat >>conftest.$ac_ext <<_ACEOF
19490 /* end confdefs.h. */
19492 /* Override any GCC internal prototype to avoid an error.
19493 Use char because int might match the return type of a GCC
19494 builtin and then its argument prototype would still apply. */
19502 return strftime ();
19507 rm -f conftest.$ac_objext conftest$ac_exeext
19508 if { (ac_try="$ac_link"
19509 case "(($ac_try" in
19510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19511 *) ac_try_echo=$ac_try;;
19513 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19514 (eval "$ac_link") 2>conftest.er1
19516 grep -v '^ *+' conftest.er1 >conftest.err
19518 cat conftest.err >&5
19519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19520 (exit $ac_status); } && {
19521 test -z "$ac_c_werror_flag" ||
19522 test ! -s conftest.err
19523 } && test -s conftest$ac_exeext &&
19524 $as_test_x conftest$ac_exeext; then
19525 ac_cv_lib_intl_strftime=yes
19527 echo "$as_me: failed program was
:" >&5
19528 sed 's/^/| /' conftest.$ac_ext >&5
19530 ac_cv_lib_intl_strftime=no
19533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19534 conftest$ac_exeext conftest.$ac_ext
19535 LIBS=$ac_check_lib_save_LIBS
19537 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19538 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19539 if test $ac_cv_lib_intl_strftime = yes; then
19540 cat >>confdefs.h <<\_ACEOF
19541 #define HAVE_STRFTIME 1
19544 LIBS="-lintl $LIBS"
19553 for ac_func in grantpt
19555 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19556 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19557 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19558 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19559 echo $ECHO_N "(cached
) $ECHO_C" >&6
19561 cat >conftest.$ac_ext <<_ACEOF
19564 cat confdefs.h >>conftest.$ac_ext
19565 cat >>conftest.$ac_ext <<_ACEOF
19566 /* end confdefs.h. */
19567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19569 #define $ac_func innocuous_$ac_func
19571 /* System header to define __stub macros and hopefully few prototypes,
19572 which can conflict with char $ac_func (); below.
19573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19574 <limits.h> exists even on freestanding compilers. */
19577 # include <limits.h>
19579 # include <assert.h>
19584 /* Override any GCC internal prototype to avoid an error.
19585 Use char because int might match the return type of a GCC
19586 builtin and then its argument prototype would still apply. */
19591 /* The GNU C library defines this for functions which it implements
19592 to always fail with ENOSYS. Some functions are actually named
19593 something starting with __ and the normal name is an alias. */
19594 #if defined __stub_$ac_func || defined __stub___$ac_func
19601 return $ac_func ();
19606 rm -f conftest.$ac_objext conftest$ac_exeext
19607 if { (ac_try="$ac_link"
19608 case "(($ac_try" in
19609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19610 *) ac_try_echo=$ac_try;;
19612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19613 (eval "$ac_link") 2>conftest.er1
19615 grep -v '^ *+' conftest.er1 >conftest.err
19617 cat conftest.err >&5
19618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19619 (exit $ac_status); } && {
19620 test -z "$ac_c_werror_flag" ||
19621 test ! -s conftest.err
19622 } && test -s conftest$ac_exeext &&
19623 $as_test_x conftest$ac_exeext; then
19624 eval "$as_ac_var=yes"
19626 echo "$as_me: failed program was
:" >&5
19627 sed 's/^/| /' conftest.$ac_ext >&5
19629 eval "$as_ac_var=no
"
19632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19633 conftest$ac_exeext conftest.$ac_ext
19635 ac_res=`eval echo '${'$as_ac_var'}'`
19636 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19637 echo "${ECHO_T}$ac_res" >&6; }
19638 if test `eval echo '${'$as_ac_var'}'` = yes; then
19639 cat >>confdefs.h <<_ACEOF
19640 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19647 # PTY-related GNU extensions.
19649 for ac_func in getpt
19651 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19652 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19653 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19654 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19655 echo $ECHO_N "(cached
) $ECHO_C" >&6
19657 cat >conftest.$ac_ext <<_ACEOF
19660 cat confdefs.h >>conftest.$ac_ext
19661 cat >>conftest.$ac_ext <<_ACEOF
19662 /* end confdefs.h. */
19663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19665 #define $ac_func innocuous_$ac_func
19667 /* System header to define __stub macros and hopefully few prototypes,
19668 which can conflict with char $ac_func (); below.
19669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19670 <limits.h> exists even on freestanding compilers. */
19673 # include <limits.h>
19675 # include <assert.h>
19680 /* Override any GCC internal prototype to avoid an error.
19681 Use char because int might match the return type of a GCC
19682 builtin and then its argument prototype would still apply. */
19687 /* The GNU C library defines this for functions which it implements
19688 to always fail with ENOSYS. Some functions are actually named
19689 something starting with __ and the normal name is an alias. */
19690 #if defined __stub_$ac_func || defined __stub___$ac_func
19697 return $ac_func ();
19702 rm -f conftest.$ac_objext conftest$ac_exeext
19703 if { (ac_try="$ac_link"
19704 case "(($ac_try" in
19705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19706 *) ac_try_echo=$ac_try;;
19708 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19709 (eval "$ac_link") 2>conftest.er1
19711 grep -v '^ *+' conftest.er1 >conftest.err
19713 cat conftest.err >&5
19714 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19715 (exit $ac_status); } && {
19716 test -z "$ac_c_werror_flag" ||
19717 test ! -s conftest.err
19718 } && test -s conftest$ac_exeext &&
19719 $as_test_x conftest$ac_exeext; then
19720 eval "$as_ac_var=yes"
19722 echo "$as_me: failed program was
:" >&5
19723 sed 's/^/| /' conftest.$ac_ext >&5
19725 eval "$as_ac_var=no
"
19728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19729 conftest$ac_exeext conftest.$ac_ext
19731 ac_res=`eval echo '${'$as_ac_var'}'`
19732 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19733 echo "${ECHO_T}$ac_res" >&6; }
19734 if test `eval echo '${'$as_ac_var'}'` = yes; then
19735 cat >>confdefs.h <<_ACEOF
19736 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19743 # Check this now, so that we will NOT find the above functions in ncurses.
19744 # That is because we have not set up to link ncurses in lib-src.
19745 # It's better to believe a function is not available
19746 # than to expect to find it in ncurses.
19748 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19749 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19750 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19751 echo $ECHO_N "(cached
) $ECHO_C" >&6
19753 ac_check_lib_save_LIBS=$LIBS
19754 LIBS="-lncurses $LIBS"
19755 cat >conftest.$ac_ext <<_ACEOF
19758 cat confdefs.h >>conftest.$ac_ext
19759 cat >>conftest.$ac_ext <<_ACEOF
19760 /* end confdefs.h. */
19762 /* Override any GCC internal prototype to avoid an error.
19763 Use char because int might match the return type of a GCC
19764 builtin and then its argument prototype would still apply. */
19777 rm -f conftest.$ac_objext conftest$ac_exeext
19778 if { (ac_try="$ac_link"
19779 case "(($ac_try" in
19780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19781 *) ac_try_echo=$ac_try;;
19783 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19784 (eval "$ac_link") 2>conftest.er1
19786 grep -v '^ *+' conftest.er1 >conftest.err
19788 cat conftest.err >&5
19789 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19790 (exit $ac_status); } && {
19791 test -z "$ac_c_werror_flag" ||
19792 test ! -s conftest.err
19793 } && test -s conftest$ac_exeext &&
19794 $as_test_x conftest$ac_exeext; then
19795 ac_cv_lib_ncurses_tparm=yes
19797 echo "$as_me: failed program was
:" >&5
19798 sed 's/^/| /' conftest.$ac_ext >&5
19800 ac_cv_lib_ncurses_tparm=no
19803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19804 conftest$ac_exeext conftest.$ac_ext
19805 LIBS=$ac_check_lib_save_LIBS
19807 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19808 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19809 if test $ac_cv_lib_ncurses_tparm = yes; then
19810 cat >>confdefs.h <<_ACEOF
19811 #define HAVE_LIBNCURSES 1
19814 LIBS="-lncurses $LIBS"
19819 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19822 cat >conftest.$ac_ext <<_ACEOF
19825 cat confdefs.h >>conftest.$ac_ext
19826 cat >>conftest.$ac_ext <<_ACEOF
19827 /* end confdefs.h. */
19828 #include <netinet/in.h>
19829 #include <arpa/nameser.h>
19830 #include <resolv.h>
19839 rm -f conftest.$ac_objext conftest$ac_exeext
19840 if { (ac_try="$ac_link"
19841 case "(($ac_try" in
19842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19843 *) ac_try_echo=$ac_try;;
19845 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19846 (eval "$ac_link") 2>conftest.er1
19848 grep -v '^ *+' conftest.er1 >conftest.err
19850 cat conftest.err >&5
19851 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19852 (exit $ac_status); } && {
19853 test -z "$ac_c_werror_flag" ||
19854 test ! -s conftest.err
19855 } && test -s conftest$ac_exeext &&
19856 $as_test_x conftest$ac_exeext; then
19859 echo "$as_me: failed program was
:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19866 conftest$ac_exeext conftest.$ac_ext
19867 if test "$have_res_init" = no; then
19869 LIBS="$LIBS -lresolv"
19870 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19871 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19872 cat >conftest.$ac_ext <<_ACEOF
19875 cat confdefs.h >>conftest.$ac_ext
19876 cat >>conftest.$ac_ext <<_ACEOF
19877 /* end confdefs.h. */
19878 #include <netinet/in.h>
19879 #include <arpa/nameser.h>
19880 #include <resolv.h>
19889 rm -f conftest.$ac_objext conftest$ac_exeext
19890 if { (ac_try="$ac_link"
19891 case "(($ac_try" in
19892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19893 *) ac_try_echo=$ac_try;;
19895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19896 (eval "$ac_link") 2>conftest.er1
19898 grep -v '^ *+' conftest.er1 >conftest.err
19900 cat conftest.err >&5
19901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19902 (exit $ac_status); } && {
19903 test -z "$ac_c_werror_flag" ||
19904 test ! -s conftest.err
19905 } && test -s conftest$ac_exeext &&
19906 $as_test_x conftest$ac_exeext; then
19909 echo "$as_me: failed program was
:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19916 conftest$ac_exeext conftest.$ac_ext
19917 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19918 echo "${ECHO_T}$have_res_init" >&6; }
19919 if test "$have_res_init" = yes ; then
19925 if test "$have_res_init" = yes; then
19927 cat >>confdefs.h <<\_ACEOF
19928 #define HAVE_RES_INIT 1
19933 # Do we need the Hesiod library to provide the support routines?
19934 if test "$with_hesiod" != no ; then
19935 # Don't set $LIBS here -- see comments above.
19936 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19937 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19938 if test "${ac_cv_func_res_send+set}" = set; then
19939 echo $ECHO_N "(cached
) $ECHO_C" >&6
19941 cat >conftest.$ac_ext <<_ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19947 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19948 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19949 #define res_send innocuous_res_send
19951 /* System header to define __stub macros and hopefully few prototypes,
19952 which can conflict with char res_send (); below.
19953 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19954 <limits.h> exists even on freestanding compilers. */
19957 # include <limits.h>
19959 # include <assert.h>
19964 /* Override any GCC internal prototype to avoid an error.
19965 Use char because int might match the return type of a GCC
19966 builtin and then its argument prototype would still apply. */
19971 /* The GNU C library defines this for functions which it implements
19972 to always fail with ENOSYS. Some functions are actually named
19973 something starting with __ and the normal name is an alias. */
19974 #if defined __stub_res_send || defined __stub___res_send
19981 return res_send ();
19986 rm -f conftest.$ac_objext conftest$ac_exeext
19987 if { (ac_try="$ac_link"
19988 case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19992 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_link") 2>conftest.er1
19995 grep -v '^ *+' conftest.er1 >conftest.err
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19999 (exit $ac_status); } && {
20000 test -z "$ac_c_werror_flag" ||
20001 test ! -s conftest.err
20002 } && test -s conftest$ac_exeext &&
20003 $as_test_x conftest$ac_exeext; then
20004 ac_cv_func_res_send=yes
20006 echo "$as_me: failed program was
:" >&5
20007 sed 's/^/| /' conftest.$ac_ext >&5
20009 ac_cv_func_res_send=no
20012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20013 conftest$ac_exeext conftest.$ac_ext
20015 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
20016 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20017 if test $ac_cv_func_res_send = yes; then
20020 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
20021 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
20022 if test "${ac_cv_func___res_send+set}" = set; then
20023 echo $ECHO_N "(cached
) $ECHO_C" >&6
20025 cat >conftest.$ac_ext <<_ACEOF
20028 cat confdefs.h >>conftest.$ac_ext
20029 cat >>conftest.$ac_ext <<_ACEOF
20030 /* end confdefs.h. */
20031 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20033 #define __res_send innocuous___res_send
20035 /* System header to define __stub macros and hopefully few prototypes,
20036 which can conflict with char __res_send (); below.
20037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20038 <limits.h> exists even on freestanding compilers. */
20041 # include <limits.h>
20043 # include <assert.h>
20048 /* Override any GCC internal prototype to avoid an error.
20049 Use char because int might match the return type of a GCC
20050 builtin and then its argument prototype would still apply. */
20054 char __res_send ();
20055 /* The GNU C library defines this for functions which it implements
20056 to always fail with ENOSYS. Some functions are actually named
20057 something starting with __ and the normal name is an alias. */
20058 #if defined __stub___res_send || defined __stub_____res_send
20065 return __res_send ();
20070 rm -f conftest.$ac_objext conftest$ac_exeext
20071 if { (ac_try="$ac_link"
20072 case "(($ac_try" in
20073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074 *) ac_try_echo=$ac_try;;
20076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20077 (eval "$ac_link") 2>conftest.er1
20079 grep -v '^ *+' conftest.er1 >conftest.err
20081 cat conftest.err >&5
20082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20083 (exit $ac_status); } && {
20084 test -z "$ac_c_werror_flag" ||
20085 test ! -s conftest.err
20086 } && test -s conftest$ac_exeext &&
20087 $as_test_x conftest$ac_exeext; then
20088 ac_cv_func___res_send=yes
20090 echo "$as_me: failed program was
:" >&5
20091 sed 's/^/| /' conftest.$ac_ext >&5
20093 ac_cv_func___res_send=no
20096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20097 conftest$ac_exeext conftest.$ac_ext
20099 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20100 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20101 if test $ac_cv_func___res_send = yes; then
20104 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20105 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20106 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20107 echo $ECHO_N "(cached
) $ECHO_C" >&6
20109 ac_check_lib_save_LIBS=$LIBS
20110 LIBS="-lresolv $LIBS"
20111 cat >conftest.$ac_ext <<_ACEOF
20114 cat confdefs.h >>conftest.$ac_ext
20115 cat >>conftest.$ac_ext <<_ACEOF
20116 /* end confdefs.h. */
20118 /* Override any GCC internal prototype to avoid an error.
20119 Use char because int might match the return type of a GCC
20120 builtin and then its argument prototype would still apply. */
20128 return res_send ();
20133 rm -f conftest.$ac_objext conftest$ac_exeext
20134 if { (ac_try="$ac_link"
20135 case "(($ac_try" in
20136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20137 *) ac_try_echo=$ac_try;;
20139 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20140 (eval "$ac_link") 2>conftest.er1
20142 grep -v '^ *+' conftest.er1 >conftest.err
20144 cat conftest.err >&5
20145 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20146 (exit $ac_status); } && {
20147 test -z "$ac_c_werror_flag" ||
20148 test ! -s conftest.err
20149 } && test -s conftest$ac_exeext &&
20150 $as_test_x conftest$ac_exeext; then
20151 ac_cv_lib_resolv_res_send=yes
20153 echo "$as_me: failed program was
:" >&5
20154 sed 's/^/| /' conftest.$ac_ext >&5
20156 ac_cv_lib_resolv_res_send=no
20159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20160 conftest$ac_exeext conftest.$ac_ext
20161 LIBS=$ac_check_lib_save_LIBS
20163 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20164 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20165 if test $ac_cv_lib_resolv_res_send = yes; then
20168 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20169 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20170 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20171 echo $ECHO_N "(cached
) $ECHO_C" >&6
20173 ac_check_lib_save_LIBS=$LIBS
20174 LIBS="-lresolv $LIBS"
20175 cat >conftest.$ac_ext <<_ACEOF
20178 cat confdefs.h >>conftest.$ac_ext
20179 cat >>conftest.$ac_ext <<_ACEOF
20180 /* end confdefs.h. */
20182 /* Override any GCC internal prototype to avoid an error.
20183 Use char because int might match the return type of a GCC
20184 builtin and then its argument prototype would still apply. */
20188 char __res_send ();
20192 return __res_send ();
20197 rm -f conftest.$ac_objext conftest$ac_exeext
20198 if { (ac_try="$ac_link"
20199 case "(($ac_try" in
20200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20201 *) ac_try_echo=$ac_try;;
20203 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20204 (eval "$ac_link") 2>conftest.er1
20206 grep -v '^ *+' conftest.er1 >conftest.err
20208 cat conftest.err >&5
20209 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20210 (exit $ac_status); } && {
20211 test -z "$ac_c_werror_flag" ||
20212 test ! -s conftest.err
20213 } && test -s conftest$ac_exeext &&
20214 $as_test_x conftest$ac_exeext; then
20215 ac_cv_lib_resolv___res_send=yes
20217 echo "$as_me: failed program was
:" >&5
20218 sed 's/^/| /' conftest.$ac_ext >&5
20220 ac_cv_lib_resolv___res_send=no
20223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20224 conftest$ac_exeext conftest.$ac_ext
20225 LIBS=$ac_check_lib_save_LIBS
20227 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20228 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20229 if test $ac_cv_lib_resolv___res_send = yes; then
20239 if test "$resolv" = yes ; then
20244 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20245 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20246 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20247 echo $ECHO_N "(cached
) $ECHO_C" >&6
20249 cat >conftest.$ac_ext <<_ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h. */
20255 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20257 #define hes_getmailhost innocuous_hes_getmailhost
20259 /* System header to define __stub macros and hopefully few prototypes,
20260 which can conflict with char hes_getmailhost (); below.
20261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20262 <limits.h> exists even on freestanding compilers. */
20265 # include <limits.h>
20267 # include <assert.h>
20270 #undef hes_getmailhost
20272 /* Override any GCC internal prototype to avoid an error.
20273 Use char because int might match the return type of a GCC
20274 builtin and then its argument prototype would still apply. */
20278 char hes_getmailhost ();
20279 /* The GNU C library defines this for functions which it implements
20280 to always fail with ENOSYS. Some functions are actually named
20281 something starting with __ and the normal name is an alias. */
20282 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20289 return hes_getmailhost ();
20294 rm -f conftest.$ac_objext conftest$ac_exeext
20295 if { (ac_try="$ac_link"
20296 case "(($ac_try" in
20297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20298 *) ac_try_echo=$ac_try;;
20300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20301 (eval "$ac_link") 2>conftest.er1
20303 grep -v '^ *+' conftest.er1 >conftest.err
20305 cat conftest.err >&5
20306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20307 (exit $ac_status); } && {
20308 test -z "$ac_c_werror_flag" ||
20309 test ! -s conftest.err
20310 } && test -s conftest$ac_exeext &&
20311 $as_test_x conftest$ac_exeext; then
20312 ac_cv_func_hes_getmailhost=yes
20314 echo "$as_me: failed program was
:" >&5
20315 sed 's/^/| /' conftest.$ac_ext >&5
20317 ac_cv_func_hes_getmailhost=no
20320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20321 conftest$ac_exeext conftest.$ac_ext
20323 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20324 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20325 if test $ac_cv_func_hes_getmailhost = yes; then
20328 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20329 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20330 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20331 echo $ECHO_N "(cached
) $ECHO_C" >&6
20333 ac_check_lib_save_LIBS=$LIBS
20334 LIBS="-lhesiod $RESOLVLIB $LIBS"
20335 cat >conftest.$ac_ext <<_ACEOF
20338 cat confdefs.h >>conftest.$ac_ext
20339 cat >>conftest.$ac_ext <<_ACEOF
20340 /* end confdefs.h. */
20342 /* Override any GCC internal prototype to avoid an error.
20343 Use char because int might match the return type of a GCC
20344 builtin and then its argument prototype would still apply. */
20348 char hes_getmailhost ();
20352 return hes_getmailhost ();
20357 rm -f conftest.$ac_objext conftest$ac_exeext
20358 if { (ac_try="$ac_link"
20359 case "(($ac_try" in
20360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361 *) ac_try_echo=$ac_try;;
20363 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20364 (eval "$ac_link") 2>conftest.er1
20366 grep -v '^ *+' conftest.er1 >conftest.err
20368 cat conftest.err >&5
20369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20370 (exit $ac_status); } && {
20371 test -z "$ac_c_werror_flag" ||
20372 test ! -s conftest.err
20373 } && test -s conftest$ac_exeext &&
20374 $as_test_x conftest$ac_exeext; then
20375 ac_cv_lib_hesiod_hes_getmailhost=yes
20377 echo "$as_me: failed program was
:" >&5
20378 sed 's/^/| /' conftest.$ac_ext >&5
20380 ac_cv_lib_hesiod_hes_getmailhost=no
20383 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20384 conftest$ac_exeext conftest.$ac_ext
20385 LIBS=$ac_check_lib_save_LIBS
20387 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20388 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20389 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20391 cat >>confdefs.h <<\_ACEOF
20392 #define HAVE_LIBHESIOD 1
20403 # Do we need libresolv (due to res_init or Hesiod)?
20404 if test "$resolv" = yes ; then
20406 cat >>confdefs.h <<\_ACEOF
20407 #define HAVE_LIBRESOLV 1
20412 # These tell us which Kerberos-related libraries to use.
20413 if test "${with_kerberos}" != no; then
20415 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20416 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20417 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20418 echo $ECHO_N "(cached
) $ECHO_C" >&6
20420 ac_check_lib_save_LIBS=$LIBS
20421 LIBS="-lcom_err $LIBS"
20422 cat >conftest.$ac_ext <<_ACEOF
20425 cat confdefs.h >>conftest.$ac_ext
20426 cat >>conftest.$ac_ext <<_ACEOF
20427 /* end confdefs.h. */
20429 /* Override any GCC internal prototype to avoid an error.
20430 Use char because int might match the return type of a GCC
20431 builtin and then its argument prototype would still apply. */
20444 rm -f conftest.$ac_objext conftest$ac_exeext
20445 if { (ac_try="$ac_link"
20446 case "(($ac_try" in
20447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20448 *) ac_try_echo=$ac_try;;
20450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20451 (eval "$ac_link") 2>conftest.er1
20453 grep -v '^ *+' conftest.er1 >conftest.err
20455 cat conftest.err >&5
20456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20457 (exit $ac_status); } && {
20458 test -z "$ac_c_werror_flag" ||
20459 test ! -s conftest.err
20460 } && test -s conftest$ac_exeext &&
20461 $as_test_x conftest$ac_exeext; then
20462 ac_cv_lib_com_err_com_err=yes
20464 echo "$as_me: failed program was
:" >&5
20465 sed 's/^/| /' conftest.$ac_ext >&5
20467 ac_cv_lib_com_err_com_err=no
20470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20471 conftest$ac_exeext conftest.$ac_ext
20472 LIBS=$ac_check_lib_save_LIBS
20474 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20475 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20476 if test $ac_cv_lib_com_err_com_err = yes; then
20477 cat >>confdefs.h <<_ACEOF
20478 #define HAVE_LIBCOM_ERR 1
20481 LIBS="-lcom_err $LIBS"
20486 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20487 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20488 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20489 echo $ECHO_N "(cached
) $ECHO_C" >&6
20491 ac_check_lib_save_LIBS=$LIBS
20492 LIBS="-lk5crypto $LIBS"
20493 cat >conftest.$ac_ext <<_ACEOF
20496 cat confdefs.h >>conftest.$ac_ext
20497 cat >>conftest.$ac_ext <<_ACEOF
20498 /* end confdefs.h. */
20500 /* Override any GCC internal prototype to avoid an error.
20501 Use char because int might match the return type of a GCC
20502 builtin and then its argument prototype would still apply. */
20506 char mit_des_cbc_encrypt ();
20510 return mit_des_cbc_encrypt ();
20515 rm -f conftest.$ac_objext conftest$ac_exeext
20516 if { (ac_try="$ac_link"
20517 case "(($ac_try" in
20518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20519 *) ac_try_echo=$ac_try;;
20521 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20522 (eval "$ac_link") 2>conftest.er1
20524 grep -v '^ *+' conftest.er1 >conftest.err
20526 cat conftest.err >&5
20527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20528 (exit $ac_status); } && {
20529 test -z "$ac_c_werror_flag" ||
20530 test ! -s conftest.err
20531 } && test -s conftest$ac_exeext &&
20532 $as_test_x conftest$ac_exeext; then
20533 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20535 echo "$as_me: failed program was
:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20538 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20542 conftest$ac_exeext conftest.$ac_ext
20543 LIBS=$ac_check_lib_save_LIBS
20545 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20546 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20547 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20548 cat >>confdefs.h <<_ACEOF
20549 #define HAVE_LIBK5CRYPTO 1
20552 LIBS="-lk5crypto $LIBS"
20557 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20558 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20559 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20560 echo $ECHO_N "(cached
) $ECHO_C" >&6
20562 ac_check_lib_save_LIBS=$LIBS
20563 LIBS="-lcrypto $LIBS"
20564 cat >conftest.$ac_ext <<_ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20571 /* Override any GCC internal prototype to avoid an error.
20572 Use char because int might match the return type of a GCC
20573 builtin and then its argument prototype would still apply. */
20577 char mit_des_cbc_encrypt ();
20581 return mit_des_cbc_encrypt ();
20586 rm -f conftest.$ac_objext conftest$ac_exeext
20587 if { (ac_try="$ac_link"
20588 case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_link") 2>conftest.er1
20595 grep -v '^ *+' conftest.er1 >conftest.err
20597 cat conftest.err >&5
20598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20599 (exit $ac_status); } && {
20600 test -z "$ac_c_werror_flag" ||
20601 test ! -s conftest.err
20602 } && test -s conftest$ac_exeext &&
20603 $as_test_x conftest$ac_exeext; then
20604 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20606 echo "$as_me: failed program was
:" >&5
20607 sed 's/^/| /' conftest.$ac_ext >&5
20609 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20612 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20613 conftest$ac_exeext conftest.$ac_ext
20614 LIBS=$ac_check_lib_save_LIBS
20616 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20617 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20618 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20619 cat >>confdefs.h <<_ACEOF
20620 #define HAVE_LIBCRYPTO 1
20623 LIBS="-lcrypto $LIBS"
20628 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20629 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20630 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20631 echo $ECHO_N "(cached
) $ECHO_C" >&6
20633 ac_check_lib_save_LIBS=$LIBS
20634 LIBS="-lkrb5 $LIBS"
20635 cat >conftest.$ac_ext <<_ACEOF
20638 cat confdefs.h >>conftest.$ac_ext
20639 cat >>conftest.$ac_ext <<_ACEOF
20640 /* end confdefs.h. */
20642 /* Override any GCC internal prototype to avoid an error.
20643 Use char because int might match the return type of a GCC
20644 builtin and then its argument prototype would still apply. */
20648 char krb5_init_context ();
20652 return krb5_init_context ();
20657 rm -f conftest.$ac_objext conftest$ac_exeext
20658 if { (ac_try="$ac_link"
20659 case "(($ac_try" in
20660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20661 *) ac_try_echo=$ac_try;;
20663 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20664 (eval "$ac_link") 2>conftest.er1
20666 grep -v '^ *+' conftest.er1 >conftest.err
20668 cat conftest.err >&5
20669 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20670 (exit $ac_status); } && {
20671 test -z "$ac_c_werror_flag" ||
20672 test ! -s conftest.err
20673 } && test -s conftest$ac_exeext &&
20674 $as_test_x conftest$ac_exeext; then
20675 ac_cv_lib_krb5_krb5_init_context=yes
20677 echo "$as_me: failed program was
:" >&5
20678 sed 's/^/| /' conftest.$ac_ext >&5
20680 ac_cv_lib_krb5_krb5_init_context=no
20683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20684 conftest$ac_exeext conftest.$ac_ext
20685 LIBS=$ac_check_lib_save_LIBS
20687 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20688 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20689 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20690 cat >>confdefs.h <<_ACEOF
20691 #define HAVE_LIBKRB5 1
20694 LIBS="-lkrb5 $LIBS"
20698 if test "${with_kerberos5}" = no; then
20700 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20701 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20702 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20703 echo $ECHO_N "(cached
) $ECHO_C" >&6
20705 ac_check_lib_save_LIBS=$LIBS
20706 LIBS="-ldes425 $LIBS"
20707 cat >conftest.$ac_ext <<_ACEOF
20710 cat confdefs.h >>conftest.$ac_ext
20711 cat >>conftest.$ac_ext <<_ACEOF
20712 /* end confdefs.h. */
20714 /* Override any GCC internal prototype to avoid an error.
20715 Use char because int might match the return type of a GCC
20716 builtin and then its argument prototype would still apply. */
20720 char des_cbc_encrypt ();
20724 return des_cbc_encrypt ();
20729 rm -f conftest.$ac_objext conftest$ac_exeext
20730 if { (ac_try="$ac_link"
20731 case "(($ac_try" in
20732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20733 *) ac_try_echo=$ac_try;;
20735 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20736 (eval "$ac_link") 2>conftest.er1
20738 grep -v '^ *+' conftest.er1 >conftest.err
20740 cat conftest.err >&5
20741 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20742 (exit $ac_status); } && {
20743 test -z "$ac_c_werror_flag" ||
20744 test ! -s conftest.err
20745 } && test -s conftest$ac_exeext &&
20746 $as_test_x conftest$ac_exeext; then
20747 ac_cv_lib_des425_des_cbc_encrypt=yes
20749 echo "$as_me: failed program was
:" >&5
20750 sed 's/^/| /' conftest.$ac_ext >&5
20752 ac_cv_lib_des425_des_cbc_encrypt=no
20755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20756 conftest$ac_exeext conftest.$ac_ext
20757 LIBS=$ac_check_lib_save_LIBS
20759 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20760 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20761 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20762 cat >>confdefs.h <<_ACEOF
20763 #define HAVE_LIBDES425 1
20766 LIBS="-ldes425 $LIBS"
20770 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20771 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20772 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20773 echo $ECHO_N "(cached
) $ECHO_C" >&6
20775 ac_check_lib_save_LIBS=$LIBS
20777 cat >conftest.$ac_ext <<_ACEOF
20780 cat confdefs.h >>conftest.$ac_ext
20781 cat >>conftest.$ac_ext <<_ACEOF
20782 /* end confdefs.h. */
20784 /* Override any GCC internal prototype to avoid an error.
20785 Use char because int might match the return type of a GCC
20786 builtin and then its argument prototype would still apply. */
20790 char des_cbc_encrypt ();
20794 return des_cbc_encrypt ();
20799 rm -f conftest.$ac_objext conftest$ac_exeext
20800 if { (ac_try="$ac_link"
20801 case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20805 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_link") 2>conftest.er1
20808 grep -v '^ *+' conftest.er1 >conftest.err
20810 cat conftest.err >&5
20811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20812 (exit $ac_status); } && {
20813 test -z "$ac_c_werror_flag" ||
20814 test ! -s conftest.err
20815 } && test -s conftest$ac_exeext &&
20816 $as_test_x conftest$ac_exeext; then
20817 ac_cv_lib_des_des_cbc_encrypt=yes
20819 echo "$as_me: failed program was
:" >&5
20820 sed 's/^/| /' conftest.$ac_ext >&5
20822 ac_cv_lib_des_des_cbc_encrypt=no
20825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20826 conftest$ac_exeext conftest.$ac_ext
20827 LIBS=$ac_check_lib_save_LIBS
20829 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20830 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20831 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20832 cat >>confdefs.h <<_ACEOF
20833 #define HAVE_LIBDES 1
20843 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20844 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20845 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20846 echo $ECHO_N "(cached
) $ECHO_C" >&6
20848 ac_check_lib_save_LIBS=$LIBS
20849 LIBS="-lkrb4 $LIBS"
20850 cat >conftest.$ac_ext <<_ACEOF
20853 cat confdefs.h >>conftest.$ac_ext
20854 cat >>conftest.$ac_ext <<_ACEOF
20855 /* end confdefs.h. */
20857 /* Override any GCC internal prototype to avoid an error.
20858 Use char because int might match the return type of a GCC
20859 builtin and then its argument prototype would still apply. */
20863 char krb_get_cred ();
20867 return krb_get_cred ();
20872 rm -f conftest.$ac_objext conftest$ac_exeext
20873 if { (ac_try="$ac_link"
20874 case "(($ac_try" in
20875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20876 *) ac_try_echo=$ac_try;;
20878 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20879 (eval "$ac_link") 2>conftest.er1
20881 grep -v '^ *+' conftest.er1 >conftest.err
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20885 (exit $ac_status); } && {
20886 test -z "$ac_c_werror_flag" ||
20887 test ! -s conftest.err
20888 } && test -s conftest$ac_exeext &&
20889 $as_test_x conftest$ac_exeext; then
20890 ac_cv_lib_krb4_krb_get_cred=yes
20892 echo "$as_me: failed program was
:" >&5
20893 sed 's/^/| /' conftest.$ac_ext >&5
20895 ac_cv_lib_krb4_krb_get_cred=no
20898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20899 conftest$ac_exeext conftest.$ac_ext
20900 LIBS=$ac_check_lib_save_LIBS
20902 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20903 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20904 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20905 cat >>confdefs.h <<_ACEOF
20906 #define HAVE_LIBKRB4 1
20909 LIBS="-lkrb4 $LIBS"
20913 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20914 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20915 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20916 echo $ECHO_N "(cached
) $ECHO_C" >&6
20918 ac_check_lib_save_LIBS=$LIBS
20920 cat >conftest.$ac_ext <<_ACEOF
20923 cat confdefs.h >>conftest.$ac_ext
20924 cat >>conftest.$ac_ext <<_ACEOF
20925 /* end confdefs.h. */
20927 /* Override any GCC internal prototype to avoid an error.
20928 Use char because int might match the return type of a GCC
20929 builtin and then its argument prototype would still apply. */
20933 char krb_get_cred ();
20937 return krb_get_cred ();
20942 rm -f conftest.$ac_objext conftest$ac_exeext
20943 if { (ac_try="$ac_link"
20944 case "(($ac_try" in
20945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20946 *) ac_try_echo=$ac_try;;
20948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20949 (eval "$ac_link") 2>conftest.er1
20951 grep -v '^ *+' conftest.er1 >conftest.err
20953 cat conftest.err >&5
20954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20955 (exit $ac_status); } && {
20956 test -z "$ac_c_werror_flag" ||
20957 test ! -s conftest.err
20958 } && test -s conftest$ac_exeext &&
20959 $as_test_x conftest$ac_exeext; then
20960 ac_cv_lib_krb_krb_get_cred=yes
20962 echo "$as_me: failed program was
:" >&5
20963 sed 's/^/| /' conftest.$ac_ext >&5
20965 ac_cv_lib_krb_krb_get_cred=no
20968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20969 conftest$ac_exeext conftest.$ac_ext
20970 LIBS=$ac_check_lib_save_LIBS
20972 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20973 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20974 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20975 cat >>confdefs.h <<_ACEOF
20976 #define HAVE_LIBKRB 1
20987 if test "${with_kerberos5}" != no; then
20989 for ac_header in krb5.h
20991 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20992 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20993 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20994 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20995 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20996 echo $ECHO_N "(cached
) $ECHO_C" >&6
20998 ac_res=`eval echo '${'$as_ac_Header'}'`
20999 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21000 echo "${ECHO_T}$ac_res" >&6; }
21002 # Is the header compilable?
21003 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21004 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21005 cat >conftest.$ac_ext <<_ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21011 $ac_includes_default
21012 #include <$ac_header>
21014 rm -f conftest.$ac_objext
21015 if { (ac_try="$ac_compile"
21016 case "(($ac_try" in
21017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21018 *) ac_try_echo=$ac_try;;
21020 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21021 (eval "$ac_compile") 2>conftest.er1
21023 grep -v '^ *+' conftest.er1 >conftest.err
21025 cat conftest.err >&5
21026 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21027 (exit $ac_status); } && {
21028 test -z "$ac_c_werror_flag" ||
21029 test ! -s conftest.err
21030 } && test -s conftest.$ac_objext; then
21031 ac_header_compiler=yes
21033 echo "$as_me: failed program was
:" >&5
21034 sed 's/^/| /' conftest.$ac_ext >&5
21036 ac_header_compiler=no
21039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21040 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21041 echo "${ECHO_T}$ac_header_compiler" >&6; }
21043 # Is the header present?
21044 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21045 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21046 cat >conftest.$ac_ext <<_ACEOF
21049 cat confdefs.h >>conftest.$ac_ext
21050 cat >>conftest.$ac_ext <<_ACEOF
21051 /* end confdefs.h. */
21052 #include <$ac_header>
21054 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21055 case "(($ac_try" in
21056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21057 *) ac_try_echo=$ac_try;;
21059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21060 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21062 grep -v '^ *+' conftest.er1 >conftest.err
21064 cat conftest.err >&5
21065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21066 (exit $ac_status); } >/dev/null && {
21067 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21068 test ! -s conftest.err
21070 ac_header_preproc=yes
21072 echo "$as_me: failed program was
:" >&5
21073 sed 's/^/| /' conftest.$ac_ext >&5
21075 ac_header_preproc=no
21078 rm -f conftest.err conftest.$ac_ext
21079 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21080 echo "${ECHO_T}$ac_header_preproc" >&6; }
21082 # So? What about this header?
21083 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21085 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21086 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21087 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21088 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21089 ac_header_preproc=yes
21092 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21093 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21094 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21095 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21096 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21097 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21098 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21099 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21100 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21101 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21102 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21103 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21107 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21108 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21109 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21110 echo $ECHO_N "(cached
) $ECHO_C" >&6
21112 eval "$as_ac_Header=\
$ac_header_preproc"
21114 ac_res=`eval echo '${'$as_ac_Header'}'`
21115 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21116 echo "${ECHO_T}$ac_res" >&6; }
21119 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21120 cat >>confdefs.h <<_ACEOF
21121 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21123 { echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
21124 echo $ECHO_N "checking
for krb5_error.text...
$ECHO_C" >&6; }
21125 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21126 echo $ECHO_N "(cached
) $ECHO_C" >&6
21128 cat >conftest.$ac_ext <<_ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h. */
21139 static krb5_error ac_aggr;
21146 rm -f conftest.$ac_objext
21147 if { (ac_try="$ac_compile"
21148 case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21152 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21153 (eval "$ac_compile") 2>conftest.er1
21155 grep -v '^ *+' conftest.er1 >conftest.err
21157 cat conftest.err >&5
21158 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21159 (exit $ac_status); } && {
21160 test -z "$ac_c_werror_flag" ||
21161 test ! -s conftest.err
21162 } && test -s conftest.$ac_objext; then
21163 ac_cv_member_krb5_error_text=yes
21165 echo "$as_me: failed program was
:" >&5
21166 sed 's/^/| /' conftest.$ac_ext >&5
21168 cat >conftest.$ac_ext <<_ACEOF
21171 cat confdefs.h >>conftest.$ac_ext
21172 cat >>conftest.$ac_ext <<_ACEOF
21173 /* end confdefs.h. */
21179 static krb5_error ac_aggr;
21180 if (sizeof ac_aggr.text)
21186 rm -f conftest.$ac_objext
21187 if { (ac_try="$ac_compile"
21188 case "(($ac_try" in
21189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21190 *) ac_try_echo=$ac_try;;
21192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21193 (eval "$ac_compile") 2>conftest.er1
21195 grep -v '^ *+' conftest.er1 >conftest.err
21197 cat conftest.err >&5
21198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21199 (exit $ac_status); } && {
21200 test -z "$ac_c_werror_flag" ||
21201 test ! -s conftest.err
21202 } && test -s conftest.$ac_objext; then
21203 ac_cv_member_krb5_error_text=yes
21205 echo "$as_me: failed program was
:" >&5
21206 sed 's/^/| /' conftest.$ac_ext >&5
21208 ac_cv_member_krb5_error_text=no
21211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21216 { echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
21217 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21218 if test $ac_cv_member_krb5_error_text = yes; then
21220 cat >>confdefs.h <<_ACEOF
21221 #define HAVE_KRB5_ERROR_TEXT 1
21226 { echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
21227 echo $ECHO_N "checking
for krb5_error.e_text...
$ECHO_C" >&6; }
21228 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21229 echo $ECHO_N "(cached
) $ECHO_C" >&6
21231 cat >conftest.$ac_ext <<_ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h. */
21242 static krb5_error ac_aggr;
21243 if (ac_aggr.e_text)
21249 rm -f conftest.$ac_objext
21250 if { (ac_try="$ac_compile"
21251 case "(($ac_try" in
21252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21256 (eval "$ac_compile") 2>conftest.er1
21258 grep -v '^ *+' conftest.er1 >conftest.err
21260 cat conftest.err >&5
21261 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21262 (exit $ac_status); } && {
21263 test -z "$ac_c_werror_flag" ||
21264 test ! -s conftest.err
21265 } && test -s conftest.$ac_objext; then
21266 ac_cv_member_krb5_error_e_text=yes
21268 echo "$as_me: failed program was
:" >&5
21269 sed 's/^/| /' conftest.$ac_ext >&5
21271 cat >conftest.$ac_ext <<_ACEOF
21274 cat confdefs.h >>conftest.$ac_ext
21275 cat >>conftest.$ac_ext <<_ACEOF
21276 /* end confdefs.h. */
21282 static krb5_error ac_aggr;
21283 if (sizeof ac_aggr.e_text)
21289 rm -f conftest.$ac_objext
21290 if { (ac_try="$ac_compile"
21291 case "(($ac_try" in
21292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21293 *) ac_try_echo=$ac_try;;
21295 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21296 (eval "$ac_compile") 2>conftest.er1
21298 grep -v '^ *+' conftest.er1 >conftest.err
21300 cat conftest.err >&5
21301 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21302 (exit $ac_status); } && {
21303 test -z "$ac_c_werror_flag" ||
21304 test ! -s conftest.err
21305 } && test -s conftest.$ac_objext; then
21306 ac_cv_member_krb5_error_e_text=yes
21308 echo "$as_me: failed program was
:" >&5
21309 sed 's/^/| /' conftest.$ac_ext >&5
21311 ac_cv_member_krb5_error_e_text=no
21314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21319 { echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
21320 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21321 if test $ac_cv_member_krb5_error_e_text = yes; then
21323 cat >>confdefs.h <<_ACEOF
21324 #define HAVE_KRB5_ERROR_E_TEXT 1
21336 for ac_header in des.h
21338 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21339 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21340 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21341 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21342 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21343 echo $ECHO_N "(cached
) $ECHO_C" >&6
21345 ac_res=`eval echo '${'$as_ac_Header'}'`
21346 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21347 echo "${ECHO_T}$ac_res" >&6; }
21349 # Is the header compilable?
21350 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21351 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21352 cat >conftest.$ac_ext <<_ACEOF
21355 cat confdefs.h >>conftest.$ac_ext
21356 cat >>conftest.$ac_ext <<_ACEOF
21357 /* end confdefs.h. */
21358 $ac_includes_default
21359 #include <$ac_header>
21361 rm -f conftest.$ac_objext
21362 if { (ac_try="$ac_compile"
21363 case "(($ac_try" in
21364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21365 *) ac_try_echo=$ac_try;;
21367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21368 (eval "$ac_compile") 2>conftest.er1
21370 grep -v '^ *+' conftest.er1 >conftest.err
21372 cat conftest.err >&5
21373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21374 (exit $ac_status); } && {
21375 test -z "$ac_c_werror_flag" ||
21376 test ! -s conftest.err
21377 } && test -s conftest.$ac_objext; then
21378 ac_header_compiler=yes
21380 echo "$as_me: failed program was
:" >&5
21381 sed 's/^/| /' conftest.$ac_ext >&5
21383 ac_header_compiler=no
21386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21387 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21388 echo "${ECHO_T}$ac_header_compiler" >&6; }
21390 # Is the header present?
21391 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21392 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21393 cat >conftest.$ac_ext <<_ACEOF
21396 cat confdefs.h >>conftest.$ac_ext
21397 cat >>conftest.$ac_ext <<_ACEOF
21398 /* end confdefs.h. */
21399 #include <$ac_header>
21401 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21402 case "(($ac_try" in
21403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21404 *) ac_try_echo=$ac_try;;
21406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21407 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21409 grep -v '^ *+' conftest.er1 >conftest.err
21411 cat conftest.err >&5
21412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21413 (exit $ac_status); } >/dev/null && {
21414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21415 test ! -s conftest.err
21417 ac_header_preproc=yes
21419 echo "$as_me: failed program was
:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21422 ac_header_preproc=no
21425 rm -f conftest.err conftest.$ac_ext
21426 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21427 echo "${ECHO_T}$ac_header_preproc" >&6; }
21429 # So? What about this header?
21430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21432 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21433 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21434 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21435 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21436 ac_header_preproc=yes
21439 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21440 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21441 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21442 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21443 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21444 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21445 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21446 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21447 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21448 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21449 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21450 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21454 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21455 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21456 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21457 echo $ECHO_N "(cached
) $ECHO_C" >&6
21459 eval "$as_ac_Header=\
$ac_header_preproc"
21461 ac_res=`eval echo '${'$as_ac_Header'}'`
21462 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21463 echo "${ECHO_T}$ac_res" >&6; }
21466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21467 cat >>confdefs.h <<_ACEOF
21468 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21473 for ac_header in kerberosIV/des.h
21475 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21476 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21477 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21478 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21479 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21480 echo $ECHO_N "(cached
) $ECHO_C" >&6
21482 ac_res=`eval echo '${'$as_ac_Header'}'`
21483 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21484 echo "${ECHO_T}$ac_res" >&6; }
21486 # Is the header compilable?
21487 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21488 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21489 cat >conftest.$ac_ext <<_ACEOF
21492 cat confdefs.h >>conftest.$ac_ext
21493 cat >>conftest.$ac_ext <<_ACEOF
21494 /* end confdefs.h. */
21495 $ac_includes_default
21496 #include <$ac_header>
21498 rm -f conftest.$ac_objext
21499 if { (ac_try="$ac_compile"
21500 case "(($ac_try" in
21501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21502 *) ac_try_echo=$ac_try;;
21504 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21505 (eval "$ac_compile") 2>conftest.er1
21507 grep -v '^ *+' conftest.er1 >conftest.err
21509 cat conftest.err >&5
21510 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21511 (exit $ac_status); } && {
21512 test -z "$ac_c_werror_flag" ||
21513 test ! -s conftest.err
21514 } && test -s conftest.$ac_objext; then
21515 ac_header_compiler=yes
21517 echo "$as_me: failed program was
:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21520 ac_header_compiler=no
21523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21524 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21525 echo "${ECHO_T}$ac_header_compiler" >&6; }
21527 # Is the header present?
21528 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21529 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21530 cat >conftest.$ac_ext <<_ACEOF
21533 cat confdefs.h >>conftest.$ac_ext
21534 cat >>conftest.$ac_ext <<_ACEOF
21535 /* end confdefs.h. */
21536 #include <$ac_header>
21538 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21539 case "(($ac_try" in
21540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21541 *) ac_try_echo=$ac_try;;
21543 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21544 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21546 grep -v '^ *+' conftest.er1 >conftest.err
21548 cat conftest.err >&5
21549 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21550 (exit $ac_status); } >/dev/null && {
21551 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21552 test ! -s conftest.err
21554 ac_header_preproc=yes
21556 echo "$as_me: failed program was
:" >&5
21557 sed 's/^/| /' conftest.$ac_ext >&5
21559 ac_header_preproc=no
21562 rm -f conftest.err conftest.$ac_ext
21563 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21564 echo "${ECHO_T}$ac_header_preproc" >&6; }
21566 # So? What about this header?
21567 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21569 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21570 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21571 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21572 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21573 ac_header_preproc=yes
21576 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21577 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21578 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21579 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21580 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21581 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21582 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21583 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21584 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21585 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21586 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21587 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21591 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21592 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21593 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21594 echo $ECHO_N "(cached
) $ECHO_C" >&6
21596 eval "$as_ac_Header=\
$ac_header_preproc"
21598 ac_res=`eval echo '${'$as_ac_Header'}'`
21599 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21600 echo "${ECHO_T}$ac_res" >&6; }
21603 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21604 cat >>confdefs.h <<_ACEOF
21605 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21610 for ac_header in kerberos/des.h
21612 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21613 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21614 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21615 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21616 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21617 echo $ECHO_N "(cached
) $ECHO_C" >&6
21619 ac_res=`eval echo '${'$as_ac_Header'}'`
21620 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21621 echo "${ECHO_T}$ac_res" >&6; }
21623 # Is the header compilable?
21624 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21625 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21626 cat >conftest.$ac_ext <<_ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h. */
21632 $ac_includes_default
21633 #include <$ac_header>
21635 rm -f conftest.$ac_objext
21636 if { (ac_try="$ac_compile"
21637 case "(($ac_try" in
21638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21639 *) ac_try_echo=$ac_try;;
21641 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21642 (eval "$ac_compile") 2>conftest.er1
21644 grep -v '^ *+' conftest.er1 >conftest.err
21646 cat conftest.err >&5
21647 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21648 (exit $ac_status); } && {
21649 test -z "$ac_c_werror_flag" ||
21650 test ! -s conftest.err
21651 } && test -s conftest.$ac_objext; then
21652 ac_header_compiler=yes
21654 echo "$as_me: failed program was
:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21657 ac_header_compiler=no
21660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21661 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21662 echo "${ECHO_T}$ac_header_compiler" >&6; }
21664 # Is the header present?
21665 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21666 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21667 cat >conftest.$ac_ext <<_ACEOF
21670 cat confdefs.h >>conftest.$ac_ext
21671 cat >>conftest.$ac_ext <<_ACEOF
21672 /* end confdefs.h. */
21673 #include <$ac_header>
21675 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21676 case "(($ac_try" in
21677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21678 *) ac_try_echo=$ac_try;;
21680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21681 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21683 grep -v '^ *+' conftest.er1 >conftest.err
21685 cat conftest.err >&5
21686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21687 (exit $ac_status); } >/dev/null && {
21688 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21689 test ! -s conftest.err
21691 ac_header_preproc=yes
21693 echo "$as_me: failed program was
:" >&5
21694 sed 's/^/| /' conftest.$ac_ext >&5
21696 ac_header_preproc=no
21699 rm -f conftest.err conftest.$ac_ext
21700 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21701 echo "${ECHO_T}$ac_header_preproc" >&6; }
21703 # So? What about this header?
21704 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21706 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21707 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21708 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21709 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21710 ac_header_preproc=yes
21713 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21714 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21715 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21716 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21717 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21718 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21719 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21720 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21721 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21722 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21723 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21724 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21728 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21729 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21730 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21731 echo $ECHO_N "(cached
) $ECHO_C" >&6
21733 eval "$as_ac_Header=\
$ac_header_preproc"
21735 ac_res=`eval echo '${'$as_ac_Header'}'`
21736 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21737 echo "${ECHO_T}$ac_res" >&6; }
21740 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21741 cat >>confdefs.h <<_ACEOF
21742 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21758 for ac_header in krb.h
21760 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21761 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21762 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21763 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21764 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21765 echo $ECHO_N "(cached
) $ECHO_C" >&6
21767 ac_res=`eval echo '${'$as_ac_Header'}'`
21768 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21769 echo "${ECHO_T}$ac_res" >&6; }
21771 # Is the header compilable?
21772 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21773 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21774 cat >conftest.$ac_ext <<_ACEOF
21777 cat confdefs.h >>conftest.$ac_ext
21778 cat >>conftest.$ac_ext <<_ACEOF
21779 /* end confdefs.h. */
21780 $ac_includes_default
21781 #include <$ac_header>
21783 rm -f conftest.$ac_objext
21784 if { (ac_try="$ac_compile"
21785 case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_compile") 2>conftest.er1
21792 grep -v '^ *+' conftest.er1 >conftest.err
21794 cat conftest.err >&5
21795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21796 (exit $ac_status); } && {
21797 test -z "$ac_c_werror_flag" ||
21798 test ! -s conftest.err
21799 } && test -s conftest.$ac_objext; then
21800 ac_header_compiler=yes
21802 echo "$as_me: failed program was
:" >&5
21803 sed 's/^/| /' conftest.$ac_ext >&5
21805 ac_header_compiler=no
21808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21809 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21810 echo "${ECHO_T}$ac_header_compiler" >&6; }
21812 # Is the header present?
21813 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21814 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21815 cat >conftest.$ac_ext <<_ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21821 #include <$ac_header>
21823 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21824 case "(($ac_try" in
21825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21826 *) ac_try_echo=$ac_try;;
21828 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21829 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21831 grep -v '^ *+' conftest.er1 >conftest.err
21833 cat conftest.err >&5
21834 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21835 (exit $ac_status); } >/dev/null && {
21836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21837 test ! -s conftest.err
21839 ac_header_preproc=yes
21841 echo "$as_me: failed program was
:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21844 ac_header_preproc=no
21847 rm -f conftest.err conftest.$ac_ext
21848 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21849 echo "${ECHO_T}$ac_header_preproc" >&6; }
21851 # So? What about this header?
21852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21854 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21855 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21856 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21857 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21858 ac_header_preproc=yes
21861 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21862 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21863 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21864 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21865 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21866 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21867 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21868 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21869 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21870 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21871 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21872 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21876 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21877 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21878 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21879 echo $ECHO_N "(cached
) $ECHO_C" >&6
21881 eval "$as_ac_Header=\
$ac_header_preproc"
21883 ac_res=`eval echo '${'$as_ac_Header'}'`
21884 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21885 echo "${ECHO_T}$ac_res" >&6; }
21888 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21889 cat >>confdefs.h <<_ACEOF
21890 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21895 for ac_header in kerberosIV/krb.h
21897 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21898 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21899 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21900 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21901 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21902 echo $ECHO_N "(cached
) $ECHO_C" >&6
21904 ac_res=`eval echo '${'$as_ac_Header'}'`
21905 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21906 echo "${ECHO_T}$ac_res" >&6; }
21908 # Is the header compilable?
21909 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21910 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21911 cat >conftest.$ac_ext <<_ACEOF
21914 cat confdefs.h >>conftest.$ac_ext
21915 cat >>conftest.$ac_ext <<_ACEOF
21916 /* end confdefs.h. */
21917 $ac_includes_default
21918 #include <$ac_header>
21920 rm -f conftest.$ac_objext
21921 if { (ac_try="$ac_compile"
21922 case "(($ac_try" in
21923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21924 *) ac_try_echo=$ac_try;;
21926 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21927 (eval "$ac_compile") 2>conftest.er1
21929 grep -v '^ *+' conftest.er1 >conftest.err
21931 cat conftest.err >&5
21932 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21933 (exit $ac_status); } && {
21934 test -z "$ac_c_werror_flag" ||
21935 test ! -s conftest.err
21936 } && test -s conftest.$ac_objext; then
21937 ac_header_compiler=yes
21939 echo "$as_me: failed program was
:" >&5
21940 sed 's/^/| /' conftest.$ac_ext >&5
21942 ac_header_compiler=no
21945 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21946 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21947 echo "${ECHO_T}$ac_header_compiler" >&6; }
21949 # Is the header present?
21950 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21951 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21952 cat >conftest.$ac_ext <<_ACEOF
21955 cat confdefs.h >>conftest.$ac_ext
21956 cat >>conftest.$ac_ext <<_ACEOF
21957 /* end confdefs.h. */
21958 #include <$ac_header>
21960 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21961 case "(($ac_try" in
21962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21963 *) ac_try_echo=$ac_try;;
21965 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21966 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21968 grep -v '^ *+' conftest.er1 >conftest.err
21970 cat conftest.err >&5
21971 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21972 (exit $ac_status); } >/dev/null && {
21973 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21974 test ! -s conftest.err
21976 ac_header_preproc=yes
21978 echo "$as_me: failed program was
:" >&5
21979 sed 's/^/| /' conftest.$ac_ext >&5
21981 ac_header_preproc=no
21984 rm -f conftest.err conftest.$ac_ext
21985 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21986 echo "${ECHO_T}$ac_header_preproc" >&6; }
21988 # So? What about this header?
21989 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21991 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21992 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21993 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21994 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21995 ac_header_preproc=yes
21998 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21999 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22000 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22001 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22002 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22003 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22004 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22005 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22006 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22007 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22008 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22009 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22013 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22014 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22015 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22016 echo $ECHO_N "(cached
) $ECHO_C" >&6
22018 eval "$as_ac_Header=\
$ac_header_preproc"
22020 ac_res=`eval echo '${'$as_ac_Header'}'`
22021 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22022 echo "${ECHO_T}$ac_res" >&6; }
22025 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22026 cat >>confdefs.h <<_ACEOF
22027 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22032 for ac_header in kerberos/krb.h
22034 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22035 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22036 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22037 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22038 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22039 echo $ECHO_N "(cached
) $ECHO_C" >&6
22041 ac_res=`eval echo '${'$as_ac_Header'}'`
22042 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22043 echo "${ECHO_T}$ac_res" >&6; }
22045 # Is the header compilable?
22046 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22047 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22048 cat >conftest.$ac_ext <<_ACEOF
22051 cat confdefs.h >>conftest.$ac_ext
22052 cat >>conftest.$ac_ext <<_ACEOF
22053 /* end confdefs.h. */
22054 $ac_includes_default
22055 #include <$ac_header>
22057 rm -f conftest.$ac_objext
22058 if { (ac_try="$ac_compile"
22059 case "(($ac_try" in
22060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22061 *) ac_try_echo=$ac_try;;
22063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22064 (eval "$ac_compile") 2>conftest.er1
22066 grep -v '^ *+' conftest.er1 >conftest.err
22068 cat conftest.err >&5
22069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22070 (exit $ac_status); } && {
22071 test -z "$ac_c_werror_flag" ||
22072 test ! -s conftest.err
22073 } && test -s conftest.$ac_objext; then
22074 ac_header_compiler=yes
22076 echo "$as_me: failed program was
:" >&5
22077 sed 's/^/| /' conftest.$ac_ext >&5
22079 ac_header_compiler=no
22082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22083 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22084 echo "${ECHO_T}$ac_header_compiler" >&6; }
22086 # Is the header present?
22087 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22088 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22089 cat >conftest.$ac_ext <<_ACEOF
22092 cat confdefs.h >>conftest.$ac_ext
22093 cat >>conftest.$ac_ext <<_ACEOF
22094 /* end confdefs.h. */
22095 #include <$ac_header>
22097 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22098 case "(($ac_try" in
22099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100 *) ac_try_echo=$ac_try;;
22102 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22103 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22105 grep -v '^ *+' conftest.er1 >conftest.err
22107 cat conftest.err >&5
22108 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22109 (exit $ac_status); } >/dev/null && {
22110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22111 test ! -s conftest.err
22113 ac_header_preproc=yes
22115 echo "$as_me: failed program was
:" >&5
22116 sed 's/^/| /' conftest.$ac_ext >&5
22118 ac_header_preproc=no
22121 rm -f conftest.err conftest.$ac_ext
22122 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22123 echo "${ECHO_T}$ac_header_preproc" >&6; }
22125 # So? What about this header?
22126 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22128 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22129 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22130 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22131 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22132 ac_header_preproc=yes
22135 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22136 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22137 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22138 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22139 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22140 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22141 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22142 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22143 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22144 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22145 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22146 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22150 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22151 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22152 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22153 echo $ECHO_N "(cached
) $ECHO_C" >&6
22155 eval "$as_ac_Header=\
$ac_header_preproc"
22157 ac_res=`eval echo '${'$as_ac_Header'}'`
22158 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22159 echo "${ECHO_T}$ac_res" >&6; }
22162 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22163 cat >>confdefs.h <<_ACEOF
22164 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22181 for ac_header in com_err.h
22183 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22184 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22185 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22186 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22187 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22188 echo $ECHO_N "(cached
) $ECHO_C" >&6
22190 ac_res=`eval echo '${'$as_ac_Header'}'`
22191 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22192 echo "${ECHO_T}$ac_res" >&6; }
22194 # Is the header compilable?
22195 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22196 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22197 cat >conftest.$ac_ext <<_ACEOF
22200 cat confdefs.h >>conftest.$ac_ext
22201 cat >>conftest.$ac_ext <<_ACEOF
22202 /* end confdefs.h. */
22203 $ac_includes_default
22204 #include <$ac_header>
22206 rm -f conftest.$ac_objext
22207 if { (ac_try="$ac_compile"
22208 case "(($ac_try" in
22209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22210 *) ac_try_echo=$ac_try;;
22212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22213 (eval "$ac_compile") 2>conftest.er1
22215 grep -v '^ *+' conftest.er1 >conftest.err
22217 cat conftest.err >&5
22218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22219 (exit $ac_status); } && {
22220 test -z "$ac_c_werror_flag" ||
22221 test ! -s conftest.err
22222 } && test -s conftest.$ac_objext; then
22223 ac_header_compiler=yes
22225 echo "$as_me: failed program was
:" >&5
22226 sed 's/^/| /' conftest.$ac_ext >&5
22228 ac_header_compiler=no
22231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22232 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22233 echo "${ECHO_T}$ac_header_compiler" >&6; }
22235 # Is the header present?
22236 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22237 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22238 cat >conftest.$ac_ext <<_ACEOF
22241 cat confdefs.h >>conftest.$ac_ext
22242 cat >>conftest.$ac_ext <<_ACEOF
22243 /* end confdefs.h. */
22244 #include <$ac_header>
22246 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22247 case "(($ac_try" in
22248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22249 *) ac_try_echo=$ac_try;;
22251 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22252 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22254 grep -v '^ *+' conftest.er1 >conftest.err
22256 cat conftest.err >&5
22257 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22258 (exit $ac_status); } >/dev/null && {
22259 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22260 test ! -s conftest.err
22262 ac_header_preproc=yes
22264 echo "$as_me: failed program was
:" >&5
22265 sed 's/^/| /' conftest.$ac_ext >&5
22267 ac_header_preproc=no
22270 rm -f conftest.err conftest.$ac_ext
22271 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22272 echo "${ECHO_T}$ac_header_preproc" >&6; }
22274 # So? What about this header?
22275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22277 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22278 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22279 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22280 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22281 ac_header_preproc=yes
22284 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22285 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22286 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22287 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22288 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22289 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22290 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22291 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22292 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22293 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22294 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22295 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22299 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22300 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22301 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22302 echo $ECHO_N "(cached
) $ECHO_C" >&6
22304 eval "$as_ac_Header=\
$ac_header_preproc"
22306 ac_res=`eval echo '${'$as_ac_Header'}'`
22307 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22308 echo "${ECHO_T}$ac_res" >&6; }
22311 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22312 cat >>confdefs.h <<_ACEOF
22313 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22322 # Solaris requires -lintl if you want strerror (which calls dgettext)
22323 # to return localized messages.
22325 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22326 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22327 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22328 echo $ECHO_N "(cached
) $ECHO_C" >&6
22330 ac_check_lib_save_LIBS=$LIBS
22331 LIBS="-lintl $LIBS"
22332 cat >conftest.$ac_ext <<_ACEOF
22335 cat confdefs.h >>conftest.$ac_ext
22336 cat >>conftest.$ac_ext <<_ACEOF
22337 /* end confdefs.h. */
22339 /* Override any GCC internal prototype to avoid an error.
22340 Use char because int might match the return type of a GCC
22341 builtin and then its argument prototype would still apply. */
22349 return dgettext ();
22354 rm -f conftest.$ac_objext conftest$ac_exeext
22355 if { (ac_try="$ac_link"
22356 case "(($ac_try" in
22357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22358 *) ac_try_echo=$ac_try;;
22360 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22361 (eval "$ac_link") 2>conftest.er1
22363 grep -v '^ *+' conftest.er1 >conftest.err
22365 cat conftest.err >&5
22366 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22367 (exit $ac_status); } && {
22368 test -z "$ac_c_werror_flag" ||
22369 test ! -s conftest.err
22370 } && test -s conftest$ac_exeext &&
22371 $as_test_x conftest$ac_exeext; then
22372 ac_cv_lib_intl_dgettext=yes
22374 echo "$as_me: failed program was
:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22377 ac_cv_lib_intl_dgettext=no
22380 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22381 conftest$ac_exeext conftest.$ac_ext
22382 LIBS=$ac_check_lib_save_LIBS
22384 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22385 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22386 if test $ac_cv_lib_intl_dgettext = yes; then
22387 cat >>confdefs.h <<_ACEOF
22388 #define HAVE_LIBINTL 1
22391 LIBS="-lintl $LIBS"
22396 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22397 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22398 if test "${emacs_cv_localtime_cache+set}" = set; then
22399 echo $ECHO_N "(cached
) $ECHO_C" >&6
22401 if test x$ac_cv_func_tzset = xyes; then
22402 if test "$cross_compiling" = yes; then
22403 # If we have tzset, assume the worst when cross-compiling.
22404 emacs_cv_localtime_cache=yes
22406 cat >conftest.$ac_ext <<_ACEOF
22409 cat confdefs.h >>conftest.$ac_ext
22410 cat >>conftest.$ac_ext <<_ACEOF
22411 /* end confdefs.h. */
22413 extern char **environ;
22417 for (to = from = environ; (*to = *from); from++)
22418 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22421 char TZ_GMT0[] = "TZ
=GMT0
";
22422 char TZ_PST8[] = "TZ
=PST8
";
22425 time_t now = time ((time_t *) 0);
22426 int hour_GMT0, hour_unset;
22427 if (putenv (TZ_GMT0) != 0)
22429 hour_GMT0 = localtime (&now)->tm_hour;
22431 hour_unset = localtime (&now)->tm_hour;
22432 if (putenv (TZ_PST8) != 0)
22434 if (localtime (&now)->tm_hour == hour_GMT0)
22437 if (localtime (&now)->tm_hour != hour_unset)
22442 rm -f 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>&5
22451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22452 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22453 { (case "(($ac_try" in
22454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22455 *) ac_try_echo=$ac_try;;
22457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22458 (eval "$ac_try") 2>&5
22460 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22461 (exit $ac_status); }; }; then
22462 emacs_cv_localtime_cache=no
22464 echo "$as_me: program exited with status
$ac_status" >&5
22465 echo "$as_me: failed program was
:" >&5
22466 sed 's/^/| /' conftest.$ac_ext >&5
22468 ( exit $ac_status )
22469 emacs_cv_localtime_cache=yes
22471 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22476 # If we lack tzset, report that localtime does not cache TZ,
22477 # since we can't invalidate the cache if we don't have tzset.
22478 emacs_cv_localtime_cache=no
22481 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22482 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22483 if test $emacs_cv_localtime_cache = yes; then
22485 cat >>confdefs.h <<\_ACEOF
22486 #define LOCALTIME_CACHE 1
22491 if test "x
$HAVE_TIMEVAL" = xyes; then
22493 for ac_func in gettimeofday
22495 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22496 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22497 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22498 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22499 echo $ECHO_N "(cached
) $ECHO_C" >&6
22501 cat >conftest.$ac_ext <<_ACEOF
22504 cat confdefs.h >>conftest.$ac_ext
22505 cat >>conftest.$ac_ext <<_ACEOF
22506 /* end confdefs.h. */
22507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22509 #define $ac_func innocuous_$ac_func
22511 /* System header to define __stub macros and hopefully few prototypes,
22512 which can conflict with char $ac_func (); below.
22513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22514 <limits.h> exists even on freestanding compilers. */
22517 # include <limits.h>
22519 # include <assert.h>
22524 /* Override any GCC internal prototype to avoid an error.
22525 Use char because int might match the return type of a GCC
22526 builtin and then its argument prototype would still apply. */
22531 /* The GNU C library defines this for functions which it implements
22532 to always fail with ENOSYS. Some functions are actually named
22533 something starting with __ and the normal name is an alias. */
22534 #if defined __stub_$ac_func || defined __stub___$ac_func
22541 return $ac_func ();
22546 rm -f conftest.$ac_objext conftest$ac_exeext
22547 if { (ac_try="$ac_link"
22548 case "(($ac_try" in
22549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22550 *) ac_try_echo=$ac_try;;
22552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22553 (eval "$ac_link") 2>conftest.er1
22555 grep -v '^ *+' conftest.er1 >conftest.err
22557 cat conftest.err >&5
22558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22559 (exit $ac_status); } && {
22560 test -z "$ac_c_werror_flag" ||
22561 test ! -s conftest.err
22562 } && test -s conftest$ac_exeext &&
22563 $as_test_x conftest$ac_exeext; then
22564 eval "$as_ac_var=yes"
22566 echo "$as_me: failed program was
:" >&5
22567 sed 's/^/| /' conftest.$ac_ext >&5
22569 eval "$as_ac_var=no
"
22572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22573 conftest$ac_exeext conftest.$ac_ext
22575 ac_res=`eval echo '${'$as_ac_var'}'`
22576 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22577 echo "${ECHO_T}$ac_res" >&6; }
22578 if test `eval echo '${'$as_ac_var'}'` = yes; then
22579 cat >>confdefs.h <<_ACEOF
22580 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22586 if test $ac_cv_func_gettimeofday = yes; then
22587 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22588 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22589 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22590 echo $ECHO_N "(cached
) $ECHO_C" >&6
22592 cat >conftest.$ac_ext <<_ACEOF
22595 cat confdefs.h >>conftest.$ac_ext
22596 cat >>conftest.$ac_ext <<_ACEOF
22597 /* end confdefs.h. */
22599 #ifdef TIME_WITH_SYS_TIME
22600 #include <sys/time.h>
22603 #ifdef HAVE_SYS_TIME_H
22604 #include <sys/time.h>
22612 struct timeval time;
22613 gettimeofday (&time, 0);
22618 rm -f conftest.$ac_objext
22619 if { (ac_try="$ac_compile"
22620 case "(($ac_try" in
22621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22622 *) ac_try_echo=$ac_try;;
22624 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22625 (eval "$ac_compile") 2>conftest.er1
22627 grep -v '^ *+' conftest.er1 >conftest.err
22629 cat conftest.err >&5
22630 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22631 (exit $ac_status); } && {
22632 test -z "$ac_c_werror_flag" ||
22633 test ! -s conftest.err
22634 } && test -s conftest.$ac_objext; then
22635 emacs_cv_gettimeofday_two_arguments=yes
22637 echo "$as_me: failed program was
:" >&5
22638 sed 's/^/| /' conftest.$ac_ext >&5
22640 emacs_cv_gettimeofday_two_arguments=no
22643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22645 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22646 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22647 if test $emacs_cv_gettimeofday_two_arguments = no; then
22649 cat >>confdefs.h <<\_ACEOF
22650 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22658 { echo "$as_me:$LINENO: checking
for socket
" >&5
22659 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22660 if test "${ac_cv_func_socket+set}" = set; then
22661 echo $ECHO_N "(cached
) $ECHO_C" >&6
22663 cat >conftest.$ac_ext <<_ACEOF
22666 cat confdefs.h >>conftest.$ac_ext
22667 cat >>conftest.$ac_ext <<_ACEOF
22668 /* end confdefs.h. */
22669 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22671 #define socket innocuous_socket
22673 /* System header to define __stub macros and hopefully few prototypes,
22674 which can conflict with char socket (); below.
22675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22676 <limits.h> exists even on freestanding compilers. */
22679 # include <limits.h>
22681 # include <assert.h>
22686 /* Override any GCC internal prototype to avoid an error.
22687 Use char because int might match the return type of a GCC
22688 builtin and then its argument prototype would still apply. */
22693 /* The GNU C library defines this for functions which it implements
22694 to always fail with ENOSYS. Some functions are actually named
22695 something starting with __ and the normal name is an alias. */
22696 #if defined __stub_socket || defined __stub___socket
22708 rm -f conftest.$ac_objext conftest$ac_exeext
22709 if { (ac_try="$ac_link"
22710 case "(($ac_try" in
22711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22712 *) ac_try_echo=$ac_try;;
22714 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22715 (eval "$ac_link") 2>conftest.er1
22717 grep -v '^ *+' conftest.er1 >conftest.err
22719 cat conftest.err >&5
22720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22721 (exit $ac_status); } && {
22722 test -z "$ac_c_werror_flag" ||
22723 test ! -s conftest.err
22724 } && test -s conftest$ac_exeext &&
22725 $as_test_x conftest$ac_exeext; then
22726 ac_cv_func_socket=yes
22728 echo "$as_me: failed program was
:" >&5
22729 sed 's/^/| /' conftest.$ac_ext >&5
22731 ac_cv_func_socket=no
22734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22735 conftest$ac_exeext conftest.$ac_ext
22737 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22738 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22739 if test $ac_cv_func_socket = yes; then
22745 if test $ok_so_far = yes; then
22746 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22747 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22748 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22749 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22750 echo $ECHO_N "(cached
) $ECHO_C" >&6
22752 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22753 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22755 # Is the header compilable?
22756 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22757 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22758 cat >conftest.$ac_ext <<_ACEOF
22761 cat confdefs.h >>conftest.$ac_ext
22762 cat >>conftest.$ac_ext <<_ACEOF
22763 /* end confdefs.h. */
22764 $ac_includes_default
22765 #include <netinet/in.h>
22767 rm -f conftest.$ac_objext
22768 if { (ac_try="$ac_compile"
22769 case "(($ac_try" in
22770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22771 *) ac_try_echo=$ac_try;;
22773 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22774 (eval "$ac_compile") 2>conftest.er1
22776 grep -v '^ *+' conftest.er1 >conftest.err
22778 cat conftest.err >&5
22779 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22780 (exit $ac_status); } && {
22781 test -z "$ac_c_werror_flag" ||
22782 test ! -s conftest.err
22783 } && test -s conftest.$ac_objext; then
22784 ac_header_compiler=yes
22786 echo "$as_me: failed program was
:" >&5
22787 sed 's/^/| /' conftest.$ac_ext >&5
22789 ac_header_compiler=no
22792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22793 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22794 echo "${ECHO_T}$ac_header_compiler" >&6; }
22796 # Is the header present?
22797 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22798 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22799 cat >conftest.$ac_ext <<_ACEOF
22802 cat confdefs.h >>conftest.$ac_ext
22803 cat >>conftest.$ac_ext <<_ACEOF
22804 /* end confdefs.h. */
22805 #include <netinet/in.h>
22807 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22808 case "(($ac_try" in
22809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22810 *) ac_try_echo=$ac_try;;
22812 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22813 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22815 grep -v '^ *+' conftest.er1 >conftest.err
22817 cat conftest.err >&5
22818 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22819 (exit $ac_status); } >/dev/null && {
22820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22821 test ! -s conftest.err
22823 ac_header_preproc=yes
22825 echo "$as_me: failed program was
:" >&5
22826 sed 's/^/| /' conftest.$ac_ext >&5
22828 ac_header_preproc=no
22831 rm -f conftest.err conftest.$ac_ext
22832 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22833 echo "${ECHO_T}$ac_header_preproc" >&6; }
22835 # So? What about this header?
22836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22838 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22839 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22840 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22841 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22842 ac_header_preproc=yes
22845 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22846 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22847 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22848 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22849 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22850 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22851 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22852 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22853 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22854 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22855 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22856 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22860 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22861 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22862 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22863 echo $ECHO_N "(cached
) $ECHO_C" >&6
22865 ac_cv_header_netinet_in_h=$ac_header_preproc
22867 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22868 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22871 if test $ac_cv_header_netinet_in_h = yes; then
22879 if test $ok_so_far = yes; then
22880 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22881 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22882 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22883 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22884 echo $ECHO_N "(cached
) $ECHO_C" >&6
22886 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22887 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22889 # Is the header compilable?
22890 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22891 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22892 cat >conftest.$ac_ext <<_ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 $ac_includes_default
22899 #include <arpa/inet.h>
22901 rm -f conftest.$ac_objext
22902 if { (ac_try="$ac_compile"
22903 case "(($ac_try" in
22904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22905 *) ac_try_echo=$ac_try;;
22907 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22908 (eval "$ac_compile") 2>conftest.er1
22910 grep -v '^ *+' conftest.er1 >conftest.err
22912 cat conftest.err >&5
22913 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22914 (exit $ac_status); } && {
22915 test -z "$ac_c_werror_flag" ||
22916 test ! -s conftest.err
22917 } && test -s conftest.$ac_objext; then
22918 ac_header_compiler=yes
22920 echo "$as_me: failed program was
:" >&5
22921 sed 's/^/| /' conftest.$ac_ext >&5
22923 ac_header_compiler=no
22926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22927 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22928 echo "${ECHO_T}$ac_header_compiler" >&6; }
22930 # Is the header present?
22931 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22932 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22933 cat >conftest.$ac_ext <<_ACEOF
22936 cat confdefs.h >>conftest.$ac_ext
22937 cat >>conftest.$ac_ext <<_ACEOF
22938 /* end confdefs.h. */
22939 #include <arpa/inet.h>
22941 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22942 case "(($ac_try" in
22943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22944 *) ac_try_echo=$ac_try;;
22946 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22947 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22949 grep -v '^ *+' conftest.er1 >conftest.err
22951 cat conftest.err >&5
22952 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22953 (exit $ac_status); } >/dev/null && {
22954 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22955 test ! -s conftest.err
22957 ac_header_preproc=yes
22959 echo "$as_me: failed program was
:" >&5
22960 sed 's/^/| /' conftest.$ac_ext >&5
22962 ac_header_preproc=no
22965 rm -f conftest.err conftest.$ac_ext
22966 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22967 echo "${ECHO_T}$ac_header_preproc" >&6; }
22969 # So? What about this header?
22970 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22972 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22973 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22974 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22975 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22976 ac_header_preproc=yes
22979 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22980 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22981 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22982 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22983 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22984 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22985 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22986 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22987 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22988 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22989 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22990 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22994 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22995 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22996 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22997 echo $ECHO_N "(cached
) $ECHO_C" >&6
22999 ac_cv_header_arpa_inet_h=$ac_header_preproc
23001 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
23002 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23005 if test $ac_cv_header_arpa_inet_h = yes; then
23013 if test $ok_so_far = yes; then
23015 cat >>confdefs.h <<\_ACEOF
23016 #define HAVE_INET_SOCKETS 1
23022 for ac_header in sys/ioctl.h
23024 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23025 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23026 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23027 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23028 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23029 echo $ECHO_N "(cached
) $ECHO_C" >&6
23031 ac_res=`eval echo '${'$as_ac_Header'}'`
23032 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23033 echo "${ECHO_T}$ac_res" >&6; }
23035 # Is the header compilable?
23036 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23037 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23038 cat >conftest.$ac_ext <<_ACEOF
23041 cat confdefs.h >>conftest.$ac_ext
23042 cat >>conftest.$ac_ext <<_ACEOF
23043 /* end confdefs.h. */
23044 $ac_includes_default
23045 #include <$ac_header>
23047 rm -f conftest.$ac_objext
23048 if { (ac_try="$ac_compile"
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_compile") 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); } && {
23061 test -z "$ac_c_werror_flag" ||
23062 test ! -s conftest.err
23063 } && test -s conftest.$ac_objext; then
23064 ac_header_compiler=yes
23066 echo "$as_me: failed program was
:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23069 ac_header_compiler=no
23072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23073 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23074 echo "${ECHO_T}$ac_header_compiler" >&6; }
23076 # Is the header present?
23077 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23078 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23079 cat >conftest.$ac_ext <<_ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h. */
23085 #include <$ac_header>
23087 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23088 case "(($ac_try" in
23089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23090 *) ac_try_echo=$ac_try;;
23092 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23093 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23095 grep -v '^ *+' conftest.er1 >conftest.err
23097 cat conftest.err >&5
23098 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23099 (exit $ac_status); } >/dev/null && {
23100 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23101 test ! -s conftest.err
23103 ac_header_preproc=yes
23105 echo "$as_me: failed program was
:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23108 ac_header_preproc=no
23111 rm -f conftest.err conftest.$ac_ext
23112 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23113 echo "${ECHO_T}$ac_header_preproc" >&6; }
23115 # So? What about this header?
23116 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23118 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23119 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23120 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23121 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23122 ac_header_preproc=yes
23125 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23126 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23127 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23128 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23129 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23130 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23131 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23132 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23133 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23134 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23135 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23136 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23140 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23141 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23142 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23143 echo $ECHO_N "(cached
) $ECHO_C" >&6
23145 eval "$as_ac_Header=\
$ac_header_preproc"
23147 ac_res=`eval echo '${'$as_ac_Header'}'`
23148 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23149 echo "${ECHO_T}$ac_res" >&6; }
23152 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23153 cat >>confdefs.h <<_ACEOF
23154 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23162 if test -f /usr/lpp/X11/bin/smt.exp; then
23164 cat >>confdefs.h <<\_ACEOF
23165 #define HAVE_AIX_SMT_EXP 1
23170 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
23171 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
23172 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23173 { echo "$as_me:$LINENO: result
: yes" >&5
23174 echo "${ECHO_T}yes" >&6; }
23176 cat >>confdefs.h <<\_ACEOF
23177 #define HAVE_DEV_PTMX 1
23181 { echo "$as_me:$LINENO: result
: no
" >&5
23182 echo "${ECHO_T}no
" >&6; }
23185 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
23186 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
23187 if test "${ac_cv_type_pid_t+set}" = set; then
23188 echo $ECHO_N "(cached
) $ECHO_C" >&6
23190 cat >conftest.$ac_ext <<_ACEOF
23193 cat confdefs.h >>conftest.$ac_ext
23194 cat >>conftest.$ac_ext <<_ACEOF
23195 /* end confdefs.h. */
23196 $ac_includes_default
23197 typedef pid_t ac__type_new_;
23201 if ((ac__type_new_ *) 0)
23203 if (sizeof (ac__type_new_))
23209 rm -f conftest.$ac_objext
23210 if { (ac_try="$ac_compile"
23211 case "(($ac_try" in
23212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23213 *) ac_try_echo=$ac_try;;
23215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23216 (eval "$ac_compile") 2>conftest.er1
23218 grep -v '^ *+' conftest.er1 >conftest.err
23220 cat conftest.err >&5
23221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23222 (exit $ac_status); } && {
23223 test -z "$ac_c_werror_flag" ||
23224 test ! -s conftest.err
23225 } && test -s conftest.$ac_objext; then
23226 ac_cv_type_pid_t=yes
23228 echo "$as_me: failed program was
:" >&5
23229 sed 's/^/| /' conftest.$ac_ext >&5
23231 ac_cv_type_pid_t=no
23234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23236 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
23237 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23238 if test $ac_cv_type_pid_t = yes; then
23242 cat >>confdefs.h <<_ACEOF
23249 for ac_header in vfork.h
23251 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23252 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23253 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23254 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23255 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23256 echo $ECHO_N "(cached
) $ECHO_C" >&6
23258 ac_res=`eval echo '${'$as_ac_Header'}'`
23259 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23260 echo "${ECHO_T}$ac_res" >&6; }
23262 # Is the header compilable?
23263 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23264 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23265 cat >conftest.$ac_ext <<_ACEOF
23268 cat confdefs.h >>conftest.$ac_ext
23269 cat >>conftest.$ac_ext <<_ACEOF
23270 /* end confdefs.h. */
23271 $ac_includes_default
23272 #include <$ac_header>
23274 rm -f conftest.$ac_objext
23275 if { (ac_try="$ac_compile"
23276 case "(($ac_try" in
23277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23278 *) ac_try_echo=$ac_try;;
23280 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23281 (eval "$ac_compile") 2>conftest.er1
23283 grep -v '^ *+' conftest.er1 >conftest.err
23285 cat conftest.err >&5
23286 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23287 (exit $ac_status); } && {
23288 test -z "$ac_c_werror_flag" ||
23289 test ! -s conftest.err
23290 } && test -s conftest.$ac_objext; then
23291 ac_header_compiler=yes
23293 echo "$as_me: failed program was
:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23296 ac_header_compiler=no
23299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23300 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23301 echo "${ECHO_T}$ac_header_compiler" >&6; }
23303 # Is the header present?
23304 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23305 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23306 cat >conftest.$ac_ext <<_ACEOF
23309 cat confdefs.h >>conftest.$ac_ext
23310 cat >>conftest.$ac_ext <<_ACEOF
23311 /* end confdefs.h. */
23312 #include <$ac_header>
23314 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23315 case "(($ac_try" in
23316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23317 *) ac_try_echo=$ac_try;;
23319 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23320 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23322 grep -v '^ *+' conftest.er1 >conftest.err
23324 cat conftest.err >&5
23325 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23326 (exit $ac_status); } >/dev/null && {
23327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23328 test ! -s conftest.err
23330 ac_header_preproc=yes
23332 echo "$as_me: failed program was
:" >&5
23333 sed 's/^/| /' conftest.$ac_ext >&5
23335 ac_header_preproc=no
23338 rm -f conftest.err conftest.$ac_ext
23339 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23340 echo "${ECHO_T}$ac_header_preproc" >&6; }
23342 # So? What about this header?
23343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23345 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23346 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23347 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23349 ac_header_preproc=yes
23352 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23353 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23354 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23355 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23356 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23357 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23358 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23359 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23360 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23362 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23363 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23367 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23368 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23369 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23370 echo $ECHO_N "(cached
) $ECHO_C" >&6
23372 eval "$as_ac_Header=\
$ac_header_preproc"
23374 ac_res=`eval echo '${'$as_ac_Header'}'`
23375 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23376 echo "${ECHO_T}$ac_res" >&6; }
23379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23380 cat >>confdefs.h <<_ACEOF
23381 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23390 for ac_func in fork vfork
23392 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23393 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23394 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23395 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23396 echo $ECHO_N "(cached
) $ECHO_C" >&6
23398 cat >conftest.$ac_ext <<_ACEOF
23401 cat confdefs.h >>conftest.$ac_ext
23402 cat >>conftest.$ac_ext <<_ACEOF
23403 /* end confdefs.h. */
23404 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23405 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23406 #define $ac_func innocuous_$ac_func
23408 /* System header to define __stub macros and hopefully few prototypes,
23409 which can conflict with char $ac_func (); below.
23410 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23411 <limits.h> exists even on freestanding compilers. */
23414 # include <limits.h>
23416 # include <assert.h>
23421 /* Override any GCC internal prototype to avoid an error.
23422 Use char because int might match the return type of a GCC
23423 builtin and then its argument prototype would still apply. */
23428 /* The GNU C library defines this for functions which it implements
23429 to always fail with ENOSYS. Some functions are actually named
23430 something starting with __ and the normal name is an alias. */
23431 #if defined __stub_$ac_func || defined __stub___$ac_func
23438 return $ac_func ();
23443 rm -f conftest.$ac_objext conftest$ac_exeext
23444 if { (ac_try="$ac_link"
23445 case "(($ac_try" in
23446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447 *) ac_try_echo=$ac_try;;
23449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23450 (eval "$ac_link") 2>conftest.er1
23452 grep -v '^ *+' conftest.er1 >conftest.err
23454 cat conftest.err >&5
23455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23456 (exit $ac_status); } && {
23457 test -z "$ac_c_werror_flag" ||
23458 test ! -s conftest.err
23459 } && test -s conftest$ac_exeext &&
23460 $as_test_x conftest$ac_exeext; then
23461 eval "$as_ac_var=yes"
23463 echo "$as_me: failed program was
:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23466 eval "$as_ac_var=no
"
23469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23470 conftest$ac_exeext conftest.$ac_ext
23472 ac_res=`eval echo '${'$as_ac_var'}'`
23473 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23474 echo "${ECHO_T}$ac_res" >&6; }
23475 if test `eval echo '${'$as_ac_var'}'` = yes; then
23476 cat >>confdefs.h <<_ACEOF
23477 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23483 if test "x
$ac_cv_func_fork" = xyes; then
23484 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23485 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23486 if test "${ac_cv_func_fork_works+set}" = set; then
23487 echo $ECHO_N "(cached
) $ECHO_C" >&6
23489 if test "$cross_compiling" = yes; then
23490 ac_cv_func_fork_works=cross
23492 cat >conftest.$ac_ext <<_ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h. */
23498 $ac_includes_default
23503 /* By Ruediger Kuhlmann. */
23504 return fork () < 0;
23510 rm -f conftest$ac_exeext
23511 if { (ac_try="$ac_link"
23512 case "(($ac_try" in
23513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23514 *) ac_try_echo=$ac_try;;
23516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23517 (eval "$ac_link") 2>&5
23519 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23520 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23521 { (case "(($ac_try" in
23522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23523 *) ac_try_echo=$ac_try;;
23525 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23526 (eval "$ac_try") 2>&5
23528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23529 (exit $ac_status); }; }; then
23530 ac_cv_func_fork_works=yes
23532 echo "$as_me: program exited with status
$ac_status" >&5
23533 echo "$as_me: failed program was
:" >&5
23534 sed 's/^/| /' conftest.$ac_ext >&5
23536 ( exit $ac_status )
23537 ac_cv_func_fork_works=no
23539 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23544 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23545 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23548 ac_cv_func_fork_works=$ac_cv_func_fork
23550 if test "x
$ac_cv_func_fork_works" = xcross; then
23552 *-*-amigaos* | *-*-msdosdjgpp*)
23553 # Override, as these systems have only a dummy fork() stub
23554 ac_cv_func_fork_works=no
23557 ac_cv_func_fork_works=yes
23560 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23561 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23563 ac_cv_func_vfork_works=$ac_cv_func_vfork
23564 if test "x
$ac_cv_func_vfork" = xyes; then
23565 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23566 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23567 if test "${ac_cv_func_vfork_works+set}" = set; then
23568 echo $ECHO_N "(cached
) $ECHO_C" >&6
23570 if test "$cross_compiling" = yes; then
23571 ac_cv_func_vfork_works=cross
23573 cat >conftest.$ac_ext <<_ACEOF
23576 cat confdefs.h >>conftest.$ac_ext
23577 cat >>conftest.$ac_ext <<_ACEOF
23578 /* end confdefs.h. */
23579 /* Thanks to Paul Eggert for this test. */
23580 $ac_includes_default
23581 #include <sys/wait.h>
23582 #ifdef HAVE_VFORK_H
23583 # include <vfork.h>
23585 /* On some sparc systems, changes by the child to local and incoming
23586 argument registers are propagated back to the parent. The compiler
23587 is told about this with #include <vfork.h>, but some compilers
23588 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23589 static variable whose address is put into a register that is
23590 clobbered by the vfork. */
23593 sparc_address_test (int arg)
23595 sparc_address_test (arg) int arg;
23598 static pid_t child;
23616 pid_t parent = getpid ();
23619 sparc_address_test (0);
23624 /* Here is another test for sparc vfork register problems. This
23625 test uses lots of local variables, at least as many local
23626 variables as main has allocated so far including compiler
23627 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23628 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23629 reuse the register of parent for one of the local variables,
23630 since it will think that parent can't possibly be used any more
23631 in this routine. Assigning to the local variable will thus
23632 munge parent in the parent process. */
23634 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23635 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23636 /* Convince the compiler that p..p7 are live; otherwise, it might
23637 use the same hardware register for all 8 local variables. */
23638 if (p != p1 || p != p2 || p != p3 || p != p4
23639 || p != p5 || p != p6 || p != p7)
23642 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23643 from child file descriptors. If the child closes a descriptor
23644 before it execs or exits, this munges the parent's descriptor
23645 as well. Test for this by closing stdout in the child. */
23646 _exit(close(fileno(stdout)) != 0);
23651 while (wait(&status) != child)
23654 /* Was there some problem with vforking? */
23657 /* Did the child fail? (This shouldn't happen.) */
23660 /* Did the vfork/compiler bug occur? */
23661 || parent != getpid()
23663 /* Did the file descriptor bug occur? */
23664 || fstat(fileno(stdout), &st) != 0
23669 rm -f conftest$ac_exeext
23670 if { (ac_try="$ac_link"
23671 case "(($ac_try" in
23672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23673 *) ac_try_echo=$ac_try;;
23675 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23676 (eval "$ac_link") 2>&5
23678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23680 { (case "(($ac_try" in
23681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23682 *) ac_try_echo=$ac_try;;
23684 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23685 (eval "$ac_try") 2>&5
23687 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23688 (exit $ac_status); }; }; then
23689 ac_cv_func_vfork_works=yes
23691 echo "$as_me: program exited with status
$ac_status" >&5
23692 echo "$as_me: failed program was
:" >&5
23693 sed 's/^/| /' conftest.$ac_ext >&5
23695 ( exit $ac_status )
23696 ac_cv_func_vfork_works=no
23698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23703 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23704 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23707 if test "x
$ac_cv_func_fork_works" = xcross; then
23708 ac_cv_func_vfork_works=$ac_cv_func_vfork
23709 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23710 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23713 if test "x
$ac_cv_func_vfork_works" = xyes; then
23715 cat >>confdefs.h <<\_ACEOF
23716 #define HAVE_WORKING_VFORK 1
23721 cat >>confdefs.h <<\_ACEOF
23726 if test "x
$ac_cv_func_fork_works" = xyes; then
23728 cat >>confdefs.h <<\_ACEOF
23729 #define HAVE_WORKING_FORK 1
23735 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23736 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23737 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23738 echo $ECHO_N "(cached
) $ECHO_C" >&6
23740 cat >conftest.$ac_ext <<_ACEOF
23743 cat confdefs.h >>conftest.$ac_ext
23744 cat >>conftest.$ac_ext <<_ACEOF
23745 /* end confdefs.h. */
23746 #include <langinfo.h>
23750 char* cs = nl_langinfo(CODESET);
23755 rm -f conftest.$ac_objext conftest$ac_exeext
23756 if { (ac_try="$ac_link"
23757 case "(($ac_try" in
23758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23759 *) ac_try_echo=$ac_try;;
23761 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23762 (eval "$ac_link") 2>conftest.er1
23764 grep -v '^ *+' conftest.er1 >conftest.err
23766 cat conftest.err >&5
23767 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23768 (exit $ac_status); } && {
23769 test -z "$ac_c_werror_flag" ||
23770 test ! -s conftest.err
23771 } && test -s conftest$ac_exeext &&
23772 $as_test_x conftest$ac_exeext; then
23773 emacs_cv_langinfo_codeset=yes
23775 echo "$as_me: failed program was
:" >&5
23776 sed 's/^/| /' conftest.$ac_ext >&5
23778 emacs_cv_langinfo_codeset=no
23781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23782 conftest$ac_exeext conftest.$ac_ext
23785 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23786 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23787 if test $emacs_cv_langinfo_codeset = yes; then
23789 cat >>confdefs.h <<\_ACEOF
23790 #define HAVE_LANGINFO_CODESET 1
23795 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23796 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23797 if test "${ac_cv_type_size_t+set}" = set; then
23798 echo $ECHO_N "(cached
) $ECHO_C" >&6
23800 cat >conftest.$ac_ext <<_ACEOF
23803 cat confdefs.h >>conftest.$ac_ext
23804 cat >>conftest.$ac_ext <<_ACEOF
23805 /* end confdefs.h. */
23806 $ac_includes_default
23807 typedef size_t ac__type_new_;
23811 if ((ac__type_new_ *) 0)
23813 if (sizeof (ac__type_new_))
23819 rm -f conftest.$ac_objext
23820 if { (ac_try="$ac_compile"
23821 case "(($ac_try" in
23822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23823 *) ac_try_echo=$ac_try;;
23825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23826 (eval "$ac_compile") 2>conftest.er1
23828 grep -v '^ *+' conftest.er1 >conftest.err
23830 cat conftest.err >&5
23831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23832 (exit $ac_status); } && {
23833 test -z "$ac_c_werror_flag" ||
23834 test ! -s conftest.err
23835 } && test -s conftest.$ac_objext; then
23836 ac_cv_type_size_t=yes
23838 echo "$as_me: failed program was
:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23841 ac_cv_type_size_t=no
23844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23846 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23847 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23848 if test $ac_cv_type_size_t = yes; then
23850 cat >>confdefs.h <<_ACEOF
23851 #define HAVE_SIZE_T 1
23858 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23859 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23860 if test "${ac_cv_type_mbstate_t+set}" = set; then
23861 echo $ECHO_N "(cached
) $ECHO_C" >&6
23863 cat >conftest.$ac_ext <<_ACEOF
23866 cat confdefs.h >>conftest.$ac_ext
23867 cat >>conftest.$ac_ext <<_ACEOF
23868 /* end confdefs.h. */
23869 $ac_includes_default
23870 # include <wchar.h>
23874 mbstate_t x; return sizeof x;
23879 rm -f conftest.$ac_objext
23880 if { (ac_try="$ac_compile"
23881 case "(($ac_try" in
23882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23883 *) ac_try_echo=$ac_try;;
23885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23886 (eval "$ac_compile") 2>conftest.er1
23888 grep -v '^ *+' conftest.er1 >conftest.err
23890 cat conftest.err >&5
23891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23892 (exit $ac_status); } && {
23893 test -z "$ac_c_werror_flag" ||
23894 test ! -s conftest.err
23895 } && test -s conftest.$ac_objext; then
23896 ac_cv_type_mbstate_t=yes
23898 echo "$as_me: failed program was
:" >&5
23899 sed 's/^/| /' conftest.$ac_ext >&5
23901 ac_cv_type_mbstate_t=no
23904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23906 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23907 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23908 if test $ac_cv_type_mbstate_t = yes; then
23910 cat >>confdefs.h <<\_ACEOF
23911 #define HAVE_MBSTATE_T 1
23916 cat >>confdefs.h <<\_ACEOF
23917 #define mbstate_t int
23922 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23923 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23924 if test "${emacs_cv_c_restrict+set}" = set; then
23925 echo $ECHO_N "(cached
) $ECHO_C" >&6
23927 cat >conftest.$ac_ext <<_ACEOF
23930 cat confdefs.h >>conftest.$ac_ext
23931 cat >>conftest.$ac_ext <<_ACEOF
23932 /* end confdefs.h. */
23933 void fred (int *restrict x);
23942 rm -f conftest.$ac_objext
23943 if { (ac_try="$ac_compile"
23944 case "(($ac_try" in
23945 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23946 *) ac_try_echo=$ac_try;;
23948 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23949 (eval "$ac_compile") 2>conftest.er1
23951 grep -v '^ *+' conftest.er1 >conftest.err
23953 cat conftest.err >&5
23954 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23955 (exit $ac_status); } && {
23956 test -z "$ac_c_werror_flag" ||
23957 test ! -s conftest.err
23958 } && test -s conftest.$ac_objext; then
23959 emacs_cv_c_restrict=yes
23961 echo "$as_me: failed program was
:" >&5
23962 sed 's/^/| /' conftest.$ac_ext >&5
23964 cat >conftest.$ac_ext <<_ACEOF
23967 cat confdefs.h >>conftest.$ac_ext
23968 cat >>conftest.$ac_ext <<_ACEOF
23969 /* end confdefs.h. */
23970 void fred (int *__restrict x);
23979 rm -f conftest.$ac_objext
23980 if { (ac_try="$ac_compile"
23981 case "(($ac_try" in
23982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23983 *) ac_try_echo=$ac_try;;
23985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23986 (eval "$ac_compile") 2>conftest.er1
23988 grep -v '^ *+' conftest.er1 >conftest.err
23990 cat conftest.err >&5
23991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23992 (exit $ac_status); } && {
23993 test -z "$ac_c_werror_flag" ||
23994 test ! -s conftest.err
23995 } && test -s conftest.$ac_objext; then
23996 emacs_cv_c_restrict=__restrict
23998 echo "$as_me: failed program was
:" >&5
23999 sed 's/^/| /' conftest.$ac_ext >&5
24001 emacs_cv_c_restrict=no
24004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24009 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
24010 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24011 case "$emacs_cv_c_restrict" in
24012 yes) emacs_restrict=restrict;;
24013 no) emacs_restrict="";;
24014 *) emacs_restrict="$emacs_cv_c_restrict";;
24016 if test "$emacs_restrict" != __restrict; then
24018 cat >>confdefs.h <<_ACEOF
24019 #define __restrict $emacs_restrict
24024 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
24025 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
24026 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24027 echo $ECHO_N "(cached
) $ECHO_C" >&6
24029 cat >conftest.$ac_ext <<_ACEOF
24032 cat confdefs.h >>conftest.$ac_ext
24033 cat >>conftest.$ac_ext <<_ACEOF
24034 /* end confdefs.h. */
24035 void fred (int x[__restrict]);
24044 rm -f conftest.$ac_objext
24045 if { (ac_try="$ac_compile"
24046 case "(($ac_try" in
24047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24048 *) ac_try_echo=$ac_try;;
24050 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24051 (eval "$ac_compile") 2>conftest.er1
24053 grep -v '^ *+' conftest.er1 >conftest.err
24055 cat conftest.err >&5
24056 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24057 (exit $ac_status); } && {
24058 test -z "$ac_c_werror_flag" ||
24059 test ! -s conftest.err
24060 } && test -s conftest.$ac_objext; then
24061 emacs_cv_c_restrict_arr=yes
24063 echo "$as_me: failed program was
:" >&5
24064 sed 's/^/| /' conftest.$ac_ext >&5
24066 emacs_cv_c_restrict_arr=no
24069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24071 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
24072 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24073 if test "$emacs_cv_c_restrict_arr" = yes; then
24075 cat >>confdefs.h <<\_ACEOF
24076 #define __restrict_arr __restrict
24083 # Set up the CFLAGS for real compilation, so we can substitute it.
24084 CFLAGS="$REAL_CFLAGS"
24085 CPPFLAGS="$REAL_CPPFLAGS"
24087 #### Find out which version of Emacs this is.
24088 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24089 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
24090 if test x"${version}" = x; then
24091 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
24092 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
24093 { (exit 1); exit 1; }; }
24096 ### Specify what sort of things we'll be editing into Makefile and config.h.
24097 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24137 cat >>confdefs.h <<_ACEOF
24138 #define EMACS_CONFIGURATION "${canonical}"
24142 cat >>confdefs.h <<_ACEOF
24143 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24147 cat >>confdefs.h <<_ACEOF
24148 #define config_machfile "${machfile}"
24152 cat >>confdefs.h <<_ACEOF
24153 #define config_opsysfile "${opsysfile}"
24157 cat >>confdefs.h <<_ACEOF
24158 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24162 cat >>confdefs.h <<_ACEOF
24163 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24167 cat >>confdefs.h <<_ACEOF
24168 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24172 cat >>confdefs.h <<_ACEOF
24173 #define UNEXEC_SRC ${UNEXEC_SRC}
24177 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24179 cat >>confdefs.h <<\_ACEOF
24180 #define HAVE_X_WINDOWS 1
24184 if test "${USE_X_TOOLKIT}" != "none
" ; then
24186 cat >>confdefs.h <<\_ACEOF
24187 #define USE_X_TOOLKIT 1
24190 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
24192 cat >>confdefs.h <<\_ACEOF
24193 #define USE_LUCID 1
24196 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
24198 cat >>confdefs.h <<\_ACEOF
24199 #define USE_MOTIF 1
24204 if test "${HAVE_X11}" = "yes" ; then
24206 cat >>confdefs.h <<\_ACEOF
24211 if test "${HAVE_MENUS}" = "yes" ; then
24213 cat >>confdefs.h <<\_ACEOF
24214 #define HAVE_MENUS 1
24218 if test "${GNU_MALLOC}" = "yes" ; then
24220 cat >>confdefs.h <<\_ACEOF
24221 #define GNU_MALLOC 1
24225 if test "${REL_ALLOC}" = "yes" ; then
24227 cat >>confdefs.h <<\_ACEOF
24228 #define REL_ALLOC 1
24238 #### Report on what we decided to do.
24239 #### Report GTK as a toolkit, even if it doesn't use Xt.
24240 #### It makes printing result more understandable as using GTK sets
24241 #### toolkit_scroll_bars to yes by default.
24242 if test "${HAVE_GTK}" = "yes"; then
24247 Configured
for \
`${canonical}'.
24249 Where should the build process find the source code? ${srcdir}
24250 What operating system and machine description files should Emacs use?
24251 \`${opsysfile}' and \`${machfile}'
24252 What compiler should emacs be built with?
${CC} ${CFLAGS}
24253 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
24254 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
24255 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
24256 What window system should Emacs use?
${window_system}
24257 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
24259 if test -n "${x_includes}"; then
24260 echo " Where
do we
find X Windows header files?
${x_includes}"
24262 echo " Where
do we
find X Windows header files? Standard
dirs"
24264 if test -n "${x_libraries}"; then
24265 echo " Where
do we
find X Windows libraries?
${x_libraries}"
24267 echo " Where
do we
find X Windows libraries? Standard
dirs"
24270 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
24271 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
24272 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
24273 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
24274 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
24275 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
24276 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
24277 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
24278 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
24280 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
24281 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
24282 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
24283 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
24285 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
24288 if test $USE_XASSERTS = yes; then
24289 echo " Compiling with asserts turned on.
"
24290 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24295 if test "$USE_X_TOOLKIT" = GTK; then
24296 case "$canonical" in
24298 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
24299 will probably get a crash on startup. If this happens
, please use another
24300 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
24305 if test "$HAVE_NS" = "yes"; then
24307 echo "You must run
\"make install\" in order to
test the built application.
24308 The installed application will go to nextstep
/Emacs.app and can be
24309 run or moved from there.
"
24310 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24311 echo "The application will be fully self-contained.
"
24313 echo "The lisp resources
for the application will be installed under
${prefix}.
24314 You may need to run
\"make install\" with sudo. The application will fail
24315 to run
if these resources are not installed.
"
24320 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24321 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24326 # Remove any trailing slashes in these variables.
24327 test "${prefix}" != NONE &&
24328 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24329 test "${exec_prefix}" != NONE &&
24330 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24332 # Now get this: Some word that is part of the ${srcdir} directory name
24333 # or the ${configuration} value might, just might, happen to be an
24334 # identifier like `sun4' or `i386' or something, and be predefined by
24335 # the C preprocessor to some helpful value like 1, or maybe the empty
24336 # string. Needless to say consequent macro substitutions are less
24337 # than conducive to the makefile finding the correct directory.
24338 cpp_undefs="`echo $srcdir $configuration $canonical |
24339 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24340 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24342 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24343 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24344 ## from Makefile.c can correctly provide the arg `-traditional' to the
24347 cat >conftest.$ac_ext <<_ACEOF
24350 cat confdefs.h >>conftest.$ac_ext
24351 cat >>conftest.$ac_ext <<_ACEOF
24352 /* end confdefs.h. */
24355 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24356 $EGREP "yes..
yes" >/dev/null 2>&1; then
24357 CPP_NEED_TRADITIONAL=no
24359 CPP_NEED_TRADITIONAL=yes
24364 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
"
24366 ac_config_commands="$ac_config_commands default
"
24368 cat >confcache <<\_ACEOF
24369 # This file is a shell script that caches the results of configure
24370 # tests run on this system so they can be shared between configure
24371 # scripts and configure runs, see configure's option --config-cache.
24372 # It is not useful on other systems. If it contains results you don't
24373 # want to keep, you may remove or edit it.
24375 # config.status only pays attention to the cache file if you give it
24376 # the --recheck option to rerun configure.
24378 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24379 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24380 # following values.
24384 # The following way of writing the cache mishandles newlines in values,
24385 # but we know of no workaround that is simple, portable, and efficient.
24386 # So, we kill variables containing newlines.
24387 # Ultrix sh set writes to stderr and can't be redirected directly,
24388 # and sets the high bit in the cache file unless we assign to the vars.
24390 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24391 eval ac_val=\$$ac_var
24395 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24396 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24399 _ | IFS | as_nl) ;; #(
24400 *) $as_unset $ac_var ;;
24406 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24407 *${as_nl}ac_space=\ *)
24408 # `set' does not quote correctly, so add quotes (double-quote
24409 # substitution turns \\\\ into \\, and sed turns \\ into \).
24412 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24415 # `set' quotes correctly as required by POSIX, so do not add quotes.
24416 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24425 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24427 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24429 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24430 if test -w "$cache_file"; then
24431 test "x
$cache_file" != "x
/dev
/null
" &&
24432 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24433 echo "$as_me: updating cache
$cache_file" >&6;}
24434 cat confcache >$cache_file
24436 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24437 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24442 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24443 # Let make expand exec_prefix.
24444 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24446 DEFS=-DHAVE_CONFIG_H
24450 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24451 # 1. Remove the extension, and $U if already installed.
24452 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24453 ac_i=`echo "$ac_i" | sed "$ac_script"`
24454 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24455 # will be set to the directory where LIBOBJS objects are built.
24456 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24457 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24459 LIBOBJS=$ac_libobjs
24461 LTLIBOBJS=$ac_ltlibobjs
24465 : ${CONFIG_STATUS=./config.status}
24466 ac_clean_files_save=$ac_clean_files
24467 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24468 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24469 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24470 cat >$CONFIG_STATUS <<_ACEOF
24472 # Generated by $as_me.
24473 # Run this file to recreate the current configuration.
24474 # Compiler output produced by configure, useful for debugging
24475 # configure, is in config.log if it exists.
24478 ac_cs_recheck=false
24480 SHELL=\${CONFIG_SHELL-$SHELL}
24483 cat >>$CONFIG_STATUS <<\_ACEOF
24484 ## --------------------- ##
24485 ## M4sh Initialization. ##
24486 ## --------------------- ##
24488 # Be more Bourne compatible
24489 DUALCASE=1; export DUALCASE # for MKS sh
24490 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24493 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24494 # is contrary to our usage. Disable this feature.
24495 alias -g '${1+"$@"}'='"$@
"'
24496 setopt NO_GLOB_SUBST
24498 case `(set -o) 2>/dev/null` in
24499 *posix*) set -o posix ;;
24508 # Avoid depending upon Character Ranges.
24509 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24510 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24511 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24512 as_cr_digits='0123456789'
24513 as_cr_alnum=$as_cr_Letters$as_cr_digits
24515 # The user is always right.
24516 if test "${PATH_SEPARATOR+set}" != set; then
24517 echo "#! /bin/sh" >conf$$.sh
24518 echo "exit 0" >>conf$$.sh
24520 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24528 # Support unset when possible.
24529 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24537 # We need space, tab and new line, in precisely that order. Quoting is
24538 # there to prevent editors from complaining about space-tab.
24539 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24540 # splitting by setting IFS to empty value.)
24545 # Find who we are. Look in the path if we contain no directory separator.
24547 *[\\/]* ) as_myself
=$0 ;;
24548 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24549 for as_dir
in $PATH
24552 test -z "$as_dir" && as_dir
=.
24553 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24559 # We did not find ourselves, most probably we were run as `sh COMMAND'
24560 # in which case we are not to be found in the path.
24561 if test "x$as_myself" = x
; then
24564 if test ! -f "$as_myself"; then
24565 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24566 { (exit 1); exit 1; }
24569 # Work around bugs in pre-3.0 UWIN ksh.
24570 for as_var
in ENV MAIL MAILPATH
24571 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24579 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24580 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24581 LC_TELEPHONE LC_TIME
24583 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24584 eval $as_var=C
; export $as_var
24586 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24590 # Required to use basename.
24591 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24592 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24598 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24599 as_basename
=basename
24605 # Name of the executable.
24606 as_me
=`$as_basename -- "$0" ||
24607 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24608 X"$0" : 'X\(//\)$' \| \
24609 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24611 sed '/^.*\/\([^/][^/]*\)\/*$/{
24630 as_lineno_1
=$LINENO
24631 as_lineno_2
=$LINENO
24632 test "x$as_lineno_1" != "x$as_lineno_2" &&
24633 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24635 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24636 # uniformly replaced by the line number. The first 'sed' inserts a
24637 # line-number line after each line using $LINENO; the second 'sed'
24638 # does the real work. The second script uses 'N' to pair each
24639 # line-number line with the line containing $LINENO, and appends
24640 # trailing '-' during substitution so that $LINENO is not a special
24641 # case at line end.
24642 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24643 # scripts with optimization help from Paolo Bonzini. Blame Lee
24644 # E. McMahon (1931-1989) for sed's syntax. :-)
24656 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24659 ' >$as_me.lineno
&&
24660 chmod +x
"$as_me.lineno" ||
24661 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24662 { (exit 1); exit 1; }; }
24664 # Don't try to exec as it changes $[0], causing all sort of problems
24665 # (the dirname of $[0] is not the place where we might find the
24666 # original and so on. Autoconf is especially sensitive to this).
24667 .
"./$as_me.lineno"
24668 # Exit status is that of the last command.
24673 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24679 ECHO_C
= ECHO_N
= ECHO_T
=
24680 case `echo -n x` in
24682 case `echo 'x\c'` in
24683 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24690 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24691 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24697 rm -f conf$$ conf$$.exe conf$$.
file
24698 if test -d conf$$.dir
; then
24699 rm -f conf$$.dir
/conf$$.
file
24705 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24707 # ... but there are two gotchas:
24708 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24709 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24710 # In both cases, we have to default to `cp -p'.
24711 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24713 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24718 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24719 rmdir conf$$.dir
2>/dev
/null
24721 if mkdir
-p .
2>/dev
/null
; then
24724 test -d .
/-p && rmdir .
/-p
24728 if test -x / >/dev
/null
2>&1; then
24729 as_test_x
='test -x'
24731 if ls -dL / >/dev
/null
2>&1; then
24738 if test -d "$1"; then
24744 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24745 ???[sx]*):;;*)false;;esac;fi
24749 as_executable_p
=$as_test_x
24751 # Sed expression to map a string onto a valid CPP name.
24752 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24754 # Sed expression to map a string onto a valid variable name.
24755 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24760 # Save the log message, to keep $[0] and so on meaningful, and to
24761 # report actual input values of CONFIG_FILES etc. instead of their
24762 # values after options handling.
24764 This file was extended by emacs $as_me 23.0.60, which was
24765 generated by GNU Autoconf 2.61. Invocation command line was
24767 CONFIG_FILES = $CONFIG_FILES
24768 CONFIG_HEADERS = $CONFIG_HEADERS
24769 CONFIG_LINKS = $CONFIG_LINKS
24770 CONFIG_COMMANDS = $CONFIG_COMMANDS
24773 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24778 cat >>$CONFIG_STATUS <<_ACEOF
24779 # Files that config.status was made for.
24780 config_files="$ac_config_files"
24781 config_headers="$ac_config_headers"
24782 config_commands="$ac_config_commands"
24786 cat >>$CONFIG_STATUS <<\_ACEOF
24788 \`$as_me' instantiates files from templates according to the
24789 current configuration.
24791 Usage: $0 [OPTIONS] [FILE]...
24793 -h, --help print this help, then exit
24794 -V, --version print version number and configuration settings, then exit
24795 -q, --quiet do not print progress messages
24796 -d, --debug don't remove temporary files
24797 --recheck update $as_me by reconfiguring in the same conditions
24798 --file=FILE[:TEMPLATE]
24799 instantiate the configuration file FILE
24800 --header=FILE[:TEMPLATE]
24801 instantiate the configuration header FILE
24803 Configuration files:
24806 Configuration headers:
24809 Configuration commands:
24812 Report bugs to <bug-autoconf@gnu.org>."
24815 cat >>$CONFIG_STATUS <<_ACEOF
24817 emacs config.status 23.0.60
24818 configured by $0, generated by GNU Autoconf 2.61,
24819 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24821 Copyright (C) 2006 Free Software Foundation, Inc.
24822 This config.status script is free software; the Free Software Foundation
24823 gives unlimited permission to copy, distribute and modify it."
24830 cat >>$CONFIG_STATUS <<\_ACEOF
24831 # If no file are specified by the user, then we need to provide default
24832 # value. By we need to know if files were specified by the user.
24838 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24839 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24850 # Handling of the options.
24851 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24853 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24854 echo "$ac_cs_version"; exit ;;
24855 --debug |
--debu |
--deb |
--de |
--d |
-d )
24857 --file |
--fil |
--fi |
--f )
24859 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24860 ac_need_defaults
=false
;;
24861 --header |
--heade |
--head |
--hea )
24863 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24864 ac_need_defaults
=false
;;
24866 # Conflict between --help and --header
24867 { echo "$as_me: error: ambiguous option: $1
24868 Try \`$0 --help' for more information." >&2
24869 { (exit 1); exit 1; }; };;
24870 --help |
--hel |
-h )
24871 echo "$ac_cs_usage"; exit ;;
24872 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24873 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24876 # This is an error.
24877 -*) { echo "$as_me: error: unrecognized option: $1
24878 Try \`$0 --help' for more information." >&2
24879 { (exit 1); exit 1; }; } ;;
24881 *) ac_config_targets
="$ac_config_targets $1"
24882 ac_need_defaults
=false
;;
24888 ac_configure_extra_args
=
24890 if $ac_cs_silent; then
24892 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24896 cat >>$CONFIG_STATUS <<_ACEOF
24897 if \$ac_cs_recheck; then
24898 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24899 CONFIG_SHELL=$SHELL
24900 export CONFIG_SHELL
24901 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24905 cat >>$CONFIG_STATUS <<\_ACEOF
24909 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24910 ## Running $as_me. ##
24916 cat >>$CONFIG_STATUS <<_ACEOF
24920 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24924 cat >>$CONFIG_STATUS <<\_ACEOF
24926 # Handling of arguments.
24927 for ac_config_target
in $ac_config_targets
24929 case $ac_config_target in
24930 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24931 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24932 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24933 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24934 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24935 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24936 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24937 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24938 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24939 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24940 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24941 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24942 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24944 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24945 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24946 { (exit 1); exit 1; }; };;
24951 # If the user did not use the arguments to specify the items to instantiate,
24952 # then the envvar interface is used. Set only those that are not.
24953 # We use the long form for the default assignment because of an extremely
24954 # bizarre bug on SunOS 4.1.3.
24955 if $ac_need_defaults; then
24956 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24957 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24958 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24961 # Have a temporary directory for convenience. Make it in the build tree
24962 # simply because there is no reason against having it here, and in addition,
24963 # creating and moving files from /tmp can sometimes cause problems.
24964 # Hook for its removal unless debugging.
24965 # Note that there is a small window in which the directory will not be cleaned:
24966 # after its creation but before its name has been assigned to `$tmp'.
24970 trap 'exit_status=$?
24971 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24973 trap '{ (exit 1); exit 1; }' 1 2 13 15
24975 # Create a (secure) tmp directory for tmp files.
24978 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24979 test -n "$tmp" && test -d "$tmp"
24982 tmp
=.
/conf$$
-$RANDOM
24983 (umask 077 && mkdir
"$tmp")
24986 echo "$me: cannot create a temporary directory in ." >&2
24987 { (exit 1); exit 1; }
24991 # Set up the sed scripts for CONFIG_FILES section.
24994 # No need to generate the scripts if there are no CONFIG_FILES.
24995 # This happens for instance when ./config.status config.h
24996 if test -n "$CONFIG_FILES"; then
25003 for ac_last_try
in false false false false false
:; do
25004 cat >conf$
$subs.
sed <<_ACEOF
25005 SHELL!$SHELL$ac_delim
25006 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25007 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25008 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25009 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25010 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25011 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25012 exec_prefix!$exec_prefix$ac_delim
25013 prefix!$prefix$ac_delim
25014 program_transform_name!$program_transform_name$ac_delim
25015 bindir!$bindir$ac_delim
25016 sbindir!$sbindir$ac_delim
25017 libexecdir!$libexecdir$ac_delim
25018 datarootdir!$datarootdir$ac_delim
25019 datadir!$datadir$ac_delim
25020 sysconfdir!$sysconfdir$ac_delim
25021 sharedstatedir!$sharedstatedir$ac_delim
25022 localstatedir!$localstatedir$ac_delim
25023 includedir!$includedir$ac_delim
25024 oldincludedir!$oldincludedir$ac_delim
25025 docdir!$docdir$ac_delim
25026 infodir!$infodir$ac_delim
25027 htmldir!$htmldir$ac_delim
25028 dvidir!$dvidir$ac_delim
25029 pdfdir!$pdfdir$ac_delim
25030 psdir!$psdir$ac_delim
25031 libdir!$libdir$ac_delim
25032 localedir!$localedir$ac_delim
25033 mandir!$mandir$ac_delim
25034 DEFS!$DEFS$ac_delim
25035 ECHO_C!$ECHO_C$ac_delim
25036 ECHO_N!$ECHO_N$ac_delim
25037 ECHO_T!$ECHO_T$ac_delim
25038 LIBS!$LIBS$ac_delim
25039 build_alias!$build_alias$ac_delim
25040 host_alias!$host_alias$ac_delim
25041 target_alias!$target_alias$ac_delim
25042 MAINT!$MAINT$ac_delim
25043 build!$build$ac_delim
25044 build_cpu!$build_cpu$ac_delim
25045 build_vendor!$build_vendor$ac_delim
25046 build_os!$build_os$ac_delim
25047 host!$host$ac_delim
25048 host_cpu!$host_cpu$ac_delim
25049 host_vendor!$host_vendor$ac_delim
25050 host_os!$host_os$ac_delim
25052 CFLAGS!$CFLAGS$ac_delim
25053 LDFLAGS!$LDFLAGS$ac_delim
25054 CPPFLAGS!$CPPFLAGS$ac_delim
25055 ac_ct_CC!$ac_ct_CC$ac_delim
25056 EXEEXT!$EXEEXT$ac_delim
25057 OBJEXT!$OBJEXT$ac_delim
25059 GREP!$GREP$ac_delim
25060 EGREP!$EGREP$ac_delim
25061 LN_S!$LN_S$ac_delim
25062 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25063 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25064 INSTALL_DATA!$INSTALL_DATA$ac_delim
25065 RANLIB!$RANLIB$ac_delim
25066 INSTALL_INFO!$INSTALL_INFO$ac_delim
25067 GZIP_PROG!$GZIP_PROG$ac_delim
25068 MAKEINFO!$MAKEINFO$ac_delim
25069 LIBSOUND!$LIBSOUND$ac_delim
25070 PKG_CONFIG!$PKG_CONFIG$ac_delim
25071 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25072 ALSA_LIBS!$ALSA_LIBS$ac_delim
25073 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25074 SET_MAKE!$SET_MAKE$ac_delim
25075 XMKMF!$XMKMF$ac_delim
25076 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25077 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25078 RSVG_LIBS!$RSVG_LIBS$ac_delim
25079 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25080 GTK_LIBS!$GTK_LIBS$ac_delim
25081 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25082 DBUS_LIBS!$DBUS_LIBS$ac_delim
25083 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25084 XFT_LIBS!$XFT_LIBS$ac_delim
25085 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25086 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25087 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25088 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25089 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25090 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25091 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25092 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25093 ALLOCA!$ALLOCA$ac_delim
25094 liblockfile!$liblockfile$ac_delim
25095 LIBOBJS!$LIBOBJS$ac_delim
25096 NEED_SETGID!$NEED_SETGID$ac_delim
25097 KMEM_GROUP!$KMEM_GROUP$ac_delim
25098 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25099 GETOPT_H!$GETOPT_H$ac_delim
25100 GETOPTOBJS!$GETOPTOBJS$ac_delim
25101 version!$version$ac_delim
25104 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25106 elif $ac_last_try; then
25107 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25108 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25109 { (exit 1); exit 1; }; }
25111 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25115 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25116 if test -n "$ac_eof"; then
25117 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25118 ac_eof
=`expr $ac_eof + 1`
25121 cat >>$CONFIG_STATUS <<_ACEOF
25122 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25123 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25126 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25127 s/^/s,@/; s/!/@,|#_!!_#|/
25130 s/'"$ac_delim"'$/,g/; t
25132 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25133 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25134 rm -f conf$
$subs.
sed
25135 cat >>$CONFIG_STATUS <<_ACEOF
25141 for ac_last_try
in false false false false false
:; do
25142 cat >conf$
$subs.
sed <<_ACEOF
25143 configuration!$configuration$ac_delim
25144 canonical!$canonical$ac_delim
25145 srcdir!$srcdir$ac_delim
25146 lispdir!$lispdir$ac_delim
25147 locallisppath!$locallisppath$ac_delim
25148 lisppath!$lisppath$ac_delim
25149 x_default_search_path!$x_default_search_path$ac_delim
25150 etcdir!$etcdir$ac_delim
25151 archlibdir!$archlibdir$ac_delim
25152 bitmapdir!$bitmapdir$ac_delim
25153 gamedir!$gamedir$ac_delim
25154 gameuser!$gameuser$ac_delim
25155 c_switch_system!$c_switch_system$ac_delim
25156 c_switch_machine!$c_switch_machine$ac_delim
25157 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25158 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25159 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25160 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25161 machfile!$machfile$ac_delim
25162 opsysfile!$opsysfile$ac_delim
25163 ns_appdir!$ns_appdir$ac_delim
25164 ns_appbindir!$ns_appbindir$ac_delim
25165 ns_appresdir!$ns_appresdir$ac_delim
25166 ns_appsrc!$ns_appsrc$ac_delim
25167 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25168 LTLIBOBJS!$LTLIBOBJS$ac_delim
25171 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
25173 elif $ac_last_try; then
25174 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25175 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25176 { (exit 1); exit 1; }; }
25178 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25182 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25183 if test -n "$ac_eof"; then
25184 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25185 ac_eof
=`expr $ac_eof + 1`
25188 cat >>$CONFIG_STATUS <<_ACEOF
25189 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25190 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25193 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25194 s/^/s,@/; s/!/@,|#_!!_#|/
25197 s/'"$ac_delim"'$/,g/; t
25199 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25200 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25201 rm -f conf$
$subs.
sed
25202 cat >>$CONFIG_STATUS <<_ACEOF
25209 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25210 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25211 # trailing colons and then remove the whole line if VPATH becomes empty
25212 # (actually we leave an empty line to preserve line numbers).
25213 if test "x$srcdir" = x.
; then
25214 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25215 s/:*\$(srcdir):*/:/
25216 s/:*\${srcdir}:*/:/
25218 s/^\([^=]*=[ ]*\):*/\1/
25224 cat >>$CONFIG_STATUS <<\_ACEOF
25225 fi # test -n "$CONFIG_FILES"
25228 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25231 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25233 case $ac_mode$ac_tag in
25235 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25236 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25237 { (exit 1); exit 1; }; };;
25238 :[FH
]-) ac_tag
=-:-;;
25239 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25256 -) ac_f
="$tmp/stdin";;
25257 *) # Look for the file first in the build tree, then in the source tree
25258 # (if the path is not absolute). The absolute path cannot be DOS-style,
25259 # because $ac_f cannot contain `:'.
25263 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25265 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25266 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25267 { (exit 1); exit 1; }; };;
25269 ac_file_inputs
="$ac_file_inputs $ac_f"
25272 # Let's still pretend it is `configure' which instantiates (i.e., don't
25273 # use $as_me), people would be surprised to read:
25274 # /* config.h. Generated by config.status. */
25275 configure_input
="Generated from "`IFS=:
25276 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25277 if test x
"$ac_file" != x-
; then
25278 configure_input
="$ac_file. $configure_input"
25279 { echo "$as_me:$LINENO: creating $ac_file" >&5
25280 echo "$as_me: creating $ac_file" >&6;}
25284 *:-:* |
*:-) cat >"$tmp/stdin";;
25289 ac_dir
=`$as_dirname -- "$ac_file" ||
25290 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25291 X"$ac_file" : 'X\(//\)[^/]' \| \
25292 X"$ac_file" : 'X\(//\)$' \| \
25293 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25295 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25299 /^X\(\/\/\)[^/].*/{
25314 -*) as_dir
=.
/$as_dir;;
25316 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25320 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25321 *) as_qdir
=$as_dir;;
25323 as_dirs
="'$as_qdir' $as_dirs"
25324 as_dir
=`$as_dirname -- "$as_dir" ||
25325 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25326 X"$as_dir" : 'X\(//\)[^/]' \| \
25327 X"$as_dir" : 'X\(//\)$' \| \
25328 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25334 /^X\(\/\/\)[^/].*/{
25347 test -d "$as_dir" && break
25349 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25350 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25351 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25352 { (exit 1); exit 1; }; }; }
25356 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25358 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25359 # A ".." for each directory in $ac_dir_suffix.
25360 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25361 case $ac_top_builddir_sub in
25362 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25363 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25366 ac_abs_top_builddir
=$ac_pwd
25367 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25368 # for backward compatibility:
25369 ac_top_builddir
=$ac_top_build_prefix
25372 .
) # We are building in place.
25374 ac_top_srcdir
=$ac_top_builddir_sub
25375 ac_abs_top_srcdir
=$ac_pwd ;;
25376 [\\/]* | ?
:[\\/]* ) # Absolute name.
25377 ac_srcdir
=$srcdir$ac_dir_suffix;
25378 ac_top_srcdir
=$srcdir
25379 ac_abs_top_srcdir
=$srcdir ;;
25380 *) # Relative name.
25381 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25382 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25383 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25385 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25395 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25396 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25400 cat >>$CONFIG_STATUS <<\_ACEOF
25401 # If the template does not know about datarootdir, expand it.
25402 # FIXME: This hack should be removed a few years after 2.60.
25403 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25405 case `sed -n '/datarootdir/ {
25414 ' $ac_file_inputs` in
25415 *datarootdir
*) ac_datarootdir_seen
=yes;;
25416 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25417 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25418 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25420 cat >>$CONFIG_STATUS <<_ACEOF
25421 ac_datarootdir_hack='
25422 s&@datadir@&$datadir&g
25423 s&@docdir@&$docdir&g
25424 s&@infodir@&$infodir&g
25425 s&@localedir@&$localedir&g
25426 s&@mandir@&$mandir&g
25427 s&\\\${datarootdir}&$datarootdir&g' ;;
25431 # Neutralize VPATH when `$srcdir' = `.'.
25432 # Shell code in configure.ac might set extrasub.
25433 # FIXME: do we really want to maintain this feature?
25434 cat >>$CONFIG_STATUS <<_ACEOF
25438 cat >>$CONFIG_STATUS <<\_ACEOF
25440 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25441 s
&@configure_input@
&$configure_input&;t t
25442 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25443 s
&@srcdir@
&$ac_srcdir&;t t
25444 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25445 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25446 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25447 s
&@builddir@
&$ac_builddir&;t t
25448 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25449 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25450 s
&@INSTALL@
&$ac_INSTALL&;t t
25451 $ac_datarootdir_hack
25452 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25454 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25455 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25456 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25457 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25458 which seems to be undefined. Please make sure it is defined." >&5
25459 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25460 which seems to be undefined. Please make sure it is defined." >&2;}
25464 -) cat "$tmp/out"; rm -f "$tmp/out";;
25465 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25474 # Transform confdefs.h into a sed script `conftest.defines', that
25475 # substitutes the proper values into config.h.in to produce config.h.
25476 rm -f conftest.defines conftest.
tail
25477 # First, append a space to every undef/define line, to ease matching.
25478 echo 's/$/ /' >conftest.defines
25479 # Then, protect against being on the right side of a sed subst, or in
25480 # an unquoted here document, in config.status. If some macros were
25481 # called several times there might be several #defines for the same
25482 # symbol, which is useless. But do not sort them, since the last
25483 # AC_DEFINE must be honored.
25484 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25485 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25486 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25487 # PARAMS is the parameter list in the macro definition--in most cases, it's
25488 # just an empty string.
25489 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25490 ac_dB
='\\)[ (].*,\\1define\\2'
25498 s/^[ ]*#[ ]*define[ ][ ]*//
25503 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25504 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25505 ' >>conftest.defines
25507 # Remove the space that was appended to ease matching.
25508 # Then replace #undef with comments. This is necessary, for
25509 # example, in the case of _POSIX_SOURCE, which is predefined and required
25510 # on some systems where configure will not decide to define it.
25511 # (The regexp can be short, since the line contains either #define or #undef.)
25513 s,^[ #]*u.*,/* & */,' >>conftest.defines
25515 # Break up conftest.defines:
25516 ac_max_sed_lines
=50
25518 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25519 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25520 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25522 ac_in
='$ac_file_inputs'
25523 ac_out
='"$tmp/out1"'
25524 ac_nxt
='"$tmp/out2"'
25528 # Write a here document:
25529 cat >>$CONFIG_STATUS <<_ACEOF
25530 # First, check the format of the line:
25531 cat >"\$tmp/defines.sed" <<\\CEOF
25532 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25533 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25537 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25539 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25540 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25541 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25542 grep . conftest.
tail >/dev
/null ||
break
25543 rm -f conftest.defines
25544 mv conftest.
tail conftest.defines
25546 rm -f conftest.defines conftest.
tail
25548 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25549 cat >>$CONFIG_STATUS <<\_ACEOF
25550 if test x
"$ac_file" != x-
; then
25551 echo "/* $configure_input */" >"$tmp/config.h"
25552 cat "$ac_result" >>"$tmp/config.h"
25553 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25554 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25555 echo "$as_me: $ac_file is unchanged" >&6;}
25558 mv "$tmp/config.h" $ac_file
25561 echo "/* $configure_input */"
25567 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25568 echo "$as_me: executing $ac_file commands" >&6;}
25573 case $ac_file$ac_mode in
25576 ### Make the necessary directories, if they don't exist.
25577 for dir
in etc lisp
; do
25578 test -d ${dir} || mkdir
${dir}
25581 # Build src/Makefile from ${srcdir}/src/Makefile.c
25582 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25583 # This must be done after src/config.h is built, since we rely on that file.
25585 echo creating src
/epaths.h
25586 ${MAKE-make} epaths-force
25588 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25589 # `..' to `. .' unless invoked with -traditional
25591 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25592 CPPFLAGS
="$CPPFLAGS -traditional"
25595 echo creating lib-src
/Makefile
25597 rm -f junk.c junk1.c junk2.c
25598 sed -e '/start of cpp stuff/q' \
25599 < Makefile.c
> junk1.c
25600 sed -e '1,/start of cpp stuff/d'\
25601 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25602 < Makefile.c
> junk.c
25603 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25604 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25605 cat junk1.c junk2.c
> Makefile.new
25606 rm -f junk.c junk1.c junk2.c
25607 chmod 444 Makefile.new
25608 mv -f Makefile.new Makefile
25611 echo creating src
/Makefile
25613 rm -f junk.c junk1.c junk2.c
25614 sed -e '/start of cpp stuff/q' \
25615 < Makefile.c
> junk1.c
25616 sed -e '1,/start of cpp stuff/d'\
25617 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25618 < Makefile.c
> junk.c
25619 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25620 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25621 cat junk1.c junk2.c
> Makefile.new
25622 rm -f junk.c junk1.c junk2.c
25623 chmod 444 Makefile.new
25624 mv -f Makefile.new Makefile
25627 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25628 echo creating src
/.gdbinit
25629 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25638 { (exit 0); exit 0; }
25640 chmod +x
$CONFIG_STATUS
25641 ac_clean_files
=$ac_clean_files_save
25644 # configure is writing to config.log, and then calls config.status.
25645 # config.status does its own redirection, appending to config.log.
25646 # Unfortunately, on DOS this fails, as config.log is still kept open
25647 # by configure, so config.status won't be able to write to it; its
25648 # output is simply discarded. So we exec the FD to /dev/null,
25649 # effectively closing config.log, so it can be properly (re)opened and
25650 # appended to by config.status. When coming back to configure, we
25651 # need to make the FD available again.
25652 if test "$no_create" != yes; then
25654 ac_config_status_args
=
25655 test "$silent" = yes &&
25656 ac_config_status_args
="$ac_config_status_args --quiet"
25658 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25660 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25661 # would make configure fail if this is the last instruction.
25662 $ac_cs_success ||
{ (exit 1); exit 1; }