2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61 for emacs 23.0.50.
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.50'
576 PACKAGE_STRING
='emacs 23.0.50'
579 ac_unique_file
="src/lisp.h"
580 ac_config_libobj_dir
=src
581 # Factoring default headers for most tests.
582 ac_includes_default
="\
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
594 # ifdef HAVE_STDLIB_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
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.50 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.50:";;
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 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1355 --without-xpm don't compile with XPM image support
1356 --without-jpeg don
't compile with JPEG image support
1357 --without-tiff don't compile with TIFF image support
1358 --without-gif don
't compile with GIF image support
1359 --without-png don't compile with PNG image support
1360 --without-rsvg don
't compile with SVG image support
1361 --without-freetype don't use Freetype
for local font support
1362 --without-xft don
't use XFT for anti aliased fonts
1363 --without-libotf don't use libotf
for OpenType font support
1364 --without-m17n-flt don
't use m17n-flt for text shaping
1365 --without-toolkit-scroll-bars
1366 don't use Motif or Xaw3d scroll bars
1367 --without-xaw3d don
't use Xaw3d
1368 --without-xim don't use X11 XIM
1369 --with-carbon use Carbon GUI on Mac OS X. This is unsupported
!
1370 --without-gpm don
't use -lgpm for mouse support on a GNU/Linux
1372 --without-dbus don't compile with D-Bus support
1374 --with-pkg-config-prog=PATH
1375 Path to pkg-config
for finding GTK and librsvg
1376 --with-x use the X Window System
1378 Some influential environment variables
:
1379 CC C compiler
command
1380 CFLAGS C compiler flags
1381 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1382 nonstandard directory
<lib dir
>
1383 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1384 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1385 you have headers
in a nonstandard directory
<include dir
>
1387 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1389 Use these variables to override the choices made by
`configure' or to help
1390 it to find libraries and programs with nonstandard names/locations.
1396 if test "$ac_init_help" = "recursive"; then
1397 # If there are subdirs, report their specific --help.
1398 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1399 test -d "$ac_dir" || continue
1403 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1405 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1406 # A ".." for each directory in $ac_dir_suffix.
1407 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1408 case $ac_top_builddir_sub in
1409 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1410 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1413 ac_abs_top_builddir=$ac_pwd
1414 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1415 # for backward compatibility:
1416 ac_top_builddir=$ac_top_build_prefix
1419 .) # We are building in place.
1421 ac_top_srcdir=$ac_top_builddir_sub
1422 ac_abs_top_srcdir=$ac_pwd ;;
1423 [\\/]* | ?:[\\/]* ) # Absolute name.
1424 ac_srcdir=$srcdir$ac_dir_suffix;
1425 ac_top_srcdir=$srcdir
1426 ac_abs_top_srcdir=$srcdir ;;
1428 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1429 ac_top_srcdir=$ac_top_build_prefix$srcdir
1430 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1432 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1434 cd "$ac_dir" || { ac_status=$?; continue; }
1435 # Check for guested configure.
1436 if test -f "$ac_srcdir/configure.gnu"; then
1438 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1439 elif test -f "$ac_srcdir/configure"; then
1441 $SHELL "$ac_srcdir/configure" --help=recursive
1443 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1445 cd "$ac_pwd" || { ac_status=$?; break; }
1449 test -n "$ac_init_help" && exit $ac_status
1450 if $ac_init_version; then
1452 emacs configure 23.0.50
1453 generated by GNU Autoconf 2.61
1455 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1456 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1457 This configure script is free software; the Free Software Foundation
1458 gives unlimited permission to copy, distribute and modify it.
1462 cat >config.log <<_ACEOF
1463 This file contains any messages produced by compilers while
1464 running configure, to aid debugging if configure makes a mistake.
1466 It was created by emacs $as_me 23.0.50, which was
1467 generated by GNU Autoconf 2.61. Invocation command line was
1479 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1480 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1481 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1482 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1483 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1485 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1486 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1488 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1489 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1490 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1491 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1492 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1493 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1494 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1502 test -z "$as_dir" && as_dir=.
1503 echo "PATH: $as_dir"
1519 # Keep a trace of the command line.
1520 # Strip out --no-create and --no-recursion so they do not pile up.
1521 # Strip out --silent because we don't want to record it for future runs.
1522 # Also quote any args containing shell meta-characters.
1523 # Make two passes to allow for proper duplicate-argument suppression.
1527 ac_must_keep_next=false
1533 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1534 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1535 | -silent | --silent | --silen | --sile | --sil)
1538 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1541 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1543 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1544 if test $ac_must_keep_next = true; then
1545 ac_must_keep_next=false # Got value, back to normal.
1548 *=* | --config-cache | -C | -disable-* | --disable-* \
1549 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1550 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1551 | -with-* | --with-* | -without-* | --without-* | --x)
1552 case "$ac_configure_args0 " in
1553 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1556 -* ) ac_must_keep_next=true ;;
1559 ac_configure_args="$ac_configure_args '$ac_arg'"
1564 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1565 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1567 # When interrupted or exit'd, cleanup temporary files, and complete
1568 # config.log. We remove comments because anyway the quotes in there
1569 # would cause problems or look ugly.
1570 # WARNING: Use '\'' to represent an apostrophe within the trap.
1571 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1572 trap 'exit_status=$?
1573 # Save into config.log some information that might help in debugging.
1578 ## ---------------- ##
1579 ## Cache variables. ##
1580 ## ---------------- ##
1583 # The following way of writing the cache mishandles newlines in values,
1585 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1586 eval ac_val=\$$ac_var
1590 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1591 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1594 _ | IFS | as_nl) ;; #(
1595 *) $as_unset $ac_var ;;
1600 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1601 *${as_nl}ac_space=\ *)
1603 "s/'\''/'\''\\\\'\'''\''/g;
1604 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1607 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1615 ## ----------------- ##
1616 ## Output variables. ##
1617 ## ----------------- ##
1620 for ac_var in $ac_subst_vars
1622 eval ac_val=\$$ac_var
1624 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 echo "$ac_var='\''$ac_val'\''"
1630 if test -n "$ac_subst_files"; then
1632 ## ------------------- ##
1633 ## File substitutions. ##
1634 ## ------------------- ##
1637 for ac_var in $ac_subst_files
1639 eval ac_val=\$$ac_var
1641 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1643 echo "$ac_var='\''$ac_val'\''"
1648 if test -s confdefs.h; then
1658 test "$ac_signal" != 0 &&
1659 echo "$as_me: caught signal $ac_signal"
1660 echo "$as_me: exit $exit_status"
1662 rm -f core *.core core.conftest.* &&
1663 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1666 for ac_signal in 1 2 13 15; do
1667 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1671 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1672 rm -f -r conftest* confdefs.h
1674 # Predefined preprocessor variables.
1676 cat >>confdefs.h <<_ACEOF
1677 #define PACKAGE_NAME "$PACKAGE_NAME"
1681 cat >>confdefs.h <<_ACEOF
1682 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1686 cat >>confdefs.h <<_ACEOF
1687 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1691 cat >>confdefs.h <<_ACEOF
1692 #define PACKAGE_STRING "$PACKAGE_STRING"
1696 cat >>confdefs.h <<_ACEOF
1697 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1701 # Let the site file select an alternate cache file if it wants to.
1702 # Prefer explicitly selected file to automatically selected ones.
1703 if test -n "$CONFIG_SITE"; then
1704 set x "$CONFIG_SITE"
1705 elif test "x$prefix" != xNONE; then
1706 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1708 set x "$ac_default_prefix/share/config.site" \
1709 "$ac_default_prefix/etc/config.site"
1714 if test -r "$ac_site_file"; then
1715 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1716 echo "$as_me: loading site script $ac_site_file" >&6;}
1717 sed 's/^/| /' "$ac_site_file" >&5
1722 if test -r "$cache_file"; then
1723 # Some versions of bash will fail to source /dev/null (special
1724 # files actually), so we avoid doing that.
1725 if test -f "$cache_file"; then
1726 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1727 echo "$as_me: loading cache $cache_file" >&6;}
1729 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1730 *) . "./$cache_file";;
1734 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1735 echo "$as_me: creating cache $cache_file" >&6;}
1739 ac_header_list="$ac_header_list sys/time.h"
1740 ac_header_list="$ac_header_list unistd.h"
1741 ac_func_list="$ac_func_list alarm"
1742 # Check that the precious variables saved in the cache have kept the same
1744 ac_cache_corrupted=false
1745 for ac_var in $ac_precious_vars; do
1746 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1747 eval ac_new_set=\$ac_env_${ac_var}_set
1748 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1749 eval ac_new_val=\$ac_env_${ac_var}_value
1750 case $ac_old_set,$ac_new_set in
1752 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1753 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1754 ac_cache_corrupted=: ;;
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1757 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1758 ac_cache_corrupted=: ;;
1761 if test "x$ac_old_val" != "x$ac_new_val"; then
1762 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1763 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1764 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1765 echo "$as_me: former value
: $ac_old_val" >&2;}
1766 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1767 echo "$as_me: current value
: $ac_new_val" >&2;}
1768 ac_cache_corrupted=:
1771 # Pass precious variables to config.status.
1772 if test "$ac_new_set" = set; then
1774 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1775 *) ac_arg=$ac_var=$ac_new_val ;;
1777 case " $ac_configure_args " in
1778 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1779 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1783 if $ac_cache_corrupted; then
1784 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1785 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1786 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1787 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1788 { (exit 1); exit 1; }; }
1816 ac_cpp='$CPP $CPPFLAGS'
1817 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1818 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1819 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1822 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1826 test "$program_prefix" != NONE &&
1827 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1828 # Use a double $ so make ignores it.
1829 test "$program_suffix" != NONE &&
1830 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1831 # Double any \ or $. echo might interpret backslashes.
1832 # By default was `s
,x
,x
', remove it if useless.
1833 cat <<\_ACEOF >conftest.sed
1834 s/[\\$]/&&/g;s/;s,x,x,$//
1836 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1840 lispdir='${datadir}/emacs
/${version}/lisp
'
1841 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1842 '${datadir}/emacs
/site-lisp
'
1843 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1844 etcdir='${datadir}/emacs
/${version}/etc
'
1845 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1846 docdir='${datadir}/emacs
/${version}/etc
'
1847 gamedir='${localstatedir}/games
/emacs
'
1854 # Check whether --with-pop was given.
1855 if test "${with_pop+set}" = set; then
1861 if test "$with_pop" = yes; then
1862 cat >>confdefs.h <<\_ACEOF
1863 #define MAIL_USE_POP 1
1870 # Check whether --with-kerberos was given.
1871 if test "${with_kerberos+set}" = set; then
1872 withval=$with_kerberos;
1877 if test "$with_kerberos" = yes; then
1878 cat >>confdefs.h <<\_ACEOF
1886 # Check whether --with-kerberos5 was given.
1887 if test "${with_kerberos5+set}" = set; then
1888 withval=$with_kerberos5;
1893 if test "${with_kerberos5}" = yes; then
1894 if test "${with_kerberos}" != yes; then
1896 cat >>confdefs.h <<\_ACEOF
1902 cat >>confdefs.h <<\_ACEOF
1909 # Check whether --with-hesiod was given.
1910 if test "${with_hesiod+set}" = set; then
1911 withval=$with_hesiod;
1916 if test "$with_hesiod" = yes; then
1918 cat >>confdefs.h <<\_ACEOF
1925 # Check whether --with-sound was given.
1926 if test "${with_sound+set}" = set; then
1927 withval=$with_sound;
1934 # Check whether --with-x-toolkit was given.
1935 if test "${with_x_toolkit+set}" = set; then
1936 withval=$with_x_toolkit; case "${withval}" in
1937 y | ye | yes ) val=gtk ;;
1939 l | lu | luc | luci | lucid ) val=lucid ;;
1940 a | at | ath | athe | athen | athena ) val=athena ;;
1941 m | mo | mot | moti | motif ) val=motif ;;
1942 g | gt | gtk ) val=gtk ;;
1944 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid
;
1945 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1946 \`yes' and \
`gtk' are synonyms. \`athena
' and \`lucid' are synonyms.
" >&5
1947 echo "$as_me: error
: \
`--with-x-toolkit=$withval' is invalid;
1948 this option's value should be \`yes', \`no', \
`lucid', \`athena
', \`motif' or \
`gtk'.
1949 \`yes' and \`gtk' are synonyms. \
`athena' and \`lucid
' are synonyms." >&2;}
1950 { (exit 1); exit 1; }; }
1959 # Check whether --with-xpm was given.
1960 if test "${with_xpm+set}" = set; then
1967 # Check whether --with-jpeg was given.
1968 if test "${with_jpeg+set}" = set; then
1975 # Check whether --with-tiff was given.
1976 if test "${with_tiff+set}" = set; then
1983 # Check whether --with-gif was given.
1984 if test "${with_gif+set}" = set; then
1991 # Check whether --with-png was given.
1992 if test "${with_png+set}" = set; then
1999 # Check whether --with-rsvg was given.
2000 if test "${with_rsvg+set}" = set; then
2008 # Check whether --with-freetype was given.
2009 if test "${with_freetype+set}" = set; then
2010 withval=$with_freetype;
2016 # Check whether --with-xft was given.
2017 if test "${with_xft+set}" = set; then
2024 # Check whether --with-libotf was given.
2025 if test "${with_libotf+set}" = set; then
2026 withval=$with_libotf;
2032 # Check whether --with-m17n-flt was given.
2033 if test "${with_m17n_flt+set}" = set; then
2034 withval=$with_m17n_flt;
2041 # Check whether --with-toolkit-scroll-bars was given.
2042 if test "${with_toolkit_scroll_bars+set}" = set; then
2043 withval=$with_toolkit_scroll_bars;
2045 with_toolkit_scroll_bars=yes
2049 # Check whether --with-xaw3d was given.
2050 if test "${with_xaw3d+set}" = set; then
2051 withval=$with_xaw3d;
2057 # Check whether --with-xim was given.
2058 if test "${with_xim+set}" = set; then
2065 # Check whether --with-carbon was given.
2066 if test "${with_carbon+set}" = set; then
2067 withval=$with_carbon;
2074 # Check whether --with-gpm was given.
2075 if test "${with_gpm+set}" = set; then
2082 # Check whether --with-dbus was given.
2083 if test "${with_dbus+set}" = set; then
2091 # Check whether --with-gtk was given.
2092 if test "${with_gtk+set}" = set; then
2093 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2094 specify a toolkit." >&5
2095 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2096 specify a toolkit." >&2;}
2097 { (exit 1); exit 1; }; }
2102 # Check whether --with-gcc was given.
2103 if test "${with_gcc+set}" = set; then
2104 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2105 variable to specify a compiler.
" >&5
2106 echo "$as_me: error
: --with-gcc has been removed. Set the \
`CC' environment
2107 variable to specify a compiler." >&2;}
2108 { (exit 1); exit 1; }; }
2113 # Check whether --with-pkg-config-prog was given.
2114 if test "${with_pkg_config_prog+set}" = set; then
2115 withval=$with_pkg_config_prog;
2118 if test "X${with_pkg_config_prog}" != X; then
2119 if test "${with_pkg_config_prog}" != yes; then
2120 PKG_CONFIG="${with_pkg_config_prog}"
2124 # Check whether --enable-carbon-app was given.
2125 if test "${enable_carbon_app+set}" = set; then
2126 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2130 ## Enabled by default.
2131 # Check whether --enable-font-backend was given.
2132 if test "${enable_font_backend+set}" = set; then
2133 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2135 USE_FONT_BACKEND=yes
2139 # Check whether --enable-asserts was given.
2140 if test "${enable_asserts+set}" = set; then
2141 enableval=$enable_asserts; USE_XASSERTS=$enableval
2147 # Check whether --enable-maintainer-mode was given.
2148 if test "${enable_maintainer_mode+set}" = set; then
2149 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2151 USE_MAINTAINER_MODE=no
2154 if test $USE_MAINTAINER_MODE = yes; then
2161 # Check whether --enable-locallisppath was given.
2162 if test "${enable_locallisppath+set}" = set; then
2163 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2165 elif test "${enableval}" != "yes"; then
2166 locallisppath=${enableval}
2171 #### Make srcdir absolute, if it isn't already. It's important to
2172 #### avoid running the path through pwd unnecessarily, since pwd can
2173 #### give you automounter prefixes, which can go away. We do all this
2174 #### so Emacs can find its files when run uninstalled.
2175 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2180 ## We may be able to use the $PWD environment variable to make this
2181 ## absolute. But sometimes PWD is inaccurate.
2182 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2183 ## but that tested only for a well-formed and valid PWD,
2184 ## it did not object when PWD was well-formed and valid but just wrong.
2185 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh
-c pwd)`" = ".`pwd`" ;
2189 srcdir="`(cd ${srcdir}; pwd)`"
2192 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2195 #### Check if the source directory already has a configured system in it.
2196 if test `pwd` != `(cd ${srcdir} && pwd)` \
2197 && test -f "${srcdir}/src/config.h" ; then
2198 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2199 as a build directory right now; it has been configured in its own
2200 right. To configure in another directory as well, you MUST
2201 use GNU make. If you do not have GNU make, then you must
2202 now do \`make distclean' in ${srcdir},
2203 and
then run
$0 again.
" >&5
2204 echo "$as_me: WARNING
: The directory tree \
`${srcdir}' is being used
2205 as a build directory right now; it has been configured in its own
2206 right. To configure in another directory as well, you MUST
2207 use GNU make. If you do not have GNU make, then you must
2208 now do \`make distclean
' in ${srcdir},
2209 and then run $0 again." >&2;}
2212 #### Given the configuration name, set machfile and opsysfile to the
2213 #### names of the m/*.h and s/*.h files we should use.
2215 ### Canonicalize the configuration name.
2218 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2219 if test -f "$ac_dir/install-sh"; then
2221 ac_install_sh="$ac_aux_dir/install-sh -c"
2223 elif test -f "$ac_dir/install.sh"; then
2225 ac_install_sh="$ac_aux_dir/install.sh -c"
2227 elif test -f "$ac_dir/shtool"; then
2229 ac_install_sh="$ac_aux_dir/shtool install -c"
2233 if test -z "$ac_aux_dir"; then
2234 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2235 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2236 { (exit 1); exit 1; }; }
2239 # These three variables are undocumented and unsupported,
2240 # and are intended to be withdrawn in a future Autoconf release.
2241 # They can cause serious problems if a builder's
source tree is
in a directory
2242 # whose full name contains unusual characters.
2243 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2244 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2245 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2248 # Make sure we can run config.sub.
2249 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2250 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2251 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2252 { (exit 1); exit 1; }; }
2254 { echo "$as_me:$LINENO: checking build system type" >&5
2255 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2256 if test "${ac_cv_build+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2259 ac_build_alias
=$build_alias
2260 test "x$ac_build_alias" = x
&&
2261 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2262 test "x$ac_build_alias" = x
&&
2263 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2264 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2265 { (exit 1); exit 1; }; }
2266 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2267 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2268 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2269 { (exit 1); exit 1; }; }
2272 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2273 echo "${ECHO_T}$ac_cv_build" >&6; }
2274 case $ac_cv_build in
2276 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2277 echo "$as_me: error: invalid value of canonical build" >&2;}
2278 { (exit 1); exit 1; }; };;
2281 ac_save_IFS
=$IFS; IFS
='-'
2287 # Remember, the first character of IFS is used to create $*,
2288 # except with old shells:
2291 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2294 { echo "$as_me:$LINENO: checking host system type" >&5
2295 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2296 if test "${ac_cv_host+set}" = set; then
2297 echo $ECHO_N "(cached) $ECHO_C" >&6
2299 if test "x$host_alias" = x
; then
2300 ac_cv_host
=$ac_cv_build
2302 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2303 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2304 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2305 { (exit 1); exit 1; }; }
2309 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2310 echo "${ECHO_T}$ac_cv_host" >&6; }
2313 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2314 echo "$as_me: error: invalid value of canonical host" >&2;}
2315 { (exit 1); exit 1; }; };;
2318 ac_save_IFS
=$IFS; IFS
='-'
2324 # Remember, the first character of IFS is used to create $*,
2325 # except with old shells:
2328 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2332 configuration
=${host_alias-${build_alias-$host}}
2336 ### If you add support for a new configuration, add code to this
2337 ### switch statement to recognize your configuration name and select
2338 ### the appropriate operating system and machine description files.
2340 ### You would hope that you could choose an m/*.h file pretty much
2341 ### based on the machine portion of the configuration name, and an s-
2342 ### file based on the operating system portion. However, it turns out
2343 ### that each m/*.h file is pretty manufacturer-specific - for
2344 ### example hp9000s300.h is a 68000 machine;
2345 ### mips.h, pmax.h are all MIPS
2346 ### machines. So we basically have to have a special case for each
2347 ### configuration name.
2349 ### As far as handling version numbers on operating systems is
2350 ### concerned, make sure things will fail in a fixable way. If
2351 ### /etc/MACHINES doesn't say anything about version numbers, be
2352 ### prepared to handle anything reasonably. If version numbers
2353 ### matter, be sure /etc/MACHINES says something about it.
2355 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2356 ### "System V Release 4"; he writes, "The old convention encouraged
2357 ### confusion between `system' and `release' levels'."
2359 machine
='' opsys
='' unported
=no
2360 case "${canonical}" in
2365 case "${canonical}" in
2366 alpha
*-*-freebsd*) machine
=alpha
;;
2367 arm
*-*-freebsd*) machine
=arm
;;
2368 ia64-
*-freebsd*) machine
=ia64
;;
2369 sparc64-
*-freebsd*) machine
=sparc
;;
2370 powerpc-
*-freebsd*) machine
=macppc
;;
2371 i
[3456]86-*-freebsd*) machine
=intel386
;;
2372 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2376 ## FreeBSD kernel + glibc based userland
2379 case "${canonical}" in
2380 alpha
*-*-kfreebsd*) machine
=alpha
;;
2381 ia64-
*-kfreebsd*) machine
=ia64
;;
2382 sparc64-
*-kfreebsd*) machine
=sparc
;;
2383 powerpc-
*-kfreebsd*) machine
=macppc
;;
2384 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2385 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2392 if test -f /usr
/lib
/crti.o
; then
2394 cat >>confdefs.h
<<\_ACEOF
2400 case "${canonical}" in
2401 alpha
*-*-netbsd*) machine
=alpha
;;
2402 i
[3456]86-*-netbsd*) machine
=intel386
;;
2404 # This is somewhat bogus.
2405 machine
=hp9000s300
;;
2406 mips-
*-netbsd*) machine
=pmax
;;
2407 mipsel-
*-netbsd*) machine
=pmax
;;
2408 mipseb-
*-netbsd*) machine
=pmax
;;
2409 powerpc-
*-netbsd*) machine
=macppc
;;
2410 sparc
*-*-netbsd*) machine
=sparc
;;
2411 vax-
*-netbsd*) machine
=vax
;;
2412 arm-
*-netbsd*) machine
=arm
;;
2413 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2414 hppa-
*-netbsd*) machine
=hp800
;;
2421 case "${canonical}" in
2422 alpha
*-*-openbsd*) machine
=alpha
;;
2423 arm-
*-openbsd*) machine
=arm
;;
2424 hppa-
*-openbsd*) machine
=hp9000s300
;;
2425 i386-
*-openbsd*) machine
=intel386
;;
2426 m68k-
*-openbsd*) machine
=hp9000s300
;;
2427 powerpc-
*-openbsd*) machine
=macppc
;;
2428 sparc
*-*-openbsd*) machine
=sparc
;;
2429 vax-
*-openbsd*) machine
=vax
;;
2430 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2437 case "${canonical}" in
2438 i
[3456]86-*-lynxos*) machine
=intel386
;;
2439 powerpc-
*-lynxos*) machine
=powerpc
;;
2446 case "${canonical}" in
2447 i
[345]86-*-bsdi*) machine
=intel386
;;
2448 sparc-
*-bsdi*) machine
=sparc
;;
2449 powerpc-
*-bsdi*) machine
=macppc
;;
2451 case "${canonical}" in
2452 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2453 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2454 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2455 *-*-bsdi3* ) opsys
=bsdos3
;;
2456 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2460 alpha
*-*-linux-gnu* )
2461 machine
=alpha opsys
=gnu-linux
2465 machine
=arm opsys
=gnu-linux
2468 ## Apple Darwin / Mac OS X
2470 case "${canonical}" in
2471 i
[3456]86-* ) machine
=intel386
;;
2472 powerpc-
* ) machine
=powermac
;;
2476 # Define CPP as follows to make autoconf work correctly.
2477 CPP
="${CC-cc} -E -no-cpp-precomp"
2478 # Use fink packages if available.
2479 if test -d /sw
/include
&& test -d /sw
/lib
; then
2480 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2481 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2482 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2487 i
[3456]86-cubix-sysv* )
2488 machine
=intel386 opsys
=usg5-3
2491 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2492 machine
=pmax opsys
=bsd4-2
2494 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2495 machine
=pmax opsys
=bsd4-3
2498 machine
=pmax opsys
=ultrix4-3
2500 ## HP 9000 series 200 or 300
2502 machine
=hp9000s300 opsys
=bsd4-3
2504 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2506 case "`uname -r`" in
2507 ## Someone's system reports A.B8.05 for this.
2508 ## I wonder what other possibilities there are.
2509 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2510 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2511 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2512 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2513 *) machine
=hp9000s300 opsys
=hpux
;;
2517 ## HP 9000 series 700 and 800, running HP/UX
2519 machine
=hp800 opsys
=hpux
2522 machine
=hp800 opsys
=hpux8
2524 hppa
*-hp-hpux9shr* )
2525 machine
=hp800 opsys
=hpux9shr
2528 machine
=hp800 opsys
=hpux9
2530 hppa
*-hp-hpux10.2
* )
2531 machine
=hp800 opsys
=hpux10-20
2534 machine
=hp800 opsys
=hpux10
2536 hppa
*-hp-hpux1[1-9]* )
2537 machine
=hp800 opsys
=hpux11
2538 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2541 hppa
*-*-linux-gnu* )
2542 machine
=hp800 opsys
=gnu-linux
2545 ## HP 9000 series 700 and 800, running HP/UX
2547 ## Cross-compilation? Nah!
2548 case "`uname -r`" in
2549 ## Someone's system reports A.B8.05 for this.
2550 ## I wonder what other possibilities there are.
2551 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2552 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2553 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2554 *) machine
=hp800 opsys
=hpux10
;;
2558 machine
=hp800 opsys
=nextstep
2563 machine
=ibm370aix opsys
=usg5-3
2566 machine
=ibms390 opsys
=gnu-linux
2568 s390x-
*-linux-gnu* )
2569 machine
=ibms390x opsys
=gnu-linux
2571 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2572 machine
=ibmrs6000 opsys
=aix3-1
2574 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2575 machine
=ibmrs6000 opsys
=aix3-2-5
2577 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2578 machine
=ibmrs6000 opsys
=aix4-1
2580 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2581 machine
=ibmrs6000 opsys
=aix4-2
2583 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2584 machine
=ibmrs6000 opsys
=aix4-2
2586 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2587 machine
=ibmrs6000 opsys
=aix4-2
2589 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2590 machine
=ibmrs6000 opsys
=aix4-2
2592 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2593 machine
=ibmrs6000 opsys
=aix4
2595 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2596 machine
=ibmrs6000 opsys
=aix4-1
2598 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2599 machine
=ibmrs6000 opsys
=aix3-2
2603 i
[3456]86-prime-sysv* )
2604 machine
=i386 opsys
=usg5-3
2607 ## ncr machine running svr4.3.
2608 i
[3456]86-ncr-sysv4.3
)
2609 machine
=ncr386 opsys
=usg5-4-3
2612 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2613 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2614 i
[3456]86-ncr-sysv* )
2615 machine
=ncr386 opsys
=usg5-4-2
2618 ## Macintosh PowerPC
2619 powerpc
*-*-linux-gnu* )
2620 machine
=macppc opsys
=gnu-linux
2623 ## Workstations sold by MIPS
2624 ## This is not necessarily all workstations using the MIPS processor -
2625 ## Irises are produced by SGI, and DECstations by DEC.
2628 machine
=mips opsys
=bsd4-3
2631 machine
=mips opsys
=usg5-2-2
2635 m68
*-next-* | m68k-
*-nextstep* )
2636 machine
=m68k opsys
=nextstep
2641 machine
=ews4800 opsys
=ux4800
2645 mips-siemens-sysv
* | mips-sni-sysv
*)
2646 machine
=mips-siemens opsys
=usg5-4
2647 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2648 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2651 ## Silicon Graphics machines
2654 machine
=iris4d opsys
=irix6-5
2655 # Without defining _LANGUAGE_C, things get masked out in the headers
2656 # so that, for instance, grepping for `free' in stdlib.h fails and
2657 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2658 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2659 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2663 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2664 machine
=sparc opsys
=gnu-linux
2667 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2668 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2669 | rs6000-
*-solaris2*)
2670 case "${canonical}" in
2671 i
[3456]86-*-* ) machine
=intel386
;;
2672 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2673 powerpcle
* ) machine
=powerpcle
;;
2674 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2675 sparc
* ) machine
=sparc
;;
2678 case "${canonical}" in
2679 *-sunos5.3
* |
*-solaris2.3
* )
2681 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2683 *-sunos5.4
* |
*-solaris2.4
* )
2685 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2688 *-sunos5.5
* |
*-solaris2.5
* )
2690 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2693 *-sunos5.6
* |
*-solaris2.6
* )
2695 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2698 *-sunos5* |
*-solaris* )
2700 emacs_check_sunpro_c
=yes
2701 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2705 ## Watch out for a compiler that we know will not work.
2706 case "${canonical}" in
2707 *-solaris* |
*-sunos5* )
2708 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2709 ## /usr/ucb/cc doesn't work;
2710 ## we should find some other compiler that does work.
2718 machine
=sparc opsys
=nextstep
2721 ## Tandem Integrity S2
2723 machine
=tandem-s2 opsys
=usg5-3
2729 case "${canonical}" in
2730 *-bsd4.1
* ) opsys
=bsd4-1
;;
2731 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2732 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2733 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2734 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2735 *-vms* ) opsys
=vms
;;
2742 machine
=ia64 opsys
=gnu-linux
2745 ## Intel 386 machines where we don't care about the manufacturer
2748 case "${canonical}" in
2749 *-cygwin ) opsys
=cygwin
;;
2750 *-darwin* ) opsys
=darwin
2751 CPP
="${CC-cc} -E -no-cpp-precomp"
2753 *-linux-gnu* ) opsys
=gnu-linux
;;
2754 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2755 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2756 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2757 *-386bsd* ) opsys
=386bsd
;;
2758 *-nextstep* ) opsys
=nextstep
;;
2759 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2763 ## m68k Linux-based GNU system
2765 machine
=m68k opsys
=gnu-linux
2768 ## Mips Linux-based GNU system
2769 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2770 machine
=mips opsys
=gnu-linux
2774 sparc-fujitsu-sysv4
* )
2775 machine
=sparc opsys
=uxpds
2776 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2780 ## AMD x86-64 Linux-based GNU system
2781 x86_64-
*-linux-gnu* )
2782 machine
=amdx86-64 opsys
=gnu-linux
2785 ## Tensilica Xtensa Linux-based GNU system
2786 xtensa
*-*-linux-gnu* )
2787 machine
=xtensa opsys
=gnu-linux
2795 ### If the code above didn't choose an operating system, just choose
2796 ### an operating system based on the configuration name. You really
2797 ### only want to use this when you have no idea what the right
2798 ### operating system is; if you know what operating systems a machine
2799 ### runs, it's cleaner to make it explicit in the case statement
2801 if test x
"${opsys}" = x
; then
2802 case "${canonical}" in
2803 *-gnu* ) opsys
=gnu
;;
2804 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2805 *-bsd4.2
) opsys
=bsd4-2
;;
2806 *-bsd4.3
) opsys
=bsd4-3
;;
2807 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2808 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2809 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2810 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2811 *-sysv4.2uw
* ) opsys
=unixware
;;
2812 *-sysv5uw* ) opsys
=unixware
;;
2813 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2814 *-sysv4.1
* |
*-sysvr4.1
* )
2815 NON_GNU_CPP
=/usr
/lib
/cpp
2817 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2818 if [ x
$NON_GNU_CPP = x
]; then
2819 if [ -f /usr
/ccs
/lib
/cpp
]; then
2820 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2822 NON_GNU_CPP
=/lib
/cpp
2826 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2833 ### Tests for sytems that we beleive are obsolete and should be desupported.
2835 case "${machine}" in
2836 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2
)
2837 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2838 echo "and it is planned to be desupported in the next version of Emacs"
2839 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2840 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2841 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2847 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
)
2848 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2849 echo "and it is planned to be desupported in the next version of Emacs"
2850 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2851 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2852 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2859 if test $unported = yes; then
2860 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2861 Check \`etc/MACHINES' for recognized configuration names." >&5
2862 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2863 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2864 { (exit 1); exit 1; }; }
2867 machfile
="m/${machine}.h"
2868 opsysfile
="s/${opsys}.h"
2871 #### Choose a compiler.
2872 test -n "$CC" && cc_specified
=yes
2874 # Save the value of CFLAGS that the user specified.
2875 SPECIFIED_CFLAGS
="$CFLAGS"
2878 ac_cpp
='$CPP $CPPFLAGS'
2879 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2880 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2881 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2882 if test -n "$ac_tool_prefix"; then
2883 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2884 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2885 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2886 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2887 if test "${ac_cv_prog_CC+set}" = set; then
2888 echo $ECHO_N "(cached) $ECHO_C" >&6
2890 if test -n "$CC"; then
2891 ac_cv_prog_CC
="$CC" # Let the user override the test.
2893 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2897 test -z "$as_dir" && as_dir
=.
2898 for ac_exec_ext
in '' $ac_executable_extensions; do
2899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2900 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2901 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2911 if test -n "$CC"; then
2912 { echo "$as_me:$LINENO: result: $CC" >&5
2913 echo "${ECHO_T}$CC" >&6; }
2915 { echo "$as_me:$LINENO: result: no" >&5
2916 echo "${ECHO_T}no" >&6; }
2921 if test -z "$ac_cv_prog_CC"; then
2923 # Extract the first word of "gcc", so it can be a program name with args.
2924 set dummy gcc
; ac_word
=$2
2925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2927 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2928 echo $ECHO_N "(cached) $ECHO_C" >&6
2930 if test -n "$ac_ct_CC"; then
2931 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2937 test -z "$as_dir" && as_dir
=.
2938 for ac_exec_ext
in '' $ac_executable_extensions; do
2939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2940 ac_cv_prog_ac_ct_CC
="gcc"
2941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2950 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2951 if test -n "$ac_ct_CC"; then
2952 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2953 echo "${ECHO_T}$ac_ct_CC" >&6; }
2955 { echo "$as_me:$LINENO: result: no" >&5
2956 echo "${ECHO_T}no" >&6; }
2959 if test "x$ac_ct_CC" = x
; then
2962 case $cross_compiling:$ac_tool_warned in
2964 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2965 whose name does not start with the host triplet. If you think this
2966 configuration is useful to you, please write to autoconf@gnu.org." >&5
2967 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2968 whose name does not start with the host triplet. If you think this
2969 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2970 ac_tool_warned
=yes ;;
2978 if test -z "$CC"; then
2979 if test -n "$ac_tool_prefix"; then
2980 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2981 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2982 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2983 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2984 if test "${ac_cv_prog_CC+set}" = set; then
2985 echo $ECHO_N "(cached) $ECHO_C" >&6
2987 if test -n "$CC"; then
2988 ac_cv_prog_CC
="$CC" # Let the user override the test.
2990 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2994 test -z "$as_dir" && as_dir
=.
2995 for ac_exec_ext
in '' $ac_executable_extensions; do
2996 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2997 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2998 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3008 if test -n "$CC"; then
3009 { echo "$as_me:$LINENO: result: $CC" >&5
3010 echo "${ECHO_T}$CC" >&6; }
3012 { echo "$as_me:$LINENO: result: no" >&5
3013 echo "${ECHO_T}no" >&6; }
3019 if test -z "$CC"; then
3020 # Extract the first word of "cc", so it can be a program name with args.
3021 set dummy cc
; ac_word
=$2
3022 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3024 if test "${ac_cv_prog_CC+set}" = set; then
3025 echo $ECHO_N "(cached) $ECHO_C" >&6
3027 if test -n "$CC"; then
3028 ac_cv_prog_CC
="$CC" # Let the user override the test.
3031 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3035 test -z "$as_dir" && as_dir
=.
3036 for ac_exec_ext
in '' $ac_executable_extensions; do
3037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3038 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3039 ac_prog_rejected
=yes
3043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 if test $ac_prog_rejected = yes; then
3051 # We found a bogon in the path, so make sure we never use it.
3052 set dummy
$ac_cv_prog_CC
3054 if test $# != 0; then
3055 # We chose a different compiler from the bogus one.
3056 # However, it has the same basename, so the bogon will be chosen
3057 # first if we set CC to just the basename; use the full file name.
3059 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3065 if test -n "$CC"; then
3066 { echo "$as_me:$LINENO: result: $CC" >&5
3067 echo "${ECHO_T}$CC" >&6; }
3069 { echo "$as_me:$LINENO: result: no" >&5
3070 echo "${ECHO_T}no" >&6; }
3075 if test -z "$CC"; then
3076 if test -n "$ac_tool_prefix"; then
3077 for ac_prog
in cl.exe
3079 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3080 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3081 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3082 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3083 if test "${ac_cv_prog_CC+set}" = set; then
3084 echo $ECHO_N "(cached) $ECHO_C" >&6
3086 if test -n "$CC"; then
3087 ac_cv_prog_CC
="$CC" # Let the user override the test.
3089 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3093 test -z "$as_dir" && as_dir
=.
3094 for ac_exec_ext
in '' $ac_executable_extensions; do
3095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3096 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3097 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3107 if test -n "$CC"; then
3108 { echo "$as_me:$LINENO: result: $CC" >&5
3109 echo "${ECHO_T}$CC" >&6; }
3111 { echo "$as_me:$LINENO: result: no" >&5
3112 echo "${ECHO_T}no" >&6; }
3116 test -n "$CC" && break
3119 if test -z "$CC"; then
3121 for ac_prog
in cl.exe
3123 # Extract the first word of "$ac_prog", so it can be a program name with args.
3124 set dummy
$ac_prog; ac_word
=$2
3125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3127 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3128 echo $ECHO_N "(cached) $ECHO_C" >&6
3130 if test -n "$ac_ct_CC"; then
3131 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3133 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3137 test -z "$as_dir" && as_dir
=.
3138 for ac_exec_ext
in '' $ac_executable_extensions; do
3139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3140 ac_cv_prog_ac_ct_CC
="$ac_prog"
3141 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3151 if test -n "$ac_ct_CC"; then
3152 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3153 echo "${ECHO_T}$ac_ct_CC" >&6; }
3155 { echo "$as_me:$LINENO: result: no" >&5
3156 echo "${ECHO_T}no" >&6; }
3160 test -n "$ac_ct_CC" && break
3163 if test "x$ac_ct_CC" = x
; then
3166 case $cross_compiling:$ac_tool_warned in
3168 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3169 whose name does not start with the host triplet. If you think this
3170 configuration is useful to you, please write to autoconf@gnu.org." >&5
3171 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3172 whose name does not start with the host triplet. If you think this
3173 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3174 ac_tool_warned
=yes ;;
3183 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3184 See \`config.log' for more details." >&5
3185 echo "$as_me: error: no acceptable C compiler found in \$PATH
3186 See \`config.log' for more details." >&2;}
3187 { (exit 1); exit 1; }; }
3189 # Provide some information about the compiler.
3190 echo "$as_me:$LINENO: checking for C compiler version" >&5
3191 ac_compiler
=`set X $ac_compile; echo $2`
3192 { (ac_try
="$ac_compiler --version >&5"
3194 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3195 *) ac_try_echo=$ac_try;;
3197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3198 (eval "$ac_compiler --version >&5") 2>&5
3200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3201 (exit $ac_status); }
3202 { (ac_try="$ac_compiler -v >&5"
3204 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3205 *) ac_try_echo
=$ac_try;;
3207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3208 (eval "$ac_compiler -v >&5") 2>&5
3210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3211 (exit $ac_status); }
3212 { (ac_try
="$ac_compiler -V >&5"
3214 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3217 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3218 (eval "$ac_compiler -V >&5") 2>&5
3220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3221 (exit $ac_status); }
3223 cat >conftest.$ac_ext <<_ACEOF
3226 cat confdefs.h >>conftest.$ac_ext
3227 cat >>conftest.$ac_ext <<_ACEOF
3228 /* end confdefs.h. */
3238 ac_clean_files_save=$ac_clean_files
3239 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3240 # Try to create an executable without -o first, disregard a.out.
3241 # It will help us diagnose broken compilers, and finding out an intuition
3243 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3244 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3245 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3247 # List of possible output files, starting from the most likely.
3248 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3249 # only as a last resort. b.out is created by i960 compilers.
3250 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3252 # The IRIX 6 linker writes into existing files which may not be
3253 # executable, retaining their permissions. Remove them first so a
3254 # subsequent execution test works.
3256 for ac_file in $ac_files
3259 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3260 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3265 if { (ac_try="$ac_link_default"
3267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3268 *) ac_try_echo=$ac_try;;
3270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3271 (eval "$ac_link_default") 2>&5
3273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); }; then
3275 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3276 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3277 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3278 # so that the user can short-circuit this test for compilers unknown to
3280 for ac_file
in $ac_files ''
3282 test -f "$ac_file" ||
continue
3284 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3287 # We found the default executable, but exeext='' is most
3291 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3293 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3295 # We set ac_cv_exeext here because the later test for it is not
3296 # safe: cross compilers may not add the suffix if given an `-o'
3297 # argument, so we may need to know it at that point already.
3298 # Even if this section looks crufty: it has the advantage of
3305 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3311 { echo "$as_me:$LINENO: result: $ac_file" >&5
3312 echo "${ECHO_T}$ac_file" >&6; }
3313 if test -z "$ac_file"; then
3314 echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.
$ac_ext >&5
3317 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3318 See \`config.log' for more details." >&5
3319 echo "$as_me: error: C compiler cannot create executables
3320 See \`config.log' for more details." >&2;}
3321 { (exit 77); exit 77; }; }
3324 ac_exeext
=$ac_cv_exeext
3326 # Check that the compiler produces executables we can run. If not, either
3327 # the compiler is broken, or we cross compile.
3328 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3329 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3330 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3331 # If not cross compiling, check that we can run a simple program.
3332 if test "$cross_compiling" != yes; then
3333 if { ac_try
='./$ac_file'
3334 { (case "(($ac_try" in
3335 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339 (eval "$ac_try") 2>&5
3341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342 (exit $ac_status); }; }; then
3345 if test "$cross_compiling" = maybe; then
3348 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3349 If you meant to cross compile, use \`--host'.
3350 See \`config.log' for more details.
" >&5
3351 echo "$as_me: error
: cannot run C compiled programs.
3352 If you meant to cross compile
, use \
`--host'.
3353 See \`config.log
' for more details." >&2;}
3354 { (exit 1); exit 1; }; }
3358 { echo "$as_me:$LINENO: result: yes" >&5
3359 echo "${ECHO_T}yes" >&6; }
3361 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3362 ac_clean_files=$ac_clean_files_save
3363 # Check that the compiler produces executables we can run. If not, either
3364 # the compiler is broken, or we cross compile.
3365 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3366 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3367 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3368 echo "${ECHO_T}$cross_compiling" >&6; }
3370 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3371 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3372 if { (ac_try="$ac_link"
3374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3375 *) ac_try_echo=$ac_try;;
3377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3378 (eval "$ac_link") 2>&5
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); }; then
3382 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3383 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3384 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3386 for ac_file
in conftest.exe conftest conftest.
*; do
3387 test -f "$ac_file" ||
continue
3389 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3390 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3396 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3397 See \`config.log' for more details." >&5
3398 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3399 See \`config.log' for more details." >&2;}
3400 { (exit 1); exit 1; }; }
3403 rm -f conftest
$ac_cv_exeext
3404 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3405 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3407 rm -f conftest.
$ac_ext
3408 EXEEXT
=$ac_cv_exeext
3410 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3411 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3412 if test "${ac_cv_objext+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3415 cat >conftest.
$ac_ext <<_ACEOF
3418 cat confdefs.h
>>conftest.
$ac_ext
3419 cat >>conftest.
$ac_ext <<_ACEOF
3420 /* end confdefs.h. */
3430 rm -f conftest.o conftest.obj
3431 if { (ac_try
="$ac_compile"
3433 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3434 *) ac_try_echo=$ac_try;;
3436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3437 (eval "$ac_compile") 2>&5
3439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440 (exit $ac_status); }; then
3441 for ac_file in conftest.o conftest.obj conftest.*; do
3442 test -f "$ac_file" || continue;
3444 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3445 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3450 echo "$as_me: failed program was:" >&5
3451 sed 's/^/| /' conftest.$ac_ext >&5
3453 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3454 See \`config.log
' for more details." >&5
3455 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3456 See \`config.log' for more details.
" >&2;}
3457 { (exit 1); exit 1; }; }
3460 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3462 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3463 echo "${ECHO_T}$ac_cv_objext" >&6; }
3464 OBJEXT=$ac_cv_objext
3466 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3467 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3468 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3469 echo $ECHO_N "(cached
) $ECHO_C" >&6
3471 cat >conftest.$ac_ext <<_ACEOF
3474 cat confdefs.h >>conftest.$ac_ext
3475 cat >>conftest.$ac_ext <<_ACEOF
3476 /* end confdefs.h. */
3489 rm -f conftest.$ac_objext
3490 if { (ac_try="$ac_compile"
3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3493 *) ac_try_echo=$ac_try;;
3495 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3496 (eval "$ac_compile") 2>conftest.er1
3498 grep -v '^ *+' conftest.er1 >conftest.err
3500 cat conftest.err >&5
3501 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3502 (exit $ac_status); } && {
3503 test -z "$ac_c_werror_flag" ||
3504 test ! -s conftest.err
3505 } && test -s conftest.$ac_objext; then
3508 echo "$as_me: failed program was
:" >&5
3509 sed 's/^/| /' conftest.$ac_ext >&5
3514 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3515 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3518 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3519 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3520 GCC=`test $ac_compiler_gnu = yes && echo yes`
3521 ac_test_CFLAGS=${CFLAGS+set}
3522 ac_save_CFLAGS=$CFLAGS
3523 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3524 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3525 if test "${ac_cv_prog_cc_g+set}" = set; then
3526 echo $ECHO_N "(cached
) $ECHO_C" >&6
3528 ac_save_c_werror_flag=$ac_c_werror_flag
3529 ac_c_werror_flag=yes
3532 cat >conftest.$ac_ext <<_ACEOF
3535 cat confdefs.h >>conftest.$ac_ext
3536 cat >>conftest.$ac_ext <<_ACEOF
3537 /* end confdefs.h. */
3547 rm -f conftest.$ac_objext
3548 if { (ac_try="$ac_compile"
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3553 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3554 (eval "$ac_compile") 2>conftest.er1
3556 grep -v '^ *+' conftest.er1 >conftest.err
3558 cat conftest.err >&5
3559 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3560 (exit $ac_status); } && {
3561 test -z "$ac_c_werror_flag" ||
3562 test ! -s conftest.err
3563 } && test -s conftest.$ac_objext; then
3566 echo "$as_me: failed program was
:" >&5
3567 sed 's/^/| /' conftest.$ac_ext >&5
3570 cat >conftest.$ac_ext <<_ACEOF
3573 cat confdefs.h >>conftest.$ac_ext
3574 cat >>conftest.$ac_ext <<_ACEOF
3575 /* end confdefs.h. */
3585 rm -f conftest.$ac_objext
3586 if { (ac_try="$ac_compile"
3588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3589 *) ac_try_echo=$ac_try;;
3591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3592 (eval "$ac_compile") 2>conftest.er1
3594 grep -v '^ *+' conftest.er1 >conftest.err
3596 cat conftest.err >&5
3597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3598 (exit $ac_status); } && {
3599 test -z "$ac_c_werror_flag" ||
3600 test ! -s conftest.err
3601 } && test -s conftest.$ac_objext; then
3604 echo "$as_me: failed program was
:" >&5
3605 sed 's/^/| /' conftest.$ac_ext >&5
3607 ac_c_werror_flag=$ac_save_c_werror_flag
3609 cat >conftest.$ac_ext <<_ACEOF
3612 cat confdefs.h >>conftest.$ac_ext
3613 cat >>conftest.$ac_ext <<_ACEOF
3614 /* end confdefs.h. */
3624 rm -f conftest.$ac_objext
3625 if { (ac_try="$ac_compile"
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3630 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3631 (eval "$ac_compile") 2>conftest.er1
3633 grep -v '^ *+' conftest.er1 >conftest.err
3635 cat conftest.err >&5
3636 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3637 (exit $ac_status); } && {
3638 test -z "$ac_c_werror_flag" ||
3639 test ! -s conftest.err
3640 } && test -s conftest.$ac_objext; then
3643 echo "$as_me: failed program was
:" >&5
3644 sed 's/^/| /' conftest.$ac_ext >&5
3649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3656 ac_c_werror_flag=$ac_save_c_werror_flag
3658 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3659 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3660 if test "$ac_test_CFLAGS" = set; then
3661 CFLAGS=$ac_save_CFLAGS
3662 elif test $ac_cv_prog_cc_g = yes; then
3663 if test "$GCC" = yes; then
3669 if test "$GCC" = yes; then
3675 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3676 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3677 if test "${ac_cv_prog_cc_c89+set}" = set; then
3678 echo $ECHO_N "(cached
) $ECHO_C" >&6
3680 ac_cv_prog_cc_c89=no
3682 cat >conftest.$ac_ext <<_ACEOF
3685 cat confdefs.h >>conftest.$ac_ext
3686 cat >>conftest.$ac_ext <<_ACEOF
3687 /* end confdefs.h. */
3690 #include <sys/types.h>
3691 #include <sys/stat.h>
3692 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3693 struct buf { int x; };
3694 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3695 static char *e (p, i)
3701 static char *f (char * (*g) (char **, int), char **p, ...)
3706 s = g (p, va_arg (v,int));
3711 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3712 function prototypes and stuff, but not '\xHH' hex character constants.
3713 These don't provoke an error unfortunately, instead are silently treated
3714 as 'x'. The following induces an error, until -std is added to get
3715 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3716 array size at least. It's necessary to write '\x00'==0 to get something
3717 that's true only with -std. */
3718 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3720 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3721 inside strings and character constants. */
3723 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3725 int test (int i, double x);
3726 struct s1 {int (*f) (int a);};
3727 struct s2 {int (*f) (double a);};
3728 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3734 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3739 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3740 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3742 CC="$ac_save_CC $ac_arg"
3743 rm -f conftest.$ac_objext
3744 if { (ac_try="$ac_compile"
3746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3747 *) ac_try_echo=$ac_try;;
3749 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3750 (eval "$ac_compile") 2>conftest.er1
3752 grep -v '^ *+' conftest.er1 >conftest.err
3754 cat conftest.err >&5
3755 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3756 (exit $ac_status); } && {
3757 test -z "$ac_c_werror_flag" ||
3758 test ! -s conftest.err
3759 } && test -s conftest.$ac_objext; then
3760 ac_cv_prog_cc_c89=$ac_arg
3762 echo "$as_me: failed program was
:" >&5
3763 sed 's/^/| /' conftest.$ac_ext >&5
3768 rm -f core conftest.err conftest.$ac_objext
3769 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3771 rm -f conftest.$ac_ext
3776 case "x
$ac_cv_prog_cc_c89" in
3778 { echo "$as_me:$LINENO: result
: none needed
" >&5
3779 echo "${ECHO_T}none needed
" >&6; } ;;
3781 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3782 echo "${ECHO_T}unsupported
" >&6; } ;;
3784 CC="$CC $ac_cv_prog_cc_c89"
3785 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3786 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3791 ac_cpp='$CPP $CPPFLAGS'
3792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3797 # On Suns, sometimes $CPP names a directory.
3798 if test -n "$CPP" && test -d "$CPP"; then
3802 ## If not using gcc, and on Solaris, and no CPP specified, see if
3803 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3804 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3805 test x"$CPP" = x; then
3806 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3807 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3809 if test "${emacs_cv_sunpro_c+set}" = set; then
3810 echo $ECHO_N "(cached
) $ECHO_C" >&6
3812 cat >conftest.$ac_ext <<_ACEOF
3815 cat confdefs.h >>conftest.$ac_ext
3816 cat >>conftest.$ac_ext <<_ACEOF
3817 /* end confdefs.h. */
3830 rm -f conftest.$ac_objext conftest$ac_exeext
3831 if { (ac_try="$ac_link"
3833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3834 *) ac_try_echo=$ac_try;;
3836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3837 (eval "$ac_link") 2>conftest.er1
3839 grep -v '^ *+' conftest.er1 >conftest.err
3841 cat conftest.err >&5
3842 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3843 (exit $ac_status); } && {
3844 test -z "$ac_c_werror_flag" ||
3845 test ! -s conftest.err
3846 } && test -s conftest$ac_exeext &&
3847 $as_test_x conftest$ac_exeext; then
3848 emacs_cv_sunpro_c=yes
3850 echo "$as_me: failed program was
:" >&5
3851 sed 's/^/| /' conftest.$ac_ext >&5
3853 emacs_cv_sunpro_c=no
3856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3857 conftest$ac_exeext conftest.$ac_ext
3860 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3861 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3863 if test x"$emacs_cv_sunpro_c" = xyes; then
3864 NON_GNU_CPP="$CC -E -Xs"
3868 #### Some systems specify a CPP to use unless we are using GCC.
3869 #### Now that we know whether we are using GCC, we can decide whether
3870 #### to use that one.
3871 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3876 #### Some systems specify a CC to use unless we are using GCC.
3877 #### Now that we know whether we are using GCC, we can decide whether
3878 #### to use that one.
3879 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3880 test x$cc_specified != xyes
3885 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3887 CC="$CC $GCC_TEST_OPTIONS"
3890 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3892 CC="$CC $NON_GCC_TEST_OPTIONS"
3896 ac_cpp='$CPP $CPPFLAGS'
3897 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3898 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3899 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3900 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3901 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3902 # On Suns, sometimes $CPP names a directory.
3903 if test -n "$CPP" && test -d "$CPP"; then
3906 if test -z "$CPP"; then
3907 if test "${ac_cv_prog_CPP+set}" = set; then
3908 echo $ECHO_N "(cached
) $ECHO_C" >&6
3910 # Double quotes because CPP needs to be expanded
3911 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3914 for ac_c_preproc_warn_flag in '' yes
3916 # Use a header file that comes with gcc, so configuring glibc
3917 # with a fresh cross-compiler works.
3918 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3919 # <limits.h> exists even on freestanding compilers.
3920 # On the NeXT, cc -E runs the code through the compiler's parser,
3921 # not just through cpp. "Syntax error
" is here to catch this case.
3922 cat >conftest.$ac_ext <<_ACEOF
3925 cat confdefs.h >>conftest.$ac_ext
3926 cat >>conftest.$ac_ext <<_ACEOF
3927 /* end confdefs.h. */
3929 # include <limits.h>
3931 # include <assert.h>
3935 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3943 grep -v '^ *+' conftest.er1 >conftest.err
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3947 (exit $ac_status); } >/dev/null && {
3948 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3949 test ! -s conftest.err
3953 echo "$as_me: failed program was
:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3956 # Broken: fails on valid input.
3960 rm -f conftest.err conftest.$ac_ext
3962 # OK, works on sane cases. Now check whether nonexistent headers
3963 # can be detected and how.
3964 cat >conftest.$ac_ext <<_ACEOF
3967 cat confdefs.h >>conftest.$ac_ext
3968 cat >>conftest.$ac_ext <<_ACEOF
3969 /* end confdefs.h. */
3970 #include <ac_nonexistent.h>
3972 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3975 *) ac_try_echo=$ac_try;;
3977 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3978 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3980 grep -v '^ *+' conftest.er1 >conftest.err
3982 cat conftest.err >&5
3983 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3984 (exit $ac_status); } >/dev/null && {
3985 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3986 test ! -s conftest.err
3988 # Broken: success on invalid input.
3991 echo "$as_me: failed program was
:" >&5
3992 sed 's/^/| /' conftest.$ac_ext >&5
3994 # Passes both tests.
3999 rm -f conftest.err conftest.$ac_ext
4002 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4003 rm -f conftest.err conftest.$ac_ext
4004 if $ac_preproc_ok; then
4016 { echo "$as_me:$LINENO: result
: $CPP" >&5
4017 echo "${ECHO_T}$CPP" >&6; }
4019 for ac_c_preproc_warn_flag in '' yes
4021 # Use a header file that comes with gcc, so configuring glibc
4022 # with a fresh cross-compiler works.
4023 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4024 # <limits.h> exists even on freestanding compilers.
4025 # On the NeXT, cc -E runs the code through the compiler's parser,
4026 # not just through cpp. "Syntax error
" is here to catch this case.
4027 cat >conftest.$ac_ext <<_ACEOF
4030 cat confdefs.h >>conftest.$ac_ext
4031 cat >>conftest.$ac_ext <<_ACEOF
4032 /* end confdefs.h. */
4034 # include <limits.h>
4036 # include <assert.h>
4040 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4043 *) ac_try_echo=$ac_try;;
4045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4046 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4048 grep -v '^ *+' conftest.er1 >conftest.err
4050 cat conftest.err >&5
4051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4052 (exit $ac_status); } >/dev/null && {
4053 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4054 test ! -s conftest.err
4058 echo "$as_me: failed program was
:" >&5
4059 sed 's/^/| /' conftest.$ac_ext >&5
4061 # Broken: fails on valid input.
4065 rm -f conftest.err conftest.$ac_ext
4067 # OK, works on sane cases. Now check whether nonexistent headers
4068 # can be detected and how.
4069 cat >conftest.$ac_ext <<_ACEOF
4072 cat confdefs.h >>conftest.$ac_ext
4073 cat >>conftest.$ac_ext <<_ACEOF
4074 /* end confdefs.h. */
4075 #include <ac_nonexistent.h>
4077 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4079 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4080 *) ac_try_echo=$ac_try;;
4082 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4083 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4085 grep -v '^ *+' conftest.er1 >conftest.err
4087 cat conftest.err >&5
4088 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4089 (exit $ac_status); } >/dev/null && {
4090 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4091 test ! -s conftest.err
4093 # Broken: success on invalid input.
4096 echo "$as_me: failed program was
:" >&5
4097 sed 's/^/| /' conftest.$ac_ext >&5
4099 # Passes both tests.
4104 rm -f conftest.err conftest.$ac_ext
4107 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4108 rm -f conftest.err conftest.$ac_ext
4109 if $ac_preproc_ok; then
4112 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4113 See \
`config.log' for more details." >&5
4114 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4115 See \`config.log
' for more details." >&2;}
4116 { (exit 1); exit 1; }; }
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4122 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4127 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4128 if test "${ac_cv_path_GREP+set}" = set; then
4129 echo $ECHO_N "(cached) $ECHO_C" >&6
4131 # Extract the first word of "grep ggrep" to use in msg output
4132 if test -z "$GREP"; then
4133 set dummy grep ggrep; ac_prog_name=$2
4134 if test "${ac_cv_path_GREP+set}" = set; then
4135 echo $ECHO_N "(cached) $ECHO_C" >&6
4137 ac_path_GREP_found=false
4138 # Loop through the user's path and
test for each of PROGNAME-LIST
4139 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4140 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4143 test -z "$as_dir" && as_dir
=.
4144 for ac_prog
in grep ggrep
; do
4145 for ac_exec_ext
in '' $ac_executable_extensions; do
4146 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4147 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4148 # Check for GNU ac_path_GREP and select it if it is found.
4149 # Check for GNU $ac_path_GREP
4150 case `"$ac_path_GREP" --version 2>&1` in
4152 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4155 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4158 cat "conftest.in" "conftest.in" >"conftest.tmp"
4159 mv "conftest.tmp" "conftest.in"
4160 cp "conftest.in" "conftest.nl"
4161 echo 'GREP' >> "conftest.nl"
4162 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4163 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4164 ac_count
=`expr $ac_count + 1`
4165 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4166 # Best one so far, save it but keep looking for a better one
4167 ac_cv_path_GREP
="$ac_path_GREP"
4168 ac_path_GREP_max
=$ac_count
4170 # 10*(2^10) chars as input seems more than enough
4171 test $ac_count -gt 10 && break
4173 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4177 $ac_path_GREP_found && break 3
4187 GREP
="$ac_cv_path_GREP"
4188 if test -z "$GREP"; then
4189 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4190 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4191 { (exit 1); exit 1; }; }
4195 ac_cv_path_GREP
=$GREP
4200 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4201 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4202 GREP
="$ac_cv_path_GREP"
4205 { echo "$as_me:$LINENO: checking for egrep" >&5
4206 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4207 if test "${ac_cv_path_EGREP+set}" = set; then
4208 echo $ECHO_N "(cached) $ECHO_C" >&6
4210 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4211 then ac_cv_path_EGREP
="$GREP -E"
4213 # Extract the first word of "egrep" to use in msg output
4214 if test -z "$EGREP"; then
4215 set dummy
egrep; ac_prog_name
=$2
4216 if test "${ac_cv_path_EGREP+set}" = set; then
4217 echo $ECHO_N "(cached) $ECHO_C" >&6
4219 ac_path_EGREP_found
=false
4220 # Loop through the user's path and test for each of PROGNAME-LIST
4221 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4222 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4225 test -z "$as_dir" && as_dir
=.
4226 for ac_prog
in egrep; do
4227 for ac_exec_ext
in '' $ac_executable_extensions; do
4228 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4229 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4230 # Check for GNU ac_path_EGREP and select it if it is found.
4231 # Check for GNU $ac_path_EGREP
4232 case `"$ac_path_EGREP" --version 2>&1` in
4234 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4237 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4240 cat "conftest.in" "conftest.in" >"conftest.tmp"
4241 mv "conftest.tmp" "conftest.in"
4242 cp "conftest.in" "conftest.nl"
4243 echo 'EGREP' >> "conftest.nl"
4244 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4245 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4246 ac_count
=`expr $ac_count + 1`
4247 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4248 # Best one so far, save it but keep looking for a better one
4249 ac_cv_path_EGREP
="$ac_path_EGREP"
4250 ac_path_EGREP_max
=$ac_count
4252 # 10*(2^10) chars as input seems more than enough
4253 test $ac_count -gt 10 && break
4255 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4259 $ac_path_EGREP_found && break 3
4269 EGREP
="$ac_cv_path_EGREP"
4270 if test -z "$EGREP"; then
4271 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4272 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4273 { (exit 1); exit 1; }; }
4277 ac_cv_path_EGREP
=$EGREP
4283 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4284 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4285 EGREP
="$ac_cv_path_EGREP"
4289 { echo "$as_me:$LINENO: checking for AIX" >&5
4290 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4291 cat >conftest.
$ac_ext <<_ACEOF
4294 cat confdefs.h
>>conftest.
$ac_ext
4295 cat >>conftest.
$ac_ext <<_ACEOF
4296 /* end confdefs.h. */
4302 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4303 $EGREP "yes" >/dev
/null
2>&1; then
4304 { echo "$as_me:$LINENO: result: yes" >&5
4305 echo "${ECHO_T}yes" >&6; }
4306 cat >>confdefs.h
<<\_ACEOF
4307 #define _ALL_SOURCE 1
4311 { echo "$as_me:$LINENO: result: no" >&5
4312 echo "${ECHO_T}no" >&6; }
4318 cat >>confdefs.h
<<\_ACEOF
4319 #define _GNU_SOURCE 1
4324 ### Use -Wno-pointer-sign if the compiler supports it
4325 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4326 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4327 SAVE_CFLAGS
="$CFLAGS"
4328 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4329 cat >conftest.
$ac_ext <<_ACEOF
4332 cat confdefs.h
>>conftest.
$ac_ext
4333 cat >>conftest.
$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4344 rm -f conftest.
$ac_objext
4345 if { (ac_try
="$ac_compile"
4347 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4348 *) ac_try_echo=$ac_try;;
4350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4351 (eval "$ac_compile") 2>conftest.er1
4353 grep -v '^ *+' conftest.er1 >conftest.err
4355 cat conftest.err >&5
4356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4357 (exit $ac_status); } && {
4358 test -z "$ac_c_werror_flag" ||
4359 test ! -s conftest.err
4360 } && test -s conftest.$ac_objext; then
4363 echo "$as_me: failed program was:" >&5
4364 sed 's/^/| /' conftest.$ac_ext >&5
4369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4370 if test $has_option = yes; then
4371 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4373 { echo "$as_me:$LINENO: result: $has_option" >&5
4374 echo "${ECHO_T}$has_option" >&6; }
4375 CFLAGS="$SAVE_CFLAGS"
4379 #### Some other nice autoconf tests.
4381 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4382 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4384 if test "$LN_S" = "ln -s"; then
4385 { echo "$as_me:$LINENO: result: yes" >&5
4386 echo "${ECHO_T}yes" >&6; }
4388 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4389 echo "${ECHO_T}no, using $LN_S" >&6; }
4393 ac_cpp='$CPP $CPPFLAGS'
4394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4397 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4398 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4399 # On Suns, sometimes $CPP names a directory.
4400 if test -n "$CPP" && test -d "$CPP"; then
4403 if test -z "$CPP"; then
4404 if test "${ac_cv_prog_CPP+set}" = set; then
4405 echo $ECHO_N "(cached) $ECHO_C" >&6
4407 # Double quotes because CPP needs to be expanded
4408 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4411 for ac_c_preproc_warn_flag in '' yes
4413 # Use a header file that comes with gcc, so configuring glibc
4414 # with a fresh cross-compiler works.
4415 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4416 # <limits.h> exists even on freestanding compilers.
4417 # On the NeXT, cc -E runs the code through the compiler's parser,
4418 # not just through cpp. "Syntax error" is here to catch this case.
4419 cat >conftest.$ac_ext <<_ACEOF
4422 cat confdefs.h >>conftest.$ac_ext
4423 cat >>conftest.$ac_ext <<_ACEOF
4424 /* end confdefs.h. */
4426 # include <limits.h>
4428 # include <assert.h>
4432 if { (ac_try="$ac_cpp conftest.$ac_ext"
4434 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4435 *) ac_try_echo
=$ac_try;;
4437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4440 grep -v '^ *+' conftest.er1
>conftest.err
4442 cat conftest.err
>&5
4443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4444 (exit $ac_status); } >/dev
/null
&& {
4445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4446 test ! -s conftest.err
4450 echo "$as_me: failed program was:" >&5
4451 sed 's/^/| /' conftest.
$ac_ext >&5
4453 # Broken: fails on valid input.
4457 rm -f conftest.err conftest.
$ac_ext
4459 # OK, works on sane cases. Now check whether nonexistent headers
4460 # can be detected and how.
4461 cat >conftest.
$ac_ext <<_ACEOF
4464 cat confdefs.h
>>conftest.
$ac_ext
4465 cat >>conftest.
$ac_ext <<_ACEOF
4466 /* end confdefs.h. */
4467 #include <ac_nonexistent.h>
4469 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4477 grep -v '^ *+' conftest.er1 >conftest.err
4479 cat conftest.err >&5
4480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4481 (exit $ac_status); } >/dev/null && {
4482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4483 test ! -s conftest.err
4485 # Broken: success on invalid input.
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4491 # Passes both tests.
4496 rm -f conftest.err conftest.$ac_ext
4499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4500 rm -f conftest.err conftest.
$ac_ext
4501 if $ac_preproc_ok; then
4513 { echo "$as_me:$LINENO: result: $CPP" >&5
4514 echo "${ECHO_T}$CPP" >&6; }
4516 for ac_c_preproc_warn_flag
in '' yes
4518 # Use a header file that comes with gcc, so configuring glibc
4519 # with a fresh cross-compiler works.
4520 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4521 # <limits.h> exists even on freestanding compilers.
4522 # On the NeXT, cc -E runs the code through the compiler's parser,
4523 # not just through cpp. "Syntax error" is here to catch this case.
4524 cat >conftest.
$ac_ext <<_ACEOF
4527 cat confdefs.h
>>conftest.
$ac_ext
4528 cat >>conftest.
$ac_ext <<_ACEOF
4529 /* end confdefs.h. */
4531 # include <limits.h>
4533 # include <assert.h>
4537 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4540 *) ac_try_echo=$ac_try;;
4542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4545 grep -v '^ *+' conftest.er1 >conftest.err
4547 cat conftest.err >&5
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); } >/dev/null && {
4550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4551 test ! -s conftest.err
4555 echo "$as_me: failed program was:" >&5
4556 sed 's/^/| /' conftest.$ac_ext >&5
4558 # Broken: fails on valid input.
4562 rm -f conftest.err conftest.$ac_ext
4564 # OK, works on sane cases. Now check whether nonexistent headers
4565 # can be detected and how.
4566 cat >conftest.$ac_ext <<_ACEOF
4569 cat confdefs.h >>conftest.$ac_ext
4570 cat >>conftest.$ac_ext <<_ACEOF
4571 /* end confdefs.h. */
4572 #include <ac_nonexistent.h>
4574 if { (ac_try="$ac_cpp conftest.$ac_ext"
4576 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4577 *) ac_try_echo
=$ac_try;;
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4582 grep -v '^ *+' conftest.er1
>conftest.err
4584 cat conftest.err
>&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } >/dev
/null
&& {
4587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4588 test ! -s conftest.err
4590 # Broken: success on invalid input.
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.
$ac_ext >&5
4596 # Passes both tests.
4601 rm -f conftest.err conftest.
$ac_ext
4604 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4605 rm -f conftest.err conftest.
$ac_ext
4606 if $ac_preproc_ok; then
4609 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4610 See \`config.log' for more details." >&5
4611 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4612 See \`config.log' for more details." >&2;}
4613 { (exit 1); exit 1; }; }
4617 ac_cpp
='$CPP $CPPFLAGS'
4618 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4619 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4620 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4622 # Find a good install program. We prefer a C program (faster),
4623 # so one script is as good as another. But avoid the broken or
4624 # incompatible versions:
4625 # SysV /etc/install, /usr/sbin/install
4626 # SunOS /usr/etc/install
4627 # IRIX /sbin/install
4629 # AmigaOS /C/install, which installs bootblocks on floppy discs
4630 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4631 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4632 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4633 # OS/2's system install, which has a completely different semantic
4634 # ./install, which can be erroneously created by make from ./install.sh.
4635 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4636 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4637 if test -z "$INSTALL"; then
4638 if test "${ac_cv_path_install+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4641 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4645 test -z "$as_dir" && as_dir
=.
4646 # Account for people who put trailing slashes in PATH elements.
4648 .
/ | .
// |
/cC
/* | \
4649 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4650 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4653 # OSF1 and SCO ODT 3.0 have their own names for install.
4654 # Don't use installbsd from OSF since it installs stuff as root
4656 for ac_prog
in ginstall scoinst
install; do
4657 for ac_exec_ext
in '' $ac_executable_extensions; do
4658 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4659 if test $ac_prog = install &&
4660 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4661 # AIX install. It has an incompatible calling convention.
4663 elif test $ac_prog = install &&
4664 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4665 # program-specific install script used by HP pwplus--don't use.
4668 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4681 if test "${ac_cv_path_install+set}" = set; then
4682 INSTALL
=$ac_cv_path_install
4684 # As a last resort, use the slow shell script. Don't cache a
4685 # value for INSTALL within a source directory, because that will
4686 # break other packages using the cache if that directory is
4687 # removed, or if the value is a relative name.
4688 INSTALL
=$ac_install_sh
4691 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4692 echo "${ECHO_T}$INSTALL" >&6; }
4694 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4695 # It thinks the first close brace ends the variable substitution.
4696 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4698 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4700 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4702 if test "x$RANLIB" = x
; then
4703 if test -n "$ac_tool_prefix"; then
4704 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4705 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4708 if test "${ac_cv_prog_RANLIB+set}" = set; then
4709 echo $ECHO_N "(cached) $ECHO_C" >&6
4711 if test -n "$RANLIB"; then
4712 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4718 test -z "$as_dir" && as_dir
=.
4719 for ac_exec_ext
in '' $ac_executable_extensions; do
4720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4721 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4731 RANLIB
=$ac_cv_prog_RANLIB
4732 if test -n "$RANLIB"; then
4733 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4734 echo "${ECHO_T}$RANLIB" >&6; }
4736 { echo "$as_me:$LINENO: result: no" >&5
4737 echo "${ECHO_T}no" >&6; }
4742 if test -z "$ac_cv_prog_RANLIB"; then
4743 ac_ct_RANLIB
=$RANLIB
4744 # Extract the first word of "ranlib", so it can be a program name with args.
4745 set dummy ranlib
; ac_word
=$2
4746 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4748 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4749 echo $ECHO_N "(cached) $ECHO_C" >&6
4751 if test -n "$ac_ct_RANLIB"; then
4752 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4758 test -z "$as_dir" && as_dir
=.
4759 for ac_exec_ext
in '' $ac_executable_extensions; do
4760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4761 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4771 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4772 if test -n "$ac_ct_RANLIB"; then
4773 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4774 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4776 { echo "$as_me:$LINENO: result: no" >&5
4777 echo "${ECHO_T}no" >&6; }
4780 if test "x$ac_ct_RANLIB" = x
; then
4783 case $cross_compiling:$ac_tool_warned in
4785 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4786 whose name does not start with the host triplet. If you think this
4787 configuration is useful to you, please write to autoconf@gnu.org." >&5
4788 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4789 whose name does not start with the host triplet. If you think this
4790 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4791 ac_tool_warned
=yes ;;
4793 RANLIB
=$ac_ct_RANLIB
4796 RANLIB
="$ac_cv_prog_RANLIB"
4800 # Extract the first word of "install-info", so it can be a program name with args.
4801 set dummy install-info
; ac_word
=$2
4802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4804 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4805 echo $ECHO_N "(cached) $ECHO_C" >&6
4807 case $INSTALL_INFO in
4809 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4812 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4816 test -z "$as_dir" && as_dir
=.
4817 for ac_exec_ext
in '' $ac_executable_extensions; do
4818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4819 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4820 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4830 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4831 if test -n "$INSTALL_INFO"; then
4832 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4833 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4835 { echo "$as_me:$LINENO: result: no" >&5
4836 echo "${ECHO_T}no" >&6; }
4840 # Extract the first word of "install-info", so it can be a program name with args.
4841 set dummy install-info
; ac_word
=$2
4842 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4843 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4844 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4845 echo $ECHO_N "(cached) $ECHO_C" >&6
4847 case $INSTALL_INFO in
4849 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4852 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4853 for as_dir
in /usr
/sbin
4856 test -z "$as_dir" && as_dir
=.
4857 for ac_exec_ext
in '' $ac_executable_extensions; do
4858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4859 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4860 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4870 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4871 if test -n "$INSTALL_INFO"; then
4872 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4873 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4875 { echo "$as_me:$LINENO: result: no" >&5
4876 echo "${ECHO_T}no" >&6; }
4880 # Extract the first word of "install-info", so it can be a program name with args.
4881 set dummy install-info
; ac_word
=$2
4882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4884 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4885 echo $ECHO_N "(cached) $ECHO_C" >&6
4887 case $INSTALL_INFO in
4889 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4896 test -z "$as_dir" && as_dir
=.
4897 for ac_exec_ext
in '' $ac_executable_extensions; do
4898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4899 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4907 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4911 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4912 if test -n "$INSTALL_INFO"; then
4913 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4914 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4916 { echo "$as_me:$LINENO: result: no" >&5
4917 echo "${ECHO_T}no" >&6; }
4921 # Extract the first word of "gzip", so it can be a program name with args.
4922 set dummy
gzip; ac_word
=$2
4923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4925 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4926 echo $ECHO_N "(cached) $ECHO_C" >&6
4930 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4933 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4937 test -z "$as_dir" && as_dir
=.
4938 for ac_exec_ext
in '' $ac_executable_extensions; do
4939 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4940 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4951 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4952 if test -n "$GZIP_PROG"; then
4953 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4954 echo "${ECHO_T}$GZIP_PROG" >&6; }
4956 { echo "$as_me:$LINENO: result: no" >&5
4957 echo "${ECHO_T}no" >&6; }
4963 ## Need makeinfo >= 4.6 (?) to build the manuals.
4964 # Extract the first word of "makeinfo", so it can be a program name with args.
4965 set dummy makeinfo
; ac_word
=$2
4966 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4968 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4969 echo $ECHO_N "(cached) $ECHO_C" >&6
4973 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
4976 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4980 test -z "$as_dir" && as_dir
=.
4981 for ac_exec_ext
in '' $ac_executable_extensions; do
4982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4983 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
4984 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4991 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
4995 MAKEINFO
=$ac_cv_path_MAKEINFO
4996 if test -n "$MAKEINFO"; then
4997 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4998 echo "${ECHO_T}$MAKEINFO" >&6; }
5000 { echo "$as_me:$LINENO: result: no" >&5
5001 echo "${ECHO_T}no" >&6; }
5005 if test "$MAKEINFO" != "no" && \
5006 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
5010 if test "$MAKEINFO" = "no"; then
5011 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5012 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5013 { (exit 1); exit 1; }; }
5018 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5020 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5023 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5025 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5029 late_LDFLAGS
=$LDFLAGS
5030 if test "$GCC" = yes; then
5031 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5033 LDFLAGS
="$LDFLAGS -znocombreloc"
5036 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5037 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5038 cat >conftest.
$ac_ext <<_ACEOF
5041 rm -f conftest.
$ac_objext conftest
$ac_exeext
5042 if { (ac_try
="$ac_link"
5044 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5045 *) ac_try_echo=$ac_try;;
5047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5048 (eval "$ac_link") 2>conftest.er1
5050 grep -v '^ *+' conftest.er1 >conftest.err
5052 cat conftest.err >&5
5053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5054 (exit $ac_status); } && {
5055 test -z "$ac_c_werror_flag" ||
5056 test ! -s conftest.err
5057 } && test -s conftest$ac_exeext &&
5058 $as_test_x conftest$ac_exeext; then
5059 { echo "$as_me:$LINENO: result: yes" >&5
5060 echo "${ECHO_T}yes" >&6; }
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5065 LDFLAGS=$late_LDFLAGS
5066 { echo "$as_me:$LINENO: result: no" >&5
5067 echo "${ECHO_T}no" >&6; }
5070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5071 conftest$ac_exeext conftest.$ac_ext
5073 #### Extract some information from the operating system and machine files.
5075 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5076 - which libraries the lib-src programs will want, and
5077 - whether the GNU malloc routines are usable..." >&5
5078 echo "$as_me: checking the machine- and system-dependent files to find out
5079 - which libraries the lib-src programs will want, and
5080 - whether the GNU malloc routines are usable..." >&6;}
5082 ### First figure out CFLAGS (which we use for running the compiler here)
5083 ### and REAL_CFLAGS (which we use for real compilation).
5084 ### The two are the same except on a few systems, where they are made
5085 ### different to work around various lossages. For example,
5086 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5087 ### as implying static linking.
5089 ### If the CFLAGS env var is specified, we use that value
5090 ### instead of the default.
5092 ### It's not important that this name contain the PID; you can't run
5093 ### two configures in the same directory and have anything work
5095 tempcname="conftest.c"
5098 #include "'${srcdir}'/src/'${opsysfile}'"
5099 #include "'${srcdir}'/src/'${machfile}'"
5100 #ifndef LIBS_MACHINE
5101 #define LIBS_MACHINE
5106 #ifndef C_SWITCH_SYSTEM
5107 #define C_SWITCH_SYSTEM
5109 #ifndef C_SWITCH_MACHINE
5110 #define C_SWITCH_MACHINE
5112 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5113 configure___ c_switch_system=C_SWITCH_SYSTEM
5114 configure___ c_switch_machine=C_SWITCH_MACHINE
5117 #define LIB_X11_LIB -lX11
5120 #ifndef LIBX11_SYSTEM
5121 #define LIBX11_SYSTEM
5123 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5126 configure___ unexec=UNEXEC
5128 configure___ unexec=unexec.o
5131 #ifdef SYSTEM_MALLOC
5132 configure___ system_malloc=yes
5134 configure___ system_malloc=no
5137 #ifdef USE_MMAP_FOR_BUFFERS
5138 configure___ use_mmap_for_buffers=yes
5140 configure___ use_mmap_for_buffers=no
5143 #ifndef C_DEBUG_SWITCH
5144 #define C_DEBUG_SWITCH -g
5147 #ifndef C_OPTIMIZE_SWITCH
5149 #define C_OPTIMIZE_SWITCH -O2
5151 #define C_OPTIMIZE_SWITCH -O
5155 #ifndef C_WARNINGS_SWITCH
5156 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5159 #ifndef LD_SWITCH_MACHINE
5160 #define LD_SWITCH_MACHINE
5163 #ifndef LD_SWITCH_SYSTEM
5164 #define LD_SWITCH_SYSTEM
5167 #ifndef LD_SWITCH_X_SITE_AUX
5168 #define LD_SWITCH_X_SITE_AUX
5171 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5172 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5174 #ifdef THIS_IS_CONFIGURE
5176 /* Get the CFLAGS for tests in configure. */
5178 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5180 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5183 #else /* not THIS_IS_CONFIGURE */
5185 /* Get the CFLAGS for real compilation. */
5187 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5189 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5192 #endif /* not THIS_IS_CONFIGURE */
5195 # The value of CPP is a quoted variable reference, so we need to do this
5196 # to get its actual value...
5197 CPP=`eval "echo $CPP"`
5198 eval `${CPP} -Isrc ${tempcname} \
5199 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5200 if test "x$SPECIFIED_CFLAGS" = x; then
5201 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5202 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5204 REAL_CFLAGS="$CFLAGS"
5208 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5210 ### Make sure subsequent tests use flags consistent with the build flags.
5212 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5213 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5215 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5220 # Check whether --enable-largefile was given.
5221 if test "${enable_largefile+set}" = set; then
5222 enableval=$enable_largefile;
5225 if test "$enable_largefile" != no; then
5227 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5228 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5229 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5230 echo $ECHO_N "(cached) $ECHO_C" >&6
5232 ac_cv_sys_largefile_CC=no
5233 if test "$GCC" != yes; then
5236 # IRIX 6.2 and later do not support large files by default,
5237 # so use the C compiler's -n32 option if that helps.
5238 cat >conftest.$ac_ext <<_ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 #include <sys/types.h>
5245 /* Check that off_t can represent 2**63 - 1 correctly.
5246 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5247 since some C++ compilers masquerading as C compilers
5248 incorrectly reject 9223372036854775807. */
5249 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5250 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5251 && LARGE_OFF_T % 2147483647 == 1)
5261 rm -f conftest.$ac_objext
5262 if { (ac_try="$ac_compile"
5264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5265 *) ac_try_echo
=$ac_try;;
5267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5268 (eval "$ac_compile") 2>conftest.er1
5270 grep -v '^ *+' conftest.er1
>conftest.err
5272 cat conftest.err
>&5
5273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5274 (exit $ac_status); } && {
5275 test -z "$ac_c_werror_flag" ||
5276 test ! -s conftest.err
5277 } && test -s conftest.
$ac_objext; then
5280 echo "$as_me: failed program was:" >&5
5281 sed 's/^/| /' conftest.
$ac_ext >&5
5286 rm -f core conftest.err conftest.
$ac_objext
5288 rm -f conftest.
$ac_objext
5289 if { (ac_try
="$ac_compile"
5291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_compile") 2>conftest.er1
5297 grep -v '^ *+' conftest.er1 >conftest.err
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } && {
5302 test -z "$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5304 } && test -s conftest.$ac_objext; then
5305 ac_cv_sys_largefile_CC=' -n32'; break
5307 echo "$as_me: failed program was:" >&5
5308 sed 's/^/| /' conftest.$ac_ext >&5
5313 rm -f core conftest.err conftest.$ac_objext
5317 rm -f conftest.$ac_ext
5320 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5321 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5322 if test "$ac_cv_sys_largefile_CC" != no; then
5323 CC=$CC$ac_cv_sys_largefile_CC
5326 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5327 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5328 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5329 echo $ECHO_N "(cached) $ECHO_C" >&6
5332 cat >conftest.$ac_ext <<_ACEOF
5335 cat confdefs.h >>conftest.$ac_ext
5336 cat >>conftest.$ac_ext <<_ACEOF
5337 /* end confdefs.h. */
5338 #include <sys/types.h>
5339 /* Check that off_t can represent 2**63 - 1 correctly.
5340 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5341 since some C++ compilers masquerading as C compilers
5342 incorrectly reject 9223372036854775807. */
5343 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5344 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5345 && LARGE_OFF_T % 2147483647 == 1)
5355 rm -f conftest.$ac_objext
5356 if { (ac_try="$ac_compile"
5358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5359 *) ac_try_echo
=$ac_try;;
5361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5362 (eval "$ac_compile") 2>conftest.er1
5364 grep -v '^ *+' conftest.er1
>conftest.err
5366 cat conftest.err
>&5
5367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5368 (exit $ac_status); } && {
5369 test -z "$ac_c_werror_flag" ||
5370 test ! -s conftest.err
5371 } && test -s conftest.
$ac_objext; then
5372 ac_cv_sys_file_offset_bits
=no
; break
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.
$ac_ext >&5
5380 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5381 cat >conftest.
$ac_ext <<_ACEOF
5384 cat confdefs.h
>>conftest.
$ac_ext
5385 cat >>conftest.
$ac_ext <<_ACEOF
5386 /* end confdefs.h. */
5387 #define _FILE_OFFSET_BITS 64
5388 #include <sys/types.h>
5389 /* Check that off_t can represent 2**63 - 1 correctly.
5390 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5391 since some C++ compilers masquerading as C compilers
5392 incorrectly reject 9223372036854775807. */
5393 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5394 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5395 && LARGE_OFF_T % 2147483647 == 1)
5405 rm -f conftest.
$ac_objext
5406 if { (ac_try
="$ac_compile"
5408 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5409 *) ac_try_echo=$ac_try;;
5411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5412 (eval "$ac_compile") 2>conftest.er1
5414 grep -v '^ *+' conftest.er1 >conftest.err
5416 cat conftest.err >&5
5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5418 (exit $ac_status); } && {
5419 test -z "$ac_c_werror_flag" ||
5420 test ! -s conftest.err
5421 } && test -s conftest.$ac_objext; then
5422 ac_cv_sys_file_offset_bits=64; break
5424 echo "$as_me: failed program was:" >&5
5425 sed 's/^/| /' conftest.$ac_ext >&5
5430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5431 ac_cv_sys_file_offset_bits=unknown
5435 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5436 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5437 case $ac_cv_sys_file_offset_bits in #(
5440 cat >>confdefs.h <<_ACEOF
5441 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5446 if test $ac_cv_sys_file_offset_bits = unknown; then
5447 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5448 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5449 if test "${ac_cv_sys_large_files+set}" = set; then
5450 echo $ECHO_N "(cached) $ECHO_C" >&6
5453 cat >conftest.$ac_ext <<_ACEOF
5456 cat confdefs.h >>conftest.$ac_ext
5457 cat >>conftest.$ac_ext <<_ACEOF
5458 /* end confdefs.h. */
5459 #include <sys/types.h>
5460 /* Check that off_t can represent 2**63 - 1 correctly.
5461 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5462 since some C++ compilers masquerading as C compilers
5463 incorrectly reject 9223372036854775807. */
5464 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5465 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5466 && LARGE_OFF_T % 2147483647 == 1)
5476 rm -f conftest.$ac_objext
5477 if { (ac_try="$ac_compile"
5479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5480 *) ac_try_echo
=$ac_try;;
5482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5483 (eval "$ac_compile") 2>conftest.er1
5485 grep -v '^ *+' conftest.er1
>conftest.err
5487 cat conftest.err
>&5
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); } && {
5490 test -z "$ac_c_werror_flag" ||
5491 test ! -s conftest.err
5492 } && test -s conftest.
$ac_objext; then
5493 ac_cv_sys_large_files
=no
; break
5495 echo "$as_me: failed program was:" >&5
5496 sed 's/^/| /' conftest.
$ac_ext >&5
5501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5502 cat >conftest.
$ac_ext <<_ACEOF
5505 cat confdefs.h
>>conftest.
$ac_ext
5506 cat >>conftest.
$ac_ext <<_ACEOF
5507 /* end confdefs.h. */
5508 #define _LARGE_FILES 1
5509 #include <sys/types.h>
5510 /* Check that off_t can represent 2**63 - 1 correctly.
5511 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5512 since some C++ compilers masquerading as C compilers
5513 incorrectly reject 9223372036854775807. */
5514 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5515 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5516 && LARGE_OFF_T % 2147483647 == 1)
5526 rm -f conftest.
$ac_objext
5527 if { (ac_try
="$ac_compile"
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_compile") 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_objext; then
5543 ac_cv_sys_large_files=1; break
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5552 ac_cv_sys_large_files=unknown
5556 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5557 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5558 case $ac_cv_sys_large_files in #(
5561 cat >>confdefs.h <<_ACEOF
5562 #define _LARGE_FILES $ac_cv_sys_large_files
5572 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5573 ### be located in either /usr/lib64 or /usr/lib.
5574 case "${canonical}" in
5575 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5576 if test -d /usr/lib64; then
5578 cat >>confdefs.h <<\_ACEOF
5579 #define HAVE_LIB64_DIR 1
5588 if test "${with_sound}" != "no"; then
5589 # Sound support for GNU/Linux and the free BSDs.
5590 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5591 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5592 if test "${ac_cv_header_stdc+set}" = set; then
5593 echo $ECHO_N "(cached) $ECHO_C" >&6
5595 cat >conftest.$ac_ext <<_ACEOF
5598 cat confdefs.h >>conftest.$ac_ext
5599 cat >>conftest.$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5614 rm -f conftest.$ac_objext
5615 if { (ac_try="$ac_compile"
5617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5618 *) ac_try_echo
=$ac_try;;
5620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5621 (eval "$ac_compile") 2>conftest.er1
5623 grep -v '^ *+' conftest.er1
>conftest.err
5625 cat conftest.err
>&5
5626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5627 (exit $ac_status); } && {
5628 test -z "$ac_c_werror_flag" ||
5629 test ! -s conftest.err
5630 } && test -s conftest.
$ac_objext; then
5631 ac_cv_header_stdc
=yes
5633 echo "$as_me: failed program was:" >&5
5634 sed 's/^/| /' conftest.
$ac_ext >&5
5636 ac_cv_header_stdc
=no
5639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5641 if test $ac_cv_header_stdc = yes; then
5642 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5643 cat >conftest.
$ac_ext <<_ACEOF
5646 cat confdefs.h
>>conftest.
$ac_ext
5647 cat >>conftest.
$ac_ext <<_ACEOF
5648 /* end confdefs.h. */
5652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5653 $EGREP "memchr" >/dev
/null
2>&1; then
5656 ac_cv_header_stdc
=no
5662 if test $ac_cv_header_stdc = yes; then
5663 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5664 cat >conftest.
$ac_ext <<_ACEOF
5667 cat confdefs.h
>>conftest.
$ac_ext
5668 cat >>conftest.
$ac_ext <<_ACEOF
5669 /* end confdefs.h. */
5673 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5674 $EGREP "free" >/dev
/null
2>&1; then
5677 ac_cv_header_stdc
=no
5683 if test $ac_cv_header_stdc = yes; then
5684 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5685 if test "$cross_compiling" = yes; then
5688 cat >conftest.
$ac_ext <<_ACEOF
5691 cat confdefs.h
>>conftest.
$ac_ext
5692 cat >>conftest.
$ac_ext <<_ACEOF
5693 /* end confdefs.h. */
5696 #if ((' ' & 0x0FF) == 0x020)
5697 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5698 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5700 # define ISLOWER(c) \
5701 (('a' <= (c) && (c) <= 'i') \
5702 || ('j' <= (c) && (c) <= 'r') \
5703 || ('s' <= (c) && (c) <= 'z'))
5704 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5707 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5712 for (i = 0; i < 256; i++)
5713 if (XOR (islower (i), ISLOWER (i))
5714 || toupper (i) != TOUPPER (i))
5719 rm -f conftest
$ac_exeext
5720 if { (ac_try
="$ac_link"
5722 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5723 *) ac_try_echo=$ac_try;;
5725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5726 (eval "$ac_link") 2>&5
5728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5729 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5730 { (case "(($ac_try" in
5731 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5732 *) ac_try_echo
=$ac_try;;
5734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5735 (eval "$ac_try") 2>&5
5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5738 (exit $ac_status); }; }; then
5741 echo "$as_me: program exited with status $ac_status" >&5
5742 echo "$as_me: failed program was:" >&5
5743 sed 's/^/| /' conftest.
$ac_ext >&5
5746 ac_cv_header_stdc
=no
5748 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5754 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5755 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5756 if test $ac_cv_header_stdc = yes; then
5758 cat >>confdefs.h
<<\_ACEOF
5759 #define STDC_HEADERS 1
5764 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5774 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5775 inttypes.h stdint.h unistd.h
5777 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5780 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5781 echo $ECHO_N "(cached) $ECHO_C" >&6
5783 cat >conftest.
$ac_ext <<_ACEOF
5786 cat confdefs.h
>>conftest.
$ac_ext
5787 cat >>conftest.
$ac_ext <<_ACEOF
5788 /* end confdefs.h. */
5789 $ac_includes_default
5791 #include <$ac_header>
5793 rm -f conftest.
$ac_objext
5794 if { (ac_try
="$ac_compile"
5796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5797 *) ac_try_echo=$ac_try;;
5799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5800 (eval "$ac_compile") 2>conftest.er1
5802 grep -v '^ *+' conftest.er1 >conftest.err
5804 cat conftest.err >&5
5805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5806 (exit $ac_status); } && {
5807 test -z "$ac_c_werror_flag" ||
5808 test ! -s conftest.err
5809 } && test -s conftest.$ac_objext; then
5810 eval "$as_ac_Header=yes"
5812 echo "$as_me: failed program was:" >&5
5813 sed 's/^/| /' conftest.$ac_ext >&5
5815 eval "$as_ac_Header=no"
5818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5820 ac_res=`eval echo '${'$as_ac_Header'}'`
5821 { echo "$as_me:$LINENO: result: $ac_res" >&5
5822 echo "${ECHO_T}$ac_res" >&6; }
5823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5824 cat >>confdefs.h <<_ACEOF
5825 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5836 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5838 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5840 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5841 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5842 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5843 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 ac_res=`eval echo '${'$as_ac_Header'}'`
5846 { echo "$as_me:$LINENO: result: $ac_res" >&5
5847 echo "${ECHO_T}$ac_res" >&6; }
5849 # Is the header compilable?
5850 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5851 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5852 cat >conftest.$ac_ext <<_ACEOF
5855 cat confdefs.h >>conftest.$ac_ext
5856 cat >>conftest.$ac_ext <<_ACEOF
5857 /* end confdefs.h. */
5858 $ac_includes_default
5859 #include <$ac_header>
5861 rm -f conftest.$ac_objext
5862 if { (ac_try="$ac_compile"
5864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5865 *) ac_try_echo
=$ac_try;;
5867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5868 (eval "$ac_compile") 2>conftest.er1
5870 grep -v '^ *+' conftest.er1
>conftest.err
5872 cat conftest.err
>&5
5873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5874 (exit $ac_status); } && {
5875 test -z "$ac_c_werror_flag" ||
5876 test ! -s conftest.err
5877 } && test -s conftest.
$ac_objext; then
5878 ac_header_compiler
=yes
5880 echo "$as_me: failed program was:" >&5
5881 sed 's/^/| /' conftest.
$ac_ext >&5
5883 ac_header_compiler
=no
5886 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5887 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5888 echo "${ECHO_T}$ac_header_compiler" >&6; }
5890 # Is the header present?
5891 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5892 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5893 cat >conftest.
$ac_ext <<_ACEOF
5896 cat confdefs.h
>>conftest.
$ac_ext
5897 cat >>conftest.
$ac_ext <<_ACEOF
5898 /* end confdefs.h. */
5899 #include <$ac_header>
5901 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5903 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5904 *) ac_try_echo=$ac_try;;
5906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5907 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5909 grep -v '^ *+' conftest.er1 >conftest.err
5911 cat conftest.err >&5
5912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5913 (exit $ac_status); } >/dev/null && {
5914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5915 test ! -s conftest.err
5917 ac_header_preproc=yes
5919 echo "$as_me: failed program was:" >&5
5920 sed 's/^/| /' conftest.$ac_ext >&5
5922 ac_header_preproc=no
5925 rm -f conftest.err conftest.$ac_ext
5926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5927 echo "${ECHO_T}$ac_header_preproc" >&6; }
5929 # So? What about this header?
5930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5932 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5936 ac_header_preproc=yes
5939 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5941 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5942 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5943 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5945 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5946 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5947 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5949 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5954 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5955 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5956 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5957 echo $ECHO_N "(cached) $ECHO_C" >&6
5959 eval "$as_ac_Header=\$ac_header_preproc"
5961 ac_res=`eval echo '${'$as_ac_Header'}'`
5962 { echo "$as_me:$LINENO: result: $ac_res" >&5
5963 echo "${ECHO_T}$ac_res" >&6; }
5966 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5967 cat >>confdefs.h <<_ACEOF
5968 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5975 # Emulation library used on NetBSD.
5976 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5977 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5978 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 ac_check_lib_save_LIBS=$LIBS
5982 LIBS="-lossaudio $LIBS"
5983 cat >conftest.$ac_ext <<_ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5990 /* Override any GCC internal prototype to avoid an error.
5991 Use char because int might match the return type of a GCC
5992 builtin and then its argument prototype would still apply. */
6000 return _oss_ioctl ();
6005 rm -f conftest.$ac_objext conftest$ac_exeext
6006 if { (ac_try="$ac_link"
6008 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6009 *) ac_try_echo
=$ac_try;;
6011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6012 (eval "$ac_link") 2>conftest.er1
6014 grep -v '^ *+' conftest.er1
>conftest.err
6016 cat conftest.err
>&5
6017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6018 (exit $ac_status); } && {
6019 test -z "$ac_c_werror_flag" ||
6020 test ! -s conftest.err
6021 } && test -s conftest
$ac_exeext &&
6022 $as_test_x conftest
$ac_exeext; then
6023 ac_cv_lib_ossaudio__oss_ioctl
=yes
6025 echo "$as_me: failed program was:" >&5
6026 sed 's/^/| /' conftest.
$ac_ext >&5
6028 ac_cv_lib_ossaudio__oss_ioctl
=no
6031 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6032 conftest
$ac_exeext conftest.
$ac_ext
6033 LIBS
=$ac_check_lib_save_LIBS
6035 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6036 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6037 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6046 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6050 # Extract the first word of "pkg-config", so it can be a program name with args.
6051 set dummy pkg-config
; ac_word
=$2
6052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6062 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6066 test -z "$as_dir" && as_dir
=.
6067 for ac_exec_ext
in '' $ac_executable_extensions; do
6068 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6069 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6077 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6081 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6082 if test -n "$PKG_CONFIG"; then
6083 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6084 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6086 { echo "$as_me:$LINENO: result: no" >&5
6087 echo "${ECHO_T}no" >&6; }
6092 if test "$PKG_CONFIG" = "no" ; then
6095 PKG_CONFIG_MIN_VERSION
=0.9.0
6096 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6097 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6098 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6100 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6101 { echo "$as_me:$LINENO: result: yes" >&5
6102 echo "${ECHO_T}yes" >&6; }
6105 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6106 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6107 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6108 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6109 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6111 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6112 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6113 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6114 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6115 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6117 { echo "$as_me:$LINENO: result: no" >&5
6118 echo "${ECHO_T}no" >&6; }
6121 ## If we have a custom action on failure, don't print errors, but
6122 ## do set a variable so people can do so.
6123 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6130 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6131 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6135 if test $succeeded = yes; then
6141 if test $HAVE_ALSA = yes; then
6142 SAVE_CFLAGS
="$CFLAGS"
6143 SAVE_LDFLAGS
="$LDFLAGS"
6144 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6145 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6146 cat >conftest.
$ac_ext <<_ACEOF
6149 cat confdefs.h
>>conftest.
$ac_ext
6150 cat >>conftest.
$ac_ext <<_ACEOF
6151 /* end confdefs.h. */
6152 #include <asoundlib.h>
6156 snd_lib_error_set_handler (0);
6161 rm -f conftest.
$ac_objext
6162 if { (ac_try
="$ac_compile"
6164 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6165 *) ac_try_echo=$ac_try;;
6167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6168 (eval "$ac_compile") 2>conftest.er1
6170 grep -v '^ *+' conftest.er1 >conftest.err
6172 cat conftest.err >&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); } && {
6175 test -z "$ac_c_werror_flag" ||
6176 test ! -s conftest.err
6177 } && test -s conftest.$ac_objext; then
6178 emacs_alsa_normal=yes
6180 echo "$as_me: failed program was:" >&5
6181 sed 's/^/| /' conftest.$ac_ext >&5
6183 emacs_alsa_normal=no
6186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 if test "$emacs_alsa_normal" != yes; then
6188 cat >conftest.$ac_ext <<_ACEOF
6191 cat confdefs.h >>conftest.$ac_ext
6192 cat >>conftest.$ac_ext <<_ACEOF
6193 /* end confdefs.h. */
6194 #include <alsa/asoundlib.h>
6198 snd_lib_error_set_handler (0);
6203 rm -f conftest.$ac_objext
6204 if { (ac_try="$ac_compile"
6206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6207 *) ac_try_echo
=$ac_try;;
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_compile") 2>conftest.er1
6212 grep -v '^ *+' conftest.er1
>conftest.err
6214 cat conftest.err
>&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest.
$ac_objext; then
6220 emacs_alsa_subdir
=yes
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.
$ac_ext >&5
6225 emacs_alsa_subdir
=no
6228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6229 if test "$emacs_alsa_subdir" != yes; then
6230 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6231 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6232 { (exit 1); exit 1; }; }
6234 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6237 CFLAGS
="$SAVE_CFLAGS"
6238 LDFLAGS
="$SAVE_LDFLAGS"
6239 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6240 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6242 cat >>confdefs.h
<<\_ACEOF
6275 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6276 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6277 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6278 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6281 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6282 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6283 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6284 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6285 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6286 echo $ECHO_N "(cached) $ECHO_C" >&6
6288 ac_res
=`eval echo '${'$as_ac_Header'}'`
6289 { echo "$as_me:$LINENO: result: $ac_res" >&5
6290 echo "${ECHO_T}$ac_res" >&6; }
6292 # Is the header compilable?
6293 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6294 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6295 cat >conftest.
$ac_ext <<_ACEOF
6298 cat confdefs.h
>>conftest.
$ac_ext
6299 cat >>conftest.
$ac_ext <<_ACEOF
6300 /* end confdefs.h. */
6301 $ac_includes_default
6302 #include <$ac_header>
6304 rm -f conftest.
$ac_objext
6305 if { (ac_try
="$ac_compile"
6307 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6308 *) ac_try_echo=$ac_try;;
6310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6311 (eval "$ac_compile") 2>conftest.er1
6313 grep -v '^ *+' conftest.er1 >conftest.err
6315 cat conftest.err >&5
6316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6317 (exit $ac_status); } && {
6318 test -z "$ac_c_werror_flag" ||
6319 test ! -s conftest.err
6320 } && test -s conftest.$ac_objext; then
6321 ac_header_compiler=yes
6323 echo "$as_me: failed program was:" >&5
6324 sed 's/^/| /' conftest.$ac_ext >&5
6326 ac_header_compiler=no
6329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6331 echo "${ECHO_T}$ac_header_compiler" >&6; }
6333 # Is the header present?
6334 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6336 cat >conftest.$ac_ext <<_ACEOF
6339 cat confdefs.h >>conftest.$ac_ext
6340 cat >>conftest.$ac_ext <<_ACEOF
6341 /* end confdefs.h. */
6342 #include <$ac_header>
6344 if { (ac_try="$ac_cpp conftest.$ac_ext"
6346 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6347 *) ac_try_echo
=$ac_try;;
6349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6352 grep -v '^ *+' conftest.er1
>conftest.err
6354 cat conftest.err
>&5
6355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6356 (exit $ac_status); } >/dev
/null
&& {
6357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6358 test ! -s conftest.err
6360 ac_header_preproc
=yes
6362 echo "$as_me: failed program was:" >&5
6363 sed 's/^/| /' conftest.
$ac_ext >&5
6365 ac_header_preproc
=no
6368 rm -f conftest.err conftest.
$ac_ext
6369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6370 echo "${ECHO_T}$ac_header_preproc" >&6; }
6372 # So? What about this header?
6373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6375 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6376 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6378 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6379 ac_header_preproc
=yes
6382 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6383 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6384 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6385 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6386 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6387 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6388 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6389 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6390 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6391 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6392 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6393 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6397 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6398 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6399 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6400 echo $ECHO_N "(cached) $ECHO_C" >&6
6402 eval "$as_ac_Header=\$ac_header_preproc"
6404 ac_res
=`eval echo '${'$as_ac_Header'}'`
6405 { echo "$as_me:$LINENO: result: $ac_res" >&5
6406 echo "${ECHO_T}$ac_res" >&6; }
6409 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6410 cat >>confdefs.h
<<_ACEOF
6411 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6419 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6420 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6421 cat >conftest.
$ac_ext <<_ACEOF
6424 cat confdefs.h
>>conftest.
$ac_ext
6425 cat >>conftest.
$ac_ext <<_ACEOF
6426 /* end confdefs.h. */
6427 #include <sys/personality.h>
6431 personality (PER_LINUX32)
6436 rm -f conftest.
$ac_objext
6437 if { (ac_try
="$ac_compile"
6439 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6440 *) ac_try_echo=$ac_try;;
6442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6443 (eval "$ac_compile") 2>conftest.er1
6445 grep -v '^ *+' conftest.er1 >conftest.err
6447 cat conftest.err >&5
6448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6449 (exit $ac_status); } && {
6450 test -z "$ac_c_werror_flag" ||
6451 test ! -s conftest.err
6452 } && test -s conftest.$ac_objext; then
6453 emacs_cv_personality_linux32=yes
6455 echo "$as_me: failed program was:" >&5
6456 sed 's/^/| /' conftest.$ac_ext >&5
6458 emacs_cv_personality_linux32=no
6461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6462 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6463 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6465 if test $emacs_cv_personality_linux32 = yes; then
6467 cat >>confdefs.h <<\_ACEOF
6468 #define HAVE_PERSONALITY_LINUX32 1
6474 for ac_header in term.h
6476 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6480 echo $ECHO_N "(cached) $ECHO_C" >&6
6482 cat >conftest.$ac_ext <<_ACEOF
6485 cat confdefs.h >>conftest.$ac_ext
6486 cat >>conftest.$ac_ext <<_ACEOF
6487 /* end confdefs.h. */
6488 #include <$ac_header>
6490 if { (ac_try="$ac_cpp conftest.$ac_ext"
6492 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6493 *) ac_try_echo
=$ac_try;;
6495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6498 grep -v '^ *+' conftest.er1
>conftest.err
6500 cat conftest.err
>&5
6501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502 (exit $ac_status); } >/dev
/null
&& {
6503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6504 test ! -s conftest.err
6506 eval "$as_ac_Header=yes"
6508 echo "$as_me: failed program was:" >&5
6509 sed 's/^/| /' conftest.
$ac_ext >&5
6511 eval "$as_ac_Header=no"
6514 rm -f conftest.err conftest.
$ac_ext
6516 ac_res
=`eval echo '${'$as_ac_Header'}'`
6517 { echo "$as_me:$LINENO: result: $ac_res" >&5
6518 echo "${ECHO_T}$ac_res" >&6; }
6519 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6520 cat >>confdefs.h
<<_ACEOF
6521 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6528 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6529 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6530 if test "${ac_cv_header_stdc+set}" = set; then
6531 echo $ECHO_N "(cached) $ECHO_C" >&6
6533 cat >conftest.
$ac_ext <<_ACEOF
6536 cat confdefs.h
>>conftest.
$ac_ext
6537 cat >>conftest.
$ac_ext <<_ACEOF
6538 /* end confdefs.h. */
6552 rm -f conftest.
$ac_objext
6553 if { (ac_try
="$ac_compile"
6555 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6556 *) ac_try_echo=$ac_try;;
6558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6559 (eval "$ac_compile") 2>conftest.er1
6561 grep -v '^ *+' conftest.er1 >conftest.err
6563 cat conftest.err >&5
6564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6565 (exit $ac_status); } && {
6566 test -z "$ac_c_werror_flag" ||
6567 test ! -s conftest.err
6568 } && test -s conftest.$ac_objext; then
6569 ac_cv_header_stdc=yes
6571 echo "$as_me: failed program was:" >&5
6572 sed 's/^/| /' conftest.$ac_ext >&5
6574 ac_cv_header_stdc=no
6577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6579 if test $ac_cv_header_stdc = yes; then
6580 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6581 cat >conftest.$ac_ext <<_ACEOF
6584 cat confdefs.h >>conftest.$ac_ext
6585 cat >>conftest.$ac_ext <<_ACEOF
6586 /* end confdefs.h. */
6590 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6591 $EGREP "memchr" >/dev/null 2>&1; then
6594 ac_cv_header_stdc=no
6600 if test $ac_cv_header_stdc = yes; then
6601 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6602 cat >conftest.$ac_ext <<_ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6611 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6612 $EGREP "free" >/dev/null 2>&1; then
6615 ac_cv_header_stdc=no
6621 if test $ac_cv_header_stdc = yes; then
6622 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6623 if test "$cross_compiling" = yes; then
6626 cat >conftest.$ac_ext <<_ACEOF
6629 cat confdefs.h >>conftest.$ac_ext
6630 cat >>conftest.$ac_ext <<_ACEOF
6631 /* end confdefs.h. */
6634 #if ((' ' & 0x0FF) == 0x020)
6635 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6636 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6638 # define ISLOWER(c) \
6639 (('a' <= (c) && (c) <= 'i') \
6640 || ('j' <= (c) && (c) <= 'r') \
6641 || ('s' <= (c) && (c) <= 'z'))
6642 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6645 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6650 for (i = 0; i < 256; i++)
6651 if (XOR (islower (i), ISLOWER (i))
6652 || toupper (i) != TOUPPER (i))
6657 rm -f conftest$ac_exeext
6658 if { (ac_try="$ac_link"
6660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6661 *) ac_try_echo
=$ac_try;;
6663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6664 (eval "$ac_link") 2>&5
6666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6667 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6668 { (case "(($ac_try" in
6669 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6670 *) ac_try_echo=$ac_try;;
6672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6673 (eval "$ac_try") 2>&5
6675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6676 (exit $ac_status); }; }; then
6679 echo "$as_me: program exited with status $ac_status" >&5
6680 echo "$as_me: failed program was:" >&5
6681 sed 's/^/| /' conftest.$ac_ext >&5
6684 ac_cv_header_stdc=no
6686 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6692 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6693 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6694 if test $ac_cv_header_stdc = yes; then
6696 cat >>confdefs.h <<\_ACEOF
6697 #define STDC_HEADERS 1
6702 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6703 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6704 if test "${ac_cv_header_time+set}" = set; then
6705 echo $ECHO_N "(cached) $ECHO_C" >&6
6707 cat >conftest.$ac_ext <<_ACEOF
6710 cat confdefs.h >>conftest.$ac_ext
6711 cat >>conftest.$ac_ext <<_ACEOF
6712 /* end confdefs.h. */
6713 #include <sys/types.h>
6714 #include <sys/time.h>
6720 if ((struct tm *) 0)
6726 rm -f conftest.$ac_objext
6727 if { (ac_try="$ac_compile"
6729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6730 *) ac_try_echo
=$ac_try;;
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_compile") 2>conftest.er1
6735 grep -v '^ *+' conftest.er1
>conftest.err
6737 cat conftest.err
>&5
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); } && {
6740 test -z "$ac_c_werror_flag" ||
6741 test ! -s conftest.err
6742 } && test -s conftest.
$ac_objext; then
6743 ac_cv_header_time
=yes
6745 echo "$as_me: failed program was:" >&5
6746 sed 's/^/| /' conftest.
$ac_ext >&5
6748 ac_cv_header_time
=no
6751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6753 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6754 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6755 if test $ac_cv_header_time = yes; then
6757 cat >>confdefs.h
<<\_ACEOF
6758 #define TIME_WITH_SYS_TIME 1
6763 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6764 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6765 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 cat >conftest.
$ac_ext <<_ACEOF
6771 cat confdefs.h
>>conftest.
$ac_ext
6772 cat >>conftest.
$ac_ext <<_ACEOF
6773 /* end confdefs.h. */
6774 $ac_includes_default
6786 rm -f conftest.
$ac_objext
6787 if { (ac_try
="$ac_compile"
6789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6790 *) ac_try_echo=$ac_try;;
6792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6793 (eval "$ac_compile") 2>conftest.er1
6795 grep -v '^ *+' conftest.er1 >conftest.err
6797 cat conftest.err >&5
6798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6799 (exit $ac_status); } && {
6800 test -z "$ac_c_werror_flag" ||
6801 test ! -s conftest.err
6802 } && test -s conftest.$ac_objext; then
6803 ac_cv_have_decl_sys_siglist=yes
6805 echo "$as_me: failed program was:" >&5
6806 sed 's/^/| /' conftest.$ac_ext >&5
6808 ac_cv_have_decl_sys_siglist=no
6811 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6813 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6814 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6815 if test $ac_cv_have_decl_sys_siglist = yes; then
6817 cat >>confdefs.h <<_ACEOF
6818 #define HAVE_DECL_SYS_SIGLIST 1
6823 cat >>confdefs.h <<_ACEOF
6824 #define HAVE_DECL_SYS_SIGLIST 0
6831 if test $ac_cv_have_decl_sys_siglist != yes; then
6832 # For Tru64, at least:
6833 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6834 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6835 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6836 echo $ECHO_N "(cached) $ECHO_C" >&6
6838 cat >conftest.$ac_ext <<_ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6844 $ac_includes_default
6848 #ifndef __sys_siglist
6849 (void) __sys_siglist;
6856 rm -f conftest.$ac_objext
6857 if { (ac_try="$ac_compile"
6859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6860 *) ac_try_echo
=$ac_try;;
6862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6863 (eval "$ac_compile") 2>conftest.er1
6865 grep -v '^ *+' conftest.er1
>conftest.err
6867 cat conftest.err
>&5
6868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6869 (exit $ac_status); } && {
6870 test -z "$ac_c_werror_flag" ||
6871 test ! -s conftest.err
6872 } && test -s conftest.
$ac_objext; then
6873 ac_cv_have_decl___sys_siglist
=yes
6875 echo "$as_me: failed program was:" >&5
6876 sed 's/^/| /' conftest.
$ac_ext >&5
6878 ac_cv_have_decl___sys_siglist
=no
6881 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6883 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6884 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6885 if test $ac_cv_have_decl___sys_siglist = yes; then
6887 cat >>confdefs.h
<<_ACEOF
6888 #define HAVE_DECL___SYS_SIGLIST 1
6893 cat >>confdefs.h
<<_ACEOF
6894 #define HAVE_DECL___SYS_SIGLIST 0
6901 if test $ac_cv_have_decl___sys_siglist = yes; then
6903 cat >>confdefs.h
<<\_ACEOF
6904 #define sys_siglist __sys_siglist
6909 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6910 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6911 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6912 echo $ECHO_N "(cached) $ECHO_C" >&6
6914 cat >conftest.
$ac_ext <<_ACEOF
6917 cat confdefs.h
>>conftest.
$ac_ext
6918 cat >>conftest.
$ac_ext <<_ACEOF
6919 /* end confdefs.h. */
6920 #include <sys/types.h>
6921 #include <sys/wait.h>
6923 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6926 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6934 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6939 rm -f conftest.
$ac_objext
6940 if { (ac_try
="$ac_compile"
6942 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6943 *) ac_try_echo=$ac_try;;
6945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6946 (eval "$ac_compile") 2>conftest.er1
6948 grep -v '^ *+' conftest.er1 >conftest.err
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } && {
6953 test -z "$ac_c_werror_flag" ||
6954 test ! -s conftest.err
6955 } && test -s conftest.$ac_objext; then
6956 ac_cv_header_sys_wait_h=yes
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6961 ac_cv_header_sys_wait_h=no
6964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6966 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6967 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6968 if test $ac_cv_header_sys_wait_h = yes; then
6970 cat >>confdefs.h <<\_ACEOF
6971 #define HAVE_SYS_WAIT_H 1
6977 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6978 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6979 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 cat >conftest.$ac_ext <<_ACEOF
6985 cat confdefs.h >>conftest.$ac_ext
6986 cat >>conftest.$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 #ifdef TIME_WITH_SYS_TIME
6989 #include <sys/time.h>
6992 #ifdef HAVE_SYS_TIME_H
6993 #include <sys/time.h>
7004 static struct utimbuf x; x.actime = x.modtime;
7009 rm -f conftest.$ac_objext
7010 if { (ac_try="$ac_compile"
7012 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7013 *) ac_try_echo
=$ac_try;;
7015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7016 (eval "$ac_compile") 2>conftest.er1
7018 grep -v '^ *+' conftest.er1
>conftest.err
7020 cat conftest.err
>&5
7021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7022 (exit $ac_status); } && {
7023 test -z "$ac_c_werror_flag" ||
7024 test ! -s conftest.err
7025 } && test -s conftest.
$ac_objext; then
7026 emacs_cv_struct_utimbuf
=yes
7028 echo "$as_me: failed program was:" >&5
7029 sed 's/^/| /' conftest.
$ac_ext >&5
7031 emacs_cv_struct_utimbuf
=no
7034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7036 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7037 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7038 if test $emacs_cv_struct_utimbuf = yes; then
7040 cat >>confdefs.h
<<\_ACEOF
7041 #define HAVE_STRUCT_UTIMBUF 1
7046 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7047 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7048 if test "${ac_cv_type_signal+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7051 cat >conftest.
$ac_ext <<_ACEOF
7054 cat confdefs.h
>>conftest.
$ac_ext
7055 cat >>conftest.
$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 #include <sys/types.h>
7063 return *(signal (0, 0)) (0) == 1;
7068 rm -f conftest.
$ac_objext
7069 if { (ac_try
="$ac_compile"
7071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7072 *) ac_try_echo=$ac_try;;
7074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7075 (eval "$ac_compile") 2>conftest.er1
7077 grep -v '^ *+' conftest.er1 >conftest.err
7079 cat conftest.err >&5
7080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7081 (exit $ac_status); } && {
7082 test -z "$ac_c_werror_flag" ||
7083 test ! -s conftest.err
7084 } && test -s conftest.$ac_objext; then
7085 ac_cv_type_signal=int
7087 echo "$as_me: failed program was:" >&5
7088 sed 's/^/| /' conftest.$ac_ext >&5
7090 ac_cv_type_signal=void
7093 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7095 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7096 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7098 cat >>confdefs.h <<_ACEOF
7099 #define RETSIGTYPE $ac_cv_type_signal
7104 { echo "$as_me:$LINENO: checking for speed_t" >&5
7105 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7106 if test "${emacs_cv_speed_t+set}" = set; then
7107 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 cat >conftest.$ac_ext <<_ACEOF
7112 cat confdefs.h >>conftest.$ac_ext
7113 cat >>conftest.$ac_ext <<_ACEOF
7114 /* end confdefs.h. */
7115 #include <termios.h>
7124 rm -f conftest.$ac_objext
7125 if { (ac_try="$ac_compile"
7127 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7128 *) ac_try_echo
=$ac_try;;
7130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7131 (eval "$ac_compile") 2>conftest.er1
7133 grep -v '^ *+' conftest.er1
>conftest.err
7135 cat conftest.err
>&5
7136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7137 (exit $ac_status); } && {
7138 test -z "$ac_c_werror_flag" ||
7139 test ! -s conftest.err
7140 } && test -s conftest.
$ac_objext; then
7141 emacs_cv_speed_t
=yes
7143 echo "$as_me: failed program was:" >&5
7144 sed 's/^/| /' conftest.
$ac_ext >&5
7149 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7151 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7152 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7153 if test $emacs_cv_speed_t = yes; then
7155 cat >>confdefs.h
<<\_ACEOF
7156 #define HAVE_SPEED_T 1
7161 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7162 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7163 if test "${emacs_cv_struct_timeval+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7166 cat >conftest.
$ac_ext <<_ACEOF
7169 cat confdefs.h
>>conftest.
$ac_ext
7170 cat >>conftest.
$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #ifdef TIME_WITH_SYS_TIME
7173 #include <sys/time.h>
7176 #ifdef HAVE_SYS_TIME_H
7177 #include <sys/time.h>
7185 static struct timeval x; x.tv_sec = x.tv_usec;
7190 rm -f conftest.
$ac_objext
7191 if { (ac_try
="$ac_compile"
7193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7194 *) ac_try_echo=$ac_try;;
7196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7197 (eval "$ac_compile") 2>conftest.er1
7199 grep -v '^ *+' conftest.er1 >conftest.err
7201 cat conftest.err >&5
7202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7203 (exit $ac_status); } && {
7204 test -z "$ac_c_werror_flag" ||
7205 test ! -s conftest.err
7206 } && test -s conftest.$ac_objext; then
7207 emacs_cv_struct_timeval=yes
7209 echo "$as_me: failed program was:" >&5
7210 sed 's/^/| /' conftest.$ac_ext >&5
7212 emacs_cv_struct_timeval=no
7215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7217 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7218 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7219 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7220 if test $emacs_cv_struct_timeval = yes; then
7222 cat >>confdefs.h <<\_ACEOF
7223 #define HAVE_TIMEVAL 1
7228 { echo "$as_me:$LINENO: checking for struct exception" >&5
7229 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7230 if test "${emacs_cv_struct_exception+set}" = set; then
7231 echo $ECHO_N "(cached) $ECHO_C" >&6
7233 cat >conftest.$ac_ext <<_ACEOF
7236 cat confdefs.h >>conftest.$ac_ext
7237 cat >>conftest.$ac_ext <<_ACEOF
7238 /* end confdefs.h. */
7243 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7248 rm -f conftest.$ac_objext
7249 if { (ac_try="$ac_compile"
7251 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7252 *) ac_try_echo
=$ac_try;;
7254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7255 (eval "$ac_compile") 2>conftest.er1
7257 grep -v '^ *+' conftest.er1
>conftest.err
7259 cat conftest.err
>&5
7260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7261 (exit $ac_status); } && {
7262 test -z "$ac_c_werror_flag" ||
7263 test ! -s conftest.err
7264 } && test -s conftest.
$ac_objext; then
7265 emacs_cv_struct_exception
=yes
7267 echo "$as_me: failed program was:" >&5
7268 sed 's/^/| /' conftest.
$ac_ext >&5
7270 emacs_cv_struct_exception
=no
7273 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7275 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7276 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7277 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7278 if test $emacs_cv_struct_exception != yes; then
7280 cat >>confdefs.h
<<\_ACEOF
7281 #define NO_MATHERR 1
7287 for ac_header
in sys
/socket.h
7289 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7290 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7293 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7294 echo $ECHO_N "(cached) $ECHO_C" >&6
7296 ac_res
=`eval echo '${'$as_ac_Header'}'`
7297 { echo "$as_me:$LINENO: result: $ac_res" >&5
7298 echo "${ECHO_T}$ac_res" >&6; }
7300 # Is the header compilable?
7301 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7303 cat >conftest.
$ac_ext <<_ACEOF
7306 cat confdefs.h
>>conftest.
$ac_ext
7307 cat >>conftest.
$ac_ext <<_ACEOF
7308 /* end confdefs.h. */
7309 $ac_includes_default
7310 #include <$ac_header>
7312 rm -f conftest.
$ac_objext
7313 if { (ac_try
="$ac_compile"
7315 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7316 *) ac_try_echo=$ac_try;;
7318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7319 (eval "$ac_compile") 2>conftest.er1
7321 grep -v '^ *+' conftest.er1 >conftest.err
7323 cat conftest.err >&5
7324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7325 (exit $ac_status); } && {
7326 test -z "$ac_c_werror_flag" ||
7327 test ! -s conftest.err
7328 } && test -s conftest.$ac_objext; then
7329 ac_header_compiler=yes
7331 echo "$as_me: failed program was:" >&5
7332 sed 's/^/| /' conftest.$ac_ext >&5
7334 ac_header_compiler=no
7337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7339 echo "${ECHO_T}$ac_header_compiler" >&6; }
7341 # Is the header present?
7342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7344 cat >conftest.$ac_ext <<_ACEOF
7347 cat confdefs.h >>conftest.$ac_ext
7348 cat >>conftest.$ac_ext <<_ACEOF
7349 /* end confdefs.h. */
7350 #include <$ac_header>
7352 if { (ac_try="$ac_cpp conftest.$ac_ext"
7354 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7355 *) ac_try_echo
=$ac_try;;
7357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7360 grep -v '^ *+' conftest.er1
>conftest.err
7362 cat conftest.err
>&5
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); } >/dev
/null
&& {
7365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7366 test ! -s conftest.err
7368 ac_header_preproc
=yes
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.
$ac_ext >&5
7373 ac_header_preproc
=no
7376 rm -f conftest.err conftest.
$ac_ext
7377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7378 echo "${ECHO_T}$ac_header_preproc" >&6; }
7380 # So? What about this header?
7381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7387 ac_header_preproc
=yes
7390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7407 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7410 eval "$as_ac_Header=\$ac_header_preproc"
7412 ac_res
=`eval echo '${'$as_ac_Header'}'`
7413 { echo "$as_me:$LINENO: result: $ac_res" >&5
7414 echo "${ECHO_T}$ac_res" >&6; }
7417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7418 cat >>confdefs.h
<<_ACEOF
7419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7427 for ac_header
in net
/if.h
7429 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7432 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7433 echo $ECHO_N "(cached) $ECHO_C" >&6
7435 cat >conftest.
$ac_ext <<_ACEOF
7438 cat confdefs.h
>>conftest.
$ac_ext
7439 cat >>conftest.
$ac_ext <<_ACEOF
7440 /* end confdefs.h. */
7441 $ac_includes_default
7442 #if HAVE_SYS_SOCKET_H
7443 #include <sys/socket.h>
7446 #include <$ac_header>
7448 rm -f conftest.
$ac_objext
7449 if { (ac_try
="$ac_compile"
7451 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_compile") 2>conftest.er1
7457 grep -v '^ *+' conftest.er1 >conftest.err
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } && {
7462 test -z "$ac_c_werror_flag" ||
7463 test ! -s conftest.err
7464 } && test -s conftest.$ac_objext; then
7465 eval "$as_ac_Header=yes"
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7470 eval "$as_ac_Header=no"
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7475 ac_res=`eval echo '${'$as_ac_Header'}'`
7476 { echo "$as_me:$LINENO: result: $ac_res" >&5
7477 echo "${ECHO_T}$ac_res" >&6; }
7478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7479 cat >>confdefs.h <<_ACEOF
7480 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7488 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7489 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7490 if test "${ac_cv_struct_tm+set}" = set; then
7491 echo $ECHO_N "(cached) $ECHO_C" >&6
7493 cat >conftest.$ac_ext <<_ACEOF
7496 cat confdefs.h >>conftest.$ac_ext
7497 cat >>conftest.$ac_ext <<_ACEOF
7498 /* end confdefs.h. */
7499 #include <sys/types.h>
7506 int *p = &tm.tm_sec;
7512 rm -f conftest.$ac_objext
7513 if { (ac_try="$ac_compile"
7515 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7516 *) ac_try_echo
=$ac_try;;
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_compile") 2>conftest.er1
7521 grep -v '^ *+' conftest.er1
>conftest.err
7523 cat conftest.err
>&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } && {
7526 test -z "$ac_c_werror_flag" ||
7527 test ! -s conftest.err
7528 } && test -s conftest.
$ac_objext; then
7529 ac_cv_struct_tm
=time.h
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.
$ac_ext >&5
7534 ac_cv_struct_tm
=sys
/time.h
7537 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7539 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7540 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7541 if test $ac_cv_struct_tm = sys
/time.h
; then
7543 cat >>confdefs.h
<<\_ACEOF
7544 #define TM_IN_SYS_TIME 1
7549 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7550 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7551 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7552 echo $ECHO_N "(cached) $ECHO_C" >&6
7554 cat >conftest.
$ac_ext <<_ACEOF
7557 cat confdefs.h
>>conftest.
$ac_ext
7558 cat >>conftest.
$ac_ext <<_ACEOF
7559 /* end confdefs.h. */
7560 #include <sys/types.h>
7561 #include <$ac_cv_struct_tm>
7567 static struct tm ac_aggr;
7568 if (ac_aggr.tm_zone)
7574 rm -f conftest.
$ac_objext
7575 if { (ac_try
="$ac_compile"
7577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7578 *) ac_try_echo=$ac_try;;
7580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7581 (eval "$ac_compile") 2>conftest.er1
7583 grep -v '^ *+' conftest.er1 >conftest.err
7585 cat conftest.err >&5
7586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7587 (exit $ac_status); } && {
7588 test -z "$ac_c_werror_flag" ||
7589 test ! -s conftest.err
7590 } && test -s conftest.$ac_objext; then
7591 ac_cv_member_struct_tm_tm_zone=yes
7593 echo "$as_me: failed program was:" >&5
7594 sed 's/^/| /' conftest.$ac_ext >&5
7596 cat >conftest.$ac_ext <<_ACEOF
7599 cat confdefs.h >>conftest.$ac_ext
7600 cat >>conftest.$ac_ext <<_ACEOF
7601 /* end confdefs.h. */
7602 #include <sys/types.h>
7603 #include <$ac_cv_struct_tm>
7609 static struct tm ac_aggr;
7610 if (sizeof ac_aggr.tm_zone)
7616 rm -f conftest.$ac_objext
7617 if { (ac_try="$ac_compile"
7619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7620 *) ac_try_echo
=$ac_try;;
7622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7623 (eval "$ac_compile") 2>conftest.er1
7625 grep -v '^ *+' conftest.er1
>conftest.err
7627 cat conftest.err
>&5
7628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7629 (exit $ac_status); } && {
7630 test -z "$ac_c_werror_flag" ||
7631 test ! -s conftest.err
7632 } && test -s conftest.
$ac_objext; then
7633 ac_cv_member_struct_tm_tm_zone
=yes
7635 echo "$as_me: failed program was:" >&5
7636 sed 's/^/| /' conftest.
$ac_ext >&5
7638 ac_cv_member_struct_tm_tm_zone
=no
7641 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7644 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7646 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7647 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7648 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7650 cat >>confdefs.h
<<_ACEOF
7651 #define HAVE_STRUCT_TM_TM_ZONE 1
7657 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7659 cat >>confdefs.h
<<\_ACEOF
7660 #define HAVE_TM_ZONE 1
7664 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7665 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7666 if test "${ac_cv_have_decl_tzname+set}" = set; then
7667 echo $ECHO_N "(cached) $ECHO_C" >&6
7669 cat >conftest.
$ac_ext <<_ACEOF
7672 cat confdefs.h
>>conftest.
$ac_ext
7673 cat >>conftest.
$ac_ext <<_ACEOF
7674 /* end confdefs.h. */
7688 rm -f conftest.
$ac_objext
7689 if { (ac_try
="$ac_compile"
7691 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7692 *) ac_try_echo=$ac_try;;
7694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7695 (eval "$ac_compile") 2>conftest.er1
7697 grep -v '^ *+' conftest.er1 >conftest.err
7699 cat conftest.err >&5
7700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7701 (exit $ac_status); } && {
7702 test -z "$ac_c_werror_flag" ||
7703 test ! -s conftest.err
7704 } && test -s conftest.$ac_objext; then
7705 ac_cv_have_decl_tzname=yes
7707 echo "$as_me: failed program was:" >&5
7708 sed 's/^/| /' conftest.$ac_ext >&5
7710 ac_cv_have_decl_tzname=no
7713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7715 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7716 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7717 if test $ac_cv_have_decl_tzname = yes; then
7719 cat >>confdefs.h <<_ACEOF
7720 #define HAVE_DECL_TZNAME 1
7725 cat >>confdefs.h <<_ACEOF
7726 #define HAVE_DECL_TZNAME 0
7733 { echo "$as_me:$LINENO: checking for tzname" >&5
7734 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7735 if test "${ac_cv_var_tzname+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7738 cat >conftest.$ac_ext <<_ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7745 #if !HAVE_DECL_TZNAME
7746 extern char *tzname[];
7752 return tzname[0][0];
7757 rm -f conftest.$ac_objext conftest$ac_exeext
7758 if { (ac_try="$ac_link"
7760 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7761 *) ac_try_echo
=$ac_try;;
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_link") 2>conftest.er1
7766 grep -v '^ *+' conftest.er1
>conftest.err
7768 cat conftest.err
>&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest
$ac_exeext &&
7774 $as_test_x conftest
$ac_exeext; then
7775 ac_cv_var_tzname
=yes
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.
$ac_ext >&5
7783 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7784 conftest
$ac_exeext conftest.
$ac_ext
7786 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7787 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7788 if test $ac_cv_var_tzname = yes; then
7790 cat >>confdefs.h
<<\_ACEOF
7791 #define HAVE_TZNAME 1
7797 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7798 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7799 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7800 echo $ECHO_N "(cached) $ECHO_C" >&6
7802 cat >conftest.
$ac_ext <<_ACEOF
7805 cat confdefs.h
>>conftest.
$ac_ext
7806 cat >>conftest.
$ac_ext <<_ACEOF
7807 /* end confdefs.h. */
7813 static struct tm ac_aggr;
7814 if (ac_aggr.tm_gmtoff)
7820 rm -f conftest.
$ac_objext
7821 if { (ac_try
="$ac_compile"
7823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_compile") 2>conftest.er1
7829 grep -v '^ *+' conftest.er1 >conftest.err
7831 cat conftest.err >&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest.$ac_objext; then
7837 ac_cv_member_struct_tm_tm_gmtoff=yes
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.$ac_ext >&5
7842 cat >conftest.$ac_ext <<_ACEOF
7845 cat confdefs.h >>conftest.$ac_ext
7846 cat >>conftest.$ac_ext <<_ACEOF
7847 /* end confdefs.h. */
7853 static struct tm ac_aggr;
7854 if (sizeof ac_aggr.tm_gmtoff)
7860 rm -f conftest.$ac_objext
7861 if { (ac_try="$ac_compile"
7863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7864 *) ac_try_echo
=$ac_try;;
7866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7867 (eval "$ac_compile") 2>conftest.er1
7869 grep -v '^ *+' conftest.er1
>conftest.err
7871 cat conftest.err
>&5
7872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7873 (exit $ac_status); } && {
7874 test -z "$ac_c_werror_flag" ||
7875 test ! -s conftest.err
7876 } && test -s conftest.
$ac_objext; then
7877 ac_cv_member_struct_tm_tm_gmtoff
=yes
7879 echo "$as_me: failed program was:" >&5
7880 sed 's/^/| /' conftest.
$ac_ext >&5
7882 ac_cv_member_struct_tm_tm_gmtoff
=no
7885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7888 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7890 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7891 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7892 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7894 cat >>confdefs.h
<<\_ACEOF
7895 #define HAVE_TM_GMTOFF 1
7900 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7901 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7902 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7903 echo $ECHO_N "(cached) $ECHO_C" >&6
7905 cat >conftest.
$ac_ext <<_ACEOF
7908 cat confdefs.h
>>conftest.
$ac_ext
7909 cat >>conftest.
$ac_ext <<_ACEOF
7910 /* end confdefs.h. */
7911 $ac_includes_default
7912 #if HAVE_SYS_SOCKET_H
7913 #include <sys/socket.h>
7922 static struct ifreq ac_aggr;
7923 if (ac_aggr.ifr_flags)
7929 rm -f conftest.
$ac_objext
7930 if { (ac_try
="$ac_compile"
7932 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_compile") 2>conftest.er1
7938 grep -v '^ *+' conftest.er1 >conftest.err
7940 cat conftest.err >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_c_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest.$ac_objext; then
7946 ac_cv_member_struct_ifreq_ifr_flags=yes
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7951 cat >conftest.$ac_ext <<_ACEOF
7954 cat confdefs.h >>conftest.$ac_ext
7955 cat >>conftest.$ac_ext <<_ACEOF
7956 /* end confdefs.h. */
7957 $ac_includes_default
7958 #if HAVE_SYS_SOCKET_H
7959 #include <sys/socket.h>
7968 static struct ifreq ac_aggr;
7969 if (sizeof ac_aggr.ifr_flags)
7975 rm -f conftest.$ac_objext
7976 if { (ac_try="$ac_compile"
7978 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7979 *) ac_try_echo
=$ac_try;;
7981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7982 (eval "$ac_compile") 2>conftest.er1
7984 grep -v '^ *+' conftest.er1
>conftest.err
7986 cat conftest.err
>&5
7987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7988 (exit $ac_status); } && {
7989 test -z "$ac_c_werror_flag" ||
7990 test ! -s conftest.err
7991 } && test -s conftest.
$ac_objext; then
7992 ac_cv_member_struct_ifreq_ifr_flags
=yes
7994 echo "$as_me: failed program was:" >&5
7995 sed 's/^/| /' conftest.
$ac_ext >&5
7997 ac_cv_member_struct_ifreq_ifr_flags
=no
8000 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8003 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8005 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8006 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8007 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8009 cat >>confdefs.h
<<_ACEOF
8010 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8015 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8016 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8017 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8018 echo $ECHO_N "(cached) $ECHO_C" >&6
8020 cat >conftest.
$ac_ext <<_ACEOF
8023 cat confdefs.h
>>conftest.
$ac_ext
8024 cat >>conftest.
$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 $ac_includes_default
8027 #if HAVE_SYS_SOCKET_H
8028 #include <sys/socket.h>
8037 static struct ifreq ac_aggr;
8038 if (ac_aggr.ifr_hwaddr)
8044 rm -f conftest.
$ac_objext
8045 if { (ac_try
="$ac_compile"
8047 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8053 grep -v '^ *+' conftest.er1 >conftest.err
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest.$ac_objext; then
8061 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8066 cat >conftest.$ac_ext <<_ACEOF
8069 cat confdefs.h >>conftest.$ac_ext
8070 cat >>conftest.$ac_ext <<_ACEOF
8071 /* end confdefs.h. */
8072 $ac_includes_default
8073 #if HAVE_SYS_SOCKET_H
8074 #include <sys/socket.h>
8083 static struct ifreq ac_aggr;
8084 if (sizeof ac_aggr.ifr_hwaddr)
8090 rm -f conftest.$ac_objext
8091 if { (ac_try="$ac_compile"
8093 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8094 *) ac_try_echo
=$ac_try;;
8096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8097 (eval "$ac_compile") 2>conftest.er1
8099 grep -v '^ *+' conftest.er1
>conftest.err
8101 cat conftest.err
>&5
8102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8103 (exit $ac_status); } && {
8104 test -z "$ac_c_werror_flag" ||
8105 test ! -s conftest.err
8106 } && test -s conftest.
$ac_objext; then
8107 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8109 echo "$as_me: failed program was:" >&5
8110 sed 's/^/| /' conftest.
$ac_ext >&5
8112 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8120 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8121 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8122 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8124 cat >>confdefs.h
<<_ACEOF
8125 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8130 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8131 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8132 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8133 echo $ECHO_N "(cached) $ECHO_C" >&6
8135 cat >conftest.
$ac_ext <<_ACEOF
8138 cat confdefs.h
>>conftest.
$ac_ext
8139 cat >>conftest.
$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8141 $ac_includes_default
8142 #if HAVE_SYS_SOCKET_H
8143 #include <sys/socket.h>
8152 static struct ifreq ac_aggr;
8153 if (ac_aggr.ifr_netmask)
8159 rm -f conftest.
$ac_objext
8160 if { (ac_try
="$ac_compile"
8162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8168 grep -v '^ *+' conftest.er1 >conftest.err
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.$ac_objext; then
8176 ac_cv_member_struct_ifreq_ifr_netmask=yes
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8181 cat >conftest.$ac_ext <<_ACEOF
8184 cat confdefs.h >>conftest.$ac_ext
8185 cat >>conftest.$ac_ext <<_ACEOF
8186 /* end confdefs.h. */
8187 $ac_includes_default
8188 #if HAVE_SYS_SOCKET_H
8189 #include <sys/socket.h>
8198 static struct ifreq ac_aggr;
8199 if (sizeof ac_aggr.ifr_netmask)
8205 rm -f conftest.$ac_objext
8206 if { (ac_try="$ac_compile"
8208 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8209 *) ac_try_echo
=$ac_try;;
8211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8212 (eval "$ac_compile") 2>conftest.er1
8214 grep -v '^ *+' conftest.er1
>conftest.err
8216 cat conftest.err
>&5
8217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8218 (exit $ac_status); } && {
8219 test -z "$ac_c_werror_flag" ||
8220 test ! -s conftest.err
8221 } && test -s conftest.
$ac_objext; then
8222 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8224 echo "$as_me: failed program was:" >&5
8225 sed 's/^/| /' conftest.
$ac_ext >&5
8227 ac_cv_member_struct_ifreq_ifr_netmask
=no
8230 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8233 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8235 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8236 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8237 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8239 cat >>confdefs.h
<<_ACEOF
8240 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8245 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8246 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8247 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8248 echo $ECHO_N "(cached) $ECHO_C" >&6
8250 cat >conftest.
$ac_ext <<_ACEOF
8253 cat confdefs.h
>>conftest.
$ac_ext
8254 cat >>conftest.
$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 $ac_includes_default
8257 #if HAVE_SYS_SOCKET_H
8258 #include <sys/socket.h>
8267 static struct ifreq ac_aggr;
8268 if (ac_aggr.ifr_broadaddr)
8274 rm -f conftest.
$ac_objext
8275 if { (ac_try
="$ac_compile"
8277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8283 grep -v '^ *+' conftest.er1 >conftest.err
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.$ac_objext; then
8291 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8296 cat >conftest.$ac_ext <<_ACEOF
8299 cat confdefs.h >>conftest.$ac_ext
8300 cat >>conftest.$ac_ext <<_ACEOF
8301 /* end confdefs.h. */
8302 $ac_includes_default
8303 #if HAVE_SYS_SOCKET_H
8304 #include <sys/socket.h>
8313 static struct ifreq ac_aggr;
8314 if (sizeof ac_aggr.ifr_broadaddr)
8320 rm -f conftest.$ac_objext
8321 if { (ac_try="$ac_compile"
8323 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8324 *) ac_try_echo
=$ac_try;;
8326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8327 (eval "$ac_compile") 2>conftest.er1
8329 grep -v '^ *+' conftest.er1
>conftest.err
8331 cat conftest.err
>&5
8332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8333 (exit $ac_status); } && {
8334 test -z "$ac_c_werror_flag" ||
8335 test ! -s conftest.err
8336 } && test -s conftest.
$ac_objext; then
8337 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8339 echo "$as_me: failed program was:" >&5
8340 sed 's/^/| /' conftest.
$ac_ext >&5
8342 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8345 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8350 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8351 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8352 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8354 cat >>confdefs.h
<<_ACEOF
8355 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8360 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8361 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8362 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8363 echo $ECHO_N "(cached) $ECHO_C" >&6
8365 cat >conftest.
$ac_ext <<_ACEOF
8368 cat confdefs.h
>>conftest.
$ac_ext
8369 cat >>conftest.
$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #if HAVE_SYS_SOCKET_H
8373 #include <sys/socket.h>
8382 static struct ifreq ac_aggr;
8383 if (ac_aggr.ifr_addr)
8389 rm -f conftest.
$ac_objext
8390 if { (ac_try
="$ac_compile"
8392 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8398 grep -v '^ *+' conftest.er1 >conftest.err
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.$ac_objext; then
8406 ac_cv_member_struct_ifreq_ifr_addr=yes
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8411 cat >conftest.$ac_ext <<_ACEOF
8414 cat confdefs.h >>conftest.$ac_ext
8415 cat >>conftest.$ac_ext <<_ACEOF
8416 /* end confdefs.h. */
8417 $ac_includes_default
8418 #if HAVE_SYS_SOCKET_H
8419 #include <sys/socket.h>
8428 static struct ifreq ac_aggr;
8429 if (sizeof ac_aggr.ifr_addr)
8435 rm -f conftest.$ac_objext
8436 if { (ac_try="$ac_compile"
8438 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8439 *) ac_try_echo
=$ac_try;;
8441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8442 (eval "$ac_compile") 2>conftest.er1
8444 grep -v '^ *+' conftest.er1
>conftest.err
8446 cat conftest.err
>&5
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && {
8449 test -z "$ac_c_werror_flag" ||
8450 test ! -s conftest.err
8451 } && test -s conftest.
$ac_objext; then
8452 ac_cv_member_struct_ifreq_ifr_addr
=yes
8454 echo "$as_me: failed program was:" >&5
8455 sed 's/^/| /' conftest.
$ac_ext >&5
8457 ac_cv_member_struct_ifreq_ifr_addr
=no
8460 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8463 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8465 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8466 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8467 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8469 cat >>confdefs.h
<<_ACEOF
8470 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8478 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8479 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8480 if test "$ac_cv_prog_cc_c89" != no
; then
8481 { echo "$as_me:$LINENO: result: yes" >&5
8482 echo "${ECHO_T}yes" >&6; }
8484 cat >>confdefs.h
<<\_ACEOF
8485 #define PROTOTYPES 1
8489 cat >>confdefs.h
<<\_ACEOF
8490 #define __PROTOTYPES 1
8494 { echo "$as_me:$LINENO: result: no" >&5
8495 echo "${ECHO_T}no" >&6; }
8498 { echo "$as_me:$LINENO: checking for working volatile" >&5
8499 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8500 if test "${ac_cv_c_volatile+set}" = set; then
8501 echo $ECHO_N "(cached) $ECHO_C" >&6
8503 cat >conftest.
$ac_ext <<_ACEOF
8506 cat confdefs.h
>>conftest.
$ac_ext
8507 cat >>conftest.
$ac_ext <<_ACEOF
8508 /* end confdefs.h. */
8515 int * volatile y = (int *) 0;
8521 rm -f conftest.
$ac_objext
8522 if { (ac_try
="$ac_compile"
8524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8525 *) ac_try_echo=$ac_try;;
8527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8528 (eval "$ac_compile") 2>conftest.er1
8530 grep -v '^ *+' conftest.er1 >conftest.err
8532 cat conftest.err >&5
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); } && {
8535 test -z "$ac_c_werror_flag" ||
8536 test ! -s conftest.err
8537 } && test -s conftest.$ac_objext; then
8538 ac_cv_c_volatile=yes
8540 echo "$as_me: failed program was:" >&5
8541 sed 's/^/| /' conftest.$ac_ext >&5
8546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8548 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8549 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8550 if test $ac_cv_c_volatile = no; then
8552 cat >>confdefs.h <<\_ACEOF
8558 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8559 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8560 if test "${ac_cv_c_const+set}" = set; then
8561 echo $ECHO_N "(cached) $ECHO_C" >&6
8563 cat >conftest.$ac_ext <<_ACEOF
8566 cat confdefs.h >>conftest.$ac_ext
8567 cat >>conftest.$ac_ext <<_ACEOF
8568 /* end confdefs.h. */
8573 /* FIXME: Include the comments suggested by Paul. */
8575 /* Ultrix mips cc rejects this. */
8576 typedef int charset[2];
8578 /* SunOS 4.1.1 cc rejects this. */
8579 char const *const *pcpcc;
8581 /* NEC SVR4.0.2 mips cc rejects this. */
8582 struct point {int x, y;};
8583 static struct point const zero = {0,0};
8584 /* AIX XL C 1.02.0.0 rejects this.
8585 It does not let you subtract one const X* pointer from another in
8586 an arm of an if-expression whose if-part is not a constant
8588 const char *g = "string";
8589 pcpcc = &g + (g ? g-g : 0);
8590 /* HPUX 7.0 cc rejects these. */
8592 ppc = (char**) pcpcc;
8593 pcpcc = (char const *const *) ppc;
8594 { /* SCO 3.2v4 cc rejects this. */
8596 char const *s = 0 ? (char *) 0 : (char const *) 0;
8601 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8603 const int *foo = &x[0];
8606 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8607 typedef const int *iptr;
8611 { /* AIX XL C 1.02.0.0 rejects this saying
8612 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8613 struct s { int j; const int *ap[3]; };
8614 struct s *b; b->j = 5;
8616 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8620 return !cs[0] && !zero.x;
8627 rm -f conftest.$ac_objext
8628 if { (ac_try="$ac_compile"
8630 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8631 *) ac_try_echo
=$ac_try;;
8633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8634 (eval "$ac_compile") 2>conftest.er1
8636 grep -v '^ *+' conftest.er1
>conftest.err
8638 cat conftest.err
>&5
8639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8640 (exit $ac_status); } && {
8641 test -z "$ac_c_werror_flag" ||
8642 test ! -s conftest.err
8643 } && test -s conftest.
$ac_objext; then
8646 echo "$as_me: failed program was:" >&5
8647 sed 's/^/| /' conftest.
$ac_ext >&5
8652 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8654 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8655 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8656 if test $ac_cv_c_const = no
; then
8658 cat >>confdefs.h
<<\_ACEOF
8664 { echo "$as_me:$LINENO: checking for void * support" >&5
8665 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8666 if test "${emacs_cv_void_star+set}" = set; then
8667 echo $ECHO_N "(cached) $ECHO_C" >&6
8669 cat >conftest.
$ac_ext <<_ACEOF
8672 cat confdefs.h
>>conftest.
$ac_ext
8673 cat >>conftest.
$ac_ext <<_ACEOF
8674 /* end confdefs.h. */
8684 rm -f conftest.
$ac_objext
8685 if { (ac_try
="$ac_compile"
8687 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8688 *) ac_try_echo=$ac_try;;
8690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8691 (eval "$ac_compile") 2>conftest.er1
8693 grep -v '^ *+' conftest.er1 >conftest.err
8695 cat conftest.err >&5
8696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8697 (exit $ac_status); } && {
8698 test -z "$ac_c_werror_flag" ||
8699 test ! -s conftest.err
8700 } && test -s conftest.$ac_objext; then
8701 emacs_cv_void_star=yes
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8706 emacs_cv_void_star=no
8709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8711 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8712 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8713 if test $emacs_cv_void_star = yes; then
8714 cat >>confdefs.h <<\_ACEOF
8715 #define POINTER_TYPE void
8719 cat >>confdefs.h <<\_ACEOF
8720 #define POINTER_TYPE char
8729 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8730 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8731 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8732 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8733 echo $ECHO_N "(cached) $ECHO_C" >&6
8735 cat >conftest.make <<\_ACEOF
8738 @echo '@@@%%%=$(MAKE)=@@@%%%'
8740 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8741 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8743 eval ac_cv_prog_make_${ac_make}_set=yes;;
8745 eval ac_cv_prog_make_${ac_make}_set=no;;
8749 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8750 { echo "$as_me:$LINENO: result: yes" >&5
8751 echo "${ECHO_T}yes" >&6; }
8754 { echo "$as_me:$LINENO: result: no" >&5
8755 echo "${ECHO_T}no" >&6; }
8756 SET_MAKE="MAKE=${MAKE-make}"
8760 { echo "$as_me:$LINENO: checking for long file names" >&5
8761 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8762 if test "${ac_cv_sys_long_file_names+set}" = set; then
8763 echo $ECHO_N "(cached) $ECHO_C" >&6
8765 ac_cv_sys_long_file_names=yes
8766 # Test for long file names in all the places we know might matter:
8767 # . the current directory, where building will happen
8768 # $prefix/lib where we will be installing things
8769 # $exec_prefix/lib likewise
8770 # $TMPDIR if set, where it might want to write temporary files
8771 # /tmp where it might want to write temporary files
8774 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8775 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8776 # in the usual case where exec_prefix is '${prefix}'.
8778 . | /* | ?:[\\/]*) ;; #(
8781 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8782 ac_xdir=$ac_dir/cf$$
8783 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8784 ac_tf1=$ac_xdir/conftest9012345
8785 ac_tf2=$ac_xdir/conftest9012346
8786 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8787 ac_cv_sys_long_file_names=no
8788 rm -f -r "$ac_xdir" 2>/dev/null
8789 test $ac_cv_sys_long_file_names = no && break
8792 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8793 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8794 if test $ac_cv_sys_long_file_names = yes; then
8796 cat >>confdefs.h <<\_ACEOF
8797 #define HAVE_LONG_FILE_NAMES 1
8803 #### Choose a window system.
8805 { echo "$as_me:$LINENO: checking for X" >&5
8806 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8809 # Check whether --with-x was given.
8810 if test "${with_x+set}" = set; then
8814 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8815 if test "x$with_x" = xno; then
8816 # The user explicitly disabled X.
8819 case $x_includes,$x_libraries in #(
8820 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8821 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8822 { (exit 1); exit 1; }; };; #(
8823 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8824 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 # One or both of the vars are not set, and there is no cached value.
8827 ac_x_includes=no ac_x_libraries=no
8828 rm -f -r conftest.dir
8829 if mkdir conftest.dir; then
8831 cat >Imakefile <<'_ACEOF'
8833 @echo incroot='${INCROOT}'
8835 @echo usrlibdir='${USRLIBDIR}'
8837 @echo libdir='${LIBDIR}'
8839 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8840 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8841 for ac_var in incroot usrlibdir libdir; do
8842 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8844 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8845 for ac_extension in a so sl; do
8846 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8847 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8848 ac_im_usrlibdir=$ac_im_libdir; break
8851 # Screen out bogus values from the imake configuration. They are
8852 # bogus both because they are the default anyway, and because
8853 # using them would break gcc on systems where it needs fixed includes.
8854 case $ac_im_incroot in
8855 /usr/include) ac_x_includes= ;;
8856 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8858 case $ac_im_usrlibdir in
8860 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8864 rm -f -r conftest.dir
8867 # Standard set of common directories for X headers.
8868 # Check X11 before X11Rn because it is often a symlink to the current release.
8880 /usr/local/X11/include
8881 /usr/local/X11R6/include
8882 /usr/local/X11R5/include
8883 /usr/local/X11R4/include
8885 /usr/local/include/X11
8886 /usr/local/include/X11R6
8887 /usr/local/include/X11R5
8888 /usr/local/include/X11R4
8892 /usr/XFree86/include/X11
8896 /usr/unsupported/include
8898 /usr/local/x11r5/include
8899 /usr/lpp/Xamples/include
8901 /usr/openwin/include
8902 /usr/openwin/share/include'
8904 if test "$ac_x_includes" = no; then
8905 # Guess where to find include files, by looking for Xlib.h.
8906 # First, try using that file with no special directory specified.
8907 cat >conftest.$ac_ext <<_ACEOF
8910 cat confdefs.h >>conftest.$ac_ext
8911 cat >>conftest.$ac_ext <<_ACEOF
8912 /* end confdefs.h. */
8913 #include <X11/Xlib.h>
8915 if { (ac_try="$ac_cpp conftest.$ac_ext"
8917 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8918 *) ac_try_echo
=$ac_try;;
8920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8923 grep -v '^ *+' conftest.er1
>conftest.err
8925 cat conftest.err
>&5
8926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8927 (exit $ac_status); } >/dev
/null
&& {
8928 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8929 test ! -s conftest.err
8931 # We can compile using X headers with no special include directory.
8934 echo "$as_me: failed program was:" >&5
8935 sed 's/^/| /' conftest.
$ac_ext >&5
8937 for ac_dir
in $ac_x_header_dirs; do
8938 if test -r "$ac_dir/X11/Xlib.h"; then
8939 ac_x_includes
=$ac_dir
8945 rm -f conftest.err conftest.
$ac_ext
8946 fi # $ac_x_includes = no
8948 if test "$ac_x_libraries" = no
; then
8949 # Check for the libraries.
8950 # See if we find them without any special options.
8951 # Don't add to $LIBS permanently.
8954 cat >conftest.
$ac_ext <<_ACEOF
8957 cat confdefs.h
>>conftest.
$ac_ext
8958 cat >>conftest.
$ac_ext <<_ACEOF
8959 /* end confdefs.h. */
8960 #include <X11/Xlib.h>
8969 rm -f conftest.
$ac_objext conftest
$ac_exeext
8970 if { (ac_try
="$ac_link"
8972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8973 *) ac_try_echo=$ac_try;;
8975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8976 (eval "$ac_link") 2>conftest.er1
8978 grep -v '^ *+' conftest.er1 >conftest.err
8980 cat conftest.err >&5
8981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8982 (exit $ac_status); } && {
8983 test -z "$ac_c_werror_flag" ||
8984 test ! -s conftest.err
8985 } && test -s conftest$ac_exeext &&
8986 $as_test_x conftest$ac_exeext; then
8988 # We can link X programs with no special library path.
8991 echo "$as_me: failed program was:" >&5
8992 sed 's/^/| /' conftest.$ac_ext >&5
8995 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
8997 # Don't even attempt the hair of trying to link an X program!
8998 for ac_extension in a so sl; do
8999 if test -r "$ac_dir/libX11.$ac_extension"; then
9000 ac_x_libraries=$ac_dir
9007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9008 conftest$ac_exeext conftest.$ac_ext
9009 fi # $ac_x_libraries = no
9011 case $ac_x_includes,$ac_x_libraries in #(
9013 # Didn't find X, or a directory has "'" in its name.
9014 ac_cv_have_x="have_x=no";; #(
9016 # Record where we found X for the cache.
9017 ac_cv_have_x="have_x=yes\
9018 ac_x_includes='$ac_x_includes'\
9019 ac_x_libraries='$ac_x_libraries'"
9025 eval "$ac_cv_have_x"
9028 if test "$have_x" != yes; then
9029 { echo "$as_me:$LINENO: result: $have_x" >&5
9030 echo "${ECHO_T}$have_x" >&6; }
9033 # If each of the values was on the command line, it overrides each guess.
9034 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9035 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9036 # Update the cache value to reflect the command line values.
9037 ac_cv_have_x="have_x=yes\
9038 ac_x_includes='$x_includes'\
9039 ac_x_libraries='$x_libraries'"
9040 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9041 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9044 if test "$no_x" = yes; then
9050 if test "${x_libraries}" != NONE; then
9051 if test -n "${x_libraries}"; then
9052 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9053 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9055 x_default_search_path=""
9056 x_search_path=${x_libraries}
9057 if test -z "${x_search_path}"; then
9058 x_search_path=/usr/lib
9060 for x_library in `echo ${x_search_path}: | \
9061 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9063 ${x_library}/X11/%L/%T/%N%C%S:\
9064 ${x_library}/X11/%l/%T/%N%C%S:\
9065 ${x_library}/X11/%T/%N%C%S:\
9066 ${x_library}/X11/%L/%T/%N%S:\
9067 ${x_library}/X11/%l/%T/%N%S:\
9068 ${x_library}/X11/%T/%N%S"
9069 if test x"${x_default_search_path}" = x; then
9070 x_default_search_path=${x_search_path}
9072 x_default_search_path="${x_search_path}:${x_default_search_path}"
9076 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9077 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9080 if test x"${x_includes}" = x; then
9081 bitmapdir=/usr/include/X11/bitmaps
9083 # accumulate include directories that have X11 bitmap subdirectories
9085 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9086 if test -d "${bmd}/X11/bitmaps"; then
9087 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9089 if test -d "${bmd}/bitmaps"; then
9090 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9093 if test ${bmd_acc} != "dummyval"; then
9094 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9099 if test "${with_carbon}" != no; then
9100 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9101 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9102 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9103 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9106 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9107 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9109 # Is the header compilable?
9110 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9111 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9112 cat >conftest.$ac_ext <<_ACEOF
9115 cat confdefs.h >>conftest.$ac_ext
9116 cat >>conftest.$ac_ext <<_ACEOF
9117 /* end confdefs.h. */
9118 $ac_includes_default
9119 #include <Carbon/Carbon.h>
9121 rm -f conftest.$ac_objext
9122 if { (ac_try="$ac_compile"
9124 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9125 *) ac_try_echo
=$ac_try;;
9127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9128 (eval "$ac_compile") 2>conftest.er1
9130 grep -v '^ *+' conftest.er1
>conftest.err
9132 cat conftest.err
>&5
9133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9134 (exit $ac_status); } && {
9135 test -z "$ac_c_werror_flag" ||
9136 test ! -s conftest.err
9137 } && test -s conftest.
$ac_objext; then
9138 ac_header_compiler
=yes
9140 echo "$as_me: failed program was:" >&5
9141 sed 's/^/| /' conftest.
$ac_ext >&5
9143 ac_header_compiler
=no
9146 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9147 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9148 echo "${ECHO_T}$ac_header_compiler" >&6; }
9150 # Is the header present?
9151 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9152 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9153 cat >conftest.
$ac_ext <<_ACEOF
9156 cat confdefs.h
>>conftest.
$ac_ext
9157 cat >>conftest.
$ac_ext <<_ACEOF
9158 /* end confdefs.h. */
9159 #include <Carbon/Carbon.h>
9161 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9164 *) ac_try_echo=$ac_try;;
9166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9167 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9169 grep -v '^ *+' conftest.er1 >conftest.err
9171 cat conftest.err >&5
9172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9173 (exit $ac_status); } >/dev/null && {
9174 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9175 test ! -s conftest.err
9177 ac_header_preproc=yes
9179 echo "$as_me: failed program was:" >&5
9180 sed 's/^/| /' conftest.$ac_ext >&5
9182 ac_header_preproc=no
9185 rm -f conftest.err conftest.$ac_ext
9186 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9187 echo "${ECHO_T}$ac_header_preproc" >&6; }
9189 # So? What about this header?
9190 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9192 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9193 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9195 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9196 ac_header_preproc=yes
9199 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9200 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9201 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9202 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9203 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9204 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9205 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9206 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9207 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9208 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9209 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9210 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9214 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9215 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9216 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9217 echo $ECHO_N "(cached) $ECHO_C" >&6
9219 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9221 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9222 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9225 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9231 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9232 if test "${with_carbon+set}" != set \
9233 && test "${carbon_appdir_x+set}" != set; then
9234 for var in with_x with_x_toolkit with_xim \
9235 with_xpm with_jpeg with_tiff with_gif with_png; do
9236 if eval test \"\${$var+set}\" = set; then
9243 if test "${HAVE_CARBON}" = yes; then
9247 case "${window_system}" in
9251 case "${with_x_toolkit}" in
9252 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9253 motif ) USE_X_TOOLKIT=MOTIF ;;
9255 USE_X_TOOLKIT=none ;;
9256 no ) USE_X_TOOLKIT=none ;;
9257 * ) USE_X_TOOLKIT=maybe ;;
9267 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9268 # Extract the first word of "X", so it can be a program name with args.
9269 set dummy X; ac_word=$2
9270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9272 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9273 echo $ECHO_N "(cached) $ECHO_C" >&6
9275 if test -n "$HAVE_XSERVER"; then
9276 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9282 test -z "$as_dir" && as_dir=.
9283 for ac_exec_ext in '' $ac_executable_extensions; do
9284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9285 ac_cv_prog_HAVE_XSERVER="true"
9286 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9293 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9296 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9297 if test -n "$HAVE_XSERVER"; then
9298 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9299 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9301 { echo "$as_me:$LINENO: result: no" >&5
9302 echo "${ECHO_T}no" >&6; }
9306 if test "$HAVE_XSERVER" = true ||
9307 test -n "$DISPLAY" ||
9308 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9309 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9310 were found. You should install the relevant development files for X
9311 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9312 sure you have development files for image handling, i.e.
9313 tiff, gif, jpeg, png and xpm.
9314 If you are sure you want Emacs compiled without X window support, pass
9317 echo "$as_me: error: You seem to be running X, but no X development libraries
9318 were found. You should install the relevant development files for X
9319 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9320 sure you have development files for image handling, i.e.
9321 tiff, gif, jpeg, png and xpm.
9322 If you are sure you want Emacs compiled without X window support, pass
9324 to configure." >&2;}
9325 { (exit 1); exit 1; }; }
9329 ### If we're using X11, we should use the X menu package.
9332 yes ) HAVE_MENUS=yes ;;
9335 ### Compute the unexec source name from the object name.
9336 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9338 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9339 # Assume not, until told otherwise.
9342 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9343 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9344 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9345 echo $ECHO_N "(cached) $ECHO_C" >&6
9347 cat >conftest.$ac_ext <<_ACEOF
9350 cat confdefs.h >>conftest.$ac_ext
9351 cat >>conftest.$ac_ext <<_ACEOF
9352 /* end confdefs.h. */
9353 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9355 #define malloc_get_state innocuous_malloc_get_state
9357 /* System header to define __stub macros and hopefully few prototypes,
9358 which can conflict with char malloc_get_state (); below.
9359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9360 <limits.h> exists even on freestanding compilers. */
9363 # include <limits.h>
9365 # include <assert.h>
9368 #undef malloc_get_state
9370 /* Override any GCC internal prototype to avoid an error.
9371 Use char because int might match the return type of a GCC
9372 builtin and then its argument prototype would still apply. */
9376 char malloc_get_state ();
9377 /* The GNU C library defines this for functions which it implements
9378 to always fail with ENOSYS. Some functions are actually named
9379 something starting with __ and the normal name is an alias. */
9380 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9387 return malloc_get_state ();
9392 rm -f conftest.$ac_objext conftest$ac_exeext
9393 if { (ac_try="$ac_link"
9395 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9396 *) ac_try_echo
=$ac_try;;
9398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9399 (eval "$ac_link") 2>conftest.er1
9401 grep -v '^ *+' conftest.er1
>conftest.err
9403 cat conftest.err
>&5
9404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9405 (exit $ac_status); } && {
9406 test -z "$ac_c_werror_flag" ||
9407 test ! -s conftest.err
9408 } && test -s conftest
$ac_exeext &&
9409 $as_test_x conftest
$ac_exeext; then
9410 ac_cv_func_malloc_get_state
=yes
9412 echo "$as_me: failed program was:" >&5
9413 sed 's/^/| /' conftest.
$ac_ext >&5
9415 ac_cv_func_malloc_get_state
=no
9418 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9419 conftest
$ac_exeext conftest.
$ac_ext
9421 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9422 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9423 if test $ac_cv_func_malloc_get_state = yes; then
9429 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9430 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9431 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9432 echo $ECHO_N "(cached) $ECHO_C" >&6
9434 cat >conftest.
$ac_ext <<_ACEOF
9437 cat confdefs.h
>>conftest.
$ac_ext
9438 cat >>conftest.
$ac_ext <<_ACEOF
9439 /* end confdefs.h. */
9440 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9441 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9442 #define malloc_set_state innocuous_malloc_set_state
9444 /* System header to define __stub macros and hopefully few prototypes,
9445 which can conflict with char malloc_set_state (); below.
9446 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9447 <limits.h> exists even on freestanding compilers. */
9450 # include <limits.h>
9452 # include <assert.h>
9455 #undef malloc_set_state
9457 /* Override any GCC internal prototype to avoid an error.
9458 Use char because int might match the return type of a GCC
9459 builtin and then its argument prototype would still apply. */
9463 char malloc_set_state ();
9464 /* The GNU C library defines this for functions which it implements
9465 to always fail with ENOSYS. Some functions are actually named
9466 something starting with __ and the normal name is an alias. */
9467 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9474 return malloc_set_state ();
9479 rm -f conftest.
$ac_objext conftest
$ac_exeext
9480 if { (ac_try
="$ac_link"
9482 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9483 *) ac_try_echo=$ac_try;;
9485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9486 (eval "$ac_link") 2>conftest.er1
9488 grep -v '^ *+' conftest.er1 >conftest.err
9490 cat conftest.err >&5
9491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9492 (exit $ac_status); } && {
9493 test -z "$ac_c_werror_flag" ||
9494 test ! -s conftest.err
9495 } && test -s conftest$ac_exeext &&
9496 $as_test_x conftest$ac_exeext; then
9497 ac_cv_func_malloc_set_state=yes
9499 echo "$as_me: failed program was:" >&5
9500 sed 's/^/| /' conftest.$ac_ext >&5
9502 ac_cv_func_malloc_set_state=no
9505 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9506 conftest$ac_exeext conftest.$ac_ext
9508 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9509 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9510 if test $ac_cv_func_malloc_set_state = yes; then
9516 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9517 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9518 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 cat >conftest.$ac_ext <<_ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9527 extern void (* __after_morecore_hook)();
9531 __after_morecore_hook = 0
9536 rm -f conftest.$ac_objext conftest$ac_exeext
9537 if { (ac_try="$ac_link"
9539 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9540 *) ac_try_echo
=$ac_try;;
9542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9543 (eval "$ac_link") 2>conftest.er1
9545 grep -v '^ *+' conftest.er1
>conftest.err
9547 cat conftest.err
>&5
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); } && {
9550 test -z "$ac_c_werror_flag" ||
9551 test ! -s conftest.err
9552 } && test -s conftest
$ac_exeext &&
9553 $as_test_x conftest
$ac_exeext; then
9554 emacs_cv_var___after_morecore_hook
=yes
9556 echo "$as_me: failed program was:" >&5
9557 sed 's/^/| /' conftest.
$ac_ext >&5
9559 emacs_cv_var___after_morecore_hook
=no
9562 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9563 conftest
$ac_exeext conftest.
$ac_ext
9565 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9566 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9567 if test $emacs_cv_var___after_morecore_hook = no
; then
9570 if test "${system_malloc}" = "yes"; then
9573 (The GNU allocators don't work with this system configuration.)"
9575 if test "$doug_lea_malloc" = "yes" ; then
9576 if test "$GNU_MALLOC" = yes ; then
9578 (Using Doug Lea's new malloc from the GNU C Library.)"
9581 cat >>confdefs.h
<<\_ACEOF
9582 #define DOUG_LEA_MALLOC 1
9587 if test x
"${REL_ALLOC}" = x
; then
9588 REL_ALLOC
=${GNU_MALLOC}
9594 for ac_header
in stdlib.h unistd.h
9596 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9597 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9600 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9601 echo $ECHO_N "(cached) $ECHO_C" >&6
9603 ac_res
=`eval echo '${'$as_ac_Header'}'`
9604 { echo "$as_me:$LINENO: result: $ac_res" >&5
9605 echo "${ECHO_T}$ac_res" >&6; }
9607 # Is the header compilable?
9608 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9609 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9610 cat >conftest.
$ac_ext <<_ACEOF
9613 cat confdefs.h
>>conftest.
$ac_ext
9614 cat >>conftest.
$ac_ext <<_ACEOF
9615 /* end confdefs.h. */
9616 $ac_includes_default
9617 #include <$ac_header>
9619 rm -f conftest.
$ac_objext
9620 if { (ac_try
="$ac_compile"
9622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9623 *) ac_try_echo=$ac_try;;
9625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9626 (eval "$ac_compile") 2>conftest.er1
9628 grep -v '^ *+' conftest.er1 >conftest.err
9630 cat conftest.err >&5
9631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9632 (exit $ac_status); } && {
9633 test -z "$ac_c_werror_flag" ||
9634 test ! -s conftest.err
9635 } && test -s conftest.$ac_objext; then
9636 ac_header_compiler=yes
9638 echo "$as_me: failed program was:" >&5
9639 sed 's/^/| /' conftest.$ac_ext >&5
9641 ac_header_compiler=no
9644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9645 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9646 echo "${ECHO_T}$ac_header_compiler" >&6; }
9648 # Is the header present?
9649 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9650 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9651 cat >conftest.$ac_ext <<_ACEOF
9654 cat confdefs.h >>conftest.$ac_ext
9655 cat >>conftest.$ac_ext <<_ACEOF
9656 /* end confdefs.h. */
9657 #include <$ac_header>
9659 if { (ac_try="$ac_cpp conftest.$ac_ext"
9661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9662 *) ac_try_echo
=$ac_try;;
9664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9665 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9667 grep -v '^ *+' conftest.er1
>conftest.err
9669 cat conftest.err
>&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 (exit $ac_status); } >/dev
/null
&& {
9672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9673 test ! -s conftest.err
9675 ac_header_preproc
=yes
9677 echo "$as_me: failed program was:" >&5
9678 sed 's/^/| /' conftest.
$ac_ext >&5
9680 ac_header_preproc
=no
9683 rm -f conftest.err conftest.
$ac_ext
9684 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9685 echo "${ECHO_T}$ac_header_preproc" >&6; }
9687 # So? What about this header?
9688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9691 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9693 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9694 ac_header_preproc
=yes
9697 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9698 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9699 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9700 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9701 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9702 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9703 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9704 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9706 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9707 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9708 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9712 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9713 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9714 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9715 echo $ECHO_N "(cached) $ECHO_C" >&6
9717 eval "$as_ac_Header=\$ac_header_preproc"
9719 ac_res
=`eval echo '${'$as_ac_Header'}'`
9720 { echo "$as_me:$LINENO: result: $ac_res" >&5
9721 echo "${ECHO_T}$ac_res" >&6; }
9724 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9725 cat >>confdefs.h
<<_ACEOF
9726 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9734 for ac_func
in getpagesize
9736 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9737 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9738 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9739 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9740 echo $ECHO_N "(cached) $ECHO_C" >&6
9742 cat >conftest.
$ac_ext <<_ACEOF
9745 cat confdefs.h
>>conftest.
$ac_ext
9746 cat >>conftest.
$ac_ext <<_ACEOF
9747 /* end confdefs.h. */
9748 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9749 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9750 #define $ac_func innocuous_$ac_func
9752 /* System header to define __stub macros and hopefully few prototypes,
9753 which can conflict with char $ac_func (); below.
9754 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9755 <limits.h> exists even on freestanding compilers. */
9758 # include <limits.h>
9760 # include <assert.h>
9765 /* Override any GCC internal prototype to avoid an error.
9766 Use char because int might match the return type of a GCC
9767 builtin and then its argument prototype would still apply. */
9772 /* The GNU C library defines this for functions which it implements
9773 to always fail with ENOSYS. Some functions are actually named
9774 something starting with __ and the normal name is an alias. */
9775 #if defined __stub_$ac_func || defined __stub___$ac_func
9787 rm -f conftest.
$ac_objext conftest
$ac_exeext
9788 if { (ac_try
="$ac_link"
9790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_link") 2>conftest.er1
9796 grep -v '^ *+' conftest.er1 >conftest.err
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } && {
9801 test -z "$ac_c_werror_flag" ||
9802 test ! -s conftest.err
9803 } && test -s conftest$ac_exeext &&
9804 $as_test_x conftest$ac_exeext; then
9805 eval "$as_ac_var=yes"
9807 echo "$as_me: failed program was:" >&5
9808 sed 's/^/| /' conftest.$ac_ext >&5
9810 eval "$as_ac_var=no"
9813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9814 conftest$ac_exeext conftest.$ac_ext
9816 ac_res=`eval echo '${'$as_ac_var'}'`
9817 { echo "$as_me:$LINENO: result: $ac_res" >&5
9818 echo "${ECHO_T}$ac_res" >&6; }
9819 if test `eval echo '${'$as_ac_var'}'` = yes; then
9820 cat >>confdefs.h <<_ACEOF
9821 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9827 { echo "$as_me:$LINENO: checking for working mmap" >&5
9828 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9829 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9830 echo $ECHO_N "(cached) $ECHO_C" >&6
9832 if test "$cross_compiling" = yes; then
9833 ac_cv_func_mmap_fixed_mapped=no
9835 cat >conftest.$ac_ext <<_ACEOF
9838 cat confdefs.h >>conftest.$ac_ext
9839 cat >>conftest.$ac_ext <<_ACEOF
9840 /* end confdefs.h. */
9841 $ac_includes_default
9842 /* malloc might have been renamed as rpl_malloc. */
9845 /* Thanks to Mike Haertel and Jim Avera for this test.
9846 Here is a matrix of mmap possibilities:
9847 mmap private not fixed
9848 mmap private fixed at somewhere currently unmapped
9849 mmap private fixed at somewhere already mapped
9850 mmap shared not fixed
9851 mmap shared fixed at somewhere currently unmapped
9852 mmap shared fixed at somewhere already mapped
9853 For private mappings, we should verify that changes cannot be read()
9854 back from the file, nor mmap's back from the file at a different
9855 address. (There have been systems where private was not correctly
9856 implemented like the infamous i386 svr4.0, and systems where the
9857 VM page cache was not coherent with the file system buffer cache
9858 like early versions of FreeBSD and possibly contemporary NetBSD.)
9859 For shared mappings, we should conversely verify that changes get
9860 propagated back to all the places they're supposed to be.
9862 Grep wants private fixed already mapped.
9863 The main things grep needs to know about mmap are:
9864 * does it exist and is it safe to write into the mmap'd area
9865 * how to use it (BSD variants) */
9868 #include <sys/mman.h>
9870 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9874 /* This mess was copied from the GNU getpagesize.h. */
9875 #ifndef HAVE_GETPAGESIZE
9876 /* Assume that all systems that can run configure have sys/param.h. */
9877 # ifndef HAVE_SYS_PARAM_H
9878 # define HAVE_SYS_PARAM_H 1
9881 # ifdef _SC_PAGESIZE
9882 # define getpagesize() sysconf(_SC_PAGESIZE)
9883 # else /* no _SC_PAGESIZE */
9884 # ifdef HAVE_SYS_PARAM_H
9885 # include <sys/param.h>
9886 # ifdef EXEC_PAGESIZE
9887 # define getpagesize() EXEC_PAGESIZE
9888 # else /* no EXEC_PAGESIZE */
9890 # define getpagesize() NBPG * CLSIZE
9893 # endif /* no CLSIZE */
9894 # else /* no NBPG */
9896 # define getpagesize() NBPC
9897 # else /* no NBPC */
9899 # define getpagesize() PAGESIZE
9900 # endif /* PAGESIZE */
9901 # endif /* no NBPC */
9902 # endif /* no NBPG */
9903 # endif /* no EXEC_PAGESIZE */
9904 # else /* no HAVE_SYS_PARAM_H */
9905 # define getpagesize() 8192 /* punt totally */
9906 # endif /* no HAVE_SYS_PARAM_H */
9907 # endif /* no _SC_PAGESIZE */
9909 #endif /* no HAVE_GETPAGESIZE */
9914 char *data, *data2, *data3;
9918 pagesize = getpagesize ();
9920 /* First, make a file with some known garbage in it. */
9921 data = (char *) malloc (pagesize);
9924 for (i = 0; i < pagesize; ++i)
9925 *(data + i) = rand ();
9927 fd = creat ("conftest.mmap", 0600);
9930 if (write (fd, data, pagesize) != pagesize)
9934 /* Next, try to mmap the file at a fixed address which already has
9935 something else allocated at it. If we can, also make sure that
9936 we see the same garbage. */
9937 fd = open ("conftest.mmap", O_RDWR);
9940 data2 = (char *) malloc (2 * pagesize);
9943 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9944 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9945 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9947 for (i = 0; i < pagesize; ++i)
9948 if (*(data + i) != *(data2 + i))
9951 /* Finally, make sure that changes to the mapped area do not
9952 percolate back to the file as seen by read(). (This is a bug on
9953 some variants of i386 svr4.0.) */
9954 for (i = 0; i < pagesize; ++i)
9955 *(data2 + i) = *(data2 + i) + 1;
9956 data3 = (char *) malloc (pagesize);
9959 if (read (fd, data3, pagesize) != pagesize)
9961 for (i = 0; i < pagesize; ++i)
9962 if (*(data + i) != *(data3 + i))
9968 rm -f conftest$ac_exeext
9969 if { (ac_try="$ac_link"
9971 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9972 *) ac_try_echo
=$ac_try;;
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_link") 2>&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9979 { (case "(($ac_try" in
9980 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9981 *) ac_try_echo=$ac_try;;
9983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9984 (eval "$ac_try") 2>&5
9986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9987 (exit $ac_status); }; }; then
9988 ac_cv_func_mmap_fixed_mapped=yes
9990 echo "$as_me: program exited with status $ac_status" >&5
9991 echo "$as_me: failed program was:" >&5
9992 sed 's/^/| /' conftest.$ac_ext >&5
9995 ac_cv_func_mmap_fixed_mapped=no
9997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10002 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10003 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10004 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10006 cat >>confdefs.h <<\_ACEOF
10007 #define HAVE_MMAP 1
10011 rm -f conftest.mmap
10013 if test $use_mmap_for_buffers = yes; then
10017 LIBS="$libsrc_libs $LIBS"
10020 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10021 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10022 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10023 echo $ECHO_N "(cached) $ECHO_C" >&6
10025 ac_check_lib_save_LIBS=$LIBS
10026 LIBS="-ldnet $LIBS"
10027 cat >conftest.$ac_ext <<_ACEOF
10030 cat confdefs.h >>conftest.$ac_ext
10031 cat >>conftest.$ac_ext <<_ACEOF
10032 /* end confdefs.h. */
10034 /* Override any GCC internal prototype to avoid an error.
10035 Use char because int might match the return type of a GCC
10036 builtin and then its argument prototype would still apply. */
10044 return dnet_ntoa ();
10049 rm -f conftest.$ac_objext conftest$ac_exeext
10050 if { (ac_try="$ac_link"
10051 case "(($ac_try" in
10052 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10053 *) ac_try_echo
=$ac_try;;
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_link") 2>conftest.er1
10058 grep -v '^ *+' conftest.er1
>conftest.err
10060 cat conftest.err
>&5
10061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10062 (exit $ac_status); } && {
10063 test -z "$ac_c_werror_flag" ||
10064 test ! -s conftest.err
10065 } && test -s conftest
$ac_exeext &&
10066 $as_test_x conftest
$ac_exeext; then
10067 ac_cv_lib_dnet_dnet_ntoa
=yes
10069 echo "$as_me: failed program was:" >&5
10070 sed 's/^/| /' conftest.
$ac_ext >&5
10072 ac_cv_lib_dnet_dnet_ntoa
=no
10075 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10076 conftest
$ac_exeext conftest.
$ac_ext
10077 LIBS
=$ac_check_lib_save_LIBS
10079 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10080 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10081 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10082 cat >>confdefs.h
<<_ACEOF
10083 #define HAVE_LIBDNET 1
10086 LIBS
="-ldnet $LIBS"
10091 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10092 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10093 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10094 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 ac_check_lib_save_LIBS
=$LIBS
10097 LIBS
="-lXbsd $LIBS"
10098 cat >conftest.
$ac_ext <<_ACEOF
10101 cat confdefs.h
>>conftest.
$ac_ext
10102 cat >>conftest.
$ac_ext <<_ACEOF
10103 /* end confdefs.h. */
10114 rm -f conftest.
$ac_objext conftest
$ac_exeext
10115 if { (ac_try
="$ac_link"
10116 case "(($ac_try" in
10117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10118 *) ac_try_echo=$ac_try;;
10120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10121 (eval "$ac_link") 2>conftest.er1
10123 grep -v '^ *+' conftest.er1 >conftest.err
10125 cat conftest.err >&5
10126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10127 (exit $ac_status); } && {
10128 test -z "$ac_c_werror_flag" ||
10129 test ! -s conftest.err
10130 } && test -s conftest$ac_exeext &&
10131 $as_test_x conftest$ac_exeext; then
10132 ac_cv_lib_Xbsd_main=yes
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10137 ac_cv_lib_Xbsd_main=no
10140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10141 conftest$ac_exeext conftest.$ac_ext
10142 LIBS=$ac_check_lib_save_LIBS
10144 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10145 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10146 if test $ac_cv_lib_Xbsd_main = yes; then
10147 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10152 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10153 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10154 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10157 ac_check_lib_save_LIBS=$LIBS
10158 LIBS="-lpthreads $LIBS"
10159 cat >conftest.$ac_ext <<_ACEOF
10162 cat confdefs.h >>conftest.$ac_ext
10163 cat >>conftest.$ac_ext <<_ACEOF
10164 /* end confdefs.h. */
10166 /* Override any GCC internal prototype to avoid an error.
10167 Use char because int might match the return type of a GCC
10168 builtin and then its argument prototype would still apply. */
10176 return cma_open ();
10181 rm -f conftest.$ac_objext conftest$ac_exeext
10182 if { (ac_try="$ac_link"
10183 case "(($ac_try" in
10184 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10185 *) ac_try_echo
=$ac_try;;
10187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10188 (eval "$ac_link") 2>conftest.er1
10190 grep -v '^ *+' conftest.er1
>conftest.err
10192 cat conftest.err
>&5
10193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10194 (exit $ac_status); } && {
10195 test -z "$ac_c_werror_flag" ||
10196 test ! -s conftest.err
10197 } && test -s conftest
$ac_exeext &&
10198 $as_test_x conftest
$ac_exeext; then
10199 ac_cv_lib_pthreads_cma_open
=yes
10201 echo "$as_me: failed program was:" >&5
10202 sed 's/^/| /' conftest.
$ac_ext >&5
10204 ac_cv_lib_pthreads_cma_open
=no
10207 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10208 conftest
$ac_exeext conftest.
$ac_ext
10209 LIBS
=$ac_check_lib_save_LIBS
10211 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10212 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10213 if test $ac_cv_lib_pthreads_cma_open = yes; then
10214 cat >>confdefs.h
<<_ACEOF
10215 #define HAVE_LIBPTHREADS 1
10218 LIBS
="-lpthreads $LIBS"
10226 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10227 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10228 if test "${gdb_cv_bigtoc+set}" = set; then
10229 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10234 *) gdb_cv_bigtoc
=-bbigtoc ;;
10237 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10238 cat >conftest.
$ac_ext <<_ACEOF
10241 cat confdefs.h
>>conftest.
$ac_ext
10242 cat >>conftest.
$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10253 rm -f conftest.
$ac_objext conftest
$ac_exeext
10254 if { (ac_try
="$ac_link"
10255 case "(($ac_try" in
10256 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_link") 2>conftest.er1
10262 grep -v '^ *+' conftest.er1 >conftest.err
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } && {
10267 test -z "$ac_c_werror_flag" ||
10268 test ! -s conftest.err
10269 } && test -s conftest$ac_exeext &&
10270 $as_test_x conftest$ac_exeext; then
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10280 conftest$ac_exeext conftest.$ac_ext
10283 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10284 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10288 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10289 # used for the tests that follow. We set them back to REAL_CFLAGS and
10290 # REAL_CPPFLAGS later on.
10292 REAL_CPPFLAGS="$CPPFLAGS"
10294 if test "${HAVE_X11}" = "yes"; then
10295 DEFS="$C_SWITCH_X_SITE $DEFS"
10296 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10298 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10299 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10301 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10302 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10303 # but it's more convenient here to set LD_RUN_PATH
10304 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10305 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10306 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10310 if test "${opsys}" = "gnu-linux"; then
10311 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10312 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10313 cat >conftest.$ac_ext <<_ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10323 XOpenDisplay ("foo");
10328 rm -f conftest.$ac_objext conftest$ac_exeext
10329 if { (ac_try="$ac_link"
10330 case "(($ac_try" in
10331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10332 *) ac_try_echo
=$ac_try;;
10334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10335 (eval "$ac_link") 2>conftest.er1
10337 grep -v '^ *+' conftest.er1
>conftest.err
10339 cat conftest.err
>&5
10340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10341 (exit $ac_status); } && {
10342 test -z "$ac_c_werror_flag" ||
10343 test ! -s conftest.err
10344 } && test -s conftest
$ac_exeext &&
10345 $as_test_x conftest
$ac_exeext; then
10346 xlinux_first_failure
=no
10348 echo "$as_me: failed program was:" >&5
10349 sed 's/^/| /' conftest.
$ac_ext >&5
10351 xlinux_first_failure
=yes
10354 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10355 conftest
$ac_exeext conftest.
$ac_ext
10356 if test "${xlinux_first_failure}" = "yes"; then
10357 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10358 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10359 OLD_CPPFLAGS
="$CPPFLAGS"
10361 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10362 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10363 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10364 LIBS
="$LIBS -b i486-linuxaout"
10365 cat >conftest.
$ac_ext <<_ACEOF
10368 cat confdefs.h
>>conftest.
$ac_ext
10369 cat >>conftest.
$ac_ext <<_ACEOF
10370 /* end confdefs.h. */
10375 XOpenDisplay ("foo");
10380 rm -f conftest.
$ac_objext conftest
$ac_exeext
10381 if { (ac_try
="$ac_link"
10382 case "(($ac_try" in
10383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10384 *) ac_try_echo=$ac_try;;
10386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10387 (eval "$ac_link") 2>conftest.er1
10389 grep -v '^ *+' conftest.er1 >conftest.err
10391 cat conftest.err >&5
10392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10393 (exit $ac_status); } && {
10394 test -z "$ac_c_werror_flag" ||
10395 test ! -s conftest.err
10396 } && test -s conftest$ac_exeext &&
10397 $as_test_x conftest$ac_exeext; then
10398 xlinux_second_failure=no
10400 echo "$as_me: failed program was:" >&5
10401 sed 's/^/| /' conftest.$ac_ext >&5
10403 xlinux_second_failure=yes
10406 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10407 conftest$ac_exeext conftest.$ac_ext
10408 if test "${xlinux_second_failure}" = "yes"; then
10409 # If we get the same failure with -b, there is no use adding -b.
10410 # So take it out. This plays safe.
10411 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10412 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10413 CPPFLAGS="$OLD_CPPFLAGS"
10415 { echo "$as_me:$LINENO: result: no" >&5
10416 echo "${ECHO_T}no" >&6; }
10418 { echo "$as_me:$LINENO: result: yes" >&5
10419 echo "${ECHO_T}yes" >&6; }
10422 { echo "$as_me:$LINENO: result: no" >&5
10423 echo "${ECHO_T}no" >&6; }
10427 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10428 # header files included from there.
10429 { echo "$as_me:$LINENO: checking for Xkb" >&5
10430 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10431 cat >conftest.$ac_ext <<_ACEOF
10434 cat confdefs.h >>conftest.$ac_ext
10435 cat >>conftest.$ac_ext <<_ACEOF
10436 /* end confdefs.h. */
10437 #include <X11/Xlib.h>
10438 #include <X11/XKBlib.h>
10442 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10447 rm -f conftest.$ac_objext conftest$ac_exeext
10448 if { (ac_try="$ac_link"
10449 case "(($ac_try" in
10450 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10451 *) ac_try_echo
=$ac_try;;
10453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10454 (eval "$ac_link") 2>conftest.er1
10456 grep -v '^ *+' conftest.er1
>conftest.err
10458 cat conftest.err
>&5
10459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10460 (exit $ac_status); } && {
10461 test -z "$ac_c_werror_flag" ||
10462 test ! -s conftest.err
10463 } && test -s conftest
$ac_exeext &&
10464 $as_test_x conftest
$ac_exeext; then
10467 echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.
$ac_ext >&5
10473 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10474 conftest
$ac_exeext conftest.
$ac_ext
10475 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10476 echo "${ECHO_T}$emacs_xkb" >&6; }
10477 if test $emacs_xkb = yes; then
10479 cat >>confdefs.h
<<\_ACEOF
10480 #define HAVE_XKBGETKEYBOARD 1
10489 for ac_func
in XrmSetDatabase XScreenResourceString \
10490 XScreenNumberOfScreen XSetWMProtocols
10492 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10493 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10494 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10495 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10496 echo $ECHO_N "(cached) $ECHO_C" >&6
10498 cat >conftest.
$ac_ext <<_ACEOF
10501 cat confdefs.h
>>conftest.
$ac_ext
10502 cat >>conftest.
$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10504 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10505 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10506 #define $ac_func innocuous_$ac_func
10508 /* System header to define __stub macros and hopefully few prototypes,
10509 which can conflict with char $ac_func (); below.
10510 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10511 <limits.h> exists even on freestanding compilers. */
10514 # include <limits.h>
10516 # include <assert.h>
10521 /* Override any GCC internal prototype to avoid an error.
10522 Use char because int might match the return type of a GCC
10523 builtin and then its argument prototype would still apply. */
10528 /* The GNU C library defines this for functions which it implements
10529 to always fail with ENOSYS. Some functions are actually named
10530 something starting with __ and the normal name is an alias. */
10531 #if defined __stub_$ac_func || defined __stub___$ac_func
10538 return $ac_func ();
10543 rm -f conftest.
$ac_objext conftest
$ac_exeext
10544 if { (ac_try
="$ac_link"
10545 case "(($ac_try" in
10546 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10547 *) ac_try_echo=$ac_try;;
10549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10550 (eval "$ac_link") 2>conftest.er1
10552 grep -v '^ *+' conftest.er1 >conftest.err
10554 cat conftest.err >&5
10555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10556 (exit $ac_status); } && {
10557 test -z "$ac_c_werror_flag" ||
10558 test ! -s conftest.err
10559 } && test -s conftest$ac_exeext &&
10560 $as_test_x conftest$ac_exeext; then
10561 eval "$as_ac_var=yes"
10563 echo "$as_me: failed program was:" >&5
10564 sed 's/^/| /' conftest.$ac_ext >&5
10566 eval "$as_ac_var=no"
10569 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10570 conftest$ac_exeext conftest.$ac_ext
10572 ac_res=`eval echo '${'$as_ac_var'}'`
10573 { echo "$as_me:$LINENO: result: $ac_res" >&5
10574 echo "${ECHO_T}$ac_res" >&6; }
10575 if test `eval echo '${'$as_ac_var'}'` = yes; then
10576 cat >>confdefs.h <<_ACEOF
10577 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10585 if test "${window_system}" = "x11"; then
10586 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10587 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10588 if test "${emacs_cv_x11_version_6+set}" = set; then
10589 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 cat >conftest.$ac_ext <<_ACEOF
10594 cat confdefs.h >>conftest.$ac_ext
10595 cat >>conftest.$ac_ext <<_ACEOF
10596 /* end confdefs.h. */
10597 #include <X11/Xlib.h>
10601 #if XlibSpecificationRelease < 6
10609 rm -f conftest.$ac_objext conftest$ac_exeext
10610 if { (ac_try="$ac_link"
10611 case "(($ac_try" in
10612 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10613 *) ac_try_echo
=$ac_try;;
10615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10616 (eval "$ac_link") 2>conftest.er1
10618 grep -v '^ *+' conftest.er1
>conftest.err
10620 cat conftest.err
>&5
10621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10622 (exit $ac_status); } && {
10623 test -z "$ac_c_werror_flag" ||
10624 test ! -s conftest.err
10625 } && test -s conftest
$ac_exeext &&
10626 $as_test_x conftest
$ac_exeext; then
10627 emacs_cv_x11_version_6
=yes
10629 echo "$as_me: failed program was:" >&5
10630 sed 's/^/| /' conftest.
$ac_ext >&5
10632 emacs_cv_x11_version_6
=no
10635 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10636 conftest
$ac_exeext conftest.
$ac_ext
10639 if test $emacs_cv_x11_version_6 = yes; then
10640 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10641 echo "${ECHO_T}6 or newer" >&6; }
10643 cat >>confdefs.h
<<\_ACEOF
10644 #define HAVE_X11R6 1
10648 { echo "$as_me:$LINENO: result: before 6" >&5
10649 echo "${ECHO_T}before 6" >&6; }
10654 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10656 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10657 if test "${with_rsvg}" != "no"; then
10658 RSVG_REQUIRED
=2.0.0
10659 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10664 # Extract the first word of "pkg-config", so it can be a program name with args.
10665 set dummy pkg-config
; ac_word
=$2
10666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10668 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10669 echo $ECHO_N "(cached) $ECHO_C" >&6
10671 case $PKG_CONFIG in
10673 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10676 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10677 for as_dir
in $PATH
10680 test -z "$as_dir" && as_dir
=.
10681 for ac_exec_ext
in '' $ac_executable_extensions; do
10682 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10683 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10684 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10691 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10695 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10696 if test -n "$PKG_CONFIG"; then
10697 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10698 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10700 { echo "$as_me:$LINENO: result: no" >&5
10701 echo "${ECHO_T}no" >&6; }
10706 if test "$PKG_CONFIG" = "no" ; then
10709 PKG_CONFIG_MIN_VERSION
=0.9.0
10710 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10711 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10712 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10714 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10715 { echo "$as_me:$LINENO: result: yes" >&5
10716 echo "${ECHO_T}yes" >&6; }
10719 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10720 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10721 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10722 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10723 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10725 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10726 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10727 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10728 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10729 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10731 { echo "$as_me:$LINENO: result: no" >&5
10732 echo "${ECHO_T}no" >&6; }
10735 ## If we have a custom action on failure, don't print errors, but
10736 ## do set a variable so people can do so.
10737 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10744 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10745 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10749 if test $succeeded = yes; then
10758 if test ".${RSVG_CFLAGS}" != "."; then
10761 cat >>confdefs.h
<<\_ACEOF
10762 #define HAVE_RSVG 1
10765 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10766 LIBS
="$RSVG_LIBS $LIBS"
10773 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10776 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10781 # Extract the first word of "pkg-config", so it can be a program name with args.
10782 set dummy pkg-config
; ac_word
=$2
10783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10785 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10786 echo $ECHO_N "(cached) $ECHO_C" >&6
10788 case $PKG_CONFIG in
10790 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10793 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10794 for as_dir
in $PATH
10797 test -z "$as_dir" && as_dir
=.
10798 for ac_exec_ext
in '' $ac_executable_extensions; do
10799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10800 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10808 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10812 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10813 if test -n "$PKG_CONFIG"; then
10814 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10815 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10817 { echo "$as_me:$LINENO: result: no" >&5
10818 echo "${ECHO_T}no" >&6; }
10823 if test "$PKG_CONFIG" = "no" ; then
10826 PKG_CONFIG_MIN_VERSION
=0.9.0
10827 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10828 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10829 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10831 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10832 { echo "$as_me:$LINENO: result: yes" >&5
10833 echo "${ECHO_T}yes" >&6; }
10836 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10837 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10838 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10839 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10840 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10842 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10843 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10844 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10845 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10846 echo "${ECHO_T}$GTK_LIBS" >&6; }
10848 { echo "$as_me:$LINENO: result: no" >&5
10849 echo "${ECHO_T}no" >&6; }
10852 ## If we have a custom action on failure, don't print errors, but
10853 ## do set a variable so people can do so.
10854 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10861 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10862 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10866 if test $succeeded = yes; then
10872 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10873 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10874 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10875 { (exit 1); exit 1; }; }
10880 if test x
"$pkg_check_gtk" = xyes
; then
10884 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10885 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10886 LIBS
="$GTK_LIBS $LIBS"
10889 for ac_func
in gtk_main
10891 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10892 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10893 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10894 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10895 echo $ECHO_N "(cached) $ECHO_C" >&6
10897 cat >conftest.
$ac_ext <<_ACEOF
10900 cat confdefs.h
>>conftest.
$ac_ext
10901 cat >>conftest.
$ac_ext <<_ACEOF
10902 /* end confdefs.h. */
10903 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10904 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10905 #define $ac_func innocuous_$ac_func
10907 /* System header to define __stub macros and hopefully few prototypes,
10908 which can conflict with char $ac_func (); below.
10909 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10910 <limits.h> exists even on freestanding compilers. */
10913 # include <limits.h>
10915 # include <assert.h>
10920 /* Override any GCC internal prototype to avoid an error.
10921 Use char because int might match the return type of a GCC
10922 builtin and then its argument prototype would still apply. */
10927 /* The GNU C library defines this for functions which it implements
10928 to always fail with ENOSYS. Some functions are actually named
10929 something starting with __ and the normal name is an alias. */
10930 #if defined __stub_$ac_func || defined __stub___$ac_func
10937 return $ac_func ();
10942 rm -f conftest.
$ac_objext conftest
$ac_exeext
10943 if { (ac_try
="$ac_link"
10944 case "(($ac_try" in
10945 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10946 *) ac_try_echo=$ac_try;;
10948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10949 (eval "$ac_link") 2>conftest.er1
10951 grep -v '^ *+' conftest.er1 >conftest.err
10953 cat conftest.err >&5
10954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10955 (exit $ac_status); } && {
10956 test -z "$ac_c_werror_flag" ||
10957 test ! -s conftest.err
10958 } && test -s conftest$ac_exeext &&
10959 $as_test_x conftest$ac_exeext; then
10960 eval "$as_ac_var=yes"
10962 echo "$as_me: failed program was:" >&5
10963 sed 's/^/| /' conftest.$ac_ext >&5
10965 eval "$as_ac_var=no"
10968 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10969 conftest$ac_exeext conftest.$ac_ext
10971 ac_res=`eval echo '${'$as_ac_var'}'`
10972 { echo "$as_me:$LINENO: result: $ac_res" >&5
10973 echo "${ECHO_T}$ac_res" >&6; }
10974 if test `eval echo '${'$as_ac_var'}'` = yes; then
10975 cat >>confdefs.h <<_ACEOF
10976 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10982 if test "${GTK_COMPILES}" != "yes"; then
10983 if test "$USE_X_TOOLKIT" != "maybe"; then
10984 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10985 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10986 { (exit 1); exit 1; }; };
10991 cat >>confdefs.h <<\_ACEOF
10996 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
10999 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11000 closing open displays. This is no problem if you just use
11001 one display, but if you use more than one and close one of them
11002 Emacs may crash." >&5
11003 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11004 closing open displays. This is no problem if you just use
11005 one display, but if you use more than one and close one of them
11006 Emacs may crash." >&2;}
11014 if test "${HAVE_GTK}" = "yes"; then
11016 if test "$with_toolkit_scroll_bars" != no; then
11017 with_toolkit_scroll_bars=yes
11020 HAVE_GTK_MULTIDISPLAY=no
11022 for ac_func in gdk_display_open
11024 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11030 cat >conftest.$ac_ext <<_ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11038 #define $ac_func innocuous_$ac_func
11040 /* System header to define __stub macros and hopefully few prototypes,
11041 which can conflict with char $ac_func (); below.
11042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11043 <limits.h> exists even on freestanding compilers. */
11046 # include <limits.h>
11048 # include <assert.h>
11053 /* Override any GCC internal prototype to avoid an error.
11054 Use char because int might match the return type of a GCC
11055 builtin and then its argument prototype would still apply. */
11060 /* The GNU C library defines this for functions which it implements
11061 to always fail with ENOSYS. Some functions are actually named
11062 something starting with __ and the normal name is an alias. */
11063 #if defined __stub_$ac_func || defined __stub___$ac_func
11070 return $ac_func ();
11075 rm -f conftest.$ac_objext conftest$ac_exeext
11076 if { (ac_try="$ac_link"
11077 case "(($ac_try" in
11078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11079 *) ac_try_echo
=$ac_try;;
11081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11082 (eval "$ac_link") 2>conftest.er1
11084 grep -v '^ *+' conftest.er1
>conftest.err
11086 cat conftest.err
>&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } && {
11089 test -z "$ac_c_werror_flag" ||
11090 test ! -s conftest.err
11091 } && test -s conftest
$ac_exeext &&
11092 $as_test_x conftest
$ac_exeext; then
11093 eval "$as_ac_var=yes"
11095 echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.
$ac_ext >&5
11098 eval "$as_ac_var=no"
11101 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11102 conftest
$ac_exeext conftest.
$ac_ext
11104 ac_res
=`eval echo '${'$as_ac_var'}'`
11105 { echo "$as_me:$LINENO: result: $ac_res" >&5
11106 echo "${ECHO_T}$ac_res" >&6; }
11107 if test `eval echo '${'$as_ac_var'}'` = yes; then
11108 cat >>confdefs.h
<<_ACEOF
11109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11111 HAVE_GTK_MULTIDISPLAY
=yes
11115 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11117 cat >>confdefs.h
<<\_ACEOF
11118 #define HAVE_GTK_MULTIDISPLAY 1
11123 HAVE_GTK_FILE_SELECTION
=no
11125 for ac_func
in gtk_file_selection_new
11127 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11130 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11133 cat >conftest.
$ac_ext <<_ACEOF
11136 cat confdefs.h
>>conftest.
$ac_ext
11137 cat >>conftest.
$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11141 #define $ac_func innocuous_$ac_func
11143 /* System header to define __stub macros and hopefully few prototypes,
11144 which can conflict with char $ac_func (); below.
11145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11146 <limits.h> exists even on freestanding compilers. */
11149 # include <limits.h>
11151 # include <assert.h>
11156 /* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
11163 /* The GNU C library defines this for functions which it implements
11164 to always fail with ENOSYS. Some functions are actually named
11165 something starting with __ and the normal name is an alias. */
11166 #if defined __stub_$ac_func || defined __stub___$ac_func
11173 return $ac_func ();
11178 rm -f conftest.
$ac_objext conftest
$ac_exeext
11179 if { (ac_try
="$ac_link"
11180 case "(($ac_try" in
11181 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_link") 2>conftest.er1
11187 grep -v '^ *+' conftest.er1 >conftest.err
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } && {
11192 test -z "$ac_c_werror_flag" ||
11193 test ! -s conftest.err
11194 } && test -s conftest$ac_exeext &&
11195 $as_test_x conftest$ac_exeext; then
11196 eval "$as_ac_var=yes"
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11201 eval "$as_ac_var=no"
11204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11205 conftest$ac_exeext conftest.$ac_ext
11207 ac_res=`eval echo '${'$as_ac_var'}'`
11208 { echo "$as_me:$LINENO: result: $ac_res" >&5
11209 echo "${ECHO_T}$ac_res" >&6; }
11210 if test `eval echo '${'$as_ac_var'}'` = yes; then
11211 cat >>confdefs.h <<_ACEOF
11212 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11214 HAVE_GTK_FILE_SELECTION=yes
11219 HAVE_GTK_FILE_CHOOSER=no
11221 for ac_func in gtk_file_chooser_dialog_new
11223 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11224 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11229 cat >conftest.$ac_ext <<_ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11237 #define $ac_func innocuous_$ac_func
11239 /* System header to define __stub macros and hopefully few prototypes,
11240 which can conflict with char $ac_func (); below.
11241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11242 <limits.h> exists even on freestanding compilers. */
11245 # include <limits.h>
11247 # include <assert.h>
11252 /* Override any GCC internal prototype to avoid an error.
11253 Use char because int might match the return type of a GCC
11254 builtin and then its argument prototype would still apply. */
11259 /* The GNU C library defines this for functions which it implements
11260 to always fail with ENOSYS. Some functions are actually named
11261 something starting with __ and the normal name is an alias. */
11262 #if defined __stub_$ac_func || defined __stub___$ac_func
11269 return $ac_func ();
11274 rm -f conftest.$ac_objext conftest$ac_exeext
11275 if { (ac_try="$ac_link"
11276 case "(($ac_try" in
11277 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11278 *) ac_try_echo
=$ac_try;;
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_link") 2>conftest.er1
11283 grep -v '^ *+' conftest.er1
>conftest.err
11285 cat conftest.err
>&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } && {
11288 test -z "$ac_c_werror_flag" ||
11289 test ! -s conftest.err
11290 } && test -s conftest
$ac_exeext &&
11291 $as_test_x conftest
$ac_exeext; then
11292 eval "$as_ac_var=yes"
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.
$ac_ext >&5
11297 eval "$as_ac_var=no"
11300 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11301 conftest
$ac_exeext conftest.
$ac_ext
11303 ac_res
=`eval echo '${'$as_ac_var'}'`
11304 { echo "$as_me:$LINENO: result: $ac_res" >&5
11305 echo "${ECHO_T}$ac_res" >&6; }
11306 if test `eval echo '${'$as_ac_var'}'` = yes; then
11307 cat >>confdefs.h
<<_ACEOF
11308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11310 HAVE_GTK_FILE_CHOOSER
=yes
11315 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11316 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11318 cat >>confdefs.h
<<\_ACEOF
11319 #define HAVE_GTK_FILE_BOTH 1
11324 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11325 HAVE_GTK_AND_PTHREAD
=no
11327 for ac_header
in pthread.h
11329 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11330 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11333 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11336 ac_res
=`eval echo '${'$as_ac_Header'}'`
11337 { echo "$as_me:$LINENO: result: $ac_res" >&5
11338 echo "${ECHO_T}$ac_res" >&6; }
11340 # Is the header compilable?
11341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11343 cat >conftest.
$ac_ext <<_ACEOF
11346 cat confdefs.h
>>conftest.
$ac_ext
11347 cat >>conftest.
$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 $ac_includes_default
11350 #include <$ac_header>
11352 rm -f conftest.
$ac_objext
11353 if { (ac_try
="$ac_compile"
11354 case "(($ac_try" in
11355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_compile") 2>conftest.er1
11361 grep -v '^ *+' conftest.er1 >conftest.err
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } && {
11366 test -z "$ac_c_werror_flag" ||
11367 test ! -s conftest.err
11368 } && test -s conftest.$ac_objext; then
11369 ac_header_compiler=yes
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11374 ac_header_compiler=no
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379 echo "${ECHO_T}$ac_header_compiler" >&6; }
11381 # Is the header present?
11382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11384 cat >conftest.$ac_ext <<_ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 #include <$ac_header>
11392 if { (ac_try="$ac_cpp conftest.$ac_ext"
11393 case "(($ac_try" in
11394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11395 *) ac_try_echo
=$ac_try;;
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11400 grep -v '^ *+' conftest.er1
>conftest.err
11402 cat conftest.err
>&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev
/null
&& {
11405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11406 test ! -s conftest.err
11408 ac_header_preproc
=yes
11410 echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.
$ac_ext >&5
11413 ac_header_preproc
=no
11416 rm -f conftest.err conftest.
$ac_ext
11417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11418 echo "${ECHO_T}$ac_header_preproc" >&6; }
11420 # So? What about this header?
11421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11427 ac_header_preproc
=yes
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11447 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11450 eval "$as_ac_Header=\$ac_header_preproc"
11452 ac_res
=`eval echo '${'$as_ac_Header'}'`
11453 { echo "$as_me:$LINENO: result: $ac_res" >&5
11454 echo "${ECHO_T}$ac_res" >&6; }
11457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11458 cat >>confdefs.h
<<_ACEOF
11459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11466 if test "$ac_cv_header_pthread_h"; then
11467 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11468 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11469 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11472 ac_check_lib_save_LIBS
=$LIBS
11473 LIBS
="-lpthread $LIBS"
11474 cat >conftest.
$ac_ext <<_ACEOF
11477 cat confdefs.h
>>conftest.
$ac_ext
11478 cat >>conftest.
$ac_ext <<_ACEOF
11479 /* end confdefs.h. */
11481 /* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
11487 char pthread_self ();
11491 return pthread_self ();
11496 rm -f conftest.
$ac_objext conftest
$ac_exeext
11497 if { (ac_try
="$ac_link"
11498 case "(($ac_try" in
11499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_link") 2>conftest.er1
11505 grep -v '^ *+' conftest.er1 >conftest.err
11507 cat conftest.err >&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } && {
11510 test -z "$ac_c_werror_flag" ||
11511 test ! -s conftest.err
11512 } && test -s conftest$ac_exeext &&
11513 $as_test_x conftest$ac_exeext; then
11514 ac_cv_lib_pthread_pthread_self=yes
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11519 ac_cv_lib_pthread_pthread_self=no
11522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11526 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11527 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11528 if test $ac_cv_lib_pthread_pthread_self = yes; then
11529 HAVE_GTK_AND_PTHREAD=yes
11533 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11534 case "${canonical}" in
11536 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11539 cat >>confdefs.h <<\_ACEOF
11540 #define HAVE_GTK_AND_PTHREAD 1
11548 if test "${with_dbus}" = "yes"; then
11552 # Extract the first word of "pkg-config", so it can be a program name with args.
11553 set dummy pkg-config; ac_word=$2
11554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11556 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11559 case $PKG_CONFIG in
11561 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11571 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11579 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11583 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11584 if test -n "$PKG_CONFIG"; then
11585 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11586 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11588 { echo "$as_me:$LINENO: result: no" >&5
11589 echo "${ECHO_T}no" >&6; }
11594 if test "$PKG_CONFIG" = "no" ; then
11597 PKG_CONFIG_MIN_VERSION=0.9.0
11598 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11599 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11600 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11602 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11603 { echo "$as_me:$LINENO: result: yes" >&5
11604 echo "${ECHO_T}yes" >&6; }
11607 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11608 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11609 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11610 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11611 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11613 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11614 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11615 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11616 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11617 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11619 { echo "$as_me:$LINENO: result: no" >&5
11620 echo "${ECHO_T}no" >&6; }
11623 ## If we have a custom action on failure, don't print errors, but
11624 ## do set a variable so people can do so.
11625 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11632 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11633 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11637 if test $succeeded = yes; then
11643 if test "$HAVE_DBUS" = yes; then
11645 cat >>confdefs.h <<\_ACEOF
11646 #define HAVE_DBUS 1
11653 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11654 if test "$with_xaw3d" != no; then
11655 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11656 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11657 if test "${emacs_cv_xaw3d+set}" = set; then
11658 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 cat >conftest.$ac_ext <<_ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h. */
11667 #include <X11/Intrinsic.h>
11668 #include <X11/Xaw3d/Simple.h>
11677 rm -f conftest.$ac_objext conftest$ac_exeext
11678 if { (ac_try="$ac_link"
11679 case "(($ac_try" in
11680 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11681 *) ac_try_echo
=$ac_try;;
11683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11684 (eval "$ac_link") 2>conftest.er1
11686 grep -v '^ *+' conftest.er1
>conftest.err
11688 cat conftest.err
>&5
11689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11690 (exit $ac_status); } && {
11691 test -z "$ac_c_werror_flag" ||
11692 test ! -s conftest.err
11693 } && test -s conftest
$ac_exeext &&
11694 $as_test_x conftest
$ac_exeext; then
11697 echo "$as_me: failed program was:" >&5
11698 sed 's/^/| /' conftest.
$ac_ext >&5
11703 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11704 conftest
$ac_exeext conftest.
$ac_ext
11710 if test $emacs_cv_xaw3d = yes; then
11711 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11712 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11713 USE_X_TOOLKIT
=LUCID
11716 cat >>confdefs.h
<<\_ACEOF
11717 #define HAVE_XAW3D 1
11721 { echo "$as_me:$LINENO: result: no" >&5
11722 echo "${ECHO_T}no" >&6; }
11723 { echo "$as_me:$LINENO: checking for libXaw" >&5
11724 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11725 if test "${emacs_cv_xaw+set}" = set; then
11726 echo $ECHO_N "(cached) $ECHO_C" >&6
11728 cat >conftest.
$ac_ext <<_ACEOF
11731 cat confdefs.h
>>conftest.
$ac_ext
11732 cat >>conftest.
$ac_ext <<_ACEOF
11733 /* end confdefs.h. */
11735 #include <X11/Intrinsic.h>
11736 #include <X11/Xaw/Simple.h>
11745 rm -f conftest.
$ac_objext conftest
$ac_exeext
11746 if { (ac_try
="$ac_link"
11747 case "(($ac_try" in
11748 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11749 *) ac_try_echo=$ac_try;;
11751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11752 (eval "$ac_link") 2>conftest.er1
11754 grep -v '^ *+' conftest.er1 >conftest.err
11756 cat conftest.err >&5
11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11758 (exit $ac_status); } && {
11759 test -z "$ac_c_werror_flag" ||
11760 test ! -s conftest.err
11761 } && test -s conftest$ac_exeext &&
11762 $as_test_x conftest$ac_exeext; then
11765 echo "$as_me: failed program was:" >&5
11766 sed 's/^/| /' conftest.$ac_ext >&5
11771 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11772 conftest$ac_exeext conftest.$ac_ext
11775 if test $emacs_cv_xaw = yes; then
11776 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11777 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11778 USE_X_TOOLKIT=LUCID
11779 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11780 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11781 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11782 { (exit 1); exit 1; }; }
11784 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11785 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11791 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11793 if test "${USE_X_TOOLKIT}" != "none"; then
11794 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11795 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11796 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11797 echo $ECHO_N "(cached) $ECHO_C" >&6
11799 cat >conftest.$ac_ext <<_ACEOF
11802 cat confdefs.h >>conftest.$ac_ext
11803 cat >>conftest.$ac_ext <<_ACEOF
11804 /* end confdefs.h. */
11805 #include <X11/Intrinsic.h>
11809 #if XtSpecificationRelease < 6
11817 rm -f conftest.$ac_objext conftest$ac_exeext
11818 if { (ac_try="$ac_link"
11819 case "(($ac_try" in
11820 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11821 *) ac_try_echo
=$ac_try;;
11823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11824 (eval "$ac_link") 2>conftest.er1
11826 grep -v '^ *+' conftest.er1
>conftest.err
11828 cat conftest.err
>&5
11829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11830 (exit $ac_status); } && {
11831 test -z "$ac_c_werror_flag" ||
11832 test ! -s conftest.err
11833 } && test -s conftest
$ac_exeext &&
11834 $as_test_x conftest
$ac_exeext; then
11835 emacs_cv_x11_toolkit_version_6
=yes
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.
$ac_ext >&5
11840 emacs_cv_x11_toolkit_version_6
=no
11843 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11844 conftest
$ac_exeext conftest.
$ac_ext
11847 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11848 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11849 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11850 echo "${ECHO_T}6 or newer" >&6; }
11852 cat >>confdefs.h
<<\_ACEOF
11853 #define HAVE_X11XTR6 1
11857 { echo "$as_me:$LINENO: result: before 6" >&5
11858 echo "${ECHO_T}before 6" >&6; }
11862 if test x
$HAVE_X11XTR6 = xyes
; then
11863 LIBS
="-lXt -lSM -lICE $LIBS"
11868 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11869 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11870 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11873 ac_check_lib_save_LIBS
=$LIBS
11875 cat >conftest.
$ac_ext <<_ACEOF
11878 cat confdefs.h
>>conftest.
$ac_ext
11879 cat >>conftest.
$ac_ext <<_ACEOF
11880 /* end confdefs.h. */
11882 /* Override any GCC internal prototype to avoid an error.
11883 Use char because int might match the return type of a GCC
11884 builtin and then its argument prototype would still apply. */
11888 char XmuConvertStandardSelection ();
11892 return XmuConvertStandardSelection ();
11897 rm -f conftest.
$ac_objext conftest
$ac_exeext
11898 if { (ac_try
="$ac_link"
11899 case "(($ac_try" in
11900 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11901 *) ac_try_echo=$ac_try;;
11903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11904 (eval "$ac_link") 2>conftest.er1
11906 grep -v '^ *+' conftest.er1 >conftest.err
11908 cat conftest.err >&5
11909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11910 (exit $ac_status); } && {
11911 test -z "$ac_c_werror_flag" ||
11912 test ! -s conftest.err
11913 } && test -s conftest$ac_exeext &&
11914 $as_test_x conftest$ac_exeext; then
11915 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11917 echo "$as_me: failed program was:" >&5
11918 sed 's/^/| /' conftest.$ac_ext >&5
11920 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11924 conftest$ac_exeext conftest.$ac_ext
11925 LIBS=$ac_check_lib_save_LIBS
11927 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11928 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11929 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11930 cat >>confdefs.h <<_ACEOF
11931 #define HAVE_LIBXMU 1
11938 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11941 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11942 if test "${HAVE_X11}" = "yes"; then
11943 if test "${USE_X_TOOLKIT}" != "none"; then
11945 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11946 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11947 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11948 echo $ECHO_N "(cached) $ECHO_C" >&6
11950 ac_check_lib_save_LIBS=$LIBS
11951 LIBS="-lXext $LIBS"
11952 cat >conftest.$ac_ext <<_ACEOF
11955 cat confdefs.h >>conftest.$ac_ext
11956 cat >>conftest.$ac_ext <<_ACEOF
11957 /* end confdefs.h. */
11959 /* Override any GCC internal prototype to avoid an error.
11960 Use char because int might match the return type of a GCC
11961 builtin and then its argument prototype would still apply. */
11965 char XShapeQueryExtension ();
11969 return XShapeQueryExtension ();
11974 rm -f conftest.$ac_objext conftest$ac_exeext
11975 if { (ac_try="$ac_link"
11976 case "(($ac_try" in
11977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11978 *) ac_try_echo
=$ac_try;;
11980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11981 (eval "$ac_link") 2>conftest.er1
11983 grep -v '^ *+' conftest.er1
>conftest.err
11985 cat conftest.err
>&5
11986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11987 (exit $ac_status); } && {
11988 test -z "$ac_c_werror_flag" ||
11989 test ! -s conftest.err
11990 } && test -s conftest
$ac_exeext &&
11991 $as_test_x conftest
$ac_exeext; then
11992 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11994 echo "$as_me: failed program was:" >&5
11995 sed 's/^/| /' conftest.
$ac_ext >&5
11997 ac_cv_lib_Xext_XShapeQueryExtension
=no
12000 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12001 conftest
$ac_exeext conftest.
$ac_ext
12002 LIBS
=$ac_check_lib_save_LIBS
12004 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12005 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12006 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12007 cat >>confdefs.h
<<_ACEOF
12008 #define HAVE_LIBXEXT 1
12011 LIBS
="-lXext $LIBS"
12018 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12019 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12020 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12021 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 cat >conftest.
$ac_ext <<_ACEOF
12027 cat confdefs.h
>>conftest.
$ac_ext
12028 cat >>conftest.
$ac_ext <<_ACEOF
12029 /* end confdefs.h. */
12034 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12037 Motif version prior to 2.1.
12043 rm -f conftest.
$ac_objext
12044 if { (ac_try
="$ac_compile"
12045 case "(($ac_try" in
12046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12047 *) ac_try_echo=$ac_try;;
12049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12050 (eval "$ac_compile") 2>conftest.er1
12052 grep -v '^ *+' conftest.er1 >conftest.err
12054 cat conftest.err >&5
12055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12056 (exit $ac_status); } && {
12057 test -z "$ac_c_werror_flag" ||
12058 test ! -s conftest.err
12059 } && test -s conftest.$ac_objext; then
12060 emacs_cv_motif_version_2_1=yes
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12065 emacs_cv_motif_version_2_1=no
12068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12070 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12071 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12072 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12073 if test $emacs_cv_motif_version_2_1 = yes; then
12076 cat >>confdefs.h <<\_ACEOF
12077 #define HAVE_MOTIF_2_1 1
12080 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12081 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12082 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12083 echo $ECHO_N "(cached) $ECHO_C" >&6
12085 ac_check_lib_save_LIBS=$LIBS
12087 cat >conftest.$ac_ext <<_ACEOF
12090 cat confdefs.h >>conftest.$ac_ext
12091 cat >>conftest.$ac_ext <<_ACEOF
12092 /* end confdefs.h. */
12094 /* Override any GCC internal prototype to avoid an error.
12095 Use char because int might match the return type of a GCC
12096 builtin and then its argument prototype would still apply. */
12100 char XpCreateContext ();
12104 return XpCreateContext ();
12109 rm -f conftest.$ac_objext conftest$ac_exeext
12110 if { (ac_try="$ac_link"
12111 case "(($ac_try" in
12112 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12113 *) ac_try_echo
=$ac_try;;
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116 (eval "$ac_link") 2>conftest.er1
12118 grep -v '^ *+' conftest.er1
>conftest.err
12120 cat conftest.err
>&5
12121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12122 (exit $ac_status); } && {
12123 test -z "$ac_c_werror_flag" ||
12124 test ! -s conftest.err
12125 } && test -s conftest
$ac_exeext &&
12126 $as_test_x conftest
$ac_exeext; then
12127 ac_cv_lib_Xp_XpCreateContext
=yes
12129 echo "$as_me: failed program was:" >&5
12130 sed 's/^/| /' conftest.
$ac_ext >&5
12132 ac_cv_lib_Xp_XpCreateContext
=no
12135 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12136 conftest
$ac_exeext conftest.
$ac_ext
12137 LIBS
=$ac_check_lib_save_LIBS
12139 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12140 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12141 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12145 if test ${HAVE_LIBXP} = yes; then
12147 cat >>confdefs.h
<<\_ACEOF
12148 #define HAVE_LIBXP 1
12153 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12154 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12155 if test "${emacs_cv_lesstif+set}" = set; then
12156 echo $ECHO_N "(cached) $ECHO_C" >&6
12158 # We put this in CFLAGS temporarily to precede other -I options
12159 # that might be in CFLAGS temporarily.
12160 # We put this in CPPFLAGS where it precedes the other -I options.
12161 OLD_CPPFLAGS
=$CPPFLAGS
12163 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12164 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12165 cat >conftest.
$ac_ext <<_ACEOF
12168 cat confdefs.h
>>conftest.
$ac_ext
12169 cat >>conftest.
$ac_ext <<_ACEOF
12170 /* end confdefs.h. */
12171 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12180 rm -f conftest.
$ac_objext
12181 if { (ac_try
="$ac_compile"
12182 case "(($ac_try" in
12183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12184 *) ac_try_echo=$ac_try;;
12186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12187 (eval "$ac_compile") 2>conftest.er1
12189 grep -v '^ *+' conftest.er1 >conftest.err
12191 cat conftest.err >&5
12192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12193 (exit $ac_status); } && {
12194 test -z "$ac_c_werror_flag" ||
12195 test ! -s conftest.err
12196 } && test -s conftest.$ac_objext; then
12197 emacs_cv_lesstif=yes
12199 echo "$as_me: failed program was:" >&5
12200 sed 's/^/| /' conftest.$ac_ext >&5
12202 emacs_cv_lesstif=no
12205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12208 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12209 if test $emacs_cv_lesstif = yes; then
12210 # Make sure this -I option remains in CPPFLAGS after it is set
12211 # back to REAL_CPPFLAGS.
12212 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12213 # have those other -I options anyway. Ultimately, having this
12214 # directory ultimately in CPPFLAGS will be enough.
12215 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12216 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12219 CPPFLAGS=$OLD_CPPFLAGS
12226 USE_TOOLKIT_SCROLL_BARS=no
12227 if test "${with_toolkit_scroll_bars}" != "no"; then
12228 if test "${USE_X_TOOLKIT}" != "none"; then
12229 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12230 cat >>confdefs.h <<\_ACEOF
12231 #define USE_TOOLKIT_SCROLL_BARS 1
12235 USE_TOOLKIT_SCROLL_BARS=yes
12236 elif test "${HAVE_XAW3D}" = "yes"; then
12237 cat >>confdefs.h <<\_ACEOF
12238 #define USE_TOOLKIT_SCROLL_BARS 1
12241 USE_TOOLKIT_SCROLL_BARS=yes
12243 elif test "${HAVE_GTK}" = "yes"; then
12244 cat >>confdefs.h <<\_ACEOF
12245 #define USE_TOOLKIT_SCROLL_BARS 1
12248 USE_TOOLKIT_SCROLL_BARS=yes
12249 elif test "${HAVE_CARBON}" = "yes"; then
12250 cat >>confdefs.h <<\_ACEOF
12251 #define USE_TOOLKIT_SCROLL_BARS 1
12254 USE_TOOLKIT_SCROLL_BARS=yes
12258 cat >conftest.$ac_ext <<_ACEOF
12261 cat confdefs.h >>conftest.$ac_ext
12262 cat >>conftest.$ac_ext <<_ACEOF
12263 /* end confdefs.h. */
12265 #include <X11/Xlib.h>
12266 #include <X11/Xresource.h>
12275 rm -f conftest.$ac_objext
12276 if { (ac_try="$ac_compile"
12277 case "(($ac_try" in
12278 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12279 *) ac_try_echo
=$ac_try;;
12281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12282 (eval "$ac_compile") 2>conftest.er1
12284 grep -v '^ *+' conftest.er1
>conftest.err
12286 cat conftest.err
>&5
12287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12288 (exit $ac_status); } && {
12289 test -z "$ac_c_werror_flag" ||
12290 test ! -s conftest.err
12291 } && test -s conftest.
$ac_objext; then
12294 cat >>confdefs.h
<<\_ACEOF
12299 echo "$as_me: failed program was:" >&5
12300 sed 's/^/| /' conftest.
$ac_ext >&5
12305 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12308 if test "${with_xim}" != "no"; then
12310 cat >>confdefs.h
<<\_ACEOF
12317 if test "${HAVE_XIM}" != "no"; then
12318 late_CFLAGS
=$CFLAGS
12319 if test "$GCC" = yes; then
12320 CFLAGS
="$CFLAGS --pedantic-errors"
12322 cat >conftest.
$ac_ext <<_ACEOF
12325 cat confdefs.h
>>conftest.
$ac_ext
12326 cat >>conftest.
$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12329 #include <X11/Xlib.h>
12330 #include <X11/Xresource.h>
12339 XPointer *client_data;
12341 /* If we're not using GCC, it's probably not XFree86, and this is
12342 probably right, but we can't use something like --pedantic-errors. */
12343 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12344 char*, XIMProc, XPointer*);
12346 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12352 rm -f conftest.
$ac_objext
12353 if { (ac_try
="$ac_compile"
12354 case "(($ac_try" in
12355 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_compile") 2>conftest.er1
12361 grep -v '^ *+' conftest.er1 >conftest.err
12363 cat conftest.err >&5
12364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12365 (exit $ac_status); } && {
12366 test -z "$ac_c_werror_flag" ||
12367 test ! -s conftest.err
12368 } && test -s conftest.$ac_objext; then
12369 emacs_cv_arg6_star=yes
12371 echo "$as_me: failed program was:" >&5
12372 sed 's/^/| /' conftest.$ac_ext >&5
12377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379 if test "$emacs_cv_arg6_star" = yes; then
12380 cat >>confdefs.h <<\_ACEOF
12381 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12385 cat >>confdefs.h <<\_ACEOF
12386 #define XRegisterIMInstantiateCallback_arg6 XPointer
12390 CFLAGS=$late_CFLAGS
12393 #### For font-backend
12394 if test "${USE_FONT_BACKEND}" != "no"; then
12397 cat >>confdefs.h <<\_ACEOF
12398 #define USE_FONT_BACKEND 1
12402 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12404 if test "${HAVE_X11}" = "yes"; then
12405 if test "x${with_freetype}" = "xno"; then
12408 if test "x${with_xft}" != "xno"; then
12410 if test "X${with_pkg_config_prog}" != X
; then
12411 PKG_CONFIG
="${with_pkg_config_prog}"
12417 # Extract the first word of "pkg-config", so it can be a program name with args.
12418 set dummy pkg-config
; ac_word
=$2
12419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12421 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12422 echo $ECHO_N "(cached) $ECHO_C" >&6
12424 case $PKG_CONFIG in
12426 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12430 for as_dir
in $PATH
12433 test -z "$as_dir" && as_dir
=.
12434 for ac_exec_ext
in '' $ac_executable_extensions; do
12435 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12436 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12437 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12444 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12448 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12449 if test -n "$PKG_CONFIG"; then
12450 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12451 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12453 { echo "$as_me:$LINENO: result: no" >&5
12454 echo "${ECHO_T}no" >&6; }
12459 if test "$PKG_CONFIG" = "no" ; then
12462 PKG_CONFIG_MIN_VERSION
=0.9.0
12463 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12464 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12465 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12467 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12468 { echo "$as_me:$LINENO: result: yes" >&5
12469 echo "${ECHO_T}yes" >&6; }
12472 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12473 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12474 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12475 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12476 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12478 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12479 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12480 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12481 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12482 echo "${ECHO_T}$XFT_LIBS" >&6; }
12484 { echo "$as_me:$LINENO: result: no" >&5
12485 echo "${ECHO_T}no" >&6; }
12488 ## If we have a custom action on failure, don't print errors, but
12489 ## do set a variable so people can do so.
12490 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12497 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12498 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12502 if test $succeeded = yes; then
12508 if test "$HAVE_XFT" != no
; then
12509 OLD_CPPFLAGS
="$CPPFLAGS"
12510 OLD_CFLAGS
="$CFLAGS"
12512 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12513 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12514 LIBS
="$XFT_LIBS $LIBS"
12515 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12516 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12517 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12518 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12522 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12524 # Is the header compilable?
12525 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12526 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12527 cat >conftest.
$ac_ext <<_ACEOF
12530 cat confdefs.h
>>conftest.
$ac_ext
12531 cat >>conftest.
$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12533 $ac_includes_default
12534 #include <X11/Xft/Xft.h>
12536 rm -f conftest.
$ac_objext
12537 if { (ac_try
="$ac_compile"
12538 case "(($ac_try" in
12539 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12540 *) ac_try_echo=$ac_try;;
12542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12543 (eval "$ac_compile") 2>conftest.er1
12545 grep -v '^ *+' conftest.er1 >conftest.err
12547 cat conftest.err >&5
12548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12549 (exit $ac_status); } && {
12550 test -z "$ac_c_werror_flag" ||
12551 test ! -s conftest.err
12552 } && test -s conftest.$ac_objext; then
12553 ac_header_compiler=yes
12555 echo "$as_me: failed program was:" >&5
12556 sed 's/^/| /' conftest.$ac_ext >&5
12558 ac_header_compiler=no
12561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12562 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12563 echo "${ECHO_T}$ac_header_compiler" >&6; }
12565 # Is the header present?
12566 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12567 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12568 cat >conftest.$ac_ext <<_ACEOF
12571 cat confdefs.h >>conftest.$ac_ext
12572 cat >>conftest.$ac_ext <<_ACEOF
12573 /* end confdefs.h. */
12574 #include <X11/Xft/Xft.h>
12576 if { (ac_try="$ac_cpp conftest.$ac_ext"
12577 case "(($ac_try" in
12578 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12579 *) ac_try_echo
=$ac_try;;
12581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12582 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12584 grep -v '^ *+' conftest.er1
>conftest.err
12586 cat conftest.err
>&5
12587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12588 (exit $ac_status); } >/dev
/null
&& {
12589 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12590 test ! -s conftest.err
12592 ac_header_preproc
=yes
12594 echo "$as_me: failed program was:" >&5
12595 sed 's/^/| /' conftest.
$ac_ext >&5
12597 ac_header_preproc
=no
12600 rm -f conftest.err conftest.
$ac_ext
12601 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12602 echo "${ECHO_T}$ac_header_preproc" >&6; }
12604 # So? What about this header?
12605 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12607 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12608 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12609 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12610 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12611 ac_header_preproc
=yes
12614 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12615 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12616 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12617 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12618 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12619 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12620 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12621 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12622 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12623 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12624 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12625 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12629 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12630 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12631 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12632 echo $ECHO_N "(cached) $ECHO_C" >&6
12634 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12636 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12637 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12640 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12641 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12642 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12643 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12646 ac_check_lib_save_LIBS
=$LIBS
12647 LIBS
="-lXft $XFT_LIBS $LIBS"
12648 cat >conftest.
$ac_ext <<_ACEOF
12651 cat confdefs.h
>>conftest.
$ac_ext
12652 cat >>conftest.
$ac_ext <<_ACEOF
12653 /* end confdefs.h. */
12655 /* Override any GCC internal prototype to avoid an error.
12656 Use char because int might match the return type of a GCC
12657 builtin and then its argument prototype would still apply. */
12661 char XftFontOpen ();
12665 return XftFontOpen ();
12670 rm -f conftest.
$ac_objext conftest
$ac_exeext
12671 if { (ac_try
="$ac_link"
12672 case "(($ac_try" in
12673 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12674 *) ac_try_echo=$ac_try;;
12676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12677 (eval "$ac_link") 2>conftest.er1
12679 grep -v '^ *+' conftest.er1 >conftest.err
12681 cat conftest.err >&5
12682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12683 (exit $ac_status); } && {
12684 test -z "$ac_c_werror_flag" ||
12685 test ! -s conftest.err
12686 } && test -s conftest$ac_exeext &&
12687 $as_test_x conftest$ac_exeext; then
12688 ac_cv_lib_Xft_XftFontOpen=yes
12690 echo "$as_me: failed program was:" >&5
12691 sed 's/^/| /' conftest.$ac_ext >&5
12693 ac_cv_lib_Xft_XftFontOpen=no
12696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12697 conftest$ac_exeext conftest.$ac_ext
12698 LIBS=$ac_check_lib_save_LIBS
12700 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12701 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12702 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12710 if test "${HAVE_XFT}" = "yes"; then
12712 cat >>confdefs.h <<\_ACEOF
12717 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12719 CPPFLAGS="$OLD_CPPFLAGS"
12720 CFLAGS="$OLD_CFLAGS"
12726 if test "$HAVE_XFT" != "yes"; then
12732 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12733 if test "${HAVE_XFT}" = "yes"; then
12735 elif test "x${with_freetype}" != "xno"; then
12736 if test "X${with_pkg_config_prog}" != X; then
12737 PKG_CONFIG="${with_pkg_config_prog}"
12743 # Extract the first word of "pkg-config", so it can be a program name with args.
12744 set dummy pkg-config; ac_word=$2
12745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12747 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12748 echo $ECHO_N "(cached) $ECHO_C" >&6
12750 case $PKG_CONFIG in
12752 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12756 for as_dir in $PATH
12759 test -z "$as_dir" && as_dir=.
12760 for ac_exec_ext in '' $ac_executable_extensions; do
12761 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12762 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12763 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12770 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12774 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12775 if test -n "$PKG_CONFIG"; then
12776 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12777 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12779 { echo "$as_me:$LINENO: result: no" >&5
12780 echo "${ECHO_T}no" >&6; }
12785 if test "$PKG_CONFIG" = "no" ; then
12788 PKG_CONFIG_MIN_VERSION=0.9.0
12789 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12790 { echo "$as_me:$LINENO: checking for freetype2" >&5
12791 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12793 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12794 { echo "$as_me:$LINENO: result: yes" >&5
12795 echo "${ECHO_T}yes" >&6; }
12798 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12799 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12800 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12801 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12802 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12804 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12805 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12806 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12807 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12808 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12810 { echo "$as_me:$LINENO: result: no" >&5
12811 echo "${ECHO_T}no" >&6; }
12814 ## If we have a custom action on failure, don't print errors
, but
12815 ## do set a variable so people can do so.
12816 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12823 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12824 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12828 if test $succeeded = yes; then
12834 if test "${HAVE_FREETYPE}" = "yes"; then
12838 # Extract the first word of "pkg-config", so it can be a program name with args.
12839 set dummy pkg-config
; ac_word
=$2
12840 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12841 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12842 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12843 echo $ECHO_N "(cached) $ECHO_C" >&6
12845 case $PKG_CONFIG in
12847 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12850 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12851 for as_dir
in $PATH
12854 test -z "$as_dir" && as_dir
=.
12855 for ac_exec_ext
in '' $ac_executable_extensions; do
12856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12857 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12858 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12865 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12869 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12870 if test -n "$PKG_CONFIG"; then
12871 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12872 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12874 { echo "$as_me:$LINENO: result: no" >&5
12875 echo "${ECHO_T}no" >&6; }
12880 if test "$PKG_CONFIG" = "no" ; then
12883 PKG_CONFIG_MIN_VERSION
=0.9.0
12884 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12885 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12886 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12888 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12889 { echo "$as_me:$LINENO: result: yes" >&5
12890 echo "${ECHO_T}yes" >&6; }
12893 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12894 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12895 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12896 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12897 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12899 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12900 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12901 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12902 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12903 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12905 { echo "$as_me:$LINENO: result: no" >&5
12906 echo "${ECHO_T}no" >&6; }
12907 FONTCONFIG_CFLAGS
=""
12909 ## If we have a custom action on failure, don't print errors, but
12910 ## do set a variable so people can do so.
12911 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12918 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12919 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12923 if test $succeeded = yes; then
12929 if test "${HAVE_FC}" = "no"; then
12936 if test "${HAVE_FREETYPE}" = "yes"; then
12938 cat >>confdefs.h
<<\_ACEOF
12939 #define HAVE_FREETYPE 1
12942 if test "${with_libotf}" != "no"; then
12943 if test "X${with_pkg_config_prog}" != X
; then
12944 PKG_CONFIG
="${with_pkg_config_prog}"
12949 # Extract the first word of "pkg-config", so it can be a program name with args.
12950 set dummy pkg-config
; ac_word
=$2
12951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12953 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12954 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 case $PKG_CONFIG in
12958 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12961 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12962 for as_dir
in $PATH
12965 test -z "$as_dir" && as_dir
=.
12966 for ac_exec_ext
in '' $ac_executable_extensions; do
12967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12968 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12969 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12976 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12980 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12981 if test -n "$PKG_CONFIG"; then
12982 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12983 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12985 { echo "$as_me:$LINENO: result: no" >&5
12986 echo "${ECHO_T}no" >&6; }
12991 if test "$PKG_CONFIG" = "no" ; then
12994 PKG_CONFIG_MIN_VERSION
=0.9.0
12995 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12996 { echo "$as_me:$LINENO: checking for libotf" >&5
12997 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
12999 if $PKG_CONFIG --exists "libotf" 2>&5; then
13000 { echo "$as_me:$LINENO: result: yes" >&5
13001 echo "${ECHO_T}yes" >&6; }
13004 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13005 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13006 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13007 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13008 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13010 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13011 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13012 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13013 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13014 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13016 { echo "$as_me:$LINENO: result: no" >&5
13017 echo "${ECHO_T}no" >&6; }
13020 ## If we have a custom action on failure, don't print errors, but
13021 ## do set a variable so people can do so.
13022 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13029 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13030 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13034 if test $succeeded = yes; then
13040 if test "$HAVE_LIBOTF" = "yes"; then
13042 cat >>confdefs.h
<<\_ACEOF
13043 #define HAVE_LIBOTF 1
13051 if test "${with_m17n_flt}" != "no"; then
13052 if test "X${with_pkg_config_prog}" != X
; then
13053 PKG_CONFIG
="${with_pkg_config_prog}"
13058 # Extract the first word of "pkg-config", so it can be a program name with args.
13059 set dummy pkg-config
; ac_word
=$2
13060 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13062 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13063 echo $ECHO_N "(cached) $ECHO_C" >&6
13065 case $PKG_CONFIG in
13067 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13071 for as_dir
in $PATH
13074 test -z "$as_dir" && as_dir
=.
13075 for ac_exec_ext
in '' $ac_executable_extensions; do
13076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13077 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13085 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13089 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13090 if test -n "$PKG_CONFIG"; then
13091 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13092 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13094 { echo "$as_me:$LINENO: result: no" >&5
13095 echo "${ECHO_T}no" >&6; }
13100 if test "$PKG_CONFIG" = "no" ; then
13103 PKG_CONFIG_MIN_VERSION
=0.9.0
13104 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13105 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13106 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13108 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13109 { echo "$as_me:$LINENO: result: yes" >&5
13110 echo "${ECHO_T}yes" >&6; }
13113 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13114 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13115 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13116 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13117 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13119 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13120 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13121 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13122 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13123 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13125 { echo "$as_me:$LINENO: result: no" >&5
13126 echo "${ECHO_T}no" >&6; }
13129 ## If we have a custom action on failure, don't print errors, but
13130 ## do set a variable so people can do so.
13131 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13138 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13139 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13143 if test $succeeded = yes; then
13149 if test "$HAVE_M17N_FLT" = "yes"; then
13151 cat >>confdefs.h
<<\_ACEOF
13152 #define HAVE_M17N_FLT 1
13168 #### End for font-backend
13170 ### Use -lXpm if available, unless `--with-xpm=no'.
13172 if test "${HAVE_X11}" = "yes"; then
13173 if test "${with_xpm}" != "no"; then
13174 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13175 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13176 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13177 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13178 echo $ECHO_N "(cached) $ECHO_C" >&6
13180 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13181 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13183 # Is the header compilable?
13184 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13185 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13186 cat >conftest.
$ac_ext <<_ACEOF
13189 cat confdefs.h
>>conftest.
$ac_ext
13190 cat >>conftest.
$ac_ext <<_ACEOF
13191 /* end confdefs.h. */
13192 $ac_includes_default
13193 #include <X11/xpm.h>
13195 rm -f conftest.
$ac_objext
13196 if { (ac_try
="$ac_compile"
13197 case "(($ac_try" in
13198 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13199 *) ac_try_echo=$ac_try;;
13201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13202 (eval "$ac_compile") 2>conftest.er1
13204 grep -v '^ *+' conftest.er1 >conftest.err
13206 cat conftest.err >&5
13207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13208 (exit $ac_status); } && {
13209 test -z "$ac_c_werror_flag" ||
13210 test ! -s conftest.err
13211 } && test -s conftest.$ac_objext; then
13212 ac_header_compiler=yes
13214 echo "$as_me: failed program was:" >&5
13215 sed 's/^/| /' conftest.$ac_ext >&5
13217 ac_header_compiler=no
13220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13221 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13222 echo "${ECHO_T}$ac_header_compiler" >&6; }
13224 # Is the header present?
13225 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13226 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13227 cat >conftest.$ac_ext <<_ACEOF
13230 cat confdefs.h >>conftest.$ac_ext
13231 cat >>conftest.$ac_ext <<_ACEOF
13232 /* end confdefs.h. */
13233 #include <X11/xpm.h>
13235 if { (ac_try="$ac_cpp conftest.$ac_ext"
13236 case "(($ac_try" in
13237 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13238 *) ac_try_echo
=$ac_try;;
13240 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13241 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13243 grep -v '^ *+' conftest.er1
>conftest.err
13245 cat conftest.err
>&5
13246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13247 (exit $ac_status); } >/dev
/null
&& {
13248 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13249 test ! -s conftest.err
13251 ac_header_preproc
=yes
13253 echo "$as_me: failed program was:" >&5
13254 sed 's/^/| /' conftest.
$ac_ext >&5
13256 ac_header_preproc
=no
13259 rm -f conftest.err conftest.
$ac_ext
13260 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13261 echo "${ECHO_T}$ac_header_preproc" >&6; }
13263 # So? What about this header?
13264 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13266 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13267 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13268 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13269 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13270 ac_header_preproc
=yes
13273 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13274 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13275 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13276 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13277 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13278 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13279 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13280 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13281 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13282 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13283 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13284 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13288 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13289 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13290 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13291 echo $ECHO_N "(cached) $ECHO_C" >&6
13293 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13295 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13296 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13299 if test $ac_cv_header_X11_xpm_h = yes; then
13300 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13301 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13302 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13303 echo $ECHO_N "(cached) $ECHO_C" >&6
13305 ac_check_lib_save_LIBS
=$LIBS
13306 LIBS
="-lXpm -lX11 $LIBS"
13307 cat >conftest.
$ac_ext <<_ACEOF
13310 cat confdefs.h
>>conftest.
$ac_ext
13311 cat >>conftest.
$ac_ext <<_ACEOF
13312 /* end confdefs.h. */
13314 /* Override any GCC internal prototype to avoid an error.
13315 Use char because int might match the return type of a GCC
13316 builtin and then its argument prototype would still apply. */
13320 char XpmReadFileToPixmap ();
13324 return XpmReadFileToPixmap ();
13329 rm -f conftest.
$ac_objext conftest
$ac_exeext
13330 if { (ac_try
="$ac_link"
13331 case "(($ac_try" in
13332 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13333 *) ac_try_echo=$ac_try;;
13335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336 (eval "$ac_link") 2>conftest.er1
13338 grep -v '^ *+' conftest.er1 >conftest.err
13340 cat conftest.err >&5
13341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13342 (exit $ac_status); } && {
13343 test -z "$ac_c_werror_flag" ||
13344 test ! -s conftest.err
13345 } && test -s conftest$ac_exeext &&
13346 $as_test_x conftest$ac_exeext; then
13347 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13349 echo "$as_me: failed program was:" >&5
13350 sed 's/^/| /' conftest.$ac_ext >&5
13352 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13356 conftest$ac_exeext conftest.$ac_ext
13357 LIBS=$ac_check_lib_save_LIBS
13359 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13360 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13361 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13368 if test "${HAVE_XPM}" = "yes"; then
13369 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13370 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13371 cat >conftest.$ac_ext <<_ACEOF
13374 cat confdefs.h >>conftest.$ac_ext
13375 cat >>conftest.$ac_ext <<_ACEOF
13376 /* end confdefs.h. */
13377 #include "X11/xpm.h"
13378 #ifndef XpmReturnAllocPixels
13379 no_return_alloc_pixels
13383 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13384 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13392 if test "${HAVE_XPM}" = "yes"; then
13393 { echo "$as_me:$LINENO: result: yes" >&5
13394 echo "${ECHO_T}yes" >&6; }
13396 { echo "$as_me:$LINENO: result: no" >&5
13397 echo "${ECHO_T}no" >&6; }
13402 if test "${HAVE_XPM}" = "yes"; then
13404 cat >>confdefs.h <<\_ACEOF
13411 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13413 if test "${HAVE_X11}" = "yes"; then
13414 if test "${with_jpeg}" != "no"; then
13415 if test "${ac_cv_header_jerror_h+set}" = set; then
13416 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13417 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13418 if test "${ac_cv_header_jerror_h+set}" = set; then
13419 echo $ECHO_N "(cached) $ECHO_C" >&6
13421 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13422 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13424 # Is the header compilable?
13425 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13426 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13427 cat >conftest.$ac_ext <<_ACEOF
13430 cat confdefs.h >>conftest.$ac_ext
13431 cat >>conftest.$ac_ext <<_ACEOF
13432 /* end confdefs.h. */
13433 $ac_includes_default
13434 #include <jerror.h>
13436 rm -f conftest.$ac_objext
13437 if { (ac_try="$ac_compile"
13438 case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_compile") 2>conftest.er1
13445 grep -v '^
*+' conftest.er1 >conftest.err
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } && {
13450 test -z "$ac_c_werror_flag" ||
13451 test ! -s conftest.err
13452 } && test -s conftest.$ac_objext; then
13453 ac_header_compiler=yes
13455 echo "$as_me: failed program was:" >&5
13456 sed 's
/^
/|
/' conftest.$ac_ext >&5
13458 ac_header_compiler=no
13461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13462 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13463 echo "${ECHO_T}$ac_header_compiler" >&6; }
13465 # Is the header present?
13466 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13467 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13468 cat >conftest.$ac_ext <<_ACEOF
13471 cat confdefs.h >>conftest.$ac_ext
13472 cat >>conftest.$ac_ext <<_ACEOF
13473 /* end confdefs.h. */
13474 #include <jerror.h>
13476 if { (ac_try="$ac_cpp conftest.$ac_ext"
13477 case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13484 grep -v '^
*+' conftest.er1 >conftest.err
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } >/dev/null && {
13489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13490 test ! -s conftest.err
13492 ac_header_preproc=yes
13494 echo "$as_me: failed program was:" >&5
13495 sed 's
/^
/|
/' conftest.$ac_ext >&5
13497 ac_header_preproc=no
13500 rm -f conftest.err conftest.$ac_ext
13501 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13502 echo "${ECHO_T}$ac_header_preproc" >&6; }
13504 # So? What about this header?
13505 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13507 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13508 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13509 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13510 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13511 ac_header_preproc=yes
13514 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13515 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13516 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13517 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13518 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13519 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13521 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13523 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13525 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13529 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13530 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13531 if test "${ac_cv_header_jerror_h+set}" = set; then
13532 echo $ECHO_N "(cached) $ECHO_C" >&6
13534 ac_cv_header_jerror_h=$ac_header_preproc
13536 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13537 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13540 if test $ac_cv_header_jerror_h = yes; then
13541 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13542 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13543 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13544 echo $ECHO_N "(cached) $ECHO_C" >&6
13546 ac_check_lib_save_LIBS=$LIBS
13547 LIBS="-ljpeg $LIBS"
13548 cat >conftest.$ac_ext <<_ACEOF
13551 cat confdefs.h >>conftest.$ac_ext
13552 cat >>conftest.$ac_ext <<_ACEOF
13553 /* end confdefs.h. */
13555 /* Override any GCC internal prototype to avoid an error.
13556 Use char because int might match the return type of a GCC
13557 builtin and then its argument prototype would still apply. */
13561 char jpeg_destroy_compress ();
13565 return jpeg_destroy_compress ();
13570 rm -f conftest.$ac_objext conftest$ac_exeext
13571 if { (ac_try="$ac_link"
13572 case "(($ac_try" in
13573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13574 *) ac_try_echo=$ac_try;;
13576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13577 (eval "$ac_link") 2>conftest.er1
13579 grep -v '^
*+' conftest.er1 >conftest.err
13581 cat conftest.err >&5
13582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13583 (exit $ac_status); } && {
13584 test -z "$ac_c_werror_flag" ||
13585 test ! -s conftest.err
13586 } && test -s conftest$ac_exeext &&
13587 $as_test_x conftest$ac_exeext; then
13588 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13590 echo "$as_me: failed program was:" >&5
13591 sed 's
/^
/|
/' conftest.$ac_ext >&5
13593 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13597 conftest$ac_exeext conftest.$ac_ext
13598 LIBS=$ac_check_lib_save_LIBS
13600 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13601 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13602 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13612 if test "${HAVE_JPEG}" = "yes"; then
13613 cat >>confdefs.h <<\_ACEOF
13614 #define HAVE_JPEG 1
13617 cat >conftest.$ac_ext <<_ACEOF
13620 cat confdefs.h >>conftest.$ac_ext
13621 cat >>conftest.$ac_ext <<_ACEOF
13622 /* end confdefs.h. */
13623 #include <jpeglib.h>
13624 version=JPEG_LIB_VERSION
13627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13628 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13629 cat >>confdefs.h <<\_ACEOF
13630 #define HAVE_JPEG 1
13634 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13635 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13643 ### Use -lpng if available, unless `--with-png=no'.
13645 if test "${HAVE_X11}" = "yes"; then
13646 if test "${with_png}" != "no"; then
13647 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13648 # in /usr/include/libpng.
13651 for ac_header
in png.h libpng
/png.h
13653 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13654 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13657 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13658 echo $ECHO_N "(cached) $ECHO_C" >&6
13660 ac_res
=`eval echo '${'$as_ac_Header'}'`
13661 { echo "$as_me:$LINENO: result: $ac_res" >&5
13662 echo "${ECHO_T}$ac_res" >&6; }
13664 # Is the header compilable?
13665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13667 cat >conftest.
$ac_ext <<_ACEOF
13670 cat confdefs.h
>>conftest.
$ac_ext
13671 cat >>conftest.
$ac_ext <<_ACEOF
13672 /* end confdefs.h. */
13673 $ac_includes_default
13674 #include <$ac_header>
13676 rm -f conftest.
$ac_objext
13677 if { (ac_try
="$ac_compile"
13678 case "(($ac_try" in
13679 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13680 *) ac_try_echo=$ac_try;;
13682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13683 (eval "$ac_compile") 2>conftest.er1
13685 grep -v '^ *+' conftest.er1 >conftest.err
13687 cat conftest.err >&5
13688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13689 (exit $ac_status); } && {
13690 test -z "$ac_c_werror_flag" ||
13691 test ! -s conftest.err
13692 } && test -s conftest.$ac_objext; then
13693 ac_header_compiler=yes
13695 echo "$as_me: failed program was:" >&5
13696 sed 's/^/| /' conftest.$ac_ext >&5
13698 ac_header_compiler=no
13701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13703 echo "${ECHO_T}$ac_header_compiler" >&6; }
13705 # Is the header present?
13706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13708 cat >conftest.$ac_ext <<_ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13714 #include <$ac_header>
13716 if { (ac_try="$ac_cpp conftest.$ac_ext"
13717 case "(($ac_try" in
13718 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13719 *) ac_try_echo
=$ac_try;;
13721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13724 grep -v '^ *+' conftest.er1
>conftest.err
13726 cat conftest.err
>&5
13727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13728 (exit $ac_status); } >/dev
/null
&& {
13729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13730 test ! -s conftest.err
13732 ac_header_preproc
=yes
13734 echo "$as_me: failed program was:" >&5
13735 sed 's/^/| /' conftest.
$ac_ext >&5
13737 ac_header_preproc
=no
13740 rm -f conftest.err conftest.
$ac_ext
13741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13742 echo "${ECHO_T}$ac_header_preproc" >&6; }
13744 # So? What about this header?
13745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13751 ac_header_preproc
=yes
13754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13771 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13774 eval "$as_ac_Header=\$ac_header_preproc"
13776 ac_res
=`eval echo '${'$as_ac_Header'}'`
13777 { echo "$as_me:$LINENO: result: $ac_res" >&5
13778 echo "${ECHO_T}$ac_res" >&6; }
13781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13782 cat >>confdefs.h
<<_ACEOF
13783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13790 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13791 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13792 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13793 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 ac_check_lib_save_LIBS
=$LIBS
13797 LIBS
="-lpng -lz -lm $LIBS"
13798 cat >conftest.
$ac_ext <<_ACEOF
13801 cat confdefs.h
>>conftest.
$ac_ext
13802 cat >>conftest.
$ac_ext <<_ACEOF
13803 /* end confdefs.h. */
13805 /* Override any GCC internal prototype to avoid an error.
13806 Use char because int might match the return type of a GCC
13807 builtin and then its argument prototype would still apply. */
13811 char png_get_channels ();
13815 return png_get_channels ();
13820 rm -f conftest.
$ac_objext conftest
$ac_exeext
13821 if { (ac_try
="$ac_link"
13822 case "(($ac_try" in
13823 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13824 *) ac_try_echo=$ac_try;;
13826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13827 (eval "$ac_link") 2>conftest.er1
13829 grep -v '^ *+' conftest.er1 >conftest.err
13831 cat conftest.err >&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } && {
13834 test -z "$ac_c_werror_flag" ||
13835 test ! -s conftest.err
13836 } && test -s conftest$ac_exeext &&
13837 $as_test_x conftest$ac_exeext; then
13838 ac_cv_lib_png_png_get_channels=yes
13840 echo "$as_me: failed program was:" >&5
13841 sed 's/^/| /' conftest.$ac_ext >&5
13843 ac_cv_lib_png_png_get_channels=no
13846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13847 conftest$ac_exeext conftest.$ac_ext
13848 LIBS=$ac_check_lib_save_LIBS
13850 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13851 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13852 if test $ac_cv_lib_png_png_get_channels = yes; then
13859 if test "${HAVE_PNG}" = "yes"; then
13861 cat >>confdefs.h <<\_ACEOF
13868 ### Use -ltiff if available, unless `--with-tiff=no
'.
13870 if test "${HAVE_X11}" = "yes"; then
13871 if test "${with_tiff}" != "no"; then
13872 if test "${ac_cv_header_tiffio_h+set}" = set; then
13873 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13874 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13875 if test "${ac_cv_header_tiffio_h+set}" = set; then
13876 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13879 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13881 # Is the header compilable?
13882 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13883 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13884 cat >conftest.$ac_ext <<_ACEOF
13887 cat confdefs.h >>conftest.$ac_ext
13888 cat >>conftest.$ac_ext <<_ACEOF
13889 /* end confdefs.h. */
13890 $ac_includes_default
13891 #include <tiffio.h>
13893 rm -f conftest.$ac_objext
13894 if { (ac_try="$ac_compile"
13895 case "(($ac_try" in
13896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13897 *) ac_try_echo=$ac_try;;
13899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13900 (eval "$ac_compile") 2>conftest.er1
13902 grep -v '^
*+' conftest.er1 >conftest.err
13904 cat conftest.err >&5
13905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13906 (exit $ac_status); } && {
13907 test -z "$ac_c_werror_flag" ||
13908 test ! -s conftest.err
13909 } && test -s conftest.$ac_objext; then
13910 ac_header_compiler=yes
13912 echo "$as_me: failed program was:" >&5
13913 sed 's
/^
/|
/' conftest.$ac_ext >&5
13915 ac_header_compiler=no
13918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13920 echo "${ECHO_T}$ac_header_compiler" >&6; }
13922 # Is the header present?
13923 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13924 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13925 cat >conftest.$ac_ext <<_ACEOF
13928 cat confdefs.h >>conftest.$ac_ext
13929 cat >>conftest.$ac_ext <<_ACEOF
13930 /* end confdefs.h. */
13931 #include <tiffio.h>
13933 if { (ac_try="$ac_cpp conftest.$ac_ext"
13934 case "(($ac_try" in
13935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13936 *) ac_try_echo=$ac_try;;
13938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13941 grep -v '^
*+' conftest.er1 >conftest.err
13943 cat conftest.err >&5
13944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13945 (exit $ac_status); } >/dev/null && {
13946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13947 test ! -s conftest.err
13949 ac_header_preproc=yes
13951 echo "$as_me: failed program was:" >&5
13952 sed 's
/^
/|
/' conftest.$ac_ext >&5
13954 ac_header_preproc=no
13957 rm -f conftest.err conftest.$ac_ext
13958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13959 echo "${ECHO_T}$ac_header_preproc" >&6; }
13961 # So? What about this header?
13962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13964 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13965 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13966 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13967 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13968 ac_header_preproc=yes
13971 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13972 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13973 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13974 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13975 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13976 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13977 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13978 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13979 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13980 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13981 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13982 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13986 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13987 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13988 if test "${ac_cv_header_tiffio_h+set}" = set; then
13989 echo $ECHO_N "(cached) $ECHO_C" >&6
13991 ac_cv_header_tiffio_h=$ac_header_preproc
13993 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13994 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13997 if test $ac_cv_header_tiffio_h = yes; then
13999 # At least one tiff package requires the jpeg library.
14000 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14001 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14002 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14003 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14004 echo $ECHO_N "(cached) $ECHO_C" >&6
14006 ac_check_lib_save_LIBS=$LIBS
14007 LIBS="-ltiff $tifflibs $LIBS"
14008 cat >conftest.$ac_ext <<_ACEOF
14011 cat confdefs.h >>conftest.$ac_ext
14012 cat >>conftest.$ac_ext <<_ACEOF
14013 /* end confdefs.h. */
14015 /* Override any GCC internal prototype to avoid an error.
14016 Use char because int might match the return type of a GCC
14017 builtin and then its argument prototype would still apply. */
14021 char TIFFGetVersion ();
14025 return TIFFGetVersion ();
14030 rm -f conftest.$ac_objext conftest$ac_exeext
14031 if { (ac_try="$ac_link"
14032 case "(($ac_try" in
14033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14034 *) ac_try_echo=$ac_try;;
14036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14037 (eval "$ac_link") 2>conftest.er1
14039 grep -v '^
*+' conftest.er1 >conftest.err
14041 cat conftest.err >&5
14042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14043 (exit $ac_status); } && {
14044 test -z "$ac_c_werror_flag" ||
14045 test ! -s conftest.err
14046 } && test -s conftest$ac_exeext &&
14047 $as_test_x conftest$ac_exeext; then
14048 ac_cv_lib_tiff_TIFFGetVersion=yes
14050 echo "$as_me: failed program was:" >&5
14051 sed 's
/^
/|
/' conftest.$ac_ext >&5
14053 ac_cv_lib_tiff_TIFFGetVersion=no
14056 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14057 conftest$ac_exeext conftest.$ac_ext
14058 LIBS=$ac_check_lib_save_LIBS
14060 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14061 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14062 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14071 if test "${HAVE_TIFF}" = "yes"; then
14073 cat >>confdefs.h <<\_ACEOF
14074 #define HAVE_TIFF 1
14080 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14082 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14083 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14084 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14085 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14086 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14087 echo $ECHO_N "(cached) $ECHO_C" >&6
14089 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14090 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14092 # Is the header compilable?
14093 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14094 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14095 cat >conftest.
$ac_ext <<_ACEOF
14098 cat confdefs.h
>>conftest.
$ac_ext
14099 cat >>conftest.
$ac_ext <<_ACEOF
14100 /* end confdefs.h. */
14101 $ac_includes_default
14102 #include <gif_lib.h>
14104 rm -f conftest.
$ac_objext
14105 if { (ac_try
="$ac_compile"
14106 case "(($ac_try" in
14107 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14108 *) ac_try_echo=$ac_try;;
14110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14111 (eval "$ac_compile") 2>conftest.er1
14113 grep -v '^ *+' conftest.er1 >conftest.err
14115 cat conftest.err >&5
14116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14117 (exit $ac_status); } && {
14118 test -z "$ac_c_werror_flag" ||
14119 test ! -s conftest.err
14120 } && test -s conftest.$ac_objext; then
14121 ac_header_compiler=yes
14123 echo "$as_me: failed program was:" >&5
14124 sed 's/^/| /' conftest.$ac_ext >&5
14126 ac_header_compiler=no
14129 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14130 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14131 echo "${ECHO_T}$ac_header_compiler" >&6; }
14133 # Is the header present?
14134 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14135 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14136 cat >conftest.$ac_ext <<_ACEOF
14139 cat confdefs.h >>conftest.$ac_ext
14140 cat >>conftest.$ac_ext <<_ACEOF
14141 /* end confdefs.h. */
14142 #include <gif_lib.h>
14144 if { (ac_try="$ac_cpp conftest.$ac_ext"
14145 case "(($ac_try" in
14146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14147 *) ac_try_echo
=$ac_try;;
14149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14150 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14152 grep -v '^ *+' conftest.er1
>conftest.err
14154 cat conftest.err
>&5
14155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14156 (exit $ac_status); } >/dev
/null
&& {
14157 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14158 test ! -s conftest.err
14160 ac_header_preproc
=yes
14162 echo "$as_me: failed program was:" >&5
14163 sed 's/^/| /' conftest.
$ac_ext >&5
14165 ac_header_preproc
=no
14168 rm -f conftest.err conftest.
$ac_ext
14169 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14170 echo "${ECHO_T}$ac_header_preproc" >&6; }
14172 # So? What about this header?
14173 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14175 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14176 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14177 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14178 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14179 ac_header_preproc
=yes
14182 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14183 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14184 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14185 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14186 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14187 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14189 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14191 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14193 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14197 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14198 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14199 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 ac_cv_header_gif_lib_h
=$ac_header_preproc
14204 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14205 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14208 if test $ac_cv_header_gif_lib_h = yes; then
14209 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14210 # Earlier versions can crash Emacs.
14211 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14212 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14213 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14214 echo $ECHO_N "(cached) $ECHO_C" >&6
14216 ac_check_lib_save_LIBS
=$LIBS
14218 cat >conftest.
$ac_ext <<_ACEOF
14221 cat confdefs.h
>>conftest.
$ac_ext
14222 cat >>conftest.
$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14225 /* Override any GCC internal prototype to avoid an error.
14226 Use char because int might match the return type of a GCC
14227 builtin and then its argument prototype would still apply. */
14231 char EGifPutExtensionLast ();
14235 return EGifPutExtensionLast ();
14240 rm -f conftest.
$ac_objext conftest
$ac_exeext
14241 if { (ac_try
="$ac_link"
14242 case "(($ac_try" in
14243 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14244 *) ac_try_echo=$ac_try;;
14246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14247 (eval "$ac_link") 2>conftest.er1
14249 grep -v '^ *+' conftest.er1 >conftest.err
14251 cat conftest.err >&5
14252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14253 (exit $ac_status); } && {
14254 test -z "$ac_c_werror_flag" ||
14255 test ! -s conftest.err
14256 } && test -s conftest$ac_exeext &&
14257 $as_test_x conftest$ac_exeext; then
14258 ac_cv_lib_gif_EGifPutExtensionLast=yes
14260 echo "$as_me: failed program was:" >&5
14261 sed 's/^/| /' conftest.$ac_ext >&5
14263 ac_cv_lib_gif_EGifPutExtensionLast=no
14266 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14267 conftest$ac_exeext conftest.$ac_ext
14268 LIBS=$ac_check_lib_save_LIBS
14270 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14271 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14272 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14282 if test "$HAVE_GIF" = yes; then
14283 ac_gif_lib_name="-lgif"
14286 # If gif_lib.h but no libgif, try libungif.
14287 if test x"$try_libungif" = xyes; then
14288 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14289 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14290 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14291 echo $ECHO_N "(cached) $ECHO_C" >&6
14293 ac_check_lib_save_LIBS=$LIBS
14294 LIBS="-lungif $LIBS"
14295 cat >conftest.$ac_ext <<_ACEOF
14298 cat confdefs.h >>conftest.$ac_ext
14299 cat >>conftest.$ac_ext <<_ACEOF
14300 /* end confdefs.h. */
14302 /* Override any GCC internal prototype to avoid an error.
14303 Use char because int might match the return type of a GCC
14304 builtin and then its argument prototype would still apply. */
14308 char EGifPutExtensionLast ();
14312 return EGifPutExtensionLast ();
14317 rm -f conftest.$ac_objext conftest$ac_exeext
14318 if { (ac_try="$ac_link"
14319 case "(($ac_try" in
14320 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14321 *) ac_try_echo
=$ac_try;;
14323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14324 (eval "$ac_link") 2>conftest.er1
14326 grep -v '^ *+' conftest.er1
>conftest.err
14328 cat conftest.err
>&5
14329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14330 (exit $ac_status); } && {
14331 test -z "$ac_c_werror_flag" ||
14332 test ! -s conftest.err
14333 } && test -s conftest
$ac_exeext &&
14334 $as_test_x conftest
$ac_exeext; then
14335 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14337 echo "$as_me: failed program was:" >&5
14338 sed 's/^/| /' conftest.
$ac_ext >&5
14340 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14343 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14344 conftest
$ac_exeext conftest.
$ac_ext
14345 LIBS
=$ac_check_lib_save_LIBS
14347 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14348 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14349 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14354 if test "$HAVE_GIF" = yes; then
14356 cat >>confdefs.h
<<\_ACEOF
14357 #define LIBGIF -lungif
14360 ac_gif_lib_name
="-lungif"
14364 if test "${HAVE_GIF}" = "yes"; then
14366 cat >>confdefs.h
<<\_ACEOF
14373 if test "${HAVE_X11}" = "yes"; then
14376 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14377 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14378 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14379 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14380 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14381 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14382 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14383 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14384 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14385 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14387 if test "X${MISSING}" != X
; then
14388 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14390 Maybe some development libraries/packages are missing?
14391 If you don't want to link with them give
14393 as options to configure" >&5
14394 echo "$as_me: error: The following required libraries were not found:
14396 Maybe some development libraries/packages are missing?
14397 If you don't want to link with them give
14399 as options to configure" >&2;}
14400 { (exit 1); exit 1; }; }
14404 ### Use -lgpm if available, unless `--with-gpm=no'.
14406 if test "${with_gpm}" != "no"; then
14407 if test "${ac_cv_header_gpm_h+set}" = set; then
14408 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14409 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14410 if test "${ac_cv_header_gpm_h+set}" = set; then
14411 echo $ECHO_N "(cached) $ECHO_C" >&6
14413 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14414 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14416 # Is the header compilable?
14417 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14418 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14419 cat >conftest.
$ac_ext <<_ACEOF
14422 cat confdefs.h
>>conftest.
$ac_ext
14423 cat >>conftest.
$ac_ext <<_ACEOF
14424 /* end confdefs.h. */
14425 $ac_includes_default
14428 rm -f conftest.
$ac_objext
14429 if { (ac_try
="$ac_compile"
14430 case "(($ac_try" in
14431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14432 *) ac_try_echo=$ac_try;;
14434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14435 (eval "$ac_compile") 2>conftest.er1
14437 grep -v '^ *+' conftest.er1 >conftest.err
14439 cat conftest.err >&5
14440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14441 (exit $ac_status); } && {
14442 test -z "$ac_c_werror_flag" ||
14443 test ! -s conftest.err
14444 } && test -s conftest.$ac_objext; then
14445 ac_header_compiler=yes
14447 echo "$as_me: failed program was:" >&5
14448 sed 's/^/| /' conftest.$ac_ext >&5
14450 ac_header_compiler=no
14453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14455 echo "${ECHO_T}$ac_header_compiler" >&6; }
14457 # Is the header present?
14458 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14459 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14460 cat >conftest.$ac_ext <<_ACEOF
14463 cat confdefs.h >>conftest.$ac_ext
14464 cat >>conftest.$ac_ext <<_ACEOF
14465 /* end confdefs.h. */
14468 if { (ac_try="$ac_cpp conftest.$ac_ext"
14469 case "(($ac_try" in
14470 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14471 *) ac_try_echo
=$ac_try;;
14473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14476 grep -v '^ *+' conftest.er1
>conftest.err
14478 cat conftest.err
>&5
14479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14480 (exit $ac_status); } >/dev
/null
&& {
14481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14482 test ! -s conftest.err
14484 ac_header_preproc
=yes
14486 echo "$as_me: failed program was:" >&5
14487 sed 's/^/| /' conftest.
$ac_ext >&5
14489 ac_header_preproc
=no
14492 rm -f conftest.err conftest.
$ac_ext
14493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14494 echo "${ECHO_T}$ac_header_preproc" >&6; }
14496 # So? What about this header?
14497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14499 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14500 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14501 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14502 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14503 ac_header_preproc
=yes
14506 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14507 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14508 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14509 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14510 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14511 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14512 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14513 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14515 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14517 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14521 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14522 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14523 if test "${ac_cv_header_gpm_h+set}" = set; then
14524 echo $ECHO_N "(cached) $ECHO_C" >&6
14526 ac_cv_header_gpm_h
=$ac_header_preproc
14528 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14529 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14532 if test $ac_cv_header_gpm_h = yes; then
14533 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14534 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14535 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14536 echo $ECHO_N "(cached) $ECHO_C" >&6
14538 ac_check_lib_save_LIBS
=$LIBS
14540 cat >conftest.
$ac_ext <<_ACEOF
14543 cat confdefs.h
>>conftest.
$ac_ext
14544 cat >>conftest.
$ac_ext <<_ACEOF
14545 /* end confdefs.h. */
14547 /* Override any GCC internal prototype to avoid an error.
14548 Use char because int might match the return type of a GCC
14549 builtin and then its argument prototype would still apply. */
14557 return Gpm_Open ();
14562 rm -f conftest.
$ac_objext conftest
$ac_exeext
14563 if { (ac_try
="$ac_link"
14564 case "(($ac_try" in
14565 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14566 *) ac_try_echo=$ac_try;;
14568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14569 (eval "$ac_link") 2>conftest.er1
14571 grep -v '^ *+' conftest.er1 >conftest.err
14573 cat conftest.err >&5
14574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14575 (exit $ac_status); } && {
14576 test -z "$ac_c_werror_flag" ||
14577 test ! -s conftest.err
14578 } && test -s conftest$ac_exeext &&
14579 $as_test_x conftest$ac_exeext; then
14580 ac_cv_lib_gpm_Gpm_Open=yes
14582 echo "$as_me: failed program was:" >&5
14583 sed 's/^/| /' conftest.$ac_ext >&5
14585 ac_cv_lib_gpm_Gpm_Open=no
14588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14589 conftest$ac_exeext conftest.$ac_ext
14590 LIBS=$ac_check_lib_save_LIBS
14592 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14593 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14594 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14603 if test "${HAVE_GPM}" = "yes"; then
14605 cat >>confdefs.h <<\_ACEOF
14611 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14612 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14613 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14614 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14615 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14618 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14620 # Is the header compilable?
14621 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14622 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14623 cat >conftest.$ac_ext <<_ACEOF
14626 cat confdefs.h >>conftest.$ac_ext
14627 cat >>conftest.$ac_ext <<_ACEOF
14628 /* end confdefs.h. */
14629 $ac_includes_default
14630 #include <malloc/malloc.h>
14632 rm -f conftest.$ac_objext
14633 if { (ac_try="$ac_compile"
14634 case "(($ac_try" in
14635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14636 *) ac_try_echo
=$ac_try;;
14638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639 (eval "$ac_compile") 2>conftest.er1
14641 grep -v '^ *+' conftest.er1
>conftest.err
14643 cat conftest.err
>&5
14644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14645 (exit $ac_status); } && {
14646 test -z "$ac_c_werror_flag" ||
14647 test ! -s conftest.err
14648 } && test -s conftest.
$ac_objext; then
14649 ac_header_compiler
=yes
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.
$ac_ext >&5
14654 ac_header_compiler
=no
14657 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14659 echo "${ECHO_T}$ac_header_compiler" >&6; }
14661 # Is the header present?
14662 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14663 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14664 cat >conftest.
$ac_ext <<_ACEOF
14667 cat confdefs.h
>>conftest.
$ac_ext
14668 cat >>conftest.
$ac_ext <<_ACEOF
14669 /* end confdefs.h. */
14670 #include <malloc/malloc.h>
14672 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14673 case "(($ac_try" in
14674 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14675 *) ac_try_echo=$ac_try;;
14677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14680 grep -v '^ *+' conftest.er1 >conftest.err
14682 cat conftest.err >&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } >/dev/null && {
14685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14686 test ! -s conftest.err
14688 ac_header_preproc=yes
14690 echo "$as_me: failed program was:" >&5
14691 sed 's/^/| /' conftest.$ac_ext >&5
14693 ac_header_preproc=no
14696 rm -f conftest.err conftest.$ac_ext
14697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14698 echo "${ECHO_T}$ac_header_preproc" >&6; }
14700 # So? What about this header?
14701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14703 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14704 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14705 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14706 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14707 ac_header_preproc=yes
14710 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14711 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14712 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14713 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14714 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14715 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14717 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14719 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14721 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14725 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14726 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14727 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14728 echo $ECHO_N "(cached) $ECHO_C" >&6
14730 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14732 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14733 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14736 if test $ac_cv_header_malloc_malloc_h = yes; then
14738 cat >>confdefs.h <<\_ACEOF
14739 #define HAVE_MALLOC_MALLOC_H 1
14746 ### Use Mac OS X Carbon API to implement GUI.
14747 if test "${HAVE_CARBON}" = "yes"; then
14749 cat >>confdefs.h <<\_ACEOF
14750 #define HAVE_CARBON 1
14753 ## Specify the install directory
14755 if test "${carbon_appdir_x}" != ""; then
14756 case ${carbon_appdir_x} in
14757 y | ye | yes) carbon_appdir=/Applications ;;
14758 * ) carbon_appdir=${carbon_appdir_x} ;;
14761 # We also have mouse menus.
14765 ### Use session management (-lSM -lICE) if available
14767 if test "${HAVE_X11}" = "yes"; then
14768 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14769 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14770 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14771 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14772 echo $ECHO_N "(cached) $ECHO_C" >&6
14774 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14775 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14777 # Is the header compilable?
14778 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14779 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14780 cat >conftest.$ac_ext <<_ACEOF
14783 cat confdefs.h >>conftest.$ac_ext
14784 cat >>conftest.$ac_ext <<_ACEOF
14785 /* end confdefs.h. */
14786 $ac_includes_default
14787 #include <X11/SM/SMlib.h>
14789 rm -f conftest.$ac_objext
14790 if { (ac_try="$ac_compile"
14791 case "(($ac_try" in
14792 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14793 *) ac_try_echo
=$ac_try;;
14795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14796 (eval "$ac_compile") 2>conftest.er1
14798 grep -v '^ *+' conftest.er1
>conftest.err
14800 cat conftest.err
>&5
14801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14802 (exit $ac_status); } && {
14803 test -z "$ac_c_werror_flag" ||
14804 test ! -s conftest.err
14805 } && test -s conftest.
$ac_objext; then
14806 ac_header_compiler
=yes
14808 echo "$as_me: failed program was:" >&5
14809 sed 's/^/| /' conftest.
$ac_ext >&5
14811 ac_header_compiler
=no
14814 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14816 echo "${ECHO_T}$ac_header_compiler" >&6; }
14818 # Is the header present?
14819 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14820 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14821 cat >conftest.
$ac_ext <<_ACEOF
14824 cat confdefs.h
>>conftest.
$ac_ext
14825 cat >>conftest.
$ac_ext <<_ACEOF
14826 /* end confdefs.h. */
14827 #include <X11/SM/SMlib.h>
14829 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14830 case "(($ac_try" in
14831 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14832 *) ac_try_echo=$ac_try;;
14834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14837 grep -v '^ *+' conftest.er1 >conftest.err
14839 cat conftest.err >&5
14840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14841 (exit $ac_status); } >/dev/null && {
14842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14843 test ! -s conftest.err
14845 ac_header_preproc=yes
14847 echo "$as_me: failed program was:" >&5
14848 sed 's/^/| /' conftest.$ac_ext >&5
14850 ac_header_preproc=no
14853 rm -f conftest.err conftest.$ac_ext
14854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14855 echo "${ECHO_T}$ac_header_preproc" >&6; }
14857 # So? What about this header?
14858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14860 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14861 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14862 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14863 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14864 ac_header_preproc=yes
14867 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14868 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14869 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14870 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14871 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14872 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14874 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14876 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14878 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14882 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14883 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14884 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14887 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14889 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14890 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14893 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14894 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14895 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14896 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14897 echo $ECHO_N "(cached) $ECHO_C" >&6
14899 ac_check_lib_save_LIBS=$LIBS
14900 LIBS="-lSM -lICE $LIBS"
14901 cat >conftest.$ac_ext <<_ACEOF
14904 cat confdefs.h >>conftest.$ac_ext
14905 cat >>conftest.$ac_ext <<_ACEOF
14906 /* end confdefs.h. */
14908 /* Override any GCC internal prototype to avoid an error.
14909 Use char because int might match the return type of a GCC
14910 builtin and then its argument prototype would still apply. */
14914 char SmcOpenConnection ();
14918 return SmcOpenConnection ();
14923 rm -f conftest.$ac_objext conftest$ac_exeext
14924 if { (ac_try="$ac_link"
14925 case "(($ac_try" in
14926 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14927 *) ac_try_echo
=$ac_try;;
14929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14930 (eval "$ac_link") 2>conftest.er1
14932 grep -v '^ *+' conftest.er1
>conftest.err
14934 cat conftest.err
>&5
14935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14936 (exit $ac_status); } && {
14937 test -z "$ac_c_werror_flag" ||
14938 test ! -s conftest.err
14939 } && test -s conftest
$ac_exeext &&
14940 $as_test_x conftest
$ac_exeext; then
14941 ac_cv_lib_SM_SmcOpenConnection
=yes
14943 echo "$as_me: failed program was:" >&5
14944 sed 's/^/| /' conftest.
$ac_ext >&5
14946 ac_cv_lib_SM_SmcOpenConnection
=no
14949 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14950 conftest
$ac_exeext conftest.
$ac_ext
14951 LIBS
=$ac_check_lib_save_LIBS
14953 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14954 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14955 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14963 if test "${HAVE_X_SM}" = "yes"; then
14965 cat >>confdefs.h
<<\_ACEOF
14966 #define HAVE_X_SM 1
14971 *) LIBS
="-lSM -lICE $LIBS" ;;
14976 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14977 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14978 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14979 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14980 echo $ECHO_N "(cached) $ECHO_C" >&6
14982 cat >conftest.
$ac_ext <<_ACEOF
14985 cat confdefs.h
>>conftest.
$ac_ext
14986 cat >>conftest.
$ac_ext <<_ACEOF
14987 /* end confdefs.h. */
14997 rm -f conftest.
$ac_objext conftest
$ac_exeext
14998 if { (ac_try
="$ac_link"
14999 case "(($ac_try" in
15000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15001 *) ac_try_echo=$ac_try;;
15003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15004 (eval "$ac_link") 2>conftest.er1
15006 grep -v '^ *+' conftest.er1 >conftest.err
15008 cat conftest.err >&5
15009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15010 (exit $ac_status); } && {
15011 test -z "$ac_c_werror_flag" ||
15012 test ! -s conftest.err
15013 } && test -s conftest$ac_exeext &&
15014 $as_test_x conftest$ac_exeext; then
15015 emacs_cv_netdb_declares_h_errno=yes
15017 echo "$as_me: failed program was:" >&5
15018 sed 's/^/| /' conftest.$ac_ext >&5
15020 emacs_cv_netdb_declares_h_errno=no
15023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15024 conftest$ac_exeext conftest.$ac_ext
15026 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15027 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15028 if test $emacs_cv_netdb_declares_h_errno = yes; then
15030 cat >>confdefs.h <<\_ACEOF
15031 #define HAVE_H_ERRNO 1
15036 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15037 # for constant arguments. Useless!
15038 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15039 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15040 if test "${ac_cv_working_alloca_h+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15043 cat >conftest.$ac_ext <<_ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15049 #include <alloca.h>
15053 char *p = (char *) alloca (2 * sizeof (int));
15059 rm -f conftest.$ac_objext conftest$ac_exeext
15060 if { (ac_try="$ac_link"
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_link") 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); } && {
15073 test -z "$ac_c_werror_flag" ||
15074 test ! -s conftest.err
15075 } && test -s conftest
$ac_exeext &&
15076 $as_test_x conftest
$ac_exeext; then
15077 ac_cv_working_alloca_h
=yes
15079 echo "$as_me: failed program was:" >&5
15080 sed 's/^/| /' conftest.
$ac_ext >&5
15082 ac_cv_working_alloca_h
=no
15085 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15086 conftest
$ac_exeext conftest.
$ac_ext
15088 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15089 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15090 if test $ac_cv_working_alloca_h = yes; then
15092 cat >>confdefs.h
<<\_ACEOF
15093 #define HAVE_ALLOCA_H 1
15098 { echo "$as_me:$LINENO: checking for alloca" >&5
15099 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15100 if test "${ac_cv_func_alloca_works+set}" = set; then
15101 echo $ECHO_N "(cached) $ECHO_C" >&6
15103 cat >conftest.
$ac_ext <<_ACEOF
15106 cat confdefs.h
>>conftest.
$ac_ext
15107 cat >>conftest.
$ac_ext <<_ACEOF
15108 /* end confdefs.h. */
15110 # define alloca __builtin_alloca
15113 # include <malloc.h>
15114 # define alloca _alloca
15116 # ifdef HAVE_ALLOCA_H
15117 # include <alloca.h>
15122 # ifndef alloca /* predefined by HP cc +Olibcalls */
15133 char *p = (char *) alloca (1);
15139 rm -f conftest.
$ac_objext conftest
$ac_exeext
15140 if { (ac_try
="$ac_link"
15141 case "(($ac_try" in
15142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15143 *) ac_try_echo=$ac_try;;
15145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15146 (eval "$ac_link") 2>conftest.er1
15148 grep -v '^ *+' conftest.er1 >conftest.err
15150 cat conftest.err >&5
15151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15152 (exit $ac_status); } && {
15153 test -z "$ac_c_werror_flag" ||
15154 test ! -s conftest.err
15155 } && test -s conftest$ac_exeext &&
15156 $as_test_x conftest$ac_exeext; then
15157 ac_cv_func_alloca_works=yes
15159 echo "$as_me: failed program was:" >&5
15160 sed 's/^/| /' conftest.$ac_ext >&5
15162 ac_cv_func_alloca_works=no
15165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15166 conftest$ac_exeext conftest.$ac_ext
15168 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15169 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15171 if test $ac_cv_func_alloca_works = yes; then
15173 cat >>confdefs.h <<\_ACEOF
15174 #define HAVE_ALLOCA 1
15178 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15179 # that cause trouble. Some versions do not even contain alloca or
15180 # contain a buggy version. If you still want to use their alloca,
15181 # use ar to extract alloca.o from them instead of compiling alloca.c.
15183 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15185 cat >>confdefs.h <<\_ACEOF
15190 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15191 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15192 if test "${ac_cv_os_cray+set}" = set; then
15193 echo $ECHO_N "(cached
) $ECHO_C" >&6
15195 cat >conftest.$ac_ext <<_ACEOF
15198 cat confdefs.h >>conftest.$ac_ext
15199 cat >>conftest.$ac_ext <<_ACEOF
15200 /* end confdefs.h. */
15201 #if defined CRAY && ! defined CRAY2
15208 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15209 $EGREP "webecray
" >/dev/null 2>&1; then
15217 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15218 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15219 if test $ac_cv_os_cray = yes; then
15220 for ac_func in _getb67 GETB67 getb67; do
15221 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15222 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15223 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15224 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15225 echo $ECHO_N "(cached
) $ECHO_C" >&6
15227 cat >conftest.$ac_ext <<_ACEOF
15230 cat confdefs.h >>conftest.$ac_ext
15231 cat >>conftest.$ac_ext <<_ACEOF
15232 /* end confdefs.h. */
15233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15235 #define $ac_func innocuous_$ac_func
15237 /* System header to define __stub macros and hopefully few prototypes,
15238 which can conflict with char $ac_func (); below.
15239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15240 <limits.h> exists even on freestanding compilers. */
15243 # include <limits.h>
15245 # include <assert.h>
15250 /* Override any GCC internal prototype to avoid an error.
15251 Use char because int might match the return type of a GCC
15252 builtin and then its argument prototype would still apply. */
15257 /* The GNU C library defines this for functions which it implements
15258 to always fail with ENOSYS. Some functions are actually named
15259 something starting with __ and the normal name is an alias. */
15260 #if defined __stub_$ac_func || defined __stub___$ac_func
15267 return $ac_func ();
15272 rm -f conftest.$ac_objext conftest$ac_exeext
15273 if { (ac_try="$ac_link"
15274 case "(($ac_try" in
15275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15276 *) ac_try_echo=$ac_try;;
15278 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15279 (eval "$ac_link") 2>conftest.er1
15281 grep -v '^ *+' conftest.er1 >conftest.err
15283 cat conftest.err >&5
15284 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15285 (exit $ac_status); } && {
15286 test -z "$ac_c_werror_flag" ||
15287 test ! -s conftest.err
15288 } && test -s conftest$ac_exeext &&
15289 $as_test_x conftest$ac_exeext; then
15290 eval "$as_ac_var=yes"
15292 echo "$as_me: failed program was
:" >&5
15293 sed 's/^/| /' conftest.$ac_ext >&5
15295 eval "$as_ac_var=no
"
15298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15299 conftest$ac_exeext conftest.$ac_ext
15301 ac_res=`eval echo '${'$as_ac_var'}'`
15302 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15303 echo "${ECHO_T}$ac_res" >&6; }
15304 if test `eval echo '${'$as_ac_var'}'` = yes; then
15306 cat >>confdefs.h <<_ACEOF
15307 #define CRAY_STACKSEG_END $ac_func
15316 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15317 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15318 if test "${ac_cv_c_stack_direction+set}" = set; then
15319 echo $ECHO_N "(cached
) $ECHO_C" >&6
15321 if test "$cross_compiling" = yes; then
15322 ac_cv_c_stack_direction=0
15324 cat >conftest.$ac_ext <<_ACEOF
15327 cat confdefs.h >>conftest.$ac_ext
15328 cat >>conftest.$ac_ext <<_ACEOF
15329 /* end confdefs.h. */
15330 $ac_includes_default
15332 find_stack_direction ()
15334 static char *addr = 0;
15339 return find_stack_direction ();
15342 return (&dummy > addr) ? 1 : -1;
15348 return find_stack_direction () < 0;
15351 rm -f conftest$ac_exeext
15352 if { (ac_try="$ac_link"
15353 case "(($ac_try" in
15354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15355 *) ac_try_echo=$ac_try;;
15357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15358 (eval "$ac_link") 2>&5
15360 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15361 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15362 { (case "(($ac_try" in
15363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364 *) ac_try_echo=$ac_try;;
15366 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15367 (eval "$ac_try") 2>&5
15369 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15370 (exit $ac_status); }; }; then
15371 ac_cv_c_stack_direction=1
15373 echo "$as_me: program exited with status
$ac_status" >&5
15374 echo "$as_me: failed program was
:" >&5
15375 sed 's/^/| /' conftest.$ac_ext >&5
15377 ( exit $ac_status )
15378 ac_cv_c_stack_direction=-1
15380 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15385 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15386 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15388 cat >>confdefs.h <<_ACEOF
15389 #define STACK_DIRECTION $ac_cv_c_stack_direction
15396 if test x"$ac_cv_func_alloca_works" != xyes; then
15397 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15398 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15399 { (exit 1); exit 1; }; }
15402 # fmod, logb, and frexp are found in -lm on most systems.
15403 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15405 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15406 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15407 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15408 echo $ECHO_N "(cached
) $ECHO_C" >&6
15410 ac_check_lib_save_LIBS=$LIBS
15412 cat >conftest.$ac_ext <<_ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15419 /* Override any GCC internal prototype to avoid an error.
15420 Use char because int might match the return type of a GCC
15421 builtin and then its argument prototype would still apply. */
15434 rm -f conftest.$ac_objext conftest$ac_exeext
15435 if { (ac_try="$ac_link"
15436 case "(($ac_try" in
15437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15438 *) ac_try_echo=$ac_try;;
15440 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15441 (eval "$ac_link") 2>conftest.er1
15443 grep -v '^ *+' conftest.er1 >conftest.err
15445 cat conftest.err >&5
15446 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15447 (exit $ac_status); } && {
15448 test -z "$ac_c_werror_flag" ||
15449 test ! -s conftest.err
15450 } && test -s conftest$ac_exeext &&
15451 $as_test_x conftest$ac_exeext; then
15452 ac_cv_lib_m_sqrt=yes
15454 echo "$as_me: failed program was
:" >&5
15455 sed 's/^/| /' conftest.$ac_ext >&5
15457 ac_cv_lib_m_sqrt=no
15460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15461 conftest$ac_exeext conftest.$ac_ext
15462 LIBS=$ac_check_lib_save_LIBS
15464 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15465 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15466 if test $ac_cv_lib_m_sqrt = yes; then
15467 cat >>confdefs.h <<_ACEOF
15468 #define HAVE_LIBM 1
15476 # Check for mail-locking functions in a "mail" library. Probably this should
15477 # have the same check as for liblockfile below.
15479 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15480 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15481 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15482 echo $ECHO_N "(cached
) $ECHO_C" >&6
15484 ac_check_lib_save_LIBS=$LIBS
15485 LIBS="-lmail $LIBS"
15486 cat >conftest.$ac_ext <<_ACEOF
15489 cat confdefs.h >>conftest.$ac_ext
15490 cat >>conftest.$ac_ext <<_ACEOF
15491 /* end confdefs.h. */
15493 /* Override any GCC internal prototype to avoid an error.
15494 Use char because int might match the return type of a GCC
15495 builtin and then its argument prototype would still apply. */
15503 return maillock ();
15508 rm -f conftest.$ac_objext conftest$ac_exeext
15509 if { (ac_try="$ac_link"
15510 case "(($ac_try" in
15511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15512 *) ac_try_echo=$ac_try;;
15514 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15515 (eval "$ac_link") 2>conftest.er1
15517 grep -v '^ *+' conftest.er1 >conftest.err
15519 cat conftest.err >&5
15520 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15521 (exit $ac_status); } && {
15522 test -z "$ac_c_werror_flag" ||
15523 test ! -s conftest.err
15524 } && test -s conftest$ac_exeext &&
15525 $as_test_x conftest$ac_exeext; then
15526 ac_cv_lib_mail_maillock=yes
15528 echo "$as_me: failed program was
:" >&5
15529 sed 's/^/| /' conftest.$ac_ext >&5
15531 ac_cv_lib_mail_maillock=no
15534 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15535 conftest$ac_exeext conftest.$ac_ext
15536 LIBS=$ac_check_lib_save_LIBS
15538 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15539 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15540 if test $ac_cv_lib_mail_maillock = yes; then
15541 cat >>confdefs.h <<_ACEOF
15542 #define HAVE_LIBMAIL 1
15545 LIBS="-lmail $LIBS"
15550 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15551 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15552 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15553 echo $ECHO_N "(cached
) $ECHO_C" >&6
15555 ac_check_lib_save_LIBS=$LIBS
15556 LIBS="-llockfile $LIBS"
15557 cat >conftest.$ac_ext <<_ACEOF
15560 cat confdefs.h >>conftest.$ac_ext
15561 cat >>conftest.$ac_ext <<_ACEOF
15562 /* end confdefs.h. */
15564 /* Override any GCC internal prototype to avoid an error.
15565 Use char because int might match the return type of a GCC
15566 builtin and then its argument prototype would still apply. */
15574 return maillock ();
15579 rm -f conftest.$ac_objext conftest$ac_exeext
15580 if { (ac_try="$ac_link"
15581 case "(($ac_try" in
15582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15583 *) ac_try_echo=$ac_try;;
15585 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15586 (eval "$ac_link") 2>conftest.er1
15588 grep -v '^ *+' conftest.er1 >conftest.err
15590 cat conftest.err >&5
15591 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15592 (exit $ac_status); } && {
15593 test -z "$ac_c_werror_flag" ||
15594 test ! -s conftest.err
15595 } && test -s conftest$ac_exeext &&
15596 $as_test_x conftest$ac_exeext; then
15597 ac_cv_lib_lockfile_maillock=yes
15599 echo "$as_me: failed program was
:" >&5
15600 sed 's/^/| /' conftest.$ac_ext >&5
15602 ac_cv_lib_lockfile_maillock=no
15605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15606 conftest$ac_exeext conftest.$ac_ext
15607 LIBS=$ac_check_lib_save_LIBS
15609 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15610 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15611 if test $ac_cv_lib_lockfile_maillock = yes; then
15612 cat >>confdefs.h <<_ACEOF
15613 #define HAVE_LIBLOCKFILE 1
15616 LIBS="-llockfile $LIBS"
15620 # If we have the shared liblockfile, assume we must use it for mail
15621 # locking (e.g. Debian). If we couldn't link against liblockfile
15622 # (no liblockfile.a installed), ensure that we don't need to.
15623 if test "$ac_cv_lib_lockfile_maillock" = no; then
15624 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15625 set dummy liblockfile.so; ac_word=$2
15626 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15627 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15628 if test "${ac_cv_prog_liblockfile+set}" = set; then
15629 echo $ECHO_N "(cached
) $ECHO_C" >&6
15631 if test -n "$liblockfile"; then
15632 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15635 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15636 for as_dir in $as_dummy
15639 test -z "$as_dir" && as_dir=.
15640 for ac_exec_ext in '' $ac_executable_extensions; do
15641 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15642 ac_cv_prog_liblockfile="yes"
15643 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15650 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15653 liblockfile=$ac_cv_prog_liblockfile
15654 if test -n "$liblockfile"; then
15655 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15656 echo "${ECHO_T}$liblockfile" >&6; }
15658 { echo "$as_me:$LINENO: result
: no
" >&5
15659 echo "${ECHO_T}no
" >&6; }
15663 if test $ac_cv_prog_liblockfile = yes; then
15664 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15665 This probably means that movemail could lose mail.
15666 There may be a \`development' package to
install containing liblockfile.
" >&5
15667 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15668 This probably means that movemail could lose mail.
15669 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15670 { (exit 1); exit 1; }; }
15675 for ac_func in touchlock
15677 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15678 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15679 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15680 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15681 echo $ECHO_N "(cached
) $ECHO_C" >&6
15683 cat >conftest.$ac_ext <<_ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15691 #define $ac_func innocuous_$ac_func
15693 /* System header to define __stub macros and hopefully few prototypes,
15694 which can conflict with char $ac_func (); below.
15695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15696 <limits.h> exists even on freestanding compilers. */
15699 # include <limits.h>
15701 # include <assert.h>
15706 /* Override any GCC internal prototype to avoid an error.
15707 Use char because int might match the return type of a GCC
15708 builtin and then its argument prototype would still apply. */
15713 /* The GNU C library defines this for functions which it implements
15714 to always fail with ENOSYS. Some functions are actually named
15715 something starting with __ and the normal name is an alias. */
15716 #if defined __stub_$ac_func || defined __stub___$ac_func
15723 return $ac_func ();
15728 rm -f conftest.$ac_objext conftest$ac_exeext
15729 if { (ac_try="$ac_link"
15730 case "(($ac_try" in
15731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15732 *) ac_try_echo=$ac_try;;
15734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15735 (eval "$ac_link") 2>conftest.er1
15737 grep -v '^ *+' conftest.er1 >conftest.err
15739 cat conftest.err >&5
15740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15741 (exit $ac_status); } && {
15742 test -z "$ac_c_werror_flag" ||
15743 test ! -s conftest.err
15744 } && test -s conftest$ac_exeext &&
15745 $as_test_x conftest$ac_exeext; then
15746 eval "$as_ac_var=yes"
15748 echo "$as_me: failed program was
:" >&5
15749 sed 's/^/| /' conftest.$ac_ext >&5
15751 eval "$as_ac_var=no
"
15754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15755 conftest$ac_exeext conftest.$ac_ext
15757 ac_res=`eval echo '${'$as_ac_var'}'`
15758 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15759 echo "${ECHO_T}$ac_res" >&6; }
15760 if test `eval echo '${'$as_ac_var'}'` = yes; then
15761 cat >>confdefs.h <<_ACEOF
15762 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15769 for ac_header in maillock.h
15771 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15772 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15773 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15774 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15775 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15776 echo $ECHO_N "(cached
) $ECHO_C" >&6
15778 ac_res=`eval echo '${'$as_ac_Header'}'`
15779 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15780 echo "${ECHO_T}$ac_res" >&6; }
15782 # Is the header compilable?
15783 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15784 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15785 cat >conftest.$ac_ext <<_ACEOF
15788 cat confdefs.h >>conftest.$ac_ext
15789 cat >>conftest.$ac_ext <<_ACEOF
15790 /* end confdefs.h. */
15791 $ac_includes_default
15792 #include <$ac_header>
15794 rm -f conftest.$ac_objext
15795 if { (ac_try="$ac_compile"
15796 case "(($ac_try" in
15797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15798 *) ac_try_echo=$ac_try;;
15800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15801 (eval "$ac_compile") 2>conftest.er1
15803 grep -v '^ *+' conftest.er1 >conftest.err
15805 cat conftest.err >&5
15806 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15807 (exit $ac_status); } && {
15808 test -z "$ac_c_werror_flag" ||
15809 test ! -s conftest.err
15810 } && test -s conftest.$ac_objext; then
15811 ac_header_compiler=yes
15813 echo "$as_me: failed program was
:" >&5
15814 sed 's/^/| /' conftest.$ac_ext >&5
15816 ac_header_compiler=no
15819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15820 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15821 echo "${ECHO_T}$ac_header_compiler" >&6; }
15823 # Is the header present?
15824 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15825 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15826 cat >conftest.$ac_ext <<_ACEOF
15829 cat confdefs.h >>conftest.$ac_ext
15830 cat >>conftest.$ac_ext <<_ACEOF
15831 /* end confdefs.h. */
15832 #include <$ac_header>
15834 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15835 case "(($ac_try" in
15836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15837 *) ac_try_echo=$ac_try;;
15839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15840 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15842 grep -v '^ *+' conftest.er1 >conftest.err
15844 cat conftest.err >&5
15845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15846 (exit $ac_status); } >/dev/null && {
15847 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15848 test ! -s conftest.err
15850 ac_header_preproc=yes
15852 echo "$as_me: failed program was
:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15855 ac_header_preproc=no
15858 rm -f conftest.err conftest.$ac_ext
15859 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15860 echo "${ECHO_T}$ac_header_preproc" >&6; }
15862 # So? What about this header?
15863 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15865 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15866 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15867 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15868 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15869 ac_header_preproc=yes
15872 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15873 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15874 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15875 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15876 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15877 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15878 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15879 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15880 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15881 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15882 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15883 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15887 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15888 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15889 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15890 echo $ECHO_N "(cached
) $ECHO_C" >&6
15892 eval "$as_ac_Header=\
$ac_header_preproc"
15894 ac_res=`eval echo '${'$as_ac_Header'}'`
15895 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15896 echo "${ECHO_T}$ac_res" >&6; }
15899 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15900 cat >>confdefs.h <<_ACEOF
15901 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15977 for ac_func in gethostname getdomainname dup2 \
15978 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15979 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15980 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15981 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15982 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15983 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15984 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15985 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15987 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15988 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15989 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15990 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15991 echo $ECHO_N "(cached
) $ECHO_C" >&6
15993 cat >conftest.$ac_ext <<_ACEOF
15996 cat confdefs.h >>conftest.$ac_ext
15997 cat >>conftest.$ac_ext <<_ACEOF
15998 /* end confdefs.h. */
15999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16001 #define $ac_func innocuous_$ac_func
16003 /* System header to define __stub macros and hopefully few prototypes,
16004 which can conflict with char $ac_func (); below.
16005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16006 <limits.h> exists even on freestanding compilers. */
16009 # include <limits.h>
16011 # include <assert.h>
16016 /* Override any GCC internal prototype to avoid an error.
16017 Use char because int might match the return type of a GCC
16018 builtin and then its argument prototype would still apply. */
16023 /* The GNU C library defines this for functions which it implements
16024 to always fail with ENOSYS. Some functions are actually named
16025 something starting with __ and the normal name is an alias. */
16026 #if defined __stub_$ac_func || defined __stub___$ac_func
16033 return $ac_func ();
16038 rm -f conftest.$ac_objext conftest$ac_exeext
16039 if { (ac_try="$ac_link"
16040 case "(($ac_try" in
16041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16042 *) ac_try_echo=$ac_try;;
16044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16045 (eval "$ac_link") 2>conftest.er1
16047 grep -v '^ *+' conftest.er1 >conftest.err
16049 cat conftest.err >&5
16050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16051 (exit $ac_status); } && {
16052 test -z "$ac_c_werror_flag" ||
16053 test ! -s conftest.err
16054 } && test -s conftest$ac_exeext &&
16055 $as_test_x conftest$ac_exeext; then
16056 eval "$as_ac_var=yes"
16058 echo "$as_me: failed program was
:" >&5
16059 sed 's/^/| /' conftest.$ac_ext >&5
16061 eval "$as_ac_var=no
"
16064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16065 conftest$ac_exeext conftest.$ac_ext
16067 ac_res=`eval echo '${'$as_ac_var'}'`
16068 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16069 echo "${ECHO_T}$ac_res" >&6; }
16070 if test `eval echo '${'$as_ac_var'}'` = yes; then
16071 cat >>confdefs.h <<_ACEOF
16072 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16080 for ac_header in sys/un.h
16082 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16083 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16084 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16085 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16086 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16087 echo $ECHO_N "(cached
) $ECHO_C" >&6
16089 ac_res=`eval echo '${'$as_ac_Header'}'`
16090 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16091 echo "${ECHO_T}$ac_res" >&6; }
16093 # Is the header compilable?
16094 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16095 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16096 cat >conftest.$ac_ext <<_ACEOF
16099 cat confdefs.h >>conftest.$ac_ext
16100 cat >>conftest.$ac_ext <<_ACEOF
16101 /* end confdefs.h. */
16102 $ac_includes_default
16103 #include <$ac_header>
16105 rm -f conftest.$ac_objext
16106 if { (ac_try="$ac_compile"
16107 case "(($ac_try" in
16108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16109 *) ac_try_echo=$ac_try;;
16111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16112 (eval "$ac_compile") 2>conftest.er1
16114 grep -v '^ *+' conftest.er1 >conftest.err
16116 cat conftest.err >&5
16117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16118 (exit $ac_status); } && {
16119 test -z "$ac_c_werror_flag" ||
16120 test ! -s conftest.err
16121 } && test -s conftest.$ac_objext; then
16122 ac_header_compiler=yes
16124 echo "$as_me: failed program was
:" >&5
16125 sed 's/^/| /' conftest.$ac_ext >&5
16127 ac_header_compiler=no
16130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16131 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16132 echo "${ECHO_T}$ac_header_compiler" >&6; }
16134 # Is the header present?
16135 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16136 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16137 cat >conftest.$ac_ext <<_ACEOF
16140 cat confdefs.h >>conftest.$ac_ext
16141 cat >>conftest.$ac_ext <<_ACEOF
16142 /* end confdefs.h. */
16143 #include <$ac_header>
16145 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16146 case "(($ac_try" in
16147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16148 *) ac_try_echo=$ac_try;;
16150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16151 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16153 grep -v '^ *+' conftest.er1 >conftest.err
16155 cat conftest.err >&5
16156 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16157 (exit $ac_status); } >/dev/null && {
16158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16159 test ! -s conftest.err
16161 ac_header_preproc=yes
16163 echo "$as_me: failed program was
:" >&5
16164 sed 's/^/| /' conftest.$ac_ext >&5
16166 ac_header_preproc=no
16169 rm -f conftest.err conftest.$ac_ext
16170 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16171 echo "${ECHO_T}$ac_header_preproc" >&6; }
16173 # So? What about this header?
16174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16176 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16177 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16178 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16180 ac_header_preproc=yes
16183 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16184 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16185 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16186 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16187 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16188 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16189 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16190 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16191 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16193 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16194 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16198 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16199 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16200 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16201 echo $ECHO_N "(cached
) $ECHO_C" >&6
16203 eval "$as_ac_Header=\
$ac_header_preproc"
16205 ac_res=`eval echo '${'$as_ac_Header'}'`
16206 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16207 echo "${ECHO_T}$ac_res" >&6; }
16210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16211 cat >>confdefs.h <<_ACEOF
16212 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16224 for ac_header in $ac_header_list
16226 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16227 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16228 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16229 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16230 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16231 echo $ECHO_N "(cached
) $ECHO_C" >&6
16233 ac_res=`eval echo '${'$as_ac_Header'}'`
16234 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16235 echo "${ECHO_T}$ac_res" >&6; }
16237 # Is the header compilable?
16238 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16239 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16240 cat >conftest.$ac_ext <<_ACEOF
16243 cat confdefs.h >>conftest.$ac_ext
16244 cat >>conftest.$ac_ext <<_ACEOF
16245 /* end confdefs.h. */
16246 $ac_includes_default
16247 #include <$ac_header>
16249 rm -f conftest.$ac_objext
16250 if { (ac_try="$ac_compile"
16251 case "(($ac_try" in
16252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16253 *) ac_try_echo=$ac_try;;
16255 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16256 (eval "$ac_compile") 2>conftest.er1
16258 grep -v '^ *+' conftest.er1 >conftest.err
16260 cat conftest.err >&5
16261 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16262 (exit $ac_status); } && {
16263 test -z "$ac_c_werror_flag" ||
16264 test ! -s conftest.err
16265 } && test -s conftest.$ac_objext; then
16266 ac_header_compiler=yes
16268 echo "$as_me: failed program was
:" >&5
16269 sed 's/^/| /' conftest.$ac_ext >&5
16271 ac_header_compiler=no
16274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16275 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16276 echo "${ECHO_T}$ac_header_compiler" >&6; }
16278 # Is the header present?
16279 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16280 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16281 cat >conftest.$ac_ext <<_ACEOF
16284 cat confdefs.h >>conftest.$ac_ext
16285 cat >>conftest.$ac_ext <<_ACEOF
16286 /* end confdefs.h. */
16287 #include <$ac_header>
16289 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16290 case "(($ac_try" in
16291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16292 *) ac_try_echo=$ac_try;;
16294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16295 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16297 grep -v '^ *+' conftest.er1 >conftest.err
16299 cat conftest.err >&5
16300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16301 (exit $ac_status); } >/dev/null && {
16302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16303 test ! -s conftest.err
16305 ac_header_preproc=yes
16307 echo "$as_me: failed program was
:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16310 ac_header_preproc=no
16313 rm -f conftest.err conftest.$ac_ext
16314 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16315 echo "${ECHO_T}$ac_header_preproc" >&6; }
16317 # So? What about this header?
16318 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16320 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16321 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16322 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16323 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16324 ac_header_preproc=yes
16327 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16328 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16329 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16330 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16331 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16332 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16333 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16334 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16335 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16336 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16337 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16338 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16342 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16343 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16344 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16345 echo $ECHO_N "(cached
) $ECHO_C" >&6
16347 eval "$as_ac_Header=\
$ac_header_preproc"
16349 ac_res=`eval echo '${'$as_ac_Header'}'`
16350 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16351 echo "${ECHO_T}$ac_res" >&6; }
16354 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16355 cat >>confdefs.h <<_ACEOF
16356 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16371 for ac_func in $ac_func_list
16373 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16374 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16375 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16376 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16377 echo $ECHO_N "(cached
) $ECHO_C" >&6
16379 cat >conftest.$ac_ext <<_ACEOF
16382 cat confdefs.h >>conftest.$ac_ext
16383 cat >>conftest.$ac_ext <<_ACEOF
16384 /* end confdefs.h. */
16385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16387 #define $ac_func innocuous_$ac_func
16389 /* System header to define __stub macros and hopefully few prototypes,
16390 which can conflict with char $ac_func (); below.
16391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16392 <limits.h> exists even on freestanding compilers. */
16395 # include <limits.h>
16397 # include <assert.h>
16402 /* Override any GCC internal prototype to avoid an error.
16403 Use char because int might match the return type of a GCC
16404 builtin and then its argument prototype would still apply. */
16409 /* The GNU C library defines this for functions which it implements
16410 to always fail with ENOSYS. Some functions are actually named
16411 something starting with __ and the normal name is an alias. */
16412 #if defined __stub_$ac_func || defined __stub___$ac_func
16419 return $ac_func ();
16424 rm -f conftest.$ac_objext conftest$ac_exeext
16425 if { (ac_try="$ac_link"
16426 case "(($ac_try" in
16427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428 *) ac_try_echo=$ac_try;;
16430 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16431 (eval "$ac_link") 2>conftest.er1
16433 grep -v '^ *+' conftest.er1 >conftest.err
16435 cat conftest.err >&5
16436 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16437 (exit $ac_status); } && {
16438 test -z "$ac_c_werror_flag" ||
16439 test ! -s conftest.err
16440 } && test -s conftest$ac_exeext &&
16441 $as_test_x conftest$ac_exeext; then
16442 eval "$as_ac_var=yes"
16444 echo "$as_me: failed program was
:" >&5
16445 sed 's/^/| /' conftest.$ac_ext >&5
16447 eval "$as_ac_var=no
"
16450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16451 conftest$ac_exeext conftest.$ac_ext
16453 ac_res=`eval echo '${'$as_ac_var'}'`
16454 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16455 echo "${ECHO_T}$ac_res" >&6; }
16456 if test `eval echo '${'$as_ac_var'}'` = yes; then
16457 cat >>confdefs.h <<_ACEOF
16458 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16480 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16481 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16482 if test "${ac_cv_func_working_mktime+set}" = set; then
16483 echo $ECHO_N "(cached
) $ECHO_C" >&6
16485 if test "$cross_compiling" = yes; then
16486 ac_cv_func_working_mktime=no
16488 cat >conftest.$ac_ext <<_ACEOF
16491 cat confdefs.h >>conftest.$ac_ext
16492 cat >>conftest.$ac_ext <<_ACEOF
16493 /* end confdefs.h. */
16494 /* Test program from Paul Eggert and Tony Leneis. */
16495 #ifdef TIME_WITH_SYS_TIME
16496 # include <sys/time.h>
16499 # ifdef HAVE_SYS_TIME_H
16500 # include <sys/time.h>
16506 #include <stdlib.h>
16508 #ifdef HAVE_UNISTD_H
16509 # include <unistd.h>
16513 # define alarm(X) /* empty */
16516 /* Work around redefinition to rpl_putenv by other config tests. */
16519 static time_t time_t_max;
16520 static time_t time_t_min;
16522 /* Values we'll use to set the TZ environment variable. */
16523 static char *tz_strings[] = {
16524 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16525 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16527 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16529 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16530 Based on a problem report from Andreas Jaeger. */
16532 spring_forward_gap ()
16534 /* glibc (up to about 1998-10-07) failed this test. */
16537 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16538 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16539 on systems that don't support the Olson extension, or don't have the
16540 full zoneinfo tables installed. */
16541 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16550 return mktime (&tm) != (time_t) -1;
16558 return ! (lt = localtime (&now)) || mktime (lt) == now;
16565 return (mktime_test1 (now)
16566 && mktime_test1 ((time_t) (time_t_max - now))
16567 && mktime_test1 ((time_t) (time_t_min + now)));
16573 /* Based on code from Ariel Faigon. */
16583 return tm.tm_mon == 2 && tm.tm_mday == 31;
16592 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16593 now = mktime (&tm);
16594 if (now != (time_t) -1)
16596 struct tm *lt = localtime (&now);
16598 && lt->tm_year == tm.tm_year
16599 && lt->tm_mon == tm.tm_mon
16600 && lt->tm_mday == tm.tm_mday
16601 && lt->tm_hour == tm.tm_hour
16602 && lt->tm_min == tm.tm_min
16603 && lt->tm_sec == tm.tm_sec
16604 && lt->tm_yday == tm.tm_yday
16605 && lt->tm_wday == tm.tm_wday
16606 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16607 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16616 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16617 ignoring leap seconds. */
16618 unsigned long int answer = 2527315200UL;
16622 tm.tm_year = 2050 - 1900;
16625 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16628 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16629 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16630 on systems that don't support the Olson extension, or don't have the
16631 full zoneinfo tables installed. */
16632 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16636 /* Check that the result is either a failure, or close enough
16637 to the correct answer that we can assume the discrepancy is
16638 due to leap seconds. */
16639 return (t == (time_t) -1
16640 || (0 < t && answer - 120 <= t && t <= answer + 120));
16649 /* This test makes some buggy mktime implementations loop.
16650 Give up after 60 seconds; a mktime slower than that
16651 isn't worth using anyway. */
16654 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16657 if ((time_t) -1 < 0)
16658 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16660 delta = time_t_max / 997; /* a suitable prime number */
16661 for (i = 0; i < N_STRINGS; i++)
16664 putenv (tz_strings[i]);
16666 for (t = 0; t <= time_t_max - delta; t += delta)
16667 if (! mktime_test (t))
16669 if (! (mktime_test ((time_t) 1)
16670 && mktime_test ((time_t) (60 * 60))
16671 && mktime_test ((time_t) (60 * 60 * 24))))
16674 for (j = 1; 0 < j; j *= 2)
16675 if (! bigtime_test (j))
16677 if (! bigtime_test (j - 1))
16680 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16683 rm -f conftest$ac_exeext
16684 if { (ac_try="$ac_link"
16685 case "(($ac_try" in
16686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16687 *) ac_try_echo=$ac_try;;
16689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16690 (eval "$ac_link") 2>&5
16692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16693 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16694 { (case "(($ac_try" in
16695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16696 *) ac_try_echo=$ac_try;;
16698 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16699 (eval "$ac_try") 2>&5
16701 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16702 (exit $ac_status); }; }; then
16703 ac_cv_func_working_mktime=yes
16705 echo "$as_me: program exited with status
$ac_status" >&5
16706 echo "$as_me: failed program was
:" >&5
16707 sed 's/^/| /' conftest.$ac_ext >&5
16709 ( exit $ac_status )
16710 ac_cv_func_working_mktime=no
16712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16717 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16718 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16719 if test $ac_cv_func_working_mktime = no; then
16720 case " $LIBOBJS " in
16721 *" mktime.
$ac_objext "* ) ;;
16722 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16728 if test "$ac_cv_func_working_mktime" = no; then
16730 cat >>confdefs.h <<\_ACEOF
16731 #define BROKEN_MKTIME 1
16736 ac_have_func=no # yes means we've found a way to get the load average.
16738 # Make sure getloadavg.c is where it belongs, at configure-time.
16739 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16740 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16741 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16742 { (exit 1); exit 1; }; }
16746 # Check for getloadavg, but be sure not to touch the cache variable.
16747 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16748 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16749 if test "${ac_cv_func_getloadavg+set}" = set; then
16750 echo $ECHO_N "(cached
) $ECHO_C" >&6
16752 cat >conftest.$ac_ext <<_ACEOF
16755 cat confdefs.h >>conftest.$ac_ext
16756 cat >>conftest.$ac_ext <<_ACEOF
16757 /* end confdefs.h. */
16758 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16759 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16760 #define getloadavg innocuous_getloadavg
16762 /* System header to define __stub macros and hopefully few prototypes,
16763 which can conflict with char getloadavg (); below.
16764 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16765 <limits.h> exists even on freestanding compilers. */
16768 # include <limits.h>
16770 # include <assert.h>
16775 /* Override any GCC internal prototype to avoid an error.
16776 Use char because int might match the return type of a GCC
16777 builtin and then its argument prototype would still apply. */
16781 char getloadavg ();
16782 /* The GNU C library defines this for functions which it implements
16783 to always fail with ENOSYS. Some functions are actually named
16784 something starting with __ and the normal name is an alias. */
16785 #if defined __stub_getloadavg || defined __stub___getloadavg
16792 return getloadavg ();
16797 rm -f conftest.$ac_objext conftest$ac_exeext
16798 if { (ac_try="$ac_link"
16799 case "(($ac_try" in
16800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16801 *) ac_try_echo=$ac_try;;
16803 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16804 (eval "$ac_link") 2>conftest.er1
16806 grep -v '^ *+' conftest.er1 >conftest.err
16808 cat conftest.err >&5
16809 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16810 (exit $ac_status); } && {
16811 test -z "$ac_c_werror_flag" ||
16812 test ! -s conftest.err
16813 } && test -s conftest$ac_exeext &&
16814 $as_test_x conftest$ac_exeext; then
16815 ac_cv_func_getloadavg=yes
16817 echo "$as_me: failed program was
:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16820 ac_cv_func_getloadavg=no
16823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16824 conftest$ac_exeext conftest.$ac_ext
16826 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16827 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16828 if test $ac_cv_func_getloadavg = yes; then
16833 ) && ac_have_func=yes
16835 # On HPUX9, an unprivileged user can get load averages through this function.
16837 for ac_func in pstat_getdynamic
16839 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16840 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16841 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16842 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16843 echo $ECHO_N "(cached
) $ECHO_C" >&6
16845 cat >conftest.$ac_ext <<_ACEOF
16848 cat confdefs.h >>conftest.$ac_ext
16849 cat >>conftest.$ac_ext <<_ACEOF
16850 /* end confdefs.h. */
16851 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16852 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16853 #define $ac_func innocuous_$ac_func
16855 /* System header to define __stub macros and hopefully few prototypes,
16856 which can conflict with char $ac_func (); below.
16857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16858 <limits.h> exists even on freestanding compilers. */
16861 # include <limits.h>
16863 # include <assert.h>
16868 /* Override any GCC internal prototype to avoid an error.
16869 Use char because int might match the return type of a GCC
16870 builtin and then its argument prototype would still apply. */
16875 /* The GNU C library defines this for functions which it implements
16876 to always fail with ENOSYS. Some functions are actually named
16877 something starting with __ and the normal name is an alias. */
16878 #if defined __stub_$ac_func || defined __stub___$ac_func
16885 return $ac_func ();
16890 rm -f conftest.$ac_objext conftest$ac_exeext
16891 if { (ac_try="$ac_link"
16892 case "(($ac_try" in
16893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16894 *) ac_try_echo=$ac_try;;
16896 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16897 (eval "$ac_link") 2>conftest.er1
16899 grep -v '^ *+' conftest.er1 >conftest.err
16901 cat conftest.err >&5
16902 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16903 (exit $ac_status); } && {
16904 test -z "$ac_c_werror_flag" ||
16905 test ! -s conftest.err
16906 } && test -s conftest$ac_exeext &&
16907 $as_test_x conftest$ac_exeext; then
16908 eval "$as_ac_var=yes"
16910 echo "$as_me: failed program was
:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16913 eval "$as_ac_var=no
"
16916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16917 conftest$ac_exeext conftest.$ac_ext
16919 ac_res=`eval echo '${'$as_ac_var'}'`
16920 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16921 echo "${ECHO_T}$ac_res" >&6; }
16922 if test `eval echo '${'$as_ac_var'}'` = yes; then
16923 cat >>confdefs.h <<_ACEOF
16924 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16931 # Solaris has libkstat which does not require root.
16933 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16934 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16935 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16936 echo $ECHO_N "(cached
) $ECHO_C" >&6
16938 ac_check_lib_save_LIBS=$LIBS
16939 LIBS="-lkstat $LIBS"
16940 cat >conftest.$ac_ext <<_ACEOF
16943 cat confdefs.h >>conftest.$ac_ext
16944 cat >>conftest.$ac_ext <<_ACEOF
16945 /* end confdefs.h. */
16947 /* Override any GCC internal prototype to avoid an error.
16948 Use char because int might match the return type of a GCC
16949 builtin and then its argument prototype would still apply. */
16953 char kstat_open ();
16957 return kstat_open ();
16962 rm -f conftest.$ac_objext conftest$ac_exeext
16963 if { (ac_try="$ac_link"
16964 case "(($ac_try" in
16965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16966 *) ac_try_echo=$ac_try;;
16968 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16969 (eval "$ac_link") 2>conftest.er1
16971 grep -v '^ *+' conftest.er1 >conftest.err
16973 cat conftest.err >&5
16974 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16975 (exit $ac_status); } && {
16976 test -z "$ac_c_werror_flag" ||
16977 test ! -s conftest.err
16978 } && test -s conftest$ac_exeext &&
16979 $as_test_x conftest$ac_exeext; then
16980 ac_cv_lib_kstat_kstat_open=yes
16982 echo "$as_me: failed program was
:" >&5
16983 sed 's/^/| /' conftest.$ac_ext >&5
16985 ac_cv_lib_kstat_kstat_open=no
16988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16989 conftest$ac_exeext conftest.$ac_ext
16990 LIBS=$ac_check_lib_save_LIBS
16992 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16993 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16994 if test $ac_cv_lib_kstat_kstat_open = yes; then
16995 cat >>confdefs.h <<_ACEOF
16996 #define HAVE_LIBKSTAT 1
16999 LIBS="-lkstat $LIBS"
17003 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17005 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17006 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17007 # to get the right answer into the cache.
17008 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17009 if test $ac_have_func = no; then
17010 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
17011 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
17012 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17013 echo $ECHO_N "(cached
) $ECHO_C" >&6
17015 ac_check_lib_save_LIBS=$LIBS
17017 cat >conftest.$ac_ext <<_ACEOF
17020 cat confdefs.h >>conftest.$ac_ext
17021 cat >>conftest.$ac_ext <<_ACEOF
17022 /* end confdefs.h. */
17024 /* Override any GCC internal prototype to avoid an error.
17025 Use char because int might match the return type of a GCC
17026 builtin and then its argument prototype would still apply. */
17034 return elf_begin ();
17039 rm -f conftest.$ac_objext conftest$ac_exeext
17040 if { (ac_try="$ac_link"
17041 case "(($ac_try" in
17042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043 *) ac_try_echo=$ac_try;;
17045 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17046 (eval "$ac_link") 2>conftest.er1
17048 grep -v '^ *+' conftest.er1 >conftest.err
17050 cat conftest.err >&5
17051 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17052 (exit $ac_status); } && {
17053 test -z "$ac_c_werror_flag" ||
17054 test ! -s conftest.err
17055 } && test -s conftest$ac_exeext &&
17056 $as_test_x conftest$ac_exeext; then
17057 ac_cv_lib_elf_elf_begin=yes
17059 echo "$as_me: failed program was
:" >&5
17060 sed 's/^/| /' conftest.$ac_ext >&5
17062 ac_cv_lib_elf_elf_begin=no
17065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17066 conftest$ac_exeext conftest.$ac_ext
17067 LIBS=$ac_check_lib_save_LIBS
17069 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17070 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17071 if test $ac_cv_lib_elf_elf_begin = yes; then
17076 if test $ac_have_func = no; then
17077 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17078 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17079 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17080 echo $ECHO_N "(cached
) $ECHO_C" >&6
17082 ac_check_lib_save_LIBS=$LIBS
17084 cat >conftest.$ac_ext <<_ACEOF
17087 cat confdefs.h >>conftest.$ac_ext
17088 cat >>conftest.$ac_ext <<_ACEOF
17089 /* end confdefs.h. */
17091 /* Override any GCC internal prototype to avoid an error.
17092 Use char because int might match the return type of a GCC
17093 builtin and then its argument prototype would still apply. */
17101 return kvm_open ();
17106 rm -f conftest.$ac_objext conftest$ac_exeext
17107 if { (ac_try="$ac_link"
17108 case "(($ac_try" in
17109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17110 *) ac_try_echo=$ac_try;;
17112 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17113 (eval "$ac_link") 2>conftest.er1
17115 grep -v '^ *+' conftest.er1 >conftest.err
17117 cat conftest.err >&5
17118 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17119 (exit $ac_status); } && {
17120 test -z "$ac_c_werror_flag" ||
17121 test ! -s conftest.err
17122 } && test -s conftest$ac_exeext &&
17123 $as_test_x conftest$ac_exeext; then
17124 ac_cv_lib_kvm_kvm_open=yes
17126 echo "$as_me: failed program was
:" >&5
17127 sed 's/^/| /' conftest.$ac_ext >&5
17129 ac_cv_lib_kvm_kvm_open=no
17132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17133 conftest$ac_exeext conftest.$ac_ext
17134 LIBS=$ac_check_lib_save_LIBS
17136 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17137 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17138 if test $ac_cv_lib_kvm_kvm_open = yes; then
17142 # Check for the 4.4BSD definition of getloadavg.
17143 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17144 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17145 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17146 echo $ECHO_N "(cached
) $ECHO_C" >&6
17148 ac_check_lib_save_LIBS=$LIBS
17149 LIBS="-lutil $LIBS"
17150 cat >conftest.$ac_ext <<_ACEOF
17153 cat confdefs.h >>conftest.$ac_ext
17154 cat >>conftest.$ac_ext <<_ACEOF
17155 /* end confdefs.h. */
17157 /* Override any GCC internal prototype to avoid an error.
17158 Use char because int might match the return type of a GCC
17159 builtin and then its argument prototype would still apply. */
17163 char getloadavg ();
17167 return getloadavg ();
17172 rm -f conftest.$ac_objext conftest$ac_exeext
17173 if { (ac_try="$ac_link"
17174 case "(($ac_try" in
17175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17176 *) ac_try_echo=$ac_try;;
17178 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17179 (eval "$ac_link") 2>conftest.er1
17181 grep -v '^ *+' conftest.er1 >conftest.err
17183 cat conftest.err >&5
17184 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17185 (exit $ac_status); } && {
17186 test -z "$ac_c_werror_flag" ||
17187 test ! -s conftest.err
17188 } && test -s conftest$ac_exeext &&
17189 $as_test_x conftest$ac_exeext; then
17190 ac_cv_lib_util_getloadavg=yes
17192 echo "$as_me: failed program was
:" >&5
17193 sed 's/^/| /' conftest.$ac_ext >&5
17195 ac_cv_lib_util_getloadavg=no
17198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17199 conftest$ac_exeext conftest.$ac_ext
17200 LIBS=$ac_check_lib_save_LIBS
17202 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17203 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17204 if test $ac_cv_lib_util_getloadavg = yes; then
17205 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17210 if test $ac_have_func = no; then
17211 # There is a commonly available library for RS/6000 AIX.
17212 # Since it is not a standard part of AIX, it might be installed locally.
17213 ac_getloadavg_LIBS=$LIBS
17214 LIBS="-L/usr
/local
/lib
$LIBS"
17215 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17216 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17217 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17218 echo $ECHO_N "(cached
) $ECHO_C" >&6
17220 ac_check_lib_save_LIBS=$LIBS
17221 LIBS="-lgetloadavg $LIBS"
17222 cat >conftest.$ac_ext <<_ACEOF
17225 cat confdefs.h >>conftest.$ac_ext
17226 cat >>conftest.$ac_ext <<_ACEOF
17227 /* end confdefs.h. */
17229 /* Override any GCC internal prototype to avoid an error.
17230 Use char because int might match the return type of a GCC
17231 builtin and then its argument prototype would still apply. */
17235 char getloadavg ();
17239 return getloadavg ();
17244 rm -f conftest.$ac_objext conftest$ac_exeext
17245 if { (ac_try="$ac_link"
17246 case "(($ac_try" in
17247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17248 *) ac_try_echo=$ac_try;;
17250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17251 (eval "$ac_link") 2>conftest.er1
17253 grep -v '^ *+' conftest.er1 >conftest.err
17255 cat conftest.err >&5
17256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17257 (exit $ac_status); } && {
17258 test -z "$ac_c_werror_flag" ||
17259 test ! -s conftest.err
17260 } && test -s conftest$ac_exeext &&
17261 $as_test_x conftest$ac_exeext; then
17262 ac_cv_lib_getloadavg_getloadavg=yes
17264 echo "$as_me: failed program was
:" >&5
17265 sed 's/^/| /' conftest.$ac_ext >&5
17267 ac_cv_lib_getloadavg_getloadavg=no
17270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17271 conftest$ac_exeext conftest.$ac_ext
17272 LIBS=$ac_check_lib_save_LIBS
17274 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17275 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17276 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17277 LIBS="-lgetloadavg $LIBS"
17279 LIBS=$ac_getloadavg_LIBS
17284 # Make sure it is really in the library, if we think we found it,
17285 # otherwise set up the replacement function.
17287 for ac_func in getloadavg
17289 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17290 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17291 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17292 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17293 echo $ECHO_N "(cached
) $ECHO_C" >&6
17295 cat >conftest.$ac_ext <<_ACEOF
17298 cat confdefs.h >>conftest.$ac_ext
17299 cat >>conftest.$ac_ext <<_ACEOF
17300 /* end confdefs.h. */
17301 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17302 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17303 #define $ac_func innocuous_$ac_func
17305 /* System header to define __stub macros and hopefully few prototypes,
17306 which can conflict with char $ac_func (); below.
17307 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17308 <limits.h> exists even on freestanding compilers. */
17311 # include <limits.h>
17313 # include <assert.h>
17318 /* Override any GCC internal prototype to avoid an error.
17319 Use char because int might match the return type of a GCC
17320 builtin and then its argument prototype would still apply. */
17325 /* The GNU C library defines this for functions which it implements
17326 to always fail with ENOSYS. Some functions are actually named
17327 something starting with __ and the normal name is an alias. */
17328 #if defined __stub_$ac_func || defined __stub___$ac_func
17335 return $ac_func ();
17340 rm -f conftest.$ac_objext conftest$ac_exeext
17341 if { (ac_try="$ac_link"
17342 case "(($ac_try" in
17343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17344 *) ac_try_echo=$ac_try;;
17346 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17347 (eval "$ac_link") 2>conftest.er1
17349 grep -v '^ *+' conftest.er1 >conftest.err
17351 cat conftest.err >&5
17352 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17353 (exit $ac_status); } && {
17354 test -z "$ac_c_werror_flag" ||
17355 test ! -s conftest.err
17356 } && test -s conftest$ac_exeext &&
17357 $as_test_x conftest$ac_exeext; then
17358 eval "$as_ac_var=yes"
17360 echo "$as_me: failed program was
:" >&5
17361 sed 's/^/| /' conftest.$ac_ext >&5
17363 eval "$as_ac_var=no
"
17366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17367 conftest$ac_exeext conftest.$ac_ext
17369 ac_res=`eval echo '${'$as_ac_var'}'`
17370 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17371 echo "${ECHO_T}$ac_res" >&6; }
17372 if test `eval echo '${'$as_ac_var'}'` = yes; then
17373 cat >>confdefs.h <<_ACEOF
17374 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17378 case " $LIBOBJS " in
17379 *" getloadavg.
$ac_objext "* ) ;;
17380 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17385 cat >>confdefs.h <<\_ACEOF
17386 #define C_GETLOADAVG 1
17389 # Figure out what our getloadavg.c needs.
17391 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17392 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17393 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17394 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17395 echo $ECHO_N "(cached
) $ECHO_C" >&6
17397 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17398 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17400 # Is the header compilable?
17401 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17402 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17403 cat >conftest.$ac_ext <<_ACEOF
17406 cat confdefs.h >>conftest.$ac_ext
17407 cat >>conftest.$ac_ext <<_ACEOF
17408 /* end confdefs.h. */
17409 $ac_includes_default
17410 #include <sys/dg_sys_info.h>
17412 rm -f conftest.$ac_objext
17413 if { (ac_try="$ac_compile"
17414 case "(($ac_try" in
17415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17416 *) ac_try_echo=$ac_try;;
17418 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17419 (eval "$ac_compile") 2>conftest.er1
17421 grep -v '^ *+' conftest.er1 >conftest.err
17423 cat conftest.err >&5
17424 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17425 (exit $ac_status); } && {
17426 test -z "$ac_c_werror_flag" ||
17427 test ! -s conftest.err
17428 } && test -s conftest.$ac_objext; then
17429 ac_header_compiler=yes
17431 echo "$as_me: failed program was
:" >&5
17432 sed 's/^/| /' conftest.$ac_ext >&5
17434 ac_header_compiler=no
17437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17438 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17439 echo "${ECHO_T}$ac_header_compiler" >&6; }
17441 # Is the header present?
17442 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17443 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17444 cat >conftest.$ac_ext <<_ACEOF
17447 cat confdefs.h >>conftest.$ac_ext
17448 cat >>conftest.$ac_ext <<_ACEOF
17449 /* end confdefs.h. */
17450 #include <sys/dg_sys_info.h>
17452 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17453 case "(($ac_try" in
17454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17455 *) ac_try_echo=$ac_try;;
17457 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17458 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17460 grep -v '^ *+' conftest.er1 >conftest.err
17462 cat conftest.err >&5
17463 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17464 (exit $ac_status); } >/dev/null && {
17465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17466 test ! -s conftest.err
17468 ac_header_preproc=yes
17470 echo "$as_me: failed program was
:" >&5
17471 sed 's/^/| /' conftest.$ac_ext >&5
17473 ac_header_preproc=no
17476 rm -f conftest.err conftest.$ac_ext
17477 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17478 echo "${ECHO_T}$ac_header_preproc" >&6; }
17480 # So? What about this header?
17481 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17483 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17484 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17485 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17486 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17487 ac_header_preproc=yes
17490 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17491 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17492 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17493 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17494 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17495 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17496 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17497 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17498 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17499 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17500 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17501 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17505 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17506 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17507 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17508 echo $ECHO_N "(cached
) $ECHO_C" >&6
17510 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17512 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17513 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17516 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17519 cat >>confdefs.h <<\_ACEOF
17524 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17525 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17526 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17527 echo $ECHO_N "(cached
) $ECHO_C" >&6
17529 ac_check_lib_save_LIBS=$LIBS
17531 cat >conftest.$ac_ext <<_ACEOF
17534 cat confdefs.h >>conftest.$ac_ext
17535 cat >>conftest.$ac_ext <<_ACEOF
17536 /* end confdefs.h. */
17538 /* Override any GCC internal prototype to avoid an error.
17539 Use char because int might match the return type of a GCC
17540 builtin and then its argument prototype would still apply. */
17544 char dg_sys_info ();
17548 return dg_sys_info ();
17553 rm -f conftest.$ac_objext conftest$ac_exeext
17554 if { (ac_try="$ac_link"
17555 case "(($ac_try" in
17556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557 *) ac_try_echo=$ac_try;;
17559 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17560 (eval "$ac_link") 2>conftest.er1
17562 grep -v '^ *+' conftest.er1 >conftest.err
17564 cat conftest.err >&5
17565 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17566 (exit $ac_status); } && {
17567 test -z "$ac_c_werror_flag" ||
17568 test ! -s conftest.err
17569 } && test -s conftest$ac_exeext &&
17570 $as_test_x conftest$ac_exeext; then
17571 ac_cv_lib_dgc_dg_sys_info=yes
17573 echo "$as_me: failed program was
:" >&5
17574 sed 's/^/| /' conftest.$ac_ext >&5
17576 ac_cv_lib_dgc_dg_sys_info=no
17579 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17580 conftest$ac_exeext conftest.$ac_ext
17581 LIBS=$ac_check_lib_save_LIBS
17583 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17584 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17585 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17586 cat >>confdefs.h <<_ACEOF
17587 #define HAVE_LIBDGC 1
17598 if test "${ac_cv_header_locale_h+set}" = set; then
17599 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17600 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17601 if test "${ac_cv_header_locale_h+set}" = set; then
17602 echo $ECHO_N "(cached
) $ECHO_C" >&6
17604 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17605 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17607 # Is the header compilable?
17608 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17609 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17610 cat >conftest.$ac_ext <<_ACEOF
17613 cat confdefs.h >>conftest.$ac_ext
17614 cat >>conftest.$ac_ext <<_ACEOF
17615 /* end confdefs.h. */
17616 $ac_includes_default
17617 #include <locale.h>
17619 rm -f conftest.$ac_objext
17620 if { (ac_try="$ac_compile"
17621 case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17625 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17626 (eval "$ac_compile") 2>conftest.er1
17628 grep -v '^ *+' conftest.er1 >conftest.err
17630 cat conftest.err >&5
17631 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17632 (exit $ac_status); } && {
17633 test -z "$ac_c_werror_flag" ||
17634 test ! -s conftest.err
17635 } && test -s conftest.$ac_objext; then
17636 ac_header_compiler=yes
17638 echo "$as_me: failed program was
:" >&5
17639 sed 's/^/| /' conftest.$ac_ext >&5
17641 ac_header_compiler=no
17644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17645 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17646 echo "${ECHO_T}$ac_header_compiler" >&6; }
17648 # Is the header present?
17649 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17650 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17651 cat >conftest.$ac_ext <<_ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17657 #include <locale.h>
17659 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17660 case "(($ac_try" in
17661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17662 *) ac_try_echo=$ac_try;;
17664 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17665 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17667 grep -v '^ *+' conftest.er1 >conftest.err
17669 cat conftest.err >&5
17670 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17671 (exit $ac_status); } >/dev/null && {
17672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17673 test ! -s conftest.err
17675 ac_header_preproc=yes
17677 echo "$as_me: failed program was
:" >&5
17678 sed 's/^/| /' conftest.$ac_ext >&5
17680 ac_header_preproc=no
17683 rm -f conftest.err conftest.$ac_ext
17684 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17685 echo "${ECHO_T}$ac_header_preproc" >&6; }
17687 # So? What about this header?
17688 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17690 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17691 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17692 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17693 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17694 ac_header_preproc=yes
17697 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17698 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17699 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17700 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17701 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17702 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17703 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17704 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17705 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17706 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17707 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17708 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17712 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17713 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17714 if test "${ac_cv_header_locale_h+set}" = set; then
17715 echo $ECHO_N "(cached
) $ECHO_C" >&6
17717 ac_cv_header_locale_h=$ac_header_preproc
17719 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17720 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17726 for ac_func in setlocale
17728 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17729 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17730 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17731 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17732 echo $ECHO_N "(cached
) $ECHO_C" >&6
17734 cat >conftest.$ac_ext <<_ACEOF
17737 cat confdefs.h >>conftest.$ac_ext
17738 cat >>conftest.$ac_ext <<_ACEOF
17739 /* end confdefs.h. */
17740 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17741 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17742 #define $ac_func innocuous_$ac_func
17744 /* System header to define __stub macros and hopefully few prototypes,
17745 which can conflict with char $ac_func (); below.
17746 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17747 <limits.h> exists even on freestanding compilers. */
17750 # include <limits.h>
17752 # include <assert.h>
17757 /* Override any GCC internal prototype to avoid an error.
17758 Use char because int might match the return type of a GCC
17759 builtin and then its argument prototype would still apply. */
17764 /* The GNU C library defines this for functions which it implements
17765 to always fail with ENOSYS. Some functions are actually named
17766 something starting with __ and the normal name is an alias. */
17767 #if defined __stub_$ac_func || defined __stub___$ac_func
17774 return $ac_func ();
17779 rm -f conftest.$ac_objext conftest$ac_exeext
17780 if { (ac_try="$ac_link"
17781 case "(($ac_try" in
17782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17783 *) ac_try_echo=$ac_try;;
17785 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17786 (eval "$ac_link") 2>conftest.er1
17788 grep -v '^ *+' conftest.er1 >conftest.err
17790 cat conftest.err >&5
17791 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17792 (exit $ac_status); } && {
17793 test -z "$ac_c_werror_flag" ||
17794 test ! -s conftest.err
17795 } && test -s conftest$ac_exeext &&
17796 $as_test_x conftest$ac_exeext; then
17797 eval "$as_ac_var=yes"
17799 echo "$as_me: failed program was
:" >&5
17800 sed 's/^/| /' conftest.$ac_ext >&5
17802 eval "$as_ac_var=no
"
17805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17806 conftest$ac_exeext conftest.$ac_ext
17808 ac_res=`eval echo '${'$as_ac_var'}'`
17809 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17810 echo "${ECHO_T}$ac_res" >&6; }
17811 if test `eval echo '${'$as_ac_var'}'` = yes; then
17812 cat >>confdefs.h <<_ACEOF
17813 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17820 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17821 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17822 # Irix 4.0.5F has the header but not the library.
17823 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17826 cat >>confdefs.h <<\_ACEOF
17832 if test $ac_have_func = no; then
17833 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17834 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17835 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17836 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17837 echo $ECHO_N "(cached
) $ECHO_C" >&6
17839 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17840 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17842 # Is the header compilable?
17843 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17844 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17845 cat >conftest.$ac_ext <<_ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h. */
17851 $ac_includes_default
17852 #include <inq_stats/cpustats.h>
17854 rm -f conftest.$ac_objext
17855 if { (ac_try="$ac_compile"
17856 case "(($ac_try" in
17857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17858 *) ac_try_echo=$ac_try;;
17860 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17861 (eval "$ac_compile") 2>conftest.er1
17863 grep -v '^ *+' conftest.er1 >conftest.err
17865 cat conftest.err >&5
17866 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17867 (exit $ac_status); } && {
17868 test -z "$ac_c_werror_flag" ||
17869 test ! -s conftest.err
17870 } && test -s conftest.$ac_objext; then
17871 ac_header_compiler=yes
17873 echo "$as_me: failed program was
:" >&5
17874 sed 's/^/| /' conftest.$ac_ext >&5
17876 ac_header_compiler=no
17879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17880 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17881 echo "${ECHO_T}$ac_header_compiler" >&6; }
17883 # Is the header present?
17884 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17885 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17886 cat >conftest.$ac_ext <<_ACEOF
17889 cat confdefs.h >>conftest.$ac_ext
17890 cat >>conftest.$ac_ext <<_ACEOF
17891 /* end confdefs.h. */
17892 #include <inq_stats/cpustats.h>
17894 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17895 case "(($ac_try" in
17896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17897 *) ac_try_echo=$ac_try;;
17899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17900 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17902 grep -v '^ *+' conftest.er1 >conftest.err
17904 cat conftest.err >&5
17905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17906 (exit $ac_status); } >/dev/null && {
17907 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17908 test ! -s conftest.err
17910 ac_header_preproc=yes
17912 echo "$as_me: failed program was
:" >&5
17913 sed 's/^/| /' conftest.$ac_ext >&5
17915 ac_header_preproc=no
17918 rm -f conftest.err conftest.$ac_ext
17919 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17920 echo "${ECHO_T}$ac_header_preproc" >&6; }
17922 # So? What about this header?
17923 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17925 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17926 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17927 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17928 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17929 ac_header_preproc=yes
17932 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17933 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17934 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17935 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17936 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17937 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17938 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17939 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17940 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17941 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17942 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17943 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17947 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17948 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17949 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17950 echo $ECHO_N "(cached
) $ECHO_C" >&6
17952 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17954 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17955 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17958 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17961 cat >>confdefs.h <<\_ACEOF
17966 cat >>confdefs.h <<\_ACEOF
17975 if test $ac_have_func = no; then
17976 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17977 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17978 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17979 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17980 echo $ECHO_N "(cached
) $ECHO_C" >&6
17982 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17983 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17985 # Is the header compilable?
17986 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17987 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17988 cat >conftest.$ac_ext <<_ACEOF
17991 cat confdefs.h >>conftest.$ac_ext
17992 cat >>conftest.$ac_ext <<_ACEOF
17993 /* end confdefs.h. */
17994 $ac_includes_default
17995 #include <sys/cpustats.h>
17997 rm -f conftest.$ac_objext
17998 if { (ac_try="$ac_compile"
17999 case "(($ac_try" in
18000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18001 *) ac_try_echo=$ac_try;;
18003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18004 (eval "$ac_compile") 2>conftest.er1
18006 grep -v '^ *+' conftest.er1 >conftest.err
18008 cat conftest.err >&5
18009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18010 (exit $ac_status); } && {
18011 test -z "$ac_c_werror_flag" ||
18012 test ! -s conftest.err
18013 } && test -s conftest.$ac_objext; then
18014 ac_header_compiler=yes
18016 echo "$as_me: failed program was
:" >&5
18017 sed 's/^/| /' conftest.$ac_ext >&5
18019 ac_header_compiler=no
18022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18023 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18024 echo "${ECHO_T}$ac_header_compiler" >&6; }
18026 # Is the header present?
18027 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18028 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18029 cat >conftest.$ac_ext <<_ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h. */
18035 #include <sys/cpustats.h>
18037 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18038 case "(($ac_try" in
18039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18040 *) ac_try_echo=$ac_try;;
18042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18043 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18045 grep -v '^ *+' conftest.er1 >conftest.err
18047 cat conftest.err >&5
18048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18049 (exit $ac_status); } >/dev/null && {
18050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18051 test ! -s conftest.err
18053 ac_header_preproc=yes
18055 echo "$as_me: failed program was
:" >&5
18056 sed 's/^/| /' conftest.$ac_ext >&5
18058 ac_header_preproc=no
18061 rm -f conftest.err conftest.$ac_ext
18062 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18063 echo "${ECHO_T}$ac_header_preproc" >&6; }
18065 # So? What about this header?
18066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18068 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18069 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18070 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18071 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18072 ac_header_preproc=yes
18075 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18076 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18077 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18078 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18079 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18080 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18081 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18082 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18083 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18084 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18085 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18086 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18090 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18091 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18092 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18093 echo $ECHO_N "(cached
) $ECHO_C" >&6
18095 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18097 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18098 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18101 if test $ac_cv_header_sys_cpustats_h = yes; then
18102 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18111 if test $ac_have_func = no; then
18113 for ac_header in mach/mach.h
18115 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18116 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18117 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18118 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18119 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18120 echo $ECHO_N "(cached
) $ECHO_C" >&6
18122 ac_res=`eval echo '${'$as_ac_Header'}'`
18123 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18124 echo "${ECHO_T}$ac_res" >&6; }
18126 # Is the header compilable?
18127 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18128 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18129 cat >conftest.$ac_ext <<_ACEOF
18132 cat confdefs.h >>conftest.$ac_ext
18133 cat >>conftest.$ac_ext <<_ACEOF
18134 /* end confdefs.h. */
18135 $ac_includes_default
18136 #include <$ac_header>
18138 rm -f conftest.$ac_objext
18139 if { (ac_try="$ac_compile"
18140 case "(($ac_try" in
18141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18142 *) ac_try_echo=$ac_try;;
18144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18145 (eval "$ac_compile") 2>conftest.er1
18147 grep -v '^ *+' conftest.er1 >conftest.err
18149 cat conftest.err >&5
18150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18151 (exit $ac_status); } && {
18152 test -z "$ac_c_werror_flag" ||
18153 test ! -s conftest.err
18154 } && test -s conftest.$ac_objext; then
18155 ac_header_compiler=yes
18157 echo "$as_me: failed program was
:" >&5
18158 sed 's/^/| /' conftest.$ac_ext >&5
18160 ac_header_compiler=no
18163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18164 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18165 echo "${ECHO_T}$ac_header_compiler" >&6; }
18167 # Is the header present?
18168 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18169 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18170 cat >conftest.$ac_ext <<_ACEOF
18173 cat confdefs.h >>conftest.$ac_ext
18174 cat >>conftest.$ac_ext <<_ACEOF
18175 /* end confdefs.h. */
18176 #include <$ac_header>
18178 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18179 case "(($ac_try" in
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181 *) ac_try_echo=$ac_try;;
18183 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18184 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18186 grep -v '^ *+' conftest.er1 >conftest.err
18188 cat conftest.err >&5
18189 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18190 (exit $ac_status); } >/dev/null && {
18191 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18192 test ! -s conftest.err
18194 ac_header_preproc=yes
18196 echo "$as_me: failed program was
:" >&5
18197 sed 's/^/| /' conftest.$ac_ext >&5
18199 ac_header_preproc=no
18202 rm -f conftest.err conftest.$ac_ext
18203 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18204 echo "${ECHO_T}$ac_header_preproc" >&6; }
18206 # So? What about this header?
18207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18209 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18210 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18211 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18212 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18213 ac_header_preproc=yes
18216 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18217 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18218 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18219 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18220 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18221 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18222 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18223 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18224 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18225 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18226 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18227 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18231 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18232 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18233 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18234 echo $ECHO_N "(cached
) $ECHO_C" >&6
18236 eval "$as_ac_Header=\
$ac_header_preproc"
18238 ac_res=`eval echo '${'$as_ac_Header'}'`
18239 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18240 echo "${ECHO_T}$ac_res" >&6; }
18243 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18244 cat >>confdefs.h <<_ACEOF
18245 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18255 for ac_header in nlist.h
18257 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18258 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18259 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18260 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18261 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18262 echo $ECHO_N "(cached
) $ECHO_C" >&6
18264 ac_res=`eval echo '${'$as_ac_Header'}'`
18265 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18266 echo "${ECHO_T}$ac_res" >&6; }
18268 # Is the header compilable?
18269 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18270 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18271 cat >conftest.$ac_ext <<_ACEOF
18274 cat confdefs.h >>conftest.$ac_ext
18275 cat >>conftest.$ac_ext <<_ACEOF
18276 /* end confdefs.h. */
18277 $ac_includes_default
18278 #include <$ac_header>
18280 rm -f conftest.$ac_objext
18281 if { (ac_try="$ac_compile"
18282 case "(($ac_try" in
18283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18284 *) ac_try_echo=$ac_try;;
18286 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18287 (eval "$ac_compile") 2>conftest.er1
18289 grep -v '^ *+' conftest.er1 >conftest.err
18291 cat conftest.err >&5
18292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18293 (exit $ac_status); } && {
18294 test -z "$ac_c_werror_flag" ||
18295 test ! -s conftest.err
18296 } && test -s conftest.$ac_objext; then
18297 ac_header_compiler=yes
18299 echo "$as_me: failed program was
:" >&5
18300 sed 's/^/| /' conftest.$ac_ext >&5
18302 ac_header_compiler=no
18305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18306 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18307 echo "${ECHO_T}$ac_header_compiler" >&6; }
18309 # Is the header present?
18310 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18311 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18312 cat >conftest.$ac_ext <<_ACEOF
18315 cat confdefs.h >>conftest.$ac_ext
18316 cat >>conftest.$ac_ext <<_ACEOF
18317 /* end confdefs.h. */
18318 #include <$ac_header>
18320 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18321 case "(($ac_try" in
18322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18323 *) ac_try_echo=$ac_try;;
18325 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18326 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18328 grep -v '^ *+' conftest.er1 >conftest.err
18330 cat conftest.err >&5
18331 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18332 (exit $ac_status); } >/dev/null && {
18333 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18334 test ! -s conftest.err
18336 ac_header_preproc=yes
18338 echo "$as_me: failed program was
:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18341 ac_header_preproc=no
18344 rm -f conftest.err conftest.$ac_ext
18345 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18346 echo "${ECHO_T}$ac_header_preproc" >&6; }
18348 # So? What about this header?
18349 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18351 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18352 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18353 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18354 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18355 ac_header_preproc=yes
18358 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18359 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18360 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18361 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18362 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18363 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18364 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18365 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18366 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18367 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18368 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18369 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18373 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18374 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18375 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18376 echo $ECHO_N "(cached
) $ECHO_C" >&6
18378 eval "$as_ac_Header=\
$ac_header_preproc"
18380 ac_res=`eval echo '${'$as_ac_Header'}'`
18381 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18382 echo "${ECHO_T}$ac_res" >&6; }
18385 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18386 cat >>confdefs.h <<_ACEOF
18387 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18389 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18390 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18391 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18392 echo $ECHO_N "(cached
) $ECHO_C" >&6
18394 cat >conftest.$ac_ext <<_ACEOF
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h. */
18405 static struct nlist ac_aggr;
18406 if (ac_aggr.n_un.n_name)
18412 rm -f conftest.$ac_objext
18413 if { (ac_try="$ac_compile"
18414 case "(($ac_try" in
18415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18416 *) ac_try_echo=$ac_try;;
18418 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18419 (eval "$ac_compile") 2>conftest.er1
18421 grep -v '^ *+' conftest.er1 >conftest.err
18423 cat conftest.err >&5
18424 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18425 (exit $ac_status); } && {
18426 test -z "$ac_c_werror_flag" ||
18427 test ! -s conftest.err
18428 } && test -s conftest.$ac_objext; then
18429 ac_cv_member_struct_nlist_n_un_n_name=yes
18431 echo "$as_me: failed program was
:" >&5
18432 sed 's/^/| /' conftest.$ac_ext >&5
18434 cat >conftest.$ac_ext <<_ACEOF
18437 cat confdefs.h >>conftest.$ac_ext
18438 cat >>conftest.$ac_ext <<_ACEOF
18439 /* end confdefs.h. */
18445 static struct nlist ac_aggr;
18446 if (sizeof ac_aggr.n_un.n_name)
18452 rm -f conftest.$ac_objext
18453 if { (ac_try="$ac_compile"
18454 case "(($ac_try" in
18455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456 *) ac_try_echo=$ac_try;;
18458 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18459 (eval "$ac_compile") 2>conftest.er1
18461 grep -v '^ *+' conftest.er1 >conftest.err
18463 cat conftest.err >&5
18464 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18465 (exit $ac_status); } && {
18466 test -z "$ac_c_werror_flag" ||
18467 test ! -s conftest.err
18468 } && test -s conftest.$ac_objext; then
18469 ac_cv_member_struct_nlist_n_un_n_name=yes
18471 echo "$as_me: failed program was
:" >&5
18472 sed 's/^/| /' conftest.$ac_ext >&5
18474 ac_cv_member_struct_nlist_n_un_n_name=no
18477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18482 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18483 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18484 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18486 cat >>confdefs.h <<_ACEOF
18487 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18491 cat >>confdefs.h <<\_ACEOF
18492 #define NLIST_NAME_UNION 1
18506 # Some definitions of getloadavg require that the program be installed setgid.
18507 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18508 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18509 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18510 echo $ECHO_N "(cached
) $ECHO_C" >&6
18512 cat >conftest.$ac_ext <<_ACEOF
18515 cat confdefs.h >>conftest.$ac_ext
18516 cat >>conftest.$ac_ext <<_ACEOF
18517 /* end confdefs.h. */
18518 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18519 #ifdef LDAV_PRIVILEGED
18520 Yowza Am I SETGID yet
18523 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18524 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18525 ac_cv_func_getloadavg_setgid=yes
18527 ac_cv_func_getloadavg_setgid=no
18532 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18533 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18534 if test $ac_cv_func_getloadavg_setgid = yes; then
18537 cat >>confdefs.h <<\_ACEOF
18538 #define GETLOADAVG_PRIVILEGED 1
18545 if test $ac_cv_func_getloadavg_setgid = yes; then
18546 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18547 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18548 if test "${ac_cv_group_kmem+set}" = set; then
18549 echo $ECHO_N "(cached
) $ECHO_C" >&6
18551 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18552 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18553 # If we got an error (system does not support symlinks), try without -L.
18554 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18555 ac_cv_group_kmem=`echo $ac_ls_output \
18556 | sed -ne 's/[ ][ ]*/ /g;
18557 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18561 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18562 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18563 KMEM_GROUP=$ac_cv_group_kmem
18565 if test "x
$ac_save_LIBS" = x; then
18566 GETLOADAVG_LIBS=$LIBS
18568 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18574 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18575 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18576 if test "${ac_cv_sys_largefile_source+set}" = set; then
18577 echo $ECHO_N "(cached
) $ECHO_C" >&6
18580 cat >conftest.$ac_ext <<_ACEOF
18583 cat confdefs.h >>conftest.$ac_ext
18584 cat >>conftest.$ac_ext <<_ACEOF
18585 /* end confdefs.h. */
18590 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18595 rm -f conftest.$ac_objext conftest$ac_exeext
18596 if { (ac_try="$ac_link"
18597 case "(($ac_try" in
18598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18599 *) ac_try_echo=$ac_try;;
18601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18602 (eval "$ac_link") 2>conftest.er1
18604 grep -v '^ *+' conftest.er1 >conftest.err
18606 cat conftest.err >&5
18607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18608 (exit $ac_status); } && {
18609 test -z "$ac_c_werror_flag" ||
18610 test ! -s conftest.err
18611 } && test -s conftest$ac_exeext &&
18612 $as_test_x conftest$ac_exeext; then
18613 ac_cv_sys_largefile_source=no; break
18615 echo "$as_me: failed program was
:" >&5
18616 sed 's/^/| /' conftest.$ac_ext >&5
18621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18622 conftest$ac_exeext conftest.$ac_ext
18623 cat >conftest.$ac_ext <<_ACEOF
18626 cat confdefs.h >>conftest.$ac_ext
18627 cat >>conftest.$ac_ext <<_ACEOF
18628 /* end confdefs.h. */
18629 #define _LARGEFILE_SOURCE 1
18634 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18639 rm -f conftest.$ac_objext conftest$ac_exeext
18640 if { (ac_try="$ac_link"
18641 case "(($ac_try" in
18642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18643 *) ac_try_echo=$ac_try;;
18645 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18646 (eval "$ac_link") 2>conftest.er1
18648 grep -v '^ *+' conftest.er1 >conftest.err
18650 cat conftest.err >&5
18651 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18652 (exit $ac_status); } && {
18653 test -z "$ac_c_werror_flag" ||
18654 test ! -s conftest.err
18655 } && test -s conftest$ac_exeext &&
18656 $as_test_x conftest$ac_exeext; then
18657 ac_cv_sys_largefile_source=1; break
18659 echo "$as_me: failed program was
:" >&5
18660 sed 's/^/| /' conftest.$ac_ext >&5
18665 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18666 conftest$ac_exeext conftest.$ac_ext
18667 ac_cv_sys_largefile_source=unknown
18671 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18672 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18673 case $ac_cv_sys_largefile_source in #(
18676 cat >>confdefs.h <<_ACEOF
18677 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18683 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18684 # in glibc 2.1.3, but that breaks too many other things.
18685 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18686 if test $ac_cv_sys_largefile_source != unknown; then
18688 cat >>confdefs.h <<\_ACEOF
18689 #define HAVE_FSEEKO 1
18695 # Configure getopt.
18696 # getopt.m4 serial 10
18698 # The getopt module assume you want GNU getopt, with getopt_long etc,
18699 # rather than vanilla POSIX getopt. This means your your code should
18700 # always include <getopt.h> for the getopt prototypes.
18712 # Prerequisites of lib/getopt*.
18719 for ac_header in getopt.h
18721 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18722 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18723 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18724 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18725 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18726 echo $ECHO_N "(cached
) $ECHO_C" >&6
18728 ac_res=`eval echo '${'$as_ac_Header'}'`
18729 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18730 echo "${ECHO_T}$ac_res" >&6; }
18732 # Is the header compilable?
18733 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18734 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18735 cat >conftest.$ac_ext <<_ACEOF
18738 cat confdefs.h >>conftest.$ac_ext
18739 cat >>conftest.$ac_ext <<_ACEOF
18740 /* end confdefs.h. */
18741 $ac_includes_default
18742 #include <$ac_header>
18744 rm -f conftest.$ac_objext
18745 if { (ac_try="$ac_compile"
18746 case "(($ac_try" in
18747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18748 *) ac_try_echo=$ac_try;;
18750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18751 (eval "$ac_compile") 2>conftest.er1
18753 grep -v '^ *+' conftest.er1 >conftest.err
18755 cat conftest.err >&5
18756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18757 (exit $ac_status); } && {
18758 test -z "$ac_c_werror_flag" ||
18759 test ! -s conftest.err
18760 } && test -s conftest.$ac_objext; then
18761 ac_header_compiler=yes
18763 echo "$as_me: failed program was
:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18766 ac_header_compiler=no
18769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18770 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18771 echo "${ECHO_T}$ac_header_compiler" >&6; }
18773 # Is the header present?
18774 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18775 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18776 cat >conftest.$ac_ext <<_ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h. */
18782 #include <$ac_header>
18784 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18785 case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18792 grep -v '^ *+' conftest.er1 >conftest.err
18794 cat conftest.err >&5
18795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18796 (exit $ac_status); } >/dev/null && {
18797 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18798 test ! -s conftest.err
18800 ac_header_preproc=yes
18802 echo "$as_me: failed program was
:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18805 ac_header_preproc=no
18808 rm -f conftest.err conftest.$ac_ext
18809 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18810 echo "${ECHO_T}$ac_header_preproc" >&6; }
18812 # So? What about this header?
18813 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18815 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18816 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18817 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18818 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18819 ac_header_preproc=yes
18822 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18823 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18824 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18825 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18826 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18827 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18828 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18829 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18830 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18831 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18832 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18833 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18837 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18838 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18839 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18840 echo $ECHO_N "(cached
) $ECHO_C" >&6
18842 eval "$as_ac_Header=\
$ac_header_preproc"
18844 ac_res=`eval echo '${'$as_ac_Header'}'`
18845 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18846 echo "${ECHO_T}$ac_res" >&6; }
18849 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18850 cat >>confdefs.h <<_ACEOF
18851 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18860 if test -z "$GETOPT_H"; then
18862 for ac_func in getopt_long_only
18864 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18865 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18866 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18867 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18868 echo $ECHO_N "(cached
) $ECHO_C" >&6
18870 cat >conftest.$ac_ext <<_ACEOF
18873 cat confdefs.h >>conftest.$ac_ext
18874 cat >>conftest.$ac_ext <<_ACEOF
18875 /* end confdefs.h. */
18876 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18877 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18878 #define $ac_func innocuous_$ac_func
18880 /* System header to define __stub macros and hopefully few prototypes,
18881 which can conflict with char $ac_func (); below.
18882 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18883 <limits.h> exists even on freestanding compilers. */
18886 # include <limits.h>
18888 # include <assert.h>
18893 /* Override any GCC internal prototype to avoid an error.
18894 Use char because int might match the return type of a GCC
18895 builtin and then its argument prototype would still apply. */
18900 /* The GNU C library defines this for functions which it implements
18901 to always fail with ENOSYS. Some functions are actually named
18902 something starting with __ and the normal name is an alias. */
18903 #if defined __stub_$ac_func || defined __stub___$ac_func
18910 return $ac_func ();
18915 rm -f conftest.$ac_objext conftest$ac_exeext
18916 if { (ac_try="$ac_link"
18917 case "(($ac_try" in
18918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18919 *) ac_try_echo=$ac_try;;
18921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18922 (eval "$ac_link") 2>conftest.er1
18924 grep -v '^ *+' conftest.er1 >conftest.err
18926 cat conftest.err >&5
18927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18928 (exit $ac_status); } && {
18929 test -z "$ac_c_werror_flag" ||
18930 test ! -s conftest.err
18931 } && test -s conftest$ac_exeext &&
18932 $as_test_x conftest$ac_exeext; then
18933 eval "$as_ac_var=yes"
18935 echo "$as_me: failed program was
:" >&5
18936 sed 's/^/| /' conftest.$ac_ext >&5
18938 eval "$as_ac_var=no
"
18941 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18942 conftest$ac_exeext conftest.$ac_ext
18944 ac_res=`eval echo '${'$as_ac_var'}'`
18945 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18946 echo "${ECHO_T}$ac_res" >&6; }
18947 if test `eval echo '${'$as_ac_var'}'` = yes; then
18948 cat >>confdefs.h <<_ACEOF
18949 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18959 if test -z "$GETOPT_H"; then
18960 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18961 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18962 if test "${ac_cv_have_decl_optreset+set}" = set; then
18963 echo $ECHO_N "(cached
) $ECHO_C" >&6
18965 cat >conftest.$ac_ext <<_ACEOF
18968 cat confdefs.h >>conftest.$ac_ext
18969 cat >>conftest.$ac_ext <<_ACEOF
18970 /* end confdefs.h. */
18971 #include <getopt.h>
18984 rm -f conftest.$ac_objext
18985 if { (ac_try="$ac_compile"
18986 case "(($ac_try" in
18987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18988 *) ac_try_echo=$ac_try;;
18990 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18991 (eval "$ac_compile") 2>conftest.er1
18993 grep -v '^ *+' conftest.er1 >conftest.err
18995 cat conftest.err >&5
18996 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18997 (exit $ac_status); } && {
18998 test -z "$ac_c_werror_flag" ||
18999 test ! -s conftest.err
19000 } && test -s conftest.$ac_objext; then
19001 ac_cv_have_decl_optreset=yes
19003 echo "$as_me: failed program was
:" >&5
19004 sed 's/^/| /' conftest.$ac_ext >&5
19006 ac_cv_have_decl_optreset=no
19009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19011 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
19012 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19013 if test $ac_cv_have_decl_optreset = yes; then
19019 if test -z "$GETOPT_H"; then
19020 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19021 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19022 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19023 echo $ECHO_N "(cached
) $ECHO_C" >&6
19025 if test "$cross_compiling" = yes; then
19026 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19027 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19028 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19029 echo $ECHO_N "(cached
) $ECHO_C" >&6
19031 cat >conftest.$ac_ext <<_ACEOF
19034 cat confdefs.h >>conftest.$ac_ext
19035 cat >>conftest.$ac_ext <<_ACEOF
19036 /* end confdefs.h. */
19037 #include <getopt.h>
19042 #ifndef getopt_clip
19043 (void) getopt_clip;
19050 rm -f conftest.$ac_objext
19051 if { (ac_try="$ac_compile"
19052 case "(($ac_try" in
19053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19054 *) ac_try_echo=$ac_try;;
19056 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19057 (eval "$ac_compile") 2>conftest.er1
19059 grep -v '^ *+' conftest.er1 >conftest.err
19061 cat conftest.err >&5
19062 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19063 (exit $ac_status); } && {
19064 test -z "$ac_c_werror_flag" ||
19065 test ! -s conftest.err
19066 } && test -s conftest.$ac_objext; then
19067 ac_cv_have_decl_getopt_clip=yes
19069 echo "$as_me: failed program was
:" >&5
19070 sed 's/^/| /' conftest.$ac_ext >&5
19072 ac_cv_have_decl_getopt_clip=no
19075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19077 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19078 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19079 if test $ac_cv_have_decl_getopt_clip = yes; then
19080 gl_cv_func_gnu_getopt=no
19082 gl_cv_func_gnu_getopt=yes
19086 cat >conftest.$ac_ext <<_ACEOF
19089 cat confdefs.h >>conftest.$ac_ext
19090 cat >>conftest.$ac_ext <<_ACEOF
19091 /* end confdefs.h. */
19092 #include <getopt.h>
19098 myargv[0] = "conftest
";
19101 return getopt (2, myargv, "+a
") != '?';
19107 rm -f conftest$ac_exeext
19108 if { (ac_try="$ac_link"
19109 case "(($ac_try" in
19110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19111 *) ac_try_echo=$ac_try;;
19113 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19114 (eval "$ac_link") 2>&5
19116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19117 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19118 { (case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19122 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_try") 2>&5
19125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19126 (exit $ac_status); }; }; then
19127 gl_cv_func_gnu_getopt=yes
19129 echo "$as_me: program exited with status
$ac_status" >&5
19130 echo "$as_me: failed program was
:" >&5
19131 sed 's/^/| /' conftest.$ac_ext >&5
19133 ( exit $ac_status )
19134 gl_cv_func_gnu_getopt=no
19136 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19141 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19142 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19143 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19150 if test -n "$GETOPT_H"; then
19155 cat >>confdefs.h <<\_ACEOF
19156 #define __GETOPT_PREFIX rpl_
19162 GETOPTOBJS='getopt.o getopt1.o'
19169 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19170 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19171 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19172 echo $ECHO_N "(cached
) $ECHO_C" >&6
19174 # Use it with a single arg.
19175 cat >conftest.$ac_ext <<_ACEOF
19178 cat confdefs.h >>conftest.$ac_ext
19179 cat >>conftest.$ac_ext <<_ACEOF
19180 /* end confdefs.h. */
19181 $ac_includes_default
19190 rm -f conftest.$ac_objext
19191 if { (ac_try="$ac_compile"
19192 case "(($ac_try" in
19193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19194 *) ac_try_echo=$ac_try;;
19196 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19197 (eval "$ac_compile") 2>conftest.er1
19199 grep -v '^ *+' conftest.er1 >conftest.err
19201 cat conftest.err >&5
19202 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19203 (exit $ac_status); } && {
19204 test -z "$ac_c_werror_flag" ||
19205 test ! -s conftest.err
19206 } && test -s conftest.$ac_objext; then
19207 ac_cv_func_getpgrp_void=no
19209 echo "$as_me: failed program was
:" >&5
19210 sed 's/^/| /' conftest.$ac_ext >&5
19212 ac_cv_func_getpgrp_void=yes
19215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19218 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19219 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19220 if test $ac_cv_func_getpgrp_void = yes; then
19222 cat >>confdefs.h <<\_ACEOF
19223 #define GETPGRP_VOID 1
19230 for ac_func in strftime
19232 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19233 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19234 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19235 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19236 echo $ECHO_N "(cached
) $ECHO_C" >&6
19238 cat >conftest.$ac_ext <<_ACEOF
19241 cat confdefs.h >>conftest.$ac_ext
19242 cat >>conftest.$ac_ext <<_ACEOF
19243 /* end confdefs.h. */
19244 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19245 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19246 #define $ac_func innocuous_$ac_func
19248 /* System header to define __stub macros and hopefully few prototypes,
19249 which can conflict with char $ac_func (); below.
19250 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19251 <limits.h> exists even on freestanding compilers. */
19254 # include <limits.h>
19256 # include <assert.h>
19261 /* Override any GCC internal prototype to avoid an error.
19262 Use char because int might match the return type of a GCC
19263 builtin and then its argument prototype would still apply. */
19268 /* The GNU C library defines this for functions which it implements
19269 to always fail with ENOSYS. Some functions are actually named
19270 something starting with __ and the normal name is an alias. */
19271 #if defined __stub_$ac_func || defined __stub___$ac_func
19278 return $ac_func ();
19283 rm -f conftest.$ac_objext conftest$ac_exeext
19284 if { (ac_try="$ac_link"
19285 case "(($ac_try" in
19286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19287 *) ac_try_echo=$ac_try;;
19289 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19290 (eval "$ac_link") 2>conftest.er1
19292 grep -v '^ *+' conftest.er1 >conftest.err
19294 cat conftest.err >&5
19295 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19296 (exit $ac_status); } && {
19297 test -z "$ac_c_werror_flag" ||
19298 test ! -s conftest.err
19299 } && test -s conftest$ac_exeext &&
19300 $as_test_x conftest$ac_exeext; then
19301 eval "$as_ac_var=yes"
19303 echo "$as_me: failed program was
:" >&5
19304 sed 's/^/| /' conftest.$ac_ext >&5
19306 eval "$as_ac_var=no
"
19309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19310 conftest$ac_exeext conftest.$ac_ext
19312 ac_res=`eval echo '${'$as_ac_var'}'`
19313 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19314 echo "${ECHO_T}$ac_res" >&6; }
19315 if test `eval echo '${'$as_ac_var'}'` = yes; then
19316 cat >>confdefs.h <<_ACEOF
19317 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19321 # strftime is in -lintl on SCO UNIX.
19322 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19323 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19324 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19325 echo $ECHO_N "(cached
) $ECHO_C" >&6
19327 ac_check_lib_save_LIBS=$LIBS
19328 LIBS="-lintl $LIBS"
19329 cat >conftest.$ac_ext <<_ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h. */
19336 /* Override any GCC internal prototype to avoid an error.
19337 Use char because int might match the return type of a GCC
19338 builtin and then its argument prototype would still apply. */
19346 return strftime ();
19351 rm -f conftest.$ac_objext conftest$ac_exeext
19352 if { (ac_try="$ac_link"
19353 case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_link") 2>conftest.er1
19360 grep -v '^ *+' conftest.er1 >conftest.err
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19364 (exit $ac_status); } && {
19365 test -z "$ac_c_werror_flag" ||
19366 test ! -s conftest.err
19367 } && test -s conftest$ac_exeext &&
19368 $as_test_x conftest$ac_exeext; then
19369 ac_cv_lib_intl_strftime=yes
19371 echo "$as_me: failed program was
:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19374 ac_cv_lib_intl_strftime=no
19377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19378 conftest$ac_exeext conftest.$ac_ext
19379 LIBS=$ac_check_lib_save_LIBS
19381 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19382 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19383 if test $ac_cv_lib_intl_strftime = yes; then
19384 cat >>confdefs.h <<\_ACEOF
19385 #define HAVE_STRFTIME 1
19388 LIBS="-lintl $LIBS"
19397 for ac_func in grantpt
19399 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19400 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19401 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19402 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19403 echo $ECHO_N "(cached
) $ECHO_C" >&6
19405 cat >conftest.$ac_ext <<_ACEOF
19408 cat confdefs.h >>conftest.$ac_ext
19409 cat >>conftest.$ac_ext <<_ACEOF
19410 /* end confdefs.h. */
19411 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19412 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19413 #define $ac_func innocuous_$ac_func
19415 /* System header to define __stub macros and hopefully few prototypes,
19416 which can conflict with char $ac_func (); below.
19417 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19418 <limits.h> exists even on freestanding compilers. */
19421 # include <limits.h>
19423 # include <assert.h>
19428 /* Override any GCC internal prototype to avoid an error.
19429 Use char because int might match the return type of a GCC
19430 builtin and then its argument prototype would still apply. */
19435 /* The GNU C library defines this for functions which it implements
19436 to always fail with ENOSYS. Some functions are actually named
19437 something starting with __ and the normal name is an alias. */
19438 #if defined __stub_$ac_func || defined __stub___$ac_func
19445 return $ac_func ();
19450 rm -f conftest.$ac_objext conftest$ac_exeext
19451 if { (ac_try="$ac_link"
19452 case "(($ac_try" in
19453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19454 *) ac_try_echo=$ac_try;;
19456 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19457 (eval "$ac_link") 2>conftest.er1
19459 grep -v '^ *+' conftest.er1 >conftest.err
19461 cat conftest.err >&5
19462 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19463 (exit $ac_status); } && {
19464 test -z "$ac_c_werror_flag" ||
19465 test ! -s conftest.err
19466 } && test -s conftest$ac_exeext &&
19467 $as_test_x conftest$ac_exeext; then
19468 eval "$as_ac_var=yes"
19470 echo "$as_me: failed program was
:" >&5
19471 sed 's/^/| /' conftest.$ac_ext >&5
19473 eval "$as_ac_var=no
"
19476 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19477 conftest$ac_exeext conftest.$ac_ext
19479 ac_res=`eval echo '${'$as_ac_var'}'`
19480 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19481 echo "${ECHO_T}$ac_res" >&6; }
19482 if test `eval echo '${'$as_ac_var'}'` = yes; then
19483 cat >>confdefs.h <<_ACEOF
19484 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19491 # PTY-related GNU extensions.
19493 for ac_func in getpt
19495 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19496 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19497 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19498 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19499 echo $ECHO_N "(cached
) $ECHO_C" >&6
19501 cat >conftest.$ac_ext <<_ACEOF
19504 cat confdefs.h >>conftest.$ac_ext
19505 cat >>conftest.$ac_ext <<_ACEOF
19506 /* end confdefs.h. */
19507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19509 #define $ac_func innocuous_$ac_func
19511 /* System header to define __stub macros and hopefully few prototypes,
19512 which can conflict with char $ac_func (); below.
19513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19514 <limits.h> exists even on freestanding compilers. */
19517 # include <limits.h>
19519 # include <assert.h>
19524 /* Override any GCC internal prototype to avoid an error.
19525 Use char because int might match the return type of a GCC
19526 builtin and then its argument prototype would still apply. */
19531 /* The GNU C library defines this for functions which it implements
19532 to always fail with ENOSYS. Some functions are actually named
19533 something starting with __ and the normal name is an alias. */
19534 #if defined __stub_$ac_func || defined __stub___$ac_func
19541 return $ac_func ();
19546 rm -f conftest.$ac_objext conftest$ac_exeext
19547 if { (ac_try="$ac_link"
19548 case "(($ac_try" in
19549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19550 *) ac_try_echo=$ac_try;;
19552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19553 (eval "$ac_link") 2>conftest.er1
19555 grep -v '^ *+' conftest.er1 >conftest.err
19557 cat conftest.err >&5
19558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19559 (exit $ac_status); } && {
19560 test -z "$ac_c_werror_flag" ||
19561 test ! -s conftest.err
19562 } && test -s conftest$ac_exeext &&
19563 $as_test_x conftest$ac_exeext; then
19564 eval "$as_ac_var=yes"
19566 echo "$as_me: failed program was
:" >&5
19567 sed 's/^/| /' conftest.$ac_ext >&5
19569 eval "$as_ac_var=no
"
19572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19573 conftest$ac_exeext conftest.$ac_ext
19575 ac_res=`eval echo '${'$as_ac_var'}'`
19576 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19577 echo "${ECHO_T}$ac_res" >&6; }
19578 if test `eval echo '${'$as_ac_var'}'` = yes; then
19579 cat >>confdefs.h <<_ACEOF
19580 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19587 # Check this now, so that we will NOT find the above functions in ncurses.
19588 # That is because we have not set up to link ncurses in lib-src.
19589 # It's better to believe a function is not available
19590 # than to expect to find it in ncurses.
19592 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19593 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19594 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19595 echo $ECHO_N "(cached
) $ECHO_C" >&6
19597 ac_check_lib_save_LIBS=$LIBS
19598 LIBS="-lncurses $LIBS"
19599 cat >conftest.$ac_ext <<_ACEOF
19602 cat confdefs.h >>conftest.$ac_ext
19603 cat >>conftest.$ac_ext <<_ACEOF
19604 /* end confdefs.h. */
19606 /* Override any GCC internal prototype to avoid an error.
19607 Use char because int might match the return type of a GCC
19608 builtin and then its argument prototype would still apply. */
19621 rm -f conftest.$ac_objext conftest$ac_exeext
19622 if { (ac_try="$ac_link"
19623 case "(($ac_try" in
19624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19625 *) ac_try_echo=$ac_try;;
19627 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19628 (eval "$ac_link") 2>conftest.er1
19630 grep -v '^ *+' conftest.er1 >conftest.err
19632 cat conftest.err >&5
19633 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19634 (exit $ac_status); } && {
19635 test -z "$ac_c_werror_flag" ||
19636 test ! -s conftest.err
19637 } && test -s conftest$ac_exeext &&
19638 $as_test_x conftest$ac_exeext; then
19639 ac_cv_lib_ncurses_tparm=yes
19641 echo "$as_me: failed program was
:" >&5
19642 sed 's/^/| /' conftest.$ac_ext >&5
19644 ac_cv_lib_ncurses_tparm=no
19647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19648 conftest$ac_exeext conftest.$ac_ext
19649 LIBS=$ac_check_lib_save_LIBS
19651 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19652 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19653 if test $ac_cv_lib_ncurses_tparm = yes; then
19654 cat >>confdefs.h <<_ACEOF
19655 #define HAVE_LIBNCURSES 1
19658 LIBS="-lncurses $LIBS"
19663 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19666 cat >conftest.$ac_ext <<_ACEOF
19669 cat confdefs.h >>conftest.$ac_ext
19670 cat >>conftest.$ac_ext <<_ACEOF
19671 /* end confdefs.h. */
19672 #include <netinet/in.h>
19673 #include <arpa/nameser.h>
19674 #include <resolv.h>
19683 rm -f conftest.$ac_objext conftest$ac_exeext
19684 if { (ac_try="$ac_link"
19685 case "(($ac_try" in
19686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19687 *) ac_try_echo=$ac_try;;
19689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19690 (eval "$ac_link") 2>conftest.er1
19692 grep -v '^ *+' conftest.er1 >conftest.err
19694 cat conftest.err >&5
19695 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19696 (exit $ac_status); } && {
19697 test -z "$ac_c_werror_flag" ||
19698 test ! -s conftest.err
19699 } && test -s conftest$ac_exeext &&
19700 $as_test_x conftest$ac_exeext; then
19703 echo "$as_me: failed program was
:" >&5
19704 sed 's/^/| /' conftest.$ac_ext >&5
19709 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19710 conftest$ac_exeext conftest.$ac_ext
19711 if test "$have_res_init" = no; then
19713 LIBS="$LIBS -lresolv"
19714 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19715 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19716 cat >conftest.$ac_ext <<_ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19722 #include <netinet/in.h>
19723 #include <arpa/nameser.h>
19724 #include <resolv.h>
19733 rm -f conftest.$ac_objext conftest$ac_exeext
19734 if { (ac_try="$ac_link"
19735 case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19739 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19740 (eval "$ac_link") 2>conftest.er1
19742 grep -v '^ *+' conftest.er1 >conftest.err
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19746 (exit $ac_status); } && {
19747 test -z "$ac_c_werror_flag" ||
19748 test ! -s conftest.err
19749 } && test -s conftest$ac_exeext &&
19750 $as_test_x conftest$ac_exeext; then
19753 echo "$as_me: failed program was
:" >&5
19754 sed 's/^/| /' conftest.$ac_ext >&5
19759 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19760 conftest$ac_exeext conftest.$ac_ext
19761 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19762 echo "${ECHO_T}$have_res_init" >&6; }
19763 if test "$have_res_init" = yes ; then
19769 if test "$have_res_init" = yes; then
19771 cat >>confdefs.h <<\_ACEOF
19772 #define HAVE_RES_INIT 1
19777 # Do we need the Hesiod library to provide the support routines?
19778 if test "$with_hesiod" = yes ; then
19779 # Don't set $LIBS here -- see comments above.
19780 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19781 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19782 if test "${ac_cv_func_res_send+set}" = set; then
19783 echo $ECHO_N "(cached
) $ECHO_C" >&6
19785 cat >conftest.$ac_ext <<_ACEOF
19788 cat confdefs.h >>conftest.$ac_ext
19789 cat >>conftest.$ac_ext <<_ACEOF
19790 /* end confdefs.h. */
19791 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19792 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19793 #define res_send innocuous_res_send
19795 /* System header to define __stub macros and hopefully few prototypes,
19796 which can conflict with char res_send (); below.
19797 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19798 <limits.h> exists even on freestanding compilers. */
19801 # include <limits.h>
19803 # include <assert.h>
19808 /* Override any GCC internal prototype to avoid an error.
19809 Use char because int might match the return type of a GCC
19810 builtin and then its argument prototype would still apply. */
19815 /* The GNU C library defines this for functions which it implements
19816 to always fail with ENOSYS. Some functions are actually named
19817 something starting with __ and the normal name is an alias. */
19818 #if defined __stub_res_send || defined __stub___res_send
19825 return res_send ();
19830 rm -f conftest.$ac_objext conftest$ac_exeext
19831 if { (ac_try="$ac_link"
19832 case "(($ac_try" in
19833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19834 *) ac_try_echo=$ac_try;;
19836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19837 (eval "$ac_link") 2>conftest.er1
19839 grep -v '^ *+' conftest.er1 >conftest.err
19841 cat conftest.err >&5
19842 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19843 (exit $ac_status); } && {
19844 test -z "$ac_c_werror_flag" ||
19845 test ! -s conftest.err
19846 } && test -s conftest$ac_exeext &&
19847 $as_test_x conftest$ac_exeext; then
19848 ac_cv_func_res_send=yes
19850 echo "$as_me: failed program was
:" >&5
19851 sed 's/^/| /' conftest.$ac_ext >&5
19853 ac_cv_func_res_send=no
19856 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19857 conftest$ac_exeext conftest.$ac_ext
19859 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19860 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19861 if test $ac_cv_func_res_send = yes; then
19864 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19865 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19866 if test "${ac_cv_func___res_send+set}" = set; then
19867 echo $ECHO_N "(cached
) $ECHO_C" >&6
19869 cat >conftest.$ac_ext <<_ACEOF
19872 cat confdefs.h >>conftest.$ac_ext
19873 cat >>conftest.$ac_ext <<_ACEOF
19874 /* end confdefs.h. */
19875 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19877 #define __res_send innocuous___res_send
19879 /* System header to define __stub macros and hopefully few prototypes,
19880 which can conflict with char __res_send (); below.
19881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19882 <limits.h> exists even on freestanding compilers. */
19885 # include <limits.h>
19887 # include <assert.h>
19892 /* Override any GCC internal prototype to avoid an error.
19893 Use char because int might match the return type of a GCC
19894 builtin and then its argument prototype would still apply. */
19898 char __res_send ();
19899 /* The GNU C library defines this for functions which it implements
19900 to always fail with ENOSYS. Some functions are actually named
19901 something starting with __ and the normal name is an alias. */
19902 #if defined __stub___res_send || defined __stub_____res_send
19909 return __res_send ();
19914 rm -f conftest.$ac_objext conftest$ac_exeext
19915 if { (ac_try="$ac_link"
19916 case "(($ac_try" in
19917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19918 *) ac_try_echo=$ac_try;;
19920 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19921 (eval "$ac_link") 2>conftest.er1
19923 grep -v '^ *+' conftest.er1 >conftest.err
19925 cat conftest.err >&5
19926 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19927 (exit $ac_status); } && {
19928 test -z "$ac_c_werror_flag" ||
19929 test ! -s conftest.err
19930 } && test -s conftest$ac_exeext &&
19931 $as_test_x conftest$ac_exeext; then
19932 ac_cv_func___res_send=yes
19934 echo "$as_me: failed program was
:" >&5
19935 sed 's/^/| /' conftest.$ac_ext >&5
19937 ac_cv_func___res_send=no
19940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19941 conftest$ac_exeext conftest.$ac_ext
19943 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19944 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19945 if test $ac_cv_func___res_send = yes; then
19948 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19949 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19950 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19951 echo $ECHO_N "(cached
) $ECHO_C" >&6
19953 ac_check_lib_save_LIBS=$LIBS
19954 LIBS="-lresolv $LIBS"
19955 cat >conftest.$ac_ext <<_ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19962 /* Override any GCC internal prototype to avoid an error.
19963 Use char because int might match the return type of a GCC
19964 builtin and then its argument prototype would still apply. */
19972 return res_send ();
19977 rm -f conftest.$ac_objext conftest$ac_exeext
19978 if { (ac_try="$ac_link"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19983 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_link") 2>conftest.er1
19986 grep -v '^ *+' conftest.er1 >conftest.err
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19990 (exit $ac_status); } && {
19991 test -z "$ac_c_werror_flag" ||
19992 test ! -s conftest.err
19993 } && test -s conftest$ac_exeext &&
19994 $as_test_x conftest$ac_exeext; then
19995 ac_cv_lib_resolv_res_send=yes
19997 echo "$as_me: failed program was
:" >&5
19998 sed 's/^/| /' conftest.$ac_ext >&5
20000 ac_cv_lib_resolv_res_send=no
20003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20004 conftest$ac_exeext conftest.$ac_ext
20005 LIBS=$ac_check_lib_save_LIBS
20007 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
20008 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20009 if test $ac_cv_lib_resolv_res_send = yes; then
20012 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
20013 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20014 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20015 echo $ECHO_N "(cached
) $ECHO_C" >&6
20017 ac_check_lib_save_LIBS=$LIBS
20018 LIBS="-lresolv $LIBS"
20019 cat >conftest.$ac_ext <<_ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h. */
20026 /* Override any GCC internal prototype to avoid an error.
20027 Use char because int might match the return type of a GCC
20028 builtin and then its argument prototype would still apply. */
20032 char __res_send ();
20036 return __res_send ();
20041 rm -f conftest.$ac_objext conftest$ac_exeext
20042 if { (ac_try="$ac_link"
20043 case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20047 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_link") 2>conftest.er1
20050 grep -v '^ *+' conftest.er1 >conftest.err
20052 cat conftest.err >&5
20053 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20054 (exit $ac_status); } && {
20055 test -z "$ac_c_werror_flag" ||
20056 test ! -s conftest.err
20057 } && test -s conftest$ac_exeext &&
20058 $as_test_x conftest$ac_exeext; then
20059 ac_cv_lib_resolv___res_send=yes
20061 echo "$as_me: failed program was
:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20064 ac_cv_lib_resolv___res_send=no
20067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20068 conftest$ac_exeext conftest.$ac_ext
20069 LIBS=$ac_check_lib_save_LIBS
20071 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20072 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20073 if test $ac_cv_lib_resolv___res_send = yes; then
20083 if test "$resolv" = yes ; then
20088 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20089 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20090 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20091 echo $ECHO_N "(cached
) $ECHO_C" >&6
20093 cat >conftest.$ac_ext <<_ACEOF
20096 cat confdefs.h >>conftest.$ac_ext
20097 cat >>conftest.$ac_ext <<_ACEOF
20098 /* end confdefs.h. */
20099 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20100 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20101 #define hes_getmailhost innocuous_hes_getmailhost
20103 /* System header to define __stub macros and hopefully few prototypes,
20104 which can conflict with char hes_getmailhost (); below.
20105 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20106 <limits.h> exists even on freestanding compilers. */
20109 # include <limits.h>
20111 # include <assert.h>
20114 #undef hes_getmailhost
20116 /* Override any GCC internal prototype to avoid an error.
20117 Use char because int might match the return type of a GCC
20118 builtin and then its argument prototype would still apply. */
20122 char hes_getmailhost ();
20123 /* The GNU C library defines this for functions which it implements
20124 to always fail with ENOSYS. Some functions are actually named
20125 something starting with __ and the normal name is an alias. */
20126 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20133 return hes_getmailhost ();
20138 rm -f conftest.$ac_objext conftest$ac_exeext
20139 if { (ac_try="$ac_link"
20140 case "(($ac_try" in
20141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20142 *) ac_try_echo=$ac_try;;
20144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20145 (eval "$ac_link") 2>conftest.er1
20147 grep -v '^ *+' conftest.er1 >conftest.err
20149 cat conftest.err >&5
20150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20151 (exit $ac_status); } && {
20152 test -z "$ac_c_werror_flag" ||
20153 test ! -s conftest.err
20154 } && test -s conftest$ac_exeext &&
20155 $as_test_x conftest$ac_exeext; then
20156 ac_cv_func_hes_getmailhost=yes
20158 echo "$as_me: failed program was
:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20161 ac_cv_func_hes_getmailhost=no
20164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20165 conftest$ac_exeext conftest.$ac_ext
20167 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20168 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20169 if test $ac_cv_func_hes_getmailhost = yes; then
20172 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20173 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20174 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20175 echo $ECHO_N "(cached
) $ECHO_C" >&6
20177 ac_check_lib_save_LIBS=$LIBS
20178 LIBS="-lhesiod $RESOLVLIB $LIBS"
20179 cat >conftest.$ac_ext <<_ACEOF
20182 cat confdefs.h >>conftest.$ac_ext
20183 cat >>conftest.$ac_ext <<_ACEOF
20184 /* end confdefs.h. */
20186 /* Override any GCC internal prototype to avoid an error.
20187 Use char because int might match the return type of a GCC
20188 builtin and then its argument prototype would still apply. */
20192 char hes_getmailhost ();
20196 return hes_getmailhost ();
20201 rm -f conftest.$ac_objext conftest$ac_exeext
20202 if { (ac_try="$ac_link"
20203 case "(($ac_try" in
20204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20205 *) ac_try_echo=$ac_try;;
20207 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20208 (eval "$ac_link") 2>conftest.er1
20210 grep -v '^ *+' conftest.er1 >conftest.err
20212 cat conftest.err >&5
20213 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20214 (exit $ac_status); } && {
20215 test -z "$ac_c_werror_flag" ||
20216 test ! -s conftest.err
20217 } && test -s conftest$ac_exeext &&
20218 $as_test_x conftest$ac_exeext; then
20219 ac_cv_lib_hesiod_hes_getmailhost=yes
20221 echo "$as_me: failed program was
:" >&5
20222 sed 's/^/| /' conftest.$ac_ext >&5
20224 ac_cv_lib_hesiod_hes_getmailhost=no
20227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20228 conftest$ac_exeext conftest.$ac_ext
20229 LIBS=$ac_check_lib_save_LIBS
20231 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20232 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20233 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20235 cat >>confdefs.h <<\_ACEOF
20236 #define HAVE_LIBHESIOD 1
20247 # Do we need libresolv (due to res_init or Hesiod)?
20248 if test "$resolv" = yes ; then
20250 cat >>confdefs.h <<\_ACEOF
20251 #define HAVE_LIBRESOLV 1
20256 # These tell us which Kerberos-related libraries to use.
20257 if test "${with_kerberos+set}" = set; then
20259 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20260 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20261 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20262 echo $ECHO_N "(cached
) $ECHO_C" >&6
20264 ac_check_lib_save_LIBS=$LIBS
20265 LIBS="-lcom_err $LIBS"
20266 cat >conftest.$ac_ext <<_ACEOF
20269 cat confdefs.h >>conftest.$ac_ext
20270 cat >>conftest.$ac_ext <<_ACEOF
20271 /* end confdefs.h. */
20273 /* Override any GCC internal prototype to avoid an error.
20274 Use char because int might match the return type of a GCC
20275 builtin and then its argument prototype would still apply. */
20288 rm -f conftest.$ac_objext conftest$ac_exeext
20289 if { (ac_try="$ac_link"
20290 case "(($ac_try" in
20291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292 *) ac_try_echo=$ac_try;;
20294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20295 (eval "$ac_link") 2>conftest.er1
20297 grep -v '^ *+' conftest.er1 >conftest.err
20299 cat conftest.err >&5
20300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20301 (exit $ac_status); } && {
20302 test -z "$ac_c_werror_flag" ||
20303 test ! -s conftest.err
20304 } && test -s conftest$ac_exeext &&
20305 $as_test_x conftest$ac_exeext; then
20306 ac_cv_lib_com_err_com_err=yes
20308 echo "$as_me: failed program was
:" >&5
20309 sed 's/^/| /' conftest.$ac_ext >&5
20311 ac_cv_lib_com_err_com_err=no
20314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20315 conftest$ac_exeext conftest.$ac_ext
20316 LIBS=$ac_check_lib_save_LIBS
20318 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20319 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20320 if test $ac_cv_lib_com_err_com_err = yes; then
20321 cat >>confdefs.h <<_ACEOF
20322 #define HAVE_LIBCOM_ERR 1
20325 LIBS="-lcom_err $LIBS"
20330 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20331 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20332 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20333 echo $ECHO_N "(cached
) $ECHO_C" >&6
20335 ac_check_lib_save_LIBS=$LIBS
20336 LIBS="-lk5crypto $LIBS"
20337 cat >conftest.$ac_ext <<_ACEOF
20340 cat confdefs.h >>conftest.$ac_ext
20341 cat >>conftest.$ac_ext <<_ACEOF
20342 /* end confdefs.h. */
20344 /* Override any GCC internal prototype to avoid an error.
20345 Use char because int might match the return type of a GCC
20346 builtin and then its argument prototype would still apply. */
20350 char mit_des_cbc_encrypt ();
20354 return mit_des_cbc_encrypt ();
20359 rm -f conftest.$ac_objext conftest$ac_exeext
20360 if { (ac_try="$ac_link"
20361 case "(($ac_try" in
20362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20363 *) ac_try_echo=$ac_try;;
20365 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20366 (eval "$ac_link") 2>conftest.er1
20368 grep -v '^ *+' conftest.er1 >conftest.err
20370 cat conftest.err >&5
20371 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20372 (exit $ac_status); } && {
20373 test -z "$ac_c_werror_flag" ||
20374 test ! -s conftest.err
20375 } && test -s conftest$ac_exeext &&
20376 $as_test_x conftest$ac_exeext; then
20377 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20379 echo "$as_me: failed program was
:" >&5
20380 sed 's/^/| /' conftest.$ac_ext >&5
20382 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20386 conftest$ac_exeext conftest.$ac_ext
20387 LIBS=$ac_check_lib_save_LIBS
20389 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20390 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20391 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20392 cat >>confdefs.h <<_ACEOF
20393 #define HAVE_LIBK5CRYPTO 1
20396 LIBS="-lk5crypto $LIBS"
20401 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20402 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20403 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20404 echo $ECHO_N "(cached
) $ECHO_C" >&6
20406 ac_check_lib_save_LIBS=$LIBS
20407 LIBS="-lcrypto $LIBS"
20408 cat >conftest.$ac_ext <<_ACEOF
20411 cat confdefs.h >>conftest.$ac_ext
20412 cat >>conftest.$ac_ext <<_ACEOF
20413 /* end confdefs.h. */
20415 /* Override any GCC internal prototype to avoid an error.
20416 Use char because int might match the return type of a GCC
20417 builtin and then its argument prototype would still apply. */
20421 char mit_des_cbc_encrypt ();
20425 return mit_des_cbc_encrypt ();
20430 rm -f conftest.$ac_objext conftest$ac_exeext
20431 if { (ac_try="$ac_link"
20432 case "(($ac_try" in
20433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20434 *) ac_try_echo=$ac_try;;
20436 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20437 (eval "$ac_link") 2>conftest.er1
20439 grep -v '^ *+' conftest.er1 >conftest.err
20441 cat conftest.err >&5
20442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20443 (exit $ac_status); } && {
20444 test -z "$ac_c_werror_flag" ||
20445 test ! -s conftest.err
20446 } && test -s conftest$ac_exeext &&
20447 $as_test_x conftest$ac_exeext; then
20448 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20450 echo "$as_me: failed program was
:" >&5
20451 sed 's/^/| /' conftest.$ac_ext >&5
20453 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20457 conftest$ac_exeext conftest.$ac_ext
20458 LIBS=$ac_check_lib_save_LIBS
20460 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20461 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20462 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20463 cat >>confdefs.h <<_ACEOF
20464 #define HAVE_LIBCRYPTO 1
20467 LIBS="-lcrypto $LIBS"
20472 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20473 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20474 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20475 echo $ECHO_N "(cached
) $ECHO_C" >&6
20477 ac_check_lib_save_LIBS=$LIBS
20478 LIBS="-lkrb5 $LIBS"
20479 cat >conftest.$ac_ext <<_ACEOF
20482 cat confdefs.h >>conftest.$ac_ext
20483 cat >>conftest.$ac_ext <<_ACEOF
20484 /* end confdefs.h. */
20486 /* Override any GCC internal prototype to avoid an error.
20487 Use char because int might match the return type of a GCC
20488 builtin and then its argument prototype would still apply. */
20492 char krb5_init_context ();
20496 return krb5_init_context ();
20501 rm -f conftest.$ac_objext conftest$ac_exeext
20502 if { (ac_try="$ac_link"
20503 case "(($ac_try" in
20504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20505 *) ac_try_echo=$ac_try;;
20507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20508 (eval "$ac_link") 2>conftest.er1
20510 grep -v '^ *+' conftest.er1 >conftest.err
20512 cat conftest.err >&5
20513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20514 (exit $ac_status); } && {
20515 test -z "$ac_c_werror_flag" ||
20516 test ! -s conftest.err
20517 } && test -s conftest$ac_exeext &&
20518 $as_test_x conftest$ac_exeext; then
20519 ac_cv_lib_krb5_krb5_init_context=yes
20521 echo "$as_me: failed program was
:" >&5
20522 sed 's/^/| /' conftest.$ac_ext >&5
20524 ac_cv_lib_krb5_krb5_init_context=no
20527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20528 conftest$ac_exeext conftest.$ac_ext
20529 LIBS=$ac_check_lib_save_LIBS
20531 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20532 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20533 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20534 cat >>confdefs.h <<_ACEOF
20535 #define HAVE_LIBKRB5 1
20538 LIBS="-lkrb5 $LIBS"
20542 if test "${with_kerberos5+set}" != set; then
20544 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20545 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20546 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20547 echo $ECHO_N "(cached
) $ECHO_C" >&6
20549 ac_check_lib_save_LIBS=$LIBS
20550 LIBS="-ldes425 $LIBS"
20551 cat >conftest.$ac_ext <<_ACEOF
20554 cat confdefs.h >>conftest.$ac_ext
20555 cat >>conftest.$ac_ext <<_ACEOF
20556 /* end confdefs.h. */
20558 /* Override any GCC internal prototype to avoid an error.
20559 Use char because int might match the return type of a GCC
20560 builtin and then its argument prototype would still apply. */
20564 char des_cbc_encrypt ();
20568 return des_cbc_encrypt ();
20573 rm -f conftest.$ac_objext conftest$ac_exeext
20574 if { (ac_try="$ac_link"
20575 case "(($ac_try" in
20576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20577 *) ac_try_echo=$ac_try;;
20579 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20580 (eval "$ac_link") 2>conftest.er1
20582 grep -v '^ *+' conftest.er1 >conftest.err
20584 cat conftest.err >&5
20585 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20586 (exit $ac_status); } && {
20587 test -z "$ac_c_werror_flag" ||
20588 test ! -s conftest.err
20589 } && test -s conftest$ac_exeext &&
20590 $as_test_x conftest$ac_exeext; then
20591 ac_cv_lib_des425_des_cbc_encrypt=yes
20593 echo "$as_me: failed program was
:" >&5
20594 sed 's/^/| /' conftest.$ac_ext >&5
20596 ac_cv_lib_des425_des_cbc_encrypt=no
20599 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20600 conftest$ac_exeext conftest.$ac_ext
20601 LIBS=$ac_check_lib_save_LIBS
20603 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20604 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20605 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20606 cat >>confdefs.h <<_ACEOF
20607 #define HAVE_LIBDES425 1
20610 LIBS="-ldes425 $LIBS"
20614 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20615 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20616 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20617 echo $ECHO_N "(cached
) $ECHO_C" >&6
20619 ac_check_lib_save_LIBS=$LIBS
20621 cat >conftest.$ac_ext <<_ACEOF
20624 cat confdefs.h >>conftest.$ac_ext
20625 cat >>conftest.$ac_ext <<_ACEOF
20626 /* end confdefs.h. */
20628 /* Override any GCC internal prototype to avoid an error.
20629 Use char because int might match the return type of a GCC
20630 builtin and then its argument prototype would still apply. */
20634 char des_cbc_encrypt ();
20638 return des_cbc_encrypt ();
20643 rm -f conftest.$ac_objext conftest$ac_exeext
20644 if { (ac_try="$ac_link"
20645 case "(($ac_try" in
20646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20647 *) ac_try_echo=$ac_try;;
20649 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20650 (eval "$ac_link") 2>conftest.er1
20652 grep -v '^ *+' conftest.er1 >conftest.err
20654 cat conftest.err >&5
20655 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20656 (exit $ac_status); } && {
20657 test -z "$ac_c_werror_flag" ||
20658 test ! -s conftest.err
20659 } && test -s conftest$ac_exeext &&
20660 $as_test_x conftest$ac_exeext; then
20661 ac_cv_lib_des_des_cbc_encrypt=yes
20663 echo "$as_me: failed program was
:" >&5
20664 sed 's/^/| /' conftest.$ac_ext >&5
20666 ac_cv_lib_des_des_cbc_encrypt=no
20669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20670 conftest$ac_exeext conftest.$ac_ext
20671 LIBS=$ac_check_lib_save_LIBS
20673 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20674 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20675 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20676 cat >>confdefs.h <<_ACEOF
20677 #define HAVE_LIBDES 1
20687 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20688 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20689 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20690 echo $ECHO_N "(cached
) $ECHO_C" >&6
20692 ac_check_lib_save_LIBS=$LIBS
20693 LIBS="-lkrb4 $LIBS"
20694 cat >conftest.$ac_ext <<_ACEOF
20697 cat confdefs.h >>conftest.$ac_ext
20698 cat >>conftest.$ac_ext <<_ACEOF
20699 /* end confdefs.h. */
20701 /* Override any GCC internal prototype to avoid an error.
20702 Use char because int might match the return type of a GCC
20703 builtin and then its argument prototype would still apply. */
20707 char krb_get_cred ();
20711 return krb_get_cred ();
20716 rm -f conftest.$ac_objext conftest$ac_exeext
20717 if { (ac_try="$ac_link"
20718 case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20722 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_link") 2>conftest.er1
20725 grep -v '^ *+' conftest.er1 >conftest.err
20727 cat conftest.err >&5
20728 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20729 (exit $ac_status); } && {
20730 test -z "$ac_c_werror_flag" ||
20731 test ! -s conftest.err
20732 } && test -s conftest$ac_exeext &&
20733 $as_test_x conftest$ac_exeext; then
20734 ac_cv_lib_krb4_krb_get_cred=yes
20736 echo "$as_me: failed program was
:" >&5
20737 sed 's/^/| /' conftest.$ac_ext >&5
20739 ac_cv_lib_krb4_krb_get_cred=no
20742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20743 conftest$ac_exeext conftest.$ac_ext
20744 LIBS=$ac_check_lib_save_LIBS
20746 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20747 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20748 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20749 cat >>confdefs.h <<_ACEOF
20750 #define HAVE_LIBKRB4 1
20753 LIBS="-lkrb4 $LIBS"
20757 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20758 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20759 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20760 echo $ECHO_N "(cached
) $ECHO_C" >&6
20762 ac_check_lib_save_LIBS=$LIBS
20764 cat >conftest.$ac_ext <<_ACEOF
20767 cat confdefs.h >>conftest.$ac_ext
20768 cat >>conftest.$ac_ext <<_ACEOF
20769 /* end confdefs.h. */
20771 /* Override any GCC internal prototype to avoid an error.
20772 Use char because int might match the return type of a GCC
20773 builtin and then its argument prototype would still apply. */
20777 char krb_get_cred ();
20781 return krb_get_cred ();
20786 rm -f conftest.$ac_objext conftest$ac_exeext
20787 if { (ac_try="$ac_link"
20788 case "(($ac_try" in
20789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20790 *) ac_try_echo=$ac_try;;
20792 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20793 (eval "$ac_link") 2>conftest.er1
20795 grep -v '^ *+' conftest.er1 >conftest.err
20797 cat conftest.err >&5
20798 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20799 (exit $ac_status); } && {
20800 test -z "$ac_c_werror_flag" ||
20801 test ! -s conftest.err
20802 } && test -s conftest$ac_exeext &&
20803 $as_test_x conftest$ac_exeext; then
20804 ac_cv_lib_krb_krb_get_cred=yes
20806 echo "$as_me: failed program was
:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20809 ac_cv_lib_krb_krb_get_cred=no
20812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20813 conftest$ac_exeext conftest.$ac_ext
20814 LIBS=$ac_check_lib_save_LIBS
20816 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20817 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20818 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20819 cat >>confdefs.h <<_ACEOF
20820 #define HAVE_LIBKRB 1
20831 if test "${with_kerberos5+set}" = set; then
20833 for ac_header in krb5.h
20835 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20836 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20837 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20838 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20839 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20840 echo $ECHO_N "(cached
) $ECHO_C" >&6
20842 ac_res=`eval echo '${'$as_ac_Header'}'`
20843 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20844 echo "${ECHO_T}$ac_res" >&6; }
20846 # Is the header compilable?
20847 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20848 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20849 cat >conftest.$ac_ext <<_ACEOF
20852 cat confdefs.h >>conftest.$ac_ext
20853 cat >>conftest.$ac_ext <<_ACEOF
20854 /* end confdefs.h. */
20855 $ac_includes_default
20856 #include <$ac_header>
20858 rm -f conftest.$ac_objext
20859 if { (ac_try="$ac_compile"
20860 case "(($ac_try" in
20861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20862 *) ac_try_echo=$ac_try;;
20864 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20865 (eval "$ac_compile") 2>conftest.er1
20867 grep -v '^ *+' conftest.er1 >conftest.err
20869 cat conftest.err >&5
20870 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20871 (exit $ac_status); } && {
20872 test -z "$ac_c_werror_flag" ||
20873 test ! -s conftest.err
20874 } && test -s conftest.$ac_objext; then
20875 ac_header_compiler=yes
20877 echo "$as_me: failed program was
:" >&5
20878 sed 's/^/| /' conftest.$ac_ext >&5
20880 ac_header_compiler=no
20883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20884 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20885 echo "${ECHO_T}$ac_header_compiler" >&6; }
20887 # Is the header present?
20888 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20889 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20890 cat >conftest.$ac_ext <<_ACEOF
20893 cat confdefs.h >>conftest.$ac_ext
20894 cat >>conftest.$ac_ext <<_ACEOF
20895 /* end confdefs.h. */
20896 #include <$ac_header>
20898 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20899 case "(($ac_try" in
20900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20901 *) ac_try_echo=$ac_try;;
20903 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20904 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20906 grep -v '^ *+' conftest.er1 >conftest.err
20908 cat conftest.err >&5
20909 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20910 (exit $ac_status); } >/dev/null && {
20911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20912 test ! -s conftest.err
20914 ac_header_preproc=yes
20916 echo "$as_me: failed program was
:" >&5
20917 sed 's/^/| /' conftest.$ac_ext >&5
20919 ac_header_preproc=no
20922 rm -f conftest.err conftest.$ac_ext
20923 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20924 echo "${ECHO_T}$ac_header_preproc" >&6; }
20926 # So? What about this header?
20927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20929 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20930 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20931 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20932 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20933 ac_header_preproc=yes
20936 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20937 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20938 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20939 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20940 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20941 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20942 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20943 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20944 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20945 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20946 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20947 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20951 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20952 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20953 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20954 echo $ECHO_N "(cached
) $ECHO_C" >&6
20956 eval "$as_ac_Header=\
$ac_header_preproc"
20958 ac_res=`eval echo '${'$as_ac_Header'}'`
20959 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20960 echo "${ECHO_T}$ac_res" >&6; }
20963 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20964 cat >>confdefs.h <<_ACEOF
20965 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20974 for ac_header in des.h
20976 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20977 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20978 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20979 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20980 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20981 echo $ECHO_N "(cached
) $ECHO_C" >&6
20983 ac_res=`eval echo '${'$as_ac_Header'}'`
20984 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20985 echo "${ECHO_T}$ac_res" >&6; }
20987 # Is the header compilable?
20988 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20989 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20990 cat >conftest.$ac_ext <<_ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h. */
20996 $ac_includes_default
20997 #include <$ac_header>
20999 rm -f conftest.$ac_objext
21000 if { (ac_try="$ac_compile"
21001 case "(($ac_try" in
21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003 *) ac_try_echo=$ac_try;;
21005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21006 (eval "$ac_compile") 2>conftest.er1
21008 grep -v '^ *+' conftest.er1 >conftest.err
21010 cat conftest.err >&5
21011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21012 (exit $ac_status); } && {
21013 test -z "$ac_c_werror_flag" ||
21014 test ! -s conftest.err
21015 } && test -s conftest.$ac_objext; then
21016 ac_header_compiler=yes
21018 echo "$as_me: failed program was
:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21021 ac_header_compiler=no
21024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21026 echo "${ECHO_T}$ac_header_compiler" >&6; }
21028 # Is the header present?
21029 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21030 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21031 cat >conftest.$ac_ext <<_ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h. */
21037 #include <$ac_header>
21039 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21047 grep -v '^ *+' conftest.er1 >conftest.err
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21051 (exit $ac_status); } >/dev/null && {
21052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21053 test ! -s conftest.err
21055 ac_header_preproc=yes
21057 echo "$as_me: failed program was
:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21060 ac_header_preproc=no
21063 rm -f conftest.err conftest.$ac_ext
21064 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21065 echo "${ECHO_T}$ac_header_preproc" >&6; }
21067 # So? What about this header?
21068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21070 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21071 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21072 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21074 ac_header_preproc=yes
21077 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21078 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21079 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21080 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21081 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21082 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21083 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21084 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21085 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21087 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21088 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21092 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21093 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21094 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21095 echo $ECHO_N "(cached
) $ECHO_C" >&6
21097 eval "$as_ac_Header=\
$ac_header_preproc"
21099 ac_res=`eval echo '${'$as_ac_Header'}'`
21100 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21101 echo "${ECHO_T}$ac_res" >&6; }
21104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21105 cat >>confdefs.h <<_ACEOF
21106 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21111 for ac_header in kerberosIV/des.h
21113 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21114 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21115 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21116 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21117 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21118 echo $ECHO_N "(cached
) $ECHO_C" >&6
21120 ac_res=`eval echo '${'$as_ac_Header'}'`
21121 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21122 echo "${ECHO_T}$ac_res" >&6; }
21124 # Is the header compilable?
21125 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21126 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21127 cat >conftest.$ac_ext <<_ACEOF
21130 cat confdefs.h >>conftest.$ac_ext
21131 cat >>conftest.$ac_ext <<_ACEOF
21132 /* end confdefs.h. */
21133 $ac_includes_default
21134 #include <$ac_header>
21136 rm -f conftest.$ac_objext
21137 if { (ac_try="$ac_compile"
21138 case "(($ac_try" in
21139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21140 *) ac_try_echo=$ac_try;;
21142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21143 (eval "$ac_compile") 2>conftest.er1
21145 grep -v '^ *+' conftest.er1 >conftest.err
21147 cat conftest.err >&5
21148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21149 (exit $ac_status); } && {
21150 test -z "$ac_c_werror_flag" ||
21151 test ! -s conftest.err
21152 } && test -s conftest.$ac_objext; then
21153 ac_header_compiler=yes
21155 echo "$as_me: failed program was
:" >&5
21156 sed 's/^/| /' conftest.$ac_ext >&5
21158 ac_header_compiler=no
21161 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21162 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21163 echo "${ECHO_T}$ac_header_compiler" >&6; }
21165 # Is the header present?
21166 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21167 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21168 cat >conftest.$ac_ext <<_ACEOF
21171 cat confdefs.h >>conftest.$ac_ext
21172 cat >>conftest.$ac_ext <<_ACEOF
21173 /* end confdefs.h. */
21174 #include <$ac_header>
21176 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21177 case "(($ac_try" in
21178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21179 *) ac_try_echo=$ac_try;;
21181 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21182 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21184 grep -v '^ *+' conftest.er1 >conftest.err
21186 cat conftest.err >&5
21187 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21188 (exit $ac_status); } >/dev/null && {
21189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21190 test ! -s conftest.err
21192 ac_header_preproc=yes
21194 echo "$as_me: failed program was
:" >&5
21195 sed 's/^/| /' conftest.$ac_ext >&5
21197 ac_header_preproc=no
21200 rm -f conftest.err conftest.$ac_ext
21201 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21202 echo "${ECHO_T}$ac_header_preproc" >&6; }
21204 # So? What about this header?
21205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21207 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21208 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21209 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21210 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21211 ac_header_preproc=yes
21214 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21215 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21216 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21217 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21218 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21219 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21220 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21221 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21222 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21223 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21224 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21225 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21229 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21230 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21231 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21232 echo $ECHO_N "(cached
) $ECHO_C" >&6
21234 eval "$as_ac_Header=\
$ac_header_preproc"
21236 ac_res=`eval echo '${'$as_ac_Header'}'`
21237 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21238 echo "${ECHO_T}$ac_res" >&6; }
21241 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21242 cat >>confdefs.h <<_ACEOF
21243 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21248 for ac_header in kerberos/des.h
21250 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21251 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21252 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21253 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21254 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21255 echo $ECHO_N "(cached
) $ECHO_C" >&6
21257 ac_res=`eval echo '${'$as_ac_Header'}'`
21258 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21259 echo "${ECHO_T}$ac_res" >&6; }
21261 # Is the header compilable?
21262 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21263 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21264 cat >conftest.$ac_ext <<_ACEOF
21267 cat confdefs.h >>conftest.$ac_ext
21268 cat >>conftest.$ac_ext <<_ACEOF
21269 /* end confdefs.h. */
21270 $ac_includes_default
21271 #include <$ac_header>
21273 rm -f conftest.$ac_objext
21274 if { (ac_try="$ac_compile"
21275 case "(($ac_try" in
21276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21277 *) ac_try_echo=$ac_try;;
21279 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21280 (eval "$ac_compile") 2>conftest.er1
21282 grep -v '^ *+' conftest.er1 >conftest.err
21284 cat conftest.err >&5
21285 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21286 (exit $ac_status); } && {
21287 test -z "$ac_c_werror_flag" ||
21288 test ! -s conftest.err
21289 } && test -s conftest.$ac_objext; then
21290 ac_header_compiler=yes
21292 echo "$as_me: failed program was
:" >&5
21293 sed 's/^/| /' conftest.$ac_ext >&5
21295 ac_header_compiler=no
21298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21299 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21300 echo "${ECHO_T}$ac_header_compiler" >&6; }
21302 # Is the header present?
21303 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21304 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21305 cat >conftest.$ac_ext <<_ACEOF
21308 cat confdefs.h >>conftest.$ac_ext
21309 cat >>conftest.$ac_ext <<_ACEOF
21310 /* end confdefs.h. */
21311 #include <$ac_header>
21313 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21314 case "(($ac_try" in
21315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21316 *) ac_try_echo=$ac_try;;
21318 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21319 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21321 grep -v '^ *+' conftest.er1 >conftest.err
21323 cat conftest.err >&5
21324 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21325 (exit $ac_status); } >/dev/null && {
21326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21327 test ! -s conftest.err
21329 ac_header_preproc=yes
21331 echo "$as_me: failed program was
:" >&5
21332 sed 's/^/| /' conftest.$ac_ext >&5
21334 ac_header_preproc=no
21337 rm -f conftest.err conftest.$ac_ext
21338 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21339 echo "${ECHO_T}$ac_header_preproc" >&6; }
21341 # So? What about this header?
21342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21344 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21345 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21346 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21348 ac_header_preproc=yes
21351 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21352 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21353 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21354 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21355 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21356 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21357 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21358 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21359 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21361 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21362 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21366 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21367 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21368 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21369 echo $ECHO_N "(cached
) $ECHO_C" >&6
21371 eval "$as_ac_Header=\
$ac_header_preproc"
21373 ac_res=`eval echo '${'$as_ac_Header'}'`
21374 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21375 echo "${ECHO_T}$ac_res" >&6; }
21378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21379 cat >>confdefs.h <<_ACEOF
21380 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21396 for ac_header in krb.h
21398 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21399 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21400 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21401 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21402 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21403 echo $ECHO_N "(cached
) $ECHO_C" >&6
21405 ac_res=`eval echo '${'$as_ac_Header'}'`
21406 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21407 echo "${ECHO_T}$ac_res" >&6; }
21409 # Is the header compilable?
21410 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21411 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21412 cat >conftest.$ac_ext <<_ACEOF
21415 cat confdefs.h >>conftest.$ac_ext
21416 cat >>conftest.$ac_ext <<_ACEOF
21417 /* end confdefs.h. */
21418 $ac_includes_default
21419 #include <$ac_header>
21421 rm -f conftest.$ac_objext
21422 if { (ac_try="$ac_compile"
21423 case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21427 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21428 (eval "$ac_compile") 2>conftest.er1
21430 grep -v '^ *+' conftest.er1 >conftest.err
21432 cat conftest.err >&5
21433 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21434 (exit $ac_status); } && {
21435 test -z "$ac_c_werror_flag" ||
21436 test ! -s conftest.err
21437 } && test -s conftest.$ac_objext; then
21438 ac_header_compiler=yes
21440 echo "$as_me: failed program was
:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21443 ac_header_compiler=no
21446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21447 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21448 echo "${ECHO_T}$ac_header_compiler" >&6; }
21450 # Is the header present?
21451 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21452 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21453 cat >conftest.$ac_ext <<_ACEOF
21456 cat confdefs.h >>conftest.$ac_ext
21457 cat >>conftest.$ac_ext <<_ACEOF
21458 /* end confdefs.h. */
21459 #include <$ac_header>
21461 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21462 case "(($ac_try" in
21463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21464 *) ac_try_echo=$ac_try;;
21466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21467 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21469 grep -v '^ *+' conftest.er1 >conftest.err
21471 cat conftest.err >&5
21472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21473 (exit $ac_status); } >/dev/null && {
21474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21475 test ! -s conftest.err
21477 ac_header_preproc=yes
21479 echo "$as_me: failed program was
:" >&5
21480 sed 's/^/| /' conftest.$ac_ext >&5
21482 ac_header_preproc=no
21485 rm -f conftest.err conftest.$ac_ext
21486 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21487 echo "${ECHO_T}$ac_header_preproc" >&6; }
21489 # So? What about this header?
21490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21492 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21493 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21494 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21495 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21496 ac_header_preproc=yes
21499 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21500 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21501 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21502 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21503 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21504 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21505 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21506 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21507 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21508 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21509 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21510 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21514 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21515 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21516 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21517 echo $ECHO_N "(cached
) $ECHO_C" >&6
21519 eval "$as_ac_Header=\
$ac_header_preproc"
21521 ac_res=`eval echo '${'$as_ac_Header'}'`
21522 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21523 echo "${ECHO_T}$ac_res" >&6; }
21526 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21527 cat >>confdefs.h <<_ACEOF
21528 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21533 for ac_header in kerberosIV/krb.h
21535 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21536 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21537 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21538 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21539 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21540 echo $ECHO_N "(cached
) $ECHO_C" >&6
21542 ac_res=`eval echo '${'$as_ac_Header'}'`
21543 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21544 echo "${ECHO_T}$ac_res" >&6; }
21546 # Is the header compilable?
21547 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21548 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21549 cat >conftest.$ac_ext <<_ACEOF
21552 cat confdefs.h >>conftest.$ac_ext
21553 cat >>conftest.$ac_ext <<_ACEOF
21554 /* end confdefs.h. */
21555 $ac_includes_default
21556 #include <$ac_header>
21558 rm -f conftest.$ac_objext
21559 if { (ac_try="$ac_compile"
21560 case "(($ac_try" in
21561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21562 *) ac_try_echo=$ac_try;;
21564 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21565 (eval "$ac_compile") 2>conftest.er1
21567 grep -v '^ *+' conftest.er1 >conftest.err
21569 cat conftest.err >&5
21570 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21571 (exit $ac_status); } && {
21572 test -z "$ac_c_werror_flag" ||
21573 test ! -s conftest.err
21574 } && test -s conftest.$ac_objext; then
21575 ac_header_compiler=yes
21577 echo "$as_me: failed program was
:" >&5
21578 sed 's/^/| /' conftest.$ac_ext >&5
21580 ac_header_compiler=no
21583 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21584 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21585 echo "${ECHO_T}$ac_header_compiler" >&6; }
21587 # Is the header present?
21588 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21589 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21590 cat >conftest.$ac_ext <<_ACEOF
21593 cat confdefs.h >>conftest.$ac_ext
21594 cat >>conftest.$ac_ext <<_ACEOF
21595 /* end confdefs.h. */
21596 #include <$ac_header>
21598 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21599 case "(($ac_try" in
21600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21601 *) ac_try_echo=$ac_try;;
21603 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21604 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21606 grep -v '^ *+' conftest.er1 >conftest.err
21608 cat conftest.err >&5
21609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21610 (exit $ac_status); } >/dev/null && {
21611 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21612 test ! -s conftest.err
21614 ac_header_preproc=yes
21616 echo "$as_me: failed program was
:" >&5
21617 sed 's/^/| /' conftest.$ac_ext >&5
21619 ac_header_preproc=no
21622 rm -f conftest.err conftest.$ac_ext
21623 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21624 echo "${ECHO_T}$ac_header_preproc" >&6; }
21626 # So? What about this header?
21627 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21629 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21630 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21631 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21632 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21633 ac_header_preproc=yes
21636 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21637 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21638 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21639 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21640 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21641 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21642 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21643 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21644 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21645 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21646 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21647 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21651 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21652 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21653 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21654 echo $ECHO_N "(cached
) $ECHO_C" >&6
21656 eval "$as_ac_Header=\
$ac_header_preproc"
21658 ac_res=`eval echo '${'$as_ac_Header'}'`
21659 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21660 echo "${ECHO_T}$ac_res" >&6; }
21663 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21664 cat >>confdefs.h <<_ACEOF
21665 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21670 for ac_header in kerberos/krb.h
21672 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21673 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21674 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21675 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21676 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21677 echo $ECHO_N "(cached
) $ECHO_C" >&6
21679 ac_res=`eval echo '${'$as_ac_Header'}'`
21680 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21681 echo "${ECHO_T}$ac_res" >&6; }
21683 # Is the header compilable?
21684 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21685 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21686 cat >conftest.$ac_ext <<_ACEOF
21689 cat confdefs.h >>conftest.$ac_ext
21690 cat >>conftest.$ac_ext <<_ACEOF
21691 /* end confdefs.h. */
21692 $ac_includes_default
21693 #include <$ac_header>
21695 rm -f conftest.$ac_objext
21696 if { (ac_try="$ac_compile"
21697 case "(($ac_try" in
21698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21699 *) ac_try_echo=$ac_try;;
21701 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21702 (eval "$ac_compile") 2>conftest.er1
21704 grep -v '^ *+' conftest.er1 >conftest.err
21706 cat conftest.err >&5
21707 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21708 (exit $ac_status); } && {
21709 test -z "$ac_c_werror_flag" ||
21710 test ! -s conftest.err
21711 } && test -s conftest.$ac_objext; then
21712 ac_header_compiler=yes
21714 echo "$as_me: failed program was
:" >&5
21715 sed 's/^/| /' conftest.$ac_ext >&5
21717 ac_header_compiler=no
21720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21721 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21722 echo "${ECHO_T}$ac_header_compiler" >&6; }
21724 # Is the header present?
21725 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21726 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21727 cat >conftest.$ac_ext <<_ACEOF
21730 cat confdefs.h >>conftest.$ac_ext
21731 cat >>conftest.$ac_ext <<_ACEOF
21732 /* end confdefs.h. */
21733 #include <$ac_header>
21735 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21736 case "(($ac_try" in
21737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21738 *) ac_try_echo=$ac_try;;
21740 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21741 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21743 grep -v '^ *+' conftest.er1 >conftest.err
21745 cat conftest.err >&5
21746 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21747 (exit $ac_status); } >/dev/null && {
21748 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21749 test ! -s conftest.err
21751 ac_header_preproc=yes
21753 echo "$as_me: failed program was
:" >&5
21754 sed 's/^/| /' conftest.$ac_ext >&5
21756 ac_header_preproc=no
21759 rm -f conftest.err conftest.$ac_ext
21760 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21761 echo "${ECHO_T}$ac_header_preproc" >&6; }
21763 # So? What about this header?
21764 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21766 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21767 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21768 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21769 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21770 ac_header_preproc=yes
21773 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21774 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21775 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21776 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21777 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21778 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21779 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21780 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21781 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21782 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21783 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21784 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21788 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21789 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21790 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21791 echo $ECHO_N "(cached
) $ECHO_C" >&6
21793 eval "$as_ac_Header=\
$ac_header_preproc"
21795 ac_res=`eval echo '${'$as_ac_Header'}'`
21796 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21797 echo "${ECHO_T}$ac_res" >&6; }
21800 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21801 cat >>confdefs.h <<_ACEOF
21802 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21819 for ac_header in com_err.h
21821 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21822 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21823 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21824 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21825 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21826 echo $ECHO_N "(cached
) $ECHO_C" >&6
21828 ac_res=`eval echo '${'$as_ac_Header'}'`
21829 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21830 echo "${ECHO_T}$ac_res" >&6; }
21832 # Is the header compilable?
21833 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21834 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21835 cat >conftest.$ac_ext <<_ACEOF
21838 cat confdefs.h >>conftest.$ac_ext
21839 cat >>conftest.$ac_ext <<_ACEOF
21840 /* end confdefs.h. */
21841 $ac_includes_default
21842 #include <$ac_header>
21844 rm -f conftest.$ac_objext
21845 if { (ac_try="$ac_compile"
21846 case "(($ac_try" in
21847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21848 *) ac_try_echo=$ac_try;;
21850 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21851 (eval "$ac_compile") 2>conftest.er1
21853 grep -v '^ *+' conftest.er1 >conftest.err
21855 cat conftest.err >&5
21856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21857 (exit $ac_status); } && {
21858 test -z "$ac_c_werror_flag" ||
21859 test ! -s conftest.err
21860 } && test -s conftest.$ac_objext; then
21861 ac_header_compiler=yes
21863 echo "$as_me: failed program was
:" >&5
21864 sed 's/^/| /' conftest.$ac_ext >&5
21866 ac_header_compiler=no
21869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21870 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21871 echo "${ECHO_T}$ac_header_compiler" >&6; }
21873 # Is the header present?
21874 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21875 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21876 cat >conftest.$ac_ext <<_ACEOF
21879 cat confdefs.h >>conftest.$ac_ext
21880 cat >>conftest.$ac_ext <<_ACEOF
21881 /* end confdefs.h. */
21882 #include <$ac_header>
21884 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21885 case "(($ac_try" in
21886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21887 *) ac_try_echo=$ac_try;;
21889 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21890 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21892 grep -v '^ *+' conftest.er1 >conftest.err
21894 cat conftest.err >&5
21895 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21896 (exit $ac_status); } >/dev/null && {
21897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21898 test ! -s conftest.err
21900 ac_header_preproc=yes
21902 echo "$as_me: failed program was
:" >&5
21903 sed 's/^/| /' conftest.$ac_ext >&5
21905 ac_header_preproc=no
21908 rm -f conftest.err conftest.$ac_ext
21909 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21910 echo "${ECHO_T}$ac_header_preproc" >&6; }
21912 # So? What about this header?
21913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21915 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21916 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21917 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21919 ac_header_preproc=yes
21922 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21923 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21924 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21925 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21926 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21927 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21928 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21929 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21930 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21932 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21933 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21937 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21938 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21939 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21940 echo $ECHO_N "(cached
) $ECHO_C" >&6
21942 eval "$as_ac_Header=\
$ac_header_preproc"
21944 ac_res=`eval echo '${'$as_ac_Header'}'`
21945 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21946 echo "${ECHO_T}$ac_res" >&6; }
21949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21950 cat >>confdefs.h <<_ACEOF
21951 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21960 # Solaris requires -lintl if you want strerror (which calls dgettext)
21961 # to return localized messages.
21963 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21964 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21965 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21966 echo $ECHO_N "(cached
) $ECHO_C" >&6
21968 ac_check_lib_save_LIBS=$LIBS
21969 LIBS="-lintl $LIBS"
21970 cat >conftest.$ac_ext <<_ACEOF
21973 cat confdefs.h >>conftest.$ac_ext
21974 cat >>conftest.$ac_ext <<_ACEOF
21975 /* end confdefs.h. */
21977 /* Override any GCC internal prototype to avoid an error.
21978 Use char because int might match the return type of a GCC
21979 builtin and then its argument prototype would still apply. */
21987 return dgettext ();
21992 rm -f conftest.$ac_objext conftest$ac_exeext
21993 if { (ac_try="$ac_link"
21994 case "(($ac_try" in
21995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21996 *) ac_try_echo=$ac_try;;
21998 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21999 (eval "$ac_link") 2>conftest.er1
22001 grep -v '^ *+' conftest.er1 >conftest.err
22003 cat conftest.err >&5
22004 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22005 (exit $ac_status); } && {
22006 test -z "$ac_c_werror_flag" ||
22007 test ! -s conftest.err
22008 } && test -s conftest$ac_exeext &&
22009 $as_test_x conftest$ac_exeext; then
22010 ac_cv_lib_intl_dgettext=yes
22012 echo "$as_me: failed program was
:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22015 ac_cv_lib_intl_dgettext=no
22018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22019 conftest$ac_exeext conftest.$ac_ext
22020 LIBS=$ac_check_lib_save_LIBS
22022 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22023 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22024 if test $ac_cv_lib_intl_dgettext = yes; then
22025 cat >>confdefs.h <<_ACEOF
22026 #define HAVE_LIBINTL 1
22029 LIBS="-lintl $LIBS"
22034 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22035 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22036 if test "${emacs_cv_localtime_cache+set}" = set; then
22037 echo $ECHO_N "(cached
) $ECHO_C" >&6
22039 if test x$ac_cv_func_tzset = xyes; then
22040 if test "$cross_compiling" = yes; then
22041 # If we have tzset, assume the worst when cross-compiling.
22042 emacs_cv_localtime_cache=yes
22044 cat >conftest.$ac_ext <<_ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h. */
22051 extern char **environ;
22055 for (to = from = environ; (*to = *from); from++)
22056 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22059 char TZ_GMT0[] = "TZ
=GMT0
";
22060 char TZ_PST8[] = "TZ
=PST8
";
22063 time_t now = time ((time_t *) 0);
22064 int hour_GMT0, hour_unset;
22065 if (putenv (TZ_GMT0) != 0)
22067 hour_GMT0 = localtime (&now)->tm_hour;
22069 hour_unset = localtime (&now)->tm_hour;
22070 if (putenv (TZ_PST8) != 0)
22072 if (localtime (&now)->tm_hour == hour_GMT0)
22075 if (localtime (&now)->tm_hour != hour_unset)
22080 rm -f conftest$ac_exeext
22081 if { (ac_try="$ac_link"
22082 case "(($ac_try" in
22083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22084 *) ac_try_echo=$ac_try;;
22086 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22087 (eval "$ac_link") 2>&5
22089 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22090 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22091 { (case "(($ac_try" in
22092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22093 *) ac_try_echo=$ac_try;;
22095 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22096 (eval "$ac_try") 2>&5
22098 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22099 (exit $ac_status); }; }; then
22100 emacs_cv_localtime_cache=no
22102 echo "$as_me: program exited with status
$ac_status" >&5
22103 echo "$as_me: failed program was
:" >&5
22104 sed 's/^/| /' conftest.$ac_ext >&5
22106 ( exit $ac_status )
22107 emacs_cv_localtime_cache=yes
22109 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22114 # If we lack tzset, report that localtime does not cache TZ,
22115 # since we can't invalidate the cache if we don't have tzset.
22116 emacs_cv_localtime_cache=no
22119 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22120 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22121 if test $emacs_cv_localtime_cache = yes; then
22123 cat >>confdefs.h <<\_ACEOF
22124 #define LOCALTIME_CACHE 1
22129 if test "x
$HAVE_TIMEVAL" = xyes; then
22131 for ac_func in gettimeofday
22133 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22134 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22135 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22136 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22137 echo $ECHO_N "(cached
) $ECHO_C" >&6
22139 cat >conftest.$ac_ext <<_ACEOF
22142 cat confdefs.h >>conftest.$ac_ext
22143 cat >>conftest.$ac_ext <<_ACEOF
22144 /* end confdefs.h. */
22145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22147 #define $ac_func innocuous_$ac_func
22149 /* System header to define __stub macros and hopefully few prototypes,
22150 which can conflict with char $ac_func (); below.
22151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22152 <limits.h> exists even on freestanding compilers. */
22155 # include <limits.h>
22157 # include <assert.h>
22162 /* Override any GCC internal prototype to avoid an error.
22163 Use char because int might match the return type of a GCC
22164 builtin and then its argument prototype would still apply. */
22169 /* The GNU C library defines this for functions which it implements
22170 to always fail with ENOSYS. Some functions are actually named
22171 something starting with __ and the normal name is an alias. */
22172 #if defined __stub_$ac_func || defined __stub___$ac_func
22179 return $ac_func ();
22184 rm -f conftest.$ac_objext conftest$ac_exeext
22185 if { (ac_try="$ac_link"
22186 case "(($ac_try" in
22187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22188 *) ac_try_echo=$ac_try;;
22190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22191 (eval "$ac_link") 2>conftest.er1
22193 grep -v '^ *+' conftest.er1 >conftest.err
22195 cat conftest.err >&5
22196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22197 (exit $ac_status); } && {
22198 test -z "$ac_c_werror_flag" ||
22199 test ! -s conftest.err
22200 } && test -s conftest$ac_exeext &&
22201 $as_test_x conftest$ac_exeext; then
22202 eval "$as_ac_var=yes"
22204 echo "$as_me: failed program was
:" >&5
22205 sed 's/^/| /' conftest.$ac_ext >&5
22207 eval "$as_ac_var=no
"
22210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22211 conftest$ac_exeext conftest.$ac_ext
22213 ac_res=`eval echo '${'$as_ac_var'}'`
22214 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22215 echo "${ECHO_T}$ac_res" >&6; }
22216 if test `eval echo '${'$as_ac_var'}'` = yes; then
22217 cat >>confdefs.h <<_ACEOF
22218 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22224 if test $ac_cv_func_gettimeofday = yes; then
22225 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22226 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22227 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22228 echo $ECHO_N "(cached
) $ECHO_C" >&6
22230 cat >conftest.$ac_ext <<_ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22237 #ifdef TIME_WITH_SYS_TIME
22238 #include <sys/time.h>
22241 #ifdef HAVE_SYS_TIME_H
22242 #include <sys/time.h>
22250 struct timeval time;
22251 gettimeofday (&time, 0);
22256 rm -f conftest.$ac_objext
22257 if { (ac_try="$ac_compile"
22258 case "(($ac_try" in
22259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22260 *) ac_try_echo=$ac_try;;
22262 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22263 (eval "$ac_compile") 2>conftest.er1
22265 grep -v '^ *+' conftest.er1 >conftest.err
22267 cat conftest.err >&5
22268 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22269 (exit $ac_status); } && {
22270 test -z "$ac_c_werror_flag" ||
22271 test ! -s conftest.err
22272 } && test -s conftest.$ac_objext; then
22273 emacs_cv_gettimeofday_two_arguments=yes
22275 echo "$as_me: failed program was
:" >&5
22276 sed 's/^/| /' conftest.$ac_ext >&5
22278 emacs_cv_gettimeofday_two_arguments=no
22281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22283 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22284 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22285 if test $emacs_cv_gettimeofday_two_arguments = no; then
22287 cat >>confdefs.h <<\_ACEOF
22288 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22296 { echo "$as_me:$LINENO: checking
for socket
" >&5
22297 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22298 if test "${ac_cv_func_socket+set}" = set; then
22299 echo $ECHO_N "(cached
) $ECHO_C" >&6
22301 cat >conftest.$ac_ext <<_ACEOF
22304 cat confdefs.h >>conftest.$ac_ext
22305 cat >>conftest.$ac_ext <<_ACEOF
22306 /* end confdefs.h. */
22307 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22309 #define socket innocuous_socket
22311 /* System header to define __stub macros and hopefully few prototypes,
22312 which can conflict with char socket (); below.
22313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22314 <limits.h> exists even on freestanding compilers. */
22317 # include <limits.h>
22319 # include <assert.h>
22324 /* Override any GCC internal prototype to avoid an error.
22325 Use char because int might match the return type of a GCC
22326 builtin and then its argument prototype would still apply. */
22331 /* The GNU C library defines this for functions which it implements
22332 to always fail with ENOSYS. Some functions are actually named
22333 something starting with __ and the normal name is an alias. */
22334 #if defined __stub_socket || defined __stub___socket
22346 rm -f conftest.$ac_objext conftest$ac_exeext
22347 if { (ac_try="$ac_link"
22348 case "(($ac_try" in
22349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22350 *) ac_try_echo=$ac_try;;
22352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22353 (eval "$ac_link") 2>conftest.er1
22355 grep -v '^ *+' conftest.er1 >conftest.err
22357 cat conftest.err >&5
22358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22359 (exit $ac_status); } && {
22360 test -z "$ac_c_werror_flag" ||
22361 test ! -s conftest.err
22362 } && test -s conftest$ac_exeext &&
22363 $as_test_x conftest$ac_exeext; then
22364 ac_cv_func_socket=yes
22366 echo "$as_me: failed program was
:" >&5
22367 sed 's/^/| /' conftest.$ac_ext >&5
22369 ac_cv_func_socket=no
22372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22373 conftest$ac_exeext conftest.$ac_ext
22375 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22376 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22377 if test $ac_cv_func_socket = yes; then
22383 if test $ok_so_far = yes; then
22384 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22385 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22386 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22387 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22388 echo $ECHO_N "(cached
) $ECHO_C" >&6
22390 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22391 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22393 # Is the header compilable?
22394 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22395 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22396 cat >conftest.$ac_ext <<_ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h. */
22402 $ac_includes_default
22403 #include <netinet/in.h>
22405 rm -f conftest.$ac_objext
22406 if { (ac_try="$ac_compile"
22407 case "(($ac_try" in
22408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22409 *) ac_try_echo=$ac_try;;
22411 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22412 (eval "$ac_compile") 2>conftest.er1
22414 grep -v '^ *+' conftest.er1 >conftest.err
22416 cat conftest.err >&5
22417 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22418 (exit $ac_status); } && {
22419 test -z "$ac_c_werror_flag" ||
22420 test ! -s conftest.err
22421 } && test -s conftest.$ac_objext; then
22422 ac_header_compiler=yes
22424 echo "$as_me: failed program was
:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22427 ac_header_compiler=no
22430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22431 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22432 echo "${ECHO_T}$ac_header_compiler" >&6; }
22434 # Is the header present?
22435 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22436 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22437 cat >conftest.$ac_ext <<_ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h. */
22443 #include <netinet/in.h>
22445 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22446 case "(($ac_try" in
22447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448 *) ac_try_echo=$ac_try;;
22450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22451 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22453 grep -v '^ *+' conftest.er1 >conftest.err
22455 cat conftest.err >&5
22456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22457 (exit $ac_status); } >/dev/null && {
22458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22459 test ! -s conftest.err
22461 ac_header_preproc=yes
22463 echo "$as_me: failed program was
:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22466 ac_header_preproc=no
22469 rm -f conftest.err conftest.$ac_ext
22470 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22471 echo "${ECHO_T}$ac_header_preproc" >&6; }
22473 # So? What about this header?
22474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22476 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22477 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22478 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22479 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22480 ac_header_preproc=yes
22483 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22484 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22485 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22486 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22487 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22488 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22489 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22490 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22491 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22492 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22493 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22494 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22498 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22499 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22500 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22501 echo $ECHO_N "(cached
) $ECHO_C" >&6
22503 ac_cv_header_netinet_in_h=$ac_header_preproc
22505 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22506 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22509 if test $ac_cv_header_netinet_in_h = yes; then
22517 if test $ok_so_far = yes; then
22518 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22519 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22520 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22521 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22522 echo $ECHO_N "(cached
) $ECHO_C" >&6
22524 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22525 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22527 # Is the header compilable?
22528 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22529 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22530 cat >conftest.$ac_ext <<_ACEOF
22533 cat confdefs.h >>conftest.$ac_ext
22534 cat >>conftest.$ac_ext <<_ACEOF
22535 /* end confdefs.h. */
22536 $ac_includes_default
22537 #include <arpa/inet.h>
22539 rm -f conftest.$ac_objext
22540 if { (ac_try="$ac_compile"
22541 case "(($ac_try" in
22542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22543 *) ac_try_echo=$ac_try;;
22545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22546 (eval "$ac_compile") 2>conftest.er1
22548 grep -v '^ *+' conftest.er1 >conftest.err
22550 cat conftest.err >&5
22551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22552 (exit $ac_status); } && {
22553 test -z "$ac_c_werror_flag" ||
22554 test ! -s conftest.err
22555 } && test -s conftest.$ac_objext; then
22556 ac_header_compiler=yes
22558 echo "$as_me: failed program was
:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22561 ac_header_compiler=no
22564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22565 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22566 echo "${ECHO_T}$ac_header_compiler" >&6; }
22568 # Is the header present?
22569 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22570 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22571 cat >conftest.$ac_ext <<_ACEOF
22574 cat confdefs.h >>conftest.$ac_ext
22575 cat >>conftest.$ac_ext <<_ACEOF
22576 /* end confdefs.h. */
22577 #include <arpa/inet.h>
22579 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22580 case "(($ac_try" in
22581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22582 *) ac_try_echo=$ac_try;;
22584 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22585 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22587 grep -v '^ *+' conftest.er1 >conftest.err
22589 cat conftest.err >&5
22590 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22591 (exit $ac_status); } >/dev/null && {
22592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22593 test ! -s conftest.err
22595 ac_header_preproc=yes
22597 echo "$as_me: failed program was
:" >&5
22598 sed 's/^/| /' conftest.$ac_ext >&5
22600 ac_header_preproc=no
22603 rm -f conftest.err conftest.$ac_ext
22604 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22605 echo "${ECHO_T}$ac_header_preproc" >&6; }
22607 # So? What about this header?
22608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22610 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22611 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22612 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22613 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22614 ac_header_preproc=yes
22617 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22618 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22619 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22620 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22621 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22622 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22623 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22624 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22625 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22626 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22627 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22628 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22632 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22633 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22634 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22635 echo $ECHO_N "(cached
) $ECHO_C" >&6
22637 ac_cv_header_arpa_inet_h=$ac_header_preproc
22639 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22640 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22643 if test $ac_cv_header_arpa_inet_h = yes; then
22651 if test $ok_so_far = yes; then
22653 cat >>confdefs.h <<\_ACEOF
22654 #define HAVE_INET_SOCKETS 1
22660 for ac_header in sys/ioctl.h
22662 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22663 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22664 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22665 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22666 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22667 echo $ECHO_N "(cached
) $ECHO_C" >&6
22669 ac_res=`eval echo '${'$as_ac_Header'}'`
22670 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22671 echo "${ECHO_T}$ac_res" >&6; }
22673 # Is the header compilable?
22674 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22675 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22676 cat >conftest.$ac_ext <<_ACEOF
22679 cat confdefs.h >>conftest.$ac_ext
22680 cat >>conftest.$ac_ext <<_ACEOF
22681 /* end confdefs.h. */
22682 $ac_includes_default
22683 #include <$ac_header>
22685 rm -f conftest.$ac_objext
22686 if { (ac_try="$ac_compile"
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_compile") 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); } && {
22699 test -z "$ac_c_werror_flag" ||
22700 test ! -s conftest.err
22701 } && test -s conftest.$ac_objext; then
22702 ac_header_compiler=yes
22704 echo "$as_me: failed program was
:" >&5
22705 sed 's/^/| /' conftest.$ac_ext >&5
22707 ac_header_compiler=no
22710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22711 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22712 echo "${ECHO_T}$ac_header_compiler" >&6; }
22714 # Is the header present?
22715 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22716 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22717 cat >conftest.$ac_ext <<_ACEOF
22720 cat confdefs.h >>conftest.$ac_ext
22721 cat >>conftest.$ac_ext <<_ACEOF
22722 /* end confdefs.h. */
22723 #include <$ac_header>
22725 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22726 case "(($ac_try" in
22727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22728 *) ac_try_echo=$ac_try;;
22730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22731 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22733 grep -v '^ *+' conftest.er1 >conftest.err
22735 cat conftest.err >&5
22736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22737 (exit $ac_status); } >/dev/null && {
22738 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22739 test ! -s conftest.err
22741 ac_header_preproc=yes
22743 echo "$as_me: failed program was
:" >&5
22744 sed 's/^/| /' conftest.$ac_ext >&5
22746 ac_header_preproc=no
22749 rm -f conftest.err conftest.$ac_ext
22750 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22751 echo "${ECHO_T}$ac_header_preproc" >&6; }
22753 # So? What about this header?
22754 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22756 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22757 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22758 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22759 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22760 ac_header_preproc=yes
22763 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22764 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22765 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22766 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22767 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22768 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22769 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22770 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22771 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22772 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22773 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22774 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22778 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22779 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22780 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22781 echo $ECHO_N "(cached
) $ECHO_C" >&6
22783 eval "$as_ac_Header=\
$ac_header_preproc"
22785 ac_res=`eval echo '${'$as_ac_Header'}'`
22786 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22787 echo "${ECHO_T}$ac_res" >&6; }
22790 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22791 cat >>confdefs.h <<_ACEOF
22792 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22800 if test -f /usr/lpp/X11/bin/smt.exp; then
22802 cat >>confdefs.h <<\_ACEOF
22803 #define HAVE_AIX_SMT_EXP 1
22808 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22809 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22810 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22811 { echo "$as_me:$LINENO: result
: yes" >&5
22812 echo "${ECHO_T}yes" >&6; }
22814 cat >>confdefs.h <<\_ACEOF
22815 #define HAVE_DEV_PTMX 1
22819 { echo "$as_me:$LINENO: result
: no
" >&5
22820 echo "${ECHO_T}no
" >&6; }
22823 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22824 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22825 if test "${ac_cv_type_pid_t+set}" = set; then
22826 echo $ECHO_N "(cached
) $ECHO_C" >&6
22828 cat >conftest.$ac_ext <<_ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22834 $ac_includes_default
22835 typedef pid_t ac__type_new_;
22839 if ((ac__type_new_ *) 0)
22841 if (sizeof (ac__type_new_))
22847 rm -f conftest.$ac_objext
22848 if { (ac_try="$ac_compile"
22849 case "(($ac_try" in
22850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22851 *) ac_try_echo=$ac_try;;
22853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22854 (eval "$ac_compile") 2>conftest.er1
22856 grep -v '^ *+' conftest.er1 >conftest.err
22858 cat conftest.err >&5
22859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22860 (exit $ac_status); } && {
22861 test -z "$ac_c_werror_flag" ||
22862 test ! -s conftest.err
22863 } && test -s conftest.$ac_objext; then
22864 ac_cv_type_pid_t=yes
22866 echo "$as_me: failed program was
:" >&5
22867 sed 's/^/| /' conftest.$ac_ext >&5
22869 ac_cv_type_pid_t=no
22872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22874 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22875 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22876 if test $ac_cv_type_pid_t = yes; then
22880 cat >>confdefs.h <<_ACEOF
22887 for ac_header in vfork.h
22889 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22890 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22891 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22892 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22893 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22894 echo $ECHO_N "(cached
) $ECHO_C" >&6
22896 ac_res=`eval echo '${'$as_ac_Header'}'`
22897 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22898 echo "${ECHO_T}$ac_res" >&6; }
22900 # Is the header compilable?
22901 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22902 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22903 cat >conftest.$ac_ext <<_ACEOF
22906 cat confdefs.h >>conftest.$ac_ext
22907 cat >>conftest.$ac_ext <<_ACEOF
22908 /* end confdefs.h. */
22909 $ac_includes_default
22910 #include <$ac_header>
22912 rm -f conftest.$ac_objext
22913 if { (ac_try="$ac_compile"
22914 case "(($ac_try" in
22915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22916 *) ac_try_echo=$ac_try;;
22918 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22919 (eval "$ac_compile") 2>conftest.er1
22921 grep -v '^ *+' conftest.er1 >conftest.err
22923 cat conftest.err >&5
22924 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22925 (exit $ac_status); } && {
22926 test -z "$ac_c_werror_flag" ||
22927 test ! -s conftest.err
22928 } && test -s conftest.$ac_objext; then
22929 ac_header_compiler=yes
22931 echo "$as_me: failed program was
:" >&5
22932 sed 's/^/| /' conftest.$ac_ext >&5
22934 ac_header_compiler=no
22937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22938 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22939 echo "${ECHO_T}$ac_header_compiler" >&6; }
22941 # Is the header present?
22942 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22943 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22944 cat >conftest.$ac_ext <<_ACEOF
22947 cat confdefs.h >>conftest.$ac_ext
22948 cat >>conftest.$ac_ext <<_ACEOF
22949 /* end confdefs.h. */
22950 #include <$ac_header>
22952 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22953 case "(($ac_try" in
22954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22955 *) ac_try_echo=$ac_try;;
22957 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22958 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22960 grep -v '^ *+' conftest.er1 >conftest.err
22962 cat conftest.err >&5
22963 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22964 (exit $ac_status); } >/dev/null && {
22965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22966 test ! -s conftest.err
22968 ac_header_preproc=yes
22970 echo "$as_me: failed program was
:" >&5
22971 sed 's/^/| /' conftest.$ac_ext >&5
22973 ac_header_preproc=no
22976 rm -f conftest.err conftest.$ac_ext
22977 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22978 echo "${ECHO_T}$ac_header_preproc" >&6; }
22980 # So? What about this header?
22981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22983 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22984 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22985 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22987 ac_header_preproc=yes
22990 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22991 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22992 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22993 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22994 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22995 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22996 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22997 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22998 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
23000 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
23001 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
23005 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
23006 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
23007 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
23008 echo $ECHO_N "(cached
) $ECHO_C" >&6
23010 eval "$as_ac_Header=\
$ac_header_preproc"
23012 ac_res=`eval echo '${'$as_ac_Header'}'`
23013 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23014 echo "${ECHO_T}$ac_res" >&6; }
23017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23018 cat >>confdefs.h <<_ACEOF
23019 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23028 for ac_func in fork vfork
23030 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23031 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23032 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23033 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23034 echo $ECHO_N "(cached
) $ECHO_C" >&6
23036 cat >conftest.$ac_ext <<_ACEOF
23039 cat confdefs.h >>conftest.$ac_ext
23040 cat >>conftest.$ac_ext <<_ACEOF
23041 /* end confdefs.h. */
23042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23044 #define $ac_func innocuous_$ac_func
23046 /* System header to define __stub macros and hopefully few prototypes,
23047 which can conflict with char $ac_func (); below.
23048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23049 <limits.h> exists even on freestanding compilers. */
23052 # include <limits.h>
23054 # include <assert.h>
23059 /* Override any GCC internal prototype to avoid an error.
23060 Use char because int might match the return type of a GCC
23061 builtin and then its argument prototype would still apply. */
23066 /* The GNU C library defines this for functions which it implements
23067 to always fail with ENOSYS. Some functions are actually named
23068 something starting with __ and the normal name is an alias. */
23069 #if defined __stub_$ac_func || defined __stub___$ac_func
23076 return $ac_func ();
23081 rm -f conftest.$ac_objext conftest$ac_exeext
23082 if { (ac_try="$ac_link"
23083 case "(($ac_try" in
23084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23085 *) ac_try_echo=$ac_try;;
23087 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23088 (eval "$ac_link") 2>conftest.er1
23090 grep -v '^ *+' conftest.er1 >conftest.err
23092 cat conftest.err >&5
23093 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23094 (exit $ac_status); } && {
23095 test -z "$ac_c_werror_flag" ||
23096 test ! -s conftest.err
23097 } && test -s conftest$ac_exeext &&
23098 $as_test_x conftest$ac_exeext; then
23099 eval "$as_ac_var=yes"
23101 echo "$as_me: failed program was
:" >&5
23102 sed 's/^/| /' conftest.$ac_ext >&5
23104 eval "$as_ac_var=no
"
23107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23108 conftest$ac_exeext conftest.$ac_ext
23110 ac_res=`eval echo '${'$as_ac_var'}'`
23111 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23112 echo "${ECHO_T}$ac_res" >&6; }
23113 if test `eval echo '${'$as_ac_var'}'` = yes; then
23114 cat >>confdefs.h <<_ACEOF
23115 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23121 if test "x
$ac_cv_func_fork" = xyes; then
23122 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23123 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23124 if test "${ac_cv_func_fork_works+set}" = set; then
23125 echo $ECHO_N "(cached
) $ECHO_C" >&6
23127 if test "$cross_compiling" = yes; then
23128 ac_cv_func_fork_works=cross
23130 cat >conftest.$ac_ext <<_ACEOF
23133 cat confdefs.h >>conftest.$ac_ext
23134 cat >>conftest.$ac_ext <<_ACEOF
23135 /* end confdefs.h. */
23136 $ac_includes_default
23141 /* By Ruediger Kuhlmann. */
23142 return fork () < 0;
23148 rm -f conftest$ac_exeext
23149 if { (ac_try="$ac_link"
23150 case "(($ac_try" in
23151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23152 *) ac_try_echo=$ac_try;;
23154 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23155 (eval "$ac_link") 2>&5
23157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23158 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23159 { (case "(($ac_try" in
23160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161 *) ac_try_echo=$ac_try;;
23163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23164 (eval "$ac_try") 2>&5
23166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23167 (exit $ac_status); }; }; then
23168 ac_cv_func_fork_works=yes
23170 echo "$as_me: program exited with status
$ac_status" >&5
23171 echo "$as_me: failed program was
:" >&5
23172 sed 's/^/| /' conftest.$ac_ext >&5
23174 ( exit $ac_status )
23175 ac_cv_func_fork_works=no
23177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23182 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23183 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23186 ac_cv_func_fork_works=$ac_cv_func_fork
23188 if test "x
$ac_cv_func_fork_works" = xcross; then
23190 *-*-amigaos* | *-*-msdosdjgpp*)
23191 # Override, as these systems have only a dummy fork() stub
23192 ac_cv_func_fork_works=no
23195 ac_cv_func_fork_works=yes
23198 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23199 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23201 ac_cv_func_vfork_works=$ac_cv_func_vfork
23202 if test "x
$ac_cv_func_vfork" = xyes; then
23203 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23204 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23205 if test "${ac_cv_func_vfork_works+set}" = set; then
23206 echo $ECHO_N "(cached
) $ECHO_C" >&6
23208 if test "$cross_compiling" = yes; then
23209 ac_cv_func_vfork_works=cross
23211 cat >conftest.$ac_ext <<_ACEOF
23214 cat confdefs.h >>conftest.$ac_ext
23215 cat >>conftest.$ac_ext <<_ACEOF
23216 /* end confdefs.h. */
23217 /* Thanks to Paul Eggert for this test. */
23218 $ac_includes_default
23219 #include <sys/wait.h>
23220 #ifdef HAVE_VFORK_H
23221 # include <vfork.h>
23223 /* On some sparc systems, changes by the child to local and incoming
23224 argument registers are propagated back to the parent. The compiler
23225 is told about this with #include <vfork.h>, but some compilers
23226 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23227 static variable whose address is put into a register that is
23228 clobbered by the vfork. */
23231 sparc_address_test (int arg)
23233 sparc_address_test (arg) int arg;
23236 static pid_t child;
23254 pid_t parent = getpid ();
23257 sparc_address_test (0);
23262 /* Here is another test for sparc vfork register problems. This
23263 test uses lots of local variables, at least as many local
23264 variables as main has allocated so far including compiler
23265 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23266 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23267 reuse the register of parent for one of the local variables,
23268 since it will think that parent can't possibly be used any more
23269 in this routine. Assigning to the local variable will thus
23270 munge parent in the parent process. */
23272 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23273 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23274 /* Convince the compiler that p..p7 are live; otherwise, it might
23275 use the same hardware register for all 8 local variables. */
23276 if (p != p1 || p != p2 || p != p3 || p != p4
23277 || p != p5 || p != p6 || p != p7)
23280 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23281 from child file descriptors. If the child closes a descriptor
23282 before it execs or exits, this munges the parent's descriptor
23283 as well. Test for this by closing stdout in the child. */
23284 _exit(close(fileno(stdout)) != 0);
23289 while (wait(&status) != child)
23292 /* Was there some problem with vforking? */
23295 /* Did the child fail? (This shouldn't happen.) */
23298 /* Did the vfork/compiler bug occur? */
23299 || parent != getpid()
23301 /* Did the file descriptor bug occur? */
23302 || fstat(fileno(stdout), &st) != 0
23307 rm -f conftest$ac_exeext
23308 if { (ac_try="$ac_link"
23309 case "(($ac_try" in
23310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23311 *) ac_try_echo=$ac_try;;
23313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23314 (eval "$ac_link") 2>&5
23316 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23317 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23318 { (case "(($ac_try" in
23319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23320 *) ac_try_echo=$ac_try;;
23322 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23323 (eval "$ac_try") 2>&5
23325 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23326 (exit $ac_status); }; }; then
23327 ac_cv_func_vfork_works=yes
23329 echo "$as_me: program exited with status
$ac_status" >&5
23330 echo "$as_me: failed program was
:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23333 ( exit $ac_status )
23334 ac_cv_func_vfork_works=no
23336 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23341 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23342 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23345 if test "x
$ac_cv_func_fork_works" = xcross; then
23346 ac_cv_func_vfork_works=$ac_cv_func_vfork
23347 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23348 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23351 if test "x
$ac_cv_func_vfork_works" = xyes; then
23353 cat >>confdefs.h <<\_ACEOF
23354 #define HAVE_WORKING_VFORK 1
23359 cat >>confdefs.h <<\_ACEOF
23364 if test "x
$ac_cv_func_fork_works" = xyes; then
23366 cat >>confdefs.h <<\_ACEOF
23367 #define HAVE_WORKING_FORK 1
23373 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23374 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23375 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23376 echo $ECHO_N "(cached
) $ECHO_C" >&6
23378 cat >conftest.$ac_ext <<_ACEOF
23381 cat confdefs.h >>conftest.$ac_ext
23382 cat >>conftest.$ac_ext <<_ACEOF
23383 /* end confdefs.h. */
23384 #include <langinfo.h>
23388 char* cs = nl_langinfo(CODESET);
23393 rm -f conftest.$ac_objext conftest$ac_exeext
23394 if { (ac_try="$ac_link"
23395 case "(($ac_try" in
23396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23397 *) ac_try_echo=$ac_try;;
23399 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23400 (eval "$ac_link") 2>conftest.er1
23402 grep -v '^ *+' conftest.er1 >conftest.err
23404 cat conftest.err >&5
23405 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23406 (exit $ac_status); } && {
23407 test -z "$ac_c_werror_flag" ||
23408 test ! -s conftest.err
23409 } && test -s conftest$ac_exeext &&
23410 $as_test_x conftest$ac_exeext; then
23411 emacs_cv_langinfo_codeset=yes
23413 echo "$as_me: failed program was
:" >&5
23414 sed 's/^/| /' conftest.$ac_ext >&5
23416 emacs_cv_langinfo_codeset=no
23419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23420 conftest$ac_exeext conftest.$ac_ext
23423 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23424 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23425 if test $emacs_cv_langinfo_codeset = yes; then
23427 cat >>confdefs.h <<\_ACEOF
23428 #define HAVE_LANGINFO_CODESET 1
23433 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23434 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23435 if test "${ac_cv_type_size_t+set}" = set; then
23436 echo $ECHO_N "(cached
) $ECHO_C" >&6
23438 cat >conftest.$ac_ext <<_ACEOF
23441 cat confdefs.h >>conftest.$ac_ext
23442 cat >>conftest.$ac_ext <<_ACEOF
23443 /* end confdefs.h. */
23444 $ac_includes_default
23445 typedef size_t ac__type_new_;
23449 if ((ac__type_new_ *) 0)
23451 if (sizeof (ac__type_new_))
23457 rm -f conftest.$ac_objext
23458 if { (ac_try="$ac_compile"
23459 case "(($ac_try" in
23460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23461 *) ac_try_echo=$ac_try;;
23463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23464 (eval "$ac_compile") 2>conftest.er1
23466 grep -v '^ *+' conftest.er1 >conftest.err
23468 cat conftest.err >&5
23469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23470 (exit $ac_status); } && {
23471 test -z "$ac_c_werror_flag" ||
23472 test ! -s conftest.err
23473 } && test -s conftest.$ac_objext; then
23474 ac_cv_type_size_t=yes
23476 echo "$as_me: failed program was
:" >&5
23477 sed 's/^/| /' conftest.$ac_ext >&5
23479 ac_cv_type_size_t=no
23482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23484 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23485 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23486 if test $ac_cv_type_size_t = yes; then
23488 cat >>confdefs.h <<_ACEOF
23489 #define HAVE_SIZE_T 1
23496 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23497 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23498 if test "${ac_cv_type_mbstate_t+set}" = set; then
23499 echo $ECHO_N "(cached
) $ECHO_C" >&6
23501 cat >conftest.$ac_ext <<_ACEOF
23504 cat confdefs.h >>conftest.$ac_ext
23505 cat >>conftest.$ac_ext <<_ACEOF
23506 /* end confdefs.h. */
23507 $ac_includes_default
23508 # include <wchar.h>
23512 mbstate_t x; return sizeof x;
23517 rm -f conftest.$ac_objext
23518 if { (ac_try="$ac_compile"
23519 case "(($ac_try" in
23520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23521 *) ac_try_echo=$ac_try;;
23523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23524 (eval "$ac_compile") 2>conftest.er1
23526 grep -v '^ *+' conftest.er1 >conftest.err
23528 cat conftest.err >&5
23529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23530 (exit $ac_status); } && {
23531 test -z "$ac_c_werror_flag" ||
23532 test ! -s conftest.err
23533 } && test -s conftest.$ac_objext; then
23534 ac_cv_type_mbstate_t=yes
23536 echo "$as_me: failed program was
:" >&5
23537 sed 's/^/| /' conftest.$ac_ext >&5
23539 ac_cv_type_mbstate_t=no
23542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23544 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23545 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23546 if test $ac_cv_type_mbstate_t = yes; then
23548 cat >>confdefs.h <<\_ACEOF
23549 #define HAVE_MBSTATE_T 1
23554 cat >>confdefs.h <<\_ACEOF
23555 #define mbstate_t int
23560 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23561 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23562 if test "${emacs_cv_c_restrict+set}" = set; then
23563 echo $ECHO_N "(cached
) $ECHO_C" >&6
23565 cat >conftest.$ac_ext <<_ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h. */
23571 void fred (int *restrict x);
23580 rm -f conftest.$ac_objext
23581 if { (ac_try="$ac_compile"
23582 case "(($ac_try" in
23583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23584 *) ac_try_echo=$ac_try;;
23586 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23587 (eval "$ac_compile") 2>conftest.er1
23589 grep -v '^ *+' conftest.er1 >conftest.err
23591 cat conftest.err >&5
23592 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23593 (exit $ac_status); } && {
23594 test -z "$ac_c_werror_flag" ||
23595 test ! -s conftest.err
23596 } && test -s conftest.$ac_objext; then
23597 emacs_cv_c_restrict=yes
23599 echo "$as_me: failed program was
:" >&5
23600 sed 's/^/| /' conftest.$ac_ext >&5
23602 cat >conftest.$ac_ext <<_ACEOF
23605 cat confdefs.h >>conftest.$ac_ext
23606 cat >>conftest.$ac_ext <<_ACEOF
23607 /* end confdefs.h. */
23608 void fred (int *__restrict x);
23617 rm -f conftest.$ac_objext
23618 if { (ac_try="$ac_compile"
23619 case "(($ac_try" in
23620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23621 *) ac_try_echo=$ac_try;;
23623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23624 (eval "$ac_compile") 2>conftest.er1
23626 grep -v '^ *+' conftest.er1 >conftest.err
23628 cat conftest.err >&5
23629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23630 (exit $ac_status); } && {
23631 test -z "$ac_c_werror_flag" ||
23632 test ! -s conftest.err
23633 } && test -s conftest.$ac_objext; then
23634 emacs_cv_c_restrict=__restrict
23636 echo "$as_me: failed program was
:" >&5
23637 sed 's/^/| /' conftest.$ac_ext >&5
23639 emacs_cv_c_restrict=no
23642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23647 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23648 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23649 case "$emacs_cv_c_restrict" in
23650 yes) emacs_restrict=restrict;;
23651 no) emacs_restrict="";;
23652 *) emacs_restrict="$emacs_cv_c_restrict";;
23654 if test "$emacs_restrict" != __restrict; then
23656 cat >>confdefs.h <<_ACEOF
23657 #define __restrict $emacs_restrict
23662 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23663 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23664 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23665 echo $ECHO_N "(cached
) $ECHO_C" >&6
23667 cat >conftest.$ac_ext <<_ACEOF
23670 cat confdefs.h >>conftest.$ac_ext
23671 cat >>conftest.$ac_ext <<_ACEOF
23672 /* end confdefs.h. */
23673 void fred (int x[__restrict]);
23682 rm -f conftest.$ac_objext
23683 if { (ac_try="$ac_compile"
23684 case "(($ac_try" in
23685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23686 *) ac_try_echo=$ac_try;;
23688 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23689 (eval "$ac_compile") 2>conftest.er1
23691 grep -v '^ *+' conftest.er1 >conftest.err
23693 cat conftest.err >&5
23694 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23695 (exit $ac_status); } && {
23696 test -z "$ac_c_werror_flag" ||
23697 test ! -s conftest.err
23698 } && test -s conftest.$ac_objext; then
23699 emacs_cv_c_restrict_arr=yes
23701 echo "$as_me: failed program was
:" >&5
23702 sed 's/^/| /' conftest.$ac_ext >&5
23704 emacs_cv_c_restrict_arr=no
23707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23709 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23710 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23711 if test "$emacs_cv_c_restrict_arr" = yes; then
23713 cat >>confdefs.h <<\_ACEOF
23714 #define __restrict_arr __restrict
23721 # Set up the CFLAGS for real compilation, so we can substitute it.
23722 CFLAGS="$REAL_CFLAGS"
23723 CPPFLAGS="$REAL_CPPFLAGS"
23725 #### Find out which version of Emacs this is.
23726 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23727 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23728 if test x"${version}" = x; then
23729 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23730 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23731 { (exit 1); exit 1; }; }
23734 ### Specify what sort of things we'll be editing into Makefile and config.h.
23735 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23771 cat >>confdefs.h <<_ACEOF
23772 #define EMACS_CONFIGURATION "${canonical}"
23776 cat >>confdefs.h <<_ACEOF
23777 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23781 cat >>confdefs.h <<_ACEOF
23782 #define config_machfile "${machfile}"
23786 cat >>confdefs.h <<_ACEOF
23787 #define config_opsysfile "${opsysfile}"
23791 cat >>confdefs.h <<_ACEOF
23792 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23796 cat >>confdefs.h <<_ACEOF
23797 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23801 cat >>confdefs.h <<_ACEOF
23802 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23806 cat >>confdefs.h <<_ACEOF
23807 #define UNEXEC_SRC ${UNEXEC_SRC}
23811 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23813 cat >>confdefs.h <<\_ACEOF
23814 #define HAVE_X_WINDOWS 1
23818 if test "${USE_X_TOOLKIT}" != "none
" ; then
23820 cat >>confdefs.h <<\_ACEOF
23821 #define USE_X_TOOLKIT 1
23825 if test "${HAVE_X11}" = "yes" ; then
23827 cat >>confdefs.h <<\_ACEOF
23832 if test "${HAVE_MENUS}" = "yes" ; then
23834 cat >>confdefs.h <<\_ACEOF
23835 #define HAVE_MENUS 1
23839 if test "${GNU_MALLOC}" = "yes" ; then
23841 cat >>confdefs.h <<\_ACEOF
23842 #define GNU_MALLOC 1
23846 if test "${REL_ALLOC}" = "yes" ; then
23848 cat >>confdefs.h <<\_ACEOF
23849 #define REL_ALLOC 1
23859 #### Report on what we decided to do.
23860 #### Report GTK as a toolkit, even if it doesn't use Xt.
23861 #### It makes printing result more understandable as using GTK sets
23862 #### toolkit_scroll_bars to yes by default.
23863 if test "${HAVE_GTK}" = "yes"; then
23868 Configured
for \
`${canonical}'.
23870 Where should the build process find the source code? ${srcdir}
23871 What operating system and machine description files should Emacs use?
23872 \`${opsysfile}' and \`${machfile}'
23873 What compiler should emacs be built with?
${CC} ${CFLAGS}
23874 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23875 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23876 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23877 What window system should Emacs use?
${window_system}
23878 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23880 if test -n "${x_includes}"; then
23881 echo " Where
do we
find X Windows header files?
${x_includes}"
23883 echo " Where
do we
find X Windows header files? Standard
dirs"
23885 if test -n "${x_libraries}"; then
23886 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23888 echo " Where
do we
find X Windows libraries? Standard
dirs"
23891 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23892 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23893 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23894 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23895 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23896 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23897 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23898 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23899 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
23900 echo " Does Emacs use a font backend?
${USE_FONT_BACKEND}"
23902 if test "${USE_FONT_BACKEND}" = "yes"; then
23903 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
23904 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
23905 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
23906 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
23908 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23911 if test $USE_XASSERTS = yes; then
23912 echo " Compiling with asserts turned on.
"
23913 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23917 if test "$USE_X_TOOLKIT" = GTK; then
23918 case "$canonical" in
23920 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23921 will probably get a crash on startup. If this happens
, please use another
23922 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23928 if test "$HAVE_CARBON" = "yes"; then
23930 echo "Warning
: The Mac Carbon port is currently unsupported and has
23931 known problems. It is not recommended
for use by non-developers.
23932 Read the emacs-devel archives
for more information.
"
23936 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
23937 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
23942 # Remove any trailing slashes in these variables.
23943 test "${prefix}" != NONE &&
23944 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23945 test "${exec_prefix}" != NONE &&
23946 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23948 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23949 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23950 ## from Makefile.c can correctly provide the arg `-traditional' to the
23953 cat >conftest.$ac_ext <<_ACEOF
23956 cat confdefs.h >>conftest.$ac_ext
23957 cat >>conftest.$ac_ext <<_ACEOF
23958 /* end confdefs.h. */
23961 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23962 $EGREP "yes..
yes" >/dev/null 2>&1; then
23963 CPP_NEED_TRADITIONAL=no
23965 CPP_NEED_TRADITIONAL=yes
23970 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
"
23972 ac_config_commands="$ac_config_commands default
"
23974 cat >confcache <<\_ACEOF
23975 # This file is a shell script that caches the results of configure
23976 # tests run on this system so they can be shared between configure
23977 # scripts and configure runs, see configure's option --config-cache.
23978 # It is not useful on other systems. If it contains results you don't
23979 # want to keep, you may remove or edit it.
23981 # config.status only pays attention to the cache file if you give it
23982 # the --recheck option to rerun configure.
23984 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23985 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23986 # following values.
23990 # The following way of writing the cache mishandles newlines in values,
23991 # but we know of no workaround that is simple, portable, and efficient.
23992 # So, we kill variables containing newlines.
23993 # Ultrix sh set writes to stderr and can't be redirected directly,
23994 # and sets the high bit in the cache file unless we assign to the vars.
23996 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23997 eval ac_val=\$$ac_var
24001 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
24002 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
24005 _ | IFS | as_nl) ;; #(
24006 *) $as_unset $ac_var ;;
24012 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24013 *${as_nl}ac_space=\ *)
24014 # `set' does not quote correctly, so add quotes (double-quote
24015 # substitution turns \\\\ into \\, and sed turns \\ into \).
24018 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24021 # `set' quotes correctly as required by POSIX, so do not add quotes.
24022 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24031 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24033 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24035 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24036 if test -w "$cache_file"; then
24037 test "x
$cache_file" != "x
/dev
/null
" &&
24038 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24039 echo "$as_me: updating cache
$cache_file" >&6;}
24040 cat confcache >$cache_file
24042 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24043 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24048 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24049 # Let make expand exec_prefix.
24050 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24052 DEFS=-DHAVE_CONFIG_H
24056 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24057 # 1. Remove the extension, and $U if already installed.
24058 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24059 ac_i=`echo "$ac_i" | sed "$ac_script"`
24060 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24061 # will be set to the directory where LIBOBJS objects are built.
24062 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24063 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24065 LIBOBJS=$ac_libobjs
24067 LTLIBOBJS=$ac_ltlibobjs
24071 : ${CONFIG_STATUS=./config.status}
24072 ac_clean_files_save=$ac_clean_files
24073 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24074 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24075 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24076 cat >$CONFIG_STATUS <<_ACEOF
24078 # Generated by $as_me.
24079 # Run this file to recreate the current configuration.
24080 # Compiler output produced by configure, useful for debugging
24081 # configure, is in config.log if it exists.
24084 ac_cs_recheck=false
24086 SHELL=\${CONFIG_SHELL-$SHELL}
24089 cat >>$CONFIG_STATUS <<\_ACEOF
24090 ## --------------------- ##
24091 ## M4sh Initialization. ##
24092 ## --------------------- ##
24094 # Be more Bourne compatible
24095 DUALCASE=1; export DUALCASE # for MKS sh
24096 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24099 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24100 # is contrary to our usage. Disable this feature.
24101 alias -g '${1+"$@"}'='"$@
"'
24102 setopt NO_GLOB_SUBST
24104 case `(set -o) 2>/dev/null` in
24105 *posix*) set -o posix ;;
24114 # Avoid depending upon Character Ranges.
24115 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24116 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24117 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24118 as_cr_digits='0123456789'
24119 as_cr_alnum=$as_cr_Letters$as_cr_digits
24121 # The user is always right.
24122 if test "${PATH_SEPARATOR+set}" != set; then
24123 echo "#! /bin/sh" >conf$$.sh
24124 echo "exit 0" >>conf$$.sh
24126 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24134 # Support unset when possible.
24135 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24143 # We need space, tab and new line, in precisely that order. Quoting is
24144 # there to prevent editors from complaining about space-tab.
24145 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24146 # splitting by setting IFS to empty value.)
24151 # Find who we are. Look in the path if we contain no directory separator.
24153 *[\\/]* ) as_myself
=$0 ;;
24154 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24155 for as_dir
in $PATH
24158 test -z "$as_dir" && as_dir
=.
24159 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24165 # We did not find ourselves, most probably we were run as `sh COMMAND'
24166 # in which case we are not to be found in the path.
24167 if test "x$as_myself" = x
; then
24170 if test ! -f "$as_myself"; then
24171 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24172 { (exit 1); exit 1; }
24175 # Work around bugs in pre-3.0 UWIN ksh.
24176 for as_var
in ENV MAIL MAILPATH
24177 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24185 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24186 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24187 LC_TELEPHONE LC_TIME
24189 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24190 eval $as_var=C
; export $as_var
24192 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24196 # Required to use basename.
24197 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24198 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24204 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24205 as_basename
=basename
24211 # Name of the executable.
24212 as_me
=`$as_basename -- "$0" ||
24213 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24214 X"$0" : 'X\(//\)$' \| \
24215 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24217 sed '/^.*\/\([^/][^/]*\)\/*$/{
24236 as_lineno_1
=$LINENO
24237 as_lineno_2
=$LINENO
24238 test "x$as_lineno_1" != "x$as_lineno_2" &&
24239 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24241 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24242 # uniformly replaced by the line number. The first 'sed' inserts a
24243 # line-number line after each line using $LINENO; the second 'sed'
24244 # does the real work. The second script uses 'N' to pair each
24245 # line-number line with the line containing $LINENO, and appends
24246 # trailing '-' during substitution so that $LINENO is not a special
24247 # case at line end.
24248 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24249 # scripts with optimization help from Paolo Bonzini. Blame Lee
24250 # E. McMahon (1931-1989) for sed's syntax. :-)
24262 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24265 ' >$as_me.lineno
&&
24266 chmod +x
"$as_me.lineno" ||
24267 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24268 { (exit 1); exit 1; }; }
24270 # Don't try to exec as it changes $[0], causing all sort of problems
24271 # (the dirname of $[0] is not the place where we might find the
24272 # original and so on. Autoconf is especially sensitive to this).
24273 .
"./$as_me.lineno"
24274 # Exit status is that of the last command.
24279 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24285 ECHO_C
= ECHO_N
= ECHO_T
=
24286 case `echo -n x` in
24288 case `echo 'x\c'` in
24289 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24296 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24297 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24303 rm -f conf$$ conf$$.exe conf$$.
file
24304 if test -d conf$$.dir
; then
24305 rm -f conf$$.dir
/conf$$.
file
24311 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24313 # ... but there are two gotchas:
24314 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24315 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24316 # In both cases, we have to default to `cp -p'.
24317 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24319 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24324 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24325 rmdir conf$$.dir
2>/dev
/null
24327 if mkdir
-p .
2>/dev
/null
; then
24330 test -d .
/-p && rmdir .
/-p
24334 if test -x / >/dev
/null
2>&1; then
24335 as_test_x
='test -x'
24337 if ls -dL / >/dev
/null
2>&1; then
24344 if test -d "$1"; then
24350 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24351 ???[sx]*):;;*)false;;esac;fi
24355 as_executable_p
=$as_test_x
24357 # Sed expression to map a string onto a valid CPP name.
24358 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24360 # Sed expression to map a string onto a valid variable name.
24361 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24366 # Save the log message, to keep $[0] and so on meaningful, and to
24367 # report actual input values of CONFIG_FILES etc. instead of their
24368 # values after options handling.
24370 This file was extended by emacs $as_me 23.0.50, which was
24371 generated by GNU Autoconf 2.61. Invocation command line was
24373 CONFIG_FILES = $CONFIG_FILES
24374 CONFIG_HEADERS = $CONFIG_HEADERS
24375 CONFIG_LINKS = $CONFIG_LINKS
24376 CONFIG_COMMANDS = $CONFIG_COMMANDS
24379 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24384 cat >>$CONFIG_STATUS <<_ACEOF
24385 # Files that config.status was made for.
24386 config_files="$ac_config_files"
24387 config_headers="$ac_config_headers"
24388 config_commands="$ac_config_commands"
24392 cat >>$CONFIG_STATUS <<\_ACEOF
24394 \`$as_me' instantiates files from templates according to the
24395 current configuration.
24397 Usage: $0 [OPTIONS] [FILE]...
24399 -h, --help print this help, then exit
24400 -V, --version print version number and configuration settings, then exit
24401 -q, --quiet do not print progress messages
24402 -d, --debug don't remove temporary files
24403 --recheck update $as_me by reconfiguring in the same conditions
24404 --file=FILE[:TEMPLATE]
24405 instantiate the configuration file FILE
24406 --header=FILE[:TEMPLATE]
24407 instantiate the configuration header FILE
24409 Configuration files:
24412 Configuration headers:
24415 Configuration commands:
24418 Report bugs to <bug-autoconf@gnu.org>."
24421 cat >>$CONFIG_STATUS <<_ACEOF
24423 emacs config.status 23.0.50
24424 configured by $0, generated by GNU Autoconf 2.61,
24425 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24427 Copyright (C) 2006 Free Software Foundation, Inc.
24428 This config.status script is free software; the Free Software Foundation
24429 gives unlimited permission to copy, distribute and modify it."
24436 cat >>$CONFIG_STATUS <<\_ACEOF
24437 # If no file are specified by the user, then we need to provide default
24438 # value. By we need to know if files were specified by the user.
24444 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24445 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24456 # Handling of the options.
24457 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24459 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24460 echo "$ac_cs_version"; exit ;;
24461 --debug |
--debu |
--deb |
--de |
--d |
-d )
24463 --file |
--fil |
--fi |
--f )
24465 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24466 ac_need_defaults
=false
;;
24467 --header |
--heade |
--head |
--hea )
24469 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24470 ac_need_defaults
=false
;;
24472 # Conflict between --help and --header
24473 { echo "$as_me: error: ambiguous option: $1
24474 Try \`$0 --help' for more information." >&2
24475 { (exit 1); exit 1; }; };;
24476 --help |
--hel |
-h )
24477 echo "$ac_cs_usage"; exit ;;
24478 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24479 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24482 # This is an error.
24483 -*) { echo "$as_me: error: unrecognized option: $1
24484 Try \`$0 --help' for more information." >&2
24485 { (exit 1); exit 1; }; } ;;
24487 *) ac_config_targets
="$ac_config_targets $1"
24488 ac_need_defaults
=false
;;
24494 ac_configure_extra_args
=
24496 if $ac_cs_silent; then
24498 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24502 cat >>$CONFIG_STATUS <<_ACEOF
24503 if \$ac_cs_recheck; then
24504 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24505 CONFIG_SHELL=$SHELL
24506 export CONFIG_SHELL
24507 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24511 cat >>$CONFIG_STATUS <<\_ACEOF
24515 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24516 ## Running $as_me. ##
24522 cat >>$CONFIG_STATUS <<_ACEOF
24526 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24530 cat >>$CONFIG_STATUS <<\_ACEOF
24532 # Handling of arguments.
24533 for ac_config_target
in $ac_config_targets
24535 case $ac_config_target in
24536 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24537 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24538 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24539 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24540 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24541 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24542 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24543 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24544 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24545 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24546 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24547 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24548 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24550 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24551 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24552 { (exit 1); exit 1; }; };;
24557 # If the user did not use the arguments to specify the items to instantiate,
24558 # then the envvar interface is used. Set only those that are not.
24559 # We use the long form for the default assignment because of an extremely
24560 # bizarre bug on SunOS 4.1.3.
24561 if $ac_need_defaults; then
24562 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24563 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24564 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24567 # Have a temporary directory for convenience. Make it in the build tree
24568 # simply because there is no reason against having it here, and in addition,
24569 # creating and moving files from /tmp can sometimes cause problems.
24570 # Hook for its removal unless debugging.
24571 # Note that there is a small window in which the directory will not be cleaned:
24572 # after its creation but before its name has been assigned to `$tmp'.
24576 trap 'exit_status=$?
24577 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24579 trap '{ (exit 1); exit 1; }' 1 2 13 15
24581 # Create a (secure) tmp directory for tmp files.
24584 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24585 test -n "$tmp" && test -d "$tmp"
24588 tmp
=.
/conf$$
-$RANDOM
24589 (umask 077 && mkdir
"$tmp")
24592 echo "$me: cannot create a temporary directory in ." >&2
24593 { (exit 1); exit 1; }
24597 # Set up the sed scripts for CONFIG_FILES section.
24600 # No need to generate the scripts if there are no CONFIG_FILES.
24601 # This happens for instance when ./config.status config.h
24602 if test -n "$CONFIG_FILES"; then
24609 for ac_last_try
in false false false false false
:; do
24610 cat >conf$
$subs.
sed <<_ACEOF
24611 SHELL!$SHELL$ac_delim
24612 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24613 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24614 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24615 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24616 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24617 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24618 exec_prefix!$exec_prefix$ac_delim
24619 prefix!$prefix$ac_delim
24620 program_transform_name!$program_transform_name$ac_delim
24621 bindir!$bindir$ac_delim
24622 sbindir!$sbindir$ac_delim
24623 libexecdir!$libexecdir$ac_delim
24624 datarootdir!$datarootdir$ac_delim
24625 datadir!$datadir$ac_delim
24626 sysconfdir!$sysconfdir$ac_delim
24627 sharedstatedir!$sharedstatedir$ac_delim
24628 localstatedir!$localstatedir$ac_delim
24629 includedir!$includedir$ac_delim
24630 oldincludedir!$oldincludedir$ac_delim
24631 docdir!$docdir$ac_delim
24632 infodir!$infodir$ac_delim
24633 htmldir!$htmldir$ac_delim
24634 dvidir!$dvidir$ac_delim
24635 pdfdir!$pdfdir$ac_delim
24636 psdir!$psdir$ac_delim
24637 libdir!$libdir$ac_delim
24638 localedir!$localedir$ac_delim
24639 mandir!$mandir$ac_delim
24640 DEFS!$DEFS$ac_delim
24641 ECHO_C!$ECHO_C$ac_delim
24642 ECHO_N!$ECHO_N$ac_delim
24643 ECHO_T!$ECHO_T$ac_delim
24644 LIBS!$LIBS$ac_delim
24645 build_alias!$build_alias$ac_delim
24646 host_alias!$host_alias$ac_delim
24647 target_alias!$target_alias$ac_delim
24648 MAINT!$MAINT$ac_delim
24649 build!$build$ac_delim
24650 build_cpu!$build_cpu$ac_delim
24651 build_vendor!$build_vendor$ac_delim
24652 build_os!$build_os$ac_delim
24653 host!$host$ac_delim
24654 host_cpu!$host_cpu$ac_delim
24655 host_vendor!$host_vendor$ac_delim
24656 host_os!$host_os$ac_delim
24658 CFLAGS!$CFLAGS$ac_delim
24659 LDFLAGS!$LDFLAGS$ac_delim
24660 CPPFLAGS!$CPPFLAGS$ac_delim
24661 ac_ct_CC!$ac_ct_CC$ac_delim
24662 EXEEXT!$EXEEXT$ac_delim
24663 OBJEXT!$OBJEXT$ac_delim
24665 GREP!$GREP$ac_delim
24666 EGREP!$EGREP$ac_delim
24667 LN_S!$LN_S$ac_delim
24668 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24669 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24670 INSTALL_DATA!$INSTALL_DATA$ac_delim
24671 RANLIB!$RANLIB$ac_delim
24672 INSTALL_INFO!$INSTALL_INFO$ac_delim
24673 GZIP_PROG!$GZIP_PROG$ac_delim
24674 MAKEINFO!$MAKEINFO$ac_delim
24675 LIBSOUND!$LIBSOUND$ac_delim
24676 PKG_CONFIG!$PKG_CONFIG$ac_delim
24677 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24678 ALSA_LIBS!$ALSA_LIBS$ac_delim
24679 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24680 SET_MAKE!$SET_MAKE$ac_delim
24681 XMKMF!$XMKMF$ac_delim
24682 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24683 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24684 RSVG_LIBS!$RSVG_LIBS$ac_delim
24685 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24686 GTK_LIBS!$GTK_LIBS$ac_delim
24687 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24688 DBUS_LIBS!$DBUS_LIBS$ac_delim
24689 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24690 XFT_LIBS!$XFT_LIBS$ac_delim
24691 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24692 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24693 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24694 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24695 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24696 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24697 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24698 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24699 ALLOCA!$ALLOCA$ac_delim
24700 liblockfile!$liblockfile$ac_delim
24701 LIBOBJS!$LIBOBJS$ac_delim
24702 NEED_SETGID!$NEED_SETGID$ac_delim
24703 KMEM_GROUP!$KMEM_GROUP$ac_delim
24704 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24705 GETOPT_H!$GETOPT_H$ac_delim
24706 GETOPTOBJS!$GETOPTOBJS$ac_delim
24707 version!$version$ac_delim
24710 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24712 elif $ac_last_try; then
24713 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24714 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24715 { (exit 1); exit 1; }; }
24717 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24721 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24722 if test -n "$ac_eof"; then
24723 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24724 ac_eof
=`expr $ac_eof + 1`
24727 cat >>$CONFIG_STATUS <<_ACEOF
24728 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24729 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24732 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24733 s/^/s,@/; s/!/@,|#_!!_#|/
24736 s/'"$ac_delim"'$/,g/; t
24738 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24739 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24740 rm -f conf$
$subs.
sed
24741 cat >>$CONFIG_STATUS <<_ACEOF
24747 for ac_last_try
in false false false false false
:; do
24748 cat >conf$
$subs.
sed <<_ACEOF
24749 configuration!$configuration$ac_delim
24750 canonical!$canonical$ac_delim
24751 srcdir!$srcdir$ac_delim
24752 lispdir!$lispdir$ac_delim
24753 locallisppath!$locallisppath$ac_delim
24754 lisppath!$lisppath$ac_delim
24755 x_default_search_path!$x_default_search_path$ac_delim
24756 etcdir!$etcdir$ac_delim
24757 archlibdir!$archlibdir$ac_delim
24758 bitmapdir!$bitmapdir$ac_delim
24759 gamedir!$gamedir$ac_delim
24760 gameuser!$gameuser$ac_delim
24761 c_switch_system!$c_switch_system$ac_delim
24762 c_switch_machine!$c_switch_machine$ac_delim
24763 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24764 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24765 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24766 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24767 machfile!$machfile$ac_delim
24768 opsysfile!$opsysfile$ac_delim
24769 carbon_appdir!$carbon_appdir$ac_delim
24770 LTLIBOBJS!$LTLIBOBJS$ac_delim
24773 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24775 elif $ac_last_try; then
24776 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24777 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24778 { (exit 1); exit 1; }; }
24780 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24784 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24785 if test -n "$ac_eof"; then
24786 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24787 ac_eof
=`expr $ac_eof + 1`
24790 cat >>$CONFIG_STATUS <<_ACEOF
24791 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24792 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24795 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24796 s/^/s,@/; s/!/@,|#_!!_#|/
24799 s/'"$ac_delim"'$/,g/; t
24801 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24802 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24803 rm -f conf$
$subs.
sed
24804 cat >>$CONFIG_STATUS <<_ACEOF
24811 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24812 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24813 # trailing colons and then remove the whole line if VPATH becomes empty
24814 # (actually we leave an empty line to preserve line numbers).
24815 if test "x$srcdir" = x.
; then
24816 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24817 s/:*\$(srcdir):*/:/
24818 s/:*\${srcdir}:*/:/
24820 s/^\([^=]*=[ ]*\):*/\1/
24826 cat >>$CONFIG_STATUS <<\_ACEOF
24827 fi # test -n "$CONFIG_FILES"
24830 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24833 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24835 case $ac_mode$ac_tag in
24837 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24838 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24839 { (exit 1); exit 1; }; };;
24840 :[FH
]-) ac_tag
=-:-;;
24841 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24858 -) ac_f
="$tmp/stdin";;
24859 *) # Look for the file first in the build tree, then in the source tree
24860 # (if the path is not absolute). The absolute path cannot be DOS-style,
24861 # because $ac_f cannot contain `:'.
24865 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24867 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24868 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24869 { (exit 1); exit 1; }; };;
24871 ac_file_inputs
="$ac_file_inputs $ac_f"
24874 # Let's still pretend it is `configure' which instantiates (i.e., don't
24875 # use $as_me), people would be surprised to read:
24876 # /* config.h. Generated by config.status. */
24877 configure_input
="Generated from "`IFS=:
24878 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24879 if test x
"$ac_file" != x-
; then
24880 configure_input
="$ac_file. $configure_input"
24881 { echo "$as_me:$LINENO: creating $ac_file" >&5
24882 echo "$as_me: creating $ac_file" >&6;}
24886 *:-:* |
*:-) cat >"$tmp/stdin";;
24891 ac_dir
=`$as_dirname -- "$ac_file" ||
24892 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24893 X"$ac_file" : 'X\(//\)[^/]' \| \
24894 X"$ac_file" : 'X\(//\)$' \| \
24895 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24897 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24901 /^X\(\/\/\)[^/].*/{
24916 -*) as_dir
=.
/$as_dir;;
24918 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24922 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24923 *) as_qdir
=$as_dir;;
24925 as_dirs
="'$as_qdir' $as_dirs"
24926 as_dir
=`$as_dirname -- "$as_dir" ||
24927 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24928 X"$as_dir" : 'X\(//\)[^/]' \| \
24929 X"$as_dir" : 'X\(//\)$' \| \
24930 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24932 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24936 /^X\(\/\/\)[^/].*/{
24949 test -d "$as_dir" && break
24951 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24952 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24953 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24954 { (exit 1); exit 1; }; }; }
24958 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24960 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24961 # A ".." for each directory in $ac_dir_suffix.
24962 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24963 case $ac_top_builddir_sub in
24964 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24965 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24968 ac_abs_top_builddir
=$ac_pwd
24969 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24970 # for backward compatibility:
24971 ac_top_builddir
=$ac_top_build_prefix
24974 .
) # We are building in place.
24976 ac_top_srcdir
=$ac_top_builddir_sub
24977 ac_abs_top_srcdir
=$ac_pwd ;;
24978 [\\/]* | ?
:[\\/]* ) # Absolute name.
24979 ac_srcdir
=$srcdir$ac_dir_suffix;
24980 ac_top_srcdir
=$srcdir
24981 ac_abs_top_srcdir
=$srcdir ;;
24982 *) # Relative name.
24983 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24984 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24985 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24987 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24997 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24998 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
25002 cat >>$CONFIG_STATUS <<\_ACEOF
25003 # If the template does not know about datarootdir, expand it.
25004 # FIXME: This hack should be removed a few years after 2.60.
25005 ac_datarootdir_hack
=; ac_datarootdir_seen
=
25007 case `sed -n '/datarootdir/ {
25016 ' $ac_file_inputs` in
25017 *datarootdir
*) ac_datarootdir_seen
=yes;;
25018 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25019 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25020 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25022 cat >>$CONFIG_STATUS <<_ACEOF
25023 ac_datarootdir_hack='
25024 s&@datadir@&$datadir&g
25025 s&@docdir@&$docdir&g
25026 s&@infodir@&$infodir&g
25027 s&@localedir@&$localedir&g
25028 s&@mandir@&$mandir&g
25029 s&\\\${datarootdir}&$datarootdir&g' ;;
25033 # Neutralize VPATH when `$srcdir' = `.'.
25034 # Shell code in configure.ac might set extrasub.
25035 # FIXME: do we really want to maintain this feature?
25036 cat >>$CONFIG_STATUS <<_ACEOF
25040 cat >>$CONFIG_STATUS <<\_ACEOF
25042 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25043 s
&@configure_input@
&$configure_input&;t t
25044 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25045 s
&@srcdir@
&$ac_srcdir&;t t
25046 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25047 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25048 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25049 s
&@builddir@
&$ac_builddir&;t t
25050 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25051 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25052 s
&@INSTALL@
&$ac_INSTALL&;t t
25053 $ac_datarootdir_hack
25054 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25056 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25057 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25058 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25059 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25060 which seems to be undefined. Please make sure it is defined." >&5
25061 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25062 which seems to be undefined. Please make sure it is defined." >&2;}
25066 -) cat "$tmp/out"; rm -f "$tmp/out";;
25067 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25076 # Transform confdefs.h into a sed script `conftest.defines', that
25077 # substitutes the proper values into config.h.in to produce config.h.
25078 rm -f conftest.defines conftest.
tail
25079 # First, append a space to every undef/define line, to ease matching.
25080 echo 's/$/ /' >conftest.defines
25081 # Then, protect against being on the right side of a sed subst, or in
25082 # an unquoted here document, in config.status. If some macros were
25083 # called several times there might be several #defines for the same
25084 # symbol, which is useless. But do not sort them, since the last
25085 # AC_DEFINE must be honored.
25086 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25087 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25088 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25089 # PARAMS is the parameter list in the macro definition--in most cases, it's
25090 # just an empty string.
25091 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25092 ac_dB
='\\)[ (].*,\\1define\\2'
25100 s/^[ ]*#[ ]*define[ ][ ]*//
25105 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25106 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25107 ' >>conftest.defines
25109 # Remove the space that was appended to ease matching.
25110 # Then replace #undef with comments. This is necessary, for
25111 # example, in the case of _POSIX_SOURCE, which is predefined and required
25112 # on some systems where configure will not decide to define it.
25113 # (The regexp can be short, since the line contains either #define or #undef.)
25115 s,^[ #]*u.*,/* & */,' >>conftest.defines
25117 # Break up conftest.defines:
25118 ac_max_sed_lines
=50
25120 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25121 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25122 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25124 ac_in
='$ac_file_inputs'
25125 ac_out
='"$tmp/out1"'
25126 ac_nxt
='"$tmp/out2"'
25130 # Write a here document:
25131 cat >>$CONFIG_STATUS <<_ACEOF
25132 # First, check the format of the line:
25133 cat >"\$tmp/defines.sed" <<\\CEOF
25134 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25135 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25139 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25141 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25142 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25143 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25144 grep . conftest.
tail >/dev
/null ||
break
25145 rm -f conftest.defines
25146 mv conftest.
tail conftest.defines
25148 rm -f conftest.defines conftest.
tail
25150 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25151 cat >>$CONFIG_STATUS <<\_ACEOF
25152 if test x
"$ac_file" != x-
; then
25153 echo "/* $configure_input */" >"$tmp/config.h"
25154 cat "$ac_result" >>"$tmp/config.h"
25155 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25156 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25157 echo "$as_me: $ac_file is unchanged" >&6;}
25160 mv "$tmp/config.h" $ac_file
25163 echo "/* $configure_input */"
25169 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25170 echo "$as_me: executing $ac_file commands" >&6;}
25175 case $ac_file$ac_mode in
25178 ### Make the necessary directories, if they don't exist.
25179 for dir
in etc lisp
; do
25180 test -d ${dir} || mkdir
${dir}
25183 # Build src/Makefile from ${srcdir}/src/Makefile.c
25184 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25185 # This must be done after src/config.h is built, since we rely on that file.
25187 # Now get this: Some word that is part of the ${srcdir} directory name
25188 # or the ${configuration} value might, just might, happen to be an
25189 # identifier like `sun4' or `i386' or something, and be predefined by
25190 # the C preprocessor to some helpful value like 1, or maybe the empty
25191 # string. Needless to say consequent macro substitutions are less
25192 # than conducive to the makefile finding the correct directory.
25193 undefs
="`echo $top_srcdir $configuration $canonical |
25194 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25195 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25198 echo creating src
/epaths.h
25199 ${MAKE-make} epaths-force
25201 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25202 # `..' to `. .' unless invoked with -traditional
25204 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25205 CPPFLAGS
="$CPPFLAGS -traditional"
25208 echo creating lib-src
/Makefile
25210 rm -f junk.c junk1.c junk2.c
25211 sed -e '/start of cpp stuff/q' \
25212 < Makefile.c
> junk1.c
25213 sed -e '1,/start of cpp stuff/d'\
25214 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25215 < Makefile.c
> junk.c
25216 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25217 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25218 cat junk1.c junk2.c
> Makefile.new
25219 rm -f junk.c junk1.c junk2.c
25220 chmod 444 Makefile.new
25221 mv -f Makefile.new Makefile
25224 echo creating src
/Makefile
25226 rm -f junk.c junk1.c junk2.c
25227 sed -e '/start of cpp stuff/q' \
25228 < Makefile.c
> junk1.c
25229 sed -e '1,/start of cpp stuff/d'\
25230 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25231 < Makefile.c
> junk.c
25232 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
25233 echo creating
${srcdir}/admin
/unidata
/Makefile
25234 cp ${srcdir}/admin
/unidata
/Makefile.
in ${srcdir}/admin
/unidata
/Makefile
25235 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
25237 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25238 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25239 cat junk1.c junk2.c
> Makefile.new
25240 rm -f junk.c junk1.c junk2.c
25241 chmod 444 Makefile.new
25242 mv -f Makefile.new Makefile
25245 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25246 echo creating src
/.gdbinit
25247 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25250 # This is how we know whether to re-run configure in certain cases.
25251 touch src
/config.stamp
25259 { (exit 0); exit 0; }
25261 chmod +x
$CONFIG_STATUS
25262 ac_clean_files
=$ac_clean_files_save
25265 # configure is writing to config.log, and then calls config.status.
25266 # config.status does its own redirection, appending to config.log.
25267 # Unfortunately, on DOS this fails, as config.log is still kept open
25268 # by configure, so config.status won't be able to write to it; its
25269 # output is simply discarded. So we exec the FD to /dev/null,
25270 # effectively closing config.log, so it can be properly (re)opened and
25271 # appended to by config.status. When coming back to configure, we
25272 # need to make the FD available again.
25273 if test "$no_create" != yes; then
25275 ac_config_status_args
=
25276 test "$silent" = yes &&
25277 ac_config_status_args
="$ac_config_status_args --quiet"
25279 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25281 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25282 # would make configure fail if this is the last instruction.
25283 $ac_cs_success ||
{ (exit 1); exit 1; }