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
742 LIB_SRC_EXTRA_INSTALLABLES
745 ac_precious_vars
='build_alias
757 # Initialize some variables set by options.
759 ac_init_version
=false
760 # The variables have the same names as the options, with
761 # dashes changed to underlines.
769 program_transform_name
=s
,x
,x
,
777 # Installation directory options.
778 # These are left unexpanded so users can "make install exec_prefix=/foo"
779 # and all the variables that are supposed to be based on exec_prefix
780 # by default will actually change.
781 # Use braces instead of parens because sh, perl, etc. also accept them.
782 # (The list follows the same order as the GNU Coding Standards.)
783 bindir
='${exec_prefix}/bin'
784 sbindir
='${exec_prefix}/sbin'
785 libexecdir
='${exec_prefix}/libexec'
786 datarootdir
='${prefix}/share'
787 datadir
='${datarootdir}'
788 sysconfdir
='${prefix}/etc'
789 sharedstatedir
='${prefix}/com'
790 localstatedir
='${prefix}/var'
791 includedir
='${prefix}/include'
792 oldincludedir
='/usr/include'
793 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
794 infodir
='${datarootdir}/info'
799 libdir
='${exec_prefix}/lib'
800 localedir
='${datarootdir}/locale'
801 mandir
='${datarootdir}/man'
807 # If the previous option needs an argument, assign it.
808 if test -n "$ac_prev"; then
809 eval $ac_prev=\
$ac_option
815 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
819 # Accept the important Cygnus configure options, so we can diagnose typos.
821 case $ac_dashdash$ac_option in
825 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
827 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
830 -build |
--build |
--buil |
--bui |
--bu)
831 ac_prev
=build_alias
;;
832 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
833 build_alias
=$ac_optarg ;;
835 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
836 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
837 ac_prev
=cache_file
;;
838 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
839 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
840 cache_file
=$ac_optarg ;;
843 cache_file
=config.cache
;;
845 -datadir |
--datadir |
--datadi |
--datad)
847 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
848 datadir
=$ac_optarg ;;
850 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
851 |
--dataroo |
--dataro |
--datar)
852 ac_prev
=datarootdir
;;
853 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
854 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
855 datarootdir
=$ac_optarg ;;
857 -disable-* |
--disable-*)
858 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_
$ac_feature=no
;;
866 -docdir |
--docdir |
--docdi |
--doc |
--do)
868 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
871 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
873 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
876 -enable-* |
--enable-*)
877 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
878 # Reject names that are not valid shell variable names.
879 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
880 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
881 { (exit 1); exit 1; }; }
882 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
883 eval enable_
$ac_feature=\
$ac_optarg ;;
885 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
886 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
887 |
--exec |
--exe |
--ex)
888 ac_prev
=exec_prefix
;;
889 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
890 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
891 |
--exec=* |
--exe=* |
--ex=*)
892 exec_prefix
=$ac_optarg ;;
894 -gas |
--gas |
--ga |
--g)
895 # Obsolete; use --with-gas.
898 -help |
--help |
--hel |
--he |
-h)
900 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
901 ac_init_help
=recursive
;;
902 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
903 ac_init_help
=short
;;
905 -host |
--host |
--hos |
--ho)
906 ac_prev
=host_alias
;;
907 -host=* |
--host=* |
--hos=* |
--ho=*)
908 host_alias
=$ac_optarg ;;
910 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
912 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
914 htmldir
=$ac_optarg ;;
916 -includedir |
--includedir |
--includedi |
--included |
--include \
917 |
--includ |
--inclu |
--incl |
--inc)
918 ac_prev
=includedir
;;
919 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
920 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
921 includedir
=$ac_optarg ;;
923 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
925 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
926 infodir
=$ac_optarg ;;
928 -libdir |
--libdir |
--libdi |
--libd)
930 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
933 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
934 |
--libexe |
--libex |
--libe)
935 ac_prev
=libexecdir
;;
936 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
937 |
--libexe=* |
--libex=* |
--libe=*)
938 libexecdir
=$ac_optarg ;;
940 -localedir |
--localedir |
--localedi |
--localed |
--locale)
942 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
943 localedir
=$ac_optarg ;;
945 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
946 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
947 ac_prev
=localstatedir
;;
948 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
949 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
950 localstatedir
=$ac_optarg ;;
952 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
954 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
958 # Obsolete; use --without-fp.
961 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
962 |
--no-cr |
--no-c |
-n)
965 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
966 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
969 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
970 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
971 |
--oldin |
--oldi |
--old |
--ol |
--o)
972 ac_prev
=oldincludedir
;;
973 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
974 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
975 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
976 oldincludedir
=$ac_optarg ;;
978 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
980 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
983 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
984 |
--program-pre |
--program-pr |
--program-p)
985 ac_prev
=program_prefix
;;
986 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
987 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
988 program_prefix
=$ac_optarg ;;
990 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
991 |
--program-suf |
--program-su |
--program-s)
992 ac_prev
=program_suffix
;;
993 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
994 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
995 program_suffix
=$ac_optarg ;;
997 -program-transform-name |
--program-transform-name \
998 |
--program-transform-nam |
--program-transform-na \
999 |
--program-transform-n |
--program-transform- \
1000 |
--program-transform |
--program-transfor \
1001 |
--program-transfo |
--program-transf \
1002 |
--program-trans |
--program-tran \
1003 |
--progr-tra |
--program-tr |
--program-t)
1004 ac_prev
=program_transform_name
;;
1005 -program-transform-name=* |
--program-transform-name=* \
1006 |
--program-transform-nam=* |
--program-transform-na=* \
1007 |
--program-transform-n=* |
--program-transform-=* \
1008 |
--program-transform=* |
--program-transfor=* \
1009 |
--program-transfo=* |
--program-transf=* \
1010 |
--program-trans=* |
--program-tran=* \
1011 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1012 program_transform_name
=$ac_optarg ;;
1014 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1016 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1017 pdfdir
=$ac_optarg ;;
1019 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1021 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1024 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1025 |
-silent |
--silent |
--silen |
--sile |
--sil)
1028 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1030 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1032 sbindir
=$ac_optarg ;;
1034 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1035 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1036 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1038 ac_prev
=sharedstatedir
;;
1039 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1040 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1041 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1043 sharedstatedir
=$ac_optarg ;;
1045 -site |
--site |
--sit)
1047 -site=* |
--site=* |
--sit=*)
1050 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1052 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1053 srcdir
=$ac_optarg ;;
1055 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1056 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1057 ac_prev
=sysconfdir
;;
1058 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1059 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1060 sysconfdir
=$ac_optarg ;;
1062 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1063 ac_prev
=target_alias
;;
1064 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1065 target_alias
=$ac_optarg ;;
1067 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1070 -version |
--version |
--versio |
--versi |
--vers |
-V)
1071 ac_init_version
=: ;;
1074 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1075 # Reject names that are not valid shell variable names.
1076 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1077 { echo "$as_me: error: invalid package name: $ac_package" >&2
1078 { (exit 1); exit 1; }; }
1079 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1080 eval with_
$ac_package=\
$ac_optarg ;;
1082 -without-* |
--without-*)
1083 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1084 # Reject names that are not valid shell variable names.
1085 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1086 { echo "$as_me: error: invalid package name: $ac_package" >&2
1087 { (exit 1); exit 1; }; }
1088 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1089 eval with_
$ac_package=no
;;
1092 # Obsolete; use --with-x.
1095 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1096 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1097 ac_prev
=x_includes
;;
1098 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1099 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1100 x_includes
=$ac_optarg ;;
1102 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1103 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1104 ac_prev
=x_libraries
;;
1105 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1106 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1107 x_libraries
=$ac_optarg ;;
1109 -*) { echo "$as_me: error: unrecognized option: $ac_option
1110 Try \`$0 --help' for more information." >&2
1111 { (exit 1); exit 1; }; }
1115 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1118 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1119 { (exit 1); exit 1; }; }
1120 eval $ac_envvar=\
$ac_optarg
1121 export $ac_envvar ;;
1124 # FIXME: should be removed in autoconf 3.0.
1125 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1126 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1127 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1128 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1134 if test -n "$ac_prev"; then
1135 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1136 { echo "$as_me: error: missing argument to $ac_option" >&2
1137 { (exit 1); exit 1; }; }
1140 # Be sure to have absolute directory names.
1141 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1142 datadir sysconfdir sharedstatedir localstatedir includedir \
1143 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1144 libdir localedir mandir
1146 eval ac_val
=\$
$ac_var
1148 [\\/$
]* | ?
:[\\/]* ) continue;;
1149 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1151 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1152 { (exit 1); exit 1; }; }
1155 # There might be people who depend on the old broken behavior: `$host'
1156 # used to hold the argument of --host etc.
1157 # FIXME: To remove some day.
1160 target
=$target_alias
1162 # FIXME: To remove some day.
1163 if test "x$host_alias" != x
; then
1164 if test "x$build_alias" = x
; then
1165 cross_compiling
=maybe
1166 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1167 If a cross compiler is detected then cross compile mode will be used." >&2
1168 elif test "x$build_alias" != "x$host_alias"; then
1174 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1176 test "$silent" = yes && exec 6>/dev
/null
1179 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1180 ac_ls_di
=`ls -di .` &&
1181 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1182 { echo "$as_me: error: Working directory cannot be determined" >&2
1183 { (exit 1); exit 1; }; }
1184 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1185 { echo "$as_me: error: pwd does not report name of working directory" >&2
1186 { (exit 1); exit 1; }; }
1189 # Find the source files, if location was not specified.
1190 if test -z "$srcdir"; then
1191 ac_srcdir_defaulted
=yes
1192 # Try the directory containing this script, then the parent directory.
1193 ac_confdir
=`$as_dirname -- "$0" ||
1194 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1195 X"$0" : 'X\(//\)[^/]' \| \
1196 X"$0" : 'X\(//\)$' \| \
1197 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1199 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1221 ac_srcdir_defaulted
=no
1223 if test ! -r "$srcdir/$ac_unique_file"; then
1224 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1225 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1226 { (exit 1); exit 1; }; }
1228 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1230 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1231 { (exit 1); exit 1; }; }
1233 # When building in place, set srcdir=.
1234 if test "$ac_abs_confdir" = "$ac_pwd"; then
1237 # Remove unnecessary trailing slashes from srcdir.
1238 # Double slashes in file names in object file debugging info
1239 # mess up M-x gdb in Emacs.
1241 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1243 for ac_var
in $ac_precious_vars; do
1244 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1245 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1246 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1247 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1251 # Report the --help message.
1253 if test "$ac_init_help" = "long"; then
1254 # Omit some internal or obsolete options to make the list less imposing.
1255 # This message is too long to be a string in the A/UX 3.1 sh.
1257 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1259 Usage: $0 [OPTION]... [VAR=VALUE]...
1261 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1262 VAR=VALUE. See below for descriptions of some of the useful variables.
1264 Defaults for the options are specified in brackets.
1267 -h, --help display this help and exit
1268 --help=short display options specific to this package
1269 --help=recursive display the short help of all the included packages
1270 -V, --version display version information and exit
1271 -q, --quiet, --silent do not print \`checking...' messages
1272 --cache-file=FILE cache test results in FILE [disabled]
1273 -C, --config-cache alias for \`--cache-file=config.cache'
1274 -n, --no-create do not create output files
1275 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1277 Installation directories:
1278 --prefix=PREFIX install architecture-independent files in PREFIX
1279 [$ac_default_prefix]
1280 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1283 By default, \`make install' will install all the files in
1284 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1285 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1286 for instance \`--prefix=\$HOME'.
1288 For better control, use the options below.
1290 Fine tuning of the installation directories:
1291 --bindir=DIR user executables [EPREFIX/bin]
1292 --sbindir=DIR system admin executables [EPREFIX/sbin]
1293 --libexecdir=DIR program executables [EPREFIX/libexec]
1294 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1295 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1296 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1297 --libdir=DIR object code libraries [EPREFIX/lib]
1298 --includedir=DIR C header files [PREFIX/include]
1299 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1300 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1301 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1302 --infodir=DIR info documentation [DATAROOTDIR/info]
1303 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1304 --mandir=DIR man documentation [DATAROOTDIR/man]
1305 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1306 --htmldir=DIR html documentation [DOCDIR]
1307 --dvidir=DIR dvi documentation [DOCDIR]
1308 --pdfdir=DIR pdf documentation [DOCDIR]
1309 --psdir=DIR ps documentation [DOCDIR]
1315 --program-prefix=PREFIX prepend PREFIX to installed program names
1316 --program-suffix=SUFFIX append SUFFIX to installed program names
1317 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1320 --x-includes=DIR X include files are
in DIR
1321 --x-libraries=DIR X library files are
in DIR
1324 --build=BUILD configure
for building on BUILD
[guessed
]
1325 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1329 if test -n "$ac_init_help"; then
1330 case $ac_init_help in
1331 short | recursive
) echo "Configuration of emacs 23.0.60:";;
1336 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1337 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1338 --enable-cocoa-experimental-ctrl-g
1339 enable experimental improved ctrl-g recognition
1340 --disable-ns-self-contained
1341 disable self contained build under NeXTstep
1342 --enable-asserts compile code with asserts enabled
1343 --enable-maintainer-mode
1344 enable make rules and dependencies not useful
(and
1345 sometimes confusing
) to the casual installer
1346 --enable-locallisppath=PATH
1347 directories Emacs should search
for lisp files
1348 specific to this site
1349 --disable-largefile omit support
for large files
1352 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1353 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1354 --without-pop don
't support POP mail retrieval with movemail
1355 --with-kerberos support Kerberos-authenticated POP
1356 --with-kerberos5 support Kerberos version 5 authenticated POP
1357 --with-hesiod support Hesiod to get the POP server host
1358 --without-sound don't compile with sound support
1359 --without-sync-input Process async input synchronously
1360 --with-x-toolkit=KIT use an X toolkit
(KIT one of
: yes, lucid
, athena
,
1362 --without-xpm don
't compile with XPM image support
1363 --without-jpeg don't compile with JPEG image support
1364 --without-tiff don
't compile with TIFF image support
1365 --without-gif don't compile with GIF image support
1366 --without-png don
't compile with PNG image support
1367 --without-rsvg don't compile with SVG image support
1368 --without-freetype don
't use Freetype for local font support
1369 --without-xft don't use XFT
for anti aliased fonts
1370 --without-libotf don
't use libotf for OpenType font support
1371 --without-m17n-flt don't use m17n-flt
for text shaping
1372 --without-toolkit-scroll-bars
1373 don
't use Motif or Xaw3d scroll bars
1374 --without-xaw3d don't use Xaw3d
1375 --without-xim don
't use X11 XIM
1376 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1377 --without-gpm don't use
-lgpm for mouse support on a GNU
/Linux
1379 --without-dbus don
't compile with D-Bus support
1380 --without-makeinfo don't require makeinfo
for building manuals
1382 --with-pkg-config-prog=PATH
1383 Path to pkg-config
for finding GTK and librsvg
1384 --with-x use the X Window System
1386 Some influential environment variables
:
1387 CC C compiler
command
1388 CFLAGS C compiler flags
1389 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1390 nonstandard directory
<lib dir
>
1391 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1392 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1393 you have headers
in a nonstandard directory
<include dir
>
1395 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1397 Use these variables to override the choices made by
`configure' or to help
1398 it to find libraries and programs with nonstandard names/locations.
1404 if test "$ac_init_help" = "recursive"; then
1405 # If there are subdirs, report their specific --help.
1406 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1407 test -d "$ac_dir" || continue
1411 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1413 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1414 # A ".." for each directory in $ac_dir_suffix.
1415 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1416 case $ac_top_builddir_sub in
1417 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1418 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1421 ac_abs_top_builddir=$ac_pwd
1422 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1423 # for backward compatibility:
1424 ac_top_builddir=$ac_top_build_prefix
1427 .) # We are building in place.
1429 ac_top_srcdir=$ac_top_builddir_sub
1430 ac_abs_top_srcdir=$ac_pwd ;;
1431 [\\/]* | ?:[\\/]* ) # Absolute name.
1432 ac_srcdir=$srcdir$ac_dir_suffix;
1433 ac_top_srcdir=$srcdir
1434 ac_abs_top_srcdir=$srcdir ;;
1436 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1437 ac_top_srcdir=$ac_top_build_prefix$srcdir
1438 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1440 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1442 cd "$ac_dir" || { ac_status=$?; continue; }
1443 # Check for guested configure.
1444 if test -f "$ac_srcdir/configure.gnu"; then
1446 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1447 elif test -f "$ac_srcdir/configure"; then
1449 $SHELL "$ac_srcdir/configure" --help=recursive
1451 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1453 cd "$ac_pwd" || { ac_status=$?; break; }
1457 test -n "$ac_init_help" && exit $ac_status
1458 if $ac_init_version; then
1460 emacs configure 23.0.60
1461 generated by GNU Autoconf 2.61
1463 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1464 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1465 This configure script is free software; the Free Software Foundation
1466 gives unlimited permission to copy, distribute and modify it.
1470 cat >config.log <<_ACEOF
1471 This file contains any messages produced by compilers while
1472 running configure, to aid debugging if configure makes a mistake.
1474 It was created by emacs $as_me 23.0.60, which was
1475 generated by GNU Autoconf 2.61. Invocation command line was
1487 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1488 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1489 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1490 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1491 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1493 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1494 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1496 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1497 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1498 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1499 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1500 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1501 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1502 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1510 test -z "$as_dir" && as_dir=.
1511 echo "PATH: $as_dir"
1527 # Keep a trace of the command line.
1528 # Strip out --no-create and --no-recursion so they do not pile up.
1529 # Strip out --silent because we don't want to record it for future runs.
1530 # Also quote any args containing shell meta-characters.
1531 # Make two passes to allow for proper duplicate-argument suppression.
1535 ac_must_keep_next=false
1541 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1542 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1543 | -silent | --silent | --silen | --sile | --sil)
1546 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1549 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1551 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1552 if test $ac_must_keep_next = true; then
1553 ac_must_keep_next=false # Got value, back to normal.
1556 *=* | --config-cache | -C | -disable-* | --disable-* \
1557 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1558 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1559 | -with-* | --with-* | -without-* | --without-* | --x)
1560 case "$ac_configure_args0 " in
1561 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1564 -* ) ac_must_keep_next=true ;;
1567 ac_configure_args="$ac_configure_args '$ac_arg'"
1572 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1573 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1575 # When interrupted or exit'd, cleanup temporary files, and complete
1576 # config.log. We remove comments because anyway the quotes in there
1577 # would cause problems or look ugly.
1578 # WARNING: Use '\'' to represent an apostrophe within the trap.
1579 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1580 trap 'exit_status=$?
1581 # Save into config.log some information that might help in debugging.
1586 ## ---------------- ##
1587 ## Cache variables. ##
1588 ## ---------------- ##
1591 # The following way of writing the cache mishandles newlines in values,
1593 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1594 eval ac_val=\$$ac_var
1598 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1599 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1602 _ | IFS | as_nl) ;; #(
1603 *) $as_unset $ac_var ;;
1608 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1609 *${as_nl}ac_space=\ *)
1611 "s/'\''/'\''\\\\'\'''\''/g;
1612 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1615 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1623 ## ----------------- ##
1624 ## Output variables. ##
1625 ## ----------------- ##
1628 for ac_var in $ac_subst_vars
1630 eval ac_val=\$$ac_var
1632 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1634 echo "$ac_var='\''$ac_val'\''"
1638 if test -n "$ac_subst_files"; then
1640 ## ------------------- ##
1641 ## File substitutions. ##
1642 ## ------------------- ##
1645 for ac_var in $ac_subst_files
1647 eval ac_val=\$$ac_var
1649 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1651 echo "$ac_var='\''$ac_val'\''"
1656 if test -s confdefs.h; then
1666 test "$ac_signal" != 0 &&
1667 echo "$as_me: caught signal $ac_signal"
1668 echo "$as_me: exit $exit_status"
1670 rm -f core *.core core.conftest.* &&
1671 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1674 for ac_signal in 1 2 13 15; do
1675 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1679 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1680 rm -f -r conftest* confdefs.h
1682 # Predefined preprocessor variables.
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_NAME "$PACKAGE_NAME"
1689 cat >>confdefs.h <<_ACEOF
1690 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1694 cat >>confdefs.h <<_ACEOF
1695 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1699 cat >>confdefs.h <<_ACEOF
1700 #define PACKAGE_STRING "$PACKAGE_STRING"
1704 cat >>confdefs.h <<_ACEOF
1705 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1709 # Let the site file select an alternate cache file if it wants to.
1710 # Prefer explicitly selected file to automatically selected ones.
1711 if test -n "$CONFIG_SITE"; then
1712 set x "$CONFIG_SITE"
1713 elif test "x$prefix" != xNONE; then
1714 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1716 set x "$ac_default_prefix/share/config.site" \
1717 "$ac_default_prefix/etc/config.site"
1722 if test -r "$ac_site_file"; then
1723 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1724 echo "$as_me: loading site script $ac_site_file" >&6;}
1725 sed 's/^/| /' "$ac_site_file" >&5
1730 if test -r "$cache_file"; then
1731 # Some versions of bash will fail to source /dev/null (special
1732 # files actually), so we avoid doing that.
1733 if test -f "$cache_file"; then
1734 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1735 echo "$as_me: loading cache $cache_file" >&6;}
1737 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1738 *) . "./$cache_file";;
1742 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1743 echo "$as_me: creating cache $cache_file" >&6;}
1747 ac_header_list="$ac_header_list sys/time.h"
1748 ac_header_list="$ac_header_list unistd.h"
1749 ac_func_list="$ac_func_list alarm"
1750 # Check that the precious variables saved in the cache have kept the same
1752 ac_cache_corrupted=false
1753 for ac_var in $ac_precious_vars; do
1754 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1755 eval ac_new_set=\$ac_env_${ac_var}_set
1756 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1757 eval ac_new_val=\$ac_env_${ac_var}_value
1758 case $ac_old_set,$ac_new_set in
1760 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1761 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1762 ac_cache_corrupted=: ;;
1764 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1765 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1766 ac_cache_corrupted=: ;;
1769 if test "x$ac_old_val" != "x$ac_new_val"; then
1770 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1771 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1772 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1773 echo "$as_me: former value
: $ac_old_val" >&2;}
1774 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1775 echo "$as_me: current value
: $ac_new_val" >&2;}
1776 ac_cache_corrupted=:
1779 # Pass precious variables to config.status.
1780 if test "$ac_new_set" = set; then
1782 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1783 *) ac_arg=$ac_var=$ac_new_val ;;
1785 case " $ac_configure_args " in
1786 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1787 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1791 if $ac_cache_corrupted; then
1792 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1793 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1794 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1795 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1796 { (exit 1); exit 1; }; }
1824 ac_cpp='$CPP $CPPFLAGS'
1825 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1826 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1827 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1830 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1834 test "$program_prefix" != NONE &&
1835 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1836 # Use a double $ so make ignores it.
1837 test "$program_suffix" != NONE &&
1838 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1839 # Double any \ or $. echo might interpret backslashes.
1840 # By default was `s
,x
,x
', remove it if useless.
1841 cat <<\_ACEOF >conftest.sed
1842 s/[\\$]/&&/g;s/;s,x,x,$//
1844 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1848 lispdir='${datadir}/emacs
/${version}/lisp
'
1849 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1850 '${datadir}/emacs
/site-lisp
'
1851 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1852 etcdir='${datadir}/emacs
/${version}/etc
'
1853 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1854 docdir='${datadir}/emacs
/${version}/etc
'
1855 gamedir='${localstatedir}/games
/emacs
'
1862 # Check whether --with-pop was given.
1863 if test "${with_pop+set}" = set; then
1869 if test "$with_pop" = yes; then
1870 cat >>confdefs.h <<\_ACEOF
1871 #define MAIL_USE_POP 1
1878 # Check whether --with-kerberos was given.
1879 if test "${with_kerberos+set}" = set; then
1880 withval=$with_kerberos;
1885 if test "$with_kerberos" != no; then
1886 cat >>confdefs.h <<\_ACEOF
1894 # Check whether --with-kerberos5 was given.
1895 if test "${with_kerberos5+set}" = set; then
1896 withval=$with_kerberos5;
1901 if test "${with_kerberos5}" != no; then
1902 if test "${with_kerberos}" = no; then
1904 cat >>confdefs.h <<\_ACEOF
1910 cat >>confdefs.h <<\_ACEOF
1917 # Check whether --with-hesiod was given.
1918 if test "${with_hesiod+set}" = set; then
1919 withval=$with_hesiod;
1924 if test "$with_hesiod" != no; then
1926 cat >>confdefs.h <<\_ACEOF
1933 # Check whether --with-sound was given.
1934 if test "${with_sound+set}" = set; then
1935 withval=$with_sound;
1942 # Check whether --with-sync-input was given.
1943 if test "${with_sync_input+set}" = set; then
1944 withval=$with_sync_input;
1949 if test "$with_sync_input" = yes; then
1951 cat >>confdefs.h <<\_ACEOF
1952 #define SYNC_INPUT 1
1958 # Check whether --with-x-toolkit was given.
1959 if test "${with_x_toolkit+set}" = set; then
1960 withval=$with_x_toolkit; case "${withval}" in
1961 y | ye | yes ) val=gtk ;;
1963 l | lu | luc | luci | lucid ) val=lucid ;;
1964 a | at | ath | athe | athen | athena ) val=athena ;;
1965 m | mo | mot | moti | motif ) val=motif ;;
1966 g | gt | gtk ) val=gtk ;;
1968 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1969 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1970 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1971 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1972 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1973 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1974 { (exit 1); exit 1; }; }
1983 # Check whether --with-xpm was given.
1984 if test "${with_xpm+set}" = set; then
1991 # Check whether --with-jpeg was given.
1992 if test "${with_jpeg+set}" = set; then
1999 # Check whether --with-tiff was given.
2000 if test "${with_tiff+set}" = set; then
2007 # Check whether --with-gif was given.
2008 if test "${with_gif+set}" = set; then
2015 # Check whether --with-png was given.
2016 if test "${with_png+set}" = set; then
2023 # Check whether --with-rsvg was given.
2024 if test "${with_rsvg+set}" = set; then
2032 # Check whether --with-freetype was given.
2033 if test "${with_freetype+set}" = set; then
2034 withval=$with_freetype;
2040 # Check whether --with-xft was given.
2041 if test "${with_xft+set}" = set; then
2048 # Check whether --with-libotf was given.
2049 if test "${with_libotf+set}" = set; then
2050 withval=$with_libotf;
2056 # Check whether --with-m17n-flt was given.
2057 if test "${with_m17n_flt+set}" = set; then
2058 withval=$with_m17n_flt;
2065 # Check whether --with-toolkit-scroll-bars was given.
2066 if test "${with_toolkit_scroll_bars+set}" = set; then
2067 withval=$with_toolkit_scroll_bars;
2069 with_toolkit_scroll_bars=yes
2073 # Check whether --with-xaw3d was given.
2074 if test "${with_xaw3d+set}" = set; then
2075 withval=$with_xaw3d;
2081 # Check whether --with-xim was given.
2082 if test "${with_xim+set}" = set; then
2089 # Check whether --with-ns was given.
2090 if test "${with_ns+set}" = set; then
2098 # Check whether --with-gpm was given.
2099 if test "${with_gpm+set}" = set; then
2106 # Check whether --with-dbus was given.
2107 if test "${with_dbus+set}" = set; then
2114 ## For the times when you want to build Emacs but don't have
2115 ## a suitable makeinfo, and can live without the manuals.
2117 # Check whether --with-makeinfo was given.
2118 if test "${with_makeinfo+set}" = set; then
2119 withval
=$with_makeinfo;
2126 # Check whether --with-gtk was given.
2127 if test "${with_gtk+set}" = set; then
2128 withval
=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2129 specify a toolkit." >&5
2130 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2131 specify a toolkit." >&2;}
2132 { (exit 1); exit 1; }; }
2137 # Check whether --with-gcc was given.
2138 if test "${with_gcc+set}" = set; then
2139 withval
=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2140 variable to specify a compiler." >&5
2141 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2142 variable to specify a compiler." >&2;}
2143 { (exit 1); exit 1; }; }
2148 # Check whether --with-pkg-config-prog was given.
2149 if test "${with_pkg_config_prog+set}" = set; then
2150 withval
=$with_pkg_config_prog;
2153 if test "X${with_pkg_config_prog}" != X
; then
2154 if test "${with_pkg_config_prog}" != yes; then
2155 PKG_CONFIG
="${with_pkg_config_prog}"
2159 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2160 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2161 enableval
=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G
=$enableval
2163 EN_COCOA_EXPERIMENTAL_CTRL_G
=no
2167 # Check whether --enable-ns-self-contained was given.
2168 if test "${enable_ns_self_contained+set}" = set; then
2169 enableval
=$enable_ns_self_contained; EN_NS_SELF_CONTAINED
=$enableval
2171 EN_NS_SELF_CONTAINED
=yes
2175 # Check whether --enable-asserts was given.
2176 if test "${enable_asserts+set}" = set; then
2177 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2183 # Check whether --enable-maintainer-mode was given.
2184 if test "${enable_maintainer_mode+set}" = set; then
2185 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2187 USE_MAINTAINER_MODE
=no
2190 if test $USE_MAINTAINER_MODE = yes; then
2197 # Check whether --enable-locallisppath was given.
2198 if test "${enable_locallisppath+set}" = set; then
2199 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2201 elif test "${enableval}" != "yes"; then
2202 locallisppath
=${enableval}
2207 #### Make srcdir absolute, if it isn't already. It's important to
2208 #### avoid running the path through pwd unnecessarily, since pwd can
2209 #### give you automounter prefixes, which can go away. We do all this
2210 #### so Emacs can find its files when run uninstalled.
2211 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2216 ## We may be able to use the $PWD environment variable to make this
2217 ## absolute. But sometimes PWD is inaccurate.
2218 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2219 ## but that tested only for a well-formed and valid PWD,
2220 ## it did not object when PWD was well-formed and valid but just wrong.
2221 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2225 srcdir
="`(cd ${srcdir}; pwd)`"
2228 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2231 #### Check if the source directory already has a configured system in it.
2232 if test `pwd` != `(cd ${srcdir} && pwd)` \
2233 && test -f "${srcdir}/src/config.h" ; then
2234 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2235 as a build directory right now; it has been configured in its own
2236 right. To configure in another directory as well, you MUST
2237 use GNU make. If you do not have GNU make, then you must
2238 now do \`make distclean' in ${srcdir},
2239 and then run $0 again." >&5
2240 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2241 as a build directory right now; it has been configured in its own
2242 right. To configure in another directory as well, you MUST
2243 use GNU make. If you do not have GNU make, then you must
2244 now do \`make distclean' in ${srcdir},
2245 and then run $0 again." >&2;}
2248 #### Given the configuration name, set machfile and opsysfile to the
2249 #### names of the m/*.h and s/*.h files we should use.
2251 ### Canonicalize the configuration name.
2254 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2255 if test -f "$ac_dir/install-sh"; then
2257 ac_install_sh
="$ac_aux_dir/install-sh -c"
2259 elif test -f "$ac_dir/install.sh"; then
2261 ac_install_sh
="$ac_aux_dir/install.sh -c"
2263 elif test -f "$ac_dir/shtool"; then
2265 ac_install_sh
="$ac_aux_dir/shtool install -c"
2269 if test -z "$ac_aux_dir"; then
2270 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2271 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2272 { (exit 1); exit 1; }; }
2275 # These three variables are undocumented and unsupported,
2276 # and are intended to be withdrawn in a future Autoconf release.
2277 # They can cause serious problems if a builder's source tree is in a directory
2278 # whose full name contains unusual characters.
2279 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2280 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2281 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2284 # Make sure we can run config.sub.
2285 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2286 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2287 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2288 { (exit 1); exit 1; }; }
2290 { echo "$as_me:$LINENO: checking build system type" >&5
2291 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2292 if test "${ac_cv_build+set}" = set; then
2293 echo $ECHO_N "(cached) $ECHO_C" >&6
2295 ac_build_alias
=$build_alias
2296 test "x$ac_build_alias" = x
&&
2297 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2298 test "x$ac_build_alias" = x
&&
2299 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2300 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2301 { (exit 1); exit 1; }; }
2302 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2303 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2304 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2305 { (exit 1); exit 1; }; }
2308 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2309 echo "${ECHO_T}$ac_cv_build" >&6; }
2310 case $ac_cv_build in
2312 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2313 echo "$as_me: error: invalid value of canonical build" >&2;}
2314 { (exit 1); exit 1; }; };;
2317 ac_save_IFS
=$IFS; IFS
='-'
2323 # Remember, the first character of IFS is used to create $*,
2324 # except with old shells:
2327 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2330 { echo "$as_me:$LINENO: checking host system type" >&5
2331 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2332 if test "${ac_cv_host+set}" = set; then
2333 echo $ECHO_N "(cached) $ECHO_C" >&6
2335 if test "x$host_alias" = x
; then
2336 ac_cv_host
=$ac_cv_build
2338 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2339 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2340 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2341 { (exit 1); exit 1; }; }
2345 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2346 echo "${ECHO_T}$ac_cv_host" >&6; }
2349 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2350 echo "$as_me: error: invalid value of canonical host" >&2;}
2351 { (exit 1); exit 1; }; };;
2354 ac_save_IFS
=$IFS; IFS
='-'
2360 # Remember, the first character of IFS is used to create $*,
2361 # except with old shells:
2364 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2368 configuration
=${host_alias-${build_alias-$host}}
2372 ### If you add support for a new configuration, add code to this
2373 ### switch statement to recognize your configuration name and select
2374 ### the appropriate operating system and machine description files.
2376 ### You would hope that you could choose an m/*.h file pretty much
2377 ### based on the machine portion of the configuration name, and an s-
2378 ### file based on the operating system portion. However, it turns out
2379 ### that each m/*.h file is pretty manufacturer-specific - for
2380 ### example mips.h is MIPS
2381 ### So we basically have to have a special case for each
2382 ### configuration name.
2384 ### As far as handling version numbers on operating systems is
2385 ### concerned, make sure things will fail in a fixable way. If
2386 ### /etc/MACHINES doesn't say anything about version numbers, be
2387 ### prepared to handle anything reasonably. If version numbers
2388 ### matter, be sure /etc/MACHINES says something about it.
2390 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2391 ### "System V Release 4"; he writes, "The old convention encouraged
2392 ### confusion between `system' and `release' levels'."
2394 machine
='' opsys
='' unported
=no
2395 case "${canonical}" in
2400 case "${canonical}" in
2401 alpha
*-*-freebsd*) machine
=alpha
;;
2402 arm
*-*-freebsd*) machine
=arm
;;
2403 ia64-
*-freebsd*) machine
=ia64
;;
2404 sparc-
*-freebsd*) machine
=sparc
;;
2405 sparc64-
*-freebsd*) machine
=sparc
;;
2406 powerpc-
*-freebsd*) machine
=macppc
;;
2407 i
[3456]86-*-freebsd*) machine
=intel386
;;
2408 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2412 ## FreeBSD kernel + glibc based userland
2415 case "${canonical}" in
2416 alpha
*-*-kfreebsd*) machine
=alpha
;;
2417 ia64-
*-kfreebsd*) machine
=ia64
;;
2418 sparc-
*-kfreebsd*) machine
=sparc
;;
2419 sparc64-
*-kfreebsd*) machine
=sparc
;;
2420 powerpc-
*-kfreebsd*) machine
=macppc
;;
2421 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2422 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2429 if test -f /usr
/lib
/crti.o
; then
2431 cat >>confdefs.h
<<\_ACEOF
2437 case "${canonical}" in
2438 alpha
*-*-netbsd*) machine
=alpha
;;
2439 i
[3456]86-*-netbsd*) machine
=intel386
;;
2440 powerpc-
*-netbsd*) machine
=macppc
;;
2441 sparc
*-*-netbsd*) machine
=sparc
;;
2442 vax-
*-netbsd*) machine
=vax
;;
2443 arm-
*-netbsd*) machine
=arm
;;
2444 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2445 hppa-
*-netbsd*) machine
=hp800
;;
2452 case "${canonical}" in
2453 alpha
*-*-openbsd*) machine
=alpha
;;
2454 arm-
*-openbsd*) machine
=arm
;;
2455 i386-
*-openbsd*) machine
=intel386
;;
2456 powerpc-
*-openbsd*) machine
=macppc
;;
2457 sparc
*-*-openbsd*) machine
=sparc
;;
2458 vax-
*-openbsd*) machine
=vax
;;
2459 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2466 case "${canonical}" in
2467 i
[3456]86-*-lynxos*) machine
=intel386
;;
2468 powerpc-
*-lynxos*) machine
=powerpc
;;
2472 alpha
*-*-linux-gnu* )
2473 machine
=alpha opsys
=gnu-linux
2477 machine
=arm opsys
=gnu-linux
2480 ## Apple Darwin / Mac OS X
2482 case "${canonical}" in
2483 i
[3456]86-* ) machine
=intel386
;;
2484 powerpc-
* ) machine
=macppc
;;
2488 # Define CPP as follows to make autoconf work correctly.
2489 CPP
="${CC-cc} -E -no-cpp-precomp"
2490 # Use fink packages if available.
2491 if test -d /sw
/include
&& test -d /sw
/lib
; then
2492 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2493 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2494 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2498 ## HP 9000 series 700 and 800, running HP/UX
2499 hppa
*-hp-hpux10.2
* )
2500 machine
=hp800 opsys
=hpux10-20
2502 hppa
*-hp-hpux1[1-9]* )
2503 machine
=hp800 opsys
=hpux11
2504 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2507 hppa
*-*-linux-gnu* )
2508 machine
=hp800 opsys
=gnu-linux
2513 machine
=ibms390 opsys
=gnu-linux
2515 s390x-
*-linux-gnu* )
2516 machine
=ibms390x opsys
=gnu-linux
2518 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2519 machine
=ibmrs6000 opsys
=aix4-2
2521 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2522 machine
=ibmrs6000 opsys
=aix4-2
2524 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2525 machine
=ibmrs6000 opsys
=aix4-2
2527 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2528 machine
=ibmrs6000 opsys
=aix4-2
2531 ## Macintosh PowerPC
2532 powerpc
*-*-linux-gnu* )
2533 machine
=macppc opsys
=gnu-linux
2536 ## Silicon Graphics machines
2539 machine
=iris4d opsys
=irix6-5
2540 # Without defining _LANGUAGE_C, things get masked out in the headers
2541 # so that, for instance, grepping for `free' in stdlib.h fails and
2542 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2543 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2544 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2548 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2549 machine
=sparc opsys
=gnu-linux
2553 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2554 | rs6000-
*-solaris2*)
2555 case "${canonical}" in
2556 i
[3456]86-*-* ) machine
=intel386
;;
2557 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2558 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2559 sparc
* ) machine
=sparc
;;
2562 case "${canonical}" in
2563 *-sunos5.3
* |
*-solaris2.3
* )
2565 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2567 *-sunos5.4
* |
*-solaris2.4
* )
2569 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2572 *-sunos5.5
* |
*-solaris2.5
* )
2574 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2577 *-sunos5.6
* |
*-solaris2.6
* )
2579 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2582 *-sunos5* |
*-solaris* )
2584 emacs_check_sunpro_c
=yes
2585 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2588 ## Watch out for a compiler that we know will not work.
2589 case "${canonical}" in
2590 *-solaris* |
*-sunos5* )
2591 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2592 ## /usr/ucb/cc doesn't work;
2593 ## we should find some other compiler that does work.
2604 case "${canonical}" in
2605 *-vms* ) opsys
=vms
;;
2612 machine
=ia64 opsys
=gnu-linux
2615 ## Intel 386 machines where we don't care about the manufacturer
2618 case "${canonical}" in
2619 *-cygwin ) opsys
=cygwin
;;
2620 *-darwin* ) opsys
=darwin
2621 CPP
="${CC-cc} -E -no-cpp-precomp"
2623 *-linux-gnu* ) opsys
=gnu-linux
;;
2624 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2625 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2626 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2627 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2631 ## m68k Linux-based GNU system
2633 machine
=m68k opsys
=gnu-linux
2636 ## Mips Linux-based GNU system
2637 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2638 machine
=mips opsys
=gnu-linux
2641 ## AMD x86-64 Linux-based GNU system
2642 x86_64-
*-linux-gnu* )
2643 machine
=amdx86-64 opsys
=gnu-linux
2646 ## Tensilica Xtensa Linux-based GNU system
2647 xtensa
*-*-linux-gnu* )
2648 machine
=xtensa opsys
=gnu-linux
2656 ### If the code above didn't choose an operating system, just choose
2657 ### an operating system based on the configuration name. You really
2658 ### only want to use this when you have no idea what the right
2659 ### operating system is; if you know what operating systems a machine
2660 ### runs, it's cleaner to make it explicit in the case statement
2662 if test x
"${opsys}" = x
; then
2663 case "${canonical}" in
2664 *-gnu* ) opsys
=gnu
;;
2665 *-sysv4.2uw
* ) opsys
=unixware
;;
2666 *-sysv5uw* ) opsys
=unixware
;;
2667 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2668 *-sysv4.1
* |
*-sysvr4.1
* )
2669 NON_GNU_CPP
=/usr
/lib
/cpp
2671 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2672 if [ x
$NON_GNU_CPP = x
]; then
2673 if [ -f /usr
/ccs
/lib
/cpp
]; then
2674 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2676 NON_GNU_CPP
=/lib
/cpp
2680 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2689 if test $unported = yes; then
2690 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2691 Check \`etc/MACHINES' for recognized configuration names." >&5
2692 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2693 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2694 { (exit 1); exit 1; }; }
2697 machfile
="m/${machine}.h"
2698 opsysfile
="s/${opsys}.h"
2701 #### Choose a compiler.
2702 test -n "$CC" && cc_specified
=yes
2704 # Save the value of CFLAGS that the user specified.
2705 SPECIFIED_CFLAGS
="$CFLAGS"
2708 ac_cpp
='$CPP $CPPFLAGS'
2709 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2714 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2715 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2716 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2717 if test "${ac_cv_prog_CC+set}" = set; then
2718 echo $ECHO_N "(cached) $ECHO_C" >&6
2720 if test -n "$CC"; then
2721 ac_cv_prog_CC
="$CC" # Let the user override the test.
2723 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2727 test -z "$as_dir" && as_dir
=.
2728 for ac_exec_ext
in '' $ac_executable_extensions; do
2729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2730 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2731 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2741 if test -n "$CC"; then
2742 { echo "$as_me:$LINENO: result: $CC" >&5
2743 echo "${ECHO_T}$CC" >&6; }
2745 { echo "$as_me:$LINENO: result: no" >&5
2746 echo "${ECHO_T}no" >&6; }
2751 if test -z "$ac_cv_prog_CC"; then
2753 # Extract the first word of "gcc", so it can be a program name with args.
2754 set dummy gcc
; ac_word
=$2
2755 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2756 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2757 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2758 echo $ECHO_N "(cached) $ECHO_C" >&6
2760 if test -n "$ac_ct_CC"; then
2761 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2763 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2767 test -z "$as_dir" && as_dir
=.
2768 for ac_exec_ext
in '' $ac_executable_extensions; do
2769 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2770 ac_cv_prog_ac_ct_CC
="gcc"
2771 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2780 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2781 if test -n "$ac_ct_CC"; then
2782 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2783 echo "${ECHO_T}$ac_ct_CC" >&6; }
2785 { echo "$as_me:$LINENO: result: no" >&5
2786 echo "${ECHO_T}no" >&6; }
2789 if test "x$ac_ct_CC" = x
; then
2792 case $cross_compiling:$ac_tool_warned in
2794 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2795 whose name does not start with the host triplet. If you think this
2796 configuration is useful to you, please write to autoconf@gnu.org." >&5
2797 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2798 whose name does not start with the host triplet. If you think this
2799 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2800 ac_tool_warned
=yes ;;
2808 if test -z "$CC"; then
2809 if test -n "$ac_tool_prefix"; then
2810 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2811 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2812 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2813 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2814 if test "${ac_cv_prog_CC+set}" = set; then
2815 echo $ECHO_N "(cached) $ECHO_C" >&6
2817 if test -n "$CC"; then
2818 ac_cv_prog_CC
="$CC" # Let the user override the test.
2820 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2824 test -z "$as_dir" && as_dir
=.
2825 for ac_exec_ext
in '' $ac_executable_extensions; do
2826 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2827 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2828 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2838 if test -n "$CC"; then
2839 { echo "$as_me:$LINENO: result: $CC" >&5
2840 echo "${ECHO_T}$CC" >&6; }
2842 { echo "$as_me:$LINENO: result: no" >&5
2843 echo "${ECHO_T}no" >&6; }
2849 if test -z "$CC"; then
2850 # Extract the first word of "cc", so it can be a program name with args.
2851 set dummy cc
; ac_word
=$2
2852 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2854 if test "${ac_cv_prog_CC+set}" = set; then
2855 echo $ECHO_N "(cached) $ECHO_C" >&6
2857 if test -n "$CC"; then
2858 ac_cv_prog_CC
="$CC" # Let the user override the test.
2861 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2865 test -z "$as_dir" && as_dir
=.
2866 for ac_exec_ext
in '' $ac_executable_extensions; do
2867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2868 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2869 ac_prog_rejected
=yes
2873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2880 if test $ac_prog_rejected = yes; then
2881 # We found a bogon in the path, so make sure we never use it.
2882 set dummy
$ac_cv_prog_CC
2884 if test $# != 0; then
2885 # We chose a different compiler from the bogus one.
2886 # However, it has the same basename, so the bogon will be chosen
2887 # first if we set CC to just the basename; use the full file name.
2889 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
2895 if test -n "$CC"; then
2896 { echo "$as_me:$LINENO: result: $CC" >&5
2897 echo "${ECHO_T}$CC" >&6; }
2899 { echo "$as_me:$LINENO: result: no" >&5
2900 echo "${ECHO_T}no" >&6; }
2905 if test -z "$CC"; then
2906 if test -n "$ac_tool_prefix"; then
2907 for ac_prog
in cl.exe
2909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2910 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2913 if test "${ac_cv_prog_CC+set}" = set; then
2914 echo $ECHO_N "(cached) $ECHO_C" >&6
2916 if test -n "$CC"; then
2917 ac_cv_prog_CC
="$CC" # Let the user override the test.
2919 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2923 test -z "$as_dir" && as_dir
=.
2924 for ac_exec_ext
in '' $ac_executable_extensions; do
2925 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2926 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
2927 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2937 if test -n "$CC"; then
2938 { echo "$as_me:$LINENO: result: $CC" >&5
2939 echo "${ECHO_T}$CC" >&6; }
2941 { echo "$as_me:$LINENO: result: no" >&5
2942 echo "${ECHO_T}no" >&6; }
2946 test -n "$CC" && break
2949 if test -z "$CC"; then
2951 for ac_prog
in cl.exe
2953 # Extract the first word of "$ac_prog", so it can be a program name with args.
2954 set dummy
$ac_prog; ac_word
=$2
2955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2957 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2958 echo $ECHO_N "(cached) $ECHO_C" >&6
2960 if test -n "$ac_ct_CC"; then
2961 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2967 test -z "$as_dir" && as_dir
=.
2968 for ac_exec_ext
in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2970 ac_cv_prog_ac_ct_CC
="$ac_prog"
2971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2981 if test -n "$ac_ct_CC"; then
2982 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2983 echo "${ECHO_T}$ac_ct_CC" >&6; }
2985 { echo "$as_me:$LINENO: result: no" >&5
2986 echo "${ECHO_T}no" >&6; }
2990 test -n "$ac_ct_CC" && break
2993 if test "x$ac_ct_CC" = x
; then
2996 case $cross_compiling:$ac_tool_warned in
2998 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2999 whose name does not start with the host triplet. If you think this
3000 configuration is useful to you, please write to autoconf@gnu.org." >&5
3001 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3002 whose name does not start with the host triplet. If you think this
3003 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3004 ac_tool_warned
=yes ;;
3013 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3014 See \`config.log' for more details." >&5
3015 echo "$as_me: error: no acceptable C compiler found in \$PATH
3016 See \`config.log' for more details." >&2;}
3017 { (exit 1); exit 1; }; }
3019 # Provide some information about the compiler.
3020 echo "$as_me:$LINENO: checking for C compiler version" >&5
3021 ac_compiler
=`set X $ac_compile; echo $2`
3022 { (ac_try
="$ac_compiler --version >&5"
3024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3025 *) ac_try_echo=$ac_try;;
3027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3028 (eval "$ac_compiler --version >&5") 2>&5
3030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3031 (exit $ac_status); }
3032 { (ac_try="$ac_compiler -v >&5"
3034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3035 *) ac_try_echo
=$ac_try;;
3037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3038 (eval "$ac_compiler -v >&5") 2>&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); }
3042 { (ac_try
="$ac_compiler -V >&5"
3044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3045 *) ac_try_echo=$ac_try;;
3047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3048 (eval "$ac_compiler -V >&5") 2>&5
3050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3051 (exit $ac_status); }
3053 cat >conftest.$ac_ext <<_ACEOF
3056 cat confdefs.h >>conftest.$ac_ext
3057 cat >>conftest.$ac_ext <<_ACEOF
3058 /* end confdefs.h. */
3068 ac_clean_files_save=$ac_clean_files
3069 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3070 # Try to create an executable without -o first, disregard a.out.
3071 # It will help us diagnose broken compilers, and finding out an intuition
3073 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3074 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3075 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3077 # List of possible output files, starting from the most likely.
3078 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3079 # only as a last resort. b.out is created by i960 compilers.
3080 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3082 # The IRIX 6 linker writes into existing files which may not be
3083 # executable, retaining their permissions. Remove them first so a
3084 # subsequent execution test works.
3086 for ac_file in $ac_files
3089 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3090 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3095 if { (ac_try="$ac_link_default"
3097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3098 *) ac_try_echo=$ac_try;;
3100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3101 (eval "$ac_link_default") 2>&5
3103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3104 (exit $ac_status); }; then
3105 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3106 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3107 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3108 # so that the user can short-circuit this test for compilers unknown to
3110 for ac_file
in $ac_files ''
3112 test -f "$ac_file" ||
continue
3114 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3117 # We found the default executable, but exeext='' is most
3121 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3123 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3125 # We set ac_cv_exeext here because the later test for it is not
3126 # safe: cross compilers may not add the suffix if given an `-o'
3127 # argument, so we may need to know it at that point already.
3128 # Even if this section looks crufty: it has the advantage of
3135 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3141 { echo "$as_me:$LINENO: result: $ac_file" >&5
3142 echo "${ECHO_T}$ac_file" >&6; }
3143 if test -z "$ac_file"; then
3144 echo "$as_me: failed program was:" >&5
3145 sed 's/^/| /' conftest.
$ac_ext >&5
3147 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3148 See \`config.log' for more details." >&5
3149 echo "$as_me: error: C compiler cannot create executables
3150 See \`config.log' for more details." >&2;}
3151 { (exit 77); exit 77; }; }
3154 ac_exeext
=$ac_cv_exeext
3156 # Check that the compiler produces executables we can run. If not, either
3157 # the compiler is broken, or we cross compile.
3158 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3159 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3160 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3161 # If not cross compiling, check that we can run a simple program.
3162 if test "$cross_compiling" != yes; then
3163 if { ac_try
='./$ac_file'
3164 { (case "(($ac_try" in
3165 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3166 *) ac_try_echo=$ac_try;;
3168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3169 (eval "$ac_try") 2>&5
3171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); }; }; then
3175 if test "$cross_compiling" = maybe; then
3178 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3179 If you meant to cross compile, use \`--host'.
3180 See \`config.log' for more details.
" >&5
3181 echo "$as_me: error
: cannot run C compiled programs.
3182 If you meant to cross compile
, use \
`--host'.
3183 See \`config.log
' for more details." >&2;}
3184 { (exit 1); exit 1; }; }
3188 { echo "$as_me:$LINENO: result: yes" >&5
3189 echo "${ECHO_T}yes" >&6; }
3191 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3192 ac_clean_files=$ac_clean_files_save
3193 # Check that the compiler produces executables we can run. If not, either
3194 # the compiler is broken, or we cross compile.
3195 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3196 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3197 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3198 echo "${ECHO_T}$cross_compiling" >&6; }
3200 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3201 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3202 if { (ac_try="$ac_link"
3204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3205 *) ac_try_echo=$ac_try;;
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_link") 2>&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }; then
3212 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3213 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3214 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3216 for ac_file
in conftest.exe conftest conftest.
*; do
3217 test -f "$ac_file" ||
continue
3219 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3220 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3226 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3227 See \`config.log' for more details." >&5
3228 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3229 See \`config.log' for more details." >&2;}
3230 { (exit 1); exit 1; }; }
3233 rm -f conftest
$ac_cv_exeext
3234 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3235 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3237 rm -f conftest.
$ac_ext
3238 EXEEXT
=$ac_cv_exeext
3240 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3241 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3242 if test "${ac_cv_objext+set}" = set; then
3243 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 cat >conftest.
$ac_ext <<_ACEOF
3248 cat confdefs.h
>>conftest.
$ac_ext
3249 cat >>conftest.
$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3260 rm -f conftest.o conftest.obj
3261 if { (ac_try
="$ac_compile"
3263 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3267 (eval "$ac_compile") 2>&5
3269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3270 (exit $ac_status); }; then
3271 for ac_file in conftest.o conftest.obj conftest.*; do
3272 test -f "$ac_file" || continue;
3274 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3275 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3280 echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3283 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3284 See \`config.log
' for more details." >&5
3285 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3286 See \`config.log' for more details.
" >&2;}
3287 { (exit 1); exit 1; }; }
3290 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3292 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3293 echo "${ECHO_T}$ac_cv_objext" >&6; }
3294 OBJEXT=$ac_cv_objext
3296 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3297 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3298 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3299 echo $ECHO_N "(cached
) $ECHO_C" >&6
3301 cat >conftest.$ac_ext <<_ACEOF
3304 cat confdefs.h >>conftest.$ac_ext
3305 cat >>conftest.$ac_ext <<_ACEOF
3306 /* end confdefs.h. */
3319 rm -f conftest.$ac_objext
3320 if { (ac_try="$ac_compile"
3322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323 *) ac_try_echo=$ac_try;;
3325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3326 (eval "$ac_compile") 2>conftest.er1
3328 grep -v '^ *+' conftest.er1 >conftest.err
3330 cat conftest.err >&5
3331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3332 (exit $ac_status); } && {
3333 test -z "$ac_c_werror_flag" ||
3334 test ! -s conftest.err
3335 } && test -s conftest.$ac_objext; then
3338 echo "$as_me: failed program was
:" >&5
3339 sed 's/^/| /' conftest.$ac_ext >&5
3344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3345 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3348 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3349 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3350 GCC=`test $ac_compiler_gnu = yes && echo yes`
3351 ac_test_CFLAGS=${CFLAGS+set}
3352 ac_save_CFLAGS=$CFLAGS
3353 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3354 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3355 if test "${ac_cv_prog_cc_g+set}" = set; then
3356 echo $ECHO_N "(cached
) $ECHO_C" >&6
3358 ac_save_c_werror_flag=$ac_c_werror_flag
3359 ac_c_werror_flag=yes
3362 cat >conftest.$ac_ext <<_ACEOF
3365 cat confdefs.h >>conftest.$ac_ext
3366 cat >>conftest.$ac_ext <<_ACEOF
3367 /* end confdefs.h. */
3377 rm -f conftest.$ac_objext
3378 if { (ac_try="$ac_compile"
3380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3381 *) ac_try_echo=$ac_try;;
3383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3384 (eval "$ac_compile") 2>conftest.er1
3386 grep -v '^ *+' conftest.er1 >conftest.err
3388 cat conftest.err >&5
3389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3390 (exit $ac_status); } && {
3391 test -z "$ac_c_werror_flag" ||
3392 test ! -s conftest.err
3393 } && test -s conftest.$ac_objext; then
3396 echo "$as_me: failed program was
:" >&5
3397 sed 's/^/| /' conftest.$ac_ext >&5
3400 cat >conftest.$ac_ext <<_ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3415 rm -f conftest.$ac_objext
3416 if { (ac_try="$ac_compile"
3418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419 *) ac_try_echo=$ac_try;;
3421 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3422 (eval "$ac_compile") 2>conftest.er1
3424 grep -v '^ *+' conftest.er1 >conftest.err
3426 cat conftest.err >&5
3427 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3428 (exit $ac_status); } && {
3429 test -z "$ac_c_werror_flag" ||
3430 test ! -s conftest.err
3431 } && test -s conftest.$ac_objext; then
3434 echo "$as_me: failed program was
:" >&5
3435 sed 's/^/| /' conftest.$ac_ext >&5
3437 ac_c_werror_flag=$ac_save_c_werror_flag
3439 cat >conftest.$ac_ext <<_ACEOF
3442 cat confdefs.h >>conftest.$ac_ext
3443 cat >>conftest.$ac_ext <<_ACEOF
3444 /* end confdefs.h. */
3454 rm -f conftest.$ac_objext
3455 if { (ac_try="$ac_compile"
3457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3458 *) ac_try_echo=$ac_try;;
3460 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3461 (eval "$ac_compile") 2>conftest.er1
3463 grep -v '^ *+' conftest.er1 >conftest.err
3465 cat conftest.err >&5
3466 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3467 (exit $ac_status); } && {
3468 test -z "$ac_c_werror_flag" ||
3469 test ! -s conftest.err
3470 } && test -s conftest.$ac_objext; then
3473 echo "$as_me: failed program was
:" >&5
3474 sed 's/^/| /' conftest.$ac_ext >&5
3479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3486 ac_c_werror_flag=$ac_save_c_werror_flag
3488 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3489 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3490 if test "$ac_test_CFLAGS" = set; then
3491 CFLAGS=$ac_save_CFLAGS
3492 elif test $ac_cv_prog_cc_g = yes; then
3493 if test "$GCC" = yes; then
3499 if test "$GCC" = yes; then
3505 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3506 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3507 if test "${ac_cv_prog_cc_c89+set}" = set; then
3508 echo $ECHO_N "(cached
) $ECHO_C" >&6
3510 ac_cv_prog_cc_c89=no
3512 cat >conftest.$ac_ext <<_ACEOF
3515 cat confdefs.h >>conftest.$ac_ext
3516 cat >>conftest.$ac_ext <<_ACEOF
3517 /* end confdefs.h. */
3520 #include <sys/types.h>
3521 #include <sys/stat.h>
3522 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3523 struct buf { int x; };
3524 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3525 static char *e (p, i)
3531 static char *f (char * (*g) (char **, int), char **p, ...)
3536 s = g (p, va_arg (v,int));
3541 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3542 function prototypes and stuff, but not '\xHH' hex character constants.
3543 These don't provoke an error unfortunately, instead are silently treated
3544 as 'x'. The following induces an error, until -std is added to get
3545 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3546 array size at least. It's necessary to write '\x00'==0 to get something
3547 that's true only with -std. */
3548 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3550 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3551 inside strings and character constants. */
3553 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3555 int test (int i, double x);
3556 struct s1 {int (*f) (int a);};
3557 struct s2 {int (*f) (double a);};
3558 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3564 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3569 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3570 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3572 CC="$ac_save_CC $ac_arg"
3573 rm -f conftest.$ac_objext
3574 if { (ac_try="$ac_compile"
3576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3577 *) ac_try_echo=$ac_try;;
3579 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3580 (eval "$ac_compile") 2>conftest.er1
3582 grep -v '^ *+' conftest.er1 >conftest.err
3584 cat conftest.err >&5
3585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3586 (exit $ac_status); } && {
3587 test -z "$ac_c_werror_flag" ||
3588 test ! -s conftest.err
3589 } && test -s conftest.$ac_objext; then
3590 ac_cv_prog_cc_c89=$ac_arg
3592 echo "$as_me: failed program was
:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3598 rm -f core conftest.err conftest.$ac_objext
3599 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3601 rm -f conftest.$ac_ext
3606 case "x
$ac_cv_prog_cc_c89" in
3608 { echo "$as_me:$LINENO: result
: none needed
" >&5
3609 echo "${ECHO_T}none needed
" >&6; } ;;
3611 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3612 echo "${ECHO_T}unsupported
" >&6; } ;;
3614 CC="$CC $ac_cv_prog_cc_c89"
3615 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3616 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3621 ac_cpp='$CPP $CPPFLAGS'
3622 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3623 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3624 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3627 # On Suns, sometimes $CPP names a directory.
3628 if test -n "$CPP" && test -d "$CPP"; then
3632 ## If not using gcc, and on Solaris, and no CPP specified, see if
3633 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3634 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3635 test x"$CPP" = x; then
3636 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3637 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3639 if test "${emacs_cv_sunpro_c+set}" = set; then
3640 echo $ECHO_N "(cached
) $ECHO_C" >&6
3642 cat >conftest.$ac_ext <<_ACEOF
3645 cat confdefs.h >>conftest.$ac_ext
3646 cat >>conftest.$ac_ext <<_ACEOF
3647 /* end confdefs.h. */
3660 rm -f conftest.$ac_objext conftest$ac_exeext
3661 if { (ac_try="$ac_link"
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3666 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3667 (eval "$ac_link") 2>conftest.er1
3669 grep -v '^ *+' conftest.er1 >conftest.err
3671 cat conftest.err >&5
3672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3673 (exit $ac_status); } && {
3674 test -z "$ac_c_werror_flag" ||
3675 test ! -s conftest.err
3676 } && test -s conftest$ac_exeext &&
3677 $as_test_x conftest$ac_exeext; then
3678 emacs_cv_sunpro_c=yes
3680 echo "$as_me: failed program was
:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3683 emacs_cv_sunpro_c=no
3686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3687 conftest$ac_exeext conftest.$ac_ext
3690 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3691 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3693 if test x"$emacs_cv_sunpro_c" = xyes; then
3694 NON_GNU_CPP="$CC -E -Xs"
3698 #### Some systems specify a CPP to use unless we are using GCC.
3699 #### Now that we know whether we are using GCC, we can decide whether
3700 #### to use that one.
3701 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3706 #### Some systems specify a CC to use unless we are using GCC.
3707 #### Now that we know whether we are using GCC, we can decide whether
3708 #### to use that one.
3709 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3710 test x$cc_specified != xyes
3715 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3717 CC="$CC $GCC_TEST_OPTIONS"
3720 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3722 CC="$CC $NON_GCC_TEST_OPTIONS"
3726 cat >>confdefs.h <<\_ACEOF
3727 #define _GNU_SOURCE 1
3732 ac_cpp='$CPP $CPPFLAGS'
3733 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3734 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3735 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3736 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3737 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3738 # On Suns, sometimes $CPP names a directory.
3739 if test -n "$CPP" && test -d "$CPP"; then
3742 if test -z "$CPP"; then
3743 if test "${ac_cv_prog_CPP+set}" = set; then
3744 echo $ECHO_N "(cached
) $ECHO_C" >&6
3746 # Double quotes because CPP needs to be expanded
3747 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3750 for ac_c_preproc_warn_flag in '' yes
3752 # Use a header file that comes with gcc, so configuring glibc
3753 # with a fresh cross-compiler works.
3754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3755 # <limits.h> exists even on freestanding compilers.
3756 # On the NeXT, cc -E runs the code through the compiler's parser,
3757 # not just through cpp. "Syntax error
" is here to catch this case.
3758 cat >conftest.$ac_ext <<_ACEOF
3761 cat confdefs.h >>conftest.$ac_ext
3762 cat >>conftest.$ac_ext <<_ACEOF
3763 /* end confdefs.h. */
3765 # include <limits.h>
3767 # include <assert.h>
3771 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3774 *) ac_try_echo=$ac_try;;
3776 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3777 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3779 grep -v '^ *+' conftest.er1 >conftest.err
3781 cat conftest.err >&5
3782 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3783 (exit $ac_status); } >/dev/null && {
3784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3785 test ! -s conftest.err
3789 echo "$as_me: failed program was
:" >&5
3790 sed 's/^/| /' conftest.$ac_ext >&5
3792 # Broken: fails on valid input.
3796 rm -f conftest.err conftest.$ac_ext
3798 # OK, works on sane cases. Now check whether nonexistent headers
3799 # can be detected and how.
3800 cat >conftest.$ac_ext <<_ACEOF
3803 cat confdefs.h >>conftest.$ac_ext
3804 cat >>conftest.$ac_ext <<_ACEOF
3805 /* end confdefs.h. */
3806 #include <ac_nonexistent.h>
3808 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3811 *) ac_try_echo=$ac_try;;
3813 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3814 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3816 grep -v '^ *+' conftest.er1 >conftest.err
3818 cat conftest.err >&5
3819 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3820 (exit $ac_status); } >/dev/null && {
3821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3822 test ! -s conftest.err
3824 # Broken: success on invalid input.
3827 echo "$as_me: failed program was
:" >&5
3828 sed 's/^/| /' conftest.$ac_ext >&5
3830 # Passes both tests.
3835 rm -f conftest.err conftest.$ac_ext
3838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3839 rm -f conftest.err conftest.$ac_ext
3840 if $ac_preproc_ok; then
3852 { echo "$as_me:$LINENO: result
: $CPP" >&5
3853 echo "${ECHO_T}$CPP" >&6; }
3855 for ac_c_preproc_warn_flag in '' yes
3857 # Use a header file that comes with gcc, so configuring glibc
3858 # with a fresh cross-compiler works.
3859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3860 # <limits.h> exists even on freestanding compilers.
3861 # On the NeXT, cc -E runs the code through the compiler's parser,
3862 # not just through cpp. "Syntax error
" is here to catch this case.
3863 cat >conftest.$ac_ext <<_ACEOF
3866 cat confdefs.h >>conftest.$ac_ext
3867 cat >>conftest.$ac_ext <<_ACEOF
3868 /* end confdefs.h. */
3870 # include <limits.h>
3872 # include <assert.h>
3876 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3879 *) ac_try_echo=$ac_try;;
3881 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3882 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3884 grep -v '^ *+' conftest.er1 >conftest.err
3886 cat conftest.err >&5
3887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3888 (exit $ac_status); } >/dev/null && {
3889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3890 test ! -s conftest.err
3894 echo "$as_me: failed program was
:" >&5
3895 sed 's/^/| /' conftest.$ac_ext >&5
3897 # Broken: fails on valid input.
3901 rm -f conftest.err conftest.$ac_ext
3903 # OK, works on sane cases. Now check whether nonexistent headers
3904 # can be detected and how.
3905 cat >conftest.$ac_ext <<_ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911 #include <ac_nonexistent.h>
3913 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3916 *) ac_try_echo=$ac_try;;
3918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3919 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3921 grep -v '^ *+' conftest.er1 >conftest.err
3923 cat conftest.err >&5
3924 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3925 (exit $ac_status); } >/dev/null && {
3926 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3927 test ! -s conftest.err
3929 # Broken: success on invalid input.
3932 echo "$as_me: failed program was
:" >&5
3933 sed 's/^/| /' conftest.$ac_ext >&5
3935 # Passes both tests.
3940 rm -f conftest.err conftest.$ac_ext
3943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3944 rm -f conftest.err conftest.$ac_ext
3945 if $ac_preproc_ok; then
3948 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
3949 See \
`config.log' for more details." >&5
3950 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3951 See \`config.log
' for more details." >&2;}
3952 { (exit 1); exit 1; }; }
3956 ac_cpp='$CPP $CPPFLAGS'
3957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
3958 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
3959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3962 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3963 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3964 if test "${ac_cv_path_GREP+set}" = set; then
3965 echo $ECHO_N "(cached) $ECHO_C" >&6
3967 # Extract the first word of "grep ggrep" to use in msg output
3968 if test -z "$GREP"; then
3969 set dummy grep ggrep; ac_prog_name=$2
3970 if test "${ac_cv_path_GREP+set}" = set; then
3971 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 ac_path_GREP_found=false
3974 # Loop through the user's path and
test for each of PROGNAME-LIST
3975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3976 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
3979 test -z "$as_dir" && as_dir
=.
3980 for ac_prog
in grep ggrep
; do
3981 for ac_exec_ext
in '' $ac_executable_extensions; do
3982 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
3983 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
3984 # Check for GNU ac_path_GREP and select it if it is found.
3985 # Check for GNU $ac_path_GREP
3986 case `"$ac_path_GREP" --version 2>&1` in
3988 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
3991 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3994 cat "conftest.in" "conftest.in" >"conftest.tmp"
3995 mv "conftest.tmp" "conftest.in"
3996 cp "conftest.in" "conftest.nl"
3997 echo 'GREP' >> "conftest.nl"
3998 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
3999 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4000 ac_count
=`expr $ac_count + 1`
4001 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4002 # Best one so far, save it but keep looking for a better one
4003 ac_cv_path_GREP
="$ac_path_GREP"
4004 ac_path_GREP_max
=$ac_count
4006 # 10*(2^10) chars as input seems more than enough
4007 test $ac_count -gt 10 && break
4009 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4013 $ac_path_GREP_found && break 3
4023 GREP
="$ac_cv_path_GREP"
4024 if test -z "$GREP"; then
4025 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4026 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4027 { (exit 1); exit 1; }; }
4031 ac_cv_path_GREP
=$GREP
4036 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4037 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4038 GREP
="$ac_cv_path_GREP"
4041 { echo "$as_me:$LINENO: checking for egrep" >&5
4042 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4043 if test "${ac_cv_path_EGREP+set}" = set; then
4044 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4047 then ac_cv_path_EGREP
="$GREP -E"
4049 # Extract the first word of "egrep" to use in msg output
4050 if test -z "$EGREP"; then
4051 set dummy
egrep; ac_prog_name
=$2
4052 if test "${ac_cv_path_EGREP+set}" = set; then
4053 echo $ECHO_N "(cached) $ECHO_C" >&6
4055 ac_path_EGREP_found
=false
4056 # Loop through the user's path and test for each of PROGNAME-LIST
4057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4058 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4061 test -z "$as_dir" && as_dir
=.
4062 for ac_prog
in egrep; do
4063 for ac_exec_ext
in '' $ac_executable_extensions; do
4064 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4065 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4066 # Check for GNU ac_path_EGREP and select it if it is found.
4067 # Check for GNU $ac_path_EGREP
4068 case `"$ac_path_EGREP" --version 2>&1` in
4070 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4073 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4076 cat "conftest.in" "conftest.in" >"conftest.tmp"
4077 mv "conftest.tmp" "conftest.in"
4078 cp "conftest.in" "conftest.nl"
4079 echo 'EGREP' >> "conftest.nl"
4080 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4081 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4082 ac_count
=`expr $ac_count + 1`
4083 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4084 # Best one so far, save it but keep looking for a better one
4085 ac_cv_path_EGREP
="$ac_path_EGREP"
4086 ac_path_EGREP_max
=$ac_count
4088 # 10*(2^10) chars as input seems more than enough
4089 test $ac_count -gt 10 && break
4091 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4095 $ac_path_EGREP_found && break 3
4105 EGREP
="$ac_cv_path_EGREP"
4106 if test -z "$EGREP"; then
4107 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4108 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4109 { (exit 1); exit 1; }; }
4113 ac_cv_path_EGREP
=$EGREP
4119 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4120 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4121 EGREP
="$ac_cv_path_EGREP"
4125 { echo "$as_me:$LINENO: checking for AIX" >&5
4126 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4127 cat >conftest.
$ac_ext <<_ACEOF
4130 cat confdefs.h
>>conftest.
$ac_ext
4131 cat >>conftest.
$ac_ext <<_ACEOF
4132 /* end confdefs.h. */
4138 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4139 $EGREP "yes" >/dev
/null
2>&1; then
4140 { echo "$as_me:$LINENO: result: yes" >&5
4141 echo "${ECHO_T}yes" >&6; }
4142 cat >>confdefs.h
<<\_ACEOF
4143 #define _ALL_SOURCE 1
4147 { echo "$as_me:$LINENO: result: no" >&5
4148 echo "${ECHO_T}no" >&6; }
4153 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4154 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4155 if test "${ac_cv_header_stdc+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4158 cat >conftest.
$ac_ext <<_ACEOF
4161 cat confdefs.h
>>conftest.
$ac_ext
4162 cat >>conftest.
$ac_ext <<_ACEOF
4163 /* end confdefs.h. */
4177 rm -f conftest.
$ac_objext
4178 if { (ac_try
="$ac_compile"
4180 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4181 *) ac_try_echo=$ac_try;;
4183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4184 (eval "$ac_compile") 2>conftest.er1
4186 grep -v '^ *+' conftest.er1 >conftest.err
4188 cat conftest.err >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); } && {
4191 test -z "$ac_c_werror_flag" ||
4192 test ! -s conftest.err
4193 } && test -s conftest.$ac_objext; then
4194 ac_cv_header_stdc=yes
4196 echo "$as_me: failed program was:" >&5
4197 sed 's/^/| /' conftest.$ac_ext >&5
4199 ac_cv_header_stdc=no
4202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 if test $ac_cv_header_stdc = yes; then
4205 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4206 cat >conftest.$ac_ext <<_ACEOF
4209 cat confdefs.h >>conftest.$ac_ext
4210 cat >>conftest.$ac_ext <<_ACEOF
4211 /* end confdefs.h. */
4215 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4216 $EGREP "memchr" >/dev/null 2>&1; then
4219 ac_cv_header_stdc=no
4225 if test $ac_cv_header_stdc = yes; then
4226 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4227 cat >conftest.$ac_ext <<_ACEOF
4230 cat confdefs.h >>conftest.$ac_ext
4231 cat >>conftest.$ac_ext <<_ACEOF
4232 /* end confdefs.h. */
4236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4237 $EGREP "free" >/dev/null 2>&1; then
4240 ac_cv_header_stdc=no
4246 if test $ac_cv_header_stdc = yes; then
4247 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4248 if test "$cross_compiling" = yes; then
4251 cat >conftest.$ac_ext <<_ACEOF
4254 cat confdefs.h >>conftest.$ac_ext
4255 cat >>conftest.$ac_ext <<_ACEOF
4256 /* end confdefs.h. */
4259 #if ((' ' & 0x0FF) == 0x020)
4260 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4261 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4263 # define ISLOWER(c) \
4264 (('a' <= (c) && (c) <= 'i') \
4265 || ('j' <= (c) && (c) <= 'r') \
4266 || ('s' <= (c) && (c) <= 'z'))
4267 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4270 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4275 for (i = 0; i < 256; i++)
4276 if (XOR (islower (i), ISLOWER (i))
4277 || toupper (i) != TOUPPER (i))
4282 rm -f conftest$ac_exeext
4283 if { (ac_try="$ac_link"
4285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4286 *) ac_try_echo
=$ac_try;;
4288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4289 (eval "$ac_link") 2>&5
4291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4292 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4293 { (case "(($ac_try" in
4294 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4295 *) ac_try_echo=$ac_try;;
4297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4298 (eval "$ac_try") 2>&5
4300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4301 (exit $ac_status); }; }; then
4304 echo "$as_me: program exited with status $ac_status" >&5
4305 echo "$as_me: failed program was:" >&5
4306 sed 's/^/| /' conftest.$ac_ext >&5
4309 ac_cv_header_stdc=no
4311 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4317 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4318 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4319 if test $ac_cv_header_stdc = yes; then
4321 cat >>confdefs.h <<\_ACEOF
4322 #define STDC_HEADERS 1
4327 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4337 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4338 inttypes.h stdint.h unistd.h
4340 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4344 echo $ECHO_N "(cached) $ECHO_C" >&6
4346 cat >conftest.$ac_ext <<_ACEOF
4349 cat confdefs.h >>conftest.$ac_ext
4350 cat >>conftest.$ac_ext <<_ACEOF
4351 /* end confdefs.h. */
4352 $ac_includes_default
4354 #include <$ac_header>
4356 rm -f conftest.$ac_objext
4357 if { (ac_try="$ac_compile"
4359 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4360 *) ac_try_echo
=$ac_try;;
4362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4363 (eval "$ac_compile") 2>conftest.er1
4365 grep -v '^ *+' conftest.er1
>conftest.err
4367 cat conftest.err
>&5
4368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4369 (exit $ac_status); } && {
4370 test -z "$ac_c_werror_flag" ||
4371 test ! -s conftest.err
4372 } && test -s conftest.
$ac_objext; then
4373 eval "$as_ac_Header=yes"
4375 echo "$as_me: failed program was:" >&5
4376 sed 's/^/| /' conftest.
$ac_ext >&5
4378 eval "$as_ac_Header=no"
4381 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4383 ac_res
=`eval echo '${'$as_ac_Header'}'`
4384 { echo "$as_me:$LINENO: result: $ac_res" >&5
4385 echo "${ECHO_T}$ac_res" >&6; }
4386 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4387 cat >>confdefs.h
<<_ACEOF
4388 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4396 if test "${ac_cv_header_minix_config_h+set}" = set; then
4397 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4398 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4399 if test "${ac_cv_header_minix_config_h+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4403 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4405 # Is the header compilable?
4406 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4407 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4408 cat >conftest.
$ac_ext <<_ACEOF
4411 cat confdefs.h
>>conftest.
$ac_ext
4412 cat >>conftest.
$ac_ext <<_ACEOF
4413 /* end confdefs.h. */
4414 $ac_includes_default
4415 #include <minix/config.h>
4417 rm -f conftest.
$ac_objext
4418 if { (ac_try
="$ac_compile"
4420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4421 *) ac_try_echo=$ac_try;;
4423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4424 (eval "$ac_compile") 2>conftest.er1
4426 grep -v '^ *+' conftest.er1 >conftest.err
4428 cat conftest.err >&5
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); } && {
4431 test -z "$ac_c_werror_flag" ||
4432 test ! -s conftest.err
4433 } && test -s conftest.$ac_objext; then
4434 ac_header_compiler=yes
4436 echo "$as_me: failed program was:" >&5
4437 sed 's/^/| /' conftest.$ac_ext >&5
4439 ac_header_compiler=no
4442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4443 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4444 echo "${ECHO_T}$ac_header_compiler" >&6; }
4446 # Is the header present?
4447 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4448 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4449 cat >conftest.$ac_ext <<_ACEOF
4452 cat confdefs.h >>conftest.$ac_ext
4453 cat >>conftest.$ac_ext <<_ACEOF
4454 /* end confdefs.h. */
4455 #include <minix/config.h>
4457 if { (ac_try="$ac_cpp conftest.$ac_ext"
4459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4460 *) ac_try_echo
=$ac_try;;
4462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4463 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4465 grep -v '^ *+' conftest.er1
>conftest.err
4467 cat conftest.err
>&5
4468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4469 (exit $ac_status); } >/dev
/null
&& {
4470 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4471 test ! -s conftest.err
4473 ac_header_preproc
=yes
4475 echo "$as_me: failed program was:" >&5
4476 sed 's/^/| /' conftest.
$ac_ext >&5
4478 ac_header_preproc
=no
4481 rm -f conftest.err conftest.
$ac_ext
4482 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4483 echo "${ECHO_T}$ac_header_preproc" >&6; }
4485 # So? What about this header?
4486 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4488 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4489 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4490 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4491 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4492 ac_header_preproc
=yes
4495 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4496 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4498 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4500 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4502 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4503 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4504 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4505 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4506 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4510 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4511 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4512 if test "${ac_cv_header_minix_config_h+set}" = set; then
4513 echo $ECHO_N "(cached) $ECHO_C" >&6
4515 ac_cv_header_minix_config_h
=$ac_header_preproc
4517 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4518 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4521 if test $ac_cv_header_minix_config_h = yes; then
4528 if test "$MINIX" = yes; then
4530 cat >>confdefs.h
<<\_ACEOF
4531 #define _POSIX_SOURCE 1
4535 cat >>confdefs.h
<<\_ACEOF
4536 #define _POSIX_1_SOURCE 2
4540 cat >>confdefs.h
<<\_ACEOF
4556 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4557 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4558 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4559 echo $ECHO_N "(cached) $ECHO_C" >&6
4561 cat >conftest.
$ac_ext <<_ACEOF
4564 cat confdefs.h
>>conftest.
$ac_ext
4565 cat >>conftest.
$ac_ext <<_ACEOF
4566 /* end confdefs.h. */
4568 # define __EXTENSIONS__ 1
4569 $ac_includes_default
4578 rm -f conftest.
$ac_objext
4579 if { (ac_try
="$ac_compile"
4581 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4585 (eval "$ac_compile") 2>conftest.er1
4587 grep -v '^ *+' conftest.er1 >conftest.err
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } && {
4592 test -z "$ac_c_werror_flag" ||
4593 test ! -s conftest.err
4594 } && test -s conftest.$ac_objext; then
4595 ac_cv_safe_to_define___extensions__=yes
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4600 ac_cv_safe_to_define___extensions__=no
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4605 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4606 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4607 test $ac_cv_safe_to_define___extensions__ = yes &&
4608 cat >>confdefs.h <<\_ACEOF
4609 #define __EXTENSIONS__ 1
4612 cat >>confdefs.h <<\_ACEOF
4613 #define _POSIX_PTHREAD_SEMANTICS 1
4616 cat >>confdefs.h <<\_ACEOF
4617 #define _TANDEM_SOURCE 1
4622 ### Use -Wno-pointer-sign if the compiler supports it
4623 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4624 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4625 SAVE_CFLAGS="$CFLAGS"
4626 CFLAGS="$CFLAGS -Wno-pointer-sign"
4627 cat >conftest.$ac_ext <<_ACEOF
4630 cat confdefs.h >>conftest.$ac_ext
4631 cat >>conftest.$ac_ext <<_ACEOF
4632 /* end confdefs.h. */
4642 rm -f conftest.$ac_objext
4643 if { (ac_try="$ac_compile"
4645 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4646 *) ac_try_echo
=$ac_try;;
4648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4649 (eval "$ac_compile") 2>conftest.er1
4651 grep -v '^ *+' conftest.er1
>conftest.err
4653 cat conftest.err
>&5
4654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4655 (exit $ac_status); } && {
4656 test -z "$ac_c_werror_flag" ||
4657 test ! -s conftest.err
4658 } && test -s conftest.
$ac_objext; then
4661 echo "$as_me: failed program was:" >&5
4662 sed 's/^/| /' conftest.
$ac_ext >&5
4667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4668 if test $has_option = yes; then
4669 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4671 { echo "$as_me:$LINENO: result: $has_option" >&5
4672 echo "${ECHO_T}$has_option" >&6; }
4673 CFLAGS
="$SAVE_CFLAGS"
4677 #### Some other nice autoconf tests.
4679 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4680 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4682 if test "$LN_S" = "ln -s"; then
4683 { echo "$as_me:$LINENO: result: yes" >&5
4684 echo "${ECHO_T}yes" >&6; }
4686 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4687 echo "${ECHO_T}no, using $LN_S" >&6; }
4691 ac_cpp
='$CPP $CPPFLAGS'
4692 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4693 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4694 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4695 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4696 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4697 # On Suns, sometimes $CPP names a directory.
4698 if test -n "$CPP" && test -d "$CPP"; then
4701 if test -z "$CPP"; then
4702 if test "${ac_cv_prog_CPP+set}" = set; then
4703 echo $ECHO_N "(cached) $ECHO_C" >&6
4705 # Double quotes because CPP needs to be expanded
4706 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4709 for ac_c_preproc_warn_flag
in '' yes
4711 # Use a header file that comes with gcc, so configuring glibc
4712 # with a fresh cross-compiler works.
4713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4714 # <limits.h> exists even on freestanding compilers.
4715 # On the NeXT, cc -E runs the code through the compiler's parser,
4716 # not just through cpp. "Syntax error" is here to catch this case.
4717 cat >conftest.
$ac_ext <<_ACEOF
4720 cat confdefs.h
>>conftest.
$ac_ext
4721 cat >>conftest.
$ac_ext <<_ACEOF
4722 /* end confdefs.h. */
4724 # include <limits.h>
4726 # include <assert.h>
4730 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4732 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4738 grep -v '^ *+' conftest.er1 >conftest.err
4740 cat conftest.err >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } >/dev/null && {
4743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4744 test ! -s conftest.err
4748 echo "$as_me: failed program was:" >&5
4749 sed 's/^/| /' conftest.$ac_ext >&5
4751 # Broken: fails on valid input.
4755 rm -f conftest.err conftest.$ac_ext
4757 # OK, works on sane cases. Now check whether nonexistent headers
4758 # can be detected and how.
4759 cat >conftest.$ac_ext <<_ACEOF
4762 cat confdefs.h >>conftest.$ac_ext
4763 cat >>conftest.$ac_ext <<_ACEOF
4764 /* end confdefs.h. */
4765 #include <ac_nonexistent.h>
4767 if { (ac_try="$ac_cpp conftest.$ac_ext"
4769 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4770 *) ac_try_echo
=$ac_try;;
4772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4775 grep -v '^ *+' conftest.er1
>conftest.err
4777 cat conftest.err
>&5
4778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } >/dev
/null
&& {
4780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4781 test ! -s conftest.err
4783 # Broken: success on invalid input.
4786 echo "$as_me: failed program was:" >&5
4787 sed 's/^/| /' conftest.
$ac_ext >&5
4789 # Passes both tests.
4794 rm -f conftest.err conftest.
$ac_ext
4797 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4798 rm -f conftest.err conftest.
$ac_ext
4799 if $ac_preproc_ok; then
4811 { echo "$as_me:$LINENO: result: $CPP" >&5
4812 echo "${ECHO_T}$CPP" >&6; }
4814 for ac_c_preproc_warn_flag
in '' yes
4816 # Use a header file that comes with gcc, so configuring glibc
4817 # with a fresh cross-compiler works.
4818 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4819 # <limits.h> exists even on freestanding compilers.
4820 # On the NeXT, cc -E runs the code through the compiler's parser,
4821 # not just through cpp. "Syntax error" is here to catch this case.
4822 cat >conftest.
$ac_ext <<_ACEOF
4825 cat confdefs.h
>>conftest.
$ac_ext
4826 cat >>conftest.
$ac_ext <<_ACEOF
4827 /* end confdefs.h. */
4829 # include <limits.h>
4831 # include <assert.h>
4835 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4843 grep -v '^ *+' conftest.er1 >conftest.err
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } >/dev/null && {
4848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4849 test ! -s conftest.err
4853 echo "$as_me: failed program was:" >&5
4854 sed 's/^/| /' conftest.$ac_ext >&5
4856 # Broken: fails on valid input.
4860 rm -f conftest.err conftest.$ac_ext
4862 # OK, works on sane cases. Now check whether nonexistent headers
4863 # can be detected and how.
4864 cat >conftest.$ac_ext <<_ACEOF
4867 cat confdefs.h >>conftest.$ac_ext
4868 cat >>conftest.$ac_ext <<_ACEOF
4869 /* end confdefs.h. */
4870 #include <ac_nonexistent.h>
4872 if { (ac_try="$ac_cpp conftest.$ac_ext"
4874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4875 *) ac_try_echo
=$ac_try;;
4877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4880 grep -v '^ *+' conftest.er1
>conftest.err
4882 cat conftest.err
>&5
4883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4884 (exit $ac_status); } >/dev
/null
&& {
4885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4886 test ! -s conftest.err
4888 # Broken: success on invalid input.
4891 echo "$as_me: failed program was:" >&5
4892 sed 's/^/| /' conftest.
$ac_ext >&5
4894 # Passes both tests.
4899 rm -f conftest.err conftest.
$ac_ext
4902 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4903 rm -f conftest.err conftest.
$ac_ext
4904 if $ac_preproc_ok; then
4907 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4908 See \`config.log' for more details." >&5
4909 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4910 See \`config.log' for more details." >&2;}
4911 { (exit 1); exit 1; }; }
4915 ac_cpp
='$CPP $CPPFLAGS'
4916 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4920 # Find a good install program. We prefer a C program (faster),
4921 # so one script is as good as another. But avoid the broken or
4922 # incompatible versions:
4923 # SysV /etc/install, /usr/sbin/install
4924 # SunOS /usr/etc/install
4925 # IRIX /sbin/install
4927 # AmigaOS /C/install, which installs bootblocks on floppy discs
4928 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4929 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4930 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4931 # OS/2's system install, which has a completely different semantic
4932 # ./install, which can be erroneously created by make from ./install.sh.
4933 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4934 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4935 if test -z "$INSTALL"; then
4936 if test "${ac_cv_path_install+set}" = set; then
4937 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4943 test -z "$as_dir" && as_dir
=.
4944 # Account for people who put trailing slashes in PATH elements.
4946 .
/ | .
// |
/cC
/* | \
4947 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4948 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4951 # OSF1 and SCO ODT 3.0 have their own names for install.
4952 # Don't use installbsd from OSF since it installs stuff as root
4954 for ac_prog
in ginstall scoinst
install; do
4955 for ac_exec_ext
in '' $ac_executable_extensions; do
4956 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4957 if test $ac_prog = install &&
4958 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4959 # AIX install. It has an incompatible calling convention.
4961 elif test $ac_prog = install &&
4962 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4963 # program-specific install script used by HP pwplus--don't use.
4966 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4979 if test "${ac_cv_path_install+set}" = set; then
4980 INSTALL
=$ac_cv_path_install
4982 # As a last resort, use the slow shell script. Don't cache a
4983 # value for INSTALL within a source directory, because that will
4984 # break other packages using the cache if that directory is
4985 # removed, or if the value is a relative name.
4986 INSTALL
=$ac_install_sh
4989 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4990 echo "${ECHO_T}$INSTALL" >&6; }
4992 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4993 # It thinks the first close brace ends the variable substitution.
4994 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4996 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4998 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5000 if test "x$RANLIB" = x
; then
5001 if test -n "$ac_tool_prefix"; then
5002 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5003 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5004 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5005 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5006 if test "${ac_cv_prog_RANLIB+set}" = set; then
5007 echo $ECHO_N "(cached) $ECHO_C" >&6
5009 if test -n "$RANLIB"; then
5010 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5012 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5016 test -z "$as_dir" && as_dir
=.
5017 for ac_exec_ext
in '' $ac_executable_extensions; do
5018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5019 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5020 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5029 RANLIB
=$ac_cv_prog_RANLIB
5030 if test -n "$RANLIB"; then
5031 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5032 echo "${ECHO_T}$RANLIB" >&6; }
5034 { echo "$as_me:$LINENO: result: no" >&5
5035 echo "${ECHO_T}no" >&6; }
5040 if test -z "$ac_cv_prog_RANLIB"; then
5041 ac_ct_RANLIB
=$RANLIB
5042 # Extract the first word of "ranlib", so it can be a program name with args.
5043 set dummy ranlib
; ac_word
=$2
5044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5046 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5047 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 if test -n "$ac_ct_RANLIB"; then
5050 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5052 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5056 test -z "$as_dir" && as_dir
=.
5057 for ac_exec_ext
in '' $ac_executable_extensions; do
5058 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5059 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5069 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5070 if test -n "$ac_ct_RANLIB"; then
5071 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5072 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5074 { echo "$as_me:$LINENO: result: no" >&5
5075 echo "${ECHO_T}no" >&6; }
5078 if test "x$ac_ct_RANLIB" = x
; then
5081 case $cross_compiling:$ac_tool_warned in
5083 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5084 whose name does not start with the host triplet. If you think this
5085 configuration is useful to you, please write to autoconf@gnu.org." >&5
5086 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5087 whose name does not start with the host triplet. If you think this
5088 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5089 ac_tool_warned
=yes ;;
5091 RANLIB
=$ac_ct_RANLIB
5094 RANLIB
="$ac_cv_prog_RANLIB"
5098 # Extract the first word of "install-info", so it can be a program name with args.
5099 set dummy install-info
; ac_word
=$2
5100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5102 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5105 case $INSTALL_INFO in
5107 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5110 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5114 test -z "$as_dir" && as_dir
=.
5115 for ac_exec_ext
in '' $ac_executable_extensions; do
5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5117 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5129 if test -n "$INSTALL_INFO"; then
5130 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5131 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5133 { echo "$as_me:$LINENO: result: no" >&5
5134 echo "${ECHO_T}no" >&6; }
5138 # Extract the first word of "install-info", so it can be a program name with args.
5139 set dummy install-info
; ac_word
=$2
5140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5142 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5145 case $INSTALL_INFO in
5147 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5151 for as_dir
in /usr
/sbin
5154 test -z "$as_dir" && as_dir
=.
5155 for ac_exec_ext
in '' $ac_executable_extensions; do
5156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5157 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5168 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5169 if test -n "$INSTALL_INFO"; then
5170 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5171 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5173 { echo "$as_me:$LINENO: result: no" >&5
5174 echo "${ECHO_T}no" >&6; }
5178 # Extract the first word of "install-info", so it can be a program name with args.
5179 set dummy install-info
; ac_word
=$2
5180 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5181 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5182 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5183 echo $ECHO_N "(cached) $ECHO_C" >&6
5185 case $INSTALL_INFO in
5187 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5190 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5194 test -z "$as_dir" && as_dir
=.
5195 for ac_exec_ext
in '' $ac_executable_extensions; do
5196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5197 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5205 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5209 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5210 if test -n "$INSTALL_INFO"; then
5211 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5212 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5214 { echo "$as_me:$LINENO: result: no" >&5
5215 echo "${ECHO_T}no" >&6; }
5219 # Extract the first word of "gzip", so it can be a program name with args.
5220 set dummy
gzip; ac_word
=$2
5221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5223 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5228 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5231 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5235 test -z "$as_dir" && as_dir
=.
5236 for ac_exec_ext
in '' $ac_executable_extensions; do
5237 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5238 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5239 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5249 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5250 if test -n "$GZIP_PROG"; then
5251 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5252 echo "${ECHO_T}$GZIP_PROG" >&6; }
5254 { echo "$as_me:$LINENO: result: no" >&5
5255 echo "${ECHO_T}no" >&6; }
5261 ## Need makeinfo >= 4.6 (?) to build the manuals.
5262 # Extract the first word of "makeinfo", so it can be a program name with args.
5263 set dummy makeinfo
; ac_word
=$2
5264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5266 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5267 echo $ECHO_N "(cached) $ECHO_C" >&6
5271 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5278 test -z "$as_dir" && as_dir
=.
5279 for ac_exec_ext
in '' $ac_executable_extensions; do
5280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5281 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5293 MAKEINFO
=$ac_cv_path_MAKEINFO
5294 if test -n "$MAKEINFO"; then
5295 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5296 echo "${ECHO_T}$MAKEINFO" >&6; }
5298 { echo "$as_me:$LINENO: result: no" >&5
5299 echo "${ECHO_T}no" >&6; }
5303 if test "$MAKEINFO" != "no" && \
5304 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
5308 ## Makeinfo is unusual. For a released Emacs, the manuals are
5309 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5310 ## therefore in the category of "special tools" not normally required, which
5311 ## configure does not have to check for (eg autoconf itself).
5312 ## In a CVS checkout on the other hand, the manuals are not included.
5313 ## So makeinfo is a requirement to build from CVS, and configure
5314 ## should test for it as it does for any other build requirement.
5315 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5316 ## with pre-built manuals, from a CVS checkout.
5317 if test "$MAKEINFO" = "no"; then
5318 if test "x${with_makeinfo}" = "xno"; then
5320 elif ! test -e $srcdir/info
/emacs
; then
5321 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5322 source tree does not seem to have pre-built manuals in the \`info' directory.
5323 Either install a suitable version of makeinfo, or re-run configure
5324 with the \`--without-makeinfo' option to build without the manuals. " >&5
5325 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5326 source tree does not seem to have pre-built manuals in the \`info' directory.
5327 Either install a suitable version of makeinfo, or re-run configure
5328 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5329 { (exit 1); exit 1; }; }
5334 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5336 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5339 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5341 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5345 late_LDFLAGS
=$LDFLAGS
5346 if test "$GCC" = yes; then
5347 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5349 LDFLAGS
="$LDFLAGS -znocombreloc"
5352 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5353 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5354 cat >conftest.
$ac_ext <<_ACEOF
5357 rm -f conftest.
$ac_objext conftest
$ac_exeext
5358 if { (ac_try
="$ac_link"
5360 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5361 *) ac_try_echo=$ac_try;;
5363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5364 (eval "$ac_link") 2>conftest.er1
5366 grep -v '^ *+' conftest.er1 >conftest.err
5368 cat conftest.err >&5
5369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5370 (exit $ac_status); } && {
5371 test -z "$ac_c_werror_flag" ||
5372 test ! -s conftest.err
5373 } && test -s conftest$ac_exeext &&
5374 $as_test_x conftest$ac_exeext; then
5375 { echo "$as_me:$LINENO: result: yes" >&5
5376 echo "${ECHO_T}yes" >&6; }
5378 echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5381 LDFLAGS=$late_LDFLAGS
5382 { echo "$as_me:$LINENO: result: no" >&5
5383 echo "${ECHO_T}no" >&6; }
5386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5387 conftest$ac_exeext conftest.$ac_ext
5389 #### Extract some information from the operating system and machine files.
5391 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5392 - which libraries the lib-src programs will want, and
5393 - whether the GNU malloc routines are usable..." >&5
5394 echo "$as_me: checking the machine- and system-dependent files to find out
5395 - which libraries the lib-src programs will want, and
5396 - whether the GNU malloc routines are usable..." >&6;}
5398 ### First figure out CFLAGS (which we use for running the compiler here)
5399 ### and REAL_CFLAGS (which we use for real compilation).
5400 ### The two are the same except on a few systems, where they are made
5401 ### different to work around various lossages. For example,
5402 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5403 ### as implying static linking.
5405 ### If the CFLAGS env var is specified, we use that value
5406 ### instead of the default.
5408 ### It's not important that this name contain the PID; you can't run
5409 ### two configures in the same directory and have anything work
5411 tempcname="conftest.c"
5414 #include "'${srcdir}'/src/'${opsysfile}'"
5415 #include "'${srcdir}'/src/'${machfile}'"
5416 #ifndef LIBS_MACHINE
5417 #define LIBS_MACHINE
5422 #ifndef C_SWITCH_SYSTEM
5423 #define C_SWITCH_SYSTEM
5425 #ifndef C_SWITCH_MACHINE
5426 #define C_SWITCH_MACHINE
5428 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5429 configure___ c_switch_system=C_SWITCH_SYSTEM
5430 configure___ c_switch_machine=C_SWITCH_MACHINE
5433 #define LIB_X11_LIB -lX11
5436 #ifndef LIBX11_SYSTEM
5437 #define LIBX11_SYSTEM
5439 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5442 configure___ unexec=UNEXEC
5444 configure___ unexec=unexec.o
5447 #ifdef SYSTEM_MALLOC
5448 configure___ system_malloc=yes
5450 configure___ system_malloc=no
5453 #ifdef USE_MMAP_FOR_BUFFERS
5454 configure___ use_mmap_for_buffers=yes
5456 configure___ use_mmap_for_buffers=no
5459 #ifndef C_DEBUG_SWITCH
5460 #define C_DEBUG_SWITCH -g
5463 #ifndef C_OPTIMIZE_SWITCH
5465 #define C_OPTIMIZE_SWITCH -O2
5467 #define C_OPTIMIZE_SWITCH -O
5471 #ifndef C_WARNINGS_SWITCH
5472 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5475 #ifndef LD_SWITCH_MACHINE
5476 #define LD_SWITCH_MACHINE
5479 #ifndef LD_SWITCH_SYSTEM
5480 #define LD_SWITCH_SYSTEM
5483 #ifndef LD_SWITCH_X_SITE_AUX
5484 #define LD_SWITCH_X_SITE_AUX
5487 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5488 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5490 #ifdef THIS_IS_CONFIGURE
5492 /* Get the CFLAGS for tests in configure. */
5494 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5496 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5499 #else /* not THIS_IS_CONFIGURE */
5501 /* Get the CFLAGS for real compilation. */
5503 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5505 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5508 #endif /* not THIS_IS_CONFIGURE */
5511 # The value of CPP is a quoted variable reference, so we need to do this
5512 # to get its actual value...
5513 CPP=`eval "echo $CPP"`
5514 eval `${CPP} -Isrc ${tempcname} \
5515 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5516 if test "x$SPECIFIED_CFLAGS" = x; then
5517 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5518 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5520 REAL_CFLAGS="$CFLAGS"
5524 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5526 ### Make sure subsequent tests use flags consistent with the build flags.
5528 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5529 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5531 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5536 # Check whether --enable-largefile was given.
5537 if test "${enable_largefile+set}" = set; then
5538 enableval=$enable_largefile;
5541 if test "$enable_largefile" != no; then
5543 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5544 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5545 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5546 echo $ECHO_N "(cached) $ECHO_C" >&6
5548 ac_cv_sys_largefile_CC=no
5549 if test "$GCC" != yes; then
5552 # IRIX 6.2 and later do not support large files by default,
5553 # so use the C compiler's -n32 option if that helps.
5554 cat >conftest.$ac_ext <<_ACEOF
5557 cat confdefs.h >>conftest.$ac_ext
5558 cat >>conftest.$ac_ext <<_ACEOF
5559 /* end confdefs.h. */
5560 #include <sys/types.h>
5561 /* Check that off_t can represent 2**63 - 1 correctly.
5562 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5563 since some C++ compilers masquerading as C compilers
5564 incorrectly reject 9223372036854775807. */
5565 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5566 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5567 && LARGE_OFF_T % 2147483647 == 1)
5577 rm -f conftest.$ac_objext
5578 if { (ac_try="$ac_compile"
5580 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5581 *) ac_try_echo
=$ac_try;;
5583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5584 (eval "$ac_compile") 2>conftest.er1
5586 grep -v '^ *+' conftest.er1
>conftest.err
5588 cat conftest.err
>&5
5589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5590 (exit $ac_status); } && {
5591 test -z "$ac_c_werror_flag" ||
5592 test ! -s conftest.err
5593 } && test -s conftest.
$ac_objext; then
5596 echo "$as_me: failed program was:" >&5
5597 sed 's/^/| /' conftest.
$ac_ext >&5
5602 rm -f core conftest.err conftest.
$ac_objext
5604 rm -f conftest.
$ac_objext
5605 if { (ac_try
="$ac_compile"
5607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5608 *) ac_try_echo=$ac_try;;
5610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5611 (eval "$ac_compile") 2>conftest.er1
5613 grep -v '^ *+' conftest.er1 >conftest.err
5615 cat conftest.err >&5
5616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5617 (exit $ac_status); } && {
5618 test -z "$ac_c_werror_flag" ||
5619 test ! -s conftest.err
5620 } && test -s conftest.$ac_objext; then
5621 ac_cv_sys_largefile_CC=' -n32'; break
5623 echo "$as_me: failed program was:" >&5
5624 sed 's/^/| /' conftest.$ac_ext >&5
5629 rm -f core conftest.err conftest.$ac_objext
5633 rm -f conftest.$ac_ext
5636 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5637 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5638 if test "$ac_cv_sys_largefile_CC" != no; then
5639 CC=$CC$ac_cv_sys_largefile_CC
5642 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5643 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5644 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5645 echo $ECHO_N "(cached) $ECHO_C" >&6
5648 cat >conftest.$ac_ext <<_ACEOF
5651 cat confdefs.h >>conftest.$ac_ext
5652 cat >>conftest.$ac_ext <<_ACEOF
5653 /* end confdefs.h. */
5654 #include <sys/types.h>
5655 /* Check that off_t can represent 2**63 - 1 correctly.
5656 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5657 since some C++ compilers masquerading as C compilers
5658 incorrectly reject 9223372036854775807. */
5659 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5660 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5661 && LARGE_OFF_T % 2147483647 == 1)
5671 rm -f conftest.$ac_objext
5672 if { (ac_try="$ac_compile"
5674 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5675 *) ac_try_echo
=$ac_try;;
5677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5678 (eval "$ac_compile") 2>conftest.er1
5680 grep -v '^ *+' conftest.er1
>conftest.err
5682 cat conftest.err
>&5
5683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5684 (exit $ac_status); } && {
5685 test -z "$ac_c_werror_flag" ||
5686 test ! -s conftest.err
5687 } && test -s conftest.
$ac_objext; then
5688 ac_cv_sys_file_offset_bits
=no
; break
5690 echo "$as_me: failed program was:" >&5
5691 sed 's/^/| /' conftest.
$ac_ext >&5
5696 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5697 cat >conftest.
$ac_ext <<_ACEOF
5700 cat confdefs.h
>>conftest.
$ac_ext
5701 cat >>conftest.
$ac_ext <<_ACEOF
5702 /* end confdefs.h. */
5703 #define _FILE_OFFSET_BITS 64
5704 #include <sys/types.h>
5705 /* Check that off_t can represent 2**63 - 1 correctly.
5706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5707 since some C++ compilers masquerading as C compilers
5708 incorrectly reject 9223372036854775807. */
5709 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5711 && LARGE_OFF_T % 2147483647 == 1)
5721 rm -f conftest.
$ac_objext
5722 if { (ac_try
="$ac_compile"
5724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5725 *) ac_try_echo=$ac_try;;
5727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5728 (eval "$ac_compile") 2>conftest.er1
5730 grep -v '^ *+' conftest.er1 >conftest.err
5732 cat conftest.err >&5
5733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5734 (exit $ac_status); } && {
5735 test -z "$ac_c_werror_flag" ||
5736 test ! -s conftest.err
5737 } && test -s conftest.$ac_objext; then
5738 ac_cv_sys_file_offset_bits=64; break
5740 echo "$as_me: failed program was:" >&5
5741 sed 's/^/| /' conftest.$ac_ext >&5
5746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5747 ac_cv_sys_file_offset_bits=unknown
5751 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5752 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5753 case $ac_cv_sys_file_offset_bits in #(
5756 cat >>confdefs.h <<_ACEOF
5757 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5762 if test $ac_cv_sys_file_offset_bits = unknown; then
5763 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5764 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5765 if test "${ac_cv_sys_large_files+set}" = set; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 cat >conftest.$ac_ext <<_ACEOF
5772 cat confdefs.h >>conftest.$ac_ext
5773 cat >>conftest.$ac_ext <<_ACEOF
5774 /* end confdefs.h. */
5775 #include <sys/types.h>
5776 /* Check that off_t can represent 2**63 - 1 correctly.
5777 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5778 since some C++ compilers masquerading as C compilers
5779 incorrectly reject 9223372036854775807. */
5780 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5781 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5782 && LARGE_OFF_T % 2147483647 == 1)
5792 rm -f conftest.$ac_objext
5793 if { (ac_try="$ac_compile"
5795 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5796 *) ac_try_echo
=$ac_try;;
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_compile") 2>conftest.er1
5801 grep -v '^ *+' conftest.er1
>conftest.err
5803 cat conftest.err
>&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } && {
5806 test -z "$ac_c_werror_flag" ||
5807 test ! -s conftest.err
5808 } && test -s conftest.
$ac_objext; then
5809 ac_cv_sys_large_files
=no
; break
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.
$ac_ext >&5
5817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5818 cat >conftest.
$ac_ext <<_ACEOF
5821 cat confdefs.h
>>conftest.
$ac_ext
5822 cat >>conftest.
$ac_ext <<_ACEOF
5823 /* end confdefs.h. */
5824 #define _LARGE_FILES 1
5825 #include <sys/types.h>
5826 /* Check that off_t can represent 2**63 - 1 correctly.
5827 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5828 since some C++ compilers masquerading as C compilers
5829 incorrectly reject 9223372036854775807. */
5830 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5831 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5832 && LARGE_OFF_T % 2147483647 == 1)
5842 rm -f conftest.
$ac_objext
5843 if { (ac_try
="$ac_compile"
5845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_compile") 2>conftest.er1
5851 grep -v '^ *+' conftest.er1 >conftest.err
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } && {
5856 test -z "$ac_c_werror_flag" ||
5857 test ! -s conftest.err
5858 } && test -s conftest.$ac_objext; then
5859 ac_cv_sys_large_files=1; break
5861 echo "$as_me: failed program was:" >&5
5862 sed 's/^/| /' conftest.$ac_ext >&5
5867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5868 ac_cv_sys_large_files=unknown
5872 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5873 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5874 case $ac_cv_sys_large_files in #(
5877 cat >>confdefs.h <<_ACEOF
5878 #define _LARGE_FILES $ac_cv_sys_large_files
5888 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5889 ### be located in either /usr/lib64 or /usr/lib.
5890 case "${canonical}" in
5891 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5892 if test -d /usr/lib64; then
5894 cat >>confdefs.h <<\_ACEOF
5895 #define HAVE_LIB64_DIR 1
5904 if test "${with_sound}" != "no"; then
5905 # Sound support for GNU/Linux and the free BSDs.
5909 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5911 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5912 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5913 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5914 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5915 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5916 echo $ECHO_N "(cached) $ECHO_C" >&6
5918 ac_res=`eval echo '${'$as_ac_Header'}'`
5919 { echo "$as_me:$LINENO: result: $ac_res" >&5
5920 echo "${ECHO_T}$ac_res" >&6; }
5922 # Is the header compilable?
5923 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5924 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5925 cat >conftest.$ac_ext <<_ACEOF
5928 cat confdefs.h >>conftest.$ac_ext
5929 cat >>conftest.$ac_ext <<_ACEOF
5930 /* end confdefs.h. */
5931 $ac_includes_default
5932 #include <$ac_header>
5934 rm -f conftest.$ac_objext
5935 if { (ac_try="$ac_compile"
5937 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5938 *) ac_try_echo
=$ac_try;;
5940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5941 (eval "$ac_compile") 2>conftest.er1
5943 grep -v '^ *+' conftest.er1
>conftest.err
5945 cat conftest.err
>&5
5946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5947 (exit $ac_status); } && {
5948 test -z "$ac_c_werror_flag" ||
5949 test ! -s conftest.err
5950 } && test -s conftest.
$ac_objext; then
5951 ac_header_compiler
=yes
5953 echo "$as_me: failed program was:" >&5
5954 sed 's/^/| /' conftest.
$ac_ext >&5
5956 ac_header_compiler
=no
5959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5960 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5961 echo "${ECHO_T}$ac_header_compiler" >&6; }
5963 # Is the header present?
5964 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5965 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5966 cat >conftest.
$ac_ext <<_ACEOF
5969 cat confdefs.h
>>conftest.
$ac_ext
5970 cat >>conftest.
$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 #include <$ac_header>
5974 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5976 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5977 *) ac_try_echo=$ac_try;;
5979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5980 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5982 grep -v '^ *+' conftest.er1 >conftest.err
5984 cat conftest.err >&5
5985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986 (exit $ac_status); } >/dev/null && {
5987 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5988 test ! -s conftest.err
5990 ac_header_preproc=yes
5992 echo "$as_me: failed program was:" >&5
5993 sed 's/^/| /' conftest.$ac_ext >&5
5995 ac_header_preproc=no
5998 rm -f conftest.err conftest.$ac_ext
5999 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6000 echo "${ECHO_T}$ac_header_preproc" >&6; }
6002 # So? What about this header?
6003 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6005 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6006 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6007 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6008 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6009 ac_header_preproc=yes
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6013 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6015 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6017 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6019 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6020 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6021 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6022 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6023 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6027 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6028 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6030 echo $ECHO_N "(cached) $ECHO_C" >&6
6032 eval "$as_ac_Header=\$ac_header_preproc"
6034 ac_res=`eval echo '${'$as_ac_Header'}'`
6035 { echo "$as_me:$LINENO: result: $ac_res" >&5
6036 echo "${ECHO_T}$ac_res" >&6; }
6039 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6040 cat >>confdefs.h <<_ACEOF
6041 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6048 # Emulation library used on NetBSD.
6049 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6050 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6051 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6052 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 ac_check_lib_save_LIBS=$LIBS
6055 LIBS="-lossaudio $LIBS"
6056 cat >conftest.$ac_ext <<_ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6063 /* Override any GCC internal prototype to avoid an error.
6064 Use char because int might match the return type of a GCC
6065 builtin and then its argument prototype would still apply. */
6073 return _oss_ioctl ();
6078 rm -f conftest.$ac_objext conftest$ac_exeext
6079 if { (ac_try="$ac_link"
6081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6082 *) ac_try_echo
=$ac_try;;
6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_link") 2>conftest.er1
6087 grep -v '^ *+' conftest.er1
>conftest.err
6089 cat conftest.err
>&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } && {
6092 test -z "$ac_c_werror_flag" ||
6093 test ! -s conftest.err
6094 } && test -s conftest
$ac_exeext &&
6095 $as_test_x conftest
$ac_exeext; then
6096 ac_cv_lib_ossaudio__oss_ioctl
=yes
6098 echo "$as_me: failed program was:" >&5
6099 sed 's/^/| /' conftest.
$ac_ext >&5
6101 ac_cv_lib_ossaudio__oss_ioctl
=no
6104 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6105 conftest
$ac_exeext conftest.
$ac_ext
6106 LIBS
=$ac_check_lib_save_LIBS
6108 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6109 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6110 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6119 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6123 # Extract the first word of "pkg-config", so it can be a program name with args.
6124 set dummy pkg-config
; ac_word
=$2
6125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6127 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6128 echo $ECHO_N "(cached) $ECHO_C" >&6
6132 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6135 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6139 test -z "$as_dir" && as_dir
=.
6140 for ac_exec_ext
in '' $ac_executable_extensions; do
6141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6142 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6154 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6155 if test -n "$PKG_CONFIG"; then
6156 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6157 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6159 { echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6; }
6165 if test "$PKG_CONFIG" = "no" ; then
6168 PKG_CONFIG_MIN_VERSION
=0.9.0
6169 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6170 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6171 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6173 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6174 { echo "$as_me:$LINENO: result: yes" >&5
6175 echo "${ECHO_T}yes" >&6; }
6178 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6179 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6180 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6181 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6182 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6184 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6185 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6186 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6187 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6188 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6190 { echo "$as_me:$LINENO: result: no" >&5
6191 echo "${ECHO_T}no" >&6; }
6194 ## If we have a custom action on failure, don't print errors, but
6195 ## do set a variable so people can do so.
6196 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6203 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6204 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6208 if test $succeeded = yes; then
6214 if test $HAVE_ALSA = yes; then
6215 SAVE_CFLAGS
="$CFLAGS"
6216 SAVE_LDFLAGS
="$LDFLAGS"
6217 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6218 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6219 cat >conftest.
$ac_ext <<_ACEOF
6222 cat confdefs.h
>>conftest.
$ac_ext
6223 cat >>conftest.
$ac_ext <<_ACEOF
6224 /* end confdefs.h. */
6225 #include <asoundlib.h>
6229 snd_lib_error_set_handler (0);
6234 rm -f conftest.
$ac_objext
6235 if { (ac_try
="$ac_compile"
6237 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6238 *) ac_try_echo=$ac_try;;
6240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6241 (eval "$ac_compile") 2>conftest.er1
6243 grep -v '^ *+' conftest.er1 >conftest.err
6245 cat conftest.err >&5
6246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6247 (exit $ac_status); } && {
6248 test -z "$ac_c_werror_flag" ||
6249 test ! -s conftest.err
6250 } && test -s conftest.$ac_objext; then
6251 emacs_alsa_normal=yes
6253 echo "$as_me: failed program was:" >&5
6254 sed 's/^/| /' conftest.$ac_ext >&5
6256 emacs_alsa_normal=no
6259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6260 if test "$emacs_alsa_normal" != yes; then
6261 cat >conftest.$ac_ext <<_ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267 #include <alsa/asoundlib.h>
6271 snd_lib_error_set_handler (0);
6276 rm -f conftest.$ac_objext
6277 if { (ac_try="$ac_compile"
6279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6280 *) ac_try_echo
=$ac_try;;
6282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6283 (eval "$ac_compile") 2>conftest.er1
6285 grep -v '^ *+' conftest.er1
>conftest.err
6287 cat conftest.err
>&5
6288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6289 (exit $ac_status); } && {
6290 test -z "$ac_c_werror_flag" ||
6291 test ! -s conftest.err
6292 } && test -s conftest.
$ac_objext; then
6293 emacs_alsa_subdir
=yes
6295 echo "$as_me: failed program was:" >&5
6296 sed 's/^/| /' conftest.
$ac_ext >&5
6298 emacs_alsa_subdir
=no
6301 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6302 if test "$emacs_alsa_subdir" != yes; then
6303 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6304 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6305 { (exit 1); exit 1; }; }
6307 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6310 CFLAGS
="$SAVE_CFLAGS"
6311 LDFLAGS
="$SAVE_LDFLAGS"
6312 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6313 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6315 cat >>confdefs.h
<<\_ACEOF
6348 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6349 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6350 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6351 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6354 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6355 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6356 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6357 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6358 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6359 echo $ECHO_N "(cached) $ECHO_C" >&6
6361 ac_res
=`eval echo '${'$as_ac_Header'}'`
6362 { echo "$as_me:$LINENO: result: $ac_res" >&5
6363 echo "${ECHO_T}$ac_res" >&6; }
6365 # Is the header compilable?
6366 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6367 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6368 cat >conftest.
$ac_ext <<_ACEOF
6371 cat confdefs.h
>>conftest.
$ac_ext
6372 cat >>conftest.
$ac_ext <<_ACEOF
6373 /* end confdefs.h. */
6374 $ac_includes_default
6375 #include <$ac_header>
6377 rm -f conftest.
$ac_objext
6378 if { (ac_try
="$ac_compile"
6380 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6381 *) ac_try_echo=$ac_try;;
6383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6384 (eval "$ac_compile") 2>conftest.er1
6386 grep -v '^ *+' conftest.er1 >conftest.err
6388 cat conftest.err >&5
6389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6390 (exit $ac_status); } && {
6391 test -z "$ac_c_werror_flag" ||
6392 test ! -s conftest.err
6393 } && test -s conftest.$ac_objext; then
6394 ac_header_compiler=yes
6396 echo "$as_me: failed program was:" >&5
6397 sed 's/^/| /' conftest.$ac_ext >&5
6399 ac_header_compiler=no
6402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6403 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6404 echo "${ECHO_T}$ac_header_compiler" >&6; }
6406 # Is the header present?
6407 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6408 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6409 cat >conftest.$ac_ext <<_ACEOF
6412 cat confdefs.h >>conftest.$ac_ext
6413 cat >>conftest.$ac_ext <<_ACEOF
6414 /* end confdefs.h. */
6415 #include <$ac_header>
6417 if { (ac_try="$ac_cpp conftest.$ac_ext"
6419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6420 *) ac_try_echo
=$ac_try;;
6422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6423 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6425 grep -v '^ *+' conftest.er1
>conftest.err
6427 cat conftest.err
>&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } >/dev
/null
&& {
6430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6431 test ! -s conftest.err
6433 ac_header_preproc
=yes
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.
$ac_ext >&5
6438 ac_header_preproc
=no
6441 rm -f conftest.err conftest.
$ac_ext
6442 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6443 echo "${ECHO_T}$ac_header_preproc" >&6; }
6445 # So? What about this header?
6446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6448 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6449 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6450 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6452 ac_header_preproc
=yes
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6456 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6458 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6460 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6462 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6463 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6465 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6466 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6470 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6471 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6472 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6473 echo $ECHO_N "(cached) $ECHO_C" >&6
6475 eval "$as_ac_Header=\$ac_header_preproc"
6477 ac_res
=`eval echo '${'$as_ac_Header'}'`
6478 { echo "$as_me:$LINENO: result: $ac_res" >&5
6479 echo "${ECHO_T}$ac_res" >&6; }
6482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6483 cat >>confdefs.h
<<_ACEOF
6484 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6492 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6493 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6494 cat >conftest.
$ac_ext <<_ACEOF
6497 cat confdefs.h
>>conftest.
$ac_ext
6498 cat >>conftest.
$ac_ext <<_ACEOF
6499 /* end confdefs.h. */
6500 #include <sys/personality.h>
6504 personality (PER_LINUX32)
6509 rm -f conftest.
$ac_objext
6510 if { (ac_try
="$ac_compile"
6512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6513 *) ac_try_echo=$ac_try;;
6515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6516 (eval "$ac_compile") 2>conftest.er1
6518 grep -v '^ *+' conftest.er1 >conftest.err
6520 cat conftest.err >&5
6521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6522 (exit $ac_status); } && {
6523 test -z "$ac_c_werror_flag" ||
6524 test ! -s conftest.err
6525 } && test -s conftest.$ac_objext; then
6526 emacs_cv_personality_linux32=yes
6528 echo "$as_me: failed program was:" >&5
6529 sed 's/^/| /' conftest.$ac_ext >&5
6531 emacs_cv_personality_linux32=no
6534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6535 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6536 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6538 if test $emacs_cv_personality_linux32 = yes; then
6540 cat >>confdefs.h <<\_ACEOF
6541 #define HAVE_PERSONALITY_LINUX32 1
6547 for ac_header in term.h
6549 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6553 echo $ECHO_N "(cached) $ECHO_C" >&6
6555 cat >conftest.$ac_ext <<_ACEOF
6558 cat confdefs.h >>conftest.$ac_ext
6559 cat >>conftest.$ac_ext <<_ACEOF
6560 /* end confdefs.h. */
6561 #include <$ac_header>
6563 if { (ac_try="$ac_cpp conftest.$ac_ext"
6565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6566 *) ac_try_echo
=$ac_try;;
6568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6571 grep -v '^ *+' conftest.er1
>conftest.err
6573 cat conftest.err
>&5
6574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6575 (exit $ac_status); } >/dev
/null
&& {
6576 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6577 test ! -s conftest.err
6579 eval "$as_ac_Header=yes"
6581 echo "$as_me: failed program was:" >&5
6582 sed 's/^/| /' conftest.
$ac_ext >&5
6584 eval "$as_ac_Header=no"
6587 rm -f conftest.err conftest.
$ac_ext
6589 ac_res
=`eval echo '${'$as_ac_Header'}'`
6590 { echo "$as_me:$LINENO: result: $ac_res" >&5
6591 echo "${ECHO_T}$ac_res" >&6; }
6592 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6593 cat >>confdefs.h
<<_ACEOF
6594 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6601 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6602 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6603 if test "${ac_cv_header_stdc+set}" = set; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 cat >conftest.
$ac_ext <<_ACEOF
6609 cat confdefs.h
>>conftest.
$ac_ext
6610 cat >>conftest.
$ac_ext <<_ACEOF
6611 /* end confdefs.h. */
6625 rm -f conftest.
$ac_objext
6626 if { (ac_try
="$ac_compile"
6628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6632 (eval "$ac_compile") 2>conftest.er1
6634 grep -v '^ *+' conftest.er1 >conftest.err
6636 cat conftest.err >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } && {
6639 test -z "$ac_c_werror_flag" ||
6640 test ! -s conftest.err
6641 } && test -s conftest.$ac_objext; then
6642 ac_cv_header_stdc=yes
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6647 ac_cv_header_stdc=no
6650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6652 if test $ac_cv_header_stdc = yes; then
6653 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6654 cat >conftest.$ac_ext <<_ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6664 $EGREP "memchr" >/dev/null 2>&1; then
6667 ac_cv_header_stdc=no
6673 if test $ac_cv_header_stdc = yes; then
6674 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6675 cat >conftest.$ac_ext <<_ACEOF
6678 cat confdefs.h >>conftest.$ac_ext
6679 cat >>conftest.$ac_ext <<_ACEOF
6680 /* end confdefs.h. */
6684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6685 $EGREP "free" >/dev/null 2>&1; then
6688 ac_cv_header_stdc=no
6694 if test $ac_cv_header_stdc = yes; then
6695 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6696 if test "$cross_compiling" = yes; then
6699 cat >conftest.$ac_ext <<_ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6707 #if ((' ' & 0x0FF) == 0x020)
6708 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6709 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6711 # define ISLOWER(c) \
6712 (('a' <= (c) && (c) <= 'i') \
6713 || ('j' <= (c) && (c) <= 'r') \
6714 || ('s' <= (c) && (c) <= 'z'))
6715 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6718 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6723 for (i = 0; i < 256; i++)
6724 if (XOR (islower (i), ISLOWER (i))
6725 || toupper (i) != TOUPPER (i))
6730 rm -f conftest$ac_exeext
6731 if { (ac_try="$ac_link"
6733 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6734 *) ac_try_echo
=$ac_try;;
6736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6737 (eval "$ac_link") 2>&5
6739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6740 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6741 { (case "(($ac_try" in
6742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6743 *) ac_try_echo=$ac_try;;
6745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6746 (eval "$ac_try") 2>&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); }; }; then
6752 echo "$as_me: program exited with status $ac_status" >&5
6753 echo "$as_me: failed program was:" >&5
6754 sed 's/^/| /' conftest.$ac_ext >&5
6757 ac_cv_header_stdc=no
6759 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6765 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6766 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6767 if test $ac_cv_header_stdc = yes; then
6769 cat >>confdefs.h <<\_ACEOF
6770 #define STDC_HEADERS 1
6775 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6776 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6777 if test "${ac_cv_header_time+set}" = set; then
6778 echo $ECHO_N "(cached) $ECHO_C" >&6
6780 cat >conftest.$ac_ext <<_ACEOF
6783 cat confdefs.h >>conftest.$ac_ext
6784 cat >>conftest.$ac_ext <<_ACEOF
6785 /* end confdefs.h. */
6786 #include <sys/types.h>
6787 #include <sys/time.h>
6793 if ((struct tm *) 0)
6799 rm -f conftest.$ac_objext
6800 if { (ac_try="$ac_compile"
6802 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6803 *) ac_try_echo
=$ac_try;;
6805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6806 (eval "$ac_compile") 2>conftest.er1
6808 grep -v '^ *+' conftest.er1
>conftest.err
6810 cat conftest.err
>&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } && {
6813 test -z "$ac_c_werror_flag" ||
6814 test ! -s conftest.err
6815 } && test -s conftest.
$ac_objext; then
6816 ac_cv_header_time
=yes
6818 echo "$as_me: failed program was:" >&5
6819 sed 's/^/| /' conftest.
$ac_ext >&5
6821 ac_cv_header_time
=no
6824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6826 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6827 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6828 if test $ac_cv_header_time = yes; then
6830 cat >>confdefs.h
<<\_ACEOF
6831 #define TIME_WITH_SYS_TIME 1
6836 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6837 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6838 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6839 echo $ECHO_N "(cached) $ECHO_C" >&6
6841 cat >conftest.
$ac_ext <<_ACEOF
6844 cat confdefs.h
>>conftest.
$ac_ext
6845 cat >>conftest.
$ac_ext <<_ACEOF
6846 /* end confdefs.h. */
6847 $ac_includes_default
6859 rm -f conftest.
$ac_objext
6860 if { (ac_try
="$ac_compile"
6862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6863 *) ac_try_echo=$ac_try;;
6865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6866 (eval "$ac_compile") 2>conftest.er1
6868 grep -v '^ *+' conftest.er1 >conftest.err
6870 cat conftest.err >&5
6871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6872 (exit $ac_status); } && {
6873 test -z "$ac_c_werror_flag" ||
6874 test ! -s conftest.err
6875 } && test -s conftest.$ac_objext; then
6876 ac_cv_have_decl_sys_siglist=yes
6878 echo "$as_me: failed program was:" >&5
6879 sed 's/^/| /' conftest.$ac_ext >&5
6881 ac_cv_have_decl_sys_siglist=no
6884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6886 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6887 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6888 if test $ac_cv_have_decl_sys_siglist = yes; then
6890 cat >>confdefs.h <<_ACEOF
6891 #define HAVE_DECL_SYS_SIGLIST 1
6896 cat >>confdefs.h <<_ACEOF
6897 #define HAVE_DECL_SYS_SIGLIST 0
6904 if test $ac_cv_have_decl_sys_siglist != yes; then
6905 # For Tru64, at least:
6906 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6907 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6908 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 cat >conftest.$ac_ext <<_ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 $ac_includes_default
6921 #ifndef __sys_siglist
6922 (void) __sys_siglist;
6929 rm -f conftest.$ac_objext
6930 if { (ac_try="$ac_compile"
6932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6933 *) ac_try_echo
=$ac_try;;
6935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6936 (eval "$ac_compile") 2>conftest.er1
6938 grep -v '^ *+' conftest.er1
>conftest.err
6940 cat conftest.err
>&5
6941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6942 (exit $ac_status); } && {
6943 test -z "$ac_c_werror_flag" ||
6944 test ! -s conftest.err
6945 } && test -s conftest.
$ac_objext; then
6946 ac_cv_have_decl___sys_siglist
=yes
6948 echo "$as_me: failed program was:" >&5
6949 sed 's/^/| /' conftest.
$ac_ext >&5
6951 ac_cv_have_decl___sys_siglist
=no
6954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6956 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6957 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6958 if test $ac_cv_have_decl___sys_siglist = yes; then
6960 cat >>confdefs.h
<<_ACEOF
6961 #define HAVE_DECL___SYS_SIGLIST 1
6966 cat >>confdefs.h
<<_ACEOF
6967 #define HAVE_DECL___SYS_SIGLIST 0
6974 if test $ac_cv_have_decl___sys_siglist = yes; then
6976 cat >>confdefs.h
<<\_ACEOF
6977 #define sys_siglist __sys_siglist
6982 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6983 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6984 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6985 echo $ECHO_N "(cached) $ECHO_C" >&6
6987 cat >conftest.
$ac_ext <<_ACEOF
6990 cat confdefs.h
>>conftest.
$ac_ext
6991 cat >>conftest.
$ac_ext <<_ACEOF
6992 /* end confdefs.h. */
6993 #include <sys/types.h>
6994 #include <sys/wait.h>
6996 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6999 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7007 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7012 rm -f conftest.
$ac_objext
7013 if { (ac_try
="$ac_compile"
7015 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7016 *) ac_try_echo=$ac_try;;
7018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7019 (eval "$ac_compile") 2>conftest.er1
7021 grep -v '^ *+' conftest.er1 >conftest.err
7023 cat conftest.err >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); } && {
7026 test -z "$ac_c_werror_flag" ||
7027 test ! -s conftest.err
7028 } && test -s conftest.$ac_objext; then
7029 ac_cv_header_sys_wait_h=yes
7031 echo "$as_me: failed program was:" >&5
7032 sed 's/^/| /' conftest.$ac_ext >&5
7034 ac_cv_header_sys_wait_h=no
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7039 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7040 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7041 if test $ac_cv_header_sys_wait_h = yes; then
7043 cat >>confdefs.h <<\_ACEOF
7044 #define HAVE_SYS_WAIT_H 1
7050 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7051 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7052 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7053 echo $ECHO_N "(cached) $ECHO_C" >&6
7055 cat >conftest.$ac_ext <<_ACEOF
7058 cat confdefs.h >>conftest.$ac_ext
7059 cat >>conftest.$ac_ext <<_ACEOF
7060 /* end confdefs.h. */
7061 #ifdef TIME_WITH_SYS_TIME
7062 #include <sys/time.h>
7065 #ifdef HAVE_SYS_TIME_H
7066 #include <sys/time.h>
7077 static struct utimbuf x; x.actime = x.modtime;
7082 rm -f conftest.$ac_objext
7083 if { (ac_try="$ac_compile"
7085 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7086 *) ac_try_echo
=$ac_try;;
7088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7089 (eval "$ac_compile") 2>conftest.er1
7091 grep -v '^ *+' conftest.er1
>conftest.err
7093 cat conftest.err
>&5
7094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7095 (exit $ac_status); } && {
7096 test -z "$ac_c_werror_flag" ||
7097 test ! -s conftest.err
7098 } && test -s conftest.
$ac_objext; then
7099 emacs_cv_struct_utimbuf
=yes
7101 echo "$as_me: failed program was:" >&5
7102 sed 's/^/| /' conftest.
$ac_ext >&5
7104 emacs_cv_struct_utimbuf
=no
7107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7109 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7110 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7111 if test $emacs_cv_struct_utimbuf = yes; then
7113 cat >>confdefs.h
<<\_ACEOF
7114 #define HAVE_STRUCT_UTIMBUF 1
7119 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7120 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7121 if test "${ac_cv_type_signal+set}" = set; then
7122 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 cat >conftest.
$ac_ext <<_ACEOF
7127 cat confdefs.h
>>conftest.
$ac_ext
7128 cat >>conftest.
$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7130 #include <sys/types.h>
7136 return *(signal (0, 0)) (0) == 1;
7141 rm -f conftest.
$ac_objext
7142 if { (ac_try
="$ac_compile"
7144 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7145 *) ac_try_echo=$ac_try;;
7147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7148 (eval "$ac_compile") 2>conftest.er1
7150 grep -v '^ *+' conftest.er1 >conftest.err
7152 cat conftest.err >&5
7153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7154 (exit $ac_status); } && {
7155 test -z "$ac_c_werror_flag" ||
7156 test ! -s conftest.err
7157 } && test -s conftest.$ac_objext; then
7158 ac_cv_type_signal=int
7160 echo "$as_me: failed program was:" >&5
7161 sed 's/^/| /' conftest.$ac_ext >&5
7163 ac_cv_type_signal=void
7166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7168 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7169 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7171 cat >>confdefs.h <<_ACEOF
7172 #define RETSIGTYPE $ac_cv_type_signal
7177 { echo "$as_me:$LINENO: checking for speed_t" >&5
7178 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7179 if test "${emacs_cv_speed_t+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 cat >conftest.$ac_ext <<_ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7188 #include <termios.h>
7197 rm -f conftest.$ac_objext
7198 if { (ac_try="$ac_compile"
7200 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7201 *) ac_try_echo
=$ac_try;;
7203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7204 (eval "$ac_compile") 2>conftest.er1
7206 grep -v '^ *+' conftest.er1
>conftest.err
7208 cat conftest.err
>&5
7209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7210 (exit $ac_status); } && {
7211 test -z "$ac_c_werror_flag" ||
7212 test ! -s conftest.err
7213 } && test -s conftest.
$ac_objext; then
7214 emacs_cv_speed_t
=yes
7216 echo "$as_me: failed program was:" >&5
7217 sed 's/^/| /' conftest.
$ac_ext >&5
7222 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7224 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7225 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7226 if test $emacs_cv_speed_t = yes; then
7228 cat >>confdefs.h
<<\_ACEOF
7229 #define HAVE_SPEED_T 1
7234 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7235 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7236 if test "${emacs_cv_struct_timeval+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 cat >conftest.
$ac_ext <<_ACEOF
7242 cat confdefs.h
>>conftest.
$ac_ext
7243 cat >>conftest.
$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 #ifdef TIME_WITH_SYS_TIME
7246 #include <sys/time.h>
7249 #ifdef HAVE_SYS_TIME_H
7250 #include <sys/time.h>
7258 static struct timeval x; x.tv_sec = x.tv_usec;
7263 rm -f conftest.
$ac_objext
7264 if { (ac_try
="$ac_compile"
7266 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7267 *) ac_try_echo=$ac_try;;
7269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7270 (eval "$ac_compile") 2>conftest.er1
7272 grep -v '^ *+' conftest.er1 >conftest.err
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } && {
7277 test -z "$ac_c_werror_flag" ||
7278 test ! -s conftest.err
7279 } && test -s conftest.$ac_objext; then
7280 emacs_cv_struct_timeval=yes
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7285 emacs_cv_struct_timeval=no
7288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7290 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7291 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7292 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7293 if test $emacs_cv_struct_timeval = yes; then
7295 cat >>confdefs.h <<\_ACEOF
7296 #define HAVE_TIMEVAL 1
7301 { echo "$as_me:$LINENO: checking for struct exception" >&5
7302 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7303 if test "${emacs_cv_struct_exception+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7306 cat >conftest.$ac_ext <<_ACEOF
7309 cat confdefs.h >>conftest.$ac_ext
7310 cat >>conftest.$ac_ext <<_ACEOF
7311 /* end confdefs.h. */
7316 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7321 rm -f conftest.$ac_objext
7322 if { (ac_try="$ac_compile"
7324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7325 *) ac_try_echo
=$ac_try;;
7327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328 (eval "$ac_compile") 2>conftest.er1
7330 grep -v '^ *+' conftest.er1
>conftest.err
7332 cat conftest.err
>&5
7333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7334 (exit $ac_status); } && {
7335 test -z "$ac_c_werror_flag" ||
7336 test ! -s conftest.err
7337 } && test -s conftest.
$ac_objext; then
7338 emacs_cv_struct_exception
=yes
7340 echo "$as_me: failed program was:" >&5
7341 sed 's/^/| /' conftest.
$ac_ext >&5
7343 emacs_cv_struct_exception
=no
7346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7348 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7349 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7350 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7351 if test $emacs_cv_struct_exception != yes; then
7353 cat >>confdefs.h
<<\_ACEOF
7354 #define NO_MATHERR 1
7360 for ac_header
in sys
/socket.h
7362 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7363 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7364 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7365 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7366 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7367 echo $ECHO_N "(cached) $ECHO_C" >&6
7369 ac_res
=`eval echo '${'$as_ac_Header'}'`
7370 { echo "$as_me:$LINENO: result: $ac_res" >&5
7371 echo "${ECHO_T}$ac_res" >&6; }
7373 # Is the header compilable?
7374 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7375 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7376 cat >conftest.
$ac_ext <<_ACEOF
7379 cat confdefs.h
>>conftest.
$ac_ext
7380 cat >>conftest.
$ac_ext <<_ACEOF
7381 /* end confdefs.h. */
7382 $ac_includes_default
7383 #include <$ac_header>
7385 rm -f conftest.
$ac_objext
7386 if { (ac_try
="$ac_compile"
7388 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7389 *) ac_try_echo=$ac_try;;
7391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7392 (eval "$ac_compile") 2>conftest.er1
7394 grep -v '^ *+' conftest.er1 >conftest.err
7396 cat conftest.err >&5
7397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7398 (exit $ac_status); } && {
7399 test -z "$ac_c_werror_flag" ||
7400 test ! -s conftest.err
7401 } && test -s conftest.$ac_objext; then
7402 ac_header_compiler=yes
7404 echo "$as_me: failed program was:" >&5
7405 sed 's/^/| /' conftest.$ac_ext >&5
7407 ac_header_compiler=no
7410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7412 echo "${ECHO_T}$ac_header_compiler" >&6; }
7414 # Is the header present?
7415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7417 cat >conftest.$ac_ext <<_ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 #include <$ac_header>
7425 if { (ac_try="$ac_cpp conftest.$ac_ext"
7427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7428 *) ac_try_echo
=$ac_try;;
7430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7431 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7433 grep -v '^ *+' conftest.er1
>conftest.err
7435 cat conftest.err
>&5
7436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7437 (exit $ac_status); } >/dev
/null
&& {
7438 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7439 test ! -s conftest.err
7441 ac_header_preproc
=yes
7443 echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.
$ac_ext >&5
7446 ac_header_preproc
=no
7449 rm -f conftest.err conftest.
$ac_ext
7450 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7451 echo "${ECHO_T}$ac_header_preproc" >&6; }
7453 # So? What about this header?
7454 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7456 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7457 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7459 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7460 ac_header_preproc
=yes
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7464 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7466 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7467 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7468 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7470 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7472 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7473 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7474 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7478 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7479 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7480 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7481 echo $ECHO_N "(cached) $ECHO_C" >&6
7483 eval "$as_ac_Header=\$ac_header_preproc"
7485 ac_res
=`eval echo '${'$as_ac_Header'}'`
7486 { echo "$as_me:$LINENO: result: $ac_res" >&5
7487 echo "${ECHO_T}$ac_res" >&6; }
7490 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7491 cat >>confdefs.h
<<_ACEOF
7492 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7500 for ac_header
in net
/if.h
7502 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7505 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7506 echo $ECHO_N "(cached) $ECHO_C" >&6
7508 cat >conftest.
$ac_ext <<_ACEOF
7511 cat confdefs.h
>>conftest.
$ac_ext
7512 cat >>conftest.
$ac_ext <<_ACEOF
7513 /* end confdefs.h. */
7514 $ac_includes_default
7515 #if HAVE_SYS_SOCKET_H
7516 #include <sys/socket.h>
7519 #include <$ac_header>
7521 rm -f conftest.
$ac_objext
7522 if { (ac_try
="$ac_compile"
7524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7525 *) ac_try_echo=$ac_try;;
7527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7528 (eval "$ac_compile") 2>conftest.er1
7530 grep -v '^ *+' conftest.er1 >conftest.err
7532 cat conftest.err >&5
7533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7534 (exit $ac_status); } && {
7535 test -z "$ac_c_werror_flag" ||
7536 test ! -s conftest.err
7537 } && test -s conftest.$ac_objext; then
7538 eval "$as_ac_Header=yes"
7540 echo "$as_me: failed program was:" >&5
7541 sed 's/^/| /' conftest.$ac_ext >&5
7543 eval "$as_ac_Header=no"
7546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7548 ac_res=`eval echo '${'$as_ac_Header'}'`
7549 { echo "$as_me:$LINENO: result: $ac_res" >&5
7550 echo "${ECHO_T}$ac_res" >&6; }
7551 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7552 cat >>confdefs.h <<_ACEOF
7553 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7561 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7562 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7563 if test "${ac_cv_struct_tm+set}" = set; then
7564 echo $ECHO_N "(cached) $ECHO_C" >&6
7566 cat >conftest.$ac_ext <<_ACEOF
7569 cat confdefs.h >>conftest.$ac_ext
7570 cat >>conftest.$ac_ext <<_ACEOF
7571 /* end confdefs.h. */
7572 #include <sys/types.h>
7579 int *p = &tm.tm_sec;
7585 rm -f conftest.$ac_objext
7586 if { (ac_try="$ac_compile"
7588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7589 *) ac_try_echo
=$ac_try;;
7591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7592 (eval "$ac_compile") 2>conftest.er1
7594 grep -v '^ *+' conftest.er1
>conftest.err
7596 cat conftest.err
>&5
7597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7598 (exit $ac_status); } && {
7599 test -z "$ac_c_werror_flag" ||
7600 test ! -s conftest.err
7601 } && test -s conftest.
$ac_objext; then
7602 ac_cv_struct_tm
=time.h
7604 echo "$as_me: failed program was:" >&5
7605 sed 's/^/| /' conftest.
$ac_ext >&5
7607 ac_cv_struct_tm
=sys
/time.h
7610 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7612 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7613 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7614 if test $ac_cv_struct_tm = sys
/time.h
; then
7616 cat >>confdefs.h
<<\_ACEOF
7617 #define TM_IN_SYS_TIME 1
7622 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7623 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7624 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7625 echo $ECHO_N "(cached) $ECHO_C" >&6
7627 cat >conftest.
$ac_ext <<_ACEOF
7630 cat confdefs.h
>>conftest.
$ac_ext
7631 cat >>conftest.
$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7633 #include <sys/types.h>
7634 #include <$ac_cv_struct_tm>
7640 static struct tm ac_aggr;
7641 if (ac_aggr.tm_zone)
7647 rm -f conftest.
$ac_objext
7648 if { (ac_try
="$ac_compile"
7650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7651 *) ac_try_echo=$ac_try;;
7653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7654 (eval "$ac_compile") 2>conftest.er1
7656 grep -v '^ *+' conftest.er1 >conftest.err
7658 cat conftest.err >&5
7659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7660 (exit $ac_status); } && {
7661 test -z "$ac_c_werror_flag" ||
7662 test ! -s conftest.err
7663 } && test -s conftest.$ac_objext; then
7664 ac_cv_member_struct_tm_tm_zone=yes
7666 echo "$as_me: failed program was:" >&5
7667 sed 's/^/| /' conftest.$ac_ext >&5
7669 cat >conftest.$ac_ext <<_ACEOF
7672 cat confdefs.h >>conftest.$ac_ext
7673 cat >>conftest.$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7675 #include <sys/types.h>
7676 #include <$ac_cv_struct_tm>
7682 static struct tm ac_aggr;
7683 if (sizeof ac_aggr.tm_zone)
7689 rm -f conftest.$ac_objext
7690 if { (ac_try="$ac_compile"
7692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7693 *) ac_try_echo
=$ac_try;;
7695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7696 (eval "$ac_compile") 2>conftest.er1
7698 grep -v '^ *+' conftest.er1
>conftest.err
7700 cat conftest.err
>&5
7701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7702 (exit $ac_status); } && {
7703 test -z "$ac_c_werror_flag" ||
7704 test ! -s conftest.err
7705 } && test -s conftest.
$ac_objext; then
7706 ac_cv_member_struct_tm_tm_zone
=yes
7708 echo "$as_me: failed program was:" >&5
7709 sed 's/^/| /' conftest.
$ac_ext >&5
7711 ac_cv_member_struct_tm_tm_zone
=no
7714 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7717 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7719 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7720 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7721 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7723 cat >>confdefs.h
<<_ACEOF
7724 #define HAVE_STRUCT_TM_TM_ZONE 1
7730 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7732 cat >>confdefs.h
<<\_ACEOF
7733 #define HAVE_TM_ZONE 1
7737 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7738 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7739 if test "${ac_cv_have_decl_tzname+set}" = set; then
7740 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 cat >conftest.
$ac_ext <<_ACEOF
7745 cat confdefs.h
>>conftest.
$ac_ext
7746 cat >>conftest.
$ac_ext <<_ACEOF
7747 /* end confdefs.h. */
7761 rm -f conftest.
$ac_objext
7762 if { (ac_try
="$ac_compile"
7764 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7765 *) ac_try_echo=$ac_try;;
7767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7768 (eval "$ac_compile") 2>conftest.er1
7770 grep -v '^ *+' conftest.er1 >conftest.err
7772 cat conftest.err >&5
7773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7774 (exit $ac_status); } && {
7775 test -z "$ac_c_werror_flag" ||
7776 test ! -s conftest.err
7777 } && test -s conftest.$ac_objext; then
7778 ac_cv_have_decl_tzname=yes
7780 echo "$as_me: failed program was:" >&5
7781 sed 's/^/| /' conftest.$ac_ext >&5
7783 ac_cv_have_decl_tzname=no
7786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7788 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7789 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7790 if test $ac_cv_have_decl_tzname = yes; then
7792 cat >>confdefs.h <<_ACEOF
7793 #define HAVE_DECL_TZNAME 1
7798 cat >>confdefs.h <<_ACEOF
7799 #define HAVE_DECL_TZNAME 0
7806 { echo "$as_me:$LINENO: checking for tzname" >&5
7807 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7808 if test "${ac_cv_var_tzname+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7811 cat >conftest.$ac_ext <<_ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7818 #if !HAVE_DECL_TZNAME
7819 extern char *tzname[];
7825 return tzname[0][0];
7830 rm -f conftest.$ac_objext conftest$ac_exeext
7831 if { (ac_try="$ac_link"
7833 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7834 *) ac_try_echo
=$ac_try;;
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_link") 2>conftest.er1
7839 grep -v '^ *+' conftest.er1
>conftest.err
7841 cat conftest.err
>&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest
$ac_exeext &&
7847 $as_test_x conftest
$ac_exeext; then
7848 ac_cv_var_tzname
=yes
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.
$ac_ext >&5
7856 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7857 conftest
$ac_exeext conftest.
$ac_ext
7859 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7860 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7861 if test $ac_cv_var_tzname = yes; then
7863 cat >>confdefs.h
<<\_ACEOF
7864 #define HAVE_TZNAME 1
7870 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7871 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7872 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7875 cat >conftest.
$ac_ext <<_ACEOF
7878 cat confdefs.h
>>conftest.
$ac_ext
7879 cat >>conftest.
$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7886 static struct tm ac_aggr;
7887 if (ac_aggr.tm_gmtoff)
7893 rm -f conftest.
$ac_objext
7894 if { (ac_try
="$ac_compile"
7896 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7897 *) ac_try_echo=$ac_try;;
7899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7900 (eval "$ac_compile") 2>conftest.er1
7902 grep -v '^ *+' conftest.er1 >conftest.err
7904 cat conftest.err >&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } && {
7907 test -z "$ac_c_werror_flag" ||
7908 test ! -s conftest.err
7909 } && test -s conftest.$ac_objext; then
7910 ac_cv_member_struct_tm_tm_gmtoff=yes
7912 echo "$as_me: failed program was:" >&5
7913 sed 's/^/| /' conftest.$ac_ext >&5
7915 cat >conftest.$ac_ext <<_ACEOF
7918 cat confdefs.h >>conftest.$ac_ext
7919 cat >>conftest.$ac_ext <<_ACEOF
7920 /* end confdefs.h. */
7926 static struct tm ac_aggr;
7927 if (sizeof ac_aggr.tm_gmtoff)
7933 rm -f conftest.$ac_objext
7934 if { (ac_try="$ac_compile"
7936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7937 *) ac_try_echo
=$ac_try;;
7939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7940 (eval "$ac_compile") 2>conftest.er1
7942 grep -v '^ *+' conftest.er1
>conftest.err
7944 cat conftest.err
>&5
7945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7946 (exit $ac_status); } && {
7947 test -z "$ac_c_werror_flag" ||
7948 test ! -s conftest.err
7949 } && test -s conftest.
$ac_objext; then
7950 ac_cv_member_struct_tm_tm_gmtoff
=yes
7952 echo "$as_me: failed program was:" >&5
7953 sed 's/^/| /' conftest.
$ac_ext >&5
7955 ac_cv_member_struct_tm_tm_gmtoff
=no
7958 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7961 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7963 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7964 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7965 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7967 cat >>confdefs.h
<<\_ACEOF
7968 #define HAVE_TM_GMTOFF 1
7973 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7974 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7975 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7976 echo $ECHO_N "(cached) $ECHO_C" >&6
7978 cat >conftest.
$ac_ext <<_ACEOF
7981 cat confdefs.h
>>conftest.
$ac_ext
7982 cat >>conftest.
$ac_ext <<_ACEOF
7983 /* end confdefs.h. */
7984 $ac_includes_default
7985 #if HAVE_SYS_SOCKET_H
7986 #include <sys/socket.h>
7995 static struct ifreq ac_aggr;
7996 if (ac_aggr.ifr_flags)
8002 rm -f conftest.
$ac_objext
8003 if { (ac_try
="$ac_compile"
8005 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8006 *) ac_try_echo=$ac_try;;
8008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8009 (eval "$ac_compile") 2>conftest.er1
8011 grep -v '^ *+' conftest.er1 >conftest.err
8013 cat conftest.err >&5
8014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8015 (exit $ac_status); } && {
8016 test -z "$ac_c_werror_flag" ||
8017 test ! -s conftest.err
8018 } && test -s conftest.$ac_objext; then
8019 ac_cv_member_struct_ifreq_ifr_flags=yes
8021 echo "$as_me: failed program was:" >&5
8022 sed 's/^/| /' conftest.$ac_ext >&5
8024 cat >conftest.$ac_ext <<_ACEOF
8027 cat confdefs.h >>conftest.$ac_ext
8028 cat >>conftest.$ac_ext <<_ACEOF
8029 /* end confdefs.h. */
8030 $ac_includes_default
8031 #if HAVE_SYS_SOCKET_H
8032 #include <sys/socket.h>
8041 static struct ifreq ac_aggr;
8042 if (sizeof ac_aggr.ifr_flags)
8048 rm -f conftest.$ac_objext
8049 if { (ac_try="$ac_compile"
8051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8052 *) ac_try_echo
=$ac_try;;
8054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8055 (eval "$ac_compile") 2>conftest.er1
8057 grep -v '^ *+' conftest.er1
>conftest.err
8059 cat conftest.err
>&5
8060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8061 (exit $ac_status); } && {
8062 test -z "$ac_c_werror_flag" ||
8063 test ! -s conftest.err
8064 } && test -s conftest.
$ac_objext; then
8065 ac_cv_member_struct_ifreq_ifr_flags
=yes
8067 echo "$as_me: failed program was:" >&5
8068 sed 's/^/| /' conftest.
$ac_ext >&5
8070 ac_cv_member_struct_ifreq_ifr_flags
=no
8073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8076 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8078 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8079 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8080 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8082 cat >>confdefs.h
<<_ACEOF
8083 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8088 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8089 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8090 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 cat >conftest.
$ac_ext <<_ACEOF
8096 cat confdefs.h
>>conftest.
$ac_ext
8097 cat >>conftest.
$ac_ext <<_ACEOF
8098 /* end confdefs.h. */
8099 $ac_includes_default
8100 #if HAVE_SYS_SOCKET_H
8101 #include <sys/socket.h>
8110 static struct ifreq ac_aggr;
8111 if (ac_aggr.ifr_hwaddr)
8117 rm -f conftest.
$ac_objext
8118 if { (ac_try
="$ac_compile"
8120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_compile") 2>conftest.er1
8126 grep -v '^ *+' conftest.er1 >conftest.err
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } && {
8131 test -z "$ac_c_werror_flag" ||
8132 test ! -s conftest.err
8133 } && test -s conftest.$ac_objext; then
8134 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8139 cat >conftest.$ac_ext <<_ACEOF
8142 cat confdefs.h >>conftest.$ac_ext
8143 cat >>conftest.$ac_ext <<_ACEOF
8144 /* end confdefs.h. */
8145 $ac_includes_default
8146 #if HAVE_SYS_SOCKET_H
8147 #include <sys/socket.h>
8156 static struct ifreq ac_aggr;
8157 if (sizeof ac_aggr.ifr_hwaddr)
8163 rm -f conftest.$ac_objext
8164 if { (ac_try="$ac_compile"
8166 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8167 *) ac_try_echo
=$ac_try;;
8169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8170 (eval "$ac_compile") 2>conftest.er1
8172 grep -v '^ *+' conftest.er1
>conftest.err
8174 cat conftest.err
>&5
8175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8176 (exit $ac_status); } && {
8177 test -z "$ac_c_werror_flag" ||
8178 test ! -s conftest.err
8179 } && test -s conftest.
$ac_objext; then
8180 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8182 echo "$as_me: failed program was:" >&5
8183 sed 's/^/| /' conftest.
$ac_ext >&5
8185 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8188 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8193 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8194 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8195 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8197 cat >>confdefs.h
<<_ACEOF
8198 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8203 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8204 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8205 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8206 echo $ECHO_N "(cached) $ECHO_C" >&6
8208 cat >conftest.
$ac_ext <<_ACEOF
8211 cat confdefs.h
>>conftest.
$ac_ext
8212 cat >>conftest.
$ac_ext <<_ACEOF
8213 /* end confdefs.h. */
8214 $ac_includes_default
8215 #if HAVE_SYS_SOCKET_H
8216 #include <sys/socket.h>
8225 static struct ifreq ac_aggr;
8226 if (ac_aggr.ifr_netmask)
8232 rm -f conftest.
$ac_objext
8233 if { (ac_try
="$ac_compile"
8235 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_compile") 2>conftest.er1
8241 grep -v '^ *+' conftest.er1 >conftest.err
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } && {
8246 test -z "$ac_c_werror_flag" ||
8247 test ! -s conftest.err
8248 } && test -s conftest.$ac_objext; then
8249 ac_cv_member_struct_ifreq_ifr_netmask=yes
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8254 cat >conftest.$ac_ext <<_ACEOF
8257 cat confdefs.h >>conftest.$ac_ext
8258 cat >>conftest.$ac_ext <<_ACEOF
8259 /* end confdefs.h. */
8260 $ac_includes_default
8261 #if HAVE_SYS_SOCKET_H
8262 #include <sys/socket.h>
8271 static struct ifreq ac_aggr;
8272 if (sizeof ac_aggr.ifr_netmask)
8278 rm -f conftest.$ac_objext
8279 if { (ac_try="$ac_compile"
8281 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8282 *) ac_try_echo
=$ac_try;;
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_compile") 2>conftest.er1
8287 grep -v '^ *+' conftest.er1
>conftest.err
8289 cat conftest.err
>&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } && {
8292 test -z "$ac_c_werror_flag" ||
8293 test ! -s conftest.err
8294 } && test -s conftest.
$ac_objext; then
8295 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.
$ac_ext >&5
8300 ac_cv_member_struct_ifreq_ifr_netmask
=no
8303 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8308 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8309 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8310 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8312 cat >>confdefs.h
<<_ACEOF
8313 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8318 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8319 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8320 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 cat >conftest.
$ac_ext <<_ACEOF
8326 cat confdefs.h
>>conftest.
$ac_ext
8327 cat >>conftest.
$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 $ac_includes_default
8330 #if HAVE_SYS_SOCKET_H
8331 #include <sys/socket.h>
8340 static struct ifreq ac_aggr;
8341 if (ac_aggr.ifr_broadaddr)
8347 rm -f conftest.
$ac_objext
8348 if { (ac_try
="$ac_compile"
8350 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8356 grep -v '^ *+' conftest.er1 >conftest.err
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } && {
8361 test -z "$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8363 } && test -s conftest.$ac_objext; then
8364 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8369 cat >conftest.$ac_ext <<_ACEOF
8372 cat confdefs.h >>conftest.$ac_ext
8373 cat >>conftest.$ac_ext <<_ACEOF
8374 /* end confdefs.h. */
8375 $ac_includes_default
8376 #if HAVE_SYS_SOCKET_H
8377 #include <sys/socket.h>
8386 static struct ifreq ac_aggr;
8387 if (sizeof ac_aggr.ifr_broadaddr)
8393 rm -f conftest.$ac_objext
8394 if { (ac_try="$ac_compile"
8396 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8397 *) ac_try_echo
=$ac_try;;
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_compile") 2>conftest.er1
8402 grep -v '^ *+' conftest.er1
>conftest.err
8404 cat conftest.err
>&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } && {
8407 test -z "$ac_c_werror_flag" ||
8408 test ! -s conftest.err
8409 } && test -s conftest.
$ac_objext; then
8410 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.
$ac_ext >&5
8415 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8418 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8421 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8423 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8424 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8425 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8427 cat >>confdefs.h
<<_ACEOF
8428 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8433 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8434 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8435 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 cat >conftest.
$ac_ext <<_ACEOF
8441 cat confdefs.h
>>conftest.
$ac_ext
8442 cat >>conftest.
$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 $ac_includes_default
8445 #if HAVE_SYS_SOCKET_H
8446 #include <sys/socket.h>
8455 static struct ifreq ac_aggr;
8456 if (ac_aggr.ifr_addr)
8462 rm -f conftest.
$ac_objext
8463 if { (ac_try
="$ac_compile"
8465 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_compile") 2>conftest.er1
8471 grep -v '^ *+' conftest.er1 >conftest.err
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } && {
8476 test -z "$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8478 } && test -s conftest.$ac_objext; then
8479 ac_cv_member_struct_ifreq_ifr_addr=yes
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8484 cat >conftest.$ac_ext <<_ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8490 $ac_includes_default
8491 #if HAVE_SYS_SOCKET_H
8492 #include <sys/socket.h>
8501 static struct ifreq ac_aggr;
8502 if (sizeof ac_aggr.ifr_addr)
8508 rm -f conftest.$ac_objext
8509 if { (ac_try="$ac_compile"
8511 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8512 *) ac_try_echo
=$ac_try;;
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_compile") 2>conftest.er1
8517 grep -v '^ *+' conftest.er1
>conftest.err
8519 cat conftest.err
>&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } && {
8522 test -z "$ac_c_werror_flag" ||
8523 test ! -s conftest.err
8524 } && test -s conftest.
$ac_objext; then
8525 ac_cv_member_struct_ifreq_ifr_addr
=yes
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.
$ac_ext >&5
8530 ac_cv_member_struct_ifreq_ifr_addr
=no
8533 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8538 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8539 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8540 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8542 cat >>confdefs.h
<<_ACEOF
8543 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8551 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8552 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8553 if test "$ac_cv_prog_cc_c89" != no
; then
8554 { echo "$as_me:$LINENO: result: yes" >&5
8555 echo "${ECHO_T}yes" >&6; }
8557 cat >>confdefs.h
<<\_ACEOF
8558 #define PROTOTYPES 1
8562 cat >>confdefs.h
<<\_ACEOF
8563 #define __PROTOTYPES 1
8567 { echo "$as_me:$LINENO: result: no" >&5
8568 echo "${ECHO_T}no" >&6; }
8571 { echo "$as_me:$LINENO: checking for working volatile" >&5
8572 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8573 if test "${ac_cv_c_volatile+set}" = set; then
8574 echo $ECHO_N "(cached) $ECHO_C" >&6
8576 cat >conftest.
$ac_ext <<_ACEOF
8579 cat confdefs.h
>>conftest.
$ac_ext
8580 cat >>conftest.
$ac_ext <<_ACEOF
8581 /* end confdefs.h. */
8588 int * volatile y = (int *) 0;
8594 rm -f conftest.
$ac_objext
8595 if { (ac_try
="$ac_compile"
8597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8598 *) ac_try_echo=$ac_try;;
8600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8601 (eval "$ac_compile") 2>conftest.er1
8603 grep -v '^ *+' conftest.er1 >conftest.err
8605 cat conftest.err >&5
8606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8607 (exit $ac_status); } && {
8608 test -z "$ac_c_werror_flag" ||
8609 test ! -s conftest.err
8610 } && test -s conftest.$ac_objext; then
8611 ac_cv_c_volatile=yes
8613 echo "$as_me: failed program was:" >&5
8614 sed 's/^/| /' conftest.$ac_ext >&5
8619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8621 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8622 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8623 if test $ac_cv_c_volatile = no; then
8625 cat >>confdefs.h <<\_ACEOF
8631 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8632 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8633 if test "${ac_cv_c_const+set}" = set; then
8634 echo $ECHO_N "(cached) $ECHO_C" >&6
8636 cat >conftest.$ac_ext <<_ACEOF
8639 cat confdefs.h >>conftest.$ac_ext
8640 cat >>conftest.$ac_ext <<_ACEOF
8641 /* end confdefs.h. */
8646 /* FIXME: Include the comments suggested by Paul. */
8648 /* Ultrix mips cc rejects this. */
8649 typedef int charset[2];
8651 /* SunOS 4.1.1 cc rejects this. */
8652 char const *const *pcpcc;
8654 /* NEC SVR4.0.2 mips cc rejects this. */
8655 struct point {int x, y;};
8656 static struct point const zero = {0,0};
8657 /* AIX XL C 1.02.0.0 rejects this.
8658 It does not let you subtract one const X* pointer from another in
8659 an arm of an if-expression whose if-part is not a constant
8661 const char *g = "string";
8662 pcpcc = &g + (g ? g-g : 0);
8663 /* HPUX 7.0 cc rejects these. */
8665 ppc = (char**) pcpcc;
8666 pcpcc = (char const *const *) ppc;
8667 { /* SCO 3.2v4 cc rejects this. */
8669 char const *s = 0 ? (char *) 0 : (char const *) 0;
8674 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8676 const int *foo = &x[0];
8679 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8680 typedef const int *iptr;
8684 { /* AIX XL C 1.02.0.0 rejects this saying
8685 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8686 struct s { int j; const int *ap[3]; };
8687 struct s *b; b->j = 5;
8689 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8693 return !cs[0] && !zero.x;
8700 rm -f conftest.$ac_objext
8701 if { (ac_try="$ac_compile"
8703 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8704 *) ac_try_echo
=$ac_try;;
8706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8707 (eval "$ac_compile") 2>conftest.er1
8709 grep -v '^ *+' conftest.er1
>conftest.err
8711 cat conftest.err
>&5
8712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8713 (exit $ac_status); } && {
8714 test -z "$ac_c_werror_flag" ||
8715 test ! -s conftest.err
8716 } && test -s conftest.
$ac_objext; then
8719 echo "$as_me: failed program was:" >&5
8720 sed 's/^/| /' conftest.
$ac_ext >&5
8725 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8727 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8728 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8729 if test $ac_cv_c_const = no
; then
8731 cat >>confdefs.h
<<\_ACEOF
8737 { echo "$as_me:$LINENO: checking for void * support" >&5
8738 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8739 if test "${emacs_cv_void_star+set}" = set; then
8740 echo $ECHO_N "(cached) $ECHO_C" >&6
8742 cat >conftest.
$ac_ext <<_ACEOF
8745 cat confdefs.h
>>conftest.
$ac_ext
8746 cat >>conftest.
$ac_ext <<_ACEOF
8747 /* end confdefs.h. */
8757 rm -f conftest.
$ac_objext
8758 if { (ac_try
="$ac_compile"
8760 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8761 *) ac_try_echo=$ac_try;;
8763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8764 (eval "$ac_compile") 2>conftest.er1
8766 grep -v '^ *+' conftest.er1 >conftest.err
8768 cat conftest.err >&5
8769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8770 (exit $ac_status); } && {
8771 test -z "$ac_c_werror_flag" ||
8772 test ! -s conftest.err
8773 } && test -s conftest.$ac_objext; then
8774 emacs_cv_void_star=yes
8776 echo "$as_me: failed program was:" >&5
8777 sed 's/^/| /' conftest.$ac_ext >&5
8779 emacs_cv_void_star=no
8782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8784 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8785 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8786 if test $emacs_cv_void_star = yes; then
8787 cat >>confdefs.h <<\_ACEOF
8788 #define POINTER_TYPE void
8792 cat >>confdefs.h <<\_ACEOF
8793 #define POINTER_TYPE char
8802 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8803 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8804 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8805 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8806 echo $ECHO_N "(cached) $ECHO_C" >&6
8808 cat >conftest.make <<\_ACEOF
8811 @echo '@@@%%%=$(MAKE)=@@@%%%'
8813 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8814 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8816 eval ac_cv_prog_make_${ac_make}_set=yes;;
8818 eval ac_cv_prog_make_${ac_make}_set=no;;
8822 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8823 { echo "$as_me:$LINENO: result: yes" >&5
8824 echo "${ECHO_T}yes" >&6; }
8827 { echo "$as_me:$LINENO: result: no" >&5
8828 echo "${ECHO_T}no" >&6; }
8829 SET_MAKE="MAKE=${MAKE-make}"
8833 { echo "$as_me:$LINENO: checking for long file names" >&5
8834 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8835 if test "${ac_cv_sys_long_file_names+set}" = set; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8838 ac_cv_sys_long_file_names=yes
8839 # Test for long file names in all the places we know might matter:
8840 # . the current directory, where building will happen
8841 # $prefix/lib where we will be installing things
8842 # $exec_prefix/lib likewise
8843 # $TMPDIR if set, where it might want to write temporary files
8844 # /tmp where it might want to write temporary files
8847 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8848 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8849 # in the usual case where exec_prefix is '${prefix}'.
8851 . | /* | ?:[\\/]*) ;; #(
8854 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8855 ac_xdir=$ac_dir/cf$$
8856 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8857 ac_tf1=$ac_xdir/conftest9012345
8858 ac_tf2=$ac_xdir/conftest9012346
8859 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8860 ac_cv_sys_long_file_names=no
8861 rm -f -r "$ac_xdir" 2>/dev/null
8862 test $ac_cv_sys_long_file_names = no && break
8865 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8866 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8867 if test $ac_cv_sys_long_file_names = yes; then
8869 cat >>confdefs.h <<\_ACEOF
8870 #define HAVE_LONG_FILE_NAMES 1
8876 #### Choose a window system.
8878 { echo "$as_me:$LINENO: checking for X" >&5
8879 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8882 # Check whether --with-x was given.
8883 if test "${with_x+set}" = set; then
8887 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8888 if test "x$with_x" = xno; then
8889 # The user explicitly disabled X.
8892 case $x_includes,$x_libraries in #(
8893 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8894 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8895 { (exit 1); exit 1; }; };; #(
8896 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8897 echo $ECHO_N "(cached) $ECHO_C" >&6
8899 # One or both of the vars are not set, and there is no cached value.
8900 ac_x_includes=no ac_x_libraries=no
8901 rm -f -r conftest.dir
8902 if mkdir conftest.dir; then
8904 cat >Imakefile <<'_ACEOF'
8906 @echo incroot='${INCROOT}'
8908 @echo usrlibdir='${USRLIBDIR}'
8910 @echo libdir='${LIBDIR}'
8912 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8913 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8914 for ac_var in incroot usrlibdir libdir; do
8915 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8917 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8918 for ac_extension in a so sl; do
8919 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8920 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8921 ac_im_usrlibdir=$ac_im_libdir; break
8924 # Screen out bogus values from the imake configuration. They are
8925 # bogus both because they are the default anyway, and because
8926 # using them would break gcc on systems where it needs fixed includes.
8927 case $ac_im_incroot in
8928 /usr/include) ac_x_includes= ;;
8929 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8931 case $ac_im_usrlibdir in
8933 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8937 rm -f -r conftest.dir
8940 # Standard set of common directories for X headers.
8941 # Check X11 before X11Rn because it is often a symlink to the current release.
8953 /usr/local/X11/include
8954 /usr/local/X11R6/include
8955 /usr/local/X11R5/include
8956 /usr/local/X11R4/include
8958 /usr/local/include/X11
8959 /usr/local/include/X11R6
8960 /usr/local/include/X11R5
8961 /usr/local/include/X11R4
8965 /usr/XFree86/include/X11
8969 /usr/unsupported/include
8971 /usr/local/x11r5/include
8972 /usr/lpp/Xamples/include
8974 /usr/openwin/include
8975 /usr/openwin/share/include'
8977 if test "$ac_x_includes" = no; then
8978 # Guess where to find include files, by looking for Xlib.h.
8979 # First, try using that file with no special directory specified.
8980 cat >conftest.$ac_ext <<_ACEOF
8983 cat confdefs.h >>conftest.$ac_ext
8984 cat >>conftest.$ac_ext <<_ACEOF
8985 /* end confdefs.h. */
8986 #include <X11/Xlib.h>
8988 if { (ac_try="$ac_cpp conftest.$ac_ext"
8990 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8991 *) ac_try_echo
=$ac_try;;
8993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8996 grep -v '^ *+' conftest.er1
>conftest.err
8998 cat conftest.err
>&5
8999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9000 (exit $ac_status); } >/dev
/null
&& {
9001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9002 test ! -s conftest.err
9004 # We can compile using X headers with no special include directory.
9007 echo "$as_me: failed program was:" >&5
9008 sed 's/^/| /' conftest.
$ac_ext >&5
9010 for ac_dir
in $ac_x_header_dirs; do
9011 if test -r "$ac_dir/X11/Xlib.h"; then
9012 ac_x_includes
=$ac_dir
9018 rm -f conftest.err conftest.
$ac_ext
9019 fi # $ac_x_includes = no
9021 if test "$ac_x_libraries" = no
; then
9022 # Check for the libraries.
9023 # See if we find them without any special options.
9024 # Don't add to $LIBS permanently.
9027 cat >conftest.
$ac_ext <<_ACEOF
9030 cat confdefs.h
>>conftest.
$ac_ext
9031 cat >>conftest.
$ac_ext <<_ACEOF
9032 /* end confdefs.h. */
9033 #include <X11/Xlib.h>
9042 rm -f conftest.
$ac_objext conftest
$ac_exeext
9043 if { (ac_try
="$ac_link"
9045 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9046 *) ac_try_echo=$ac_try;;
9048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9049 (eval "$ac_link") 2>conftest.er1
9051 grep -v '^ *+' conftest.er1 >conftest.err
9053 cat conftest.err >&5
9054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9055 (exit $ac_status); } && {
9056 test -z "$ac_c_werror_flag" ||
9057 test ! -s conftest.err
9058 } && test -s conftest$ac_exeext &&
9059 $as_test_x conftest$ac_exeext; then
9061 # We can link X programs with no special library path.
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9068 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9070 # Don't even attempt the hair of trying to link an X program!
9071 for ac_extension in a so sl; do
9072 if test -r "$ac_dir/libX11.$ac_extension"; then
9073 ac_x_libraries=$ac_dir
9080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9081 conftest$ac_exeext conftest.$ac_ext
9082 fi # $ac_x_libraries = no
9084 case $ac_x_includes,$ac_x_libraries in #(
9086 # Didn't find X, or a directory has "'" in its name.
9087 ac_cv_have_x="have_x=no";; #(
9089 # Record where we found X for the cache.
9090 ac_cv_have_x="have_x=yes\
9091 ac_x_includes='$ac_x_includes'\
9092 ac_x_libraries='$ac_x_libraries'"
9098 eval "$ac_cv_have_x"
9101 if test "$have_x" != yes; then
9102 { echo "$as_me:$LINENO: result: $have_x" >&5
9103 echo "${ECHO_T}$have_x" >&6; }
9106 # If each of the values was on the command line, it overrides each guess.
9107 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9108 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9109 # Update the cache value to reflect the command line values.
9110 ac_cv_have_x="have_x=yes\
9111 ac_x_includes='$x_includes'\
9112 ac_x_libraries='$x_libraries'"
9113 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9114 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9117 if test "$no_x" = yes; then
9123 ## Workaround for bug in autoconf <= 2.62.
9124 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9125 ## No need to do anything special for these standard directories.
9126 ## This is an experiment, take it out if it causes problems.
9127 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9129 x_libraries=`echo :${x_libraries}: |
sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9133 if test "${x_libraries}" != NONE; then
9134 if test -n "${x_libraries}"; then
9135 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9136 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9138 x_default_search_path=""
9139 x_search_path=${x_libraries}
9140 if test -z "${x_search_path}"; then
9141 x_search_path=/usr/lib
9143 for x_library in `echo ${x_search_path}: | \
9144 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9146 ${x_library}/X11/%L/%T/%N%C%S:\
9147 ${x_library}/X11/%l/%T/%N%C%S:\
9148 ${x_library}/X11/%T/%N%C%S:\
9149 ${x_library}/X11/%L/%T/%N%S:\
9150 ${x_library}/X11/%l/%T/%N%S:\
9151 ${x_library}/X11/%T/%N%S"
9152 if test x"${x_default_search_path}" = x; then
9153 x_default_search_path=${x_search_path}
9155 x_default_search_path="${x_search_path}:${x_default_search_path}"
9159 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9160 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9163 if test x"${x_includes}" = x; then
9164 bitmapdir=/usr/include/X11/bitmaps
9166 # accumulate include directories that have X11 bitmap subdirectories
9168 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9169 if test -d "${bmd}/X11/bitmaps"; then
9170 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9172 if test -d "${bmd}/bitmaps"; then
9173 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9176 if test ${bmd_acc} != "dummyval"; then
9177 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9184 tmp_CPPFLAGS="$CPPFLAGS"
9185 tmp_CFLAGS="$CFLAGS"
9186 CPPFLAGS="$CPPFLAGS -x objective-c"
9187 CFLAGS="$CFLAGS -x objective-c"
9188 if test "${with_ns}" != no; then
9189 if test "${opsys}" = darwin; then
9191 ns_appdir=`pwd`/nextstep/Emacs.app
9192 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9193 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9194 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9195 elif test -f /etc/GNUstep/GNUstep.conf; then
9197 ns_appdir=`pwd`/nextstep/Emacs.app
9198 ns_appbindir=`pwd`/nextstep/Emacs.app
9199 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9200 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9201 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)"
9202 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9203 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9204 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9205 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9206 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9207 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9209 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9210 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9211 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9212 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9213 echo $ECHO_N "(cached) $ECHO_C" >&6
9215 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9216 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9218 # Is the header compilable?
9219 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9220 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9221 cat >conftest.$ac_ext <<_ACEOF
9224 cat confdefs.h >>conftest.$ac_ext
9225 cat >>conftest.$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9227 $ac_includes_default
9228 #include <AppKit/AppKit.h>
9230 rm -f conftest.$ac_objext
9231 if { (ac_try="$ac_compile"
9233 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9234 *) ac_try_echo
=$ac_try;;
9236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9237 (eval "$ac_compile") 2>conftest.er1
9239 grep -v '^ *+' conftest.er1
>conftest.err
9241 cat conftest.err
>&5
9242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9243 (exit $ac_status); } && {
9244 test -z "$ac_c_werror_flag" ||
9245 test ! -s conftest.err
9246 } && test -s conftest.
$ac_objext; then
9247 ac_header_compiler
=yes
9249 echo "$as_me: failed program was:" >&5
9250 sed 's/^/| /' conftest.
$ac_ext >&5
9252 ac_header_compiler
=no
9255 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9256 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9257 echo "${ECHO_T}$ac_header_compiler" >&6; }
9259 # Is the header present?
9260 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9261 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9262 cat >conftest.
$ac_ext <<_ACEOF
9265 cat confdefs.h
>>conftest.
$ac_ext
9266 cat >>conftest.
$ac_ext <<_ACEOF
9267 /* end confdefs.h. */
9268 #include <AppKit/AppKit.h>
9270 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9278 grep -v '^ *+' conftest.er1 >conftest.err
9280 cat conftest.err >&5
9281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9282 (exit $ac_status); } >/dev/null && {
9283 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9284 test ! -s conftest.err
9286 ac_header_preproc=yes
9288 echo "$as_me: failed program was:" >&5
9289 sed 's/^/| /' conftest.$ac_ext >&5
9291 ac_header_preproc=no
9294 rm -f conftest.err conftest.$ac_ext
9295 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9296 echo "${ECHO_T}$ac_header_preproc" >&6; }
9298 # So? What about this header?
9299 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9301 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9302 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9303 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9304 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9305 ac_header_preproc=yes
9308 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9309 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9311 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9313 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9315 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9316 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9317 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9318 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9319 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9323 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9324 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9325 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9330 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9331 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9334 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9339 NS_HAVE_NSINTEGER=yes
9340 cat >conftest.$ac_ext <<_ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 #include <Foundation/NSObjCRuntime.h>
9355 rm -f conftest.$ac_objext
9356 if { (ac_try="$ac_compile"
9358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9359 *) ac_try_echo
=$ac_try;;
9361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9362 (eval "$ac_compile") 2>conftest.er1
9364 grep -v '^ *+' conftest.er1
>conftest.err
9366 cat conftest.err
>&5
9367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9368 (exit $ac_status); } && {
9369 test -z "$ac_c_werror_flag" ||
9370 test ! -s conftest.err
9371 } && test -s conftest.
$ac_objext; then
9372 ns_have_nsinteger
=yes
9374 echo "$as_me: failed program was:" >&5
9375 sed 's/^/| /' conftest.
$ac_ext >&5
9377 ns_have_nsinteger
=no
9380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9381 if test $ns_have_nsinteger = no
; then
9382 NS_HAVE_NSINTEGER
=no
9385 if test "${HAVE_NS}" = yes; then
9386 window_system
=nextstep
9389 # set up packaging dirs
9390 exec_prefix
=${ns_appbindir}
9391 libexecdir
=${ns_appbindir}/libexec
9392 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9393 prefix
=${ns_appresdir}
9396 CFLAGS
="$tmp_CFLAGS"
9397 CPPFLAGS
="$tmp_CPPFLAGS"
9399 case "${window_system}" in
9403 case "${with_x_toolkit}" in
9404 athena | lucid
) USE_X_TOOLKIT
=LUCID
;;
9405 motif
) USE_X_TOOLKIT
=MOTIF
;;
9407 USE_X_TOOLKIT
=none
;;
9408 no
) USE_X_TOOLKIT
=none
;;
9409 * ) USE_X_TOOLKIT
=maybe
;;
9419 if test "$window_system" = none
&& test "X$with_x" != "Xno"; then
9420 # Extract the first word of "X", so it can be a program name with args.
9421 set dummy X
; ac_word
=$2
9422 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9424 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9427 if test -n "$HAVE_XSERVER"; then
9428 ac_cv_prog_HAVE_XSERVER
="$HAVE_XSERVER" # Let the user override the test.
9430 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9434 test -z "$as_dir" && as_dir
=.
9435 for ac_exec_ext
in '' $ac_executable_extensions; do
9436 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9437 ac_cv_prog_HAVE_XSERVER
="true"
9438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9445 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER
="false"
9448 HAVE_XSERVER
=$ac_cv_prog_HAVE_XSERVER
9449 if test -n "$HAVE_XSERVER"; then
9450 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9451 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9453 { echo "$as_me:$LINENO: result: no" >&5
9454 echo "${ECHO_T}no" >&6; }
9458 if test "$HAVE_XSERVER" = true ||
9459 test -n "$DISPLAY" ||
9460 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9461 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9462 were found. You should install the relevant development files for X
9463 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9464 sure you have development files for image handling, i.e.
9465 tiff, gif, jpeg, png and xpm.
9466 If you are sure you want Emacs compiled without X window support, pass
9469 echo "$as_me: error: You seem to be running X, but no X development libraries
9470 were found. You should install the relevant development files for X
9471 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9472 sure you have development files for image handling, i.e.
9473 tiff, gif, jpeg, png and xpm.
9474 If you are sure you want Emacs compiled without X window support, pass
9476 to configure." >&2;}
9477 { (exit 1); exit 1; }; }
9481 ### If we're using X11, we should use the X menu package.
9484 yes ) HAVE_MENUS
=yes ;;
9487 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9488 # Assume not, until told otherwise.
9491 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9492 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9493 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9494 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 cat >conftest.
$ac_ext <<_ACEOF
9499 cat confdefs.h
>>conftest.
$ac_ext
9500 cat >>conftest.
$ac_ext <<_ACEOF
9501 /* end confdefs.h. */
9502 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9504 #define malloc_get_state innocuous_malloc_get_state
9506 /* System header to define __stub macros and hopefully few prototypes,
9507 which can conflict with char malloc_get_state (); below.
9508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9509 <limits.h> exists even on freestanding compilers. */
9512 # include <limits.h>
9514 # include <assert.h>
9517 #undef malloc_get_state
9519 /* Override any GCC internal prototype to avoid an error.
9520 Use char because int might match the return type of a GCC
9521 builtin and then its argument prototype would still apply. */
9525 char malloc_get_state ();
9526 /* The GNU C library defines this for functions which it implements
9527 to always fail with ENOSYS. Some functions are actually named
9528 something starting with __ and the normal name is an alias. */
9529 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9536 return malloc_get_state ();
9541 rm -f conftest.
$ac_objext conftest
$ac_exeext
9542 if { (ac_try
="$ac_link"
9544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9545 *) ac_try_echo=$ac_try;;
9547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9548 (eval "$ac_link") 2>conftest.er1
9550 grep -v '^ *+' conftest.er1 >conftest.err
9552 cat conftest.err >&5
9553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9554 (exit $ac_status); } && {
9555 test -z "$ac_c_werror_flag" ||
9556 test ! -s conftest.err
9557 } && test -s conftest$ac_exeext &&
9558 $as_test_x conftest$ac_exeext; then
9559 ac_cv_func_malloc_get_state=yes
9561 echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.$ac_ext >&5
9564 ac_cv_func_malloc_get_state=no
9567 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9568 conftest$ac_exeext conftest.$ac_ext
9570 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9571 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9572 if test $ac_cv_func_malloc_get_state = yes; then
9578 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9579 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9580 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9581 echo $ECHO_N "(cached) $ECHO_C" >&6
9583 cat >conftest.$ac_ext <<_ACEOF
9586 cat confdefs.h >>conftest.$ac_ext
9587 cat >>conftest.$ac_ext <<_ACEOF
9588 /* end confdefs.h. */
9589 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9590 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9591 #define malloc_set_state innocuous_malloc_set_state
9593 /* System header to define __stub macros and hopefully few prototypes,
9594 which can conflict with char malloc_set_state (); below.
9595 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9596 <limits.h> exists even on freestanding compilers. */
9599 # include <limits.h>
9601 # include <assert.h>
9604 #undef malloc_set_state
9606 /* Override any GCC internal prototype to avoid an error.
9607 Use char because int might match the return type of a GCC
9608 builtin and then its argument prototype would still apply. */
9612 char malloc_set_state ();
9613 /* The GNU C library defines this for functions which it implements
9614 to always fail with ENOSYS. Some functions are actually named
9615 something starting with __ and the normal name is an alias. */
9616 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9623 return malloc_set_state ();
9628 rm -f conftest.$ac_objext conftest$ac_exeext
9629 if { (ac_try="$ac_link"
9631 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9632 *) ac_try_echo
=$ac_try;;
9634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9635 (eval "$ac_link") 2>conftest.er1
9637 grep -v '^ *+' conftest.er1
>conftest.err
9639 cat conftest.err
>&5
9640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9641 (exit $ac_status); } && {
9642 test -z "$ac_c_werror_flag" ||
9643 test ! -s conftest.err
9644 } && test -s conftest
$ac_exeext &&
9645 $as_test_x conftest
$ac_exeext; then
9646 ac_cv_func_malloc_set_state
=yes
9648 echo "$as_me: failed program was:" >&5
9649 sed 's/^/| /' conftest.
$ac_ext >&5
9651 ac_cv_func_malloc_set_state
=no
9654 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9655 conftest
$ac_exeext conftest.
$ac_ext
9657 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9658 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9659 if test $ac_cv_func_malloc_set_state = yes; then
9665 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9666 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9667 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9668 echo $ECHO_N "(cached) $ECHO_C" >&6
9670 cat >conftest.
$ac_ext <<_ACEOF
9673 cat confdefs.h
>>conftest.
$ac_ext
9674 cat >>conftest.
$ac_ext <<_ACEOF
9675 /* end confdefs.h. */
9676 extern void (* __after_morecore_hook)();
9680 __after_morecore_hook = 0
9685 rm -f conftest.
$ac_objext conftest
$ac_exeext
9686 if { (ac_try
="$ac_link"
9688 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9689 *) ac_try_echo=$ac_try;;
9691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9692 (eval "$ac_link") 2>conftest.er1
9694 grep -v '^ *+' conftest.er1 >conftest.err
9696 cat conftest.err >&5
9697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9698 (exit $ac_status); } && {
9699 test -z "$ac_c_werror_flag" ||
9700 test ! -s conftest.err
9701 } && test -s conftest$ac_exeext &&
9702 $as_test_x conftest$ac_exeext; then
9703 emacs_cv_var___after_morecore_hook=yes
9705 echo "$as_me: failed program was:" >&5
9706 sed 's/^/| /' conftest.$ac_ext >&5
9708 emacs_cv_var___after_morecore_hook=no
9711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9712 conftest$ac_exeext conftest.$ac_ext
9714 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9715 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9716 if test $emacs_cv_var___after_morecore_hook = no; then
9719 if test "${system_malloc}" = "yes"; then
9722 (The GNU allocators don't work with this system configuration.)"
9724 if test "$doug_lea_malloc" = "yes" ; then
9725 if test "$GNU_MALLOC" = yes ; then
9727 (Using Doug Lea's new malloc from the GNU C Library.)"
9730 cat >>confdefs.h <<\_ACEOF
9731 #define DOUG_LEA_MALLOC 1
9736 if test x"${REL_ALLOC}" = x; then
9737 REL_ALLOC=${GNU_MALLOC}
9743 for ac_header in stdlib.h unistd.h
9745 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
9746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9747 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9748 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 ac_res=`eval echo '${'$as_ac_Header'}'`
9753 { echo "$as_me:$LINENO: result: $ac_res" >&5
9754 echo "${ECHO_T}$ac_res" >&6; }
9756 # Is the header compilable?
9757 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9758 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9759 cat >conftest.$ac_ext <<_ACEOF
9762 cat confdefs.h >>conftest.$ac_ext
9763 cat >>conftest.$ac_ext <<_ACEOF
9764 /* end confdefs.h. */
9765 $ac_includes_default
9766 #include <$ac_header>
9768 rm -f conftest.$ac_objext
9769 if { (ac_try="$ac_compile"
9771 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9772 *) ac_try_echo
=$ac_try;;
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_compile") 2>conftest.er1
9777 grep -v '^ *+' conftest.er1
>conftest.err
9779 cat conftest.err
>&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } && {
9782 test -z "$ac_c_werror_flag" ||
9783 test ! -s conftest.err
9784 } && test -s conftest.
$ac_objext; then
9785 ac_header_compiler
=yes
9787 echo "$as_me: failed program was:" >&5
9788 sed 's/^/| /' conftest.
$ac_ext >&5
9790 ac_header_compiler
=no
9793 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9795 echo "${ECHO_T}$ac_header_compiler" >&6; }
9797 # Is the header present?
9798 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9799 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9800 cat >conftest.
$ac_ext <<_ACEOF
9803 cat confdefs.h
>>conftest.
$ac_ext
9804 cat >>conftest.
$ac_ext <<_ACEOF
9805 /* end confdefs.h. */
9806 #include <$ac_header>
9808 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9811 *) ac_try_echo=$ac_try;;
9813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9816 grep -v '^ *+' conftest.er1 >conftest.err
9818 cat conftest.err >&5
9819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9820 (exit $ac_status); } >/dev/null && {
9821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9822 test ! -s conftest.err
9824 ac_header_preproc=yes
9826 echo "$as_me: failed program was:" >&5
9827 sed 's/^/| /' conftest.$ac_ext >&5
9829 ac_header_preproc=no
9832 rm -f conftest.err conftest.$ac_ext
9833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9834 echo "${ECHO_T}$ac_header_preproc" >&6; }
9836 # So? What about this header?
9837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9840 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9842 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9843 ac_header_preproc=yes
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9847 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9849 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9851 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9852 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9853 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9854 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9855 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9856 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9857 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9861 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9862 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9863 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9864 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 eval "$as_ac_Header=\$ac_header_preproc"
9868 ac_res=`eval echo '${'$as_ac_Header'}'`
9869 { echo "$as_me:$LINENO: result: $ac_res" >&5
9870 echo "${ECHO_T}$ac_res" >&6; }
9873 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9874 cat >>confdefs.h <<_ACEOF
9875 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
9883 for ac_func in getpagesize
9885 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
9886 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9887 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9888 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 cat >conftest.$ac_ext <<_ACEOF
9894 cat confdefs.h >>conftest.$ac_ext
9895 cat >>conftest.$ac_ext <<_ACEOF
9896 /* end confdefs.h. */
9897 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9898 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9899 #define $ac_func innocuous_$ac_func
9901 /* System header to define __stub macros and hopefully few prototypes,
9902 which can conflict with char $ac_func (); below.
9903 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9904 <limits.h> exists even on freestanding compilers. */
9907 # include <limits.h>
9909 # include <assert.h>
9914 /* Override any GCC internal prototype to avoid an error.
9915 Use char because int might match the return type of a GCC
9916 builtin and then its argument prototype would still apply. */
9921 /* The GNU C library defines this for functions which it implements
9922 to always fail with ENOSYS. Some functions are actually named
9923 something starting with __ and the normal name is an alias. */
9924 #if defined __stub_$ac_func || defined __stub___$ac_func
9936 rm -f conftest.$ac_objext conftest$ac_exeext
9937 if { (ac_try="$ac_link"
9939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9940 *) ac_try_echo
=$ac_try;;
9942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9943 (eval "$ac_link") 2>conftest.er1
9945 grep -v '^ *+' conftest.er1
>conftest.err
9947 cat conftest.err
>&5
9948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9949 (exit $ac_status); } && {
9950 test -z "$ac_c_werror_flag" ||
9951 test ! -s conftest.err
9952 } && test -s conftest
$ac_exeext &&
9953 $as_test_x conftest
$ac_exeext; then
9954 eval "$as_ac_var=yes"
9956 echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.
$ac_ext >&5
9959 eval "$as_ac_var=no"
9962 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9963 conftest
$ac_exeext conftest.
$ac_ext
9965 ac_res
=`eval echo '${'$as_ac_var'}'`
9966 { echo "$as_me:$LINENO: result: $ac_res" >&5
9967 echo "${ECHO_T}$ac_res" >&6; }
9968 if test `eval echo '${'$as_ac_var'}'` = yes; then
9969 cat >>confdefs.h
<<_ACEOF
9970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9976 { echo "$as_me:$LINENO: checking for working mmap" >&5
9977 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9978 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9979 echo $ECHO_N "(cached) $ECHO_C" >&6
9981 if test "$cross_compiling" = yes; then
9982 ac_cv_func_mmap_fixed_mapped
=no
9984 cat >conftest.
$ac_ext <<_ACEOF
9987 cat confdefs.h
>>conftest.
$ac_ext
9988 cat >>conftest.
$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 $ac_includes_default
9991 /* malloc might have been renamed as rpl_malloc. */
9994 /* Thanks to Mike Haertel and Jim Avera for this test.
9995 Here is a matrix of mmap possibilities:
9996 mmap private not fixed
9997 mmap private fixed at somewhere currently unmapped
9998 mmap private fixed at somewhere already mapped
9999 mmap shared not fixed
10000 mmap shared fixed at somewhere currently unmapped
10001 mmap shared fixed at somewhere already mapped
10002 For private mappings, we should verify that changes cannot be read()
10003 back from the file, nor mmap's back from the file at a different
10004 address. (There have been systems where private was not correctly
10005 implemented like the infamous i386 svr4.0, and systems where the
10006 VM page cache was not coherent with the file system buffer cache
10007 like early versions of FreeBSD and possibly contemporary NetBSD.)
10008 For shared mappings, we should conversely verify that changes get
10009 propagated back to all the places they're supposed to be.
10011 Grep wants private fixed already mapped.
10012 The main things grep needs to know about mmap are:
10013 * does it exist and is it safe to write into the mmap'd area
10014 * how to use it (BSD variants) */
10017 #include <sys/mman.h>
10019 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10023 /* This mess was copied from the GNU getpagesize.h. */
10024 #ifndef HAVE_GETPAGESIZE
10025 /* Assume that all systems that can run configure have sys/param.h. */
10026 # ifndef HAVE_SYS_PARAM_H
10027 # define HAVE_SYS_PARAM_H 1
10030 # ifdef _SC_PAGESIZE
10031 # define getpagesize() sysconf(_SC_PAGESIZE)
10032 # else /* no _SC_PAGESIZE */
10033 # ifdef HAVE_SYS_PARAM_H
10034 # include <sys/param.h>
10035 # ifdef EXEC_PAGESIZE
10036 # define getpagesize() EXEC_PAGESIZE
10037 # else /* no EXEC_PAGESIZE */
10039 # define getpagesize() NBPG * CLSIZE
10042 # endif /* no CLSIZE */
10043 # else /* no NBPG */
10045 # define getpagesize() NBPC
10046 # else /* no NBPC */
10048 # define getpagesize() PAGESIZE
10049 # endif /* PAGESIZE */
10050 # endif /* no NBPC */
10051 # endif /* no NBPG */
10052 # endif /* no EXEC_PAGESIZE */
10053 # else /* no HAVE_SYS_PARAM_H */
10054 # define getpagesize() 8192 /* punt totally */
10055 # endif /* no HAVE_SYS_PARAM_H */
10056 # endif /* no _SC_PAGESIZE */
10058 #endif /* no HAVE_GETPAGESIZE */
10063 char *data, *data2, *data3;
10067 pagesize = getpagesize ();
10069 /* First, make a file with some known garbage in it. */
10070 data = (char *) malloc (pagesize);
10073 for (i = 0; i < pagesize; ++i)
10074 *(data + i) = rand ();
10076 fd = creat ("conftest.mmap", 0600);
10079 if (write (fd, data, pagesize) != pagesize)
10083 /* Next, try to mmap the file at a fixed address which already has
10084 something else allocated at it. If we can, also make sure that
10085 we see the same garbage. */
10086 fd = open ("conftest.mmap", O_RDWR);
10089 data2 = (char *) malloc (2 * pagesize);
10092 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10093 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10094 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10096 for (i = 0; i < pagesize; ++i)
10097 if (*(data + i) != *(data2 + i))
10100 /* Finally, make sure that changes to the mapped area do not
10101 percolate back to the file as seen by read(). (This is a bug on
10102 some variants of i386 svr4.0.) */
10103 for (i = 0; i < pagesize; ++i)
10104 *(data2 + i) = *(data2 + i) + 1;
10105 data3 = (char *) malloc (pagesize);
10108 if (read (fd, data3, pagesize) != pagesize)
10110 for (i = 0; i < pagesize; ++i)
10111 if (*(data + i) != *(data3 + i))
10117 rm -f conftest
$ac_exeext
10118 if { (ac_try
="$ac_link"
10119 case "(($ac_try" in
10120 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10121 *) ac_try_echo=$ac_try;;
10123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10124 (eval "$ac_link") 2>&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10128 { (case "(($ac_try" in
10129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10130 *) ac_try_echo
=$ac_try;;
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_try") 2>&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); }; }; then
10137 ac_cv_func_mmap_fixed_mapped
=yes
10139 echo "$as_me: program exited with status $ac_status" >&5
10140 echo "$as_me: failed program was:" >&5
10141 sed 's/^/| /' conftest.
$ac_ext >&5
10143 ( exit $ac_status )
10144 ac_cv_func_mmap_fixed_mapped
=no
10146 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
10151 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10152 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10153 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10155 cat >>confdefs.h
<<\_ACEOF
10156 #define HAVE_MMAP 1
10160 rm -f conftest.mmap
10162 if test $use_mmap_for_buffers = yes; then
10166 LIBS
="$libsrc_libs $LIBS"
10169 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10170 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10171 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10172 echo $ECHO_N "(cached) $ECHO_C" >&6
10174 ac_check_lib_save_LIBS
=$LIBS
10175 LIBS
="-ldnet $LIBS"
10176 cat >conftest.
$ac_ext <<_ACEOF
10179 cat confdefs.h
>>conftest.
$ac_ext
10180 cat >>conftest.
$ac_ext <<_ACEOF
10181 /* end confdefs.h. */
10183 /* Override any GCC internal prototype to avoid an error.
10184 Use char because int might match the return type of a GCC
10185 builtin and then its argument prototype would still apply. */
10193 return dnet_ntoa ();
10198 rm -f conftest.
$ac_objext conftest
$ac_exeext
10199 if { (ac_try
="$ac_link"
10200 case "(($ac_try" in
10201 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10202 *) ac_try_echo=$ac_try;;
10204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10205 (eval "$ac_link") 2>conftest.er1
10207 grep -v '^ *+' conftest.er1 >conftest.err
10209 cat conftest.err >&5
10210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10211 (exit $ac_status); } && {
10212 test -z "$ac_c_werror_flag" ||
10213 test ! -s conftest.err
10214 } && test -s conftest$ac_exeext &&
10215 $as_test_x conftest$ac_exeext; then
10216 ac_cv_lib_dnet_dnet_ntoa=yes
10218 echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10221 ac_cv_lib_dnet_dnet_ntoa=no
10224 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10225 conftest$ac_exeext conftest.$ac_ext
10226 LIBS=$ac_check_lib_save_LIBS
10228 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10229 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10230 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10231 cat >>confdefs.h <<_ACEOF
10232 #define HAVE_LIBDNET 1
10235 LIBS="-ldnet $LIBS"
10240 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10241 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10242 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10243 echo $ECHO_N "(cached) $ECHO_C" >&6
10245 ac_check_lib_save_LIBS=$LIBS
10246 LIBS="-lXbsd $LIBS"
10247 cat >conftest.$ac_ext <<_ACEOF
10250 cat confdefs.h >>conftest.$ac_ext
10251 cat >>conftest.$ac_ext <<_ACEOF
10252 /* end confdefs.h. */
10263 rm -f conftest.$ac_objext conftest$ac_exeext
10264 if { (ac_try="$ac_link"
10265 case "(($ac_try" in
10266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10267 *) ac_try_echo
=$ac_try;;
10269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10270 (eval "$ac_link") 2>conftest.er1
10272 grep -v '^ *+' conftest.er1
>conftest.err
10274 cat conftest.err
>&5
10275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10276 (exit $ac_status); } && {
10277 test -z "$ac_c_werror_flag" ||
10278 test ! -s conftest.err
10279 } && test -s conftest
$ac_exeext &&
10280 $as_test_x conftest
$ac_exeext; then
10281 ac_cv_lib_Xbsd_main
=yes
10283 echo "$as_me: failed program was:" >&5
10284 sed 's/^/| /' conftest.
$ac_ext >&5
10286 ac_cv_lib_Xbsd_main
=no
10289 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10290 conftest
$ac_exeext conftest.
$ac_ext
10291 LIBS
=$ac_check_lib_save_LIBS
10293 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10294 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10295 if test $ac_cv_lib_Xbsd_main = yes; then
10296 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -lXbsd"
10301 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10302 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10303 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 ac_check_lib_save_LIBS
=$LIBS
10307 LIBS
="-lpthreads $LIBS"
10308 cat >conftest.
$ac_ext <<_ACEOF
10311 cat confdefs.h
>>conftest.
$ac_ext
10312 cat >>conftest.
$ac_ext <<_ACEOF
10313 /* end confdefs.h. */
10315 /* Override any GCC internal prototype to avoid an error.
10316 Use char because int might match the return type of a GCC
10317 builtin and then its argument prototype would still apply. */
10325 return cma_open ();
10330 rm -f conftest.
$ac_objext conftest
$ac_exeext
10331 if { (ac_try
="$ac_link"
10332 case "(($ac_try" in
10333 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_link") 2>conftest.er1
10339 grep -v '^ *+' conftest.er1 >conftest.err
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && {
10344 test -z "$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest$ac_exeext &&
10347 $as_test_x conftest$ac_exeext; then
10348 ac_cv_lib_pthreads_cma_open=yes
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10353 ac_cv_lib_pthreads_cma_open=no
10356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10357 conftest$ac_exeext conftest.$ac_ext
10358 LIBS=$ac_check_lib_save_LIBS
10360 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10361 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10362 if test $ac_cv_lib_pthreads_cma_open = yes; then
10363 cat >>confdefs.h <<_ACEOF
10364 #define HAVE_LIBPTHREADS 1
10367 LIBS="-lpthreads $LIBS"
10375 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10376 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10377 if test "${gdb_cv_bigtoc+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10382 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10383 *) gdb_cv_bigtoc=-bbigtoc ;;
10386 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10387 cat >conftest.$ac_ext <<_ACEOF
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h. */
10402 rm -f conftest.$ac_objext conftest$ac_exeext
10403 if { (ac_try="$ac_link"
10404 case "(($ac_try" in
10405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10406 *) ac_try_echo
=$ac_try;;
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_link") 2>conftest.er1
10411 grep -v '^ *+' conftest.er1
>conftest.err
10413 cat conftest.err
>&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } && {
10416 test -z "$ac_c_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest
$ac_exeext &&
10419 $as_test_x conftest
$ac_exeext; then
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.
$ac_ext >&5
10428 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10429 conftest
$ac_exeext conftest.
$ac_ext
10432 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10433 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10437 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10438 # used for the tests that follow. We set them back to REAL_CFLAGS and
10439 # REAL_CPPFLAGS later on.
10441 REAL_CPPFLAGS
="$CPPFLAGS"
10443 if test "${HAVE_X11}" = "yes"; then
10444 DEFS
="$C_SWITCH_X_SITE $DEFS"
10445 LDFLAGS
="$LDFLAGS $LD_SWITCH_X_SITE"
10447 CFLAGS
="$C_SWITCH_X_SITE $CFLAGS"
10448 CPPFLAGS
="$C_SWITCH_X_SITE $CPPFLAGS"
10450 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10451 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10452 # but it's more convenient here to set LD_RUN_PATH
10453 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10454 if test "${x_libraries}" != NONE
&& test -n "${x_libraries}"; then
10455 LD_RUN_PATH
=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10459 if test "${opsys}" = "gnu-linux"; then
10460 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10461 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10462 cat >conftest.
$ac_ext <<_ACEOF
10465 cat confdefs.h
>>conftest.
$ac_ext
10466 cat >>conftest.
$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10472 XOpenDisplay ("foo");
10477 rm -f conftest.
$ac_objext conftest
$ac_exeext
10478 if { (ac_try
="$ac_link"
10479 case "(($ac_try" in
10480 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_link") 2>conftest.er1
10486 grep -v '^ *+' conftest.er1 >conftest.err
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && {
10491 test -z "$ac_c_werror_flag" ||
10492 test ! -s conftest.err
10493 } && test -s conftest$ac_exeext &&
10494 $as_test_x conftest$ac_exeext; then
10495 xlinux_first_failure=no
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10500 xlinux_first_failure=yes
10503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10504 conftest$ac_exeext conftest.$ac_ext
10505 if test "${xlinux_first_failure}" = "yes"; then
10506 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10507 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10508 OLD_CPPFLAGS="$CPPFLAGS"
10510 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10511 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10512 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10513 LIBS="$LIBS -b i486-linuxaout"
10514 cat >conftest.$ac_ext <<_ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10524 XOpenDisplay ("foo");
10529 rm -f conftest.$ac_objext conftest$ac_exeext
10530 if { (ac_try="$ac_link"
10531 case "(($ac_try" in
10532 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10533 *) ac_try_echo
=$ac_try;;
10535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536 (eval "$ac_link") 2>conftest.er1
10538 grep -v '^ *+' conftest.er1
>conftest.err
10540 cat conftest.err
>&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } && {
10543 test -z "$ac_c_werror_flag" ||
10544 test ! -s conftest.err
10545 } && test -s conftest
$ac_exeext &&
10546 $as_test_x conftest
$ac_exeext; then
10547 xlinux_second_failure
=no
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.
$ac_ext >&5
10552 xlinux_second_failure
=yes
10555 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10556 conftest
$ac_exeext conftest.
$ac_ext
10557 if test "${xlinux_second_failure}" = "yes"; then
10558 # If we get the same failure with -b, there is no use adding -b.
10559 # So take it out. This plays safe.
10560 LD_SWITCH_X_SITE
="$OLD_LD_SWITCH_X_SITE"
10561 C_SWITCH_X_SITE
="$OLD_C_SWITCH_X_SITE"
10562 CPPFLAGS
="$OLD_CPPFLAGS"
10564 { echo "$as_me:$LINENO: result: no" >&5
10565 echo "${ECHO_T}no" >&6; }
10567 { echo "$as_me:$LINENO: result: yes" >&5
10568 echo "${ECHO_T}yes" >&6; }
10571 { echo "$as_me:$LINENO: result: no" >&5
10572 echo "${ECHO_T}no" >&6; }
10576 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10577 # header files included from there.
10578 { echo "$as_me:$LINENO: checking for Xkb" >&5
10579 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10580 cat >conftest.
$ac_ext <<_ACEOF
10583 cat confdefs.h
>>conftest.
$ac_ext
10584 cat >>conftest.
$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10586 #include <X11/Xlib.h>
10587 #include <X11/XKBlib.h>
10591 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10596 rm -f conftest.
$ac_objext conftest
$ac_exeext
10597 if { (ac_try
="$ac_link"
10598 case "(($ac_try" in
10599 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603 (eval "$ac_link") 2>conftest.er1
10605 grep -v '^ *+' conftest.er1 >conftest.err
10607 cat conftest.err >&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } && {
10610 test -z "$ac_c_werror_flag" ||
10611 test ! -s conftest.err
10612 } && test -s conftest$ac_exeext &&
10613 $as_test_x conftest$ac_exeext; then
10616 echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10623 conftest$ac_exeext conftest.$ac_ext
10624 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10625 echo "${ECHO_T}$emacs_xkb" >&6; }
10626 if test $emacs_xkb = yes; then
10628 cat >>confdefs.h <<\_ACEOF
10629 #define HAVE_XKBGETKEYBOARD 1
10638 for ac_func in XrmSetDatabase XScreenResourceString \
10639 XScreenNumberOfScreen XSetWMProtocols
10641 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
10642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10647 cat >conftest.$ac_ext <<_ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10655 #define $ac_func innocuous_$ac_func
10657 /* System header to define __stub macros and hopefully few prototypes,
10658 which can conflict with char $ac_func (); below.
10659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10660 <limits.h> exists even on freestanding compilers. */
10663 # include <limits.h>
10665 # include <assert.h>
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10677 /* The GNU C library defines this for functions which it implements
10678 to always fail with ENOSYS. Some functions are actually named
10679 something starting with __ and the normal name is an alias. */
10680 #if defined __stub_$ac_func || defined __stub___$ac_func
10687 return $ac_func ();
10692 rm -f conftest.$ac_objext conftest$ac_exeext
10693 if { (ac_try="$ac_link"
10694 case "(($ac_try" in
10695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10696 *) ac_try_echo
=$ac_try;;
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_link") 2>conftest.er1
10701 grep -v '^ *+' conftest.er1
>conftest.err
10703 cat conftest.err
>&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && {
10706 test -z "$ac_c_werror_flag" ||
10707 test ! -s conftest.err
10708 } && test -s conftest
$ac_exeext &&
10709 $as_test_x conftest
$ac_exeext; then
10710 eval "$as_ac_var=yes"
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.
$ac_ext >&5
10715 eval "$as_ac_var=no"
10718 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10719 conftest
$ac_exeext conftest.
$ac_ext
10721 ac_res
=`eval echo '${'$as_ac_var'}'`
10722 { echo "$as_me:$LINENO: result: $ac_res" >&5
10723 echo "${ECHO_T}$ac_res" >&6; }
10724 if test `eval echo '${'$as_ac_var'}'` = yes; then
10725 cat >>confdefs.h
<<_ACEOF
10726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10734 if test "${window_system}" = "x11"; then
10735 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10736 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10737 if test "${emacs_cv_x11_version_6+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 cat >conftest.
$ac_ext <<_ACEOF
10743 cat confdefs.h
>>conftest.
$ac_ext
10744 cat >>conftest.
$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 #include <X11/Xlib.h>
10750 #if XlibSpecificationRelease < 6
10758 rm -f conftest.
$ac_objext conftest
$ac_exeext
10759 if { (ac_try
="$ac_link"
10760 case "(($ac_try" in
10761 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_link") 2>conftest.er1
10767 grep -v '^ *+' conftest.er1 >conftest.err
10769 cat conftest.err >&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } && {
10772 test -z "$ac_c_werror_flag" ||
10773 test ! -s conftest.err
10774 } && test -s conftest$ac_exeext &&
10775 $as_test_x conftest$ac_exeext; then
10776 emacs_cv_x11_version_6=yes
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10781 emacs_cv_x11_version_6=no
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10788 if test $emacs_cv_x11_version_6 = yes; then
10789 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10790 echo "${ECHO_T}6 or newer" >&6; }
10792 cat >>confdefs.h <<\_ACEOF
10793 #define HAVE_X11R6 1
10797 { echo "$as_me:$LINENO: result: before 6" >&5
10798 echo "${ECHO_T}before 6" >&6; }
10803 ### Use -lrsvg-2 if available, unless `--with-rsvg=no
' is specified.
10805 if test "${HAVE_X11}" = "yes"; then
10806 if test "${with_rsvg}" != "no"; then
10807 RSVG_REQUIRED=2.0.0
10808 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10813 # Extract the first word of "pkg-config", so it can be a program name with args.
10814 set dummy pkg-config; ac_word=$2
10815 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10817 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10818 echo $ECHO_N "(cached) $ECHO_C" >&6
10820 case $PKG_CONFIG in
10822 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10826 for as_dir in $PATH
10829 test -z "$as_dir" && as_dir=.
10830 for ac_exec_ext in '' $ac_executable_extensions; do
10831 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10832 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10840 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10844 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10845 if test -n "$PKG_CONFIG"; then
10846 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10847 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10849 { echo "$as_me:$LINENO: result: no" >&5
10850 echo "${ECHO_T}no" >&6; }
10855 if test "$PKG_CONFIG" = "no" ; then
10858 PKG_CONFIG_MIN_VERSION=0.9.0
10859 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10860 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10861 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10863 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10864 { echo "$as_me:$LINENO: result: yes" >&5
10865 echo "${ECHO_T}yes" >&6; }
10868 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10869 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10870 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
10871 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10872 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10874 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10875 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10876 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's
,///*,/,g
'`
10877 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10878 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10880 { echo "$as_me:$LINENO: result: no" >&5
10881 echo "${ECHO_T}no" >&6; }
10884 ## If we have a custom action on failure, don't print errors
, but
10885 ## do set a variable so people can do so.
10886 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10893 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10894 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10898 if test $succeeded = yes; then
10907 if test ".${RSVG_CFLAGS}" != "."; then
10910 cat >>confdefs.h
<<\_ACEOF
10911 #define HAVE_RSVG 1
10914 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10915 LIBS
="$RSVG_LIBS $LIBS"
10922 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10925 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10930 # Extract the first word of "pkg-config", so it can be a program name with args.
10931 set dummy pkg-config
; ac_word
=$2
10932 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10933 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10934 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10935 echo $ECHO_N "(cached) $ECHO_C" >&6
10937 case $PKG_CONFIG in
10939 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10942 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10943 for as_dir
in $PATH
10946 test -z "$as_dir" && as_dir
=.
10947 for ac_exec_ext
in '' $ac_executable_extensions; do
10948 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10949 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10950 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10957 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10961 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10962 if test -n "$PKG_CONFIG"; then
10963 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10964 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10966 { echo "$as_me:$LINENO: result: no" >&5
10967 echo "${ECHO_T}no" >&6; }
10972 if test "$PKG_CONFIG" = "no" ; then
10975 PKG_CONFIG_MIN_VERSION
=0.9.0
10976 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10977 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10978 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10980 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10981 { echo "$as_me:$LINENO: result: yes" >&5
10982 echo "${ECHO_T}yes" >&6; }
10985 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10986 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10987 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10988 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10989 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10991 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10992 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10993 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10994 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10995 echo "${ECHO_T}$GTK_LIBS" >&6; }
10997 { echo "$as_me:$LINENO: result: no" >&5
10998 echo "${ECHO_T}no" >&6; }
11001 ## If we have a custom action on failure, don't print errors, but
11002 ## do set a variable so people can do so.
11003 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11010 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11011 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11015 if test $succeeded = yes; then
11021 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11022 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11023 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11024 { (exit 1); exit 1; }; }
11029 if test x
"$pkg_check_gtk" = xyes
; then
11033 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11034 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11035 LIBS
="$GTK_LIBS $LIBS"
11038 for ac_func
in gtk_main
11040 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11041 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11042 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11043 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11044 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 cat >conftest.
$ac_ext <<_ACEOF
11049 cat confdefs.h
>>conftest.
$ac_ext
11050 cat >>conftest.
$ac_ext <<_ACEOF
11051 /* end confdefs.h. */
11052 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11053 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11054 #define $ac_func innocuous_$ac_func
11056 /* System header to define __stub macros and hopefully few prototypes,
11057 which can conflict with char $ac_func (); below.
11058 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11059 <limits.h> exists even on freestanding compilers. */
11062 # include <limits.h>
11064 # include <assert.h>
11069 /* Override any GCC internal prototype to avoid an error.
11070 Use char because int might match the return type of a GCC
11071 builtin and then its argument prototype would still apply. */
11076 /* The GNU C library defines this for functions which it implements
11077 to always fail with ENOSYS. Some functions are actually named
11078 something starting with __ and the normal name is an alias. */
11079 #if defined __stub_$ac_func || defined __stub___$ac_func
11086 return $ac_func ();
11091 rm -f conftest.
$ac_objext conftest
$ac_exeext
11092 if { (ac_try
="$ac_link"
11093 case "(($ac_try" in
11094 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11095 *) ac_try_echo=$ac_try;;
11097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11098 (eval "$ac_link") 2>conftest.er1
11100 grep -v '^ *+' conftest.er1 >conftest.err
11102 cat conftest.err >&5
11103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11104 (exit $ac_status); } && {
11105 test -z "$ac_c_werror_flag" ||
11106 test ! -s conftest.err
11107 } && test -s conftest$ac_exeext &&
11108 $as_test_x conftest$ac_exeext; then
11109 eval "$as_ac_var=yes"
11111 echo "$as_me: failed program was:" >&5
11112 sed 's/^/| /' conftest.$ac_ext >&5
11114 eval "$as_ac_var=no"
11117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11118 conftest$ac_exeext conftest.$ac_ext
11120 ac_res=`eval echo '${'$as_ac_var'}'`
11121 { echo "$as_me:$LINENO: result: $ac_res" >&5
11122 echo "${ECHO_T}$ac_res" >&6; }
11123 if test `eval echo '${'$as_ac_var'}'` = yes; then
11124 cat >>confdefs.h <<_ACEOF
11125 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11131 if test "${GTK_COMPILES}" != "yes"; then
11132 if test "$USE_X_TOOLKIT" != "maybe"; then
11133 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11134 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11135 { (exit 1); exit 1; }; };
11140 cat >>confdefs.h <<\_ACEOF
11145 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11148 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11149 closing open displays. This is no problem if you just use
11150 one display, but if you use more than one and close one of them
11151 Emacs may crash." >&5
11152 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11153 closing open displays. This is no problem if you just use
11154 one display, but if you use more than one and close one of them
11155 Emacs may crash." >&2;}
11163 if test "${HAVE_GTK}" = "yes"; then
11165 if test "$with_toolkit_scroll_bars" != no; then
11166 with_toolkit_scroll_bars=yes
11169 HAVE_GTK_MULTIDISPLAY=no
11171 for ac_func in gdk_display_open
11173 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11174 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11175 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11176 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11177 echo $ECHO_N "(cached) $ECHO_C" >&6
11179 cat >conftest.$ac_ext <<_ACEOF
11182 cat confdefs.h >>conftest.$ac_ext
11183 cat >>conftest.$ac_ext <<_ACEOF
11184 /* end confdefs.h. */
11185 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11186 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11187 #define $ac_func innocuous_$ac_func
11189 /* System header to define __stub macros and hopefully few prototypes,
11190 which can conflict with char $ac_func (); below.
11191 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11192 <limits.h> exists even on freestanding compilers. */
11195 # include <limits.h>
11197 # include <assert.h>
11202 /* Override any GCC internal prototype to avoid an error.
11203 Use char because int might match the return type of a GCC
11204 builtin and then its argument prototype would still apply. */
11209 /* The GNU C library defines this for functions which it implements
11210 to always fail with ENOSYS. Some functions are actually named
11211 something starting with __ and the normal name is an alias. */
11212 #if defined __stub_$ac_func || defined __stub___$ac_func
11219 return $ac_func ();
11224 rm -f conftest.$ac_objext conftest$ac_exeext
11225 if { (ac_try="$ac_link"
11226 case "(($ac_try" in
11227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11228 *) ac_try_echo
=$ac_try;;
11230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11231 (eval "$ac_link") 2>conftest.er1
11233 grep -v '^ *+' conftest.er1
>conftest.err
11235 cat conftest.err
>&5
11236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11237 (exit $ac_status); } && {
11238 test -z "$ac_c_werror_flag" ||
11239 test ! -s conftest.err
11240 } && test -s conftest
$ac_exeext &&
11241 $as_test_x conftest
$ac_exeext; then
11242 eval "$as_ac_var=yes"
11244 echo "$as_me: failed program was:" >&5
11245 sed 's/^/| /' conftest.
$ac_ext >&5
11247 eval "$as_ac_var=no"
11250 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11251 conftest
$ac_exeext conftest.
$ac_ext
11253 ac_res
=`eval echo '${'$as_ac_var'}'`
11254 { echo "$as_me:$LINENO: result: $ac_res" >&5
11255 echo "${ECHO_T}$ac_res" >&6; }
11256 if test `eval echo '${'$as_ac_var'}'` = yes; then
11257 cat >>confdefs.h
<<_ACEOF
11258 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11260 HAVE_GTK_MULTIDISPLAY
=yes
11264 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11266 cat >>confdefs.h
<<\_ACEOF
11267 #define HAVE_GTK_MULTIDISPLAY 1
11272 HAVE_GTK_FILE_SELECTION
=no
11274 for ac_func
in gtk_file_selection_new
11276 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11277 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11278 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11279 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11280 echo $ECHO_N "(cached) $ECHO_C" >&6
11282 cat >conftest.
$ac_ext <<_ACEOF
11285 cat confdefs.h
>>conftest.
$ac_ext
11286 cat >>conftest.
$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11290 #define $ac_func innocuous_$ac_func
11292 /* System header to define __stub macros and hopefully few prototypes,
11293 which can conflict with char $ac_func (); below.
11294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11295 <limits.h> exists even on freestanding compilers. */
11298 # include <limits.h>
11300 # include <assert.h>
11305 /* Override any GCC internal prototype to avoid an error.
11306 Use char because int might match the return type of a GCC
11307 builtin and then its argument prototype would still apply. */
11312 /* The GNU C library defines this for functions which it implements
11313 to always fail with ENOSYS. Some functions are actually named
11314 something starting with __ and the normal name is an alias. */
11315 #if defined __stub_$ac_func || defined __stub___$ac_func
11322 return $ac_func ();
11327 rm -f conftest.
$ac_objext conftest
$ac_exeext
11328 if { (ac_try
="$ac_link"
11329 case "(($ac_try" in
11330 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11331 *) ac_try_echo=$ac_try;;
11333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11334 (eval "$ac_link") 2>conftest.er1
11336 grep -v '^ *+' conftest.er1 >conftest.err
11338 cat conftest.err >&5
11339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11340 (exit $ac_status); } && {
11341 test -z "$ac_c_werror_flag" ||
11342 test ! -s conftest.err
11343 } && test -s conftest$ac_exeext &&
11344 $as_test_x conftest$ac_exeext; then
11345 eval "$as_ac_var=yes"
11347 echo "$as_me: failed program was:" >&5
11348 sed 's/^/| /' conftest.$ac_ext >&5
11350 eval "$as_ac_var=no"
11353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11354 conftest$ac_exeext conftest.$ac_ext
11356 ac_res=`eval echo '${'$as_ac_var'}'`
11357 { echo "$as_me:$LINENO: result: $ac_res" >&5
11358 echo "${ECHO_T}$ac_res" >&6; }
11359 if test `eval echo '${'$as_ac_var'}'` = yes; then
11360 cat >>confdefs.h <<_ACEOF
11361 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11363 HAVE_GTK_FILE_SELECTION=yes
11368 HAVE_GTK_FILE_CHOOSER=no
11370 for ac_func in gtk_file_chooser_dialog_new
11372 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11373 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11374 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11375 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11376 echo $ECHO_N "(cached) $ECHO_C" >&6
11378 cat >conftest.$ac_ext <<_ACEOF
11381 cat confdefs.h >>conftest.$ac_ext
11382 cat >>conftest.$ac_ext <<_ACEOF
11383 /* end confdefs.h. */
11384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11386 #define $ac_func innocuous_$ac_func
11388 /* System header to define __stub macros and hopefully few prototypes,
11389 which can conflict with char $ac_func (); below.
11390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11391 <limits.h> exists even on freestanding compilers. */
11394 # include <limits.h>
11396 # include <assert.h>
11401 /* Override any GCC internal prototype to avoid an error.
11402 Use char because int might match the return type of a GCC
11403 builtin and then its argument prototype would still apply. */
11408 /* The GNU C library defines this for functions which it implements
11409 to always fail with ENOSYS. Some functions are actually named
11410 something starting with __ and the normal name is an alias. */
11411 #if defined __stub_$ac_func || defined __stub___$ac_func
11418 return $ac_func ();
11423 rm -f conftest.$ac_objext conftest$ac_exeext
11424 if { (ac_try="$ac_link"
11425 case "(($ac_try" in
11426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11427 *) ac_try_echo
=$ac_try;;
11429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11430 (eval "$ac_link") 2>conftest.er1
11432 grep -v '^ *+' conftest.er1
>conftest.err
11434 cat conftest.err
>&5
11435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11436 (exit $ac_status); } && {
11437 test -z "$ac_c_werror_flag" ||
11438 test ! -s conftest.err
11439 } && test -s conftest
$ac_exeext &&
11440 $as_test_x conftest
$ac_exeext; then
11441 eval "$as_ac_var=yes"
11443 echo "$as_me: failed program was:" >&5
11444 sed 's/^/| /' conftest.
$ac_ext >&5
11446 eval "$as_ac_var=no"
11449 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11450 conftest
$ac_exeext conftest.
$ac_ext
11452 ac_res
=`eval echo '${'$as_ac_var'}'`
11453 { echo "$as_me:$LINENO: result: $ac_res" >&5
11454 echo "${ECHO_T}$ac_res" >&6; }
11455 if test `eval echo '${'$as_ac_var'}'` = yes; then
11456 cat >>confdefs.h
<<_ACEOF
11457 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11459 HAVE_GTK_FILE_CHOOSER
=yes
11464 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11465 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11467 cat >>confdefs.h
<<\_ACEOF
11468 #define HAVE_GTK_FILE_BOTH 1
11473 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11474 HAVE_GTK_AND_PTHREAD
=no
11476 for ac_header
in pthread.h
11478 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11479 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11482 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11483 echo $ECHO_N "(cached) $ECHO_C" >&6
11485 ac_res
=`eval echo '${'$as_ac_Header'}'`
11486 { echo "$as_me:$LINENO: result: $ac_res" >&5
11487 echo "${ECHO_T}$ac_res" >&6; }
11489 # Is the header compilable?
11490 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11492 cat >conftest.
$ac_ext <<_ACEOF
11495 cat confdefs.h
>>conftest.
$ac_ext
11496 cat >>conftest.
$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11498 $ac_includes_default
11499 #include <$ac_header>
11501 rm -f conftest.
$ac_objext
11502 if { (ac_try
="$ac_compile"
11503 case "(($ac_try" in
11504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11505 *) ac_try_echo=$ac_try;;
11507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11508 (eval "$ac_compile") 2>conftest.er1
11510 grep -v '^ *+' conftest.er1 >conftest.err
11512 cat conftest.err >&5
11513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11514 (exit $ac_status); } && {
11515 test -z "$ac_c_werror_flag" ||
11516 test ! -s conftest.err
11517 } && test -s conftest.$ac_objext; then
11518 ac_header_compiler=yes
11520 echo "$as_me: failed program was:" >&5
11521 sed 's/^/| /' conftest.$ac_ext >&5
11523 ac_header_compiler=no
11526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11528 echo "${ECHO_T}$ac_header_compiler" >&6; }
11530 # Is the header present?
11531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11533 cat >conftest.$ac_ext <<_ACEOF
11536 cat confdefs.h >>conftest.$ac_ext
11537 cat >>conftest.$ac_ext <<_ACEOF
11538 /* end confdefs.h. */
11539 #include <$ac_header>
11541 if { (ac_try="$ac_cpp conftest.$ac_ext"
11542 case "(($ac_try" in
11543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11544 *) ac_try_echo
=$ac_try;;
11546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11549 grep -v '^ *+' conftest.er1
>conftest.err
11551 cat conftest.err
>&5
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); } >/dev
/null
&& {
11554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11555 test ! -s conftest.err
11557 ac_header_preproc
=yes
11559 echo "$as_me: failed program was:" >&5
11560 sed 's/^/| /' conftest.
$ac_ext >&5
11562 ac_header_preproc
=no
11565 rm -f conftest.err conftest.
$ac_ext
11566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11567 echo "${ECHO_T}$ac_header_preproc" >&6; }
11569 # So? What about this header?
11570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11576 ac_header_preproc
=yes
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11596 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11597 echo $ECHO_N "(cached) $ECHO_C" >&6
11599 eval "$as_ac_Header=\$ac_header_preproc"
11601 ac_res
=`eval echo '${'$as_ac_Header'}'`
11602 { echo "$as_me:$LINENO: result: $ac_res" >&5
11603 echo "${ECHO_T}$ac_res" >&6; }
11606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11607 cat >>confdefs.h
<<_ACEOF
11608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11615 if test "$ac_cv_header_pthread_h"; then
11616 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11617 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11618 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11619 echo $ECHO_N "(cached) $ECHO_C" >&6
11621 ac_check_lib_save_LIBS
=$LIBS
11622 LIBS
="-lpthread $LIBS"
11623 cat >conftest.
$ac_ext <<_ACEOF
11626 cat confdefs.h
>>conftest.
$ac_ext
11627 cat >>conftest.
$ac_ext <<_ACEOF
11628 /* end confdefs.h. */
11630 /* Override any GCC internal prototype to avoid an error.
11631 Use char because int might match the return type of a GCC
11632 builtin and then its argument prototype would still apply. */
11636 char pthread_self ();
11640 return pthread_self ();
11645 rm -f conftest.
$ac_objext conftest
$ac_exeext
11646 if { (ac_try
="$ac_link"
11647 case "(($ac_try" in
11648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11649 *) ac_try_echo=$ac_try;;
11651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11652 (eval "$ac_link") 2>conftest.er1
11654 grep -v '^ *+' conftest.er1 >conftest.err
11656 cat conftest.err >&5
11657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11658 (exit $ac_status); } && {
11659 test -z "$ac_c_werror_flag" ||
11660 test ! -s conftest.err
11661 } && test -s conftest$ac_exeext &&
11662 $as_test_x conftest$ac_exeext; then
11663 ac_cv_lib_pthread_pthread_self=yes
11665 echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11668 ac_cv_lib_pthread_pthread_self=no
11671 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11672 conftest$ac_exeext conftest.$ac_ext
11673 LIBS=$ac_check_lib_save_LIBS
11675 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11676 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11677 if test $ac_cv_lib_pthread_pthread_self = yes; then
11678 HAVE_GTK_AND_PTHREAD=yes
11682 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11683 case "${canonical}" in
11685 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11688 cat >>confdefs.h <<\_ACEOF
11689 #define HAVE_GTK_AND_PTHREAD 1
11697 if test "${with_dbus}" = "yes"; then
11701 # Extract the first word of "pkg-config", so it can be a program name with args.
11702 set dummy pkg-config; ac_word=$2
11703 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11704 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11705 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11706 echo $ECHO_N "(cached) $ECHO_C" >&6
11708 case $PKG_CONFIG in
11710 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714 for as_dir in $PATH
11717 test -z "$as_dir" && as_dir=.
11718 for ac_exec_ext in '' $ac_executable_extensions; do
11719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11720 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11728 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11732 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11733 if test -n "$PKG_CONFIG"; then
11734 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11735 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11737 { echo "$as_me:$LINENO: result: no" >&5
11738 echo "${ECHO_T}no" >&6; }
11743 if test "$PKG_CONFIG" = "no" ; then
11746 PKG_CONFIG_MIN_VERSION=0.9.0
11747 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11748 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11749 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11751 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11752 { echo "$as_me:$LINENO: result: yes" >&5
11753 echo "${ECHO_T}yes" >&6; }
11756 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11757 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11758 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11759 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11760 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11762 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11763 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11764 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11765 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11766 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11768 { echo "$as_me:$LINENO: result: no" >&5
11769 echo "${ECHO_T}no" >&6; }
11772 ## If we have a custom action on failure, don't print errors, but
11773 ## do set a variable so people can do so.
11774 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11781 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11782 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11786 if test $succeeded = yes; then
11792 if test "$HAVE_DBUS" = yes; then
11794 cat >>confdefs.h <<\_ACEOF
11795 #define HAVE_DBUS 1
11802 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11803 if test "$with_xaw3d" != no; then
11804 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11805 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11806 if test "${emacs_cv_xaw3d+set}" = set; then
11807 echo $ECHO_N "(cached) $ECHO_C" >&6
11809 cat >conftest.$ac_ext <<_ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11816 #include <X11/Intrinsic.h>
11817 #include <X11/Xaw3d/Simple.h>
11826 rm -f conftest.$ac_objext conftest$ac_exeext
11827 if { (ac_try="$ac_link"
11828 case "(($ac_try" in
11829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11830 *) ac_try_echo
=$ac_try;;
11832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11833 (eval "$ac_link") 2>conftest.er1
11835 grep -v '^ *+' conftest.er1
>conftest.err
11837 cat conftest.err
>&5
11838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11839 (exit $ac_status); } && {
11840 test -z "$ac_c_werror_flag" ||
11841 test ! -s conftest.err
11842 } && test -s conftest
$ac_exeext &&
11843 $as_test_x conftest
$ac_exeext; then
11846 echo "$as_me: failed program was:" >&5
11847 sed 's/^/| /' conftest.
$ac_ext >&5
11852 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11853 conftest
$ac_exeext conftest.
$ac_ext
11859 if test $emacs_cv_xaw3d = yes; then
11860 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11861 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11862 USE_X_TOOLKIT
=LUCID
11865 cat >>confdefs.h
<<\_ACEOF
11866 #define HAVE_XAW3D 1
11870 { echo "$as_me:$LINENO: result: no" >&5
11871 echo "${ECHO_T}no" >&6; }
11872 { echo "$as_me:$LINENO: checking for libXaw" >&5
11873 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11874 if test "${emacs_cv_xaw+set}" = set; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11877 cat >conftest.
$ac_ext <<_ACEOF
11880 cat confdefs.h
>>conftest.
$ac_ext
11881 cat >>conftest.
$ac_ext <<_ACEOF
11882 /* end confdefs.h. */
11884 #include <X11/Intrinsic.h>
11885 #include <X11/Xaw/Simple.h>
11894 rm -f conftest.
$ac_objext conftest
$ac_exeext
11895 if { (ac_try
="$ac_link"
11896 case "(($ac_try" in
11897 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11898 *) ac_try_echo=$ac_try;;
11900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11901 (eval "$ac_link") 2>conftest.er1
11903 grep -v '^ *+' conftest.er1 >conftest.err
11905 cat conftest.err >&5
11906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11907 (exit $ac_status); } && {
11908 test -z "$ac_c_werror_flag" ||
11909 test ! -s conftest.err
11910 } && test -s conftest$ac_exeext &&
11911 $as_test_x conftest$ac_exeext; then
11914 echo "$as_me: failed program was:" >&5
11915 sed 's/^/| /' conftest.$ac_ext >&5
11920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11921 conftest$ac_exeext conftest.$ac_ext
11924 if test $emacs_cv_xaw = yes; then
11925 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11926 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11927 USE_X_TOOLKIT=LUCID
11928 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11929 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11930 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11931 { (exit 1); exit 1; }; }
11933 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11934 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11940 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11942 if test "${USE_X_TOOLKIT}" != "none"; then
11943 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11944 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11945 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11946 echo $ECHO_N "(cached) $ECHO_C" >&6
11948 cat >conftest.$ac_ext <<_ACEOF
11951 cat confdefs.h >>conftest.$ac_ext
11952 cat >>conftest.$ac_ext <<_ACEOF
11953 /* end confdefs.h. */
11954 #include <X11/Intrinsic.h>
11958 #if XtSpecificationRelease < 6
11966 rm -f conftest.$ac_objext conftest$ac_exeext
11967 if { (ac_try="$ac_link"
11968 case "(($ac_try" in
11969 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11970 *) ac_try_echo
=$ac_try;;
11972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11973 (eval "$ac_link") 2>conftest.er1
11975 grep -v '^ *+' conftest.er1
>conftest.err
11977 cat conftest.err
>&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 (exit $ac_status); } && {
11980 test -z "$ac_c_werror_flag" ||
11981 test ! -s conftest.err
11982 } && test -s conftest
$ac_exeext &&
11983 $as_test_x conftest
$ac_exeext; then
11984 emacs_cv_x11_toolkit_version_6
=yes
11986 echo "$as_me: failed program was:" >&5
11987 sed 's/^/| /' conftest.
$ac_ext >&5
11989 emacs_cv_x11_toolkit_version_6
=no
11992 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11993 conftest
$ac_exeext conftest.
$ac_ext
11996 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11997 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11998 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11999 echo "${ECHO_T}6 or newer" >&6; }
12001 cat >>confdefs.h
<<\_ACEOF
12002 #define HAVE_X11XTR6 1
12006 { echo "$as_me:$LINENO: result: before 6" >&5
12007 echo "${ECHO_T}before 6" >&6; }
12011 if test x
$HAVE_X11XTR6 = xyes
; then
12012 LIBS
="-lXt -lSM -lICE $LIBS"
12017 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12018 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12019 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12020 echo $ECHO_N "(cached) $ECHO_C" >&6
12022 ac_check_lib_save_LIBS
=$LIBS
12024 cat >conftest.
$ac_ext <<_ACEOF
12027 cat confdefs.h
>>conftest.
$ac_ext
12028 cat >>conftest.
$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12031 /* Override any GCC internal prototype to avoid an error.
12032 Use char because int might match the return type of a GCC
12033 builtin and then its argument prototype would still apply. */
12037 char XmuConvertStandardSelection ();
12041 return XmuConvertStandardSelection ();
12046 rm -f conftest.
$ac_objext conftest
$ac_exeext
12047 if { (ac_try
="$ac_link"
12048 case "(($ac_try" in
12049 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_link") 2>conftest.er1
12055 grep -v '^ *+' conftest.er1 >conftest.err
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } && {
12060 test -z "$ac_c_werror_flag" ||
12061 test ! -s conftest.err
12062 } && test -s conftest$ac_exeext &&
12063 $as_test_x conftest$ac_exeext; then
12064 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12066 echo "$as_me: failed program was:" >&5
12067 sed 's/^/| /' conftest.$ac_ext >&5
12069 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12073 conftest$ac_exeext conftest.$ac_ext
12074 LIBS=$ac_check_lib_save_LIBS
12076 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12077 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12078 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12079 cat >>confdefs.h <<_ACEOF
12080 #define HAVE_LIBXMU 1
12087 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12090 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12091 if test "${HAVE_X11}" = "yes"; then
12092 if test "${USE_X_TOOLKIT}" != "none"; then
12094 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12095 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12096 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12097 echo $ECHO_N "(cached) $ECHO_C" >&6
12099 ac_check_lib_save_LIBS=$LIBS
12100 LIBS="-lXext $LIBS"
12101 cat >conftest.$ac_ext <<_ACEOF
12104 cat confdefs.h >>conftest.$ac_ext
12105 cat >>conftest.$ac_ext <<_ACEOF
12106 /* end confdefs.h. */
12108 /* Override any GCC internal prototype to avoid an error.
12109 Use char because int might match the return type of a GCC
12110 builtin and then its argument prototype would still apply. */
12114 char XShapeQueryExtension ();
12118 return XShapeQueryExtension ();
12123 rm -f conftest.$ac_objext conftest$ac_exeext
12124 if { (ac_try="$ac_link"
12125 case "(($ac_try" in
12126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12127 *) ac_try_echo
=$ac_try;;
12129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12130 (eval "$ac_link") 2>conftest.er1
12132 grep -v '^ *+' conftest.er1
>conftest.err
12134 cat conftest.err
>&5
12135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12136 (exit $ac_status); } && {
12137 test -z "$ac_c_werror_flag" ||
12138 test ! -s conftest.err
12139 } && test -s conftest
$ac_exeext &&
12140 $as_test_x conftest
$ac_exeext; then
12141 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12143 echo "$as_me: failed program was:" >&5
12144 sed 's/^/| /' conftest.
$ac_ext >&5
12146 ac_cv_lib_Xext_XShapeQueryExtension
=no
12149 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12150 conftest
$ac_exeext conftest.
$ac_ext
12151 LIBS
=$ac_check_lib_save_LIBS
12153 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12154 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12155 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12156 cat >>confdefs.h
<<_ACEOF
12157 #define HAVE_LIBXEXT 1
12160 LIBS
="-lXext $LIBS"
12167 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12168 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12169 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12170 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12171 echo $ECHO_N "(cached) $ECHO_C" >&6
12173 cat >conftest.
$ac_ext <<_ACEOF
12176 cat confdefs.h
>>conftest.
$ac_ext
12177 cat >>conftest.
$ac_ext <<_ACEOF
12178 /* end confdefs.h. */
12183 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12186 Motif version prior to 2.1.
12192 rm -f conftest.
$ac_objext
12193 if { (ac_try
="$ac_compile"
12194 case "(($ac_try" in
12195 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12196 *) ac_try_echo=$ac_try;;
12198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12199 (eval "$ac_compile") 2>conftest.er1
12201 grep -v '^ *+' conftest.er1 >conftest.err
12203 cat conftest.err >&5
12204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12205 (exit $ac_status); } && {
12206 test -z "$ac_c_werror_flag" ||
12207 test ! -s conftest.err
12208 } && test -s conftest.$ac_objext; then
12209 emacs_cv_motif_version_2_1=yes
12211 echo "$as_me: failed program was:" >&5
12212 sed 's/^/| /' conftest.$ac_ext >&5
12214 emacs_cv_motif_version_2_1=no
12217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12219 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12220 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12221 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12222 if test $emacs_cv_motif_version_2_1 = yes; then
12225 cat >>confdefs.h <<\_ACEOF
12226 #define HAVE_MOTIF_2_1 1
12229 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12230 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12231 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12232 echo $ECHO_N "(cached) $ECHO_C" >&6
12234 ac_check_lib_save_LIBS=$LIBS
12236 cat >conftest.$ac_ext <<_ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12243 /* Override any GCC internal prototype to avoid an error.
12244 Use char because int might match the return type of a GCC
12245 builtin and then its argument prototype would still apply. */
12249 char XpCreateContext ();
12253 return XpCreateContext ();
12258 rm -f conftest.$ac_objext conftest$ac_exeext
12259 if { (ac_try="$ac_link"
12260 case "(($ac_try" in
12261 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12262 *) ac_try_echo
=$ac_try;;
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265 (eval "$ac_link") 2>conftest.er1
12267 grep -v '^ *+' conftest.er1
>conftest.err
12269 cat conftest.err
>&5
12270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271 (exit $ac_status); } && {
12272 test -z "$ac_c_werror_flag" ||
12273 test ! -s conftest.err
12274 } && test -s conftest
$ac_exeext &&
12275 $as_test_x conftest
$ac_exeext; then
12276 ac_cv_lib_Xp_XpCreateContext
=yes
12278 echo "$as_me: failed program was:" >&5
12279 sed 's/^/| /' conftest.
$ac_ext >&5
12281 ac_cv_lib_Xp_XpCreateContext
=no
12284 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12285 conftest
$ac_exeext conftest.
$ac_ext
12286 LIBS
=$ac_check_lib_save_LIBS
12288 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12289 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12290 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12294 if test ${HAVE_LIBXP} = yes; then
12296 cat >>confdefs.h
<<\_ACEOF
12297 #define HAVE_LIBXP 1
12302 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12303 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12304 if test "${emacs_cv_lesstif+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12307 # We put this in CFLAGS temporarily to precede other -I options
12308 # that might be in CFLAGS temporarily.
12309 # We put this in CPPFLAGS where it precedes the other -I options.
12310 OLD_CPPFLAGS
=$CPPFLAGS
12312 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12313 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12314 cat >conftest.
$ac_ext <<_ACEOF
12317 cat confdefs.h
>>conftest.
$ac_ext
12318 cat >>conftest.
$ac_ext <<_ACEOF
12319 /* end confdefs.h. */
12320 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12329 rm -f conftest.
$ac_objext
12330 if { (ac_try
="$ac_compile"
12331 case "(($ac_try" in
12332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_compile") 2>conftest.er1
12338 grep -v '^ *+' conftest.er1 >conftest.err
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } && {
12343 test -z "$ac_c_werror_flag" ||
12344 test ! -s conftest.err
12345 } && test -s conftest.$ac_objext; then
12346 emacs_cv_lesstif=yes
12348 echo "$as_me: failed program was:" >&5
12349 sed 's/^/| /' conftest.$ac_ext >&5
12351 emacs_cv_lesstif=no
12354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12356 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12357 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12358 if test $emacs_cv_lesstif = yes; then
12359 # Make sure this -I option remains in CPPFLAGS after it is set
12360 # back to REAL_CPPFLAGS.
12361 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12362 # have those other -I options anyway. Ultimately, having this
12363 # directory ultimately in CPPFLAGS will be enough.
12364 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12365 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12368 CPPFLAGS=$OLD_CPPFLAGS
12375 USE_TOOLKIT_SCROLL_BARS=no
12376 if test "${with_toolkit_scroll_bars}" != "no"; then
12377 if test "${USE_X_TOOLKIT}" != "none"; then
12378 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12379 cat >>confdefs.h <<\_ACEOF
12380 #define USE_TOOLKIT_SCROLL_BARS 1
12384 USE_TOOLKIT_SCROLL_BARS=yes
12385 elif test "${HAVE_XAW3D}" = "yes"; then
12386 cat >>confdefs.h <<\_ACEOF
12387 #define USE_TOOLKIT_SCROLL_BARS 1
12390 USE_TOOLKIT_SCROLL_BARS=yes
12392 elif test "${HAVE_GTK}" = "yes"; then
12393 cat >>confdefs.h <<\_ACEOF
12394 #define USE_TOOLKIT_SCROLL_BARS 1
12397 USE_TOOLKIT_SCROLL_BARS=yes
12398 elif test "${HAVE_NS}" = "yes"; then
12399 cat >>confdefs.h <<\_ACEOF
12400 #define USE_TOOLKIT_SCROLL_BARS 1
12403 USE_TOOLKIT_SCROLL_BARS=yes
12407 cat >conftest.$ac_ext <<_ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12414 #include <X11/Xlib.h>
12415 #include <X11/Xresource.h>
12424 rm -f conftest.$ac_objext
12425 if { (ac_try="$ac_compile"
12426 case "(($ac_try" in
12427 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12428 *) ac_try_echo
=$ac_try;;
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_compile") 2>conftest.er1
12433 grep -v '^ *+' conftest.er1
>conftest.err
12435 cat conftest.err
>&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } && {
12438 test -z "$ac_c_werror_flag" ||
12439 test ! -s conftest.err
12440 } && test -s conftest.
$ac_objext; then
12443 cat >>confdefs.h
<<\_ACEOF
12448 echo "$as_me: failed program was:" >&5
12449 sed 's/^/| /' conftest.
$ac_ext >&5
12454 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12457 if test "${with_xim}" != "no"; then
12459 cat >>confdefs.h
<<\_ACEOF
12466 if test "${HAVE_XIM}" != "no"; then
12467 late_CFLAGS
=$CFLAGS
12468 if test "$GCC" = yes; then
12469 CFLAGS
="$CFLAGS --pedantic-errors"
12471 cat >conftest.
$ac_ext <<_ACEOF
12474 cat confdefs.h
>>conftest.
$ac_ext
12475 cat >>conftest.
$ac_ext <<_ACEOF
12476 /* end confdefs.h. */
12478 #include <X11/Xlib.h>
12479 #include <X11/Xresource.h>
12488 XPointer *client_data;
12490 /* If we're not using GCC, it's probably not XFree86, and this is
12491 probably right, but we can't use something like --pedantic-errors. */
12492 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12493 char*, XIMProc, XPointer*);
12495 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12501 rm -f conftest.
$ac_objext
12502 if { (ac_try
="$ac_compile"
12503 case "(($ac_try" in
12504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12505 *) ac_try_echo=$ac_try;;
12507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12508 (eval "$ac_compile") 2>conftest.er1
12510 grep -v '^ *+' conftest.er1 >conftest.err
12512 cat conftest.err >&5
12513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12514 (exit $ac_status); } && {
12515 test -z "$ac_c_werror_flag" ||
12516 test ! -s conftest.err
12517 } && test -s conftest.$ac_objext; then
12518 emacs_cv_arg6_star=yes
12520 echo "$as_me: failed program was:" >&5
12521 sed 's/^/| /' conftest.$ac_ext >&5
12526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12528 if test "$emacs_cv_arg6_star" = yes; then
12529 cat >>confdefs.h <<\_ACEOF
12530 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12534 cat >>confdefs.h <<\_ACEOF
12535 #define XRegisterIMInstantiateCallback_arg6 XPointer
12539 CFLAGS=$late_CFLAGS
12542 ### Start of font-backend section.
12544 ## Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12546 if test "x${with_freetype}" = "xno"; then
12549 if test "x${with_xft}" != "xno"; then
12554 # Extract the first word of "pkg-config", so it can be a program name with args.
12555 set dummy pkg-config
; ac_word
=$2
12556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12558 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12559 echo $ECHO_N "(cached) $ECHO_C" >&6
12561 case $PKG_CONFIG in
12563 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12567 for as_dir
in $PATH
12570 test -z "$as_dir" && as_dir
=.
12571 for ac_exec_ext
in '' $ac_executable_extensions; do
12572 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12573 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12574 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12581 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12585 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12586 if test -n "$PKG_CONFIG"; then
12587 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12588 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12590 { echo "$as_me:$LINENO: result: no" >&5
12591 echo "${ECHO_T}no" >&6; }
12596 if test "$PKG_CONFIG" = "no" ; then
12599 PKG_CONFIG_MIN_VERSION
=0.9.0
12600 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12601 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12602 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12604 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12605 { echo "$as_me:$LINENO: result: yes" >&5
12606 echo "${ECHO_T}yes" >&6; }
12609 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12610 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12611 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12612 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12613 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12615 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12616 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12617 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12618 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12619 echo "${ECHO_T}$XFT_LIBS" >&6; }
12621 { echo "$as_me:$LINENO: result: no" >&5
12622 echo "${ECHO_T}no" >&6; }
12625 ## If we have a custom action on failure, don't print errors, but
12626 ## do set a variable so people can do so.
12627 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12634 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12635 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12639 if test $succeeded = yes; then
12645 if test "$HAVE_XFT" != no
; then
12646 OLD_CPPFLAGS
="$CPPFLAGS"
12647 OLD_CFLAGS
="$CFLAGS"
12649 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12650 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12651 LIBS
="$XFT_LIBS $LIBS"
12652 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12653 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12654 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12655 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12656 echo $ECHO_N "(cached) $ECHO_C" >&6
12658 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12659 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12661 # Is the header compilable?
12662 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12663 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12664 cat >conftest.
$ac_ext <<_ACEOF
12667 cat confdefs.h
>>conftest.
$ac_ext
12668 cat >>conftest.
$ac_ext <<_ACEOF
12669 /* end confdefs.h. */
12670 $ac_includes_default
12671 #include <X11/Xft/Xft.h>
12673 rm -f conftest.
$ac_objext
12674 if { (ac_try
="$ac_compile"
12675 case "(($ac_try" in
12676 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12677 *) ac_try_echo=$ac_try;;
12679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12680 (eval "$ac_compile") 2>conftest.er1
12682 grep -v '^ *+' conftest.er1 >conftest.err
12684 cat conftest.err >&5
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); } && {
12687 test -z "$ac_c_werror_flag" ||
12688 test ! -s conftest.err
12689 } && test -s conftest.$ac_objext; then
12690 ac_header_compiler=yes
12692 echo "$as_me: failed program was:" >&5
12693 sed 's/^/| /' conftest.$ac_ext >&5
12695 ac_header_compiler=no
12698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12699 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12700 echo "${ECHO_T}$ac_header_compiler" >&6; }
12702 # Is the header present?
12703 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12704 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12705 cat >conftest.$ac_ext <<_ACEOF
12708 cat confdefs.h >>conftest.$ac_ext
12709 cat >>conftest.$ac_ext <<_ACEOF
12710 /* end confdefs.h. */
12711 #include <X11/Xft/Xft.h>
12713 if { (ac_try="$ac_cpp conftest.$ac_ext"
12714 case "(($ac_try" in
12715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12716 *) ac_try_echo
=$ac_try;;
12718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12719 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12721 grep -v '^ *+' conftest.er1
>conftest.err
12723 cat conftest.err
>&5
12724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12725 (exit $ac_status); } >/dev
/null
&& {
12726 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12727 test ! -s conftest.err
12729 ac_header_preproc
=yes
12731 echo "$as_me: failed program was:" >&5
12732 sed 's/^/| /' conftest.
$ac_ext >&5
12734 ac_header_preproc
=no
12737 rm -f conftest.err conftest.
$ac_ext
12738 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12739 echo "${ECHO_T}$ac_header_preproc" >&6; }
12741 # So? What about this header?
12742 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12744 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12745 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12747 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12748 ac_header_preproc
=yes
12751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12752 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12754 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12756 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12758 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12760 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12761 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12762 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12766 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12767 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12768 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12769 echo $ECHO_N "(cached) $ECHO_C" >&6
12771 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12773 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12774 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12777 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12778 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12779 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12780 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12781 echo $ECHO_N "(cached) $ECHO_C" >&6
12783 ac_check_lib_save_LIBS
=$LIBS
12784 LIBS
="-lXft $XFT_LIBS $LIBS"
12785 cat >conftest.
$ac_ext <<_ACEOF
12788 cat confdefs.h
>>conftest.
$ac_ext
12789 cat >>conftest.
$ac_ext <<_ACEOF
12790 /* end confdefs.h. */
12792 /* Override any GCC internal prototype to avoid an error.
12793 Use char because int might match the return type of a GCC
12794 builtin and then its argument prototype would still apply. */
12798 char XftFontOpen ();
12802 return XftFontOpen ();
12807 rm -f conftest.
$ac_objext conftest
$ac_exeext
12808 if { (ac_try
="$ac_link"
12809 case "(($ac_try" in
12810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12811 *) ac_try_echo=$ac_try;;
12813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12814 (eval "$ac_link") 2>conftest.er1
12816 grep -v '^ *+' conftest.er1 >conftest.err
12818 cat conftest.err >&5
12819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12820 (exit $ac_status); } && {
12821 test -z "$ac_c_werror_flag" ||
12822 test ! -s conftest.err
12823 } && test -s conftest$ac_exeext &&
12824 $as_test_x conftest$ac_exeext; then
12825 ac_cv_lib_Xft_XftFontOpen=yes
12827 echo "$as_me: failed program was:" >&5
12828 sed 's/^/| /' conftest.$ac_ext >&5
12830 ac_cv_lib_Xft_XftFontOpen=no
12833 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12834 conftest$ac_exeext conftest.$ac_ext
12835 LIBS=$ac_check_lib_save_LIBS
12837 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12838 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12839 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12847 if test "${HAVE_XFT}" = "yes"; then
12849 cat >>confdefs.h <<\_ACEOF
12854 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12856 CPPFLAGS="$OLD_CPPFLAGS"
12857 CFLAGS="$OLD_CFLAGS"
12859 fi # "${HAVE_XFT}" = "yes"
12860 fi # "$HAVE_XFT" != no
12861 fi # "x${with_xft}" != "xno"
12863 if test "$HAVE_XFT" != "yes"; then
12869 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12870 if test "${HAVE_XFT}" = "yes"; then
12872 elif test "x${with_freetype}" != "xno"; then
12877 # Extract the first word of "pkg-config", so it can be a program name with args.
12878 set dummy pkg-config; ac_word=$2
12879 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12881 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12882 echo $ECHO_N "(cached) $ECHO_C" >&6
12884 case $PKG_CONFIG in
12886 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890 for as_dir in $PATH
12893 test -z "$as_dir" && as_dir=.
12894 for ac_exec_ext in '' $ac_executable_extensions; do
12895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12896 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12897 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12904 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12908 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12909 if test -n "$PKG_CONFIG"; then
12910 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12911 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12913 { echo "$as_me:$LINENO: result: no" >&5
12914 echo "${ECHO_T}no" >&6; }
12919 if test "$PKG_CONFIG" = "no" ; then
12922 PKG_CONFIG_MIN_VERSION=0.9.0
12923 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12924 { echo "$as_me:$LINENO: checking for freetype2" >&5
12925 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12927 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12928 { echo "$as_me:$LINENO: result: yes" >&5
12929 echo "${ECHO_T}yes" >&6; }
12932 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12933 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12934 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12935 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12936 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12938 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12939 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12940 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12941 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12942 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12944 { echo "$as_me:$LINENO: result: no" >&5
12945 echo "${ECHO_T}no" >&6; }
12948 ## If we have a custom action on failure, don't print errors
, but
12949 ## do set a variable so people can do so.
12950 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12957 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12958 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12962 if test $succeeded = yes; then
12968 if test "${HAVE_FREETYPE}" = "yes"; then
12972 # Extract the first word of "pkg-config", so it can be a program name with args.
12973 set dummy pkg-config
; ac_word
=$2
12974 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12975 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12976 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12977 echo $ECHO_N "(cached) $ECHO_C" >&6
12979 case $PKG_CONFIG in
12981 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12984 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12985 for as_dir
in $PATH
12988 test -z "$as_dir" && as_dir
=.
12989 for ac_exec_ext
in '' $ac_executable_extensions; do
12990 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12991 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12992 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12999 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13003 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13004 if test -n "$PKG_CONFIG"; then
13005 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13006 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13008 { echo "$as_me:$LINENO: result: no" >&5
13009 echo "${ECHO_T}no" >&6; }
13014 if test "$PKG_CONFIG" = "no" ; then
13017 PKG_CONFIG_MIN_VERSION
=0.9.0
13018 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13019 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13020 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13022 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13023 { echo "$as_me:$LINENO: result: yes" >&5
13024 echo "${ECHO_T}yes" >&6; }
13027 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13028 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13029 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13030 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13031 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13033 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13034 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13035 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13036 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13037 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13039 { echo "$as_me:$LINENO: result: no" >&5
13040 echo "${ECHO_T}no" >&6; }
13041 FONTCONFIG_CFLAGS
=""
13043 ## If we have a custom action on failure, don't print errors, but
13044 ## do set a variable so people can do so.
13045 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13052 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13053 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13057 if test $succeeded = yes; then
13063 if test "${HAVE_FC}" = "no"; then
13070 if test "${HAVE_FREETYPE}" = "yes"; then
13072 cat >>confdefs.h
<<\_ACEOF
13073 #define HAVE_FREETYPE 1
13076 if test "${with_libotf}" != "no"; then
13080 # Extract the first word of "pkg-config", so it can be a program name with args.
13081 set dummy pkg-config
; ac_word
=$2
13082 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13083 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13084 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13085 echo $ECHO_N "(cached) $ECHO_C" >&6
13087 case $PKG_CONFIG in
13089 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13092 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13093 for as_dir
in $PATH
13096 test -z "$as_dir" && as_dir
=.
13097 for ac_exec_ext
in '' $ac_executable_extensions; do
13098 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13099 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13100 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13107 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13111 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13112 if test -n "$PKG_CONFIG"; then
13113 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13114 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13116 { echo "$as_me:$LINENO: result: no" >&5
13117 echo "${ECHO_T}no" >&6; }
13122 if test "$PKG_CONFIG" = "no" ; then
13125 PKG_CONFIG_MIN_VERSION
=0.9.0
13126 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13127 { echo "$as_me:$LINENO: checking for libotf" >&5
13128 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13130 if $PKG_CONFIG --exists "libotf" 2>&5; then
13131 { echo "$as_me:$LINENO: result: yes" >&5
13132 echo "${ECHO_T}yes" >&6; }
13135 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13136 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13137 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13138 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13139 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13141 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13142 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13143 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13144 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13145 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13147 { echo "$as_me:$LINENO: result: no" >&5
13148 echo "${ECHO_T}no" >&6; }
13151 ## If we have a custom action on failure, don't print errors, but
13152 ## do set a variable so people can do so.
13153 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13160 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13161 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13165 if test $succeeded = yes; then
13171 if test "$HAVE_LIBOTF" = "yes"; then
13173 cat >>confdefs.h
<<\_ACEOF
13174 #define HAVE_LIBOTF 1
13182 if test "${with_m17n_flt}" != "no"; then
13186 # Extract the first word of "pkg-config", so it can be a program name with args.
13187 set dummy pkg-config
; ac_word
=$2
13188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13190 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13191 echo $ECHO_N "(cached) $ECHO_C" >&6
13193 case $PKG_CONFIG in
13195 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13199 for as_dir
in $PATH
13202 test -z "$as_dir" && as_dir
=.
13203 for ac_exec_ext
in '' $ac_executable_extensions; do
13204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13205 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13213 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13217 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13218 if test -n "$PKG_CONFIG"; then
13219 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13220 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13222 { echo "$as_me:$LINENO: result: no" >&5
13223 echo "${ECHO_T}no" >&6; }
13228 if test "$PKG_CONFIG" = "no" ; then
13231 PKG_CONFIG_MIN_VERSION
=0.9.0
13232 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13233 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13234 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13236 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13237 { echo "$as_me:$LINENO: result: yes" >&5
13238 echo "${ECHO_T}yes" >&6; }
13241 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13242 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13243 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13244 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13245 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13247 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13248 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13249 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13250 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13251 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13253 { echo "$as_me:$LINENO: result: no" >&5
13254 echo "${ECHO_T}no" >&6; }
13257 ## If we have a custom action on failure, don't print errors, but
13258 ## do set a variable so people can do so.
13259 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13266 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13267 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13271 if test $succeeded = yes; then
13277 if test "$HAVE_M17N_FLT" = "yes"; then
13279 cat >>confdefs.h
<<\_ACEOF
13280 #define HAVE_M17N_FLT 1
13295 ### End of font-backend section.
13297 ### Use -lXpm if available, unless `--with-xpm=no'.
13299 if test "${HAVE_X11}" = "yes"; then
13300 if test "${with_xpm}" != "no"; then
13301 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13302 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13303 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13304 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13305 echo $ECHO_N "(cached) $ECHO_C" >&6
13307 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13308 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13310 # Is the header compilable?
13311 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13312 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13313 cat >conftest.
$ac_ext <<_ACEOF
13316 cat confdefs.h
>>conftest.
$ac_ext
13317 cat >>conftest.
$ac_ext <<_ACEOF
13318 /* end confdefs.h. */
13319 $ac_includes_default
13320 #include <X11/xpm.h>
13322 rm -f conftest.
$ac_objext
13323 if { (ac_try
="$ac_compile"
13324 case "(($ac_try" in
13325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_compile") 2>conftest.er1
13331 grep -v '^ *+' conftest.er1 >conftest.err
13333 cat conftest.err >&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); } && {
13336 test -z "$ac_c_werror_flag" ||
13337 test ! -s conftest.err
13338 } && test -s conftest.$ac_objext; then
13339 ac_header_compiler=yes
13341 echo "$as_me: failed program was:" >&5
13342 sed 's/^/| /' conftest.$ac_ext >&5
13344 ac_header_compiler=no
13347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13348 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13349 echo "${ECHO_T}$ac_header_compiler" >&6; }
13351 # Is the header present?
13352 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13353 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13354 cat >conftest.$ac_ext <<_ACEOF
13357 cat confdefs.h >>conftest.$ac_ext
13358 cat >>conftest.$ac_ext <<_ACEOF
13359 /* end confdefs.h. */
13360 #include <X11/xpm.h>
13362 if { (ac_try="$ac_cpp conftest.$ac_ext"
13363 case "(($ac_try" in
13364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13365 *) ac_try_echo
=$ac_try;;
13367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13368 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13370 grep -v '^ *+' conftest.er1
>conftest.err
13372 cat conftest.err
>&5
13373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13374 (exit $ac_status); } >/dev
/null
&& {
13375 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13376 test ! -s conftest.err
13378 ac_header_preproc
=yes
13380 echo "$as_me: failed program was:" >&5
13381 sed 's/^/| /' conftest.
$ac_ext >&5
13383 ac_header_preproc
=no
13386 rm -f conftest.err conftest.
$ac_ext
13387 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13388 echo "${ECHO_T}$ac_header_preproc" >&6; }
13390 # So? What about this header?
13391 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13393 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13394 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13395 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13396 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13397 ac_header_preproc
=yes
13400 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13401 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13402 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13403 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13405 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13407 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13408 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13409 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13411 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13415 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13416 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13417 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13418 echo $ECHO_N "(cached) $ECHO_C" >&6
13420 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13422 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13423 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13426 if test $ac_cv_header_X11_xpm_h = yes; then
13427 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13428 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13429 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13430 echo $ECHO_N "(cached) $ECHO_C" >&6
13432 ac_check_lib_save_LIBS
=$LIBS
13433 LIBS
="-lXpm -lX11 $LIBS"
13434 cat >conftest.
$ac_ext <<_ACEOF
13437 cat confdefs.h
>>conftest.
$ac_ext
13438 cat >>conftest.
$ac_ext <<_ACEOF
13439 /* end confdefs.h. */
13441 /* Override any GCC internal prototype to avoid an error.
13442 Use char because int might match the return type of a GCC
13443 builtin and then its argument prototype would still apply. */
13447 char XpmReadFileToPixmap ();
13451 return XpmReadFileToPixmap ();
13456 rm -f conftest.
$ac_objext conftest
$ac_exeext
13457 if { (ac_try
="$ac_link"
13458 case "(($ac_try" in
13459 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13460 *) ac_try_echo=$ac_try;;
13462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13463 (eval "$ac_link") 2>conftest.er1
13465 grep -v '^ *+' conftest.er1 >conftest.err
13467 cat conftest.err >&5
13468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13469 (exit $ac_status); } && {
13470 test -z "$ac_c_werror_flag" ||
13471 test ! -s conftest.err
13472 } && test -s conftest$ac_exeext &&
13473 $as_test_x conftest$ac_exeext; then
13474 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13476 echo "$as_me: failed program was:" >&5
13477 sed 's/^/| /' conftest.$ac_ext >&5
13479 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13483 conftest$ac_exeext conftest.$ac_ext
13484 LIBS=$ac_check_lib_save_LIBS
13486 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13487 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13488 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13495 if test "${HAVE_XPM}" = "yes"; then
13496 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13497 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13498 cat >conftest.$ac_ext <<_ACEOF
13501 cat confdefs.h >>conftest.$ac_ext
13502 cat >>conftest.$ac_ext <<_ACEOF
13503 /* end confdefs.h. */
13504 #include "X11/xpm.h"
13505 #ifndef XpmReturnAllocPixels
13506 no_return_alloc_pixels
13510 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13511 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13519 if test "${HAVE_XPM}" = "yes"; then
13520 { echo "$as_me:$LINENO: result: yes" >&5
13521 echo "${ECHO_T}yes" >&6; }
13523 { echo "$as_me:$LINENO: result: no" >&5
13524 echo "${ECHO_T}no" >&6; }
13529 if test "${HAVE_XPM}" = "yes"; then
13531 cat >>confdefs.h <<\_ACEOF
13538 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13540 if test "${HAVE_X11}" = "yes"; then
13541 if test "${with_jpeg}" != "no"; then
13542 if test "${ac_cv_header_jerror_h+set}" = set; then
13543 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13544 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13545 if test "${ac_cv_header_jerror_h+set}" = set; then
13546 echo $ECHO_N "(cached) $ECHO_C" >&6
13548 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13549 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13551 # Is the header compilable?
13552 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13553 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13554 cat >conftest.$ac_ext <<_ACEOF
13557 cat confdefs.h >>conftest.$ac_ext
13558 cat >>conftest.$ac_ext <<_ACEOF
13559 /* end confdefs.h. */
13560 $ac_includes_default
13561 #include <jerror.h>
13563 rm -f conftest.$ac_objext
13564 if { (ac_try="$ac_compile"
13565 case "(($ac_try" in
13566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13567 *) ac_try_echo=$ac_try;;
13569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13570 (eval "$ac_compile") 2>conftest.er1
13572 grep -v '^
*+' conftest.er1 >conftest.err
13574 cat conftest.err >&5
13575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13576 (exit $ac_status); } && {
13577 test -z "$ac_c_werror_flag" ||
13578 test ! -s conftest.err
13579 } && test -s conftest.$ac_objext; then
13580 ac_header_compiler=yes
13582 echo "$as_me: failed program was:" >&5
13583 sed 's
/^
/|
/' conftest.$ac_ext >&5
13585 ac_header_compiler=no
13588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13589 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13590 echo "${ECHO_T}$ac_header_compiler" >&6; }
13592 # Is the header present?
13593 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13594 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13595 cat >conftest.$ac_ext <<_ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h. */
13601 #include <jerror.h>
13603 if { (ac_try="$ac_cpp conftest.$ac_ext"
13604 case "(($ac_try" in
13605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13606 *) ac_try_echo=$ac_try;;
13608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13609 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13611 grep -v '^
*+' conftest.er1 >conftest.err
13613 cat conftest.err >&5
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); } >/dev/null && {
13616 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13617 test ! -s conftest.err
13619 ac_header_preproc=yes
13621 echo "$as_me: failed program was:" >&5
13622 sed 's
/^
/|
/' conftest.$ac_ext >&5
13624 ac_header_preproc=no
13627 rm -f conftest.err conftest.$ac_ext
13628 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13629 echo "${ECHO_T}$ac_header_preproc" >&6; }
13631 # So? What about this header?
13632 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13634 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13635 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13636 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13637 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13638 ac_header_preproc=yes
13641 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13642 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13643 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13644 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13646 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13648 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13649 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13650 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13651 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13652 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13656 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13657 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13658 if test "${ac_cv_header_jerror_h+set}" = set; then
13659 echo $ECHO_N "(cached) $ECHO_C" >&6
13661 ac_cv_header_jerror_h=$ac_header_preproc
13663 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13664 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13667 if test $ac_cv_header_jerror_h = yes; then
13668 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13669 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13670 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13671 echo $ECHO_N "(cached) $ECHO_C" >&6
13673 ac_check_lib_save_LIBS=$LIBS
13674 LIBS="-ljpeg $LIBS"
13675 cat >conftest.$ac_ext <<_ACEOF
13678 cat confdefs.h >>conftest.$ac_ext
13679 cat >>conftest.$ac_ext <<_ACEOF
13680 /* end confdefs.h. */
13682 /* Override any GCC internal prototype to avoid an error.
13683 Use char because int might match the return type of a GCC
13684 builtin and then its argument prototype would still apply. */
13688 char jpeg_destroy_compress ();
13692 return jpeg_destroy_compress ();
13697 rm -f conftest.$ac_objext conftest$ac_exeext
13698 if { (ac_try="$ac_link"
13699 case "(($ac_try" in
13700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13701 *) ac_try_echo=$ac_try;;
13703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13704 (eval "$ac_link") 2>conftest.er1
13706 grep -v '^
*+' conftest.er1 >conftest.err
13708 cat conftest.err >&5
13709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13710 (exit $ac_status); } && {
13711 test -z "$ac_c_werror_flag" ||
13712 test ! -s conftest.err
13713 } && test -s conftest$ac_exeext &&
13714 $as_test_x conftest$ac_exeext; then
13715 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13717 echo "$as_me: failed program was:" >&5
13718 sed 's
/^
/|
/' conftest.$ac_ext >&5
13720 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13724 conftest$ac_exeext conftest.$ac_ext
13725 LIBS=$ac_check_lib_save_LIBS
13727 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13728 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13729 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13739 if test "${HAVE_JPEG}" = "yes"; then
13740 cat >>confdefs.h <<\_ACEOF
13741 #define HAVE_JPEG 1
13744 cat >conftest.$ac_ext <<_ACEOF
13747 cat confdefs.h >>conftest.$ac_ext
13748 cat >>conftest.$ac_ext <<_ACEOF
13749 /* end confdefs.h. */
13750 #include <jpeglib.h>
13751 version=JPEG_LIB_VERSION
13754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13755 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13756 cat >>confdefs.h <<\_ACEOF
13757 #define HAVE_JPEG 1
13761 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13762 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13770 ### Use -lpng if available, unless `--with-png=no'.
13772 if test "${HAVE_X11}" = "yes"; then
13773 if test "${with_png}" != "no"; then
13774 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13775 # in /usr/include/libpng.
13778 for ac_header
in png.h libpng
/png.h
13780 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13781 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13784 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13785 echo $ECHO_N "(cached) $ECHO_C" >&6
13787 ac_res
=`eval echo '${'$as_ac_Header'}'`
13788 { echo "$as_me:$LINENO: result: $ac_res" >&5
13789 echo "${ECHO_T}$ac_res" >&6; }
13791 # Is the header compilable?
13792 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13793 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13794 cat >conftest.
$ac_ext <<_ACEOF
13797 cat confdefs.h
>>conftest.
$ac_ext
13798 cat >>conftest.
$ac_ext <<_ACEOF
13799 /* end confdefs.h. */
13800 $ac_includes_default
13801 #include <$ac_header>
13803 rm -f conftest.
$ac_objext
13804 if { (ac_try
="$ac_compile"
13805 case "(($ac_try" in
13806 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13807 *) ac_try_echo=$ac_try;;
13809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13810 (eval "$ac_compile") 2>conftest.er1
13812 grep -v '^ *+' conftest.er1 >conftest.err
13814 cat conftest.err >&5
13815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13816 (exit $ac_status); } && {
13817 test -z "$ac_c_werror_flag" ||
13818 test ! -s conftest.err
13819 } && test -s conftest.$ac_objext; then
13820 ac_header_compiler=yes
13822 echo "$as_me: failed program was:" >&5
13823 sed 's/^/| /' conftest.$ac_ext >&5
13825 ac_header_compiler=no
13828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13829 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13830 echo "${ECHO_T}$ac_header_compiler" >&6; }
13832 # Is the header present?
13833 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13834 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13835 cat >conftest.$ac_ext <<_ACEOF
13838 cat confdefs.h >>conftest.$ac_ext
13839 cat >>conftest.$ac_ext <<_ACEOF
13840 /* end confdefs.h. */
13841 #include <$ac_header>
13843 if { (ac_try="$ac_cpp conftest.$ac_ext"
13844 case "(($ac_try" in
13845 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13846 *) ac_try_echo
=$ac_try;;
13848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13851 grep -v '^ *+' conftest.er1
>conftest.err
13853 cat conftest.err
>&5
13854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13855 (exit $ac_status); } >/dev
/null
&& {
13856 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13857 test ! -s conftest.err
13859 ac_header_preproc
=yes
13861 echo "$as_me: failed program was:" >&5
13862 sed 's/^/| /' conftest.
$ac_ext >&5
13864 ac_header_preproc
=no
13867 rm -f conftest.err conftest.
$ac_ext
13868 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13869 echo "${ECHO_T}$ac_header_preproc" >&6; }
13871 # So? What about this header?
13872 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13874 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13875 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13876 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13877 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13878 ac_header_preproc
=yes
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13882 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13884 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13886 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13888 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13890 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13891 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13892 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13896 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13898 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13899 echo $ECHO_N "(cached) $ECHO_C" >&6
13901 eval "$as_ac_Header=\$ac_header_preproc"
13903 ac_res
=`eval echo '${'$as_ac_Header'}'`
13904 { echo "$as_me:$LINENO: result: $ac_res" >&5
13905 echo "${ECHO_T}$ac_res" >&6; }
13908 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13909 cat >>confdefs.h
<<_ACEOF
13910 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13917 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13918 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13919 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13920 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13921 echo $ECHO_N "(cached) $ECHO_C" >&6
13923 ac_check_lib_save_LIBS
=$LIBS
13924 LIBS
="-lpng -lz -lm $LIBS"
13925 cat >conftest.
$ac_ext <<_ACEOF
13928 cat confdefs.h
>>conftest.
$ac_ext
13929 cat >>conftest.
$ac_ext <<_ACEOF
13930 /* end confdefs.h. */
13932 /* Override any GCC internal prototype to avoid an error.
13933 Use char because int might match the return type of a GCC
13934 builtin and then its argument prototype would still apply. */
13938 char png_get_channels ();
13942 return png_get_channels ();
13947 rm -f conftest.
$ac_objext conftest
$ac_exeext
13948 if { (ac_try
="$ac_link"
13949 case "(($ac_try" in
13950 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13951 *) ac_try_echo=$ac_try;;
13953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13954 (eval "$ac_link") 2>conftest.er1
13956 grep -v '^ *+' conftest.er1 >conftest.err
13958 cat conftest.err >&5
13959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13960 (exit $ac_status); } && {
13961 test -z "$ac_c_werror_flag" ||
13962 test ! -s conftest.err
13963 } && test -s conftest$ac_exeext &&
13964 $as_test_x conftest$ac_exeext; then
13965 ac_cv_lib_png_png_get_channels=yes
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13970 ac_cv_lib_png_png_get_channels=no
13973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13974 conftest$ac_exeext conftest.$ac_ext
13975 LIBS=$ac_check_lib_save_LIBS
13977 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13978 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13979 if test $ac_cv_lib_png_png_get_channels = yes; then
13986 if test "${HAVE_PNG}" = "yes"; then
13988 cat >>confdefs.h <<\_ACEOF
13995 ### Use -ltiff if available, unless `--with-tiff=no
'.
13997 if test "${HAVE_X11}" = "yes"; then
13998 if test "${with_tiff}" != "no"; then
13999 if test "${ac_cv_header_tiffio_h+set}" = set; then
14000 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14001 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14002 if test "${ac_cv_header_tiffio_h+set}" = set; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14006 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14008 # Is the header compilable?
14009 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14010 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14011 cat >conftest.$ac_ext <<_ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h. */
14017 $ac_includes_default
14018 #include <tiffio.h>
14020 rm -f conftest.$ac_objext
14021 if { (ac_try="$ac_compile"
14022 case "(($ac_try" in
14023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14024 *) ac_try_echo=$ac_try;;
14026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14027 (eval "$ac_compile") 2>conftest.er1
14029 grep -v '^
*+' conftest.er1 >conftest.err
14031 cat conftest.err >&5
14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14033 (exit $ac_status); } && {
14034 test -z "$ac_c_werror_flag" ||
14035 test ! -s conftest.err
14036 } && test -s conftest.$ac_objext; then
14037 ac_header_compiler=yes
14039 echo "$as_me: failed program was:" >&5
14040 sed 's
/^
/|
/' conftest.$ac_ext >&5
14042 ac_header_compiler=no
14045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14047 echo "${ECHO_T}$ac_header_compiler" >&6; }
14049 # Is the header present?
14050 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14051 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14052 cat >conftest.$ac_ext <<_ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h. */
14058 #include <tiffio.h>
14060 if { (ac_try="$ac_cpp conftest.$ac_ext"
14061 case "(($ac_try" in
14062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14063 *) ac_try_echo=$ac_try;;
14065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14068 grep -v '^
*+' conftest.er1 >conftest.err
14070 cat conftest.err >&5
14071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14072 (exit $ac_status); } >/dev/null && {
14073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14074 test ! -s conftest.err
14076 ac_header_preproc=yes
14078 echo "$as_me: failed program was:" >&5
14079 sed 's
/^
/|
/' conftest.$ac_ext >&5
14081 ac_header_preproc=no
14084 rm -f conftest.err conftest.$ac_ext
14085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14086 echo "${ECHO_T}$ac_header_preproc" >&6; }
14088 # So? What about this header?
14089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14091 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14092 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14093 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14094 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14095 ac_header_preproc=yes
14098 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14099 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14101 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14103 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14105 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14106 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14107 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14108 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14109 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14113 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14114 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14115 if test "${ac_cv_header_tiffio_h+set}" = set; then
14116 echo $ECHO_N "(cached) $ECHO_C" >&6
14118 ac_cv_header_tiffio_h=$ac_header_preproc
14120 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14121 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14124 if test $ac_cv_header_tiffio_h = yes; then
14126 # At least one tiff package requires the jpeg library.
14127 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14128 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14129 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14130 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14131 echo $ECHO_N "(cached) $ECHO_C" >&6
14133 ac_check_lib_save_LIBS=$LIBS
14134 LIBS="-ltiff $tifflibs $LIBS"
14135 cat >conftest.$ac_ext <<_ACEOF
14138 cat confdefs.h >>conftest.$ac_ext
14139 cat >>conftest.$ac_ext <<_ACEOF
14140 /* end confdefs.h. */
14142 /* Override any GCC internal prototype to avoid an error.
14143 Use char because int might match the return type of a GCC
14144 builtin and then its argument prototype would still apply. */
14148 char TIFFGetVersion ();
14152 return TIFFGetVersion ();
14157 rm -f conftest.$ac_objext conftest$ac_exeext
14158 if { (ac_try="$ac_link"
14159 case "(($ac_try" in
14160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14161 *) ac_try_echo=$ac_try;;
14163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14164 (eval "$ac_link") 2>conftest.er1
14166 grep -v '^
*+' conftest.er1 >conftest.err
14168 cat conftest.err >&5
14169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14170 (exit $ac_status); } && {
14171 test -z "$ac_c_werror_flag" ||
14172 test ! -s conftest.err
14173 } && test -s conftest$ac_exeext &&
14174 $as_test_x conftest$ac_exeext; then
14175 ac_cv_lib_tiff_TIFFGetVersion=yes
14177 echo "$as_me: failed program was:" >&5
14178 sed 's
/^
/|
/' conftest.$ac_ext >&5
14180 ac_cv_lib_tiff_TIFFGetVersion=no
14183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14184 conftest$ac_exeext conftest.$ac_ext
14185 LIBS=$ac_check_lib_save_LIBS
14187 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14188 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14189 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14198 if test "${HAVE_TIFF}" = "yes"; then
14200 cat >>confdefs.h <<\_ACEOF
14201 #define HAVE_TIFF 1
14207 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14209 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14210 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14211 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14212 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14213 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14217 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14219 # Is the header compilable?
14220 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14221 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14222 cat >conftest.
$ac_ext <<_ACEOF
14225 cat confdefs.h
>>conftest.
$ac_ext
14226 cat >>conftest.
$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228 $ac_includes_default
14229 #include <gif_lib.h>
14231 rm -f conftest.
$ac_objext
14232 if { (ac_try
="$ac_compile"
14233 case "(($ac_try" in
14234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14235 *) ac_try_echo=$ac_try;;
14237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14238 (eval "$ac_compile") 2>conftest.er1
14240 grep -v '^ *+' conftest.er1 >conftest.err
14242 cat conftest.err >&5
14243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14244 (exit $ac_status); } && {
14245 test -z "$ac_c_werror_flag" ||
14246 test ! -s conftest.err
14247 } && test -s conftest.$ac_objext; then
14248 ac_header_compiler=yes
14250 echo "$as_me: failed program was:" >&5
14251 sed 's/^/| /' conftest.$ac_ext >&5
14253 ac_header_compiler=no
14256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14257 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14258 echo "${ECHO_T}$ac_header_compiler" >&6; }
14260 # Is the header present?
14261 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14262 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14263 cat >conftest.$ac_ext <<_ACEOF
14266 cat confdefs.h >>conftest.$ac_ext
14267 cat >>conftest.$ac_ext <<_ACEOF
14268 /* end confdefs.h. */
14269 #include <gif_lib.h>
14271 if { (ac_try="$ac_cpp conftest.$ac_ext"
14272 case "(($ac_try" in
14273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14274 *) ac_try_echo
=$ac_try;;
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14279 grep -v '^ *+' conftest.er1
>conftest.err
14281 cat conftest.err
>&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } >/dev
/null
&& {
14284 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14285 test ! -s conftest.err
14287 ac_header_preproc
=yes
14289 echo "$as_me: failed program was:" >&5
14290 sed 's/^/| /' conftest.
$ac_ext >&5
14292 ac_header_preproc
=no
14295 rm -f conftest.err conftest.
$ac_ext
14296 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14297 echo "${ECHO_T}$ac_header_preproc" >&6; }
14299 # So? What about this header?
14300 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14302 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14303 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14304 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14305 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14306 ac_header_preproc
=yes
14309 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14310 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14311 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14312 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14314 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14316 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14317 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14318 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14319 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14320 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14324 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14325 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14326 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14327 echo $ECHO_N "(cached) $ECHO_C" >&6
14329 ac_cv_header_gif_lib_h
=$ac_header_preproc
14331 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14332 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14335 if test $ac_cv_header_gif_lib_h = yes; then
14336 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14337 # Earlier versions can crash Emacs.
14338 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14339 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14340 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14341 echo $ECHO_N "(cached) $ECHO_C" >&6
14343 ac_check_lib_save_LIBS
=$LIBS
14345 cat >conftest.
$ac_ext <<_ACEOF
14348 cat confdefs.h
>>conftest.
$ac_ext
14349 cat >>conftest.
$ac_ext <<_ACEOF
14350 /* end confdefs.h. */
14352 /* Override any GCC internal prototype to avoid an error.
14353 Use char because int might match the return type of a GCC
14354 builtin and then its argument prototype would still apply. */
14358 char EGifPutExtensionLast ();
14362 return EGifPutExtensionLast ();
14367 rm -f conftest.
$ac_objext conftest
$ac_exeext
14368 if { (ac_try
="$ac_link"
14369 case "(($ac_try" in
14370 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14371 *) ac_try_echo=$ac_try;;
14373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14374 (eval "$ac_link") 2>conftest.er1
14376 grep -v '^ *+' conftest.er1 >conftest.err
14378 cat conftest.err >&5
14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14380 (exit $ac_status); } && {
14381 test -z "$ac_c_werror_flag" ||
14382 test ! -s conftest.err
14383 } && test -s conftest$ac_exeext &&
14384 $as_test_x conftest$ac_exeext; then
14385 ac_cv_lib_gif_EGifPutExtensionLast=yes
14387 echo "$as_me: failed program was:" >&5
14388 sed 's/^/| /' conftest.$ac_ext >&5
14390 ac_cv_lib_gif_EGifPutExtensionLast=no
14393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14394 conftest$ac_exeext conftest.$ac_ext
14395 LIBS=$ac_check_lib_save_LIBS
14397 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14398 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14399 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14409 if test "$HAVE_GIF" = yes; then
14410 ac_gif_lib_name="-lgif"
14413 # If gif_lib.h but no libgif, try libungif.
14414 if test x"$try_libungif" = xyes; then
14415 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14416 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14417 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14420 ac_check_lib_save_LIBS=$LIBS
14421 LIBS="-lungif $LIBS"
14422 cat >conftest.$ac_ext <<_ACEOF
14425 cat confdefs.h >>conftest.$ac_ext
14426 cat >>conftest.$ac_ext <<_ACEOF
14427 /* end confdefs.h. */
14429 /* Override any GCC internal prototype to avoid an error.
14430 Use char because int might match the return type of a GCC
14431 builtin and then its argument prototype would still apply. */
14435 char EGifPutExtensionLast ();
14439 return EGifPutExtensionLast ();
14444 rm -f conftest.$ac_objext conftest$ac_exeext
14445 if { (ac_try="$ac_link"
14446 case "(($ac_try" in
14447 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14448 *) ac_try_echo
=$ac_try;;
14450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14451 (eval "$ac_link") 2>conftest.er1
14453 grep -v '^ *+' conftest.er1
>conftest.err
14455 cat conftest.err
>&5
14456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14457 (exit $ac_status); } && {
14458 test -z "$ac_c_werror_flag" ||
14459 test ! -s conftest.err
14460 } && test -s conftest
$ac_exeext &&
14461 $as_test_x conftest
$ac_exeext; then
14462 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14464 echo "$as_me: failed program was:" >&5
14465 sed 's/^/| /' conftest.
$ac_ext >&5
14467 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14470 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14471 conftest
$ac_exeext conftest.
$ac_ext
14472 LIBS
=$ac_check_lib_save_LIBS
14474 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14475 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14476 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14481 if test "$HAVE_GIF" = yes; then
14483 cat >>confdefs.h
<<\_ACEOF
14484 #define LIBGIF -lungif
14487 ac_gif_lib_name
="-lungif"
14491 if test "${HAVE_GIF}" = "yes"; then
14493 cat >>confdefs.h
<<\_ACEOF
14500 if test "${HAVE_X11}" = "yes"; then
14503 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14504 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14505 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14506 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14507 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14508 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14509 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14510 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14511 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14512 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14514 if test "X${MISSING}" != X
; then
14515 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14517 Maybe some development libraries/packages are missing?
14518 If you don't want to link with them give
14520 as options to configure" >&5
14521 echo "$as_me: error: The following required libraries were not found:
14523 Maybe some development libraries/packages are missing?
14524 If you don't want to link with them give
14526 as options to configure" >&2;}
14527 { (exit 1); exit 1; }; }
14531 ### Use -lgpm if available, unless `--with-gpm=no'.
14533 if test "${with_gpm}" != "no"; then
14534 if test "${ac_cv_header_gpm_h+set}" = set; then
14535 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14536 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14537 if test "${ac_cv_header_gpm_h+set}" = set; then
14538 echo $ECHO_N "(cached) $ECHO_C" >&6
14540 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14541 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14543 # Is the header compilable?
14544 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14545 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14546 cat >conftest.
$ac_ext <<_ACEOF
14549 cat confdefs.h
>>conftest.
$ac_ext
14550 cat >>conftest.
$ac_ext <<_ACEOF
14551 /* end confdefs.h. */
14552 $ac_includes_default
14555 rm -f conftest.
$ac_objext
14556 if { (ac_try
="$ac_compile"
14557 case "(($ac_try" in
14558 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14559 *) ac_try_echo=$ac_try;;
14561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14562 (eval "$ac_compile") 2>conftest.er1
14564 grep -v '^ *+' conftest.er1 >conftest.err
14566 cat conftest.err >&5
14567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14568 (exit $ac_status); } && {
14569 test -z "$ac_c_werror_flag" ||
14570 test ! -s conftest.err
14571 } && test -s conftest.$ac_objext; then
14572 ac_header_compiler=yes
14574 echo "$as_me: failed program was:" >&5
14575 sed 's/^/| /' conftest.$ac_ext >&5
14577 ac_header_compiler=no
14580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14581 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14582 echo "${ECHO_T}$ac_header_compiler" >&6; }
14584 # Is the header present?
14585 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14586 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14587 cat >conftest.$ac_ext <<_ACEOF
14590 cat confdefs.h >>conftest.$ac_ext
14591 cat >>conftest.$ac_ext <<_ACEOF
14592 /* end confdefs.h. */
14595 if { (ac_try="$ac_cpp conftest.$ac_ext"
14596 case "(($ac_try" in
14597 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14598 *) ac_try_echo
=$ac_try;;
14600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14601 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14603 grep -v '^ *+' conftest.er1
>conftest.err
14605 cat conftest.err
>&5
14606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14607 (exit $ac_status); } >/dev
/null
&& {
14608 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14609 test ! -s conftest.err
14611 ac_header_preproc
=yes
14613 echo "$as_me: failed program was:" >&5
14614 sed 's/^/| /' conftest.
$ac_ext >&5
14616 ac_header_preproc
=no
14619 rm -f conftest.err conftest.
$ac_ext
14620 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14621 echo "${ECHO_T}$ac_header_preproc" >&6; }
14623 # So? What about this header?
14624 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14626 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14627 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14628 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14629 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14630 ac_header_preproc
=yes
14633 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14634 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14636 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14638 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14640 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14641 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14642 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14643 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14644 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14648 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14649 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14650 if test "${ac_cv_header_gpm_h+set}" = set; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14653 ac_cv_header_gpm_h
=$ac_header_preproc
14655 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14656 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14659 if test $ac_cv_header_gpm_h = yes; then
14660 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14661 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14662 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14663 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 ac_check_lib_save_LIBS
=$LIBS
14667 cat >conftest.
$ac_ext <<_ACEOF
14670 cat confdefs.h
>>conftest.
$ac_ext
14671 cat >>conftest.
$ac_ext <<_ACEOF
14672 /* end confdefs.h. */
14674 /* Override any GCC internal prototype to avoid an error.
14675 Use char because int might match the return type of a GCC
14676 builtin and then its argument prototype would still apply. */
14684 return Gpm_Open ();
14689 rm -f conftest.
$ac_objext conftest
$ac_exeext
14690 if { (ac_try
="$ac_link"
14691 case "(($ac_try" in
14692 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14693 *) ac_try_echo=$ac_try;;
14695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14696 (eval "$ac_link") 2>conftest.er1
14698 grep -v '^ *+' conftest.er1 >conftest.err
14700 cat conftest.err >&5
14701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14702 (exit $ac_status); } && {
14703 test -z "$ac_c_werror_flag" ||
14704 test ! -s conftest.err
14705 } && test -s conftest$ac_exeext &&
14706 $as_test_x conftest$ac_exeext; then
14707 ac_cv_lib_gpm_Gpm_Open=yes
14709 echo "$as_me: failed program was:" >&5
14710 sed 's/^/| /' conftest.$ac_ext >&5
14712 ac_cv_lib_gpm_Gpm_Open=no
14715 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14716 conftest$ac_exeext conftest.$ac_ext
14717 LIBS=$ac_check_lib_save_LIBS
14719 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14720 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14721 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14730 if test "${HAVE_GPM}" = "yes"; then
14732 cat >>confdefs.h <<\_ACEOF
14738 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14739 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14740 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14741 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14742 echo $ECHO_N "(cached) $ECHO_C" >&6
14744 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14745 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14747 # Is the header compilable?
14748 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14749 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14750 cat >conftest.$ac_ext <<_ACEOF
14753 cat confdefs.h >>conftest.$ac_ext
14754 cat >>conftest.$ac_ext <<_ACEOF
14755 /* end confdefs.h. */
14756 $ac_includes_default
14757 #include <malloc/malloc.h>
14759 rm -f conftest.$ac_objext
14760 if { (ac_try="$ac_compile"
14761 case "(($ac_try" in
14762 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14763 *) ac_try_echo
=$ac_try;;
14765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14766 (eval "$ac_compile") 2>conftest.er1
14768 grep -v '^ *+' conftest.er1
>conftest.err
14770 cat conftest.err
>&5
14771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14772 (exit $ac_status); } && {
14773 test -z "$ac_c_werror_flag" ||
14774 test ! -s conftest.err
14775 } && test -s conftest.
$ac_objext; then
14776 ac_header_compiler
=yes
14778 echo "$as_me: failed program was:" >&5
14779 sed 's/^/| /' conftest.
$ac_ext >&5
14781 ac_header_compiler
=no
14784 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14786 echo "${ECHO_T}$ac_header_compiler" >&6; }
14788 # Is the header present?
14789 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14790 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14791 cat >conftest.
$ac_ext <<_ACEOF
14794 cat confdefs.h
>>conftest.
$ac_ext
14795 cat >>conftest.
$ac_ext <<_ACEOF
14796 /* end confdefs.h. */
14797 #include <malloc/malloc.h>
14799 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14800 case "(($ac_try" in
14801 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14802 *) ac_try_echo=$ac_try;;
14804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14807 grep -v '^ *+' conftest.er1 >conftest.err
14809 cat conftest.err >&5
14810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14811 (exit $ac_status); } >/dev/null && {
14812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14813 test ! -s conftest.err
14815 ac_header_preproc=yes
14817 echo "$as_me: failed program was:" >&5
14818 sed 's/^/| /' conftest.$ac_ext >&5
14820 ac_header_preproc=no
14823 rm -f conftest.err conftest.$ac_ext
14824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14825 echo "${ECHO_T}$ac_header_preproc" >&6; }
14827 # So? What about this header?
14828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14830 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14831 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14832 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14833 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14834 ac_header_preproc=yes
14837 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14838 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14840 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14842 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14844 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14846 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14847 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14848 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14852 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14853 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14854 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14857 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14859 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14860 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14863 if test $ac_cv_header_malloc_malloc_h = yes; then
14865 cat >>confdefs.h <<\_ACEOF
14866 #define HAVE_MALLOC_MALLOC_H 1
14873 ### Use NeXTstep API to implement GUI.
14874 if test "${HAVE_NS}" = "yes"; then
14876 cat >>confdefs.h <<\_ACEOF
14880 if test "${NS_IMPL_COCOA}" = "yes"; then
14882 cat >>confdefs.h <<\_ACEOF
14883 #define NS_IMPL_COCOA 1
14887 LIB_SRC_EXTRA_INSTALLABLES=mac-fix-env
14889 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14891 cat >>confdefs.h <<\_ACEOF
14892 #define COCOA_EXPERIMENTAL_CTRL_G 1
14896 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14898 cat >>confdefs.h <<\_ACEOF
14899 #define NS_IMPL_GNUSTEP 1
14902 GNU_OBJC_CFLAGS="-fgnu-runtime -Wno-import -fconstant-string-class=NSConstantString -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGSWARN -DGSDIAGNOSE"
14904 if test "${NS_HAVE_NSINTEGER}" = "yes"; then
14906 cat >>confdefs.h <<\_ACEOF
14907 #define NS_HAVE_NSINTEGER 1
14911 # We also have mouse menus.
14916 ### Use session management (-lSM -lICE) if available
14918 if test "${HAVE_X11}" = "yes"; then
14919 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14920 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14921 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14922 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14923 echo $ECHO_N "(cached) $ECHO_C" >&6
14925 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14926 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14928 # Is the header compilable?
14929 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14930 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14931 cat >conftest.$ac_ext <<_ACEOF
14934 cat confdefs.h >>conftest.$ac_ext
14935 cat >>conftest.$ac_ext <<_ACEOF
14936 /* end confdefs.h. */
14937 $ac_includes_default
14938 #include <X11/SM/SMlib.h>
14940 rm -f conftest.$ac_objext
14941 if { (ac_try="$ac_compile"
14942 case "(($ac_try" in
14943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14944 *) ac_try_echo
=$ac_try;;
14946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14947 (eval "$ac_compile") 2>conftest.er1
14949 grep -v '^ *+' conftest.er1
>conftest.err
14951 cat conftest.err
>&5
14952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14953 (exit $ac_status); } && {
14954 test -z "$ac_c_werror_flag" ||
14955 test ! -s conftest.err
14956 } && test -s conftest.
$ac_objext; then
14957 ac_header_compiler
=yes
14959 echo "$as_me: failed program was:" >&5
14960 sed 's/^/| /' conftest.
$ac_ext >&5
14962 ac_header_compiler
=no
14965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14967 echo "${ECHO_T}$ac_header_compiler" >&6; }
14969 # Is the header present?
14970 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14971 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14972 cat >conftest.
$ac_ext <<_ACEOF
14975 cat confdefs.h
>>conftest.
$ac_ext
14976 cat >>conftest.
$ac_ext <<_ACEOF
14977 /* end confdefs.h. */
14978 #include <X11/SM/SMlib.h>
14980 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14981 case "(($ac_try" in
14982 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14983 *) ac_try_echo=$ac_try;;
14985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14988 grep -v '^ *+' conftest.er1 >conftest.err
14990 cat conftest.err >&5
14991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14992 (exit $ac_status); } >/dev/null && {
14993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14994 test ! -s conftest.err
14996 ac_header_preproc=yes
14998 echo "$as_me: failed program was:" >&5
14999 sed 's/^/| /' conftest.$ac_ext >&5
15001 ac_header_preproc=no
15004 rm -f conftest.err conftest.$ac_ext
15005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15006 echo "${ECHO_T}$ac_header_preproc" >&6; }
15008 # So? What about this header?
15009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15011 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15012 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15013 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15014 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15015 ac_header_preproc=yes
15018 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15019 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15020 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15021 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15022 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15023 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15024 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15025 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15026 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15027 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15028 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15029 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15033 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15034 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15035 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15036 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15040 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15041 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15044 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15045 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15046 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15047 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15048 echo $ECHO_N "(cached) $ECHO_C" >&6
15050 ac_check_lib_save_LIBS=$LIBS
15051 LIBS="-lSM -lICE $LIBS"
15052 cat >conftest.$ac_ext <<_ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15059 /* Override any GCC internal prototype to avoid an error.
15060 Use char because int might match the return type of a GCC
15061 builtin and then its argument prototype would still apply. */
15065 char SmcOpenConnection ();
15069 return SmcOpenConnection ();
15074 rm -f conftest.$ac_objext conftest$ac_exeext
15075 if { (ac_try="$ac_link"
15076 case "(($ac_try" in
15077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15078 *) ac_try_echo
=$ac_try;;
15080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_link") 2>conftest.er1
15083 grep -v '^ *+' conftest.er1
>conftest.err
15085 cat conftest.err
>&5
15086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15087 (exit $ac_status); } && {
15088 test -z "$ac_c_werror_flag" ||
15089 test ! -s conftest.err
15090 } && test -s conftest
$ac_exeext &&
15091 $as_test_x conftest
$ac_exeext; then
15092 ac_cv_lib_SM_SmcOpenConnection
=yes
15094 echo "$as_me: failed program was:" >&5
15095 sed 's/^/| /' conftest.
$ac_ext >&5
15097 ac_cv_lib_SM_SmcOpenConnection
=no
15100 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15101 conftest
$ac_exeext conftest.
$ac_ext
15102 LIBS
=$ac_check_lib_save_LIBS
15104 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15105 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15106 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15114 if test "${HAVE_X_SM}" = "yes"; then
15116 cat >>confdefs.h
<<\_ACEOF
15117 #define HAVE_X_SM 1
15122 *) LIBS
="-lSM -lICE $LIBS" ;;
15127 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15128 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15129 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15130 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15131 echo $ECHO_N "(cached) $ECHO_C" >&6
15133 cat >conftest.
$ac_ext <<_ACEOF
15136 cat confdefs.h
>>conftest.
$ac_ext
15137 cat >>conftest.
$ac_ext <<_ACEOF
15138 /* end confdefs.h. */
15148 rm -f conftest.
$ac_objext conftest
$ac_exeext
15149 if { (ac_try
="$ac_link"
15150 case "(($ac_try" in
15151 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15152 *) ac_try_echo=$ac_try;;
15154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15155 (eval "$ac_link") 2>conftest.er1
15157 grep -v '^ *+' conftest.er1 >conftest.err
15159 cat conftest.err >&5
15160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15161 (exit $ac_status); } && {
15162 test -z "$ac_c_werror_flag" ||
15163 test ! -s conftest.err
15164 } && test -s conftest$ac_exeext &&
15165 $as_test_x conftest$ac_exeext; then
15166 emacs_cv_netdb_declares_h_errno=yes
15168 echo "$as_me: failed program was:" >&5
15169 sed 's/^/| /' conftest.$ac_ext >&5
15171 emacs_cv_netdb_declares_h_errno=no
15174 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15175 conftest$ac_exeext conftest.$ac_ext
15177 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15178 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15179 if test $emacs_cv_netdb_declares_h_errno = yes; then
15181 cat >>confdefs.h <<\_ACEOF
15182 #define HAVE_H_ERRNO 1
15187 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15188 # for constant arguments. Useless!
15189 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15190 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15191 if test "${ac_cv_working_alloca_h+set}" = set; then
15192 echo $ECHO_N "(cached) $ECHO_C" >&6
15194 cat >conftest.$ac_ext <<_ACEOF
15197 cat confdefs.h >>conftest.$ac_ext
15198 cat >>conftest.$ac_ext <<_ACEOF
15199 /* end confdefs.h. */
15200 #include <alloca.h>
15204 char *p = (char *) alloca (2 * sizeof (int));
15210 rm -f conftest.$ac_objext conftest$ac_exeext
15211 if { (ac_try="$ac_link"
15212 case "(($ac_try" in
15213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15214 *) ac_try_echo
=$ac_try;;
15216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15217 (eval "$ac_link") 2>conftest.er1
15219 grep -v '^ *+' conftest.er1
>conftest.err
15221 cat conftest.err
>&5
15222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15223 (exit $ac_status); } && {
15224 test -z "$ac_c_werror_flag" ||
15225 test ! -s conftest.err
15226 } && test -s conftest
$ac_exeext &&
15227 $as_test_x conftest
$ac_exeext; then
15228 ac_cv_working_alloca_h
=yes
15230 echo "$as_me: failed program was:" >&5
15231 sed 's/^/| /' conftest.
$ac_ext >&5
15233 ac_cv_working_alloca_h
=no
15236 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15237 conftest
$ac_exeext conftest.
$ac_ext
15239 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15240 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15241 if test $ac_cv_working_alloca_h = yes; then
15243 cat >>confdefs.h
<<\_ACEOF
15244 #define HAVE_ALLOCA_H 1
15249 { echo "$as_me:$LINENO: checking for alloca" >&5
15250 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15251 if test "${ac_cv_func_alloca_works+set}" = set; then
15252 echo $ECHO_N "(cached) $ECHO_C" >&6
15254 cat >conftest.
$ac_ext <<_ACEOF
15257 cat confdefs.h
>>conftest.
$ac_ext
15258 cat >>conftest.
$ac_ext <<_ACEOF
15259 /* end confdefs.h. */
15261 # define alloca __builtin_alloca
15264 # include <malloc.h>
15265 # define alloca _alloca
15267 # ifdef HAVE_ALLOCA_H
15268 # include <alloca.h>
15273 # ifndef alloca /* predefined by HP cc +Olibcalls */
15284 char *p = (char *) alloca (1);
15290 rm -f conftest.
$ac_objext conftest
$ac_exeext
15291 if { (ac_try
="$ac_link"
15292 case "(($ac_try" in
15293 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15294 *) ac_try_echo=$ac_try;;
15296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15297 (eval "$ac_link") 2>conftest.er1
15299 grep -v '^ *+' conftest.er1 >conftest.err
15301 cat conftest.err >&5
15302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15303 (exit $ac_status); } && {
15304 test -z "$ac_c_werror_flag" ||
15305 test ! -s conftest.err
15306 } && test -s conftest$ac_exeext &&
15307 $as_test_x conftest$ac_exeext; then
15308 ac_cv_func_alloca_works=yes
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.$ac_ext >&5
15313 ac_cv_func_alloca_works=no
15316 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15317 conftest$ac_exeext conftest.$ac_ext
15319 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15320 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15322 if test $ac_cv_func_alloca_works = yes; then
15324 cat >>confdefs.h <<\_ACEOF
15325 #define HAVE_ALLOCA 1
15329 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15330 # that cause trouble. Some versions do not even contain alloca or
15331 # contain a buggy version. If you still want to use their alloca,
15332 # use ar to extract alloca.o from them instead of compiling alloca.c.
15334 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15336 cat >>confdefs.h <<\_ACEOF
15341 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15342 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15343 if test "${ac_cv_os_cray+set}" = set; then
15344 echo $ECHO_N "(cached
) $ECHO_C" >&6
15346 cat >conftest.$ac_ext <<_ACEOF
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h. */
15352 #if defined CRAY && ! defined CRAY2
15359 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15360 $EGREP "webecray
" >/dev/null 2>&1; then
15368 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15369 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15370 if test $ac_cv_os_cray = yes; then
15371 for ac_func in _getb67 GETB67 getb67; do
15372 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15373 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15374 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15375 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15376 echo $ECHO_N "(cached
) $ECHO_C" >&6
15378 cat >conftest.$ac_ext <<_ACEOF
15381 cat confdefs.h >>conftest.$ac_ext
15382 cat >>conftest.$ac_ext <<_ACEOF
15383 /* end confdefs.h. */
15384 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15385 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15386 #define $ac_func innocuous_$ac_func
15388 /* System header to define __stub macros and hopefully few prototypes,
15389 which can conflict with char $ac_func (); below.
15390 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15391 <limits.h> exists even on freestanding compilers. */
15394 # include <limits.h>
15396 # include <assert.h>
15401 /* Override any GCC internal prototype to avoid an error.
15402 Use char because int might match the return type of a GCC
15403 builtin and then its argument prototype would still apply. */
15408 /* The GNU C library defines this for functions which it implements
15409 to always fail with ENOSYS. Some functions are actually named
15410 something starting with __ and the normal name is an alias. */
15411 #if defined __stub_$ac_func || defined __stub___$ac_func
15418 return $ac_func ();
15423 rm -f conftest.$ac_objext conftest$ac_exeext
15424 if { (ac_try="$ac_link"
15425 case "(($ac_try" in
15426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15427 *) ac_try_echo=$ac_try;;
15429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15430 (eval "$ac_link") 2>conftest.er1
15432 grep -v '^ *+' conftest.er1 >conftest.err
15434 cat conftest.err >&5
15435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15436 (exit $ac_status); } && {
15437 test -z "$ac_c_werror_flag" ||
15438 test ! -s conftest.err
15439 } && test -s conftest$ac_exeext &&
15440 $as_test_x conftest$ac_exeext; then
15441 eval "$as_ac_var=yes"
15443 echo "$as_me: failed program was
:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15446 eval "$as_ac_var=no
"
15449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15450 conftest$ac_exeext conftest.$ac_ext
15452 ac_res=`eval echo '${'$as_ac_var'}'`
15453 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15454 echo "${ECHO_T}$ac_res" >&6; }
15455 if test `eval echo '${'$as_ac_var'}'` = yes; then
15457 cat >>confdefs.h <<_ACEOF
15458 #define CRAY_STACKSEG_END $ac_func
15467 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15468 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15469 if test "${ac_cv_c_stack_direction+set}" = set; then
15470 echo $ECHO_N "(cached
) $ECHO_C" >&6
15472 if test "$cross_compiling" = yes; then
15473 ac_cv_c_stack_direction=0
15475 cat >conftest.$ac_ext <<_ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h. */
15481 $ac_includes_default
15483 find_stack_direction ()
15485 static char *addr = 0;
15490 return find_stack_direction ();
15493 return (&dummy > addr) ? 1 : -1;
15499 return find_stack_direction () < 0;
15502 rm -f conftest$ac_exeext
15503 if { (ac_try="$ac_link"
15504 case "(($ac_try" in
15505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15506 *) ac_try_echo=$ac_try;;
15508 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15509 (eval "$ac_link") 2>&5
15511 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15513 { (case "(($ac_try" in
15514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15515 *) ac_try_echo=$ac_try;;
15517 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15518 (eval "$ac_try") 2>&5
15520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15521 (exit $ac_status); }; }; then
15522 ac_cv_c_stack_direction=1
15524 echo "$as_me: program exited with status
$ac_status" >&5
15525 echo "$as_me: failed program was
:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15528 ( exit $ac_status )
15529 ac_cv_c_stack_direction=-1
15531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15536 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15537 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15539 cat >>confdefs.h <<_ACEOF
15540 #define STACK_DIRECTION $ac_cv_c_stack_direction
15547 if test x"$ac_cv_func_alloca_works" != xyes; then
15548 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15549 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15550 { (exit 1); exit 1; }; }
15553 # fmod, logb, and frexp are found in -lm on most systems.
15554 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15556 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15557 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15558 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15559 echo $ECHO_N "(cached
) $ECHO_C" >&6
15561 ac_check_lib_save_LIBS=$LIBS
15563 cat >conftest.$ac_ext <<_ACEOF
15566 cat confdefs.h >>conftest.$ac_ext
15567 cat >>conftest.$ac_ext <<_ACEOF
15568 /* end confdefs.h. */
15570 /* Override any GCC internal prototype to avoid an error.
15571 Use char because int might match the return type of a GCC
15572 builtin and then its argument prototype would still apply. */
15585 rm -f conftest.$ac_objext conftest$ac_exeext
15586 if { (ac_try="$ac_link"
15587 case "(($ac_try" in
15588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15589 *) ac_try_echo=$ac_try;;
15591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15592 (eval "$ac_link") 2>conftest.er1
15594 grep -v '^ *+' conftest.er1 >conftest.err
15596 cat conftest.err >&5
15597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15598 (exit $ac_status); } && {
15599 test -z "$ac_c_werror_flag" ||
15600 test ! -s conftest.err
15601 } && test -s conftest$ac_exeext &&
15602 $as_test_x conftest$ac_exeext; then
15603 ac_cv_lib_m_sqrt=yes
15605 echo "$as_me: failed program was
:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 ac_cv_lib_m_sqrt=no
15611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15612 conftest$ac_exeext conftest.$ac_ext
15613 LIBS=$ac_check_lib_save_LIBS
15615 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15616 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15617 if test $ac_cv_lib_m_sqrt = yes; then
15618 cat >>confdefs.h <<_ACEOF
15619 #define HAVE_LIBM 1
15627 # Check for mail-locking functions in a "mail" library. Probably this should
15628 # have the same check as for liblockfile below.
15630 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15631 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15632 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15633 echo $ECHO_N "(cached
) $ECHO_C" >&6
15635 ac_check_lib_save_LIBS=$LIBS
15636 LIBS="-lmail $LIBS"
15637 cat >conftest.$ac_ext <<_ACEOF
15640 cat confdefs.h >>conftest.$ac_ext
15641 cat >>conftest.$ac_ext <<_ACEOF
15642 /* end confdefs.h. */
15644 /* Override any GCC internal prototype to avoid an error.
15645 Use char because int might match the return type of a GCC
15646 builtin and then its argument prototype would still apply. */
15654 return maillock ();
15659 rm -f conftest.$ac_objext conftest$ac_exeext
15660 if { (ac_try="$ac_link"
15661 case "(($ac_try" in
15662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663 *) ac_try_echo=$ac_try;;
15665 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15666 (eval "$ac_link") 2>conftest.er1
15668 grep -v '^ *+' conftest.er1 >conftest.err
15670 cat conftest.err >&5
15671 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15672 (exit $ac_status); } && {
15673 test -z "$ac_c_werror_flag" ||
15674 test ! -s conftest.err
15675 } && test -s conftest$ac_exeext &&
15676 $as_test_x conftest$ac_exeext; then
15677 ac_cv_lib_mail_maillock=yes
15679 echo "$as_me: failed program was
:" >&5
15680 sed 's/^/| /' conftest.$ac_ext >&5
15682 ac_cv_lib_mail_maillock=no
15685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15686 conftest$ac_exeext conftest.$ac_ext
15687 LIBS=$ac_check_lib_save_LIBS
15689 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15690 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15691 if test $ac_cv_lib_mail_maillock = yes; then
15692 cat >>confdefs.h <<_ACEOF
15693 #define HAVE_LIBMAIL 1
15696 LIBS="-lmail $LIBS"
15701 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15702 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15703 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15704 echo $ECHO_N "(cached
) $ECHO_C" >&6
15706 ac_check_lib_save_LIBS=$LIBS
15707 LIBS="-llockfile $LIBS"
15708 cat >conftest.$ac_ext <<_ACEOF
15711 cat confdefs.h >>conftest.$ac_ext
15712 cat >>conftest.$ac_ext <<_ACEOF
15713 /* end confdefs.h. */
15715 /* Override any GCC internal prototype to avoid an error.
15716 Use char because int might match the return type of a GCC
15717 builtin and then its argument prototype would still apply. */
15725 return maillock ();
15730 rm -f conftest.$ac_objext conftest$ac_exeext
15731 if { (ac_try="$ac_link"
15732 case "(($ac_try" in
15733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15734 *) ac_try_echo=$ac_try;;
15736 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15737 (eval "$ac_link") 2>conftest.er1
15739 grep -v '^ *+' conftest.er1 >conftest.err
15741 cat conftest.err >&5
15742 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15743 (exit $ac_status); } && {
15744 test -z "$ac_c_werror_flag" ||
15745 test ! -s conftest.err
15746 } && test -s conftest$ac_exeext &&
15747 $as_test_x conftest$ac_exeext; then
15748 ac_cv_lib_lockfile_maillock=yes
15750 echo "$as_me: failed program was
:" >&5
15751 sed 's/^/| /' conftest.$ac_ext >&5
15753 ac_cv_lib_lockfile_maillock=no
15756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15757 conftest$ac_exeext conftest.$ac_ext
15758 LIBS=$ac_check_lib_save_LIBS
15760 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15761 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15762 if test $ac_cv_lib_lockfile_maillock = yes; then
15763 cat >>confdefs.h <<_ACEOF
15764 #define HAVE_LIBLOCKFILE 1
15767 LIBS="-llockfile $LIBS"
15771 # If we have the shared liblockfile, assume we must use it for mail
15772 # locking (e.g. Debian). If we couldn't link against liblockfile
15773 # (no liblockfile.a installed), ensure that we don't need to.
15774 if test "$ac_cv_lib_lockfile_maillock" = no; then
15775 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15776 set dummy liblockfile.so; ac_word=$2
15777 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15778 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15779 if test "${ac_cv_prog_liblockfile+set}" = set; then
15780 echo $ECHO_N "(cached
) $ECHO_C" >&6
15782 if test -n "$liblockfile"; then
15783 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15786 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15787 for as_dir in $as_dummy
15790 test -z "$as_dir" && as_dir=.
15791 for ac_exec_ext in '' $ac_executable_extensions; do
15792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15793 ac_cv_prog_liblockfile="yes"
15794 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15801 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15804 liblockfile=$ac_cv_prog_liblockfile
15805 if test -n "$liblockfile"; then
15806 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15807 echo "${ECHO_T}$liblockfile" >&6; }
15809 { echo "$as_me:$LINENO: result
: no
" >&5
15810 echo "${ECHO_T}no
" >&6; }
15814 if test $ac_cv_prog_liblockfile = yes; then
15815 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15816 This probably means that movemail could lose mail.
15817 There may be a \`development' package to
install containing liblockfile.
" >&5
15818 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15819 This probably means that movemail could lose mail.
15820 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15821 { (exit 1); exit 1; }; }
15826 for ac_func in touchlock
15828 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15829 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15830 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15831 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15832 echo $ECHO_N "(cached
) $ECHO_C" >&6
15834 cat >conftest.$ac_ext <<_ACEOF
15837 cat confdefs.h >>conftest.$ac_ext
15838 cat >>conftest.$ac_ext <<_ACEOF
15839 /* end confdefs.h. */
15840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15842 #define $ac_func innocuous_$ac_func
15844 /* System header to define __stub macros and hopefully few prototypes,
15845 which can conflict with char $ac_func (); below.
15846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15847 <limits.h> exists even on freestanding compilers. */
15850 # include <limits.h>
15852 # include <assert.h>
15857 /* Override any GCC internal prototype to avoid an error.
15858 Use char because int might match the return type of a GCC
15859 builtin and then its argument prototype would still apply. */
15864 /* The GNU C library defines this for functions which it implements
15865 to always fail with ENOSYS. Some functions are actually named
15866 something starting with __ and the normal name is an alias. */
15867 #if defined __stub_$ac_func || defined __stub___$ac_func
15874 return $ac_func ();
15879 rm -f conftest.$ac_objext conftest$ac_exeext
15880 if { (ac_try="$ac_link"
15881 case "(($ac_try" in
15882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15883 *) ac_try_echo=$ac_try;;
15885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15886 (eval "$ac_link") 2>conftest.er1
15888 grep -v '^ *+' conftest.er1 >conftest.err
15890 cat conftest.err >&5
15891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15892 (exit $ac_status); } && {
15893 test -z "$ac_c_werror_flag" ||
15894 test ! -s conftest.err
15895 } && test -s conftest$ac_exeext &&
15896 $as_test_x conftest$ac_exeext; then
15897 eval "$as_ac_var=yes"
15899 echo "$as_me: failed program was
:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15902 eval "$as_ac_var=no
"
15905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15906 conftest$ac_exeext conftest.$ac_ext
15908 ac_res=`eval echo '${'$as_ac_var'}'`
15909 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15910 echo "${ECHO_T}$ac_res" >&6; }
15911 if test `eval echo '${'$as_ac_var'}'` = yes; then
15912 cat >>confdefs.h <<_ACEOF
15913 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15920 for ac_header in maillock.h
15922 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15923 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15924 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15925 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15926 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15927 echo $ECHO_N "(cached
) $ECHO_C" >&6
15929 ac_res=`eval echo '${'$as_ac_Header'}'`
15930 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15931 echo "${ECHO_T}$ac_res" >&6; }
15933 # Is the header compilable?
15934 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15935 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15936 cat >conftest.$ac_ext <<_ACEOF
15939 cat confdefs.h >>conftest.$ac_ext
15940 cat >>conftest.$ac_ext <<_ACEOF
15941 /* end confdefs.h. */
15942 $ac_includes_default
15943 #include <$ac_header>
15945 rm -f conftest.$ac_objext
15946 if { (ac_try="$ac_compile"
15947 case "(($ac_try" in
15948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15949 *) ac_try_echo=$ac_try;;
15951 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15952 (eval "$ac_compile") 2>conftest.er1
15954 grep -v '^ *+' conftest.er1 >conftest.err
15956 cat conftest.err >&5
15957 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15958 (exit $ac_status); } && {
15959 test -z "$ac_c_werror_flag" ||
15960 test ! -s conftest.err
15961 } && test -s conftest.$ac_objext; then
15962 ac_header_compiler=yes
15964 echo "$as_me: failed program was
:" >&5
15965 sed 's/^/| /' conftest.$ac_ext >&5
15967 ac_header_compiler=no
15970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15971 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15972 echo "${ECHO_T}$ac_header_compiler" >&6; }
15974 # Is the header present?
15975 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15976 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15977 cat >conftest.$ac_ext <<_ACEOF
15980 cat confdefs.h >>conftest.$ac_ext
15981 cat >>conftest.$ac_ext <<_ACEOF
15982 /* end confdefs.h. */
15983 #include <$ac_header>
15985 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15986 case "(($ac_try" in
15987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15988 *) ac_try_echo=$ac_try;;
15990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15991 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15993 grep -v '^ *+' conftest.er1 >conftest.err
15995 cat conftest.err >&5
15996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15997 (exit $ac_status); } >/dev/null && {
15998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15999 test ! -s conftest.err
16001 ac_header_preproc=yes
16003 echo "$as_me: failed program was
:" >&5
16004 sed 's/^/| /' conftest.$ac_ext >&5
16006 ac_header_preproc=no
16009 rm -f conftest.err conftest.$ac_ext
16010 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16011 echo "${ECHO_T}$ac_header_preproc" >&6; }
16013 # So? What about this header?
16014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16016 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16017 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16018 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16020 ac_header_preproc=yes
16023 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16024 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16025 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16026 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16027 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16028 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16029 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16030 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16031 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16033 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16034 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16038 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16039 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16040 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16041 echo $ECHO_N "(cached
) $ECHO_C" >&6
16043 eval "$as_ac_Header=\
$ac_header_preproc"
16045 ac_res=`eval echo '${'$as_ac_Header'}'`
16046 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16047 echo "${ECHO_T}$ac_res" >&6; }
16050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16051 cat >>confdefs.h <<_ACEOF
16052 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16131 for ac_func in gethostname getdomainname dup2 \
16132 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16133 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16134 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16135 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16136 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16137 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16138 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16139 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16140 cfmakeraw cfsetspeed
16142 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16143 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16144 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16145 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16146 echo $ECHO_N "(cached
) $ECHO_C" >&6
16148 cat >conftest.$ac_ext <<_ACEOF
16151 cat confdefs.h >>conftest.$ac_ext
16152 cat >>conftest.$ac_ext <<_ACEOF
16153 /* end confdefs.h. */
16154 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16155 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16156 #define $ac_func innocuous_$ac_func
16158 /* System header to define __stub macros and hopefully few prototypes,
16159 which can conflict with char $ac_func (); below.
16160 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16161 <limits.h> exists even on freestanding compilers. */
16164 # include <limits.h>
16166 # include <assert.h>
16171 /* Override any GCC internal prototype to avoid an error.
16172 Use char because int might match the return type of a GCC
16173 builtin and then its argument prototype would still apply. */
16178 /* The GNU C library defines this for functions which it implements
16179 to always fail with ENOSYS. Some functions are actually named
16180 something starting with __ and the normal name is an alias. */
16181 #if defined __stub_$ac_func || defined __stub___$ac_func
16188 return $ac_func ();
16193 rm -f conftest.$ac_objext conftest$ac_exeext
16194 if { (ac_try="$ac_link"
16195 case "(($ac_try" in
16196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16197 *) ac_try_echo=$ac_try;;
16199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16200 (eval "$ac_link") 2>conftest.er1
16202 grep -v '^ *+' conftest.er1 >conftest.err
16204 cat conftest.err >&5
16205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16206 (exit $ac_status); } && {
16207 test -z "$ac_c_werror_flag" ||
16208 test ! -s conftest.err
16209 } && test -s conftest$ac_exeext &&
16210 $as_test_x conftest$ac_exeext; then
16211 eval "$as_ac_var=yes"
16213 echo "$as_me: failed program was
:" >&5
16214 sed 's/^/| /' conftest.$ac_ext >&5
16216 eval "$as_ac_var=no
"
16219 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16220 conftest$ac_exeext conftest.$ac_ext
16222 ac_res=`eval echo '${'$as_ac_var'}'`
16223 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16224 echo "${ECHO_T}$ac_res" >&6; }
16225 if test `eval echo '${'$as_ac_var'}'` = yes; then
16226 cat >>confdefs.h <<_ACEOF
16227 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16235 for ac_header in sys/un.h
16237 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16238 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16239 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16240 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16241 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16242 echo $ECHO_N "(cached
) $ECHO_C" >&6
16244 ac_res=`eval echo '${'$as_ac_Header'}'`
16245 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16246 echo "${ECHO_T}$ac_res" >&6; }
16248 # Is the header compilable?
16249 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16250 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16251 cat >conftest.$ac_ext <<_ACEOF
16254 cat confdefs.h >>conftest.$ac_ext
16255 cat >>conftest.$ac_ext <<_ACEOF
16256 /* end confdefs.h. */
16257 $ac_includes_default
16258 #include <$ac_header>
16260 rm -f conftest.$ac_objext
16261 if { (ac_try="$ac_compile"
16262 case "(($ac_try" in
16263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16264 *) ac_try_echo=$ac_try;;
16266 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16267 (eval "$ac_compile") 2>conftest.er1
16269 grep -v '^ *+' conftest.er1 >conftest.err
16271 cat conftest.err >&5
16272 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16273 (exit $ac_status); } && {
16274 test -z "$ac_c_werror_flag" ||
16275 test ! -s conftest.err
16276 } && test -s conftest.$ac_objext; then
16277 ac_header_compiler=yes
16279 echo "$as_me: failed program was
:" >&5
16280 sed 's/^/| /' conftest.$ac_ext >&5
16282 ac_header_compiler=no
16285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16286 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16287 echo "${ECHO_T}$ac_header_compiler" >&6; }
16289 # Is the header present?
16290 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16291 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16292 cat >conftest.$ac_ext <<_ACEOF
16295 cat confdefs.h >>conftest.$ac_ext
16296 cat >>conftest.$ac_ext <<_ACEOF
16297 /* end confdefs.h. */
16298 #include <$ac_header>
16300 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16301 case "(($ac_try" in
16302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16303 *) ac_try_echo=$ac_try;;
16305 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16306 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16308 grep -v '^ *+' conftest.er1 >conftest.err
16310 cat conftest.err >&5
16311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16312 (exit $ac_status); } >/dev/null && {
16313 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16314 test ! -s conftest.err
16316 ac_header_preproc=yes
16318 echo "$as_me: failed program was
:" >&5
16319 sed 's/^/| /' conftest.$ac_ext >&5
16321 ac_header_preproc=no
16324 rm -f conftest.err conftest.$ac_ext
16325 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16326 echo "${ECHO_T}$ac_header_preproc" >&6; }
16328 # So? What about this header?
16329 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16331 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16332 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16333 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16334 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16335 ac_header_preproc=yes
16338 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16339 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16340 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16341 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16342 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16343 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16344 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16345 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16346 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16347 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16348 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16349 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16353 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16354 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16355 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16356 echo $ECHO_N "(cached
) $ECHO_C" >&6
16358 eval "$as_ac_Header=\
$ac_header_preproc"
16360 ac_res=`eval echo '${'$as_ac_Header'}'`
16361 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16362 echo "${ECHO_T}$ac_res" >&6; }
16365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16366 cat >>confdefs.h <<_ACEOF
16367 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16379 for ac_header in $ac_header_list
16381 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16382 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16383 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16384 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16385 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16386 echo $ECHO_N "(cached
) $ECHO_C" >&6
16388 ac_res=`eval echo '${'$as_ac_Header'}'`
16389 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16390 echo "${ECHO_T}$ac_res" >&6; }
16392 # Is the header compilable?
16393 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16394 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16395 cat >conftest.$ac_ext <<_ACEOF
16398 cat confdefs.h >>conftest.$ac_ext
16399 cat >>conftest.$ac_ext <<_ACEOF
16400 /* end confdefs.h. */
16401 $ac_includes_default
16402 #include <$ac_header>
16404 rm -f conftest.$ac_objext
16405 if { (ac_try="$ac_compile"
16406 case "(($ac_try" in
16407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16408 *) ac_try_echo=$ac_try;;
16410 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16411 (eval "$ac_compile") 2>conftest.er1
16413 grep -v '^ *+' conftest.er1 >conftest.err
16415 cat conftest.err >&5
16416 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16417 (exit $ac_status); } && {
16418 test -z "$ac_c_werror_flag" ||
16419 test ! -s conftest.err
16420 } && test -s conftest.$ac_objext; then
16421 ac_header_compiler=yes
16423 echo "$as_me: failed program was
:" >&5
16424 sed 's/^/| /' conftest.$ac_ext >&5
16426 ac_header_compiler=no
16429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16430 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16431 echo "${ECHO_T}$ac_header_compiler" >&6; }
16433 # Is the header present?
16434 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16435 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16436 cat >conftest.$ac_ext <<_ACEOF
16439 cat confdefs.h >>conftest.$ac_ext
16440 cat >>conftest.$ac_ext <<_ACEOF
16441 /* end confdefs.h. */
16442 #include <$ac_header>
16444 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16445 case "(($ac_try" in
16446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16447 *) ac_try_echo=$ac_try;;
16449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16450 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16452 grep -v '^ *+' conftest.er1 >conftest.err
16454 cat conftest.err >&5
16455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16456 (exit $ac_status); } >/dev/null && {
16457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16458 test ! -s conftest.err
16460 ac_header_preproc=yes
16462 echo "$as_me: failed program was
:" >&5
16463 sed 's/^/| /' conftest.$ac_ext >&5
16465 ac_header_preproc=no
16468 rm -f conftest.err conftest.$ac_ext
16469 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16470 echo "${ECHO_T}$ac_header_preproc" >&6; }
16472 # So? What about this header?
16473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16475 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16476 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16477 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16479 ac_header_preproc=yes
16482 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16483 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16484 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16485 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16486 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16487 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16488 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16489 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16490 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16492 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16493 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16497 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16498 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16499 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16500 echo $ECHO_N "(cached
) $ECHO_C" >&6
16502 eval "$as_ac_Header=\
$ac_header_preproc"
16504 ac_res=`eval echo '${'$as_ac_Header'}'`
16505 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16506 echo "${ECHO_T}$ac_res" >&6; }
16509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16510 cat >>confdefs.h <<_ACEOF
16511 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16526 for ac_func in $ac_func_list
16528 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16529 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16530 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16531 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16532 echo $ECHO_N "(cached
) $ECHO_C" >&6
16534 cat >conftest.$ac_ext <<_ACEOF
16537 cat confdefs.h >>conftest.$ac_ext
16538 cat >>conftest.$ac_ext <<_ACEOF
16539 /* end confdefs.h. */
16540 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16541 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16542 #define $ac_func innocuous_$ac_func
16544 /* System header to define __stub macros and hopefully few prototypes,
16545 which can conflict with char $ac_func (); below.
16546 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16547 <limits.h> exists even on freestanding compilers. */
16550 # include <limits.h>
16552 # include <assert.h>
16557 /* Override any GCC internal prototype to avoid an error.
16558 Use char because int might match the return type of a GCC
16559 builtin and then its argument prototype would still apply. */
16564 /* The GNU C library defines this for functions which it implements
16565 to always fail with ENOSYS. Some functions are actually named
16566 something starting with __ and the normal name is an alias. */
16567 #if defined __stub_$ac_func || defined __stub___$ac_func
16574 return $ac_func ();
16579 rm -f conftest.$ac_objext conftest$ac_exeext
16580 if { (ac_try="$ac_link"
16581 case "(($ac_try" in
16582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16583 *) ac_try_echo=$ac_try;;
16585 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16586 (eval "$ac_link") 2>conftest.er1
16588 grep -v '^ *+' conftest.er1 >conftest.err
16590 cat conftest.err >&5
16591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16592 (exit $ac_status); } && {
16593 test -z "$ac_c_werror_flag" ||
16594 test ! -s conftest.err
16595 } && test -s conftest$ac_exeext &&
16596 $as_test_x conftest$ac_exeext; then
16597 eval "$as_ac_var=yes"
16599 echo "$as_me: failed program was
:" >&5
16600 sed 's/^/| /' conftest.$ac_ext >&5
16602 eval "$as_ac_var=no
"
16605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16606 conftest$ac_exeext conftest.$ac_ext
16608 ac_res=`eval echo '${'$as_ac_var'}'`
16609 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16610 echo "${ECHO_T}$ac_res" >&6; }
16611 if test `eval echo '${'$as_ac_var'}'` = yes; then
16612 cat >>confdefs.h <<_ACEOF
16613 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16635 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16636 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16637 if test "${ac_cv_func_working_mktime+set}" = set; then
16638 echo $ECHO_N "(cached
) $ECHO_C" >&6
16640 if test "$cross_compiling" = yes; then
16641 ac_cv_func_working_mktime=no
16643 cat >conftest.$ac_ext <<_ACEOF
16646 cat confdefs.h >>conftest.$ac_ext
16647 cat >>conftest.$ac_ext <<_ACEOF
16648 /* end confdefs.h. */
16649 /* Test program from Paul Eggert and Tony Leneis. */
16650 #ifdef TIME_WITH_SYS_TIME
16651 # include <sys/time.h>
16654 # ifdef HAVE_SYS_TIME_H
16655 # include <sys/time.h>
16661 #include <stdlib.h>
16663 #ifdef HAVE_UNISTD_H
16664 # include <unistd.h>
16668 # define alarm(X) /* empty */
16671 /* Work around redefinition to rpl_putenv by other config tests. */
16674 static time_t time_t_max;
16675 static time_t time_t_min;
16677 /* Values we'll use to set the TZ environment variable. */
16678 static char *tz_strings[] = {
16679 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16680 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16682 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16684 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16685 Based on a problem report from Andreas Jaeger. */
16687 spring_forward_gap ()
16689 /* glibc (up to about 1998-10-07) failed this test. */
16692 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16693 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16694 on systems that don't support the Olson extension, or don't have the
16695 full zoneinfo tables installed. */
16696 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16705 return mktime (&tm) != (time_t) -1;
16713 return ! (lt = localtime (&now)) || mktime (lt) == now;
16720 return (mktime_test1 (now)
16721 && mktime_test1 ((time_t) (time_t_max - now))
16722 && mktime_test1 ((time_t) (time_t_min + now)));
16728 /* Based on code from Ariel Faigon. */
16738 return tm.tm_mon == 2 && tm.tm_mday == 31;
16747 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16748 now = mktime (&tm);
16749 if (now != (time_t) -1)
16751 struct tm *lt = localtime (&now);
16753 && lt->tm_year == tm.tm_year
16754 && lt->tm_mon == tm.tm_mon
16755 && lt->tm_mday == tm.tm_mday
16756 && lt->tm_hour == tm.tm_hour
16757 && lt->tm_min == tm.tm_min
16758 && lt->tm_sec == tm.tm_sec
16759 && lt->tm_yday == tm.tm_yday
16760 && lt->tm_wday == tm.tm_wday
16761 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16762 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16771 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16772 ignoring leap seconds. */
16773 unsigned long int answer = 2527315200UL;
16777 tm.tm_year = 2050 - 1900;
16780 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16783 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16784 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16785 on systems that don't support the Olson extension, or don't have the
16786 full zoneinfo tables installed. */
16787 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16791 /* Check that the result is either a failure, or close enough
16792 to the correct answer that we can assume the discrepancy is
16793 due to leap seconds. */
16794 return (t == (time_t) -1
16795 || (0 < t && answer - 120 <= t && t <= answer + 120));
16804 /* This test makes some buggy mktime implementations loop.
16805 Give up after 60 seconds; a mktime slower than that
16806 isn't worth using anyway. */
16809 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16812 if ((time_t) -1 < 0)
16813 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16815 delta = time_t_max / 997; /* a suitable prime number */
16816 for (i = 0; i < N_STRINGS; i++)
16819 putenv (tz_strings[i]);
16821 for (t = 0; t <= time_t_max - delta; t += delta)
16822 if (! mktime_test (t))
16824 if (! (mktime_test ((time_t) 1)
16825 && mktime_test ((time_t) (60 * 60))
16826 && mktime_test ((time_t) (60 * 60 * 24))))
16829 for (j = 1; 0 < j; j *= 2)
16830 if (! bigtime_test (j))
16832 if (! bigtime_test (j - 1))
16835 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16838 rm -f conftest$ac_exeext
16839 if { (ac_try="$ac_link"
16840 case "(($ac_try" in
16841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16842 *) ac_try_echo=$ac_try;;
16844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16845 (eval "$ac_link") 2>&5
16847 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16848 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16849 { (case "(($ac_try" in
16850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16851 *) ac_try_echo=$ac_try;;
16853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16854 (eval "$ac_try") 2>&5
16856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16857 (exit $ac_status); }; }; then
16858 ac_cv_func_working_mktime=yes
16860 echo "$as_me: program exited with status
$ac_status" >&5
16861 echo "$as_me: failed program was
:" >&5
16862 sed 's/^/| /' conftest.$ac_ext >&5
16864 ( exit $ac_status )
16865 ac_cv_func_working_mktime=no
16867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16872 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16873 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16874 if test $ac_cv_func_working_mktime = no; then
16875 case " $LIBOBJS " in
16876 *" mktime.
$ac_objext "* ) ;;
16877 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16883 if test "$ac_cv_func_working_mktime" = no; then
16885 cat >>confdefs.h <<\_ACEOF
16886 #define BROKEN_MKTIME 1
16891 ac_have_func=no # yes means we've found a way to get the load average.
16893 # Make sure getloadavg.c is where it belongs, at configure-time.
16894 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16895 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16896 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16897 { (exit 1); exit 1; }; }
16901 # Check for getloadavg, but be sure not to touch the cache variable.
16902 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16903 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16904 if test "${ac_cv_func_getloadavg+set}" = set; then
16905 echo $ECHO_N "(cached
) $ECHO_C" >&6
16907 cat >conftest.$ac_ext <<_ACEOF
16910 cat confdefs.h >>conftest.$ac_ext
16911 cat >>conftest.$ac_ext <<_ACEOF
16912 /* end confdefs.h. */
16913 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16914 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16915 #define getloadavg innocuous_getloadavg
16917 /* System header to define __stub macros and hopefully few prototypes,
16918 which can conflict with char getloadavg (); below.
16919 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16920 <limits.h> exists even on freestanding compilers. */
16923 # include <limits.h>
16925 # include <assert.h>
16930 /* Override any GCC internal prototype to avoid an error.
16931 Use char because int might match the return type of a GCC
16932 builtin and then its argument prototype would still apply. */
16936 char getloadavg ();
16937 /* The GNU C library defines this for functions which it implements
16938 to always fail with ENOSYS. Some functions are actually named
16939 something starting with __ and the normal name is an alias. */
16940 #if defined __stub_getloadavg || defined __stub___getloadavg
16947 return getloadavg ();
16952 rm -f conftest.$ac_objext conftest$ac_exeext
16953 if { (ac_try="$ac_link"
16954 case "(($ac_try" in
16955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16956 *) ac_try_echo=$ac_try;;
16958 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16959 (eval "$ac_link") 2>conftest.er1
16961 grep -v '^ *+' conftest.er1 >conftest.err
16963 cat conftest.err >&5
16964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16965 (exit $ac_status); } && {
16966 test -z "$ac_c_werror_flag" ||
16967 test ! -s conftest.err
16968 } && test -s conftest$ac_exeext &&
16969 $as_test_x conftest$ac_exeext; then
16970 ac_cv_func_getloadavg=yes
16972 echo "$as_me: failed program was
:" >&5
16973 sed 's/^/| /' conftest.$ac_ext >&5
16975 ac_cv_func_getloadavg=no
16978 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16979 conftest$ac_exeext conftest.$ac_ext
16981 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16982 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16983 if test $ac_cv_func_getloadavg = yes; then
16988 ) && ac_have_func=yes
16990 # On HPUX9, an unprivileged user can get load averages through this function.
16992 for ac_func in pstat_getdynamic
16994 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16995 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16996 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16997 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16998 echo $ECHO_N "(cached
) $ECHO_C" >&6
17000 cat >conftest.$ac_ext <<_ACEOF
17003 cat confdefs.h >>conftest.$ac_ext
17004 cat >>conftest.$ac_ext <<_ACEOF
17005 /* end confdefs.h. */
17006 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17007 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17008 #define $ac_func innocuous_$ac_func
17010 /* System header to define __stub macros and hopefully few prototypes,
17011 which can conflict with char $ac_func (); below.
17012 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17013 <limits.h> exists even on freestanding compilers. */
17016 # include <limits.h>
17018 # include <assert.h>
17023 /* Override any GCC internal prototype to avoid an error.
17024 Use char because int might match the return type of a GCC
17025 builtin and then its argument prototype would still apply. */
17030 /* The GNU C library defines this for functions which it implements
17031 to always fail with ENOSYS. Some functions are actually named
17032 something starting with __ and the normal name is an alias. */
17033 #if defined __stub_$ac_func || defined __stub___$ac_func
17040 return $ac_func ();
17045 rm -f conftest.$ac_objext conftest$ac_exeext
17046 if { (ac_try="$ac_link"
17047 case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17051 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17052 (eval "$ac_link") 2>conftest.er1
17054 grep -v '^ *+' conftest.er1 >conftest.err
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17058 (exit $ac_status); } && {
17059 test -z "$ac_c_werror_flag" ||
17060 test ! -s conftest.err
17061 } && test -s conftest$ac_exeext &&
17062 $as_test_x conftest$ac_exeext; then
17063 eval "$as_ac_var=yes"
17065 echo "$as_me: failed program was
:" >&5
17066 sed 's/^/| /' conftest.$ac_ext >&5
17068 eval "$as_ac_var=no
"
17071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17072 conftest$ac_exeext conftest.$ac_ext
17074 ac_res=`eval echo '${'$as_ac_var'}'`
17075 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17076 echo "${ECHO_T}$ac_res" >&6; }
17077 if test `eval echo '${'$as_ac_var'}'` = yes; then
17078 cat >>confdefs.h <<_ACEOF
17079 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17086 # Solaris has libkstat which does not require root.
17088 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17089 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17090 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17091 echo $ECHO_N "(cached
) $ECHO_C" >&6
17093 ac_check_lib_save_LIBS=$LIBS
17094 LIBS="-lkstat $LIBS"
17095 cat >conftest.$ac_ext <<_ACEOF
17098 cat confdefs.h >>conftest.$ac_ext
17099 cat >>conftest.$ac_ext <<_ACEOF
17100 /* end confdefs.h. */
17102 /* Override any GCC internal prototype to avoid an error.
17103 Use char because int might match the return type of a GCC
17104 builtin and then its argument prototype would still apply. */
17108 char kstat_open ();
17112 return kstat_open ();
17117 rm -f conftest.$ac_objext conftest$ac_exeext
17118 if { (ac_try="$ac_link"
17119 case "(($ac_try" in
17120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17121 *) ac_try_echo=$ac_try;;
17123 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17124 (eval "$ac_link") 2>conftest.er1
17126 grep -v '^ *+' conftest.er1 >conftest.err
17128 cat conftest.err >&5
17129 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17130 (exit $ac_status); } && {
17131 test -z "$ac_c_werror_flag" ||
17132 test ! -s conftest.err
17133 } && test -s conftest$ac_exeext &&
17134 $as_test_x conftest$ac_exeext; then
17135 ac_cv_lib_kstat_kstat_open=yes
17137 echo "$as_me: failed program was
:" >&5
17138 sed 's/^/| /' conftest.$ac_ext >&5
17140 ac_cv_lib_kstat_kstat_open=no
17143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17144 conftest$ac_exeext conftest.$ac_ext
17145 LIBS=$ac_check_lib_save_LIBS
17147 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17148 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17149 if test $ac_cv_lib_kstat_kstat_open = yes; then
17150 cat >>confdefs.h <<_ACEOF
17151 #define HAVE_LIBKSTAT 1
17154 LIBS="-lkstat $LIBS"
17158 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17160 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17161 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17162 # to get the right answer into the cache.
17163 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17164 if test $ac_have_func = no; then
17165 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17166 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17167 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17168 echo $ECHO_N "(cached
) $ECHO_C" >&6
17170 ac_check_lib_save_LIBS=$LIBS
17172 cat >conftest.$ac_ext <<_ACEOF
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h. */
17179 /* Override any GCC internal prototype to avoid an error.
17180 Use char because int might match the return type of a GCC
17181 builtin and then its argument prototype would still apply. */
17189 return elf_begin ();
17194 rm -f conftest.$ac_objext conftest$ac_exeext
17195 if { (ac_try="$ac_link"
17196 case "(($ac_try" in
17197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17200 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_link") 2>conftest.er1
17203 grep -v '^ *+' conftest.er1 >conftest.err
17205 cat conftest.err >&5
17206 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17207 (exit $ac_status); } && {
17208 test -z "$ac_c_werror_flag" ||
17209 test ! -s conftest.err
17210 } && test -s conftest$ac_exeext &&
17211 $as_test_x conftest$ac_exeext; then
17212 ac_cv_lib_elf_elf_begin=yes
17214 echo "$as_me: failed program was
:" >&5
17215 sed 's/^/| /' conftest.$ac_ext >&5
17217 ac_cv_lib_elf_elf_begin=no
17220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17221 conftest$ac_exeext conftest.$ac_ext
17222 LIBS=$ac_check_lib_save_LIBS
17224 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17225 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17226 if test $ac_cv_lib_elf_elf_begin = yes; then
17231 if test $ac_have_func = no; then
17232 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17233 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17234 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17235 echo $ECHO_N "(cached
) $ECHO_C" >&6
17237 ac_check_lib_save_LIBS=$LIBS
17239 cat >conftest.$ac_ext <<_ACEOF
17242 cat confdefs.h >>conftest.$ac_ext
17243 cat >>conftest.$ac_ext <<_ACEOF
17244 /* end confdefs.h. */
17246 /* Override any GCC internal prototype to avoid an error.
17247 Use char because int might match the return type of a GCC
17248 builtin and then its argument prototype would still apply. */
17256 return kvm_open ();
17261 rm -f conftest.$ac_objext conftest$ac_exeext
17262 if { (ac_try="$ac_link"
17263 case "(($ac_try" in
17264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17265 *) ac_try_echo=$ac_try;;
17267 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17268 (eval "$ac_link") 2>conftest.er1
17270 grep -v '^ *+' conftest.er1 >conftest.err
17272 cat conftest.err >&5
17273 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17274 (exit $ac_status); } && {
17275 test -z "$ac_c_werror_flag" ||
17276 test ! -s conftest.err
17277 } && test -s conftest$ac_exeext &&
17278 $as_test_x conftest$ac_exeext; then
17279 ac_cv_lib_kvm_kvm_open=yes
17281 echo "$as_me: failed program was
:" >&5
17282 sed 's/^/| /' conftest.$ac_ext >&5
17284 ac_cv_lib_kvm_kvm_open=no
17287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17288 conftest$ac_exeext conftest.$ac_ext
17289 LIBS=$ac_check_lib_save_LIBS
17291 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17292 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17293 if test $ac_cv_lib_kvm_kvm_open = yes; then
17297 # Check for the 4.4BSD definition of getloadavg.
17298 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17299 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17300 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17301 echo $ECHO_N "(cached
) $ECHO_C" >&6
17303 ac_check_lib_save_LIBS=$LIBS
17304 LIBS="-lutil $LIBS"
17305 cat >conftest.$ac_ext <<_ACEOF
17308 cat confdefs.h >>conftest.$ac_ext
17309 cat >>conftest.$ac_ext <<_ACEOF
17310 /* end confdefs.h. */
17312 /* Override any GCC internal prototype to avoid an error.
17313 Use char because int might match the return type of a GCC
17314 builtin and then its argument prototype would still apply. */
17318 char getloadavg ();
17322 return getloadavg ();
17327 rm -f conftest.$ac_objext conftest$ac_exeext
17328 if { (ac_try="$ac_link"
17329 case "(($ac_try" in
17330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17331 *) ac_try_echo=$ac_try;;
17333 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17334 (eval "$ac_link") 2>conftest.er1
17336 grep -v '^ *+' conftest.er1 >conftest.err
17338 cat conftest.err >&5
17339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17340 (exit $ac_status); } && {
17341 test -z "$ac_c_werror_flag" ||
17342 test ! -s conftest.err
17343 } && test -s conftest$ac_exeext &&
17344 $as_test_x conftest$ac_exeext; then
17345 ac_cv_lib_util_getloadavg=yes
17347 echo "$as_me: failed program was
:" >&5
17348 sed 's/^/| /' conftest.$ac_ext >&5
17350 ac_cv_lib_util_getloadavg=no
17353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17354 conftest$ac_exeext conftest.$ac_ext
17355 LIBS=$ac_check_lib_save_LIBS
17357 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17358 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17359 if test $ac_cv_lib_util_getloadavg = yes; then
17360 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17365 if test $ac_have_func = no; then
17366 # There is a commonly available library for RS/6000 AIX.
17367 # Since it is not a standard part of AIX, it might be installed locally.
17368 ac_getloadavg_LIBS=$LIBS
17369 LIBS="-L/usr
/local
/lib
$LIBS"
17370 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17371 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17372 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17373 echo $ECHO_N "(cached
) $ECHO_C" >&6
17375 ac_check_lib_save_LIBS=$LIBS
17376 LIBS="-lgetloadavg $LIBS"
17377 cat >conftest.$ac_ext <<_ACEOF
17380 cat confdefs.h >>conftest.$ac_ext
17381 cat >>conftest.$ac_ext <<_ACEOF
17382 /* end confdefs.h. */
17384 /* Override any GCC internal prototype to avoid an error.
17385 Use char because int might match the return type of a GCC
17386 builtin and then its argument prototype would still apply. */
17390 char getloadavg ();
17394 return getloadavg ();
17399 rm -f conftest.$ac_objext conftest$ac_exeext
17400 if { (ac_try="$ac_link"
17401 case "(($ac_try" in
17402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17403 *) ac_try_echo=$ac_try;;
17405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17406 (eval "$ac_link") 2>conftest.er1
17408 grep -v '^ *+' conftest.er1 >conftest.err
17410 cat conftest.err >&5
17411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17412 (exit $ac_status); } && {
17413 test -z "$ac_c_werror_flag" ||
17414 test ! -s conftest.err
17415 } && test -s conftest$ac_exeext &&
17416 $as_test_x conftest$ac_exeext; then
17417 ac_cv_lib_getloadavg_getloadavg=yes
17419 echo "$as_me: failed program was
:" >&5
17420 sed 's/^/| /' conftest.$ac_ext >&5
17422 ac_cv_lib_getloadavg_getloadavg=no
17425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17426 conftest$ac_exeext conftest.$ac_ext
17427 LIBS=$ac_check_lib_save_LIBS
17429 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17430 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17431 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17432 LIBS="-lgetloadavg $LIBS"
17434 LIBS=$ac_getloadavg_LIBS
17439 # Make sure it is really in the library, if we think we found it,
17440 # otherwise set up the replacement function.
17442 for ac_func in getloadavg
17444 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17445 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17446 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17447 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17448 echo $ECHO_N "(cached
) $ECHO_C" >&6
17450 cat >conftest.$ac_ext <<_ACEOF
17453 cat confdefs.h >>conftest.$ac_ext
17454 cat >>conftest.$ac_ext <<_ACEOF
17455 /* end confdefs.h. */
17456 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17457 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17458 #define $ac_func innocuous_$ac_func
17460 /* System header to define __stub macros and hopefully few prototypes,
17461 which can conflict with char $ac_func (); below.
17462 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17463 <limits.h> exists even on freestanding compilers. */
17466 # include <limits.h>
17468 # include <assert.h>
17473 /* Override any GCC internal prototype to avoid an error.
17474 Use char because int might match the return type of a GCC
17475 builtin and then its argument prototype would still apply. */
17480 /* The GNU C library defines this for functions which it implements
17481 to always fail with ENOSYS. Some functions are actually named
17482 something starting with __ and the normal name is an alias. */
17483 #if defined __stub_$ac_func || defined __stub___$ac_func
17490 return $ac_func ();
17495 rm -f conftest.$ac_objext conftest$ac_exeext
17496 if { (ac_try="$ac_link"
17497 case "(($ac_try" in
17498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17499 *) ac_try_echo=$ac_try;;
17501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17502 (eval "$ac_link") 2>conftest.er1
17504 grep -v '^ *+' conftest.er1 >conftest.err
17506 cat conftest.err >&5
17507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17508 (exit $ac_status); } && {
17509 test -z "$ac_c_werror_flag" ||
17510 test ! -s conftest.err
17511 } && test -s conftest$ac_exeext &&
17512 $as_test_x conftest$ac_exeext; then
17513 eval "$as_ac_var=yes"
17515 echo "$as_me: failed program was
:" >&5
17516 sed 's/^/| /' conftest.$ac_ext >&5
17518 eval "$as_ac_var=no
"
17521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17522 conftest$ac_exeext conftest.$ac_ext
17524 ac_res=`eval echo '${'$as_ac_var'}'`
17525 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17526 echo "${ECHO_T}$ac_res" >&6; }
17527 if test `eval echo '${'$as_ac_var'}'` = yes; then
17528 cat >>confdefs.h <<_ACEOF
17529 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17533 case " $LIBOBJS " in
17534 *" getloadavg.
$ac_objext "* ) ;;
17535 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17540 cat >>confdefs.h <<\_ACEOF
17541 #define C_GETLOADAVG 1
17544 # Figure out what our getloadavg.c needs.
17546 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17547 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17548 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17549 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17550 echo $ECHO_N "(cached
) $ECHO_C" >&6
17552 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17553 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17555 # Is the header compilable?
17556 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17557 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17558 cat >conftest.$ac_ext <<_ACEOF
17561 cat confdefs.h >>conftest.$ac_ext
17562 cat >>conftest.$ac_ext <<_ACEOF
17563 /* end confdefs.h. */
17564 $ac_includes_default
17565 #include <sys/dg_sys_info.h>
17567 rm -f conftest.$ac_objext
17568 if { (ac_try="$ac_compile"
17569 case "(($ac_try" in
17570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17571 *) ac_try_echo=$ac_try;;
17573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17574 (eval "$ac_compile") 2>conftest.er1
17576 grep -v '^ *+' conftest.er1 >conftest.err
17578 cat conftest.err >&5
17579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17580 (exit $ac_status); } && {
17581 test -z "$ac_c_werror_flag" ||
17582 test ! -s conftest.err
17583 } && test -s conftest.$ac_objext; then
17584 ac_header_compiler=yes
17586 echo "$as_me: failed program was
:" >&5
17587 sed 's/^/| /' conftest.$ac_ext >&5
17589 ac_header_compiler=no
17592 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17593 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17594 echo "${ECHO_T}$ac_header_compiler" >&6; }
17596 # Is the header present?
17597 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17598 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17599 cat >conftest.$ac_ext <<_ACEOF
17602 cat confdefs.h >>conftest.$ac_ext
17603 cat >>conftest.$ac_ext <<_ACEOF
17604 /* end confdefs.h. */
17605 #include <sys/dg_sys_info.h>
17607 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17615 grep -v '^ *+' conftest.er1 >conftest.err
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17619 (exit $ac_status); } >/dev/null && {
17620 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17623 ac_header_preproc=yes
17625 echo "$as_me: failed program was
:" >&5
17626 sed 's/^/| /' conftest.$ac_ext >&5
17628 ac_header_preproc=no
17631 rm -f conftest.err conftest.$ac_ext
17632 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17633 echo "${ECHO_T}$ac_header_preproc" >&6; }
17635 # So? What about this header?
17636 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17638 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17639 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17640 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17641 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17642 ac_header_preproc=yes
17645 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17646 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17647 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17648 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17649 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17650 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17651 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17652 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17653 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17654 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17655 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17656 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17660 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17661 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17662 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17663 echo $ECHO_N "(cached
) $ECHO_C" >&6
17665 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17667 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17668 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17671 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17674 cat >>confdefs.h <<\_ACEOF
17679 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17680 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17681 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17682 echo $ECHO_N "(cached
) $ECHO_C" >&6
17684 ac_check_lib_save_LIBS=$LIBS
17686 cat >conftest.$ac_ext <<_ACEOF
17689 cat confdefs.h >>conftest.$ac_ext
17690 cat >>conftest.$ac_ext <<_ACEOF
17691 /* end confdefs.h. */
17693 /* Override any GCC internal prototype to avoid an error.
17694 Use char because int might match the return type of a GCC
17695 builtin and then its argument prototype would still apply. */
17699 char dg_sys_info ();
17703 return dg_sys_info ();
17708 rm -f conftest.$ac_objext conftest$ac_exeext
17709 if { (ac_try="$ac_link"
17710 case "(($ac_try" in
17711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17712 *) ac_try_echo=$ac_try;;
17714 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17715 (eval "$ac_link") 2>conftest.er1
17717 grep -v '^ *+' conftest.er1 >conftest.err
17719 cat conftest.err >&5
17720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17721 (exit $ac_status); } && {
17722 test -z "$ac_c_werror_flag" ||
17723 test ! -s conftest.err
17724 } && test -s conftest$ac_exeext &&
17725 $as_test_x conftest$ac_exeext; then
17726 ac_cv_lib_dgc_dg_sys_info=yes
17728 echo "$as_me: failed program was
:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17731 ac_cv_lib_dgc_dg_sys_info=no
17734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17735 conftest$ac_exeext conftest.$ac_ext
17736 LIBS=$ac_check_lib_save_LIBS
17738 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17739 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17740 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17741 cat >>confdefs.h <<_ACEOF
17742 #define HAVE_LIBDGC 1
17753 if test "${ac_cv_header_locale_h+set}" = set; then
17754 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17755 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17756 if test "${ac_cv_header_locale_h+set}" = set; then
17757 echo $ECHO_N "(cached
) $ECHO_C" >&6
17759 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17760 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17762 # Is the header compilable?
17763 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17764 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17765 cat >conftest.$ac_ext <<_ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h. */
17771 $ac_includes_default
17772 #include <locale.h>
17774 rm -f conftest.$ac_objext
17775 if { (ac_try="$ac_compile"
17776 case "(($ac_try" in
17777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17778 *) ac_try_echo=$ac_try;;
17780 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17781 (eval "$ac_compile") 2>conftest.er1
17783 grep -v '^ *+' conftest.er1 >conftest.err
17785 cat conftest.err >&5
17786 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17787 (exit $ac_status); } && {
17788 test -z "$ac_c_werror_flag" ||
17789 test ! -s conftest.err
17790 } && test -s conftest.$ac_objext; then
17791 ac_header_compiler=yes
17793 echo "$as_me: failed program was
:" >&5
17794 sed 's/^/| /' conftest.$ac_ext >&5
17796 ac_header_compiler=no
17799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17800 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17801 echo "${ECHO_T}$ac_header_compiler" >&6; }
17803 # Is the header present?
17804 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17805 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17806 cat >conftest.$ac_ext <<_ACEOF
17809 cat confdefs.h >>conftest.$ac_ext
17810 cat >>conftest.$ac_ext <<_ACEOF
17811 /* end confdefs.h. */
17812 #include <locale.h>
17814 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17815 case "(($ac_try" in
17816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17817 *) ac_try_echo=$ac_try;;
17819 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17820 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17822 grep -v '^ *+' conftest.er1 >conftest.err
17824 cat conftest.err >&5
17825 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17826 (exit $ac_status); } >/dev/null && {
17827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17828 test ! -s conftest.err
17830 ac_header_preproc=yes
17832 echo "$as_me: failed program was
:" >&5
17833 sed 's/^/| /' conftest.$ac_ext >&5
17835 ac_header_preproc=no
17838 rm -f conftest.err conftest.$ac_ext
17839 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17840 echo "${ECHO_T}$ac_header_preproc" >&6; }
17842 # So? What about this header?
17843 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17845 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17846 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17847 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17848 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17849 ac_header_preproc=yes
17852 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17853 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17854 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17855 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17856 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17857 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17858 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17859 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17860 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17861 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17862 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17863 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17867 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17868 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17869 if test "${ac_cv_header_locale_h+set}" = set; then
17870 echo $ECHO_N "(cached
) $ECHO_C" >&6
17872 ac_cv_header_locale_h=$ac_header_preproc
17874 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17875 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17881 for ac_func in setlocale
17883 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17884 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17885 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17886 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17887 echo $ECHO_N "(cached
) $ECHO_C" >&6
17889 cat >conftest.$ac_ext <<_ACEOF
17892 cat confdefs.h >>conftest.$ac_ext
17893 cat >>conftest.$ac_ext <<_ACEOF
17894 /* end confdefs.h. */
17895 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17897 #define $ac_func innocuous_$ac_func
17899 /* System header to define __stub macros and hopefully few prototypes,
17900 which can conflict with char $ac_func (); below.
17901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17902 <limits.h> exists even on freestanding compilers. */
17905 # include <limits.h>
17907 # include <assert.h>
17912 /* Override any GCC internal prototype to avoid an error.
17913 Use char because int might match the return type of a GCC
17914 builtin and then its argument prototype would still apply. */
17919 /* The GNU C library defines this for functions which it implements
17920 to always fail with ENOSYS. Some functions are actually named
17921 something starting with __ and the normal name is an alias. */
17922 #if defined __stub_$ac_func || defined __stub___$ac_func
17929 return $ac_func ();
17934 rm -f conftest.$ac_objext conftest$ac_exeext
17935 if { (ac_try="$ac_link"
17936 case "(($ac_try" in
17937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17938 *) ac_try_echo=$ac_try;;
17940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17941 (eval "$ac_link") 2>conftest.er1
17943 grep -v '^ *+' conftest.er1 >conftest.err
17945 cat conftest.err >&5
17946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17947 (exit $ac_status); } && {
17948 test -z "$ac_c_werror_flag" ||
17949 test ! -s conftest.err
17950 } && test -s conftest$ac_exeext &&
17951 $as_test_x conftest$ac_exeext; then
17952 eval "$as_ac_var=yes"
17954 echo "$as_me: failed program was
:" >&5
17955 sed 's/^/| /' conftest.$ac_ext >&5
17957 eval "$as_ac_var=no
"
17960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17961 conftest$ac_exeext conftest.$ac_ext
17963 ac_res=`eval echo '${'$as_ac_var'}'`
17964 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17965 echo "${ECHO_T}$ac_res" >&6; }
17966 if test `eval echo '${'$as_ac_var'}'` = yes; then
17967 cat >>confdefs.h <<_ACEOF
17968 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17975 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17976 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17977 # Irix 4.0.5F has the header but not the library.
17978 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17981 cat >>confdefs.h <<\_ACEOF
17987 if test $ac_have_func = no; then
17988 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17989 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17990 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17991 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17992 echo $ECHO_N "(cached
) $ECHO_C" >&6
17994 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17995 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17997 # Is the header compilable?
17998 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17999 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
18000 cat >conftest.$ac_ext <<_ACEOF
18003 cat confdefs.h >>conftest.$ac_ext
18004 cat >>conftest.$ac_ext <<_ACEOF
18005 /* end confdefs.h. */
18006 $ac_includes_default
18007 #include <inq_stats/cpustats.h>
18009 rm -f conftest.$ac_objext
18010 if { (ac_try="$ac_compile"
18011 case "(($ac_try" in
18012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18013 *) ac_try_echo=$ac_try;;
18015 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18016 (eval "$ac_compile") 2>conftest.er1
18018 grep -v '^ *+' conftest.er1 >conftest.err
18020 cat conftest.err >&5
18021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18022 (exit $ac_status); } && {
18023 test -z "$ac_c_werror_flag" ||
18024 test ! -s conftest.err
18025 } && test -s conftest.$ac_objext; then
18026 ac_header_compiler=yes
18028 echo "$as_me: failed program was
:" >&5
18029 sed 's/^/| /' conftest.$ac_ext >&5
18031 ac_header_compiler=no
18034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18035 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18036 echo "${ECHO_T}$ac_header_compiler" >&6; }
18038 # Is the header present?
18039 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18040 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
18041 cat >conftest.$ac_ext <<_ACEOF
18044 cat confdefs.h >>conftest.$ac_ext
18045 cat >>conftest.$ac_ext <<_ACEOF
18046 /* end confdefs.h. */
18047 #include <inq_stats/cpustats.h>
18049 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18050 case "(($ac_try" in
18051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18052 *) ac_try_echo=$ac_try;;
18054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18055 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18057 grep -v '^ *+' conftest.er1 >conftest.err
18059 cat conftest.err >&5
18060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18061 (exit $ac_status); } >/dev/null && {
18062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18063 test ! -s conftest.err
18065 ac_header_preproc=yes
18067 echo "$as_me: failed program was
:" >&5
18068 sed 's/^/| /' conftest.$ac_ext >&5
18070 ac_header_preproc=no
18073 rm -f conftest.err conftest.$ac_ext
18074 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18075 echo "${ECHO_T}$ac_header_preproc" >&6; }
18077 # So? What about this header?
18078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18080 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18081 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18082 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18083 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18084 ac_header_preproc=yes
18087 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18088 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18089 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18090 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18091 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18092 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18093 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18094 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18095 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18096 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18097 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18098 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18102 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18103 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18104 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18105 echo $ECHO_N "(cached
) $ECHO_C" >&6
18107 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18109 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18110 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18113 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18116 cat >>confdefs.h <<\_ACEOF
18121 cat >>confdefs.h <<\_ACEOF
18130 if test $ac_have_func = no; then
18131 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18132 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18133 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18134 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18135 echo $ECHO_N "(cached
) $ECHO_C" >&6
18137 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18138 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18140 # Is the header compilable?
18141 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18142 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18143 cat >conftest.$ac_ext <<_ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18149 $ac_includes_default
18150 #include <sys/cpustats.h>
18152 rm -f conftest.$ac_objext
18153 if { (ac_try="$ac_compile"
18154 case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18158 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_compile") 2>conftest.er1
18161 grep -v '^ *+' conftest.er1 >conftest.err
18163 cat conftest.err >&5
18164 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18165 (exit $ac_status); } && {
18166 test -z "$ac_c_werror_flag" ||
18167 test ! -s conftest.err
18168 } && test -s conftest.$ac_objext; then
18169 ac_header_compiler=yes
18171 echo "$as_me: failed program was
:" >&5
18172 sed 's/^/| /' conftest.$ac_ext >&5
18174 ac_header_compiler=no
18177 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18178 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18179 echo "${ECHO_T}$ac_header_compiler" >&6; }
18181 # Is the header present?
18182 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18183 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18184 cat >conftest.$ac_ext <<_ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h. */
18190 #include <sys/cpustats.h>
18192 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18193 case "(($ac_try" in
18194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18195 *) ac_try_echo=$ac_try;;
18197 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18198 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18200 grep -v '^ *+' conftest.er1 >conftest.err
18202 cat conftest.err >&5
18203 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18204 (exit $ac_status); } >/dev/null && {
18205 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18206 test ! -s conftest.err
18208 ac_header_preproc=yes
18210 echo "$as_me: failed program was
:" >&5
18211 sed 's/^/| /' conftest.$ac_ext >&5
18213 ac_header_preproc=no
18216 rm -f conftest.err conftest.$ac_ext
18217 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18218 echo "${ECHO_T}$ac_header_preproc" >&6; }
18220 # So? What about this header?
18221 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18223 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18224 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18225 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18226 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18227 ac_header_preproc=yes
18230 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18231 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18232 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18233 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18234 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18235 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18236 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18237 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18238 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18239 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18240 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18241 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18245 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18246 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18247 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18248 echo $ECHO_N "(cached
) $ECHO_C" >&6
18250 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18252 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18253 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18256 if test $ac_cv_header_sys_cpustats_h = yes; then
18257 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18266 if test $ac_have_func = no; then
18268 for ac_header in mach/mach.h
18270 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18271 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18272 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18273 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18274 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18275 echo $ECHO_N "(cached
) $ECHO_C" >&6
18277 ac_res=`eval echo '${'$as_ac_Header'}'`
18278 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18279 echo "${ECHO_T}$ac_res" >&6; }
18281 # Is the header compilable?
18282 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18283 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18284 cat >conftest.$ac_ext <<_ACEOF
18287 cat confdefs.h >>conftest.$ac_ext
18288 cat >>conftest.$ac_ext <<_ACEOF
18289 /* end confdefs.h. */
18290 $ac_includes_default
18291 #include <$ac_header>
18293 rm -f conftest.$ac_objext
18294 if { (ac_try="$ac_compile"
18295 case "(($ac_try" in
18296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18297 *) ac_try_echo=$ac_try;;
18299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18300 (eval "$ac_compile") 2>conftest.er1
18302 grep -v '^ *+' conftest.er1 >conftest.err
18304 cat conftest.err >&5
18305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18306 (exit $ac_status); } && {
18307 test -z "$ac_c_werror_flag" ||
18308 test ! -s conftest.err
18309 } && test -s conftest.$ac_objext; then
18310 ac_header_compiler=yes
18312 echo "$as_me: failed program was
:" >&5
18313 sed 's/^/| /' conftest.$ac_ext >&5
18315 ac_header_compiler=no
18318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18319 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18320 echo "${ECHO_T}$ac_header_compiler" >&6; }
18322 # Is the header present?
18323 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18324 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18325 cat >conftest.$ac_ext <<_ACEOF
18328 cat confdefs.h >>conftest.$ac_ext
18329 cat >>conftest.$ac_ext <<_ACEOF
18330 /* end confdefs.h. */
18331 #include <$ac_header>
18333 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18334 case "(($ac_try" in
18335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18336 *) ac_try_echo=$ac_try;;
18338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18339 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18341 grep -v '^ *+' conftest.er1 >conftest.err
18343 cat conftest.err >&5
18344 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18345 (exit $ac_status); } >/dev/null && {
18346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18347 test ! -s conftest.err
18349 ac_header_preproc=yes
18351 echo "$as_me: failed program was
:" >&5
18352 sed 's/^/| /' conftest.$ac_ext >&5
18354 ac_header_preproc=no
18357 rm -f conftest.err conftest.$ac_ext
18358 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18359 echo "${ECHO_T}$ac_header_preproc" >&6; }
18361 # So? What about this header?
18362 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18364 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18365 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18366 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18367 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18368 ac_header_preproc=yes
18371 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18372 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18373 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18374 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18375 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18376 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18377 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18378 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18379 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18380 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18381 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18382 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18386 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18387 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18388 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18389 echo $ECHO_N "(cached
) $ECHO_C" >&6
18391 eval "$as_ac_Header=\
$ac_header_preproc"
18393 ac_res=`eval echo '${'$as_ac_Header'}'`
18394 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18395 echo "${ECHO_T}$ac_res" >&6; }
18398 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18399 cat >>confdefs.h <<_ACEOF
18400 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18410 for ac_header in nlist.h
18412 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18413 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18414 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18415 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18416 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18417 echo $ECHO_N "(cached
) $ECHO_C" >&6
18419 ac_res=`eval echo '${'$as_ac_Header'}'`
18420 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18421 echo "${ECHO_T}$ac_res" >&6; }
18423 # Is the header compilable?
18424 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18425 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18426 cat >conftest.$ac_ext <<_ACEOF
18429 cat confdefs.h >>conftest.$ac_ext
18430 cat >>conftest.$ac_ext <<_ACEOF
18431 /* end confdefs.h. */
18432 $ac_includes_default
18433 #include <$ac_header>
18435 rm -f conftest.$ac_objext
18436 if { (ac_try="$ac_compile"
18437 case "(($ac_try" in
18438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18439 *) ac_try_echo=$ac_try;;
18441 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18442 (eval "$ac_compile") 2>conftest.er1
18444 grep -v '^ *+' conftest.er1 >conftest.err
18446 cat conftest.err >&5
18447 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18448 (exit $ac_status); } && {
18449 test -z "$ac_c_werror_flag" ||
18450 test ! -s conftest.err
18451 } && test -s conftest.$ac_objext; then
18452 ac_header_compiler=yes
18454 echo "$as_me: failed program was
:" >&5
18455 sed 's/^/| /' conftest.$ac_ext >&5
18457 ac_header_compiler=no
18460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18461 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18462 echo "${ECHO_T}$ac_header_compiler" >&6; }
18464 # Is the header present?
18465 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18466 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18467 cat >conftest.$ac_ext <<_ACEOF
18470 cat confdefs.h >>conftest.$ac_ext
18471 cat >>conftest.$ac_ext <<_ACEOF
18472 /* end confdefs.h. */
18473 #include <$ac_header>
18475 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18476 case "(($ac_try" in
18477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18478 *) ac_try_echo=$ac_try;;
18480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18481 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18483 grep -v '^ *+' conftest.er1 >conftest.err
18485 cat conftest.err >&5
18486 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18487 (exit $ac_status); } >/dev/null && {
18488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18489 test ! -s conftest.err
18491 ac_header_preproc=yes
18493 echo "$as_me: failed program was
:" >&5
18494 sed 's/^/| /' conftest.$ac_ext >&5
18496 ac_header_preproc=no
18499 rm -f conftest.err conftest.$ac_ext
18500 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18501 echo "${ECHO_T}$ac_header_preproc" >&6; }
18503 # So? What about this header?
18504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18506 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18507 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18508 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18510 ac_header_preproc=yes
18513 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18514 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18515 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18516 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18517 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18518 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18519 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18520 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18521 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18523 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18524 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18528 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18529 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18530 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18531 echo $ECHO_N "(cached
) $ECHO_C" >&6
18533 eval "$as_ac_Header=\
$ac_header_preproc"
18535 ac_res=`eval echo '${'$as_ac_Header'}'`
18536 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18537 echo "${ECHO_T}$ac_res" >&6; }
18540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18541 cat >>confdefs.h <<_ACEOF
18542 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18544 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18545 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18546 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18547 echo $ECHO_N "(cached
) $ECHO_C" >&6
18549 cat >conftest.$ac_ext <<_ACEOF
18552 cat confdefs.h >>conftest.$ac_ext
18553 cat >>conftest.$ac_ext <<_ACEOF
18554 /* end confdefs.h. */
18560 static struct nlist ac_aggr;
18561 if (ac_aggr.n_un.n_name)
18567 rm -f conftest.$ac_objext
18568 if { (ac_try="$ac_compile"
18569 case "(($ac_try" in
18570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18571 *) ac_try_echo=$ac_try;;
18573 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18574 (eval "$ac_compile") 2>conftest.er1
18576 grep -v '^ *+' conftest.er1 >conftest.err
18578 cat conftest.err >&5
18579 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18580 (exit $ac_status); } && {
18581 test -z "$ac_c_werror_flag" ||
18582 test ! -s conftest.err
18583 } && test -s conftest.$ac_objext; then
18584 ac_cv_member_struct_nlist_n_un_n_name=yes
18586 echo "$as_me: failed program was
:" >&5
18587 sed 's/^/| /' conftest.$ac_ext >&5
18589 cat >conftest.$ac_ext <<_ACEOF
18592 cat confdefs.h >>conftest.$ac_ext
18593 cat >>conftest.$ac_ext <<_ACEOF
18594 /* end confdefs.h. */
18600 static struct nlist ac_aggr;
18601 if (sizeof ac_aggr.n_un.n_name)
18607 rm -f conftest.$ac_objext
18608 if { (ac_try="$ac_compile"
18609 case "(($ac_try" in
18610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18611 *) ac_try_echo=$ac_try;;
18613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18614 (eval "$ac_compile") 2>conftest.er1
18616 grep -v '^ *+' conftest.er1 >conftest.err
18618 cat conftest.err >&5
18619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18620 (exit $ac_status); } && {
18621 test -z "$ac_c_werror_flag" ||
18622 test ! -s conftest.err
18623 } && test -s conftest.$ac_objext; then
18624 ac_cv_member_struct_nlist_n_un_n_name=yes
18626 echo "$as_me: failed program was
:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18629 ac_cv_member_struct_nlist_n_un_n_name=no
18632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18637 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18638 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18639 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18641 cat >>confdefs.h <<_ACEOF
18642 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18646 cat >>confdefs.h <<\_ACEOF
18647 #define NLIST_NAME_UNION 1
18661 # Some definitions of getloadavg require that the program be installed setgid.
18662 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18663 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18664 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18665 echo $ECHO_N "(cached
) $ECHO_C" >&6
18667 cat >conftest.$ac_ext <<_ACEOF
18670 cat confdefs.h >>conftest.$ac_ext
18671 cat >>conftest.$ac_ext <<_ACEOF
18672 /* end confdefs.h. */
18673 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18674 #ifdef LDAV_PRIVILEGED
18675 Yowza Am I SETGID yet
18678 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18679 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18680 ac_cv_func_getloadavg_setgid=yes
18682 ac_cv_func_getloadavg_setgid=no
18687 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18688 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18689 if test $ac_cv_func_getloadavg_setgid = yes; then
18692 cat >>confdefs.h <<\_ACEOF
18693 #define GETLOADAVG_PRIVILEGED 1
18700 if test $ac_cv_func_getloadavg_setgid = yes; then
18701 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18702 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18703 if test "${ac_cv_group_kmem+set}" = set; then
18704 echo $ECHO_N "(cached
) $ECHO_C" >&6
18706 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18707 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18708 # If we got an error (system does not support symlinks), try without -L.
18709 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18710 ac_cv_group_kmem=`echo $ac_ls_output \
18711 | sed -ne 's/[ ][ ]*/ /g;
18712 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18716 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18717 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18718 KMEM_GROUP=$ac_cv_group_kmem
18720 if test "x
$ac_save_LIBS" = x; then
18721 GETLOADAVG_LIBS=$LIBS
18723 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18729 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18730 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18731 if test "${ac_cv_sys_largefile_source+set}" = set; then
18732 echo $ECHO_N "(cached
) $ECHO_C" >&6
18735 cat >conftest.$ac_ext <<_ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18745 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18750 rm -f conftest.$ac_objext conftest$ac_exeext
18751 if { (ac_try="$ac_link"
18752 case "(($ac_try" in
18753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18754 *) ac_try_echo=$ac_try;;
18756 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18757 (eval "$ac_link") 2>conftest.er1
18759 grep -v '^ *+' conftest.er1 >conftest.err
18761 cat conftest.err >&5
18762 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18763 (exit $ac_status); } && {
18764 test -z "$ac_c_werror_flag" ||
18765 test ! -s conftest.err
18766 } && test -s conftest$ac_exeext &&
18767 $as_test_x conftest$ac_exeext; then
18768 ac_cv_sys_largefile_source=no; break
18770 echo "$as_me: failed program was
:" >&5
18771 sed 's/^/| /' conftest.$ac_ext >&5
18776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18777 conftest$ac_exeext conftest.$ac_ext
18778 cat >conftest.$ac_ext <<_ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h. */
18784 #define _LARGEFILE_SOURCE 1
18789 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18794 rm -f conftest.$ac_objext conftest$ac_exeext
18795 if { (ac_try="$ac_link"
18796 case "(($ac_try" in
18797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18798 *) ac_try_echo=$ac_try;;
18800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18801 (eval "$ac_link") 2>conftest.er1
18803 grep -v '^ *+' conftest.er1 >conftest.err
18805 cat conftest.err >&5
18806 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18807 (exit $ac_status); } && {
18808 test -z "$ac_c_werror_flag" ||
18809 test ! -s conftest.err
18810 } && test -s conftest$ac_exeext &&
18811 $as_test_x conftest$ac_exeext; then
18812 ac_cv_sys_largefile_source=1; break
18814 echo "$as_me: failed program was
:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18821 conftest$ac_exeext conftest.$ac_ext
18822 ac_cv_sys_largefile_source=unknown
18826 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18827 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18828 case $ac_cv_sys_largefile_source in #(
18831 cat >>confdefs.h <<_ACEOF
18832 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18838 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18839 # in glibc 2.1.3, but that breaks too many other things.
18840 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18841 if test $ac_cv_sys_largefile_source != unknown; then
18843 cat >>confdefs.h <<\_ACEOF
18844 #define HAVE_FSEEKO 1
18850 # Configure getopt.
18851 # getopt.m4 serial 10
18853 # The getopt module assume you want GNU getopt, with getopt_long etc,
18854 # rather than vanilla POSIX getopt. This means your your code should
18855 # always include <getopt.h> for the getopt prototypes.
18867 # Prerequisites of lib/getopt*.
18874 for ac_header in getopt.h
18876 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18877 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18878 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18879 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18880 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18881 echo $ECHO_N "(cached
) $ECHO_C" >&6
18883 ac_res=`eval echo '${'$as_ac_Header'}'`
18884 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18885 echo "${ECHO_T}$ac_res" >&6; }
18887 # Is the header compilable?
18888 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18889 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18890 cat >conftest.$ac_ext <<_ACEOF
18893 cat confdefs.h >>conftest.$ac_ext
18894 cat >>conftest.$ac_ext <<_ACEOF
18895 /* end confdefs.h. */
18896 $ac_includes_default
18897 #include <$ac_header>
18899 rm -f conftest.$ac_objext
18900 if { (ac_try="$ac_compile"
18901 case "(($ac_try" in
18902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18903 *) ac_try_echo=$ac_try;;
18905 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18906 (eval "$ac_compile") 2>conftest.er1
18908 grep -v '^ *+' conftest.er1 >conftest.err
18910 cat conftest.err >&5
18911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18912 (exit $ac_status); } && {
18913 test -z "$ac_c_werror_flag" ||
18914 test ! -s conftest.err
18915 } && test -s conftest.$ac_objext; then
18916 ac_header_compiler=yes
18918 echo "$as_me: failed program was
:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18921 ac_header_compiler=no
18924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18925 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18926 echo "${ECHO_T}$ac_header_compiler" >&6; }
18928 # Is the header present?
18929 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18930 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18931 cat >conftest.$ac_ext <<_ACEOF
18934 cat confdefs.h >>conftest.$ac_ext
18935 cat >>conftest.$ac_ext <<_ACEOF
18936 /* end confdefs.h. */
18937 #include <$ac_header>
18939 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18940 case "(($ac_try" in
18941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18942 *) ac_try_echo=$ac_try;;
18944 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18945 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18947 grep -v '^ *+' conftest.er1 >conftest.err
18949 cat conftest.err >&5
18950 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18951 (exit $ac_status); } >/dev/null && {
18952 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18953 test ! -s conftest.err
18955 ac_header_preproc=yes
18957 echo "$as_me: failed program was
:" >&5
18958 sed 's/^/| /' conftest.$ac_ext >&5
18960 ac_header_preproc=no
18963 rm -f conftest.err conftest.$ac_ext
18964 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18965 echo "${ECHO_T}$ac_header_preproc" >&6; }
18967 # So? What about this header?
18968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18970 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18971 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18972 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18973 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18974 ac_header_preproc=yes
18977 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18978 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18979 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18980 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18981 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18982 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18983 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18984 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18985 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18986 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18987 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18988 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18992 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18993 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18994 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18995 echo $ECHO_N "(cached
) $ECHO_C" >&6
18997 eval "$as_ac_Header=\
$ac_header_preproc"
18999 ac_res=`eval echo '${'$as_ac_Header'}'`
19000 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19001 echo "${ECHO_T}$ac_res" >&6; }
19004 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19005 cat >>confdefs.h <<_ACEOF
19006 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19015 if test -z "$GETOPT_H"; then
19017 for ac_func in getopt_long_only
19019 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19020 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19021 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19022 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19023 echo $ECHO_N "(cached
) $ECHO_C" >&6
19025 cat >conftest.$ac_ext <<_ACEOF
19028 cat confdefs.h >>conftest.$ac_ext
19029 cat >>conftest.$ac_ext <<_ACEOF
19030 /* end confdefs.h. */
19031 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19032 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19033 #define $ac_func innocuous_$ac_func
19035 /* System header to define __stub macros and hopefully few prototypes,
19036 which can conflict with char $ac_func (); below.
19037 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19038 <limits.h> exists even on freestanding compilers. */
19041 # include <limits.h>
19043 # include <assert.h>
19048 /* Override any GCC internal prototype to avoid an error.
19049 Use char because int might match the return type of a GCC
19050 builtin and then its argument prototype would still apply. */
19055 /* The GNU C library defines this for functions which it implements
19056 to always fail with ENOSYS. Some functions are actually named
19057 something starting with __ and the normal name is an alias. */
19058 #if defined __stub_$ac_func || defined __stub___$ac_func
19065 return $ac_func ();
19070 rm -f conftest.$ac_objext conftest$ac_exeext
19071 if { (ac_try="$ac_link"
19072 case "(($ac_try" in
19073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19074 *) ac_try_echo=$ac_try;;
19076 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19077 (eval "$ac_link") 2>conftest.er1
19079 grep -v '^ *+' conftest.er1 >conftest.err
19081 cat conftest.err >&5
19082 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19083 (exit $ac_status); } && {
19084 test -z "$ac_c_werror_flag" ||
19085 test ! -s conftest.err
19086 } && test -s conftest$ac_exeext &&
19087 $as_test_x conftest$ac_exeext; then
19088 eval "$as_ac_var=yes"
19090 echo "$as_me: failed program was
:" >&5
19091 sed 's/^/| /' conftest.$ac_ext >&5
19093 eval "$as_ac_var=no
"
19096 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19097 conftest$ac_exeext conftest.$ac_ext
19099 ac_res=`eval echo '${'$as_ac_var'}'`
19100 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19101 echo "${ECHO_T}$ac_res" >&6; }
19102 if test `eval echo '${'$as_ac_var'}'` = yes; then
19103 cat >>confdefs.h <<_ACEOF
19104 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19114 if test -z "$GETOPT_H"; then
19115 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19116 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19117 if test "${ac_cv_have_decl_optreset+set}" = set; then
19118 echo $ECHO_N "(cached
) $ECHO_C" >&6
19120 cat >conftest.$ac_ext <<_ACEOF
19123 cat confdefs.h >>conftest.$ac_ext
19124 cat >>conftest.$ac_ext <<_ACEOF
19125 /* end confdefs.h. */
19126 #include <getopt.h>
19139 rm -f conftest.$ac_objext
19140 if { (ac_try="$ac_compile"
19141 case "(($ac_try" in
19142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19143 *) ac_try_echo=$ac_try;;
19145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19146 (eval "$ac_compile") 2>conftest.er1
19148 grep -v '^ *+' conftest.er1 >conftest.err
19150 cat conftest.err >&5
19151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19152 (exit $ac_status); } && {
19153 test -z "$ac_c_werror_flag" ||
19154 test ! -s conftest.err
19155 } && test -s conftest.$ac_objext; then
19156 ac_cv_have_decl_optreset=yes
19158 echo "$as_me: failed program was
:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19161 ac_cv_have_decl_optreset=no
19164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19166 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19167 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19168 if test $ac_cv_have_decl_optreset = yes; then
19174 if test -z "$GETOPT_H"; then
19175 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19176 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19177 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19178 echo $ECHO_N "(cached
) $ECHO_C" >&6
19180 if test "$cross_compiling" = yes; then
19181 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19182 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19183 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19184 echo $ECHO_N "(cached
) $ECHO_C" >&6
19186 cat >conftest.$ac_ext <<_ACEOF
19189 cat confdefs.h >>conftest.$ac_ext
19190 cat >>conftest.$ac_ext <<_ACEOF
19191 /* end confdefs.h. */
19192 #include <getopt.h>
19197 #ifndef getopt_clip
19198 (void) getopt_clip;
19205 rm -f conftest.$ac_objext
19206 if { (ac_try="$ac_compile"
19207 case "(($ac_try" in
19208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19209 *) ac_try_echo=$ac_try;;
19211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19212 (eval "$ac_compile") 2>conftest.er1
19214 grep -v '^ *+' conftest.er1 >conftest.err
19216 cat conftest.err >&5
19217 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19218 (exit $ac_status); } && {
19219 test -z "$ac_c_werror_flag" ||
19220 test ! -s conftest.err
19221 } && test -s conftest.$ac_objext; then
19222 ac_cv_have_decl_getopt_clip=yes
19224 echo "$as_me: failed program was
:" >&5
19225 sed 's/^/| /' conftest.$ac_ext >&5
19227 ac_cv_have_decl_getopt_clip=no
19230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19232 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19233 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19234 if test $ac_cv_have_decl_getopt_clip = yes; then
19235 gl_cv_func_gnu_getopt=no
19237 gl_cv_func_gnu_getopt=yes
19241 cat >conftest.$ac_ext <<_ACEOF
19244 cat confdefs.h >>conftest.$ac_ext
19245 cat >>conftest.$ac_ext <<_ACEOF
19246 /* end confdefs.h. */
19247 #include <getopt.h>
19253 myargv[0] = "conftest
";
19256 return getopt (2, myargv, "+a
") != '?';
19262 rm -f conftest$ac_exeext
19263 if { (ac_try="$ac_link"
19264 case "(($ac_try" in
19265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19266 *) ac_try_echo=$ac_try;;
19268 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19269 (eval "$ac_link") 2>&5
19271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19272 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19273 { (case "(($ac_try" in
19274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275 *) ac_try_echo=$ac_try;;
19277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19278 (eval "$ac_try") 2>&5
19280 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19281 (exit $ac_status); }; }; then
19282 gl_cv_func_gnu_getopt=yes
19284 echo "$as_me: program exited with status
$ac_status" >&5
19285 echo "$as_me: failed program was
:" >&5
19286 sed 's/^/| /' conftest.$ac_ext >&5
19288 ( exit $ac_status )
19289 gl_cv_func_gnu_getopt=no
19291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19296 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19297 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19298 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19305 if test -n "$GETOPT_H"; then
19310 cat >>confdefs.h <<\_ACEOF
19311 #define __GETOPT_PREFIX rpl_
19317 GETOPTOBJS='getopt.o getopt1.o'
19324 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19325 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19326 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19327 echo $ECHO_N "(cached
) $ECHO_C" >&6
19329 # Use it with a single arg.
19330 cat >conftest.$ac_ext <<_ACEOF
19333 cat confdefs.h >>conftest.$ac_ext
19334 cat >>conftest.$ac_ext <<_ACEOF
19335 /* end confdefs.h. */
19336 $ac_includes_default
19345 rm -f conftest.$ac_objext
19346 if { (ac_try="$ac_compile"
19347 case "(($ac_try" in
19348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19349 *) ac_try_echo=$ac_try;;
19351 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19352 (eval "$ac_compile") 2>conftest.er1
19354 grep -v '^ *+' conftest.er1 >conftest.err
19356 cat conftest.err >&5
19357 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19358 (exit $ac_status); } && {
19359 test -z "$ac_c_werror_flag" ||
19360 test ! -s conftest.err
19361 } && test -s conftest.$ac_objext; then
19362 ac_cv_func_getpgrp_void=no
19364 echo "$as_me: failed program was
:" >&5
19365 sed 's/^/| /' conftest.$ac_ext >&5
19367 ac_cv_func_getpgrp_void=yes
19370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19373 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19374 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19375 if test $ac_cv_func_getpgrp_void = yes; then
19377 cat >>confdefs.h <<\_ACEOF
19378 #define GETPGRP_VOID 1
19385 for ac_func in strftime
19387 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19388 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19389 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19390 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19391 echo $ECHO_N "(cached
) $ECHO_C" >&6
19393 cat >conftest.$ac_ext <<_ACEOF
19396 cat confdefs.h >>conftest.$ac_ext
19397 cat >>conftest.$ac_ext <<_ACEOF
19398 /* end confdefs.h. */
19399 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19400 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19401 #define $ac_func innocuous_$ac_func
19403 /* System header to define __stub macros and hopefully few prototypes,
19404 which can conflict with char $ac_func (); below.
19405 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19406 <limits.h> exists even on freestanding compilers. */
19409 # include <limits.h>
19411 # include <assert.h>
19416 /* Override any GCC internal prototype to avoid an error.
19417 Use char because int might match the return type of a GCC
19418 builtin and then its argument prototype would still apply. */
19423 /* The GNU C library defines this for functions which it implements
19424 to always fail with ENOSYS. Some functions are actually named
19425 something starting with __ and the normal name is an alias. */
19426 #if defined __stub_$ac_func || defined __stub___$ac_func
19433 return $ac_func ();
19438 rm -f conftest.$ac_objext conftest$ac_exeext
19439 if { (ac_try="$ac_link"
19440 case "(($ac_try" in
19441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19442 *) ac_try_echo=$ac_try;;
19444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19445 (eval "$ac_link") 2>conftest.er1
19447 grep -v '^ *+' conftest.er1 >conftest.err
19449 cat conftest.err >&5
19450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19451 (exit $ac_status); } && {
19452 test -z "$ac_c_werror_flag" ||
19453 test ! -s conftest.err
19454 } && test -s conftest$ac_exeext &&
19455 $as_test_x conftest$ac_exeext; then
19456 eval "$as_ac_var=yes"
19458 echo "$as_me: failed program was
:" >&5
19459 sed 's/^/| /' conftest.$ac_ext >&5
19461 eval "$as_ac_var=no
"
19464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19465 conftest$ac_exeext conftest.$ac_ext
19467 ac_res=`eval echo '${'$as_ac_var'}'`
19468 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19469 echo "${ECHO_T}$ac_res" >&6; }
19470 if test `eval echo '${'$as_ac_var'}'` = yes; then
19471 cat >>confdefs.h <<_ACEOF
19472 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19476 # strftime is in -lintl on SCO UNIX.
19477 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19478 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19479 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19480 echo $ECHO_N "(cached
) $ECHO_C" >&6
19482 ac_check_lib_save_LIBS=$LIBS
19483 LIBS="-lintl $LIBS"
19484 cat >conftest.$ac_ext <<_ACEOF
19487 cat confdefs.h >>conftest.$ac_ext
19488 cat >>conftest.$ac_ext <<_ACEOF
19489 /* end confdefs.h. */
19491 /* Override any GCC internal prototype to avoid an error.
19492 Use char because int might match the return type of a GCC
19493 builtin and then its argument prototype would still apply. */
19501 return strftime ();
19506 rm -f conftest.$ac_objext conftest$ac_exeext
19507 if { (ac_try="$ac_link"
19508 case "(($ac_try" in
19509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19510 *) ac_try_echo=$ac_try;;
19512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19513 (eval "$ac_link") 2>conftest.er1
19515 grep -v '^ *+' conftest.er1 >conftest.err
19517 cat conftest.err >&5
19518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19519 (exit $ac_status); } && {
19520 test -z "$ac_c_werror_flag" ||
19521 test ! -s conftest.err
19522 } && test -s conftest$ac_exeext &&
19523 $as_test_x conftest$ac_exeext; then
19524 ac_cv_lib_intl_strftime=yes
19526 echo "$as_me: failed program was
:" >&5
19527 sed 's/^/| /' conftest.$ac_ext >&5
19529 ac_cv_lib_intl_strftime=no
19532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19533 conftest$ac_exeext conftest.$ac_ext
19534 LIBS=$ac_check_lib_save_LIBS
19536 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19537 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19538 if test $ac_cv_lib_intl_strftime = yes; then
19539 cat >>confdefs.h <<\_ACEOF
19540 #define HAVE_STRFTIME 1
19543 LIBS="-lintl $LIBS"
19552 for ac_func in grantpt
19554 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19555 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19556 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19557 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19558 echo $ECHO_N "(cached
) $ECHO_C" >&6
19560 cat >conftest.$ac_ext <<_ACEOF
19563 cat confdefs.h >>conftest.$ac_ext
19564 cat >>conftest.$ac_ext <<_ACEOF
19565 /* end confdefs.h. */
19566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19568 #define $ac_func innocuous_$ac_func
19570 /* System header to define __stub macros and hopefully few prototypes,
19571 which can conflict with char $ac_func (); below.
19572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19573 <limits.h> exists even on freestanding compilers. */
19576 # include <limits.h>
19578 # include <assert.h>
19583 /* Override any GCC internal prototype to avoid an error.
19584 Use char because int might match the return type of a GCC
19585 builtin and then its argument prototype would still apply. */
19590 /* The GNU C library defines this for functions which it implements
19591 to always fail with ENOSYS. Some functions are actually named
19592 something starting with __ and the normal name is an alias. */
19593 #if defined __stub_$ac_func || defined __stub___$ac_func
19600 return $ac_func ();
19605 rm -f conftest.$ac_objext conftest$ac_exeext
19606 if { (ac_try="$ac_link"
19607 case "(($ac_try" in
19608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19609 *) ac_try_echo=$ac_try;;
19611 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19612 (eval "$ac_link") 2>conftest.er1
19614 grep -v '^ *+' conftest.er1 >conftest.err
19616 cat conftest.err >&5
19617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19618 (exit $ac_status); } && {
19619 test -z "$ac_c_werror_flag" ||
19620 test ! -s conftest.err
19621 } && test -s conftest$ac_exeext &&
19622 $as_test_x conftest$ac_exeext; then
19623 eval "$as_ac_var=yes"
19625 echo "$as_me: failed program was
:" >&5
19626 sed 's/^/| /' conftest.$ac_ext >&5
19628 eval "$as_ac_var=no
"
19631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19632 conftest$ac_exeext conftest.$ac_ext
19634 ac_res=`eval echo '${'$as_ac_var'}'`
19635 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19636 echo "${ECHO_T}$ac_res" >&6; }
19637 if test `eval echo '${'$as_ac_var'}'` = yes; then
19638 cat >>confdefs.h <<_ACEOF
19639 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19646 # PTY-related GNU extensions.
19648 for ac_func in getpt
19650 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19651 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19652 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19653 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19654 echo $ECHO_N "(cached
) $ECHO_C" >&6
19656 cat >conftest.$ac_ext <<_ACEOF
19659 cat confdefs.h >>conftest.$ac_ext
19660 cat >>conftest.$ac_ext <<_ACEOF
19661 /* end confdefs.h. */
19662 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19663 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19664 #define $ac_func innocuous_$ac_func
19666 /* System header to define __stub macros and hopefully few prototypes,
19667 which can conflict with char $ac_func (); below.
19668 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19669 <limits.h> exists even on freestanding compilers. */
19672 # include <limits.h>
19674 # include <assert.h>
19679 /* Override any GCC internal prototype to avoid an error.
19680 Use char because int might match the return type of a GCC
19681 builtin and then its argument prototype would still apply. */
19686 /* The GNU C library defines this for functions which it implements
19687 to always fail with ENOSYS. Some functions are actually named
19688 something starting with __ and the normal name is an alias. */
19689 #if defined __stub_$ac_func || defined __stub___$ac_func
19696 return $ac_func ();
19701 rm -f conftest.$ac_objext conftest$ac_exeext
19702 if { (ac_try="$ac_link"
19703 case "(($ac_try" in
19704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19705 *) ac_try_echo=$ac_try;;
19707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19708 (eval "$ac_link") 2>conftest.er1
19710 grep -v '^ *+' conftest.er1 >conftest.err
19712 cat conftest.err >&5
19713 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19714 (exit $ac_status); } && {
19715 test -z "$ac_c_werror_flag" ||
19716 test ! -s conftest.err
19717 } && test -s conftest$ac_exeext &&
19718 $as_test_x conftest$ac_exeext; then
19719 eval "$as_ac_var=yes"
19721 echo "$as_me: failed program was
:" >&5
19722 sed 's/^/| /' conftest.$ac_ext >&5
19724 eval "$as_ac_var=no
"
19727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19728 conftest$ac_exeext conftest.$ac_ext
19730 ac_res=`eval echo '${'$as_ac_var'}'`
19731 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19732 echo "${ECHO_T}$ac_res" >&6; }
19733 if test `eval echo '${'$as_ac_var'}'` = yes; then
19734 cat >>confdefs.h <<_ACEOF
19735 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19742 # Check this now, so that we will NOT find the above functions in ncurses.
19743 # That is because we have not set up to link ncurses in lib-src.
19744 # It's better to believe a function is not available
19745 # than to expect to find it in ncurses.
19747 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19748 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19749 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19750 echo $ECHO_N "(cached
) $ECHO_C" >&6
19752 ac_check_lib_save_LIBS=$LIBS
19753 LIBS="-lncurses $LIBS"
19754 cat >conftest.$ac_ext <<_ACEOF
19757 cat confdefs.h >>conftest.$ac_ext
19758 cat >>conftest.$ac_ext <<_ACEOF
19759 /* end confdefs.h. */
19761 /* Override any GCC internal prototype to avoid an error.
19762 Use char because int might match the return type of a GCC
19763 builtin and then its argument prototype would still apply. */
19776 rm -f conftest.$ac_objext conftest$ac_exeext
19777 if { (ac_try="$ac_link"
19778 case "(($ac_try" in
19779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19780 *) ac_try_echo=$ac_try;;
19782 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19783 (eval "$ac_link") 2>conftest.er1
19785 grep -v '^ *+' conftest.er1 >conftest.err
19787 cat conftest.err >&5
19788 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19789 (exit $ac_status); } && {
19790 test -z "$ac_c_werror_flag" ||
19791 test ! -s conftest.err
19792 } && test -s conftest$ac_exeext &&
19793 $as_test_x conftest$ac_exeext; then
19794 ac_cv_lib_ncurses_tparm=yes
19796 echo "$as_me: failed program was
:" >&5
19797 sed 's/^/| /' conftest.$ac_ext >&5
19799 ac_cv_lib_ncurses_tparm=no
19802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19803 conftest$ac_exeext conftest.$ac_ext
19804 LIBS=$ac_check_lib_save_LIBS
19806 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19807 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19808 if test $ac_cv_lib_ncurses_tparm = yes; then
19809 cat >>confdefs.h <<_ACEOF
19810 #define HAVE_LIBNCURSES 1
19813 LIBS="-lncurses $LIBS"
19818 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19821 cat >conftest.$ac_ext <<_ACEOF
19824 cat confdefs.h >>conftest.$ac_ext
19825 cat >>conftest.$ac_ext <<_ACEOF
19826 /* end confdefs.h. */
19827 #include <netinet/in.h>
19828 #include <arpa/nameser.h>
19829 #include <resolv.h>
19838 rm -f conftest.$ac_objext conftest$ac_exeext
19839 if { (ac_try="$ac_link"
19840 case "(($ac_try" in
19841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19842 *) ac_try_echo=$ac_try;;
19844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19845 (eval "$ac_link") 2>conftest.er1
19847 grep -v '^ *+' conftest.er1 >conftest.err
19849 cat conftest.err >&5
19850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19851 (exit $ac_status); } && {
19852 test -z "$ac_c_werror_flag" ||
19853 test ! -s conftest.err
19854 } && test -s conftest$ac_exeext &&
19855 $as_test_x conftest$ac_exeext; then
19858 echo "$as_me: failed program was
:" >&5
19859 sed 's/^/| /' conftest.$ac_ext >&5
19864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19865 conftest$ac_exeext conftest.$ac_ext
19866 if test "$have_res_init" = no; then
19868 LIBS="$LIBS -lresolv"
19869 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19870 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19871 cat >conftest.$ac_ext <<_ACEOF
19874 cat confdefs.h >>conftest.$ac_ext
19875 cat >>conftest.$ac_ext <<_ACEOF
19876 /* end confdefs.h. */
19877 #include <netinet/in.h>
19878 #include <arpa/nameser.h>
19879 #include <resolv.h>
19888 rm -f conftest.$ac_objext conftest$ac_exeext
19889 if { (ac_try="$ac_link"
19890 case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_link") 2>conftest.er1
19897 grep -v '^ *+' conftest.er1 >conftest.err
19899 cat conftest.err >&5
19900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19901 (exit $ac_status); } && {
19902 test -z "$ac_c_werror_flag" ||
19903 test ! -s conftest.err
19904 } && test -s conftest$ac_exeext &&
19905 $as_test_x conftest$ac_exeext; then
19908 echo "$as_me: failed program was
:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19914 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19915 conftest$ac_exeext conftest.$ac_ext
19916 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19917 echo "${ECHO_T}$have_res_init" >&6; }
19918 if test "$have_res_init" = yes ; then
19924 if test "$have_res_init" = yes; then
19926 cat >>confdefs.h <<\_ACEOF
19927 #define HAVE_RES_INIT 1
19932 # Do we need the Hesiod library to provide the support routines?
19933 if test "$with_hesiod" != no ; then
19934 # Don't set $LIBS here -- see comments above.
19935 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19936 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19937 if test "${ac_cv_func_res_send+set}" = set; then
19938 echo $ECHO_N "(cached
) $ECHO_C" >&6
19940 cat >conftest.$ac_ext <<_ACEOF
19943 cat confdefs.h >>conftest.$ac_ext
19944 cat >>conftest.$ac_ext <<_ACEOF
19945 /* end confdefs.h. */
19946 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19948 #define res_send innocuous_res_send
19950 /* System header to define __stub macros and hopefully few prototypes,
19951 which can conflict with char res_send (); below.
19952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19953 <limits.h> exists even on freestanding compilers. */
19956 # include <limits.h>
19958 # include <assert.h>
19963 /* Override any GCC internal prototype to avoid an error.
19964 Use char because int might match the return type of a GCC
19965 builtin and then its argument prototype would still apply. */
19970 /* The GNU C library defines this for functions which it implements
19971 to always fail with ENOSYS. Some functions are actually named
19972 something starting with __ and the normal name is an alias. */
19973 #if defined __stub_res_send || defined __stub___res_send
19980 return res_send ();
19985 rm -f conftest.$ac_objext conftest$ac_exeext
19986 if { (ac_try="$ac_link"
19987 case "(($ac_try" in
19988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19989 *) ac_try_echo=$ac_try;;
19991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19992 (eval "$ac_link") 2>conftest.er1
19994 grep -v '^ *+' conftest.er1 >conftest.err
19996 cat conftest.err >&5
19997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19998 (exit $ac_status); } && {
19999 test -z "$ac_c_werror_flag" ||
20000 test ! -s conftest.err
20001 } && test -s conftest$ac_exeext &&
20002 $as_test_x conftest$ac_exeext; then
20003 ac_cv_func_res_send=yes
20005 echo "$as_me: failed program was
:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20008 ac_cv_func_res_send=no
20011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20012 conftest$ac_exeext conftest.$ac_ext
20014 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
20015 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20016 if test $ac_cv_func_res_send = yes; then
20019 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
20020 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
20021 if test "${ac_cv_func___res_send+set}" = set; then
20022 echo $ECHO_N "(cached
) $ECHO_C" >&6
20024 cat >conftest.$ac_ext <<_ACEOF
20027 cat confdefs.h >>conftest.$ac_ext
20028 cat >>conftest.$ac_ext <<_ACEOF
20029 /* end confdefs.h. */
20030 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20032 #define __res_send innocuous___res_send
20034 /* System header to define __stub macros and hopefully few prototypes,
20035 which can conflict with char __res_send (); below.
20036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20037 <limits.h> exists even on freestanding compilers. */
20040 # include <limits.h>
20042 # include <assert.h>
20047 /* Override any GCC internal prototype to avoid an error.
20048 Use char because int might match the return type of a GCC
20049 builtin and then its argument prototype would still apply. */
20053 char __res_send ();
20054 /* The GNU C library defines this for functions which it implements
20055 to always fail with ENOSYS. Some functions are actually named
20056 something starting with __ and the normal name is an alias. */
20057 #if defined __stub___res_send || defined __stub_____res_send
20064 return __res_send ();
20069 rm -f conftest.$ac_objext conftest$ac_exeext
20070 if { (ac_try="$ac_link"
20071 case "(($ac_try" in
20072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20073 *) ac_try_echo=$ac_try;;
20075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20076 (eval "$ac_link") 2>conftest.er1
20078 grep -v '^ *+' conftest.er1 >conftest.err
20080 cat conftest.err >&5
20081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20082 (exit $ac_status); } && {
20083 test -z "$ac_c_werror_flag" ||
20084 test ! -s conftest.err
20085 } && test -s conftest$ac_exeext &&
20086 $as_test_x conftest$ac_exeext; then
20087 ac_cv_func___res_send=yes
20089 echo "$as_me: failed program was
:" >&5
20090 sed 's/^/| /' conftest.$ac_ext >&5
20092 ac_cv_func___res_send=no
20095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20096 conftest$ac_exeext conftest.$ac_ext
20098 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20099 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20100 if test $ac_cv_func___res_send = yes; then
20103 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20104 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20105 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20106 echo $ECHO_N "(cached
) $ECHO_C" >&6
20108 ac_check_lib_save_LIBS=$LIBS
20109 LIBS="-lresolv $LIBS"
20110 cat >conftest.$ac_ext <<_ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h. */
20117 /* Override any GCC internal prototype to avoid an error.
20118 Use char because int might match the return type of a GCC
20119 builtin and then its argument prototype would still apply. */
20127 return res_send ();
20132 rm -f conftest.$ac_objext conftest$ac_exeext
20133 if { (ac_try="$ac_link"
20134 case "(($ac_try" in
20135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20136 *) ac_try_echo=$ac_try;;
20138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20139 (eval "$ac_link") 2>conftest.er1
20141 grep -v '^ *+' conftest.er1 >conftest.err
20143 cat conftest.err >&5
20144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20145 (exit $ac_status); } && {
20146 test -z "$ac_c_werror_flag" ||
20147 test ! -s conftest.err
20148 } && test -s conftest$ac_exeext &&
20149 $as_test_x conftest$ac_exeext; then
20150 ac_cv_lib_resolv_res_send=yes
20152 echo "$as_me: failed program was
:" >&5
20153 sed 's/^/| /' conftest.$ac_ext >&5
20155 ac_cv_lib_resolv_res_send=no
20158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20159 conftest$ac_exeext conftest.$ac_ext
20160 LIBS=$ac_check_lib_save_LIBS
20162 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20163 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20164 if test $ac_cv_lib_resolv_res_send = yes; then
20167 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20168 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20169 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20170 echo $ECHO_N "(cached
) $ECHO_C" >&6
20172 ac_check_lib_save_LIBS=$LIBS
20173 LIBS="-lresolv $LIBS"
20174 cat >conftest.$ac_ext <<_ACEOF
20177 cat confdefs.h >>conftest.$ac_ext
20178 cat >>conftest.$ac_ext <<_ACEOF
20179 /* end confdefs.h. */
20181 /* Override any GCC internal prototype to avoid an error.
20182 Use char because int might match the return type of a GCC
20183 builtin and then its argument prototype would still apply. */
20187 char __res_send ();
20191 return __res_send ();
20196 rm -f conftest.$ac_objext conftest$ac_exeext
20197 if { (ac_try="$ac_link"
20198 case "(($ac_try" in
20199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20200 *) ac_try_echo=$ac_try;;
20202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20203 (eval "$ac_link") 2>conftest.er1
20205 grep -v '^ *+' conftest.er1 >conftest.err
20207 cat conftest.err >&5
20208 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20209 (exit $ac_status); } && {
20210 test -z "$ac_c_werror_flag" ||
20211 test ! -s conftest.err
20212 } && test -s conftest$ac_exeext &&
20213 $as_test_x conftest$ac_exeext; then
20214 ac_cv_lib_resolv___res_send=yes
20216 echo "$as_me: failed program was
:" >&5
20217 sed 's/^/| /' conftest.$ac_ext >&5
20219 ac_cv_lib_resolv___res_send=no
20222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20223 conftest$ac_exeext conftest.$ac_ext
20224 LIBS=$ac_check_lib_save_LIBS
20226 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20227 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20228 if test $ac_cv_lib_resolv___res_send = yes; then
20238 if test "$resolv" = yes ; then
20243 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20244 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20245 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20246 echo $ECHO_N "(cached
) $ECHO_C" >&6
20248 cat >conftest.$ac_ext <<_ACEOF
20251 cat confdefs.h >>conftest.$ac_ext
20252 cat >>conftest.$ac_ext <<_ACEOF
20253 /* end confdefs.h. */
20254 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20255 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20256 #define hes_getmailhost innocuous_hes_getmailhost
20258 /* System header to define __stub macros and hopefully few prototypes,
20259 which can conflict with char hes_getmailhost (); below.
20260 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20261 <limits.h> exists even on freestanding compilers. */
20264 # include <limits.h>
20266 # include <assert.h>
20269 #undef hes_getmailhost
20271 /* Override any GCC internal prototype to avoid an error.
20272 Use char because int might match the return type of a GCC
20273 builtin and then its argument prototype would still apply. */
20277 char hes_getmailhost ();
20278 /* The GNU C library defines this for functions which it implements
20279 to always fail with ENOSYS. Some functions are actually named
20280 something starting with __ and the normal name is an alias. */
20281 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20288 return hes_getmailhost ();
20293 rm -f conftest.$ac_objext conftest$ac_exeext
20294 if { (ac_try="$ac_link"
20295 case "(($ac_try" in
20296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20297 *) ac_try_echo=$ac_try;;
20299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20300 (eval "$ac_link") 2>conftest.er1
20302 grep -v '^ *+' conftest.er1 >conftest.err
20304 cat conftest.err >&5
20305 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20306 (exit $ac_status); } && {
20307 test -z "$ac_c_werror_flag" ||
20308 test ! -s conftest.err
20309 } && test -s conftest$ac_exeext &&
20310 $as_test_x conftest$ac_exeext; then
20311 ac_cv_func_hes_getmailhost=yes
20313 echo "$as_me: failed program was
:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20316 ac_cv_func_hes_getmailhost=no
20319 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20320 conftest$ac_exeext conftest.$ac_ext
20322 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20323 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20324 if test $ac_cv_func_hes_getmailhost = yes; then
20327 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20328 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20329 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20330 echo $ECHO_N "(cached
) $ECHO_C" >&6
20332 ac_check_lib_save_LIBS=$LIBS
20333 LIBS="-lhesiod $RESOLVLIB $LIBS"
20334 cat >conftest.$ac_ext <<_ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20341 /* Override any GCC internal prototype to avoid an error.
20342 Use char because int might match the return type of a GCC
20343 builtin and then its argument prototype would still apply. */
20347 char hes_getmailhost ();
20351 return hes_getmailhost ();
20356 rm -f conftest.$ac_objext conftest$ac_exeext
20357 if { (ac_try="$ac_link"
20358 case "(($ac_try" in
20359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20360 *) ac_try_echo=$ac_try;;
20362 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20363 (eval "$ac_link") 2>conftest.er1
20365 grep -v '^ *+' conftest.er1 >conftest.err
20367 cat conftest.err >&5
20368 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20369 (exit $ac_status); } && {
20370 test -z "$ac_c_werror_flag" ||
20371 test ! -s conftest.err
20372 } && test -s conftest$ac_exeext &&
20373 $as_test_x conftest$ac_exeext; then
20374 ac_cv_lib_hesiod_hes_getmailhost=yes
20376 echo "$as_me: failed program was
:" >&5
20377 sed 's/^/| /' conftest.$ac_ext >&5
20379 ac_cv_lib_hesiod_hes_getmailhost=no
20382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20383 conftest$ac_exeext conftest.$ac_ext
20384 LIBS=$ac_check_lib_save_LIBS
20386 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20387 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20388 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20390 cat >>confdefs.h <<\_ACEOF
20391 #define HAVE_LIBHESIOD 1
20402 # Do we need libresolv (due to res_init or Hesiod)?
20403 if test "$resolv" = yes ; then
20405 cat >>confdefs.h <<\_ACEOF
20406 #define HAVE_LIBRESOLV 1
20411 # These tell us which Kerberos-related libraries to use.
20412 if test "${with_kerberos}" != no; then
20414 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20415 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20416 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20417 echo $ECHO_N "(cached
) $ECHO_C" >&6
20419 ac_check_lib_save_LIBS=$LIBS
20420 LIBS="-lcom_err $LIBS"
20421 cat >conftest.$ac_ext <<_ACEOF
20424 cat confdefs.h >>conftest.$ac_ext
20425 cat >>conftest.$ac_ext <<_ACEOF
20426 /* end confdefs.h. */
20428 /* Override any GCC internal prototype to avoid an error.
20429 Use char because int might match the return type of a GCC
20430 builtin and then its argument prototype would still apply. */
20443 rm -f conftest.$ac_objext conftest$ac_exeext
20444 if { (ac_try="$ac_link"
20445 case "(($ac_try" in
20446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20447 *) ac_try_echo=$ac_try;;
20449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20450 (eval "$ac_link") 2>conftest.er1
20452 grep -v '^ *+' conftest.er1 >conftest.err
20454 cat conftest.err >&5
20455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20456 (exit $ac_status); } && {
20457 test -z "$ac_c_werror_flag" ||
20458 test ! -s conftest.err
20459 } && test -s conftest$ac_exeext &&
20460 $as_test_x conftest$ac_exeext; then
20461 ac_cv_lib_com_err_com_err=yes
20463 echo "$as_me: failed program was
:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20466 ac_cv_lib_com_err_com_err=no
20469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20470 conftest$ac_exeext conftest.$ac_ext
20471 LIBS=$ac_check_lib_save_LIBS
20473 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20474 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20475 if test $ac_cv_lib_com_err_com_err = yes; then
20476 cat >>confdefs.h <<_ACEOF
20477 #define HAVE_LIBCOM_ERR 1
20480 LIBS="-lcom_err $LIBS"
20485 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20486 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20487 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20488 echo $ECHO_N "(cached
) $ECHO_C" >&6
20490 ac_check_lib_save_LIBS=$LIBS
20491 LIBS="-lk5crypto $LIBS"
20492 cat >conftest.$ac_ext <<_ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20499 /* Override any GCC internal prototype to avoid an error.
20500 Use char because int might match the return type of a GCC
20501 builtin and then its argument prototype would still apply. */
20505 char mit_des_cbc_encrypt ();
20509 return mit_des_cbc_encrypt ();
20514 rm -f conftest.$ac_objext conftest$ac_exeext
20515 if { (ac_try="$ac_link"
20516 case "(($ac_try" in
20517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20518 *) ac_try_echo=$ac_try;;
20520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20521 (eval "$ac_link") 2>conftest.er1
20523 grep -v '^ *+' conftest.er1 >conftest.err
20525 cat conftest.err >&5
20526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20527 (exit $ac_status); } && {
20528 test -z "$ac_c_werror_flag" ||
20529 test ! -s conftest.err
20530 } && test -s conftest$ac_exeext &&
20531 $as_test_x conftest$ac_exeext; then
20532 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20534 echo "$as_me: failed program was
:" >&5
20535 sed 's/^/| /' conftest.$ac_ext >&5
20537 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20541 conftest$ac_exeext conftest.$ac_ext
20542 LIBS=$ac_check_lib_save_LIBS
20544 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20545 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20546 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20547 cat >>confdefs.h <<_ACEOF
20548 #define HAVE_LIBK5CRYPTO 1
20551 LIBS="-lk5crypto $LIBS"
20556 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20557 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20558 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20559 echo $ECHO_N "(cached
) $ECHO_C" >&6
20561 ac_check_lib_save_LIBS=$LIBS
20562 LIBS="-lcrypto $LIBS"
20563 cat >conftest.$ac_ext <<_ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20570 /* Override any GCC internal prototype to avoid an error.
20571 Use char because int might match the return type of a GCC
20572 builtin and then its argument prototype would still apply. */
20576 char mit_des_cbc_encrypt ();
20580 return mit_des_cbc_encrypt ();
20585 rm -f conftest.$ac_objext conftest$ac_exeext
20586 if { (ac_try="$ac_link"
20587 case "(($ac_try" in
20588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20589 *) ac_try_echo=$ac_try;;
20591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20592 (eval "$ac_link") 2>conftest.er1
20594 grep -v '^ *+' conftest.er1 >conftest.err
20596 cat conftest.err >&5
20597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20598 (exit $ac_status); } && {
20599 test -z "$ac_c_werror_flag" ||
20600 test ! -s conftest.err
20601 } && test -s conftest$ac_exeext &&
20602 $as_test_x conftest$ac_exeext; then
20603 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20605 echo "$as_me: failed program was
:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20608 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20612 conftest$ac_exeext conftest.$ac_ext
20613 LIBS=$ac_check_lib_save_LIBS
20615 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20616 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20617 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20618 cat >>confdefs.h <<_ACEOF
20619 #define HAVE_LIBCRYPTO 1
20622 LIBS="-lcrypto $LIBS"
20627 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20628 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20629 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20630 echo $ECHO_N "(cached
) $ECHO_C" >&6
20632 ac_check_lib_save_LIBS=$LIBS
20633 LIBS="-lkrb5 $LIBS"
20634 cat >conftest.$ac_ext <<_ACEOF
20637 cat confdefs.h >>conftest.$ac_ext
20638 cat >>conftest.$ac_ext <<_ACEOF
20639 /* end confdefs.h. */
20641 /* Override any GCC internal prototype to avoid an error.
20642 Use char because int might match the return type of a GCC
20643 builtin and then its argument prototype would still apply. */
20647 char krb5_init_context ();
20651 return krb5_init_context ();
20656 rm -f conftest.$ac_objext conftest$ac_exeext
20657 if { (ac_try="$ac_link"
20658 case "(($ac_try" in
20659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20660 *) ac_try_echo=$ac_try;;
20662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20663 (eval "$ac_link") 2>conftest.er1
20665 grep -v '^ *+' conftest.er1 >conftest.err
20667 cat conftest.err >&5
20668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20669 (exit $ac_status); } && {
20670 test -z "$ac_c_werror_flag" ||
20671 test ! -s conftest.err
20672 } && test -s conftest$ac_exeext &&
20673 $as_test_x conftest$ac_exeext; then
20674 ac_cv_lib_krb5_krb5_init_context=yes
20676 echo "$as_me: failed program was
:" >&5
20677 sed 's/^/| /' conftest.$ac_ext >&5
20679 ac_cv_lib_krb5_krb5_init_context=no
20682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20683 conftest$ac_exeext conftest.$ac_ext
20684 LIBS=$ac_check_lib_save_LIBS
20686 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20687 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20688 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20689 cat >>confdefs.h <<_ACEOF
20690 #define HAVE_LIBKRB5 1
20693 LIBS="-lkrb5 $LIBS"
20697 if test "${with_kerberos5}" = no; then
20699 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20700 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20701 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20702 echo $ECHO_N "(cached
) $ECHO_C" >&6
20704 ac_check_lib_save_LIBS=$LIBS
20705 LIBS="-ldes425 $LIBS"
20706 cat >conftest.$ac_ext <<_ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h. */
20713 /* Override any GCC internal prototype to avoid an error.
20714 Use char because int might match the return type of a GCC
20715 builtin and then its argument prototype would still apply. */
20719 char des_cbc_encrypt ();
20723 return des_cbc_encrypt ();
20728 rm -f conftest.$ac_objext conftest$ac_exeext
20729 if { (ac_try="$ac_link"
20730 case "(($ac_try" in
20731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20732 *) ac_try_echo=$ac_try;;
20734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20735 (eval "$ac_link") 2>conftest.er1
20737 grep -v '^ *+' conftest.er1 >conftest.err
20739 cat conftest.err >&5
20740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20741 (exit $ac_status); } && {
20742 test -z "$ac_c_werror_flag" ||
20743 test ! -s conftest.err
20744 } && test -s conftest$ac_exeext &&
20745 $as_test_x conftest$ac_exeext; then
20746 ac_cv_lib_des425_des_cbc_encrypt=yes
20748 echo "$as_me: failed program was
:" >&5
20749 sed 's/^/| /' conftest.$ac_ext >&5
20751 ac_cv_lib_des425_des_cbc_encrypt=no
20754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20755 conftest$ac_exeext conftest.$ac_ext
20756 LIBS=$ac_check_lib_save_LIBS
20758 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20759 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20760 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20761 cat >>confdefs.h <<_ACEOF
20762 #define HAVE_LIBDES425 1
20765 LIBS="-ldes425 $LIBS"
20769 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20770 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20771 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20772 echo $ECHO_N "(cached
) $ECHO_C" >&6
20774 ac_check_lib_save_LIBS=$LIBS
20776 cat >conftest.$ac_ext <<_ACEOF
20779 cat confdefs.h >>conftest.$ac_ext
20780 cat >>conftest.$ac_ext <<_ACEOF
20781 /* end confdefs.h. */
20783 /* Override any GCC internal prototype to avoid an error.
20784 Use char because int might match the return type of a GCC
20785 builtin and then its argument prototype would still apply. */
20789 char des_cbc_encrypt ();
20793 return des_cbc_encrypt ();
20798 rm -f conftest.$ac_objext conftest$ac_exeext
20799 if { (ac_try="$ac_link"
20800 case "(($ac_try" in
20801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20802 *) ac_try_echo=$ac_try;;
20804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20805 (eval "$ac_link") 2>conftest.er1
20807 grep -v '^ *+' conftest.er1 >conftest.err
20809 cat conftest.err >&5
20810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20811 (exit $ac_status); } && {
20812 test -z "$ac_c_werror_flag" ||
20813 test ! -s conftest.err
20814 } && test -s conftest$ac_exeext &&
20815 $as_test_x conftest$ac_exeext; then
20816 ac_cv_lib_des_des_cbc_encrypt=yes
20818 echo "$as_me: failed program was
:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20821 ac_cv_lib_des_des_cbc_encrypt=no
20824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20825 conftest$ac_exeext conftest.$ac_ext
20826 LIBS=$ac_check_lib_save_LIBS
20828 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20829 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20830 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20831 cat >>confdefs.h <<_ACEOF
20832 #define HAVE_LIBDES 1
20842 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20843 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20844 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20845 echo $ECHO_N "(cached
) $ECHO_C" >&6
20847 ac_check_lib_save_LIBS=$LIBS
20848 LIBS="-lkrb4 $LIBS"
20849 cat >conftest.$ac_ext <<_ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20856 /* Override any GCC internal prototype to avoid an error.
20857 Use char because int might match the return type of a GCC
20858 builtin and then its argument prototype would still apply. */
20862 char krb_get_cred ();
20866 return krb_get_cred ();
20871 rm -f conftest.$ac_objext conftest$ac_exeext
20872 if { (ac_try="$ac_link"
20873 case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_link") 2>conftest.er1
20880 grep -v '^ *+' conftest.er1 >conftest.err
20882 cat conftest.err >&5
20883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20884 (exit $ac_status); } && {
20885 test -z "$ac_c_werror_flag" ||
20886 test ! -s conftest.err
20887 } && test -s conftest$ac_exeext &&
20888 $as_test_x conftest$ac_exeext; then
20889 ac_cv_lib_krb4_krb_get_cred=yes
20891 echo "$as_me: failed program was
:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20894 ac_cv_lib_krb4_krb_get_cred=no
20897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20898 conftest$ac_exeext conftest.$ac_ext
20899 LIBS=$ac_check_lib_save_LIBS
20901 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20902 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20903 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20904 cat >>confdefs.h <<_ACEOF
20905 #define HAVE_LIBKRB4 1
20908 LIBS="-lkrb4 $LIBS"
20912 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20913 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20914 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20915 echo $ECHO_N "(cached
) $ECHO_C" >&6
20917 ac_check_lib_save_LIBS=$LIBS
20919 cat >conftest.$ac_ext <<_ACEOF
20922 cat confdefs.h >>conftest.$ac_ext
20923 cat >>conftest.$ac_ext <<_ACEOF
20924 /* end confdefs.h. */
20926 /* Override any GCC internal prototype to avoid an error.
20927 Use char because int might match the return type of a GCC
20928 builtin and then its argument prototype would still apply. */
20932 char krb_get_cred ();
20936 return krb_get_cred ();
20941 rm -f conftest.$ac_objext conftest$ac_exeext
20942 if { (ac_try="$ac_link"
20943 case "(($ac_try" in
20944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20945 *) ac_try_echo=$ac_try;;
20947 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20948 (eval "$ac_link") 2>conftest.er1
20950 grep -v '^ *+' conftest.er1 >conftest.err
20952 cat conftest.err >&5
20953 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20954 (exit $ac_status); } && {
20955 test -z "$ac_c_werror_flag" ||
20956 test ! -s conftest.err
20957 } && test -s conftest$ac_exeext &&
20958 $as_test_x conftest$ac_exeext; then
20959 ac_cv_lib_krb_krb_get_cred=yes
20961 echo "$as_me: failed program was
:" >&5
20962 sed 's/^/| /' conftest.$ac_ext >&5
20964 ac_cv_lib_krb_krb_get_cred=no
20967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20968 conftest$ac_exeext conftest.$ac_ext
20969 LIBS=$ac_check_lib_save_LIBS
20971 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20972 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20973 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20974 cat >>confdefs.h <<_ACEOF
20975 #define HAVE_LIBKRB 1
20986 if test "${with_kerberos5}" != no; then
20988 for ac_header in krb5.h
20990 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20991 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20992 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20993 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20994 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20995 echo $ECHO_N "(cached
) $ECHO_C" >&6
20997 ac_res=`eval echo '${'$as_ac_Header'}'`
20998 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20999 echo "${ECHO_T}$ac_res" >&6; }
21001 # Is the header compilable?
21002 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21003 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21004 cat >conftest.$ac_ext <<_ACEOF
21007 cat confdefs.h >>conftest.$ac_ext
21008 cat >>conftest.$ac_ext <<_ACEOF
21009 /* end confdefs.h. */
21010 $ac_includes_default
21011 #include <$ac_header>
21013 rm -f conftest.$ac_objext
21014 if { (ac_try="$ac_compile"
21015 case "(($ac_try" in
21016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21017 *) ac_try_echo=$ac_try;;
21019 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21020 (eval "$ac_compile") 2>conftest.er1
21022 grep -v '^ *+' conftest.er1 >conftest.err
21024 cat conftest.err >&5
21025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21026 (exit $ac_status); } && {
21027 test -z "$ac_c_werror_flag" ||
21028 test ! -s conftest.err
21029 } && test -s conftest.$ac_objext; then
21030 ac_header_compiler=yes
21032 echo "$as_me: failed program was
:" >&5
21033 sed 's/^/| /' conftest.$ac_ext >&5
21035 ac_header_compiler=no
21038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21039 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21040 echo "${ECHO_T}$ac_header_compiler" >&6; }
21042 # Is the header present?
21043 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21044 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21045 cat >conftest.$ac_ext <<_ACEOF
21048 cat confdefs.h >>conftest.$ac_ext
21049 cat >>conftest.$ac_ext <<_ACEOF
21050 /* end confdefs.h. */
21051 #include <$ac_header>
21053 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21054 case "(($ac_try" in
21055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21056 *) ac_try_echo=$ac_try;;
21058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21059 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21061 grep -v '^ *+' conftest.er1 >conftest.err
21063 cat conftest.err >&5
21064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21065 (exit $ac_status); } >/dev/null && {
21066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21067 test ! -s conftest.err
21069 ac_header_preproc=yes
21071 echo "$as_me: failed program was
:" >&5
21072 sed 's/^/| /' conftest.$ac_ext >&5
21074 ac_header_preproc=no
21077 rm -f conftest.err conftest.$ac_ext
21078 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21079 echo "${ECHO_T}$ac_header_preproc" >&6; }
21081 # So? What about this header?
21082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21084 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21085 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21086 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21088 ac_header_preproc=yes
21091 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21092 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21093 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21094 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21095 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21096 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21097 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21098 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21099 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21101 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21102 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21106 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21107 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21108 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21109 echo $ECHO_N "(cached
) $ECHO_C" >&6
21111 eval "$as_ac_Header=\
$ac_header_preproc"
21113 ac_res=`eval echo '${'$as_ac_Header'}'`
21114 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21115 echo "${ECHO_T}$ac_res" >&6; }
21118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21119 cat >>confdefs.h <<_ACEOF
21120 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21122 { echo "$as_me:$LINENO: checking
for krb5_error.text
" >&5
21123 echo $ECHO_N "checking
for krb5_error.text...
$ECHO_C" >&6; }
21124 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21125 echo $ECHO_N "(cached
) $ECHO_C" >&6
21127 cat >conftest.$ac_ext <<_ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21138 static krb5_error ac_aggr;
21145 rm -f conftest.$ac_objext
21146 if { (ac_try="$ac_compile"
21147 case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21151 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_compile") 2>conftest.er1
21154 grep -v '^ *+' conftest.er1 >conftest.err
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21158 (exit $ac_status); } && {
21159 test -z "$ac_c_werror_flag" ||
21160 test ! -s conftest.err
21161 } && test -s conftest.$ac_objext; then
21162 ac_cv_member_krb5_error_text=yes
21164 echo "$as_me: failed program was
:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21167 cat >conftest.$ac_ext <<_ACEOF
21170 cat confdefs.h >>conftest.$ac_ext
21171 cat >>conftest.$ac_ext <<_ACEOF
21172 /* end confdefs.h. */
21178 static krb5_error ac_aggr;
21179 if (sizeof ac_aggr.text)
21185 rm -f conftest.$ac_objext
21186 if { (ac_try="$ac_compile"
21187 case "(($ac_try" in
21188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21189 *) ac_try_echo=$ac_try;;
21191 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21192 (eval "$ac_compile") 2>conftest.er1
21194 grep -v '^ *+' conftest.er1 >conftest.err
21196 cat conftest.err >&5
21197 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21198 (exit $ac_status); } && {
21199 test -z "$ac_c_werror_flag" ||
21200 test ! -s conftest.err
21201 } && test -s conftest.$ac_objext; then
21202 ac_cv_member_krb5_error_text=yes
21204 echo "$as_me: failed program was
:" >&5
21205 sed 's/^/| /' conftest.$ac_ext >&5
21207 ac_cv_member_krb5_error_text=no
21210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21215 { echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_text" >&5
21216 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21217 if test $ac_cv_member_krb5_error_text = yes; then
21219 cat >>confdefs.h <<_ACEOF
21220 #define HAVE_KRB5_ERROR_TEXT 1
21225 { echo "$as_me:$LINENO: checking
for krb5_error.e_text
" >&5
21226 echo $ECHO_N "checking
for krb5_error.e_text...
$ECHO_C" >&6; }
21227 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21228 echo $ECHO_N "(cached
) $ECHO_C" >&6
21230 cat >conftest.$ac_ext <<_ACEOF
21233 cat confdefs.h >>conftest.$ac_ext
21234 cat >>conftest.$ac_ext <<_ACEOF
21235 /* end confdefs.h. */
21241 static krb5_error ac_aggr;
21242 if (ac_aggr.e_text)
21248 rm -f conftest.$ac_objext
21249 if { (ac_try="$ac_compile"
21250 case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21254 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_compile") 2>conftest.er1
21257 grep -v '^ *+' conftest.er1 >conftest.err
21259 cat conftest.err >&5
21260 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21261 (exit $ac_status); } && {
21262 test -z "$ac_c_werror_flag" ||
21263 test ! -s conftest.err
21264 } && test -s conftest.$ac_objext; then
21265 ac_cv_member_krb5_error_e_text=yes
21267 echo "$as_me: failed program was
:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21270 cat >conftest.$ac_ext <<_ACEOF
21273 cat confdefs.h >>conftest.$ac_ext
21274 cat >>conftest.$ac_ext <<_ACEOF
21275 /* end confdefs.h. */
21281 static krb5_error ac_aggr;
21282 if (sizeof ac_aggr.e_text)
21288 rm -f conftest.$ac_objext
21289 if { (ac_try="$ac_compile"
21290 case "(($ac_try" in
21291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21292 *) ac_try_echo=$ac_try;;
21294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21295 (eval "$ac_compile") 2>conftest.er1
21297 grep -v '^ *+' conftest.er1 >conftest.err
21299 cat conftest.err >&5
21300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21301 (exit $ac_status); } && {
21302 test -z "$ac_c_werror_flag" ||
21303 test ! -s conftest.err
21304 } && test -s conftest.$ac_objext; then
21305 ac_cv_member_krb5_error_e_text=yes
21307 echo "$as_me: failed program was
:" >&5
21308 sed 's/^/| /' conftest.$ac_ext >&5
21310 ac_cv_member_krb5_error_e_text=no
21313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21318 { echo "$as_me:$LINENO: result
: $ac_cv_member_krb5_error_e_text" >&5
21319 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21320 if test $ac_cv_member_krb5_error_e_text = yes; then
21322 cat >>confdefs.h <<_ACEOF
21323 #define HAVE_KRB5_ERROR_E_TEXT 1
21335 for ac_header in des.h
21337 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21338 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21339 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21340 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21341 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21342 echo $ECHO_N "(cached
) $ECHO_C" >&6
21344 ac_res=`eval echo '${'$as_ac_Header'}'`
21345 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21346 echo "${ECHO_T}$ac_res" >&6; }
21348 # Is the header compilable?
21349 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21350 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21351 cat >conftest.$ac_ext <<_ACEOF
21354 cat confdefs.h >>conftest.$ac_ext
21355 cat >>conftest.$ac_ext <<_ACEOF
21356 /* end confdefs.h. */
21357 $ac_includes_default
21358 #include <$ac_header>
21360 rm -f conftest.$ac_objext
21361 if { (ac_try="$ac_compile"
21362 case "(($ac_try" in
21363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21364 *) ac_try_echo=$ac_try;;
21366 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21367 (eval "$ac_compile") 2>conftest.er1
21369 grep -v '^ *+' conftest.er1 >conftest.err
21371 cat conftest.err >&5
21372 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21373 (exit $ac_status); } && {
21374 test -z "$ac_c_werror_flag" ||
21375 test ! -s conftest.err
21376 } && test -s conftest.$ac_objext; then
21377 ac_header_compiler=yes
21379 echo "$as_me: failed program was
:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21382 ac_header_compiler=no
21385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21386 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21387 echo "${ECHO_T}$ac_header_compiler" >&6; }
21389 # Is the header present?
21390 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21391 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21392 cat >conftest.$ac_ext <<_ACEOF
21395 cat confdefs.h >>conftest.$ac_ext
21396 cat >>conftest.$ac_ext <<_ACEOF
21397 /* end confdefs.h. */
21398 #include <$ac_header>
21400 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21401 case "(($ac_try" in
21402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21403 *) ac_try_echo=$ac_try;;
21405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21406 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21408 grep -v '^ *+' conftest.er1 >conftest.err
21410 cat conftest.err >&5
21411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21412 (exit $ac_status); } >/dev/null && {
21413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21414 test ! -s conftest.err
21416 ac_header_preproc=yes
21418 echo "$as_me: failed program was
:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21421 ac_header_preproc=no
21424 rm -f conftest.err conftest.$ac_ext
21425 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21426 echo "${ECHO_T}$ac_header_preproc" >&6; }
21428 # So? What about this header?
21429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21431 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21432 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21433 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21435 ac_header_preproc=yes
21438 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21439 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21440 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21441 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21442 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21443 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21444 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21445 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21446 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21448 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21449 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21453 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21454 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21455 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21456 echo $ECHO_N "(cached
) $ECHO_C" >&6
21458 eval "$as_ac_Header=\
$ac_header_preproc"
21460 ac_res=`eval echo '${'$as_ac_Header'}'`
21461 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21462 echo "${ECHO_T}$ac_res" >&6; }
21465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21466 cat >>confdefs.h <<_ACEOF
21467 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21472 for ac_header in kerberosIV/des.h
21474 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21475 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21476 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21477 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21478 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21479 echo $ECHO_N "(cached
) $ECHO_C" >&6
21481 ac_res=`eval echo '${'$as_ac_Header'}'`
21482 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21483 echo "${ECHO_T}$ac_res" >&6; }
21485 # Is the header compilable?
21486 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21487 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21488 cat >conftest.$ac_ext <<_ACEOF
21491 cat confdefs.h >>conftest.$ac_ext
21492 cat >>conftest.$ac_ext <<_ACEOF
21493 /* end confdefs.h. */
21494 $ac_includes_default
21495 #include <$ac_header>
21497 rm -f conftest.$ac_objext
21498 if { (ac_try="$ac_compile"
21499 case "(($ac_try" in
21500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21501 *) ac_try_echo=$ac_try;;
21503 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21504 (eval "$ac_compile") 2>conftest.er1
21506 grep -v '^ *+' conftest.er1 >conftest.err
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21510 (exit $ac_status); } && {
21511 test -z "$ac_c_werror_flag" ||
21512 test ! -s conftest.err
21513 } && test -s conftest.$ac_objext; then
21514 ac_header_compiler=yes
21516 echo "$as_me: failed program was
:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21519 ac_header_compiler=no
21522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21523 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21524 echo "${ECHO_T}$ac_header_compiler" >&6; }
21526 # Is the header present?
21527 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21528 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21529 cat >conftest.$ac_ext <<_ACEOF
21532 cat confdefs.h >>conftest.$ac_ext
21533 cat >>conftest.$ac_ext <<_ACEOF
21534 /* end confdefs.h. */
21535 #include <$ac_header>
21537 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21538 case "(($ac_try" in
21539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21540 *) ac_try_echo=$ac_try;;
21542 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21543 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21545 grep -v '^ *+' conftest.er1 >conftest.err
21547 cat conftest.err >&5
21548 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21549 (exit $ac_status); } >/dev/null && {
21550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21551 test ! -s conftest.err
21553 ac_header_preproc=yes
21555 echo "$as_me: failed program was
:" >&5
21556 sed 's/^/| /' conftest.$ac_ext >&5
21558 ac_header_preproc=no
21561 rm -f conftest.err conftest.$ac_ext
21562 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21563 echo "${ECHO_T}$ac_header_preproc" >&6; }
21565 # So? What about this header?
21566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21568 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21569 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21570 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21572 ac_header_preproc=yes
21575 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21576 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21577 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21578 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21579 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21580 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21581 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21582 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21583 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21585 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21586 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21590 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21591 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21592 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21593 echo $ECHO_N "(cached
) $ECHO_C" >&6
21595 eval "$as_ac_Header=\
$ac_header_preproc"
21597 ac_res=`eval echo '${'$as_ac_Header'}'`
21598 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21599 echo "${ECHO_T}$ac_res" >&6; }
21602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21603 cat >>confdefs.h <<_ACEOF
21604 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21609 for ac_header in kerberos/des.h
21611 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21612 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21613 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21614 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21615 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21616 echo $ECHO_N "(cached
) $ECHO_C" >&6
21618 ac_res=`eval echo '${'$as_ac_Header'}'`
21619 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21620 echo "${ECHO_T}$ac_res" >&6; }
21622 # Is the header compilable?
21623 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21624 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21625 cat >conftest.$ac_ext <<_ACEOF
21628 cat confdefs.h >>conftest.$ac_ext
21629 cat >>conftest.$ac_ext <<_ACEOF
21630 /* end confdefs.h. */
21631 $ac_includes_default
21632 #include <$ac_header>
21634 rm -f conftest.$ac_objext
21635 if { (ac_try="$ac_compile"
21636 case "(($ac_try" in
21637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638 *) ac_try_echo=$ac_try;;
21640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21641 (eval "$ac_compile") 2>conftest.er1
21643 grep -v '^ *+' conftest.er1 >conftest.err
21645 cat conftest.err >&5
21646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21647 (exit $ac_status); } && {
21648 test -z "$ac_c_werror_flag" ||
21649 test ! -s conftest.err
21650 } && test -s conftest.$ac_objext; then
21651 ac_header_compiler=yes
21653 echo "$as_me: failed program was
:" >&5
21654 sed 's/^/| /' conftest.$ac_ext >&5
21656 ac_header_compiler=no
21659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21660 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21661 echo "${ECHO_T}$ac_header_compiler" >&6; }
21663 # Is the header present?
21664 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21665 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21666 cat >conftest.$ac_ext <<_ACEOF
21669 cat confdefs.h >>conftest.$ac_ext
21670 cat >>conftest.$ac_ext <<_ACEOF
21671 /* end confdefs.h. */
21672 #include <$ac_header>
21674 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21675 case "(($ac_try" in
21676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677 *) ac_try_echo=$ac_try;;
21679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21680 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21682 grep -v '^ *+' conftest.er1 >conftest.err
21684 cat conftest.err >&5
21685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21686 (exit $ac_status); } >/dev/null && {
21687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21688 test ! -s conftest.err
21690 ac_header_preproc=yes
21692 echo "$as_me: failed program was
:" >&5
21693 sed 's/^/| /' conftest.$ac_ext >&5
21695 ac_header_preproc=no
21698 rm -f conftest.err conftest.$ac_ext
21699 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21700 echo "${ECHO_T}$ac_header_preproc" >&6; }
21702 # So? What about this header?
21703 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21705 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21706 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21707 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21708 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21709 ac_header_preproc=yes
21712 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21713 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21714 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21715 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21716 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21717 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21718 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21719 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21720 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21721 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21722 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21723 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21727 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21728 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21729 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21730 echo $ECHO_N "(cached
) $ECHO_C" >&6
21732 eval "$as_ac_Header=\
$ac_header_preproc"
21734 ac_res=`eval echo '${'$as_ac_Header'}'`
21735 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21736 echo "${ECHO_T}$ac_res" >&6; }
21739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21740 cat >>confdefs.h <<_ACEOF
21741 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21757 for ac_header in krb.h
21759 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21760 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21761 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21762 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21763 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21764 echo $ECHO_N "(cached
) $ECHO_C" >&6
21766 ac_res=`eval echo '${'$as_ac_Header'}'`
21767 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21768 echo "${ECHO_T}$ac_res" >&6; }
21770 # Is the header compilable?
21771 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21772 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21773 cat >conftest.$ac_ext <<_ACEOF
21776 cat confdefs.h >>conftest.$ac_ext
21777 cat >>conftest.$ac_ext <<_ACEOF
21778 /* end confdefs.h. */
21779 $ac_includes_default
21780 #include <$ac_header>
21782 rm -f conftest.$ac_objext
21783 if { (ac_try="$ac_compile"
21784 case "(($ac_try" in
21785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21786 *) ac_try_echo=$ac_try;;
21788 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21789 (eval "$ac_compile") 2>conftest.er1
21791 grep -v '^ *+' conftest.er1 >conftest.err
21793 cat conftest.err >&5
21794 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21795 (exit $ac_status); } && {
21796 test -z "$ac_c_werror_flag" ||
21797 test ! -s conftest.err
21798 } && test -s conftest.$ac_objext; then
21799 ac_header_compiler=yes
21801 echo "$as_me: failed program was
:" >&5
21802 sed 's/^/| /' conftest.$ac_ext >&5
21804 ac_header_compiler=no
21807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21808 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21809 echo "${ECHO_T}$ac_header_compiler" >&6; }
21811 # Is the header present?
21812 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21813 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21814 cat >conftest.$ac_ext <<_ACEOF
21817 cat confdefs.h >>conftest.$ac_ext
21818 cat >>conftest.$ac_ext <<_ACEOF
21819 /* end confdefs.h. */
21820 #include <$ac_header>
21822 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21823 case "(($ac_try" in
21824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21825 *) ac_try_echo=$ac_try;;
21827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21828 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21830 grep -v '^ *+' conftest.er1 >conftest.err
21832 cat conftest.err >&5
21833 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21834 (exit $ac_status); } >/dev/null && {
21835 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21836 test ! -s conftest.err
21838 ac_header_preproc=yes
21840 echo "$as_me: failed program was
:" >&5
21841 sed 's/^/| /' conftest.$ac_ext >&5
21843 ac_header_preproc=no
21846 rm -f conftest.err conftest.$ac_ext
21847 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21848 echo "${ECHO_T}$ac_header_preproc" >&6; }
21850 # So? What about this header?
21851 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21853 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21854 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21855 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21856 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21857 ac_header_preproc=yes
21860 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21861 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21862 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21863 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21864 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21865 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21866 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21867 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21868 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21869 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21870 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21871 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21875 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21876 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21877 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21878 echo $ECHO_N "(cached
) $ECHO_C" >&6
21880 eval "$as_ac_Header=\
$ac_header_preproc"
21882 ac_res=`eval echo '${'$as_ac_Header'}'`
21883 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21884 echo "${ECHO_T}$ac_res" >&6; }
21887 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21888 cat >>confdefs.h <<_ACEOF
21889 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21894 for ac_header in kerberosIV/krb.h
21896 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21897 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21898 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21899 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21900 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21901 echo $ECHO_N "(cached
) $ECHO_C" >&6
21903 ac_res=`eval echo '${'$as_ac_Header'}'`
21904 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21905 echo "${ECHO_T}$ac_res" >&6; }
21907 # Is the header compilable?
21908 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21909 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21910 cat >conftest.$ac_ext <<_ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h. */
21916 $ac_includes_default
21917 #include <$ac_header>
21919 rm -f conftest.$ac_objext
21920 if { (ac_try="$ac_compile"
21921 case "(($ac_try" in
21922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923 *) ac_try_echo=$ac_try;;
21925 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21926 (eval "$ac_compile") 2>conftest.er1
21928 grep -v '^ *+' conftest.er1 >conftest.err
21930 cat conftest.err >&5
21931 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21932 (exit $ac_status); } && {
21933 test -z "$ac_c_werror_flag" ||
21934 test ! -s conftest.err
21935 } && test -s conftest.$ac_objext; then
21936 ac_header_compiler=yes
21938 echo "$as_me: failed program was
:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21941 ac_header_compiler=no
21944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21945 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21946 echo "${ECHO_T}$ac_header_compiler" >&6; }
21948 # Is the header present?
21949 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21950 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21951 cat >conftest.$ac_ext <<_ACEOF
21954 cat confdefs.h >>conftest.$ac_ext
21955 cat >>conftest.$ac_ext <<_ACEOF
21956 /* end confdefs.h. */
21957 #include <$ac_header>
21959 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21960 case "(($ac_try" in
21961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962 *) ac_try_echo=$ac_try;;
21964 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21965 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21967 grep -v '^ *+' conftest.er1 >conftest.err
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21971 (exit $ac_status); } >/dev/null && {
21972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21973 test ! -s conftest.err
21975 ac_header_preproc=yes
21977 echo "$as_me: failed program was
:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21980 ac_header_preproc=no
21983 rm -f conftest.err conftest.$ac_ext
21984 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21985 echo "${ECHO_T}$ac_header_preproc" >&6; }
21987 # So? What about this header?
21988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21990 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21991 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21992 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21993 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21994 ac_header_preproc=yes
21997 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21998 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21999 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22000 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22001 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22002 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22003 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22004 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22005 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22006 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22007 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22008 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22012 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22013 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22014 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22015 echo $ECHO_N "(cached
) $ECHO_C" >&6
22017 eval "$as_ac_Header=\
$ac_header_preproc"
22019 ac_res=`eval echo '${'$as_ac_Header'}'`
22020 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22021 echo "${ECHO_T}$ac_res" >&6; }
22024 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22025 cat >>confdefs.h <<_ACEOF
22026 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22031 for ac_header in kerberos/krb.h
22033 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22034 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22035 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22036 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22037 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22038 echo $ECHO_N "(cached
) $ECHO_C" >&6
22040 ac_res=`eval echo '${'$as_ac_Header'}'`
22041 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22042 echo "${ECHO_T}$ac_res" >&6; }
22044 # Is the header compilable?
22045 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22046 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22047 cat >conftest.$ac_ext <<_ACEOF
22050 cat confdefs.h >>conftest.$ac_ext
22051 cat >>conftest.$ac_ext <<_ACEOF
22052 /* end confdefs.h. */
22053 $ac_includes_default
22054 #include <$ac_header>
22056 rm -f conftest.$ac_objext
22057 if { (ac_try="$ac_compile"
22058 case "(($ac_try" in
22059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22060 *) ac_try_echo=$ac_try;;
22062 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22063 (eval "$ac_compile") 2>conftest.er1
22065 grep -v '^ *+' conftest.er1 >conftest.err
22067 cat conftest.err >&5
22068 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22069 (exit $ac_status); } && {
22070 test -z "$ac_c_werror_flag" ||
22071 test ! -s conftest.err
22072 } && test -s conftest.$ac_objext; then
22073 ac_header_compiler=yes
22075 echo "$as_me: failed program was
:" >&5
22076 sed 's/^/| /' conftest.$ac_ext >&5
22078 ac_header_compiler=no
22081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22082 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22083 echo "${ECHO_T}$ac_header_compiler" >&6; }
22085 # Is the header present?
22086 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22087 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22088 cat >conftest.$ac_ext <<_ACEOF
22091 cat confdefs.h >>conftest.$ac_ext
22092 cat >>conftest.$ac_ext <<_ACEOF
22093 /* end confdefs.h. */
22094 #include <$ac_header>
22096 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22097 case "(($ac_try" in
22098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22099 *) ac_try_echo=$ac_try;;
22101 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22102 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22104 grep -v '^ *+' conftest.er1 >conftest.err
22106 cat conftest.err >&5
22107 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22108 (exit $ac_status); } >/dev/null && {
22109 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22110 test ! -s conftest.err
22112 ac_header_preproc=yes
22114 echo "$as_me: failed program was
:" >&5
22115 sed 's/^/| /' conftest.$ac_ext >&5
22117 ac_header_preproc=no
22120 rm -f conftest.err conftest.$ac_ext
22121 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22122 echo "${ECHO_T}$ac_header_preproc" >&6; }
22124 # So? What about this header?
22125 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22127 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22128 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22129 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22130 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22131 ac_header_preproc=yes
22134 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22135 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22136 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22137 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22138 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22139 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22140 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22141 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22142 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22143 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22144 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22145 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22149 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22150 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22151 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22152 echo $ECHO_N "(cached
) $ECHO_C" >&6
22154 eval "$as_ac_Header=\
$ac_header_preproc"
22156 ac_res=`eval echo '${'$as_ac_Header'}'`
22157 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22158 echo "${ECHO_T}$ac_res" >&6; }
22161 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22162 cat >>confdefs.h <<_ACEOF
22163 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22180 for ac_header in com_err.h
22182 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22183 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22184 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22185 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22186 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22187 echo $ECHO_N "(cached
) $ECHO_C" >&6
22189 ac_res=`eval echo '${'$as_ac_Header'}'`
22190 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22191 echo "${ECHO_T}$ac_res" >&6; }
22193 # Is the header compilable?
22194 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22195 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22196 cat >conftest.$ac_ext <<_ACEOF
22199 cat confdefs.h >>conftest.$ac_ext
22200 cat >>conftest.$ac_ext <<_ACEOF
22201 /* end confdefs.h. */
22202 $ac_includes_default
22203 #include <$ac_header>
22205 rm -f conftest.$ac_objext
22206 if { (ac_try="$ac_compile"
22207 case "(($ac_try" in
22208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22209 *) ac_try_echo=$ac_try;;
22211 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22212 (eval "$ac_compile") 2>conftest.er1
22214 grep -v '^ *+' conftest.er1 >conftest.err
22216 cat conftest.err >&5
22217 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22218 (exit $ac_status); } && {
22219 test -z "$ac_c_werror_flag" ||
22220 test ! -s conftest.err
22221 } && test -s conftest.$ac_objext; then
22222 ac_header_compiler=yes
22224 echo "$as_me: failed program was
:" >&5
22225 sed 's/^/| /' conftest.$ac_ext >&5
22227 ac_header_compiler=no
22230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22231 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22232 echo "${ECHO_T}$ac_header_compiler" >&6; }
22234 # Is the header present?
22235 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22236 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22237 cat >conftest.$ac_ext <<_ACEOF
22240 cat confdefs.h >>conftest.$ac_ext
22241 cat >>conftest.$ac_ext <<_ACEOF
22242 /* end confdefs.h. */
22243 #include <$ac_header>
22245 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22246 case "(($ac_try" in
22247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22248 *) ac_try_echo=$ac_try;;
22250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22251 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22253 grep -v '^ *+' conftest.er1 >conftest.err
22255 cat conftest.err >&5
22256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22257 (exit $ac_status); } >/dev/null && {
22258 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22259 test ! -s conftest.err
22261 ac_header_preproc=yes
22263 echo "$as_me: failed program was
:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22266 ac_header_preproc=no
22269 rm -f conftest.err conftest.$ac_ext
22270 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22271 echo "${ECHO_T}$ac_header_preproc" >&6; }
22273 # So? What about this header?
22274 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22276 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22277 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22278 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22279 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22280 ac_header_preproc=yes
22283 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22284 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22285 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22286 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22287 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22288 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22289 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22290 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22291 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22292 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22293 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22294 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22298 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22299 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22300 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22301 echo $ECHO_N "(cached
) $ECHO_C" >&6
22303 eval "$as_ac_Header=\
$ac_header_preproc"
22305 ac_res=`eval echo '${'$as_ac_Header'}'`
22306 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22307 echo "${ECHO_T}$ac_res" >&6; }
22310 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22311 cat >>confdefs.h <<_ACEOF
22312 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22321 # Solaris requires -lintl if you want strerror (which calls dgettext)
22322 # to return localized messages.
22324 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22325 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22326 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22327 echo $ECHO_N "(cached
) $ECHO_C" >&6
22329 ac_check_lib_save_LIBS=$LIBS
22330 LIBS="-lintl $LIBS"
22331 cat >conftest.$ac_ext <<_ACEOF
22334 cat confdefs.h >>conftest.$ac_ext
22335 cat >>conftest.$ac_ext <<_ACEOF
22336 /* end confdefs.h. */
22338 /* Override any GCC internal prototype to avoid an error.
22339 Use char because int might match the return type of a GCC
22340 builtin and then its argument prototype would still apply. */
22348 return dgettext ();
22353 rm -f conftest.$ac_objext conftest$ac_exeext
22354 if { (ac_try="$ac_link"
22355 case "(($ac_try" in
22356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22357 *) ac_try_echo=$ac_try;;
22359 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22360 (eval "$ac_link") 2>conftest.er1
22362 grep -v '^ *+' conftest.er1 >conftest.err
22364 cat conftest.err >&5
22365 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22366 (exit $ac_status); } && {
22367 test -z "$ac_c_werror_flag" ||
22368 test ! -s conftest.err
22369 } && test -s conftest$ac_exeext &&
22370 $as_test_x conftest$ac_exeext; then
22371 ac_cv_lib_intl_dgettext=yes
22373 echo "$as_me: failed program was
:" >&5
22374 sed 's/^/| /' conftest.$ac_ext >&5
22376 ac_cv_lib_intl_dgettext=no
22379 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22380 conftest$ac_exeext conftest.$ac_ext
22381 LIBS=$ac_check_lib_save_LIBS
22383 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22384 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22385 if test $ac_cv_lib_intl_dgettext = yes; then
22386 cat >>confdefs.h <<_ACEOF
22387 #define HAVE_LIBINTL 1
22390 LIBS="-lintl $LIBS"
22395 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22396 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22397 if test "${emacs_cv_localtime_cache+set}" = set; then
22398 echo $ECHO_N "(cached
) $ECHO_C" >&6
22400 if test x$ac_cv_func_tzset = xyes; then
22401 if test "$cross_compiling" = yes; then
22402 # If we have tzset, assume the worst when cross-compiling.
22403 emacs_cv_localtime_cache=yes
22405 cat >conftest.$ac_ext <<_ACEOF
22408 cat confdefs.h >>conftest.$ac_ext
22409 cat >>conftest.$ac_ext <<_ACEOF
22410 /* end confdefs.h. */
22412 extern char **environ;
22416 for (to = from = environ; (*to = *from); from++)
22417 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22420 char TZ_GMT0[] = "TZ
=GMT0
";
22421 char TZ_PST8[] = "TZ
=PST8
";
22424 time_t now = time ((time_t *) 0);
22425 int hour_GMT0, hour_unset;
22426 if (putenv (TZ_GMT0) != 0)
22428 hour_GMT0 = localtime (&now)->tm_hour;
22430 hour_unset = localtime (&now)->tm_hour;
22431 if (putenv (TZ_PST8) != 0)
22433 if (localtime (&now)->tm_hour == hour_GMT0)
22436 if (localtime (&now)->tm_hour != hour_unset)
22441 rm -f conftest$ac_exeext
22442 if { (ac_try="$ac_link"
22443 case "(($ac_try" in
22444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22445 *) ac_try_echo=$ac_try;;
22447 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22448 (eval "$ac_link") 2>&5
22450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22451 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22452 { (case "(($ac_try" in
22453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22454 *) ac_try_echo=$ac_try;;
22456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22457 (eval "$ac_try") 2>&5
22459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22460 (exit $ac_status); }; }; then
22461 emacs_cv_localtime_cache=no
22463 echo "$as_me: program exited with status
$ac_status" >&5
22464 echo "$as_me: failed program was
:" >&5
22465 sed 's/^/| /' conftest.$ac_ext >&5
22467 ( exit $ac_status )
22468 emacs_cv_localtime_cache=yes
22470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22475 # If we lack tzset, report that localtime does not cache TZ,
22476 # since we can't invalidate the cache if we don't have tzset.
22477 emacs_cv_localtime_cache=no
22480 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22481 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22482 if test $emacs_cv_localtime_cache = yes; then
22484 cat >>confdefs.h <<\_ACEOF
22485 #define LOCALTIME_CACHE 1
22490 if test "x
$HAVE_TIMEVAL" = xyes; then
22492 for ac_func in gettimeofday
22494 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22495 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22496 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22497 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22498 echo $ECHO_N "(cached
) $ECHO_C" >&6
22500 cat >conftest.$ac_ext <<_ACEOF
22503 cat confdefs.h >>conftest.$ac_ext
22504 cat >>conftest.$ac_ext <<_ACEOF
22505 /* end confdefs.h. */
22506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22508 #define $ac_func innocuous_$ac_func
22510 /* System header to define __stub macros and hopefully few prototypes,
22511 which can conflict with char $ac_func (); below.
22512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22513 <limits.h> exists even on freestanding compilers. */
22516 # include <limits.h>
22518 # include <assert.h>
22523 /* Override any GCC internal prototype to avoid an error.
22524 Use char because int might match the return type of a GCC
22525 builtin and then its argument prototype would still apply. */
22530 /* The GNU C library defines this for functions which it implements
22531 to always fail with ENOSYS. Some functions are actually named
22532 something starting with __ and the normal name is an alias. */
22533 #if defined __stub_$ac_func || defined __stub___$ac_func
22540 return $ac_func ();
22545 rm -f conftest.$ac_objext conftest$ac_exeext
22546 if { (ac_try="$ac_link"
22547 case "(($ac_try" in
22548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22549 *) ac_try_echo=$ac_try;;
22551 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22552 (eval "$ac_link") 2>conftest.er1
22554 grep -v '^ *+' conftest.er1 >conftest.err
22556 cat conftest.err >&5
22557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22558 (exit $ac_status); } && {
22559 test -z "$ac_c_werror_flag" ||
22560 test ! -s conftest.err
22561 } && test -s conftest$ac_exeext &&
22562 $as_test_x conftest$ac_exeext; then
22563 eval "$as_ac_var=yes"
22565 echo "$as_me: failed program was
:" >&5
22566 sed 's/^/| /' conftest.$ac_ext >&5
22568 eval "$as_ac_var=no
"
22571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22572 conftest$ac_exeext conftest.$ac_ext
22574 ac_res=`eval echo '${'$as_ac_var'}'`
22575 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22576 echo "${ECHO_T}$ac_res" >&6; }
22577 if test `eval echo '${'$as_ac_var'}'` = yes; then
22578 cat >>confdefs.h <<_ACEOF
22579 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22585 if test $ac_cv_func_gettimeofday = yes; then
22586 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22587 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22588 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22589 echo $ECHO_N "(cached
) $ECHO_C" >&6
22591 cat >conftest.$ac_ext <<_ACEOF
22594 cat confdefs.h >>conftest.$ac_ext
22595 cat >>conftest.$ac_ext <<_ACEOF
22596 /* end confdefs.h. */
22598 #ifdef TIME_WITH_SYS_TIME
22599 #include <sys/time.h>
22602 #ifdef HAVE_SYS_TIME_H
22603 #include <sys/time.h>
22611 struct timeval time;
22612 gettimeofday (&time, 0);
22617 rm -f conftest.$ac_objext
22618 if { (ac_try="$ac_compile"
22619 case "(($ac_try" in
22620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22621 *) ac_try_echo=$ac_try;;
22623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22624 (eval "$ac_compile") 2>conftest.er1
22626 grep -v '^ *+' conftest.er1 >conftest.err
22628 cat conftest.err >&5
22629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22630 (exit $ac_status); } && {
22631 test -z "$ac_c_werror_flag" ||
22632 test ! -s conftest.err
22633 } && test -s conftest.$ac_objext; then
22634 emacs_cv_gettimeofday_two_arguments=yes
22636 echo "$as_me: failed program was
:" >&5
22637 sed 's/^/| /' conftest.$ac_ext >&5
22639 emacs_cv_gettimeofday_two_arguments=no
22642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22644 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22645 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22646 if test $emacs_cv_gettimeofday_two_arguments = no; then
22648 cat >>confdefs.h <<\_ACEOF
22649 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22657 { echo "$as_me:$LINENO: checking
for socket
" >&5
22658 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22659 if test "${ac_cv_func_socket+set}" = set; then
22660 echo $ECHO_N "(cached
) $ECHO_C" >&6
22662 cat >conftest.$ac_ext <<_ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h. */
22668 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22670 #define socket innocuous_socket
22672 /* System header to define __stub macros and hopefully few prototypes,
22673 which can conflict with char socket (); below.
22674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22675 <limits.h> exists even on freestanding compilers. */
22678 # include <limits.h>
22680 # include <assert.h>
22685 /* Override any GCC internal prototype to avoid an error.
22686 Use char because int might match the return type of a GCC
22687 builtin and then its argument prototype would still apply. */
22692 /* The GNU C library defines this for functions which it implements
22693 to always fail with ENOSYS. Some functions are actually named
22694 something starting with __ and the normal name is an alias. */
22695 #if defined __stub_socket || defined __stub___socket
22707 rm -f conftest.$ac_objext conftest$ac_exeext
22708 if { (ac_try="$ac_link"
22709 case "(($ac_try" in
22710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22711 *) ac_try_echo=$ac_try;;
22713 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22714 (eval "$ac_link") 2>conftest.er1
22716 grep -v '^ *+' conftest.er1 >conftest.err
22718 cat conftest.err >&5
22719 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22720 (exit $ac_status); } && {
22721 test -z "$ac_c_werror_flag" ||
22722 test ! -s conftest.err
22723 } && test -s conftest$ac_exeext &&
22724 $as_test_x conftest$ac_exeext; then
22725 ac_cv_func_socket=yes
22727 echo "$as_me: failed program was
:" >&5
22728 sed 's/^/| /' conftest.$ac_ext >&5
22730 ac_cv_func_socket=no
22733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22734 conftest$ac_exeext conftest.$ac_ext
22736 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22737 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22738 if test $ac_cv_func_socket = yes; then
22744 if test $ok_so_far = yes; then
22745 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22746 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22747 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22748 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22749 echo $ECHO_N "(cached
) $ECHO_C" >&6
22751 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22752 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22754 # Is the header compilable?
22755 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22756 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22757 cat >conftest.$ac_ext <<_ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22763 $ac_includes_default
22764 #include <netinet/in.h>
22766 rm -f conftest.$ac_objext
22767 if { (ac_try="$ac_compile"
22768 case "(($ac_try" in
22769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770 *) ac_try_echo=$ac_try;;
22772 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22773 (eval "$ac_compile") 2>conftest.er1
22775 grep -v '^ *+' conftest.er1 >conftest.err
22777 cat conftest.err >&5
22778 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22779 (exit $ac_status); } && {
22780 test -z "$ac_c_werror_flag" ||
22781 test ! -s conftest.err
22782 } && test -s conftest.$ac_objext; then
22783 ac_header_compiler=yes
22785 echo "$as_me: failed program was
:" >&5
22786 sed 's/^/| /' conftest.$ac_ext >&5
22788 ac_header_compiler=no
22791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22792 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22793 echo "${ECHO_T}$ac_header_compiler" >&6; }
22795 # Is the header present?
22796 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22797 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22798 cat >conftest.$ac_ext <<_ACEOF
22801 cat confdefs.h >>conftest.$ac_ext
22802 cat >>conftest.$ac_ext <<_ACEOF
22803 /* end confdefs.h. */
22804 #include <netinet/in.h>
22806 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22807 case "(($ac_try" in
22808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22809 *) ac_try_echo=$ac_try;;
22811 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22812 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22814 grep -v '^ *+' conftest.er1 >conftest.err
22816 cat conftest.err >&5
22817 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22818 (exit $ac_status); } >/dev/null && {
22819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22820 test ! -s conftest.err
22822 ac_header_preproc=yes
22824 echo "$as_me: failed program was
:" >&5
22825 sed 's/^/| /' conftest.$ac_ext >&5
22827 ac_header_preproc=no
22830 rm -f conftest.err conftest.$ac_ext
22831 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22832 echo "${ECHO_T}$ac_header_preproc" >&6; }
22834 # So? What about this header?
22835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22837 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22838 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22839 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22840 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22841 ac_header_preproc=yes
22844 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22845 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22846 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22847 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22848 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22849 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22850 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22851 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22852 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22853 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22854 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22855 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22859 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22860 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22861 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22862 echo $ECHO_N "(cached
) $ECHO_C" >&6
22864 ac_cv_header_netinet_in_h=$ac_header_preproc
22866 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22867 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22870 if test $ac_cv_header_netinet_in_h = yes; then
22878 if test $ok_so_far = yes; then
22879 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22880 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22881 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22882 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22883 echo $ECHO_N "(cached
) $ECHO_C" >&6
22885 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22886 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22888 # Is the header compilable?
22889 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22890 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22891 cat >conftest.$ac_ext <<_ACEOF
22894 cat confdefs.h >>conftest.$ac_ext
22895 cat >>conftest.$ac_ext <<_ACEOF
22896 /* end confdefs.h. */
22897 $ac_includes_default
22898 #include <arpa/inet.h>
22900 rm -f conftest.$ac_objext
22901 if { (ac_try="$ac_compile"
22902 case "(($ac_try" in
22903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22904 *) ac_try_echo=$ac_try;;
22906 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22907 (eval "$ac_compile") 2>conftest.er1
22909 grep -v '^ *+' conftest.er1 >conftest.err
22911 cat conftest.err >&5
22912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22913 (exit $ac_status); } && {
22914 test -z "$ac_c_werror_flag" ||
22915 test ! -s conftest.err
22916 } && test -s conftest.$ac_objext; then
22917 ac_header_compiler=yes
22919 echo "$as_me: failed program was
:" >&5
22920 sed 's/^/| /' conftest.$ac_ext >&5
22922 ac_header_compiler=no
22925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22926 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22927 echo "${ECHO_T}$ac_header_compiler" >&6; }
22929 # Is the header present?
22930 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22931 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22932 cat >conftest.$ac_ext <<_ACEOF
22935 cat confdefs.h >>conftest.$ac_ext
22936 cat >>conftest.$ac_ext <<_ACEOF
22937 /* end confdefs.h. */
22938 #include <arpa/inet.h>
22940 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22941 case "(($ac_try" in
22942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22943 *) ac_try_echo=$ac_try;;
22945 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22946 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22948 grep -v '^ *+' conftest.er1 >conftest.err
22950 cat conftest.err >&5
22951 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22952 (exit $ac_status); } >/dev/null && {
22953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22954 test ! -s conftest.err
22956 ac_header_preproc=yes
22958 echo "$as_me: failed program was
:" >&5
22959 sed 's/^/| /' conftest.$ac_ext >&5
22961 ac_header_preproc=no
22964 rm -f conftest.err conftest.$ac_ext
22965 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22966 echo "${ECHO_T}$ac_header_preproc" >&6; }
22968 # So? What about this header?
22969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22971 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22972 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22973 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22974 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22975 ac_header_preproc=yes
22978 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22979 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22980 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22981 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22982 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22983 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22984 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22985 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22986 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22987 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22988 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22989 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22993 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22994 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22995 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22996 echo $ECHO_N "(cached
) $ECHO_C" >&6
22998 ac_cv_header_arpa_inet_h=$ac_header_preproc
23000 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
23001 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
23004 if test $ac_cv_header_arpa_inet_h = yes; then
23012 if test $ok_so_far = yes; then
23014 cat >>confdefs.h <<\_ACEOF
23015 #define HAVE_INET_SOCKETS 1
23021 for ac_header in sys/ioctl.h
23023 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23024 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23025 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23026 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23027 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23028 echo $ECHO_N "(cached
) $ECHO_C" >&6
23030 ac_res=`eval echo '${'$as_ac_Header'}'`
23031 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23032 echo "${ECHO_T}$ac_res" >&6; }
23034 # Is the header compilable?
23035 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23036 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23037 cat >conftest.$ac_ext <<_ACEOF
23040 cat confdefs.h >>conftest.$ac_ext
23041 cat >>conftest.$ac_ext <<_ACEOF
23042 /* end confdefs.h. */
23043 $ac_includes_default
23044 #include <$ac_header>
23046 rm -f conftest.$ac_objext
23047 if { (ac_try="$ac_compile"
23048 case "(($ac_try" in
23049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23050 *) ac_try_echo=$ac_try;;
23052 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23053 (eval "$ac_compile") 2>conftest.er1
23055 grep -v '^ *+' conftest.er1 >conftest.err
23057 cat conftest.err >&5
23058 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23059 (exit $ac_status); } && {
23060 test -z "$ac_c_werror_flag" ||
23061 test ! -s conftest.err
23062 } && test -s conftest.$ac_objext; then
23063 ac_header_compiler=yes
23065 echo "$as_me: failed program was
:" >&5
23066 sed 's/^/| /' conftest.$ac_ext >&5
23068 ac_header_compiler=no
23071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23072 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23073 echo "${ECHO_T}$ac_header_compiler" >&6; }
23075 # Is the header present?
23076 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23077 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23078 cat >conftest.$ac_ext <<_ACEOF
23081 cat confdefs.h >>conftest.$ac_ext
23082 cat >>conftest.$ac_ext <<_ACEOF
23083 /* end confdefs.h. */
23084 #include <$ac_header>
23086 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23087 case "(($ac_try" in
23088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089 *) ac_try_echo=$ac_try;;
23091 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23092 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23094 grep -v '^ *+' conftest.er1 >conftest.err
23096 cat conftest.err >&5
23097 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23098 (exit $ac_status); } >/dev/null && {
23099 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23100 test ! -s conftest.err
23102 ac_header_preproc=yes
23104 echo "$as_me: failed program was
:" >&5
23105 sed 's/^/| /' conftest.$ac_ext >&5
23107 ac_header_preproc=no
23110 rm -f conftest.err conftest.$ac_ext
23111 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23112 echo "${ECHO_T}$ac_header_preproc" >&6; }
23114 # So? What about this header?
23115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23117 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23118 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23119 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23121 ac_header_preproc=yes
23124 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23125 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23126 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23127 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23128 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23129 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23130 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23131 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23132 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23134 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23135 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23139 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23140 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23141 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23142 echo $ECHO_N "(cached
) $ECHO_C" >&6
23144 eval "$as_ac_Header=\
$ac_header_preproc"
23146 ac_res=`eval echo '${'$as_ac_Header'}'`
23147 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23148 echo "${ECHO_T}$ac_res" >&6; }
23151 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23152 cat >>confdefs.h <<_ACEOF
23153 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23161 if test -f /usr/lpp/X11/bin/smt.exp; then
23163 cat >>confdefs.h <<\_ACEOF
23164 #define HAVE_AIX_SMT_EXP 1
23169 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
23170 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
23171 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23172 { echo "$as_me:$LINENO: result
: yes" >&5
23173 echo "${ECHO_T}yes" >&6; }
23175 cat >>confdefs.h <<\_ACEOF
23176 #define HAVE_DEV_PTMX 1
23180 { echo "$as_me:$LINENO: result
: no
" >&5
23181 echo "${ECHO_T}no
" >&6; }
23184 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
23185 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
23186 if test "${ac_cv_type_pid_t+set}" = set; then
23187 echo $ECHO_N "(cached
) $ECHO_C" >&6
23189 cat >conftest.$ac_ext <<_ACEOF
23192 cat confdefs.h >>conftest.$ac_ext
23193 cat >>conftest.$ac_ext <<_ACEOF
23194 /* end confdefs.h. */
23195 $ac_includes_default
23196 typedef pid_t ac__type_new_;
23200 if ((ac__type_new_ *) 0)
23202 if (sizeof (ac__type_new_))
23208 rm -f conftest.$ac_objext
23209 if { (ac_try="$ac_compile"
23210 case "(($ac_try" in
23211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23212 *) ac_try_echo=$ac_try;;
23214 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23215 (eval "$ac_compile") 2>conftest.er1
23217 grep -v '^ *+' conftest.er1 >conftest.err
23219 cat conftest.err >&5
23220 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23221 (exit $ac_status); } && {
23222 test -z "$ac_c_werror_flag" ||
23223 test ! -s conftest.err
23224 } && test -s conftest.$ac_objext; then
23225 ac_cv_type_pid_t=yes
23227 echo "$as_me: failed program was
:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23230 ac_cv_type_pid_t=no
23233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23235 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
23236 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23237 if test $ac_cv_type_pid_t = yes; then
23241 cat >>confdefs.h <<_ACEOF
23248 for ac_header in vfork.h
23250 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23251 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23252 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23253 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23254 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23255 echo $ECHO_N "(cached
) $ECHO_C" >&6
23257 ac_res=`eval echo '${'$as_ac_Header'}'`
23258 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23259 echo "${ECHO_T}$ac_res" >&6; }
23261 # Is the header compilable?
23262 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23263 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23264 cat >conftest.$ac_ext <<_ACEOF
23267 cat confdefs.h >>conftest.$ac_ext
23268 cat >>conftest.$ac_ext <<_ACEOF
23269 /* end confdefs.h. */
23270 $ac_includes_default
23271 #include <$ac_header>
23273 rm -f conftest.$ac_objext
23274 if { (ac_try="$ac_compile"
23275 case "(($ac_try" in
23276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23277 *) ac_try_echo=$ac_try;;
23279 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23280 (eval "$ac_compile") 2>conftest.er1
23282 grep -v '^ *+' conftest.er1 >conftest.err
23284 cat conftest.err >&5
23285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23286 (exit $ac_status); } && {
23287 test -z "$ac_c_werror_flag" ||
23288 test ! -s conftest.err
23289 } && test -s conftest.$ac_objext; then
23290 ac_header_compiler=yes
23292 echo "$as_me: failed program was
:" >&5
23293 sed 's/^/| /' conftest.$ac_ext >&5
23295 ac_header_compiler=no
23298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23299 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23300 echo "${ECHO_T}$ac_header_compiler" >&6; }
23302 # Is the header present?
23303 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23304 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23305 cat >conftest.$ac_ext <<_ACEOF
23308 cat confdefs.h >>conftest.$ac_ext
23309 cat >>conftest.$ac_ext <<_ACEOF
23310 /* end confdefs.h. */
23311 #include <$ac_header>
23313 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23314 case "(($ac_try" in
23315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23316 *) ac_try_echo=$ac_try;;
23318 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23319 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23321 grep -v '^ *+' conftest.er1 >conftest.err
23323 cat conftest.err >&5
23324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23325 (exit $ac_status); } >/dev/null && {
23326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23327 test ! -s conftest.err
23329 ac_header_preproc=yes
23331 echo "$as_me: failed program was
:" >&5
23332 sed 's/^/| /' conftest.$ac_ext >&5
23334 ac_header_preproc=no
23337 rm -f conftest.err conftest.$ac_ext
23338 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23339 echo "${ECHO_T}$ac_header_preproc" >&6; }
23341 # So? What about this header?
23342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23344 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23345 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23346 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23348 ac_header_preproc=yes
23351 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23352 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23353 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23354 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23355 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23356 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23357 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23358 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23359 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23361 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23362 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23366 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23367 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23368 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23369 echo $ECHO_N "(cached
) $ECHO_C" >&6
23371 eval "$as_ac_Header=\
$ac_header_preproc"
23373 ac_res=`eval echo '${'$as_ac_Header'}'`
23374 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23375 echo "${ECHO_T}$ac_res" >&6; }
23378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23379 cat >>confdefs.h <<_ACEOF
23380 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23389 for ac_func in fork vfork
23391 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23392 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23393 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23394 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23395 echo $ECHO_N "(cached
) $ECHO_C" >&6
23397 cat >conftest.$ac_ext <<_ACEOF
23400 cat confdefs.h >>conftest.$ac_ext
23401 cat >>conftest.$ac_ext <<_ACEOF
23402 /* end confdefs.h. */
23403 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23404 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23405 #define $ac_func innocuous_$ac_func
23407 /* System header to define __stub macros and hopefully few prototypes,
23408 which can conflict with char $ac_func (); below.
23409 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23410 <limits.h> exists even on freestanding compilers. */
23413 # include <limits.h>
23415 # include <assert.h>
23420 /* Override any GCC internal prototype to avoid an error.
23421 Use char because int might match the return type of a GCC
23422 builtin and then its argument prototype would still apply. */
23427 /* The GNU C library defines this for functions which it implements
23428 to always fail with ENOSYS. Some functions are actually named
23429 something starting with __ and the normal name is an alias. */
23430 #if defined __stub_$ac_func || defined __stub___$ac_func
23437 return $ac_func ();
23442 rm -f conftest.$ac_objext conftest$ac_exeext
23443 if { (ac_try="$ac_link"
23444 case "(($ac_try" in
23445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23446 *) ac_try_echo=$ac_try;;
23448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23449 (eval "$ac_link") 2>conftest.er1
23451 grep -v '^ *+' conftest.er1 >conftest.err
23453 cat conftest.err >&5
23454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23455 (exit $ac_status); } && {
23456 test -z "$ac_c_werror_flag" ||
23457 test ! -s conftest.err
23458 } && test -s conftest$ac_exeext &&
23459 $as_test_x conftest$ac_exeext; then
23460 eval "$as_ac_var=yes"
23462 echo "$as_me: failed program was
:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23465 eval "$as_ac_var=no
"
23468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23469 conftest$ac_exeext conftest.$ac_ext
23471 ac_res=`eval echo '${'$as_ac_var'}'`
23472 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23473 echo "${ECHO_T}$ac_res" >&6; }
23474 if test `eval echo '${'$as_ac_var'}'` = yes; then
23475 cat >>confdefs.h <<_ACEOF
23476 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23482 if test "x
$ac_cv_func_fork" = xyes; then
23483 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23484 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23485 if test "${ac_cv_func_fork_works+set}" = set; then
23486 echo $ECHO_N "(cached
) $ECHO_C" >&6
23488 if test "$cross_compiling" = yes; then
23489 ac_cv_func_fork_works=cross
23491 cat >conftest.$ac_ext <<_ACEOF
23494 cat confdefs.h >>conftest.$ac_ext
23495 cat >>conftest.$ac_ext <<_ACEOF
23496 /* end confdefs.h. */
23497 $ac_includes_default
23502 /* By Ruediger Kuhlmann. */
23503 return fork () < 0;
23509 rm -f conftest$ac_exeext
23510 if { (ac_try="$ac_link"
23511 case "(($ac_try" in
23512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23513 *) ac_try_echo=$ac_try;;
23515 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23516 (eval "$ac_link") 2>&5
23518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23519 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23520 { (case "(($ac_try" in
23521 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23522 *) ac_try_echo=$ac_try;;
23524 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23525 (eval "$ac_try") 2>&5
23527 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23528 (exit $ac_status); }; }; then
23529 ac_cv_func_fork_works=yes
23531 echo "$as_me: program exited with status
$ac_status" >&5
23532 echo "$as_me: failed program was
:" >&5
23533 sed 's/^/| /' conftest.$ac_ext >&5
23535 ( exit $ac_status )
23536 ac_cv_func_fork_works=no
23538 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23543 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23544 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23547 ac_cv_func_fork_works=$ac_cv_func_fork
23549 if test "x
$ac_cv_func_fork_works" = xcross; then
23551 *-*-amigaos* | *-*-msdosdjgpp*)
23552 # Override, as these systems have only a dummy fork() stub
23553 ac_cv_func_fork_works=no
23556 ac_cv_func_fork_works=yes
23559 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23560 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23562 ac_cv_func_vfork_works=$ac_cv_func_vfork
23563 if test "x
$ac_cv_func_vfork" = xyes; then
23564 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23565 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23566 if test "${ac_cv_func_vfork_works+set}" = set; then
23567 echo $ECHO_N "(cached
) $ECHO_C" >&6
23569 if test "$cross_compiling" = yes; then
23570 ac_cv_func_vfork_works=cross
23572 cat >conftest.$ac_ext <<_ACEOF
23575 cat confdefs.h >>conftest.$ac_ext
23576 cat >>conftest.$ac_ext <<_ACEOF
23577 /* end confdefs.h. */
23578 /* Thanks to Paul Eggert for this test. */
23579 $ac_includes_default
23580 #include <sys/wait.h>
23581 #ifdef HAVE_VFORK_H
23582 # include <vfork.h>
23584 /* On some sparc systems, changes by the child to local and incoming
23585 argument registers are propagated back to the parent. The compiler
23586 is told about this with #include <vfork.h>, but some compilers
23587 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23588 static variable whose address is put into a register that is
23589 clobbered by the vfork. */
23592 sparc_address_test (int arg)
23594 sparc_address_test (arg) int arg;
23597 static pid_t child;
23615 pid_t parent = getpid ();
23618 sparc_address_test (0);
23623 /* Here is another test for sparc vfork register problems. This
23624 test uses lots of local variables, at least as many local
23625 variables as main has allocated so far including compiler
23626 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23627 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23628 reuse the register of parent for one of the local variables,
23629 since it will think that parent can't possibly be used any more
23630 in this routine. Assigning to the local variable will thus
23631 munge parent in the parent process. */
23633 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23634 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23635 /* Convince the compiler that p..p7 are live; otherwise, it might
23636 use the same hardware register for all 8 local variables. */
23637 if (p != p1 || p != p2 || p != p3 || p != p4
23638 || p != p5 || p != p6 || p != p7)
23641 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23642 from child file descriptors. If the child closes a descriptor
23643 before it execs or exits, this munges the parent's descriptor
23644 as well. Test for this by closing stdout in the child. */
23645 _exit(close(fileno(stdout)) != 0);
23650 while (wait(&status) != child)
23653 /* Was there some problem with vforking? */
23656 /* Did the child fail? (This shouldn't happen.) */
23659 /* Did the vfork/compiler bug occur? */
23660 || parent != getpid()
23662 /* Did the file descriptor bug occur? */
23663 || fstat(fileno(stdout), &st) != 0
23668 rm -f conftest$ac_exeext
23669 if { (ac_try="$ac_link"
23670 case "(($ac_try" in
23671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23672 *) ac_try_echo=$ac_try;;
23674 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23675 (eval "$ac_link") 2>&5
23677 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23678 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23679 { (case "(($ac_try" in
23680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23681 *) ac_try_echo=$ac_try;;
23683 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23684 (eval "$ac_try") 2>&5
23686 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23687 (exit $ac_status); }; }; then
23688 ac_cv_func_vfork_works=yes
23690 echo "$as_me: program exited with status
$ac_status" >&5
23691 echo "$as_me: failed program was
:" >&5
23692 sed 's/^/| /' conftest.$ac_ext >&5
23694 ( exit $ac_status )
23695 ac_cv_func_vfork_works=no
23697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23702 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23703 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23706 if test "x
$ac_cv_func_fork_works" = xcross; then
23707 ac_cv_func_vfork_works=$ac_cv_func_vfork
23708 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23709 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23712 if test "x
$ac_cv_func_vfork_works" = xyes; then
23714 cat >>confdefs.h <<\_ACEOF
23715 #define HAVE_WORKING_VFORK 1
23720 cat >>confdefs.h <<\_ACEOF
23725 if test "x
$ac_cv_func_fork_works" = xyes; then
23727 cat >>confdefs.h <<\_ACEOF
23728 #define HAVE_WORKING_FORK 1
23734 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23735 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23736 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23737 echo $ECHO_N "(cached
) $ECHO_C" >&6
23739 cat >conftest.$ac_ext <<_ACEOF
23742 cat confdefs.h >>conftest.$ac_ext
23743 cat >>conftest.$ac_ext <<_ACEOF
23744 /* end confdefs.h. */
23745 #include <langinfo.h>
23749 char* cs = nl_langinfo(CODESET);
23754 rm -f conftest.$ac_objext conftest$ac_exeext
23755 if { (ac_try="$ac_link"
23756 case "(($ac_try" in
23757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23758 *) ac_try_echo=$ac_try;;
23760 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23761 (eval "$ac_link") 2>conftest.er1
23763 grep -v '^ *+' conftest.er1 >conftest.err
23765 cat conftest.err >&5
23766 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23767 (exit $ac_status); } && {
23768 test -z "$ac_c_werror_flag" ||
23769 test ! -s conftest.err
23770 } && test -s conftest$ac_exeext &&
23771 $as_test_x conftest$ac_exeext; then
23772 emacs_cv_langinfo_codeset=yes
23774 echo "$as_me: failed program was
:" >&5
23775 sed 's/^/| /' conftest.$ac_ext >&5
23777 emacs_cv_langinfo_codeset=no
23780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23781 conftest$ac_exeext conftest.$ac_ext
23784 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23785 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23786 if test $emacs_cv_langinfo_codeset = yes; then
23788 cat >>confdefs.h <<\_ACEOF
23789 #define HAVE_LANGINFO_CODESET 1
23794 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23795 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23796 if test "${ac_cv_type_size_t+set}" = set; then
23797 echo $ECHO_N "(cached
) $ECHO_C" >&6
23799 cat >conftest.$ac_ext <<_ACEOF
23802 cat confdefs.h >>conftest.$ac_ext
23803 cat >>conftest.$ac_ext <<_ACEOF
23804 /* end confdefs.h. */
23805 $ac_includes_default
23806 typedef size_t ac__type_new_;
23810 if ((ac__type_new_ *) 0)
23812 if (sizeof (ac__type_new_))
23818 rm -f conftest.$ac_objext
23819 if { (ac_try="$ac_compile"
23820 case "(($ac_try" in
23821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23822 *) ac_try_echo=$ac_try;;
23824 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23825 (eval "$ac_compile") 2>conftest.er1
23827 grep -v '^ *+' conftest.er1 >conftest.err
23829 cat conftest.err >&5
23830 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23831 (exit $ac_status); } && {
23832 test -z "$ac_c_werror_flag" ||
23833 test ! -s conftest.err
23834 } && test -s conftest.$ac_objext; then
23835 ac_cv_type_size_t=yes
23837 echo "$as_me: failed program was
:" >&5
23838 sed 's/^/| /' conftest.$ac_ext >&5
23840 ac_cv_type_size_t=no
23843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23845 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23846 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23847 if test $ac_cv_type_size_t = yes; then
23849 cat >>confdefs.h <<_ACEOF
23850 #define HAVE_SIZE_T 1
23857 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23858 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23859 if test "${ac_cv_type_mbstate_t+set}" = set; then
23860 echo $ECHO_N "(cached
) $ECHO_C" >&6
23862 cat >conftest.$ac_ext <<_ACEOF
23865 cat confdefs.h >>conftest.$ac_ext
23866 cat >>conftest.$ac_ext <<_ACEOF
23867 /* end confdefs.h. */
23868 $ac_includes_default
23869 # include <wchar.h>
23873 mbstate_t x; return sizeof x;
23878 rm -f conftest.$ac_objext
23879 if { (ac_try="$ac_compile"
23880 case "(($ac_try" in
23881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23882 *) ac_try_echo=$ac_try;;
23884 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23885 (eval "$ac_compile") 2>conftest.er1
23887 grep -v '^ *+' conftest.er1 >conftest.err
23889 cat conftest.err >&5
23890 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23891 (exit $ac_status); } && {
23892 test -z "$ac_c_werror_flag" ||
23893 test ! -s conftest.err
23894 } && test -s conftest.$ac_objext; then
23895 ac_cv_type_mbstate_t=yes
23897 echo "$as_me: failed program was
:" >&5
23898 sed 's/^/| /' conftest.$ac_ext >&5
23900 ac_cv_type_mbstate_t=no
23903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23905 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23906 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23907 if test $ac_cv_type_mbstate_t = yes; then
23909 cat >>confdefs.h <<\_ACEOF
23910 #define HAVE_MBSTATE_T 1
23915 cat >>confdefs.h <<\_ACEOF
23916 #define mbstate_t int
23921 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23922 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23923 if test "${emacs_cv_c_restrict+set}" = set; then
23924 echo $ECHO_N "(cached
) $ECHO_C" >&6
23926 cat >conftest.$ac_ext <<_ACEOF
23929 cat confdefs.h >>conftest.$ac_ext
23930 cat >>conftest.$ac_ext <<_ACEOF
23931 /* end confdefs.h. */
23932 void fred (int *restrict x);
23941 rm -f conftest.$ac_objext
23942 if { (ac_try="$ac_compile"
23943 case "(($ac_try" in
23944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23945 *) ac_try_echo=$ac_try;;
23947 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23948 (eval "$ac_compile") 2>conftest.er1
23950 grep -v '^ *+' conftest.er1 >conftest.err
23952 cat conftest.err >&5
23953 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23954 (exit $ac_status); } && {
23955 test -z "$ac_c_werror_flag" ||
23956 test ! -s conftest.err
23957 } && test -s conftest.$ac_objext; then
23958 emacs_cv_c_restrict=yes
23960 echo "$as_me: failed program was
:" >&5
23961 sed 's/^/| /' conftest.$ac_ext >&5
23963 cat >conftest.$ac_ext <<_ACEOF
23966 cat confdefs.h >>conftest.$ac_ext
23967 cat >>conftest.$ac_ext <<_ACEOF
23968 /* end confdefs.h. */
23969 void fred (int *__restrict x);
23978 rm -f conftest.$ac_objext
23979 if { (ac_try="$ac_compile"
23980 case "(($ac_try" in
23981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23982 *) ac_try_echo=$ac_try;;
23984 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23985 (eval "$ac_compile") 2>conftest.er1
23987 grep -v '^ *+' conftest.er1 >conftest.err
23989 cat conftest.err >&5
23990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23991 (exit $ac_status); } && {
23992 test -z "$ac_c_werror_flag" ||
23993 test ! -s conftest.err
23994 } && test -s conftest.$ac_objext; then
23995 emacs_cv_c_restrict=__restrict
23997 echo "$as_me: failed program was
:" >&5
23998 sed 's/^/| /' conftest.$ac_ext >&5
24000 emacs_cv_c_restrict=no
24003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24008 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
24009 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24010 case "$emacs_cv_c_restrict" in
24011 yes) emacs_restrict=restrict;;
24012 no) emacs_restrict="";;
24013 *) emacs_restrict="$emacs_cv_c_restrict";;
24015 if test "$emacs_restrict" != __restrict; then
24017 cat >>confdefs.h <<_ACEOF
24018 #define __restrict $emacs_restrict
24023 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
24024 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
24025 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24026 echo $ECHO_N "(cached
) $ECHO_C" >&6
24028 cat >conftest.$ac_ext <<_ACEOF
24031 cat confdefs.h >>conftest.$ac_ext
24032 cat >>conftest.$ac_ext <<_ACEOF
24033 /* end confdefs.h. */
24034 void fred (int x[__restrict]);
24043 rm -f conftest.$ac_objext
24044 if { (ac_try="$ac_compile"
24045 case "(($ac_try" in
24046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24047 *) ac_try_echo=$ac_try;;
24049 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
24050 (eval "$ac_compile") 2>conftest.er1
24052 grep -v '^ *+' conftest.er1 >conftest.err
24054 cat conftest.err >&5
24055 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
24056 (exit $ac_status); } && {
24057 test -z "$ac_c_werror_flag" ||
24058 test ! -s conftest.err
24059 } && test -s conftest.$ac_objext; then
24060 emacs_cv_c_restrict_arr=yes
24062 echo "$as_me: failed program was
:" >&5
24063 sed 's/^/| /' conftest.$ac_ext >&5
24065 emacs_cv_c_restrict_arr=no
24068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24070 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
24071 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24072 if test "$emacs_cv_c_restrict_arr" = yes; then
24074 cat >>confdefs.h <<\_ACEOF
24075 #define __restrict_arr __restrict
24082 # Set up the CFLAGS for real compilation, so we can substitute it.
24083 CFLAGS="$REAL_CFLAGS"
24084 CPPFLAGS="$REAL_CPPFLAGS"
24086 #### Find out which version of Emacs this is.
24087 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24088 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
24089 if test x"${version}" = x; then
24090 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
24091 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
24092 { (exit 1); exit 1; }; }
24095 ### Specify what sort of things we'll be editing into Makefile and config.h.
24096 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24138 cat >>confdefs.h <<_ACEOF
24139 #define EMACS_CONFIGURATION "${canonical}"
24143 cat >>confdefs.h <<_ACEOF
24144 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24148 cat >>confdefs.h <<_ACEOF
24149 #define config_machfile "${machfile}"
24153 cat >>confdefs.h <<_ACEOF
24154 #define config_opsysfile "${opsysfile}"
24158 cat >>confdefs.h <<_ACEOF
24159 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24163 cat >>confdefs.h <<_ACEOF
24164 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24168 cat >>confdefs.h <<_ACEOF
24169 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24173 cat >>confdefs.h <<_ACEOF
24174 #define UNEXEC_SRC ${UNEXEC_SRC}
24178 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24180 cat >>confdefs.h <<\_ACEOF
24181 #define HAVE_X_WINDOWS 1
24185 if test "${USE_X_TOOLKIT}" != "none
" ; then
24187 cat >>confdefs.h <<\_ACEOF
24188 #define USE_X_TOOLKIT 1
24191 if test "${USE_X_TOOLKIT}" = "LUCID
"; then
24193 cat >>confdefs.h <<\_ACEOF
24194 #define USE_LUCID 1
24197 elif test "${USE_X_TOOLKIT}" = "MOTIF
"; then
24199 cat >>confdefs.h <<\_ACEOF
24200 #define USE_MOTIF 1
24205 if test "${HAVE_X11}" = "yes" ; then
24207 cat >>confdefs.h <<\_ACEOF
24212 if test "${HAVE_MENUS}" = "yes" ; then
24214 cat >>confdefs.h <<\_ACEOF
24215 #define HAVE_MENUS 1
24219 if test "${GNU_MALLOC}" = "yes" ; then
24221 cat >>confdefs.h <<\_ACEOF
24222 #define GNU_MALLOC 1
24226 if test "${REL_ALLOC}" = "yes" ; then
24228 cat >>confdefs.h <<\_ACEOF
24229 #define REL_ALLOC 1
24239 #### Report on what we decided to do.
24240 #### Report GTK as a toolkit, even if it doesn't use Xt.
24241 #### It makes printing result more understandable as using GTK sets
24242 #### toolkit_scroll_bars to yes by default.
24243 if test "${HAVE_GTK}" = "yes"; then
24248 Configured
for \
`${canonical}'.
24250 Where should the build process find the source code? ${srcdir}
24251 What operating system and machine description files should Emacs use?
24252 \`${opsysfile}' and \`${machfile}'
24253 What compiler should emacs be built with?
${CC} ${CFLAGS}
24254 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
24255 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
24256 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
24257 What window system should Emacs use?
${window_system}
24258 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
24260 if test -n "${x_includes}"; then
24261 echo " Where
do we
find X Windows header files?
${x_includes}"
24263 echo " Where
do we
find X Windows header files? Standard
dirs"
24265 if test -n "${x_libraries}"; then
24266 echo " Where
do we
find X Windows libraries?
${x_libraries}"
24268 echo " Where
do we
find X Windows libraries? Standard
dirs"
24271 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
24272 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
24273 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
24274 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
24275 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
24276 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
24277 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
24278 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
24279 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
24281 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
24282 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
24283 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
24284 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
24286 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
24289 if test $USE_XASSERTS = yes; then
24290 echo " Compiling with asserts turned on.
"
24291 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24296 if test "$USE_X_TOOLKIT" = GTK; then
24297 case "$canonical" in
24299 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
24300 will probably get a crash on startup. If this happens
, please use another
24301 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
24306 if test "$HAVE_NS" = "yes"; then
24308 echo "You must run
\"make install\" in order to
test the built application.
24309 The installed application will go to nextstep
/Emacs.app and can be
24310 run or moved from there.
"
24311 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24312 echo "The application will be fully self-contained.
"
24314 echo "The lisp resources
for the application will be installed under
${prefix}.
24315 You may need to run
\"make install\" with sudo. The application will fail
24316 to run
if these resources are not installed.
"
24321 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24322 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24327 # Remove any trailing slashes in these variables.
24328 test "${prefix}" != NONE &&
24329 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24330 test "${exec_prefix}" != NONE &&
24331 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24333 # Now get this: Some word that is part of the ${srcdir} directory name
24334 # or the ${configuration} value might, just might, happen to be an
24335 # identifier like `sun4' or `i386' or something, and be predefined by
24336 # the C preprocessor to some helpful value like 1, or maybe the empty
24337 # string. Needless to say consequent macro substitutions are less
24338 # than conducive to the makefile finding the correct directory.
24339 cpp_undefs="`echo $srcdir $configuration $canonical |
24340 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24341 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24343 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24344 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24345 ## from Makefile.c can correctly provide the arg `-traditional' to the
24348 cat >conftest.$ac_ext <<_ACEOF
24351 cat confdefs.h >>conftest.$ac_ext
24352 cat >>conftest.$ac_ext <<_ACEOF
24353 /* end confdefs.h. */
24356 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24357 $EGREP "yes..
yes" >/dev/null 2>&1; then
24358 CPP_NEED_TRADITIONAL=no
24360 CPP_NEED_TRADITIONAL=yes
24365 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
"
24367 ac_config_commands="$ac_config_commands default
"
24369 cat >confcache <<\_ACEOF
24370 # This file is a shell script that caches the results of configure
24371 # tests run on this system so they can be shared between configure
24372 # scripts and configure runs, see configure's option --config-cache.
24373 # It is not useful on other systems. If it contains results you don't
24374 # want to keep, you may remove or edit it.
24376 # config.status only pays attention to the cache file if you give it
24377 # the --recheck option to rerun configure.
24379 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24380 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24381 # following values.
24385 # The following way of writing the cache mishandles newlines in values,
24386 # but we know of no workaround that is simple, portable, and efficient.
24387 # So, we kill variables containing newlines.
24388 # Ultrix sh set writes to stderr and can't be redirected directly,
24389 # and sets the high bit in the cache file unless we assign to the vars.
24391 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24392 eval ac_val=\$$ac_var
24396 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24397 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24400 _ | IFS | as_nl) ;; #(
24401 *) $as_unset $ac_var ;;
24407 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24408 *${as_nl}ac_space=\ *)
24409 # `set' does not quote correctly, so add quotes (double-quote
24410 # substitution turns \\\\ into \\, and sed turns \\ into \).
24413 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24416 # `set' quotes correctly as required by POSIX, so do not add quotes.
24417 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24426 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24428 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24430 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24431 if test -w "$cache_file"; then
24432 test "x
$cache_file" != "x
/dev
/null
" &&
24433 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24434 echo "$as_me: updating cache
$cache_file" >&6;}
24435 cat confcache >$cache_file
24437 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24438 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24443 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24444 # Let make expand exec_prefix.
24445 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24447 DEFS=-DHAVE_CONFIG_H
24451 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24452 # 1. Remove the extension, and $U if already installed.
24453 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24454 ac_i=`echo "$ac_i" | sed "$ac_script"`
24455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24456 # will be set to the directory where LIBOBJS objects are built.
24457 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24458 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24460 LIBOBJS=$ac_libobjs
24462 LTLIBOBJS=$ac_ltlibobjs
24466 : ${CONFIG_STATUS=./config.status}
24467 ac_clean_files_save=$ac_clean_files
24468 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24469 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24470 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24471 cat >$CONFIG_STATUS <<_ACEOF
24473 # Generated by $as_me.
24474 # Run this file to recreate the current configuration.
24475 # Compiler output produced by configure, useful for debugging
24476 # configure, is in config.log if it exists.
24479 ac_cs_recheck=false
24481 SHELL=\${CONFIG_SHELL-$SHELL}
24484 cat >>$CONFIG_STATUS <<\_ACEOF
24485 ## --------------------- ##
24486 ## M4sh Initialization. ##
24487 ## --------------------- ##
24489 # Be more Bourne compatible
24490 DUALCASE=1; export DUALCASE # for MKS sh
24491 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24494 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24495 # is contrary to our usage. Disable this feature.
24496 alias -g '${1+"$@"}'='"$@
"'
24497 setopt NO_GLOB_SUBST
24499 case `(set -o) 2>/dev/null` in
24500 *posix*) set -o posix ;;
24509 # Avoid depending upon Character Ranges.
24510 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24511 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24512 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24513 as_cr_digits='0123456789'
24514 as_cr_alnum=$as_cr_Letters$as_cr_digits
24516 # The user is always right.
24517 if test "${PATH_SEPARATOR+set}" != set; then
24518 echo "#! /bin/sh" >conf$$.sh
24519 echo "exit 0" >>conf$$.sh
24521 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24529 # Support unset when possible.
24530 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24538 # We need space, tab and new line, in precisely that order. Quoting is
24539 # there to prevent editors from complaining about space-tab.
24540 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24541 # splitting by setting IFS to empty value.)
24546 # Find who we are. Look in the path if we contain no directory separator.
24548 *[\\/]* ) as_myself
=$0 ;;
24549 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24550 for as_dir
in $PATH
24553 test -z "$as_dir" && as_dir
=.
24554 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24560 # We did not find ourselves, most probably we were run as `sh COMMAND'
24561 # in which case we are not to be found in the path.
24562 if test "x$as_myself" = x
; then
24565 if test ! -f "$as_myself"; then
24566 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24567 { (exit 1); exit 1; }
24570 # Work around bugs in pre-3.0 UWIN ksh.
24571 for as_var
in ENV MAIL MAILPATH
24572 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24580 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24581 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24582 LC_TELEPHONE LC_TIME
24584 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24585 eval $as_var=C
; export $as_var
24587 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24591 # Required to use basename.
24592 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24593 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24599 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24600 as_basename
=basename
24606 # Name of the executable.
24607 as_me
=`$as_basename -- "$0" ||
24608 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24609 X"$0" : 'X\(//\)$' \| \
24610 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24612 sed '/^.*\/\([^/][^/]*\)\/*$/{
24631 as_lineno_1
=$LINENO
24632 as_lineno_2
=$LINENO
24633 test "x$as_lineno_1" != "x$as_lineno_2" &&
24634 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24636 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24637 # uniformly replaced by the line number. The first 'sed' inserts a
24638 # line-number line after each line using $LINENO; the second 'sed'
24639 # does the real work. The second script uses 'N' to pair each
24640 # line-number line with the line containing $LINENO, and appends
24641 # trailing '-' during substitution so that $LINENO is not a special
24642 # case at line end.
24643 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24644 # scripts with optimization help from Paolo Bonzini. Blame Lee
24645 # E. McMahon (1931-1989) for sed's syntax. :-)
24657 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24660 ' >$as_me.lineno
&&
24661 chmod +x
"$as_me.lineno" ||
24662 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24663 { (exit 1); exit 1; }; }
24665 # Don't try to exec as it changes $[0], causing all sort of problems
24666 # (the dirname of $[0] is not the place where we might find the
24667 # original and so on. Autoconf is especially sensitive to this).
24668 .
"./$as_me.lineno"
24669 # Exit status is that of the last command.
24674 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24680 ECHO_C
= ECHO_N
= ECHO_T
=
24681 case `echo -n x` in
24683 case `echo 'x\c'` in
24684 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24691 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24692 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24698 rm -f conf$$ conf$$.exe conf$$.
file
24699 if test -d conf$$.dir
; then
24700 rm -f conf$$.dir
/conf$$.
file
24706 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24708 # ... but there are two gotchas:
24709 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24710 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24711 # In both cases, we have to default to `cp -p'.
24712 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24714 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24719 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24720 rmdir conf$$.dir
2>/dev
/null
24722 if mkdir
-p .
2>/dev
/null
; then
24725 test -d .
/-p && rmdir .
/-p
24729 if test -x / >/dev
/null
2>&1; then
24730 as_test_x
='test -x'
24732 if ls -dL / >/dev
/null
2>&1; then
24739 if test -d "$1"; then
24745 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24746 ???[sx]*):;;*)false;;esac;fi
24750 as_executable_p
=$as_test_x
24752 # Sed expression to map a string onto a valid CPP name.
24753 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24755 # Sed expression to map a string onto a valid variable name.
24756 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24761 # Save the log message, to keep $[0] and so on meaningful, and to
24762 # report actual input values of CONFIG_FILES etc. instead of their
24763 # values after options handling.
24765 This file was extended by emacs $as_me 23.0.60, which was
24766 generated by GNU Autoconf 2.61. Invocation command line was
24768 CONFIG_FILES = $CONFIG_FILES
24769 CONFIG_HEADERS = $CONFIG_HEADERS
24770 CONFIG_LINKS = $CONFIG_LINKS
24771 CONFIG_COMMANDS = $CONFIG_COMMANDS
24774 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24779 cat >>$CONFIG_STATUS <<_ACEOF
24780 # Files that config.status was made for.
24781 config_files="$ac_config_files"
24782 config_headers="$ac_config_headers"
24783 config_commands="$ac_config_commands"
24787 cat >>$CONFIG_STATUS <<\_ACEOF
24789 \`$as_me' instantiates files from templates according to the
24790 current configuration.
24792 Usage: $0 [OPTIONS] [FILE]...
24794 -h, --help print this help, then exit
24795 -V, --version print version number and configuration settings, then exit
24796 -q, --quiet do not print progress messages
24797 -d, --debug don't remove temporary files
24798 --recheck update $as_me by reconfiguring in the same conditions
24799 --file=FILE[:TEMPLATE]
24800 instantiate the configuration file FILE
24801 --header=FILE[:TEMPLATE]
24802 instantiate the configuration header FILE
24804 Configuration files:
24807 Configuration headers:
24810 Configuration commands:
24813 Report bugs to <bug-autoconf@gnu.org>."
24816 cat >>$CONFIG_STATUS <<_ACEOF
24818 emacs config.status 23.0.60
24819 configured by $0, generated by GNU Autoconf 2.61,
24820 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24822 Copyright (C) 2006 Free Software Foundation, Inc.
24823 This config.status script is free software; the Free Software Foundation
24824 gives unlimited permission to copy, distribute and modify it."
24831 cat >>$CONFIG_STATUS <<\_ACEOF
24832 # If no file are specified by the user, then we need to provide default
24833 # value. By we need to know if files were specified by the user.
24839 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24840 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24851 # Handling of the options.
24852 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24854 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24855 echo "$ac_cs_version"; exit ;;
24856 --debug |
--debu |
--deb |
--de |
--d |
-d )
24858 --file |
--fil |
--fi |
--f )
24860 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24861 ac_need_defaults
=false
;;
24862 --header |
--heade |
--head |
--hea )
24864 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24865 ac_need_defaults
=false
;;
24867 # Conflict between --help and --header
24868 { echo "$as_me: error: ambiguous option: $1
24869 Try \`$0 --help' for more information." >&2
24870 { (exit 1); exit 1; }; };;
24871 --help |
--hel |
-h )
24872 echo "$ac_cs_usage"; exit ;;
24873 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24874 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24877 # This is an error.
24878 -*) { echo "$as_me: error: unrecognized option: $1
24879 Try \`$0 --help' for more information." >&2
24880 { (exit 1); exit 1; }; } ;;
24882 *) ac_config_targets
="$ac_config_targets $1"
24883 ac_need_defaults
=false
;;
24889 ac_configure_extra_args
=
24891 if $ac_cs_silent; then
24893 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24897 cat >>$CONFIG_STATUS <<_ACEOF
24898 if \$ac_cs_recheck; then
24899 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24900 CONFIG_SHELL=$SHELL
24901 export CONFIG_SHELL
24902 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24906 cat >>$CONFIG_STATUS <<\_ACEOF
24910 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24911 ## Running $as_me. ##
24917 cat >>$CONFIG_STATUS <<_ACEOF
24921 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24925 cat >>$CONFIG_STATUS <<\_ACEOF
24927 # Handling of arguments.
24928 for ac_config_target
in $ac_config_targets
24930 case $ac_config_target in
24931 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24932 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24933 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24934 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24935 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24936 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24937 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24938 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24939 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24940 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24941 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24942 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24943 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24945 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24946 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24947 { (exit 1); exit 1; }; };;
24952 # If the user did not use the arguments to specify the items to instantiate,
24953 # then the envvar interface is used. Set only those that are not.
24954 # We use the long form for the default assignment because of an extremely
24955 # bizarre bug on SunOS 4.1.3.
24956 if $ac_need_defaults; then
24957 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24958 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24959 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24962 # Have a temporary directory for convenience. Make it in the build tree
24963 # simply because there is no reason against having it here, and in addition,
24964 # creating and moving files from /tmp can sometimes cause problems.
24965 # Hook for its removal unless debugging.
24966 # Note that there is a small window in which the directory will not be cleaned:
24967 # after its creation but before its name has been assigned to `$tmp'.
24971 trap 'exit_status=$?
24972 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24974 trap '{ (exit 1); exit 1; }' 1 2 13 15
24976 # Create a (secure) tmp directory for tmp files.
24979 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24980 test -n "$tmp" && test -d "$tmp"
24983 tmp
=.
/conf$$
-$RANDOM
24984 (umask 077 && mkdir
"$tmp")
24987 echo "$me: cannot create a temporary directory in ." >&2
24988 { (exit 1); exit 1; }
24992 # Set up the sed scripts for CONFIG_FILES section.
24995 # No need to generate the scripts if there are no CONFIG_FILES.
24996 # This happens for instance when ./config.status config.h
24997 if test -n "$CONFIG_FILES"; then
25004 for ac_last_try
in false false false false false
:; do
25005 cat >conf$
$subs.
sed <<_ACEOF
25006 SHELL!$SHELL$ac_delim
25007 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
25008 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25009 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25010 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25011 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25012 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25013 exec_prefix!$exec_prefix$ac_delim
25014 prefix!$prefix$ac_delim
25015 program_transform_name!$program_transform_name$ac_delim
25016 bindir!$bindir$ac_delim
25017 sbindir!$sbindir$ac_delim
25018 libexecdir!$libexecdir$ac_delim
25019 datarootdir!$datarootdir$ac_delim
25020 datadir!$datadir$ac_delim
25021 sysconfdir!$sysconfdir$ac_delim
25022 sharedstatedir!$sharedstatedir$ac_delim
25023 localstatedir!$localstatedir$ac_delim
25024 includedir!$includedir$ac_delim
25025 oldincludedir!$oldincludedir$ac_delim
25026 docdir!$docdir$ac_delim
25027 infodir!$infodir$ac_delim
25028 htmldir!$htmldir$ac_delim
25029 dvidir!$dvidir$ac_delim
25030 pdfdir!$pdfdir$ac_delim
25031 psdir!$psdir$ac_delim
25032 libdir!$libdir$ac_delim
25033 localedir!$localedir$ac_delim
25034 mandir!$mandir$ac_delim
25035 DEFS!$DEFS$ac_delim
25036 ECHO_C!$ECHO_C$ac_delim
25037 ECHO_N!$ECHO_N$ac_delim
25038 ECHO_T!$ECHO_T$ac_delim
25039 LIBS!$LIBS$ac_delim
25040 build_alias!$build_alias$ac_delim
25041 host_alias!$host_alias$ac_delim
25042 target_alias!$target_alias$ac_delim
25043 MAINT!$MAINT$ac_delim
25044 build!$build$ac_delim
25045 build_cpu!$build_cpu$ac_delim
25046 build_vendor!$build_vendor$ac_delim
25047 build_os!$build_os$ac_delim
25048 host!$host$ac_delim
25049 host_cpu!$host_cpu$ac_delim
25050 host_vendor!$host_vendor$ac_delim
25051 host_os!$host_os$ac_delim
25053 CFLAGS!$CFLAGS$ac_delim
25054 LDFLAGS!$LDFLAGS$ac_delim
25055 CPPFLAGS!$CPPFLAGS$ac_delim
25056 ac_ct_CC!$ac_ct_CC$ac_delim
25057 EXEEXT!$EXEEXT$ac_delim
25058 OBJEXT!$OBJEXT$ac_delim
25060 GREP!$GREP$ac_delim
25061 EGREP!$EGREP$ac_delim
25062 LN_S!$LN_S$ac_delim
25063 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25064 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25065 INSTALL_DATA!$INSTALL_DATA$ac_delim
25066 RANLIB!$RANLIB$ac_delim
25067 INSTALL_INFO!$INSTALL_INFO$ac_delim
25068 GZIP_PROG!$GZIP_PROG$ac_delim
25069 MAKEINFO!$MAKEINFO$ac_delim
25070 LIBSOUND!$LIBSOUND$ac_delim
25071 PKG_CONFIG!$PKG_CONFIG$ac_delim
25072 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25073 ALSA_LIBS!$ALSA_LIBS$ac_delim
25074 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25075 SET_MAKE!$SET_MAKE$ac_delim
25076 XMKMF!$XMKMF$ac_delim
25077 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25078 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25079 RSVG_LIBS!$RSVG_LIBS$ac_delim
25080 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25081 GTK_LIBS!$GTK_LIBS$ac_delim
25082 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25083 DBUS_LIBS!$DBUS_LIBS$ac_delim
25084 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25085 XFT_LIBS!$XFT_LIBS$ac_delim
25086 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25087 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25088 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25089 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25090 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25091 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25092 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25093 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25094 ALLOCA!$ALLOCA$ac_delim
25095 liblockfile!$liblockfile$ac_delim
25096 LIBOBJS!$LIBOBJS$ac_delim
25097 NEED_SETGID!$NEED_SETGID$ac_delim
25098 KMEM_GROUP!$KMEM_GROUP$ac_delim
25099 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25100 GETOPT_H!$GETOPT_H$ac_delim
25101 GETOPTOBJS!$GETOPTOBJS$ac_delim
25102 version!$version$ac_delim
25105 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25107 elif $ac_last_try; then
25108 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25109 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25110 { (exit 1); exit 1; }; }
25112 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25116 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25117 if test -n "$ac_eof"; then
25118 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25119 ac_eof
=`expr $ac_eof + 1`
25122 cat >>$CONFIG_STATUS <<_ACEOF
25123 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25124 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25127 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25128 s/^/s,@/; s/!/@,|#_!!_#|/
25131 s/'"$ac_delim"'$/,g/; t
25133 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25134 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25135 rm -f conf$
$subs.
sed
25136 cat >>$CONFIG_STATUS <<_ACEOF
25142 for ac_last_try
in false false false false false
:; do
25143 cat >conf$
$subs.
sed <<_ACEOF
25144 configuration!$configuration$ac_delim
25145 canonical!$canonical$ac_delim
25146 srcdir!$srcdir$ac_delim
25147 lispdir!$lispdir$ac_delim
25148 locallisppath!$locallisppath$ac_delim
25149 lisppath!$lisppath$ac_delim
25150 x_default_search_path!$x_default_search_path$ac_delim
25151 etcdir!$etcdir$ac_delim
25152 archlibdir!$archlibdir$ac_delim
25153 bitmapdir!$bitmapdir$ac_delim
25154 gamedir!$gamedir$ac_delim
25155 gameuser!$gameuser$ac_delim
25156 c_switch_system!$c_switch_system$ac_delim
25157 c_switch_machine!$c_switch_machine$ac_delim
25158 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25159 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25160 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25161 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25162 machfile!$machfile$ac_delim
25163 opsysfile!$opsysfile$ac_delim
25164 ns_appdir!$ns_appdir$ac_delim
25165 ns_appbindir!$ns_appbindir$ac_delim
25166 ns_appresdir!$ns_appresdir$ac_delim
25167 ns_appsrc!$ns_appsrc$ac_delim
25168 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25169 GNU_OBJC_CFLAGS!$GNU_OBJC_CFLAGS$ac_delim
25170 LIB_SRC_EXTRA_INSTALLABLES!$LIB_SRC_EXTRA_INSTALLABLES$ac_delim
25171 LTLIBOBJS!$LTLIBOBJS$ac_delim
25174 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 28; then
25176 elif $ac_last_try; then
25177 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25178 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25179 { (exit 1); exit 1; }; }
25181 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25185 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25186 if test -n "$ac_eof"; then
25187 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25188 ac_eof
=`expr $ac_eof + 1`
25191 cat >>$CONFIG_STATUS <<_ACEOF
25192 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25196 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25197 s/^/s,@/; s/!/@,|#_!!_#|/
25200 s/'"$ac_delim"'$/,g/; t
25202 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25203 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25204 rm -f conf$
$subs.
sed
25205 cat >>$CONFIG_STATUS <<_ACEOF
25212 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25213 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25214 # trailing colons and then remove the whole line if VPATH becomes empty
25215 # (actually we leave an empty line to preserve line numbers).
25216 if test "x$srcdir" = x.
; then
25217 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25218 s/:*\$(srcdir):*/:/
25219 s/:*\${srcdir}:*/:/
25221 s/^\([^=]*=[ ]*\):*/\1/
25227 cat >>$CONFIG_STATUS <<\_ACEOF
25228 fi # test -n "$CONFIG_FILES"
25231 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25234 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25236 case $ac_mode$ac_tag in
25238 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25239 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25240 { (exit 1); exit 1; }; };;
25241 :[FH
]-) ac_tag
=-:-;;
25242 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25259 -) ac_f
="$tmp/stdin";;
25260 *) # Look for the file first in the build tree, then in the source tree
25261 # (if the path is not absolute). The absolute path cannot be DOS-style,
25262 # because $ac_f cannot contain `:'.
25266 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25268 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25269 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25270 { (exit 1); exit 1; }; };;
25272 ac_file_inputs
="$ac_file_inputs $ac_f"
25275 # Let's still pretend it is `configure' which instantiates (i.e., don't
25276 # use $as_me), people would be surprised to read:
25277 # /* config.h. Generated by config.status. */
25278 configure_input
="Generated from "`IFS=:
25279 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25280 if test x
"$ac_file" != x-
; then
25281 configure_input
="$ac_file. $configure_input"
25282 { echo "$as_me:$LINENO: creating $ac_file" >&5
25283 echo "$as_me: creating $ac_file" >&6;}
25287 *:-:* |
*:-) cat >"$tmp/stdin";;
25292 ac_dir
=`$as_dirname -- "$ac_file" ||
25293 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25294 X"$ac_file" : 'X\(//\)[^/]' \| \
25295 X"$ac_file" : 'X\(//\)$' \| \
25296 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25298 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25302 /^X\(\/\/\)[^/].*/{
25317 -*) as_dir
=.
/$as_dir;;
25319 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25323 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25324 *) as_qdir
=$as_dir;;
25326 as_dirs
="'$as_qdir' $as_dirs"
25327 as_dir
=`$as_dirname -- "$as_dir" ||
25328 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25329 X"$as_dir" : 'X\(//\)[^/]' \| \
25330 X"$as_dir" : 'X\(//\)$' \| \
25331 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25337 /^X\(\/\/\)[^/].*/{
25350 test -d "$as_dir" && break
25352 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25353 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25354 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25355 { (exit 1); exit 1; }; }; }
25359 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25361 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25362 # A ".." for each directory in $ac_dir_suffix.
25363 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25364 case $ac_top_builddir_sub in
25365 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25366 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25369 ac_abs_top_builddir
=$ac_pwd
25370 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25371 # for backward compatibility:
25372 ac_top_builddir
=$ac_top_build_prefix
25375 .
) # We are building in place.
25377 ac_top_srcdir
=$ac_top_builddir_sub
25378 ac_abs_top_srcdir
=$ac_pwd ;;
25379 [\\/]* | ?
:[\\/]* ) # Absolute name.
25380 ac_srcdir
=$srcdir$ac_dir_suffix;
25381 ac_top_srcdir
=$srcdir
25382 ac_abs_top_srcdir
=$srcdir ;;
25383 *) # Relative name.
25384 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25385 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25386 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25388 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25398 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25399 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25403 cat >>$CONFIG_STATUS <<\_ACEOF
25404 # If the template does not know about datarootdir, expand it.
25405 # FIXME: This hack should be removed a few years after 2.60.
25406 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25408 case `sed -n '/datarootdir/ {
25417 ' $ac_file_inputs` in
25418 *datarootdir
*) ac_datarootdir_seen
=yes;;
25419 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25420 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25421 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25423 cat >>$CONFIG_STATUS <<_ACEOF
25424 ac_datarootdir_hack='
25425 s&@datadir@&$datadir&g
25426 s&@docdir@&$docdir&g
25427 s&@infodir@&$infodir&g
25428 s&@localedir@&$localedir&g
25429 s&@mandir@&$mandir&g
25430 s&\\\${datarootdir}&$datarootdir&g' ;;
25434 # Neutralize VPATH when `$srcdir' = `.'.
25435 # Shell code in configure.ac might set extrasub.
25436 # FIXME: do we really want to maintain this feature?
25437 cat >>$CONFIG_STATUS <<_ACEOF
25441 cat >>$CONFIG_STATUS <<\_ACEOF
25443 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25444 s
&@configure_input@
&$configure_input&;t t
25445 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25446 s
&@srcdir@
&$ac_srcdir&;t t
25447 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25448 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25449 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25450 s
&@builddir@
&$ac_builddir&;t t
25451 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25452 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25453 s
&@INSTALL@
&$ac_INSTALL&;t t
25454 $ac_datarootdir_hack
25455 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25457 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25458 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25459 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25460 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25461 which seems to be undefined. Please make sure it is defined." >&5
25462 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25463 which seems to be undefined. Please make sure it is defined." >&2;}
25467 -) cat "$tmp/out"; rm -f "$tmp/out";;
25468 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25477 # Transform confdefs.h into a sed script `conftest.defines', that
25478 # substitutes the proper values into config.h.in to produce config.h.
25479 rm -f conftest.defines conftest.
tail
25480 # First, append a space to every undef/define line, to ease matching.
25481 echo 's/$/ /' >conftest.defines
25482 # Then, protect against being on the right side of a sed subst, or in
25483 # an unquoted here document, in config.status. If some macros were
25484 # called several times there might be several #defines for the same
25485 # symbol, which is useless. But do not sort them, since the last
25486 # AC_DEFINE must be honored.
25487 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25488 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25489 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25490 # PARAMS is the parameter list in the macro definition--in most cases, it's
25491 # just an empty string.
25492 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25493 ac_dB
='\\)[ (].*,\\1define\\2'
25501 s/^[ ]*#[ ]*define[ ][ ]*//
25506 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25507 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25508 ' >>conftest.defines
25510 # Remove the space that was appended to ease matching.
25511 # Then replace #undef with comments. This is necessary, for
25512 # example, in the case of _POSIX_SOURCE, which is predefined and required
25513 # on some systems where configure will not decide to define it.
25514 # (The regexp can be short, since the line contains either #define or #undef.)
25516 s,^[ #]*u.*,/* & */,' >>conftest.defines
25518 # Break up conftest.defines:
25519 ac_max_sed_lines
=50
25521 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25522 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25523 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25525 ac_in
='$ac_file_inputs'
25526 ac_out
='"$tmp/out1"'
25527 ac_nxt
='"$tmp/out2"'
25531 # Write a here document:
25532 cat >>$CONFIG_STATUS <<_ACEOF
25533 # First, check the format of the line:
25534 cat >"\$tmp/defines.sed" <<\\CEOF
25535 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25536 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25540 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25542 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25543 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25544 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25545 grep . conftest.
tail >/dev
/null ||
break
25546 rm -f conftest.defines
25547 mv conftest.
tail conftest.defines
25549 rm -f conftest.defines conftest.
tail
25551 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25552 cat >>$CONFIG_STATUS <<\_ACEOF
25553 if test x
"$ac_file" != x-
; then
25554 echo "/* $configure_input */" >"$tmp/config.h"
25555 cat "$ac_result" >>"$tmp/config.h"
25556 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25557 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25558 echo "$as_me: $ac_file is unchanged" >&6;}
25561 mv "$tmp/config.h" $ac_file
25564 echo "/* $configure_input */"
25570 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25571 echo "$as_me: executing $ac_file commands" >&6;}
25576 case $ac_file$ac_mode in
25579 ### Make the necessary directories, if they don't exist.
25580 for dir
in etc lisp
; do
25581 test -d ${dir} || mkdir
${dir}
25584 # Build src/Makefile from ${srcdir}/src/Makefile.c
25585 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25586 # This must be done after src/config.h is built, since we rely on that file.
25588 echo creating src
/epaths.h
25589 ${MAKE-make} epaths-force
25591 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25592 # `..' to `. .' unless invoked with -traditional
25594 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25595 CPPFLAGS
="$CPPFLAGS -traditional"
25598 echo creating lib-src
/Makefile
25600 rm -f junk.c junk1.c junk2.c
25601 sed -e '/start of cpp stuff/q' \
25602 < Makefile.c
> junk1.c
25603 sed -e '1,/start of cpp stuff/d'\
25604 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25605 < Makefile.c
> junk.c
25606 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25607 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25608 cat junk1.c junk2.c
> Makefile.new
25609 rm -f junk.c junk1.c junk2.c
25610 chmod 444 Makefile.new
25611 mv -f Makefile.new Makefile
25614 echo creating src
/Makefile
25616 rm -f junk.c junk1.c junk2.c
25617 sed -e '/start of cpp stuff/q' \
25618 < Makefile.c
> junk1.c
25619 sed -e '1,/start of cpp stuff/d'\
25620 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25621 < Makefile.c
> junk.c
25622 $CPP $cpp_undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25623 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25624 cat junk1.c junk2.c
> Makefile.new
25625 rm -f junk.c junk1.c junk2.c
25626 chmod 444 Makefile.new
25627 mv -f Makefile.new Makefile
25630 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25631 echo creating src
/.gdbinit
25632 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25641 { (exit 0); exit 0; }
25643 chmod +x
$CONFIG_STATUS
25644 ac_clean_files
=$ac_clean_files_save
25647 # configure is writing to config.log, and then calls config.status.
25648 # config.status does its own redirection, appending to config.log.
25649 # Unfortunately, on DOS this fails, as config.log is still kept open
25650 # by configure, so config.status won't be able to write to it; its
25651 # output is simply discarded. So we exec the FD to /dev/null,
25652 # effectively closing config.log, so it can be properly (re)opened and
25653 # appended to by config.status. When coming back to configure, we
25654 # need to make the FD available again.
25655 if test "$no_create" != yes; then
25657 ac_config_status_args
=
25658 test "$silent" = yes &&
25659 ac_config_status_args
="$ac_config_status_args --quiet"
25661 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25663 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25664 # would make configure fail if this is the last instruction.
25665 $ac_cs_success ||
{ (exit 1); exit 1; }