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
739 ac_precious_vars
='build_alias
751 # Initialize some variables set by options.
753 ac_init_version
=false
754 # The variables have the same names as the options, with
755 # dashes changed to underlines.
763 program_transform_name
=s
,x
,x
,
771 # Installation directory options.
772 # These are left unexpanded so users can "make install exec_prefix=/foo"
773 # and all the variables that are supposed to be based on exec_prefix
774 # by default will actually change.
775 # Use braces instead of parens because sh, perl, etc. also accept them.
776 # (The list follows the same order as the GNU Coding Standards.)
777 bindir
='${exec_prefix}/bin'
778 sbindir
='${exec_prefix}/sbin'
779 libexecdir
='${exec_prefix}/libexec'
780 datarootdir
='${prefix}/share'
781 datadir
='${datarootdir}'
782 sysconfdir
='${prefix}/etc'
783 sharedstatedir
='${prefix}/com'
784 localstatedir
='${prefix}/var'
785 includedir
='${prefix}/include'
786 oldincludedir
='/usr/include'
787 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
788 infodir
='${datarootdir}/info'
793 libdir
='${exec_prefix}/lib'
794 localedir
='${datarootdir}/locale'
795 mandir
='${datarootdir}/man'
801 # If the previous option needs an argument, assign it.
802 if test -n "$ac_prev"; then
803 eval $ac_prev=\
$ac_option
809 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
813 # Accept the important Cygnus configure options, so we can diagnose typos.
815 case $ac_dashdash$ac_option in
819 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
821 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
824 -build |
--build |
--buil |
--bui |
--bu)
825 ac_prev
=build_alias
;;
826 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
827 build_alias
=$ac_optarg ;;
829 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
830 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
831 ac_prev
=cache_file
;;
832 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
833 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
834 cache_file
=$ac_optarg ;;
837 cache_file
=config.cache
;;
839 -datadir |
--datadir |
--datadi |
--datad)
841 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
842 datadir
=$ac_optarg ;;
844 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
845 |
--dataroo |
--dataro |
--datar)
846 ac_prev
=datarootdir
;;
847 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
848 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
849 datarootdir
=$ac_optarg ;;
851 -disable-* |
--disable-*)
852 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
853 # Reject names that are not valid shell variable names.
854 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
855 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
856 { (exit 1); exit 1; }; }
857 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
858 eval enable_
$ac_feature=no
;;
860 -docdir |
--docdir |
--docdi |
--doc |
--do)
862 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
865 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
867 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
870 -enable-* |
--enable-*)
871 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
872 # Reject names that are not valid shell variable names.
873 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
874 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
875 { (exit 1); exit 1; }; }
876 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
877 eval enable_
$ac_feature=\
$ac_optarg ;;
879 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
880 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
881 |
--exec |
--exe |
--ex)
882 ac_prev
=exec_prefix
;;
883 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
884 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
885 |
--exec=* |
--exe=* |
--ex=*)
886 exec_prefix
=$ac_optarg ;;
888 -gas |
--gas |
--ga |
--g)
889 # Obsolete; use --with-gas.
892 -help |
--help |
--hel |
--he |
-h)
894 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
895 ac_init_help
=recursive
;;
896 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
897 ac_init_help
=short
;;
899 -host |
--host |
--hos |
--ho)
900 ac_prev
=host_alias
;;
901 -host=* |
--host=* |
--hos=* |
--ho=*)
902 host_alias
=$ac_optarg ;;
904 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
906 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
908 htmldir
=$ac_optarg ;;
910 -includedir |
--includedir |
--includedi |
--included |
--include \
911 |
--includ |
--inclu |
--incl |
--inc)
912 ac_prev
=includedir
;;
913 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
914 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
915 includedir
=$ac_optarg ;;
917 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
919 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
920 infodir
=$ac_optarg ;;
922 -libdir |
--libdir |
--libdi |
--libd)
924 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
927 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
928 |
--libexe |
--libex |
--libe)
929 ac_prev
=libexecdir
;;
930 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
931 |
--libexe=* |
--libex=* |
--libe=*)
932 libexecdir
=$ac_optarg ;;
934 -localedir |
--localedir |
--localedi |
--localed |
--locale)
936 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
937 localedir
=$ac_optarg ;;
939 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
940 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
941 ac_prev
=localstatedir
;;
942 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
943 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
944 localstatedir
=$ac_optarg ;;
946 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
948 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
952 # Obsolete; use --without-fp.
955 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
956 |
--no-cr |
--no-c |
-n)
959 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
960 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
963 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
964 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
965 |
--oldin |
--oldi |
--old |
--ol |
--o)
966 ac_prev
=oldincludedir
;;
967 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
968 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
969 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
970 oldincludedir
=$ac_optarg ;;
972 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
974 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
977 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
978 |
--program-pre |
--program-pr |
--program-p)
979 ac_prev
=program_prefix
;;
980 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
981 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
982 program_prefix
=$ac_optarg ;;
984 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
985 |
--program-suf |
--program-su |
--program-s)
986 ac_prev
=program_suffix
;;
987 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
988 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
989 program_suffix
=$ac_optarg ;;
991 -program-transform-name |
--program-transform-name \
992 |
--program-transform-nam |
--program-transform-na \
993 |
--program-transform-n |
--program-transform- \
994 |
--program-transform |
--program-transfor \
995 |
--program-transfo |
--program-transf \
996 |
--program-trans |
--program-tran \
997 |
--progr-tra |
--program-tr |
--program-t)
998 ac_prev
=program_transform_name
;;
999 -program-transform-name=* |
--program-transform-name=* \
1000 |
--program-transform-nam=* |
--program-transform-na=* \
1001 |
--program-transform-n=* |
--program-transform-=* \
1002 |
--program-transform=* |
--program-transfor=* \
1003 |
--program-transfo=* |
--program-transf=* \
1004 |
--program-trans=* |
--program-tran=* \
1005 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1006 program_transform_name
=$ac_optarg ;;
1008 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1010 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1011 pdfdir
=$ac_optarg ;;
1013 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1015 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1018 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1019 |
-silent |
--silent |
--silen |
--sile |
--sil)
1022 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1024 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1026 sbindir
=$ac_optarg ;;
1028 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1029 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1030 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1032 ac_prev
=sharedstatedir
;;
1033 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1034 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1035 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1037 sharedstatedir
=$ac_optarg ;;
1039 -site |
--site |
--sit)
1041 -site=* |
--site=* |
--sit=*)
1044 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1046 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1047 srcdir
=$ac_optarg ;;
1049 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1050 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1051 ac_prev
=sysconfdir
;;
1052 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1053 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1054 sysconfdir
=$ac_optarg ;;
1056 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1057 ac_prev
=target_alias
;;
1058 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1059 target_alias
=$ac_optarg ;;
1061 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1064 -version |
--version |
--versio |
--versi |
--vers |
-V)
1065 ac_init_version
=: ;;
1068 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1069 # Reject names that are not valid shell variable names.
1070 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1071 { echo "$as_me: error: invalid package name: $ac_package" >&2
1072 { (exit 1); exit 1; }; }
1073 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1074 eval with_
$ac_package=\
$ac_optarg ;;
1076 -without-* |
--without-*)
1077 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1080 { echo "$as_me: error: invalid package name: $ac_package" >&2
1081 { (exit 1); exit 1; }; }
1082 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1083 eval with_
$ac_package=no
;;
1086 # Obsolete; use --with-x.
1089 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1090 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1091 ac_prev
=x_includes
;;
1092 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1093 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1094 x_includes
=$ac_optarg ;;
1096 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1097 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1098 ac_prev
=x_libraries
;;
1099 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1100 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1101 x_libraries
=$ac_optarg ;;
1103 -*) { echo "$as_me: error: unrecognized option: $ac_option
1104 Try \`$0 --help' for more information." >&2
1105 { (exit 1); exit 1; }; }
1109 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1112 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1113 { (exit 1); exit 1; }; }
1114 eval $ac_envvar=\
$ac_optarg
1115 export $ac_envvar ;;
1118 # FIXME: should be removed in autoconf 3.0.
1119 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1121 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1128 if test -n "$ac_prev"; then
1129 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1130 { echo "$as_me: error: missing argument to $ac_option" >&2
1131 { (exit 1); exit 1; }; }
1134 # Be sure to have absolute directory names.
1135 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1136 datadir sysconfdir sharedstatedir localstatedir includedir \
1137 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1138 libdir localedir mandir
1140 eval ac_val
=\$
$ac_var
1142 [\\/$
]* | ?
:[\\/]* ) continue;;
1143 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1145 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1146 { (exit 1); exit 1; }; }
1149 # There might be people who depend on the old broken behavior: `$host'
1150 # used to hold the argument of --host etc.
1151 # FIXME: To remove some day.
1154 target
=$target_alias
1156 # FIXME: To remove some day.
1157 if test "x$host_alias" != x
; then
1158 if test "x$build_alias" = x
; then
1159 cross_compiling
=maybe
1160 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1161 If a cross compiler is detected then cross compile mode will be used." >&2
1162 elif test "x$build_alias" != "x$host_alias"; then
1168 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1170 test "$silent" = yes && exec 6>/dev
/null
1173 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1174 ac_ls_di
=`ls -di .` &&
1175 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1176 { echo "$as_me: error: Working directory cannot be determined" >&2
1177 { (exit 1); exit 1; }; }
1178 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1179 { echo "$as_me: error: pwd does not report name of working directory" >&2
1180 { (exit 1); exit 1; }; }
1183 # Find the source files, if location was not specified.
1184 if test -z "$srcdir"; then
1185 ac_srcdir_defaulted
=yes
1186 # Try the directory containing this script, then the parent directory.
1187 ac_confdir
=`$as_dirname -- "$0" ||
1188 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1189 X"$0" : 'X\(//\)[^/]' \| \
1190 X"$0" : 'X\(//\)$' \| \
1191 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1193 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1215 ac_srcdir_defaulted
=no
1217 if test ! -r "$srcdir/$ac_unique_file"; then
1218 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1219 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1220 { (exit 1); exit 1; }; }
1222 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1224 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1225 { (exit 1); exit 1; }; }
1227 # When building in place, set srcdir=.
1228 if test "$ac_abs_confdir" = "$ac_pwd"; then
1231 # Remove unnecessary trailing slashes from srcdir.
1232 # Double slashes in file names in object file debugging info
1233 # mess up M-x gdb in Emacs.
1235 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1237 for ac_var
in $ac_precious_vars; do
1238 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1239 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1240 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1241 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1245 # Report the --help message.
1247 if test "$ac_init_help" = "long"; then
1248 # Omit some internal or obsolete options to make the list less imposing.
1249 # This message is too long to be a string in the A/UX 3.1 sh.
1251 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1253 Usage: $0 [OPTION]... [VAR=VALUE]...
1255 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1256 VAR=VALUE. See below for descriptions of some of the useful variables.
1258 Defaults for the options are specified in brackets.
1261 -h, --help display this help and exit
1262 --help=short display options specific to this package
1263 --help=recursive display the short help of all the included packages
1264 -V, --version display version information and exit
1265 -q, --quiet, --silent do not print \`checking...' messages
1266 --cache-file=FILE cache test results in FILE [disabled]
1267 -C, --config-cache alias for \`--cache-file=config.cache'
1268 -n, --no-create do not create output files
1269 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1271 Installation directories:
1272 --prefix=PREFIX install architecture-independent files in PREFIX
1273 [$ac_default_prefix]
1274 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1277 By default, \`make install' will install all the files in
1278 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1279 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1280 for instance \`--prefix=\$HOME'.
1282 For better control, use the options below.
1284 Fine tuning of the installation directories:
1285 --bindir=DIR user executables [EPREFIX/bin]
1286 --sbindir=DIR system admin executables [EPREFIX/sbin]
1287 --libexecdir=DIR program executables [EPREFIX/libexec]
1288 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1289 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1290 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1291 --libdir=DIR object code libraries [EPREFIX/lib]
1292 --includedir=DIR C header files [PREFIX/include]
1293 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1294 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1295 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1296 --infodir=DIR info documentation [DATAROOTDIR/info]
1297 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1298 --mandir=DIR man documentation [DATAROOTDIR/man]
1299 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1300 --htmldir=DIR html documentation [DOCDIR]
1301 --dvidir=DIR dvi documentation [DOCDIR]
1302 --pdfdir=DIR pdf documentation [DOCDIR]
1303 --psdir=DIR ps documentation [DOCDIR]
1309 --program-prefix=PREFIX prepend PREFIX to installed program names
1310 --program-suffix=SUFFIX append SUFFIX to installed program names
1311 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1314 --x-includes=DIR X include files are
in DIR
1315 --x-libraries=DIR X library files are
in DIR
1318 --build=BUILD configure
for building on BUILD
[guessed
]
1319 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1323 if test -n "$ac_init_help"; then
1324 case $ac_init_help in
1325 short | recursive
) echo "Configuration of emacs 23.0.60:";;
1330 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1331 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1332 --enable-carbon-app[=DIR
]
1333 specify
install directory
for Emacs.app on Mac OS X
1335 --disable-font-backend don
't compile font-backend support
1336 --enable-asserts compile code with asserts enabled
1337 --enable-maintainer-mode
1338 enable make rules and dependencies not useful (and
1339 sometimes confusing) to the casual installer
1340 --enable-locallisppath=PATH
1341 directories Emacs should search for lisp files
1342 specific to this site
1343 --disable-largefile omit support for large files
1346 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1347 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1348 --without-pop don't support POP
mail retrieval with movemail
1349 --with-kerberos support Kerberos-authenticated POP
1350 --with-kerberos5 support Kerberos version
5 authenticated POP
1351 --with-hesiod support Hesiod to get the POP server
host
1352 --without-sound don
't compile with sound support
1353 --without-sync-input Process async input synchronously
1354 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1356 --without-xpm don't compile with XPM image support
1357 --without-jpeg don
't compile with JPEG image support
1358 --without-tiff don't compile with TIFF image support
1359 --without-gif don
't compile with GIF image support
1360 --without-png don't compile with PNG image support
1361 --without-rsvg don
't compile with SVG image support
1362 --without-freetype don't use Freetype
for local font support
1363 --without-xft don
't use XFT for anti aliased fonts
1364 --without-libotf don't use libotf
for OpenType font support
1365 --without-m17n-flt don
't use m17n-flt for text shaping
1366 --without-toolkit-scroll-bars
1367 don't use Motif or Xaw3d scroll bars
1368 --without-xaw3d don
't use Xaw3d
1369 --without-xim don't use X11 XIM
1370 --with-carbon use Carbon GUI on Mac OS X. This is unsupported
!
1371 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1373 --without-dbus don't compile with D-Bus support
1375 --with-pkg-config-prog=PATH
1376 Path to pkg-config
for finding GTK and librsvg
1377 --with-x use the X Window System
1379 Some influential environment variables
:
1380 CC C compiler
command
1381 CFLAGS C compiler flags
1382 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1383 nonstandard directory
<lib dir
>
1384 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1385 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1386 you have headers
in a nonstandard directory
<include dir
>
1388 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1390 Use these variables to override the choices made by
`configure' or to help
1391 it to find libraries and programs with nonstandard names/locations.
1397 if test "$ac_init_help" = "recursive"; then
1398 # If there are subdirs, report their specific --help.
1399 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1400 test -d "$ac_dir" || continue
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1420 .) # We are building in place.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1444 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1453 emacs configure 23.0.60
1454 generated by GNU Autoconf 2.61
1456 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1457 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1458 This configure script is free software; the Free Software Foundation
1459 gives unlimited permission to copy, distribute and modify it.
1463 cat >config.log <<_ACEOF
1464 This file contains any messages produced by compilers while
1465 running configure, to aid debugging if configure makes a mistake.
1467 It was created by emacs $as_me 23.0.60, which was
1468 generated by GNU Autoconf 2.61. Invocation command line was
1480 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1481 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1482 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1483 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1484 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1486 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1487 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1489 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1490 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1491 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1492 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1493 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1494 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1495 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 test -z "$as_dir" && as_dir=.
1504 echo "PATH: $as_dir"
1520 # Keep a trace of the command line.
1521 # Strip out --no-create and --no-recursion so they do not pile up.
1522 # Strip out --silent because we don't want to record it for future runs.
1523 # Also quote any args containing shell meta-characters.
1524 # Make two passes to allow for proper duplicate-argument suppression.
1528 ac_must_keep_next=false
1534 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1535 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1536 | -silent | --silent | --silen | --sile | --sil)
1539 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1542 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1544 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1545 if test $ac_must_keep_next = true; then
1546 ac_must_keep_next=false # Got value, back to normal.
1549 *=* | --config-cache | -C | -disable-* | --disable-* \
1550 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1551 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1552 | -with-* | --with-* | -without-* | --without-* | --x)
1553 case "$ac_configure_args0 " in
1554 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1557 -* ) ac_must_keep_next=true ;;
1560 ac_configure_args="$ac_configure_args '$ac_arg'"
1565 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1566 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1568 # When interrupted or exit'd, cleanup temporary files, and complete
1569 # config.log. We remove comments because anyway the quotes in there
1570 # would cause problems or look ugly.
1571 # WARNING: Use '\'' to represent an apostrophe within the trap.
1572 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1573 trap 'exit_status=$?
1574 # Save into config.log some information that might help in debugging.
1579 ## ---------------- ##
1580 ## Cache variables. ##
1581 ## ---------------- ##
1584 # The following way of writing the cache mishandles newlines in values,
1586 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1587 eval ac_val=\$$ac_var
1591 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1592 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1595 _ | IFS | as_nl) ;; #(
1596 *) $as_unset $ac_var ;;
1601 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1602 *${as_nl}ac_space=\ *)
1604 "s/'\''/'\''\\\\'\'''\''/g;
1605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1608 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1616 ## ----------------- ##
1617 ## Output variables. ##
1618 ## ----------------- ##
1621 for ac_var in $ac_subst_vars
1623 eval ac_val=\$$ac_var
1625 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1627 echo "$ac_var='\''$ac_val'\''"
1631 if test -n "$ac_subst_files"; then
1633 ## ------------------- ##
1634 ## File substitutions. ##
1635 ## ------------------- ##
1638 for ac_var in $ac_subst_files
1640 eval ac_val=\$$ac_var
1642 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1644 echo "$ac_var='\''$ac_val'\''"
1649 if test -s confdefs.h; then
1659 test "$ac_signal" != 0 &&
1660 echo "$as_me: caught signal $ac_signal"
1661 echo "$as_me: exit $exit_status"
1663 rm -f core *.core core.conftest.* &&
1664 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1667 for ac_signal in 1 2 13 15; do
1668 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1672 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1673 rm -f -r conftest* confdefs.h
1675 # Predefined preprocessor variables.
1677 cat >>confdefs.h <<_ACEOF
1678 #define PACKAGE_NAME "$PACKAGE_NAME"
1682 cat >>confdefs.h <<_ACEOF
1683 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1687 cat >>confdefs.h <<_ACEOF
1688 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1692 cat >>confdefs.h <<_ACEOF
1693 #define PACKAGE_STRING "$PACKAGE_STRING"
1697 cat >>confdefs.h <<_ACEOF
1698 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1702 # Let the site file select an alternate cache file if it wants to.
1703 # Prefer explicitly selected file to automatically selected ones.
1704 if test -n "$CONFIG_SITE"; then
1705 set x "$CONFIG_SITE"
1706 elif test "x$prefix" != xNONE; then
1707 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1709 set x "$ac_default_prefix/share/config.site" \
1710 "$ac_default_prefix/etc/config.site"
1715 if test -r "$ac_site_file"; then
1716 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1717 echo "$as_me: loading site script $ac_site_file" >&6;}
1718 sed 's/^/| /' "$ac_site_file" >&5
1723 if test -r "$cache_file"; then
1724 # Some versions of bash will fail to source /dev/null (special
1725 # files actually), so we avoid doing that.
1726 if test -f "$cache_file"; then
1727 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1728 echo "$as_me: loading cache $cache_file" >&6;}
1730 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1731 *) . "./$cache_file";;
1735 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1736 echo "$as_me: creating cache $cache_file" >&6;}
1740 ac_header_list="$ac_header_list sys/time.h"
1741 ac_header_list="$ac_header_list unistd.h"
1742 ac_func_list="$ac_func_list alarm"
1743 # Check that the precious variables saved in the cache have kept the same
1745 ac_cache_corrupted=false
1746 for ac_var in $ac_precious_vars; do
1747 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1748 eval ac_new_set=\$ac_env_${ac_var}_set
1749 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1750 eval ac_new_val=\$ac_env_${ac_var}_value
1751 case $ac_old_set,$ac_new_set in
1753 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1754 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1755 ac_cache_corrupted=: ;;
1757 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1758 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1759 ac_cache_corrupted=: ;;
1762 if test "x$ac_old_val" != "x$ac_new_val"; then
1763 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1764 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1765 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1766 echo "$as_me: former value
: $ac_old_val" >&2;}
1767 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1768 echo "$as_me: current value
: $ac_new_val" >&2;}
1769 ac_cache_corrupted=:
1772 # Pass precious variables to config.status.
1773 if test "$ac_new_set" = set; then
1775 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1776 *) ac_arg=$ac_var=$ac_new_val ;;
1778 case " $ac_configure_args " in
1779 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1780 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1784 if $ac_cache_corrupted; then
1785 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1786 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1787 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1788 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1789 { (exit 1); exit 1; }; }
1817 ac_cpp='$CPP $CPPFLAGS'
1818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1823 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1827 test "$program_prefix" != NONE &&
1828 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1829 # Use a double $ so make ignores it.
1830 test "$program_suffix" != NONE &&
1831 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1832 # Double any \ or $. echo might interpret backslashes.
1833 # By default was `s
,x
,x
', remove it if useless.
1834 cat <<\_ACEOF >conftest.sed
1835 s/[\\$]/&&/g;s/;s,x,x,$//
1837 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1841 lispdir='${datadir}/emacs
/${version}/lisp
'
1842 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1843 '${datadir}/emacs
/site-lisp
'
1844 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1845 etcdir='${datadir}/emacs
/${version}/etc
'
1846 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1847 docdir='${datadir}/emacs
/${version}/etc
'
1848 gamedir='${localstatedir}/games
/emacs
'
1855 # Check whether --with-pop was given.
1856 if test "${with_pop+set}" = set; then
1862 if test "$with_pop" = yes; then
1863 cat >>confdefs.h <<\_ACEOF
1864 #define MAIL_USE_POP 1
1871 # Check whether --with-kerberos was given.
1872 if test "${with_kerberos+set}" = set; then
1873 withval=$with_kerberos;
1878 if test "$with_kerberos" = yes; then
1879 cat >>confdefs.h <<\_ACEOF
1887 # Check whether --with-kerberos5 was given.
1888 if test "${with_kerberos5+set}" = set; then
1889 withval=$with_kerberos5;
1894 if test "${with_kerberos5}" = yes; then
1895 if test "${with_kerberos}" != yes; then
1897 cat >>confdefs.h <<\_ACEOF
1903 cat >>confdefs.h <<\_ACEOF
1910 # Check whether --with-hesiod was given.
1911 if test "${with_hesiod+set}" = set; then
1912 withval=$with_hesiod;
1917 if test "$with_hesiod" = yes; then
1919 cat >>confdefs.h <<\_ACEOF
1926 # Check whether --with-sound was given.
1927 if test "${with_sound+set}" = set; then
1928 withval=$with_sound;
1935 # Check whether --with-sync-input was given.
1936 if test "${with_sync_input+set}" = set; then
1937 withval=$with_sync_input;
1942 if test "$with_sync_input" = yes; then
1944 cat >>confdefs.h <<\_ACEOF
1945 #define SYNC_INPUT 1
1951 # Check whether --with-x-toolkit was given.
1952 if test "${with_x_toolkit+set}" = set; then
1953 withval=$with_x_toolkit; case "${withval}" in
1954 y | ye | yes ) val=gtk ;;
1956 l | lu | luc | luci | lucid ) val=lucid ;;
1957 a | at | ath | athe | athen | athena ) val=athena ;;
1958 m | mo | mot | moti | motif ) val=motif ;;
1959 g | gt | gtk ) val=gtk ;;
1961 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1962 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1963 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1964 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1965 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1966 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1967 { (exit 1); exit 1; }; }
1976 # Check whether --with-xpm was given.
1977 if test "${with_xpm+set}" = set; then
1984 # Check whether --with-jpeg was given.
1985 if test "${with_jpeg+set}" = set; then
1992 # Check whether --with-tiff was given.
1993 if test "${with_tiff+set}" = set; then
2000 # Check whether --with-gif was given.
2001 if test "${with_gif+set}" = set; then
2008 # Check whether --with-png was given.
2009 if test "${with_png+set}" = set; then
2016 # Check whether --with-rsvg was given.
2017 if test "${with_rsvg+set}" = set; then
2025 # Check whether --with-freetype was given.
2026 if test "${with_freetype+set}" = set; then
2027 withval=$with_freetype;
2033 # Check whether --with-xft was given.
2034 if test "${with_xft+set}" = set; then
2041 # Check whether --with-libotf was given.
2042 if test "${with_libotf+set}" = set; then
2043 withval=$with_libotf;
2049 # Check whether --with-m17n-flt was given.
2050 if test "${with_m17n_flt+set}" = set; then
2051 withval=$with_m17n_flt;
2058 # Check whether --with-toolkit-scroll-bars was given.
2059 if test "${with_toolkit_scroll_bars+set}" = set; then
2060 withval=$with_toolkit_scroll_bars;
2062 with_toolkit_scroll_bars=yes
2066 # Check whether --with-xaw3d was given.
2067 if test "${with_xaw3d+set}" = set; then
2068 withval=$with_xaw3d;
2074 # Check whether --with-xim was given.
2075 if test "${with_xim+set}" = set; then
2082 # Check whether --with-carbon was given.
2083 if test "${with_carbon+set}" = set; then
2084 withval=$with_carbon;
2091 # Check whether --with-gpm was given.
2092 if test "${with_gpm+set}" = set; then
2099 # Check whether --with-dbus was given.
2100 if test "${with_dbus+set}" = set; then
2108 # Check whether --with-gtk was given.
2109 if test "${with_gtk+set}" = set; then
2110 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2111 specify a toolkit." >&5
2112 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2113 specify a toolkit." >&2;}
2114 { (exit 1); exit 1; }; }
2119 # Check whether --with-gcc was given.
2120 if test "${with_gcc+set}" = set; then
2121 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2122 variable to specify a compiler.
" >&5
2123 echo "$as_me: error
: --with-gcc has been removed. Set the \
`CC' environment
2124 variable to specify a compiler." >&2;}
2125 { (exit 1); exit 1; }; }
2130 # Check whether --with-pkg-config-prog was given.
2131 if test "${with_pkg_config_prog+set}" = set; then
2132 withval=$with_pkg_config_prog;
2135 if test "X${with_pkg_config_prog}" != X; then
2136 if test "${with_pkg_config_prog}" != yes; then
2137 PKG_CONFIG="${with_pkg_config_prog}"
2141 # Check whether --enable-carbon-app was given.
2142 if test "${enable_carbon_app+set}" = set; then
2143 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2147 ## Enabled by default.
2148 # Check whether --enable-font-backend was given.
2149 if test "${enable_font_backend+set}" = set; then
2150 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2152 USE_FONT_BACKEND=yes
2156 # Check whether --enable-asserts was given.
2157 if test "${enable_asserts+set}" = set; then
2158 enableval=$enable_asserts; USE_XASSERTS=$enableval
2164 # Check whether --enable-maintainer-mode was given.
2165 if test "${enable_maintainer_mode+set}" = set; then
2166 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2168 USE_MAINTAINER_MODE=no
2171 if test $USE_MAINTAINER_MODE = yes; then
2178 # Check whether --enable-locallisppath was given.
2179 if test "${enable_locallisppath+set}" = set; then
2180 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2182 elif test "${enableval}" != "yes"; then
2183 locallisppath=${enableval}
2188 #### Make srcdir absolute, if it isn't already. It's important to
2189 #### avoid running the path through pwd unnecessarily, since pwd can
2190 #### give you automounter prefixes, which can go away. We do all this
2191 #### so Emacs can find its files when run uninstalled.
2192 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2197 ## We may be able to use the $PWD environment variable to make this
2198 ## absolute. But sometimes PWD is inaccurate.
2199 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2200 ## but that tested only for a well-formed and valid PWD,
2201 ## it did not object when PWD was well-formed and valid but just wrong.
2202 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh
-c pwd)`" = ".`pwd`" ;
2206 srcdir="`(cd ${srcdir}; pwd)`"
2209 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2212 #### Check if the source directory already has a configured system in it.
2213 if test `pwd` != `(cd ${srcdir} && pwd)` \
2214 && test -f "${srcdir}/src/config.h" ; then
2215 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2216 as a build directory right now; it has been configured in its own
2217 right. To configure in another directory as well, you MUST
2218 use GNU make. If you do not have GNU make, then you must
2219 now do \`make distclean' in ${srcdir},
2220 and
then run
$0 again.
" >&5
2221 echo "$as_me: WARNING
: The directory tree \
`${srcdir}' is being used
2222 as a build directory right now; it has been configured in its own
2223 right. To configure in another directory as well, you MUST
2224 use GNU make. If you do not have GNU make, then you must
2225 now do \`make distclean
' in ${srcdir},
2226 and then run $0 again." >&2;}
2229 #### Given the configuration name, set machfile and opsysfile to the
2230 #### names of the m/*.h and s/*.h files we should use.
2232 ### Canonicalize the configuration name.
2235 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2236 if test -f "$ac_dir/install-sh"; then
2238 ac_install_sh="$ac_aux_dir/install-sh -c"
2240 elif test -f "$ac_dir/install.sh"; then
2242 ac_install_sh="$ac_aux_dir/install.sh -c"
2244 elif test -f "$ac_dir/shtool"; then
2246 ac_install_sh="$ac_aux_dir/shtool install -c"
2250 if test -z "$ac_aux_dir"; then
2251 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2252 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2253 { (exit 1); exit 1; }; }
2256 # These three variables are undocumented and unsupported,
2257 # and are intended to be withdrawn in a future Autoconf release.
2258 # They can cause serious problems if a builder's
source tree is
in a directory
2259 # whose full name contains unusual characters.
2260 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2261 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2262 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2265 # Make sure we can run config.sub.
2266 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2267 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2268 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2269 { (exit 1); exit 1; }; }
2271 { echo "$as_me:$LINENO: checking build system type" >&5
2272 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2273 if test "${ac_cv_build+set}" = set; then
2274 echo $ECHO_N "(cached) $ECHO_C" >&6
2276 ac_build_alias
=$build_alias
2277 test "x$ac_build_alias" = x
&&
2278 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2279 test "x$ac_build_alias" = x
&&
2280 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2281 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2282 { (exit 1); exit 1; }; }
2283 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2284 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2285 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2286 { (exit 1); exit 1; }; }
2289 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2290 echo "${ECHO_T}$ac_cv_build" >&6; }
2291 case $ac_cv_build in
2293 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2294 echo "$as_me: error: invalid value of canonical build" >&2;}
2295 { (exit 1); exit 1; }; };;
2298 ac_save_IFS
=$IFS; IFS
='-'
2304 # Remember, the first character of IFS is used to create $*,
2305 # except with old shells:
2308 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2311 { echo "$as_me:$LINENO: checking host system type" >&5
2312 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2313 if test "${ac_cv_host+set}" = set; then
2314 echo $ECHO_N "(cached) $ECHO_C" >&6
2316 if test "x$host_alias" = x
; then
2317 ac_cv_host
=$ac_cv_build
2319 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2320 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2321 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2322 { (exit 1); exit 1; }; }
2326 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2327 echo "${ECHO_T}$ac_cv_host" >&6; }
2330 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2331 echo "$as_me: error: invalid value of canonical host" >&2;}
2332 { (exit 1); exit 1; }; };;
2335 ac_save_IFS
=$IFS; IFS
='-'
2341 # Remember, the first character of IFS is used to create $*,
2342 # except with old shells:
2345 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2349 configuration
=${host_alias-${build_alias-$host}}
2353 ### If you add support for a new configuration, add code to this
2354 ### switch statement to recognize your configuration name and select
2355 ### the appropriate operating system and machine description files.
2357 ### You would hope that you could choose an m/*.h file pretty much
2358 ### based on the machine portion of the configuration name, and an s-
2359 ### file based on the operating system portion. However, it turns out
2360 ### that each m/*.h file is pretty manufacturer-specific - for
2361 ### example hp9000s300.h is a 68000 machine;
2362 ### mips.h, pmax.h are all MIPS
2363 ### machines. So we basically have to have a special case for each
2364 ### configuration name.
2366 ### As far as handling version numbers on operating systems is
2367 ### concerned, make sure things will fail in a fixable way. If
2368 ### /etc/MACHINES doesn't say anything about version numbers, be
2369 ### prepared to handle anything reasonably. If version numbers
2370 ### matter, be sure /etc/MACHINES says something about it.
2372 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2373 ### "System V Release 4"; he writes, "The old convention encouraged
2374 ### confusion between `system' and `release' levels'."
2376 machine
='' opsys
='' unported
=no
2377 case "${canonical}" in
2382 case "${canonical}" in
2383 alpha
*-*-freebsd*) machine
=alpha
;;
2384 arm
*-*-freebsd*) machine
=arm
;;
2385 ia64-
*-freebsd*) machine
=ia64
;;
2386 sparc64-
*-freebsd*) machine
=sparc
;;
2387 powerpc-
*-freebsd*) machine
=macppc
;;
2388 i
[3456]86-*-freebsd*) machine
=intel386
;;
2389 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2393 ## FreeBSD kernel + glibc based userland
2396 case "${canonical}" in
2397 alpha
*-*-kfreebsd*) machine
=alpha
;;
2398 ia64-
*-kfreebsd*) machine
=ia64
;;
2399 sparc64-
*-kfreebsd*) machine
=sparc
;;
2400 powerpc-
*-kfreebsd*) machine
=macppc
;;
2401 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2402 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2409 if test -f /usr
/lib
/crti.o
; then
2411 cat >>confdefs.h
<<\_ACEOF
2417 case "${canonical}" in
2418 alpha
*-*-netbsd*) machine
=alpha
;;
2419 i
[3456]86-*-netbsd*) machine
=intel386
;;
2421 # This is somewhat bogus.
2422 machine
=hp9000s300
;;
2423 mips-
*-netbsd*) machine
=pmax
;;
2424 mipsel-
*-netbsd*) machine
=pmax
;;
2425 mipseb-
*-netbsd*) machine
=pmax
;;
2426 powerpc-
*-netbsd*) machine
=macppc
;;
2427 sparc
*-*-netbsd*) machine
=sparc
;;
2428 vax-
*-netbsd*) machine
=vax
;;
2429 arm-
*-netbsd*) machine
=arm
;;
2430 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2431 hppa-
*-netbsd*) machine
=hp800
;;
2438 case "${canonical}" in
2439 alpha
*-*-openbsd*) machine
=alpha
;;
2440 arm-
*-openbsd*) machine
=arm
;;
2441 hppa-
*-openbsd*) machine
=hp9000s300
;;
2442 i386-
*-openbsd*) machine
=intel386
;;
2443 m68k-
*-openbsd*) machine
=hp9000s300
;;
2444 powerpc-
*-openbsd*) machine
=macppc
;;
2445 sparc
*-*-openbsd*) machine
=sparc
;;
2446 vax-
*-openbsd*) machine
=vax
;;
2447 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2454 case "${canonical}" in
2455 i
[3456]86-*-lynxos*) machine
=intel386
;;
2456 powerpc-
*-lynxos*) machine
=powerpc
;;
2463 case "${canonical}" in
2464 i
[345]86-*-bsdi*) machine
=intel386
;;
2465 sparc-
*-bsdi*) machine
=sparc
;;
2466 powerpc-
*-bsdi*) machine
=macppc
;;
2468 case "${canonical}" in
2469 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2470 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2471 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2472 *-*-bsdi3* ) opsys
=bsdos3
;;
2473 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2477 alpha
*-*-linux-gnu* )
2478 machine
=alpha opsys
=gnu-linux
2482 machine
=arm opsys
=gnu-linux
2485 ## Apple Darwin / Mac OS X
2487 case "${canonical}" in
2488 i
[3456]86-* ) machine
=intel386
;;
2489 powerpc-
* ) machine
=powermac
;;
2493 # Define CPP as follows to make autoconf work correctly.
2494 CPP
="${CC-cc} -E -no-cpp-precomp"
2495 # Use fink packages if available.
2496 if test -d /sw
/include
&& test -d /sw
/lib
; then
2497 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2498 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2499 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2504 i
[3456]86-cubix-sysv* )
2505 machine
=intel386 opsys
=usg5-3
2508 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2509 machine
=pmax opsys
=bsd4-2
2511 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2512 machine
=pmax opsys
=bsd4-3
2515 machine
=pmax opsys
=ultrix4-3
2517 ## HP 9000 series 200 or 300
2519 machine
=hp9000s300 opsys
=bsd4-3
2521 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2523 case "`uname -r`" in
2524 ## Someone's system reports A.B8.05 for this.
2525 ## I wonder what other possibilities there are.
2526 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2527 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2528 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2529 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2530 *) machine
=hp9000s300 opsys
=hpux
;;
2534 ## HP 9000 series 700 and 800, running HP/UX
2536 machine
=hp800 opsys
=hpux
2539 machine
=hp800 opsys
=hpux8
2541 hppa
*-hp-hpux9shr* )
2542 machine
=hp800 opsys
=hpux9shr
2545 machine
=hp800 opsys
=hpux9
2547 hppa
*-hp-hpux10.2
* )
2548 machine
=hp800 opsys
=hpux10-20
2551 machine
=hp800 opsys
=hpux10
2553 hppa
*-hp-hpux1[1-9]* )
2554 machine
=hp800 opsys
=hpux11
2555 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2558 hppa
*-*-linux-gnu* )
2559 machine
=hp800 opsys
=gnu-linux
2562 ## HP 9000 series 700 and 800, running HP/UX
2564 ## Cross-compilation? Nah!
2565 case "`uname -r`" in
2566 ## Someone's system reports A.B8.05 for this.
2567 ## I wonder what other possibilities there are.
2568 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2569 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2570 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2571 *) machine
=hp800 opsys
=hpux10
;;
2575 machine
=hp800 opsys
=nextstep
2580 machine
=ibm370aix opsys
=usg5-3
2583 machine
=ibms390 opsys
=gnu-linux
2585 s390x-
*-linux-gnu* )
2586 machine
=ibms390x opsys
=gnu-linux
2588 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2589 machine
=ibmrs6000 opsys
=aix3-1
2591 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2592 machine
=ibmrs6000 opsys
=aix3-2-5
2594 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2595 machine
=ibmrs6000 opsys
=aix4-1
2597 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2598 machine
=ibmrs6000 opsys
=aix4-2
2600 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2601 machine
=ibmrs6000 opsys
=aix4-2
2603 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2604 machine
=ibmrs6000 opsys
=aix4-2
2606 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2607 machine
=ibmrs6000 opsys
=aix4-2
2609 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2610 machine
=ibmrs6000 opsys
=aix4
2612 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2613 machine
=ibmrs6000 opsys
=aix4-1
2615 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2616 machine
=ibmrs6000 opsys
=aix3-2
2620 i
[3456]86-prime-sysv* )
2621 machine
=i386 opsys
=usg5-3
2624 ## ncr machine running svr4.3.
2625 i
[3456]86-ncr-sysv4.3
)
2626 machine
=ncr386 opsys
=usg5-4-3
2629 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2630 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2631 i
[3456]86-ncr-sysv* )
2632 machine
=ncr386 opsys
=usg5-4-2
2635 ## Macintosh PowerPC
2636 powerpc
*-*-linux-gnu* )
2637 machine
=macppc opsys
=gnu-linux
2640 ## Workstations sold by MIPS
2641 ## This is not necessarily all workstations using the MIPS processor -
2642 ## Irises are produced by SGI, and DECstations by DEC.
2645 machine
=mips opsys
=bsd4-3
2648 machine
=mips opsys
=usg5-2-2
2652 m68
*-next-* | m68k-
*-nextstep* )
2653 machine
=m68k opsys
=nextstep
2658 machine
=ews4800 opsys
=ux4800
2662 mips-siemens-sysv
* | mips-sni-sysv
*)
2663 machine
=mips-siemens opsys
=usg5-4
2664 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2665 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2668 ## Silicon Graphics machines
2671 machine
=iris4d opsys
=irix6-5
2672 # Without defining _LANGUAGE_C, things get masked out in the headers
2673 # so that, for instance, grepping for `free' in stdlib.h fails and
2674 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2675 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2676 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2680 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2681 machine
=sparc opsys
=gnu-linux
2684 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2685 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2686 | rs6000-
*-solaris2*)
2687 case "${canonical}" in
2688 i
[3456]86-*-* ) machine
=intel386
;;
2689 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2690 powerpcle
* ) machine
=powerpcle
;;
2691 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2692 sparc
* ) machine
=sparc
;;
2695 case "${canonical}" in
2696 *-sunos5.3
* |
*-solaris2.3
* )
2698 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2700 *-sunos5.4
* |
*-solaris2.4
* )
2702 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2705 *-sunos5.5
* |
*-solaris2.5
* )
2707 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2710 *-sunos5.6
* |
*-solaris2.6
* )
2712 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2715 *-sunos5* |
*-solaris* )
2717 emacs_check_sunpro_c
=yes
2718 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2722 ## Watch out for a compiler that we know will not work.
2723 case "${canonical}" in
2724 *-solaris* |
*-sunos5* )
2725 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2726 ## /usr/ucb/cc doesn't work;
2727 ## we should find some other compiler that does work.
2735 machine
=sparc opsys
=nextstep
2738 ## Tandem Integrity S2
2740 machine
=tandem-s2 opsys
=usg5-3
2746 case "${canonical}" in
2747 *-bsd4.1
* ) opsys
=bsd4-1
;;
2748 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2749 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2750 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2751 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2752 *-vms* ) opsys
=vms
;;
2759 machine
=ia64 opsys
=gnu-linux
2762 ## Intel 386 machines where we don't care about the manufacturer
2765 case "${canonical}" in
2766 *-cygwin ) opsys
=cygwin
;;
2767 *-darwin* ) opsys
=darwin
2768 CPP
="${CC-cc} -E -no-cpp-precomp"
2770 *-linux-gnu* ) opsys
=gnu-linux
;;
2771 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2772 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2773 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2774 *-386bsd* ) opsys
=386bsd
;;
2775 *-nextstep* ) opsys
=nextstep
;;
2776 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2780 ## m68k Linux-based GNU system
2782 machine
=m68k opsys
=gnu-linux
2785 ## Mips Linux-based GNU system
2786 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2787 machine
=mips opsys
=gnu-linux
2791 sparc-fujitsu-sysv4
* )
2792 machine
=sparc opsys
=uxpds
2793 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2797 ## AMD x86-64 Linux-based GNU system
2798 x86_64-
*-linux-gnu* )
2799 machine
=amdx86-64 opsys
=gnu-linux
2802 ## Tensilica Xtensa Linux-based GNU system
2803 xtensa
*-*-linux-gnu* )
2804 machine
=xtensa opsys
=gnu-linux
2812 ### If the code above didn't choose an operating system, just choose
2813 ### an operating system based on the configuration name. You really
2814 ### only want to use this when you have no idea what the right
2815 ### operating system is; if you know what operating systems a machine
2816 ### runs, it's cleaner to make it explicit in the case statement
2818 if test x
"${opsys}" = x
; then
2819 case "${canonical}" in
2820 *-gnu* ) opsys
=gnu
;;
2821 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2822 *-bsd4.2
) opsys
=bsd4-2
;;
2823 *-bsd4.3
) opsys
=bsd4-3
;;
2824 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2825 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2826 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2827 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2828 *-sysv4.2uw
* ) opsys
=unixware
;;
2829 *-sysv5uw* ) opsys
=unixware
;;
2830 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2831 *-sysv4.1
* |
*-sysvr4.1
* )
2832 NON_GNU_CPP
=/usr
/lib
/cpp
2834 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2835 if [ x
$NON_GNU_CPP = x
]; then
2836 if [ -f /usr
/ccs
/lib
/cpp
]; then
2837 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2839 NON_GNU_CPP
=/lib
/cpp
2843 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2850 ### Tests for sytems that we beleive are obsolete and should be desupported.
2852 case "${machine}" in
2853 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2
)
2854 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2855 echo "and it is planned to be desupported in the next version of Emacs"
2856 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2857 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2858 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2864 bsd386 | bsdos2-1 | bsdos2 | bsdos3 | bsdos4 | bsd4-1 | bsd4-2 | bsd4-3 | usg5-0 | usg5-2-2 | usg5-2 | usg5-3 | ultrix4-3 |
386bsd | hpux | hpux8 | hpux9 | hpux9shr | hpux10 | hpux10-20 | aix3-1 | aix3-2-5 | aix3-2 | aix4-1 | nextstep | ux4800 | uxpds | uxpv
)
2865 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2866 echo "and it is planned to be desupported in the next version of Emacs"
2867 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2868 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2869 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2876 if test $unported = yes; then
2877 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2878 Check \`etc/MACHINES' for recognized configuration names." >&5
2879 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2880 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2881 { (exit 1); exit 1; }; }
2884 machfile
="m/${machine}.h"
2885 opsysfile
="s/${opsys}.h"
2888 #### Choose a compiler.
2889 test -n "$CC" && cc_specified
=yes
2891 # Save the value of CFLAGS that the user specified.
2892 SPECIFIED_CFLAGS
="$CFLAGS"
2895 ac_cpp
='$CPP $CPPFLAGS'
2896 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2897 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2898 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2899 if test -n "$ac_tool_prefix"; then
2900 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2901 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2902 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2903 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2904 if test "${ac_cv_prog_CC+set}" = set; then
2905 echo $ECHO_N "(cached) $ECHO_C" >&6
2907 if test -n "$CC"; then
2908 ac_cv_prog_CC
="$CC" # Let the user override the test.
2910 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2914 test -z "$as_dir" && as_dir
=.
2915 for ac_exec_ext
in '' $ac_executable_extensions; do
2916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2917 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2928 if test -n "$CC"; then
2929 { echo "$as_me:$LINENO: result: $CC" >&5
2930 echo "${ECHO_T}$CC" >&6; }
2932 { echo "$as_me:$LINENO: result: no" >&5
2933 echo "${ECHO_T}no" >&6; }
2938 if test -z "$ac_cv_prog_CC"; then
2940 # Extract the first word of "gcc", so it can be a program name with args.
2941 set dummy gcc
; ac_word
=$2
2942 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2944 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2945 echo $ECHO_N "(cached) $ECHO_C" >&6
2947 if test -n "$ac_ct_CC"; then
2948 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2954 test -z "$as_dir" && as_dir
=.
2955 for ac_exec_ext
in '' $ac_executable_extensions; do
2956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2957 ac_cv_prog_ac_ct_CC
="gcc"
2958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2968 if test -n "$ac_ct_CC"; then
2969 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2970 echo "${ECHO_T}$ac_ct_CC" >&6; }
2972 { echo "$as_me:$LINENO: result: no" >&5
2973 echo "${ECHO_T}no" >&6; }
2976 if test "x$ac_ct_CC" = x
; then
2979 case $cross_compiling:$ac_tool_warned in
2981 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2982 whose name does not start with the host triplet. If you think this
2983 configuration is useful to you, please write to autoconf@gnu.org." >&5
2984 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2985 whose name does not start with the host triplet. If you think this
2986 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2987 ac_tool_warned
=yes ;;
2995 if test -z "$CC"; then
2996 if test -n "$ac_tool_prefix"; then
2997 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2998 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2999 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3000 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3001 if test "${ac_cv_prog_CC+set}" = set; then
3002 echo $ECHO_N "(cached) $ECHO_C" >&6
3004 if test -n "$CC"; then
3005 ac_cv_prog_CC
="$CC" # Let the user override the test.
3007 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3011 test -z "$as_dir" && as_dir
=.
3012 for ac_exec_ext
in '' $ac_executable_extensions; do
3013 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3014 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3015 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 if test -n "$CC"; then
3026 { echo "$as_me:$LINENO: result: $CC" >&5
3027 echo "${ECHO_T}$CC" >&6; }
3029 { echo "$as_me:$LINENO: result: no" >&5
3030 echo "${ECHO_T}no" >&6; }
3036 if test -z "$CC"; then
3037 # Extract the first word of "cc", so it can be a program name with args.
3038 set dummy cc
; ac_word
=$2
3039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3041 if test "${ac_cv_prog_CC+set}" = set; then
3042 echo $ECHO_N "(cached) $ECHO_C" >&6
3044 if test -n "$CC"; then
3045 ac_cv_prog_CC
="$CC" # Let the user override the test.
3048 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3052 test -z "$as_dir" && as_dir
=.
3053 for ac_exec_ext
in '' $ac_executable_extensions; do
3054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3055 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3056 ac_prog_rejected
=yes
3060 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3067 if test $ac_prog_rejected = yes; then
3068 # We found a bogon in the path, so make sure we never use it.
3069 set dummy
$ac_cv_prog_CC
3071 if test $# != 0; then
3072 # We chose a different compiler from the bogus one.
3073 # However, it has the same basename, so the bogon will be chosen
3074 # first if we set CC to just the basename; use the full file name.
3076 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3082 if test -n "$CC"; then
3083 { echo "$as_me:$LINENO: result: $CC" >&5
3084 echo "${ECHO_T}$CC" >&6; }
3086 { echo "$as_me:$LINENO: result: no" >&5
3087 echo "${ECHO_T}no" >&6; }
3092 if test -z "$CC"; then
3093 if test -n "$ac_tool_prefix"; then
3094 for ac_prog
in cl.exe
3096 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3097 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3098 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3099 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3100 if test "${ac_cv_prog_CC+set}" = set; then
3101 echo $ECHO_N "(cached) $ECHO_C" >&6
3103 if test -n "$CC"; then
3104 ac_cv_prog_CC
="$CC" # Let the user override the test.
3106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3110 test -z "$as_dir" && as_dir
=.
3111 for ac_exec_ext
in '' $ac_executable_extensions; do
3112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3113 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3124 if test -n "$CC"; then
3125 { echo "$as_me:$LINENO: result: $CC" >&5
3126 echo "${ECHO_T}$CC" >&6; }
3128 { echo "$as_me:$LINENO: result: no" >&5
3129 echo "${ECHO_T}no" >&6; }
3133 test -n "$CC" && break
3136 if test -z "$CC"; then
3138 for ac_prog
in cl.exe
3140 # Extract the first word of "$ac_prog", so it can be a program name with args.
3141 set dummy
$ac_prog; ac_word
=$2
3142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3144 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3145 echo $ECHO_N "(cached) $ECHO_C" >&6
3147 if test -n "$ac_ct_CC"; then
3148 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3150 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3154 test -z "$as_dir" && as_dir
=.
3155 for ac_exec_ext
in '' $ac_executable_extensions; do
3156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3157 ac_cv_prog_ac_ct_CC
="$ac_prog"
3158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3168 if test -n "$ac_ct_CC"; then
3169 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3170 echo "${ECHO_T}$ac_ct_CC" >&6; }
3172 { echo "$as_me:$LINENO: result: no" >&5
3173 echo "${ECHO_T}no" >&6; }
3177 test -n "$ac_ct_CC" && break
3180 if test "x$ac_ct_CC" = x
; then
3183 case $cross_compiling:$ac_tool_warned in
3185 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3186 whose name does not start with the host triplet. If you think this
3187 configuration is useful to you, please write to autoconf@gnu.org." >&5
3188 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3189 whose name does not start with the host triplet. If you think this
3190 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3191 ac_tool_warned
=yes ;;
3200 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3201 See \`config.log' for more details." >&5
3202 echo "$as_me: error: no acceptable C compiler found in \$PATH
3203 See \`config.log' for more details." >&2;}
3204 { (exit 1); exit 1; }; }
3206 # Provide some information about the compiler.
3207 echo "$as_me:$LINENO: checking for C compiler version" >&5
3208 ac_compiler
=`set X $ac_compile; echo $2`
3209 { (ac_try
="$ac_compiler --version >&5"
3211 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3212 *) ac_try_echo=$ac_try;;
3214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3215 (eval "$ac_compiler --version >&5") 2>&5
3217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3218 (exit $ac_status); }
3219 { (ac_try="$ac_compiler -v >&5"
3221 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3222 *) ac_try_echo
=$ac_try;;
3224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3225 (eval "$ac_compiler -v >&5") 2>&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); }
3229 { (ac_try
="$ac_compiler -V >&5"
3231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3232 *) ac_try_echo=$ac_try;;
3234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3235 (eval "$ac_compiler -V >&5") 2>&5
3237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3238 (exit $ac_status); }
3240 cat >conftest.$ac_ext <<_ACEOF
3243 cat confdefs.h >>conftest.$ac_ext
3244 cat >>conftest.$ac_ext <<_ACEOF
3245 /* end confdefs.h. */
3255 ac_clean_files_save=$ac_clean_files
3256 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3257 # Try to create an executable without -o first, disregard a.out.
3258 # It will help us diagnose broken compilers, and finding out an intuition
3260 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3261 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3262 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3264 # List of possible output files, starting from the most likely.
3265 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3266 # only as a last resort. b.out is created by i960 compilers.
3267 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3269 # The IRIX 6 linker writes into existing files which may not be
3270 # executable, retaining their permissions. Remove them first so a
3271 # subsequent execution test works.
3273 for ac_file in $ac_files
3276 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3277 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3282 if { (ac_try="$ac_link_default"
3284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3285 *) ac_try_echo=$ac_try;;
3287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3288 (eval "$ac_link_default") 2>&5
3290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3291 (exit $ac_status); }; then
3292 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3293 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3294 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3295 # so that the user can short-circuit this test for compilers unknown to
3297 for ac_file
in $ac_files ''
3299 test -f "$ac_file" ||
continue
3301 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3304 # We found the default executable, but exeext='' is most
3308 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3310 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3312 # We set ac_cv_exeext here because the later test for it is not
3313 # safe: cross compilers may not add the suffix if given an `-o'
3314 # argument, so we may need to know it at that point already.
3315 # Even if this section looks crufty: it has the advantage of
3322 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3328 { echo "$as_me:$LINENO: result: $ac_file" >&5
3329 echo "${ECHO_T}$ac_file" >&6; }
3330 if test -z "$ac_file"; then
3331 echo "$as_me: failed program was:" >&5
3332 sed 's/^/| /' conftest.
$ac_ext >&5
3334 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3335 See \`config.log' for more details." >&5
3336 echo "$as_me: error: C compiler cannot create executables
3337 See \`config.log' for more details." >&2;}
3338 { (exit 77); exit 77; }; }
3341 ac_exeext
=$ac_cv_exeext
3343 # Check that the compiler produces executables we can run. If not, either
3344 # the compiler is broken, or we cross compile.
3345 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3346 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3347 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3348 # If not cross compiling, check that we can run a simple program.
3349 if test "$cross_compiling" != yes; then
3350 if { ac_try
='./$ac_file'
3351 { (case "(($ac_try" in
3352 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3353 *) ac_try_echo=$ac_try;;
3355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3356 (eval "$ac_try") 2>&5
3358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3359 (exit $ac_status); }; }; then
3362 if test "$cross_compiling" = maybe; then
3365 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3366 If you meant to cross compile, use \`--host'.
3367 See \`config.log' for more details.
" >&5
3368 echo "$as_me: error
: cannot run C compiled programs.
3369 If you meant to cross compile
, use \
`--host'.
3370 See \`config.log
' for more details." >&2;}
3371 { (exit 1); exit 1; }; }
3375 { echo "$as_me:$LINENO: result: yes" >&5
3376 echo "${ECHO_T}yes" >&6; }
3378 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3379 ac_clean_files=$ac_clean_files_save
3380 # Check that the compiler produces executables we can run. If not, either
3381 # the compiler is broken, or we cross compile.
3382 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3383 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3384 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3385 echo "${ECHO_T}$cross_compiling" >&6; }
3387 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3388 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3389 if { (ac_try="$ac_link"
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3395 (eval "$ac_link") 2>&5
3397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3398 (exit $ac_status); }; then
3399 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3400 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3401 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3403 for ac_file
in conftest.exe conftest conftest.
*; do
3404 test -f "$ac_file" ||
continue
3406 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3407 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3413 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3414 See \`config.log' for more details." >&5
3415 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3416 See \`config.log' for more details." >&2;}
3417 { (exit 1); exit 1; }; }
3420 rm -f conftest
$ac_cv_exeext
3421 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3422 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3424 rm -f conftest.
$ac_ext
3425 EXEEXT
=$ac_cv_exeext
3427 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3428 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3429 if test "${ac_cv_objext+set}" = set; then
3430 echo $ECHO_N "(cached) $ECHO_C" >&6
3432 cat >conftest.
$ac_ext <<_ACEOF
3435 cat confdefs.h
>>conftest.
$ac_ext
3436 cat >>conftest.
$ac_ext <<_ACEOF
3437 /* end confdefs.h. */
3447 rm -f conftest.o conftest.obj
3448 if { (ac_try
="$ac_compile"
3450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3451 *) ac_try_echo=$ac_try;;
3453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3454 (eval "$ac_compile") 2>&5
3456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457 (exit $ac_status); }; then
3458 for ac_file in conftest.o conftest.obj conftest.*; do
3459 test -f "$ac_file" || continue;
3461 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3462 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3467 echo "$as_me: failed program was:" >&5
3468 sed 's/^/| /' conftest.$ac_ext >&5
3470 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3471 See \`config.log
' for more details." >&5
3472 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3473 See \`config.log' for more details.
" >&2;}
3474 { (exit 1); exit 1; }; }
3477 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3479 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3480 echo "${ECHO_T}$ac_cv_objext" >&6; }
3481 OBJEXT=$ac_cv_objext
3483 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3484 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3485 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3486 echo $ECHO_N "(cached
) $ECHO_C" >&6
3488 cat >conftest.$ac_ext <<_ACEOF
3491 cat confdefs.h >>conftest.$ac_ext
3492 cat >>conftest.$ac_ext <<_ACEOF
3493 /* end confdefs.h. */
3506 rm -f conftest.$ac_objext
3507 if { (ac_try="$ac_compile"
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3512 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3513 (eval "$ac_compile") 2>conftest.er1
3515 grep -v '^ *+' conftest.er1 >conftest.err
3517 cat conftest.err >&5
3518 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3519 (exit $ac_status); } && {
3520 test -z "$ac_c_werror_flag" ||
3521 test ! -s conftest.err
3522 } && test -s conftest.$ac_objext; then
3525 echo "$as_me: failed program was
:" >&5
3526 sed 's/^/| /' conftest.$ac_ext >&5
3531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3532 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3535 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3536 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3537 GCC=`test $ac_compiler_gnu = yes && echo yes`
3538 ac_test_CFLAGS=${CFLAGS+set}
3539 ac_save_CFLAGS=$CFLAGS
3540 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3541 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3542 if test "${ac_cv_prog_cc_g+set}" = set; then
3543 echo $ECHO_N "(cached
) $ECHO_C" >&6
3545 ac_save_c_werror_flag=$ac_c_werror_flag
3546 ac_c_werror_flag=yes
3549 cat >conftest.$ac_ext <<_ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3564 rm -f conftest.$ac_objext
3565 if { (ac_try="$ac_compile"
3567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3568 *) ac_try_echo=$ac_try;;
3570 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3571 (eval "$ac_compile") 2>conftest.er1
3573 grep -v '^ *+' conftest.er1 >conftest.err
3575 cat conftest.err >&5
3576 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3577 (exit $ac_status); } && {
3578 test -z "$ac_c_werror_flag" ||
3579 test ! -s conftest.err
3580 } && test -s conftest.$ac_objext; then
3583 echo "$as_me: failed program was
:" >&5
3584 sed 's/^/| /' conftest.$ac_ext >&5
3587 cat >conftest.$ac_ext <<_ACEOF
3590 cat confdefs.h >>conftest.$ac_ext
3591 cat >>conftest.$ac_ext <<_ACEOF
3592 /* end confdefs.h. */
3602 rm -f conftest.$ac_objext
3603 if { (ac_try="$ac_compile"
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3608 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3609 (eval "$ac_compile") 2>conftest.er1
3611 grep -v '^ *+' conftest.er1 >conftest.err
3613 cat conftest.err >&5
3614 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3615 (exit $ac_status); } && {
3616 test -z "$ac_c_werror_flag" ||
3617 test ! -s conftest.err
3618 } && test -s conftest.$ac_objext; then
3621 echo "$as_me: failed program was
:" >&5
3622 sed 's/^/| /' conftest.$ac_ext >&5
3624 ac_c_werror_flag=$ac_save_c_werror_flag
3626 cat >conftest.$ac_ext <<_ACEOF
3629 cat confdefs.h >>conftest.$ac_ext
3630 cat >>conftest.$ac_ext <<_ACEOF
3631 /* end confdefs.h. */
3641 rm -f conftest.$ac_objext
3642 if { (ac_try="$ac_compile"
3644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3645 *) ac_try_echo=$ac_try;;
3647 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3648 (eval "$ac_compile") 2>conftest.er1
3650 grep -v '^ *+' conftest.er1 >conftest.err
3652 cat conftest.err >&5
3653 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3654 (exit $ac_status); } && {
3655 test -z "$ac_c_werror_flag" ||
3656 test ! -s conftest.err
3657 } && test -s conftest.$ac_objext; then
3660 echo "$as_me: failed program was
:" >&5
3661 sed 's/^/| /' conftest.$ac_ext >&5
3666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3673 ac_c_werror_flag=$ac_save_c_werror_flag
3675 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3676 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3677 if test "$ac_test_CFLAGS" = set; then
3678 CFLAGS=$ac_save_CFLAGS
3679 elif test $ac_cv_prog_cc_g = yes; then
3680 if test "$GCC" = yes; then
3686 if test "$GCC" = yes; then
3692 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3693 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3694 if test "${ac_cv_prog_cc_c89+set}" = set; then
3695 echo $ECHO_N "(cached
) $ECHO_C" >&6
3697 ac_cv_prog_cc_c89=no
3699 cat >conftest.$ac_ext <<_ACEOF
3702 cat confdefs.h >>conftest.$ac_ext
3703 cat >>conftest.$ac_ext <<_ACEOF
3704 /* end confdefs.h. */
3707 #include <sys/types.h>
3708 #include <sys/stat.h>
3709 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3710 struct buf { int x; };
3711 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3712 static char *e (p, i)
3718 static char *f (char * (*g) (char **, int), char **p, ...)
3723 s = g (p, va_arg (v,int));
3728 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3729 function prototypes and stuff, but not '\xHH' hex character constants.
3730 These don't provoke an error unfortunately, instead are silently treated
3731 as 'x'. The following induces an error, until -std is added to get
3732 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3733 array size at least. It's necessary to write '\x00'==0 to get something
3734 that's true only with -std. */
3735 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3737 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3738 inside strings and character constants. */
3740 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3742 int test (int i, double x);
3743 struct s1 {int (*f) (int a);};
3744 struct s2 {int (*f) (double a);};
3745 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3751 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3756 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3757 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3759 CC="$ac_save_CC $ac_arg"
3760 rm -f conftest.$ac_objext
3761 if { (ac_try="$ac_compile"
3763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3767 (eval "$ac_compile") 2>conftest.er1
3769 grep -v '^ *+' conftest.er1 >conftest.err
3771 cat conftest.err >&5
3772 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3773 (exit $ac_status); } && {
3774 test -z "$ac_c_werror_flag" ||
3775 test ! -s conftest.err
3776 } && test -s conftest.$ac_objext; then
3777 ac_cv_prog_cc_c89=$ac_arg
3779 echo "$as_me: failed program was
:" >&5
3780 sed 's/^/| /' conftest.$ac_ext >&5
3785 rm -f core conftest.err conftest.$ac_objext
3786 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3788 rm -f conftest.$ac_ext
3793 case "x
$ac_cv_prog_cc_c89" in
3795 { echo "$as_me:$LINENO: result
: none needed
" >&5
3796 echo "${ECHO_T}none needed
" >&6; } ;;
3798 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3799 echo "${ECHO_T}unsupported
" >&6; } ;;
3801 CC="$CC $ac_cv_prog_cc_c89"
3802 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3803 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3808 ac_cpp='$CPP $CPPFLAGS'
3809 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3810 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3811 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3814 # On Suns, sometimes $CPP names a directory.
3815 if test -n "$CPP" && test -d "$CPP"; then
3819 ## If not using gcc, and on Solaris, and no CPP specified, see if
3820 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3821 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3822 test x"$CPP" = x; then
3823 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3824 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3826 if test "${emacs_cv_sunpro_c+set}" = set; then
3827 echo $ECHO_N "(cached
) $ECHO_C" >&6
3829 cat >conftest.$ac_ext <<_ACEOF
3832 cat confdefs.h >>conftest.$ac_ext
3833 cat >>conftest.$ac_ext <<_ACEOF
3834 /* end confdefs.h. */
3847 rm -f conftest.$ac_objext conftest$ac_exeext
3848 if { (ac_try="$ac_link"
3850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3851 *) ac_try_echo=$ac_try;;
3853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3854 (eval "$ac_link") 2>conftest.er1
3856 grep -v '^ *+' conftest.er1 >conftest.err
3858 cat conftest.err >&5
3859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3860 (exit $ac_status); } && {
3861 test -z "$ac_c_werror_flag" ||
3862 test ! -s conftest.err
3863 } && test -s conftest$ac_exeext &&
3864 $as_test_x conftest$ac_exeext; then
3865 emacs_cv_sunpro_c=yes
3867 echo "$as_me: failed program was
:" >&5
3868 sed 's/^/| /' conftest.$ac_ext >&5
3870 emacs_cv_sunpro_c=no
3873 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3874 conftest$ac_exeext conftest.$ac_ext
3877 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3878 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3880 if test x"$emacs_cv_sunpro_c" = xyes; then
3881 NON_GNU_CPP="$CC -E -Xs"
3885 #### Some systems specify a CPP to use unless we are using GCC.
3886 #### Now that we know whether we are using GCC, we can decide whether
3887 #### to use that one.
3888 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3893 #### Some systems specify a CC to use unless we are using GCC.
3894 #### Now that we know whether we are using GCC, we can decide whether
3895 #### to use that one.
3896 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3897 test x$cc_specified != xyes
3902 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3904 CC="$CC $GCC_TEST_OPTIONS"
3907 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3909 CC="$CC $NON_GCC_TEST_OPTIONS"
3913 cat >>confdefs.h <<\_ACEOF
3914 #define _GNU_SOURCE 1
3919 ac_cpp='$CPP $CPPFLAGS'
3920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3923 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3924 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3925 # On Suns, sometimes $CPP names a directory.
3926 if test -n "$CPP" && test -d "$CPP"; then
3929 if test -z "$CPP"; then
3930 if test "${ac_cv_prog_CPP+set}" = set; then
3931 echo $ECHO_N "(cached
) $ECHO_C" >&6
3933 # Double quotes because CPP needs to be expanded
3934 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3937 for ac_c_preproc_warn_flag in '' yes
3939 # Use a header file that comes with gcc, so configuring glibc
3940 # with a fresh cross-compiler works.
3941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3942 # <limits.h> exists even on freestanding compilers.
3943 # On the NeXT, cc -E runs the code through the compiler's parser,
3944 # not just through cpp. "Syntax error
" is here to catch this case.
3945 cat >conftest.$ac_ext <<_ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3952 # include <limits.h>
3954 # include <assert.h>
3958 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961 *) ac_try_echo=$ac_try;;
3963 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3964 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3966 grep -v '^ *+' conftest.er1 >conftest.err
3968 cat conftest.err >&5
3969 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3970 (exit $ac_status); } >/dev/null && {
3971 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3972 test ! -s conftest.err
3976 echo "$as_me: failed program was
:" >&5
3977 sed 's/^/| /' conftest.$ac_ext >&5
3979 # Broken: fails on valid input.
3983 rm -f conftest.err conftest.$ac_ext
3985 # OK, works on sane cases. Now check whether nonexistent headers
3986 # can be detected and how.
3987 cat >conftest.$ac_ext <<_ACEOF
3990 cat confdefs.h >>conftest.$ac_ext
3991 cat >>conftest.$ac_ext <<_ACEOF
3992 /* end confdefs.h. */
3993 #include <ac_nonexistent.h>
3995 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
4000 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4003 grep -v '^ *+' conftest.er1 >conftest.err
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4007 (exit $ac_status); } >/dev/null && {
4008 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4011 # Broken: success on invalid input.
4014 echo "$as_me: failed program was
:" >&5
4015 sed 's/^/| /' conftest.$ac_ext >&5
4017 # Passes both tests.
4022 rm -f conftest.err conftest.$ac_ext
4025 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4026 rm -f conftest.err conftest.$ac_ext
4027 if $ac_preproc_ok; then
4039 { echo "$as_me:$LINENO: result
: $CPP" >&5
4040 echo "${ECHO_T}$CPP" >&6; }
4042 for ac_c_preproc_warn_flag in '' yes
4044 # Use a header file that comes with gcc, so configuring glibc
4045 # with a fresh cross-compiler works.
4046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4047 # <limits.h> exists even on freestanding compilers.
4048 # On the NeXT, cc -E runs the code through the compiler's parser,
4049 # not just through cpp. "Syntax error
" is here to catch this case.
4050 cat >conftest.$ac_ext <<_ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4057 # include <limits.h>
4059 # include <assert.h>
4063 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4066 *) ac_try_echo=$ac_try;;
4068 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4069 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4071 grep -v '^ *+' conftest.er1 >conftest.err
4073 cat conftest.err >&5
4074 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4075 (exit $ac_status); } >/dev/null && {
4076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4077 test ! -s conftest.err
4081 echo "$as_me: failed program was
:" >&5
4082 sed 's/^/| /' conftest.$ac_ext >&5
4084 # Broken: fails on valid input.
4088 rm -f conftest.err conftest.$ac_ext
4090 # OK, works on sane cases. Now check whether nonexistent headers
4091 # can be detected and how.
4092 cat >conftest.$ac_ext <<_ACEOF
4095 cat confdefs.h >>conftest.$ac_ext
4096 cat >>conftest.$ac_ext <<_ACEOF
4097 /* end confdefs.h. */
4098 #include <ac_nonexistent.h>
4100 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4103 *) ac_try_echo=$ac_try;;
4105 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4106 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4108 grep -v '^ *+' conftest.er1 >conftest.err
4110 cat conftest.err >&5
4111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4112 (exit $ac_status); } >/dev/null && {
4113 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4114 test ! -s conftest.err
4116 # Broken: success on invalid input.
4119 echo "$as_me: failed program was
:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 # Passes both tests.
4127 rm -f conftest.err conftest.$ac_ext
4130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4131 rm -f conftest.err conftest.$ac_ext
4132 if $ac_preproc_ok; then
4135 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4136 See \
`config.log' for more details." >&5
4137 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4138 See \`config.log
' for more details." >&2;}
4139 { (exit 1); exit 1; }; }
4143 ac_cpp='$CPP $CPPFLAGS'
4144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4145 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4150 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4151 if test "${ac_cv_path_GREP+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4154 # Extract the first word of "grep ggrep" to use in msg output
4155 if test -z "$GREP"; then
4156 set dummy grep ggrep; ac_prog_name=$2
4157 if test "${ac_cv_path_GREP+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4160 ac_path_GREP_found=false
4161 # Loop through the user's path and
test for each of PROGNAME-LIST
4162 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4163 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4166 test -z "$as_dir" && as_dir
=.
4167 for ac_prog
in grep ggrep
; do
4168 for ac_exec_ext
in '' $ac_executable_extensions; do
4169 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4170 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4171 # Check for GNU ac_path_GREP and select it if it is found.
4172 # Check for GNU $ac_path_GREP
4173 case `"$ac_path_GREP" --version 2>&1` in
4175 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4178 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4181 cat "conftest.in" "conftest.in" >"conftest.tmp"
4182 mv "conftest.tmp" "conftest.in"
4183 cp "conftest.in" "conftest.nl"
4184 echo 'GREP' >> "conftest.nl"
4185 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4186 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4187 ac_count
=`expr $ac_count + 1`
4188 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4189 # Best one so far, save it but keep looking for a better one
4190 ac_cv_path_GREP
="$ac_path_GREP"
4191 ac_path_GREP_max
=$ac_count
4193 # 10*(2^10) chars as input seems more than enough
4194 test $ac_count -gt 10 && break
4196 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4200 $ac_path_GREP_found && break 3
4210 GREP
="$ac_cv_path_GREP"
4211 if test -z "$GREP"; then
4212 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4213 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4214 { (exit 1); exit 1; }; }
4218 ac_cv_path_GREP
=$GREP
4223 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4224 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4225 GREP
="$ac_cv_path_GREP"
4228 { echo "$as_me:$LINENO: checking for egrep" >&5
4229 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4230 if test "${ac_cv_path_EGREP+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4233 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4234 then ac_cv_path_EGREP
="$GREP -E"
4236 # Extract the first word of "egrep" to use in msg output
4237 if test -z "$EGREP"; then
4238 set dummy
egrep; ac_prog_name
=$2
4239 if test "${ac_cv_path_EGREP+set}" = set; then
4240 echo $ECHO_N "(cached) $ECHO_C" >&6
4242 ac_path_EGREP_found
=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4245 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4248 test -z "$as_dir" && as_dir
=.
4249 for ac_prog
in egrep; do
4250 for ac_exec_ext
in '' $ac_executable_extensions; do
4251 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4252 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4253 # Check for GNU ac_path_EGREP and select it if it is found.
4254 # Check for GNU $ac_path_EGREP
4255 case `"$ac_path_EGREP" --version 2>&1` in
4257 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4260 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4263 cat "conftest.in" "conftest.in" >"conftest.tmp"
4264 mv "conftest.tmp" "conftest.in"
4265 cp "conftest.in" "conftest.nl"
4266 echo 'EGREP' >> "conftest.nl"
4267 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4268 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4269 ac_count
=`expr $ac_count + 1`
4270 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4271 # Best one so far, save it but keep looking for a better one
4272 ac_cv_path_EGREP
="$ac_path_EGREP"
4273 ac_path_EGREP_max
=$ac_count
4275 # 10*(2^10) chars as input seems more than enough
4276 test $ac_count -gt 10 && break
4278 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4282 $ac_path_EGREP_found && break 3
4292 EGREP
="$ac_cv_path_EGREP"
4293 if test -z "$EGREP"; then
4294 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4295 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4296 { (exit 1); exit 1; }; }
4300 ac_cv_path_EGREP
=$EGREP
4306 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4307 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4308 EGREP
="$ac_cv_path_EGREP"
4312 { echo "$as_me:$LINENO: checking for AIX" >&5
4313 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4314 cat >conftest.
$ac_ext <<_ACEOF
4317 cat confdefs.h
>>conftest.
$ac_ext
4318 cat >>conftest.
$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4326 $EGREP "yes" >/dev
/null
2>&1; then
4327 { echo "$as_me:$LINENO: result: yes" >&5
4328 echo "${ECHO_T}yes" >&6; }
4329 cat >>confdefs.h
<<\_ACEOF
4330 #define _ALL_SOURCE 1
4334 { echo "$as_me:$LINENO: result: no" >&5
4335 echo "${ECHO_T}no" >&6; }
4340 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4341 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4342 if test "${ac_cv_header_stdc+set}" = set; then
4343 echo $ECHO_N "(cached) $ECHO_C" >&6
4345 cat >conftest.
$ac_ext <<_ACEOF
4348 cat confdefs.h
>>conftest.
$ac_ext
4349 cat >>conftest.
$ac_ext <<_ACEOF
4350 /* end confdefs.h. */
4364 rm -f conftest.
$ac_objext
4365 if { (ac_try
="$ac_compile"
4367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_compile") 2>conftest.er1
4373 grep -v '^ *+' conftest.er1 >conftest.err
4375 cat conftest.err >&5
4376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4377 (exit $ac_status); } && {
4378 test -z "$ac_c_werror_flag" ||
4379 test ! -s conftest.err
4380 } && test -s conftest.$ac_objext; then
4381 ac_cv_header_stdc=yes
4383 echo "$as_me: failed program was:" >&5
4384 sed 's/^/| /' conftest.$ac_ext >&5
4386 ac_cv_header_stdc=no
4389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4391 if test $ac_cv_header_stdc = yes; then
4392 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4393 cat >conftest.$ac_ext <<_ACEOF
4396 cat confdefs.h >>conftest.$ac_ext
4397 cat >>conftest.$ac_ext <<_ACEOF
4398 /* end confdefs.h. */
4402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4403 $EGREP "memchr" >/dev/null 2>&1; then
4406 ac_cv_header_stdc=no
4412 if test $ac_cv_header_stdc = yes; then
4413 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4414 cat >conftest.$ac_ext <<_ACEOF
4417 cat confdefs.h >>conftest.$ac_ext
4418 cat >>conftest.$ac_ext <<_ACEOF
4419 /* end confdefs.h. */
4423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4424 $EGREP "free" >/dev/null 2>&1; then
4427 ac_cv_header_stdc=no
4433 if test $ac_cv_header_stdc = yes; then
4434 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4435 if test "$cross_compiling" = yes; then
4438 cat >conftest.$ac_ext <<_ACEOF
4441 cat confdefs.h >>conftest.$ac_ext
4442 cat >>conftest.$ac_ext <<_ACEOF
4443 /* end confdefs.h. */
4446 #if ((' ' & 0x0FF) == 0x020)
4447 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4448 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4450 # define ISLOWER(c) \
4451 (('a' <= (c) && (c) <= 'i') \
4452 || ('j' <= (c) && (c) <= 'r') \
4453 || ('s' <= (c) && (c) <= 'z'))
4454 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4457 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4462 for (i = 0; i < 256; i++)
4463 if (XOR (islower (i), ISLOWER (i))
4464 || toupper (i) != TOUPPER (i))
4469 rm -f conftest$ac_exeext
4470 if { (ac_try="$ac_link"
4472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4473 *) ac_try_echo
=$ac_try;;
4475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4476 (eval "$ac_link") 2>&5
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
4480 { (case "(($ac_try" in
4481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4482 *) ac_try_echo=$ac_try;;
4484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4485 (eval "$ac_try") 2>&5
4487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4488 (exit $ac_status); }; }; then
4491 echo "$as_me: program exited with status $ac_status" >&5
4492 echo "$as_me: failed program was:" >&5
4493 sed 's/^/| /' conftest.$ac_ext >&5
4496 ac_cv_header_stdc=no
4498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4504 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4505 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4506 if test $ac_cv_header_stdc = yes; then
4508 cat >>confdefs.h <<\_ACEOF
4509 #define STDC_HEADERS 1
4514 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4524 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4525 inttypes.h stdint.h unistd.h
4527 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
4528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4533 cat >conftest.$ac_ext <<_ACEOF
4536 cat confdefs.h >>conftest.$ac_ext
4537 cat >>conftest.$ac_ext <<_ACEOF
4538 /* end confdefs.h. */
4539 $ac_includes_default
4541 #include <$ac_header>
4543 rm -f conftest.$ac_objext
4544 if { (ac_try="$ac_compile"
4546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4547 *) ac_try_echo
=$ac_try;;
4549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4550 (eval "$ac_compile") 2>conftest.er1
4552 grep -v '^ *+' conftest.er1
>conftest.err
4554 cat conftest.err
>&5
4555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4556 (exit $ac_status); } && {
4557 test -z "$ac_c_werror_flag" ||
4558 test ! -s conftest.err
4559 } && test -s conftest.
$ac_objext; then
4560 eval "$as_ac_Header=yes"
4562 echo "$as_me: failed program was:" >&5
4563 sed 's/^/| /' conftest.
$ac_ext >&5
4565 eval "$as_ac_Header=no"
4568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4570 ac_res
=`eval echo '${'$as_ac_Header'}'`
4571 { echo "$as_me:$LINENO: result: $ac_res" >&5
4572 echo "${ECHO_T}$ac_res" >&6; }
4573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4574 cat >>confdefs.h
<<_ACEOF
4575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4583 if test "${ac_cv_header_minix_config_h+set}" = set; then
4584 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4585 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4586 if test "${ac_cv_header_minix_config_h+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4589 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4590 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4592 # Is the header compilable?
4593 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4594 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4595 cat >conftest.
$ac_ext <<_ACEOF
4598 cat confdefs.h
>>conftest.
$ac_ext
4599 cat >>conftest.
$ac_ext <<_ACEOF
4600 /* end confdefs.h. */
4601 $ac_includes_default
4602 #include <minix/config.h>
4604 rm -f conftest.
$ac_objext
4605 if { (ac_try
="$ac_compile"
4607 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4608 *) ac_try_echo=$ac_try;;
4610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4611 (eval "$ac_compile") 2>conftest.er1
4613 grep -v '^ *+' conftest.er1 >conftest.err
4615 cat conftest.err >&5
4616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4617 (exit $ac_status); } && {
4618 test -z "$ac_c_werror_flag" ||
4619 test ! -s conftest.err
4620 } && test -s conftest.$ac_objext; then
4621 ac_header_compiler=yes
4623 echo "$as_me: failed program was:" >&5
4624 sed 's/^/| /' conftest.$ac_ext >&5
4626 ac_header_compiler=no
4629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4631 echo "${ECHO_T}$ac_header_compiler" >&6; }
4633 # Is the header present?
4634 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4635 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4636 cat >conftest.$ac_ext <<_ACEOF
4639 cat confdefs.h >>conftest.$ac_ext
4640 cat >>conftest.$ac_ext <<_ACEOF
4641 /* end confdefs.h. */
4642 #include <minix/config.h>
4644 if { (ac_try="$ac_cpp conftest.$ac_ext"
4646 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4647 *) ac_try_echo
=$ac_try;;
4649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4652 grep -v '^ *+' conftest.er1
>conftest.err
4654 cat conftest.err
>&5
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); } >/dev
/null
&& {
4657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4658 test ! -s conftest.err
4660 ac_header_preproc
=yes
4662 echo "$as_me: failed program was:" >&5
4663 sed 's/^/| /' conftest.
$ac_ext >&5
4665 ac_header_preproc
=no
4668 rm -f conftest.err conftest.
$ac_ext
4669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4670 echo "${ECHO_T}$ac_header_preproc" >&6; }
4672 # So? What about this header?
4673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4675 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4676 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4677 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4678 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4679 ac_header_preproc
=yes
4682 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4683 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4684 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4685 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4686 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4687 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4688 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4689 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4690 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4691 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4692 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4693 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4697 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4698 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4699 if test "${ac_cv_header_minix_config_h+set}" = set; then
4700 echo $ECHO_N "(cached) $ECHO_C" >&6
4702 ac_cv_header_minix_config_h
=$ac_header_preproc
4704 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4705 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4708 if test $ac_cv_header_minix_config_h = yes; then
4715 if test "$MINIX" = yes; then
4717 cat >>confdefs.h
<<\_ACEOF
4718 #define _POSIX_SOURCE 1
4722 cat >>confdefs.h
<<\_ACEOF
4723 #define _POSIX_1_SOURCE 2
4727 cat >>confdefs.h
<<\_ACEOF
4743 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4744 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4745 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4746 echo $ECHO_N "(cached) $ECHO_C" >&6
4748 cat >conftest.
$ac_ext <<_ACEOF
4751 cat confdefs.h
>>conftest.
$ac_ext
4752 cat >>conftest.
$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4755 # define __EXTENSIONS__ 1
4756 $ac_includes_default
4765 rm -f conftest.
$ac_objext
4766 if { (ac_try
="$ac_compile"
4768 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_compile") 2>conftest.er1
4774 grep -v '^ *+' conftest.er1 >conftest.err
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } && {
4779 test -z "$ac_c_werror_flag" ||
4780 test ! -s conftest.err
4781 } && test -s conftest.$ac_objext; then
4782 ac_cv_safe_to_define___extensions__=yes
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4787 ac_cv_safe_to_define___extensions__=no
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4793 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4794 test $ac_cv_safe_to_define___extensions__ = yes &&
4795 cat >>confdefs.h <<\_ACEOF
4796 #define __EXTENSIONS__ 1
4799 cat >>confdefs.h <<\_ACEOF
4800 #define _POSIX_PTHREAD_SEMANTICS 1
4803 cat >>confdefs.h <<\_ACEOF
4804 #define _TANDEM_SOURCE 1
4809 ### Use -Wno-pointer-sign if the compiler supports it
4810 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4811 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4812 SAVE_CFLAGS="$CFLAGS"
4813 CFLAGS="$CFLAGS -Wno-pointer-sign"
4814 cat >conftest.$ac_ext <<_ACEOF
4817 cat confdefs.h >>conftest.$ac_ext
4818 cat >>conftest.$ac_ext <<_ACEOF
4819 /* end confdefs.h. */
4829 rm -f conftest.$ac_objext
4830 if { (ac_try="$ac_compile"
4832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4833 *) ac_try_echo
=$ac_try;;
4835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4836 (eval "$ac_compile") 2>conftest.er1
4838 grep -v '^ *+' conftest.er1
>conftest.err
4840 cat conftest.err
>&5
4841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4842 (exit $ac_status); } && {
4843 test -z "$ac_c_werror_flag" ||
4844 test ! -s conftest.err
4845 } && test -s conftest.
$ac_objext; then
4848 echo "$as_me: failed program was:" >&5
4849 sed 's/^/| /' conftest.
$ac_ext >&5
4854 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4855 if test $has_option = yes; then
4856 C_WARNINGS_SWITCH
="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4858 { echo "$as_me:$LINENO: result: $has_option" >&5
4859 echo "${ECHO_T}$has_option" >&6; }
4860 CFLAGS
="$SAVE_CFLAGS"
4864 #### Some other nice autoconf tests.
4866 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4867 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4869 if test "$LN_S" = "ln -s"; then
4870 { echo "$as_me:$LINENO: result: yes" >&5
4871 echo "${ECHO_T}yes" >&6; }
4873 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4874 echo "${ECHO_T}no, using $LN_S" >&6; }
4878 ac_cpp
='$CPP $CPPFLAGS'
4879 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4882 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4883 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4884 # On Suns, sometimes $CPP names a directory.
4885 if test -n "$CPP" && test -d "$CPP"; then
4888 if test -z "$CPP"; then
4889 if test "${ac_cv_prog_CPP+set}" = set; then
4890 echo $ECHO_N "(cached) $ECHO_C" >&6
4892 # Double quotes because CPP needs to be expanded
4893 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4896 for ac_c_preproc_warn_flag
in '' yes
4898 # Use a header file that comes with gcc, so configuring glibc
4899 # with a fresh cross-compiler works.
4900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4901 # <limits.h> exists even on freestanding compilers.
4902 # On the NeXT, cc -E runs the code through the compiler's parser,
4903 # not just through cpp. "Syntax error" is here to catch this case.
4904 cat >conftest.
$ac_ext <<_ACEOF
4907 cat confdefs.h
>>conftest.
$ac_ext
4908 cat >>conftest.
$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4911 # include <limits.h>
4913 # include <assert.h>
4917 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4919 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4925 grep -v '^ *+' conftest.er1 >conftest.err
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } >/dev/null && {
4930 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4931 test ! -s conftest.err
4935 echo "$as_me: failed program was:" >&5
4936 sed 's/^/| /' conftest.$ac_ext >&5
4938 # Broken: fails on valid input.
4942 rm -f conftest.err conftest.$ac_ext
4944 # OK, works on sane cases. Now check whether nonexistent headers
4945 # can be detected and how.
4946 cat >conftest.$ac_ext <<_ACEOF
4949 cat confdefs.h >>conftest.$ac_ext
4950 cat >>conftest.$ac_ext <<_ACEOF
4951 /* end confdefs.h. */
4952 #include <ac_nonexistent.h>
4954 if { (ac_try="$ac_cpp conftest.$ac_ext"
4956 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4957 *) ac_try_echo
=$ac_try;;
4959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4962 grep -v '^ *+' conftest.er1
>conftest.err
4964 cat conftest.err
>&5
4965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4966 (exit $ac_status); } >/dev
/null
&& {
4967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4968 test ! -s conftest.err
4970 # Broken: success on invalid input.
4973 echo "$as_me: failed program was:" >&5
4974 sed 's/^/| /' conftest.
$ac_ext >&5
4976 # Passes both tests.
4981 rm -f conftest.err conftest.
$ac_ext
4984 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4985 rm -f conftest.err conftest.
$ac_ext
4986 if $ac_preproc_ok; then
4998 { echo "$as_me:$LINENO: result: $CPP" >&5
4999 echo "${ECHO_T}$CPP" >&6; }
5001 for ac_c_preproc_warn_flag
in '' yes
5003 # Use a header file that comes with gcc, so configuring glibc
5004 # with a fresh cross-compiler works.
5005 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5006 # <limits.h> exists even on freestanding compilers.
5007 # On the NeXT, cc -E runs the code through the compiler's parser,
5008 # not just through cpp. "Syntax error" is here to catch this case.
5009 cat >conftest.
$ac_ext <<_ACEOF
5012 cat confdefs.h
>>conftest.
$ac_ext
5013 cat >>conftest.
$ac_ext <<_ACEOF
5014 /* end confdefs.h. */
5016 # include <limits.h>
5018 # include <assert.h>
5022 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5024 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5025 *) ac_try_echo=$ac_try;;
5027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5028 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5030 grep -v '^ *+' conftest.er1 >conftest.err
5032 cat conftest.err >&5
5033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5034 (exit $ac_status); } >/dev/null && {
5035 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5036 test ! -s conftest.err
5040 echo "$as_me: failed program was:" >&5
5041 sed 's/^/| /' conftest.$ac_ext >&5
5043 # Broken: fails on valid input.
5047 rm -f conftest.err conftest.$ac_ext
5049 # OK, works on sane cases. Now check whether nonexistent headers
5050 # can be detected and how.
5051 cat >conftest.$ac_ext <<_ACEOF
5054 cat confdefs.h >>conftest.$ac_ext
5055 cat >>conftest.$ac_ext <<_ACEOF
5056 /* end confdefs.h. */
5057 #include <ac_nonexistent.h>
5059 if { (ac_try="$ac_cpp conftest.$ac_ext"
5061 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5062 *) ac_try_echo
=$ac_try;;
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5067 grep -v '^ *+' conftest.er1
>conftest.err
5069 cat conftest.err
>&5
5070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5071 (exit $ac_status); } >/dev
/null
&& {
5072 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5073 test ! -s conftest.err
5075 # Broken: success on invalid input.
5078 echo "$as_me: failed program was:" >&5
5079 sed 's/^/| /' conftest.
$ac_ext >&5
5081 # Passes both tests.
5086 rm -f conftest.err conftest.
$ac_ext
5089 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5090 rm -f conftest.err conftest.
$ac_ext
5091 if $ac_preproc_ok; then
5094 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5095 See \`config.log' for more details." >&5
5096 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5097 See \`config.log' for more details." >&2;}
5098 { (exit 1); exit 1; }; }
5102 ac_cpp
='$CPP $CPPFLAGS'
5103 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5107 # Find a good install program. We prefer a C program (faster),
5108 # so one script is as good as another. But avoid the broken or
5109 # incompatible versions:
5110 # SysV /etc/install, /usr/sbin/install
5111 # SunOS /usr/etc/install
5112 # IRIX /sbin/install
5114 # AmigaOS /C/install, which installs bootblocks on floppy discs
5115 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5116 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5117 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5118 # OS/2's system install, which has a completely different semantic
5119 # ./install, which can be erroneously created by make from ./install.sh.
5120 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5121 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5122 if test -z "$INSTALL"; then
5123 if test "${ac_cv_path_install+set}" = set; then
5124 echo $ECHO_N "(cached) $ECHO_C" >&6
5126 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5130 test -z "$as_dir" && as_dir
=.
5131 # Account for people who put trailing slashes in PATH elements.
5133 .
/ | .
// |
/cC
/* | \
5134 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
5135 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
5138 # OSF1 and SCO ODT 3.0 have their own names for install.
5139 # Don't use installbsd from OSF since it installs stuff as root
5141 for ac_prog
in ginstall scoinst
install; do
5142 for ac_exec_ext
in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5144 if test $ac_prog = install &&
5145 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5146 # AIX install. It has an incompatible calling convention.
5148 elif test $ac_prog = install &&
5149 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
5150 # program-specific install script used by HP pwplus--don't use.
5153 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
5166 if test "${ac_cv_path_install+set}" = set; then
5167 INSTALL
=$ac_cv_path_install
5169 # As a last resort, use the slow shell script. Don't cache a
5170 # value for INSTALL within a source directory, because that will
5171 # break other packages using the cache if that directory is
5172 # removed, or if the value is a relative name.
5173 INSTALL
=$ac_install_sh
5176 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5177 echo "${ECHO_T}$INSTALL" >&6; }
5179 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5180 # It thinks the first close brace ends the variable substitution.
5181 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
5183 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
5185 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
5187 if test "x$RANLIB" = x
; then
5188 if test -n "$ac_tool_prefix"; then
5189 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5190 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
5191 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5192 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5193 if test "${ac_cv_prog_RANLIB+set}" = set; then
5194 echo $ECHO_N "(cached) $ECHO_C" >&6
5196 if test -n "$RANLIB"; then
5197 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
5199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5203 test -z "$as_dir" && as_dir
=.
5204 for ac_exec_ext
in '' $ac_executable_extensions; do
5205 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5206 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
5207 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 RANLIB
=$ac_cv_prog_RANLIB
5217 if test -n "$RANLIB"; then
5218 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5219 echo "${ECHO_T}$RANLIB" >&6; }
5221 { echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6; }
5227 if test -z "$ac_cv_prog_RANLIB"; then
5228 ac_ct_RANLIB
=$RANLIB
5229 # Extract the first word of "ranlib", so it can be a program name with args.
5230 set dummy ranlib
; ac_word
=$2
5231 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5232 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5233 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5234 echo $ECHO_N "(cached) $ECHO_C" >&6
5236 if test -n "$ac_ct_RANLIB"; then
5237 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5239 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5243 test -z "$as_dir" && as_dir
=.
5244 for ac_exec_ext
in '' $ac_executable_extensions; do
5245 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5246 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5247 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5256 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5257 if test -n "$ac_ct_RANLIB"; then
5258 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5259 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5261 { echo "$as_me:$LINENO: result: no" >&5
5262 echo "${ECHO_T}no" >&6; }
5265 if test "x$ac_ct_RANLIB" = x
; then
5268 case $cross_compiling:$ac_tool_warned in
5270 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5271 whose name does not start with the host triplet. If you think this
5272 configuration is useful to you, please write to autoconf@gnu.org." >&5
5273 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5274 whose name does not start with the host triplet. If you think this
5275 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5276 ac_tool_warned
=yes ;;
5278 RANLIB
=$ac_ct_RANLIB
5281 RANLIB
="$ac_cv_prog_RANLIB"
5285 # Extract the first word of "install-info", so it can be a program name with args.
5286 set dummy install-info
; ac_word
=$2
5287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5289 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5290 echo $ECHO_N "(cached) $ECHO_C" >&6
5292 case $INSTALL_INFO in
5294 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5297 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5301 test -z "$as_dir" && as_dir
=.
5302 for ac_exec_ext
in '' $ac_executable_extensions; do
5303 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5304 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5315 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5316 if test -n "$INSTALL_INFO"; then
5317 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5318 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5320 { echo "$as_me:$LINENO: result: no" >&5
5321 echo "${ECHO_T}no" >&6; }
5325 # Extract the first word of "install-info", so it can be a program name with args.
5326 set dummy install-info
; ac_word
=$2
5327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5329 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5330 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 case $INSTALL_INFO in
5334 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5338 for as_dir
in /usr
/sbin
5341 test -z "$as_dir" && as_dir
=.
5342 for ac_exec_ext
in '' $ac_executable_extensions; do
5343 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5344 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5355 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5356 if test -n "$INSTALL_INFO"; then
5357 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5358 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5360 { echo "$as_me:$LINENO: result: no" >&5
5361 echo "${ECHO_T}no" >&6; }
5365 # Extract the first word of "install-info", so it can be a program name with args.
5366 set dummy install-info
; ac_word
=$2
5367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5369 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5370 echo $ECHO_N "(cached) $ECHO_C" >&6
5372 case $INSTALL_INFO in
5374 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5377 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5381 test -z "$as_dir" && as_dir
=.
5382 for ac_exec_ext
in '' $ac_executable_extensions; do
5383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5384 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5385 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5392 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5396 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5397 if test -n "$INSTALL_INFO"; then
5398 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5399 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5401 { echo "$as_me:$LINENO: result: no" >&5
5402 echo "${ECHO_T}no" >&6; }
5406 # Extract the first word of "gzip", so it can be a program name with args.
5407 set dummy
gzip; ac_word
=$2
5408 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5409 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5410 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5411 echo $ECHO_N "(cached) $ECHO_C" >&6
5415 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5418 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5422 test -z "$as_dir" && as_dir
=.
5423 for ac_exec_ext
in '' $ac_executable_extensions; do
5424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5425 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5426 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5436 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5437 if test -n "$GZIP_PROG"; then
5438 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5439 echo "${ECHO_T}$GZIP_PROG" >&6; }
5441 { echo "$as_me:$LINENO: result: no" >&5
5442 echo "${ECHO_T}no" >&6; }
5448 ## Need makeinfo >= 4.6 (?) to build the manuals.
5449 # Extract the first word of "makeinfo", so it can be a program name with args.
5450 set dummy makeinfo
; ac_word
=$2
5451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5453 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5454 echo $ECHO_N "(cached) $ECHO_C" >&6
5458 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
5461 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5465 test -z "$as_dir" && as_dir
=.
5466 for ac_exec_ext
in '' $ac_executable_extensions; do
5467 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5468 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
5469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
5480 MAKEINFO
=$ac_cv_path_MAKEINFO
5481 if test -n "$MAKEINFO"; then
5482 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5483 echo "${ECHO_T}$MAKEINFO" >&6; }
5485 { echo "$as_me:$LINENO: result: no" >&5
5486 echo "${ECHO_T}no" >&6; }
5490 if test "$MAKEINFO" != "no" && \
5491 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
5495 if test "$MAKEINFO" = "no"; then
5496 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5497 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5498 { (exit 1); exit 1; }; }
5503 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5505 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5508 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5510 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5514 late_LDFLAGS
=$LDFLAGS
5515 if test "$GCC" = yes; then
5516 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5518 LDFLAGS
="$LDFLAGS -znocombreloc"
5521 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5522 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5523 cat >conftest.
$ac_ext <<_ACEOF
5526 rm -f conftest.
$ac_objext conftest
$ac_exeext
5527 if { (ac_try
="$ac_link"
5529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5530 *) ac_try_echo=$ac_try;;
5532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5533 (eval "$ac_link") 2>conftest.er1
5535 grep -v '^ *+' conftest.er1 >conftest.err
5537 cat conftest.err >&5
5538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5539 (exit $ac_status); } && {
5540 test -z "$ac_c_werror_flag" ||
5541 test ! -s conftest.err
5542 } && test -s conftest$ac_exeext &&
5543 $as_test_x conftest$ac_exeext; then
5544 { echo "$as_me:$LINENO: result: yes" >&5
5545 echo "${ECHO_T}yes" >&6; }
5547 echo "$as_me: failed program was:" >&5
5548 sed 's/^/| /' conftest.$ac_ext >&5
5550 LDFLAGS=$late_LDFLAGS
5551 { echo "$as_me:$LINENO: result: no" >&5
5552 echo "${ECHO_T}no" >&6; }
5555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5556 conftest$ac_exeext conftest.$ac_ext
5558 #### Extract some information from the operating system and machine files.
5560 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5561 - which libraries the lib-src programs will want, and
5562 - whether the GNU malloc routines are usable..." >&5
5563 echo "$as_me: checking the machine- and system-dependent files to find out
5564 - which libraries the lib-src programs will want, and
5565 - whether the GNU malloc routines are usable..." >&6;}
5567 ### First figure out CFLAGS (which we use for running the compiler here)
5568 ### and REAL_CFLAGS (which we use for real compilation).
5569 ### The two are the same except on a few systems, where they are made
5570 ### different to work around various lossages. For example,
5571 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5572 ### as implying static linking.
5574 ### If the CFLAGS env var is specified, we use that value
5575 ### instead of the default.
5577 ### It's not important that this name contain the PID; you can't run
5578 ### two configures in the same directory and have anything work
5580 tempcname="conftest.c"
5583 #include "'${srcdir}'/src/'${opsysfile}'"
5584 #include "'${srcdir}'/src/'${machfile}'"
5585 #ifndef LIBS_MACHINE
5586 #define LIBS_MACHINE
5591 #ifndef C_SWITCH_SYSTEM
5592 #define C_SWITCH_SYSTEM
5594 #ifndef C_SWITCH_MACHINE
5595 #define C_SWITCH_MACHINE
5597 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5598 configure___ c_switch_system=C_SWITCH_SYSTEM
5599 configure___ c_switch_machine=C_SWITCH_MACHINE
5602 #define LIB_X11_LIB -lX11
5605 #ifndef LIBX11_SYSTEM
5606 #define LIBX11_SYSTEM
5608 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5611 configure___ unexec=UNEXEC
5613 configure___ unexec=unexec.o
5616 #ifdef SYSTEM_MALLOC
5617 configure___ system_malloc=yes
5619 configure___ system_malloc=no
5622 #ifdef USE_MMAP_FOR_BUFFERS
5623 configure___ use_mmap_for_buffers=yes
5625 configure___ use_mmap_for_buffers=no
5628 #ifndef C_DEBUG_SWITCH
5629 #define C_DEBUG_SWITCH -g
5632 #ifndef C_OPTIMIZE_SWITCH
5634 #define C_OPTIMIZE_SWITCH -O2
5636 #define C_OPTIMIZE_SWITCH -O
5640 #ifndef C_WARNINGS_SWITCH
5641 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5644 #ifndef LD_SWITCH_MACHINE
5645 #define LD_SWITCH_MACHINE
5648 #ifndef LD_SWITCH_SYSTEM
5649 #define LD_SWITCH_SYSTEM
5652 #ifndef LD_SWITCH_X_SITE_AUX
5653 #define LD_SWITCH_X_SITE_AUX
5656 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5657 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5659 #ifdef THIS_IS_CONFIGURE
5661 /* Get the CFLAGS for tests in configure. */
5663 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5665 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5668 #else /* not THIS_IS_CONFIGURE */
5670 /* Get the CFLAGS for real compilation. */
5672 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5674 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5677 #endif /* not THIS_IS_CONFIGURE */
5680 # The value of CPP is a quoted variable reference, so we need to do this
5681 # to get its actual value...
5682 CPP=`eval "echo $CPP"`
5683 eval `${CPP} -Isrc ${tempcname} \
5684 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5685 if test "x$SPECIFIED_CFLAGS" = x; then
5686 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5687 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5689 REAL_CFLAGS="$CFLAGS"
5693 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5695 ### Make sure subsequent tests use flags consistent with the build flags.
5697 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5698 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5700 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5705 # Check whether --enable-largefile was given.
5706 if test "${enable_largefile+set}" = set; then
5707 enableval=$enable_largefile;
5710 if test "$enable_largefile" != no; then
5712 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5713 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5714 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5715 echo $ECHO_N "(cached) $ECHO_C" >&6
5717 ac_cv_sys_largefile_CC=no
5718 if test "$GCC" != yes; then
5721 # IRIX 6.2 and later do not support large files by default,
5722 # so use the C compiler's -n32 option if that helps.
5723 cat >conftest.$ac_ext <<_ACEOF
5726 cat confdefs.h >>conftest.$ac_ext
5727 cat >>conftest.$ac_ext <<_ACEOF
5728 /* end confdefs.h. */
5729 #include <sys/types.h>
5730 /* Check that off_t can represent 2**63 - 1 correctly.
5731 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5732 since some C++ compilers masquerading as C compilers
5733 incorrectly reject 9223372036854775807. */
5734 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5735 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5736 && LARGE_OFF_T % 2147483647 == 1)
5746 rm -f conftest.$ac_objext
5747 if { (ac_try="$ac_compile"
5749 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5750 *) ac_try_echo
=$ac_try;;
5752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5753 (eval "$ac_compile") 2>conftest.er1
5755 grep -v '^ *+' conftest.er1
>conftest.err
5757 cat conftest.err
>&5
5758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5759 (exit $ac_status); } && {
5760 test -z "$ac_c_werror_flag" ||
5761 test ! -s conftest.err
5762 } && test -s conftest.
$ac_objext; then
5765 echo "$as_me: failed program was:" >&5
5766 sed 's/^/| /' conftest.
$ac_ext >&5
5771 rm -f core conftest.err conftest.
$ac_objext
5773 rm -f conftest.
$ac_objext
5774 if { (ac_try
="$ac_compile"
5776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5777 *) ac_try_echo=$ac_try;;
5779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5780 (eval "$ac_compile") 2>conftest.er1
5782 grep -v '^ *+' conftest.er1 >conftest.err
5784 cat conftest.err >&5
5785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5786 (exit $ac_status); } && {
5787 test -z "$ac_c_werror_flag" ||
5788 test ! -s conftest.err
5789 } && test -s conftest.$ac_objext; then
5790 ac_cv_sys_largefile_CC=' -n32'; break
5792 echo "$as_me: failed program was:" >&5
5793 sed 's/^/| /' conftest.$ac_ext >&5
5798 rm -f core conftest.err conftest.$ac_objext
5802 rm -f conftest.$ac_ext
5805 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5806 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5807 if test "$ac_cv_sys_largefile_CC" != no; then
5808 CC=$CC$ac_cv_sys_largefile_CC
5811 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5812 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5813 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5814 echo $ECHO_N "(cached) $ECHO_C" >&6
5817 cat >conftest.$ac_ext <<_ACEOF
5820 cat confdefs.h >>conftest.$ac_ext
5821 cat >>conftest.$ac_ext <<_ACEOF
5822 /* end confdefs.h. */
5823 #include <sys/types.h>
5824 /* Check that off_t can represent 2**63 - 1 correctly.
5825 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5826 since some C++ compilers masquerading as C compilers
5827 incorrectly reject 9223372036854775807. */
5828 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5829 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5830 && LARGE_OFF_T % 2147483647 == 1)
5840 rm -f conftest.$ac_objext
5841 if { (ac_try="$ac_compile"
5843 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5844 *) ac_try_echo
=$ac_try;;
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847 (eval "$ac_compile") 2>conftest.er1
5849 grep -v '^ *+' conftest.er1
>conftest.err
5851 cat conftest.err
>&5
5852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853 (exit $ac_status); } && {
5854 test -z "$ac_c_werror_flag" ||
5855 test ! -s conftest.err
5856 } && test -s conftest.
$ac_objext; then
5857 ac_cv_sys_file_offset_bits
=no
; break
5859 echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.
$ac_ext >&5
5865 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5866 cat >conftest.
$ac_ext <<_ACEOF
5869 cat confdefs.h
>>conftest.
$ac_ext
5870 cat >>conftest.
$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 #define _FILE_OFFSET_BITS 64
5873 #include <sys/types.h>
5874 /* Check that off_t can represent 2**63 - 1 correctly.
5875 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5876 since some C++ compilers masquerading as C compilers
5877 incorrectly reject 9223372036854775807. */
5878 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5879 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5880 && LARGE_OFF_T % 2147483647 == 1)
5890 rm -f conftest.
$ac_objext
5891 if { (ac_try
="$ac_compile"
5893 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5894 *) ac_try_echo=$ac_try;;
5896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5897 (eval "$ac_compile") 2>conftest.er1
5899 grep -v '^ *+' conftest.er1 >conftest.err
5901 cat conftest.err >&5
5902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5903 (exit $ac_status); } && {
5904 test -z "$ac_c_werror_flag" ||
5905 test ! -s conftest.err
5906 } && test -s conftest.$ac_objext; then
5907 ac_cv_sys_file_offset_bits=64; break
5909 echo "$as_me: failed program was:" >&5
5910 sed 's/^/| /' conftest.$ac_ext >&5
5915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5916 ac_cv_sys_file_offset_bits=unknown
5920 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5921 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5922 case $ac_cv_sys_file_offset_bits in #(
5925 cat >>confdefs.h <<_ACEOF
5926 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5931 if test $ac_cv_sys_file_offset_bits = unknown; then
5932 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5933 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5934 if test "${ac_cv_sys_large_files+set}" = set; then
5935 echo $ECHO_N "(cached) $ECHO_C" >&6
5938 cat >conftest.$ac_ext <<_ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h. */
5944 #include <sys/types.h>
5945 /* Check that off_t can represent 2**63 - 1 correctly.
5946 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5947 since some C++ compilers masquerading as C compilers
5948 incorrectly reject 9223372036854775807. */
5949 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5950 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5951 && LARGE_OFF_T % 2147483647 == 1)
5961 rm -f conftest.$ac_objext
5962 if { (ac_try="$ac_compile"
5964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5965 *) ac_try_echo
=$ac_try;;
5967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5968 (eval "$ac_compile") 2>conftest.er1
5970 grep -v '^ *+' conftest.er1
>conftest.err
5972 cat conftest.err
>&5
5973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5974 (exit $ac_status); } && {
5975 test -z "$ac_c_werror_flag" ||
5976 test ! -s conftest.err
5977 } && test -s conftest.
$ac_objext; then
5978 ac_cv_sys_large_files
=no
; break
5980 echo "$as_me: failed program was:" >&5
5981 sed 's/^/| /' conftest.
$ac_ext >&5
5986 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5987 cat >conftest.
$ac_ext <<_ACEOF
5990 cat confdefs.h
>>conftest.
$ac_ext
5991 cat >>conftest.
$ac_ext <<_ACEOF
5992 /* end confdefs.h. */
5993 #define _LARGE_FILES 1
5994 #include <sys/types.h>
5995 /* Check that off_t can represent 2**63 - 1 correctly.
5996 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5997 since some C++ compilers masquerading as C compilers
5998 incorrectly reject 9223372036854775807. */
5999 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
6000 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
6001 && LARGE_OFF_T % 2147483647 == 1)
6011 rm -f conftest.
$ac_objext
6012 if { (ac_try
="$ac_compile"
6014 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6015 *) ac_try_echo=$ac_try;;
6017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6018 (eval "$ac_compile") 2>conftest.er1
6020 grep -v '^ *+' conftest.er1 >conftest.err
6022 cat conftest.err >&5
6023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6024 (exit $ac_status); } && {
6025 test -z "$ac_c_werror_flag" ||
6026 test ! -s conftest.err
6027 } && test -s conftest.$ac_objext; then
6028 ac_cv_sys_large_files=1; break
6030 echo "$as_me: failed program was:" >&5
6031 sed 's/^/| /' conftest.$ac_ext >&5
6036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6037 ac_cv_sys_large_files=unknown
6041 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6042 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6043 case $ac_cv_sys_large_files in #(
6046 cat >>confdefs.h <<_ACEOF
6047 #define _LARGE_FILES $ac_cv_sys_large_files
6057 ### The standard library on x86-64 and s390x GNU/Linux distributions can
6058 ### be located in either /usr/lib64 or /usr/lib.
6059 case "${canonical}" in
6060 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
6061 if test -d /usr/lib64; then
6063 cat >>confdefs.h <<\_ACEOF
6064 #define HAVE_LIB64_DIR 1
6073 if test "${with_sound}" != "no"; then
6074 # Sound support for GNU/Linux and the free BSDs.
6078 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6080 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6081 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6082 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6083 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6084 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6085 echo $ECHO_N "(cached) $ECHO_C" >&6
6087 ac_res=`eval echo '${'$as_ac_Header'}'`
6088 { echo "$as_me:$LINENO: result: $ac_res" >&5
6089 echo "${ECHO_T}$ac_res" >&6; }
6091 # Is the header compilable?
6092 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6093 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6094 cat >conftest.$ac_ext <<_ACEOF
6097 cat confdefs.h >>conftest.$ac_ext
6098 cat >>conftest.$ac_ext <<_ACEOF
6099 /* end confdefs.h. */
6100 $ac_includes_default
6101 #include <$ac_header>
6103 rm -f conftest.$ac_objext
6104 if { (ac_try="$ac_compile"
6106 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6107 *) ac_try_echo
=$ac_try;;
6109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6110 (eval "$ac_compile") 2>conftest.er1
6112 grep -v '^ *+' conftest.er1
>conftest.err
6114 cat conftest.err
>&5
6115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6116 (exit $ac_status); } && {
6117 test -z "$ac_c_werror_flag" ||
6118 test ! -s conftest.err
6119 } && test -s conftest.
$ac_objext; then
6120 ac_header_compiler
=yes
6122 echo "$as_me: failed program was:" >&5
6123 sed 's/^/| /' conftest.
$ac_ext >&5
6125 ac_header_compiler
=no
6128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6130 echo "${ECHO_T}$ac_header_compiler" >&6; }
6132 # Is the header present?
6133 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6135 cat >conftest.
$ac_ext <<_ACEOF
6138 cat confdefs.h
>>conftest.
$ac_ext
6139 cat >>conftest.
$ac_ext <<_ACEOF
6140 /* end confdefs.h. */
6141 #include <$ac_header>
6143 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6145 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6146 *) ac_try_echo=$ac_try;;
6148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6149 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6151 grep -v '^ *+' conftest.er1 >conftest.err
6153 cat conftest.err >&5
6154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6155 (exit $ac_status); } >/dev/null && {
6156 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6157 test ! -s conftest.err
6159 ac_header_preproc=yes
6161 echo "$as_me: failed program was:" >&5
6162 sed 's/^/| /' conftest.$ac_ext >&5
6164 ac_header_preproc=no
6167 rm -f conftest.err conftest.$ac_ext
6168 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6169 echo "${ECHO_T}$ac_header_preproc" >&6; }
6171 # So? What about this header?
6172 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6174 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6175 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6177 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6178 ac_header_preproc=yes
6181 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6182 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6184 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6186 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6187 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6188 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6189 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6190 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6191 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6192 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6196 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6198 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6199 echo $ECHO_N "(cached) $ECHO_C" >&6
6201 eval "$as_ac_Header=\$ac_header_preproc"
6203 ac_res=`eval echo '${'$as_ac_Header'}'`
6204 { echo "$as_me:$LINENO: result: $ac_res" >&5
6205 echo "${ECHO_T}$ac_res" >&6; }
6208 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6209 cat >>confdefs.h <<_ACEOF
6210 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6217 # Emulation library used on NetBSD.
6218 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6219 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6220 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6221 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 ac_check_lib_save_LIBS=$LIBS
6224 LIBS="-lossaudio $LIBS"
6225 cat >conftest.$ac_ext <<_ACEOF
6228 cat confdefs.h >>conftest.$ac_ext
6229 cat >>conftest.$ac_ext <<_ACEOF
6230 /* end confdefs.h. */
6232 /* Override any GCC internal prototype to avoid an error.
6233 Use char because int might match the return type of a GCC
6234 builtin and then its argument prototype would still apply. */
6242 return _oss_ioctl ();
6247 rm -f conftest.$ac_objext conftest$ac_exeext
6248 if { (ac_try="$ac_link"
6250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6251 *) ac_try_echo
=$ac_try;;
6253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6254 (eval "$ac_link") 2>conftest.er1
6256 grep -v '^ *+' conftest.er1
>conftest.err
6258 cat conftest.err
>&5
6259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6260 (exit $ac_status); } && {
6261 test -z "$ac_c_werror_flag" ||
6262 test ! -s conftest.err
6263 } && test -s conftest
$ac_exeext &&
6264 $as_test_x conftest
$ac_exeext; then
6265 ac_cv_lib_ossaudio__oss_ioctl
=yes
6267 echo "$as_me: failed program was:" >&5
6268 sed 's/^/| /' conftest.
$ac_ext >&5
6270 ac_cv_lib_ossaudio__oss_ioctl
=no
6273 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6274 conftest
$ac_exeext conftest.
$ac_ext
6275 LIBS
=$ac_check_lib_save_LIBS
6277 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6278 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6279 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6288 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6292 # Extract the first word of "pkg-config", so it can be a program name with args.
6293 set dummy pkg-config
; ac_word
=$2
6294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6296 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6297 echo $ECHO_N "(cached) $ECHO_C" >&6
6301 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6308 test -z "$as_dir" && as_dir
=.
6309 for ac_exec_ext
in '' $ac_executable_extensions; do
6310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6311 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6319 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6323 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6324 if test -n "$PKG_CONFIG"; then
6325 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6326 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6328 { echo "$as_me:$LINENO: result: no" >&5
6329 echo "${ECHO_T}no" >&6; }
6334 if test "$PKG_CONFIG" = "no" ; then
6337 PKG_CONFIG_MIN_VERSION
=0.9.0
6338 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6339 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6340 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6342 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6343 { echo "$as_me:$LINENO: result: yes" >&5
6344 echo "${ECHO_T}yes" >&6; }
6347 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6348 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6349 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6350 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6351 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6353 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6354 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6355 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6356 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6357 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6359 { echo "$as_me:$LINENO: result: no" >&5
6360 echo "${ECHO_T}no" >&6; }
6363 ## If we have a custom action on failure, don't print errors, but
6364 ## do set a variable so people can do so.
6365 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6372 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6373 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6377 if test $succeeded = yes; then
6383 if test $HAVE_ALSA = yes; then
6384 SAVE_CFLAGS
="$CFLAGS"
6385 SAVE_LDFLAGS
="$LDFLAGS"
6386 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6387 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6388 cat >conftest.
$ac_ext <<_ACEOF
6391 cat confdefs.h
>>conftest.
$ac_ext
6392 cat >>conftest.
$ac_ext <<_ACEOF
6393 /* end confdefs.h. */
6394 #include <asoundlib.h>
6398 snd_lib_error_set_handler (0);
6403 rm -f conftest.
$ac_objext
6404 if { (ac_try
="$ac_compile"
6406 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6407 *) ac_try_echo=$ac_try;;
6409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6410 (eval "$ac_compile") 2>conftest.er1
6412 grep -v '^ *+' conftest.er1 >conftest.err
6414 cat conftest.err >&5
6415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6416 (exit $ac_status); } && {
6417 test -z "$ac_c_werror_flag" ||
6418 test ! -s conftest.err
6419 } && test -s conftest.$ac_objext; then
6420 emacs_alsa_normal=yes
6422 echo "$as_me: failed program was:" >&5
6423 sed 's/^/| /' conftest.$ac_ext >&5
6425 emacs_alsa_normal=no
6428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6429 if test "$emacs_alsa_normal" != yes; then
6430 cat >conftest.$ac_ext <<_ACEOF
6433 cat confdefs.h >>conftest.$ac_ext
6434 cat >>conftest.$ac_ext <<_ACEOF
6435 /* end confdefs.h. */
6436 #include <alsa/asoundlib.h>
6440 snd_lib_error_set_handler (0);
6445 rm -f conftest.$ac_objext
6446 if { (ac_try="$ac_compile"
6448 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6449 *) ac_try_echo
=$ac_try;;
6451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6452 (eval "$ac_compile") 2>conftest.er1
6454 grep -v '^ *+' conftest.er1
>conftest.err
6456 cat conftest.err
>&5
6457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6458 (exit $ac_status); } && {
6459 test -z "$ac_c_werror_flag" ||
6460 test ! -s conftest.err
6461 } && test -s conftest.
$ac_objext; then
6462 emacs_alsa_subdir
=yes
6464 echo "$as_me: failed program was:" >&5
6465 sed 's/^/| /' conftest.
$ac_ext >&5
6467 emacs_alsa_subdir
=no
6470 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6471 if test "$emacs_alsa_subdir" != yes; then
6472 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6473 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6474 { (exit 1); exit 1; }; }
6476 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6479 CFLAGS
="$SAVE_CFLAGS"
6480 LDFLAGS
="$SAVE_LDFLAGS"
6481 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6482 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6484 cat >>confdefs.h
<<\_ACEOF
6517 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6518 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6519 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6520 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6523 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6524 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6527 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6528 echo $ECHO_N "(cached) $ECHO_C" >&6
6530 ac_res
=`eval echo '${'$as_ac_Header'}'`
6531 { echo "$as_me:$LINENO: result: $ac_res" >&5
6532 echo "${ECHO_T}$ac_res" >&6; }
6534 # Is the header compilable?
6535 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6536 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6537 cat >conftest.
$ac_ext <<_ACEOF
6540 cat confdefs.h
>>conftest.
$ac_ext
6541 cat >>conftest.
$ac_ext <<_ACEOF
6542 /* end confdefs.h. */
6543 $ac_includes_default
6544 #include <$ac_header>
6546 rm -f conftest.
$ac_objext
6547 if { (ac_try
="$ac_compile"
6549 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6550 *) ac_try_echo=$ac_try;;
6552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6553 (eval "$ac_compile") 2>conftest.er1
6555 grep -v '^ *+' conftest.er1 >conftest.err
6557 cat conftest.err >&5
6558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6559 (exit $ac_status); } && {
6560 test -z "$ac_c_werror_flag" ||
6561 test ! -s conftest.err
6562 } && test -s conftest.$ac_objext; then
6563 ac_header_compiler=yes
6565 echo "$as_me: failed program was:" >&5
6566 sed 's/^/| /' conftest.$ac_ext >&5
6568 ac_header_compiler=no
6571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6572 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6573 echo "${ECHO_T}$ac_header_compiler" >&6; }
6575 # Is the header present?
6576 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6577 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6578 cat >conftest.$ac_ext <<_ACEOF
6581 cat confdefs.h >>conftest.$ac_ext
6582 cat >>conftest.$ac_ext <<_ACEOF
6583 /* end confdefs.h. */
6584 #include <$ac_header>
6586 if { (ac_try="$ac_cpp conftest.$ac_ext"
6588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6589 *) ac_try_echo
=$ac_try;;
6591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6592 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6594 grep -v '^ *+' conftest.er1
>conftest.err
6596 cat conftest.err
>&5
6597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6598 (exit $ac_status); } >/dev
/null
&& {
6599 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6600 test ! -s conftest.err
6602 ac_header_preproc
=yes
6604 echo "$as_me: failed program was:" >&5
6605 sed 's/^/| /' conftest.
$ac_ext >&5
6607 ac_header_preproc
=no
6610 rm -f conftest.err conftest.
$ac_ext
6611 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6612 echo "${ECHO_T}$ac_header_preproc" >&6; }
6614 # So? What about this header?
6615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6621 ac_header_preproc
=yes
6624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6639 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6640 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6641 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6642 echo $ECHO_N "(cached) $ECHO_C" >&6
6644 eval "$as_ac_Header=\$ac_header_preproc"
6646 ac_res
=`eval echo '${'$as_ac_Header'}'`
6647 { echo "$as_me:$LINENO: result: $ac_res" >&5
6648 echo "${ECHO_T}$ac_res" >&6; }
6651 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6652 cat >>confdefs.h
<<_ACEOF
6653 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6661 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6662 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6663 cat >conftest.
$ac_ext <<_ACEOF
6666 cat confdefs.h
>>conftest.
$ac_ext
6667 cat >>conftest.
$ac_ext <<_ACEOF
6668 /* end confdefs.h. */
6669 #include <sys/personality.h>
6673 personality (PER_LINUX32)
6678 rm -f conftest.
$ac_objext
6679 if { (ac_try
="$ac_compile"
6681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6682 *) ac_try_echo=$ac_try;;
6684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685 (eval "$ac_compile") 2>conftest.er1
6687 grep -v '^ *+' conftest.er1 >conftest.err
6689 cat conftest.err >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } && {
6692 test -z "$ac_c_werror_flag" ||
6693 test ! -s conftest.err
6694 } && test -s conftest.$ac_objext; then
6695 emacs_cv_personality_linux32=yes
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6700 emacs_cv_personality_linux32=no
6703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6705 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6707 if test $emacs_cv_personality_linux32 = yes; then
6709 cat >>confdefs.h <<\_ACEOF
6710 #define HAVE_PERSONALITY_LINUX32 1
6716 for ac_header in term.h
6718 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6719 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6720 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6722 echo $ECHO_N "(cached) $ECHO_C" >&6
6724 cat >conftest.$ac_ext <<_ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6730 #include <$ac_header>
6732 if { (ac_try="$ac_cpp conftest.$ac_ext"
6734 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6735 *) ac_try_echo
=$ac_try;;
6737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6740 grep -v '^ *+' conftest.er1
>conftest.err
6742 cat conftest.err
>&5
6743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6744 (exit $ac_status); } >/dev
/null
&& {
6745 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6746 test ! -s conftest.err
6748 eval "$as_ac_Header=yes"
6750 echo "$as_me: failed program was:" >&5
6751 sed 's/^/| /' conftest.
$ac_ext >&5
6753 eval "$as_ac_Header=no"
6756 rm -f conftest.err conftest.
$ac_ext
6758 ac_res
=`eval echo '${'$as_ac_Header'}'`
6759 { echo "$as_me:$LINENO: result: $ac_res" >&5
6760 echo "${ECHO_T}$ac_res" >&6; }
6761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6762 cat >>confdefs.h
<<_ACEOF
6763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6770 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6771 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6772 if test "${ac_cv_header_stdc+set}" = set; then
6773 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 cat >conftest.
$ac_ext <<_ACEOF
6778 cat confdefs.h
>>conftest.
$ac_ext
6779 cat >>conftest.
$ac_ext <<_ACEOF
6780 /* end confdefs.h. */
6794 rm -f conftest.
$ac_objext
6795 if { (ac_try
="$ac_compile"
6797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6798 *) ac_try_echo=$ac_try;;
6800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6801 (eval "$ac_compile") 2>conftest.er1
6803 grep -v '^ *+' conftest.er1 >conftest.err
6805 cat conftest.err >&5
6806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6807 (exit $ac_status); } && {
6808 test -z "$ac_c_werror_flag" ||
6809 test ! -s conftest.err
6810 } && test -s conftest.$ac_objext; then
6811 ac_cv_header_stdc=yes
6813 echo "$as_me: failed program was:" >&5
6814 sed 's/^/| /' conftest.$ac_ext >&5
6816 ac_cv_header_stdc=no
6819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 if test $ac_cv_header_stdc = yes; then
6822 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6823 cat >conftest.$ac_ext <<_ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6833 $EGREP "memchr" >/dev/null 2>&1; then
6836 ac_cv_header_stdc=no
6842 if test $ac_cv_header_stdc = yes; then
6843 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6844 cat >conftest.$ac_ext <<_ACEOF
6847 cat confdefs.h >>conftest.$ac_ext
6848 cat >>conftest.$ac_ext <<_ACEOF
6849 /* end confdefs.h. */
6853 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6854 $EGREP "free" >/dev/null 2>&1; then
6857 ac_cv_header_stdc=no
6863 if test $ac_cv_header_stdc = yes; then
6864 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6865 if test "$cross_compiling" = yes; then
6868 cat >conftest.$ac_ext <<_ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6876 #if ((' ' & 0x0FF) == 0x020)
6877 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6878 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6880 # define ISLOWER(c) \
6881 (('a' <= (c) && (c) <= 'i') \
6882 || ('j' <= (c) && (c) <= 'r') \
6883 || ('s' <= (c) && (c) <= 'z'))
6884 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6887 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6892 for (i = 0; i < 256; i++)
6893 if (XOR (islower (i), ISLOWER (i))
6894 || toupper (i) != TOUPPER (i))
6899 rm -f conftest$ac_exeext
6900 if { (ac_try="$ac_link"
6902 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6903 *) ac_try_echo
=$ac_try;;
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906 (eval "$ac_link") 2>&5
6908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6909 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6910 { (case "(($ac_try" in
6911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6912 *) ac_try_echo=$ac_try;;
6914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6915 (eval "$ac_try") 2>&5
6917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6918 (exit $ac_status); }; }; then
6921 echo "$as_me: program exited with status $ac_status" >&5
6922 echo "$as_me: failed program was:" >&5
6923 sed 's/^/| /' conftest.$ac_ext >&5
6926 ac_cv_header_stdc=no
6928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6934 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6935 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6936 if test $ac_cv_header_stdc = yes; then
6938 cat >>confdefs.h <<\_ACEOF
6939 #define STDC_HEADERS 1
6944 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6945 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6946 if test "${ac_cv_header_time+set}" = set; then
6947 echo $ECHO_N "(cached) $ECHO_C" >&6
6949 cat >conftest.$ac_ext <<_ACEOF
6952 cat confdefs.h >>conftest.$ac_ext
6953 cat >>conftest.$ac_ext <<_ACEOF
6954 /* end confdefs.h. */
6955 #include <sys/types.h>
6956 #include <sys/time.h>
6962 if ((struct tm *) 0)
6968 rm -f conftest.$ac_objext
6969 if { (ac_try="$ac_compile"
6971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6972 *) ac_try_echo
=$ac_try;;
6974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6975 (eval "$ac_compile") 2>conftest.er1
6977 grep -v '^ *+' conftest.er1
>conftest.err
6979 cat conftest.err
>&5
6980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6981 (exit $ac_status); } && {
6982 test -z "$ac_c_werror_flag" ||
6983 test ! -s conftest.err
6984 } && test -s conftest.
$ac_objext; then
6985 ac_cv_header_time
=yes
6987 echo "$as_me: failed program was:" >&5
6988 sed 's/^/| /' conftest.
$ac_ext >&5
6990 ac_cv_header_time
=no
6993 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6995 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6996 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6997 if test $ac_cv_header_time = yes; then
6999 cat >>confdefs.h
<<\_ACEOF
7000 #define TIME_WITH_SYS_TIME 1
7005 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7006 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7007 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7010 cat >conftest.
$ac_ext <<_ACEOF
7013 cat confdefs.h
>>conftest.
$ac_ext
7014 cat >>conftest.
$ac_ext <<_ACEOF
7015 /* end confdefs.h. */
7016 $ac_includes_default
7028 rm -f conftest.
$ac_objext
7029 if { (ac_try
="$ac_compile"
7031 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7032 *) ac_try_echo=$ac_try;;
7034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7035 (eval "$ac_compile") 2>conftest.er1
7037 grep -v '^ *+' conftest.er1 >conftest.err
7039 cat conftest.err >&5
7040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7041 (exit $ac_status); } && {
7042 test -z "$ac_c_werror_flag" ||
7043 test ! -s conftest.err
7044 } && test -s conftest.$ac_objext; then
7045 ac_cv_have_decl_sys_siglist=yes
7047 echo "$as_me: failed program was:" >&5
7048 sed 's/^/| /' conftest.$ac_ext >&5
7050 ac_cv_have_decl_sys_siglist=no
7053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7055 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7056 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7057 if test $ac_cv_have_decl_sys_siglist = yes; then
7059 cat >>confdefs.h <<_ACEOF
7060 #define HAVE_DECL_SYS_SIGLIST 1
7065 cat >>confdefs.h <<_ACEOF
7066 #define HAVE_DECL_SYS_SIGLIST 0
7073 if test $ac_cv_have_decl_sys_siglist != yes; then
7074 # For Tru64, at least:
7075 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7076 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7077 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7078 echo $ECHO_N "(cached) $ECHO_C" >&6
7080 cat >conftest.$ac_ext <<_ACEOF
7083 cat confdefs.h >>conftest.$ac_ext
7084 cat >>conftest.$ac_ext <<_ACEOF
7085 /* end confdefs.h. */
7086 $ac_includes_default
7090 #ifndef __sys_siglist
7091 (void) __sys_siglist;
7098 rm -f conftest.$ac_objext
7099 if { (ac_try="$ac_compile"
7101 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7102 *) ac_try_echo
=$ac_try;;
7104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7105 (eval "$ac_compile") 2>conftest.er1
7107 grep -v '^ *+' conftest.er1
>conftest.err
7109 cat conftest.err
>&5
7110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7111 (exit $ac_status); } && {
7112 test -z "$ac_c_werror_flag" ||
7113 test ! -s conftest.err
7114 } && test -s conftest.
$ac_objext; then
7115 ac_cv_have_decl___sys_siglist
=yes
7117 echo "$as_me: failed program was:" >&5
7118 sed 's/^/| /' conftest.
$ac_ext >&5
7120 ac_cv_have_decl___sys_siglist
=no
7123 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7125 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7126 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7127 if test $ac_cv_have_decl___sys_siglist = yes; then
7129 cat >>confdefs.h
<<_ACEOF
7130 #define HAVE_DECL___SYS_SIGLIST 1
7135 cat >>confdefs.h
<<_ACEOF
7136 #define HAVE_DECL___SYS_SIGLIST 0
7143 if test $ac_cv_have_decl___sys_siglist = yes; then
7145 cat >>confdefs.h
<<\_ACEOF
7146 #define sys_siglist __sys_siglist
7151 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7152 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7153 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7154 echo $ECHO_N "(cached) $ECHO_C" >&6
7156 cat >conftest.
$ac_ext <<_ACEOF
7159 cat confdefs.h
>>conftest.
$ac_ext
7160 cat >>conftest.
$ac_ext <<_ACEOF
7161 /* end confdefs.h. */
7162 #include <sys/types.h>
7163 #include <sys/wait.h>
7165 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7168 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7176 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7181 rm -f conftest.
$ac_objext
7182 if { (ac_try
="$ac_compile"
7184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7185 *) ac_try_echo=$ac_try;;
7187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7188 (eval "$ac_compile") 2>conftest.er1
7190 grep -v '^ *+' conftest.er1 >conftest.err
7192 cat conftest.err >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } && {
7195 test -z "$ac_c_werror_flag" ||
7196 test ! -s conftest.err
7197 } && test -s conftest.$ac_objext; then
7198 ac_cv_header_sys_wait_h=yes
7200 echo "$as_me: failed program was:" >&5
7201 sed 's/^/| /' conftest.$ac_ext >&5
7203 ac_cv_header_sys_wait_h=no
7206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7208 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7209 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7210 if test $ac_cv_header_sys_wait_h = yes; then
7212 cat >>confdefs.h <<\_ACEOF
7213 #define HAVE_SYS_WAIT_H 1
7219 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7220 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7221 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7222 echo $ECHO_N "(cached) $ECHO_C" >&6
7224 cat >conftest.$ac_ext <<_ACEOF
7227 cat confdefs.h >>conftest.$ac_ext
7228 cat >>conftest.$ac_ext <<_ACEOF
7229 /* end confdefs.h. */
7230 #ifdef TIME_WITH_SYS_TIME
7231 #include <sys/time.h>
7234 #ifdef HAVE_SYS_TIME_H
7235 #include <sys/time.h>
7246 static struct utimbuf x; x.actime = x.modtime;
7251 rm -f conftest.$ac_objext
7252 if { (ac_try="$ac_compile"
7254 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7255 *) ac_try_echo
=$ac_try;;
7257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7258 (eval "$ac_compile") 2>conftest.er1
7260 grep -v '^ *+' conftest.er1
>conftest.err
7262 cat conftest.err
>&5
7263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7264 (exit $ac_status); } && {
7265 test -z "$ac_c_werror_flag" ||
7266 test ! -s conftest.err
7267 } && test -s conftest.
$ac_objext; then
7268 emacs_cv_struct_utimbuf
=yes
7270 echo "$as_me: failed program was:" >&5
7271 sed 's/^/| /' conftest.
$ac_ext >&5
7273 emacs_cv_struct_utimbuf
=no
7276 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7278 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7279 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7280 if test $emacs_cv_struct_utimbuf = yes; then
7282 cat >>confdefs.h
<<\_ACEOF
7283 #define HAVE_STRUCT_UTIMBUF 1
7288 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7289 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7290 if test "${ac_cv_type_signal+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7293 cat >conftest.
$ac_ext <<_ACEOF
7296 cat confdefs.h
>>conftest.
$ac_ext
7297 cat >>conftest.
$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 #include <sys/types.h>
7305 return *(signal (0, 0)) (0) == 1;
7310 rm -f conftest.
$ac_objext
7311 if { (ac_try
="$ac_compile"
7313 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7314 *) ac_try_echo=$ac_try;;
7316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7317 (eval "$ac_compile") 2>conftest.er1
7319 grep -v '^ *+' conftest.er1 >conftest.err
7321 cat conftest.err >&5
7322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7323 (exit $ac_status); } && {
7324 test -z "$ac_c_werror_flag" ||
7325 test ! -s conftest.err
7326 } && test -s conftest.$ac_objext; then
7327 ac_cv_type_signal=int
7329 echo "$as_me: failed program was:" >&5
7330 sed 's/^/| /' conftest.$ac_ext >&5
7332 ac_cv_type_signal=void
7335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7338 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7340 cat >>confdefs.h <<_ACEOF
7341 #define RETSIGTYPE $ac_cv_type_signal
7346 { echo "$as_me:$LINENO: checking for speed_t" >&5
7347 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7348 if test "${emacs_cv_speed_t+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7351 cat >conftest.$ac_ext <<_ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7357 #include <termios.h>
7366 rm -f conftest.$ac_objext
7367 if { (ac_try="$ac_compile"
7369 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7370 *) ac_try_echo
=$ac_try;;
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_compile") 2>conftest.er1
7375 grep -v '^ *+' conftest.er1
>conftest.err
7377 cat conftest.err
>&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && {
7380 test -z "$ac_c_werror_flag" ||
7381 test ! -s conftest.err
7382 } && test -s conftest.
$ac_objext; then
7383 emacs_cv_speed_t
=yes
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.
$ac_ext >&5
7391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7393 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7394 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7395 if test $emacs_cv_speed_t = yes; then
7397 cat >>confdefs.h
<<\_ACEOF
7398 #define HAVE_SPEED_T 1
7403 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7404 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7405 if test "${emacs_cv_struct_timeval+set}" = set; then
7406 echo $ECHO_N "(cached) $ECHO_C" >&6
7408 cat >conftest.
$ac_ext <<_ACEOF
7411 cat confdefs.h
>>conftest.
$ac_ext
7412 cat >>conftest.
$ac_ext <<_ACEOF
7413 /* end confdefs.h. */
7414 #ifdef TIME_WITH_SYS_TIME
7415 #include <sys/time.h>
7418 #ifdef HAVE_SYS_TIME_H
7419 #include <sys/time.h>
7427 static struct timeval x; x.tv_sec = x.tv_usec;
7432 rm -f conftest.
$ac_objext
7433 if { (ac_try
="$ac_compile"
7435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7436 *) ac_try_echo=$ac_try;;
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439 (eval "$ac_compile") 2>conftest.er1
7441 grep -v '^ *+' conftest.er1 >conftest.err
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && {
7446 test -z "$ac_c_werror_flag" ||
7447 test ! -s conftest.err
7448 } && test -s conftest.$ac_objext; then
7449 emacs_cv_struct_timeval=yes
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7454 emacs_cv_struct_timeval=no
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7460 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7461 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7462 if test $emacs_cv_struct_timeval = yes; then
7464 cat >>confdefs.h <<\_ACEOF
7465 #define HAVE_TIMEVAL 1
7470 { echo "$as_me:$LINENO: checking for struct exception" >&5
7471 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7472 if test "${emacs_cv_struct_exception+set}" = set; then
7473 echo $ECHO_N "(cached) $ECHO_C" >&6
7475 cat >conftest.$ac_ext <<_ACEOF
7478 cat confdefs.h >>conftest.$ac_ext
7479 cat >>conftest.$ac_ext <<_ACEOF
7480 /* end confdefs.h. */
7485 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7490 rm -f conftest.$ac_objext
7491 if { (ac_try="$ac_compile"
7493 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7494 *) ac_try_echo
=$ac_try;;
7496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7497 (eval "$ac_compile") 2>conftest.er1
7499 grep -v '^ *+' conftest.er1
>conftest.err
7501 cat conftest.err
>&5
7502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7503 (exit $ac_status); } && {
7504 test -z "$ac_c_werror_flag" ||
7505 test ! -s conftest.err
7506 } && test -s conftest.
$ac_objext; then
7507 emacs_cv_struct_exception
=yes
7509 echo "$as_me: failed program was:" >&5
7510 sed 's/^/| /' conftest.
$ac_ext >&5
7512 emacs_cv_struct_exception
=no
7515 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7517 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7518 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7519 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7520 if test $emacs_cv_struct_exception != yes; then
7522 cat >>confdefs.h
<<\_ACEOF
7523 #define NO_MATHERR 1
7529 for ac_header
in sys
/socket.h
7531 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7532 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7535 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7536 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 ac_res
=`eval echo '${'$as_ac_Header'}'`
7539 { echo "$as_me:$LINENO: result: $ac_res" >&5
7540 echo "${ECHO_T}$ac_res" >&6; }
7542 # Is the header compilable?
7543 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7544 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7545 cat >conftest.
$ac_ext <<_ACEOF
7548 cat confdefs.h
>>conftest.
$ac_ext
7549 cat >>conftest.
$ac_ext <<_ACEOF
7550 /* end confdefs.h. */
7551 $ac_includes_default
7552 #include <$ac_header>
7554 rm -f conftest.
$ac_objext
7555 if { (ac_try
="$ac_compile"
7557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7558 *) ac_try_echo=$ac_try;;
7560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7561 (eval "$ac_compile") 2>conftest.er1
7563 grep -v '^ *+' conftest.er1 >conftest.err
7565 cat conftest.err >&5
7566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7567 (exit $ac_status); } && {
7568 test -z "$ac_c_werror_flag" ||
7569 test ! -s conftest.err
7570 } && test -s conftest.$ac_objext; then
7571 ac_header_compiler=yes
7573 echo "$as_me: failed program was:" >&5
7574 sed 's/^/| /' conftest.$ac_ext >&5
7576 ac_header_compiler=no
7579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7581 echo "${ECHO_T}$ac_header_compiler" >&6; }
7583 # Is the header present?
7584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7586 cat >conftest.$ac_ext <<_ACEOF
7589 cat confdefs.h >>conftest.$ac_ext
7590 cat >>conftest.$ac_ext <<_ACEOF
7591 /* end confdefs.h. */
7592 #include <$ac_header>
7594 if { (ac_try="$ac_cpp conftest.$ac_ext"
7596 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7597 *) ac_try_echo
=$ac_try;;
7599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7600 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7602 grep -v '^ *+' conftest.er1
>conftest.err
7604 cat conftest.err
>&5
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); } >/dev
/null
&& {
7607 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7608 test ! -s conftest.err
7610 ac_header_preproc
=yes
7612 echo "$as_me: failed program was:" >&5
7613 sed 's/^/| /' conftest.
$ac_ext >&5
7615 ac_header_preproc
=no
7618 rm -f conftest.err conftest.
$ac_ext
7619 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7620 echo "${ECHO_T}$ac_header_preproc" >&6; }
7622 # So? What about this header?
7623 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7625 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7626 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7627 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7628 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7629 ac_header_preproc
=yes
7632 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7633 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7634 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7635 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7636 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7637 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7638 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7639 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7641 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7643 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7649 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7652 eval "$as_ac_Header=\$ac_header_preproc"
7654 ac_res
=`eval echo '${'$as_ac_Header'}'`
7655 { echo "$as_me:$LINENO: result: $ac_res" >&5
7656 echo "${ECHO_T}$ac_res" >&6; }
7659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7660 cat >>confdefs.h
<<_ACEOF
7661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7669 for ac_header
in net
/if.h
7671 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7672 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7673 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7674 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7677 cat >conftest.
$ac_ext <<_ACEOF
7680 cat confdefs.h
>>conftest.
$ac_ext
7681 cat >>conftest.
$ac_ext <<_ACEOF
7682 /* end confdefs.h. */
7683 $ac_includes_default
7684 #if HAVE_SYS_SOCKET_H
7685 #include <sys/socket.h>
7688 #include <$ac_header>
7690 rm -f conftest.
$ac_objext
7691 if { (ac_try
="$ac_compile"
7693 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7694 *) ac_try_echo=$ac_try;;
7696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7697 (eval "$ac_compile") 2>conftest.er1
7699 grep -v '^ *+' conftest.er1 >conftest.err
7701 cat conftest.err >&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); } && {
7704 test -z "$ac_c_werror_flag" ||
7705 test ! -s conftest.err
7706 } && test -s conftest.$ac_objext; then
7707 eval "$as_ac_Header=yes"
7709 echo "$as_me: failed program was:" >&5
7710 sed 's/^/| /' conftest.$ac_ext >&5
7712 eval "$as_ac_Header=no"
7715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7717 ac_res=`eval echo '${'$as_ac_Header'}'`
7718 { echo "$as_me:$LINENO: result: $ac_res" >&5
7719 echo "${ECHO_T}$ac_res" >&6; }
7720 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7721 cat >>confdefs.h <<_ACEOF
7722 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7730 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7731 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7732 if test "${ac_cv_struct_tm+set}" = set; then
7733 echo $ECHO_N "(cached) $ECHO_C" >&6
7735 cat >conftest.$ac_ext <<_ACEOF
7738 cat confdefs.h >>conftest.$ac_ext
7739 cat >>conftest.$ac_ext <<_ACEOF
7740 /* end confdefs.h. */
7741 #include <sys/types.h>
7748 int *p = &tm.tm_sec;
7754 rm -f conftest.$ac_objext
7755 if { (ac_try="$ac_compile"
7757 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7758 *) ac_try_echo
=$ac_try;;
7760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7761 (eval "$ac_compile") 2>conftest.er1
7763 grep -v '^ *+' conftest.er1
>conftest.err
7765 cat conftest.err
>&5
7766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7767 (exit $ac_status); } && {
7768 test -z "$ac_c_werror_flag" ||
7769 test ! -s conftest.err
7770 } && test -s conftest.
$ac_objext; then
7771 ac_cv_struct_tm
=time.h
7773 echo "$as_me: failed program was:" >&5
7774 sed 's/^/| /' conftest.
$ac_ext >&5
7776 ac_cv_struct_tm
=sys
/time.h
7779 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7781 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7782 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7783 if test $ac_cv_struct_tm = sys
/time.h
; then
7785 cat >>confdefs.h
<<\_ACEOF
7786 #define TM_IN_SYS_TIME 1
7791 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7792 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7793 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7794 echo $ECHO_N "(cached) $ECHO_C" >&6
7796 cat >conftest.
$ac_ext <<_ACEOF
7799 cat confdefs.h
>>conftest.
$ac_ext
7800 cat >>conftest.
$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802 #include <sys/types.h>
7803 #include <$ac_cv_struct_tm>
7809 static struct tm ac_aggr;
7810 if (ac_aggr.tm_zone)
7816 rm -f conftest.
$ac_objext
7817 if { (ac_try
="$ac_compile"
7819 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7820 *) ac_try_echo=$ac_try;;
7822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7823 (eval "$ac_compile") 2>conftest.er1
7825 grep -v '^ *+' conftest.er1 >conftest.err
7827 cat conftest.err >&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } && {
7830 test -z "$ac_c_werror_flag" ||
7831 test ! -s conftest.err
7832 } && test -s conftest.$ac_objext; then
7833 ac_cv_member_struct_tm_tm_zone=yes
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.$ac_ext >&5
7838 cat >conftest.$ac_ext <<_ACEOF
7841 cat confdefs.h >>conftest.$ac_ext
7842 cat >>conftest.$ac_ext <<_ACEOF
7843 /* end confdefs.h. */
7844 #include <sys/types.h>
7845 #include <$ac_cv_struct_tm>
7851 static struct tm ac_aggr;
7852 if (sizeof ac_aggr.tm_zone)
7858 rm -f conftest.$ac_objext
7859 if { (ac_try="$ac_compile"
7861 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7862 *) ac_try_echo
=$ac_try;;
7864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7865 (eval "$ac_compile") 2>conftest.er1
7867 grep -v '^ *+' conftest.er1
>conftest.err
7869 cat conftest.err
>&5
7870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7871 (exit $ac_status); } && {
7872 test -z "$ac_c_werror_flag" ||
7873 test ! -s conftest.err
7874 } && test -s conftest.
$ac_objext; then
7875 ac_cv_member_struct_tm_tm_zone
=yes
7877 echo "$as_me: failed program was:" >&5
7878 sed 's/^/| /' conftest.
$ac_ext >&5
7880 ac_cv_member_struct_tm_tm_zone
=no
7883 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7888 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7889 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7890 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7892 cat >>confdefs.h
<<_ACEOF
7893 #define HAVE_STRUCT_TM_TM_ZONE 1
7899 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7901 cat >>confdefs.h
<<\_ACEOF
7902 #define HAVE_TM_ZONE 1
7906 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7907 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7908 if test "${ac_cv_have_decl_tzname+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7911 cat >conftest.
$ac_ext <<_ACEOF
7914 cat confdefs.h
>>conftest.
$ac_ext
7915 cat >>conftest.
$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7930 rm -f conftest.
$ac_objext
7931 if { (ac_try
="$ac_compile"
7933 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_compile") 2>conftest.er1
7939 grep -v '^ *+' conftest.er1 >conftest.err
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } && {
7944 test -z "$ac_c_werror_flag" ||
7945 test ! -s conftest.err
7946 } && test -s conftest.$ac_objext; then
7947 ac_cv_have_decl_tzname=yes
7949 echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7952 ac_cv_have_decl_tzname=no
7955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7957 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7958 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7959 if test $ac_cv_have_decl_tzname = yes; then
7961 cat >>confdefs.h <<_ACEOF
7962 #define HAVE_DECL_TZNAME 1
7967 cat >>confdefs.h <<_ACEOF
7968 #define HAVE_DECL_TZNAME 0
7975 { echo "$as_me:$LINENO: checking for tzname" >&5
7976 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7977 if test "${ac_cv_var_tzname+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 cat >conftest.$ac_ext <<_ACEOF
7983 cat confdefs.h >>conftest.$ac_ext
7984 cat >>conftest.$ac_ext <<_ACEOF
7985 /* end confdefs.h. */
7987 #if !HAVE_DECL_TZNAME
7988 extern char *tzname[];
7994 return tzname[0][0];
7999 rm -f conftest.$ac_objext conftest$ac_exeext
8000 if { (ac_try="$ac_link"
8002 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8003 *) ac_try_echo
=$ac_try;;
8005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8006 (eval "$ac_link") 2>conftest.er1
8008 grep -v '^ *+' conftest.er1
>conftest.err
8010 cat conftest.err
>&5
8011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8012 (exit $ac_status); } && {
8013 test -z "$ac_c_werror_flag" ||
8014 test ! -s conftest.err
8015 } && test -s conftest
$ac_exeext &&
8016 $as_test_x conftest
$ac_exeext; then
8017 ac_cv_var_tzname
=yes
8019 echo "$as_me: failed program was:" >&5
8020 sed 's/^/| /' conftest.
$ac_ext >&5
8025 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8026 conftest
$ac_exeext conftest.
$ac_ext
8028 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8029 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8030 if test $ac_cv_var_tzname = yes; then
8032 cat >>confdefs.h
<<\_ACEOF
8033 #define HAVE_TZNAME 1
8039 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8040 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8041 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8042 echo $ECHO_N "(cached) $ECHO_C" >&6
8044 cat >conftest.
$ac_ext <<_ACEOF
8047 cat confdefs.h
>>conftest.
$ac_ext
8048 cat >>conftest.
$ac_ext <<_ACEOF
8049 /* end confdefs.h. */
8055 static struct tm ac_aggr;
8056 if (ac_aggr.tm_gmtoff)
8062 rm -f conftest.
$ac_objext
8063 if { (ac_try
="$ac_compile"
8065 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8066 *) ac_try_echo=$ac_try;;
8068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8069 (eval "$ac_compile") 2>conftest.er1
8071 grep -v '^ *+' conftest.er1 >conftest.err
8073 cat conftest.err >&5
8074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8075 (exit $ac_status); } && {
8076 test -z "$ac_c_werror_flag" ||
8077 test ! -s conftest.err
8078 } && test -s conftest.$ac_objext; then
8079 ac_cv_member_struct_tm_tm_gmtoff=yes
8081 echo "$as_me: failed program was:" >&5
8082 sed 's/^/| /' conftest.$ac_ext >&5
8084 cat >conftest.$ac_ext <<_ACEOF
8087 cat confdefs.h >>conftest.$ac_ext
8088 cat >>conftest.$ac_ext <<_ACEOF
8089 /* end confdefs.h. */
8095 static struct tm ac_aggr;
8096 if (sizeof ac_aggr.tm_gmtoff)
8102 rm -f conftest.$ac_objext
8103 if { (ac_try="$ac_compile"
8105 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8106 *) ac_try_echo
=$ac_try;;
8108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8109 (eval "$ac_compile") 2>conftest.er1
8111 grep -v '^ *+' conftest.er1
>conftest.err
8113 cat conftest.err
>&5
8114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8115 (exit $ac_status); } && {
8116 test -z "$ac_c_werror_flag" ||
8117 test ! -s conftest.err
8118 } && test -s conftest.
$ac_objext; then
8119 ac_cv_member_struct_tm_tm_gmtoff
=yes
8121 echo "$as_me: failed program was:" >&5
8122 sed 's/^/| /' conftest.
$ac_ext >&5
8124 ac_cv_member_struct_tm_tm_gmtoff
=no
8127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8132 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8133 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8134 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8136 cat >>confdefs.h
<<\_ACEOF
8137 #define HAVE_TM_GMTOFF 1
8142 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8143 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8144 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8145 echo $ECHO_N "(cached) $ECHO_C" >&6
8147 cat >conftest.
$ac_ext <<_ACEOF
8150 cat confdefs.h
>>conftest.
$ac_ext
8151 cat >>conftest.
$ac_ext <<_ACEOF
8152 /* end confdefs.h. */
8153 $ac_includes_default
8154 #if HAVE_SYS_SOCKET_H
8155 #include <sys/socket.h>
8164 static struct ifreq ac_aggr;
8165 if (ac_aggr.ifr_flags)
8171 rm -f conftest.
$ac_objext
8172 if { (ac_try
="$ac_compile"
8174 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8175 *) ac_try_echo=$ac_try;;
8177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8178 (eval "$ac_compile") 2>conftest.er1
8180 grep -v '^ *+' conftest.er1 >conftest.err
8182 cat conftest.err >&5
8183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8184 (exit $ac_status); } && {
8185 test -z "$ac_c_werror_flag" ||
8186 test ! -s conftest.err
8187 } && test -s conftest.$ac_objext; then
8188 ac_cv_member_struct_ifreq_ifr_flags=yes
8190 echo "$as_me: failed program was:" >&5
8191 sed 's/^/| /' conftest.$ac_ext >&5
8193 cat >conftest.$ac_ext <<_ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8199 $ac_includes_default
8200 #if HAVE_SYS_SOCKET_H
8201 #include <sys/socket.h>
8210 static struct ifreq ac_aggr;
8211 if (sizeof ac_aggr.ifr_flags)
8217 rm -f conftest.$ac_objext
8218 if { (ac_try="$ac_compile"
8220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8221 *) ac_try_echo
=$ac_try;;
8223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8224 (eval "$ac_compile") 2>conftest.er1
8226 grep -v '^ *+' conftest.er1
>conftest.err
8228 cat conftest.err
>&5
8229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8230 (exit $ac_status); } && {
8231 test -z "$ac_c_werror_flag" ||
8232 test ! -s conftest.err
8233 } && test -s conftest.
$ac_objext; then
8234 ac_cv_member_struct_ifreq_ifr_flags
=yes
8236 echo "$as_me: failed program was:" >&5
8237 sed 's/^/| /' conftest.
$ac_ext >&5
8239 ac_cv_member_struct_ifreq_ifr_flags
=no
8242 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8245 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8247 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8248 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8249 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8251 cat >>confdefs.h
<<_ACEOF
8252 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8257 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8258 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8259 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8260 echo $ECHO_N "(cached) $ECHO_C" >&6
8262 cat >conftest.
$ac_ext <<_ACEOF
8265 cat confdefs.h
>>conftest.
$ac_ext
8266 cat >>conftest.
$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8268 $ac_includes_default
8269 #if HAVE_SYS_SOCKET_H
8270 #include <sys/socket.h>
8279 static struct ifreq ac_aggr;
8280 if (ac_aggr.ifr_hwaddr)
8286 rm -f conftest.
$ac_objext
8287 if { (ac_try
="$ac_compile"
8289 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8290 *) ac_try_echo=$ac_try;;
8292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8293 (eval "$ac_compile") 2>conftest.er1
8295 grep -v '^ *+' conftest.er1 >conftest.err
8297 cat conftest.err >&5
8298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8299 (exit $ac_status); } && {
8300 test -z "$ac_c_werror_flag" ||
8301 test ! -s conftest.err
8302 } && test -s conftest.$ac_objext; then
8303 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8305 echo "$as_me: failed program was:" >&5
8306 sed 's/^/| /' conftest.$ac_ext >&5
8308 cat >conftest.$ac_ext <<_ACEOF
8311 cat confdefs.h >>conftest.$ac_ext
8312 cat >>conftest.$ac_ext <<_ACEOF
8313 /* end confdefs.h. */
8314 $ac_includes_default
8315 #if HAVE_SYS_SOCKET_H
8316 #include <sys/socket.h>
8325 static struct ifreq ac_aggr;
8326 if (sizeof ac_aggr.ifr_hwaddr)
8332 rm -f conftest.$ac_objext
8333 if { (ac_try="$ac_compile"
8335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8336 *) ac_try_echo
=$ac_try;;
8338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8339 (eval "$ac_compile") 2>conftest.er1
8341 grep -v '^ *+' conftest.er1
>conftest.err
8343 cat conftest.err
>&5
8344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8345 (exit $ac_status); } && {
8346 test -z "$ac_c_werror_flag" ||
8347 test ! -s conftest.err
8348 } && test -s conftest.
$ac_objext; then
8349 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8351 echo "$as_me: failed program was:" >&5
8352 sed 's/^/| /' conftest.
$ac_ext >&5
8354 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8357 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8362 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8363 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8364 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8366 cat >>confdefs.h
<<_ACEOF
8367 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8372 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8373 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8374 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8375 echo $ECHO_N "(cached) $ECHO_C" >&6
8377 cat >conftest.
$ac_ext <<_ACEOF
8380 cat confdefs.h
>>conftest.
$ac_ext
8381 cat >>conftest.
$ac_ext <<_ACEOF
8382 /* end confdefs.h. */
8383 $ac_includes_default
8384 #if HAVE_SYS_SOCKET_H
8385 #include <sys/socket.h>
8394 static struct ifreq ac_aggr;
8395 if (ac_aggr.ifr_netmask)
8401 rm -f conftest.
$ac_objext
8402 if { (ac_try
="$ac_compile"
8404 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8405 *) ac_try_echo=$ac_try;;
8407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8408 (eval "$ac_compile") 2>conftest.er1
8410 grep -v '^ *+' conftest.er1 >conftest.err
8412 cat conftest.err >&5
8413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8414 (exit $ac_status); } && {
8415 test -z "$ac_c_werror_flag" ||
8416 test ! -s conftest.err
8417 } && test -s conftest.$ac_objext; then
8418 ac_cv_member_struct_ifreq_ifr_netmask=yes
8420 echo "$as_me: failed program was:" >&5
8421 sed 's/^/| /' conftest.$ac_ext >&5
8423 cat >conftest.$ac_ext <<_ACEOF
8426 cat confdefs.h >>conftest.$ac_ext
8427 cat >>conftest.$ac_ext <<_ACEOF
8428 /* end confdefs.h. */
8429 $ac_includes_default
8430 #if HAVE_SYS_SOCKET_H
8431 #include <sys/socket.h>
8440 static struct ifreq ac_aggr;
8441 if (sizeof ac_aggr.ifr_netmask)
8447 rm -f conftest.$ac_objext
8448 if { (ac_try="$ac_compile"
8450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8451 *) ac_try_echo
=$ac_try;;
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_compile") 2>conftest.er1
8456 grep -v '^ *+' conftest.er1
>conftest.err
8458 cat conftest.err
>&5
8459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8460 (exit $ac_status); } && {
8461 test -z "$ac_c_werror_flag" ||
8462 test ! -s conftest.err
8463 } && test -s conftest.
$ac_objext; then
8464 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8466 echo "$as_me: failed program was:" >&5
8467 sed 's/^/| /' conftest.
$ac_ext >&5
8469 ac_cv_member_struct_ifreq_ifr_netmask
=no
8472 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8477 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8478 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8479 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8481 cat >>confdefs.h
<<_ACEOF
8482 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8487 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8488 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8489 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8490 echo $ECHO_N "(cached) $ECHO_C" >&6
8492 cat >conftest.
$ac_ext <<_ACEOF
8495 cat confdefs.h
>>conftest.
$ac_ext
8496 cat >>conftest.
$ac_ext <<_ACEOF
8497 /* end confdefs.h. */
8498 $ac_includes_default
8499 #if HAVE_SYS_SOCKET_H
8500 #include <sys/socket.h>
8509 static struct ifreq ac_aggr;
8510 if (ac_aggr.ifr_broadaddr)
8516 rm -f conftest.
$ac_objext
8517 if { (ac_try
="$ac_compile"
8519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8520 *) ac_try_echo=$ac_try;;
8522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8523 (eval "$ac_compile") 2>conftest.er1
8525 grep -v '^ *+' conftest.er1 >conftest.err
8527 cat conftest.err >&5
8528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8529 (exit $ac_status); } && {
8530 test -z "$ac_c_werror_flag" ||
8531 test ! -s conftest.err
8532 } && test -s conftest.$ac_objext; then
8533 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8535 echo "$as_me: failed program was:" >&5
8536 sed 's/^/| /' conftest.$ac_ext >&5
8538 cat >conftest.$ac_ext <<_ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8544 $ac_includes_default
8545 #if HAVE_SYS_SOCKET_H
8546 #include <sys/socket.h>
8555 static struct ifreq ac_aggr;
8556 if (sizeof ac_aggr.ifr_broadaddr)
8562 rm -f conftest.$ac_objext
8563 if { (ac_try="$ac_compile"
8565 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8566 *) ac_try_echo
=$ac_try;;
8568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8569 (eval "$ac_compile") 2>conftest.er1
8571 grep -v '^ *+' conftest.er1
>conftest.err
8573 cat conftest.err
>&5
8574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8575 (exit $ac_status); } && {
8576 test -z "$ac_c_werror_flag" ||
8577 test ! -s conftest.err
8578 } && test -s conftest.
$ac_objext; then
8579 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8581 echo "$as_me: failed program was:" >&5
8582 sed 's/^/| /' conftest.
$ac_ext >&5
8584 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8587 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8590 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8592 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8593 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8594 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8596 cat >>confdefs.h
<<_ACEOF
8597 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8602 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8603 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8604 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8605 echo $ECHO_N "(cached) $ECHO_C" >&6
8607 cat >conftest.
$ac_ext <<_ACEOF
8610 cat confdefs.h
>>conftest.
$ac_ext
8611 cat >>conftest.
$ac_ext <<_ACEOF
8612 /* end confdefs.h. */
8613 $ac_includes_default
8614 #if HAVE_SYS_SOCKET_H
8615 #include <sys/socket.h>
8624 static struct ifreq ac_aggr;
8625 if (ac_aggr.ifr_addr)
8631 rm -f conftest.
$ac_objext
8632 if { (ac_try
="$ac_compile"
8634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8635 *) ac_try_echo=$ac_try;;
8637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8638 (eval "$ac_compile") 2>conftest.er1
8640 grep -v '^ *+' conftest.er1 >conftest.err
8642 cat conftest.err >&5
8643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8644 (exit $ac_status); } && {
8645 test -z "$ac_c_werror_flag" ||
8646 test ! -s conftest.err
8647 } && test -s conftest.$ac_objext; then
8648 ac_cv_member_struct_ifreq_ifr_addr=yes
8650 echo "$as_me: failed program was:" >&5
8651 sed 's/^/| /' conftest.$ac_ext >&5
8653 cat >conftest.$ac_ext <<_ACEOF
8656 cat confdefs.h >>conftest.$ac_ext
8657 cat >>conftest.$ac_ext <<_ACEOF
8658 /* end confdefs.h. */
8659 $ac_includes_default
8660 #if HAVE_SYS_SOCKET_H
8661 #include <sys/socket.h>
8670 static struct ifreq ac_aggr;
8671 if (sizeof ac_aggr.ifr_addr)
8677 rm -f conftest.$ac_objext
8678 if { (ac_try="$ac_compile"
8680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8681 *) ac_try_echo
=$ac_try;;
8683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8684 (eval "$ac_compile") 2>conftest.er1
8686 grep -v '^ *+' conftest.er1
>conftest.err
8688 cat conftest.err
>&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 (exit $ac_status); } && {
8691 test -z "$ac_c_werror_flag" ||
8692 test ! -s conftest.err
8693 } && test -s conftest.
$ac_objext; then
8694 ac_cv_member_struct_ifreq_ifr_addr
=yes
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.
$ac_ext >&5
8699 ac_cv_member_struct_ifreq_ifr_addr
=no
8702 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8705 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8707 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8708 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8709 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8711 cat >>confdefs.h
<<_ACEOF
8712 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8720 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8721 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8722 if test "$ac_cv_prog_cc_c89" != no
; then
8723 { echo "$as_me:$LINENO: result: yes" >&5
8724 echo "${ECHO_T}yes" >&6; }
8726 cat >>confdefs.h
<<\_ACEOF
8727 #define PROTOTYPES 1
8731 cat >>confdefs.h
<<\_ACEOF
8732 #define __PROTOTYPES 1
8736 { echo "$as_me:$LINENO: result: no" >&5
8737 echo "${ECHO_T}no" >&6; }
8740 { echo "$as_me:$LINENO: checking for working volatile" >&5
8741 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8742 if test "${ac_cv_c_volatile+set}" = set; then
8743 echo $ECHO_N "(cached) $ECHO_C" >&6
8745 cat >conftest.
$ac_ext <<_ACEOF
8748 cat confdefs.h
>>conftest.
$ac_ext
8749 cat >>conftest.
$ac_ext <<_ACEOF
8750 /* end confdefs.h. */
8757 int * volatile y = (int *) 0;
8763 rm -f conftest.
$ac_objext
8764 if { (ac_try
="$ac_compile"
8766 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8767 *) ac_try_echo=$ac_try;;
8769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8770 (eval "$ac_compile") 2>conftest.er1
8772 grep -v '^ *+' conftest.er1 >conftest.err
8774 cat conftest.err >&5
8775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8776 (exit $ac_status); } && {
8777 test -z "$ac_c_werror_flag" ||
8778 test ! -s conftest.err
8779 } && test -s conftest.$ac_objext; then
8780 ac_cv_c_volatile=yes
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8790 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8791 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8792 if test $ac_cv_c_volatile = no; then
8794 cat >>confdefs.h <<\_ACEOF
8800 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8801 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8802 if test "${ac_cv_c_const+set}" = set; then
8803 echo $ECHO_N "(cached) $ECHO_C" >&6
8805 cat >conftest.$ac_ext <<_ACEOF
8808 cat confdefs.h >>conftest.$ac_ext
8809 cat >>conftest.$ac_ext <<_ACEOF
8810 /* end confdefs.h. */
8815 /* FIXME: Include the comments suggested by Paul. */
8817 /* Ultrix mips cc rejects this. */
8818 typedef int charset[2];
8820 /* SunOS 4.1.1 cc rejects this. */
8821 char const *const *pcpcc;
8823 /* NEC SVR4.0.2 mips cc rejects this. */
8824 struct point {int x, y;};
8825 static struct point const zero = {0,0};
8826 /* AIX XL C 1.02.0.0 rejects this.
8827 It does not let you subtract one const X* pointer from another in
8828 an arm of an if-expression whose if-part is not a constant
8830 const char *g = "string";
8831 pcpcc = &g + (g ? g-g : 0);
8832 /* HPUX 7.0 cc rejects these. */
8834 ppc = (char**) pcpcc;
8835 pcpcc = (char const *const *) ppc;
8836 { /* SCO 3.2v4 cc rejects this. */
8838 char const *s = 0 ? (char *) 0 : (char const *) 0;
8843 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8845 const int *foo = &x[0];
8848 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8849 typedef const int *iptr;
8853 { /* AIX XL C 1.02.0.0 rejects this saying
8854 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8855 struct s { int j; const int *ap[3]; };
8856 struct s *b; b->j = 5;
8858 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8862 return !cs[0] && !zero.x;
8869 rm -f conftest.$ac_objext
8870 if { (ac_try="$ac_compile"
8872 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8873 *) ac_try_echo
=$ac_try;;
8875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8876 (eval "$ac_compile") 2>conftest.er1
8878 grep -v '^ *+' conftest.er1
>conftest.err
8880 cat conftest.err
>&5
8881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8882 (exit $ac_status); } && {
8883 test -z "$ac_c_werror_flag" ||
8884 test ! -s conftest.err
8885 } && test -s conftest.
$ac_objext; then
8888 echo "$as_me: failed program was:" >&5
8889 sed 's/^/| /' conftest.
$ac_ext >&5
8894 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8896 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8897 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8898 if test $ac_cv_c_const = no
; then
8900 cat >>confdefs.h
<<\_ACEOF
8906 { echo "$as_me:$LINENO: checking for void * support" >&5
8907 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8908 if test "${emacs_cv_void_star+set}" = set; then
8909 echo $ECHO_N "(cached) $ECHO_C" >&6
8911 cat >conftest.
$ac_ext <<_ACEOF
8914 cat confdefs.h
>>conftest.
$ac_ext
8915 cat >>conftest.
$ac_ext <<_ACEOF
8916 /* end confdefs.h. */
8926 rm -f conftest.
$ac_objext
8927 if { (ac_try
="$ac_compile"
8929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8930 *) ac_try_echo=$ac_try;;
8932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8933 (eval "$ac_compile") 2>conftest.er1
8935 grep -v '^ *+' conftest.er1 >conftest.err
8937 cat conftest.err >&5
8938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8939 (exit $ac_status); } && {
8940 test -z "$ac_c_werror_flag" ||
8941 test ! -s conftest.err
8942 } && test -s conftest.$ac_objext; then
8943 emacs_cv_void_star=yes
8945 echo "$as_me: failed program was:" >&5
8946 sed 's/^/| /' conftest.$ac_ext >&5
8948 emacs_cv_void_star=no
8951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8953 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8954 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8955 if test $emacs_cv_void_star = yes; then
8956 cat >>confdefs.h <<\_ACEOF
8957 #define POINTER_TYPE void
8961 cat >>confdefs.h <<\_ACEOF
8962 #define POINTER_TYPE char
8971 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8972 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8973 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8974 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8975 echo $ECHO_N "(cached) $ECHO_C" >&6
8977 cat >conftest.make <<\_ACEOF
8980 @echo '@@@%%%=$(MAKE)=@@@%%%'
8982 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8983 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8985 eval ac_cv_prog_make_${ac_make}_set=yes;;
8987 eval ac_cv_prog_make_${ac_make}_set=no;;
8991 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8992 { echo "$as_me:$LINENO: result: yes" >&5
8993 echo "${ECHO_T}yes" >&6; }
8996 { echo "$as_me:$LINENO: result: no" >&5
8997 echo "${ECHO_T}no" >&6; }
8998 SET_MAKE="MAKE=${MAKE-make}"
9002 { echo "$as_me:$LINENO: checking for long file names" >&5
9003 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9004 if test "${ac_cv_sys_long_file_names+set}" = set; then
9005 echo $ECHO_N "(cached) $ECHO_C" >&6
9007 ac_cv_sys_long_file_names=yes
9008 # Test for long file names in all the places we know might matter:
9009 # . the current directory, where building will happen
9010 # $prefix/lib where we will be installing things
9011 # $exec_prefix/lib likewise
9012 # $TMPDIR if set, where it might want to write temporary files
9013 # /tmp where it might want to write temporary files
9016 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9017 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9018 # in the usual case where exec_prefix is '${prefix}'.
9020 . | /* | ?:[\\/]*) ;; #(
9023 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9024 ac_xdir=$ac_dir/cf$$
9025 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9026 ac_tf1=$ac_xdir/conftest9012345
9027 ac_tf2=$ac_xdir/conftest9012346
9028 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9029 ac_cv_sys_long_file_names=no
9030 rm -f -r "$ac_xdir" 2>/dev/null
9031 test $ac_cv_sys_long_file_names = no && break
9034 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9035 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9036 if test $ac_cv_sys_long_file_names = yes; then
9038 cat >>confdefs.h <<\_ACEOF
9039 #define HAVE_LONG_FILE_NAMES 1
9045 #### Choose a window system.
9047 { echo "$as_me:$LINENO: checking for X" >&5
9048 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9051 # Check whether --with-x was given.
9052 if test "${with_x+set}" = set; then
9056 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9057 if test "x$with_x" = xno; then
9058 # The user explicitly disabled X.
9061 case $x_includes,$x_libraries in #(
9062 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9063 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9064 { (exit 1); exit 1; }; };; #(
9065 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9066 echo $ECHO_N "(cached) $ECHO_C" >&6
9068 # One or both of the vars are not set, and there is no cached value.
9069 ac_x_includes=no ac_x_libraries=no
9070 rm -f -r conftest.dir
9071 if mkdir conftest.dir; then
9073 cat >Imakefile <<'_ACEOF'
9075 @echo incroot='${INCROOT}'
9077 @echo usrlibdir='${USRLIBDIR}'
9079 @echo libdir='${LIBDIR}'
9081 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9082 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9083 for ac_var in incroot usrlibdir libdir; do
9084 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9086 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9087 for ac_extension in a so sl; do
9088 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9089 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9090 ac_im_usrlibdir=$ac_im_libdir; break
9093 # Screen out bogus values from the imake configuration. They are
9094 # bogus both because they are the default anyway, and because
9095 # using them would break gcc on systems where it needs fixed includes.
9096 case $ac_im_incroot in
9097 /usr/include) ac_x_includes= ;;
9098 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9100 case $ac_im_usrlibdir in
9102 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9106 rm -f -r conftest.dir
9109 # Standard set of common directories for X headers.
9110 # Check X11 before X11Rn because it is often a symlink to the current release.
9122 /usr/local/X11/include
9123 /usr/local/X11R6/include
9124 /usr/local/X11R5/include
9125 /usr/local/X11R4/include
9127 /usr/local/include/X11
9128 /usr/local/include/X11R6
9129 /usr/local/include/X11R5
9130 /usr/local/include/X11R4
9134 /usr/XFree86/include/X11
9138 /usr/unsupported/include
9140 /usr/local/x11r5/include
9141 /usr/lpp/Xamples/include
9143 /usr/openwin/include
9144 /usr/openwin/share/include'
9146 if test "$ac_x_includes" = no; then
9147 # Guess where to find include files, by looking for Xlib.h.
9148 # First, try using that file with no special directory specified.
9149 cat >conftest.$ac_ext <<_ACEOF
9152 cat confdefs.h >>conftest.$ac_ext
9153 cat >>conftest.$ac_ext <<_ACEOF
9154 /* end confdefs.h. */
9155 #include <X11/Xlib.h>
9157 if { (ac_try="$ac_cpp conftest.$ac_ext"
9159 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9160 *) ac_try_echo
=$ac_try;;
9162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9163 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9165 grep -v '^ *+' conftest.er1
>conftest.err
9167 cat conftest.err
>&5
9168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9169 (exit $ac_status); } >/dev
/null
&& {
9170 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9171 test ! -s conftest.err
9173 # We can compile using X headers with no special include directory.
9176 echo "$as_me: failed program was:" >&5
9177 sed 's/^/| /' conftest.
$ac_ext >&5
9179 for ac_dir
in $ac_x_header_dirs; do
9180 if test -r "$ac_dir/X11/Xlib.h"; then
9181 ac_x_includes
=$ac_dir
9187 rm -f conftest.err conftest.
$ac_ext
9188 fi # $ac_x_includes = no
9190 if test "$ac_x_libraries" = no
; then
9191 # Check for the libraries.
9192 # See if we find them without any special options.
9193 # Don't add to $LIBS permanently.
9196 cat >conftest.
$ac_ext <<_ACEOF
9199 cat confdefs.h
>>conftest.
$ac_ext
9200 cat >>conftest.
$ac_ext <<_ACEOF
9201 /* end confdefs.h. */
9202 #include <X11/Xlib.h>
9211 rm -f conftest.
$ac_objext conftest
$ac_exeext
9212 if { (ac_try
="$ac_link"
9214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9215 *) ac_try_echo=$ac_try;;
9217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9218 (eval "$ac_link") 2>conftest.er1
9220 grep -v '^ *+' conftest.er1 >conftest.err
9222 cat conftest.err >&5
9223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9224 (exit $ac_status); } && {
9225 test -z "$ac_c_werror_flag" ||
9226 test ! -s conftest.err
9227 } && test -s conftest$ac_exeext &&
9228 $as_test_x conftest$ac_exeext; then
9230 # We can link X programs with no special library path.
9233 echo "$as_me: failed program was:" >&5
9234 sed 's/^/| /' conftest.$ac_ext >&5
9237 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9239 # Don't even attempt the hair of trying to link an X program!
9240 for ac_extension in a so sl; do
9241 if test -r "$ac_dir/libX11.$ac_extension"; then
9242 ac_x_libraries=$ac_dir
9249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9250 conftest$ac_exeext conftest.$ac_ext
9251 fi # $ac_x_libraries = no
9253 case $ac_x_includes,$ac_x_libraries in #(
9255 # Didn't find X, or a directory has "'" in its name.
9256 ac_cv_have_x="have_x=no";; #(
9258 # Record where we found X for the cache.
9259 ac_cv_have_x="have_x=yes\
9260 ac_x_includes='$ac_x_includes'\
9261 ac_x_libraries='$ac_x_libraries'"
9267 eval "$ac_cv_have_x"
9270 if test "$have_x" != yes; then
9271 { echo "$as_me:$LINENO: result: $have_x" >&5
9272 echo "${ECHO_T}$have_x" >&6; }
9275 # If each of the values was on the command line, it overrides each guess.
9276 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9277 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9278 # Update the cache value to reflect the command line values.
9279 ac_cv_have_x="have_x=yes\
9280 ac_x_includes='$x_includes'\
9281 ac_x_libraries='$x_libraries'"
9282 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9283 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9286 if test "$no_x" = yes; then
9292 if test "${x_libraries}" != NONE; then
9293 if test -n "${x_libraries}"; then
9294 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9295 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9297 x_default_search_path=""
9298 x_search_path=${x_libraries}
9299 if test -z "${x_search_path}"; then
9300 x_search_path=/usr/lib
9302 for x_library in `echo ${x_search_path}: | \
9303 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9305 ${x_library}/X11/%L/%T/%N%C%S:\
9306 ${x_library}/X11/%l/%T/%N%C%S:\
9307 ${x_library}/X11/%T/%N%C%S:\
9308 ${x_library}/X11/%L/%T/%N%S:\
9309 ${x_library}/X11/%l/%T/%N%S:\
9310 ${x_library}/X11/%T/%N%S"
9311 if test x"${x_default_search_path}" = x; then
9312 x_default_search_path=${x_search_path}
9314 x_default_search_path="${x_search_path}:${x_default_search_path}"
9318 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9319 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9322 if test x"${x_includes}" = x; then
9323 bitmapdir=/usr/include/X11/bitmaps
9325 # accumulate include directories that have X11 bitmap subdirectories
9327 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9328 if test -d "${bmd}/X11/bitmaps"; then
9329 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9331 if test -d "${bmd}/bitmaps"; then
9332 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9335 if test ${bmd_acc} != "dummyval"; then
9336 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9341 if test "${with_carbon}" != no; then
9342 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9343 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9344 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9345 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9346 echo $ECHO_N "(cached) $ECHO_C" >&6
9348 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9349 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9351 # Is the header compilable?
9352 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9353 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9354 cat >conftest.$ac_ext <<_ACEOF
9357 cat confdefs.h >>conftest.$ac_ext
9358 cat >>conftest.$ac_ext <<_ACEOF
9359 /* end confdefs.h. */
9360 $ac_includes_default
9361 #include <Carbon/Carbon.h>
9363 rm -f conftest.$ac_objext
9364 if { (ac_try="$ac_compile"
9366 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9367 *) ac_try_echo
=$ac_try;;
9369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370 (eval "$ac_compile") 2>conftest.er1
9372 grep -v '^ *+' conftest.er1
>conftest.err
9374 cat conftest.err
>&5
9375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9376 (exit $ac_status); } && {
9377 test -z "$ac_c_werror_flag" ||
9378 test ! -s conftest.err
9379 } && test -s conftest.
$ac_objext; then
9380 ac_header_compiler
=yes
9382 echo "$as_me: failed program was:" >&5
9383 sed 's/^/| /' conftest.
$ac_ext >&5
9385 ac_header_compiler
=no
9388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9389 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9390 echo "${ECHO_T}$ac_header_compiler" >&6; }
9392 # Is the header present?
9393 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9394 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9395 cat >conftest.
$ac_ext <<_ACEOF
9398 cat confdefs.h
>>conftest.
$ac_ext
9399 cat >>conftest.
$ac_ext <<_ACEOF
9400 /* end confdefs.h. */
9401 #include <Carbon/Carbon.h>
9403 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9405 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9406 *) ac_try_echo=$ac_try;;
9408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9409 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9411 grep -v '^ *+' conftest.er1 >conftest.err
9413 cat conftest.err >&5
9414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9415 (exit $ac_status); } >/dev/null && {
9416 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9417 test ! -s conftest.err
9419 ac_header_preproc=yes
9421 echo "$as_me: failed program was:" >&5
9422 sed 's/^/| /' conftest.$ac_ext >&5
9424 ac_header_preproc=no
9427 rm -f conftest.err conftest.$ac_ext
9428 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9429 echo "${ECHO_T}$ac_header_preproc" >&6; }
9431 # So? What about this header?
9432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9434 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9435 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9436 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9437 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9438 ac_header_preproc=yes
9441 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9442 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9443 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9444 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9445 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9446 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9447 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9448 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9449 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9450 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9452 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9456 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9457 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9458 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9459 echo $ECHO_N "(cached) $ECHO_C" >&6
9461 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9463 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9464 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9467 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9473 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9474 if test "${with_carbon+set}" != set \
9475 && test "${carbon_appdir_x+set}" != set; then
9476 for var in with_x with_x_toolkit with_xim \
9477 with_xpm with_jpeg with_tiff with_gif with_png; do
9478 if eval test \"\${$var+set}\" = set; then
9485 if test "${HAVE_CARBON}" = yes; then
9489 case "${window_system}" in
9493 case "${with_x_toolkit}" in
9494 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9495 motif ) USE_X_TOOLKIT=MOTIF ;;
9497 USE_X_TOOLKIT=none ;;
9498 no ) USE_X_TOOLKIT=none ;;
9499 * ) USE_X_TOOLKIT=maybe ;;
9509 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9510 # Extract the first word of "X", so it can be a program name with args.
9511 set dummy X; ac_word=$2
9512 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9513 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9514 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9515 echo $ECHO_N "(cached) $ECHO_C" >&6
9517 if test -n "$HAVE_XSERVER"; then
9518 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9524 test -z "$as_dir" && as_dir=.
9525 for ac_exec_ext in '' $ac_executable_extensions; do
9526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9527 ac_cv_prog_HAVE_XSERVER="true"
9528 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9535 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9538 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9539 if test -n "$HAVE_XSERVER"; then
9540 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9541 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9543 { echo "$as_me:$LINENO: result: no" >&5
9544 echo "${ECHO_T}no" >&6; }
9548 if test "$HAVE_XSERVER" = true ||
9549 test -n "$DISPLAY" ||
9550 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9551 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9552 were found. You should install the relevant development files for X
9553 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9554 sure you have development files for image handling, i.e.
9555 tiff, gif, jpeg, png and xpm.
9556 If you are sure you want Emacs compiled without X window support, pass
9559 echo "$as_me: error: You seem to be running X, but no X development libraries
9560 were found. You should install the relevant development files for X
9561 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9562 sure you have development files for image handling, i.e.
9563 tiff, gif, jpeg, png and xpm.
9564 If you are sure you want Emacs compiled without X window support, pass
9566 to configure." >&2;}
9567 { (exit 1); exit 1; }; }
9571 ### If we're using X11, we should use the X menu package.
9574 yes ) HAVE_MENUS=yes ;;
9577 ### Compute the unexec source name from the object name.
9578 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9580 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9581 # Assume not, until told otherwise.
9584 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9585 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9586 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9587 echo $ECHO_N "(cached) $ECHO_C" >&6
9589 cat >conftest.$ac_ext <<_ACEOF
9592 cat confdefs.h >>conftest.$ac_ext
9593 cat >>conftest.$ac_ext <<_ACEOF
9594 /* end confdefs.h. */
9595 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9597 #define malloc_get_state innocuous_malloc_get_state
9599 /* System header to define __stub macros and hopefully few prototypes,
9600 which can conflict with char malloc_get_state (); below.
9601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9602 <limits.h> exists even on freestanding compilers. */
9605 # include <limits.h>
9607 # include <assert.h>
9610 #undef malloc_get_state
9612 /* Override any GCC internal prototype to avoid an error.
9613 Use char because int might match the return type of a GCC
9614 builtin and then its argument prototype would still apply. */
9618 char malloc_get_state ();
9619 /* The GNU C library defines this for functions which it implements
9620 to always fail with ENOSYS. Some functions are actually named
9621 something starting with __ and the normal name is an alias. */
9622 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9629 return malloc_get_state ();
9634 rm -f conftest.$ac_objext conftest$ac_exeext
9635 if { (ac_try="$ac_link"
9637 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9638 *) ac_try_echo
=$ac_try;;
9640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9641 (eval "$ac_link") 2>conftest.er1
9643 grep -v '^ *+' conftest.er1
>conftest.err
9645 cat conftest.err
>&5
9646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9647 (exit $ac_status); } && {
9648 test -z "$ac_c_werror_flag" ||
9649 test ! -s conftest.err
9650 } && test -s conftest
$ac_exeext &&
9651 $as_test_x conftest
$ac_exeext; then
9652 ac_cv_func_malloc_get_state
=yes
9654 echo "$as_me: failed program was:" >&5
9655 sed 's/^/| /' conftest.
$ac_ext >&5
9657 ac_cv_func_malloc_get_state
=no
9660 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9661 conftest
$ac_exeext conftest.
$ac_ext
9663 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9664 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9665 if test $ac_cv_func_malloc_get_state = yes; then
9671 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9672 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9673 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9674 echo $ECHO_N "(cached) $ECHO_C" >&6
9676 cat >conftest.
$ac_ext <<_ACEOF
9679 cat confdefs.h
>>conftest.
$ac_ext
9680 cat >>conftest.
$ac_ext <<_ACEOF
9681 /* end confdefs.h. */
9682 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9683 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9684 #define malloc_set_state innocuous_malloc_set_state
9686 /* System header to define __stub macros and hopefully few prototypes,
9687 which can conflict with char malloc_set_state (); below.
9688 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9689 <limits.h> exists even on freestanding compilers. */
9692 # include <limits.h>
9694 # include <assert.h>
9697 #undef malloc_set_state
9699 /* Override any GCC internal prototype to avoid an error.
9700 Use char because int might match the return type of a GCC
9701 builtin and then its argument prototype would still apply. */
9705 char malloc_set_state ();
9706 /* The GNU C library defines this for functions which it implements
9707 to always fail with ENOSYS. Some functions are actually named
9708 something starting with __ and the normal name is an alias. */
9709 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9716 return malloc_set_state ();
9721 rm -f conftest.
$ac_objext conftest
$ac_exeext
9722 if { (ac_try
="$ac_link"
9724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9725 *) ac_try_echo=$ac_try;;
9727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9728 (eval "$ac_link") 2>conftest.er1
9730 grep -v '^ *+' conftest.er1 >conftest.err
9732 cat conftest.err >&5
9733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9734 (exit $ac_status); } && {
9735 test -z "$ac_c_werror_flag" ||
9736 test ! -s conftest.err
9737 } && test -s conftest$ac_exeext &&
9738 $as_test_x conftest$ac_exeext; then
9739 ac_cv_func_malloc_set_state=yes
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9744 ac_cv_func_malloc_set_state=no
9747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9748 conftest$ac_exeext conftest.$ac_ext
9750 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9751 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9752 if test $ac_cv_func_malloc_set_state = yes; then
9758 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9759 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9760 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9761 echo $ECHO_N "(cached) $ECHO_C" >&6
9763 cat >conftest.$ac_ext <<_ACEOF
9766 cat confdefs.h >>conftest.$ac_ext
9767 cat >>conftest.$ac_ext <<_ACEOF
9768 /* end confdefs.h. */
9769 extern void (* __after_morecore_hook)();
9773 __after_morecore_hook = 0
9778 rm -f conftest.$ac_objext conftest$ac_exeext
9779 if { (ac_try="$ac_link"
9781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9782 *) ac_try_echo
=$ac_try;;
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_link") 2>conftest.er1
9787 grep -v '^ *+' conftest.er1
>conftest.err
9789 cat conftest.err
>&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } && {
9792 test -z "$ac_c_werror_flag" ||
9793 test ! -s conftest.err
9794 } && test -s conftest
$ac_exeext &&
9795 $as_test_x conftest
$ac_exeext; then
9796 emacs_cv_var___after_morecore_hook
=yes
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.
$ac_ext >&5
9801 emacs_cv_var___after_morecore_hook
=no
9804 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9805 conftest
$ac_exeext conftest.
$ac_ext
9807 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9808 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9809 if test $emacs_cv_var___after_morecore_hook = no
; then
9812 if test "${system_malloc}" = "yes"; then
9815 (The GNU allocators don't work with this system configuration.)"
9817 if test "$doug_lea_malloc" = "yes" ; then
9818 if test "$GNU_MALLOC" = yes ; then
9820 (Using Doug Lea's new malloc from the GNU C Library.)"
9823 cat >>confdefs.h
<<\_ACEOF
9824 #define DOUG_LEA_MALLOC 1
9829 if test x
"${REL_ALLOC}" = x
; then
9830 REL_ALLOC
=${GNU_MALLOC}
9836 for ac_header
in stdlib.h unistd.h
9838 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9839 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9842 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9843 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 ac_res
=`eval echo '${'$as_ac_Header'}'`
9846 { echo "$as_me:$LINENO: result: $ac_res" >&5
9847 echo "${ECHO_T}$ac_res" >&6; }
9849 # Is the header compilable?
9850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9852 cat >conftest.
$ac_ext <<_ACEOF
9855 cat confdefs.h
>>conftest.
$ac_ext
9856 cat >>conftest.
$ac_ext <<_ACEOF
9857 /* end confdefs.h. */
9858 $ac_includes_default
9859 #include <$ac_header>
9861 rm -f conftest.
$ac_objext
9862 if { (ac_try
="$ac_compile"
9864 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9865 *) ac_try_echo=$ac_try;;
9867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9868 (eval "$ac_compile") 2>conftest.er1
9870 grep -v '^ *+' conftest.er1 >conftest.err
9872 cat conftest.err >&5
9873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9874 (exit $ac_status); } && {
9875 test -z "$ac_c_werror_flag" ||
9876 test ! -s conftest.err
9877 } && test -s conftest.$ac_objext; then
9878 ac_header_compiler=yes
9880 echo "$as_me: failed program was:" >&5
9881 sed 's/^/| /' conftest.$ac_ext >&5
9883 ac_header_compiler=no
9886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9888 echo "${ECHO_T}$ac_header_compiler" >&6; }
9890 # Is the header present?
9891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9893 cat >conftest.$ac_ext <<_ACEOF
9896 cat confdefs.h >>conftest.$ac_ext
9897 cat >>conftest.$ac_ext <<_ACEOF
9898 /* end confdefs.h. */
9899 #include <$ac_header>
9901 if { (ac_try="$ac_cpp conftest.$ac_ext"
9903 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9904 *) ac_try_echo
=$ac_try;;
9906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9909 grep -v '^ *+' conftest.er1
>conftest.err
9911 cat conftest.err
>&5
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); } >/dev
/null
&& {
9914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9915 test ! -s conftest.err
9917 ac_header_preproc
=yes
9919 echo "$as_me: failed program was:" >&5
9920 sed 's/^/| /' conftest.
$ac_ext >&5
9922 ac_header_preproc
=no
9925 rm -f conftest.err conftest.
$ac_ext
9926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9927 echo "${ECHO_T}$ac_header_preproc" >&6; }
9929 # So? What about this header?
9930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9936 ac_header_preproc
=yes
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9956 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9957 echo $ECHO_N "(cached) $ECHO_C" >&6
9959 eval "$as_ac_Header=\$ac_header_preproc"
9961 ac_res
=`eval echo '${'$as_ac_Header'}'`
9962 { echo "$as_me:$LINENO: result: $ac_res" >&5
9963 echo "${ECHO_T}$ac_res" >&6; }
9966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9967 cat >>confdefs.h
<<_ACEOF
9968 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9976 for ac_func
in getpagesize
9978 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9979 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9980 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9981 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9982 echo $ECHO_N "(cached) $ECHO_C" >&6
9984 cat >conftest.
$ac_ext <<_ACEOF
9987 cat confdefs.h
>>conftest.
$ac_ext
9988 cat >>conftest.
$ac_ext <<_ACEOF
9989 /* end confdefs.h. */
9990 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9991 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9992 #define $ac_func innocuous_$ac_func
9994 /* System header to define __stub macros and hopefully few prototypes,
9995 which can conflict with char $ac_func (); below.
9996 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9997 <limits.h> exists even on freestanding compilers. */
10000 # include <limits.h>
10002 # include <assert.h>
10007 /* Override any GCC internal prototype to avoid an error.
10008 Use char because int might match the return type of a GCC
10009 builtin and then its argument prototype would still apply. */
10014 /* The GNU C library defines this for functions which it implements
10015 to always fail with ENOSYS. Some functions are actually named
10016 something starting with __ and the normal name is an alias. */
10017 #if defined __stub_$ac_func || defined __stub___$ac_func
10024 return $ac_func ();
10029 rm -f conftest.
$ac_objext conftest
$ac_exeext
10030 if { (ac_try
="$ac_link"
10031 case "(($ac_try" in
10032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10033 *) ac_try_echo=$ac_try;;
10035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10036 (eval "$ac_link") 2>conftest.er1
10038 grep -v '^ *+' conftest.er1 >conftest.err
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } && {
10043 test -z "$ac_c_werror_flag" ||
10044 test ! -s conftest.err
10045 } && test -s conftest$ac_exeext &&
10046 $as_test_x conftest$ac_exeext; then
10047 eval "$as_ac_var=yes"
10049 echo "$as_me: failed program was:" >&5
10050 sed 's/^/| /' conftest.$ac_ext >&5
10052 eval "$as_ac_var=no"
10055 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10056 conftest$ac_exeext conftest.$ac_ext
10058 ac_res=`eval echo '${'$as_ac_var'}'`
10059 { echo "$as_me:$LINENO: result: $ac_res" >&5
10060 echo "${ECHO_T}$ac_res" >&6; }
10061 if test `eval echo '${'$as_ac_var'}'` = yes; then
10062 cat >>confdefs.h <<_ACEOF
10063 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10069 { echo "$as_me:$LINENO: checking for working mmap" >&5
10070 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10071 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10072 echo $ECHO_N "(cached) $ECHO_C" >&6
10074 if test "$cross_compiling" = yes; then
10075 ac_cv_func_mmap_fixed_mapped=no
10077 cat >conftest.$ac_ext <<_ACEOF
10080 cat confdefs.h >>conftest.$ac_ext
10081 cat >>conftest.$ac_ext <<_ACEOF
10082 /* end confdefs.h. */
10083 $ac_includes_default
10084 /* malloc might have been renamed as rpl_malloc. */
10087 /* Thanks to Mike Haertel and Jim Avera for this test.
10088 Here is a matrix of mmap possibilities:
10089 mmap private not fixed
10090 mmap private fixed at somewhere currently unmapped
10091 mmap private fixed at somewhere already mapped
10092 mmap shared not fixed
10093 mmap shared fixed at somewhere currently unmapped
10094 mmap shared fixed at somewhere already mapped
10095 For private mappings, we should verify that changes cannot be read()
10096 back from the file, nor mmap's back from the file at a different
10097 address. (There have been systems where private was not correctly
10098 implemented like the infamous i386 svr4.0, and systems where the
10099 VM page cache was not coherent with the file system buffer cache
10100 like early versions of FreeBSD and possibly contemporary NetBSD.)
10101 For shared mappings, we should conversely verify that changes get
10102 propagated back to all the places they're supposed to be.
10104 Grep wants private fixed already mapped.
10105 The main things grep needs to know about mmap are:
10106 * does it exist and is it safe to write into the mmap'd area
10107 * how to use it (BSD variants) */
10110 #include <sys/mman.h>
10112 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10116 /* This mess was copied from the GNU getpagesize.h. */
10117 #ifndef HAVE_GETPAGESIZE
10118 /* Assume that all systems that can run configure have sys/param.h. */
10119 # ifndef HAVE_SYS_PARAM_H
10120 # define HAVE_SYS_PARAM_H 1
10123 # ifdef _SC_PAGESIZE
10124 # define getpagesize() sysconf(_SC_PAGESIZE)
10125 # else /* no _SC_PAGESIZE */
10126 # ifdef HAVE_SYS_PARAM_H
10127 # include <sys/param.h>
10128 # ifdef EXEC_PAGESIZE
10129 # define getpagesize() EXEC_PAGESIZE
10130 # else /* no EXEC_PAGESIZE */
10132 # define getpagesize() NBPG * CLSIZE
10135 # endif /* no CLSIZE */
10136 # else /* no NBPG */
10138 # define getpagesize() NBPC
10139 # else /* no NBPC */
10141 # define getpagesize() PAGESIZE
10142 # endif /* PAGESIZE */
10143 # endif /* no NBPC */
10144 # endif /* no NBPG */
10145 # endif /* no EXEC_PAGESIZE */
10146 # else /* no HAVE_SYS_PARAM_H */
10147 # define getpagesize() 8192 /* punt totally */
10148 # endif /* no HAVE_SYS_PARAM_H */
10149 # endif /* no _SC_PAGESIZE */
10151 #endif /* no HAVE_GETPAGESIZE */
10156 char *data, *data2, *data3;
10160 pagesize = getpagesize ();
10162 /* First, make a file with some known garbage in it. */
10163 data = (char *) malloc (pagesize);
10166 for (i = 0; i < pagesize; ++i)
10167 *(data + i) = rand ();
10169 fd = creat ("conftest.mmap", 0600);
10172 if (write (fd, data, pagesize) != pagesize)
10176 /* Next, try to mmap the file at a fixed address which already has
10177 something else allocated at it. If we can, also make sure that
10178 we see the same garbage. */
10179 fd = open ("conftest.mmap", O_RDWR);
10182 data2 = (char *) malloc (2 * pagesize);
10185 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10186 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10187 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10189 for (i = 0; i < pagesize; ++i)
10190 if (*(data + i) != *(data2 + i))
10193 /* Finally, make sure that changes to the mapped area do not
10194 percolate back to the file as seen by read(). (This is a bug on
10195 some variants of i386 svr4.0.) */
10196 for (i = 0; i < pagesize; ++i)
10197 *(data2 + i) = *(data2 + i) + 1;
10198 data3 = (char *) malloc (pagesize);
10201 if (read (fd, data3, pagesize) != pagesize)
10203 for (i = 0; i < pagesize; ++i)
10204 if (*(data + i) != *(data3 + i))
10210 rm -f conftest$ac_exeext
10211 if { (ac_try="$ac_link"
10212 case "(($ac_try" in
10213 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10214 *) ac_try_echo
=$ac_try;;
10216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10217 (eval "$ac_link") 2>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10221 { (case "(($ac_try" in
10222 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10223 *) ac_try_echo=$ac_try;;
10225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10226 (eval "$ac_try") 2>&5
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; }; then
10230 ac_cv_func_mmap_fixed_mapped=yes
10232 echo "$as_me: program exited with status $ac_status" >&5
10233 echo "$as_me: failed program was:" >&5
10234 sed 's/^/| /' conftest.$ac_ext >&5
10236 ( exit $ac_status )
10237 ac_cv_func_mmap_fixed_mapped=no
10239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10244 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10245 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10246 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10248 cat >>confdefs.h <<\_ACEOF
10249 #define HAVE_MMAP 1
10253 rm -f conftest.mmap
10255 if test $use_mmap_for_buffers = yes; then
10259 LIBS="$libsrc_libs $LIBS"
10262 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10263 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10264 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10265 echo $ECHO_N "(cached) $ECHO_C" >&6
10267 ac_check_lib_save_LIBS=$LIBS
10268 LIBS="-ldnet $LIBS"
10269 cat >conftest.$ac_ext <<_ACEOF
10272 cat confdefs.h >>conftest.$ac_ext
10273 cat >>conftest.$ac_ext <<_ACEOF
10274 /* end confdefs.h. */
10276 /* Override any GCC internal prototype to avoid an error.
10277 Use char because int might match the return type of a GCC
10278 builtin and then its argument prototype would still apply. */
10286 return dnet_ntoa ();
10291 rm -f conftest.$ac_objext conftest$ac_exeext
10292 if { (ac_try="$ac_link"
10293 case "(($ac_try" in
10294 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10295 *) ac_try_echo
=$ac_try;;
10297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10298 (eval "$ac_link") 2>conftest.er1
10300 grep -v '^ *+' conftest.er1
>conftest.err
10302 cat conftest.err
>&5
10303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10304 (exit $ac_status); } && {
10305 test -z "$ac_c_werror_flag" ||
10306 test ! -s conftest.err
10307 } && test -s conftest
$ac_exeext &&
10308 $as_test_x conftest
$ac_exeext; then
10309 ac_cv_lib_dnet_dnet_ntoa
=yes
10311 echo "$as_me: failed program was:" >&5
10312 sed 's/^/| /' conftest.
$ac_ext >&5
10314 ac_cv_lib_dnet_dnet_ntoa
=no
10317 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10318 conftest
$ac_exeext conftest.
$ac_ext
10319 LIBS
=$ac_check_lib_save_LIBS
10321 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10322 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10323 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10324 cat >>confdefs.h
<<_ACEOF
10325 #define HAVE_LIBDNET 1
10328 LIBS
="-ldnet $LIBS"
10333 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10334 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10335 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10336 echo $ECHO_N "(cached) $ECHO_C" >&6
10338 ac_check_lib_save_LIBS
=$LIBS
10339 LIBS
="-lXbsd $LIBS"
10340 cat >conftest.
$ac_ext <<_ACEOF
10343 cat confdefs.h
>>conftest.
$ac_ext
10344 cat >>conftest.
$ac_ext <<_ACEOF
10345 /* end confdefs.h. */
10356 rm -f conftest.
$ac_objext conftest
$ac_exeext
10357 if { (ac_try
="$ac_link"
10358 case "(($ac_try" in
10359 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10360 *) ac_try_echo=$ac_try;;
10362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10363 (eval "$ac_link") 2>conftest.er1
10365 grep -v '^ *+' conftest.er1 >conftest.err
10367 cat conftest.err >&5
10368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10369 (exit $ac_status); } && {
10370 test -z "$ac_c_werror_flag" ||
10371 test ! -s conftest.err
10372 } && test -s conftest$ac_exeext &&
10373 $as_test_x conftest$ac_exeext; then
10374 ac_cv_lib_Xbsd_main=yes
10376 echo "$as_me: failed program was:" >&5
10377 sed 's/^/| /' conftest.$ac_ext >&5
10379 ac_cv_lib_Xbsd_main=no
10382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10383 conftest$ac_exeext conftest.$ac_ext
10384 LIBS=$ac_check_lib_save_LIBS
10386 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10387 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10388 if test $ac_cv_lib_Xbsd_main = yes; then
10389 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10394 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10395 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10396 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10397 echo $ECHO_N "(cached) $ECHO_C" >&6
10399 ac_check_lib_save_LIBS=$LIBS
10400 LIBS="-lpthreads $LIBS"
10401 cat >conftest.$ac_ext <<_ACEOF
10404 cat confdefs.h >>conftest.$ac_ext
10405 cat >>conftest.$ac_ext <<_ACEOF
10406 /* end confdefs.h. */
10408 /* Override any GCC internal prototype to avoid an error.
10409 Use char because int might match the return type of a GCC
10410 builtin and then its argument prototype would still apply. */
10418 return cma_open ();
10423 rm -f conftest.$ac_objext conftest$ac_exeext
10424 if { (ac_try="$ac_link"
10425 case "(($ac_try" in
10426 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10427 *) ac_try_echo
=$ac_try;;
10429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10430 (eval "$ac_link") 2>conftest.er1
10432 grep -v '^ *+' conftest.er1
>conftest.err
10434 cat conftest.err
>&5
10435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10436 (exit $ac_status); } && {
10437 test -z "$ac_c_werror_flag" ||
10438 test ! -s conftest.err
10439 } && test -s conftest
$ac_exeext &&
10440 $as_test_x conftest
$ac_exeext; then
10441 ac_cv_lib_pthreads_cma_open
=yes
10443 echo "$as_me: failed program was:" >&5
10444 sed 's/^/| /' conftest.
$ac_ext >&5
10446 ac_cv_lib_pthreads_cma_open
=no
10449 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10450 conftest
$ac_exeext conftest.
$ac_ext
10451 LIBS
=$ac_check_lib_save_LIBS
10453 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10454 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10455 if test $ac_cv_lib_pthreads_cma_open = yes; then
10456 cat >>confdefs.h
<<_ACEOF
10457 #define HAVE_LIBPTHREADS 1
10460 LIBS
="-lpthreads $LIBS"
10468 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10469 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10470 if test "${gdb_cv_bigtoc+set}" = set; then
10471 echo $ECHO_N "(cached) $ECHO_C" >&6
10475 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10476 *) gdb_cv_bigtoc
=-bbigtoc ;;
10479 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10480 cat >conftest.
$ac_ext <<_ACEOF
10483 cat confdefs.h
>>conftest.
$ac_ext
10484 cat >>conftest.
$ac_ext <<_ACEOF
10485 /* end confdefs.h. */
10495 rm -f conftest.
$ac_objext conftest
$ac_exeext
10496 if { (ac_try
="$ac_link"
10497 case "(($ac_try" in
10498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10499 *) ac_try_echo=$ac_try;;
10501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10502 (eval "$ac_link") 2>conftest.er1
10504 grep -v '^ *+' conftest.er1 >conftest.err
10506 cat conftest.err >&5
10507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10508 (exit $ac_status); } && {
10509 test -z "$ac_c_werror_flag" ||
10510 test ! -s conftest.err
10511 } && test -s conftest$ac_exeext &&
10512 $as_test_x conftest$ac_exeext; then
10515 echo "$as_me: failed program was:" >&5
10516 sed 's/^/| /' conftest.$ac_ext >&5
10521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10522 conftest$ac_exeext conftest.$ac_ext
10525 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10526 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10530 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10531 # used for the tests that follow. We set them back to REAL_CFLAGS and
10532 # REAL_CPPFLAGS later on.
10534 REAL_CPPFLAGS="$CPPFLAGS"
10536 if test "${HAVE_X11}" = "yes"; then
10537 DEFS="$C_SWITCH_X_SITE $DEFS"
10538 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10540 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10541 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10543 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10544 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10545 # but it's more convenient here to set LD_RUN_PATH
10546 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10547 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10548 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10552 if test "${opsys}" = "gnu-linux"; then
10553 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10554 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10555 cat >conftest.$ac_ext <<_ACEOF
10558 cat confdefs.h >>conftest.$ac_ext
10559 cat >>conftest.$ac_ext <<_ACEOF
10560 /* end confdefs.h. */
10565 XOpenDisplay ("foo");
10570 rm -f conftest.$ac_objext conftest$ac_exeext
10571 if { (ac_try="$ac_link"
10572 case "(($ac_try" in
10573 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10574 *) ac_try_echo
=$ac_try;;
10576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10577 (eval "$ac_link") 2>conftest.er1
10579 grep -v '^ *+' conftest.er1
>conftest.err
10581 cat conftest.err
>&5
10582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10583 (exit $ac_status); } && {
10584 test -z "$ac_c_werror_flag" ||
10585 test ! -s conftest.err
10586 } && test -s conftest
$ac_exeext &&
10587 $as_test_x conftest
$ac_exeext; then
10588 xlinux_first_failure
=no
10590 echo "$as_me: failed program was:" >&5
10591 sed 's/^/| /' conftest.
$ac_ext >&5
10593 xlinux_first_failure
=yes
10596 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10597 conftest
$ac_exeext conftest.
$ac_ext
10598 if test "${xlinux_first_failure}" = "yes"; then
10599 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10600 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10601 OLD_CPPFLAGS
="$CPPFLAGS"
10603 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10604 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10605 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10606 LIBS
="$LIBS -b i486-linuxaout"
10607 cat >conftest.
$ac_ext <<_ACEOF
10610 cat confdefs.h
>>conftest.
$ac_ext
10611 cat >>conftest.
$ac_ext <<_ACEOF
10612 /* end confdefs.h. */
10617 XOpenDisplay ("foo");
10622 rm -f conftest.
$ac_objext conftest
$ac_exeext
10623 if { (ac_try
="$ac_link"
10624 case "(($ac_try" in
10625 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10626 *) ac_try_echo=$ac_try;;
10628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10629 (eval "$ac_link") 2>conftest.er1
10631 grep -v '^ *+' conftest.er1 >conftest.err
10633 cat conftest.err >&5
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); } && {
10636 test -z "$ac_c_werror_flag" ||
10637 test ! -s conftest.err
10638 } && test -s conftest$ac_exeext &&
10639 $as_test_x conftest$ac_exeext; then
10640 xlinux_second_failure=no
10642 echo "$as_me: failed program was:" >&5
10643 sed 's/^/| /' conftest.$ac_ext >&5
10645 xlinux_second_failure=yes
10648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10649 conftest$ac_exeext conftest.$ac_ext
10650 if test "${xlinux_second_failure}" = "yes"; then
10651 # If we get the same failure with -b, there is no use adding -b.
10652 # So take it out. This plays safe.
10653 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10654 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10655 CPPFLAGS="$OLD_CPPFLAGS"
10657 { echo "$as_me:$LINENO: result: no" >&5
10658 echo "${ECHO_T}no" >&6; }
10660 { echo "$as_me:$LINENO: result: yes" >&5
10661 echo "${ECHO_T}yes" >&6; }
10664 { echo "$as_me:$LINENO: result: no" >&5
10665 echo "${ECHO_T}no" >&6; }
10669 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10670 # header files included from there.
10671 { echo "$as_me:$LINENO: checking for Xkb" >&5
10672 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10673 cat >conftest.$ac_ext <<_ACEOF
10676 cat confdefs.h >>conftest.$ac_ext
10677 cat >>conftest.$ac_ext <<_ACEOF
10678 /* end confdefs.h. */
10679 #include <X11/Xlib.h>
10680 #include <X11/XKBlib.h>
10684 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10689 rm -f conftest.$ac_objext conftest$ac_exeext
10690 if { (ac_try="$ac_link"
10691 case "(($ac_try" in
10692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10693 *) ac_try_echo
=$ac_try;;
10695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10696 (eval "$ac_link") 2>conftest.er1
10698 grep -v '^ *+' conftest.er1
>conftest.err
10700 cat conftest.err
>&5
10701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10702 (exit $ac_status); } && {
10703 test -z "$ac_c_werror_flag" ||
10704 test ! -s conftest.err
10705 } && test -s conftest
$ac_exeext &&
10706 $as_test_x conftest
$ac_exeext; then
10709 echo "$as_me: failed program was:" >&5
10710 sed 's/^/| /' conftest.
$ac_ext >&5
10715 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10716 conftest
$ac_exeext conftest.
$ac_ext
10717 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10718 echo "${ECHO_T}$emacs_xkb" >&6; }
10719 if test $emacs_xkb = yes; then
10721 cat >>confdefs.h
<<\_ACEOF
10722 #define HAVE_XKBGETKEYBOARD 1
10731 for ac_func
in XrmSetDatabase XScreenResourceString \
10732 XScreenNumberOfScreen XSetWMProtocols
10734 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10735 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10736 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10737 if { as_var
=$as_ac_var; eval "test \"\${$as_var+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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10747 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10748 #define $ac_func innocuous_$ac_func
10750 /* System header to define __stub macros and hopefully few prototypes,
10751 which can conflict with char $ac_func (); below.
10752 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10753 <limits.h> exists even on freestanding compilers. */
10756 # include <limits.h>
10758 # include <assert.h>
10763 /* Override any GCC internal prototype to avoid an error.
10764 Use char because int might match the return type of a GCC
10765 builtin and then its argument prototype would still apply. */
10770 /* The GNU C library defines this for functions which it implements
10771 to always fail with ENOSYS. Some functions are actually named
10772 something starting with __ and the normal name is an alias. */
10773 #if defined __stub_$ac_func || defined __stub___$ac_func
10780 return $ac_func ();
10785 rm -f conftest.
$ac_objext conftest
$ac_exeext
10786 if { (ac_try
="$ac_link"
10787 case "(($ac_try" in
10788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10789 *) ac_try_echo=$ac_try;;
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792 (eval "$ac_link") 2>conftest.er1
10794 grep -v '^ *+' conftest.er1 >conftest.err
10796 cat conftest.err >&5
10797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798 (exit $ac_status); } && {
10799 test -z "$ac_c_werror_flag" ||
10800 test ! -s conftest.err
10801 } && test -s conftest$ac_exeext &&
10802 $as_test_x conftest$ac_exeext; then
10803 eval "$as_ac_var=yes"
10805 echo "$as_me: failed program was:" >&5
10806 sed 's/^/| /' conftest.$ac_ext >&5
10808 eval "$as_ac_var=no"
10811 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10812 conftest$ac_exeext conftest.$ac_ext
10814 ac_res=`eval echo '${'$as_ac_var'}'`
10815 { echo "$as_me:$LINENO: result: $ac_res" >&5
10816 echo "${ECHO_T}$ac_res" >&6; }
10817 if test `eval echo '${'$as_ac_var'}'` = yes; then
10818 cat >>confdefs.h <<_ACEOF
10819 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10827 if test "${window_system}" = "x11"; then
10828 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10829 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10830 if test "${emacs_cv_x11_version_6+set}" = set; then
10831 echo $ECHO_N "(cached) $ECHO_C" >&6
10833 cat >conftest.$ac_ext <<_ACEOF
10836 cat confdefs.h >>conftest.$ac_ext
10837 cat >>conftest.$ac_ext <<_ACEOF
10838 /* end confdefs.h. */
10839 #include <X11/Xlib.h>
10843 #if XlibSpecificationRelease < 6
10851 rm -f conftest.$ac_objext conftest$ac_exeext
10852 if { (ac_try="$ac_link"
10853 case "(($ac_try" in
10854 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10855 *) ac_try_echo
=$ac_try;;
10857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10858 (eval "$ac_link") 2>conftest.er1
10860 grep -v '^ *+' conftest.er1
>conftest.err
10862 cat conftest.err
>&5
10863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10864 (exit $ac_status); } && {
10865 test -z "$ac_c_werror_flag" ||
10866 test ! -s conftest.err
10867 } && test -s conftest
$ac_exeext &&
10868 $as_test_x conftest
$ac_exeext; then
10869 emacs_cv_x11_version_6
=yes
10871 echo "$as_me: failed program was:" >&5
10872 sed 's/^/| /' conftest.
$ac_ext >&5
10874 emacs_cv_x11_version_6
=no
10877 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10878 conftest
$ac_exeext conftest.
$ac_ext
10881 if test $emacs_cv_x11_version_6 = yes; then
10882 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10883 echo "${ECHO_T}6 or newer" >&6; }
10885 cat >>confdefs.h
<<\_ACEOF
10886 #define HAVE_X11R6 1
10890 { echo "$as_me:$LINENO: result: before 6" >&5
10891 echo "${ECHO_T}before 6" >&6; }
10896 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10898 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10899 if test "${with_rsvg}" != "no"; then
10900 RSVG_REQUIRED
=2.0.0
10901 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10906 # Extract the first word of "pkg-config", so it can be a program name with args.
10907 set dummy pkg-config
; ac_word
=$2
10908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10910 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10911 echo $ECHO_N "(cached) $ECHO_C" >&6
10913 case $PKG_CONFIG in
10915 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10918 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10919 for as_dir
in $PATH
10922 test -z "$as_dir" && as_dir
=.
10923 for ac_exec_ext
in '' $ac_executable_extensions; do
10924 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10925 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10926 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10933 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10937 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10938 if test -n "$PKG_CONFIG"; then
10939 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10940 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10942 { echo "$as_me:$LINENO: result: no" >&5
10943 echo "${ECHO_T}no" >&6; }
10948 if test "$PKG_CONFIG" = "no" ; then
10951 PKG_CONFIG_MIN_VERSION
=0.9.0
10952 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10953 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10954 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10956 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10957 { echo "$as_me:$LINENO: result: yes" >&5
10958 echo "${ECHO_T}yes" >&6; }
10961 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10962 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10963 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10964 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10965 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10967 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10968 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10969 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10970 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10971 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10973 { echo "$as_me:$LINENO: result: no" >&5
10974 echo "${ECHO_T}no" >&6; }
10977 ## If we have a custom action on failure, don't print errors, but
10978 ## do set a variable so people can do so.
10979 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10986 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10987 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10991 if test $succeeded = yes; then
11000 if test ".${RSVG_CFLAGS}" != "."; then
11003 cat >>confdefs.h
<<\_ACEOF
11004 #define HAVE_RSVG 1
11007 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
11008 LIBS
="$RSVG_LIBS $LIBS"
11015 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
11018 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11023 # Extract the first word of "pkg-config", so it can be a program name with args.
11024 set dummy pkg-config
; ac_word
=$2
11025 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11027 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 case $PKG_CONFIG in
11032 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11035 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11036 for as_dir
in $PATH
11039 test -z "$as_dir" && as_dir
=.
11040 for ac_exec_ext
in '' $ac_executable_extensions; do
11041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11042 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11050 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11054 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11055 if test -n "$PKG_CONFIG"; then
11056 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11057 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11059 { echo "$as_me:$LINENO: result: no" >&5
11060 echo "${ECHO_T}no" >&6; }
11065 if test "$PKG_CONFIG" = "no" ; then
11068 PKG_CONFIG_MIN_VERSION
=0.9.0
11069 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11070 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11071 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11073 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11074 { echo "$as_me:$LINENO: result: yes" >&5
11075 echo "${ECHO_T}yes" >&6; }
11078 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11079 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11080 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11081 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11082 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11084 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11085 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11086 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11087 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11088 echo "${ECHO_T}$GTK_LIBS" >&6; }
11090 { echo "$as_me:$LINENO: result: no" >&5
11091 echo "${ECHO_T}no" >&6; }
11094 ## If we have a custom action on failure, don't print errors, but
11095 ## do set a variable so people can do so.
11096 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11103 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11104 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11108 if test $succeeded = yes; then
11114 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11115 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11116 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11117 { (exit 1); exit 1; }; }
11122 if test x
"$pkg_check_gtk" = xyes
; then
11126 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
11127 CFLAGS
="$CFLAGS $GTK_CFLAGS"
11128 LIBS
="$GTK_LIBS $LIBS"
11131 for ac_func
in gtk_main
11133 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11134 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11136 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 cat >conftest.
$ac_ext <<_ACEOF
11142 cat confdefs.h
>>conftest.
$ac_ext
11143 cat >>conftest.
$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11147 #define $ac_func innocuous_$ac_func
11149 /* System header to define __stub macros and hopefully few prototypes,
11150 which can conflict with char $ac_func (); below.
11151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11152 <limits.h> exists even on freestanding compilers. */
11155 # include <limits.h>
11157 # include <assert.h>
11162 /* Override any GCC internal prototype to avoid an error.
11163 Use char because int might match the return type of a GCC
11164 builtin and then its argument prototype would still apply. */
11169 /* The GNU C library defines this for functions which it implements
11170 to always fail with ENOSYS. Some functions are actually named
11171 something starting with __ and the normal name is an alias. */
11172 #if defined __stub_$ac_func || defined __stub___$ac_func
11179 return $ac_func ();
11184 rm -f conftest.
$ac_objext conftest
$ac_exeext
11185 if { (ac_try
="$ac_link"
11186 case "(($ac_try" in
11187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_link") 2>conftest.er1
11193 grep -v '^ *+' conftest.er1 >conftest.err
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } && {
11198 test -z "$ac_c_werror_flag" ||
11199 test ! -s conftest.err
11200 } && test -s conftest$ac_exeext &&
11201 $as_test_x conftest$ac_exeext; then
11202 eval "$as_ac_var=yes"
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11207 eval "$as_ac_var=no"
11210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11211 conftest$ac_exeext conftest.$ac_ext
11213 ac_res=`eval echo '${'$as_ac_var'}'`
11214 { echo "$as_me:$LINENO: result: $ac_res" >&5
11215 echo "${ECHO_T}$ac_res" >&6; }
11216 if test `eval echo '${'$as_ac_var'}'` = yes; then
11217 cat >>confdefs.h <<_ACEOF
11218 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11224 if test "${GTK_COMPILES}" != "yes"; then
11225 if test "$USE_X_TOOLKIT" != "maybe"; then
11226 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11227 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11228 { (exit 1); exit 1; }; };
11233 cat >>confdefs.h <<\_ACEOF
11238 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11241 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11242 closing open displays. This is no problem if you just use
11243 one display, but if you use more than one and close one of them
11244 Emacs may crash." >&5
11245 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11246 closing open displays. This is no problem if you just use
11247 one display, but if you use more than one and close one of them
11248 Emacs may crash." >&2;}
11256 if test "${HAVE_GTK}" = "yes"; then
11258 if test "$with_toolkit_scroll_bars" != no; then
11259 with_toolkit_scroll_bars=yes
11262 HAVE_GTK_MULTIDISPLAY=no
11264 for ac_func in gdk_display_open
11266 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11270 echo $ECHO_N "(cached) $ECHO_C" >&6
11272 cat >conftest.$ac_ext <<_ACEOF
11275 cat confdefs.h >>conftest.$ac_ext
11276 cat >>conftest.$ac_ext <<_ACEOF
11277 /* end confdefs.h. */
11278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11280 #define $ac_func innocuous_$ac_func
11282 /* System header to define __stub macros and hopefully few prototypes,
11283 which can conflict with char $ac_func (); below.
11284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11285 <limits.h> exists even on freestanding compilers. */
11288 # include <limits.h>
11290 # include <assert.h>
11295 /* Override any GCC internal prototype to avoid an error.
11296 Use char because int might match the return type of a GCC
11297 builtin and then its argument prototype would still apply. */
11302 /* The GNU C library defines this for functions which it implements
11303 to always fail with ENOSYS. Some functions are actually named
11304 something starting with __ and the normal name is an alias. */
11305 #if defined __stub_$ac_func || defined __stub___$ac_func
11312 return $ac_func ();
11317 rm -f conftest.$ac_objext conftest$ac_exeext
11318 if { (ac_try="$ac_link"
11319 case "(($ac_try" in
11320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11321 *) ac_try_echo
=$ac_try;;
11323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11324 (eval "$ac_link") 2>conftest.er1
11326 grep -v '^ *+' conftest.er1
>conftest.err
11328 cat conftest.err
>&5
11329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11330 (exit $ac_status); } && {
11331 test -z "$ac_c_werror_flag" ||
11332 test ! -s conftest.err
11333 } && test -s conftest
$ac_exeext &&
11334 $as_test_x conftest
$ac_exeext; then
11335 eval "$as_ac_var=yes"
11337 echo "$as_me: failed program was:" >&5
11338 sed 's/^/| /' conftest.
$ac_ext >&5
11340 eval "$as_ac_var=no"
11343 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11344 conftest
$ac_exeext conftest.
$ac_ext
11346 ac_res
=`eval echo '${'$as_ac_var'}'`
11347 { echo "$as_me:$LINENO: result: $ac_res" >&5
11348 echo "${ECHO_T}$ac_res" >&6; }
11349 if test `eval echo '${'$as_ac_var'}'` = yes; then
11350 cat >>confdefs.h
<<_ACEOF
11351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11353 HAVE_GTK_MULTIDISPLAY
=yes
11357 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11359 cat >>confdefs.h
<<\_ACEOF
11360 #define HAVE_GTK_MULTIDISPLAY 1
11365 HAVE_GTK_FILE_SELECTION
=no
11367 for ac_func
in gtk_file_selection_new
11369 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11370 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11371 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11372 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11373 echo $ECHO_N "(cached) $ECHO_C" >&6
11375 cat >conftest.
$ac_ext <<_ACEOF
11378 cat confdefs.h
>>conftest.
$ac_ext
11379 cat >>conftest.
$ac_ext <<_ACEOF
11380 /* end confdefs.h. */
11381 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11382 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11383 #define $ac_func innocuous_$ac_func
11385 /* System header to define __stub macros and hopefully few prototypes,
11386 which can conflict with char $ac_func (); below.
11387 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11388 <limits.h> exists even on freestanding compilers. */
11391 # include <limits.h>
11393 # include <assert.h>
11398 /* Override any GCC internal prototype to avoid an error.
11399 Use char because int might match the return type of a GCC
11400 builtin and then its argument prototype would still apply. */
11405 /* The GNU C library defines this for functions which it implements
11406 to always fail with ENOSYS. Some functions are actually named
11407 something starting with __ and the normal name is an alias. */
11408 #if defined __stub_$ac_func || defined __stub___$ac_func
11415 return $ac_func ();
11420 rm -f conftest.
$ac_objext conftest
$ac_exeext
11421 if { (ac_try
="$ac_link"
11422 case "(($ac_try" in
11423 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11424 *) ac_try_echo=$ac_try;;
11426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11427 (eval "$ac_link") 2>conftest.er1
11429 grep -v '^ *+' conftest.er1 >conftest.err
11431 cat conftest.err >&5
11432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11433 (exit $ac_status); } && {
11434 test -z "$ac_c_werror_flag" ||
11435 test ! -s conftest.err
11436 } && test -s conftest$ac_exeext &&
11437 $as_test_x conftest$ac_exeext; then
11438 eval "$as_ac_var=yes"
11440 echo "$as_me: failed program was:" >&5
11441 sed 's/^/| /' conftest.$ac_ext >&5
11443 eval "$as_ac_var=no"
11446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11447 conftest$ac_exeext conftest.$ac_ext
11449 ac_res=`eval echo '${'$as_ac_var'}'`
11450 { echo "$as_me:$LINENO: result: $ac_res" >&5
11451 echo "${ECHO_T}$ac_res" >&6; }
11452 if test `eval echo '${'$as_ac_var'}'` = yes; then
11453 cat >>confdefs.h <<_ACEOF
11454 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11456 HAVE_GTK_FILE_SELECTION=yes
11461 HAVE_GTK_FILE_CHOOSER=no
11463 for ac_func in gtk_file_chooser_dialog_new
11465 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11466 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11467 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11468 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11469 echo $ECHO_N "(cached) $ECHO_C" >&6
11471 cat >conftest.$ac_ext <<_ACEOF
11474 cat confdefs.h >>conftest.$ac_ext
11475 cat >>conftest.$ac_ext <<_ACEOF
11476 /* end confdefs.h. */
11477 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11478 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11479 #define $ac_func innocuous_$ac_func
11481 /* System header to define __stub macros and hopefully few prototypes,
11482 which can conflict with char $ac_func (); below.
11483 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11484 <limits.h> exists even on freestanding compilers. */
11487 # include <limits.h>
11489 # include <assert.h>
11494 /* Override any GCC internal prototype to avoid an error.
11495 Use char because int might match the return type of a GCC
11496 builtin and then its argument prototype would still apply. */
11501 /* The GNU C library defines this for functions which it implements
11502 to always fail with ENOSYS. Some functions are actually named
11503 something starting with __ and the normal name is an alias. */
11504 #if defined __stub_$ac_func || defined __stub___$ac_func
11511 return $ac_func ();
11516 rm -f conftest.$ac_objext conftest$ac_exeext
11517 if { (ac_try="$ac_link"
11518 case "(($ac_try" in
11519 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11520 *) ac_try_echo
=$ac_try;;
11522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11523 (eval "$ac_link") 2>conftest.er1
11525 grep -v '^ *+' conftest.er1
>conftest.err
11527 cat conftest.err
>&5
11528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11529 (exit $ac_status); } && {
11530 test -z "$ac_c_werror_flag" ||
11531 test ! -s conftest.err
11532 } && test -s conftest
$ac_exeext &&
11533 $as_test_x conftest
$ac_exeext; then
11534 eval "$as_ac_var=yes"
11536 echo "$as_me: failed program was:" >&5
11537 sed 's/^/| /' conftest.
$ac_ext >&5
11539 eval "$as_ac_var=no"
11542 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11543 conftest
$ac_exeext conftest.
$ac_ext
11545 ac_res
=`eval echo '${'$as_ac_var'}'`
11546 { echo "$as_me:$LINENO: result: $ac_res" >&5
11547 echo "${ECHO_T}$ac_res" >&6; }
11548 if test `eval echo '${'$as_ac_var'}'` = yes; then
11549 cat >>confdefs.h
<<_ACEOF
11550 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11552 HAVE_GTK_FILE_CHOOSER
=yes
11557 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11558 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11560 cat >>confdefs.h
<<\_ACEOF
11561 #define HAVE_GTK_FILE_BOTH 1
11566 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11567 HAVE_GTK_AND_PTHREAD
=no
11569 for ac_header
in pthread.h
11571 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11572 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11575 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11576 echo $ECHO_N "(cached) $ECHO_C" >&6
11578 ac_res
=`eval echo '${'$as_ac_Header'}'`
11579 { echo "$as_me:$LINENO: result: $ac_res" >&5
11580 echo "${ECHO_T}$ac_res" >&6; }
11582 # Is the header compilable?
11583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11585 cat >conftest.
$ac_ext <<_ACEOF
11588 cat confdefs.h
>>conftest.
$ac_ext
11589 cat >>conftest.
$ac_ext <<_ACEOF
11590 /* end confdefs.h. */
11591 $ac_includes_default
11592 #include <$ac_header>
11594 rm -f conftest.
$ac_objext
11595 if { (ac_try
="$ac_compile"
11596 case "(($ac_try" in
11597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11598 *) ac_try_echo=$ac_try;;
11600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11601 (eval "$ac_compile") 2>conftest.er1
11603 grep -v '^ *+' conftest.er1 >conftest.err
11605 cat conftest.err >&5
11606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11607 (exit $ac_status); } && {
11608 test -z "$ac_c_werror_flag" ||
11609 test ! -s conftest.err
11610 } && test -s conftest.$ac_objext; then
11611 ac_header_compiler=yes
11613 echo "$as_me: failed program was:" >&5
11614 sed 's/^/| /' conftest.$ac_ext >&5
11616 ac_header_compiler=no
11619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11621 echo "${ECHO_T}$ac_header_compiler" >&6; }
11623 # Is the header present?
11624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11626 cat >conftest.$ac_ext <<_ACEOF
11629 cat confdefs.h >>conftest.$ac_ext
11630 cat >>conftest.$ac_ext <<_ACEOF
11631 /* end confdefs.h. */
11632 #include <$ac_header>
11634 if { (ac_try="$ac_cpp conftest.$ac_ext"
11635 case "(($ac_try" in
11636 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11637 *) ac_try_echo
=$ac_try;;
11639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11642 grep -v '^ *+' conftest.er1
>conftest.err
11644 cat conftest.err
>&5
11645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11646 (exit $ac_status); } >/dev
/null
&& {
11647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11648 test ! -s conftest.err
11650 ac_header_preproc
=yes
11652 echo "$as_me: failed program was:" >&5
11653 sed 's/^/| /' conftest.
$ac_ext >&5
11655 ac_header_preproc
=no
11658 rm -f conftest.err conftest.
$ac_ext
11659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11660 echo "${ECHO_T}$ac_header_preproc" >&6; }
11662 # So? What about this header?
11663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11669 ac_header_preproc
=yes
11672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11689 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11690 echo $ECHO_N "(cached) $ECHO_C" >&6
11692 eval "$as_ac_Header=\$ac_header_preproc"
11694 ac_res
=`eval echo '${'$as_ac_Header'}'`
11695 { echo "$as_me:$LINENO: result: $ac_res" >&5
11696 echo "${ECHO_T}$ac_res" >&6; }
11699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11700 cat >>confdefs.h
<<_ACEOF
11701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11708 if test "$ac_cv_header_pthread_h"; then
11709 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11710 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11711 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 ac_check_lib_save_LIBS
=$LIBS
11715 LIBS
="-lpthread $LIBS"
11716 cat >conftest.
$ac_ext <<_ACEOF
11719 cat confdefs.h
>>conftest.
$ac_ext
11720 cat >>conftest.
$ac_ext <<_ACEOF
11721 /* end confdefs.h. */
11723 /* Override any GCC internal prototype to avoid an error.
11724 Use char because int might match the return type of a GCC
11725 builtin and then its argument prototype would still apply. */
11729 char pthread_self ();
11733 return pthread_self ();
11738 rm -f conftest.
$ac_objext conftest
$ac_exeext
11739 if { (ac_try
="$ac_link"
11740 case "(($ac_try" in
11741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11742 *) ac_try_echo=$ac_try;;
11744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11745 (eval "$ac_link") 2>conftest.er1
11747 grep -v '^ *+' conftest.er1 >conftest.err
11749 cat conftest.err >&5
11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11751 (exit $ac_status); } && {
11752 test -z "$ac_c_werror_flag" ||
11753 test ! -s conftest.err
11754 } && test -s conftest$ac_exeext &&
11755 $as_test_x conftest$ac_exeext; then
11756 ac_cv_lib_pthread_pthread_self=yes
11758 echo "$as_me: failed program was:" >&5
11759 sed 's/^/| /' conftest.$ac_ext >&5
11761 ac_cv_lib_pthread_pthread_self=no
11764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11765 conftest$ac_exeext conftest.$ac_ext
11766 LIBS=$ac_check_lib_save_LIBS
11768 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11769 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11770 if test $ac_cv_lib_pthread_pthread_self = yes; then
11771 HAVE_GTK_AND_PTHREAD=yes
11775 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11776 case "${canonical}" in
11778 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11781 cat >>confdefs.h <<\_ACEOF
11782 #define HAVE_GTK_AND_PTHREAD 1
11790 if test "${with_dbus}" = "yes"; then
11794 # Extract the first word of "pkg-config", so it can be a program name with args.
11795 set dummy pkg-config; ac_word=$2
11796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11798 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11799 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 case $PKG_CONFIG in
11803 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11807 for as_dir in $PATH
11810 test -z "$as_dir" && as_dir=.
11811 for ac_exec_ext in '' $ac_executable_extensions; do
11812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11813 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11821 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11825 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11826 if test -n "$PKG_CONFIG"; then
11827 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11828 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11830 { echo "$as_me:$LINENO: result: no" >&5
11831 echo "${ECHO_T}no" >&6; }
11836 if test "$PKG_CONFIG" = "no" ; then
11839 PKG_CONFIG_MIN_VERSION=0.9.0
11840 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11841 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11842 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11844 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11845 { echo "$as_me:$LINENO: result: yes" >&5
11846 echo "${ECHO_T}yes" >&6; }
11849 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11850 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11851 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11852 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11853 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11855 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11856 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11857 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11858 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11859 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11861 { echo "$as_me:$LINENO: result: no" >&5
11862 echo "${ECHO_T}no" >&6; }
11865 ## If we have a custom action on failure, don't print errors, but
11866 ## do set a variable so people can do so.
11867 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11874 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11875 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11879 if test $succeeded = yes; then
11885 if test "$HAVE_DBUS" = yes; then
11887 cat >>confdefs.h <<\_ACEOF
11888 #define HAVE_DBUS 1
11895 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11896 if test "$with_xaw3d" != no; then
11897 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11898 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11899 if test "${emacs_cv_xaw3d+set}" = set; then
11900 echo $ECHO_N "(cached) $ECHO_C" >&6
11902 cat >conftest.$ac_ext <<_ACEOF
11905 cat confdefs.h >>conftest.$ac_ext
11906 cat >>conftest.$ac_ext <<_ACEOF
11907 /* end confdefs.h. */
11909 #include <X11/Intrinsic.h>
11910 #include <X11/Xaw3d/Simple.h>
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (ac_try="$ac_link"
11921 case "(($ac_try" in
11922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11923 *) ac_try_echo
=$ac_try;;
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_link") 2>conftest.er1
11928 grep -v '^ *+' conftest.er1
>conftest.err
11930 cat conftest.err
>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } && {
11933 test -z "$ac_c_werror_flag" ||
11934 test ! -s conftest.err
11935 } && test -s conftest
$ac_exeext &&
11936 $as_test_x conftest
$ac_exeext; then
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.
$ac_ext >&5
11945 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11946 conftest
$ac_exeext conftest.
$ac_ext
11952 if test $emacs_cv_xaw3d = yes; then
11953 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11954 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11955 USE_X_TOOLKIT
=LUCID
11958 cat >>confdefs.h
<<\_ACEOF
11959 #define HAVE_XAW3D 1
11963 { echo "$as_me:$LINENO: result: no" >&5
11964 echo "${ECHO_T}no" >&6; }
11965 { echo "$as_me:$LINENO: checking for libXaw" >&5
11966 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11967 if test "${emacs_cv_xaw+set}" = set; then
11968 echo $ECHO_N "(cached) $ECHO_C" >&6
11970 cat >conftest.
$ac_ext <<_ACEOF
11973 cat confdefs.h
>>conftest.
$ac_ext
11974 cat >>conftest.
$ac_ext <<_ACEOF
11975 /* end confdefs.h. */
11977 #include <X11/Intrinsic.h>
11978 #include <X11/Xaw/Simple.h>
11987 rm -f conftest.
$ac_objext conftest
$ac_exeext
11988 if { (ac_try
="$ac_link"
11989 case "(($ac_try" in
11990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11991 *) ac_try_echo=$ac_try;;
11993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11994 (eval "$ac_link") 2>conftest.er1
11996 grep -v '^ *+' conftest.er1 >conftest.err
11998 cat conftest.err >&5
11999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000 (exit $ac_status); } && {
12001 test -z "$ac_c_werror_flag" ||
12002 test ! -s conftest.err
12003 } && test -s conftest$ac_exeext &&
12004 $as_test_x conftest$ac_exeext; then
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12013 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12014 conftest$ac_exeext conftest.$ac_ext
12017 if test $emacs_cv_xaw = yes; then
12018 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12019 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12020 USE_X_TOOLKIT=LUCID
12021 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12022 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12023 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12024 { (exit 1); exit 1; }; }
12026 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12027 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12033 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12035 if test "${USE_X_TOOLKIT}" != "none"; then
12036 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12037 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12038 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12041 cat >conftest.$ac_ext <<_ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047 #include <X11/Intrinsic.h>
12051 #if XtSpecificationRelease < 6
12059 rm -f conftest.$ac_objext conftest$ac_exeext
12060 if { (ac_try="$ac_link"
12061 case "(($ac_try" in
12062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12063 *) ac_try_echo
=$ac_try;;
12065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12066 (eval "$ac_link") 2>conftest.er1
12068 grep -v '^ *+' conftest.er1
>conftest.err
12070 cat conftest.err
>&5
12071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12072 (exit $ac_status); } && {
12073 test -z "$ac_c_werror_flag" ||
12074 test ! -s conftest.err
12075 } && test -s conftest
$ac_exeext &&
12076 $as_test_x conftest
$ac_exeext; then
12077 emacs_cv_x11_toolkit_version_6
=yes
12079 echo "$as_me: failed program was:" >&5
12080 sed 's/^/| /' conftest.
$ac_ext >&5
12082 emacs_cv_x11_toolkit_version_6
=no
12085 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12086 conftest
$ac_exeext conftest.
$ac_ext
12089 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
12090 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12091 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12092 echo "${ECHO_T}6 or newer" >&6; }
12094 cat >>confdefs.h
<<\_ACEOF
12095 #define HAVE_X11XTR6 1
12099 { echo "$as_me:$LINENO: result: before 6" >&5
12100 echo "${ECHO_T}before 6" >&6; }
12104 if test x
$HAVE_X11XTR6 = xyes
; then
12105 LIBS
="-lXt -lSM -lICE $LIBS"
12110 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12111 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12112 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12113 echo $ECHO_N "(cached) $ECHO_C" >&6
12115 ac_check_lib_save_LIBS
=$LIBS
12117 cat >conftest.
$ac_ext <<_ACEOF
12120 cat confdefs.h
>>conftest.
$ac_ext
12121 cat >>conftest.
$ac_ext <<_ACEOF
12122 /* end confdefs.h. */
12124 /* Override any GCC internal prototype to avoid an error.
12125 Use char because int might match the return type of a GCC
12126 builtin and then its argument prototype would still apply. */
12130 char XmuConvertStandardSelection ();
12134 return XmuConvertStandardSelection ();
12139 rm -f conftest.
$ac_objext conftest
$ac_exeext
12140 if { (ac_try
="$ac_link"
12141 case "(($ac_try" in
12142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12143 *) ac_try_echo=$ac_try;;
12145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12146 (eval "$ac_link") 2>conftest.er1
12148 grep -v '^ *+' conftest.er1 >conftest.err
12150 cat conftest.err >&5
12151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12152 (exit $ac_status); } && {
12153 test -z "$ac_c_werror_flag" ||
12154 test ! -s conftest.err
12155 } && test -s conftest$ac_exeext &&
12156 $as_test_x conftest$ac_exeext; then
12157 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12159 echo "$as_me: failed program was:" >&5
12160 sed 's/^/| /' conftest.$ac_ext >&5
12162 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12166 conftest$ac_exeext conftest.$ac_ext
12167 LIBS=$ac_check_lib_save_LIBS
12169 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12170 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12171 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12172 cat >>confdefs.h <<_ACEOF
12173 #define HAVE_LIBXMU 1
12180 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12183 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12184 if test "${HAVE_X11}" = "yes"; then
12185 if test "${USE_X_TOOLKIT}" != "none"; then
12187 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12188 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12189 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12190 echo $ECHO_N "(cached) $ECHO_C" >&6
12192 ac_check_lib_save_LIBS=$LIBS
12193 LIBS="-lXext $LIBS"
12194 cat >conftest.$ac_ext <<_ACEOF
12197 cat confdefs.h >>conftest.$ac_ext
12198 cat >>conftest.$ac_ext <<_ACEOF
12199 /* end confdefs.h. */
12201 /* Override any GCC internal prototype to avoid an error.
12202 Use char because int might match the return type of a GCC
12203 builtin and then its argument prototype would still apply. */
12207 char XShapeQueryExtension ();
12211 return XShapeQueryExtension ();
12216 rm -f conftest.$ac_objext conftest$ac_exeext
12217 if { (ac_try="$ac_link"
12218 case "(($ac_try" in
12219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12220 *) ac_try_echo
=$ac_try;;
12222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12223 (eval "$ac_link") 2>conftest.er1
12225 grep -v '^ *+' conftest.er1
>conftest.err
12227 cat conftest.err
>&5
12228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12229 (exit $ac_status); } && {
12230 test -z "$ac_c_werror_flag" ||
12231 test ! -s conftest.err
12232 } && test -s conftest
$ac_exeext &&
12233 $as_test_x conftest
$ac_exeext; then
12234 ac_cv_lib_Xext_XShapeQueryExtension
=yes
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.
$ac_ext >&5
12239 ac_cv_lib_Xext_XShapeQueryExtension
=no
12242 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12243 conftest
$ac_exeext conftest.
$ac_ext
12244 LIBS
=$ac_check_lib_save_LIBS
12246 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12247 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12248 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12249 cat >>confdefs.h
<<_ACEOF
12250 #define HAVE_LIBXEXT 1
12253 LIBS
="-lXext $LIBS"
12260 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12261 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12262 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12263 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12264 echo $ECHO_N "(cached) $ECHO_C" >&6
12266 cat >conftest.
$ac_ext <<_ACEOF
12269 cat confdefs.h
>>conftest.
$ac_ext
12270 cat >>conftest.
$ac_ext <<_ACEOF
12271 /* end confdefs.h. */
12276 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12279 Motif version prior to 2.1.
12285 rm -f conftest.
$ac_objext
12286 if { (ac_try
="$ac_compile"
12287 case "(($ac_try" in
12288 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12289 *) ac_try_echo=$ac_try;;
12291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12292 (eval "$ac_compile") 2>conftest.er1
12294 grep -v '^ *+' conftest.er1 >conftest.err
12296 cat conftest.err >&5
12297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12298 (exit $ac_status); } && {
12299 test -z "$ac_c_werror_flag" ||
12300 test ! -s conftest.err
12301 } && test -s conftest.$ac_objext; then
12302 emacs_cv_motif_version_2_1=yes
12304 echo "$as_me: failed program was:" >&5
12305 sed 's/^/| /' conftest.$ac_ext >&5
12307 emacs_cv_motif_version_2_1=no
12310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12312 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12313 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12314 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12315 if test $emacs_cv_motif_version_2_1 = yes; then
12318 cat >>confdefs.h <<\_ACEOF
12319 #define HAVE_MOTIF_2_1 1
12322 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12323 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12324 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12325 echo $ECHO_N "(cached) $ECHO_C" >&6
12327 ac_check_lib_save_LIBS=$LIBS
12329 cat >conftest.$ac_ext <<_ACEOF
12332 cat confdefs.h >>conftest.$ac_ext
12333 cat >>conftest.$ac_ext <<_ACEOF
12334 /* end confdefs.h. */
12336 /* Override any GCC internal prototype to avoid an error.
12337 Use char because int might match the return type of a GCC
12338 builtin and then its argument prototype would still apply. */
12342 char XpCreateContext ();
12346 return XpCreateContext ();
12351 rm -f conftest.$ac_objext conftest$ac_exeext
12352 if { (ac_try="$ac_link"
12353 case "(($ac_try" in
12354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12355 *) ac_try_echo
=$ac_try;;
12357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12358 (eval "$ac_link") 2>conftest.er1
12360 grep -v '^ *+' conftest.er1
>conftest.err
12362 cat conftest.err
>&5
12363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12364 (exit $ac_status); } && {
12365 test -z "$ac_c_werror_flag" ||
12366 test ! -s conftest.err
12367 } && test -s conftest
$ac_exeext &&
12368 $as_test_x conftest
$ac_exeext; then
12369 ac_cv_lib_Xp_XpCreateContext
=yes
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.
$ac_ext >&5
12374 ac_cv_lib_Xp_XpCreateContext
=no
12377 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12378 conftest
$ac_exeext conftest.
$ac_ext
12379 LIBS
=$ac_check_lib_save_LIBS
12381 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12382 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12383 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12387 if test ${HAVE_LIBXP} = yes; then
12389 cat >>confdefs.h
<<\_ACEOF
12390 #define HAVE_LIBXP 1
12395 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12396 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12397 if test "${emacs_cv_lesstif+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12400 # We put this in CFLAGS temporarily to precede other -I options
12401 # that might be in CFLAGS temporarily.
12402 # We put this in CPPFLAGS where it precedes the other -I options.
12403 OLD_CPPFLAGS
=$CPPFLAGS
12405 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12406 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12407 cat >conftest.
$ac_ext <<_ACEOF
12410 cat confdefs.h
>>conftest.
$ac_ext
12411 cat >>conftest.
$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12422 rm -f conftest.
$ac_objext
12423 if { (ac_try
="$ac_compile"
12424 case "(($ac_try" in
12425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_compile") 2>conftest.er1
12431 grep -v '^ *+' conftest.er1 >conftest.err
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } && {
12436 test -z "$ac_c_werror_flag" ||
12437 test ! -s conftest.err
12438 } && test -s conftest.$ac_objext; then
12439 emacs_cv_lesstif=yes
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12444 emacs_cv_lesstif=no
12447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12449 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12450 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12451 if test $emacs_cv_lesstif = yes; then
12452 # Make sure this -I option remains in CPPFLAGS after it is set
12453 # back to REAL_CPPFLAGS.
12454 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12455 # have those other -I options anyway. Ultimately, having this
12456 # directory ultimately in CPPFLAGS will be enough.
12457 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12458 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12461 CPPFLAGS=$OLD_CPPFLAGS
12468 USE_TOOLKIT_SCROLL_BARS=no
12469 if test "${with_toolkit_scroll_bars}" != "no"; then
12470 if test "${USE_X_TOOLKIT}" != "none"; then
12471 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12472 cat >>confdefs.h <<\_ACEOF
12473 #define USE_TOOLKIT_SCROLL_BARS 1
12477 USE_TOOLKIT_SCROLL_BARS=yes
12478 elif test "${HAVE_XAW3D}" = "yes"; then
12479 cat >>confdefs.h <<\_ACEOF
12480 #define USE_TOOLKIT_SCROLL_BARS 1
12483 USE_TOOLKIT_SCROLL_BARS=yes
12485 elif test "${HAVE_GTK}" = "yes"; then
12486 cat >>confdefs.h <<\_ACEOF
12487 #define USE_TOOLKIT_SCROLL_BARS 1
12490 USE_TOOLKIT_SCROLL_BARS=yes
12491 elif test "${HAVE_CARBON}" = "yes"; then
12492 cat >>confdefs.h <<\_ACEOF
12493 #define USE_TOOLKIT_SCROLL_BARS 1
12496 USE_TOOLKIT_SCROLL_BARS=yes
12500 cat >conftest.$ac_ext <<_ACEOF
12503 cat confdefs.h >>conftest.$ac_ext
12504 cat >>conftest.$ac_ext <<_ACEOF
12505 /* end confdefs.h. */
12507 #include <X11/Xlib.h>
12508 #include <X11/Xresource.h>
12517 rm -f conftest.$ac_objext
12518 if { (ac_try="$ac_compile"
12519 case "(($ac_try" in
12520 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12521 *) ac_try_echo
=$ac_try;;
12523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12524 (eval "$ac_compile") 2>conftest.er1
12526 grep -v '^ *+' conftest.er1
>conftest.err
12528 cat conftest.err
>&5
12529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12530 (exit $ac_status); } && {
12531 test -z "$ac_c_werror_flag" ||
12532 test ! -s conftest.err
12533 } && test -s conftest.
$ac_objext; then
12536 cat >>confdefs.h
<<\_ACEOF
12541 echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.
$ac_ext >&5
12547 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12550 if test "${with_xim}" != "no"; then
12552 cat >>confdefs.h
<<\_ACEOF
12559 if test "${HAVE_XIM}" != "no"; then
12560 late_CFLAGS
=$CFLAGS
12561 if test "$GCC" = yes; then
12562 CFLAGS
="$CFLAGS --pedantic-errors"
12564 cat >conftest.
$ac_ext <<_ACEOF
12567 cat confdefs.h
>>conftest.
$ac_ext
12568 cat >>conftest.
$ac_ext <<_ACEOF
12569 /* end confdefs.h. */
12571 #include <X11/Xlib.h>
12572 #include <X11/Xresource.h>
12581 XPointer *client_data;
12583 /* If we're not using GCC, it's probably not XFree86, and this is
12584 probably right, but we can't use something like --pedantic-errors. */
12585 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12586 char*, XIMProc, XPointer*);
12588 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12594 rm -f conftest.
$ac_objext
12595 if { (ac_try
="$ac_compile"
12596 case "(($ac_try" in
12597 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12598 *) ac_try_echo=$ac_try;;
12600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12601 (eval "$ac_compile") 2>conftest.er1
12603 grep -v '^ *+' conftest.er1 >conftest.err
12605 cat conftest.err >&5
12606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12607 (exit $ac_status); } && {
12608 test -z "$ac_c_werror_flag" ||
12609 test ! -s conftest.err
12610 } && test -s conftest.$ac_objext; then
12611 emacs_cv_arg6_star=yes
12613 echo "$as_me: failed program was:" >&5
12614 sed 's/^/| /' conftest.$ac_ext >&5
12619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621 if test "$emacs_cv_arg6_star" = yes; then
12622 cat >>confdefs.h <<\_ACEOF
12623 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12627 cat >>confdefs.h <<\_ACEOF
12628 #define XRegisterIMInstantiateCallback_arg6 XPointer
12632 CFLAGS=$late_CFLAGS
12635 ### Start of font-backend section.
12636 if test "${HAVE_X11}" != "yes"; then
12637 USE_FONT_BACKEND=no
12640 if test "${USE_FONT_BACKEND}" = "yes"; then
12642 cat >>confdefs.h <<\_ACEOF
12643 #define USE_FONT_BACKEND 1
12647 ## Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12649 if test "x${with_freetype}" = "xno"; then
12652 if test "x${with_xft}" != "xno"; then
12657 # Extract the first word of "pkg-config", so it can be a program name with args.
12658 set dummy pkg-config
; ac_word
=$2
12659 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12660 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12661 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12662 echo $ECHO_N "(cached) $ECHO_C" >&6
12664 case $PKG_CONFIG in
12666 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12670 for as_dir
in $PATH
12673 test -z "$as_dir" && as_dir
=.
12674 for ac_exec_ext
in '' $ac_executable_extensions; do
12675 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12676 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12677 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12684 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12688 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12689 if test -n "$PKG_CONFIG"; then
12690 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12691 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12693 { echo "$as_me:$LINENO: result: no" >&5
12694 echo "${ECHO_T}no" >&6; }
12699 if test "$PKG_CONFIG" = "no" ; then
12702 PKG_CONFIG_MIN_VERSION
=0.9.0
12703 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12704 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12705 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12707 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12708 { echo "$as_me:$LINENO: result: yes" >&5
12709 echo "${ECHO_T}yes" >&6; }
12712 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12713 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12714 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12715 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12716 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12718 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12719 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12720 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12721 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12722 echo "${ECHO_T}$XFT_LIBS" >&6; }
12724 { echo "$as_me:$LINENO: result: no" >&5
12725 echo "${ECHO_T}no" >&6; }
12728 ## If we have a custom action on failure, don't print errors, but
12729 ## do set a variable so people can do so.
12730 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12737 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12738 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12742 if test $succeeded = yes; then
12748 if test "$HAVE_XFT" != no
; then
12749 OLD_CPPFLAGS
="$CPPFLAGS"
12750 OLD_CFLAGS
="$CFLAGS"
12752 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12753 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12754 LIBS
="$XFT_LIBS $LIBS"
12755 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12756 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12757 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12758 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12759 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12762 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12764 # Is the header compilable?
12765 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12766 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12767 cat >conftest.
$ac_ext <<_ACEOF
12770 cat confdefs.h
>>conftest.
$ac_ext
12771 cat >>conftest.
$ac_ext <<_ACEOF
12772 /* end confdefs.h. */
12773 $ac_includes_default
12774 #include <X11/Xft/Xft.h>
12776 rm -f conftest.
$ac_objext
12777 if { (ac_try
="$ac_compile"
12778 case "(($ac_try" in
12779 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12780 *) ac_try_echo=$ac_try;;
12782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12783 (eval "$ac_compile") 2>conftest.er1
12785 grep -v '^ *+' conftest.er1 >conftest.err
12787 cat conftest.err >&5
12788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12789 (exit $ac_status); } && {
12790 test -z "$ac_c_werror_flag" ||
12791 test ! -s conftest.err
12792 } && test -s conftest.$ac_objext; then
12793 ac_header_compiler=yes
12795 echo "$as_me: failed program was:" >&5
12796 sed 's/^/| /' conftest.$ac_ext >&5
12798 ac_header_compiler=no
12801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12802 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12803 echo "${ECHO_T}$ac_header_compiler" >&6; }
12805 # Is the header present?
12806 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12807 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12808 cat >conftest.$ac_ext <<_ACEOF
12811 cat confdefs.h >>conftest.$ac_ext
12812 cat >>conftest.$ac_ext <<_ACEOF
12813 /* end confdefs.h. */
12814 #include <X11/Xft/Xft.h>
12816 if { (ac_try="$ac_cpp conftest.$ac_ext"
12817 case "(($ac_try" in
12818 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12819 *) ac_try_echo
=$ac_try;;
12821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12822 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12824 grep -v '^ *+' conftest.er1
>conftest.err
12826 cat conftest.err
>&5
12827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12828 (exit $ac_status); } >/dev
/null
&& {
12829 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12830 test ! -s conftest.err
12832 ac_header_preproc
=yes
12834 echo "$as_me: failed program was:" >&5
12835 sed 's/^/| /' conftest.
$ac_ext >&5
12837 ac_header_preproc
=no
12840 rm -f conftest.err conftest.
$ac_ext
12841 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12842 echo "${ECHO_T}$ac_header_preproc" >&6; }
12844 # So? What about this header?
12845 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12847 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12848 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12849 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12850 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12851 ac_header_preproc
=yes
12854 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12855 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12856 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12857 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12858 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12859 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12860 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12861 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12862 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12863 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12864 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12865 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12869 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12870 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12871 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12872 echo $ECHO_N "(cached) $ECHO_C" >&6
12874 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12876 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12877 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12880 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12881 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12882 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12883 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 ac_check_lib_save_LIBS
=$LIBS
12887 LIBS
="-lXft $XFT_LIBS $LIBS"
12888 cat >conftest.
$ac_ext <<_ACEOF
12891 cat confdefs.h
>>conftest.
$ac_ext
12892 cat >>conftest.
$ac_ext <<_ACEOF
12893 /* end confdefs.h. */
12895 /* Override any GCC internal prototype to avoid an error.
12896 Use char because int might match the return type of a GCC
12897 builtin and then its argument prototype would still apply. */
12901 char XftFontOpen ();
12905 return XftFontOpen ();
12910 rm -f conftest.
$ac_objext conftest
$ac_exeext
12911 if { (ac_try
="$ac_link"
12912 case "(($ac_try" in
12913 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12914 *) ac_try_echo=$ac_try;;
12916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12917 (eval "$ac_link") 2>conftest.er1
12919 grep -v '^ *+' conftest.er1 >conftest.err
12921 cat conftest.err >&5
12922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12923 (exit $ac_status); } && {
12924 test -z "$ac_c_werror_flag" ||
12925 test ! -s conftest.err
12926 } && test -s conftest$ac_exeext &&
12927 $as_test_x conftest$ac_exeext; then
12928 ac_cv_lib_Xft_XftFontOpen=yes
12930 echo "$as_me: failed program was:" >&5
12931 sed 's/^/| /' conftest.$ac_ext >&5
12933 ac_cv_lib_Xft_XftFontOpen=no
12936 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12937 conftest$ac_exeext conftest.$ac_ext
12938 LIBS=$ac_check_lib_save_LIBS
12940 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12941 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12942 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12950 if test "${HAVE_XFT}" = "yes"; then
12952 cat >>confdefs.h <<\_ACEOF
12957 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12959 CPPFLAGS="$OLD_CPPFLAGS"
12960 CFLAGS="$OLD_CFLAGS"
12962 fi # "${HAVE_XFT}" = "yes"
12963 fi # "$HAVE_XFT" != no
12964 fi # "x${with_xft}" != "xno"
12966 if test "$HAVE_XFT" != "yes"; then
12972 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12973 if test "${HAVE_XFT}" = "yes"; then
12975 elif test "x${with_freetype}" != "xno"; then
12980 # Extract the first word of "pkg-config", so it can be a program name with args.
12981 set dummy pkg-config; ac_word=$2
12982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12984 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12985 echo $ECHO_N "(cached) $ECHO_C" >&6
12987 case $PKG_CONFIG in
12989 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12993 for as_dir in $PATH
12996 test -z "$as_dir" && as_dir=.
12997 for ac_exec_ext in '' $ac_executable_extensions; do
12998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12999 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13000 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13007 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13011 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13012 if test -n "$PKG_CONFIG"; then
13013 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13014 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13016 { echo "$as_me:$LINENO: result: no" >&5
13017 echo "${ECHO_T}no" >&6; }
13022 if test "$PKG_CONFIG" = "no" ; then
13025 PKG_CONFIG_MIN_VERSION=0.9.0
13026 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13027 { echo "$as_me:$LINENO: checking for freetype2" >&5
13028 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
13030 if $PKG_CONFIG --exists "freetype2" 2>&5; then
13031 { echo "$as_me:$LINENO: result: yes" >&5
13032 echo "${ECHO_T}yes" >&6; }
13035 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13036 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
13037 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
13038 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13039 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
13041 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13042 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
13043 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
13044 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
13045 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
13047 { echo "$as_me:$LINENO: result: no" >&5
13048 echo "${ECHO_T}no" >&6; }
13051 ## If we have a custom action on failure, don't print errors
, but
13052 ## do set a variable so people can do so.
13053 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
13060 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13061 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13065 if test $succeeded = yes; then
13071 if test "${HAVE_FREETYPE}" = "yes"; then
13075 # Extract the first word of "pkg-config", so it can be a program name with args.
13076 set dummy pkg-config
; ac_word
=$2
13077 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13078 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13079 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 case $PKG_CONFIG in
13084 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13088 for as_dir
in $PATH
13091 test -z "$as_dir" && as_dir
=.
13092 for ac_exec_ext
in '' $ac_executable_extensions; do
13093 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13094 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13095 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13102 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13106 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13107 if test -n "$PKG_CONFIG"; then
13108 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13109 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13111 { echo "$as_me:$LINENO: result: no" >&5
13112 echo "${ECHO_T}no" >&6; }
13117 if test "$PKG_CONFIG" = "no" ; then
13120 PKG_CONFIG_MIN_VERSION
=0.9.0
13121 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13122 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13123 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13125 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13126 { echo "$as_me:$LINENO: result: yes" >&5
13127 echo "${ECHO_T}yes" >&6; }
13130 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13131 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13132 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13133 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13134 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13136 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13137 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13138 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13139 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13140 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13142 { echo "$as_me:$LINENO: result: no" >&5
13143 echo "${ECHO_T}no" >&6; }
13144 FONTCONFIG_CFLAGS
=""
13146 ## If we have a custom action on failure, don't print errors, but
13147 ## do set a variable so people can do so.
13148 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13155 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13156 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13160 if test $succeeded = yes; then
13166 if test "${HAVE_FC}" = "no"; then
13173 if test "${HAVE_FREETYPE}" = "yes"; then
13175 cat >>confdefs.h
<<\_ACEOF
13176 #define HAVE_FREETYPE 1
13179 if test "${with_libotf}" != "no"; then
13183 # Extract the first word of "pkg-config", so it can be a program name with args.
13184 set dummy pkg-config
; ac_word
=$2
13185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13187 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13188 echo $ECHO_N "(cached) $ECHO_C" >&6
13190 case $PKG_CONFIG in
13192 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13195 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13196 for as_dir
in $PATH
13199 test -z "$as_dir" && as_dir
=.
13200 for ac_exec_ext
in '' $ac_executable_extensions; do
13201 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13202 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13210 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13214 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13215 if test -n "$PKG_CONFIG"; then
13216 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13217 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13219 { echo "$as_me:$LINENO: result: no" >&5
13220 echo "${ECHO_T}no" >&6; }
13225 if test "$PKG_CONFIG" = "no" ; then
13228 PKG_CONFIG_MIN_VERSION
=0.9.0
13229 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13230 { echo "$as_me:$LINENO: checking for libotf" >&5
13231 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13233 if $PKG_CONFIG --exists "libotf" 2>&5; then
13234 { echo "$as_me:$LINENO: result: yes" >&5
13235 echo "${ECHO_T}yes" >&6; }
13238 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13239 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13240 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13241 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13242 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13244 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13245 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13246 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13247 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13248 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13250 { echo "$as_me:$LINENO: result: no" >&5
13251 echo "${ECHO_T}no" >&6; }
13254 ## If we have a custom action on failure, don't print errors, but
13255 ## do set a variable so people can do so.
13256 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13263 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13264 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13268 if test $succeeded = yes; then
13274 if test "$HAVE_LIBOTF" = "yes"; then
13276 cat >>confdefs.h
<<\_ACEOF
13277 #define HAVE_LIBOTF 1
13285 if test "${with_m17n_flt}" != "no"; then
13289 # Extract the first word of "pkg-config", so it can be a program name with args.
13290 set dummy pkg-config
; ac_word
=$2
13291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13293 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13294 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 case $PKG_CONFIG in
13298 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13302 for as_dir
in $PATH
13305 test -z "$as_dir" && as_dir
=.
13306 for ac_exec_ext
in '' $ac_executable_extensions; do
13307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13308 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13316 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13320 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13321 if test -n "$PKG_CONFIG"; then
13322 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13323 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13325 { echo "$as_me:$LINENO: result: no" >&5
13326 echo "${ECHO_T}no" >&6; }
13331 if test "$PKG_CONFIG" = "no" ; then
13334 PKG_CONFIG_MIN_VERSION
=0.9.0
13335 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13336 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13337 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13339 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13340 { echo "$as_me:$LINENO: result: yes" >&5
13341 echo "${ECHO_T}yes" >&6; }
13344 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13345 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13346 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13347 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13348 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13350 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13351 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13352 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13353 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13354 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13356 { echo "$as_me:$LINENO: result: no" >&5
13357 echo "${ECHO_T}no" >&6; }
13360 ## If we have a custom action on failure, don't print errors, but
13361 ## do set a variable so people can do so.
13362 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13369 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13370 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13374 if test $succeeded = yes; then
13380 if test "$HAVE_M17N_FLT" = "yes"; then
13382 cat >>confdefs.h
<<\_ACEOF
13383 #define HAVE_M17N_FLT 1
13398 fi # "${USE_FONT_BACKEND}" = "yes"
13399 ### End of font-backend section.
13401 ### Use -lXpm if available, unless `--with-xpm=no'.
13403 if test "${HAVE_X11}" = "yes"; then
13404 if test "${with_xpm}" != "no"; then
13405 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13406 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13407 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13408 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13409 echo $ECHO_N "(cached) $ECHO_C" >&6
13411 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13412 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13414 # Is the header compilable?
13415 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13416 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13417 cat >conftest.
$ac_ext <<_ACEOF
13420 cat confdefs.h
>>conftest.
$ac_ext
13421 cat >>conftest.
$ac_ext <<_ACEOF
13422 /* end confdefs.h. */
13423 $ac_includes_default
13424 #include <X11/xpm.h>
13426 rm -f conftest.
$ac_objext
13427 if { (ac_try
="$ac_compile"
13428 case "(($ac_try" in
13429 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13430 *) ac_try_echo=$ac_try;;
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433 (eval "$ac_compile") 2>conftest.er1
13435 grep -v '^ *+' conftest.er1 >conftest.err
13437 cat conftest.err >&5
13438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13439 (exit $ac_status); } && {
13440 test -z "$ac_c_werror_flag" ||
13441 test ! -s conftest.err
13442 } && test -s conftest.$ac_objext; then
13443 ac_header_compiler=yes
13445 echo "$as_me: failed program was:" >&5
13446 sed 's/^/| /' conftest.$ac_ext >&5
13448 ac_header_compiler=no
13451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13453 echo "${ECHO_T}$ac_header_compiler" >&6; }
13455 # Is the header present?
13456 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13457 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13458 cat >conftest.$ac_ext <<_ACEOF
13461 cat confdefs.h >>conftest.$ac_ext
13462 cat >>conftest.$ac_ext <<_ACEOF
13463 /* end confdefs.h. */
13464 #include <X11/xpm.h>
13466 if { (ac_try="$ac_cpp conftest.$ac_ext"
13467 case "(($ac_try" in
13468 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13469 *) ac_try_echo
=$ac_try;;
13471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13474 grep -v '^ *+' conftest.er1
>conftest.err
13476 cat conftest.err
>&5
13477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13478 (exit $ac_status); } >/dev
/null
&& {
13479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13480 test ! -s conftest.err
13482 ac_header_preproc
=yes
13484 echo "$as_me: failed program was:" >&5
13485 sed 's/^/| /' conftest.
$ac_ext >&5
13487 ac_header_preproc
=no
13490 rm -f conftest.err conftest.
$ac_ext
13491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13492 echo "${ECHO_T}$ac_header_preproc" >&6; }
13494 # So? What about this header?
13495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13497 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13498 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13499 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13500 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13501 ac_header_preproc
=yes
13504 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13505 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13507 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13509 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13511 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13512 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13513 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13514 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13515 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13519 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13520 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13521 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13522 echo $ECHO_N "(cached) $ECHO_C" >&6
13524 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13526 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13527 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13530 if test $ac_cv_header_X11_xpm_h = yes; then
13531 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13532 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13533 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13534 echo $ECHO_N "(cached) $ECHO_C" >&6
13536 ac_check_lib_save_LIBS
=$LIBS
13537 LIBS
="-lXpm -lX11 $LIBS"
13538 cat >conftest.
$ac_ext <<_ACEOF
13541 cat confdefs.h
>>conftest.
$ac_ext
13542 cat >>conftest.
$ac_ext <<_ACEOF
13543 /* end confdefs.h. */
13545 /* Override any GCC internal prototype to avoid an error.
13546 Use char because int might match the return type of a GCC
13547 builtin and then its argument prototype would still apply. */
13551 char XpmReadFileToPixmap ();
13555 return XpmReadFileToPixmap ();
13560 rm -f conftest.
$ac_objext conftest
$ac_exeext
13561 if { (ac_try
="$ac_link"
13562 case "(($ac_try" in
13563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13564 *) ac_try_echo=$ac_try;;
13566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13567 (eval "$ac_link") 2>conftest.er1
13569 grep -v '^ *+' conftest.er1 >conftest.err
13571 cat conftest.err >&5
13572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13573 (exit $ac_status); } && {
13574 test -z "$ac_c_werror_flag" ||
13575 test ! -s conftest.err
13576 } && test -s conftest$ac_exeext &&
13577 $as_test_x conftest$ac_exeext; then
13578 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13580 echo "$as_me: failed program was:" >&5
13581 sed 's/^/| /' conftest.$ac_ext >&5
13583 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13586 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13587 conftest$ac_exeext conftest.$ac_ext
13588 LIBS=$ac_check_lib_save_LIBS
13590 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13591 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13592 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13599 if test "${HAVE_XPM}" = "yes"; then
13600 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13601 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13602 cat >conftest.$ac_ext <<_ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13608 #include "X11/xpm.h"
13609 #ifndef XpmReturnAllocPixels
13610 no_return_alloc_pixels
13614 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13615 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13623 if test "${HAVE_XPM}" = "yes"; then
13624 { echo "$as_me:$LINENO: result: yes" >&5
13625 echo "${ECHO_T}yes" >&6; }
13627 { echo "$as_me:$LINENO: result: no" >&5
13628 echo "${ECHO_T}no" >&6; }
13633 if test "${HAVE_XPM}" = "yes"; then
13635 cat >>confdefs.h <<\_ACEOF
13642 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13644 if test "${HAVE_X11}" = "yes"; then
13645 if test "${with_jpeg}" != "no"; then
13646 if test "${ac_cv_header_jerror_h+set}" = set; then
13647 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13648 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13649 if test "${ac_cv_header_jerror_h+set}" = set; then
13650 echo $ECHO_N "(cached) $ECHO_C" >&6
13652 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13653 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13655 # Is the header compilable?
13656 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13657 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13658 cat >conftest.$ac_ext <<_ACEOF
13661 cat confdefs.h >>conftest.$ac_ext
13662 cat >>conftest.$ac_ext <<_ACEOF
13663 /* end confdefs.h. */
13664 $ac_includes_default
13665 #include <jerror.h>
13667 rm -f conftest.$ac_objext
13668 if { (ac_try="$ac_compile"
13669 case "(($ac_try" in
13670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13671 *) ac_try_echo=$ac_try;;
13673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13674 (eval "$ac_compile") 2>conftest.er1
13676 grep -v '^
*+' conftest.er1 >conftest.err
13678 cat conftest.err >&5
13679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13680 (exit $ac_status); } && {
13681 test -z "$ac_c_werror_flag" ||
13682 test ! -s conftest.err
13683 } && test -s conftest.$ac_objext; then
13684 ac_header_compiler=yes
13686 echo "$as_me: failed program was:" >&5
13687 sed 's
/^
/|
/' conftest.$ac_ext >&5
13689 ac_header_compiler=no
13692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13693 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13694 echo "${ECHO_T}$ac_header_compiler" >&6; }
13696 # Is the header present?
13697 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13698 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13699 cat >conftest.$ac_ext <<_ACEOF
13702 cat confdefs.h >>conftest.$ac_ext
13703 cat >>conftest.$ac_ext <<_ACEOF
13704 /* end confdefs.h. */
13705 #include <jerror.h>
13707 if { (ac_try="$ac_cpp conftest.$ac_ext"
13708 case "(($ac_try" in
13709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13710 *) ac_try_echo=$ac_try;;
13712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13715 grep -v '^
*+' conftest.er1 >conftest.err
13717 cat conftest.err >&5
13718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13719 (exit $ac_status); } >/dev/null && {
13720 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13721 test ! -s conftest.err
13723 ac_header_preproc=yes
13725 echo "$as_me: failed program was:" >&5
13726 sed 's
/^
/|
/' conftest.$ac_ext >&5
13728 ac_header_preproc=no
13731 rm -f conftest.err conftest.$ac_ext
13732 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13733 echo "${ECHO_T}$ac_header_preproc" >&6; }
13735 # So? What about this header?
13736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13738 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13739 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13740 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13741 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13742 ac_header_preproc=yes
13745 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13746 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13747 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13748 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13749 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13750 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13751 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13752 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13753 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13754 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13755 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13756 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13760 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13761 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13762 if test "${ac_cv_header_jerror_h+set}" = set; then
13763 echo $ECHO_N "(cached) $ECHO_C" >&6
13765 ac_cv_header_jerror_h=$ac_header_preproc
13767 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13768 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13771 if test $ac_cv_header_jerror_h = yes; then
13772 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13773 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13774 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13775 echo $ECHO_N "(cached) $ECHO_C" >&6
13777 ac_check_lib_save_LIBS=$LIBS
13778 LIBS="-ljpeg $LIBS"
13779 cat >conftest.$ac_ext <<_ACEOF
13782 cat confdefs.h >>conftest.$ac_ext
13783 cat >>conftest.$ac_ext <<_ACEOF
13784 /* end confdefs.h. */
13786 /* Override any GCC internal prototype to avoid an error.
13787 Use char because int might match the return type of a GCC
13788 builtin and then its argument prototype would still apply. */
13792 char jpeg_destroy_compress ();
13796 return jpeg_destroy_compress ();
13801 rm -f conftest.$ac_objext conftest$ac_exeext
13802 if { (ac_try="$ac_link"
13803 case "(($ac_try" in
13804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13805 *) ac_try_echo=$ac_try;;
13807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13808 (eval "$ac_link") 2>conftest.er1
13810 grep -v '^
*+' conftest.er1 >conftest.err
13812 cat conftest.err >&5
13813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13814 (exit $ac_status); } && {
13815 test -z "$ac_c_werror_flag" ||
13816 test ! -s conftest.err
13817 } && test -s conftest$ac_exeext &&
13818 $as_test_x conftest$ac_exeext; then
13819 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13821 echo "$as_me: failed program was:" >&5
13822 sed 's
/^
/|
/' conftest.$ac_ext >&5
13824 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13828 conftest$ac_exeext conftest.$ac_ext
13829 LIBS=$ac_check_lib_save_LIBS
13831 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13832 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13833 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13843 if test "${HAVE_JPEG}" = "yes"; then
13844 cat >>confdefs.h <<\_ACEOF
13845 #define HAVE_JPEG 1
13848 cat >conftest.$ac_ext <<_ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h. */
13854 #include <jpeglib.h>
13855 version=JPEG_LIB_VERSION
13858 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13859 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13860 cat >>confdefs.h <<\_ACEOF
13861 #define HAVE_JPEG 1
13865 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13866 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13874 ### Use -lpng if available, unless `--with-png=no'.
13876 if test "${HAVE_X11}" = "yes"; then
13877 if test "${with_png}" != "no"; then
13878 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13879 # in /usr/include/libpng.
13882 for ac_header
in png.h libpng
/png.h
13884 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13885 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13888 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13889 echo $ECHO_N "(cached) $ECHO_C" >&6
13891 ac_res
=`eval echo '${'$as_ac_Header'}'`
13892 { echo "$as_me:$LINENO: result: $ac_res" >&5
13893 echo "${ECHO_T}$ac_res" >&6; }
13895 # Is the header compilable?
13896 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13897 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13898 cat >conftest.
$ac_ext <<_ACEOF
13901 cat confdefs.h
>>conftest.
$ac_ext
13902 cat >>conftest.
$ac_ext <<_ACEOF
13903 /* end confdefs.h. */
13904 $ac_includes_default
13905 #include <$ac_header>
13907 rm -f conftest.
$ac_objext
13908 if { (ac_try
="$ac_compile"
13909 case "(($ac_try" in
13910 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13911 *) ac_try_echo=$ac_try;;
13913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13914 (eval "$ac_compile") 2>conftest.er1
13916 grep -v '^ *+' conftest.er1 >conftest.err
13918 cat conftest.err >&5
13919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13920 (exit $ac_status); } && {
13921 test -z "$ac_c_werror_flag" ||
13922 test ! -s conftest.err
13923 } && test -s conftest.$ac_objext; then
13924 ac_header_compiler=yes
13926 echo "$as_me: failed program was:" >&5
13927 sed 's/^/| /' conftest.$ac_ext >&5
13929 ac_header_compiler=no
13932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13933 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13934 echo "${ECHO_T}$ac_header_compiler" >&6; }
13936 # Is the header present?
13937 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13938 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13939 cat >conftest.$ac_ext <<_ACEOF
13942 cat confdefs.h >>conftest.$ac_ext
13943 cat >>conftest.$ac_ext <<_ACEOF
13944 /* end confdefs.h. */
13945 #include <$ac_header>
13947 if { (ac_try="$ac_cpp conftest.$ac_ext"
13948 case "(($ac_try" in
13949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13950 *) ac_try_echo
=$ac_try;;
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13955 grep -v '^ *+' conftest.er1
>conftest.err
13957 cat conftest.err
>&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } >/dev
/null
&& {
13960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13963 ac_header_preproc
=yes
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.
$ac_ext >&5
13968 ac_header_preproc
=no
13971 rm -f conftest.err conftest.
$ac_ext
13972 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13973 echo "${ECHO_T}$ac_header_preproc" >&6; }
13975 # So? What about this header?
13976 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13978 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13979 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13980 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13981 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13982 ac_header_preproc
=yes
13985 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13986 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13988 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13990 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13992 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13994 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13996 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14000 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14002 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14003 echo $ECHO_N "(cached) $ECHO_C" >&6
14005 eval "$as_ac_Header=\$ac_header_preproc"
14007 ac_res
=`eval echo '${'$as_ac_Header'}'`
14008 { echo "$as_me:$LINENO: result: $ac_res" >&5
14009 echo "${ECHO_T}$ac_res" >&6; }
14012 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14013 cat >>confdefs.h
<<_ACEOF
14014 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14021 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
14022 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14023 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14024 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14025 echo $ECHO_N "(cached) $ECHO_C" >&6
14027 ac_check_lib_save_LIBS
=$LIBS
14028 LIBS
="-lpng -lz -lm $LIBS"
14029 cat >conftest.
$ac_ext <<_ACEOF
14032 cat confdefs.h
>>conftest.
$ac_ext
14033 cat >>conftest.
$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14036 /* Override any GCC internal prototype to avoid an error.
14037 Use char because int might match the return type of a GCC
14038 builtin and then its argument prototype would still apply. */
14042 char png_get_channels ();
14046 return png_get_channels ();
14051 rm -f conftest.
$ac_objext conftest
$ac_exeext
14052 if { (ac_try
="$ac_link"
14053 case "(($ac_try" in
14054 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14055 *) ac_try_echo=$ac_try;;
14057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058 (eval "$ac_link") 2>conftest.er1
14060 grep -v '^ *+' conftest.er1 >conftest.err
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } && {
14065 test -z "$ac_c_werror_flag" ||
14066 test ! -s conftest.err
14067 } && test -s conftest$ac_exeext &&
14068 $as_test_x conftest$ac_exeext; then
14069 ac_cv_lib_png_png_get_channels=yes
14071 echo "$as_me: failed program was:" >&5
14072 sed 's/^/| /' conftest.$ac_ext >&5
14074 ac_cv_lib_png_png_get_channels=no
14077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14078 conftest$ac_exeext conftest.$ac_ext
14079 LIBS=$ac_check_lib_save_LIBS
14081 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14082 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14083 if test $ac_cv_lib_png_png_get_channels = yes; then
14090 if test "${HAVE_PNG}" = "yes"; then
14092 cat >>confdefs.h <<\_ACEOF
14099 ### Use -ltiff if available, unless `--with-tiff=no
'.
14101 if test "${HAVE_X11}" = "yes"; then
14102 if test "${with_tiff}" != "no"; then
14103 if test "${ac_cv_header_tiffio_h+set}" = set; then
14104 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14105 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14106 if test "${ac_cv_header_tiffio_h+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14109 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14110 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14112 # Is the header compilable?
14113 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14114 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14115 cat >conftest.$ac_ext <<_ACEOF
14118 cat confdefs.h >>conftest.$ac_ext
14119 cat >>conftest.$ac_ext <<_ACEOF
14120 /* end confdefs.h. */
14121 $ac_includes_default
14122 #include <tiffio.h>
14124 rm -f conftest.$ac_objext
14125 if { (ac_try="$ac_compile"
14126 case "(($ac_try" in
14127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14128 *) ac_try_echo=$ac_try;;
14130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14131 (eval "$ac_compile") 2>conftest.er1
14133 grep -v '^
*+' conftest.er1 >conftest.err
14135 cat conftest.err >&5
14136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14137 (exit $ac_status); } && {
14138 test -z "$ac_c_werror_flag" ||
14139 test ! -s conftest.err
14140 } && test -s conftest.$ac_objext; then
14141 ac_header_compiler=yes
14143 echo "$as_me: failed program was:" >&5
14144 sed 's
/^
/|
/' conftest.$ac_ext >&5
14146 ac_header_compiler=no
14149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14150 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14151 echo "${ECHO_T}$ac_header_compiler" >&6; }
14153 # Is the header present?
14154 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14155 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14156 cat >conftest.$ac_ext <<_ACEOF
14159 cat confdefs.h >>conftest.$ac_ext
14160 cat >>conftest.$ac_ext <<_ACEOF
14161 /* end confdefs.h. */
14162 #include <tiffio.h>
14164 if { (ac_try="$ac_cpp conftest.$ac_ext"
14165 case "(($ac_try" in
14166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14167 *) ac_try_echo=$ac_try;;
14169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14172 grep -v '^
*+' conftest.er1 >conftest.err
14174 cat conftest.err >&5
14175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14176 (exit $ac_status); } >/dev/null && {
14177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14178 test ! -s conftest.err
14180 ac_header_preproc=yes
14182 echo "$as_me: failed program was:" >&5
14183 sed 's
/^
/|
/' conftest.$ac_ext >&5
14185 ac_header_preproc=no
14188 rm -f conftest.err conftest.$ac_ext
14189 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14190 echo "${ECHO_T}$ac_header_preproc" >&6; }
14192 # So? What about this header?
14193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14195 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14196 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14197 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
14198 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
14199 ac_header_preproc=yes
14202 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14203 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14204 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14205 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14206 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14207 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14208 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14209 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14210 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
14211 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
14212 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14213 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14217 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14218 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14219 if test "${ac_cv_header_tiffio_h+set}" = set; then
14220 echo $ECHO_N "(cached) $ECHO_C" >&6
14222 ac_cv_header_tiffio_h=$ac_header_preproc
14224 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14225 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14228 if test $ac_cv_header_tiffio_h = yes; then
14230 # At least one tiff package requires the jpeg library.
14231 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14232 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14233 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14234 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14235 echo $ECHO_N "(cached) $ECHO_C" >&6
14237 ac_check_lib_save_LIBS=$LIBS
14238 LIBS="-ltiff $tifflibs $LIBS"
14239 cat >conftest.$ac_ext <<_ACEOF
14242 cat confdefs.h >>conftest.$ac_ext
14243 cat >>conftest.$ac_ext <<_ACEOF
14244 /* end confdefs.h. */
14246 /* Override any GCC internal prototype to avoid an error.
14247 Use char because int might match the return type of a GCC
14248 builtin and then its argument prototype would still apply. */
14252 char TIFFGetVersion ();
14256 return TIFFGetVersion ();
14261 rm -f conftest.$ac_objext conftest$ac_exeext
14262 if { (ac_try="$ac_link"
14263 case "(($ac_try" in
14264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14265 *) ac_try_echo=$ac_try;;
14267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14268 (eval "$ac_link") 2>conftest.er1
14270 grep -v '^
*+' conftest.er1 >conftest.err
14272 cat conftest.err >&5
14273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14274 (exit $ac_status); } && {
14275 test -z "$ac_c_werror_flag" ||
14276 test ! -s conftest.err
14277 } && test -s conftest$ac_exeext &&
14278 $as_test_x conftest$ac_exeext; then
14279 ac_cv_lib_tiff_TIFFGetVersion=yes
14281 echo "$as_me: failed program was:" >&5
14282 sed 's
/^
/|
/' conftest.$ac_ext >&5
14284 ac_cv_lib_tiff_TIFFGetVersion=no
14287 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14288 conftest$ac_exeext conftest.$ac_ext
14289 LIBS=$ac_check_lib_save_LIBS
14291 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14292 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14293 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14302 if test "${HAVE_TIFF}" = "yes"; then
14304 cat >>confdefs.h <<\_ACEOF
14305 #define HAVE_TIFF 1
14311 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14313 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14314 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14315 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14316 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14317 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14320 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14321 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14323 # Is the header compilable?
14324 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14325 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14326 cat >conftest.
$ac_ext <<_ACEOF
14329 cat confdefs.h
>>conftest.
$ac_ext
14330 cat >>conftest.
$ac_ext <<_ACEOF
14331 /* end confdefs.h. */
14332 $ac_includes_default
14333 #include <gif_lib.h>
14335 rm -f conftest.
$ac_objext
14336 if { (ac_try
="$ac_compile"
14337 case "(($ac_try" in
14338 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_compile") 2>conftest.er1
14344 grep -v '^ *+' conftest.er1 >conftest.err
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } && {
14349 test -z "$ac_c_werror_flag" ||
14350 test ! -s conftest.err
14351 } && test -s conftest.$ac_objext; then
14352 ac_header_compiler=yes
14354 echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14357 ac_header_compiler=no
14360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14362 echo "${ECHO_T}$ac_header_compiler" >&6; }
14364 # Is the header present?
14365 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14366 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14367 cat >conftest.$ac_ext <<_ACEOF
14370 cat confdefs.h >>conftest.$ac_ext
14371 cat >>conftest.$ac_ext <<_ACEOF
14372 /* end confdefs.h. */
14373 #include <gif_lib.h>
14375 if { (ac_try="$ac_cpp conftest.$ac_ext"
14376 case "(($ac_try" in
14377 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14378 *) ac_try_echo
=$ac_try;;
14380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14383 grep -v '^ *+' conftest.er1
>conftest.err
14385 cat conftest.err
>&5
14386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14387 (exit $ac_status); } >/dev
/null
&& {
14388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14389 test ! -s conftest.err
14391 ac_header_preproc
=yes
14393 echo "$as_me: failed program was:" >&5
14394 sed 's/^/| /' conftest.
$ac_ext >&5
14396 ac_header_preproc
=no
14399 rm -f conftest.err conftest.
$ac_ext
14400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14401 echo "${ECHO_T}$ac_header_preproc" >&6; }
14403 # So? What about this header?
14404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14406 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14407 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14408 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14409 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14410 ac_header_preproc
=yes
14413 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14414 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14415 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14416 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14417 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14418 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14419 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14420 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14421 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14422 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14423 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14424 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14428 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14429 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14430 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14431 echo $ECHO_N "(cached) $ECHO_C" >&6
14433 ac_cv_header_gif_lib_h
=$ac_header_preproc
14435 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14436 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14439 if test $ac_cv_header_gif_lib_h = yes; then
14440 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14441 # Earlier versions can crash Emacs.
14442 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14443 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14444 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14445 echo $ECHO_N "(cached) $ECHO_C" >&6
14447 ac_check_lib_save_LIBS
=$LIBS
14449 cat >conftest.
$ac_ext <<_ACEOF
14452 cat confdefs.h
>>conftest.
$ac_ext
14453 cat >>conftest.
$ac_ext <<_ACEOF
14454 /* end confdefs.h. */
14456 /* Override any GCC internal prototype to avoid an error.
14457 Use char because int might match the return type of a GCC
14458 builtin and then its argument prototype would still apply. */
14462 char EGifPutExtensionLast ();
14466 return EGifPutExtensionLast ();
14471 rm -f conftest.
$ac_objext conftest
$ac_exeext
14472 if { (ac_try
="$ac_link"
14473 case "(($ac_try" in
14474 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_link") 2>conftest.er1
14480 grep -v '^ *+' conftest.er1 >conftest.err
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } && {
14485 test -z "$ac_c_werror_flag" ||
14486 test ! -s conftest.err
14487 } && test -s conftest$ac_exeext &&
14488 $as_test_x conftest$ac_exeext; then
14489 ac_cv_lib_gif_EGifPutExtensionLast=yes
14491 echo "$as_me: failed program was:" >&5
14492 sed 's/^/| /' conftest.$ac_ext >&5
14494 ac_cv_lib_gif_EGifPutExtensionLast=no
14497 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14498 conftest$ac_exeext conftest.$ac_ext
14499 LIBS=$ac_check_lib_save_LIBS
14501 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14502 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14503 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14513 if test "$HAVE_GIF" = yes; then
14514 ac_gif_lib_name="-lgif"
14517 # If gif_lib.h but no libgif, try libungif.
14518 if test x"$try_libungif" = xyes; then
14519 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14520 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14521 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 ac_check_lib_save_LIBS=$LIBS
14525 LIBS="-lungif $LIBS"
14526 cat >conftest.$ac_ext <<_ACEOF
14529 cat confdefs.h >>conftest.$ac_ext
14530 cat >>conftest.$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14533 /* Override any GCC internal prototype to avoid an error.
14534 Use char because int might match the return type of a GCC
14535 builtin and then its argument prototype would still apply. */
14539 char EGifPutExtensionLast ();
14543 return EGifPutExtensionLast ();
14548 rm -f conftest.$ac_objext conftest$ac_exeext
14549 if { (ac_try="$ac_link"
14550 case "(($ac_try" in
14551 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14552 *) ac_try_echo
=$ac_try;;
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_link") 2>conftest.er1
14557 grep -v '^ *+' conftest.er1
>conftest.err
14559 cat conftest.err
>&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } && {
14562 test -z "$ac_c_werror_flag" ||
14563 test ! -s conftest.err
14564 } && test -s conftest
$ac_exeext &&
14565 $as_test_x conftest
$ac_exeext; then
14566 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.
$ac_ext >&5
14571 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14574 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14575 conftest
$ac_exeext conftest.
$ac_ext
14576 LIBS
=$ac_check_lib_save_LIBS
14578 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14579 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14580 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14585 if test "$HAVE_GIF" = yes; then
14587 cat >>confdefs.h
<<\_ACEOF
14588 #define LIBGIF -lungif
14591 ac_gif_lib_name
="-lungif"
14595 if test "${HAVE_GIF}" = "yes"; then
14597 cat >>confdefs.h
<<\_ACEOF
14604 if test "${HAVE_X11}" = "yes"; then
14607 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14608 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14609 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14610 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14611 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14612 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14613 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14614 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14615 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14616 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14618 if test "X${MISSING}" != X
; then
14619 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14621 Maybe some development libraries/packages are missing?
14622 If you don't want to link with them give
14624 as options to configure" >&5
14625 echo "$as_me: error: The following required libraries were not found:
14627 Maybe some development libraries/packages are missing?
14628 If you don't want to link with them give
14630 as options to configure" >&2;}
14631 { (exit 1); exit 1; }; }
14635 ### Use -lgpm if available, unless `--with-gpm=no'.
14637 if test "${with_gpm}" != "no"; then
14638 if test "${ac_cv_header_gpm_h+set}" = set; then
14639 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14640 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14641 if test "${ac_cv_header_gpm_h+set}" = set; then
14642 echo $ECHO_N "(cached) $ECHO_C" >&6
14644 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14645 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14647 # Is the header compilable?
14648 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14649 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14650 cat >conftest.
$ac_ext <<_ACEOF
14653 cat confdefs.h
>>conftest.
$ac_ext
14654 cat >>conftest.
$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14656 $ac_includes_default
14659 rm -f conftest.
$ac_objext
14660 if { (ac_try
="$ac_compile"
14661 case "(($ac_try" in
14662 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_compile") 2>conftest.er1
14668 grep -v '^ *+' conftest.er1 >conftest.err
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } && {
14673 test -z "$ac_c_werror_flag" ||
14674 test ! -s conftest.err
14675 } && test -s conftest.$ac_objext; then
14676 ac_header_compiler=yes
14678 echo "$as_me: failed program was:" >&5
14679 sed 's/^/| /' conftest.$ac_ext >&5
14681 ac_header_compiler=no
14684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14685 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14686 echo "${ECHO_T}$ac_header_compiler" >&6; }
14688 # Is the header present?
14689 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14690 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14691 cat >conftest.$ac_ext <<_ACEOF
14694 cat confdefs.h >>conftest.$ac_ext
14695 cat >>conftest.$ac_ext <<_ACEOF
14696 /* end confdefs.h. */
14699 if { (ac_try="$ac_cpp conftest.$ac_ext"
14700 case "(($ac_try" in
14701 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14702 *) ac_try_echo
=$ac_try;;
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14707 grep -v '^ *+' conftest.er1
>conftest.err
14709 cat conftest.err
>&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } >/dev
/null
&& {
14712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14715 ac_header_preproc
=yes
14717 echo "$as_me: failed program was:" >&5
14718 sed 's/^/| /' conftest.
$ac_ext >&5
14720 ac_header_preproc
=no
14723 rm -f conftest.err conftest.
$ac_ext
14724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14725 echo "${ECHO_T}$ac_header_preproc" >&6; }
14727 # So? What about this header?
14728 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14730 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14731 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14732 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14733 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14734 ac_header_preproc
=yes
14737 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14738 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14740 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14742 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14744 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14746 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14747 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14748 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14752 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14753 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14754 if test "${ac_cv_header_gpm_h+set}" = set; then
14755 echo $ECHO_N "(cached) $ECHO_C" >&6
14757 ac_cv_header_gpm_h
=$ac_header_preproc
14759 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14760 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14763 if test $ac_cv_header_gpm_h = yes; then
14764 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14765 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14766 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14767 echo $ECHO_N "(cached) $ECHO_C" >&6
14769 ac_check_lib_save_LIBS
=$LIBS
14771 cat >conftest.
$ac_ext <<_ACEOF
14774 cat confdefs.h
>>conftest.
$ac_ext
14775 cat >>conftest.
$ac_ext <<_ACEOF
14776 /* end confdefs.h. */
14778 /* Override any GCC internal prototype to avoid an error.
14779 Use char because int might match the return type of a GCC
14780 builtin and then its argument prototype would still apply. */
14788 return Gpm_Open ();
14793 rm -f conftest.
$ac_objext conftest
$ac_exeext
14794 if { (ac_try
="$ac_link"
14795 case "(($ac_try" in
14796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_link") 2>conftest.er1
14802 grep -v '^ *+' conftest.er1 >conftest.err
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } && {
14807 test -z "$ac_c_werror_flag" ||
14808 test ! -s conftest.err
14809 } && test -s conftest$ac_exeext &&
14810 $as_test_x conftest$ac_exeext; then
14811 ac_cv_lib_gpm_Gpm_Open=yes
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14816 ac_cv_lib_gpm_Gpm_Open=no
14819 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14820 conftest$ac_exeext conftest.$ac_ext
14821 LIBS=$ac_check_lib_save_LIBS
14823 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14824 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14825 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14834 if test "${HAVE_GPM}" = "yes"; then
14836 cat >>confdefs.h <<\_ACEOF
14842 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14843 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14844 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14845 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14846 echo $ECHO_N "(cached) $ECHO_C" >&6
14848 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14849 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14851 # Is the header compilable?
14852 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14853 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14854 cat >conftest.$ac_ext <<_ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14860 $ac_includes_default
14861 #include <malloc/malloc.h>
14863 rm -f conftest.$ac_objext
14864 if { (ac_try="$ac_compile"
14865 case "(($ac_try" in
14866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14867 *) ac_try_echo
=$ac_try;;
14869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14870 (eval "$ac_compile") 2>conftest.er1
14872 grep -v '^ *+' conftest.er1
>conftest.err
14874 cat conftest.err
>&5
14875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14876 (exit $ac_status); } && {
14877 test -z "$ac_c_werror_flag" ||
14878 test ! -s conftest.err
14879 } && test -s conftest.
$ac_objext; then
14880 ac_header_compiler
=yes
14882 echo "$as_me: failed program was:" >&5
14883 sed 's/^/| /' conftest.
$ac_ext >&5
14885 ac_header_compiler
=no
14888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14889 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14890 echo "${ECHO_T}$ac_header_compiler" >&6; }
14892 # Is the header present?
14893 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14894 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14895 cat >conftest.
$ac_ext <<_ACEOF
14898 cat confdefs.h
>>conftest.
$ac_ext
14899 cat >>conftest.
$ac_ext <<_ACEOF
14900 /* end confdefs.h. */
14901 #include <malloc/malloc.h>
14903 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14904 case "(($ac_try" in
14905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14906 *) ac_try_echo=$ac_try;;
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14911 grep -v '^ *+' conftest.er1 >conftest.err
14913 cat conftest.err >&5
14914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14915 (exit $ac_status); } >/dev/null && {
14916 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14917 test ! -s conftest.err
14919 ac_header_preproc=yes
14921 echo "$as_me: failed program was:" >&5
14922 sed 's/^/| /' conftest.$ac_ext >&5
14924 ac_header_preproc=no
14927 rm -f conftest.err conftest.$ac_ext
14928 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14929 echo "${ECHO_T}$ac_header_preproc" >&6; }
14931 # So? What about this header?
14932 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14934 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14935 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14936 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14937 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14938 ac_header_preproc=yes
14941 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14942 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14943 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14944 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14945 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14946 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14947 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14948 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14949 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14950 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14951 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14952 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14956 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14957 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14958 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14959 echo $ECHO_N "(cached) $ECHO_C" >&6
14961 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14963 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14964 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14967 if test $ac_cv_header_malloc_malloc_h = yes; then
14969 cat >>confdefs.h <<\_ACEOF
14970 #define HAVE_MALLOC_MALLOC_H 1
14977 ### Use Mac OS X Carbon API to implement GUI.
14978 if test "${HAVE_CARBON}" = "yes"; then
14980 cat >>confdefs.h <<\_ACEOF
14981 #define HAVE_CARBON 1
14984 ## Specify the install directory
14986 if test "${carbon_appdir_x}" != ""; then
14987 case ${carbon_appdir_x} in
14988 y | ye | yes) carbon_appdir=/Applications ;;
14989 * ) carbon_appdir=${carbon_appdir_x} ;;
14992 # We also have mouse menus.
14996 ### Use session management (-lSM -lICE) if available
14998 if test "${HAVE_X11}" = "yes"; then
14999 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15000 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15001 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15002 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15003 echo $ECHO_N "(cached) $ECHO_C" >&6
15005 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15006 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15008 # Is the header compilable?
15009 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15010 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15011 cat >conftest.$ac_ext <<_ACEOF
15014 cat confdefs.h >>conftest.$ac_ext
15015 cat >>conftest.$ac_ext <<_ACEOF
15016 /* end confdefs.h. */
15017 $ac_includes_default
15018 #include <X11/SM/SMlib.h>
15020 rm -f conftest.$ac_objext
15021 if { (ac_try="$ac_compile"
15022 case "(($ac_try" in
15023 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15024 *) ac_try_echo
=$ac_try;;
15026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15027 (eval "$ac_compile") 2>conftest.er1
15029 grep -v '^ *+' conftest.er1
>conftest.err
15031 cat conftest.err
>&5
15032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15033 (exit $ac_status); } && {
15034 test -z "$ac_c_werror_flag" ||
15035 test ! -s conftest.err
15036 } && test -s conftest.
$ac_objext; then
15037 ac_header_compiler
=yes
15039 echo "$as_me: failed program was:" >&5
15040 sed 's/^/| /' conftest.
$ac_ext >&5
15042 ac_header_compiler
=no
15045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15046 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15047 echo "${ECHO_T}$ac_header_compiler" >&6; }
15049 # Is the header present?
15050 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15051 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15052 cat >conftest.
$ac_ext <<_ACEOF
15055 cat confdefs.h
>>conftest.
$ac_ext
15056 cat >>conftest.
$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15058 #include <X11/SM/SMlib.h>
15060 if { (ac_try
="$ac_cpp conftest.$ac_ext"
15061 case "(($ac_try" in
15062 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15063 *) ac_try_echo=$ac_try;;
15065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15068 grep -v '^ *+' conftest.er1 >conftest.err
15070 cat conftest.err >&5
15071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15072 (exit $ac_status); } >/dev/null && {
15073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15074 test ! -s conftest.err
15076 ac_header_preproc=yes
15078 echo "$as_me: failed program was:" >&5
15079 sed 's/^/| /' conftest.$ac_ext >&5
15081 ac_header_preproc=no
15084 rm -f conftest.err conftest.$ac_ext
15085 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15086 echo "${ECHO_T}$ac_header_preproc" >&6; }
15088 # So? What about this header?
15089 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15091 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15092 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15093 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15094 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15095 ac_header_preproc=yes
15098 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15099 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15100 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15101 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15102 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15103 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15104 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15105 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15106 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15107 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15108 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15109 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15113 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15114 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15115 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15116 echo $ECHO_N "(cached) $ECHO_C" >&6
15118 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15120 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15121 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15124 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15125 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15126 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15127 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15128 echo $ECHO_N "(cached) $ECHO_C" >&6
15130 ac_check_lib_save_LIBS=$LIBS
15131 LIBS="-lSM -lICE $LIBS"
15132 cat >conftest.$ac_ext <<_ACEOF
15135 cat confdefs.h >>conftest.$ac_ext
15136 cat >>conftest.$ac_ext <<_ACEOF
15137 /* end confdefs.h. */
15139 /* Override any GCC internal prototype to avoid an error.
15140 Use char because int might match the return type of a GCC
15141 builtin and then its argument prototype would still apply. */
15145 char SmcOpenConnection ();
15149 return SmcOpenConnection ();
15154 rm -f conftest.$ac_objext conftest$ac_exeext
15155 if { (ac_try="$ac_link"
15156 case "(($ac_try" in
15157 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15158 *) ac_try_echo
=$ac_try;;
15160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15161 (eval "$ac_link") 2>conftest.er1
15163 grep -v '^ *+' conftest.er1
>conftest.err
15165 cat conftest.err
>&5
15166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15167 (exit $ac_status); } && {
15168 test -z "$ac_c_werror_flag" ||
15169 test ! -s conftest.err
15170 } && test -s conftest
$ac_exeext &&
15171 $as_test_x conftest
$ac_exeext; then
15172 ac_cv_lib_SM_SmcOpenConnection
=yes
15174 echo "$as_me: failed program was:" >&5
15175 sed 's/^/| /' conftest.
$ac_ext >&5
15177 ac_cv_lib_SM_SmcOpenConnection
=no
15180 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15181 conftest
$ac_exeext conftest.
$ac_ext
15182 LIBS
=$ac_check_lib_save_LIBS
15184 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15185 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15186 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15194 if test "${HAVE_X_SM}" = "yes"; then
15196 cat >>confdefs.h
<<\_ACEOF
15197 #define HAVE_X_SM 1
15202 *) LIBS
="-lSM -lICE $LIBS" ;;
15207 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15208 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15209 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15210 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15211 echo $ECHO_N "(cached) $ECHO_C" >&6
15213 cat >conftest.
$ac_ext <<_ACEOF
15216 cat confdefs.h
>>conftest.
$ac_ext
15217 cat >>conftest.
$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15228 rm -f conftest.
$ac_objext conftest
$ac_exeext
15229 if { (ac_try
="$ac_link"
15230 case "(($ac_try" in
15231 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_link") 2>conftest.er1
15237 grep -v '^ *+' conftest.er1 >conftest.err
15239 cat conftest.err >&5
15240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15241 (exit $ac_status); } && {
15242 test -z "$ac_c_werror_flag" ||
15243 test ! -s conftest.err
15244 } && test -s conftest$ac_exeext &&
15245 $as_test_x conftest$ac_exeext; then
15246 emacs_cv_netdb_declares_h_errno=yes
15248 echo "$as_me: failed program was:" >&5
15249 sed 's/^/| /' conftest.$ac_ext >&5
15251 emacs_cv_netdb_declares_h_errno=no
15254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15255 conftest$ac_exeext conftest.$ac_ext
15257 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15258 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15259 if test $emacs_cv_netdb_declares_h_errno = yes; then
15261 cat >>confdefs.h <<\_ACEOF
15262 #define HAVE_H_ERRNO 1
15267 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15268 # for constant arguments. Useless!
15269 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15270 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15271 if test "${ac_cv_working_alloca_h+set}" = set; then
15272 echo $ECHO_N "(cached) $ECHO_C" >&6
15274 cat >conftest.$ac_ext <<_ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15280 #include <alloca.h>
15284 char *p = (char *) alloca (2 * sizeof (int));
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_working_alloca_h
=yes
15310 echo "$as_me: failed program was:" >&5
15311 sed 's/^/| /' conftest.
$ac_ext >&5
15313 ac_cv_working_alloca_h
=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_working_alloca_h" >&5
15320 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15321 if test $ac_cv_working_alloca_h = yes; then
15323 cat >>confdefs.h
<<\_ACEOF
15324 #define HAVE_ALLOCA_H 1
15329 { echo "$as_me:$LINENO: checking for alloca" >&5
15330 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15331 if test "${ac_cv_func_alloca_works+set}" = set; then
15332 echo $ECHO_N "(cached) $ECHO_C" >&6
15334 cat >conftest.
$ac_ext <<_ACEOF
15337 cat confdefs.h
>>conftest.
$ac_ext
15338 cat >>conftest.
$ac_ext <<_ACEOF
15339 /* end confdefs.h. */
15341 # define alloca __builtin_alloca
15344 # include <malloc.h>
15345 # define alloca _alloca
15347 # ifdef HAVE_ALLOCA_H
15348 # include <alloca.h>
15353 # ifndef alloca /* predefined by HP cc +Olibcalls */
15364 char *p = (char *) alloca (1);
15370 rm -f conftest.
$ac_objext conftest
$ac_exeext
15371 if { (ac_try
="$ac_link"
15372 case "(($ac_try" in
15373 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377 (eval "$ac_link") 2>conftest.er1
15379 grep -v '^ *+' conftest.er1 >conftest.err
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } && {
15384 test -z "$ac_c_werror_flag" ||
15385 test ! -s conftest.err
15386 } && test -s conftest$ac_exeext &&
15387 $as_test_x conftest$ac_exeext; then
15388 ac_cv_func_alloca_works=yes
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15393 ac_cv_func_alloca_works=no
15396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15397 conftest$ac_exeext conftest.$ac_ext
15399 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15400 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15402 if test $ac_cv_func_alloca_works = yes; then
15404 cat >>confdefs.h <<\_ACEOF
15405 #define HAVE_ALLOCA 1
15409 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15410 # that cause trouble. Some versions do not even contain alloca or
15411 # contain a buggy version. If you still want to use their alloca,
15412 # use ar to extract alloca.o from them instead of compiling alloca.c.
15414 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15416 cat >>confdefs.h <<\_ACEOF
15421 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15422 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15423 if test "${ac_cv_os_cray+set}" = set; then
15424 echo $ECHO_N "(cached
) $ECHO_C" >&6
15426 cat >conftest.$ac_ext <<_ACEOF
15429 cat confdefs.h >>conftest.$ac_ext
15430 cat >>conftest.$ac_ext <<_ACEOF
15431 /* end confdefs.h. */
15432 #if defined CRAY && ! defined CRAY2
15439 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15440 $EGREP "webecray
" >/dev/null 2>&1; then
15448 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15449 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15450 if test $ac_cv_os_cray = yes; then
15451 for ac_func in _getb67 GETB67 getb67; do
15452 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15453 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15454 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15455 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15456 echo $ECHO_N "(cached
) $ECHO_C" >&6
15458 cat >conftest.$ac_ext <<_ACEOF
15461 cat confdefs.h >>conftest.$ac_ext
15462 cat >>conftest.$ac_ext <<_ACEOF
15463 /* end confdefs.h. */
15464 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15465 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15466 #define $ac_func innocuous_$ac_func
15468 /* System header to define __stub macros and hopefully few prototypes,
15469 which can conflict with char $ac_func (); below.
15470 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15471 <limits.h> exists even on freestanding compilers. */
15474 # include <limits.h>
15476 # include <assert.h>
15481 /* Override any GCC internal prototype to avoid an error.
15482 Use char because int might match the return type of a GCC
15483 builtin and then its argument prototype would still apply. */
15488 /* The GNU C library defines this for functions which it implements
15489 to always fail with ENOSYS. Some functions are actually named
15490 something starting with __ and the normal name is an alias. */
15491 #if defined __stub_$ac_func || defined __stub___$ac_func
15498 return $ac_func ();
15503 rm -f conftest.$ac_objext conftest$ac_exeext
15504 if { (ac_try="$ac_link"
15505 case "(($ac_try" in
15506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15507 *) ac_try_echo=$ac_try;;
15509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15510 (eval "$ac_link") 2>conftest.er1
15512 grep -v '^ *+' conftest.er1 >conftest.err
15514 cat conftest.err >&5
15515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15516 (exit $ac_status); } && {
15517 test -z "$ac_c_werror_flag" ||
15518 test ! -s conftest.err
15519 } && test -s conftest$ac_exeext &&
15520 $as_test_x conftest$ac_exeext; then
15521 eval "$as_ac_var=yes"
15523 echo "$as_me: failed program was
:" >&5
15524 sed 's/^/| /' conftest.$ac_ext >&5
15526 eval "$as_ac_var=no
"
15529 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15530 conftest$ac_exeext conftest.$ac_ext
15532 ac_res=`eval echo '${'$as_ac_var'}'`
15533 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15534 echo "${ECHO_T}$ac_res" >&6; }
15535 if test `eval echo '${'$as_ac_var'}'` = yes; then
15537 cat >>confdefs.h <<_ACEOF
15538 #define CRAY_STACKSEG_END $ac_func
15547 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15548 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15549 if test "${ac_cv_c_stack_direction+set}" = set; then
15550 echo $ECHO_N "(cached
) $ECHO_C" >&6
15552 if test "$cross_compiling" = yes; then
15553 ac_cv_c_stack_direction=0
15555 cat >conftest.$ac_ext <<_ACEOF
15558 cat confdefs.h >>conftest.$ac_ext
15559 cat >>conftest.$ac_ext <<_ACEOF
15560 /* end confdefs.h. */
15561 $ac_includes_default
15563 find_stack_direction ()
15565 static char *addr = 0;
15570 return find_stack_direction ();
15573 return (&dummy > addr) ? 1 : -1;
15579 return find_stack_direction () < 0;
15582 rm -f conftest$ac_exeext
15583 if { (ac_try="$ac_link"
15584 case "(($ac_try" in
15585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15586 *) ac_try_echo=$ac_try;;
15588 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15589 (eval "$ac_link") 2>&5
15591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15592 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15593 { (case "(($ac_try" in
15594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15595 *) ac_try_echo=$ac_try;;
15597 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15598 (eval "$ac_try") 2>&5
15600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15601 (exit $ac_status); }; }; then
15602 ac_cv_c_stack_direction=1
15604 echo "$as_me: program exited with status
$ac_status" >&5
15605 echo "$as_me: failed program was
:" >&5
15606 sed 's/^/| /' conftest.$ac_ext >&5
15608 ( exit $ac_status )
15609 ac_cv_c_stack_direction=-1
15611 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15616 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15617 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15619 cat >>confdefs.h <<_ACEOF
15620 #define STACK_DIRECTION $ac_cv_c_stack_direction
15627 if test x"$ac_cv_func_alloca_works" != xyes; then
15628 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15629 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15630 { (exit 1); exit 1; }; }
15633 # fmod, logb, and frexp are found in -lm on most systems.
15634 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15636 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15637 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15638 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15639 echo $ECHO_N "(cached
) $ECHO_C" >&6
15641 ac_check_lib_save_LIBS=$LIBS
15643 cat >conftest.$ac_ext <<_ACEOF
15646 cat confdefs.h >>conftest.$ac_ext
15647 cat >>conftest.$ac_ext <<_ACEOF
15648 /* end confdefs.h. */
15650 /* Override any GCC internal prototype to avoid an error.
15651 Use char because int might match the return type of a GCC
15652 builtin and then its argument prototype would still apply. */
15665 rm -f conftest.$ac_objext conftest$ac_exeext
15666 if { (ac_try="$ac_link"
15667 case "(($ac_try" in
15668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15669 *) ac_try_echo=$ac_try;;
15671 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15672 (eval "$ac_link") 2>conftest.er1
15674 grep -v '^ *+' conftest.er1 >conftest.err
15676 cat conftest.err >&5
15677 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15678 (exit $ac_status); } && {
15679 test -z "$ac_c_werror_flag" ||
15680 test ! -s conftest.err
15681 } && test -s conftest$ac_exeext &&
15682 $as_test_x conftest$ac_exeext; then
15683 ac_cv_lib_m_sqrt=yes
15685 echo "$as_me: failed program was
:" >&5
15686 sed 's/^/| /' conftest.$ac_ext >&5
15688 ac_cv_lib_m_sqrt=no
15691 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15692 conftest$ac_exeext conftest.$ac_ext
15693 LIBS=$ac_check_lib_save_LIBS
15695 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15696 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15697 if test $ac_cv_lib_m_sqrt = yes; then
15698 cat >>confdefs.h <<_ACEOF
15699 #define HAVE_LIBM 1
15707 # Check for mail-locking functions in a "mail" library. Probably this should
15708 # have the same check as for liblockfile below.
15710 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15711 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15712 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15713 echo $ECHO_N "(cached
) $ECHO_C" >&6
15715 ac_check_lib_save_LIBS=$LIBS
15716 LIBS="-lmail $LIBS"
15717 cat >conftest.$ac_ext <<_ACEOF
15720 cat confdefs.h >>conftest.$ac_ext
15721 cat >>conftest.$ac_ext <<_ACEOF
15722 /* end confdefs.h. */
15724 /* Override any GCC internal prototype to avoid an error.
15725 Use char because int might match the return type of a GCC
15726 builtin and then its argument prototype would still apply. */
15734 return maillock ();
15739 rm -f conftest.$ac_objext conftest$ac_exeext
15740 if { (ac_try="$ac_link"
15741 case "(($ac_try" in
15742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15743 *) ac_try_echo=$ac_try;;
15745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15746 (eval "$ac_link") 2>conftest.er1
15748 grep -v '^ *+' conftest.er1 >conftest.err
15750 cat conftest.err >&5
15751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15752 (exit $ac_status); } && {
15753 test -z "$ac_c_werror_flag" ||
15754 test ! -s conftest.err
15755 } && test -s conftest$ac_exeext &&
15756 $as_test_x conftest$ac_exeext; then
15757 ac_cv_lib_mail_maillock=yes
15759 echo "$as_me: failed program was
:" >&5
15760 sed 's/^/| /' conftest.$ac_ext >&5
15762 ac_cv_lib_mail_maillock=no
15765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15766 conftest$ac_exeext conftest.$ac_ext
15767 LIBS=$ac_check_lib_save_LIBS
15769 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15770 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15771 if test $ac_cv_lib_mail_maillock = yes; then
15772 cat >>confdefs.h <<_ACEOF
15773 #define HAVE_LIBMAIL 1
15776 LIBS="-lmail $LIBS"
15781 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15782 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15783 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15784 echo $ECHO_N "(cached
) $ECHO_C" >&6
15786 ac_check_lib_save_LIBS=$LIBS
15787 LIBS="-llockfile $LIBS"
15788 cat >conftest.$ac_ext <<_ACEOF
15791 cat confdefs.h >>conftest.$ac_ext
15792 cat >>conftest.$ac_ext <<_ACEOF
15793 /* end confdefs.h. */
15795 /* Override any GCC internal prototype to avoid an error.
15796 Use char because int might match the return type of a GCC
15797 builtin and then its argument prototype would still apply. */
15805 return maillock ();
15810 rm -f conftest.$ac_objext conftest$ac_exeext
15811 if { (ac_try="$ac_link"
15812 case "(($ac_try" in
15813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15814 *) ac_try_echo=$ac_try;;
15816 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15817 (eval "$ac_link") 2>conftest.er1
15819 grep -v '^ *+' conftest.er1 >conftest.err
15821 cat conftest.err >&5
15822 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15823 (exit $ac_status); } && {
15824 test -z "$ac_c_werror_flag" ||
15825 test ! -s conftest.err
15826 } && test -s conftest$ac_exeext &&
15827 $as_test_x conftest$ac_exeext; then
15828 ac_cv_lib_lockfile_maillock=yes
15830 echo "$as_me: failed program was
:" >&5
15831 sed 's/^/| /' conftest.$ac_ext >&5
15833 ac_cv_lib_lockfile_maillock=no
15836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15837 conftest$ac_exeext conftest.$ac_ext
15838 LIBS=$ac_check_lib_save_LIBS
15840 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15841 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15842 if test $ac_cv_lib_lockfile_maillock = yes; then
15843 cat >>confdefs.h <<_ACEOF
15844 #define HAVE_LIBLOCKFILE 1
15847 LIBS="-llockfile $LIBS"
15851 # If we have the shared liblockfile, assume we must use it for mail
15852 # locking (e.g. Debian). If we couldn't link against liblockfile
15853 # (no liblockfile.a installed), ensure that we don't need to.
15854 if test "$ac_cv_lib_lockfile_maillock" = no; then
15855 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15856 set dummy liblockfile.so; ac_word=$2
15857 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15858 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15859 if test "${ac_cv_prog_liblockfile+set}" = set; then
15860 echo $ECHO_N "(cached
) $ECHO_C" >&6
15862 if test -n "$liblockfile"; then
15863 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15866 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15867 for as_dir in $as_dummy
15870 test -z "$as_dir" && as_dir=.
15871 for ac_exec_ext in '' $ac_executable_extensions; do
15872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15873 ac_cv_prog_liblockfile="yes"
15874 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15881 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15884 liblockfile=$ac_cv_prog_liblockfile
15885 if test -n "$liblockfile"; then
15886 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15887 echo "${ECHO_T}$liblockfile" >&6; }
15889 { echo "$as_me:$LINENO: result
: no
" >&5
15890 echo "${ECHO_T}no
" >&6; }
15894 if test $ac_cv_prog_liblockfile = yes; then
15895 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15896 This probably means that movemail could lose mail.
15897 There may be a \`development' package to
install containing liblockfile.
" >&5
15898 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15899 This probably means that movemail could lose mail.
15900 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15901 { (exit 1); exit 1; }; }
15906 for ac_func in touchlock
15908 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15909 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15910 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15911 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15912 echo $ECHO_N "(cached
) $ECHO_C" >&6
15914 cat >conftest.$ac_ext <<_ACEOF
15917 cat confdefs.h >>conftest.$ac_ext
15918 cat >>conftest.$ac_ext <<_ACEOF
15919 /* end confdefs.h. */
15920 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15922 #define $ac_func innocuous_$ac_func
15924 /* System header to define __stub macros and hopefully few prototypes,
15925 which can conflict with char $ac_func (); below.
15926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15927 <limits.h> exists even on freestanding compilers. */
15930 # include <limits.h>
15932 # include <assert.h>
15937 /* Override any GCC internal prototype to avoid an error.
15938 Use char because int might match the return type of a GCC
15939 builtin and then its argument prototype would still apply. */
15944 /* The GNU C library defines this for functions which it implements
15945 to always fail with ENOSYS. Some functions are actually named
15946 something starting with __ and the normal name is an alias. */
15947 #if defined __stub_$ac_func || defined __stub___$ac_func
15954 return $ac_func ();
15959 rm -f conftest.$ac_objext conftest$ac_exeext
15960 if { (ac_try="$ac_link"
15961 case "(($ac_try" in
15962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15963 *) ac_try_echo=$ac_try;;
15965 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15966 (eval "$ac_link") 2>conftest.er1
15968 grep -v '^ *+' conftest.er1 >conftest.err
15970 cat conftest.err >&5
15971 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15972 (exit $ac_status); } && {
15973 test -z "$ac_c_werror_flag" ||
15974 test ! -s conftest.err
15975 } && test -s conftest$ac_exeext &&
15976 $as_test_x conftest$ac_exeext; then
15977 eval "$as_ac_var=yes"
15979 echo "$as_me: failed program was
:" >&5
15980 sed 's/^/| /' conftest.$ac_ext >&5
15982 eval "$as_ac_var=no
"
15985 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15986 conftest$ac_exeext conftest.$ac_ext
15988 ac_res=`eval echo '${'$as_ac_var'}'`
15989 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15990 echo "${ECHO_T}$ac_res" >&6; }
15991 if test `eval echo '${'$as_ac_var'}'` = yes; then
15992 cat >>confdefs.h <<_ACEOF
15993 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16000 for ac_header in maillock.h
16002 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16003 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16004 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16005 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16006 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16007 echo $ECHO_N "(cached
) $ECHO_C" >&6
16009 ac_res=`eval echo '${'$as_ac_Header'}'`
16010 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16011 echo "${ECHO_T}$ac_res" >&6; }
16013 # Is the header compilable?
16014 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16015 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16016 cat >conftest.$ac_ext <<_ACEOF
16019 cat confdefs.h >>conftest.$ac_ext
16020 cat >>conftest.$ac_ext <<_ACEOF
16021 /* end confdefs.h. */
16022 $ac_includes_default
16023 #include <$ac_header>
16025 rm -f conftest.$ac_objext
16026 if { (ac_try="$ac_compile"
16027 case "(($ac_try" in
16028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16029 *) ac_try_echo=$ac_try;;
16031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16032 (eval "$ac_compile") 2>conftest.er1
16034 grep -v '^ *+' conftest.er1 >conftest.err
16036 cat conftest.err >&5
16037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16038 (exit $ac_status); } && {
16039 test -z "$ac_c_werror_flag" ||
16040 test ! -s conftest.err
16041 } && test -s conftest.$ac_objext; then
16042 ac_header_compiler=yes
16044 echo "$as_me: failed program was
:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 ac_header_compiler=no
16050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16051 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16052 echo "${ECHO_T}$ac_header_compiler" >&6; }
16054 # Is the header present?
16055 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16056 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16057 cat >conftest.$ac_ext <<_ACEOF
16060 cat confdefs.h >>conftest.$ac_ext
16061 cat >>conftest.$ac_ext <<_ACEOF
16062 /* end confdefs.h. */
16063 #include <$ac_header>
16065 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16066 case "(($ac_try" in
16067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16068 *) ac_try_echo=$ac_try;;
16070 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16071 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16073 grep -v '^ *+' conftest.er1 >conftest.err
16075 cat conftest.err >&5
16076 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16077 (exit $ac_status); } >/dev/null && {
16078 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16079 test ! -s conftest.err
16081 ac_header_preproc=yes
16083 echo "$as_me: failed program was
:" >&5
16084 sed 's/^/| /' conftest.$ac_ext >&5
16086 ac_header_preproc=no
16089 rm -f conftest.err conftest.$ac_ext
16090 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16091 echo "${ECHO_T}$ac_header_preproc" >&6; }
16093 # So? What about this header?
16094 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16096 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16097 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16098 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16099 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16100 ac_header_preproc=yes
16103 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16104 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16105 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16106 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16107 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16108 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16109 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16110 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16111 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16112 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16113 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16114 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16118 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16119 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16120 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16121 echo $ECHO_N "(cached
) $ECHO_C" >&6
16123 eval "$as_ac_Header=\
$ac_header_preproc"
16125 ac_res=`eval echo '${'$as_ac_Header'}'`
16126 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16127 echo "${ECHO_T}$ac_res" >&6; }
16130 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16131 cat >>confdefs.h <<_ACEOF
16132 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16208 for ac_func in gethostname getdomainname dup2 \
16209 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16210 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16211 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16212 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16213 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16214 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16215 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16216 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16218 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16219 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16220 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16221 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16222 echo $ECHO_N "(cached
) $ECHO_C" >&6
16224 cat >conftest.$ac_ext <<_ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16232 #define $ac_func innocuous_$ac_func
16234 /* System header to define __stub macros and hopefully few prototypes,
16235 which can conflict with char $ac_func (); below.
16236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16237 <limits.h> exists even on freestanding compilers. */
16240 # include <limits.h>
16242 # include <assert.h>
16247 /* Override any GCC internal prototype to avoid an error.
16248 Use char because int might match the return type of a GCC
16249 builtin and then its argument prototype would still apply. */
16254 /* The GNU C library defines this for functions which it implements
16255 to always fail with ENOSYS. Some functions are actually named
16256 something starting with __ and the normal name is an alias. */
16257 #if defined __stub_$ac_func || defined __stub___$ac_func
16264 return $ac_func ();
16269 rm -f conftest.$ac_objext conftest$ac_exeext
16270 if { (ac_try="$ac_link"
16271 case "(($ac_try" in
16272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16273 *) ac_try_echo=$ac_try;;
16275 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16276 (eval "$ac_link") 2>conftest.er1
16278 grep -v '^ *+' conftest.er1 >conftest.err
16280 cat conftest.err >&5
16281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16282 (exit $ac_status); } && {
16283 test -z "$ac_c_werror_flag" ||
16284 test ! -s conftest.err
16285 } && test -s conftest$ac_exeext &&
16286 $as_test_x conftest$ac_exeext; then
16287 eval "$as_ac_var=yes"
16289 echo "$as_me: failed program was
:" >&5
16290 sed 's/^/| /' conftest.$ac_ext >&5
16292 eval "$as_ac_var=no
"
16295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16296 conftest$ac_exeext conftest.$ac_ext
16298 ac_res=`eval echo '${'$as_ac_var'}'`
16299 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16300 echo "${ECHO_T}$ac_res" >&6; }
16301 if test `eval echo '${'$as_ac_var'}'` = yes; then
16302 cat >>confdefs.h <<_ACEOF
16303 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16311 for ac_header in sys/un.h
16313 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16314 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16315 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16316 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16317 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16318 echo $ECHO_N "(cached
) $ECHO_C" >&6
16320 ac_res=`eval echo '${'$as_ac_Header'}'`
16321 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16322 echo "${ECHO_T}$ac_res" >&6; }
16324 # Is the header compilable?
16325 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16326 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16327 cat >conftest.$ac_ext <<_ACEOF
16330 cat confdefs.h >>conftest.$ac_ext
16331 cat >>conftest.$ac_ext <<_ACEOF
16332 /* end confdefs.h. */
16333 $ac_includes_default
16334 #include <$ac_header>
16336 rm -f conftest.$ac_objext
16337 if { (ac_try="$ac_compile"
16338 case "(($ac_try" in
16339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16340 *) ac_try_echo=$ac_try;;
16342 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16343 (eval "$ac_compile") 2>conftest.er1
16345 grep -v '^ *+' conftest.er1 >conftest.err
16347 cat conftest.err >&5
16348 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16349 (exit $ac_status); } && {
16350 test -z "$ac_c_werror_flag" ||
16351 test ! -s conftest.err
16352 } && test -s conftest.$ac_objext; then
16353 ac_header_compiler=yes
16355 echo "$as_me: failed program was
:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16358 ac_header_compiler=no
16361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16362 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16363 echo "${ECHO_T}$ac_header_compiler" >&6; }
16365 # Is the header present?
16366 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16367 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16368 cat >conftest.$ac_ext <<_ACEOF
16371 cat confdefs.h >>conftest.$ac_ext
16372 cat >>conftest.$ac_ext <<_ACEOF
16373 /* end confdefs.h. */
16374 #include <$ac_header>
16376 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16377 case "(($ac_try" in
16378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16379 *) ac_try_echo=$ac_try;;
16381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16382 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16384 grep -v '^ *+' conftest.er1 >conftest.err
16386 cat conftest.err >&5
16387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16388 (exit $ac_status); } >/dev/null && {
16389 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16390 test ! -s conftest.err
16392 ac_header_preproc=yes
16394 echo "$as_me: failed program was
:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16397 ac_header_preproc=no
16400 rm -f conftest.err conftest.$ac_ext
16401 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16402 echo "${ECHO_T}$ac_header_preproc" >&6; }
16404 # So? What about this header?
16405 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16407 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16408 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16409 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16410 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16411 ac_header_preproc=yes
16414 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16415 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16416 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16417 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16418 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16419 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16420 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16421 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16422 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16423 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16424 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16425 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16429 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16430 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16431 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16432 echo $ECHO_N "(cached
) $ECHO_C" >&6
16434 eval "$as_ac_Header=\
$ac_header_preproc"
16436 ac_res=`eval echo '${'$as_ac_Header'}'`
16437 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16438 echo "${ECHO_T}$ac_res" >&6; }
16441 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16442 cat >>confdefs.h <<_ACEOF
16443 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16455 for ac_header in $ac_header_list
16457 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16458 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16459 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16460 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16461 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16462 echo $ECHO_N "(cached
) $ECHO_C" >&6
16464 ac_res=`eval echo '${'$as_ac_Header'}'`
16465 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16466 echo "${ECHO_T}$ac_res" >&6; }
16468 # Is the header compilable?
16469 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16470 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16471 cat >conftest.$ac_ext <<_ACEOF
16474 cat confdefs.h >>conftest.$ac_ext
16475 cat >>conftest.$ac_ext <<_ACEOF
16476 /* end confdefs.h. */
16477 $ac_includes_default
16478 #include <$ac_header>
16480 rm -f conftest.$ac_objext
16481 if { (ac_try="$ac_compile"
16482 case "(($ac_try" in
16483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16484 *) ac_try_echo=$ac_try;;
16486 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16487 (eval "$ac_compile") 2>conftest.er1
16489 grep -v '^ *+' conftest.er1 >conftest.err
16491 cat conftest.err >&5
16492 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16493 (exit $ac_status); } && {
16494 test -z "$ac_c_werror_flag" ||
16495 test ! -s conftest.err
16496 } && test -s conftest.$ac_objext; then
16497 ac_header_compiler=yes
16499 echo "$as_me: failed program was
:" >&5
16500 sed 's/^/| /' conftest.$ac_ext >&5
16502 ac_header_compiler=no
16505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16506 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16507 echo "${ECHO_T}$ac_header_compiler" >&6; }
16509 # Is the header present?
16510 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16511 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16512 cat >conftest.$ac_ext <<_ACEOF
16515 cat confdefs.h >>conftest.$ac_ext
16516 cat >>conftest.$ac_ext <<_ACEOF
16517 /* end confdefs.h. */
16518 #include <$ac_header>
16520 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16521 case "(($ac_try" in
16522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16523 *) ac_try_echo=$ac_try;;
16525 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16526 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16528 grep -v '^ *+' conftest.er1 >conftest.err
16530 cat conftest.err >&5
16531 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16532 (exit $ac_status); } >/dev/null && {
16533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16534 test ! -s conftest.err
16536 ac_header_preproc=yes
16538 echo "$as_me: failed program was
:" >&5
16539 sed 's/^/| /' conftest.$ac_ext >&5
16541 ac_header_preproc=no
16544 rm -f conftest.err conftest.$ac_ext
16545 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16546 echo "${ECHO_T}$ac_header_preproc" >&6; }
16548 # So? What about this header?
16549 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16551 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16552 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16553 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16554 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16555 ac_header_preproc=yes
16558 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16559 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16560 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16561 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16562 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16563 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16564 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16565 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16566 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16567 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16568 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16569 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16573 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16574 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16575 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16576 echo $ECHO_N "(cached
) $ECHO_C" >&6
16578 eval "$as_ac_Header=\
$ac_header_preproc"
16580 ac_res=`eval echo '${'$as_ac_Header'}'`
16581 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16582 echo "${ECHO_T}$ac_res" >&6; }
16585 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16586 cat >>confdefs.h <<_ACEOF
16587 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16602 for ac_func in $ac_func_list
16604 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16605 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16606 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16607 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16608 echo $ECHO_N "(cached
) $ECHO_C" >&6
16610 cat >conftest.$ac_ext <<_ACEOF
16613 cat confdefs.h >>conftest.$ac_ext
16614 cat >>conftest.$ac_ext <<_ACEOF
16615 /* end confdefs.h. */
16616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16618 #define $ac_func innocuous_$ac_func
16620 /* System header to define __stub macros and hopefully few prototypes,
16621 which can conflict with char $ac_func (); below.
16622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16623 <limits.h> exists even on freestanding compilers. */
16626 # include <limits.h>
16628 # include <assert.h>
16633 /* Override any GCC internal prototype to avoid an error.
16634 Use char because int might match the return type of a GCC
16635 builtin and then its argument prototype would still apply. */
16640 /* The GNU C library defines this for functions which it implements
16641 to always fail with ENOSYS. Some functions are actually named
16642 something starting with __ and the normal name is an alias. */
16643 #if defined __stub_$ac_func || defined __stub___$ac_func
16650 return $ac_func ();
16655 rm -f conftest.$ac_objext conftest$ac_exeext
16656 if { (ac_try="$ac_link"
16657 case "(($ac_try" in
16658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16659 *) ac_try_echo=$ac_try;;
16661 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16662 (eval "$ac_link") 2>conftest.er1
16664 grep -v '^ *+' conftest.er1 >conftest.err
16666 cat conftest.err >&5
16667 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16668 (exit $ac_status); } && {
16669 test -z "$ac_c_werror_flag" ||
16670 test ! -s conftest.err
16671 } && test -s conftest$ac_exeext &&
16672 $as_test_x conftest$ac_exeext; then
16673 eval "$as_ac_var=yes"
16675 echo "$as_me: failed program was
:" >&5
16676 sed 's/^/| /' conftest.$ac_ext >&5
16678 eval "$as_ac_var=no
"
16681 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16682 conftest$ac_exeext conftest.$ac_ext
16684 ac_res=`eval echo '${'$as_ac_var'}'`
16685 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16686 echo "${ECHO_T}$ac_res" >&6; }
16687 if test `eval echo '${'$as_ac_var'}'` = yes; then
16688 cat >>confdefs.h <<_ACEOF
16689 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16711 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16712 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16713 if test "${ac_cv_func_working_mktime+set}" = set; then
16714 echo $ECHO_N "(cached
) $ECHO_C" >&6
16716 if test "$cross_compiling" = yes; then
16717 ac_cv_func_working_mktime=no
16719 cat >conftest.$ac_ext <<_ACEOF
16722 cat confdefs.h >>conftest.$ac_ext
16723 cat >>conftest.$ac_ext <<_ACEOF
16724 /* end confdefs.h. */
16725 /* Test program from Paul Eggert and Tony Leneis. */
16726 #ifdef TIME_WITH_SYS_TIME
16727 # include <sys/time.h>
16730 # ifdef HAVE_SYS_TIME_H
16731 # include <sys/time.h>
16737 #include <limits.h>
16738 #include <stdlib.h>
16740 #ifdef HAVE_UNISTD_H
16741 # include <unistd.h>
16745 # define alarm(X) /* empty */
16748 /* Work around redefinition to rpl_putenv by other config tests. */
16751 static time_t time_t_max;
16752 static time_t time_t_min;
16754 /* Values we'll use to set the TZ environment variable. */
16755 static char *tz_strings[] = {
16756 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16757 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16759 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16761 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16762 Based on a problem report from Andreas Jaeger. */
16764 spring_forward_gap ()
16766 /* glibc (up to about 1998-10-07) failed this test. */
16769 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16770 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16771 on systems that don't support the Olson extension, or don't have the
16772 full zoneinfo tables installed. */
16773 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16782 return mktime (&tm) != (time_t) -1;
16790 return ! (lt = localtime (&now)) || mktime (lt) == now;
16797 return (mktime_test1 (now)
16798 && mktime_test1 ((time_t) (time_t_max - now))
16799 && mktime_test1 ((time_t) (time_t_min + now)));
16805 /* Based on code from Ariel Faigon. */
16815 return tm.tm_mon == 2 && tm.tm_mday == 31;
16824 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16825 now = mktime (&tm);
16826 if (now != (time_t) -1)
16828 struct tm *lt = localtime (&now);
16830 && lt->tm_year == tm.tm_year
16831 && lt->tm_mon == tm.tm_mon
16832 && lt->tm_mday == tm.tm_mday
16833 && lt->tm_hour == tm.tm_hour
16834 && lt->tm_min == tm.tm_min
16835 && lt->tm_sec == tm.tm_sec
16836 && lt->tm_yday == tm.tm_yday
16837 && lt->tm_wday == tm.tm_wday
16838 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16839 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16848 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16849 ignoring leap seconds. */
16850 unsigned long int answer = 2527315200UL;
16854 tm.tm_year = 2050 - 1900;
16857 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16860 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16861 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16862 on systems that don't support the Olson extension, or don't have the
16863 full zoneinfo tables installed. */
16864 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16868 /* Check that the result is either a failure, or close enough
16869 to the correct answer that we can assume the discrepancy is
16870 due to leap seconds. */
16871 return (t == (time_t) -1
16872 || (0 < t && answer - 120 <= t && t <= answer + 120));
16881 /* This test makes some buggy mktime implementations loop.
16882 Give up after 60 seconds; a mktime slower than that
16883 isn't worth using anyway. */
16888 t = (time_t_max << 1) + 1;
16889 if (t <= time_t_max)
16893 time_t_min = - ((time_t) ~ (time_t) 0 == (time_t) -1) - time_t_max;
16895 delta = time_t_max / 997; /* a suitable prime number */
16896 for (i = 0; i < N_STRINGS; i++)
16899 putenv (tz_strings[i]);
16901 for (t = 0; t <= time_t_max - delta; t += delta)
16902 if (! mktime_test (t))
16904 if (! (mktime_test ((time_t) 1)
16905 && mktime_test ((time_t) (60 * 60))
16906 && mktime_test ((time_t) (60 * 60 * 24))))
16909 for (j = 1; ; j <<= 1)
16910 if (! bigtime_test (j))
16912 else if (INT_MAX / 2 < j)
16914 if (! bigtime_test (INT_MAX))
16917 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16920 rm -f conftest$ac_exeext
16921 if { (ac_try="$ac_link"
16922 case "(($ac_try" in
16923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16924 *) ac_try_echo=$ac_try;;
16926 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16927 (eval "$ac_link") 2>&5
16929 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16931 { (case "(($ac_try" in
16932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16933 *) ac_try_echo=$ac_try;;
16935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16936 (eval "$ac_try") 2>&5
16938 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16939 (exit $ac_status); }; }; then
16940 ac_cv_func_working_mktime=yes
16942 echo "$as_me: program exited with status
$ac_status" >&5
16943 echo "$as_me: failed program was
:" >&5
16944 sed 's/^/| /' conftest.$ac_ext >&5
16946 ( exit $ac_status )
16947 ac_cv_func_working_mktime=no
16949 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16954 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16955 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16956 if test $ac_cv_func_working_mktime = no; then
16957 case " $LIBOBJS " in
16958 *" mktime.
$ac_objext "* ) ;;
16959 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16965 if test "$ac_cv_func_working_mktime" = no; then
16967 cat >>confdefs.h <<\_ACEOF
16968 #define BROKEN_MKTIME 1
16973 ac_have_func=no # yes means we've found a way to get the load average.
16975 # Make sure getloadavg.c is where it belongs, at configure-time.
16976 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16977 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16978 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16979 { (exit 1); exit 1; }; }
16983 # Check for getloadavg, but be sure not to touch the cache variable.
16984 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16985 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16986 if test "${ac_cv_func_getloadavg+set}" = set; then
16987 echo $ECHO_N "(cached
) $ECHO_C" >&6
16989 cat >conftest.$ac_ext <<_ACEOF
16992 cat confdefs.h >>conftest.$ac_ext
16993 cat >>conftest.$ac_ext <<_ACEOF
16994 /* end confdefs.h. */
16995 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16997 #define getloadavg innocuous_getloadavg
16999 /* System header to define __stub macros and hopefully few prototypes,
17000 which can conflict with char getloadavg (); below.
17001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17002 <limits.h> exists even on freestanding compilers. */
17005 # include <limits.h>
17007 # include <assert.h>
17012 /* Override any GCC internal prototype to avoid an error.
17013 Use char because int might match the return type of a GCC
17014 builtin and then its argument prototype would still apply. */
17018 char getloadavg ();
17019 /* The GNU C library defines this for functions which it implements
17020 to always fail with ENOSYS. Some functions are actually named
17021 something starting with __ and the normal name is an alias. */
17022 #if defined __stub_getloadavg || defined __stub___getloadavg
17029 return getloadavg ();
17034 rm -f conftest.$ac_objext conftest$ac_exeext
17035 if { (ac_try="$ac_link"
17036 case "(($ac_try" in
17037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17038 *) ac_try_echo=$ac_try;;
17040 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17041 (eval "$ac_link") 2>conftest.er1
17043 grep -v '^ *+' conftest.er1 >conftest.err
17045 cat conftest.err >&5
17046 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17047 (exit $ac_status); } && {
17048 test -z "$ac_c_werror_flag" ||
17049 test ! -s conftest.err
17050 } && test -s conftest$ac_exeext &&
17051 $as_test_x conftest$ac_exeext; then
17052 ac_cv_func_getloadavg=yes
17054 echo "$as_me: failed program was
:" >&5
17055 sed 's/^/| /' conftest.$ac_ext >&5
17057 ac_cv_func_getloadavg=no
17060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17061 conftest$ac_exeext conftest.$ac_ext
17063 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
17064 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17065 if test $ac_cv_func_getloadavg = yes; then
17070 ) && ac_have_func=yes
17072 # On HPUX9, an unprivileged user can get load averages through this function.
17074 for ac_func in pstat_getdynamic
17076 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17077 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17078 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17079 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17080 echo $ECHO_N "(cached
) $ECHO_C" >&6
17082 cat >conftest.$ac_ext <<_ACEOF
17085 cat confdefs.h >>conftest.$ac_ext
17086 cat >>conftest.$ac_ext <<_ACEOF
17087 /* end confdefs.h. */
17088 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17089 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17090 #define $ac_func innocuous_$ac_func
17092 /* System header to define __stub macros and hopefully few prototypes,
17093 which can conflict with char $ac_func (); below.
17094 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17095 <limits.h> exists even on freestanding compilers. */
17098 # include <limits.h>
17100 # include <assert.h>
17105 /* Override any GCC internal prototype to avoid an error.
17106 Use char because int might match the return type of a GCC
17107 builtin and then its argument prototype would still apply. */
17112 /* The GNU C library defines this for functions which it implements
17113 to always fail with ENOSYS. Some functions are actually named
17114 something starting with __ and the normal name is an alias. */
17115 #if defined __stub_$ac_func || defined __stub___$ac_func
17122 return $ac_func ();
17127 rm -f conftest.$ac_objext conftest$ac_exeext
17128 if { (ac_try="$ac_link"
17129 case "(($ac_try" in
17130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17131 *) ac_try_echo=$ac_try;;
17133 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17134 (eval "$ac_link") 2>conftest.er1
17136 grep -v '^ *+' conftest.er1 >conftest.err
17138 cat conftest.err >&5
17139 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17140 (exit $ac_status); } && {
17141 test -z "$ac_c_werror_flag" ||
17142 test ! -s conftest.err
17143 } && test -s conftest$ac_exeext &&
17144 $as_test_x conftest$ac_exeext; then
17145 eval "$as_ac_var=yes"
17147 echo "$as_me: failed program was
:" >&5
17148 sed 's/^/| /' conftest.$ac_ext >&5
17150 eval "$as_ac_var=no
"
17153 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17154 conftest$ac_exeext conftest.$ac_ext
17156 ac_res=`eval echo '${'$as_ac_var'}'`
17157 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17158 echo "${ECHO_T}$ac_res" >&6; }
17159 if test `eval echo '${'$as_ac_var'}'` = yes; then
17160 cat >>confdefs.h <<_ACEOF
17161 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17168 # Solaris has libkstat which does not require root.
17170 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
17171 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
17172 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17173 echo $ECHO_N "(cached
) $ECHO_C" >&6
17175 ac_check_lib_save_LIBS=$LIBS
17176 LIBS="-lkstat $LIBS"
17177 cat >conftest.$ac_ext <<_ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h. */
17184 /* Override any GCC internal prototype to avoid an error.
17185 Use char because int might match the return type of a GCC
17186 builtin and then its argument prototype would still apply. */
17190 char kstat_open ();
17194 return kstat_open ();
17199 rm -f conftest.$ac_objext conftest$ac_exeext
17200 if { (ac_try="$ac_link"
17201 case "(($ac_try" in
17202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17203 *) ac_try_echo=$ac_try;;
17205 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17206 (eval "$ac_link") 2>conftest.er1
17208 grep -v '^ *+' conftest.er1 >conftest.err
17210 cat conftest.err >&5
17211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17212 (exit $ac_status); } && {
17213 test -z "$ac_c_werror_flag" ||
17214 test ! -s conftest.err
17215 } && test -s conftest$ac_exeext &&
17216 $as_test_x conftest$ac_exeext; then
17217 ac_cv_lib_kstat_kstat_open=yes
17219 echo "$as_me: failed program was
:" >&5
17220 sed 's/^/| /' conftest.$ac_ext >&5
17222 ac_cv_lib_kstat_kstat_open=no
17225 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17226 conftest$ac_exeext conftest.$ac_ext
17227 LIBS=$ac_check_lib_save_LIBS
17229 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
17230 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17231 if test $ac_cv_lib_kstat_kstat_open = yes; then
17232 cat >>confdefs.h <<_ACEOF
17233 #define HAVE_LIBKSTAT 1
17236 LIBS="-lkstat $LIBS"
17240 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17242 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17243 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17244 # to get the right answer into the cache.
17245 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17246 if test $ac_have_func = no; then
17247 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17248 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17249 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17250 echo $ECHO_N "(cached
) $ECHO_C" >&6
17252 ac_check_lib_save_LIBS=$LIBS
17254 cat >conftest.$ac_ext <<_ACEOF
17257 cat confdefs.h >>conftest.$ac_ext
17258 cat >>conftest.$ac_ext <<_ACEOF
17259 /* end confdefs.h. */
17261 /* Override any GCC internal prototype to avoid an error.
17262 Use char because int might match the return type of a GCC
17263 builtin and then its argument prototype would still apply. */
17271 return elf_begin ();
17276 rm -f conftest.$ac_objext conftest$ac_exeext
17277 if { (ac_try="$ac_link"
17278 case "(($ac_try" in
17279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17280 *) ac_try_echo=$ac_try;;
17282 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17283 (eval "$ac_link") 2>conftest.er1
17285 grep -v '^ *+' conftest.er1 >conftest.err
17287 cat conftest.err >&5
17288 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17289 (exit $ac_status); } && {
17290 test -z "$ac_c_werror_flag" ||
17291 test ! -s conftest.err
17292 } && test -s conftest$ac_exeext &&
17293 $as_test_x conftest$ac_exeext; then
17294 ac_cv_lib_elf_elf_begin=yes
17296 echo "$as_me: failed program was
:" >&5
17297 sed 's/^/| /' conftest.$ac_ext >&5
17299 ac_cv_lib_elf_elf_begin=no
17302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17303 conftest$ac_exeext conftest.$ac_ext
17304 LIBS=$ac_check_lib_save_LIBS
17306 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17307 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17308 if test $ac_cv_lib_elf_elf_begin = yes; then
17313 if test $ac_have_func = no; then
17314 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17315 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17316 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17317 echo $ECHO_N "(cached
) $ECHO_C" >&6
17319 ac_check_lib_save_LIBS=$LIBS
17321 cat >conftest.$ac_ext <<_ACEOF
17324 cat confdefs.h >>conftest.$ac_ext
17325 cat >>conftest.$ac_ext <<_ACEOF
17326 /* end confdefs.h. */
17328 /* Override any GCC internal prototype to avoid an error.
17329 Use char because int might match the return type of a GCC
17330 builtin and then its argument prototype would still apply. */
17338 return kvm_open ();
17343 rm -f conftest.$ac_objext conftest$ac_exeext
17344 if { (ac_try="$ac_link"
17345 case "(($ac_try" in
17346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17347 *) ac_try_echo=$ac_try;;
17349 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17350 (eval "$ac_link") 2>conftest.er1
17352 grep -v '^ *+' conftest.er1 >conftest.err
17354 cat conftest.err >&5
17355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17356 (exit $ac_status); } && {
17357 test -z "$ac_c_werror_flag" ||
17358 test ! -s conftest.err
17359 } && test -s conftest$ac_exeext &&
17360 $as_test_x conftest$ac_exeext; then
17361 ac_cv_lib_kvm_kvm_open=yes
17363 echo "$as_me: failed program was
:" >&5
17364 sed 's/^/| /' conftest.$ac_ext >&5
17366 ac_cv_lib_kvm_kvm_open=no
17369 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17370 conftest$ac_exeext conftest.$ac_ext
17371 LIBS=$ac_check_lib_save_LIBS
17373 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17374 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17375 if test $ac_cv_lib_kvm_kvm_open = yes; then
17379 # Check for the 4.4BSD definition of getloadavg.
17380 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17381 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17382 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17383 echo $ECHO_N "(cached
) $ECHO_C" >&6
17385 ac_check_lib_save_LIBS=$LIBS
17386 LIBS="-lutil $LIBS"
17387 cat >conftest.$ac_ext <<_ACEOF
17390 cat confdefs.h >>conftest.$ac_ext
17391 cat >>conftest.$ac_ext <<_ACEOF
17392 /* end confdefs.h. */
17394 /* Override any GCC internal prototype to avoid an error.
17395 Use char because int might match the return type of a GCC
17396 builtin and then its argument prototype would still apply. */
17400 char getloadavg ();
17404 return getloadavg ();
17409 rm -f conftest.$ac_objext conftest$ac_exeext
17410 if { (ac_try="$ac_link"
17411 case "(($ac_try" in
17412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17413 *) ac_try_echo=$ac_try;;
17415 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17416 (eval "$ac_link") 2>conftest.er1
17418 grep -v '^ *+' conftest.er1 >conftest.err
17420 cat conftest.err >&5
17421 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17422 (exit $ac_status); } && {
17423 test -z "$ac_c_werror_flag" ||
17424 test ! -s conftest.err
17425 } && test -s conftest$ac_exeext &&
17426 $as_test_x conftest$ac_exeext; then
17427 ac_cv_lib_util_getloadavg=yes
17429 echo "$as_me: failed program was
:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17432 ac_cv_lib_util_getloadavg=no
17435 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17436 conftest$ac_exeext conftest.$ac_ext
17437 LIBS=$ac_check_lib_save_LIBS
17439 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17440 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17441 if test $ac_cv_lib_util_getloadavg = yes; then
17442 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17447 if test $ac_have_func = no; then
17448 # There is a commonly available library for RS/6000 AIX.
17449 # Since it is not a standard part of AIX, it might be installed locally.
17450 ac_getloadavg_LIBS=$LIBS
17451 LIBS="-L/usr
/local
/lib
$LIBS"
17452 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17453 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17454 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17455 echo $ECHO_N "(cached
) $ECHO_C" >&6
17457 ac_check_lib_save_LIBS=$LIBS
17458 LIBS="-lgetloadavg $LIBS"
17459 cat >conftest.$ac_ext <<_ACEOF
17462 cat confdefs.h >>conftest.$ac_ext
17463 cat >>conftest.$ac_ext <<_ACEOF
17464 /* end confdefs.h. */
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17472 char getloadavg ();
17476 return getloadavg ();
17481 rm -f conftest.$ac_objext conftest$ac_exeext
17482 if { (ac_try="$ac_link"
17483 case "(($ac_try" in
17484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17485 *) ac_try_echo=$ac_try;;
17487 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17488 (eval "$ac_link") 2>conftest.er1
17490 grep -v '^ *+' conftest.er1 >conftest.err
17492 cat conftest.err >&5
17493 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17494 (exit $ac_status); } && {
17495 test -z "$ac_c_werror_flag" ||
17496 test ! -s conftest.err
17497 } && test -s conftest$ac_exeext &&
17498 $as_test_x conftest$ac_exeext; then
17499 ac_cv_lib_getloadavg_getloadavg=yes
17501 echo "$as_me: failed program was
:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17504 ac_cv_lib_getloadavg_getloadavg=no
17507 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17508 conftest$ac_exeext conftest.$ac_ext
17509 LIBS=$ac_check_lib_save_LIBS
17511 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17512 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17513 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17514 LIBS="-lgetloadavg $LIBS"
17516 LIBS=$ac_getloadavg_LIBS
17521 # Make sure it is really in the library, if we think we found it,
17522 # otherwise set up the replacement function.
17524 for ac_func in getloadavg
17526 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17527 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17528 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17529 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17530 echo $ECHO_N "(cached
) $ECHO_C" >&6
17532 cat >conftest.$ac_ext <<_ACEOF
17535 cat confdefs.h >>conftest.$ac_ext
17536 cat >>conftest.$ac_ext <<_ACEOF
17537 /* end confdefs.h. */
17538 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17539 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17540 #define $ac_func innocuous_$ac_func
17542 /* System header to define __stub macros and hopefully few prototypes,
17543 which can conflict with char $ac_func (); below.
17544 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17545 <limits.h> exists even on freestanding compilers. */
17548 # include <limits.h>
17550 # include <assert.h>
17555 /* Override any GCC internal prototype to avoid an error.
17556 Use char because int might match the return type of a GCC
17557 builtin and then its argument prototype would still apply. */
17562 /* The GNU C library defines this for functions which it implements
17563 to always fail with ENOSYS. Some functions are actually named
17564 something starting with __ and the normal name is an alias. */
17565 #if defined __stub_$ac_func || defined __stub___$ac_func
17572 return $ac_func ();
17577 rm -f conftest.$ac_objext conftest$ac_exeext
17578 if { (ac_try="$ac_link"
17579 case "(($ac_try" in
17580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17581 *) ac_try_echo=$ac_try;;
17583 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17584 (eval "$ac_link") 2>conftest.er1
17586 grep -v '^ *+' conftest.er1 >conftest.err
17588 cat conftest.err >&5
17589 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17590 (exit $ac_status); } && {
17591 test -z "$ac_c_werror_flag" ||
17592 test ! -s conftest.err
17593 } && test -s conftest$ac_exeext &&
17594 $as_test_x conftest$ac_exeext; then
17595 eval "$as_ac_var=yes"
17597 echo "$as_me: failed program was
:" >&5
17598 sed 's/^/| /' conftest.$ac_ext >&5
17600 eval "$as_ac_var=no
"
17603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17604 conftest$ac_exeext conftest.$ac_ext
17606 ac_res=`eval echo '${'$as_ac_var'}'`
17607 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17608 echo "${ECHO_T}$ac_res" >&6; }
17609 if test `eval echo '${'$as_ac_var'}'` = yes; then
17610 cat >>confdefs.h <<_ACEOF
17611 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17615 case " $LIBOBJS " in
17616 *" getloadavg.
$ac_objext "* ) ;;
17617 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17622 cat >>confdefs.h <<\_ACEOF
17623 #define C_GETLOADAVG 1
17626 # Figure out what our getloadavg.c needs.
17628 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17629 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17630 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17631 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17632 echo $ECHO_N "(cached
) $ECHO_C" >&6
17634 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17635 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17637 # Is the header compilable?
17638 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17639 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17640 cat >conftest.$ac_ext <<_ACEOF
17643 cat confdefs.h >>conftest.$ac_ext
17644 cat >>conftest.$ac_ext <<_ACEOF
17645 /* end confdefs.h. */
17646 $ac_includes_default
17647 #include <sys/dg_sys_info.h>
17649 rm -f conftest.$ac_objext
17650 if { (ac_try="$ac_compile"
17651 case "(($ac_try" in
17652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17653 *) ac_try_echo=$ac_try;;
17655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17656 (eval "$ac_compile") 2>conftest.er1
17658 grep -v '^ *+' conftest.er1 >conftest.err
17660 cat conftest.err >&5
17661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17662 (exit $ac_status); } && {
17663 test -z "$ac_c_werror_flag" ||
17664 test ! -s conftest.err
17665 } && test -s conftest.$ac_objext; then
17666 ac_header_compiler=yes
17668 echo "$as_me: failed program was
:" >&5
17669 sed 's/^/| /' conftest.$ac_ext >&5
17671 ac_header_compiler=no
17674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17675 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17676 echo "${ECHO_T}$ac_header_compiler" >&6; }
17678 # Is the header present?
17679 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17680 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17681 cat >conftest.$ac_ext <<_ACEOF
17684 cat confdefs.h >>conftest.$ac_ext
17685 cat >>conftest.$ac_ext <<_ACEOF
17686 /* end confdefs.h. */
17687 #include <sys/dg_sys_info.h>
17689 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17690 case "(($ac_try" in
17691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17692 *) ac_try_echo=$ac_try;;
17694 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17695 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17697 grep -v '^ *+' conftest.er1 >conftest.err
17699 cat conftest.err >&5
17700 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17701 (exit $ac_status); } >/dev/null && {
17702 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17703 test ! -s conftest.err
17705 ac_header_preproc=yes
17707 echo "$as_me: failed program was
:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ac_header_preproc=no
17713 rm -f conftest.err conftest.$ac_ext
17714 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17715 echo "${ECHO_T}$ac_header_preproc" >&6; }
17717 # So? What about this header?
17718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17720 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17721 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17722 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17723 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17724 ac_header_preproc=yes
17727 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17728 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17729 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17730 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17731 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17732 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17733 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17734 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17735 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17736 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17737 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17738 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17742 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17743 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17744 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17745 echo $ECHO_N "(cached
) $ECHO_C" >&6
17747 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17749 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17750 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17753 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17756 cat >>confdefs.h <<\_ACEOF
17761 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17762 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17763 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17764 echo $ECHO_N "(cached
) $ECHO_C" >&6
17766 ac_check_lib_save_LIBS=$LIBS
17768 cat >conftest.$ac_ext <<_ACEOF
17771 cat confdefs.h >>conftest.$ac_ext
17772 cat >>conftest.$ac_ext <<_ACEOF
17773 /* end confdefs.h. */
17775 /* Override any GCC internal prototype to avoid an error.
17776 Use char because int might match the return type of a GCC
17777 builtin and then its argument prototype would still apply. */
17781 char dg_sys_info ();
17785 return dg_sys_info ();
17790 rm -f conftest.$ac_objext conftest$ac_exeext
17791 if { (ac_try="$ac_link"
17792 case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17796 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17797 (eval "$ac_link") 2>conftest.er1
17799 grep -v '^ *+' conftest.er1 >conftest.err
17801 cat conftest.err >&5
17802 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17803 (exit $ac_status); } && {
17804 test -z "$ac_c_werror_flag" ||
17805 test ! -s conftest.err
17806 } && test -s conftest$ac_exeext &&
17807 $as_test_x conftest$ac_exeext; then
17808 ac_cv_lib_dgc_dg_sys_info=yes
17810 echo "$as_me: failed program was
:" >&5
17811 sed 's/^/| /' conftest.$ac_ext >&5
17813 ac_cv_lib_dgc_dg_sys_info=no
17816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17817 conftest$ac_exeext conftest.$ac_ext
17818 LIBS=$ac_check_lib_save_LIBS
17820 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17821 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17822 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17823 cat >>confdefs.h <<_ACEOF
17824 #define HAVE_LIBDGC 1
17835 if test "${ac_cv_header_locale_h+set}" = set; then
17836 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17837 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17838 if test "${ac_cv_header_locale_h+set}" = set; then
17839 echo $ECHO_N "(cached
) $ECHO_C" >&6
17841 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17842 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17844 # Is the header compilable?
17845 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17846 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17847 cat >conftest.$ac_ext <<_ACEOF
17850 cat confdefs.h >>conftest.$ac_ext
17851 cat >>conftest.$ac_ext <<_ACEOF
17852 /* end confdefs.h. */
17853 $ac_includes_default
17854 #include <locale.h>
17856 rm -f conftest.$ac_objext
17857 if { (ac_try="$ac_compile"
17858 case "(($ac_try" in
17859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17860 *) ac_try_echo=$ac_try;;
17862 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17863 (eval "$ac_compile") 2>conftest.er1
17865 grep -v '^ *+' conftest.er1 >conftest.err
17867 cat conftest.err >&5
17868 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17869 (exit $ac_status); } && {
17870 test -z "$ac_c_werror_flag" ||
17871 test ! -s conftest.err
17872 } && test -s conftest.$ac_objext; then
17873 ac_header_compiler=yes
17875 echo "$as_me: failed program was
:" >&5
17876 sed 's/^/| /' conftest.$ac_ext >&5
17878 ac_header_compiler=no
17881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17882 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17883 echo "${ECHO_T}$ac_header_compiler" >&6; }
17885 # Is the header present?
17886 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17887 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17888 cat >conftest.$ac_ext <<_ACEOF
17891 cat confdefs.h >>conftest.$ac_ext
17892 cat >>conftest.$ac_ext <<_ACEOF
17893 /* end confdefs.h. */
17894 #include <locale.h>
17896 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17897 case "(($ac_try" in
17898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17899 *) ac_try_echo=$ac_try;;
17901 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17902 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17904 grep -v '^ *+' conftest.er1 >conftest.err
17906 cat conftest.err >&5
17907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17908 (exit $ac_status); } >/dev/null && {
17909 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17910 test ! -s conftest.err
17912 ac_header_preproc=yes
17914 echo "$as_me: failed program was
:" >&5
17915 sed 's/^/| /' conftest.$ac_ext >&5
17917 ac_header_preproc=no
17920 rm -f conftest.err conftest.$ac_ext
17921 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17922 echo "${ECHO_T}$ac_header_preproc" >&6; }
17924 # So? What about this header?
17925 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17927 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17928 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17929 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17930 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17931 ac_header_preproc=yes
17934 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17935 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17936 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17937 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17938 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17939 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17940 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17941 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17942 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17943 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17944 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17945 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17949 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17950 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17951 if test "${ac_cv_header_locale_h+set}" = set; then
17952 echo $ECHO_N "(cached
) $ECHO_C" >&6
17954 ac_cv_header_locale_h=$ac_header_preproc
17956 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17957 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17963 for ac_func in setlocale
17965 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17966 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17967 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17968 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17969 echo $ECHO_N "(cached
) $ECHO_C" >&6
17971 cat >conftest.$ac_ext <<_ACEOF
17974 cat confdefs.h >>conftest.$ac_ext
17975 cat >>conftest.$ac_ext <<_ACEOF
17976 /* end confdefs.h. */
17977 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17978 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17979 #define $ac_func innocuous_$ac_func
17981 /* System header to define __stub macros and hopefully few prototypes,
17982 which can conflict with char $ac_func (); below.
17983 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17984 <limits.h> exists even on freestanding compilers. */
17987 # include <limits.h>
17989 # include <assert.h>
17994 /* Override any GCC internal prototype to avoid an error.
17995 Use char because int might match the return type of a GCC
17996 builtin and then its argument prototype would still apply. */
18001 /* The GNU C library defines this for functions which it implements
18002 to always fail with ENOSYS. Some functions are actually named
18003 something starting with __ and the normal name is an alias. */
18004 #if defined __stub_$ac_func || defined __stub___$ac_func
18011 return $ac_func ();
18016 rm -f conftest.$ac_objext conftest$ac_exeext
18017 if { (ac_try="$ac_link"
18018 case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18022 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_link") 2>conftest.er1
18025 grep -v '^ *+' conftest.er1 >conftest.err
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18029 (exit $ac_status); } && {
18030 test -z "$ac_c_werror_flag" ||
18031 test ! -s conftest.err
18032 } && test -s conftest$ac_exeext &&
18033 $as_test_x conftest$ac_exeext; then
18034 eval "$as_ac_var=yes"
18036 echo "$as_me: failed program was
:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18039 eval "$as_ac_var=no
"
18042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18043 conftest$ac_exeext conftest.$ac_ext
18045 ac_res=`eval echo '${'$as_ac_var'}'`
18046 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18047 echo "${ECHO_T}$ac_res" >&6; }
18048 if test `eval echo '${'$as_ac_var'}'` = yes; then
18049 cat >>confdefs.h <<_ACEOF
18050 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18057 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18058 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18059 # Irix 4.0.5F has the header but not the library.
18060 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18063 cat >>confdefs.h <<\_ACEOF
18069 if test $ac_have_func = no; then
18070 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18071 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18072 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18073 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18074 echo $ECHO_N "(cached
) $ECHO_C" >&6
18076 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18077 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18079 # Is the header compilable?
18080 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
18081 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
18082 cat >conftest.$ac_ext <<_ACEOF
18085 cat confdefs.h >>conftest.$ac_ext
18086 cat >>conftest.$ac_ext <<_ACEOF
18087 /* end confdefs.h. */
18088 $ac_includes_default
18089 #include <inq_stats/cpustats.h>
18091 rm -f conftest.$ac_objext
18092 if { (ac_try="$ac_compile"
18093 case "(($ac_try" in
18094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18095 *) ac_try_echo=$ac_try;;
18097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18098 (eval "$ac_compile") 2>conftest.er1
18100 grep -v '^ *+' conftest.er1 >conftest.err
18102 cat conftest.err >&5
18103 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18104 (exit $ac_status); } && {
18105 test -z "$ac_c_werror_flag" ||
18106 test ! -s conftest.err
18107 } && test -s conftest.$ac_objext; then
18108 ac_header_compiler=yes
18110 echo "$as_me: failed program was
:" >&5
18111 sed 's/^/| /' conftest.$ac_ext >&5
18113 ac_header_compiler=no
18116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18117 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18118 echo "${ECHO_T}$ac_header_compiler" >&6; }
18120 # Is the header present?
18121 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
18122 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
18123 cat >conftest.$ac_ext <<_ACEOF
18126 cat confdefs.h >>conftest.$ac_ext
18127 cat >>conftest.$ac_ext <<_ACEOF
18128 /* end confdefs.h. */
18129 #include <inq_stats/cpustats.h>
18131 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18132 case "(($ac_try" in
18133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18134 *) ac_try_echo=$ac_try;;
18136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18137 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18139 grep -v '^ *+' conftest.er1 >conftest.err
18141 cat conftest.err >&5
18142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18143 (exit $ac_status); } >/dev/null && {
18144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18145 test ! -s conftest.err
18147 ac_header_preproc=yes
18149 echo "$as_me: failed program was
:" >&5
18150 sed 's/^/| /' conftest.$ac_ext >&5
18152 ac_header_preproc=no
18155 rm -f conftest.err conftest.$ac_ext
18156 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18157 echo "${ECHO_T}$ac_header_preproc" >&6; }
18159 # So? What about this header?
18160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18162 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18163 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18164 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
18165 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
18166 ac_header_preproc=yes
18169 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
18170 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
18171 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18172 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18173 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
18174 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
18175 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18176 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18177 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18178 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18179 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18180 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18184 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
18185 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
18186 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18187 echo $ECHO_N "(cached
) $ECHO_C" >&6
18189 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18191 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
18192 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18195 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18198 cat >>confdefs.h <<\_ACEOF
18203 cat >>confdefs.h <<\_ACEOF
18212 if test $ac_have_func = no; then
18213 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18214 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18215 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18216 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18217 echo $ECHO_N "(cached
) $ECHO_C" >&6
18219 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18220 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18222 # Is the header compilable?
18223 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
18224 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
18225 cat >conftest.$ac_ext <<_ACEOF
18228 cat confdefs.h >>conftest.$ac_ext
18229 cat >>conftest.$ac_ext <<_ACEOF
18230 /* end confdefs.h. */
18231 $ac_includes_default
18232 #include <sys/cpustats.h>
18234 rm -f conftest.$ac_objext
18235 if { (ac_try="$ac_compile"
18236 case "(($ac_try" in
18237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18238 *) ac_try_echo=$ac_try;;
18240 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18241 (eval "$ac_compile") 2>conftest.er1
18243 grep -v '^ *+' conftest.er1 >conftest.err
18245 cat conftest.err >&5
18246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18247 (exit $ac_status); } && {
18248 test -z "$ac_c_werror_flag" ||
18249 test ! -s conftest.err
18250 } && test -s conftest.$ac_objext; then
18251 ac_header_compiler=yes
18253 echo "$as_me: failed program was
:" >&5
18254 sed 's/^/| /' conftest.$ac_ext >&5
18256 ac_header_compiler=no
18259 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18260 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18261 echo "${ECHO_T}$ac_header_compiler" >&6; }
18263 # Is the header present?
18264 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18265 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18266 cat >conftest.$ac_ext <<_ACEOF
18269 cat confdefs.h >>conftest.$ac_ext
18270 cat >>conftest.$ac_ext <<_ACEOF
18271 /* end confdefs.h. */
18272 #include <sys/cpustats.h>
18274 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18275 case "(($ac_try" in
18276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18277 *) ac_try_echo=$ac_try;;
18279 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18280 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18282 grep -v '^ *+' conftest.er1 >conftest.err
18284 cat conftest.err >&5
18285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18286 (exit $ac_status); } >/dev/null && {
18287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18288 test ! -s conftest.err
18290 ac_header_preproc=yes
18292 echo "$as_me: failed program was
:" >&5
18293 sed 's/^/| /' conftest.$ac_ext >&5
18295 ac_header_preproc=no
18298 rm -f conftest.err conftest.$ac_ext
18299 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18300 echo "${ECHO_T}$ac_header_preproc" >&6; }
18302 # So? What about this header?
18303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18305 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18306 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18307 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18308 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18309 ac_header_preproc=yes
18312 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18313 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18314 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18315 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18316 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18317 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18318 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18319 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18320 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18321 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18322 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18323 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18327 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18328 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18329 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18330 echo $ECHO_N "(cached
) $ECHO_C" >&6
18332 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18334 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18335 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18338 if test $ac_cv_header_sys_cpustats_h = yes; then
18339 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18348 if test $ac_have_func = no; then
18350 for ac_header in mach/mach.h
18352 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18353 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18354 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18355 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18356 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18357 echo $ECHO_N "(cached
) $ECHO_C" >&6
18359 ac_res=`eval echo '${'$as_ac_Header'}'`
18360 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18361 echo "${ECHO_T}$ac_res" >&6; }
18363 # Is the header compilable?
18364 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18365 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18366 cat >conftest.$ac_ext <<_ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 $ac_includes_default
18373 #include <$ac_header>
18375 rm -f conftest.$ac_objext
18376 if { (ac_try="$ac_compile"
18377 case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_compile") 2>conftest.er1
18384 grep -v '^ *+' conftest.er1 >conftest.err
18386 cat conftest.err >&5
18387 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18388 (exit $ac_status); } && {
18389 test -z "$ac_c_werror_flag" ||
18390 test ! -s conftest.err
18391 } && test -s conftest.$ac_objext; then
18392 ac_header_compiler=yes
18394 echo "$as_me: failed program was
:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18397 ac_header_compiler=no
18400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18401 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18402 echo "${ECHO_T}$ac_header_compiler" >&6; }
18404 # Is the header present?
18405 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18406 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18407 cat >conftest.$ac_ext <<_ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18413 #include <$ac_header>
18415 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18416 case "(($ac_try" in
18417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418 *) ac_try_echo=$ac_try;;
18420 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18423 grep -v '^ *+' conftest.er1 >conftest.err
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18427 (exit $ac_status); } >/dev/null && {
18428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18429 test ! -s conftest.err
18431 ac_header_preproc=yes
18433 echo "$as_me: failed program was
:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18436 ac_header_preproc=no
18439 rm -f conftest.err conftest.$ac_ext
18440 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18441 echo "${ECHO_T}$ac_header_preproc" >&6; }
18443 # So? What about this header?
18444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18446 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18447 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18448 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18450 ac_header_preproc=yes
18453 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18454 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18455 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18456 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18457 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18458 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18459 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18460 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18461 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18463 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18464 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18468 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18469 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18470 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18471 echo $ECHO_N "(cached
) $ECHO_C" >&6
18473 eval "$as_ac_Header=\
$ac_header_preproc"
18475 ac_res=`eval echo '${'$as_ac_Header'}'`
18476 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18477 echo "${ECHO_T}$ac_res" >&6; }
18480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18481 cat >>confdefs.h <<_ACEOF
18482 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18492 for ac_header in nlist.h
18494 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18495 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18496 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18497 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18498 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18499 echo $ECHO_N "(cached
) $ECHO_C" >&6
18501 ac_res=`eval echo '${'$as_ac_Header'}'`
18502 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18503 echo "${ECHO_T}$ac_res" >&6; }
18505 # Is the header compilable?
18506 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18507 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18508 cat >conftest.$ac_ext <<_ACEOF
18511 cat confdefs.h >>conftest.$ac_ext
18512 cat >>conftest.$ac_ext <<_ACEOF
18513 /* end confdefs.h. */
18514 $ac_includes_default
18515 #include <$ac_header>
18517 rm -f conftest.$ac_objext
18518 if { (ac_try="$ac_compile"
18519 case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_compile") 2>conftest.er1
18526 grep -v '^ *+' conftest.er1 >conftest.err
18528 cat conftest.err >&5
18529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18530 (exit $ac_status); } && {
18531 test -z "$ac_c_werror_flag" ||
18532 test ! -s conftest.err
18533 } && test -s conftest.$ac_objext; then
18534 ac_header_compiler=yes
18536 echo "$as_me: failed program was
:" >&5
18537 sed 's/^/| /' conftest.$ac_ext >&5
18539 ac_header_compiler=no
18542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18543 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18544 echo "${ECHO_T}$ac_header_compiler" >&6; }
18546 # Is the header present?
18547 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18548 echo $ECHO_N "checking
$ac_header presence...
$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. */
18555 #include <$ac_header>
18557 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18558 case "(($ac_try" in
18559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18560 *) ac_try_echo=$ac_try;;
18562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18563 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18565 grep -v '^ *+' conftest.er1 >conftest.err
18567 cat conftest.err >&5
18568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18569 (exit $ac_status); } >/dev/null && {
18570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18571 test ! -s conftest.err
18573 ac_header_preproc=yes
18575 echo "$as_me: failed program was
:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18578 ac_header_preproc=no
18581 rm -f conftest.err conftest.$ac_ext
18582 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18583 echo "${ECHO_T}$ac_header_preproc" >&6; }
18585 # So? What about this header?
18586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18588 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18589 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18590 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18592 ac_header_preproc=yes
18595 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18596 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18597 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18598 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18599 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18600 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18601 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18602 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18603 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18605 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18606 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18610 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18611 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18612 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18613 echo $ECHO_N "(cached
) $ECHO_C" >&6
18615 eval "$as_ac_Header=\
$ac_header_preproc"
18617 ac_res=`eval echo '${'$as_ac_Header'}'`
18618 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18619 echo "${ECHO_T}$ac_res" >&6; }
18622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18623 cat >>confdefs.h <<_ACEOF
18624 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18626 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18627 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18628 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18629 echo $ECHO_N "(cached
) $ECHO_C" >&6
18631 cat >conftest.$ac_ext <<_ACEOF
18634 cat confdefs.h >>conftest.$ac_ext
18635 cat >>conftest.$ac_ext <<_ACEOF
18636 /* end confdefs.h. */
18642 static struct nlist ac_aggr;
18643 if (ac_aggr.n_un.n_name)
18649 rm -f conftest.$ac_objext
18650 if { (ac_try="$ac_compile"
18651 case "(($ac_try" in
18652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18653 *) ac_try_echo=$ac_try;;
18655 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18656 (eval "$ac_compile") 2>conftest.er1
18658 grep -v '^ *+' conftest.er1 >conftest.err
18660 cat conftest.err >&5
18661 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18662 (exit $ac_status); } && {
18663 test -z "$ac_c_werror_flag" ||
18664 test ! -s conftest.err
18665 } && test -s conftest.$ac_objext; then
18666 ac_cv_member_struct_nlist_n_un_n_name=yes
18668 echo "$as_me: failed program was
:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18671 cat >conftest.$ac_ext <<_ACEOF
18674 cat confdefs.h >>conftest.$ac_ext
18675 cat >>conftest.$ac_ext <<_ACEOF
18676 /* end confdefs.h. */
18682 static struct nlist ac_aggr;
18683 if (sizeof ac_aggr.n_un.n_name)
18689 rm -f conftest.$ac_objext
18690 if { (ac_try="$ac_compile"
18691 case "(($ac_try" in
18692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18693 *) ac_try_echo=$ac_try;;
18695 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18696 (eval "$ac_compile") 2>conftest.er1
18698 grep -v '^ *+' conftest.er1 >conftest.err
18700 cat conftest.err >&5
18701 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18702 (exit $ac_status); } && {
18703 test -z "$ac_c_werror_flag" ||
18704 test ! -s conftest.err
18705 } && test -s conftest.$ac_objext; then
18706 ac_cv_member_struct_nlist_n_un_n_name=yes
18708 echo "$as_me: failed program was
:" >&5
18709 sed 's/^/| /' conftest.$ac_ext >&5
18711 ac_cv_member_struct_nlist_n_un_n_name=no
18714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18719 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18720 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18721 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18723 cat >>confdefs.h <<_ACEOF
18724 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18728 cat >>confdefs.h <<\_ACEOF
18729 #define NLIST_NAME_UNION 1
18743 # Some definitions of getloadavg require that the program be installed setgid.
18744 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18745 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18746 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18747 echo $ECHO_N "(cached
) $ECHO_C" >&6
18749 cat >conftest.$ac_ext <<_ACEOF
18752 cat confdefs.h >>conftest.$ac_ext
18753 cat >>conftest.$ac_ext <<_ACEOF
18754 /* end confdefs.h. */
18755 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18756 #ifdef LDAV_PRIVILEGED
18757 Yowza Am I SETGID yet
18760 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18761 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18762 ac_cv_func_getloadavg_setgid=yes
18764 ac_cv_func_getloadavg_setgid=no
18769 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18770 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18771 if test $ac_cv_func_getloadavg_setgid = yes; then
18774 cat >>confdefs.h <<\_ACEOF
18775 #define GETLOADAVG_PRIVILEGED 1
18782 if test $ac_cv_func_getloadavg_setgid = yes; then
18783 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18784 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18785 if test "${ac_cv_group_kmem+set}" = set; then
18786 echo $ECHO_N "(cached
) $ECHO_C" >&6
18788 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18789 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18790 # If we got an error (system does not support symlinks), try without -L.
18791 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18792 ac_cv_group_kmem=`echo $ac_ls_output \
18793 | sed -ne 's/[ ][ ]*/ /g;
18794 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18798 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18799 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18800 KMEM_GROUP=$ac_cv_group_kmem
18802 if test "x
$ac_save_LIBS" = x; then
18803 GETLOADAVG_LIBS=$LIBS
18805 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18811 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18812 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18813 if test "${ac_cv_sys_largefile_source+set}" = set; then
18814 echo $ECHO_N "(cached
) $ECHO_C" >&6
18817 cat >conftest.$ac_ext <<_ACEOF
18820 cat confdefs.h >>conftest.$ac_ext
18821 cat >>conftest.$ac_ext <<_ACEOF
18822 /* end confdefs.h. */
18823 #include <sys/types.h> /* for off_t */
18828 int (*fp) (FILE *, off_t, int) = fseeko;
18829 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18834 rm -f conftest.$ac_objext conftest$ac_exeext
18835 if { (ac_try="$ac_link"
18836 case "(($ac_try" in
18837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18838 *) ac_try_echo=$ac_try;;
18840 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18841 (eval "$ac_link") 2>conftest.er1
18843 grep -v '^ *+' conftest.er1 >conftest.err
18845 cat conftest.err >&5
18846 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18847 (exit $ac_status); } && {
18848 test -z "$ac_c_werror_flag" ||
18849 test ! -s conftest.err
18850 } && test -s conftest$ac_exeext &&
18851 $as_test_x conftest$ac_exeext; then
18852 ac_cv_sys_largefile_source=no; break
18854 echo "$as_me: failed program was
:" >&5
18855 sed 's/^/| /' conftest.$ac_ext >&5
18860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18861 conftest$ac_exeext conftest.$ac_ext
18862 cat >conftest.$ac_ext <<_ACEOF
18865 cat confdefs.h >>conftest.$ac_ext
18866 cat >>conftest.$ac_ext <<_ACEOF
18867 /* end confdefs.h. */
18868 #define _LARGEFILE_SOURCE 1
18869 #include <sys/types.h> /* for off_t */
18874 int (*fp) (FILE *, off_t, int) = fseeko;
18875 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18880 rm -f conftest.$ac_objext conftest$ac_exeext
18881 if { (ac_try="$ac_link"
18882 case "(($ac_try" in
18883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18884 *) ac_try_echo=$ac_try;;
18886 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18887 (eval "$ac_link") 2>conftest.er1
18889 grep -v '^ *+' conftest.er1 >conftest.err
18891 cat conftest.err >&5
18892 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18893 (exit $ac_status); } && {
18894 test -z "$ac_c_werror_flag" ||
18895 test ! -s conftest.err
18896 } && test -s conftest$ac_exeext &&
18897 $as_test_x conftest$ac_exeext; then
18898 ac_cv_sys_largefile_source=1; break
18900 echo "$as_me: failed program was
:" >&5
18901 sed 's/^/| /' conftest.$ac_ext >&5
18906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18907 conftest$ac_exeext conftest.$ac_ext
18908 ac_cv_sys_largefile_source=unknown
18912 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18913 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18914 case $ac_cv_sys_largefile_source in #(
18917 cat >>confdefs.h <<_ACEOF
18918 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18924 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18925 # in glibc 2.1.3, but that breaks too many other things.
18926 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18927 if test $ac_cv_sys_largefile_source != unknown; then
18929 cat >>confdefs.h <<\_ACEOF
18930 #define HAVE_FSEEKO 1
18936 # Configure getopt.
18937 # getopt.m4 serial 10
18939 # The getopt module assume you want GNU getopt, with getopt_long etc,
18940 # rather than vanilla POSIX getopt. This means your your code should
18941 # always include <getopt.h> for the getopt prototypes.
18953 # Prerequisites of lib/getopt*.
18960 for ac_header in getopt.h
18962 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18963 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18964 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18965 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18966 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18967 echo $ECHO_N "(cached
) $ECHO_C" >&6
18969 ac_res=`eval echo '${'$as_ac_Header'}'`
18970 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18971 echo "${ECHO_T}$ac_res" >&6; }
18973 # Is the header compilable?
18974 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18975 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18976 cat >conftest.$ac_ext <<_ACEOF
18979 cat confdefs.h >>conftest.$ac_ext
18980 cat >>conftest.$ac_ext <<_ACEOF
18981 /* end confdefs.h. */
18982 $ac_includes_default
18983 #include <$ac_header>
18985 rm -f conftest.$ac_objext
18986 if { (ac_try="$ac_compile"
18987 case "(($ac_try" in
18988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989 *) ac_try_echo=$ac_try;;
18991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18992 (eval "$ac_compile") 2>conftest.er1
18994 grep -v '^ *+' conftest.er1 >conftest.err
18996 cat conftest.err >&5
18997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18998 (exit $ac_status); } && {
18999 test -z "$ac_c_werror_flag" ||
19000 test ! -s conftest.err
19001 } && test -s conftest.$ac_objext; then
19002 ac_header_compiler=yes
19004 echo "$as_me: failed program was
:" >&5
19005 sed 's/^/| /' conftest.$ac_ext >&5
19007 ac_header_compiler=no
19010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19011 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19012 echo "${ECHO_T}$ac_header_compiler" >&6; }
19014 # Is the header present?
19015 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19016 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19017 cat >conftest.$ac_ext <<_ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 #include <$ac_header>
19025 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19026 case "(($ac_try" in
19027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19028 *) ac_try_echo=$ac_try;;
19030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19031 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19033 grep -v '^ *+' conftest.er1 >conftest.err
19035 cat conftest.err >&5
19036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19037 (exit $ac_status); } >/dev/null && {
19038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19039 test ! -s conftest.err
19041 ac_header_preproc=yes
19043 echo "$as_me: failed program was
:" >&5
19044 sed 's/^/| /' conftest.$ac_ext >&5
19046 ac_header_preproc=no
19049 rm -f conftest.err conftest.$ac_ext
19050 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19051 echo "${ECHO_T}$ac_header_preproc" >&6; }
19053 # So? What about this header?
19054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19056 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19057 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19058 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19060 ac_header_preproc=yes
19063 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19064 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19065 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19066 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19067 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19068 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19069 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19070 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19071 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19073 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19074 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19078 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19079 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19080 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19081 echo $ECHO_N "(cached
) $ECHO_C" >&6
19083 eval "$as_ac_Header=\
$ac_header_preproc"
19085 ac_res=`eval echo '${'$as_ac_Header'}'`
19086 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19087 echo "${ECHO_T}$ac_res" >&6; }
19090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19091 cat >>confdefs.h <<_ACEOF
19092 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19101 if test -z "$GETOPT_H"; then
19103 for ac_func in getopt_long_only
19105 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19106 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19107 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19108 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19109 echo $ECHO_N "(cached
) $ECHO_C" >&6
19111 cat >conftest.$ac_ext <<_ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19119 #define $ac_func innocuous_$ac_func
19121 /* System header to define __stub macros and hopefully few prototypes,
19122 which can conflict with char $ac_func (); below.
19123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19124 <limits.h> exists even on freestanding compilers. */
19127 # include <limits.h>
19129 # include <assert.h>
19134 /* Override any GCC internal prototype to avoid an error.
19135 Use char because int might match the return type of a GCC
19136 builtin and then its argument prototype would still apply. */
19141 /* The GNU C library defines this for functions which it implements
19142 to always fail with ENOSYS. Some functions are actually named
19143 something starting with __ and the normal name is an alias. */
19144 #if defined __stub_$ac_func || defined __stub___$ac_func
19151 return $ac_func ();
19156 rm -f conftest.$ac_objext conftest$ac_exeext
19157 if { (ac_try="$ac_link"
19158 case "(($ac_try" in
19159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160 *) ac_try_echo=$ac_try;;
19162 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19163 (eval "$ac_link") 2>conftest.er1
19165 grep -v '^ *+' conftest.er1 >conftest.err
19167 cat conftest.err >&5
19168 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19169 (exit $ac_status); } && {
19170 test -z "$ac_c_werror_flag" ||
19171 test ! -s conftest.err
19172 } && test -s conftest$ac_exeext &&
19173 $as_test_x conftest$ac_exeext; then
19174 eval "$as_ac_var=yes"
19176 echo "$as_me: failed program was
:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19179 eval "$as_ac_var=no
"
19182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19183 conftest$ac_exeext conftest.$ac_ext
19185 ac_res=`eval echo '${'$as_ac_var'}'`
19186 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19187 echo "${ECHO_T}$ac_res" >&6; }
19188 if test `eval echo '${'$as_ac_var'}'` = yes; then
19189 cat >>confdefs.h <<_ACEOF
19190 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19200 if test -z "$GETOPT_H"; then
19201 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
19202 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
19203 if test "${ac_cv_have_decl_optreset+set}" = set; then
19204 echo $ECHO_N "(cached
) $ECHO_C" >&6
19206 cat >conftest.$ac_ext <<_ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h. */
19212 #include <getopt.h>
19225 rm -f conftest.$ac_objext
19226 if { (ac_try="$ac_compile"
19227 case "(($ac_try" in
19228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19229 *) ac_try_echo=$ac_try;;
19231 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19232 (eval "$ac_compile") 2>conftest.er1
19234 grep -v '^ *+' conftest.er1 >conftest.err
19236 cat conftest.err >&5
19237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19238 (exit $ac_status); } && {
19239 test -z "$ac_c_werror_flag" ||
19240 test ! -s conftest.err
19241 } && test -s conftest.$ac_objext; then
19242 ac_cv_have_decl_optreset=yes
19244 echo "$as_me: failed program was
:" >&5
19245 sed 's/^/| /' conftest.$ac_ext >&5
19247 ac_cv_have_decl_optreset=no
19250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19252 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19253 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19254 if test $ac_cv_have_decl_optreset = yes; then
19260 if test -z "$GETOPT_H"; then
19261 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19262 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19263 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19264 echo $ECHO_N "(cached
) $ECHO_C" >&6
19266 if test "$cross_compiling" = yes; then
19267 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19268 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19269 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19270 echo $ECHO_N "(cached
) $ECHO_C" >&6
19272 cat >conftest.$ac_ext <<_ACEOF
19275 cat confdefs.h >>conftest.$ac_ext
19276 cat >>conftest.$ac_ext <<_ACEOF
19277 /* end confdefs.h. */
19278 #include <getopt.h>
19283 #ifndef getopt_clip
19284 (void) getopt_clip;
19291 rm -f conftest.$ac_objext
19292 if { (ac_try="$ac_compile"
19293 case "(($ac_try" in
19294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19295 *) ac_try_echo=$ac_try;;
19297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19298 (eval "$ac_compile") 2>conftest.er1
19300 grep -v '^ *+' conftest.er1 >conftest.err
19302 cat conftest.err >&5
19303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19304 (exit $ac_status); } && {
19305 test -z "$ac_c_werror_flag" ||
19306 test ! -s conftest.err
19307 } && test -s conftest.$ac_objext; then
19308 ac_cv_have_decl_getopt_clip=yes
19310 echo "$as_me: failed program was
:" >&5
19311 sed 's/^/| /' conftest.$ac_ext >&5
19313 ac_cv_have_decl_getopt_clip=no
19316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19318 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19319 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19320 if test $ac_cv_have_decl_getopt_clip = yes; then
19321 gl_cv_func_gnu_getopt=no
19323 gl_cv_func_gnu_getopt=yes
19327 cat >conftest.$ac_ext <<_ACEOF
19330 cat confdefs.h >>conftest.$ac_ext
19331 cat >>conftest.$ac_ext <<_ACEOF
19332 /* end confdefs.h. */
19333 #include <getopt.h>
19339 myargv[0] = "conftest
";
19342 return getopt (2, myargv, "+a
") != '?';
19348 rm -f conftest$ac_exeext
19349 if { (ac_try="$ac_link"
19350 case "(($ac_try" in
19351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19352 *) ac_try_echo=$ac_try;;
19354 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19355 (eval "$ac_link") 2>&5
19357 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19359 { (case "(($ac_try" in
19360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19361 *) ac_try_echo=$ac_try;;
19363 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19364 (eval "$ac_try") 2>&5
19366 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19367 (exit $ac_status); }; }; then
19368 gl_cv_func_gnu_getopt=yes
19370 echo "$as_me: program exited with status
$ac_status" >&5
19371 echo "$as_me: failed program was
:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19374 ( exit $ac_status )
19375 gl_cv_func_gnu_getopt=no
19377 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19382 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19383 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19384 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19391 if test -n "$GETOPT_H"; then
19396 cat >>confdefs.h <<\_ACEOF
19397 #define __GETOPT_PREFIX rpl_
19403 GETOPTOBJS='getopt.o getopt1.o'
19410 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19411 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19412 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19413 echo $ECHO_N "(cached
) $ECHO_C" >&6
19415 # Use it with a single arg.
19416 cat >conftest.$ac_ext <<_ACEOF
19419 cat confdefs.h >>conftest.$ac_ext
19420 cat >>conftest.$ac_ext <<_ACEOF
19421 /* end confdefs.h. */
19422 $ac_includes_default
19431 rm -f conftest.$ac_objext
19432 if { (ac_try="$ac_compile"
19433 case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_compile") 2>conftest.er1
19440 grep -v '^ *+' conftest.er1 >conftest.err
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19444 (exit $ac_status); } && {
19445 test -z "$ac_c_werror_flag" ||
19446 test ! -s conftest.err
19447 } && test -s conftest.$ac_objext; then
19448 ac_cv_func_getpgrp_void=no
19450 echo "$as_me: failed program was
:" >&5
19451 sed 's/^/| /' conftest.$ac_ext >&5
19453 ac_cv_func_getpgrp_void=yes
19456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19459 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19460 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19461 if test $ac_cv_func_getpgrp_void = yes; then
19463 cat >>confdefs.h <<\_ACEOF
19464 #define GETPGRP_VOID 1
19471 for ac_func in strftime
19473 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19474 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19475 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19476 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19477 echo $ECHO_N "(cached
) $ECHO_C" >&6
19479 cat >conftest.$ac_ext <<_ACEOF
19482 cat confdefs.h >>conftest.$ac_ext
19483 cat >>conftest.$ac_ext <<_ACEOF
19484 /* end confdefs.h. */
19485 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19486 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19487 #define $ac_func innocuous_$ac_func
19489 /* System header to define __stub macros and hopefully few prototypes,
19490 which can conflict with char $ac_func (); below.
19491 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19492 <limits.h> exists even on freestanding compilers. */
19495 # include <limits.h>
19497 # include <assert.h>
19502 /* Override any GCC internal prototype to avoid an error.
19503 Use char because int might match the return type of a GCC
19504 builtin and then its argument prototype would still apply. */
19509 /* The GNU C library defines this for functions which it implements
19510 to always fail with ENOSYS. Some functions are actually named
19511 something starting with __ and the normal name is an alias. */
19512 #if defined __stub_$ac_func || defined __stub___$ac_func
19519 return $ac_func ();
19524 rm -f conftest.$ac_objext conftest$ac_exeext
19525 if { (ac_try="$ac_link"
19526 case "(($ac_try" in
19527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19528 *) ac_try_echo=$ac_try;;
19530 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19531 (eval "$ac_link") 2>conftest.er1
19533 grep -v '^ *+' conftest.er1 >conftest.err
19535 cat conftest.err >&5
19536 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19537 (exit $ac_status); } && {
19538 test -z "$ac_c_werror_flag" ||
19539 test ! -s conftest.err
19540 } && test -s conftest$ac_exeext &&
19541 $as_test_x conftest$ac_exeext; then
19542 eval "$as_ac_var=yes"
19544 echo "$as_me: failed program was
:" >&5
19545 sed 's/^/| /' conftest.$ac_ext >&5
19547 eval "$as_ac_var=no
"
19550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19551 conftest$ac_exeext conftest.$ac_ext
19553 ac_res=`eval echo '${'$as_ac_var'}'`
19554 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19555 echo "${ECHO_T}$ac_res" >&6; }
19556 if test `eval echo '${'$as_ac_var'}'` = yes; then
19557 cat >>confdefs.h <<_ACEOF
19558 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19562 # strftime is in -lintl on SCO UNIX.
19563 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19564 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19565 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19566 echo $ECHO_N "(cached
) $ECHO_C" >&6
19568 ac_check_lib_save_LIBS=$LIBS
19569 LIBS="-lintl $LIBS"
19570 cat >conftest.$ac_ext <<_ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h. */
19577 /* Override any GCC internal prototype to avoid an error.
19578 Use char because int might match the return type of a GCC
19579 builtin and then its argument prototype would still apply. */
19587 return strftime ();
19592 rm -f conftest.$ac_objext conftest$ac_exeext
19593 if { (ac_try="$ac_link"
19594 case "(($ac_try" in
19595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19596 *) ac_try_echo=$ac_try;;
19598 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19599 (eval "$ac_link") 2>conftest.er1
19601 grep -v '^ *+' conftest.er1 >conftest.err
19603 cat conftest.err >&5
19604 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19605 (exit $ac_status); } && {
19606 test -z "$ac_c_werror_flag" ||
19607 test ! -s conftest.err
19608 } && test -s conftest$ac_exeext &&
19609 $as_test_x conftest$ac_exeext; then
19610 ac_cv_lib_intl_strftime=yes
19612 echo "$as_me: failed program was
:" >&5
19613 sed 's/^/| /' conftest.$ac_ext >&5
19615 ac_cv_lib_intl_strftime=no
19618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19619 conftest$ac_exeext conftest.$ac_ext
19620 LIBS=$ac_check_lib_save_LIBS
19622 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19623 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19624 if test $ac_cv_lib_intl_strftime = yes; then
19625 cat >>confdefs.h <<\_ACEOF
19626 #define HAVE_STRFTIME 1
19629 LIBS="-lintl $LIBS"
19638 for ac_func in grantpt
19640 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19641 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19642 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19643 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19644 echo $ECHO_N "(cached
) $ECHO_C" >&6
19646 cat >conftest.$ac_ext <<_ACEOF
19649 cat confdefs.h >>conftest.$ac_ext
19650 cat >>conftest.$ac_ext <<_ACEOF
19651 /* end confdefs.h. */
19652 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19653 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19654 #define $ac_func innocuous_$ac_func
19656 /* System header to define __stub macros and hopefully few prototypes,
19657 which can conflict with char $ac_func (); below.
19658 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19659 <limits.h> exists even on freestanding compilers. */
19662 # include <limits.h>
19664 # include <assert.h>
19669 /* Override any GCC internal prototype to avoid an error.
19670 Use char because int might match the return type of a GCC
19671 builtin and then its argument prototype would still apply. */
19676 /* The GNU C library defines this for functions which it implements
19677 to always fail with ENOSYS. Some functions are actually named
19678 something starting with __ and the normal name is an alias. */
19679 #if defined __stub_$ac_func || defined __stub___$ac_func
19686 return $ac_func ();
19691 rm -f conftest.$ac_objext conftest$ac_exeext
19692 if { (ac_try="$ac_link"
19693 case "(($ac_try" in
19694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19695 *) ac_try_echo=$ac_try;;
19697 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19698 (eval "$ac_link") 2>conftest.er1
19700 grep -v '^ *+' conftest.er1 >conftest.err
19702 cat conftest.err >&5
19703 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19704 (exit $ac_status); } && {
19705 test -z "$ac_c_werror_flag" ||
19706 test ! -s conftest.err
19707 } && test -s conftest$ac_exeext &&
19708 $as_test_x conftest$ac_exeext; then
19709 eval "$as_ac_var=yes"
19711 echo "$as_me: failed program was
:" >&5
19712 sed 's/^/| /' conftest.$ac_ext >&5
19714 eval "$as_ac_var=no
"
19717 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19718 conftest$ac_exeext conftest.$ac_ext
19720 ac_res=`eval echo '${'$as_ac_var'}'`
19721 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19722 echo "${ECHO_T}$ac_res" >&6; }
19723 if test `eval echo '${'$as_ac_var'}'` = yes; then
19724 cat >>confdefs.h <<_ACEOF
19725 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19732 # PTY-related GNU extensions.
19734 for ac_func in getpt
19736 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19737 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19738 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19739 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19740 echo $ECHO_N "(cached
) $ECHO_C" >&6
19742 cat >conftest.$ac_ext <<_ACEOF
19745 cat confdefs.h >>conftest.$ac_ext
19746 cat >>conftest.$ac_ext <<_ACEOF
19747 /* end confdefs.h. */
19748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19750 #define $ac_func innocuous_$ac_func
19752 /* System header to define __stub macros and hopefully few prototypes,
19753 which can conflict with char $ac_func (); below.
19754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19755 <limits.h> exists even on freestanding compilers. */
19758 # include <limits.h>
19760 # include <assert.h>
19765 /* Override any GCC internal prototype to avoid an error.
19766 Use char because int might match the return type of a GCC
19767 builtin and then its argument prototype would still apply. */
19772 /* The GNU C library defines this for functions which it implements
19773 to always fail with ENOSYS. Some functions are actually named
19774 something starting with __ and the normal name is an alias. */
19775 #if defined __stub_$ac_func || defined __stub___$ac_func
19782 return $ac_func ();
19787 rm -f conftest.$ac_objext conftest$ac_exeext
19788 if { (ac_try="$ac_link"
19789 case "(($ac_try" in
19790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19791 *) ac_try_echo=$ac_try;;
19793 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19794 (eval "$ac_link") 2>conftest.er1
19796 grep -v '^ *+' conftest.er1 >conftest.err
19798 cat conftest.err >&5
19799 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19800 (exit $ac_status); } && {
19801 test -z "$ac_c_werror_flag" ||
19802 test ! -s conftest.err
19803 } && test -s conftest$ac_exeext &&
19804 $as_test_x conftest$ac_exeext; then
19805 eval "$as_ac_var=yes"
19807 echo "$as_me: failed program was
:" >&5
19808 sed 's/^/| /' conftest.$ac_ext >&5
19810 eval "$as_ac_var=no
"
19813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19814 conftest$ac_exeext conftest.$ac_ext
19816 ac_res=`eval echo '${'$as_ac_var'}'`
19817 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19818 echo "${ECHO_T}$ac_res" >&6; }
19819 if test `eval echo '${'$as_ac_var'}'` = yes; then
19820 cat >>confdefs.h <<_ACEOF
19821 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19828 # Check this now, so that we will NOT find the above functions in ncurses.
19829 # That is because we have not set up to link ncurses in lib-src.
19830 # It's better to believe a function is not available
19831 # than to expect to find it in ncurses.
19833 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19834 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19835 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19836 echo $ECHO_N "(cached
) $ECHO_C" >&6
19838 ac_check_lib_save_LIBS=$LIBS
19839 LIBS="-lncurses $LIBS"
19840 cat >conftest.$ac_ext <<_ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19847 /* Override any GCC internal prototype to avoid an error.
19848 Use char because int might match the return type of a GCC
19849 builtin and then its argument prototype would still apply. */
19862 rm -f conftest.$ac_objext conftest$ac_exeext
19863 if { (ac_try="$ac_link"
19864 case "(($ac_try" in
19865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19866 *) ac_try_echo=$ac_try;;
19868 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19869 (eval "$ac_link") 2>conftest.er1
19871 grep -v '^ *+' conftest.er1 >conftest.err
19873 cat conftest.err >&5
19874 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19875 (exit $ac_status); } && {
19876 test -z "$ac_c_werror_flag" ||
19877 test ! -s conftest.err
19878 } && test -s conftest$ac_exeext &&
19879 $as_test_x conftest$ac_exeext; then
19880 ac_cv_lib_ncurses_tparm=yes
19882 echo "$as_me: failed program was
:" >&5
19883 sed 's/^/| /' conftest.$ac_ext >&5
19885 ac_cv_lib_ncurses_tparm=no
19888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19889 conftest$ac_exeext conftest.$ac_ext
19890 LIBS=$ac_check_lib_save_LIBS
19892 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19893 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19894 if test $ac_cv_lib_ncurses_tparm = yes; then
19895 cat >>confdefs.h <<_ACEOF
19896 #define HAVE_LIBNCURSES 1
19899 LIBS="-lncurses $LIBS"
19904 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19907 cat >conftest.$ac_ext <<_ACEOF
19910 cat confdefs.h >>conftest.$ac_ext
19911 cat >>conftest.$ac_ext <<_ACEOF
19912 /* end confdefs.h. */
19913 #include <netinet/in.h>
19914 #include <arpa/nameser.h>
19915 #include <resolv.h>
19924 rm -f conftest.$ac_objext conftest$ac_exeext
19925 if { (ac_try="$ac_link"
19926 case "(($ac_try" in
19927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19928 *) ac_try_echo=$ac_try;;
19930 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19931 (eval "$ac_link") 2>conftest.er1
19933 grep -v '^ *+' conftest.er1 >conftest.err
19935 cat conftest.err >&5
19936 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19937 (exit $ac_status); } && {
19938 test -z "$ac_c_werror_flag" ||
19939 test ! -s conftest.err
19940 } && test -s conftest$ac_exeext &&
19941 $as_test_x conftest$ac_exeext; then
19944 echo "$as_me: failed program was
:" >&5
19945 sed 's/^/| /' conftest.$ac_ext >&5
19950 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19951 conftest$ac_exeext conftest.$ac_ext
19952 if test "$have_res_init" = no; then
19954 LIBS="$LIBS -lresolv"
19955 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19956 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19957 cat >conftest.$ac_ext <<_ACEOF
19960 cat confdefs.h >>conftest.$ac_ext
19961 cat >>conftest.$ac_ext <<_ACEOF
19962 /* end confdefs.h. */
19963 #include <netinet/in.h>
19964 #include <arpa/nameser.h>
19965 #include <resolv.h>
19974 rm -f conftest.$ac_objext conftest$ac_exeext
19975 if { (ac_try="$ac_link"
19976 case "(($ac_try" in
19977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19978 *) ac_try_echo=$ac_try;;
19980 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19981 (eval "$ac_link") 2>conftest.er1
19983 grep -v '^ *+' conftest.er1 >conftest.err
19985 cat conftest.err >&5
19986 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19987 (exit $ac_status); } && {
19988 test -z "$ac_c_werror_flag" ||
19989 test ! -s conftest.err
19990 } && test -s conftest$ac_exeext &&
19991 $as_test_x conftest$ac_exeext; then
19994 echo "$as_me: failed program was
:" >&5
19995 sed 's/^/| /' conftest.$ac_ext >&5
20000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20001 conftest$ac_exeext conftest.$ac_ext
20002 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
20003 echo "${ECHO_T}$have_res_init" >&6; }
20004 if test "$have_res_init" = yes ; then
20010 if test "$have_res_init" = yes; then
20012 cat >>confdefs.h <<\_ACEOF
20013 #define HAVE_RES_INIT 1
20018 # Do we need the Hesiod library to provide the support routines?
20019 if test "$with_hesiod" = yes ; then
20020 # Don't set $LIBS here -- see comments above.
20021 { echo "$as_me:$LINENO: checking
for res_send
" >&5
20022 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
20023 if test "${ac_cv_func_res_send+set}" = set; then
20024 echo $ECHO_N "(cached
) $ECHO_C" >&6
20026 cat >conftest.$ac_ext <<_ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
20033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20034 #define res_send innocuous_res_send
20036 /* System header to define __stub macros and hopefully few prototypes,
20037 which can conflict with char res_send (); below.
20038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20039 <limits.h> exists even on freestanding compilers. */
20042 # include <limits.h>
20044 # include <assert.h>
20049 /* Override any GCC internal prototype to avoid an error.
20050 Use char because int might match the return type of a GCC
20051 builtin and then its argument prototype would still apply. */
20056 /* The GNU C library defines this for functions which it implements
20057 to always fail with ENOSYS. Some functions are actually named
20058 something starting with __ and the normal name is an alias. */
20059 #if defined __stub_res_send || defined __stub___res_send
20066 return res_send ();
20071 rm -f conftest.$ac_objext conftest$ac_exeext
20072 if { (ac_try="$ac_link"
20073 case "(($ac_try" in
20074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20075 *) ac_try_echo=$ac_try;;
20077 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20078 (eval "$ac_link") 2>conftest.er1
20080 grep -v '^ *+' conftest.er1 >conftest.err
20082 cat conftest.err >&5
20083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20084 (exit $ac_status); } && {
20085 test -z "$ac_c_werror_flag" ||
20086 test ! -s conftest.err
20087 } && test -s conftest$ac_exeext &&
20088 $as_test_x conftest$ac_exeext; then
20089 ac_cv_func_res_send=yes
20091 echo "$as_me: failed program was
:" >&5
20092 sed 's/^/| /' conftest.$ac_ext >&5
20094 ac_cv_func_res_send=no
20097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20098 conftest$ac_exeext conftest.$ac_ext
20100 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
20101 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20102 if test $ac_cv_func_res_send = yes; then
20105 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
20106 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
20107 if test "${ac_cv_func___res_send+set}" = set; then
20108 echo $ECHO_N "(cached
) $ECHO_C" >&6
20110 cat >conftest.$ac_ext <<_ACEOF
20113 cat confdefs.h >>conftest.$ac_ext
20114 cat >>conftest.$ac_ext <<_ACEOF
20115 /* end confdefs.h. */
20116 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20117 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20118 #define __res_send innocuous___res_send
20120 /* System header to define __stub macros and hopefully few prototypes,
20121 which can conflict with char __res_send (); below.
20122 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20123 <limits.h> exists even on freestanding compilers. */
20126 # include <limits.h>
20128 # include <assert.h>
20133 /* Override any GCC internal prototype to avoid an error.
20134 Use char because int might match the return type of a GCC
20135 builtin and then its argument prototype would still apply. */
20139 char __res_send ();
20140 /* The GNU C library defines this for functions which it implements
20141 to always fail with ENOSYS. Some functions are actually named
20142 something starting with __ and the normal name is an alias. */
20143 #if defined __stub___res_send || defined __stub_____res_send
20150 return __res_send ();
20155 rm -f conftest.$ac_objext conftest$ac_exeext
20156 if { (ac_try="$ac_link"
20157 case "(($ac_try" in
20158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20159 *) ac_try_echo=$ac_try;;
20161 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20162 (eval "$ac_link") 2>conftest.er1
20164 grep -v '^ *+' conftest.er1 >conftest.err
20166 cat conftest.err >&5
20167 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20168 (exit $ac_status); } && {
20169 test -z "$ac_c_werror_flag" ||
20170 test ! -s conftest.err
20171 } && test -s conftest$ac_exeext &&
20172 $as_test_x conftest$ac_exeext; then
20173 ac_cv_func___res_send=yes
20175 echo "$as_me: failed program was
:" >&5
20176 sed 's/^/| /' conftest.$ac_ext >&5
20178 ac_cv_func___res_send=no
20181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20182 conftest$ac_exeext conftest.$ac_ext
20184 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
20185 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20186 if test $ac_cv_func___res_send = yes; then
20189 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
20190 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
20191 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20192 echo $ECHO_N "(cached
) $ECHO_C" >&6
20194 ac_check_lib_save_LIBS=$LIBS
20195 LIBS="-lresolv $LIBS"
20196 cat >conftest.$ac_ext <<_ACEOF
20199 cat confdefs.h >>conftest.$ac_ext
20200 cat >>conftest.$ac_ext <<_ACEOF
20201 /* end confdefs.h. */
20203 /* Override any GCC internal prototype to avoid an error.
20204 Use char because int might match the return type of a GCC
20205 builtin and then its argument prototype would still apply. */
20213 return res_send ();
20218 rm -f conftest.$ac_objext conftest$ac_exeext
20219 if { (ac_try="$ac_link"
20220 case "(($ac_try" in
20221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20222 *) ac_try_echo=$ac_try;;
20224 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20225 (eval "$ac_link") 2>conftest.er1
20227 grep -v '^ *+' conftest.er1 >conftest.err
20229 cat conftest.err >&5
20230 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20231 (exit $ac_status); } && {
20232 test -z "$ac_c_werror_flag" ||
20233 test ! -s conftest.err
20234 } && test -s conftest$ac_exeext &&
20235 $as_test_x conftest$ac_exeext; then
20236 ac_cv_lib_resolv_res_send=yes
20238 echo "$as_me: failed program was
:" >&5
20239 sed 's/^/| /' conftest.$ac_ext >&5
20241 ac_cv_lib_resolv_res_send=no
20244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20245 conftest$ac_exeext conftest.$ac_ext
20246 LIBS=$ac_check_lib_save_LIBS
20248 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20249 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20250 if test $ac_cv_lib_resolv_res_send = yes; then
20253 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20254 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20255 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20256 echo $ECHO_N "(cached
) $ECHO_C" >&6
20258 ac_check_lib_save_LIBS=$LIBS
20259 LIBS="-lresolv $LIBS"
20260 cat >conftest.$ac_ext <<_ACEOF
20263 cat confdefs.h >>conftest.$ac_ext
20264 cat >>conftest.$ac_ext <<_ACEOF
20265 /* end confdefs.h. */
20267 /* Override any GCC internal prototype to avoid an error.
20268 Use char because int might match the return type of a GCC
20269 builtin and then its argument prototype would still apply. */
20273 char __res_send ();
20277 return __res_send ();
20282 rm -f conftest.$ac_objext conftest$ac_exeext
20283 if { (ac_try="$ac_link"
20284 case "(($ac_try" in
20285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20286 *) ac_try_echo=$ac_try;;
20288 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20289 (eval "$ac_link") 2>conftest.er1
20291 grep -v '^ *+' conftest.er1 >conftest.err
20293 cat conftest.err >&5
20294 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20295 (exit $ac_status); } && {
20296 test -z "$ac_c_werror_flag" ||
20297 test ! -s conftest.err
20298 } && test -s conftest$ac_exeext &&
20299 $as_test_x conftest$ac_exeext; then
20300 ac_cv_lib_resolv___res_send=yes
20302 echo "$as_me: failed program was
:" >&5
20303 sed 's/^/| /' conftest.$ac_ext >&5
20305 ac_cv_lib_resolv___res_send=no
20308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20309 conftest$ac_exeext conftest.$ac_ext
20310 LIBS=$ac_check_lib_save_LIBS
20312 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20313 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20314 if test $ac_cv_lib_resolv___res_send = yes; then
20324 if test "$resolv" = yes ; then
20329 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20330 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20331 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20332 echo $ECHO_N "(cached
) $ECHO_C" >&6
20334 cat >conftest.$ac_ext <<_ACEOF
20337 cat confdefs.h >>conftest.$ac_ext
20338 cat >>conftest.$ac_ext <<_ACEOF
20339 /* end confdefs.h. */
20340 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20341 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20342 #define hes_getmailhost innocuous_hes_getmailhost
20344 /* System header to define __stub macros and hopefully few prototypes,
20345 which can conflict with char hes_getmailhost (); below.
20346 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20347 <limits.h> exists even on freestanding compilers. */
20350 # include <limits.h>
20352 # include <assert.h>
20355 #undef hes_getmailhost
20357 /* Override any GCC internal prototype to avoid an error.
20358 Use char because int might match the return type of a GCC
20359 builtin and then its argument prototype would still apply. */
20363 char hes_getmailhost ();
20364 /* The GNU C library defines this for functions which it implements
20365 to always fail with ENOSYS. Some functions are actually named
20366 something starting with __ and the normal name is an alias. */
20367 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20374 return hes_getmailhost ();
20379 rm -f conftest.$ac_objext conftest$ac_exeext
20380 if { (ac_try="$ac_link"
20381 case "(($ac_try" in
20382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20383 *) ac_try_echo=$ac_try;;
20385 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20386 (eval "$ac_link") 2>conftest.er1
20388 grep -v '^ *+' conftest.er1 >conftest.err
20390 cat conftest.err >&5
20391 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20392 (exit $ac_status); } && {
20393 test -z "$ac_c_werror_flag" ||
20394 test ! -s conftest.err
20395 } && test -s conftest$ac_exeext &&
20396 $as_test_x conftest$ac_exeext; then
20397 ac_cv_func_hes_getmailhost=yes
20399 echo "$as_me: failed program was
:" >&5
20400 sed 's/^/| /' conftest.$ac_ext >&5
20402 ac_cv_func_hes_getmailhost=no
20405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20406 conftest$ac_exeext conftest.$ac_ext
20408 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20409 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20410 if test $ac_cv_func_hes_getmailhost = yes; then
20413 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20414 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20415 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20416 echo $ECHO_N "(cached
) $ECHO_C" >&6
20418 ac_check_lib_save_LIBS=$LIBS
20419 LIBS="-lhesiod $RESOLVLIB $LIBS"
20420 cat >conftest.$ac_ext <<_ACEOF
20423 cat confdefs.h >>conftest.$ac_ext
20424 cat >>conftest.$ac_ext <<_ACEOF
20425 /* end confdefs.h. */
20427 /* Override any GCC internal prototype to avoid an error.
20428 Use char because int might match the return type of a GCC
20429 builtin and then its argument prototype would still apply. */
20433 char hes_getmailhost ();
20437 return hes_getmailhost ();
20442 rm -f conftest.$ac_objext conftest$ac_exeext
20443 if { (ac_try="$ac_link"
20444 case "(($ac_try" in
20445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20446 *) ac_try_echo=$ac_try;;
20448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20449 (eval "$ac_link") 2>conftest.er1
20451 grep -v '^ *+' conftest.er1 >conftest.err
20453 cat conftest.err >&5
20454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20455 (exit $ac_status); } && {
20456 test -z "$ac_c_werror_flag" ||
20457 test ! -s conftest.err
20458 } && test -s conftest$ac_exeext &&
20459 $as_test_x conftest$ac_exeext; then
20460 ac_cv_lib_hesiod_hes_getmailhost=yes
20462 echo "$as_me: failed program was
:" >&5
20463 sed 's/^/| /' conftest.$ac_ext >&5
20465 ac_cv_lib_hesiod_hes_getmailhost=no
20468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20469 conftest$ac_exeext conftest.$ac_ext
20470 LIBS=$ac_check_lib_save_LIBS
20472 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20473 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20474 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20476 cat >>confdefs.h <<\_ACEOF
20477 #define HAVE_LIBHESIOD 1
20488 # Do we need libresolv (due to res_init or Hesiod)?
20489 if test "$resolv" = yes ; then
20491 cat >>confdefs.h <<\_ACEOF
20492 #define HAVE_LIBRESOLV 1
20497 # These tell us which Kerberos-related libraries to use.
20498 if test "${with_kerberos+set}" = set; then
20500 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20501 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20502 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20503 echo $ECHO_N "(cached
) $ECHO_C" >&6
20505 ac_check_lib_save_LIBS=$LIBS
20506 LIBS="-lcom_err $LIBS"
20507 cat >conftest.$ac_ext <<_ACEOF
20510 cat confdefs.h >>conftest.$ac_ext
20511 cat >>conftest.$ac_ext <<_ACEOF
20512 /* end confdefs.h. */
20514 /* Override any GCC internal prototype to avoid an error.
20515 Use char because int might match the return type of a GCC
20516 builtin and then its argument prototype would still apply. */
20529 rm -f conftest.$ac_objext conftest$ac_exeext
20530 if { (ac_try="$ac_link"
20531 case "(($ac_try" in
20532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20533 *) ac_try_echo=$ac_try;;
20535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20536 (eval "$ac_link") 2>conftest.er1
20538 grep -v '^ *+' conftest.er1 >conftest.err
20540 cat conftest.err >&5
20541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20542 (exit $ac_status); } && {
20543 test -z "$ac_c_werror_flag" ||
20544 test ! -s conftest.err
20545 } && test -s conftest$ac_exeext &&
20546 $as_test_x conftest$ac_exeext; then
20547 ac_cv_lib_com_err_com_err=yes
20549 echo "$as_me: failed program was
:" >&5
20550 sed 's/^/| /' conftest.$ac_ext >&5
20552 ac_cv_lib_com_err_com_err=no
20555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20556 conftest$ac_exeext conftest.$ac_ext
20557 LIBS=$ac_check_lib_save_LIBS
20559 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20560 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20561 if test $ac_cv_lib_com_err_com_err = yes; then
20562 cat >>confdefs.h <<_ACEOF
20563 #define HAVE_LIBCOM_ERR 1
20566 LIBS="-lcom_err $LIBS"
20571 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20572 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20573 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20574 echo $ECHO_N "(cached
) $ECHO_C" >&6
20576 ac_check_lib_save_LIBS=$LIBS
20577 LIBS="-lk5crypto $LIBS"
20578 cat >conftest.$ac_ext <<_ACEOF
20581 cat confdefs.h >>conftest.$ac_ext
20582 cat >>conftest.$ac_ext <<_ACEOF
20583 /* end confdefs.h. */
20585 /* Override any GCC internal prototype to avoid an error.
20586 Use char because int might match the return type of a GCC
20587 builtin and then its argument prototype would still apply. */
20591 char mit_des_cbc_encrypt ();
20595 return mit_des_cbc_encrypt ();
20600 rm -f conftest.$ac_objext conftest$ac_exeext
20601 if { (ac_try="$ac_link"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20606 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_link") 2>conftest.er1
20609 grep -v '^ *+' conftest.er1 >conftest.err
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20613 (exit $ac_status); } && {
20614 test -z "$ac_c_werror_flag" ||
20615 test ! -s conftest.err
20616 } && test -s conftest$ac_exeext &&
20617 $as_test_x conftest$ac_exeext; then
20618 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20620 echo "$as_me: failed program was
:" >&5
20621 sed 's/^/| /' conftest.$ac_ext >&5
20623 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20626 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20627 conftest$ac_exeext conftest.$ac_ext
20628 LIBS=$ac_check_lib_save_LIBS
20630 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20631 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20632 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20633 cat >>confdefs.h <<_ACEOF
20634 #define HAVE_LIBK5CRYPTO 1
20637 LIBS="-lk5crypto $LIBS"
20642 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20643 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20644 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20645 echo $ECHO_N "(cached
) $ECHO_C" >&6
20647 ac_check_lib_save_LIBS=$LIBS
20648 LIBS="-lcrypto $LIBS"
20649 cat >conftest.$ac_ext <<_ACEOF
20652 cat confdefs.h >>conftest.$ac_ext
20653 cat >>conftest.$ac_ext <<_ACEOF
20654 /* end confdefs.h. */
20656 /* Override any GCC internal prototype to avoid an error.
20657 Use char because int might match the return type of a GCC
20658 builtin and then its argument prototype would still apply. */
20662 char mit_des_cbc_encrypt ();
20666 return mit_des_cbc_encrypt ();
20671 rm -f conftest.$ac_objext conftest$ac_exeext
20672 if { (ac_try="$ac_link"
20673 case "(($ac_try" in
20674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20675 *) ac_try_echo=$ac_try;;
20677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20678 (eval "$ac_link") 2>conftest.er1
20680 grep -v '^ *+' conftest.er1 >conftest.err
20682 cat conftest.err >&5
20683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20684 (exit $ac_status); } && {
20685 test -z "$ac_c_werror_flag" ||
20686 test ! -s conftest.err
20687 } && test -s conftest$ac_exeext &&
20688 $as_test_x conftest$ac_exeext; then
20689 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20691 echo "$as_me: failed program was
:" >&5
20692 sed 's/^/| /' conftest.$ac_ext >&5
20694 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20697 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20698 conftest$ac_exeext conftest.$ac_ext
20699 LIBS=$ac_check_lib_save_LIBS
20701 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20702 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20703 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20704 cat >>confdefs.h <<_ACEOF
20705 #define HAVE_LIBCRYPTO 1
20708 LIBS="-lcrypto $LIBS"
20713 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20714 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20715 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20716 echo $ECHO_N "(cached
) $ECHO_C" >&6
20718 ac_check_lib_save_LIBS=$LIBS
20719 LIBS="-lkrb5 $LIBS"
20720 cat >conftest.$ac_ext <<_ACEOF
20723 cat confdefs.h >>conftest.$ac_ext
20724 cat >>conftest.$ac_ext <<_ACEOF
20725 /* end confdefs.h. */
20727 /* Override any GCC internal prototype to avoid an error.
20728 Use char because int might match the return type of a GCC
20729 builtin and then its argument prototype would still apply. */
20733 char krb5_init_context ();
20737 return krb5_init_context ();
20742 rm -f conftest.$ac_objext conftest$ac_exeext
20743 if { (ac_try="$ac_link"
20744 case "(($ac_try" in
20745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20746 *) ac_try_echo=$ac_try;;
20748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20749 (eval "$ac_link") 2>conftest.er1
20751 grep -v '^ *+' conftest.er1 >conftest.err
20753 cat conftest.err >&5
20754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20755 (exit $ac_status); } && {
20756 test -z "$ac_c_werror_flag" ||
20757 test ! -s conftest.err
20758 } && test -s conftest$ac_exeext &&
20759 $as_test_x conftest$ac_exeext; then
20760 ac_cv_lib_krb5_krb5_init_context=yes
20762 echo "$as_me: failed program was
:" >&5
20763 sed 's/^/| /' conftest.$ac_ext >&5
20765 ac_cv_lib_krb5_krb5_init_context=no
20768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20769 conftest$ac_exeext conftest.$ac_ext
20770 LIBS=$ac_check_lib_save_LIBS
20772 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20773 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20774 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20775 cat >>confdefs.h <<_ACEOF
20776 #define HAVE_LIBKRB5 1
20779 LIBS="-lkrb5 $LIBS"
20783 if test "${with_kerberos5+set}" != set; then
20785 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20786 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20787 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20788 echo $ECHO_N "(cached
) $ECHO_C" >&6
20790 ac_check_lib_save_LIBS=$LIBS
20791 LIBS="-ldes425 $LIBS"
20792 cat >conftest.$ac_ext <<_ACEOF
20795 cat confdefs.h >>conftest.$ac_ext
20796 cat >>conftest.$ac_ext <<_ACEOF
20797 /* end confdefs.h. */
20799 /* Override any GCC internal prototype to avoid an error.
20800 Use char because int might match the return type of a GCC
20801 builtin and then its argument prototype would still apply. */
20805 char des_cbc_encrypt ();
20809 return des_cbc_encrypt ();
20814 rm -f conftest.$ac_objext conftest$ac_exeext
20815 if { (ac_try="$ac_link"
20816 case "(($ac_try" in
20817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20818 *) ac_try_echo=$ac_try;;
20820 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20821 (eval "$ac_link") 2>conftest.er1
20823 grep -v '^ *+' conftest.er1 >conftest.err
20825 cat conftest.err >&5
20826 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20827 (exit $ac_status); } && {
20828 test -z "$ac_c_werror_flag" ||
20829 test ! -s conftest.err
20830 } && test -s conftest$ac_exeext &&
20831 $as_test_x conftest$ac_exeext; then
20832 ac_cv_lib_des425_des_cbc_encrypt=yes
20834 echo "$as_me: failed program was
:" >&5
20835 sed 's/^/| /' conftest.$ac_ext >&5
20837 ac_cv_lib_des425_des_cbc_encrypt=no
20840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20841 conftest$ac_exeext conftest.$ac_ext
20842 LIBS=$ac_check_lib_save_LIBS
20844 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20845 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20846 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20847 cat >>confdefs.h <<_ACEOF
20848 #define HAVE_LIBDES425 1
20851 LIBS="-ldes425 $LIBS"
20855 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20856 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20857 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20858 echo $ECHO_N "(cached
) $ECHO_C" >&6
20860 ac_check_lib_save_LIBS=$LIBS
20862 cat >conftest.$ac_ext <<_ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20869 /* Override any GCC internal prototype to avoid an error.
20870 Use char because int might match the return type of a GCC
20871 builtin and then its argument prototype would still apply. */
20875 char des_cbc_encrypt ();
20879 return des_cbc_encrypt ();
20884 rm -f conftest.$ac_objext conftest$ac_exeext
20885 if { (ac_try="$ac_link"
20886 case "(($ac_try" in
20887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20888 *) ac_try_echo=$ac_try;;
20890 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20891 (eval "$ac_link") 2>conftest.er1
20893 grep -v '^ *+' conftest.er1 >conftest.err
20895 cat conftest.err >&5
20896 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20897 (exit $ac_status); } && {
20898 test -z "$ac_c_werror_flag" ||
20899 test ! -s conftest.err
20900 } && test -s conftest$ac_exeext &&
20901 $as_test_x conftest$ac_exeext; then
20902 ac_cv_lib_des_des_cbc_encrypt=yes
20904 echo "$as_me: failed program was
:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20907 ac_cv_lib_des_des_cbc_encrypt=no
20910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20911 conftest$ac_exeext conftest.$ac_ext
20912 LIBS=$ac_check_lib_save_LIBS
20914 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20915 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20916 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20917 cat >>confdefs.h <<_ACEOF
20918 #define HAVE_LIBDES 1
20928 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20929 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20930 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20931 echo $ECHO_N "(cached
) $ECHO_C" >&6
20933 ac_check_lib_save_LIBS=$LIBS
20934 LIBS="-lkrb4 $LIBS"
20935 cat >conftest.$ac_ext <<_ACEOF
20938 cat confdefs.h >>conftest.$ac_ext
20939 cat >>conftest.$ac_ext <<_ACEOF
20940 /* end confdefs.h. */
20942 /* Override any GCC internal prototype to avoid an error.
20943 Use char because int might match the return type of a GCC
20944 builtin and then its argument prototype would still apply. */
20948 char krb_get_cred ();
20952 return krb_get_cred ();
20957 rm -f conftest.$ac_objext conftest$ac_exeext
20958 if { (ac_try="$ac_link"
20959 case "(($ac_try" in
20960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20961 *) ac_try_echo=$ac_try;;
20963 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20964 (eval "$ac_link") 2>conftest.er1
20966 grep -v '^ *+' conftest.er1 >conftest.err
20968 cat conftest.err >&5
20969 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20970 (exit $ac_status); } && {
20971 test -z "$ac_c_werror_flag" ||
20972 test ! -s conftest.err
20973 } && test -s conftest$ac_exeext &&
20974 $as_test_x conftest$ac_exeext; then
20975 ac_cv_lib_krb4_krb_get_cred=yes
20977 echo "$as_me: failed program was
:" >&5
20978 sed 's/^/| /' conftest.$ac_ext >&5
20980 ac_cv_lib_krb4_krb_get_cred=no
20983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20984 conftest$ac_exeext conftest.$ac_ext
20985 LIBS=$ac_check_lib_save_LIBS
20987 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20988 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20989 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20990 cat >>confdefs.h <<_ACEOF
20991 #define HAVE_LIBKRB4 1
20994 LIBS="-lkrb4 $LIBS"
20998 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20999 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
21000 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
21001 echo $ECHO_N "(cached
) $ECHO_C" >&6
21003 ac_check_lib_save_LIBS=$LIBS
21005 cat >conftest.$ac_ext <<_ACEOF
21008 cat confdefs.h >>conftest.$ac_ext
21009 cat >>conftest.$ac_ext <<_ACEOF
21010 /* end confdefs.h. */
21012 /* Override any GCC internal prototype to avoid an error.
21013 Use char because int might match the return type of a GCC
21014 builtin and then its argument prototype would still apply. */
21018 char krb_get_cred ();
21022 return krb_get_cred ();
21027 rm -f conftest.$ac_objext conftest$ac_exeext
21028 if { (ac_try="$ac_link"
21029 case "(($ac_try" in
21030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21031 *) ac_try_echo=$ac_try;;
21033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21034 (eval "$ac_link") 2>conftest.er1
21036 grep -v '^ *+' conftest.er1 >conftest.err
21038 cat conftest.err >&5
21039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21040 (exit $ac_status); } && {
21041 test -z "$ac_c_werror_flag" ||
21042 test ! -s conftest.err
21043 } && test -s conftest$ac_exeext &&
21044 $as_test_x conftest$ac_exeext; then
21045 ac_cv_lib_krb_krb_get_cred=yes
21047 echo "$as_me: failed program was
:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21050 ac_cv_lib_krb_krb_get_cred=no
21053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21054 conftest$ac_exeext conftest.$ac_ext
21055 LIBS=$ac_check_lib_save_LIBS
21057 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
21058 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
21059 if test $ac_cv_lib_krb_krb_get_cred = yes; then
21060 cat >>confdefs.h <<_ACEOF
21061 #define HAVE_LIBKRB 1
21072 if test "${with_kerberos5+set}" = set; then
21074 for ac_header in krb5.h
21076 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21077 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21078 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21079 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21080 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21081 echo $ECHO_N "(cached
) $ECHO_C" >&6
21083 ac_res=`eval echo '${'$as_ac_Header'}'`
21084 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21085 echo "${ECHO_T}$ac_res" >&6; }
21087 # Is the header compilable?
21088 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21089 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21090 cat >conftest.$ac_ext <<_ACEOF
21093 cat confdefs.h >>conftest.$ac_ext
21094 cat >>conftest.$ac_ext <<_ACEOF
21095 /* end confdefs.h. */
21096 $ac_includes_default
21097 #include <$ac_header>
21099 rm -f conftest.$ac_objext
21100 if { (ac_try="$ac_compile"
21101 case "(($ac_try" in
21102 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21103 *) ac_try_echo=$ac_try;;
21105 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21106 (eval "$ac_compile") 2>conftest.er1
21108 grep -v '^ *+' conftest.er1 >conftest.err
21110 cat conftest.err >&5
21111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21112 (exit $ac_status); } && {
21113 test -z "$ac_c_werror_flag" ||
21114 test ! -s conftest.err
21115 } && test -s conftest.$ac_objext; then
21116 ac_header_compiler=yes
21118 echo "$as_me: failed program was
:" >&5
21119 sed 's/^/| /' conftest.$ac_ext >&5
21121 ac_header_compiler=no
21124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21125 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21126 echo "${ECHO_T}$ac_header_compiler" >&6; }
21128 # Is the header present?
21129 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21130 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21131 cat >conftest.$ac_ext <<_ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 #include <$ac_header>
21139 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21140 case "(($ac_try" in
21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142 *) ac_try_echo=$ac_try;;
21144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21147 grep -v '^ *+' conftest.er1 >conftest.err
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21151 (exit $ac_status); } >/dev/null && {
21152 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21153 test ! -s conftest.err
21155 ac_header_preproc=yes
21157 echo "$as_me: failed program was
:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21160 ac_header_preproc=no
21163 rm -f conftest.err conftest.$ac_ext
21164 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21165 echo "${ECHO_T}$ac_header_preproc" >&6; }
21167 # So? What about this header?
21168 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21170 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21171 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21172 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21173 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21174 ac_header_preproc=yes
21177 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21178 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21179 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21180 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21181 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21182 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21183 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21184 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21185 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21186 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21187 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21188 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21192 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21193 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21194 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21195 echo $ECHO_N "(cached
) $ECHO_C" >&6
21197 eval "$as_ac_Header=\
$ac_header_preproc"
21199 ac_res=`eval echo '${'$as_ac_Header'}'`
21200 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21201 echo "${ECHO_T}$ac_res" >&6; }
21204 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21205 cat >>confdefs.h <<_ACEOF
21206 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21215 for ac_header in des.h
21217 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21218 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21219 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21220 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21221 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21222 echo $ECHO_N "(cached
) $ECHO_C" >&6
21224 ac_res=`eval echo '${'$as_ac_Header'}'`
21225 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21226 echo "${ECHO_T}$ac_res" >&6; }
21228 # Is the header compilable?
21229 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21230 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21231 cat >conftest.$ac_ext <<_ACEOF
21234 cat confdefs.h >>conftest.$ac_ext
21235 cat >>conftest.$ac_ext <<_ACEOF
21236 /* end confdefs.h. */
21237 $ac_includes_default
21238 #include <$ac_header>
21240 rm -f conftest.$ac_objext
21241 if { (ac_try="$ac_compile"
21242 case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21246 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_compile") 2>conftest.er1
21249 grep -v '^ *+' conftest.er1 >conftest.err
21251 cat conftest.err >&5
21252 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21253 (exit $ac_status); } && {
21254 test -z "$ac_c_werror_flag" ||
21255 test ! -s conftest.err
21256 } && test -s conftest.$ac_objext; then
21257 ac_header_compiler=yes
21259 echo "$as_me: failed program was
:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21262 ac_header_compiler=no
21265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21266 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21267 echo "${ECHO_T}$ac_header_compiler" >&6; }
21269 # Is the header present?
21270 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21271 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21272 cat >conftest.$ac_ext <<_ACEOF
21275 cat confdefs.h >>conftest.$ac_ext
21276 cat >>conftest.$ac_ext <<_ACEOF
21277 /* end confdefs.h. */
21278 #include <$ac_header>
21280 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21281 case "(($ac_try" in
21282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21283 *) ac_try_echo=$ac_try;;
21285 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21286 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21288 grep -v '^ *+' conftest.er1 >conftest.err
21290 cat conftest.err >&5
21291 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21292 (exit $ac_status); } >/dev/null && {
21293 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21294 test ! -s conftest.err
21296 ac_header_preproc=yes
21298 echo "$as_me: failed program was
:" >&5
21299 sed 's/^/| /' conftest.$ac_ext >&5
21301 ac_header_preproc=no
21304 rm -f conftest.err conftest.$ac_ext
21305 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21306 echo "${ECHO_T}$ac_header_preproc" >&6; }
21308 # So? What about this header?
21309 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21311 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21312 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21313 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21314 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21315 ac_header_preproc=yes
21318 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21319 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21320 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21321 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21322 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21323 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21324 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21325 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21326 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21327 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21328 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21329 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21333 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21334 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21335 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21336 echo $ECHO_N "(cached
) $ECHO_C" >&6
21338 eval "$as_ac_Header=\
$ac_header_preproc"
21340 ac_res=`eval echo '${'$as_ac_Header'}'`
21341 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21342 echo "${ECHO_T}$ac_res" >&6; }
21345 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21346 cat >>confdefs.h <<_ACEOF
21347 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21352 for ac_header in kerberosIV/des.h
21354 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21355 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21356 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21357 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21358 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21359 echo $ECHO_N "(cached
) $ECHO_C" >&6
21361 ac_res=`eval echo '${'$as_ac_Header'}'`
21362 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21363 echo "${ECHO_T}$ac_res" >&6; }
21365 # Is the header compilable?
21366 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21367 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21368 cat >conftest.$ac_ext <<_ACEOF
21371 cat confdefs.h >>conftest.$ac_ext
21372 cat >>conftest.$ac_ext <<_ACEOF
21373 /* end confdefs.h. */
21374 $ac_includes_default
21375 #include <$ac_header>
21377 rm -f conftest.$ac_objext
21378 if { (ac_try="$ac_compile"
21379 case "(($ac_try" in
21380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21381 *) ac_try_echo=$ac_try;;
21383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21384 (eval "$ac_compile") 2>conftest.er1
21386 grep -v '^ *+' conftest.er1 >conftest.err
21388 cat conftest.err >&5
21389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21390 (exit $ac_status); } && {
21391 test -z "$ac_c_werror_flag" ||
21392 test ! -s conftest.err
21393 } && test -s conftest.$ac_objext; then
21394 ac_header_compiler=yes
21396 echo "$as_me: failed program was
:" >&5
21397 sed 's/^/| /' conftest.$ac_ext >&5
21399 ac_header_compiler=no
21402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21403 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21404 echo "${ECHO_T}$ac_header_compiler" >&6; }
21406 # Is the header present?
21407 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21408 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21409 cat >conftest.$ac_ext <<_ACEOF
21412 cat confdefs.h >>conftest.$ac_ext
21413 cat >>conftest.$ac_ext <<_ACEOF
21414 /* end confdefs.h. */
21415 #include <$ac_header>
21417 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21418 case "(($ac_try" in
21419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21420 *) ac_try_echo=$ac_try;;
21422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21423 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21425 grep -v '^ *+' conftest.er1 >conftest.err
21427 cat conftest.err >&5
21428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21429 (exit $ac_status); } >/dev/null && {
21430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21431 test ! -s conftest.err
21433 ac_header_preproc=yes
21435 echo "$as_me: failed program was
:" >&5
21436 sed 's/^/| /' conftest.$ac_ext >&5
21438 ac_header_preproc=no
21441 rm -f conftest.err conftest.$ac_ext
21442 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21443 echo "${ECHO_T}$ac_header_preproc" >&6; }
21445 # So? What about this header?
21446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21448 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21449 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21450 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21452 ac_header_preproc=yes
21455 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21456 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21457 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21458 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21459 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21460 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21461 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21462 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21463 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21465 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21466 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21470 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21471 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21472 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21473 echo $ECHO_N "(cached
) $ECHO_C" >&6
21475 eval "$as_ac_Header=\
$ac_header_preproc"
21477 ac_res=`eval echo '${'$as_ac_Header'}'`
21478 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21479 echo "${ECHO_T}$ac_res" >&6; }
21482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21483 cat >>confdefs.h <<_ACEOF
21484 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21489 for ac_header in kerberos/des.h
21491 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21492 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21493 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21494 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21495 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21496 echo $ECHO_N "(cached
) $ECHO_C" >&6
21498 ac_res=`eval echo '${'$as_ac_Header'}'`
21499 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21500 echo "${ECHO_T}$ac_res" >&6; }
21502 # Is the header compilable?
21503 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21504 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21505 cat >conftest.$ac_ext <<_ACEOF
21508 cat confdefs.h >>conftest.$ac_ext
21509 cat >>conftest.$ac_ext <<_ACEOF
21510 /* end confdefs.h. */
21511 $ac_includes_default
21512 #include <$ac_header>
21514 rm -f conftest.$ac_objext
21515 if { (ac_try="$ac_compile"
21516 case "(($ac_try" in
21517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21518 *) ac_try_echo=$ac_try;;
21520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21521 (eval "$ac_compile") 2>conftest.er1
21523 grep -v '^ *+' conftest.er1 >conftest.err
21525 cat conftest.err >&5
21526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21527 (exit $ac_status); } && {
21528 test -z "$ac_c_werror_flag" ||
21529 test ! -s conftest.err
21530 } && test -s conftest.$ac_objext; then
21531 ac_header_compiler=yes
21533 echo "$as_me: failed program was
:" >&5
21534 sed 's/^/| /' conftest.$ac_ext >&5
21536 ac_header_compiler=no
21539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21540 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21541 echo "${ECHO_T}$ac_header_compiler" >&6; }
21543 # Is the header present?
21544 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21545 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21546 cat >conftest.$ac_ext <<_ACEOF
21549 cat confdefs.h >>conftest.$ac_ext
21550 cat >>conftest.$ac_ext <<_ACEOF
21551 /* end confdefs.h. */
21552 #include <$ac_header>
21554 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21555 case "(($ac_try" in
21556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21557 *) ac_try_echo=$ac_try;;
21559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21560 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21562 grep -v '^ *+' conftest.er1 >conftest.err
21564 cat conftest.err >&5
21565 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21566 (exit $ac_status); } >/dev/null && {
21567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21568 test ! -s conftest.err
21570 ac_header_preproc=yes
21572 echo "$as_me: failed program was
:" >&5
21573 sed 's/^/| /' conftest.$ac_ext >&5
21575 ac_header_preproc=no
21578 rm -f conftest.err conftest.$ac_ext
21579 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21580 echo "${ECHO_T}$ac_header_preproc" >&6; }
21582 # So? What about this header?
21583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21585 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21586 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21587 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21588 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21589 ac_header_preproc=yes
21592 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21593 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21594 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21595 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21596 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21597 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21598 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21599 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21600 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21601 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21602 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21603 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21607 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21608 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21609 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21610 echo $ECHO_N "(cached
) $ECHO_C" >&6
21612 eval "$as_ac_Header=\
$ac_header_preproc"
21614 ac_res=`eval echo '${'$as_ac_Header'}'`
21615 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21616 echo "${ECHO_T}$ac_res" >&6; }
21619 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21620 cat >>confdefs.h <<_ACEOF
21621 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21637 for ac_header in krb.h
21639 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21640 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21641 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21642 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21643 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21644 echo $ECHO_N "(cached
) $ECHO_C" >&6
21646 ac_res=`eval echo '${'$as_ac_Header'}'`
21647 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21648 echo "${ECHO_T}$ac_res" >&6; }
21650 # Is the header compilable?
21651 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21652 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21653 cat >conftest.$ac_ext <<_ACEOF
21656 cat confdefs.h >>conftest.$ac_ext
21657 cat >>conftest.$ac_ext <<_ACEOF
21658 /* end confdefs.h. */
21659 $ac_includes_default
21660 #include <$ac_header>
21662 rm -f conftest.$ac_objext
21663 if { (ac_try="$ac_compile"
21664 case "(($ac_try" in
21665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21666 *) ac_try_echo=$ac_try;;
21668 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21669 (eval "$ac_compile") 2>conftest.er1
21671 grep -v '^ *+' conftest.er1 >conftest.err
21673 cat conftest.err >&5
21674 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21675 (exit $ac_status); } && {
21676 test -z "$ac_c_werror_flag" ||
21677 test ! -s conftest.err
21678 } && test -s conftest.$ac_objext; then
21679 ac_header_compiler=yes
21681 echo "$as_me: failed program was
:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21684 ac_header_compiler=no
21687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21688 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21689 echo "${ECHO_T}$ac_header_compiler" >&6; }
21691 # Is the header present?
21692 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21693 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21694 cat >conftest.$ac_ext <<_ACEOF
21697 cat confdefs.h >>conftest.$ac_ext
21698 cat >>conftest.$ac_ext <<_ACEOF
21699 /* end confdefs.h. */
21700 #include <$ac_header>
21702 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21703 case "(($ac_try" in
21704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21705 *) ac_try_echo=$ac_try;;
21707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21708 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21710 grep -v '^ *+' conftest.er1 >conftest.err
21712 cat conftest.err >&5
21713 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21714 (exit $ac_status); } >/dev/null && {
21715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21716 test ! -s conftest.err
21718 ac_header_preproc=yes
21720 echo "$as_me: failed program was
:" >&5
21721 sed 's/^/| /' conftest.$ac_ext >&5
21723 ac_header_preproc=no
21726 rm -f conftest.err conftest.$ac_ext
21727 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21728 echo "${ECHO_T}$ac_header_preproc" >&6; }
21730 # So? What about this header?
21731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21733 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21734 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21735 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21737 ac_header_preproc=yes
21740 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21741 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21742 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21743 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21744 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21745 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21746 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21747 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21748 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21750 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21751 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21755 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21756 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21757 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21758 echo $ECHO_N "(cached
) $ECHO_C" >&6
21760 eval "$as_ac_Header=\
$ac_header_preproc"
21762 ac_res=`eval echo '${'$as_ac_Header'}'`
21763 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21764 echo "${ECHO_T}$ac_res" >&6; }
21767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21768 cat >>confdefs.h <<_ACEOF
21769 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21774 for ac_header in kerberosIV/krb.h
21776 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21777 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21778 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21779 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21780 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21781 echo $ECHO_N "(cached
) $ECHO_C" >&6
21783 ac_res=`eval echo '${'$as_ac_Header'}'`
21784 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21785 echo "${ECHO_T}$ac_res" >&6; }
21787 # Is the header compilable?
21788 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21789 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21790 cat >conftest.$ac_ext <<_ACEOF
21793 cat confdefs.h >>conftest.$ac_ext
21794 cat >>conftest.$ac_ext <<_ACEOF
21795 /* end confdefs.h. */
21796 $ac_includes_default
21797 #include <$ac_header>
21799 rm -f conftest.$ac_objext
21800 if { (ac_try="$ac_compile"
21801 case "(($ac_try" in
21802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21803 *) ac_try_echo=$ac_try;;
21805 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21806 (eval "$ac_compile") 2>conftest.er1
21808 grep -v '^ *+' conftest.er1 >conftest.err
21810 cat conftest.err >&5
21811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21812 (exit $ac_status); } && {
21813 test -z "$ac_c_werror_flag" ||
21814 test ! -s conftest.err
21815 } && test -s conftest.$ac_objext; then
21816 ac_header_compiler=yes
21818 echo "$as_me: failed program was
:" >&5
21819 sed 's/^/| /' conftest.$ac_ext >&5
21821 ac_header_compiler=no
21824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21825 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21826 echo "${ECHO_T}$ac_header_compiler" >&6; }
21828 # Is the header present?
21829 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21830 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21831 cat >conftest.$ac_ext <<_ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h. */
21837 #include <$ac_header>
21839 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21840 case "(($ac_try" in
21841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21842 *) ac_try_echo=$ac_try;;
21844 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21845 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21847 grep -v '^ *+' conftest.er1 >conftest.err
21849 cat conftest.err >&5
21850 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21851 (exit $ac_status); } >/dev/null && {
21852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21853 test ! -s conftest.err
21855 ac_header_preproc=yes
21857 echo "$as_me: failed program was
:" >&5
21858 sed 's/^/| /' conftest.$ac_ext >&5
21860 ac_header_preproc=no
21863 rm -f conftest.err conftest.$ac_ext
21864 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21865 echo "${ECHO_T}$ac_header_preproc" >&6; }
21867 # So? What about this header?
21868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21870 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21871 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21872 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21874 ac_header_preproc=yes
21877 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21878 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21879 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21880 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21881 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21882 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21883 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21884 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21885 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21887 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21888 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21892 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21893 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21894 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21895 echo $ECHO_N "(cached
) $ECHO_C" >&6
21897 eval "$as_ac_Header=\
$ac_header_preproc"
21899 ac_res=`eval echo '${'$as_ac_Header'}'`
21900 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21901 echo "${ECHO_T}$ac_res" >&6; }
21904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21905 cat >>confdefs.h <<_ACEOF
21906 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21911 for ac_header in kerberos/krb.h
21913 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21914 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21915 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21916 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21917 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21918 echo $ECHO_N "(cached
) $ECHO_C" >&6
21920 ac_res=`eval echo '${'$as_ac_Header'}'`
21921 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21922 echo "${ECHO_T}$ac_res" >&6; }
21924 # Is the header compilable?
21925 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21926 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21927 cat >conftest.$ac_ext <<_ACEOF
21930 cat confdefs.h >>conftest.$ac_ext
21931 cat >>conftest.$ac_ext <<_ACEOF
21932 /* end confdefs.h. */
21933 $ac_includes_default
21934 #include <$ac_header>
21936 rm -f conftest.$ac_objext
21937 if { (ac_try="$ac_compile"
21938 case "(($ac_try" in
21939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21940 *) ac_try_echo=$ac_try;;
21942 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21943 (eval "$ac_compile") 2>conftest.er1
21945 grep -v '^ *+' conftest.er1 >conftest.err
21947 cat conftest.err >&5
21948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21949 (exit $ac_status); } && {
21950 test -z "$ac_c_werror_flag" ||
21951 test ! -s conftest.err
21952 } && test -s conftest.$ac_objext; then
21953 ac_header_compiler=yes
21955 echo "$as_me: failed program was
:" >&5
21956 sed 's/^/| /' conftest.$ac_ext >&5
21958 ac_header_compiler=no
21961 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21962 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21963 echo "${ECHO_T}$ac_header_compiler" >&6; }
21965 # Is the header present?
21966 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21967 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21968 cat >conftest.$ac_ext <<_ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h. */
21974 #include <$ac_header>
21976 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21977 case "(($ac_try" in
21978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21979 *) ac_try_echo=$ac_try;;
21981 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21982 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21984 grep -v '^ *+' conftest.er1 >conftest.err
21986 cat conftest.err >&5
21987 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21988 (exit $ac_status); } >/dev/null && {
21989 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21990 test ! -s conftest.err
21992 ac_header_preproc=yes
21994 echo "$as_me: failed program was
:" >&5
21995 sed 's/^/| /' conftest.$ac_ext >&5
21997 ac_header_preproc=no
22000 rm -f conftest.err conftest.$ac_ext
22001 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22002 echo "${ECHO_T}$ac_header_preproc" >&6; }
22004 # So? What about this header?
22005 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22007 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22008 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22009 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22010 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22011 ac_header_preproc=yes
22014 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22015 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22016 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22017 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22018 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22019 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22020 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22021 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22022 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22023 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22024 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22025 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22029 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22030 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22031 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22032 echo $ECHO_N "(cached
) $ECHO_C" >&6
22034 eval "$as_ac_Header=\
$ac_header_preproc"
22036 ac_res=`eval echo '${'$as_ac_Header'}'`
22037 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22038 echo "${ECHO_T}$ac_res" >&6; }
22041 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22042 cat >>confdefs.h <<_ACEOF
22043 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22060 for ac_header in com_err.h
22062 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22063 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22064 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22065 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22066 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22067 echo $ECHO_N "(cached
) $ECHO_C" >&6
22069 ac_res=`eval echo '${'$as_ac_Header'}'`
22070 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22071 echo "${ECHO_T}$ac_res" >&6; }
22073 # Is the header compilable?
22074 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22075 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22076 cat >conftest.$ac_ext <<_ACEOF
22079 cat confdefs.h >>conftest.$ac_ext
22080 cat >>conftest.$ac_ext <<_ACEOF
22081 /* end confdefs.h. */
22082 $ac_includes_default
22083 #include <$ac_header>
22085 rm -f conftest.$ac_objext
22086 if { (ac_try="$ac_compile"
22087 case "(($ac_try" in
22088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22089 *) ac_try_echo=$ac_try;;
22091 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22092 (eval "$ac_compile") 2>conftest.er1
22094 grep -v '^ *+' conftest.er1 >conftest.err
22096 cat conftest.err >&5
22097 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22098 (exit $ac_status); } && {
22099 test -z "$ac_c_werror_flag" ||
22100 test ! -s conftest.err
22101 } && test -s conftest.$ac_objext; then
22102 ac_header_compiler=yes
22104 echo "$as_me: failed program was
:" >&5
22105 sed 's/^/| /' conftest.$ac_ext >&5
22107 ac_header_compiler=no
22110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22111 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22112 echo "${ECHO_T}$ac_header_compiler" >&6; }
22114 # Is the header present?
22115 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22116 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22117 cat >conftest.$ac_ext <<_ACEOF
22120 cat confdefs.h >>conftest.$ac_ext
22121 cat >>conftest.$ac_ext <<_ACEOF
22122 /* end confdefs.h. */
22123 #include <$ac_header>
22125 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22126 case "(($ac_try" in
22127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22128 *) ac_try_echo=$ac_try;;
22130 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22131 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22133 grep -v '^ *+' conftest.er1 >conftest.err
22135 cat conftest.err >&5
22136 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22137 (exit $ac_status); } >/dev/null && {
22138 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22139 test ! -s conftest.err
22141 ac_header_preproc=yes
22143 echo "$as_me: failed program was
:" >&5
22144 sed 's/^/| /' conftest.$ac_ext >&5
22146 ac_header_preproc=no
22149 rm -f conftest.err conftest.$ac_ext
22150 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22151 echo "${ECHO_T}$ac_header_preproc" >&6; }
22153 # So? What about this header?
22154 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22156 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22157 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22158 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22159 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22160 ac_header_preproc=yes
22163 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22164 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22165 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22166 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22167 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22168 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22169 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22170 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22171 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22172 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22173 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22174 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22178 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22179 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22180 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22181 echo $ECHO_N "(cached
) $ECHO_C" >&6
22183 eval "$as_ac_Header=\
$ac_header_preproc"
22185 ac_res=`eval echo '${'$as_ac_Header'}'`
22186 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22187 echo "${ECHO_T}$ac_res" >&6; }
22190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22191 cat >>confdefs.h <<_ACEOF
22192 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22201 # Solaris requires -lintl if you want strerror (which calls dgettext)
22202 # to return localized messages.
22204 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
22205 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
22206 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22207 echo $ECHO_N "(cached
) $ECHO_C" >&6
22209 ac_check_lib_save_LIBS=$LIBS
22210 LIBS="-lintl $LIBS"
22211 cat >conftest.$ac_ext <<_ACEOF
22214 cat confdefs.h >>conftest.$ac_ext
22215 cat >>conftest.$ac_ext <<_ACEOF
22216 /* end confdefs.h. */
22218 /* Override any GCC internal prototype to avoid an error.
22219 Use char because int might match the return type of a GCC
22220 builtin and then its argument prototype would still apply. */
22228 return dgettext ();
22233 rm -f conftest.$ac_objext conftest$ac_exeext
22234 if { (ac_try="$ac_link"
22235 case "(($ac_try" in
22236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22237 *) ac_try_echo=$ac_try;;
22239 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22240 (eval "$ac_link") 2>conftest.er1
22242 grep -v '^ *+' conftest.er1 >conftest.err
22244 cat conftest.err >&5
22245 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22246 (exit $ac_status); } && {
22247 test -z "$ac_c_werror_flag" ||
22248 test ! -s conftest.err
22249 } && test -s conftest$ac_exeext &&
22250 $as_test_x conftest$ac_exeext; then
22251 ac_cv_lib_intl_dgettext=yes
22253 echo "$as_me: failed program was
:" >&5
22254 sed 's/^/| /' conftest.$ac_ext >&5
22256 ac_cv_lib_intl_dgettext=no
22259 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22260 conftest$ac_exeext conftest.$ac_ext
22261 LIBS=$ac_check_lib_save_LIBS
22263 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22264 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22265 if test $ac_cv_lib_intl_dgettext = yes; then
22266 cat >>confdefs.h <<_ACEOF
22267 #define HAVE_LIBINTL 1
22270 LIBS="-lintl $LIBS"
22275 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22276 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22277 if test "${emacs_cv_localtime_cache+set}" = set; then
22278 echo $ECHO_N "(cached
) $ECHO_C" >&6
22280 if test x$ac_cv_func_tzset = xyes; then
22281 if test "$cross_compiling" = yes; then
22282 # If we have tzset, assume the worst when cross-compiling.
22283 emacs_cv_localtime_cache=yes
22285 cat >conftest.$ac_ext <<_ACEOF
22288 cat confdefs.h >>conftest.$ac_ext
22289 cat >>conftest.$ac_ext <<_ACEOF
22290 /* end confdefs.h. */
22292 extern char **environ;
22296 for (to = from = environ; (*to = *from); from++)
22297 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22300 char TZ_GMT0[] = "TZ
=GMT0
";
22301 char TZ_PST8[] = "TZ
=PST8
";
22304 time_t now = time ((time_t *) 0);
22305 int hour_GMT0, hour_unset;
22306 if (putenv (TZ_GMT0) != 0)
22308 hour_GMT0 = localtime (&now)->tm_hour;
22310 hour_unset = localtime (&now)->tm_hour;
22311 if (putenv (TZ_PST8) != 0)
22313 if (localtime (&now)->tm_hour == hour_GMT0)
22316 if (localtime (&now)->tm_hour != hour_unset)
22321 rm -f conftest$ac_exeext
22322 if { (ac_try="$ac_link"
22323 case "(($ac_try" in
22324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22325 *) ac_try_echo=$ac_try;;
22327 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22328 (eval "$ac_link") 2>&5
22330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22331 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22332 { (case "(($ac_try" in
22333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22334 *) ac_try_echo=$ac_try;;
22336 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22337 (eval "$ac_try") 2>&5
22339 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22340 (exit $ac_status); }; }; then
22341 emacs_cv_localtime_cache=no
22343 echo "$as_me: program exited with status
$ac_status" >&5
22344 echo "$as_me: failed program was
:" >&5
22345 sed 's/^/| /' conftest.$ac_ext >&5
22347 ( exit $ac_status )
22348 emacs_cv_localtime_cache=yes
22350 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22355 # If we lack tzset, report that localtime does not cache TZ,
22356 # since we can't invalidate the cache if we don't have tzset.
22357 emacs_cv_localtime_cache=no
22360 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22361 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22362 if test $emacs_cv_localtime_cache = yes; then
22364 cat >>confdefs.h <<\_ACEOF
22365 #define LOCALTIME_CACHE 1
22370 if test "x
$HAVE_TIMEVAL" = xyes; then
22372 for ac_func in gettimeofday
22374 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22375 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22376 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22377 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22378 echo $ECHO_N "(cached
) $ECHO_C" >&6
22380 cat >conftest.$ac_ext <<_ACEOF
22383 cat confdefs.h >>conftest.$ac_ext
22384 cat >>conftest.$ac_ext <<_ACEOF
22385 /* end confdefs.h. */
22386 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22388 #define $ac_func innocuous_$ac_func
22390 /* System header to define __stub macros and hopefully few prototypes,
22391 which can conflict with char $ac_func (); below.
22392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22393 <limits.h> exists even on freestanding compilers. */
22396 # include <limits.h>
22398 # include <assert.h>
22403 /* Override any GCC internal prototype to avoid an error.
22404 Use char because int might match the return type of a GCC
22405 builtin and then its argument prototype would still apply. */
22410 /* The GNU C library defines this for functions which it implements
22411 to always fail with ENOSYS. Some functions are actually named
22412 something starting with __ and the normal name is an alias. */
22413 #if defined __stub_$ac_func || defined __stub___$ac_func
22420 return $ac_func ();
22425 rm -f conftest.$ac_objext conftest$ac_exeext
22426 if { (ac_try="$ac_link"
22427 case "(($ac_try" in
22428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22429 *) ac_try_echo=$ac_try;;
22431 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22432 (eval "$ac_link") 2>conftest.er1
22434 grep -v '^ *+' conftest.er1 >conftest.err
22436 cat conftest.err >&5
22437 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22438 (exit $ac_status); } && {
22439 test -z "$ac_c_werror_flag" ||
22440 test ! -s conftest.err
22441 } && test -s conftest$ac_exeext &&
22442 $as_test_x conftest$ac_exeext; then
22443 eval "$as_ac_var=yes"
22445 echo "$as_me: failed program was
:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22448 eval "$as_ac_var=no
"
22451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22452 conftest$ac_exeext conftest.$ac_ext
22454 ac_res=`eval echo '${'$as_ac_var'}'`
22455 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22456 echo "${ECHO_T}$ac_res" >&6; }
22457 if test `eval echo '${'$as_ac_var'}'` = yes; then
22458 cat >>confdefs.h <<_ACEOF
22459 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22465 if test $ac_cv_func_gettimeofday = yes; then
22466 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22467 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22468 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22469 echo $ECHO_N "(cached
) $ECHO_C" >&6
22471 cat >conftest.$ac_ext <<_ACEOF
22474 cat confdefs.h >>conftest.$ac_ext
22475 cat >>conftest.$ac_ext <<_ACEOF
22476 /* end confdefs.h. */
22478 #ifdef TIME_WITH_SYS_TIME
22479 #include <sys/time.h>
22482 #ifdef HAVE_SYS_TIME_H
22483 #include <sys/time.h>
22491 struct timeval time;
22492 gettimeofday (&time, 0);
22497 rm -f conftest.$ac_objext
22498 if { (ac_try="$ac_compile"
22499 case "(($ac_try" in
22500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22501 *) ac_try_echo=$ac_try;;
22503 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22504 (eval "$ac_compile") 2>conftest.er1
22506 grep -v '^ *+' conftest.er1 >conftest.err
22508 cat conftest.err >&5
22509 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22510 (exit $ac_status); } && {
22511 test -z "$ac_c_werror_flag" ||
22512 test ! -s conftest.err
22513 } && test -s conftest.$ac_objext; then
22514 emacs_cv_gettimeofday_two_arguments=yes
22516 echo "$as_me: failed program was
:" >&5
22517 sed 's/^/| /' conftest.$ac_ext >&5
22519 emacs_cv_gettimeofday_two_arguments=no
22522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22524 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22525 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22526 if test $emacs_cv_gettimeofday_two_arguments = no; then
22528 cat >>confdefs.h <<\_ACEOF
22529 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22537 { echo "$as_me:$LINENO: checking
for socket
" >&5
22538 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22539 if test "${ac_cv_func_socket+set}" = set; then
22540 echo $ECHO_N "(cached
) $ECHO_C" >&6
22542 cat >conftest.$ac_ext <<_ACEOF
22545 cat confdefs.h >>conftest.$ac_ext
22546 cat >>conftest.$ac_ext <<_ACEOF
22547 /* end confdefs.h. */
22548 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22550 #define socket innocuous_socket
22552 /* System header to define __stub macros and hopefully few prototypes,
22553 which can conflict with char socket (); below.
22554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22555 <limits.h> exists even on freestanding compilers. */
22558 # include <limits.h>
22560 # include <assert.h>
22565 /* Override any GCC internal prototype to avoid an error.
22566 Use char because int might match the return type of a GCC
22567 builtin and then its argument prototype would still apply. */
22572 /* The GNU C library defines this for functions which it implements
22573 to always fail with ENOSYS. Some functions are actually named
22574 something starting with __ and the normal name is an alias. */
22575 #if defined __stub_socket || defined __stub___socket
22587 rm -f conftest.$ac_objext conftest$ac_exeext
22588 if { (ac_try="$ac_link"
22589 case "(($ac_try" in
22590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22591 *) ac_try_echo=$ac_try;;
22593 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22594 (eval "$ac_link") 2>conftest.er1
22596 grep -v '^ *+' conftest.er1 >conftest.err
22598 cat conftest.err >&5
22599 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22600 (exit $ac_status); } && {
22601 test -z "$ac_c_werror_flag" ||
22602 test ! -s conftest.err
22603 } && test -s conftest$ac_exeext &&
22604 $as_test_x conftest$ac_exeext; then
22605 ac_cv_func_socket=yes
22607 echo "$as_me: failed program was
:" >&5
22608 sed 's/^/| /' conftest.$ac_ext >&5
22610 ac_cv_func_socket=no
22613 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22614 conftest$ac_exeext conftest.$ac_ext
22616 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22617 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22618 if test $ac_cv_func_socket = yes; then
22624 if test $ok_so_far = yes; then
22625 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22626 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22627 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22628 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22629 echo $ECHO_N "(cached
) $ECHO_C" >&6
22631 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22632 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22634 # Is the header compilable?
22635 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22636 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22637 cat >conftest.$ac_ext <<_ACEOF
22640 cat confdefs.h >>conftest.$ac_ext
22641 cat >>conftest.$ac_ext <<_ACEOF
22642 /* end confdefs.h. */
22643 $ac_includes_default
22644 #include <netinet/in.h>
22646 rm -f conftest.$ac_objext
22647 if { (ac_try="$ac_compile"
22648 case "(($ac_try" in
22649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22650 *) ac_try_echo=$ac_try;;
22652 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22653 (eval "$ac_compile") 2>conftest.er1
22655 grep -v '^ *+' conftest.er1 >conftest.err
22657 cat conftest.err >&5
22658 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22659 (exit $ac_status); } && {
22660 test -z "$ac_c_werror_flag" ||
22661 test ! -s conftest.err
22662 } && test -s conftest.$ac_objext; then
22663 ac_header_compiler=yes
22665 echo "$as_me: failed program was
:" >&5
22666 sed 's/^/| /' conftest.$ac_ext >&5
22668 ac_header_compiler=no
22671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22672 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22673 echo "${ECHO_T}$ac_header_compiler" >&6; }
22675 # Is the header present?
22676 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22677 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22678 cat >conftest.$ac_ext <<_ACEOF
22681 cat confdefs.h >>conftest.$ac_ext
22682 cat >>conftest.$ac_ext <<_ACEOF
22683 /* end confdefs.h. */
22684 #include <netinet/in.h>
22686 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22687 case "(($ac_try" in
22688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22689 *) ac_try_echo=$ac_try;;
22691 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22692 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22694 grep -v '^ *+' conftest.er1 >conftest.err
22696 cat conftest.err >&5
22697 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22698 (exit $ac_status); } >/dev/null && {
22699 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22700 test ! -s conftest.err
22702 ac_header_preproc=yes
22704 echo "$as_me: failed program was
:" >&5
22705 sed 's/^/| /' conftest.$ac_ext >&5
22707 ac_header_preproc=no
22710 rm -f conftest.err conftest.$ac_ext
22711 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22712 echo "${ECHO_T}$ac_header_preproc" >&6; }
22714 # So? What about this header?
22715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22717 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22718 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22719 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22720 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22721 ac_header_preproc=yes
22724 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22725 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22726 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22727 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22728 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22729 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22730 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22731 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22732 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22733 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22734 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22735 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22739 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22740 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22741 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22742 echo $ECHO_N "(cached
) $ECHO_C" >&6
22744 ac_cv_header_netinet_in_h=$ac_header_preproc
22746 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22747 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22750 if test $ac_cv_header_netinet_in_h = yes; then
22758 if test $ok_so_far = yes; then
22759 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22760 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22761 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22762 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22763 echo $ECHO_N "(cached
) $ECHO_C" >&6
22765 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22766 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22768 # Is the header compilable?
22769 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22770 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22771 cat >conftest.$ac_ext <<_ACEOF
22774 cat confdefs.h >>conftest.$ac_ext
22775 cat >>conftest.$ac_ext <<_ACEOF
22776 /* end confdefs.h. */
22777 $ac_includes_default
22778 #include <arpa/inet.h>
22780 rm -f conftest.$ac_objext
22781 if { (ac_try="$ac_compile"
22782 case "(($ac_try" in
22783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22784 *) ac_try_echo=$ac_try;;
22786 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22787 (eval "$ac_compile") 2>conftest.er1
22789 grep -v '^ *+' conftest.er1 >conftest.err
22791 cat conftest.err >&5
22792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22793 (exit $ac_status); } && {
22794 test -z "$ac_c_werror_flag" ||
22795 test ! -s conftest.err
22796 } && test -s conftest.$ac_objext; then
22797 ac_header_compiler=yes
22799 echo "$as_me: failed program was
:" >&5
22800 sed 's/^/| /' conftest.$ac_ext >&5
22802 ac_header_compiler=no
22805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22806 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22807 echo "${ECHO_T}$ac_header_compiler" >&6; }
22809 # Is the header present?
22810 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22811 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22812 cat >conftest.$ac_ext <<_ACEOF
22815 cat confdefs.h >>conftest.$ac_ext
22816 cat >>conftest.$ac_ext <<_ACEOF
22817 /* end confdefs.h. */
22818 #include <arpa/inet.h>
22820 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22821 case "(($ac_try" in
22822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22823 *) ac_try_echo=$ac_try;;
22825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22826 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22828 grep -v '^ *+' conftest.er1 >conftest.err
22830 cat conftest.err >&5
22831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22832 (exit $ac_status); } >/dev/null && {
22833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22834 test ! -s conftest.err
22836 ac_header_preproc=yes
22838 echo "$as_me: failed program was
:" >&5
22839 sed 's/^/| /' conftest.$ac_ext >&5
22841 ac_header_preproc=no
22844 rm -f conftest.err conftest.$ac_ext
22845 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22846 echo "${ECHO_T}$ac_header_preproc" >&6; }
22848 # So? What about this header?
22849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22851 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22852 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22853 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22854 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22855 ac_header_preproc=yes
22858 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22859 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22860 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22861 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22862 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22863 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22864 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22865 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22866 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22867 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22868 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22869 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22873 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22874 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22875 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22876 echo $ECHO_N "(cached
) $ECHO_C" >&6
22878 ac_cv_header_arpa_inet_h=$ac_header_preproc
22880 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22881 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22884 if test $ac_cv_header_arpa_inet_h = yes; then
22892 if test $ok_so_far = yes; then
22894 cat >>confdefs.h <<\_ACEOF
22895 #define HAVE_INET_SOCKETS 1
22901 for ac_header in sys/ioctl.h
22903 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22904 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22905 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22906 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22907 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22908 echo $ECHO_N "(cached
) $ECHO_C" >&6
22910 ac_res=`eval echo '${'$as_ac_Header'}'`
22911 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22912 echo "${ECHO_T}$ac_res" >&6; }
22914 # Is the header compilable?
22915 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22916 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22917 cat >conftest.$ac_ext <<_ACEOF
22920 cat confdefs.h >>conftest.$ac_ext
22921 cat >>conftest.$ac_ext <<_ACEOF
22922 /* end confdefs.h. */
22923 $ac_includes_default
22924 #include <$ac_header>
22926 rm -f conftest.$ac_objext
22927 if { (ac_try="$ac_compile"
22928 case "(($ac_try" in
22929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22930 *) ac_try_echo=$ac_try;;
22932 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22933 (eval "$ac_compile") 2>conftest.er1
22935 grep -v '^ *+' conftest.er1 >conftest.err
22937 cat conftest.err >&5
22938 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22939 (exit $ac_status); } && {
22940 test -z "$ac_c_werror_flag" ||
22941 test ! -s conftest.err
22942 } && test -s conftest.$ac_objext; then
22943 ac_header_compiler=yes
22945 echo "$as_me: failed program was
:" >&5
22946 sed 's/^/| /' conftest.$ac_ext >&5
22948 ac_header_compiler=no
22951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22952 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22953 echo "${ECHO_T}$ac_header_compiler" >&6; }
22955 # Is the header present?
22956 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22957 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22958 cat >conftest.$ac_ext <<_ACEOF
22961 cat confdefs.h >>conftest.$ac_ext
22962 cat >>conftest.$ac_ext <<_ACEOF
22963 /* end confdefs.h. */
22964 #include <$ac_header>
22966 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22967 case "(($ac_try" in
22968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22969 *) ac_try_echo=$ac_try;;
22971 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22972 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22974 grep -v '^ *+' conftest.er1 >conftest.err
22976 cat conftest.err >&5
22977 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22978 (exit $ac_status); } >/dev/null && {
22979 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22980 test ! -s conftest.err
22982 ac_header_preproc=yes
22984 echo "$as_me: failed program was
:" >&5
22985 sed 's/^/| /' conftest.$ac_ext >&5
22987 ac_header_preproc=no
22990 rm -f conftest.err conftest.$ac_ext
22991 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22992 echo "${ECHO_T}$ac_header_preproc" >&6; }
22994 # So? What about this header?
22995 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22997 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22998 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22999 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23000 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23001 ac_header_preproc=yes
23004 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23005 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23006 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23007 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23008 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23009 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23010 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23011 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23012 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23013 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23014 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23015 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23019 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23020 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23021 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23022 echo $ECHO_N "(cached
) $ECHO_C" >&6
23024 eval "$as_ac_Header=\
$ac_header_preproc"
23026 ac_res=`eval echo '${'$as_ac_Header'}'`
23027 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23028 echo "${ECHO_T}$ac_res" >&6; }
23031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23032 cat >>confdefs.h <<_ACEOF
23033 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23041 if test -f /usr/lpp/X11/bin/smt.exp; then
23043 cat >>confdefs.h <<\_ACEOF
23044 #define HAVE_AIX_SMT_EXP 1
23049 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
23050 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
23051 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23052 { echo "$as_me:$LINENO: result
: yes" >&5
23053 echo "${ECHO_T}yes" >&6; }
23055 cat >>confdefs.h <<\_ACEOF
23056 #define HAVE_DEV_PTMX 1
23060 { echo "$as_me:$LINENO: result
: no
" >&5
23061 echo "${ECHO_T}no
" >&6; }
23064 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
23065 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
23066 if test "${ac_cv_type_pid_t+set}" = set; then
23067 echo $ECHO_N "(cached
) $ECHO_C" >&6
23069 cat >conftest.$ac_ext <<_ACEOF
23072 cat confdefs.h >>conftest.$ac_ext
23073 cat >>conftest.$ac_ext <<_ACEOF
23074 /* end confdefs.h. */
23075 $ac_includes_default
23076 typedef pid_t ac__type_new_;
23080 if ((ac__type_new_ *) 0)
23082 if (sizeof (ac__type_new_))
23088 rm -f conftest.$ac_objext
23089 if { (ac_try="$ac_compile"
23090 case "(($ac_try" in
23091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23092 *) ac_try_echo=$ac_try;;
23094 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23095 (eval "$ac_compile") 2>conftest.er1
23097 grep -v '^ *+' conftest.er1 >conftest.err
23099 cat conftest.err >&5
23100 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23101 (exit $ac_status); } && {
23102 test -z "$ac_c_werror_flag" ||
23103 test ! -s conftest.err
23104 } && test -s conftest.$ac_objext; then
23105 ac_cv_type_pid_t=yes
23107 echo "$as_me: failed program was
:" >&5
23108 sed 's/^/| /' conftest.$ac_ext >&5
23110 ac_cv_type_pid_t=no
23113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23115 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
23116 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23117 if test $ac_cv_type_pid_t = yes; then
23121 cat >>confdefs.h <<_ACEOF
23128 for ac_header in vfork.h
23130 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
23131 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23132 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23133 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23134 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23135 echo $ECHO_N "(cached
) $ECHO_C" >&6
23137 ac_res=`eval echo '${'$as_ac_Header'}'`
23138 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23139 echo "${ECHO_T}$ac_res" >&6; }
23141 # Is the header compilable?
23142 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
23143 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
23144 cat >conftest.$ac_ext <<_ACEOF
23147 cat confdefs.h >>conftest.$ac_ext
23148 cat >>conftest.$ac_ext <<_ACEOF
23149 /* end confdefs.h. */
23150 $ac_includes_default
23151 #include <$ac_header>
23153 rm -f conftest.$ac_objext
23154 if { (ac_try="$ac_compile"
23155 case "(($ac_try" in
23156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23157 *) ac_try_echo=$ac_try;;
23159 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23160 (eval "$ac_compile") 2>conftest.er1
23162 grep -v '^ *+' conftest.er1 >conftest.err
23164 cat conftest.err >&5
23165 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23166 (exit $ac_status); } && {
23167 test -z "$ac_c_werror_flag" ||
23168 test ! -s conftest.err
23169 } && test -s conftest.$ac_objext; then
23170 ac_header_compiler=yes
23172 echo "$as_me: failed program was
:" >&5
23173 sed 's/^/| /' conftest.$ac_ext >&5
23175 ac_header_compiler=no
23178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23179 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
23180 echo "${ECHO_T}$ac_header_compiler" >&6; }
23182 # Is the header present?
23183 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
23184 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
23185 cat >conftest.$ac_ext <<_ACEOF
23188 cat confdefs.h >>conftest.$ac_ext
23189 cat >>conftest.$ac_ext <<_ACEOF
23190 /* end confdefs.h. */
23191 #include <$ac_header>
23193 if { (ac_try="$ac_cpp conftest.
$ac_ext"
23194 case "(($ac_try" in
23195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23196 *) ac_try_echo=$ac_try;;
23198 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23199 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
23201 grep -v '^ *+' conftest.er1 >conftest.err
23203 cat conftest.err >&5
23204 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23205 (exit $ac_status); } >/dev/null && {
23206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23207 test ! -s conftest.err
23209 ac_header_preproc=yes
23211 echo "$as_me: failed program was
:" >&5
23212 sed 's/^/| /' conftest.$ac_ext >&5
23214 ac_header_preproc=no
23217 rm -f conftest.err conftest.$ac_ext
23218 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
23219 echo "${ECHO_T}$ac_header_preproc" >&6; }
23221 # So? What about this header?
23222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23224 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
23225 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
23226 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
23227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
23228 ac_header_preproc=yes
23231 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
23232 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
23233 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
23234 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
23235 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
23236 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
23237 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
23238 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
23239 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
23240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23241 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23242 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23246 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23247 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23248 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23249 echo $ECHO_N "(cached
) $ECHO_C" >&6
23251 eval "$as_ac_Header=\
$ac_header_preproc"
23253 ac_res=`eval echo '${'$as_ac_Header'}'`
23254 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23255 echo "${ECHO_T}$ac_res" >&6; }
23258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23259 cat >>confdefs.h <<_ACEOF
23260 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23269 for ac_func in fork vfork
23271 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23272 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23273 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23274 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23275 echo $ECHO_N "(cached
) $ECHO_C" >&6
23277 cat >conftest.$ac_ext <<_ACEOF
23280 cat confdefs.h >>conftest.$ac_ext
23281 cat >>conftest.$ac_ext <<_ACEOF
23282 /* end confdefs.h. */
23283 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23284 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23285 #define $ac_func innocuous_$ac_func
23287 /* System header to define __stub macros and hopefully few prototypes,
23288 which can conflict with char $ac_func (); below.
23289 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23290 <limits.h> exists even on freestanding compilers. */
23293 # include <limits.h>
23295 # include <assert.h>
23300 /* Override any GCC internal prototype to avoid an error.
23301 Use char because int might match the return type of a GCC
23302 builtin and then its argument prototype would still apply. */
23307 /* The GNU C library defines this for functions which it implements
23308 to always fail with ENOSYS. Some functions are actually named
23309 something starting with __ and the normal name is an alias. */
23310 #if defined __stub_$ac_func || defined __stub___$ac_func
23317 return $ac_func ();
23322 rm -f conftest.$ac_objext conftest$ac_exeext
23323 if { (ac_try="$ac_link"
23324 case "(($ac_try" in
23325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23326 *) ac_try_echo=$ac_try;;
23328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23329 (eval "$ac_link") 2>conftest.er1
23331 grep -v '^ *+' conftest.er1 >conftest.err
23333 cat conftest.err >&5
23334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23335 (exit $ac_status); } && {
23336 test -z "$ac_c_werror_flag" ||
23337 test ! -s conftest.err
23338 } && test -s conftest$ac_exeext &&
23339 $as_test_x conftest$ac_exeext; then
23340 eval "$as_ac_var=yes"
23342 echo "$as_me: failed program was
:" >&5
23343 sed 's/^/| /' conftest.$ac_ext >&5
23345 eval "$as_ac_var=no
"
23348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23349 conftest$ac_exeext conftest.$ac_ext
23351 ac_res=`eval echo '${'$as_ac_var'}'`
23352 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23353 echo "${ECHO_T}$ac_res" >&6; }
23354 if test `eval echo '${'$as_ac_var'}'` = yes; then
23355 cat >>confdefs.h <<_ACEOF
23356 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23362 if test "x
$ac_cv_func_fork" = xyes; then
23363 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23364 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23365 if test "${ac_cv_func_fork_works+set}" = set; then
23366 echo $ECHO_N "(cached
) $ECHO_C" >&6
23368 if test "$cross_compiling" = yes; then
23369 ac_cv_func_fork_works=cross
23371 cat >conftest.$ac_ext <<_ACEOF
23374 cat confdefs.h >>conftest.$ac_ext
23375 cat >>conftest.$ac_ext <<_ACEOF
23376 /* end confdefs.h. */
23377 $ac_includes_default
23382 /* By Ruediger Kuhlmann. */
23383 return fork () < 0;
23389 rm -f conftest$ac_exeext
23390 if { (ac_try="$ac_link"
23391 case "(($ac_try" in
23392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23393 *) ac_try_echo=$ac_try;;
23395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23396 (eval "$ac_link") 2>&5
23398 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23399 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23400 { (case "(($ac_try" in
23401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23402 *) ac_try_echo=$ac_try;;
23404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23405 (eval "$ac_try") 2>&5
23407 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23408 (exit $ac_status); }; }; then
23409 ac_cv_func_fork_works=yes
23411 echo "$as_me: program exited with status
$ac_status" >&5
23412 echo "$as_me: failed program was
:" >&5
23413 sed 's/^/| /' conftest.$ac_ext >&5
23415 ( exit $ac_status )
23416 ac_cv_func_fork_works=no
23418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23423 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23424 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23427 ac_cv_func_fork_works=$ac_cv_func_fork
23429 if test "x
$ac_cv_func_fork_works" = xcross; then
23431 *-*-amigaos* | *-*-msdosdjgpp*)
23432 # Override, as these systems have only a dummy fork() stub
23433 ac_cv_func_fork_works=no
23436 ac_cv_func_fork_works=yes
23439 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23440 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23442 ac_cv_func_vfork_works=$ac_cv_func_vfork
23443 if test "x
$ac_cv_func_vfork" = xyes; then
23444 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23445 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23446 if test "${ac_cv_func_vfork_works+set}" = set; then
23447 echo $ECHO_N "(cached
) $ECHO_C" >&6
23449 if test "$cross_compiling" = yes; then
23450 ac_cv_func_vfork_works=cross
23452 cat >conftest.$ac_ext <<_ACEOF
23455 cat confdefs.h >>conftest.$ac_ext
23456 cat >>conftest.$ac_ext <<_ACEOF
23457 /* end confdefs.h. */
23458 /* Thanks to Paul Eggert for this test. */
23459 $ac_includes_default
23460 #include <sys/wait.h>
23461 #ifdef HAVE_VFORK_H
23462 # include <vfork.h>
23464 /* On some sparc systems, changes by the child to local and incoming
23465 argument registers are propagated back to the parent. The compiler
23466 is told about this with #include <vfork.h>, but some compilers
23467 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23468 static variable whose address is put into a register that is
23469 clobbered by the vfork. */
23472 sparc_address_test (int arg)
23474 sparc_address_test (arg) int arg;
23477 static pid_t child;
23495 pid_t parent = getpid ();
23498 sparc_address_test (0);
23503 /* Here is another test for sparc vfork register problems. This
23504 test uses lots of local variables, at least as many local
23505 variables as main has allocated so far including compiler
23506 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23507 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23508 reuse the register of parent for one of the local variables,
23509 since it will think that parent can't possibly be used any more
23510 in this routine. Assigning to the local variable will thus
23511 munge parent in the parent process. */
23513 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23514 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23515 /* Convince the compiler that p..p7 are live; otherwise, it might
23516 use the same hardware register for all 8 local variables. */
23517 if (p != p1 || p != p2 || p != p3 || p != p4
23518 || p != p5 || p != p6 || p != p7)
23521 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23522 from child file descriptors. If the child closes a descriptor
23523 before it execs or exits, this munges the parent's descriptor
23524 as well. Test for this by closing stdout in the child. */
23525 _exit(close(fileno(stdout)) != 0);
23530 while (wait(&status) != child)
23533 /* Was there some problem with vforking? */
23536 /* Did the child fail? (This shouldn't happen.) */
23539 /* Did the vfork/compiler bug occur? */
23540 || parent != getpid()
23542 /* Did the file descriptor bug occur? */
23543 || fstat(fileno(stdout), &st) != 0
23548 rm -f conftest$ac_exeext
23549 if { (ac_try="$ac_link"
23550 case "(($ac_try" in
23551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23552 *) ac_try_echo=$ac_try;;
23554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23555 (eval "$ac_link") 2>&5
23557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23558 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23559 { (case "(($ac_try" in
23560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23561 *) ac_try_echo=$ac_try;;
23563 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23564 (eval "$ac_try") 2>&5
23566 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23567 (exit $ac_status); }; }; then
23568 ac_cv_func_vfork_works=yes
23570 echo "$as_me: program exited with status
$ac_status" >&5
23571 echo "$as_me: failed program was
:" >&5
23572 sed 's/^/| /' conftest.$ac_ext >&5
23574 ( exit $ac_status )
23575 ac_cv_func_vfork_works=no
23577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23582 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23583 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23586 if test "x
$ac_cv_func_fork_works" = xcross; then
23587 ac_cv_func_vfork_works=$ac_cv_func_vfork
23588 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23589 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23592 if test "x
$ac_cv_func_vfork_works" = xyes; then
23594 cat >>confdefs.h <<\_ACEOF
23595 #define HAVE_WORKING_VFORK 1
23600 cat >>confdefs.h <<\_ACEOF
23605 if test "x
$ac_cv_func_fork_works" = xyes; then
23607 cat >>confdefs.h <<\_ACEOF
23608 #define HAVE_WORKING_FORK 1
23614 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23615 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23616 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23617 echo $ECHO_N "(cached
) $ECHO_C" >&6
23619 cat >conftest.$ac_ext <<_ACEOF
23622 cat confdefs.h >>conftest.$ac_ext
23623 cat >>conftest.$ac_ext <<_ACEOF
23624 /* end confdefs.h. */
23625 #include <langinfo.h>
23629 char* cs = nl_langinfo(CODESET);
23634 rm -f conftest.$ac_objext conftest$ac_exeext
23635 if { (ac_try="$ac_link"
23636 case "(($ac_try" in
23637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23638 *) ac_try_echo=$ac_try;;
23640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23641 (eval "$ac_link") 2>conftest.er1
23643 grep -v '^ *+' conftest.er1 >conftest.err
23645 cat conftest.err >&5
23646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23647 (exit $ac_status); } && {
23648 test -z "$ac_c_werror_flag" ||
23649 test ! -s conftest.err
23650 } && test -s conftest$ac_exeext &&
23651 $as_test_x conftest$ac_exeext; then
23652 emacs_cv_langinfo_codeset=yes
23654 echo "$as_me: failed program was
:" >&5
23655 sed 's/^/| /' conftest.$ac_ext >&5
23657 emacs_cv_langinfo_codeset=no
23660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23661 conftest$ac_exeext conftest.$ac_ext
23664 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23665 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23666 if test $emacs_cv_langinfo_codeset = yes; then
23668 cat >>confdefs.h <<\_ACEOF
23669 #define HAVE_LANGINFO_CODESET 1
23674 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23675 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23676 if test "${ac_cv_type_size_t+set}" = set; then
23677 echo $ECHO_N "(cached
) $ECHO_C" >&6
23679 cat >conftest.$ac_ext <<_ACEOF
23682 cat confdefs.h >>conftest.$ac_ext
23683 cat >>conftest.$ac_ext <<_ACEOF
23684 /* end confdefs.h. */
23685 $ac_includes_default
23686 typedef size_t ac__type_new_;
23690 if ((ac__type_new_ *) 0)
23692 if (sizeof (ac__type_new_))
23698 rm -f conftest.$ac_objext
23699 if { (ac_try="$ac_compile"
23700 case "(($ac_try" in
23701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23702 *) ac_try_echo=$ac_try;;
23704 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23705 (eval "$ac_compile") 2>conftest.er1
23707 grep -v '^ *+' conftest.er1 >conftest.err
23709 cat conftest.err >&5
23710 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23711 (exit $ac_status); } && {
23712 test -z "$ac_c_werror_flag" ||
23713 test ! -s conftest.err
23714 } && test -s conftest.$ac_objext; then
23715 ac_cv_type_size_t=yes
23717 echo "$as_me: failed program was
:" >&5
23718 sed 's/^/| /' conftest.$ac_ext >&5
23720 ac_cv_type_size_t=no
23723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23725 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23726 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23727 if test $ac_cv_type_size_t = yes; then
23729 cat >>confdefs.h <<_ACEOF
23730 #define HAVE_SIZE_T 1
23737 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23738 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23739 if test "${ac_cv_type_mbstate_t+set}" = set; then
23740 echo $ECHO_N "(cached
) $ECHO_C" >&6
23742 cat >conftest.$ac_ext <<_ACEOF
23745 cat confdefs.h >>conftest.$ac_ext
23746 cat >>conftest.$ac_ext <<_ACEOF
23747 /* end confdefs.h. */
23748 $ac_includes_default
23749 # include <wchar.h>
23753 mbstate_t x; return sizeof x;
23758 rm -f conftest.$ac_objext
23759 if { (ac_try="$ac_compile"
23760 case "(($ac_try" in
23761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23762 *) ac_try_echo=$ac_try;;
23764 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23765 (eval "$ac_compile") 2>conftest.er1
23767 grep -v '^ *+' conftest.er1 >conftest.err
23769 cat conftest.err >&5
23770 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23771 (exit $ac_status); } && {
23772 test -z "$ac_c_werror_flag" ||
23773 test ! -s conftest.err
23774 } && test -s conftest.$ac_objext; then
23775 ac_cv_type_mbstate_t=yes
23777 echo "$as_me: failed program was
:" >&5
23778 sed 's/^/| /' conftest.$ac_ext >&5
23780 ac_cv_type_mbstate_t=no
23783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23785 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23786 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23787 if test $ac_cv_type_mbstate_t = yes; then
23789 cat >>confdefs.h <<\_ACEOF
23790 #define HAVE_MBSTATE_T 1
23795 cat >>confdefs.h <<\_ACEOF
23796 #define mbstate_t int
23801 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23802 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23803 if test "${emacs_cv_c_restrict+set}" = set; then
23804 echo $ECHO_N "(cached
) $ECHO_C" >&6
23806 cat >conftest.$ac_ext <<_ACEOF
23809 cat confdefs.h >>conftest.$ac_ext
23810 cat >>conftest.$ac_ext <<_ACEOF
23811 /* end confdefs.h. */
23812 void fred (int *restrict x);
23821 rm -f conftest.$ac_objext
23822 if { (ac_try="$ac_compile"
23823 case "(($ac_try" in
23824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23825 *) ac_try_echo=$ac_try;;
23827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23828 (eval "$ac_compile") 2>conftest.er1
23830 grep -v '^ *+' conftest.er1 >conftest.err
23832 cat conftest.err >&5
23833 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23834 (exit $ac_status); } && {
23835 test -z "$ac_c_werror_flag" ||
23836 test ! -s conftest.err
23837 } && test -s conftest.$ac_objext; then
23838 emacs_cv_c_restrict=yes
23840 echo "$as_me: failed program was
:" >&5
23841 sed 's/^/| /' conftest.$ac_ext >&5
23843 cat >conftest.$ac_ext <<_ACEOF
23846 cat confdefs.h >>conftest.$ac_ext
23847 cat >>conftest.$ac_ext <<_ACEOF
23848 /* end confdefs.h. */
23849 void fred (int *__restrict x);
23858 rm -f conftest.$ac_objext
23859 if { (ac_try="$ac_compile"
23860 case "(($ac_try" in
23861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23862 *) ac_try_echo=$ac_try;;
23864 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23865 (eval "$ac_compile") 2>conftest.er1
23867 grep -v '^ *+' conftest.er1 >conftest.err
23869 cat conftest.err >&5
23870 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23871 (exit $ac_status); } && {
23872 test -z "$ac_c_werror_flag" ||
23873 test ! -s conftest.err
23874 } && test -s conftest.$ac_objext; then
23875 emacs_cv_c_restrict=__restrict
23877 echo "$as_me: failed program was
:" >&5
23878 sed 's/^/| /' conftest.$ac_ext >&5
23880 emacs_cv_c_restrict=no
23883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23888 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23889 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23890 case "$emacs_cv_c_restrict" in
23891 yes) emacs_restrict=restrict;;
23892 no) emacs_restrict="";;
23893 *) emacs_restrict="$emacs_cv_c_restrict";;
23895 if test "$emacs_restrict" != __restrict; then
23897 cat >>confdefs.h <<_ACEOF
23898 #define __restrict $emacs_restrict
23903 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23904 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23905 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23906 echo $ECHO_N "(cached
) $ECHO_C" >&6
23908 cat >conftest.$ac_ext <<_ACEOF
23911 cat confdefs.h >>conftest.$ac_ext
23912 cat >>conftest.$ac_ext <<_ACEOF
23913 /* end confdefs.h. */
23914 void fred (int x[__restrict]);
23923 rm -f conftest.$ac_objext
23924 if { (ac_try="$ac_compile"
23925 case "(($ac_try" in
23926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23927 *) ac_try_echo=$ac_try;;
23929 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23930 (eval "$ac_compile") 2>conftest.er1
23932 grep -v '^ *+' conftest.er1 >conftest.err
23934 cat conftest.err >&5
23935 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23936 (exit $ac_status); } && {
23937 test -z "$ac_c_werror_flag" ||
23938 test ! -s conftest.err
23939 } && test -s conftest.$ac_objext; then
23940 emacs_cv_c_restrict_arr=yes
23942 echo "$as_me: failed program was
:" >&5
23943 sed 's/^/| /' conftest.$ac_ext >&5
23945 emacs_cv_c_restrict_arr=no
23948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23950 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23951 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23952 if test "$emacs_cv_c_restrict_arr" = yes; then
23954 cat >>confdefs.h <<\_ACEOF
23955 #define __restrict_arr __restrict
23962 # Set up the CFLAGS for real compilation, so we can substitute it.
23963 CFLAGS="$REAL_CFLAGS"
23964 CPPFLAGS="$REAL_CPPFLAGS"
23966 #### Find out which version of Emacs this is.
23967 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23968 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23969 if test x"${version}" = x; then
23970 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23971 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23972 { (exit 1); exit 1; }; }
23975 ### Specify what sort of things we'll be editing into Makefile and config.h.
23976 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24012 cat >>confdefs.h <<_ACEOF
24013 #define EMACS_CONFIGURATION "${canonical}"
24017 cat >>confdefs.h <<_ACEOF
24018 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24022 cat >>confdefs.h <<_ACEOF
24023 #define config_machfile "${machfile}"
24027 cat >>confdefs.h <<_ACEOF
24028 #define config_opsysfile "${opsysfile}"
24032 cat >>confdefs.h <<_ACEOF
24033 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24037 cat >>confdefs.h <<_ACEOF
24038 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24042 cat >>confdefs.h <<_ACEOF
24043 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24047 cat >>confdefs.h <<_ACEOF
24048 #define UNEXEC_SRC ${UNEXEC_SRC}
24052 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24054 cat >>confdefs.h <<\_ACEOF
24055 #define HAVE_X_WINDOWS 1
24059 if test "${USE_X_TOOLKIT}" != "none
" ; then
24061 cat >>confdefs.h <<\_ACEOF
24062 #define USE_X_TOOLKIT 1
24066 if test "${HAVE_X11}" = "yes" ; then
24068 cat >>confdefs.h <<\_ACEOF
24073 if test "${HAVE_MENUS}" = "yes" ; then
24075 cat >>confdefs.h <<\_ACEOF
24076 #define HAVE_MENUS 1
24080 if test "${GNU_MALLOC}" = "yes" ; then
24082 cat >>confdefs.h <<\_ACEOF
24083 #define GNU_MALLOC 1
24087 if test "${REL_ALLOC}" = "yes" ; then
24089 cat >>confdefs.h <<\_ACEOF
24090 #define REL_ALLOC 1
24100 #### Report on what we decided to do.
24101 #### Report GTK as a toolkit, even if it doesn't use Xt.
24102 #### It makes printing result more understandable as using GTK sets
24103 #### toolkit_scroll_bars to yes by default.
24104 if test "${HAVE_GTK}" = "yes"; then
24109 Configured
for \
`${canonical}'.
24111 Where should the build process find the source code? ${srcdir}
24112 What operating system and machine description files should Emacs use?
24113 \`${opsysfile}' and \`${machfile}'
24114 What compiler should emacs be built with?
${CC} ${CFLAGS}
24115 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
24116 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
24117 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
24118 What window system should Emacs use?
${window_system}
24119 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
24121 if test -n "${x_includes}"; then
24122 echo " Where
do we
find X Windows header files?
${x_includes}"
24124 echo " Where
do we
find X Windows header files? Standard
dirs"
24126 if test -n "${x_libraries}"; then
24127 echo " Where
do we
find X Windows libraries?
${x_libraries}"
24129 echo " Where
do we
find X Windows libraries? Standard
dirs"
24132 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
24133 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
24134 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
24135 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
24136 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
24137 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
24138 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
24139 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
24140 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
24141 echo " Does Emacs use a font backend?
${USE_FONT_BACKEND}"
24143 if test "${USE_FONT_BACKEND}" = "yes"; then
24144 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
24145 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
24146 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
24147 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
24149 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
24152 if test $USE_XASSERTS = yes; then
24153 echo " Compiling with asserts turned on.
"
24154 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24159 if test "$USE_X_TOOLKIT" = GTK; then
24160 case "$canonical" in
24162 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
24163 will probably get a crash on startup. If this happens
, please use another
24164 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
24170 if test "$HAVE_CARBON" = "yes"; then
24172 echo "Warning
: The Mac Carbon port is currently unsupported and has
24173 known problems. It is not recommended
for use by non-developers.
24174 Read the emacs-devel archives
for more information.
"
24178 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
24179 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
24184 # Remove any trailing slashes in these variables.
24185 test "${prefix}" != NONE &&
24186 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24187 test "${exec_prefix}" != NONE &&
24188 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24190 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24191 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24192 ## from Makefile.c can correctly provide the arg `-traditional' to the
24195 cat >conftest.$ac_ext <<_ACEOF
24198 cat confdefs.h >>conftest.$ac_ext
24199 cat >>conftest.$ac_ext <<_ACEOF
24200 /* end confdefs.h. */
24203 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
24204 $EGREP "yes..
yes" >/dev/null 2>&1; then
24205 CPP_NEED_TRADITIONAL=no
24207 CPP_NEED_TRADITIONAL=yes
24212 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
"
24214 ac_config_commands="$ac_config_commands default
"
24216 cat >confcache <<\_ACEOF
24217 # This file is a shell script that caches the results of configure
24218 # tests run on this system so they can be shared between configure
24219 # scripts and configure runs, see configure's option --config-cache.
24220 # It is not useful on other systems. If it contains results you don't
24221 # want to keep, you may remove or edit it.
24223 # config.status only pays attention to the cache file if you give it
24224 # the --recheck option to rerun configure.
24226 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24227 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24228 # following values.
24232 # The following way of writing the cache mishandles newlines in values,
24233 # but we know of no workaround that is simple, portable, and efficient.
24234 # So, we kill variables containing newlines.
24235 # Ultrix sh set writes to stderr and can't be redirected directly,
24236 # and sets the high bit in the cache file unless we assign to the vars.
24238 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24239 eval ac_val=\$$ac_var
24243 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24244 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24247 _ | IFS | as_nl) ;; #(
24248 *) $as_unset $ac_var ;;
24254 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24255 *${as_nl}ac_space=\ *)
24256 # `set' does not quote correctly, so add quotes (double-quote
24257 # substitution turns \\\\ into \\, and sed turns \\ into \).
24260 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24263 # `set' quotes correctly as required by POSIX, so do not add quotes.
24264 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24273 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24275 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24277 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24278 if test -w "$cache_file"; then
24279 test "x
$cache_file" != "x
/dev
/null
" &&
24280 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24281 echo "$as_me: updating cache
$cache_file" >&6;}
24282 cat confcache >$cache_file
24284 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24285 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24290 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24291 # Let make expand exec_prefix.
24292 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24294 DEFS=-DHAVE_CONFIG_H
24298 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24299 # 1. Remove the extension, and $U if already installed.
24300 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24301 ac_i=`echo "$ac_i" | sed "$ac_script"`
24302 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24303 # will be set to the directory where LIBOBJS objects are built.
24304 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24305 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24307 LIBOBJS=$ac_libobjs
24309 LTLIBOBJS=$ac_ltlibobjs
24313 : ${CONFIG_STATUS=./config.status}
24314 ac_clean_files_save=$ac_clean_files
24315 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24316 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24317 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24318 cat >$CONFIG_STATUS <<_ACEOF
24320 # Generated by $as_me.
24321 # Run this file to recreate the current configuration.
24322 # Compiler output produced by configure, useful for debugging
24323 # configure, is in config.log if it exists.
24326 ac_cs_recheck=false
24328 SHELL=\${CONFIG_SHELL-$SHELL}
24331 cat >>$CONFIG_STATUS <<\_ACEOF
24332 ## --------------------- ##
24333 ## M4sh Initialization. ##
24334 ## --------------------- ##
24336 # Be more Bourne compatible
24337 DUALCASE=1; export DUALCASE # for MKS sh
24338 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24341 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24342 # is contrary to our usage. Disable this feature.
24343 alias -g '${1+"$@"}'='"$@
"'
24344 setopt NO_GLOB_SUBST
24346 case `(set -o) 2>/dev/null` in
24347 *posix*) set -o posix ;;
24356 # Avoid depending upon Character Ranges.
24357 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24358 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24359 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24360 as_cr_digits='0123456789'
24361 as_cr_alnum=$as_cr_Letters$as_cr_digits
24363 # The user is always right.
24364 if test "${PATH_SEPARATOR+set}" != set; then
24365 echo "#! /bin/sh" >conf$$.sh
24366 echo "exit 0" >>conf$$.sh
24368 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24376 # Support unset when possible.
24377 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24385 # We need space, tab and new line, in precisely that order. Quoting is
24386 # there to prevent editors from complaining about space-tab.
24387 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24388 # splitting by setting IFS to empty value.)
24393 # Find who we are. Look in the path if we contain no directory separator.
24395 *[\\/]* ) as_myself
=$0 ;;
24396 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24397 for as_dir
in $PATH
24400 test -z "$as_dir" && as_dir
=.
24401 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24407 # We did not find ourselves, most probably we were run as `sh COMMAND'
24408 # in which case we are not to be found in the path.
24409 if test "x$as_myself" = x
; then
24412 if test ! -f "$as_myself"; then
24413 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24414 { (exit 1); exit 1; }
24417 # Work around bugs in pre-3.0 UWIN ksh.
24418 for as_var
in ENV MAIL MAILPATH
24419 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24427 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24428 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24429 LC_TELEPHONE LC_TIME
24431 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24432 eval $as_var=C
; export $as_var
24434 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24438 # Required to use basename.
24439 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24440 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24446 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24447 as_basename
=basename
24453 # Name of the executable.
24454 as_me
=`$as_basename -- "$0" ||
24455 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24456 X"$0" : 'X\(//\)$' \| \
24457 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24459 sed '/^.*\/\([^/][^/]*\)\/*$/{
24478 as_lineno_1
=$LINENO
24479 as_lineno_2
=$LINENO
24480 test "x$as_lineno_1" != "x$as_lineno_2" &&
24481 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24483 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24484 # uniformly replaced by the line number. The first 'sed' inserts a
24485 # line-number line after each line using $LINENO; the second 'sed'
24486 # does the real work. The second script uses 'N' to pair each
24487 # line-number line with the line containing $LINENO, and appends
24488 # trailing '-' during substitution so that $LINENO is not a special
24489 # case at line end.
24490 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24491 # scripts with optimization help from Paolo Bonzini. Blame Lee
24492 # E. McMahon (1931-1989) for sed's syntax. :-)
24504 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24507 ' >$as_me.lineno
&&
24508 chmod +x
"$as_me.lineno" ||
24509 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24510 { (exit 1); exit 1; }; }
24512 # Don't try to exec as it changes $[0], causing all sort of problems
24513 # (the dirname of $[0] is not the place where we might find the
24514 # original and so on. Autoconf is especially sensitive to this).
24515 .
"./$as_me.lineno"
24516 # Exit status is that of the last command.
24521 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24527 ECHO_C
= ECHO_N
= ECHO_T
=
24528 case `echo -n x` in
24530 case `echo 'x\c'` in
24531 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24538 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24539 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24545 rm -f conf$$ conf$$.exe conf$$.
file
24546 if test -d conf$$.dir
; then
24547 rm -f conf$$.dir
/conf$$.
file
24553 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24555 # ... but there are two gotchas:
24556 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24557 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24558 # In both cases, we have to default to `cp -p'.
24559 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24561 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24566 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24567 rmdir conf$$.dir
2>/dev
/null
24569 if mkdir
-p .
2>/dev
/null
; then
24572 test -d .
/-p && rmdir .
/-p
24576 if test -x / >/dev
/null
2>&1; then
24577 as_test_x
='test -x'
24579 if ls -dL / >/dev
/null
2>&1; then
24586 if test -d "$1"; then
24592 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24593 ???[sx]*):;;*)false;;esac;fi
24597 as_executable_p
=$as_test_x
24599 # Sed expression to map a string onto a valid CPP name.
24600 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24602 # Sed expression to map a string onto a valid variable name.
24603 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24608 # Save the log message, to keep $[0] and so on meaningful, and to
24609 # report actual input values of CONFIG_FILES etc. instead of their
24610 # values after options handling.
24612 This file was extended by emacs $as_me 23.0.60, which was
24613 generated by GNU Autoconf 2.61. Invocation command line was
24615 CONFIG_FILES = $CONFIG_FILES
24616 CONFIG_HEADERS = $CONFIG_HEADERS
24617 CONFIG_LINKS = $CONFIG_LINKS
24618 CONFIG_COMMANDS = $CONFIG_COMMANDS
24621 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24626 cat >>$CONFIG_STATUS <<_ACEOF
24627 # Files that config.status was made for.
24628 config_files="$ac_config_files"
24629 config_headers="$ac_config_headers"
24630 config_commands="$ac_config_commands"
24634 cat >>$CONFIG_STATUS <<\_ACEOF
24636 \`$as_me' instantiates files from templates according to the
24637 current configuration.
24639 Usage: $0 [OPTIONS] [FILE]...
24641 -h, --help print this help, then exit
24642 -V, --version print version number and configuration settings, then exit
24643 -q, --quiet do not print progress messages
24644 -d, --debug don't remove temporary files
24645 --recheck update $as_me by reconfiguring in the same conditions
24646 --file=FILE[:TEMPLATE]
24647 instantiate the configuration file FILE
24648 --header=FILE[:TEMPLATE]
24649 instantiate the configuration header FILE
24651 Configuration files:
24654 Configuration headers:
24657 Configuration commands:
24660 Report bugs to <bug-autoconf@gnu.org>."
24663 cat >>$CONFIG_STATUS <<_ACEOF
24665 emacs config.status 23.0.60
24666 configured by $0, generated by GNU Autoconf 2.61,
24667 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24669 Copyright (C) 2006 Free Software Foundation, Inc.
24670 This config.status script is free software; the Free Software Foundation
24671 gives unlimited permission to copy, distribute and modify it."
24678 cat >>$CONFIG_STATUS <<\_ACEOF
24679 # If no file are specified by the user, then we need to provide default
24680 # value. By we need to know if files were specified by the user.
24686 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24687 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24698 # Handling of the options.
24699 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24701 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24702 echo "$ac_cs_version"; exit ;;
24703 --debug |
--debu |
--deb |
--de |
--d |
-d )
24705 --file |
--fil |
--fi |
--f )
24707 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24708 ac_need_defaults
=false
;;
24709 --header |
--heade |
--head |
--hea )
24711 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24712 ac_need_defaults
=false
;;
24714 # Conflict between --help and --header
24715 { echo "$as_me: error: ambiguous option: $1
24716 Try \`$0 --help' for more information." >&2
24717 { (exit 1); exit 1; }; };;
24718 --help |
--hel |
-h )
24719 echo "$ac_cs_usage"; exit ;;
24720 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24721 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24724 # This is an error.
24725 -*) { echo "$as_me: error: unrecognized option: $1
24726 Try \`$0 --help' for more information." >&2
24727 { (exit 1); exit 1; }; } ;;
24729 *) ac_config_targets
="$ac_config_targets $1"
24730 ac_need_defaults
=false
;;
24736 ac_configure_extra_args
=
24738 if $ac_cs_silent; then
24740 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24744 cat >>$CONFIG_STATUS <<_ACEOF
24745 if \$ac_cs_recheck; then
24746 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24747 CONFIG_SHELL=$SHELL
24748 export CONFIG_SHELL
24749 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24753 cat >>$CONFIG_STATUS <<\_ACEOF
24757 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24758 ## Running $as_me. ##
24764 cat >>$CONFIG_STATUS <<_ACEOF
24768 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24772 cat >>$CONFIG_STATUS <<\_ACEOF
24774 # Handling of arguments.
24775 for ac_config_target
in $ac_config_targets
24777 case $ac_config_target in
24778 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24779 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24780 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24781 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24782 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24783 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24784 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24785 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24786 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24787 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24788 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24789 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24790 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24792 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24793 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24794 { (exit 1); exit 1; }; };;
24799 # If the user did not use the arguments to specify the items to instantiate,
24800 # then the envvar interface is used. Set only those that are not.
24801 # We use the long form for the default assignment because of an extremely
24802 # bizarre bug on SunOS 4.1.3.
24803 if $ac_need_defaults; then
24804 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24805 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24806 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24809 # Have a temporary directory for convenience. Make it in the build tree
24810 # simply because there is no reason against having it here, and in addition,
24811 # creating and moving files from /tmp can sometimes cause problems.
24812 # Hook for its removal unless debugging.
24813 # Note that there is a small window in which the directory will not be cleaned:
24814 # after its creation but before its name has been assigned to `$tmp'.
24818 trap 'exit_status=$?
24819 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24821 trap '{ (exit 1); exit 1; }' 1 2 13 15
24823 # Create a (secure) tmp directory for tmp files.
24826 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24827 test -n "$tmp" && test -d "$tmp"
24830 tmp
=.
/conf$$
-$RANDOM
24831 (umask 077 && mkdir
"$tmp")
24834 echo "$me: cannot create a temporary directory in ." >&2
24835 { (exit 1); exit 1; }
24839 # Set up the sed scripts for CONFIG_FILES section.
24842 # No need to generate the scripts if there are no CONFIG_FILES.
24843 # This happens for instance when ./config.status config.h
24844 if test -n "$CONFIG_FILES"; then
24851 for ac_last_try
in false false false false false
:; do
24852 cat >conf$
$subs.
sed <<_ACEOF
24853 SHELL!$SHELL$ac_delim
24854 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24855 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24856 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24857 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24858 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24859 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24860 exec_prefix!$exec_prefix$ac_delim
24861 prefix!$prefix$ac_delim
24862 program_transform_name!$program_transform_name$ac_delim
24863 bindir!$bindir$ac_delim
24864 sbindir!$sbindir$ac_delim
24865 libexecdir!$libexecdir$ac_delim
24866 datarootdir!$datarootdir$ac_delim
24867 datadir!$datadir$ac_delim
24868 sysconfdir!$sysconfdir$ac_delim
24869 sharedstatedir!$sharedstatedir$ac_delim
24870 localstatedir!$localstatedir$ac_delim
24871 includedir!$includedir$ac_delim
24872 oldincludedir!$oldincludedir$ac_delim
24873 docdir!$docdir$ac_delim
24874 infodir!$infodir$ac_delim
24875 htmldir!$htmldir$ac_delim
24876 dvidir!$dvidir$ac_delim
24877 pdfdir!$pdfdir$ac_delim
24878 psdir!$psdir$ac_delim
24879 libdir!$libdir$ac_delim
24880 localedir!$localedir$ac_delim
24881 mandir!$mandir$ac_delim
24882 DEFS!$DEFS$ac_delim
24883 ECHO_C!$ECHO_C$ac_delim
24884 ECHO_N!$ECHO_N$ac_delim
24885 ECHO_T!$ECHO_T$ac_delim
24886 LIBS!$LIBS$ac_delim
24887 build_alias!$build_alias$ac_delim
24888 host_alias!$host_alias$ac_delim
24889 target_alias!$target_alias$ac_delim
24890 MAINT!$MAINT$ac_delim
24891 build!$build$ac_delim
24892 build_cpu!$build_cpu$ac_delim
24893 build_vendor!$build_vendor$ac_delim
24894 build_os!$build_os$ac_delim
24895 host!$host$ac_delim
24896 host_cpu!$host_cpu$ac_delim
24897 host_vendor!$host_vendor$ac_delim
24898 host_os!$host_os$ac_delim
24900 CFLAGS!$CFLAGS$ac_delim
24901 LDFLAGS!$LDFLAGS$ac_delim
24902 CPPFLAGS!$CPPFLAGS$ac_delim
24903 ac_ct_CC!$ac_ct_CC$ac_delim
24904 EXEEXT!$EXEEXT$ac_delim
24905 OBJEXT!$OBJEXT$ac_delim
24907 GREP!$GREP$ac_delim
24908 EGREP!$EGREP$ac_delim
24909 LN_S!$LN_S$ac_delim
24910 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24911 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24912 INSTALL_DATA!$INSTALL_DATA$ac_delim
24913 RANLIB!$RANLIB$ac_delim
24914 INSTALL_INFO!$INSTALL_INFO$ac_delim
24915 GZIP_PROG!$GZIP_PROG$ac_delim
24916 MAKEINFO!$MAKEINFO$ac_delim
24917 LIBSOUND!$LIBSOUND$ac_delim
24918 PKG_CONFIG!$PKG_CONFIG$ac_delim
24919 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24920 ALSA_LIBS!$ALSA_LIBS$ac_delim
24921 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24922 SET_MAKE!$SET_MAKE$ac_delim
24923 XMKMF!$XMKMF$ac_delim
24924 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24925 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24926 RSVG_LIBS!$RSVG_LIBS$ac_delim
24927 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24928 GTK_LIBS!$GTK_LIBS$ac_delim
24929 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24930 DBUS_LIBS!$DBUS_LIBS$ac_delim
24931 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24932 XFT_LIBS!$XFT_LIBS$ac_delim
24933 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24934 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24935 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24936 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24937 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24938 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24939 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24940 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24941 ALLOCA!$ALLOCA$ac_delim
24942 liblockfile!$liblockfile$ac_delim
24943 LIBOBJS!$LIBOBJS$ac_delim
24944 NEED_SETGID!$NEED_SETGID$ac_delim
24945 KMEM_GROUP!$KMEM_GROUP$ac_delim
24946 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24947 GETOPT_H!$GETOPT_H$ac_delim
24948 GETOPTOBJS!$GETOPTOBJS$ac_delim
24949 version!$version$ac_delim
24952 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24954 elif $ac_last_try; then
24955 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24956 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24957 { (exit 1); exit 1; }; }
24959 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24963 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24964 if test -n "$ac_eof"; then
24965 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24966 ac_eof
=`expr $ac_eof + 1`
24969 cat >>$CONFIG_STATUS <<_ACEOF
24970 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24971 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24974 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24975 s/^/s,@/; s/!/@,|#_!!_#|/
24978 s/'"$ac_delim"'$/,g/; t
24980 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24981 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24982 rm -f conf$
$subs.
sed
24983 cat >>$CONFIG_STATUS <<_ACEOF
24989 for ac_last_try
in false false false false false
:; do
24990 cat >conf$
$subs.
sed <<_ACEOF
24991 configuration!$configuration$ac_delim
24992 canonical!$canonical$ac_delim
24993 srcdir!$srcdir$ac_delim
24994 lispdir!$lispdir$ac_delim
24995 locallisppath!$locallisppath$ac_delim
24996 lisppath!$lisppath$ac_delim
24997 x_default_search_path!$x_default_search_path$ac_delim
24998 etcdir!$etcdir$ac_delim
24999 archlibdir!$archlibdir$ac_delim
25000 bitmapdir!$bitmapdir$ac_delim
25001 gamedir!$gamedir$ac_delim
25002 gameuser!$gameuser$ac_delim
25003 c_switch_system!$c_switch_system$ac_delim
25004 c_switch_machine!$c_switch_machine$ac_delim
25005 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25006 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25007 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25008 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25009 machfile!$machfile$ac_delim
25010 opsysfile!$opsysfile$ac_delim
25011 carbon_appdir!$carbon_appdir$ac_delim
25012 LTLIBOBJS!$LTLIBOBJS$ac_delim
25015 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
25017 elif $ac_last_try; then
25018 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25019 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25020 { (exit 1); exit 1; }; }
25022 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
25026 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25027 if test -n "$ac_eof"; then
25028 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
25029 ac_eof
=`expr $ac_eof + 1`
25032 cat >>$CONFIG_STATUS <<_ACEOF
25033 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25037 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25038 s/^/s,@/; s/!/@,|#_!!_#|/
25041 s/'"$ac_delim"'$/,g/; t
25043 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25044 ' >>$CONFIG_STATUS <conf$
$subs.
sed
25045 rm -f conf$
$subs.
sed
25046 cat >>$CONFIG_STATUS <<_ACEOF
25053 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25054 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25055 # trailing colons and then remove the whole line if VPATH becomes empty
25056 # (actually we leave an empty line to preserve line numbers).
25057 if test "x$srcdir" = x.
; then
25058 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
25059 s/:*\$(srcdir):*/:/
25060 s/:*\${srcdir}:*/:/
25062 s/^\([^=]*=[ ]*\):*/\1/
25068 cat >>$CONFIG_STATUS <<\_ACEOF
25069 fi # test -n "$CONFIG_FILES"
25072 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
25075 :[FHLC
]) ac_mode
=$ac_tag; continue;;
25077 case $ac_mode$ac_tag in
25079 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25080 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25081 { (exit 1); exit 1; }; };;
25082 :[FH
]-) ac_tag
=-:-;;
25083 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
25100 -) ac_f
="$tmp/stdin";;
25101 *) # Look for the file first in the build tree, then in the source tree
25102 # (if the path is not absolute). The absolute path cannot be DOS-style,
25103 # because $ac_f cannot contain `:'.
25107 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
25109 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25110 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25111 { (exit 1); exit 1; }; };;
25113 ac_file_inputs
="$ac_file_inputs $ac_f"
25116 # Let's still pretend it is `configure' which instantiates (i.e., don't
25117 # use $as_me), people would be surprised to read:
25118 # /* config.h. Generated by config.status. */
25119 configure_input
="Generated from "`IFS=:
25120 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25121 if test x
"$ac_file" != x-
; then
25122 configure_input
="$ac_file. $configure_input"
25123 { echo "$as_me:$LINENO: creating $ac_file" >&5
25124 echo "$as_me: creating $ac_file" >&6;}
25128 *:-:* |
*:-) cat >"$tmp/stdin";;
25133 ac_dir
=`$as_dirname -- "$ac_file" ||
25134 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25135 X"$ac_file" : 'X\(//\)[^/]' \| \
25136 X"$ac_file" : 'X\(//\)$' \| \
25137 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25143 /^X\(\/\/\)[^/].*/{
25158 -*) as_dir
=.
/$as_dir;;
25160 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
25164 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25165 *) as_qdir
=$as_dir;;
25167 as_dirs
="'$as_qdir' $as_dirs"
25168 as_dir
=`$as_dirname -- "$as_dir" ||
25169 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25170 X"$as_dir" : 'X\(//\)[^/]' \| \
25171 X"$as_dir" : 'X\(//\)$' \| \
25172 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25174 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25178 /^X\(\/\/\)[^/].*/{
25191 test -d "$as_dir" && break
25193 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
25194 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25195 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25196 { (exit 1); exit 1; }; }; }
25200 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25202 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25203 # A ".." for each directory in $ac_dir_suffix.
25204 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25205 case $ac_top_builddir_sub in
25206 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
25207 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
25210 ac_abs_top_builddir
=$ac_pwd
25211 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
25212 # for backward compatibility:
25213 ac_top_builddir
=$ac_top_build_prefix
25216 .
) # We are building in place.
25218 ac_top_srcdir
=$ac_top_builddir_sub
25219 ac_abs_top_srcdir
=$ac_pwd ;;
25220 [\\/]* | ?
:[\\/]* ) # Absolute name.
25221 ac_srcdir
=$srcdir$ac_dir_suffix;
25222 ac_top_srcdir
=$srcdir
25223 ac_abs_top_srcdir
=$srcdir ;;
25224 *) # Relative name.
25225 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
25226 ac_top_srcdir
=$ac_top_build_prefix$srcdir
25227 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
25229 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
25239 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
25240 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25244 cat >>$CONFIG_STATUS <<\_ACEOF
25245 # If the template does not know about datarootdir, expand it.
25246 # FIXME: This hack should be removed a few years after 2.60.
25247 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25249 case `sed -n '/datarootdir/ {
25258 ' $ac_file_inputs` in
25259 *datarootdir
*) ac_datarootdir_seen
=yes;;
25260 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25261 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25262 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25264 cat >>$CONFIG_STATUS <<_ACEOF
25265 ac_datarootdir_hack='
25266 s&@datadir@&$datadir&g
25267 s&@docdir@&$docdir&g
25268 s&@infodir@&$infodir&g
25269 s&@localedir@&$localedir&g
25270 s&@mandir@&$mandir&g
25271 s&\\\${datarootdir}&$datarootdir&g' ;;
25275 # Neutralize VPATH when `$srcdir' = `.'.
25276 # Shell code in configure.ac might set extrasub.
25277 # FIXME: do we really want to maintain this feature?
25278 cat >>$CONFIG_STATUS <<_ACEOF
25282 cat >>$CONFIG_STATUS <<\_ACEOF
25284 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25285 s
&@configure_input@
&$configure_input&;t t
25286 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25287 s
&@srcdir@
&$ac_srcdir&;t t
25288 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25289 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25290 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25291 s
&@builddir@
&$ac_builddir&;t t
25292 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25293 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25294 s
&@INSTALL@
&$ac_INSTALL&;t t
25295 $ac_datarootdir_hack
25296 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25298 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25299 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25300 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25301 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25302 which seems to be undefined. Please make sure it is defined." >&5
25303 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25304 which seems to be undefined. Please make sure it is defined." >&2;}
25308 -) cat "$tmp/out"; rm -f "$tmp/out";;
25309 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25318 # Transform confdefs.h into a sed script `conftest.defines', that
25319 # substitutes the proper values into config.h.in to produce config.h.
25320 rm -f conftest.defines conftest.
tail
25321 # First, append a space to every undef/define line, to ease matching.
25322 echo 's/$/ /' >conftest.defines
25323 # Then, protect against being on the right side of a sed subst, or in
25324 # an unquoted here document, in config.status. If some macros were
25325 # called several times there might be several #defines for the same
25326 # symbol, which is useless. But do not sort them, since the last
25327 # AC_DEFINE must be honored.
25328 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25329 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25330 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25331 # PARAMS is the parameter list in the macro definition--in most cases, it's
25332 # just an empty string.
25333 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25334 ac_dB
='\\)[ (].*,\\1define\\2'
25342 s/^[ ]*#[ ]*define[ ][ ]*//
25347 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25348 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25349 ' >>conftest.defines
25351 # Remove the space that was appended to ease matching.
25352 # Then replace #undef with comments. This is necessary, for
25353 # example, in the case of _POSIX_SOURCE, which is predefined and required
25354 # on some systems where configure will not decide to define it.
25355 # (The regexp can be short, since the line contains either #define or #undef.)
25357 s,^[ #]*u.*,/* & */,' >>conftest.defines
25359 # Break up conftest.defines:
25360 ac_max_sed_lines
=50
25362 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25363 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25364 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25366 ac_in
='$ac_file_inputs'
25367 ac_out
='"$tmp/out1"'
25368 ac_nxt
='"$tmp/out2"'
25372 # Write a here document:
25373 cat >>$CONFIG_STATUS <<_ACEOF
25374 # First, check the format of the line:
25375 cat >"\$tmp/defines.sed" <<\\CEOF
25376 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25377 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25381 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25383 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25384 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25385 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25386 grep . conftest.
tail >/dev
/null ||
break
25387 rm -f conftest.defines
25388 mv conftest.
tail conftest.defines
25390 rm -f conftest.defines conftest.
tail
25392 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25393 cat >>$CONFIG_STATUS <<\_ACEOF
25394 if test x
"$ac_file" != x-
; then
25395 echo "/* $configure_input */" >"$tmp/config.h"
25396 cat "$ac_result" >>"$tmp/config.h"
25397 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25398 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25399 echo "$as_me: $ac_file is unchanged" >&6;}
25402 mv "$tmp/config.h" $ac_file
25405 echo "/* $configure_input */"
25411 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25412 echo "$as_me: executing $ac_file commands" >&6;}
25417 case $ac_file$ac_mode in
25420 ### Make the necessary directories, if they don't exist.
25421 for dir
in etc lisp
; do
25422 test -d ${dir} || mkdir
${dir}
25425 # Build src/Makefile from ${srcdir}/src/Makefile.c
25426 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25427 # This must be done after src/config.h is built, since we rely on that file.
25429 # Now get this: Some word that is part of the ${srcdir} directory name
25430 # or the ${configuration} value might, just might, happen to be an
25431 # identifier like `sun4' or `i386' or something, and be predefined by
25432 # the C preprocessor to some helpful value like 1, or maybe the empty
25433 # string. Needless to say consequent macro substitutions are less
25434 # than conducive to the makefile finding the correct directory.
25435 undefs
="`echo $top_srcdir $configuration $canonical |
25436 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25437 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25440 echo creating src
/epaths.h
25441 ${MAKE-make} epaths-force
25443 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25444 # `..' to `. .' unless invoked with -traditional
25446 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25447 CPPFLAGS
="$CPPFLAGS -traditional"
25450 echo creating lib-src
/Makefile
25452 rm -f junk.c junk1.c junk2.c
25453 sed -e '/start of cpp stuff/q' \
25454 < Makefile.c
> junk1.c
25455 sed -e '1,/start of cpp stuff/d'\
25456 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25457 < Makefile.c
> junk.c
25458 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25459 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25460 cat junk1.c junk2.c
> Makefile.new
25461 rm -f junk.c junk1.c junk2.c
25462 chmod 444 Makefile.new
25463 mv -f Makefile.new Makefile
25466 echo creating src
/Makefile
25468 rm -f junk.c junk1.c junk2.c
25469 sed -e '/start of cpp stuff/q' \
25470 < Makefile.c
> junk1.c
25471 sed -e '1,/start of cpp stuff/d'\
25472 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25473 < Makefile.c
> junk.c
25474 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25475 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25476 cat junk1.c junk2.c
> Makefile.new
25477 rm -f junk.c junk1.c junk2.c
25478 chmod 444 Makefile.new
25479 mv -f Makefile.new Makefile
25482 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25483 echo creating src
/.gdbinit
25484 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25487 # This is how we know whether to re-run configure in certain cases.
25488 touch src
/config.stamp
25496 { (exit 0); exit 0; }
25498 chmod +x
$CONFIG_STATUS
25499 ac_clean_files
=$ac_clean_files_save
25502 # configure is writing to config.log, and then calls config.status.
25503 # config.status does its own redirection, appending to config.log.
25504 # Unfortunately, on DOS this fails, as config.log is still kept open
25505 # by configure, so config.status won't be able to write to it; its
25506 # output is simply discarded. So we exec the FD to /dev/null,
25507 # effectively closing config.log, so it can be properly (re)opened and
25508 # appended to by config.status. When coming back to configure, we
25509 # need to make the FD available again.
25510 if test "$no_create" != yes; then
25512 ac_config_status_args
=
25513 test "$silent" = yes &&
25514 ac_config_status_args
="$ac_config_status_args --quiet"
25516 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25518 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25519 # would make configure fail if this is the last instruction.
25520 $ac_cs_success ||
{ (exit 1); exit 1; }