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 --enable-font-backend compile code of 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 # Check whether --enable-font-backend was given.
2131 if test "${enable_font_backend+set}" = set; then
2132 enableval
=$enable_font_backend; USE_FONT_BACKEND
=$enableval
2138 # Check whether --enable-asserts was given.
2139 if test "${enable_asserts+set}" = set; then
2140 enableval
=$enable_asserts; USE_XASSERTS
=$enableval
2146 # Check whether --enable-maintainer-mode was given.
2147 if test "${enable_maintainer_mode+set}" = set; then
2148 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2150 USE_MAINTAINER_MODE
=no
2153 if test $USE_MAINTAINER_MODE = yes; then
2160 # Check whether --enable-locallisppath was given.
2161 if test "${enable_locallisppath+set}" = set; then
2162 enableval
=$enable_locallisppath; if test "${enableval}" = "no"; then
2164 elif test "${enableval}" != "yes"; then
2165 locallisppath
=${enableval}
2170 #### Make srcdir absolute, if it isn't already. It's important to
2171 #### avoid running the path through pwd unnecessarily, since pwd can
2172 #### give you automounter prefixes, which can go away. We do all this
2173 #### so Emacs can find its files when run uninstalled.
2174 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2179 ## We may be able to use the $PWD environment variable to make this
2180 ## absolute. But sometimes PWD is inaccurate.
2181 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2182 ## but that tested only for a well-formed and valid PWD,
2183 ## it did not object when PWD was well-formed and valid but just wrong.
2184 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2188 srcdir
="`(cd ${srcdir}; pwd)`"
2191 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2194 #### Check if the source directory already has a configured system in it.
2195 if test `pwd` != `(cd ${srcdir} && pwd)` \
2196 && test -f "${srcdir}/src/config.h" ; then
2197 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2198 as a build directory right now; it has been configured in its own
2199 right. To configure in another directory as well, you MUST
2200 use GNU make. If you do not have GNU make, then you must
2201 now do \`make distclean' in ${srcdir},
2202 and then run $0 again." >&5
2203 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2204 as a build directory right now; it has been configured in its own
2205 right. To configure in another directory as well, you MUST
2206 use GNU make. If you do not have GNU make, then you must
2207 now do \`make distclean' in ${srcdir},
2208 and then run $0 again." >&2;}
2211 #### Given the configuration name, set machfile and opsysfile to the
2212 #### names of the m/*.h and s/*.h files we should use.
2214 ### Canonicalize the configuration name.
2217 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2218 if test -f "$ac_dir/install-sh"; then
2220 ac_install_sh
="$ac_aux_dir/install-sh -c"
2222 elif test -f "$ac_dir/install.sh"; then
2224 ac_install_sh
="$ac_aux_dir/install.sh -c"
2226 elif test -f "$ac_dir/shtool"; then
2228 ac_install_sh
="$ac_aux_dir/shtool install -c"
2232 if test -z "$ac_aux_dir"; then
2233 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2234 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2235 { (exit 1); exit 1; }; }
2238 # These three variables are undocumented and unsupported,
2239 # and are intended to be withdrawn in a future Autoconf release.
2240 # They can cause serious problems if a builder's source tree is in a directory
2241 # whose full name contains unusual characters.
2242 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2243 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2244 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2247 # Make sure we can run config.sub.
2248 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2249 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2250 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2251 { (exit 1); exit 1; }; }
2253 { echo "$as_me:$LINENO: checking build system type" >&5
2254 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2255 if test "${ac_cv_build+set}" = set; then
2256 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 ac_build_alias
=$build_alias
2259 test "x$ac_build_alias" = x
&&
2260 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2261 test "x$ac_build_alias" = x
&&
2262 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2263 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2264 { (exit 1); exit 1; }; }
2265 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2266 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2267 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2268 { (exit 1); exit 1; }; }
2271 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2272 echo "${ECHO_T}$ac_cv_build" >&6; }
2273 case $ac_cv_build in
2275 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2276 echo "$as_me: error: invalid value of canonical build" >&2;}
2277 { (exit 1); exit 1; }; };;
2280 ac_save_IFS
=$IFS; IFS
='-'
2286 # Remember, the first character of IFS is used to create $*,
2287 # except with old shells:
2290 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2293 { echo "$as_me:$LINENO: checking host system type" >&5
2294 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2295 if test "${ac_cv_host+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2298 if test "x$host_alias" = x
; then
2299 ac_cv_host
=$ac_cv_build
2301 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2302 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2303 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2304 { (exit 1); exit 1; }; }
2308 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2309 echo "${ECHO_T}$ac_cv_host" >&6; }
2312 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2313 echo "$as_me: error: invalid value of canonical host" >&2;}
2314 { (exit 1); exit 1; }; };;
2317 ac_save_IFS
=$IFS; IFS
='-'
2323 # Remember, the first character of IFS is used to create $*,
2324 # except with old shells:
2327 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2331 configuration
=${host_alias-${build_alias-$host}}
2335 ### If you add support for a new configuration, add code to this
2336 ### switch statement to recognize your configuration name and select
2337 ### the appropriate operating system and machine description files.
2339 ### You would hope that you could choose an m/*.h file pretty much
2340 ### based on the machine portion of the configuration name, and an s-
2341 ### file based on the operating system portion. However, it turns out
2342 ### that each m/*.h file is pretty manufacturer-specific - for
2343 ### example hp9000s300.h is a 68000 machine;
2344 ### mips.h, pmax.h are all MIPS
2345 ### machines. So we basically have to have a special case for each
2346 ### configuration name.
2348 ### As far as handling version numbers on operating systems is
2349 ### concerned, make sure things will fail in a fixable way. If
2350 ### /etc/MACHINES doesn't say anything about version numbers, be
2351 ### prepared to handle anything reasonably. If version numbers
2352 ### matter, be sure /etc/MACHINES says something about it.
2354 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2355 ### "System V Release 4"; he writes, "The old convention encouraged
2356 ### confusion between `system' and `release' levels'."
2358 machine
='' opsys
='' unported
=no
2359 case "${canonical}" in
2364 case "${canonical}" in
2365 alpha
*-*-freebsd*) machine
=alpha
;;
2366 arm
*-*-freebsd*) machine
=arm
;;
2367 ia64-
*-freebsd*) machine
=ia64
;;
2368 sparc64-
*-freebsd*) machine
=sparc
;;
2369 powerpc-
*-freebsd*) machine
=macppc
;;
2370 i
[3456]86-*-freebsd*) machine
=intel386
;;
2371 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2375 ## FreeBSD kernel + glibc based userland
2378 case "${canonical}" in
2379 alpha
*-*-kfreebsd*) machine
=alpha
;;
2380 ia64-
*-kfreebsd*) machine
=ia64
;;
2381 sparc64-
*-kfreebsd*) machine
=sparc
;;
2382 powerpc-
*-kfreebsd*) machine
=macppc
;;
2383 i
[3456]86-*-kfreebsd*) machine
=intel386
;;
2384 amd64-
*-kfreebsd*|x86_64-
*-kfreebsd*) machine
=amdx86-64
;;
2391 if test -f /usr
/lib
/crti.o
; then
2393 cat >>confdefs.h
<<\_ACEOF
2399 case "${canonical}" in
2400 alpha
*-*-netbsd*) machine
=alpha
;;
2401 i
[3456]86-*-netbsd*) machine
=intel386
;;
2403 # This is somewhat bogus.
2404 machine
=hp9000s300
;;
2405 mips-
*-netbsd*) machine
=pmax
;;
2406 mipsel-
*-netbsd*) machine
=pmax
;;
2407 mipseb-
*-netbsd*) machine
=pmax
;;
2408 powerpc-
*-netbsd*) machine
=macppc
;;
2409 sparc
*-*-netbsd*) machine
=sparc
;;
2410 vax-
*-netbsd*) machine
=vax
;;
2411 arm-
*-netbsd*) machine
=arm
;;
2412 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2413 hppa-
*-netbsd*) machine
=hp800
;;
2420 case "${canonical}" in
2421 alpha
*-*-openbsd*) machine
=alpha
;;
2422 arm-
*-openbsd*) machine
=arm
;;
2423 hppa-
*-openbsd*) machine
=hp9000s300
;;
2424 i386-
*-openbsd*) machine
=intel386
;;
2425 m68k-
*-openbsd*) machine
=hp9000s300
;;
2426 powerpc-
*-openbsd*) machine
=macppc
;;
2427 sparc
*-*-openbsd*) machine
=sparc
;;
2428 vax-
*-openbsd*) machine
=vax
;;
2429 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2436 case "${canonical}" in
2437 i
[3456]86-*-lynxos*) machine
=intel386
;;
2438 powerpc-
*-lynxos*) machine
=powerpc
;;
2445 case "${canonical}" in
2446 i
[345]86-*-bsdi*) machine
=intel386
;;
2447 sparc-
*-bsdi*) machine
=sparc
;;
2448 powerpc-
*-bsdi*) machine
=macppc
;;
2450 case "${canonical}" in
2451 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2452 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2453 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2454 *-*-bsdi3* ) opsys
=bsdos3
;;
2455 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2459 alpha
*-*-linux-gnu* )
2460 machine
=alpha opsys
=gnu-linux
2464 machine
=arm opsys
=gnu-linux
2467 ## Apple Darwin / Mac OS X
2469 case "${canonical}" in
2470 i
[3456]86-* ) machine
=intel386
;;
2471 powerpc-
* ) machine
=powermac
;;
2475 # Define CPP as follows to make autoconf work correctly.
2476 CPP
="${CC-cc} -E -no-cpp-precomp"
2477 # Use fink packages if available.
2478 if test -d /sw
/include
&& test -d /sw
/lib
; then
2479 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2480 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2481 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2486 i
[3456]86-cubix-sysv* )
2487 machine
=intel386 opsys
=usg5-3
2490 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2491 machine
=pmax opsys
=bsd4-2
2493 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2494 machine
=pmax opsys
=bsd4-3
2497 machine
=pmax opsys
=ultrix4-3
2499 ## HP 9000 series 200 or 300
2501 machine
=hp9000s300 opsys
=bsd4-3
2503 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2505 case "`uname -r`" in
2506 ## Someone's system reports A.B8.05 for this.
2507 ## I wonder what other possibilities there are.
2508 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2509 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2510 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2511 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2512 *) machine
=hp9000s300 opsys
=hpux
;;
2516 ## HP 9000 series 700 and 800, running HP/UX
2518 machine
=hp800 opsys
=hpux
2521 machine
=hp800 opsys
=hpux8
2523 hppa
*-hp-hpux9shr* )
2524 machine
=hp800 opsys
=hpux9shr
2527 machine
=hp800 opsys
=hpux9
2529 hppa
*-hp-hpux10.2
* )
2530 machine
=hp800 opsys
=hpux10-20
2533 machine
=hp800 opsys
=hpux10
2535 hppa
*-hp-hpux1[1-9]* )
2536 machine
=hp800 opsys
=hpux11
2537 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2540 hppa
*-*-linux-gnu* )
2541 machine
=hp800 opsys
=gnu-linux
2544 ## HP 9000 series 700 and 800, running HP/UX
2546 ## Cross-compilation? Nah!
2547 case "`uname -r`" in
2548 ## Someone's system reports A.B8.05 for this.
2549 ## I wonder what other possibilities there are.
2550 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2551 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2552 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2553 *) machine
=hp800 opsys
=hpux10
;;
2557 machine
=hp800 opsys
=nextstep
2562 machine
=ibm370aix opsys
=usg5-3
2565 machine
=ibms390 opsys
=gnu-linux
2567 s390x-
*-linux-gnu* )
2568 machine
=ibms390x opsys
=gnu-linux
2570 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2571 machine
=ibmrs6000 opsys
=aix3-1
2573 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2574 machine
=ibmrs6000 opsys
=aix3-2-5
2576 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2577 machine
=ibmrs6000 opsys
=aix4-1
2579 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2580 machine
=ibmrs6000 opsys
=aix4-2
2582 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2583 machine
=ibmrs6000 opsys
=aix4-2
2585 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2586 machine
=ibmrs6000 opsys
=aix4-2
2588 rs6000-ibm-aix5
* | powerpc-ibm-aix6
* )
2589 machine
=ibmrs6000 opsys
=aix4-2
2591 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2592 machine
=ibmrs6000 opsys
=aix4
2594 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2595 machine
=ibmrs6000 opsys
=aix4-1
2597 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2598 machine
=ibmrs6000 opsys
=aix3-2
2602 i
[3456]86-prime-sysv* )
2603 machine
=i386 opsys
=usg5-3
2606 ## ncr machine running svr4.3.
2607 i
[3456]86-ncr-sysv4.3
)
2608 machine
=ncr386 opsys
=usg5-4-3
2611 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2612 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2613 i
[3456]86-ncr-sysv* )
2614 machine
=ncr386 opsys
=usg5-4-2
2617 ## Macintosh PowerPC
2618 powerpc
*-*-linux-gnu* )
2619 machine
=macppc opsys
=gnu-linux
2622 ## Workstations sold by MIPS
2623 ## This is not necessarily all workstations using the MIPS processor -
2624 ## Irises are produced by SGI, and DECstations by DEC.
2627 machine
=mips opsys
=bsd4-3
2630 machine
=mips opsys
=usg5-2-2
2634 m68
*-next-* | m68k-
*-nextstep* )
2635 machine
=m68k opsys
=nextstep
2640 machine
=ews4800 opsys
=ux4800
2644 mips-siemens-sysv
* | mips-sni-sysv
*)
2645 machine
=mips-siemens opsys
=usg5-4
2646 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2647 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2650 ## Silicon Graphics machines
2653 machine
=iris4d opsys
=irix6-5
2654 # Without defining _LANGUAGE_C, things get masked out in the headers
2655 # so that, for instance, grepping for `free' in stdlib.h fails and
2656 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2657 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2658 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2662 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2663 machine
=sparc opsys
=gnu-linux
2666 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2667 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2668 | rs6000-
*-solaris2*)
2669 case "${canonical}" in
2670 i
[3456]86-*-* ) machine
=intel386
;;
2671 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2672 powerpcle
* ) machine
=powerpcle
;;
2673 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2674 sparc
* ) machine
=sparc
;;
2677 case "${canonical}" in
2678 *-sunos5.3
* |
*-solaris2.3
* )
2680 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2682 *-sunos5.4
* |
*-solaris2.4
* )
2684 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2687 *-sunos5.5
* |
*-solaris2.5
* )
2689 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2692 *-sunos5.6
* |
*-solaris2.6
* )
2694 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2697 *-sunos5* |
*-solaris* )
2699 emacs_check_sunpro_c
=yes
2700 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2704 ## Watch out for a compiler that we know will not work.
2705 case "${canonical}" in
2706 *-solaris* |
*-sunos5* )
2707 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2708 ## /usr/ucb/cc doesn't work;
2709 ## we should find some other compiler that does work.
2717 machine
=sparc opsys
=nextstep
2720 ## Tandem Integrity S2
2722 machine
=tandem-s2 opsys
=usg5-3
2728 case "${canonical}" in
2729 *-bsd4.1
* ) opsys
=bsd4-1
;;
2730 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
2731 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
2732 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
2733 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
2734 *-vms* ) opsys
=vms
;;
2741 machine
=ia64 opsys
=gnu-linux
2744 ## Intel 386 machines where we don't care about the manufacturer
2747 case "${canonical}" in
2748 *-cygwin ) opsys
=cygwin
;;
2749 *-darwin* ) opsys
=darwin
2750 CPP
="${CC-cc} -E -no-cpp-precomp"
2752 *-linux-gnu* ) opsys
=gnu-linux
;;
2753 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2754 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2755 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
2756 *-386bsd* ) opsys
=386bsd
;;
2757 *-nextstep* ) opsys
=nextstep
;;
2758 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2762 ## m68k Linux-based GNU system
2764 machine
=m68k opsys
=gnu-linux
2767 ## Mips Linux-based GNU system
2768 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
2769 machine
=mips opsys
=gnu-linux
2773 sparc-fujitsu-sysv4
* )
2774 machine
=sparc opsys
=uxpds
2775 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2779 ## AMD x86-64 Linux-based GNU system
2780 x86_64-
*-linux-gnu* )
2781 machine
=amdx86-64 opsys
=gnu-linux
2784 ## Tensilica Xtensa Linux-based GNU system
2785 xtensa
*-*-linux-gnu* )
2786 machine
=xtensa opsys
=gnu-linux
2794 ### If the code above didn't choose an operating system, just choose
2795 ### an operating system based on the configuration name. You really
2796 ### only want to use this when you have no idea what the right
2797 ### operating system is; if you know what operating systems a machine
2798 ### runs, it's cleaner to make it explicit in the case statement
2800 if test x
"${opsys}" = x
; then
2801 case "${canonical}" in
2802 *-gnu* ) opsys
=gnu
;;
2803 *-bsd4.
[01] ) opsys
=bsd4-1
;;
2804 *-bsd4.2
) opsys
=bsd4-2
;;
2805 *-bsd4.3
) opsys
=bsd4-3
;;
2806 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
2807 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
2808 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
2809 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
2810 *-sysv4.2uw
* ) opsys
=unixware
;;
2811 *-sysv5uw* ) opsys
=unixware
;;
2812 *-sysv5OpenUNIX* ) opsys
=unixware
;;
2813 *-sysv4.1
* |
*-sysvr4.1
* )
2814 NON_GNU_CPP
=/usr
/lib
/cpp
2816 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
2817 if [ x
$NON_GNU_CPP = x
]; then
2818 if [ -f /usr
/ccs
/lib
/cpp
]; then
2819 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2821 NON_GNU_CPP
=/lib
/cpp
2825 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
2832 ### Tests for sytems that we beleive are obsolete and should be desupported.
2834 case "${machine}" in
2835 pmax | hp9000s300 | ibm370aix | ncr386 | ews4800 | mips-siemens | powerpcle | tandem-s2
)
2836 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2837 echo "and it is planned to be desupported in the next version of Emacs"
2838 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2839 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2840 echo "exit 33 line. After that you can run configure again and 'complete' the build."
2846 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
)
2847 echo "The system that you are configuring on: ${canonical} is considered to be obsolete"
2848 echo "and it is planned to be desupported in the next version of Emacs"
2849 echo "Please email emacs-devel@gnu.org as soon as possible if this system is still in use."
2850 echo "The code is still functional, but you need to edit the 'configure' script and remove the"
2851 echo "'exit 44' line. After that you can run 'configure' again and complete the build."
2858 if test $unported = yes; then
2859 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2860 Check \`etc/MACHINES' for recognized configuration names." >&5
2861 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2862 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2863 { (exit 1); exit 1; }; }
2866 machfile
="m/${machine}.h"
2867 opsysfile
="s/${opsys}.h"
2870 #### Choose a compiler.
2871 test -n "$CC" && cc_specified
=yes
2873 # Save the value of CFLAGS that the user specified.
2874 SPECIFIED_CFLAGS
="$CFLAGS"
2877 ac_cpp
='$CPP $CPPFLAGS'
2878 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2879 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2880 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2881 if test -n "$ac_tool_prefix"; then
2882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2883 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
2884 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2886 if test "${ac_cv_prog_CC+set}" = set; then
2887 echo $ECHO_N "(cached) $ECHO_C" >&6
2889 if test -n "$CC"; then
2890 ac_cv_prog_CC
="$CC" # Let the user override the test.
2892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2896 test -z "$as_dir" && as_dir
=.
2897 for ac_exec_ext
in '' $ac_executable_extensions; do
2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2899 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
2900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2910 if test -n "$CC"; then
2911 { echo "$as_me:$LINENO: result: $CC" >&5
2912 echo "${ECHO_T}$CC" >&6; }
2914 { echo "$as_me:$LINENO: result: no" >&5
2915 echo "${ECHO_T}no" >&6; }
2920 if test -z "$ac_cv_prog_CC"; then
2922 # Extract the first word of "gcc", so it can be a program name with args.
2923 set dummy gcc
; ac_word
=$2
2924 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2925 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2926 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2927 echo $ECHO_N "(cached) $ECHO_C" >&6
2929 if test -n "$ac_ct_CC"; then
2930 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
2932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2936 test -z "$as_dir" && as_dir
=.
2937 for ac_exec_ext
in '' $ac_executable_extensions; do
2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2939 ac_cv_prog_ac_ct_CC
="gcc"
2940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2949 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
2950 if test -n "$ac_ct_CC"; then
2951 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2952 echo "${ECHO_T}$ac_ct_CC" >&6; }
2954 { echo "$as_me:$LINENO: result: no" >&5
2955 echo "${ECHO_T}no" >&6; }
2958 if test "x$ac_ct_CC" = x
; then
2961 case $cross_compiling:$ac_tool_warned in
2963 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2964 whose name does not start with the host triplet. If you think this
2965 configuration is useful to you, please write to autoconf@gnu.org." >&5
2966 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2967 whose name does not start with the host triplet. If you think this
2968 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2969 ac_tool_warned
=yes ;;
2977 if test -z "$CC"; then
2978 if test -n "$ac_tool_prefix"; then
2979 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2980 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
2981 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2982 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2983 if test "${ac_cv_prog_CC+set}" = set; then
2984 echo $ECHO_N "(cached) $ECHO_C" >&6
2986 if test -n "$CC"; then
2987 ac_cv_prog_CC
="$CC" # Let the user override the test.
2989 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2993 test -z "$as_dir" && as_dir
=.
2994 for ac_exec_ext
in '' $ac_executable_extensions; do
2995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2996 ac_cv_prog_CC
="${ac_tool_prefix}cc"
2997 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3007 if test -n "$CC"; then
3008 { echo "$as_me:$LINENO: result: $CC" >&5
3009 echo "${ECHO_T}$CC" >&6; }
3011 { echo "$as_me:$LINENO: result: no" >&5
3012 echo "${ECHO_T}no" >&6; }
3018 if test -z "$CC"; then
3019 # Extract the first word of "cc", so it can be a program name with args.
3020 set dummy cc
; ac_word
=$2
3021 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3022 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3023 if test "${ac_cv_prog_CC+set}" = set; then
3024 echo $ECHO_N "(cached) $ECHO_C" >&6
3026 if test -n "$CC"; then
3027 ac_cv_prog_CC
="$CC" # Let the user override the test.
3030 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3034 test -z "$as_dir" && as_dir
=.
3035 for ac_exec_ext
in '' $ac_executable_extensions; do
3036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3037 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3038 ac_prog_rejected
=yes
3042 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3049 if test $ac_prog_rejected = yes; then
3050 # We found a bogon in the path, so make sure we never use it.
3051 set dummy
$ac_cv_prog_CC
3053 if test $# != 0; then
3054 # We chose a different compiler from the bogus one.
3055 # However, it has the same basename, so the bogon will be chosen
3056 # first if we set CC to just the basename; use the full file name.
3058 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3064 if test -n "$CC"; then
3065 { echo "$as_me:$LINENO: result: $CC" >&5
3066 echo "${ECHO_T}$CC" >&6; }
3068 { echo "$as_me:$LINENO: result: no" >&5
3069 echo "${ECHO_T}no" >&6; }
3074 if test -z "$CC"; then
3075 if test -n "$ac_tool_prefix"; then
3076 for ac_prog
in cl.exe
3078 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3079 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3080 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3081 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3082 if test "${ac_cv_prog_CC+set}" = set; then
3083 echo $ECHO_N "(cached) $ECHO_C" >&6
3085 if test -n "$CC"; then
3086 ac_cv_prog_CC
="$CC" # Let the user override the test.
3088 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3092 test -z "$as_dir" && as_dir
=.
3093 for ac_exec_ext
in '' $ac_executable_extensions; do
3094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3095 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3106 if test -n "$CC"; then
3107 { echo "$as_me:$LINENO: result: $CC" >&5
3108 echo "${ECHO_T}$CC" >&6; }
3110 { echo "$as_me:$LINENO: result: no" >&5
3111 echo "${ECHO_T}no" >&6; }
3115 test -n "$CC" && break
3118 if test -z "$CC"; then
3120 for ac_prog
in cl.exe
3122 # Extract the first word of "$ac_prog", so it can be a program name with args.
3123 set dummy
$ac_prog; ac_word
=$2
3124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3126 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3127 echo $ECHO_N "(cached) $ECHO_C" >&6
3129 if test -n "$ac_ct_CC"; then
3130 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3136 test -z "$as_dir" && as_dir
=.
3137 for ac_exec_ext
in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_ac_ct_CC
="$ac_prog"
3140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3150 if test -n "$ac_ct_CC"; then
3151 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3152 echo "${ECHO_T}$ac_ct_CC" >&6; }
3154 { echo "$as_me:$LINENO: result: no" >&5
3155 echo "${ECHO_T}no" >&6; }
3159 test -n "$ac_ct_CC" && break
3162 if test "x$ac_ct_CC" = x
; then
3165 case $cross_compiling:$ac_tool_warned in
3167 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3168 whose name does not start with the host triplet. If you think this
3169 configuration is useful to you, please write to autoconf@gnu.org." >&5
3170 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3171 whose name does not start with the host triplet. If you think this
3172 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3173 ac_tool_warned
=yes ;;
3182 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3183 See \`config.log' for more details." >&5
3184 echo "$as_me: error: no acceptable C compiler found in \$PATH
3185 See \`config.log' for more details." >&2;}
3186 { (exit 1); exit 1; }; }
3188 # Provide some information about the compiler.
3189 echo "$as_me:$LINENO: checking for C compiler version" >&5
3190 ac_compiler
=`set X $ac_compile; echo $2`
3191 { (ac_try
="$ac_compiler --version >&5"
3193 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3194 *) ac_try_echo=$ac_try;;
3196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3197 (eval "$ac_compiler --version >&5") 2>&5
3199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3200 (exit $ac_status); }
3201 { (ac_try="$ac_compiler -v >&5"
3203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3204 *) ac_try_echo
=$ac_try;;
3206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3207 (eval "$ac_compiler -v >&5") 2>&5
3209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3210 (exit $ac_status); }
3211 { (ac_try
="$ac_compiler -V >&5"
3213 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3214 *) ac_try_echo=$ac_try;;
3216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3217 (eval "$ac_compiler -V >&5") 2>&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); }
3222 cat >conftest.$ac_ext <<_ACEOF
3225 cat confdefs.h >>conftest.$ac_ext
3226 cat >>conftest.$ac_ext <<_ACEOF
3227 /* end confdefs.h. */
3237 ac_clean_files_save=$ac_clean_files
3238 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3239 # Try to create an executable without -o first, disregard a.out.
3240 # It will help us diagnose broken compilers, and finding out an intuition
3242 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3243 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3244 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3246 # List of possible output files, starting from the most likely.
3247 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3248 # only as a last resort. b.out is created by i960 compilers.
3249 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3251 # The IRIX 6 linker writes into existing files which may not be
3252 # executable, retaining their permissions. Remove them first so a
3253 # subsequent execution test works.
3255 for ac_file in $ac_files
3258 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3259 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3264 if { (ac_try="$ac_link_default"
3266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3267 *) ac_try_echo=$ac_try;;
3269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3270 (eval "$ac_link_default") 2>&5
3272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3273 (exit $ac_status); }; then
3274 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3275 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3276 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3277 # so that the user can short-circuit this test for compilers unknown to
3279 for ac_file
in $ac_files ''
3281 test -f "$ac_file" ||
continue
3283 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3286 # We found the default executable, but exeext='' is most
3290 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3292 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3294 # We set ac_cv_exeext here because the later test for it is not
3295 # safe: cross compilers may not add the suffix if given an `-o'
3296 # argument, so we may need to know it at that point already.
3297 # Even if this section looks crufty: it has the advantage of
3304 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3310 { echo "$as_me:$LINENO: result: $ac_file" >&5
3311 echo "${ECHO_T}$ac_file" >&6; }
3312 if test -z "$ac_file"; then
3313 echo "$as_me: failed program was:" >&5
3314 sed 's/^/| /' conftest.
$ac_ext >&5
3316 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3317 See \`config.log' for more details." >&5
3318 echo "$as_me: error: C compiler cannot create executables
3319 See \`config.log' for more details." >&2;}
3320 { (exit 77); exit 77; }; }
3323 ac_exeext
=$ac_cv_exeext
3325 # Check that the compiler produces executables we can run. If not, either
3326 # the compiler is broken, or we cross compile.
3327 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3328 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3329 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3330 # If not cross compiling, check that we can run a simple program.
3331 if test "$cross_compiling" != yes; then
3332 if { ac_try
='./$ac_file'
3333 { (case "(($ac_try" in
3334 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3335 *) ac_try_echo=$ac_try;;
3337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3338 (eval "$ac_try") 2>&5
3340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3341 (exit $ac_status); }; }; then
3344 if test "$cross_compiling" = maybe; then
3347 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3348 If you meant to cross compile, use \`--host'.
3349 See \`config.log' for more details.
" >&5
3350 echo "$as_me: error
: cannot run C compiled programs.
3351 If you meant to cross compile
, use \
`--host'.
3352 See \`config.log
' for more details." >&2;}
3353 { (exit 1); exit 1; }; }
3357 { echo "$as_me:$LINENO: result: yes" >&5
3358 echo "${ECHO_T}yes" >&6; }
3360 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3361 ac_clean_files=$ac_clean_files_save
3362 # Check that the compiler produces executables we can run. If not, either
3363 # the compiler is broken, or we cross compile.
3364 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3365 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3366 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3367 echo "${ECHO_T}$cross_compiling" >&6; }
3369 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3370 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3371 if { (ac_try="$ac_link"
3373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3374 *) ac_try_echo=$ac_try;;
3376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3377 (eval "$ac_link") 2>&5
3379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3380 (exit $ac_status); }; then
3381 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3382 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3383 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3385 for ac_file
in conftest.exe conftest conftest.
*; do
3386 test -f "$ac_file" ||
continue
3388 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3389 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3395 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3396 See \`config.log' for more details." >&5
3397 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3398 See \`config.log' for more details." >&2;}
3399 { (exit 1); exit 1; }; }
3402 rm -f conftest
$ac_cv_exeext
3403 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3404 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3406 rm -f conftest.
$ac_ext
3407 EXEEXT
=$ac_cv_exeext
3409 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3410 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3411 if test "${ac_cv_objext+set}" = set; then
3412 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 cat >conftest.
$ac_ext <<_ACEOF
3417 cat confdefs.h
>>conftest.
$ac_ext
3418 cat >>conftest.
$ac_ext <<_ACEOF
3419 /* end confdefs.h. */
3429 rm -f conftest.o conftest.obj
3430 if { (ac_try
="$ac_compile"
3432 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3433 *) ac_try_echo=$ac_try;;
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436 (eval "$ac_compile") 2>&5
3438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439 (exit $ac_status); }; then
3440 for ac_file in conftest.o conftest.obj conftest.*; do
3441 test -f "$ac_file" || continue;
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3444 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3449 echo "$as_me: failed program was:" >&5
3450 sed 's/^/| /' conftest.$ac_ext >&5
3452 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3453 See \`config.log
' for more details." >&5
3454 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3455 See \`config.log' for more details.
" >&2;}
3456 { (exit 1); exit 1; }; }
3459 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3461 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3462 echo "${ECHO_T}$ac_cv_objext" >&6; }
3463 OBJEXT=$ac_cv_objext
3465 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3466 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3467 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3468 echo $ECHO_N "(cached
) $ECHO_C" >&6
3470 cat >conftest.$ac_ext <<_ACEOF
3473 cat confdefs.h >>conftest.$ac_ext
3474 cat >>conftest.$ac_ext <<_ACEOF
3475 /* end confdefs.h. */
3488 rm -f conftest.$ac_objext
3489 if { (ac_try="$ac_compile"
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_compile") 2>conftest.er1
3497 grep -v '^ *+' conftest.er1 >conftest.err
3499 cat conftest.err >&5
3500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3501 (exit $ac_status); } && {
3502 test -z "$ac_c_werror_flag" ||
3503 test ! -s conftest.err
3504 } && test -s conftest.$ac_objext; then
3507 echo "$as_me: failed program was
:" >&5
3508 sed 's/^/| /' conftest.$ac_ext >&5
3513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3514 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3517 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3518 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3519 GCC=`test $ac_compiler_gnu = yes && echo yes`
3520 ac_test_CFLAGS=${CFLAGS+set}
3521 ac_save_CFLAGS=$CFLAGS
3522 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3523 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3524 if test "${ac_cv_prog_cc_g+set}" = set; then
3525 echo $ECHO_N "(cached
) $ECHO_C" >&6
3527 ac_save_c_werror_flag=$ac_c_werror_flag
3528 ac_c_werror_flag=yes
3531 cat >conftest.$ac_ext <<_ACEOF
3534 cat confdefs.h >>conftest.$ac_ext
3535 cat >>conftest.$ac_ext <<_ACEOF
3536 /* end confdefs.h. */
3546 rm -f conftest.$ac_objext
3547 if { (ac_try="$ac_compile"
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3552 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_compile") 2>conftest.er1
3555 grep -v '^ *+' conftest.er1 >conftest.err
3557 cat conftest.err >&5
3558 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3559 (exit $ac_status); } && {
3560 test -z "$ac_c_werror_flag" ||
3561 test ! -s conftest.err
3562 } && test -s conftest.$ac_objext; then
3565 echo "$as_me: failed program was
:" >&5
3566 sed 's/^/| /' conftest.$ac_ext >&5
3569 cat >conftest.$ac_ext <<_ACEOF
3572 cat confdefs.h >>conftest.$ac_ext
3573 cat >>conftest.$ac_ext <<_ACEOF
3574 /* end confdefs.h. */
3584 rm -f conftest.$ac_objext
3585 if { (ac_try="$ac_compile"
3587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3588 *) ac_try_echo=$ac_try;;
3590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3591 (eval "$ac_compile") 2>conftest.er1
3593 grep -v '^ *+' conftest.er1 >conftest.err
3595 cat conftest.err >&5
3596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3597 (exit $ac_status); } && {
3598 test -z "$ac_c_werror_flag" ||
3599 test ! -s conftest.err
3600 } && test -s conftest.$ac_objext; then
3603 echo "$as_me: failed program was
:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3606 ac_c_werror_flag=$ac_save_c_werror_flag
3608 cat >conftest.$ac_ext <<_ACEOF
3611 cat confdefs.h >>conftest.$ac_ext
3612 cat >>conftest.$ac_ext <<_ACEOF
3613 /* end confdefs.h. */
3623 rm -f conftest.$ac_objext
3624 if { (ac_try="$ac_compile"
3626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3627 *) ac_try_echo=$ac_try;;
3629 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3630 (eval "$ac_compile") 2>conftest.er1
3632 grep -v '^ *+' conftest.er1 >conftest.err
3634 cat conftest.err >&5
3635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3636 (exit $ac_status); } && {
3637 test -z "$ac_c_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest.$ac_objext; then
3642 echo "$as_me: failed program was
:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3655 ac_c_werror_flag=$ac_save_c_werror_flag
3657 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3658 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3659 if test "$ac_test_CFLAGS" = set; then
3660 CFLAGS=$ac_save_CFLAGS
3661 elif test $ac_cv_prog_cc_g = yes; then
3662 if test "$GCC" = yes; then
3668 if test "$GCC" = yes; then
3674 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3675 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3676 if test "${ac_cv_prog_cc_c89+set}" = set; then
3677 echo $ECHO_N "(cached
) $ECHO_C" >&6
3679 ac_cv_prog_cc_c89=no
3681 cat >conftest.$ac_ext <<_ACEOF
3684 cat confdefs.h >>conftest.$ac_ext
3685 cat >>conftest.$ac_ext <<_ACEOF
3686 /* end confdefs.h. */
3689 #include <sys/types.h>
3690 #include <sys/stat.h>
3691 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3692 struct buf { int x; };
3693 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3694 static char *e (p, i)
3700 static char *f (char * (*g) (char **, int), char **p, ...)
3705 s = g (p, va_arg (v,int));
3710 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3711 function prototypes and stuff, but not '\xHH' hex character constants.
3712 These don't provoke an error unfortunately, instead are silently treated
3713 as 'x'. The following induces an error, until -std is added to get
3714 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3715 array size at least. It's necessary to write '\x00'==0 to get something
3716 that's true only with -std. */
3717 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3719 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3720 inside strings and character constants. */
3722 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3724 int test (int i, double x);
3725 struct s1 {int (*f) (int a);};
3726 struct s2 {int (*f) (double a);};
3727 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3733 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3738 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3739 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3741 CC="$ac_save_CC $ac_arg"
3742 rm -f conftest.$ac_objext
3743 if { (ac_try="$ac_compile"
3745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3746 *) ac_try_echo=$ac_try;;
3748 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3749 (eval "$ac_compile") 2>conftest.er1
3751 grep -v '^ *+' conftest.er1 >conftest.err
3753 cat conftest.err >&5
3754 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3755 (exit $ac_status); } && {
3756 test -z "$ac_c_werror_flag" ||
3757 test ! -s conftest.err
3758 } && test -s conftest.$ac_objext; then
3759 ac_cv_prog_cc_c89=$ac_arg
3761 echo "$as_me: failed program was
:" >&5
3762 sed 's/^/| /' conftest.$ac_ext >&5
3767 rm -f core conftest.err conftest.$ac_objext
3768 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
3770 rm -f conftest.$ac_ext
3775 case "x
$ac_cv_prog_cc_c89" in
3777 { echo "$as_me:$LINENO: result
: none needed
" >&5
3778 echo "${ECHO_T}none needed
" >&6; } ;;
3780 { echo "$as_me:$LINENO: result
: unsupported
" >&5
3781 echo "${ECHO_T}unsupported
" >&6; } ;;
3783 CC="$CC $ac_cv_prog_cc_c89"
3784 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
3785 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3790 ac_cpp='$CPP $CPPFLAGS'
3791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3796 # On Suns, sometimes $CPP names a directory.
3797 if test -n "$CPP" && test -d "$CPP"; then
3801 ## If not using gcc, and on Solaris, and no CPP specified, see if
3802 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3803 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3804 test x"$CPP" = x; then
3805 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler
" >&5
3806 echo $ECHO_N "checking whether we are using a Sun C compiler...
$ECHO_C" >&6; }
3808 if test "${emacs_cv_sunpro_c+set}" = set; then
3809 echo $ECHO_N "(cached
) $ECHO_C" >&6
3811 cat >conftest.$ac_ext <<_ACEOF
3814 cat confdefs.h >>conftest.$ac_ext
3815 cat >>conftest.$ac_ext <<_ACEOF
3816 /* end confdefs.h. */
3829 rm -f conftest.$ac_objext conftest$ac_exeext
3830 if { (ac_try="$ac_link"
3832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3833 *) ac_try_echo=$ac_try;;
3835 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3836 (eval "$ac_link") 2>conftest.er1
3838 grep -v '^ *+' conftest.er1 >conftest.err
3840 cat conftest.err >&5
3841 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3842 (exit $ac_status); } && {
3843 test -z "$ac_c_werror_flag" ||
3844 test ! -s conftest.err
3845 } && test -s conftest$ac_exeext &&
3846 $as_test_x conftest$ac_exeext; then
3847 emacs_cv_sunpro_c=yes
3849 echo "$as_me: failed program was
:" >&5
3850 sed 's/^/| /' conftest.$ac_ext >&5
3852 emacs_cv_sunpro_c=no
3855 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3856 conftest$ac_exeext conftest.$ac_ext
3859 { echo "$as_me:$LINENO: result
: $emacs_cv_sunpro_c" >&5
3860 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3862 if test x"$emacs_cv_sunpro_c" = xyes; then
3863 NON_GNU_CPP="$CC -E -Xs"
3867 #### Some systems specify a CPP to use unless we are using GCC.
3868 #### Now that we know whether we are using GCC, we can decide whether
3869 #### to use that one.
3870 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
3875 #### Some systems specify a CC to use unless we are using GCC.
3876 #### Now that we know whether we are using GCC, we can decide whether
3877 #### to use that one.
3878 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
3879 test x$cc_specified != xyes
3884 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
3886 CC="$CC $GCC_TEST_OPTIONS"
3889 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
3891 CC="$CC $NON_GCC_TEST_OPTIONS"
3895 ac_cpp='$CPP $CPPFLAGS'
3896 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3897 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3898 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
3900 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
3901 # On Suns, sometimes $CPP names a directory.
3902 if test -n "$CPP" && test -d "$CPP"; then
3905 if test -z "$CPP"; then
3906 if test "${ac_cv_prog_CPP+set}" = set; then
3907 echo $ECHO_N "(cached
) $ECHO_C" >&6
3909 # Double quotes because CPP needs to be expanded
3910 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
3913 for ac_c_preproc_warn_flag in '' yes
3915 # Use a header file that comes with gcc, so configuring glibc
3916 # with a fresh cross-compiler works.
3917 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3918 # <limits.h> exists even on freestanding compilers.
3919 # On the NeXT, cc -E runs the code through the compiler's parser,
3920 # not just through cpp. "Syntax error
" is here to catch this case.
3921 cat >conftest.$ac_ext <<_ACEOF
3924 cat confdefs.h >>conftest.$ac_ext
3925 cat >>conftest.$ac_ext <<_ACEOF
3926 /* end confdefs.h. */
3928 # include <limits.h>
3930 # include <assert.h>
3934 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3939 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3942 grep -v '^ *+' conftest.er1 >conftest.err
3944 cat conftest.err >&5
3945 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3946 (exit $ac_status); } >/dev/null && {
3947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3948 test ! -s conftest.err
3952 echo "$as_me: failed program was
:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3955 # Broken: fails on valid input.
3959 rm -f conftest.err conftest.$ac_ext
3961 # OK, works on sane cases. Now check whether nonexistent headers
3962 # can be detected and how.
3963 cat >conftest.$ac_ext <<_ACEOF
3966 cat confdefs.h >>conftest.$ac_ext
3967 cat >>conftest.$ac_ext <<_ACEOF
3968 /* end confdefs.h. */
3969 #include <ac_nonexistent.h>
3971 if { (ac_try="$ac_cpp conftest.
$ac_ext"
3973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3974 *) ac_try_echo=$ac_try;;
3976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3977 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
3979 grep -v '^ *+' conftest.er1 >conftest.err
3981 cat conftest.err >&5
3982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3983 (exit $ac_status); } >/dev/null && {
3984 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3985 test ! -s conftest.err
3987 # Broken: success on invalid input.
3990 echo "$as_me: failed program was
:" >&5
3991 sed 's/^/| /' conftest.$ac_ext >&5
3993 # Passes both tests.
3998 rm -f conftest.err conftest.$ac_ext
4001 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4002 rm -f conftest.err conftest.$ac_ext
4003 if $ac_preproc_ok; then
4015 { echo "$as_me:$LINENO: result
: $CPP" >&5
4016 echo "${ECHO_T}$CPP" >&6; }
4018 for ac_c_preproc_warn_flag in '' yes
4020 # Use a header file that comes with gcc, so configuring glibc
4021 # with a fresh cross-compiler works.
4022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4023 # <limits.h> exists even on freestanding compilers.
4024 # On the NeXT, cc -E runs the code through the compiler's parser,
4025 # not just through cpp. "Syntax error
" is here to catch this case.
4026 cat >conftest.$ac_ext <<_ACEOF
4029 cat confdefs.h >>conftest.$ac_ext
4030 cat >>conftest.$ac_ext <<_ACEOF
4031 /* end confdefs.h. */
4033 # include <limits.h>
4035 # include <assert.h>
4039 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4042 *) ac_try_echo=$ac_try;;
4044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4045 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4047 grep -v '^ *+' conftest.er1 >conftest.err
4049 cat conftest.err >&5
4050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4051 (exit $ac_status); } >/dev/null && {
4052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4053 test ! -s conftest.err
4057 echo "$as_me: failed program was
:" >&5
4058 sed 's/^/| /' conftest.$ac_ext >&5
4060 # Broken: fails on valid input.
4064 rm -f conftest.err conftest.$ac_ext
4066 # OK, works on sane cases. Now check whether nonexistent headers
4067 # can be detected and how.
4068 cat >conftest.$ac_ext <<_ACEOF
4071 cat confdefs.h >>conftest.$ac_ext
4072 cat >>conftest.$ac_ext <<_ACEOF
4073 /* end confdefs.h. */
4074 #include <ac_nonexistent.h>
4076 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4079 *) ac_try_echo=$ac_try;;
4081 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4082 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4084 grep -v '^ *+' conftest.er1 >conftest.err
4086 cat conftest.err >&5
4087 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4088 (exit $ac_status); } >/dev/null && {
4089 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4090 test ! -s conftest.err
4092 # Broken: success on invalid input.
4095 echo "$as_me: failed program was
:" >&5
4096 sed 's/^/| /' conftest.$ac_ext >&5
4098 # Passes both tests.
4103 rm -f conftest.err conftest.$ac_ext
4106 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4107 rm -f conftest.err conftest.$ac_ext
4108 if $ac_preproc_ok; then
4111 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4112 See \
`config.log' for more details." >&5
4113 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4114 See \`config.log
' for more details." >&2;}
4115 { (exit 1); exit 1; }; }
4119 ac_cpp='$CPP $CPPFLAGS'
4120 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4121 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4122 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4126 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4127 if test "${ac_cv_path_GREP+set}" = set; then
4128 echo $ECHO_N "(cached) $ECHO_C" >&6
4130 # Extract the first word of "grep ggrep" to use in msg output
4131 if test -z "$GREP"; then
4132 set dummy grep ggrep; ac_prog_name=$2
4133 if test "${ac_cv_path_GREP+set}" = set; then
4134 echo $ECHO_N "(cached) $ECHO_C" >&6
4136 ac_path_GREP_found=false
4137 # Loop through the user's path and
test for each of PROGNAME-LIST
4138 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4139 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4142 test -z "$as_dir" && as_dir
=.
4143 for ac_prog
in grep ggrep
; do
4144 for ac_exec_ext
in '' $ac_executable_extensions; do
4145 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4146 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4147 # Check for GNU ac_path_GREP and select it if it is found.
4148 # Check for GNU $ac_path_GREP
4149 case `"$ac_path_GREP" --version 2>&1` in
4151 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4154 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4157 cat "conftest.in" "conftest.in" >"conftest.tmp"
4158 mv "conftest.tmp" "conftest.in"
4159 cp "conftest.in" "conftest.nl"
4160 echo 'GREP' >> "conftest.nl"
4161 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4162 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4163 ac_count
=`expr $ac_count + 1`
4164 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4165 # Best one so far, save it but keep looking for a better one
4166 ac_cv_path_GREP
="$ac_path_GREP"
4167 ac_path_GREP_max
=$ac_count
4169 # 10*(2^10) chars as input seems more than enough
4170 test $ac_count -gt 10 && break
4172 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4176 $ac_path_GREP_found && break 3
4186 GREP
="$ac_cv_path_GREP"
4187 if test -z "$GREP"; then
4188 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4189 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4190 { (exit 1); exit 1; }; }
4194 ac_cv_path_GREP
=$GREP
4199 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4200 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4201 GREP
="$ac_cv_path_GREP"
4204 { echo "$as_me:$LINENO: checking for egrep" >&5
4205 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4206 if test "${ac_cv_path_EGREP+set}" = set; then
4207 echo $ECHO_N "(cached) $ECHO_C" >&6
4209 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4210 then ac_cv_path_EGREP
="$GREP -E"
4212 # Extract the first word of "egrep" to use in msg output
4213 if test -z "$EGREP"; then
4214 set dummy
egrep; ac_prog_name
=$2
4215 if test "${ac_cv_path_EGREP+set}" = set; then
4216 echo $ECHO_N "(cached) $ECHO_C" >&6
4218 ac_path_EGREP_found
=false
4219 # Loop through the user's path and test for each of PROGNAME-LIST
4220 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4221 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4224 test -z "$as_dir" && as_dir
=.
4225 for ac_prog
in egrep; do
4226 for ac_exec_ext
in '' $ac_executable_extensions; do
4227 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4228 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4229 # Check for GNU ac_path_EGREP and select it if it is found.
4230 # Check for GNU $ac_path_EGREP
4231 case `"$ac_path_EGREP" --version 2>&1` in
4233 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4236 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4239 cat "conftest.in" "conftest.in" >"conftest.tmp"
4240 mv "conftest.tmp" "conftest.in"
4241 cp "conftest.in" "conftest.nl"
4242 echo 'EGREP' >> "conftest.nl"
4243 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4244 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4245 ac_count
=`expr $ac_count + 1`
4246 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4247 # Best one so far, save it but keep looking for a better one
4248 ac_cv_path_EGREP
="$ac_path_EGREP"
4249 ac_path_EGREP_max
=$ac_count
4251 # 10*(2^10) chars as input seems more than enough
4252 test $ac_count -gt 10 && break
4254 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4258 $ac_path_EGREP_found && break 3
4268 EGREP
="$ac_cv_path_EGREP"
4269 if test -z "$EGREP"; then
4270 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4271 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4272 { (exit 1); exit 1; }; }
4276 ac_cv_path_EGREP
=$EGREP
4282 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4283 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4284 EGREP
="$ac_cv_path_EGREP"
4288 { echo "$as_me:$LINENO: checking for AIX" >&5
4289 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4290 cat >conftest.
$ac_ext <<_ACEOF
4293 cat confdefs.h
>>conftest.
$ac_ext
4294 cat >>conftest.
$ac_ext <<_ACEOF
4295 /* end confdefs.h. */
4301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4302 $EGREP "yes" >/dev
/null
2>&1; then
4303 { echo "$as_me:$LINENO: result: yes" >&5
4304 echo "${ECHO_T}yes" >&6; }
4305 cat >>confdefs.h
<<\_ACEOF
4306 #define _ALL_SOURCE 1
4310 { echo "$as_me:$LINENO: result: no" >&5
4311 echo "${ECHO_T}no" >&6; }
4317 cat >>confdefs.h
<<\_ACEOF
4318 #define _GNU_SOURCE 1
4323 ### Use -Wno-pointer-sign if the compiler supports it
4324 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4325 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4326 SAVE_CFLAGS
="$CFLAGS"
4327 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4328 cat >conftest.
$ac_ext <<_ACEOF
4331 cat confdefs.h
>>conftest.
$ac_ext
4332 cat >>conftest.
$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4343 rm -f conftest.
$ac_objext
4344 if { (ac_try
="$ac_compile"
4346 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_compile") 2>conftest.er1
4352 grep -v '^ *+' conftest.er1 >conftest.err
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } && {
4357 test -z "$ac_c_werror_flag" ||
4358 test ! -s conftest.err
4359 } && test -s conftest.$ac_objext; then
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4368 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4369 if test $has_option = yes; then
4370 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4372 { echo "$as_me:$LINENO: result: $has_option" >&5
4373 echo "${ECHO_T}$has_option" >&6; }
4374 CFLAGS="$SAVE_CFLAGS"
4378 #### Some other nice autoconf tests.
4380 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4381 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4383 if test "$LN_S" = "ln -s"; then
4384 { echo "$as_me:$LINENO: result: yes" >&5
4385 echo "${ECHO_T}yes" >&6; }
4387 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4388 echo "${ECHO_T}no, using $LN_S" >&6; }
4392 ac_cpp='$CPP $CPPFLAGS'
4393 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4394 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4395 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4397 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4398 # On Suns, sometimes $CPP names a directory.
4399 if test -n "$CPP" && test -d "$CPP"; then
4402 if test -z "$CPP"; then
4403 if test "${ac_cv_prog_CPP+set}" = set; then
4404 echo $ECHO_N "(cached) $ECHO_C" >&6
4406 # Double quotes because CPP needs to be expanded
4407 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4410 for ac_c_preproc_warn_flag in '' yes
4412 # Use a header file that comes with gcc, so configuring glibc
4413 # with a fresh cross-compiler works.
4414 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4415 # <limits.h> exists even on freestanding compilers.
4416 # On the NeXT, cc -E runs the code through the compiler's parser,
4417 # not just through cpp. "Syntax error" is here to catch this case.
4418 cat >conftest.$ac_ext <<_ACEOF
4421 cat confdefs.h >>conftest.$ac_ext
4422 cat >>conftest.$ac_ext <<_ACEOF
4423 /* end confdefs.h. */
4425 # include <limits.h>
4427 # include <assert.h>
4431 if { (ac_try="$ac_cpp conftest.$ac_ext"
4433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4434 *) ac_try_echo
=$ac_try;;
4436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4437 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4439 grep -v '^ *+' conftest.er1
>conftest.err
4441 cat conftest.err
>&5
4442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443 (exit $ac_status); } >/dev
/null
&& {
4444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4445 test ! -s conftest.err
4449 echo "$as_me: failed program was:" >&5
4450 sed 's/^/| /' conftest.
$ac_ext >&5
4452 # Broken: fails on valid input.
4456 rm -f conftest.err conftest.
$ac_ext
4458 # OK, works on sane cases. Now check whether nonexistent headers
4459 # can be detected and how.
4460 cat >conftest.
$ac_ext <<_ACEOF
4463 cat confdefs.h
>>conftest.
$ac_ext
4464 cat >>conftest.
$ac_ext <<_ACEOF
4465 /* end confdefs.h. */
4466 #include <ac_nonexistent.h>
4468 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4470 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4471 *) ac_try_echo=$ac_try;;
4473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4476 grep -v '^ *+' conftest.er1 >conftest.err
4478 cat conftest.err >&5
4479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4480 (exit $ac_status); } >/dev/null && {
4481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4482 test ! -s conftest.err
4484 # Broken: success on invalid input.
4487 echo "$as_me: failed program was:" >&5
4488 sed 's/^/| /' conftest.$ac_ext >&5
4490 # Passes both tests.
4495 rm -f conftest.err conftest.$ac_ext
4498 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4499 rm -f conftest.err conftest.
$ac_ext
4500 if $ac_preproc_ok; then
4512 { echo "$as_me:$LINENO: result: $CPP" >&5
4513 echo "${ECHO_T}$CPP" >&6; }
4515 for ac_c_preproc_warn_flag
in '' yes
4517 # Use a header file that comes with gcc, so configuring glibc
4518 # with a fresh cross-compiler works.
4519 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4520 # <limits.h> exists even on freestanding compilers.
4521 # On the NeXT, cc -E runs the code through the compiler's parser,
4522 # not just through cpp. "Syntax error" is here to catch this case.
4523 cat >conftest.
$ac_ext <<_ACEOF
4526 cat confdefs.h
>>conftest.
$ac_ext
4527 cat >>conftest.
$ac_ext <<_ACEOF
4528 /* end confdefs.h. */
4530 # include <limits.h>
4532 # include <assert.h>
4536 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4539 *) ac_try_echo=$ac_try;;
4541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4544 grep -v '^ *+' conftest.er1 >conftest.err
4546 cat conftest.err >&5
4547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4548 (exit $ac_status); } >/dev/null && {
4549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4550 test ! -s conftest.err
4554 echo "$as_me: failed program was:" >&5
4555 sed 's/^/| /' conftest.$ac_ext >&5
4557 # Broken: fails on valid input.
4561 rm -f conftest.err conftest.$ac_ext
4563 # OK, works on sane cases. Now check whether nonexistent headers
4564 # can be detected and how.
4565 cat >conftest.$ac_ext <<_ACEOF
4568 cat confdefs.h >>conftest.$ac_ext
4569 cat >>conftest.$ac_ext <<_ACEOF
4570 /* end confdefs.h. */
4571 #include <ac_nonexistent.h>
4573 if { (ac_try="$ac_cpp conftest.$ac_ext"
4575 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4576 *) ac_try_echo
=$ac_try;;
4578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4581 grep -v '^ *+' conftest.er1
>conftest.err
4583 cat conftest.err
>&5
4584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4585 (exit $ac_status); } >/dev
/null
&& {
4586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4587 test ! -s conftest.err
4589 # Broken: success on invalid input.
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.
$ac_ext >&5
4595 # Passes both tests.
4600 rm -f conftest.err conftest.
$ac_ext
4603 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4604 rm -f conftest.err conftest.
$ac_ext
4605 if $ac_preproc_ok; then
4608 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4609 See \`config.log' for more details." >&5
4610 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4611 See \`config.log' for more details." >&2;}
4612 { (exit 1); exit 1; }; }
4616 ac_cpp
='$CPP $CPPFLAGS'
4617 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4618 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4619 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4621 # Find a good install program. We prefer a C program (faster),
4622 # so one script is as good as another. But avoid the broken or
4623 # incompatible versions:
4624 # SysV /etc/install, /usr/sbin/install
4625 # SunOS /usr/etc/install
4626 # IRIX /sbin/install
4628 # AmigaOS /C/install, which installs bootblocks on floppy discs
4629 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4630 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4631 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4632 # OS/2's system install, which has a completely different semantic
4633 # ./install, which can be erroneously created by make from ./install.sh.
4634 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4635 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4636 if test -z "$INSTALL"; then
4637 if test "${ac_cv_path_install+set}" = set; then
4638 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4644 test -z "$as_dir" && as_dir
=.
4645 # Account for people who put trailing slashes in PATH elements.
4647 .
/ | .
// |
/cC
/* | \
4648 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4649 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4652 # OSF1 and SCO ODT 3.0 have their own names for install.
4653 # Don't use installbsd from OSF since it installs stuff as root
4655 for ac_prog
in ginstall scoinst
install; do
4656 for ac_exec_ext
in '' $ac_executable_extensions; do
4657 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4658 if test $ac_prog = install &&
4659 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4660 # AIX install. It has an incompatible calling convention.
4662 elif test $ac_prog = install &&
4663 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4664 # program-specific install script used by HP pwplus--don't use.
4667 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4680 if test "${ac_cv_path_install+set}" = set; then
4681 INSTALL
=$ac_cv_path_install
4683 # As a last resort, use the slow shell script. Don't cache a
4684 # value for INSTALL within a source directory, because that will
4685 # break other packages using the cache if that directory is
4686 # removed, or if the value is a relative name.
4687 INSTALL
=$ac_install_sh
4690 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4691 echo "${ECHO_T}$INSTALL" >&6; }
4693 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4694 # It thinks the first close brace ends the variable substitution.
4695 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4697 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4699 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4701 if test "x$RANLIB" = x
; then
4702 if test -n "$ac_tool_prefix"; then
4703 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4704 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4705 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4706 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4707 if test "${ac_cv_prog_RANLIB+set}" = set; then
4708 echo $ECHO_N "(cached) $ECHO_C" >&6
4710 if test -n "$RANLIB"; then
4711 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4713 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4717 test -z "$as_dir" && as_dir
=.
4718 for ac_exec_ext
in '' $ac_executable_extensions; do
4719 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4720 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4721 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4730 RANLIB
=$ac_cv_prog_RANLIB
4731 if test -n "$RANLIB"; then
4732 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4733 echo "${ECHO_T}$RANLIB" >&6; }
4735 { echo "$as_me:$LINENO: result: no" >&5
4736 echo "${ECHO_T}no" >&6; }
4741 if test -z "$ac_cv_prog_RANLIB"; then
4742 ac_ct_RANLIB
=$RANLIB
4743 # Extract the first word of "ranlib", so it can be a program name with args.
4744 set dummy ranlib
; ac_word
=$2
4745 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4746 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4747 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4748 echo $ECHO_N "(cached) $ECHO_C" >&6
4750 if test -n "$ac_ct_RANLIB"; then
4751 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4753 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4757 test -z "$as_dir" && as_dir
=.
4758 for ac_exec_ext
in '' $ac_executable_extensions; do
4759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4760 ac_cv_prog_ac_ct_RANLIB
="ranlib"
4761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4770 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
4771 if test -n "$ac_ct_RANLIB"; then
4772 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4773 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4775 { echo "$as_me:$LINENO: result: no" >&5
4776 echo "${ECHO_T}no" >&6; }
4779 if test "x$ac_ct_RANLIB" = x
; then
4782 case $cross_compiling:$ac_tool_warned in
4784 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4785 whose name does not start with the host triplet. If you think this
4786 configuration is useful to you, please write to autoconf@gnu.org." >&5
4787 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4788 whose name does not start with the host triplet. If you think this
4789 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4790 ac_tool_warned
=yes ;;
4792 RANLIB
=$ac_ct_RANLIB
4795 RANLIB
="$ac_cv_prog_RANLIB"
4799 # Extract the first word of "install-info", so it can be a program name with args.
4800 set dummy install-info
; ac_word
=$2
4801 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4802 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4803 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4804 echo $ECHO_N "(cached) $ECHO_C" >&6
4806 case $INSTALL_INFO in
4808 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4811 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4815 test -z "$as_dir" && as_dir
=.
4816 for ac_exec_ext
in '' $ac_executable_extensions; do
4817 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4818 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4819 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4829 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4830 if test -n "$INSTALL_INFO"; then
4831 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4832 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4834 { echo "$as_me:$LINENO: result: no" >&5
4835 echo "${ECHO_T}no" >&6; }
4839 # Extract the first word of "install-info", so it can be a program name with args.
4840 set dummy install-info
; ac_word
=$2
4841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4843 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4846 case $INSTALL_INFO in
4848 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4852 for as_dir
in /usr
/sbin
4855 test -z "$as_dir" && as_dir
=.
4856 for ac_exec_ext
in '' $ac_executable_extensions; do
4857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4858 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4869 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4870 if test -n "$INSTALL_INFO"; then
4871 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4872 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4874 { echo "$as_me:$LINENO: result: no" >&5
4875 echo "${ECHO_T}no" >&6; }
4879 # Extract the first word of "install-info", so it can be a program name with args.
4880 set dummy install-info
; ac_word
=$2
4881 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4882 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4883 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 case $INSTALL_INFO in
4888 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
4891 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4895 test -z "$as_dir" && as_dir
=.
4896 for ac_exec_ext
in '' $ac_executable_extensions; do
4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4898 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
4899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4906 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
4910 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
4911 if test -n "$INSTALL_INFO"; then
4912 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4913 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4915 { echo "$as_me:$LINENO: result: no" >&5
4916 echo "${ECHO_T}no" >&6; }
4920 # Extract the first word of "gzip", so it can be a program name with args.
4921 set dummy
gzip; ac_word
=$2
4922 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4923 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4924 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4925 echo $ECHO_N "(cached) $ECHO_C" >&6
4929 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
4932 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4936 test -z "$as_dir" && as_dir
=.
4937 for ac_exec_ext
in '' $ac_executable_extensions; do
4938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4939 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
4940 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4950 GZIP_PROG
=$ac_cv_path_GZIP_PROG
4951 if test -n "$GZIP_PROG"; then
4952 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4953 echo "${ECHO_T}$GZIP_PROG" >&6; }
4955 { echo "$as_me:$LINENO: result: no" >&5
4956 echo "${ECHO_T}no" >&6; }
4962 ## Need makeinfo >= 4.6 (?) to build the manuals.
4963 # Extract the first word of "makeinfo", so it can be a program name with args.
4964 set dummy makeinfo
; ac_word
=$2
4965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4967 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4972 ac_cv_path_MAKEINFO
="$MAKEINFO" # Let the user override the test with a path.
4975 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir
=.
4980 for ac_exec_ext
in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_path_MAKEINFO
="$as_dir/$ac_word$ac_exec_ext"
4983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO
="no"
4994 MAKEINFO
=$ac_cv_path_MAKEINFO
4995 if test -n "$MAKEINFO"; then
4996 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4997 echo "${ECHO_T}$MAKEINFO" >&6; }
4999 { echo "$as_me:$LINENO: result: no" >&5
5000 echo "${ECHO_T}no" >&6; }
5004 if test "$MAKEINFO" != "no" && \
5005 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
5009 if test "$MAKEINFO" = "no"; then
5010 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5011 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5012 { (exit 1); exit 1; }; }
5017 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5019 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5022 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5024 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5028 late_LDFLAGS
=$LDFLAGS
5029 if test "$GCC" = yes; then
5030 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5032 LDFLAGS
="$LDFLAGS -znocombreloc"
5035 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5036 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5037 cat >conftest.
$ac_ext <<_ACEOF
5040 rm -f conftest.
$ac_objext conftest
$ac_exeext
5041 if { (ac_try
="$ac_link"
5043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5044 *) ac_try_echo=$ac_try;;
5046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5047 (eval "$ac_link") 2>conftest.er1
5049 grep -v '^ *+' conftest.er1 >conftest.err
5051 cat conftest.err >&5
5052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5053 (exit $ac_status); } && {
5054 test -z "$ac_c_werror_flag" ||
5055 test ! -s conftest.err
5056 } && test -s conftest$ac_exeext &&
5057 $as_test_x conftest$ac_exeext; then
5058 { echo "$as_me:$LINENO: result: yes" >&5
5059 echo "${ECHO_T}yes" >&6; }
5061 echo "$as_me: failed program was:" >&5
5062 sed 's/^/| /' conftest.$ac_ext >&5
5064 LDFLAGS=$late_LDFLAGS
5065 { echo "$as_me:$LINENO: result: no" >&5
5066 echo "${ECHO_T}no" >&6; }
5069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5070 conftest$ac_exeext conftest.$ac_ext
5072 #### Extract some information from the operating system and machine files.
5074 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5075 - which libraries the lib-src programs will want, and
5076 - whether the GNU malloc routines are usable..." >&5
5077 echo "$as_me: checking the machine- and system-dependent files to find out
5078 - which libraries the lib-src programs will want, and
5079 - whether the GNU malloc routines are usable..." >&6;}
5081 ### First figure out CFLAGS (which we use for running the compiler here)
5082 ### and REAL_CFLAGS (which we use for real compilation).
5083 ### The two are the same except on a few systems, where they are made
5084 ### different to work around various lossages. For example,
5085 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5086 ### as implying static linking.
5088 ### If the CFLAGS env var is specified, we use that value
5089 ### instead of the default.
5091 ### It's not important that this name contain the PID; you can't run
5092 ### two configures in the same directory and have anything work
5094 tempcname="conftest.c"
5097 #include "'${srcdir}'/src/'${opsysfile}'"
5098 #include "'${srcdir}'/src/'${machfile}'"
5099 #ifndef LIBS_MACHINE
5100 #define LIBS_MACHINE
5105 #ifndef C_SWITCH_SYSTEM
5106 #define C_SWITCH_SYSTEM
5108 #ifndef C_SWITCH_MACHINE
5109 #define C_SWITCH_MACHINE
5111 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5112 configure___ c_switch_system=C_SWITCH_SYSTEM
5113 configure___ c_switch_machine=C_SWITCH_MACHINE
5116 #define LIB_X11_LIB -lX11
5119 #ifndef LIBX11_SYSTEM
5120 #define LIBX11_SYSTEM
5122 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5125 configure___ unexec=UNEXEC
5127 configure___ unexec=unexec.o
5130 #ifdef SYSTEM_MALLOC
5131 configure___ system_malloc=yes
5133 configure___ system_malloc=no
5136 #ifdef USE_MMAP_FOR_BUFFERS
5137 configure___ use_mmap_for_buffers=yes
5139 configure___ use_mmap_for_buffers=no
5142 #ifndef C_DEBUG_SWITCH
5143 #define C_DEBUG_SWITCH -g
5146 #ifndef C_OPTIMIZE_SWITCH
5148 #define C_OPTIMIZE_SWITCH -O2
5150 #define C_OPTIMIZE_SWITCH -O
5154 #ifndef C_WARNINGS_SWITCH
5155 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5158 #ifndef LD_SWITCH_MACHINE
5159 #define LD_SWITCH_MACHINE
5162 #ifndef LD_SWITCH_SYSTEM
5163 #define LD_SWITCH_SYSTEM
5166 #ifndef LD_SWITCH_X_SITE_AUX
5167 #define LD_SWITCH_X_SITE_AUX
5170 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5171 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5173 #ifdef THIS_IS_CONFIGURE
5175 /* Get the CFLAGS for tests in configure. */
5177 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5179 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5182 #else /* not THIS_IS_CONFIGURE */
5184 /* Get the CFLAGS for real compilation. */
5186 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5188 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5191 #endif /* not THIS_IS_CONFIGURE */
5194 # The value of CPP is a quoted variable reference, so we need to do this
5195 # to get its actual value...
5196 CPP=`eval "echo $CPP"`
5197 eval `${CPP} -Isrc ${tempcname} \
5198 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5199 if test "x$SPECIFIED_CFLAGS" = x; then
5200 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5201 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5203 REAL_CFLAGS="$CFLAGS"
5207 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5209 ### Make sure subsequent tests use flags consistent with the build flags.
5211 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5212 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5214 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5219 # Check whether --enable-largefile was given.
5220 if test "${enable_largefile+set}" = set; then
5221 enableval=$enable_largefile;
5224 if test "$enable_largefile" != no; then
5226 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5227 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5228 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5229 echo $ECHO_N "(cached) $ECHO_C" >&6
5231 ac_cv_sys_largefile_CC=no
5232 if test "$GCC" != yes; then
5235 # IRIX 6.2 and later do not support large files by default,
5236 # so use the C compiler's -n32 option if that helps.
5237 cat >conftest.$ac_ext <<_ACEOF
5240 cat confdefs.h >>conftest.$ac_ext
5241 cat >>conftest.$ac_ext <<_ACEOF
5242 /* end confdefs.h. */
5243 #include <sys/types.h>
5244 /* Check that off_t can represent 2**63 - 1 correctly.
5245 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5246 since some C++ compilers masquerading as C compilers
5247 incorrectly reject 9223372036854775807. */
5248 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5249 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5250 && LARGE_OFF_T % 2147483647 == 1)
5260 rm -f conftest.$ac_objext
5261 if { (ac_try="$ac_compile"
5263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5264 *) ac_try_echo
=$ac_try;;
5266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5267 (eval "$ac_compile") 2>conftest.er1
5269 grep -v '^ *+' conftest.er1
>conftest.err
5271 cat conftest.err
>&5
5272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5273 (exit $ac_status); } && {
5274 test -z "$ac_c_werror_flag" ||
5275 test ! -s conftest.err
5276 } && test -s conftest.
$ac_objext; then
5279 echo "$as_me: failed program was:" >&5
5280 sed 's/^/| /' conftest.
$ac_ext >&5
5285 rm -f core conftest.err conftest.
$ac_objext
5287 rm -f conftest.
$ac_objext
5288 if { (ac_try
="$ac_compile"
5290 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5291 *) ac_try_echo=$ac_try;;
5293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5294 (eval "$ac_compile") 2>conftest.er1
5296 grep -v '^ *+' conftest.er1 >conftest.err
5298 cat conftest.err >&5
5299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5300 (exit $ac_status); } && {
5301 test -z "$ac_c_werror_flag" ||
5302 test ! -s conftest.err
5303 } && test -s conftest.$ac_objext; then
5304 ac_cv_sys_largefile_CC=' -n32'; break
5306 echo "$as_me: failed program was:" >&5
5307 sed 's/^/| /' conftest.$ac_ext >&5
5312 rm -f core conftest.err conftest.$ac_objext
5316 rm -f conftest.$ac_ext
5319 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5320 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5321 if test "$ac_cv_sys_largefile_CC" != no; then
5322 CC=$CC$ac_cv_sys_largefile_CC
5325 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5326 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5327 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5328 echo $ECHO_N "(cached) $ECHO_C" >&6
5331 cat >conftest.$ac_ext <<_ACEOF
5334 cat confdefs.h >>conftest.$ac_ext
5335 cat >>conftest.$ac_ext <<_ACEOF
5336 /* end confdefs.h. */
5337 #include <sys/types.h>
5338 /* Check that off_t can represent 2**63 - 1 correctly.
5339 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5340 since some C++ compilers masquerading as C compilers
5341 incorrectly reject 9223372036854775807. */
5342 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5343 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5344 && LARGE_OFF_T % 2147483647 == 1)
5354 rm -f conftest.$ac_objext
5355 if { (ac_try="$ac_compile"
5357 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5358 *) ac_try_echo
=$ac_try;;
5360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5361 (eval "$ac_compile") 2>conftest.er1
5363 grep -v '^ *+' conftest.er1
>conftest.err
5365 cat conftest.err
>&5
5366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5367 (exit $ac_status); } && {
5368 test -z "$ac_c_werror_flag" ||
5369 test ! -s conftest.err
5370 } && test -s conftest.
$ac_objext; then
5371 ac_cv_sys_file_offset_bits
=no
; break
5373 echo "$as_me: failed program was:" >&5
5374 sed 's/^/| /' conftest.
$ac_ext >&5
5379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5380 cat >conftest.
$ac_ext <<_ACEOF
5383 cat confdefs.h
>>conftest.
$ac_ext
5384 cat >>conftest.
$ac_ext <<_ACEOF
5385 /* end confdefs.h. */
5386 #define _FILE_OFFSET_BITS 64
5387 #include <sys/types.h>
5388 /* Check that off_t can represent 2**63 - 1 correctly.
5389 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5390 since some C++ compilers masquerading as C compilers
5391 incorrectly reject 9223372036854775807. */
5392 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5393 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5394 && LARGE_OFF_T % 2147483647 == 1)
5404 rm -f conftest.
$ac_objext
5405 if { (ac_try
="$ac_compile"
5407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5408 *) ac_try_echo=$ac_try;;
5410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5411 (eval "$ac_compile") 2>conftest.er1
5413 grep -v '^ *+' conftest.er1 >conftest.err
5415 cat conftest.err >&5
5416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5417 (exit $ac_status); } && {
5418 test -z "$ac_c_werror_flag" ||
5419 test ! -s conftest.err
5420 } && test -s conftest.$ac_objext; then
5421 ac_cv_sys_file_offset_bits=64; break
5423 echo "$as_me: failed program was:" >&5
5424 sed 's/^/| /' conftest.$ac_ext >&5
5429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5430 ac_cv_sys_file_offset_bits=unknown
5434 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5435 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5436 case $ac_cv_sys_file_offset_bits in #(
5439 cat >>confdefs.h <<_ACEOF
5440 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5445 if test $ac_cv_sys_file_offset_bits = unknown; then
5446 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5447 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5448 if test "${ac_cv_sys_large_files+set}" = set; then
5449 echo $ECHO_N "(cached) $ECHO_C" >&6
5452 cat >conftest.$ac_ext <<_ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 #include <sys/types.h>
5459 /* Check that off_t can represent 2**63 - 1 correctly.
5460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5461 since some C++ compilers masquerading as C compilers
5462 incorrectly reject 9223372036854775807. */
5463 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5465 && LARGE_OFF_T % 2147483647 == 1)
5475 rm -f conftest.$ac_objext
5476 if { (ac_try="$ac_compile"
5478 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5479 *) ac_try_echo
=$ac_try;;
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_compile") 2>conftest.er1
5484 grep -v '^ *+' conftest.er1
>conftest.err
5486 cat conftest.err
>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && {
5489 test -z "$ac_c_werror_flag" ||
5490 test ! -s conftest.err
5491 } && test -s conftest.
$ac_objext; then
5492 ac_cv_sys_large_files
=no
; break
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.
$ac_ext >&5
5500 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5501 cat >conftest.
$ac_ext <<_ACEOF
5504 cat confdefs.h
>>conftest.
$ac_ext
5505 cat >>conftest.
$ac_ext <<_ACEOF
5506 /* end confdefs.h. */
5507 #define _LARGE_FILES 1
5508 #include <sys/types.h>
5509 /* Check that off_t can represent 2**63 - 1 correctly.
5510 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5511 since some C++ compilers masquerading as C compilers
5512 incorrectly reject 9223372036854775807. */
5513 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5514 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5515 && LARGE_OFF_T % 2147483647 == 1)
5525 rm -f conftest.
$ac_objext
5526 if { (ac_try
="$ac_compile"
5528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5529 *) ac_try_echo=$ac_try;;
5531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5532 (eval "$ac_compile") 2>conftest.er1
5534 grep -v '^ *+' conftest.er1 >conftest.err
5536 cat conftest.err >&5
5537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5538 (exit $ac_status); } && {
5539 test -z "$ac_c_werror_flag" ||
5540 test ! -s conftest.err
5541 } && test -s conftest.$ac_objext; then
5542 ac_cv_sys_large_files=1; break
5544 echo "$as_me: failed program was:" >&5
5545 sed 's/^/| /' conftest.$ac_ext >&5
5550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5551 ac_cv_sys_large_files=unknown
5555 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5556 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5557 case $ac_cv_sys_large_files in #(
5560 cat >>confdefs.h <<_ACEOF
5561 #define _LARGE_FILES $ac_cv_sys_large_files
5571 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5572 ### be located in either /usr/lib64 or /usr/lib.
5573 case "${canonical}" in
5574 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5575 if test -d /usr/lib64; then
5577 cat >>confdefs.h <<\_ACEOF
5578 #define HAVE_LIB64_DIR 1
5587 if test "${with_sound}" != "no"; then
5588 # Sound support for GNU/Linux and the free BSDs.
5589 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5590 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5591 if test "${ac_cv_header_stdc+set}" = set; then
5592 echo $ECHO_N "(cached) $ECHO_C" >&6
5594 cat >conftest.$ac_ext <<_ACEOF
5597 cat confdefs.h >>conftest.$ac_ext
5598 cat >>conftest.$ac_ext <<_ACEOF
5599 /* end confdefs.h. */
5613 rm -f conftest.$ac_objext
5614 if { (ac_try="$ac_compile"
5616 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5617 *) ac_try_echo
=$ac_try;;
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5622 grep -v '^ *+' conftest.er1
>conftest.err
5624 cat conftest.err
>&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.
$ac_objext; then
5630 ac_cv_header_stdc
=yes
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.
$ac_ext >&5
5635 ac_cv_header_stdc
=no
5638 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5640 if test $ac_cv_header_stdc = yes; then
5641 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5642 cat >conftest.
$ac_ext <<_ACEOF
5645 cat confdefs.h
>>conftest.
$ac_ext
5646 cat >>conftest.
$ac_ext <<_ACEOF
5647 /* end confdefs.h. */
5651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5652 $EGREP "memchr" >/dev
/null
2>&1; then
5655 ac_cv_header_stdc
=no
5661 if test $ac_cv_header_stdc = yes; then
5662 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5663 cat >conftest.
$ac_ext <<_ACEOF
5666 cat confdefs.h
>>conftest.
$ac_ext
5667 cat >>conftest.
$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5673 $EGREP "free" >/dev
/null
2>&1; then
5676 ac_cv_header_stdc
=no
5682 if test $ac_cv_header_stdc = yes; then
5683 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5684 if test "$cross_compiling" = yes; then
5687 cat >conftest.
$ac_ext <<_ACEOF
5690 cat confdefs.h
>>conftest.
$ac_ext
5691 cat >>conftest.
$ac_ext <<_ACEOF
5692 /* end confdefs.h. */
5695 #if ((' ' & 0x0FF) == 0x020)
5696 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5697 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5699 # define ISLOWER(c) \
5700 (('a' <= (c) && (c) <= 'i') \
5701 || ('j' <= (c) && (c) <= 'r') \
5702 || ('s' <= (c) && (c) <= 'z'))
5703 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5706 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5711 for (i = 0; i < 256; i++)
5712 if (XOR (islower (i), ISLOWER (i))
5713 || toupper (i) != TOUPPER (i))
5718 rm -f conftest
$ac_exeext
5719 if { (ac_try
="$ac_link"
5721 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5722 *) ac_try_echo=$ac_try;;
5724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5725 (eval "$ac_link") 2>&5
5727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5728 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5729 { (case "(($ac_try" in
5730 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5731 *) ac_try_echo
=$ac_try;;
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_try") 2>&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); }; }; then
5740 echo "$as_me: program exited with status $ac_status" >&5
5741 echo "$as_me: failed program was:" >&5
5742 sed 's/^/| /' conftest.
$ac_ext >&5
5745 ac_cv_header_stdc
=no
5747 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5753 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5754 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5755 if test $ac_cv_header_stdc = yes; then
5757 cat >>confdefs.h
<<\_ACEOF
5758 #define STDC_HEADERS 1
5763 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5773 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5774 inttypes.h stdint.h unistd.h
5776 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5779 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5780 echo $ECHO_N "(cached) $ECHO_C" >&6
5782 cat >conftest.
$ac_ext <<_ACEOF
5785 cat confdefs.h
>>conftest.
$ac_ext
5786 cat >>conftest.
$ac_ext <<_ACEOF
5787 /* end confdefs.h. */
5788 $ac_includes_default
5790 #include <$ac_header>
5792 rm -f conftest.
$ac_objext
5793 if { (ac_try
="$ac_compile"
5795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_compile") 2>conftest.er1
5801 grep -v '^ *+' conftest.er1 >conftest.err
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } && {
5806 test -z "$ac_c_werror_flag" ||
5807 test ! -s conftest.err
5808 } && test -s conftest.$ac_objext; then
5809 eval "$as_ac_Header=yes"
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5814 eval "$as_ac_Header=no"
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5819 ac_res=`eval echo '${'$as_ac_Header'}'`
5820 { echo "$as_me:$LINENO: result: $ac_res" >&5
5821 echo "${ECHO_T}$ac_res" >&6; }
5822 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5823 cat >>confdefs.h <<_ACEOF
5824 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5835 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5837 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
5838 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5839 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5840 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5841 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5842 echo $ECHO_N "(cached) $ECHO_C" >&6
5844 ac_res=`eval echo '${'$as_ac_Header'}'`
5845 { echo "$as_me:$LINENO: result: $ac_res" >&5
5846 echo "${ECHO_T}$ac_res" >&6; }
5848 # Is the header compilable?
5849 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5850 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5851 cat >conftest.$ac_ext <<_ACEOF
5854 cat confdefs.h >>conftest.$ac_ext
5855 cat >>conftest.$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5857 $ac_includes_default
5858 #include <$ac_header>
5860 rm -f conftest.$ac_objext
5861 if { (ac_try="$ac_compile"
5863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5864 *) ac_try_echo
=$ac_try;;
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_compile") 2>conftest.er1
5869 grep -v '^ *+' conftest.er1
>conftest.err
5871 cat conftest.err
>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } && {
5874 test -z "$ac_c_werror_flag" ||
5875 test ! -s conftest.err
5876 } && test -s conftest.
$ac_objext; then
5877 ac_header_compiler
=yes
5879 echo "$as_me: failed program was:" >&5
5880 sed 's/^/| /' conftest.
$ac_ext >&5
5882 ac_header_compiler
=no
5885 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5887 echo "${ECHO_T}$ac_header_compiler" >&6; }
5889 # Is the header present?
5890 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5891 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5892 cat >conftest.
$ac_ext <<_ACEOF
5895 cat confdefs.h
>>conftest.
$ac_ext
5896 cat >>conftest.
$ac_ext <<_ACEOF
5897 /* end confdefs.h. */
5898 #include <$ac_header>
5900 if { (ac_try
="$ac_cpp conftest.$ac_ext"
5902 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5903 *) ac_try_echo=$ac_try;;
5905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5908 grep -v '^ *+' conftest.er1 >conftest.err
5910 cat conftest.err >&5
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } >/dev/null && {
5913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5914 test ! -s conftest.err
5916 ac_header_preproc=yes
5918 echo "$as_me: failed program was:" >&5
5919 sed 's/^/| /' conftest.$ac_ext >&5
5921 ac_header_preproc=no
5924 rm -f conftest.err conftest.$ac_ext
5925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5926 echo "${ECHO_T}$ac_header_preproc" >&6; }
5928 # So? What about this header?
5929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5931 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5932 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5933 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5934 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5935 ac_header_preproc=yes
5938 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5939 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5940 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5941 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5942 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5943 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5944 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5945 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5946 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5947 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5948 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5949 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5953 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5954 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5956 echo $ECHO_N "(cached) $ECHO_C" >&6
5958 eval "$as_ac_Header=\$ac_header_preproc"
5960 ac_res=`eval echo '${'$as_ac_Header'}'`
5961 { echo "$as_me:$LINENO: result: $ac_res" >&5
5962 echo "${ECHO_T}$ac_res" >&6; }
5965 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5966 cat >>confdefs.h <<_ACEOF
5967 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
5974 # Emulation library used on NetBSD.
5975 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5976 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5977 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5978 echo $ECHO_N "(cached) $ECHO_C" >&6
5980 ac_check_lib_save_LIBS=$LIBS
5981 LIBS="-lossaudio $LIBS"
5982 cat >conftest.$ac_ext <<_ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5989 /* Override any GCC internal prototype to avoid an error.
5990 Use char because int might match the return type of a GCC
5991 builtin and then its argument prototype would still apply. */
5999 return _oss_ioctl ();
6004 rm -f conftest.$ac_objext conftest$ac_exeext
6005 if { (ac_try="$ac_link"
6007 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6008 *) ac_try_echo
=$ac_try;;
6010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6011 (eval "$ac_link") 2>conftest.er1
6013 grep -v '^ *+' conftest.er1
>conftest.err
6015 cat conftest.err
>&5
6016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6017 (exit $ac_status); } && {
6018 test -z "$ac_c_werror_flag" ||
6019 test ! -s conftest.err
6020 } && test -s conftest
$ac_exeext &&
6021 $as_test_x conftest
$ac_exeext; then
6022 ac_cv_lib_ossaudio__oss_ioctl
=yes
6024 echo "$as_me: failed program was:" >&5
6025 sed 's/^/| /' conftest.
$ac_ext >&5
6027 ac_cv_lib_ossaudio__oss_ioctl
=no
6030 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6031 conftest
$ac_exeext conftest.
$ac_ext
6032 LIBS
=$ac_check_lib_save_LIBS
6034 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6035 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6036 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6045 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6049 # Extract the first word of "pkg-config", so it can be a program name with args.
6050 set dummy pkg-config
; ac_word
=$2
6051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6053 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6054 echo $ECHO_N "(cached) $ECHO_C" >&6
6058 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6065 test -z "$as_dir" && as_dir
=.
6066 for ac_exec_ext
in '' $ac_executable_extensions; do
6067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6068 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6076 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6080 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6081 if test -n "$PKG_CONFIG"; then
6082 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6083 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6085 { echo "$as_me:$LINENO: result: no" >&5
6086 echo "${ECHO_T}no" >&6; }
6091 if test "$PKG_CONFIG" = "no" ; then
6094 PKG_CONFIG_MIN_VERSION
=0.9.0
6095 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6096 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6097 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6099 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6100 { echo "$as_me:$LINENO: result: yes" >&5
6101 echo "${ECHO_T}yes" >&6; }
6104 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6105 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6106 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6107 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6108 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6110 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6111 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6112 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6113 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6114 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6116 { echo "$as_me:$LINENO: result: no" >&5
6117 echo "${ECHO_T}no" >&6; }
6120 ## If we have a custom action on failure, don't print errors, but
6121 ## do set a variable so people can do so.
6122 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6129 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6130 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6134 if test $succeeded = yes; then
6140 if test $HAVE_ALSA = yes; then
6141 SAVE_CFLAGS
="$CFLAGS"
6142 SAVE_LDFLAGS
="$LDFLAGS"
6143 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6144 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6145 cat >conftest.
$ac_ext <<_ACEOF
6148 cat confdefs.h
>>conftest.
$ac_ext
6149 cat >>conftest.
$ac_ext <<_ACEOF
6150 /* end confdefs.h. */
6151 #include <asoundlib.h>
6155 snd_lib_error_set_handler (0);
6160 rm -f conftest.
$ac_objext
6161 if { (ac_try
="$ac_compile"
6163 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_compile") 2>conftest.er1
6169 grep -v '^ *+' conftest.er1 >conftest.err
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } && {
6174 test -z "$ac_c_werror_flag" ||
6175 test ! -s conftest.err
6176 } && test -s conftest.$ac_objext; then
6177 emacs_alsa_normal=yes
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6182 emacs_alsa_normal=no
6185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186 if test "$emacs_alsa_normal" != yes; then
6187 cat >conftest.$ac_ext <<_ACEOF
6190 cat confdefs.h >>conftest.$ac_ext
6191 cat >>conftest.$ac_ext <<_ACEOF
6192 /* end confdefs.h. */
6193 #include <alsa/asoundlib.h>
6197 snd_lib_error_set_handler (0);
6202 rm -f conftest.$ac_objext
6203 if { (ac_try="$ac_compile"
6205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6206 *) ac_try_echo
=$ac_try;;
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_compile") 2>conftest.er1
6211 grep -v '^ *+' conftest.er1
>conftest.err
6213 cat conftest.err
>&5
6214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6215 (exit $ac_status); } && {
6216 test -z "$ac_c_werror_flag" ||
6217 test ! -s conftest.err
6218 } && test -s conftest.
$ac_objext; then
6219 emacs_alsa_subdir
=yes
6221 echo "$as_me: failed program was:" >&5
6222 sed 's/^/| /' conftest.
$ac_ext >&5
6224 emacs_alsa_subdir
=no
6227 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6228 if test "$emacs_alsa_subdir" != yes; then
6229 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6230 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6231 { (exit 1); exit 1; }; }
6233 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6236 CFLAGS
="$SAVE_CFLAGS"
6237 LDFLAGS
="$SAVE_LDFLAGS"
6238 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6239 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6241 cat >>confdefs.h
<<\_ACEOF
6274 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6275 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6276 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6277 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6280 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6281 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6282 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6283 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6284 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6285 echo $ECHO_N "(cached) $ECHO_C" >&6
6287 ac_res
=`eval echo '${'$as_ac_Header'}'`
6288 { echo "$as_me:$LINENO: result: $ac_res" >&5
6289 echo "${ECHO_T}$ac_res" >&6; }
6291 # Is the header compilable?
6292 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6293 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6294 cat >conftest.
$ac_ext <<_ACEOF
6297 cat confdefs.h
>>conftest.
$ac_ext
6298 cat >>conftest.
$ac_ext <<_ACEOF
6299 /* end confdefs.h. */
6300 $ac_includes_default
6301 #include <$ac_header>
6303 rm -f conftest.
$ac_objext
6304 if { (ac_try
="$ac_compile"
6306 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6307 *) ac_try_echo=$ac_try;;
6309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6310 (eval "$ac_compile") 2>conftest.er1
6312 grep -v '^ *+' conftest.er1 >conftest.err
6314 cat conftest.err >&5
6315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6316 (exit $ac_status); } && {
6317 test -z "$ac_c_werror_flag" ||
6318 test ! -s conftest.err
6319 } && test -s conftest.$ac_objext; then
6320 ac_header_compiler=yes
6322 echo "$as_me: failed program was:" >&5
6323 sed 's/^/| /' conftest.$ac_ext >&5
6325 ac_header_compiler=no
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6330 echo "${ECHO_T}$ac_header_compiler" >&6; }
6332 # Is the header present?
6333 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6334 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6335 cat >conftest.$ac_ext <<_ACEOF
6338 cat confdefs.h >>conftest.$ac_ext
6339 cat >>conftest.$ac_ext <<_ACEOF
6340 /* end confdefs.h. */
6341 #include <$ac_header>
6343 if { (ac_try="$ac_cpp conftest.$ac_ext"
6345 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6346 *) ac_try_echo
=$ac_try;;
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6351 grep -v '^ *+' conftest.er1
>conftest.err
6353 cat conftest.err
>&5
6354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6355 (exit $ac_status); } >/dev
/null
&& {
6356 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6357 test ! -s conftest.err
6359 ac_header_preproc
=yes
6361 echo "$as_me: failed program was:" >&5
6362 sed 's/^/| /' conftest.
$ac_ext >&5
6364 ac_header_preproc
=no
6367 rm -f conftest.err conftest.
$ac_ext
6368 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6369 echo "${ECHO_T}$ac_header_preproc" >&6; }
6371 # So? What about this header?
6372 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6374 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6375 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6377 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6378 ac_header_preproc
=yes
6381 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6382 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6383 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6384 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6385 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6386 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6387 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6388 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6389 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6390 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6391 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6392 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6396 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6398 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6399 echo $ECHO_N "(cached) $ECHO_C" >&6
6401 eval "$as_ac_Header=\$ac_header_preproc"
6403 ac_res
=`eval echo '${'$as_ac_Header'}'`
6404 { echo "$as_me:$LINENO: result: $ac_res" >&5
6405 echo "${ECHO_T}$ac_res" >&6; }
6408 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6409 cat >>confdefs.h
<<_ACEOF
6410 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6418 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6419 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6420 cat >conftest.
$ac_ext <<_ACEOF
6423 cat confdefs.h
>>conftest.
$ac_ext
6424 cat >>conftest.
$ac_ext <<_ACEOF
6425 /* end confdefs.h. */
6426 #include <sys/personality.h>
6430 personality (PER_LINUX32)
6435 rm -f conftest.
$ac_objext
6436 if { (ac_try
="$ac_compile"
6438 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6439 *) ac_try_echo=$ac_try;;
6441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6442 (eval "$ac_compile") 2>conftest.er1
6444 grep -v '^ *+' conftest.er1 >conftest.err
6446 cat conftest.err >&5
6447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6448 (exit $ac_status); } && {
6449 test -z "$ac_c_werror_flag" ||
6450 test ! -s conftest.err
6451 } && test -s conftest.$ac_objext; then
6452 emacs_cv_personality_linux32=yes
6454 echo "$as_me: failed program was:" >&5
6455 sed 's/^/| /' conftest.$ac_ext >&5
6457 emacs_cv_personality_linux32=no
6460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6461 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6462 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6464 if test $emacs_cv_personality_linux32 = yes; then
6466 cat >>confdefs.h <<\_ACEOF
6467 #define HAVE_PERSONALITY_LINUX32 1
6473 for ac_header in term.h
6475 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6479 echo $ECHO_N "(cached) $ECHO_C" >&6
6481 cat >conftest.$ac_ext <<_ACEOF
6484 cat confdefs.h >>conftest.$ac_ext
6485 cat >>conftest.$ac_ext <<_ACEOF
6486 /* end confdefs.h. */
6487 #include <$ac_header>
6489 if { (ac_try="$ac_cpp conftest.$ac_ext"
6491 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6492 *) ac_try_echo
=$ac_try;;
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6497 grep -v '^ *+' conftest.er1
>conftest.err
6499 cat conftest.err
>&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } >/dev
/null
&& {
6502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6503 test ! -s conftest.err
6505 eval "$as_ac_Header=yes"
6507 echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.
$ac_ext >&5
6510 eval "$as_ac_Header=no"
6513 rm -f conftest.err conftest.
$ac_ext
6515 ac_res
=`eval echo '${'$as_ac_Header'}'`
6516 { echo "$as_me:$LINENO: result: $ac_res" >&5
6517 echo "${ECHO_T}$ac_res" >&6; }
6518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6519 cat >>confdefs.h
<<_ACEOF
6520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6527 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6528 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6529 if test "${ac_cv_header_stdc+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6532 cat >conftest.
$ac_ext <<_ACEOF
6535 cat confdefs.h
>>conftest.
$ac_ext
6536 cat >>conftest.
$ac_ext <<_ACEOF
6537 /* end confdefs.h. */
6551 rm -f conftest.
$ac_objext
6552 if { (ac_try
="$ac_compile"
6554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6555 *) ac_try_echo=$ac_try;;
6557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6558 (eval "$ac_compile") 2>conftest.er1
6560 grep -v '^ *+' conftest.er1 >conftest.err
6562 cat conftest.err >&5
6563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6564 (exit $ac_status); } && {
6565 test -z "$ac_c_werror_flag" ||
6566 test ! -s conftest.err
6567 } && test -s conftest.$ac_objext; then
6568 ac_cv_header_stdc=yes
6570 echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6573 ac_cv_header_stdc=no
6576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6578 if test $ac_cv_header_stdc = yes; then
6579 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6580 cat >conftest.$ac_ext <<_ACEOF
6583 cat confdefs.h >>conftest.$ac_ext
6584 cat >>conftest.$ac_ext <<_ACEOF
6585 /* end confdefs.h. */
6589 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6590 $EGREP "memchr" >/dev/null 2>&1; then
6593 ac_cv_header_stdc=no
6599 if test $ac_cv_header_stdc = yes; then
6600 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6601 cat >conftest.$ac_ext <<_ACEOF
6604 cat confdefs.h >>conftest.$ac_ext
6605 cat >>conftest.$ac_ext <<_ACEOF
6606 /* end confdefs.h. */
6610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6611 $EGREP "free" >/dev/null 2>&1; then
6614 ac_cv_header_stdc=no
6620 if test $ac_cv_header_stdc = yes; then
6621 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6622 if test "$cross_compiling" = yes; then
6625 cat >conftest.$ac_ext <<_ACEOF
6628 cat confdefs.h >>conftest.$ac_ext
6629 cat >>conftest.$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6633 #if ((' ' & 0x0FF) == 0x020)
6634 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6635 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6637 # define ISLOWER(c) \
6638 (('a' <= (c) && (c) <= 'i') \
6639 || ('j' <= (c) && (c) <= 'r') \
6640 || ('s' <= (c) && (c) <= 'z'))
6641 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6644 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6649 for (i = 0; i < 256; i++)
6650 if (XOR (islower (i), ISLOWER (i))
6651 || toupper (i) != TOUPPER (i))
6656 rm -f conftest$ac_exeext
6657 if { (ac_try="$ac_link"
6659 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6660 *) ac_try_echo
=$ac_try;;
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_link") 2>&5
6665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6666 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6667 { (case "(($ac_try" in
6668 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6669 *) ac_try_echo=$ac_try;;
6671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6672 (eval "$ac_try") 2>&5
6674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6675 (exit $ac_status); }; }; then
6678 echo "$as_me: program exited with status $ac_status" >&5
6679 echo "$as_me: failed program was:" >&5
6680 sed 's/^/| /' conftest.$ac_ext >&5
6683 ac_cv_header_stdc=no
6685 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6691 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6692 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6693 if test $ac_cv_header_stdc = yes; then
6695 cat >>confdefs.h <<\_ACEOF
6696 #define STDC_HEADERS 1
6701 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6702 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6703 if test "${ac_cv_header_time+set}" = set; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6706 cat >conftest.$ac_ext <<_ACEOF
6709 cat confdefs.h >>conftest.$ac_ext
6710 cat >>conftest.$ac_ext <<_ACEOF
6711 /* end confdefs.h. */
6712 #include <sys/types.h>
6713 #include <sys/time.h>
6719 if ((struct tm *) 0)
6725 rm -f conftest.$ac_objext
6726 if { (ac_try="$ac_compile"
6728 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6729 *) ac_try_echo
=$ac_try;;
6731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6732 (eval "$ac_compile") 2>conftest.er1
6734 grep -v '^ *+' conftest.er1
>conftest.err
6736 cat conftest.err
>&5
6737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6738 (exit $ac_status); } && {
6739 test -z "$ac_c_werror_flag" ||
6740 test ! -s conftest.err
6741 } && test -s conftest.
$ac_objext; then
6742 ac_cv_header_time
=yes
6744 echo "$as_me: failed program was:" >&5
6745 sed 's/^/| /' conftest.
$ac_ext >&5
6747 ac_cv_header_time
=no
6750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6752 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6753 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6754 if test $ac_cv_header_time = yes; then
6756 cat >>confdefs.h
<<\_ACEOF
6757 #define TIME_WITH_SYS_TIME 1
6762 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6763 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6764 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6767 cat >conftest.
$ac_ext <<_ACEOF
6770 cat confdefs.h
>>conftest.
$ac_ext
6771 cat >>conftest.
$ac_ext <<_ACEOF
6772 /* end confdefs.h. */
6773 $ac_includes_default
6785 rm -f conftest.
$ac_objext
6786 if { (ac_try
="$ac_compile"
6788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6789 *) ac_try_echo=$ac_try;;
6791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6792 (eval "$ac_compile") 2>conftest.er1
6794 grep -v '^ *+' conftest.er1 >conftest.err
6796 cat conftest.err >&5
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); } && {
6799 test -z "$ac_c_werror_flag" ||
6800 test ! -s conftest.err
6801 } && test -s conftest.$ac_objext; then
6802 ac_cv_have_decl_sys_siglist=yes
6804 echo "$as_me: failed program was:" >&5
6805 sed 's/^/| /' conftest.$ac_ext >&5
6807 ac_cv_have_decl_sys_siglist=no
6810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6812 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6813 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6814 if test $ac_cv_have_decl_sys_siglist = yes; then
6816 cat >>confdefs.h <<_ACEOF
6817 #define HAVE_DECL_SYS_SIGLIST 1
6822 cat >>confdefs.h <<_ACEOF
6823 #define HAVE_DECL_SYS_SIGLIST 0
6830 if test $ac_cv_have_decl_sys_siglist != yes; then
6831 # For Tru64, at least:
6832 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6833 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6834 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6837 cat >conftest.$ac_ext <<_ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 $ac_includes_default
6847 #ifndef __sys_siglist
6848 (void) __sys_siglist;
6855 rm -f conftest.$ac_objext
6856 if { (ac_try="$ac_compile"
6858 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6859 *) ac_try_echo
=$ac_try;;
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_compile") 2>conftest.er1
6864 grep -v '^ *+' conftest.er1
>conftest.err
6866 cat conftest.err
>&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && {
6869 test -z "$ac_c_werror_flag" ||
6870 test ! -s conftest.err
6871 } && test -s conftest.
$ac_objext; then
6872 ac_cv_have_decl___sys_siglist
=yes
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.
$ac_ext >&5
6877 ac_cv_have_decl___sys_siglist
=no
6880 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6882 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6883 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6884 if test $ac_cv_have_decl___sys_siglist = yes; then
6886 cat >>confdefs.h
<<_ACEOF
6887 #define HAVE_DECL___SYS_SIGLIST 1
6892 cat >>confdefs.h
<<_ACEOF
6893 #define HAVE_DECL___SYS_SIGLIST 0
6900 if test $ac_cv_have_decl___sys_siglist = yes; then
6902 cat >>confdefs.h
<<\_ACEOF
6903 #define sys_siglist __sys_siglist
6908 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6909 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6910 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6911 echo $ECHO_N "(cached) $ECHO_C" >&6
6913 cat >conftest.
$ac_ext <<_ACEOF
6916 cat confdefs.h
>>conftest.
$ac_ext
6917 cat >>conftest.
$ac_ext <<_ACEOF
6918 /* end confdefs.h. */
6919 #include <sys/types.h>
6920 #include <sys/wait.h>
6922 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6925 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6933 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6938 rm -f conftest.
$ac_objext
6939 if { (ac_try
="$ac_compile"
6941 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6942 *) ac_try_echo=$ac_try;;
6944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6945 (eval "$ac_compile") 2>conftest.er1
6947 grep -v '^ *+' conftest.er1 >conftest.err
6949 cat conftest.err >&5
6950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6951 (exit $ac_status); } && {
6952 test -z "$ac_c_werror_flag" ||
6953 test ! -s conftest.err
6954 } && test -s conftest.$ac_objext; then
6955 ac_cv_header_sys_wait_h=yes
6957 echo "$as_me: failed program was:" >&5
6958 sed 's/^/| /' conftest.$ac_ext >&5
6960 ac_cv_header_sys_wait_h=no
6963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6965 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6966 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6967 if test $ac_cv_header_sys_wait_h = yes; then
6969 cat >>confdefs.h <<\_ACEOF
6970 #define HAVE_SYS_WAIT_H 1
6976 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6977 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6978 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6979 echo $ECHO_N "(cached) $ECHO_C" >&6
6981 cat >conftest.$ac_ext <<_ACEOF
6984 cat confdefs.h >>conftest.$ac_ext
6985 cat >>conftest.$ac_ext <<_ACEOF
6986 /* end confdefs.h. */
6987 #ifdef TIME_WITH_SYS_TIME
6988 #include <sys/time.h>
6991 #ifdef HAVE_SYS_TIME_H
6992 #include <sys/time.h>
7003 static struct utimbuf x; x.actime = x.modtime;
7008 rm -f conftest.$ac_objext
7009 if { (ac_try="$ac_compile"
7011 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7012 *) ac_try_echo
=$ac_try;;
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015 (eval "$ac_compile") 2>conftest.er1
7017 grep -v '^ *+' conftest.er1
>conftest.err
7019 cat conftest.err
>&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest.
$ac_objext; then
7025 emacs_cv_struct_utimbuf
=yes
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.
$ac_ext >&5
7030 emacs_cv_struct_utimbuf
=no
7033 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7035 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7036 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7037 if test $emacs_cv_struct_utimbuf = yes; then
7039 cat >>confdefs.h
<<\_ACEOF
7040 #define HAVE_STRUCT_UTIMBUF 1
7045 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7046 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7047 if test "${ac_cv_type_signal+set}" = set; then
7048 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 cat >conftest.
$ac_ext <<_ACEOF
7053 cat confdefs.h
>>conftest.
$ac_ext
7054 cat >>conftest.
$ac_ext <<_ACEOF
7055 /* end confdefs.h. */
7056 #include <sys/types.h>
7062 return *(signal (0, 0)) (0) == 1;
7067 rm -f conftest.
$ac_objext
7068 if { (ac_try
="$ac_compile"
7070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7071 *) ac_try_echo=$ac_try;;
7073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7074 (eval "$ac_compile") 2>conftest.er1
7076 grep -v '^ *+' conftest.er1 >conftest.err
7078 cat conftest.err >&5
7079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7080 (exit $ac_status); } && {
7081 test -z "$ac_c_werror_flag" ||
7082 test ! -s conftest.err
7083 } && test -s conftest.$ac_objext; then
7084 ac_cv_type_signal=int
7086 echo "$as_me: failed program was:" >&5
7087 sed 's/^/| /' conftest.$ac_ext >&5
7089 ac_cv_type_signal=void
7092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7094 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7095 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7097 cat >>confdefs.h <<_ACEOF
7098 #define RETSIGTYPE $ac_cv_type_signal
7103 { echo "$as_me:$LINENO: checking for speed_t" >&5
7104 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7105 if test "${emacs_cv_speed_t+set}" = set; then
7106 echo $ECHO_N "(cached) $ECHO_C" >&6
7108 cat >conftest.$ac_ext <<_ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7114 #include <termios.h>
7123 rm -f conftest.$ac_objext
7124 if { (ac_try="$ac_compile"
7126 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7127 *) ac_try_echo
=$ac_try;;
7129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130 (eval "$ac_compile") 2>conftest.er1
7132 grep -v '^ *+' conftest.er1
>conftest.err
7134 cat conftest.err
>&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && {
7137 test -z "$ac_c_werror_flag" ||
7138 test ! -s conftest.err
7139 } && test -s conftest.
$ac_objext; then
7140 emacs_cv_speed_t
=yes
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.
$ac_ext >&5
7148 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7150 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7151 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7152 if test $emacs_cv_speed_t = yes; then
7154 cat >>confdefs.h
<<\_ACEOF
7155 #define HAVE_SPEED_T 1
7160 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7161 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7162 if test "${emacs_cv_struct_timeval+set}" = set; then
7163 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 cat >conftest.
$ac_ext <<_ACEOF
7168 cat confdefs.h
>>conftest.
$ac_ext
7169 cat >>conftest.
$ac_ext <<_ACEOF
7170 /* end confdefs.h. */
7171 #ifdef TIME_WITH_SYS_TIME
7172 #include <sys/time.h>
7175 #ifdef HAVE_SYS_TIME_H
7176 #include <sys/time.h>
7184 static struct timeval x; x.tv_sec = x.tv_usec;
7189 rm -f conftest.
$ac_objext
7190 if { (ac_try
="$ac_compile"
7192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7193 *) ac_try_echo=$ac_try;;
7195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7196 (eval "$ac_compile") 2>conftest.er1
7198 grep -v '^ *+' conftest.er1 >conftest.err
7200 cat conftest.err >&5
7201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7202 (exit $ac_status); } && {
7203 test -z "$ac_c_werror_flag" ||
7204 test ! -s conftest.err
7205 } && test -s conftest.$ac_objext; then
7206 emacs_cv_struct_timeval=yes
7208 echo "$as_me: failed program was:" >&5
7209 sed 's/^/| /' conftest.$ac_ext >&5
7211 emacs_cv_struct_timeval=no
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7216 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7217 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7218 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7219 if test $emacs_cv_struct_timeval = yes; then
7221 cat >>confdefs.h <<\_ACEOF
7222 #define HAVE_TIMEVAL 1
7227 { echo "$as_me:$LINENO: checking for struct exception" >&5
7228 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7229 if test "${emacs_cv_struct_exception+set}" = set; then
7230 echo $ECHO_N "(cached) $ECHO_C" >&6
7232 cat >conftest.$ac_ext <<_ACEOF
7235 cat confdefs.h >>conftest.$ac_ext
7236 cat >>conftest.$ac_ext <<_ACEOF
7237 /* end confdefs.h. */
7242 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7247 rm -f conftest.$ac_objext
7248 if { (ac_try="$ac_compile"
7250 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7251 *) ac_try_echo
=$ac_try;;
7253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7254 (eval "$ac_compile") 2>conftest.er1
7256 grep -v '^ *+' conftest.er1
>conftest.err
7258 cat conftest.err
>&5
7259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7260 (exit $ac_status); } && {
7261 test -z "$ac_c_werror_flag" ||
7262 test ! -s conftest.err
7263 } && test -s conftest.
$ac_objext; then
7264 emacs_cv_struct_exception
=yes
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.
$ac_ext >&5
7269 emacs_cv_struct_exception
=no
7272 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7274 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7275 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7276 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7277 if test $emacs_cv_struct_exception != yes; then
7279 cat >>confdefs.h
<<\_ACEOF
7280 #define NO_MATHERR 1
7286 for ac_header
in sys
/socket.h
7288 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7289 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7290 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7291 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7292 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7293 echo $ECHO_N "(cached) $ECHO_C" >&6
7295 ac_res
=`eval echo '${'$as_ac_Header'}'`
7296 { echo "$as_me:$LINENO: result: $ac_res" >&5
7297 echo "${ECHO_T}$ac_res" >&6; }
7299 # Is the header compilable?
7300 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7301 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7302 cat >conftest.
$ac_ext <<_ACEOF
7305 cat confdefs.h
>>conftest.
$ac_ext
7306 cat >>conftest.
$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 $ac_includes_default
7309 #include <$ac_header>
7311 rm -f conftest.
$ac_objext
7312 if { (ac_try
="$ac_compile"
7314 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7315 *) ac_try_echo=$ac_try;;
7317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7318 (eval "$ac_compile") 2>conftest.er1
7320 grep -v '^ *+' conftest.er1 >conftest.err
7322 cat conftest.err >&5
7323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7324 (exit $ac_status); } && {
7325 test -z "$ac_c_werror_flag" ||
7326 test ! -s conftest.err
7327 } && test -s conftest.$ac_objext; then
7328 ac_header_compiler=yes
7330 echo "$as_me: failed program was:" >&5
7331 sed 's/^/| /' conftest.$ac_ext >&5
7333 ac_header_compiler=no
7336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7337 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7338 echo "${ECHO_T}$ac_header_compiler" >&6; }
7340 # Is the header present?
7341 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7342 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7343 cat >conftest.$ac_ext <<_ACEOF
7346 cat confdefs.h >>conftest.$ac_ext
7347 cat >>conftest.$ac_ext <<_ACEOF
7348 /* end confdefs.h. */
7349 #include <$ac_header>
7351 if { (ac_try="$ac_cpp conftest.$ac_ext"
7353 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7354 *) ac_try_echo
=$ac_try;;
7356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7357 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7359 grep -v '^ *+' conftest.er1
>conftest.err
7361 cat conftest.err
>&5
7362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7363 (exit $ac_status); } >/dev
/null
&& {
7364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7365 test ! -s conftest.err
7367 ac_header_preproc
=yes
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.
$ac_ext >&5
7372 ac_header_preproc
=no
7375 rm -f conftest.err conftest.
$ac_ext
7376 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7377 echo "${ECHO_T}$ac_header_preproc" >&6; }
7379 # So? What about this header?
7380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7382 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7383 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7384 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7386 ac_header_preproc
=yes
7389 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7390 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7391 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7392 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7393 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7394 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7395 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7396 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7397 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7399 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7400 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7406 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7407 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 eval "$as_ac_Header=\$ac_header_preproc"
7411 ac_res
=`eval echo '${'$as_ac_Header'}'`
7412 { echo "$as_me:$LINENO: result: $ac_res" >&5
7413 echo "${ECHO_T}$ac_res" >&6; }
7416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7417 cat >>confdefs.h
<<_ACEOF
7418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7426 for ac_header
in net
/if.h
7428 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7431 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7432 echo $ECHO_N "(cached) $ECHO_C" >&6
7434 cat >conftest.
$ac_ext <<_ACEOF
7437 cat confdefs.h
>>conftest.
$ac_ext
7438 cat >>conftest.
$ac_ext <<_ACEOF
7439 /* end confdefs.h. */
7440 $ac_includes_default
7441 #if HAVE_SYS_SOCKET_H
7442 #include <sys/socket.h>
7445 #include <$ac_header>
7447 rm -f conftest.
$ac_objext
7448 if { (ac_try
="$ac_compile"
7450 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_compile") 2>conftest.er1
7456 grep -v '^ *+' conftest.er1 >conftest.err
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && {
7461 test -z "$ac_c_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest.$ac_objext; then
7464 eval "$as_ac_Header=yes"
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7469 eval "$as_ac_Header=no"
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474 ac_res=`eval echo '${'$as_ac_Header'}'`
7475 { echo "$as_me:$LINENO: result: $ac_res" >&5
7476 echo "${ECHO_T}$ac_res" >&6; }
7477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7478 cat >>confdefs.h <<_ACEOF
7479 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7487 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7488 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7489 if test "${ac_cv_struct_tm+set}" = set; then
7490 echo $ECHO_N "(cached) $ECHO_C" >&6
7492 cat >conftest.$ac_ext <<_ACEOF
7495 cat confdefs.h >>conftest.$ac_ext
7496 cat >>conftest.$ac_ext <<_ACEOF
7497 /* end confdefs.h. */
7498 #include <sys/types.h>
7505 int *p = &tm.tm_sec;
7511 rm -f conftest.$ac_objext
7512 if { (ac_try="$ac_compile"
7514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7515 *) ac_try_echo
=$ac_try;;
7517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7518 (eval "$ac_compile") 2>conftest.er1
7520 grep -v '^ *+' conftest.er1
>conftest.err
7522 cat conftest.err
>&5
7523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7524 (exit $ac_status); } && {
7525 test -z "$ac_c_werror_flag" ||
7526 test ! -s conftest.err
7527 } && test -s conftest.
$ac_objext; then
7528 ac_cv_struct_tm
=time.h
7530 echo "$as_me: failed program was:" >&5
7531 sed 's/^/| /' conftest.
$ac_ext >&5
7533 ac_cv_struct_tm
=sys
/time.h
7536 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7538 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7539 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7540 if test $ac_cv_struct_tm = sys
/time.h
; then
7542 cat >>confdefs.h
<<\_ACEOF
7543 #define TM_IN_SYS_TIME 1
7548 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7549 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7550 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7553 cat >conftest.
$ac_ext <<_ACEOF
7556 cat confdefs.h
>>conftest.
$ac_ext
7557 cat >>conftest.
$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 #include <sys/types.h>
7560 #include <$ac_cv_struct_tm>
7566 static struct tm ac_aggr;
7567 if (ac_aggr.tm_zone)
7573 rm -f conftest.
$ac_objext
7574 if { (ac_try
="$ac_compile"
7576 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7577 *) ac_try_echo=$ac_try;;
7579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7580 (eval "$ac_compile") 2>conftest.er1
7582 grep -v '^ *+' conftest.er1 >conftest.err
7584 cat conftest.err >&5
7585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7586 (exit $ac_status); } && {
7587 test -z "$ac_c_werror_flag" ||
7588 test ! -s conftest.err
7589 } && test -s conftest.$ac_objext; then
7590 ac_cv_member_struct_tm_tm_zone=yes
7592 echo "$as_me: failed program was:" >&5
7593 sed 's/^/| /' conftest.$ac_ext >&5
7595 cat >conftest.$ac_ext <<_ACEOF
7598 cat confdefs.h >>conftest.$ac_ext
7599 cat >>conftest.$ac_ext <<_ACEOF
7600 /* end confdefs.h. */
7601 #include <sys/types.h>
7602 #include <$ac_cv_struct_tm>
7608 static struct tm ac_aggr;
7609 if (sizeof ac_aggr.tm_zone)
7615 rm -f conftest.$ac_objext
7616 if { (ac_try="$ac_compile"
7618 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7619 *) ac_try_echo
=$ac_try;;
7621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7622 (eval "$ac_compile") 2>conftest.er1
7624 grep -v '^ *+' conftest.er1
>conftest.err
7626 cat conftest.err
>&5
7627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7628 (exit $ac_status); } && {
7629 test -z "$ac_c_werror_flag" ||
7630 test ! -s conftest.err
7631 } && test -s conftest.
$ac_objext; then
7632 ac_cv_member_struct_tm_tm_zone
=yes
7634 echo "$as_me: failed program was:" >&5
7635 sed 's/^/| /' conftest.
$ac_ext >&5
7637 ac_cv_member_struct_tm_tm_zone
=no
7640 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7645 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7646 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7647 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7649 cat >>confdefs.h
<<_ACEOF
7650 #define HAVE_STRUCT_TM_TM_ZONE 1
7656 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7658 cat >>confdefs.h
<<\_ACEOF
7659 #define HAVE_TM_ZONE 1
7663 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7664 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7665 if test "${ac_cv_have_decl_tzname+set}" = set; then
7666 echo $ECHO_N "(cached) $ECHO_C" >&6
7668 cat >conftest.
$ac_ext <<_ACEOF
7671 cat confdefs.h
>>conftest.
$ac_ext
7672 cat >>conftest.
$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7687 rm -f conftest.
$ac_objext
7688 if { (ac_try
="$ac_compile"
7690 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7691 *) ac_try_echo=$ac_try;;
7693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7694 (eval "$ac_compile") 2>conftest.er1
7696 grep -v '^ *+' conftest.er1 >conftest.err
7698 cat conftest.err >&5
7699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7700 (exit $ac_status); } && {
7701 test -z "$ac_c_werror_flag" ||
7702 test ! -s conftest.err
7703 } && test -s conftest.$ac_objext; then
7704 ac_cv_have_decl_tzname=yes
7706 echo "$as_me: failed program was:" >&5
7707 sed 's/^/| /' conftest.$ac_ext >&5
7709 ac_cv_have_decl_tzname=no
7712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7714 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7715 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7716 if test $ac_cv_have_decl_tzname = yes; then
7718 cat >>confdefs.h <<_ACEOF
7719 #define HAVE_DECL_TZNAME 1
7724 cat >>confdefs.h <<_ACEOF
7725 #define HAVE_DECL_TZNAME 0
7732 { echo "$as_me:$LINENO: checking for tzname" >&5
7733 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7734 if test "${ac_cv_var_tzname+set}" = set; then
7735 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 cat >conftest.$ac_ext <<_ACEOF
7740 cat confdefs.h >>conftest.$ac_ext
7741 cat >>conftest.$ac_ext <<_ACEOF
7742 /* end confdefs.h. */
7744 #if !HAVE_DECL_TZNAME
7745 extern char *tzname[];
7751 return tzname[0][0];
7756 rm -f conftest.$ac_objext conftest$ac_exeext
7757 if { (ac_try="$ac_link"
7759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7760 *) ac_try_echo
=$ac_try;;
7762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7763 (eval "$ac_link") 2>conftest.er1
7765 grep -v '^ *+' conftest.er1
>conftest.err
7767 cat conftest.err
>&5
7768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7769 (exit $ac_status); } && {
7770 test -z "$ac_c_werror_flag" ||
7771 test ! -s conftest.err
7772 } && test -s conftest
$ac_exeext &&
7773 $as_test_x conftest
$ac_exeext; then
7774 ac_cv_var_tzname
=yes
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.
$ac_ext >&5
7782 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7783 conftest
$ac_exeext conftest.
$ac_ext
7785 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7786 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7787 if test $ac_cv_var_tzname = yes; then
7789 cat >>confdefs.h
<<\_ACEOF
7790 #define HAVE_TZNAME 1
7796 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7797 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7798 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7799 echo $ECHO_N "(cached) $ECHO_C" >&6
7801 cat >conftest.
$ac_ext <<_ACEOF
7804 cat confdefs.h
>>conftest.
$ac_ext
7805 cat >>conftest.
$ac_ext <<_ACEOF
7806 /* end confdefs.h. */
7812 static struct tm ac_aggr;
7813 if (ac_aggr.tm_gmtoff)
7819 rm -f conftest.
$ac_objext
7820 if { (ac_try
="$ac_compile"
7822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7823 *) ac_try_echo=$ac_try;;
7825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7826 (eval "$ac_compile") 2>conftest.er1
7828 grep -v '^ *+' conftest.er1 >conftest.err
7830 cat conftest.err >&5
7831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7832 (exit $ac_status); } && {
7833 test -z "$ac_c_werror_flag" ||
7834 test ! -s conftest.err
7835 } && test -s conftest.$ac_objext; then
7836 ac_cv_member_struct_tm_tm_gmtoff=yes
7838 echo "$as_me: failed program was:" >&5
7839 sed 's/^/| /' conftest.$ac_ext >&5
7841 cat >conftest.$ac_ext <<_ACEOF
7844 cat confdefs.h >>conftest.$ac_ext
7845 cat >>conftest.$ac_ext <<_ACEOF
7846 /* end confdefs.h. */
7852 static struct tm ac_aggr;
7853 if (sizeof ac_aggr.tm_gmtoff)
7859 rm -f conftest.$ac_objext
7860 if { (ac_try="$ac_compile"
7862 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7863 *) ac_try_echo
=$ac_try;;
7865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7866 (eval "$ac_compile") 2>conftest.er1
7868 grep -v '^ *+' conftest.er1
>conftest.err
7870 cat conftest.err
>&5
7871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7872 (exit $ac_status); } && {
7873 test -z "$ac_c_werror_flag" ||
7874 test ! -s conftest.err
7875 } && test -s conftest.
$ac_objext; then
7876 ac_cv_member_struct_tm_tm_gmtoff
=yes
7878 echo "$as_me: failed program was:" >&5
7879 sed 's/^/| /' conftest.
$ac_ext >&5
7881 ac_cv_member_struct_tm_tm_gmtoff
=no
7884 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7887 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7889 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7890 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7891 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7893 cat >>confdefs.h
<<\_ACEOF
7894 #define HAVE_TM_GMTOFF 1
7899 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7900 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7901 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7902 echo $ECHO_N "(cached) $ECHO_C" >&6
7904 cat >conftest.
$ac_ext <<_ACEOF
7907 cat confdefs.h
>>conftest.
$ac_ext
7908 cat >>conftest.
$ac_ext <<_ACEOF
7909 /* end confdefs.h. */
7910 $ac_includes_default
7911 #if HAVE_SYS_SOCKET_H
7912 #include <sys/socket.h>
7921 static struct ifreq ac_aggr;
7922 if (ac_aggr.ifr_flags)
7928 rm -f conftest.
$ac_objext
7929 if { (ac_try
="$ac_compile"
7931 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7932 *) ac_try_echo=$ac_try;;
7934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7935 (eval "$ac_compile") 2>conftest.er1
7937 grep -v '^ *+' conftest.er1 >conftest.err
7939 cat conftest.err >&5
7940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7941 (exit $ac_status); } && {
7942 test -z "$ac_c_werror_flag" ||
7943 test ! -s conftest.err
7944 } && test -s conftest.$ac_objext; then
7945 ac_cv_member_struct_ifreq_ifr_flags=yes
7947 echo "$as_me: failed program was:" >&5
7948 sed 's/^/| /' conftest.$ac_ext >&5
7950 cat >conftest.$ac_ext <<_ACEOF
7953 cat confdefs.h >>conftest.$ac_ext
7954 cat >>conftest.$ac_ext <<_ACEOF
7955 /* end confdefs.h. */
7956 $ac_includes_default
7957 #if HAVE_SYS_SOCKET_H
7958 #include <sys/socket.h>
7967 static struct ifreq ac_aggr;
7968 if (sizeof ac_aggr.ifr_flags)
7974 rm -f conftest.$ac_objext
7975 if { (ac_try="$ac_compile"
7977 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7978 *) ac_try_echo
=$ac_try;;
7980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7981 (eval "$ac_compile") 2>conftest.er1
7983 grep -v '^ *+' conftest.er1
>conftest.err
7985 cat conftest.err
>&5
7986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7987 (exit $ac_status); } && {
7988 test -z "$ac_c_werror_flag" ||
7989 test ! -s conftest.err
7990 } && test -s conftest.
$ac_objext; then
7991 ac_cv_member_struct_ifreq_ifr_flags
=yes
7993 echo "$as_me: failed program was:" >&5
7994 sed 's/^/| /' conftest.
$ac_ext >&5
7996 ac_cv_member_struct_ifreq_ifr_flags
=no
7999 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8004 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8005 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8006 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8008 cat >>confdefs.h
<<_ACEOF
8009 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8014 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8015 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8016 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8017 echo $ECHO_N "(cached) $ECHO_C" >&6
8019 cat >conftest.
$ac_ext <<_ACEOF
8022 cat confdefs.h
>>conftest.
$ac_ext
8023 cat >>conftest.
$ac_ext <<_ACEOF
8024 /* end confdefs.h. */
8025 $ac_includes_default
8026 #if HAVE_SYS_SOCKET_H
8027 #include <sys/socket.h>
8036 static struct ifreq ac_aggr;
8037 if (ac_aggr.ifr_hwaddr)
8043 rm -f conftest.
$ac_objext
8044 if { (ac_try
="$ac_compile"
8046 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8047 *) ac_try_echo=$ac_try;;
8049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8050 (eval "$ac_compile") 2>conftest.er1
8052 grep -v '^ *+' conftest.er1 >conftest.err
8054 cat conftest.err >&5
8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8056 (exit $ac_status); } && {
8057 test -z "$ac_c_werror_flag" ||
8058 test ! -s conftest.err
8059 } && test -s conftest.$ac_objext; then
8060 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8062 echo "$as_me: failed program was:" >&5
8063 sed 's/^/| /' conftest.$ac_ext >&5
8065 cat >conftest.$ac_ext <<_ACEOF
8068 cat confdefs.h >>conftest.$ac_ext
8069 cat >>conftest.$ac_ext <<_ACEOF
8070 /* end confdefs.h. */
8071 $ac_includes_default
8072 #if HAVE_SYS_SOCKET_H
8073 #include <sys/socket.h>
8082 static struct ifreq ac_aggr;
8083 if (sizeof ac_aggr.ifr_hwaddr)
8089 rm -f conftest.$ac_objext
8090 if { (ac_try="$ac_compile"
8092 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8093 *) ac_try_echo
=$ac_try;;
8095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8096 (eval "$ac_compile") 2>conftest.er1
8098 grep -v '^ *+' conftest.er1
>conftest.err
8100 cat conftest.err
>&5
8101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8102 (exit $ac_status); } && {
8103 test -z "$ac_c_werror_flag" ||
8104 test ! -s conftest.err
8105 } && test -s conftest.
$ac_objext; then
8106 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8108 echo "$as_me: failed program was:" >&5
8109 sed 's/^/| /' conftest.
$ac_ext >&5
8111 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8114 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8117 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8119 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8120 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8121 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8123 cat >>confdefs.h
<<_ACEOF
8124 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8129 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8130 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8131 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8132 echo $ECHO_N "(cached) $ECHO_C" >&6
8134 cat >conftest.
$ac_ext <<_ACEOF
8137 cat confdefs.h
>>conftest.
$ac_ext
8138 cat >>conftest.
$ac_ext <<_ACEOF
8139 /* end confdefs.h. */
8140 $ac_includes_default
8141 #if HAVE_SYS_SOCKET_H
8142 #include <sys/socket.h>
8151 static struct ifreq ac_aggr;
8152 if (ac_aggr.ifr_netmask)
8158 rm -f conftest.
$ac_objext
8159 if { (ac_try
="$ac_compile"
8161 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8162 *) ac_try_echo=$ac_try;;
8164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8165 (eval "$ac_compile") 2>conftest.er1
8167 grep -v '^ *+' conftest.er1 >conftest.err
8169 cat conftest.err >&5
8170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8171 (exit $ac_status); } && {
8172 test -z "$ac_c_werror_flag" ||
8173 test ! -s conftest.err
8174 } && test -s conftest.$ac_objext; then
8175 ac_cv_member_struct_ifreq_ifr_netmask=yes
8177 echo "$as_me: failed program was:" >&5
8178 sed 's/^/| /' conftest.$ac_ext >&5
8180 cat >conftest.$ac_ext <<_ACEOF
8183 cat confdefs.h >>conftest.$ac_ext
8184 cat >>conftest.$ac_ext <<_ACEOF
8185 /* end confdefs.h. */
8186 $ac_includes_default
8187 #if HAVE_SYS_SOCKET_H
8188 #include <sys/socket.h>
8197 static struct ifreq ac_aggr;
8198 if (sizeof ac_aggr.ifr_netmask)
8204 rm -f conftest.$ac_objext
8205 if { (ac_try="$ac_compile"
8207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8208 *) ac_try_echo
=$ac_try;;
8210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8211 (eval "$ac_compile") 2>conftest.er1
8213 grep -v '^ *+' conftest.er1
>conftest.err
8215 cat conftest.err
>&5
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); } && {
8218 test -z "$ac_c_werror_flag" ||
8219 test ! -s conftest.err
8220 } && test -s conftest.
$ac_objext; then
8221 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8223 echo "$as_me: failed program was:" >&5
8224 sed 's/^/| /' conftest.
$ac_ext >&5
8226 ac_cv_member_struct_ifreq_ifr_netmask
=no
8229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8232 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8234 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8235 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8236 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8238 cat >>confdefs.h
<<_ACEOF
8239 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8244 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8245 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8246 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8247 echo $ECHO_N "(cached) $ECHO_C" >&6
8249 cat >conftest.
$ac_ext <<_ACEOF
8252 cat confdefs.h
>>conftest.
$ac_ext
8253 cat >>conftest.
$ac_ext <<_ACEOF
8254 /* end confdefs.h. */
8255 $ac_includes_default
8256 #if HAVE_SYS_SOCKET_H
8257 #include <sys/socket.h>
8266 static struct ifreq ac_aggr;
8267 if (ac_aggr.ifr_broadaddr)
8273 rm -f conftest.
$ac_objext
8274 if { (ac_try
="$ac_compile"
8276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8277 *) ac_try_echo=$ac_try;;
8279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8280 (eval "$ac_compile") 2>conftest.er1
8282 grep -v '^ *+' conftest.er1 >conftest.err
8284 cat conftest.err >&5
8285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8286 (exit $ac_status); } && {
8287 test -z "$ac_c_werror_flag" ||
8288 test ! -s conftest.err
8289 } && test -s conftest.$ac_objext; then
8290 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8292 echo "$as_me: failed program was:" >&5
8293 sed 's/^/| /' conftest.$ac_ext >&5
8295 cat >conftest.$ac_ext <<_ACEOF
8298 cat confdefs.h >>conftest.$ac_ext
8299 cat >>conftest.$ac_ext <<_ACEOF
8300 /* end confdefs.h. */
8301 $ac_includes_default
8302 #if HAVE_SYS_SOCKET_H
8303 #include <sys/socket.h>
8312 static struct ifreq ac_aggr;
8313 if (sizeof ac_aggr.ifr_broadaddr)
8319 rm -f conftest.$ac_objext
8320 if { (ac_try="$ac_compile"
8322 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8323 *) ac_try_echo
=$ac_try;;
8325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8326 (eval "$ac_compile") 2>conftest.er1
8328 grep -v '^ *+' conftest.er1
>conftest.err
8330 cat conftest.err
>&5
8331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8332 (exit $ac_status); } && {
8333 test -z "$ac_c_werror_flag" ||
8334 test ! -s conftest.err
8335 } && test -s conftest.
$ac_objext; then
8336 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8338 echo "$as_me: failed program was:" >&5
8339 sed 's/^/| /' conftest.
$ac_ext >&5
8341 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8349 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8350 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8351 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8353 cat >>confdefs.h
<<_ACEOF
8354 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8359 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8360 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8361 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8362 echo $ECHO_N "(cached) $ECHO_C" >&6
8364 cat >conftest.
$ac_ext <<_ACEOF
8367 cat confdefs.h
>>conftest.
$ac_ext
8368 cat >>conftest.
$ac_ext <<_ACEOF
8369 /* end confdefs.h. */
8370 $ac_includes_default
8371 #if HAVE_SYS_SOCKET_H
8372 #include <sys/socket.h>
8381 static struct ifreq ac_aggr;
8382 if (ac_aggr.ifr_addr)
8388 rm -f conftest.
$ac_objext
8389 if { (ac_try
="$ac_compile"
8391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8392 *) ac_try_echo=$ac_try;;
8394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8395 (eval "$ac_compile") 2>conftest.er1
8397 grep -v '^ *+' conftest.er1 >conftest.err
8399 cat conftest.err >&5
8400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8401 (exit $ac_status); } && {
8402 test -z "$ac_c_werror_flag" ||
8403 test ! -s conftest.err
8404 } && test -s conftest.$ac_objext; then
8405 ac_cv_member_struct_ifreq_ifr_addr=yes
8407 echo "$as_me: failed program was:" >&5
8408 sed 's/^/| /' conftest.$ac_ext >&5
8410 cat >conftest.$ac_ext <<_ACEOF
8413 cat confdefs.h >>conftest.$ac_ext
8414 cat >>conftest.$ac_ext <<_ACEOF
8415 /* end confdefs.h. */
8416 $ac_includes_default
8417 #if HAVE_SYS_SOCKET_H
8418 #include <sys/socket.h>
8427 static struct ifreq ac_aggr;
8428 if (sizeof ac_aggr.ifr_addr)
8434 rm -f conftest.$ac_objext
8435 if { (ac_try="$ac_compile"
8437 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8438 *) ac_try_echo
=$ac_try;;
8440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8441 (eval "$ac_compile") 2>conftest.er1
8443 grep -v '^ *+' conftest.er1
>conftest.err
8445 cat conftest.err
>&5
8446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8447 (exit $ac_status); } && {
8448 test -z "$ac_c_werror_flag" ||
8449 test ! -s conftest.err
8450 } && test -s conftest.
$ac_objext; then
8451 ac_cv_member_struct_ifreq_ifr_addr
=yes
8453 echo "$as_me: failed program was:" >&5
8454 sed 's/^/| /' conftest.
$ac_ext >&5
8456 ac_cv_member_struct_ifreq_ifr_addr
=no
8459 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8462 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8464 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8465 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8466 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8468 cat >>confdefs.h
<<_ACEOF
8469 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8477 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8478 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8479 if test "$ac_cv_prog_cc_c89" != no
; then
8480 { echo "$as_me:$LINENO: result: yes" >&5
8481 echo "${ECHO_T}yes" >&6; }
8483 cat >>confdefs.h
<<\_ACEOF
8484 #define PROTOTYPES 1
8488 cat >>confdefs.h
<<\_ACEOF
8489 #define __PROTOTYPES 1
8493 { echo "$as_me:$LINENO: result: no" >&5
8494 echo "${ECHO_T}no" >&6; }
8497 { echo "$as_me:$LINENO: checking for working volatile" >&5
8498 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8499 if test "${ac_cv_c_volatile+set}" = set; then
8500 echo $ECHO_N "(cached) $ECHO_C" >&6
8502 cat >conftest.
$ac_ext <<_ACEOF
8505 cat confdefs.h
>>conftest.
$ac_ext
8506 cat >>conftest.
$ac_ext <<_ACEOF
8507 /* end confdefs.h. */
8514 int * volatile y = (int *) 0;
8520 rm -f conftest.
$ac_objext
8521 if { (ac_try
="$ac_compile"
8523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8524 *) ac_try_echo=$ac_try;;
8526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8527 (eval "$ac_compile") 2>conftest.er1
8529 grep -v '^ *+' conftest.er1 >conftest.err
8531 cat conftest.err >&5
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); } && {
8534 test -z "$ac_c_werror_flag" ||
8535 test ! -s conftest.err
8536 } && test -s conftest.$ac_objext; then
8537 ac_cv_c_volatile=yes
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.$ac_ext >&5
8545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8547 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8548 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8549 if test $ac_cv_c_volatile = no; then
8551 cat >>confdefs.h <<\_ACEOF
8557 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8558 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8559 if test "${ac_cv_c_const+set}" = set; then
8560 echo $ECHO_N "(cached) $ECHO_C" >&6
8562 cat >conftest.$ac_ext <<_ACEOF
8565 cat confdefs.h >>conftest.$ac_ext
8566 cat >>conftest.$ac_ext <<_ACEOF
8567 /* end confdefs.h. */
8572 /* FIXME: Include the comments suggested by Paul. */
8574 /* Ultrix mips cc rejects this. */
8575 typedef int charset[2];
8577 /* SunOS 4.1.1 cc rejects this. */
8578 char const *const *pcpcc;
8580 /* NEC SVR4.0.2 mips cc rejects this. */
8581 struct point {int x, y;};
8582 static struct point const zero = {0,0};
8583 /* AIX XL C 1.02.0.0 rejects this.
8584 It does not let you subtract one const X* pointer from another in
8585 an arm of an if-expression whose if-part is not a constant
8587 const char *g = "string";
8588 pcpcc = &g + (g ? g-g : 0);
8589 /* HPUX 7.0 cc rejects these. */
8591 ppc = (char**) pcpcc;
8592 pcpcc = (char const *const *) ppc;
8593 { /* SCO 3.2v4 cc rejects this. */
8595 char const *s = 0 ? (char *) 0 : (char const *) 0;
8600 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8602 const int *foo = &x[0];
8605 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8606 typedef const int *iptr;
8610 { /* AIX XL C 1.02.0.0 rejects this saying
8611 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8612 struct s { int j; const int *ap[3]; };
8613 struct s *b; b->j = 5;
8615 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8619 return !cs[0] && !zero.x;
8626 rm -f conftest.$ac_objext
8627 if { (ac_try="$ac_compile"
8629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8630 *) ac_try_echo
=$ac_try;;
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_compile") 2>conftest.er1
8635 grep -v '^ *+' conftest.er1
>conftest.err
8637 cat conftest.err
>&5
8638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8639 (exit $ac_status); } && {
8640 test -z "$ac_c_werror_flag" ||
8641 test ! -s conftest.err
8642 } && test -s conftest.
$ac_objext; then
8645 echo "$as_me: failed program was:" >&5
8646 sed 's/^/| /' conftest.
$ac_ext >&5
8651 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8653 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8654 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8655 if test $ac_cv_c_const = no
; then
8657 cat >>confdefs.h
<<\_ACEOF
8663 { echo "$as_me:$LINENO: checking for void * support" >&5
8664 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8665 if test "${emacs_cv_void_star+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8668 cat >conftest.
$ac_ext <<_ACEOF
8671 cat confdefs.h
>>conftest.
$ac_ext
8672 cat >>conftest.
$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8683 rm -f conftest.
$ac_objext
8684 if { (ac_try
="$ac_compile"
8686 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_compile") 2>conftest.er1
8692 grep -v '^ *+' conftest.er1 >conftest.err
8694 cat conftest.err >&5
8695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8696 (exit $ac_status); } && {
8697 test -z "$ac_c_werror_flag" ||
8698 test ! -s conftest.err
8699 } && test -s conftest.$ac_objext; then
8700 emacs_cv_void_star=yes
8702 echo "$as_me: failed program was:" >&5
8703 sed 's/^/| /' conftest.$ac_ext >&5
8705 emacs_cv_void_star=no
8708 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8710 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8711 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8712 if test $emacs_cv_void_star = yes; then
8713 cat >>confdefs.h <<\_ACEOF
8714 #define POINTER_TYPE void
8718 cat >>confdefs.h <<\_ACEOF
8719 #define POINTER_TYPE char
8728 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8729 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8730 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8731 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8732 echo $ECHO_N "(cached) $ECHO_C" >&6
8734 cat >conftest.make <<\_ACEOF
8737 @echo '@@@%%%=$(MAKE)=@@@%%%'
8739 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8740 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8742 eval ac_cv_prog_make_${ac_make}_set=yes;;
8744 eval ac_cv_prog_make_${ac_make}_set=no;;
8748 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8749 { echo "$as_me:$LINENO: result: yes" >&5
8750 echo "${ECHO_T}yes" >&6; }
8753 { echo "$as_me:$LINENO: result: no" >&5
8754 echo "${ECHO_T}no" >&6; }
8755 SET_MAKE="MAKE=${MAKE-make}"
8759 { echo "$as_me:$LINENO: checking for long file names" >&5
8760 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8761 if test "${ac_cv_sys_long_file_names+set}" = set; then
8762 echo $ECHO_N "(cached) $ECHO_C" >&6
8764 ac_cv_sys_long_file_names=yes
8765 # Test for long file names in all the places we know might matter:
8766 # . the current directory, where building will happen
8767 # $prefix/lib where we will be installing things
8768 # $exec_prefix/lib likewise
8769 # $TMPDIR if set, where it might want to write temporary files
8770 # /tmp where it might want to write temporary files
8773 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8774 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8775 # in the usual case where exec_prefix is '${prefix}'.
8777 . | /* | ?:[\\/]*) ;; #(
8780 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8781 ac_xdir=$ac_dir/cf$$
8782 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8783 ac_tf1=$ac_xdir/conftest9012345
8784 ac_tf2=$ac_xdir/conftest9012346
8785 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8786 ac_cv_sys_long_file_names=no
8787 rm -f -r "$ac_xdir" 2>/dev/null
8788 test $ac_cv_sys_long_file_names = no && break
8791 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8792 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8793 if test $ac_cv_sys_long_file_names = yes; then
8795 cat >>confdefs.h <<\_ACEOF
8796 #define HAVE_LONG_FILE_NAMES 1
8802 #### Choose a window system.
8804 { echo "$as_me:$LINENO: checking for X" >&5
8805 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8808 # Check whether --with-x was given.
8809 if test "${with_x+set}" = set; then
8813 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8814 if test "x$with_x" = xno; then
8815 # The user explicitly disabled X.
8818 case $x_includes,$x_libraries in #(
8819 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8820 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8821 { (exit 1); exit 1; }; };; #(
8822 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8823 echo $ECHO_N "(cached) $ECHO_C" >&6
8825 # One or both of the vars are not set, and there is no cached value.
8826 ac_x_includes=no ac_x_libraries=no
8827 rm -f -r conftest.dir
8828 if mkdir conftest.dir; then
8830 cat >Imakefile <<'_ACEOF'
8832 @echo incroot='${INCROOT}'
8834 @echo usrlibdir='${USRLIBDIR}'
8836 @echo libdir='${LIBDIR}'
8838 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8839 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8840 for ac_var in incroot usrlibdir libdir; do
8841 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
8843 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8844 for ac_extension in a so sl; do
8845 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8846 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8847 ac_im_usrlibdir=$ac_im_libdir; break
8850 # Screen out bogus values from the imake configuration. They are
8851 # bogus both because they are the default anyway, and because
8852 # using them would break gcc on systems where it needs fixed includes.
8853 case $ac_im_incroot in
8854 /usr/include) ac_x_includes= ;;
8855 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8857 case $ac_im_usrlibdir in
8859 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8863 rm -f -r conftest.dir
8866 # Standard set of common directories for X headers.
8867 # Check X11 before X11Rn because it is often a symlink to the current release.
8879 /usr/local/X11/include
8880 /usr/local/X11R6/include
8881 /usr/local/X11R5/include
8882 /usr/local/X11R4/include
8884 /usr/local/include/X11
8885 /usr/local/include/X11R6
8886 /usr/local/include/X11R5
8887 /usr/local/include/X11R4
8891 /usr/XFree86/include/X11
8895 /usr/unsupported/include
8897 /usr/local/x11r5/include
8898 /usr/lpp/Xamples/include
8900 /usr/openwin/include
8901 /usr/openwin/share/include'
8903 if test "$ac_x_includes" = no; then
8904 # Guess where to find include files, by looking for Xlib.h.
8905 # First, try using that file with no special directory specified.
8906 cat >conftest.$ac_ext <<_ACEOF
8909 cat confdefs.h >>conftest.$ac_ext
8910 cat >>conftest.$ac_ext <<_ACEOF
8911 /* end confdefs.h. */
8912 #include <X11/Xlib.h>
8914 if { (ac_try="$ac_cpp conftest.$ac_ext"
8916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8917 *) ac_try_echo
=$ac_try;;
8919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8920 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8922 grep -v '^ *+' conftest.er1
>conftest.err
8924 cat conftest.err
>&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 (exit $ac_status); } >/dev
/null
&& {
8927 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8928 test ! -s conftest.err
8930 # We can compile using X headers with no special include directory.
8933 echo "$as_me: failed program was:" >&5
8934 sed 's/^/| /' conftest.
$ac_ext >&5
8936 for ac_dir
in $ac_x_header_dirs; do
8937 if test -r "$ac_dir/X11/Xlib.h"; then
8938 ac_x_includes
=$ac_dir
8944 rm -f conftest.err conftest.
$ac_ext
8945 fi # $ac_x_includes = no
8947 if test "$ac_x_libraries" = no
; then
8948 # Check for the libraries.
8949 # See if we find them without any special options.
8950 # Don't add to $LIBS permanently.
8953 cat >conftest.
$ac_ext <<_ACEOF
8956 cat confdefs.h
>>conftest.
$ac_ext
8957 cat >>conftest.
$ac_ext <<_ACEOF
8958 /* end confdefs.h. */
8959 #include <X11/Xlib.h>
8968 rm -f conftest.
$ac_objext conftest
$ac_exeext
8969 if { (ac_try
="$ac_link"
8971 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8972 *) ac_try_echo=$ac_try;;
8974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8975 (eval "$ac_link") 2>conftest.er1
8977 grep -v '^ *+' conftest.er1 >conftest.err
8979 cat conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); } && {
8982 test -z "$ac_c_werror_flag" ||
8983 test ! -s conftest.err
8984 } && test -s conftest$ac_exeext &&
8985 $as_test_x conftest$ac_exeext; then
8987 # We can link X programs with no special library path.
8990 echo "$as_me: failed program was:" >&5
8991 sed 's/^/| /' conftest.$ac_ext >&5
8994 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
8996 # Don't even attempt the hair of trying to link an X program!
8997 for ac_extension in a so sl; do
8998 if test -r "$ac_dir/libX11.$ac_extension"; then
8999 ac_x_libraries=$ac_dir
9006 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9007 conftest$ac_exeext conftest.$ac_ext
9008 fi # $ac_x_libraries = no
9010 case $ac_x_includes,$ac_x_libraries in #(
9012 # Didn't find X, or a directory has "'" in its name.
9013 ac_cv_have_x="have_x=no";; #(
9015 # Record where we found X for the cache.
9016 ac_cv_have_x="have_x=yes\
9017 ac_x_includes='$ac_x_includes'\
9018 ac_x_libraries='$ac_x_libraries'"
9024 eval "$ac_cv_have_x"
9027 if test "$have_x" != yes; then
9028 { echo "$as_me:$LINENO: result: $have_x" >&5
9029 echo "${ECHO_T}$have_x" >&6; }
9032 # If each of the values was on the command line, it overrides each guess.
9033 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9034 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9035 # Update the cache value to reflect the command line values.
9036 ac_cv_have_x="have_x=yes\
9037 ac_x_includes='$x_includes'\
9038 ac_x_libraries='$x_libraries'"
9039 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9040 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9043 if test "$no_x" = yes; then
9049 if test "${x_libraries}" != NONE; then
9050 if test -n "${x_libraries}"; then
9051 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9052 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9054 x_default_search_path=""
9055 x_search_path=${x_libraries}
9056 if test -z "${x_search_path}"; then
9057 x_search_path=/usr/lib
9059 for x_library in `echo ${x_search_path}: | \
9060 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9062 ${x_library}/X11/%L/%T/%N%C%S:\
9063 ${x_library}/X11/%l/%T/%N%C%S:\
9064 ${x_library}/X11/%T/%N%C%S:\
9065 ${x_library}/X11/%L/%T/%N%S:\
9066 ${x_library}/X11/%l/%T/%N%S:\
9067 ${x_library}/X11/%T/%N%S"
9068 if test x"${x_default_search_path}" = x; then
9069 x_default_search_path=${x_search_path}
9071 x_default_search_path="${x_search_path}:${x_default_search_path}"
9075 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9076 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9079 if test x"${x_includes}" = x; then
9080 bitmapdir=/usr/include/X11/bitmaps
9082 # accumulate include directories that have X11 bitmap subdirectories
9084 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9085 if test -d "${bmd}/X11/bitmaps"; then
9086 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9088 if test -d "${bmd}/bitmaps"; then
9089 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9092 if test ${bmd_acc} != "dummyval"; then
9093 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9098 if test "${with_carbon}" != no; then
9099 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9100 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9101 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9102 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9103 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9106 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9108 # Is the header compilable?
9109 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9110 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9111 cat >conftest.$ac_ext <<_ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 $ac_includes_default
9118 #include <Carbon/Carbon.h>
9120 rm -f conftest.$ac_objext
9121 if { (ac_try="$ac_compile"
9123 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9124 *) ac_try_echo
=$ac_try;;
9126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_compile") 2>conftest.er1
9129 grep -v '^ *+' conftest.er1
>conftest.err
9131 cat conftest.err
>&5
9132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9133 (exit $ac_status); } && {
9134 test -z "$ac_c_werror_flag" ||
9135 test ! -s conftest.err
9136 } && test -s conftest.
$ac_objext; then
9137 ac_header_compiler
=yes
9139 echo "$as_me: failed program was:" >&5
9140 sed 's/^/| /' conftest.
$ac_ext >&5
9142 ac_header_compiler
=no
9145 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9146 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9147 echo "${ECHO_T}$ac_header_compiler" >&6; }
9149 # Is the header present?
9150 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9151 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9152 cat >conftest.
$ac_ext <<_ACEOF
9155 cat confdefs.h
>>conftest.
$ac_ext
9156 cat >>conftest.
$ac_ext <<_ACEOF
9157 /* end confdefs.h. */
9158 #include <Carbon/Carbon.h>
9160 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9163 *) ac_try_echo=$ac_try;;
9165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9166 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9168 grep -v '^ *+' conftest.er1 >conftest.err
9170 cat conftest.err >&5
9171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9172 (exit $ac_status); } >/dev/null && {
9173 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9174 test ! -s conftest.err
9176 ac_header_preproc=yes
9178 echo "$as_me: failed program was:" >&5
9179 sed 's/^/| /' conftest.$ac_ext >&5
9181 ac_header_preproc=no
9184 rm -f conftest.err conftest.$ac_ext
9185 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9186 echo "${ECHO_T}$ac_header_preproc" >&6; }
9188 # So? What about this header?
9189 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9191 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9192 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9193 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9194 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9195 ac_header_preproc=yes
9198 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9199 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9200 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9201 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9202 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9203 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9204 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9205 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9206 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9207 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9208 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9209 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9213 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9214 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9215 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9216 echo $ECHO_N "(cached) $ECHO_C" >&6
9218 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9220 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9221 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9224 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9230 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9231 if test "${with_carbon+set}" != set \
9232 && test "${carbon_appdir_x+set}" != set; then
9233 for var in with_x with_x_toolkit with_xim \
9234 with_xpm with_jpeg with_tiff with_gif with_png; do
9235 if eval test \"\${$var+set}\" = set; then
9242 if test "${HAVE_CARBON}" = yes; then
9246 case "${window_system}" in
9250 case "${with_x_toolkit}" in
9251 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9252 motif ) USE_X_TOOLKIT=MOTIF ;;
9254 USE_X_TOOLKIT=none ;;
9255 no ) USE_X_TOOLKIT=none ;;
9256 * ) USE_X_TOOLKIT=maybe ;;
9266 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9267 # Extract the first word of "X", so it can be a program name with args.
9268 set dummy X; ac_word=$2
9269 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9270 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9271 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9272 echo $ECHO_N "(cached) $ECHO_C" >&6
9274 if test -n "$HAVE_XSERVER"; then
9275 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9281 test -z "$as_dir" && as_dir=.
9282 for ac_exec_ext in '' $ac_executable_extensions; do
9283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9284 ac_cv_prog_HAVE_XSERVER="true"
9285 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9292 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9295 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9296 if test -n "$HAVE_XSERVER"; then
9297 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9298 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9300 { echo "$as_me:$LINENO: result: no" >&5
9301 echo "${ECHO_T}no" >&6; }
9305 if test "$HAVE_XSERVER" = true ||
9306 test -n "$DISPLAY" ||
9307 test "`echo /usr
/lib
/libX11.
*`" != "/usr/lib/libX11.*"; then
9308 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9309 were found. You should install the relevant development files for X
9310 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9311 sure you have development files for image handling, i.e.
9312 tiff, gif, jpeg, png and xpm.
9313 If you are sure you want Emacs compiled without X window support, pass
9316 echo "$as_me: error: You seem to be running X, but no X development libraries
9317 were found. You should install the relevant development files for X
9318 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9319 sure you have development files for image handling, i.e.
9320 tiff, gif, jpeg, png and xpm.
9321 If you are sure you want Emacs compiled without X window support, pass
9323 to configure." >&2;}
9324 { (exit 1); exit 1; }; }
9328 ### If we're using X11, we should use the X menu package.
9331 yes ) HAVE_MENUS=yes ;;
9334 ### Compute the unexec source name from the object name.
9335 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9337 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9338 # Assume not, until told otherwise.
9341 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9342 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9343 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9344 echo $ECHO_N "(cached) $ECHO_C" >&6
9346 cat >conftest.$ac_ext <<_ACEOF
9349 cat confdefs.h >>conftest.$ac_ext
9350 cat >>conftest.$ac_ext <<_ACEOF
9351 /* end confdefs.h. */
9352 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9354 #define malloc_get_state innocuous_malloc_get_state
9356 /* System header to define __stub macros and hopefully few prototypes,
9357 which can conflict with char malloc_get_state (); below.
9358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9359 <limits.h> exists even on freestanding compilers. */
9362 # include <limits.h>
9364 # include <assert.h>
9367 #undef malloc_get_state
9369 /* Override any GCC internal prototype to avoid an error.
9370 Use char because int might match the return type of a GCC
9371 builtin and then its argument prototype would still apply. */
9375 char malloc_get_state ();
9376 /* The GNU C library defines this for functions which it implements
9377 to always fail with ENOSYS. Some functions are actually named
9378 something starting with __ and the normal name is an alias. */
9379 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9386 return malloc_get_state ();
9391 rm -f conftest.$ac_objext conftest$ac_exeext
9392 if { (ac_try="$ac_link"
9394 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9395 *) ac_try_echo
=$ac_try;;
9397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9398 (eval "$ac_link") 2>conftest.er1
9400 grep -v '^ *+' conftest.er1
>conftest.err
9402 cat conftest.err
>&5
9403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9404 (exit $ac_status); } && {
9405 test -z "$ac_c_werror_flag" ||
9406 test ! -s conftest.err
9407 } && test -s conftest
$ac_exeext &&
9408 $as_test_x conftest
$ac_exeext; then
9409 ac_cv_func_malloc_get_state
=yes
9411 echo "$as_me: failed program was:" >&5
9412 sed 's/^/| /' conftest.
$ac_ext >&5
9414 ac_cv_func_malloc_get_state
=no
9417 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9418 conftest
$ac_exeext conftest.
$ac_ext
9420 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9421 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9422 if test $ac_cv_func_malloc_get_state = yes; then
9428 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9429 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9430 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 cat >conftest.
$ac_ext <<_ACEOF
9436 cat confdefs.h
>>conftest.
$ac_ext
9437 cat >>conftest.
$ac_ext <<_ACEOF
9438 /* end confdefs.h. */
9439 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9440 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9441 #define malloc_set_state innocuous_malloc_set_state
9443 /* System header to define __stub macros and hopefully few prototypes,
9444 which can conflict with char malloc_set_state (); below.
9445 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9446 <limits.h> exists even on freestanding compilers. */
9449 # include <limits.h>
9451 # include <assert.h>
9454 #undef malloc_set_state
9456 /* Override any GCC internal prototype to avoid an error.
9457 Use char because int might match the return type of a GCC
9458 builtin and then its argument prototype would still apply. */
9462 char malloc_set_state ();
9463 /* The GNU C library defines this for functions which it implements
9464 to always fail with ENOSYS. Some functions are actually named
9465 something starting with __ and the normal name is an alias. */
9466 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9473 return malloc_set_state ();
9478 rm -f conftest.
$ac_objext conftest
$ac_exeext
9479 if { (ac_try
="$ac_link"
9481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9482 *) ac_try_echo=$ac_try;;
9484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9485 (eval "$ac_link") 2>conftest.er1
9487 grep -v '^ *+' conftest.er1 >conftest.err
9489 cat conftest.err >&5
9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9491 (exit $ac_status); } && {
9492 test -z "$ac_c_werror_flag" ||
9493 test ! -s conftest.err
9494 } && test -s conftest$ac_exeext &&
9495 $as_test_x conftest$ac_exeext; then
9496 ac_cv_func_malloc_set_state=yes
9498 echo "$as_me: failed program was:" >&5
9499 sed 's/^/| /' conftest.$ac_ext >&5
9501 ac_cv_func_malloc_set_state=no
9504 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9505 conftest$ac_exeext conftest.$ac_ext
9507 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9508 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9509 if test $ac_cv_func_malloc_set_state = yes; then
9515 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9516 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9517 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9518 echo $ECHO_N "(cached) $ECHO_C" >&6
9520 cat >conftest.$ac_ext <<_ACEOF
9523 cat confdefs.h >>conftest.$ac_ext
9524 cat >>conftest.$ac_ext <<_ACEOF
9525 /* end confdefs.h. */
9526 extern void (* __after_morecore_hook)();
9530 __after_morecore_hook = 0
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (ac_try="$ac_link"
9538 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9539 *) ac_try_echo
=$ac_try;;
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_link") 2>conftest.er1
9544 grep -v '^ *+' conftest.er1
>conftest.err
9546 cat conftest.err
>&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && {
9549 test -z "$ac_c_werror_flag" ||
9550 test ! -s conftest.err
9551 } && test -s conftest
$ac_exeext &&
9552 $as_test_x conftest
$ac_exeext; then
9553 emacs_cv_var___after_morecore_hook
=yes
9555 echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.
$ac_ext >&5
9558 emacs_cv_var___after_morecore_hook
=no
9561 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9562 conftest
$ac_exeext conftest.
$ac_ext
9564 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9565 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9566 if test $emacs_cv_var___after_morecore_hook = no
; then
9569 if test "${system_malloc}" = "yes"; then
9572 (The GNU allocators don't work with this system configuration.)"
9574 if test "$doug_lea_malloc" = "yes" ; then
9575 if test "$GNU_MALLOC" = yes ; then
9577 (Using Doug Lea's new malloc from the GNU C Library.)"
9580 cat >>confdefs.h
<<\_ACEOF
9581 #define DOUG_LEA_MALLOC 1
9586 if test x
"${REL_ALLOC}" = x
; then
9587 REL_ALLOC
=${GNU_MALLOC}
9593 for ac_header
in stdlib.h unistd.h
9595 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9596 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9599 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9602 ac_res
=`eval echo '${'$as_ac_Header'}'`
9603 { echo "$as_me:$LINENO: result: $ac_res" >&5
9604 echo "${ECHO_T}$ac_res" >&6; }
9606 # Is the header compilable?
9607 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9608 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9609 cat >conftest.
$ac_ext <<_ACEOF
9612 cat confdefs.h
>>conftest.
$ac_ext
9613 cat >>conftest.
$ac_ext <<_ACEOF
9614 /* end confdefs.h. */
9615 $ac_includes_default
9616 #include <$ac_header>
9618 rm -f conftest.
$ac_objext
9619 if { (ac_try
="$ac_compile"
9621 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9622 *) ac_try_echo=$ac_try;;
9624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9625 (eval "$ac_compile") 2>conftest.er1
9627 grep -v '^ *+' conftest.er1 >conftest.err
9629 cat conftest.err >&5
9630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9631 (exit $ac_status); } && {
9632 test -z "$ac_c_werror_flag" ||
9633 test ! -s conftest.err
9634 } && test -s conftest.$ac_objext; then
9635 ac_header_compiler=yes
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9640 ac_header_compiler=no
9643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9645 echo "${ECHO_T}$ac_header_compiler" >&6; }
9647 # Is the header present?
9648 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9649 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9650 cat >conftest.$ac_ext <<_ACEOF
9653 cat confdefs.h >>conftest.$ac_ext
9654 cat >>conftest.$ac_ext <<_ACEOF
9655 /* end confdefs.h. */
9656 #include <$ac_header>
9658 if { (ac_try="$ac_cpp conftest.$ac_ext"
9660 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9661 *) ac_try_echo
=$ac_try;;
9663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9666 grep -v '^ *+' conftest.er1
>conftest.err
9668 cat conftest.err
>&5
9669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9670 (exit $ac_status); } >/dev
/null
&& {
9671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9672 test ! -s conftest.err
9674 ac_header_preproc
=yes
9676 echo "$as_me: failed program was:" >&5
9677 sed 's/^/| /' conftest.
$ac_ext >&5
9679 ac_header_preproc
=no
9682 rm -f conftest.err conftest.
$ac_ext
9683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9684 echo "${ECHO_T}$ac_header_preproc" >&6; }
9686 # So? What about this header?
9687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9689 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9690 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9691 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9692 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9693 ac_header_preproc
=yes
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9697 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9699 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9701 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9702 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9703 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9704 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9705 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9706 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9707 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9711 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9712 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9713 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9714 echo $ECHO_N "(cached) $ECHO_C" >&6
9716 eval "$as_ac_Header=\$ac_header_preproc"
9718 ac_res
=`eval echo '${'$as_ac_Header'}'`
9719 { echo "$as_me:$LINENO: result: $ac_res" >&5
9720 echo "${ECHO_T}$ac_res" >&6; }
9723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9724 cat >>confdefs.h
<<_ACEOF
9725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9733 for ac_func
in getpagesize
9735 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9736 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9738 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9741 cat >conftest.
$ac_ext <<_ACEOF
9744 cat confdefs.h
>>conftest.
$ac_ext
9745 cat >>conftest.
$ac_ext <<_ACEOF
9746 /* end confdefs.h. */
9747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9749 #define $ac_func innocuous_$ac_func
9751 /* System header to define __stub macros and hopefully few prototypes,
9752 which can conflict with char $ac_func (); below.
9753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9754 <limits.h> exists even on freestanding compilers. */
9757 # include <limits.h>
9759 # include <assert.h>
9764 /* Override any GCC internal prototype to avoid an error.
9765 Use char because int might match the return type of a GCC
9766 builtin and then its argument prototype would still apply. */
9771 /* The GNU C library defines this for functions which it implements
9772 to always fail with ENOSYS. Some functions are actually named
9773 something starting with __ and the normal name is an alias. */
9774 #if defined __stub_$ac_func || defined __stub___$ac_func
9786 rm -f conftest.
$ac_objext conftest
$ac_exeext
9787 if { (ac_try
="$ac_link"
9789 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9790 *) ac_try_echo=$ac_try;;
9792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9793 (eval "$ac_link") 2>conftest.er1
9795 grep -v '^ *+' conftest.er1 >conftest.err
9797 cat conftest.err >&5
9798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9799 (exit $ac_status); } && {
9800 test -z "$ac_c_werror_flag" ||
9801 test ! -s conftest.err
9802 } && test -s conftest$ac_exeext &&
9803 $as_test_x conftest$ac_exeext; then
9804 eval "$as_ac_var=yes"
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 eval "$as_ac_var=no"
9812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9813 conftest$ac_exeext conftest.$ac_ext
9815 ac_res=`eval echo '${'$as_ac_var'}'`
9816 { echo "$as_me:$LINENO: result: $ac_res" >&5
9817 echo "${ECHO_T}$ac_res" >&6; }
9818 if test `eval echo '${'$as_ac_var'}'` = yes; then
9819 cat >>confdefs.h <<_ACEOF
9820 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9826 { echo "$as_me:$LINENO: checking for working mmap" >&5
9827 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9828 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9829 echo $ECHO_N "(cached) $ECHO_C" >&6
9831 if test "$cross_compiling" = yes; then
9832 ac_cv_func_mmap_fixed_mapped=no
9834 cat >conftest.$ac_ext <<_ACEOF
9837 cat confdefs.h >>conftest.$ac_ext
9838 cat >>conftest.$ac_ext <<_ACEOF
9839 /* end confdefs.h. */
9840 $ac_includes_default
9841 /* malloc might have been renamed as rpl_malloc. */
9844 /* Thanks to Mike Haertel and Jim Avera for this test.
9845 Here is a matrix of mmap possibilities:
9846 mmap private not fixed
9847 mmap private fixed at somewhere currently unmapped
9848 mmap private fixed at somewhere already mapped
9849 mmap shared not fixed
9850 mmap shared fixed at somewhere currently unmapped
9851 mmap shared fixed at somewhere already mapped
9852 For private mappings, we should verify that changes cannot be read()
9853 back from the file, nor mmap's back from the file at a different
9854 address. (There have been systems where private was not correctly
9855 implemented like the infamous i386 svr4.0, and systems where the
9856 VM page cache was not coherent with the file system buffer cache
9857 like early versions of FreeBSD and possibly contemporary NetBSD.)
9858 For shared mappings, we should conversely verify that changes get
9859 propagated back to all the places they're supposed to be.
9861 Grep wants private fixed already mapped.
9862 The main things grep needs to know about mmap are:
9863 * does it exist and is it safe to write into the mmap'd area
9864 * how to use it (BSD variants) */
9867 #include <sys/mman.h>
9869 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9873 /* This mess was copied from the GNU getpagesize.h. */
9874 #ifndef HAVE_GETPAGESIZE
9875 /* Assume that all systems that can run configure have sys/param.h. */
9876 # ifndef HAVE_SYS_PARAM_H
9877 # define HAVE_SYS_PARAM_H 1
9880 # ifdef _SC_PAGESIZE
9881 # define getpagesize() sysconf(_SC_PAGESIZE)
9882 # else /* no _SC_PAGESIZE */
9883 # ifdef HAVE_SYS_PARAM_H
9884 # include <sys/param.h>
9885 # ifdef EXEC_PAGESIZE
9886 # define getpagesize() EXEC_PAGESIZE
9887 # else /* no EXEC_PAGESIZE */
9889 # define getpagesize() NBPG * CLSIZE
9892 # endif /* no CLSIZE */
9893 # else /* no NBPG */
9895 # define getpagesize() NBPC
9896 # else /* no NBPC */
9898 # define getpagesize() PAGESIZE
9899 # endif /* PAGESIZE */
9900 # endif /* no NBPC */
9901 # endif /* no NBPG */
9902 # endif /* no EXEC_PAGESIZE */
9903 # else /* no HAVE_SYS_PARAM_H */
9904 # define getpagesize() 8192 /* punt totally */
9905 # endif /* no HAVE_SYS_PARAM_H */
9906 # endif /* no _SC_PAGESIZE */
9908 #endif /* no HAVE_GETPAGESIZE */
9913 char *data, *data2, *data3;
9917 pagesize = getpagesize ();
9919 /* First, make a file with some known garbage in it. */
9920 data = (char *) malloc (pagesize);
9923 for (i = 0; i < pagesize; ++i)
9924 *(data + i) = rand ();
9926 fd = creat ("conftest.mmap", 0600);
9929 if (write (fd, data, pagesize) != pagesize)
9933 /* Next, try to mmap the file at a fixed address which already has
9934 something else allocated at it. If we can, also make sure that
9935 we see the same garbage. */
9936 fd = open ("conftest.mmap", O_RDWR);
9939 data2 = (char *) malloc (2 * pagesize);
9942 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9943 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9944 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9946 for (i = 0; i < pagesize; ++i)
9947 if (*(data + i) != *(data2 + i))
9950 /* Finally, make sure that changes to the mapped area do not
9951 percolate back to the file as seen by read(). (This is a bug on
9952 some variants of i386 svr4.0.) */
9953 for (i = 0; i < pagesize; ++i)
9954 *(data2 + i) = *(data2 + i) + 1;
9955 data3 = (char *) malloc (pagesize);
9958 if (read (fd, data3, pagesize) != pagesize)
9960 for (i = 0; i < pagesize; ++i)
9961 if (*(data + i) != *(data3 + i))
9967 rm -f conftest$ac_exeext
9968 if { (ac_try="$ac_link"
9970 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9971 *) ac_try_echo
=$ac_try;;
9973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9974 (eval "$ac_link") 2>&5
9976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9977 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9978 { (case "(($ac_try" in
9979 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_try") 2>&5
9985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9986 (exit $ac_status); }; }; then
9987 ac_cv_func_mmap_fixed_mapped=yes
9989 echo "$as_me: program exited with status $ac_status" >&5
9990 echo "$as_me: failed program was:" >&5
9991 sed 's/^/| /' conftest.$ac_ext >&5
9994 ac_cv_func_mmap_fixed_mapped=no
9996 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10001 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10002 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10003 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10005 cat >>confdefs.h <<\_ACEOF
10006 #define HAVE_MMAP 1
10010 rm -f conftest.mmap
10012 if test $use_mmap_for_buffers = yes; then
10016 LIBS="$libsrc_libs $LIBS"
10019 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10020 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10021 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10022 echo $ECHO_N "(cached) $ECHO_C" >&6
10024 ac_check_lib_save_LIBS=$LIBS
10025 LIBS="-ldnet $LIBS"
10026 cat >conftest.$ac_ext <<_ACEOF
10029 cat confdefs.h >>conftest.$ac_ext
10030 cat >>conftest.$ac_ext <<_ACEOF
10031 /* end confdefs.h. */
10033 /* Override any GCC internal prototype to avoid an error.
10034 Use char because int might match the return type of a GCC
10035 builtin and then its argument prototype would still apply. */
10043 return dnet_ntoa ();
10048 rm -f conftest.$ac_objext conftest$ac_exeext
10049 if { (ac_try="$ac_link"
10050 case "(($ac_try" in
10051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10052 *) ac_try_echo
=$ac_try;;
10054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10055 (eval "$ac_link") 2>conftest.er1
10057 grep -v '^ *+' conftest.er1
>conftest.err
10059 cat conftest.err
>&5
10060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10061 (exit $ac_status); } && {
10062 test -z "$ac_c_werror_flag" ||
10063 test ! -s conftest.err
10064 } && test -s conftest
$ac_exeext &&
10065 $as_test_x conftest
$ac_exeext; then
10066 ac_cv_lib_dnet_dnet_ntoa
=yes
10068 echo "$as_me: failed program was:" >&5
10069 sed 's/^/| /' conftest.
$ac_ext >&5
10071 ac_cv_lib_dnet_dnet_ntoa
=no
10074 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10075 conftest
$ac_exeext conftest.
$ac_ext
10076 LIBS
=$ac_check_lib_save_LIBS
10078 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10079 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10080 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10081 cat >>confdefs.h
<<_ACEOF
10082 #define HAVE_LIBDNET 1
10085 LIBS
="-ldnet $LIBS"
10090 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10091 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10092 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10093 echo $ECHO_N "(cached) $ECHO_C" >&6
10095 ac_check_lib_save_LIBS
=$LIBS
10096 LIBS
="-lXbsd $LIBS"
10097 cat >conftest.
$ac_ext <<_ACEOF
10100 cat confdefs.h
>>conftest.
$ac_ext
10101 cat >>conftest.
$ac_ext <<_ACEOF
10102 /* end confdefs.h. */
10113 rm -f conftest.
$ac_objext conftest
$ac_exeext
10114 if { (ac_try
="$ac_link"
10115 case "(($ac_try" in
10116 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_link") 2>conftest.er1
10122 grep -v '^ *+' conftest.er1 >conftest.err
10124 cat conftest.err >&5
10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10126 (exit $ac_status); } && {
10127 test -z "$ac_c_werror_flag" ||
10128 test ! -s conftest.err
10129 } && test -s conftest$ac_exeext &&
10130 $as_test_x conftest$ac_exeext; then
10131 ac_cv_lib_Xbsd_main=yes
10133 echo "$as_me: failed program was:" >&5
10134 sed 's/^/| /' conftest.$ac_ext >&5
10136 ac_cv_lib_Xbsd_main=no
10139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10140 conftest$ac_exeext conftest.$ac_ext
10141 LIBS=$ac_check_lib_save_LIBS
10143 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10144 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10145 if test $ac_cv_lib_Xbsd_main = yes; then
10146 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10151 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10152 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10153 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10154 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 ac_check_lib_save_LIBS=$LIBS
10157 LIBS="-lpthreads $LIBS"
10158 cat >conftest.$ac_ext <<_ACEOF
10161 cat confdefs.h >>conftest.$ac_ext
10162 cat >>conftest.$ac_ext <<_ACEOF
10163 /* end confdefs.h. */
10165 /* Override any GCC internal prototype to avoid an error.
10166 Use char because int might match the return type of a GCC
10167 builtin and then its argument prototype would still apply. */
10175 return cma_open ();
10180 rm -f conftest.$ac_objext conftest$ac_exeext
10181 if { (ac_try="$ac_link"
10182 case "(($ac_try" in
10183 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10184 *) ac_try_echo
=$ac_try;;
10186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10187 (eval "$ac_link") 2>conftest.er1
10189 grep -v '^ *+' conftest.er1
>conftest.err
10191 cat conftest.err
>&5
10192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10193 (exit $ac_status); } && {
10194 test -z "$ac_c_werror_flag" ||
10195 test ! -s conftest.err
10196 } && test -s conftest
$ac_exeext &&
10197 $as_test_x conftest
$ac_exeext; then
10198 ac_cv_lib_pthreads_cma_open
=yes
10200 echo "$as_me: failed program was:" >&5
10201 sed 's/^/| /' conftest.
$ac_ext >&5
10203 ac_cv_lib_pthreads_cma_open
=no
10206 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10207 conftest
$ac_exeext conftest.
$ac_ext
10208 LIBS
=$ac_check_lib_save_LIBS
10210 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10211 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10212 if test $ac_cv_lib_pthreads_cma_open = yes; then
10213 cat >>confdefs.h
<<_ACEOF
10214 #define HAVE_LIBPTHREADS 1
10217 LIBS
="-lpthreads $LIBS"
10225 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10226 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10227 if test "${gdb_cv_bigtoc+set}" = set; then
10228 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10233 *) gdb_cv_bigtoc
=-bbigtoc ;;
10236 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10237 cat >conftest.
$ac_ext <<_ACEOF
10240 cat confdefs.h
>>conftest.
$ac_ext
10241 cat >>conftest.
$ac_ext <<_ACEOF
10242 /* end confdefs.h. */
10252 rm -f conftest.
$ac_objext conftest
$ac_exeext
10253 if { (ac_try
="$ac_link"
10254 case "(($ac_try" in
10255 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_link") 2>conftest.er1
10261 grep -v '^ *+' conftest.er1 >conftest.err
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } && {
10266 test -z "$ac_c_werror_flag" ||
10267 test ! -s conftest.err
10268 } && test -s conftest$ac_exeext &&
10269 $as_test_x conftest$ac_exeext; then
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10279 conftest$ac_exeext conftest.$ac_ext
10282 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10283 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10287 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10288 # used for the tests that follow. We set them back to REAL_CFLAGS and
10289 # REAL_CPPFLAGS later on.
10291 REAL_CPPFLAGS="$CPPFLAGS"
10293 if test "${HAVE_X11}" = "yes"; then
10294 DEFS="$C_SWITCH_X_SITE $DEFS"
10295 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10297 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10298 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10300 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10301 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10302 # but it's more convenient here to set LD_RUN_PATH
10303 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10304 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10305 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10309 if test "${opsys}" = "gnu-linux"; then
10310 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10311 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10312 cat >conftest.$ac_ext <<_ACEOF
10315 cat confdefs.h >>conftest.$ac_ext
10316 cat >>conftest.$ac_ext <<_ACEOF
10317 /* end confdefs.h. */
10322 XOpenDisplay ("foo");
10327 rm -f conftest.$ac_objext conftest$ac_exeext
10328 if { (ac_try="$ac_link"
10329 case "(($ac_try" in
10330 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10331 *) ac_try_echo
=$ac_try;;
10333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10334 (eval "$ac_link") 2>conftest.er1
10336 grep -v '^ *+' conftest.er1
>conftest.err
10338 cat conftest.err
>&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } && {
10341 test -z "$ac_c_werror_flag" ||
10342 test ! -s conftest.err
10343 } && test -s conftest
$ac_exeext &&
10344 $as_test_x conftest
$ac_exeext; then
10345 xlinux_first_failure
=no
10347 echo "$as_me: failed program was:" >&5
10348 sed 's/^/| /' conftest.
$ac_ext >&5
10350 xlinux_first_failure
=yes
10353 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10354 conftest
$ac_exeext conftest.
$ac_ext
10355 if test "${xlinux_first_failure}" = "yes"; then
10356 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10357 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10358 OLD_CPPFLAGS
="$CPPFLAGS"
10360 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10361 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10362 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10363 LIBS
="$LIBS -b i486-linuxaout"
10364 cat >conftest.
$ac_ext <<_ACEOF
10367 cat confdefs.h
>>conftest.
$ac_ext
10368 cat >>conftest.
$ac_ext <<_ACEOF
10369 /* end confdefs.h. */
10374 XOpenDisplay ("foo");
10379 rm -f conftest.
$ac_objext conftest
$ac_exeext
10380 if { (ac_try
="$ac_link"
10381 case "(($ac_try" in
10382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10383 *) ac_try_echo=$ac_try;;
10385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10386 (eval "$ac_link") 2>conftest.er1
10388 grep -v '^ *+' conftest.er1 >conftest.err
10390 cat conftest.err >&5
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); } && {
10393 test -z "$ac_c_werror_flag" ||
10394 test ! -s conftest.err
10395 } && test -s conftest$ac_exeext &&
10396 $as_test_x conftest$ac_exeext; then
10397 xlinux_second_failure=no
10399 echo "$as_me: failed program was:" >&5
10400 sed 's/^/| /' conftest.$ac_ext >&5
10402 xlinux_second_failure=yes
10405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10406 conftest$ac_exeext conftest.$ac_ext
10407 if test "${xlinux_second_failure}" = "yes"; then
10408 # If we get the same failure with -b, there is no use adding -b.
10409 # So take it out. This plays safe.
10410 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10411 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10412 CPPFLAGS="$OLD_CPPFLAGS"
10414 { echo "$as_me:$LINENO: result: no" >&5
10415 echo "${ECHO_T}no" >&6; }
10417 { echo "$as_me:$LINENO: result: yes" >&5
10418 echo "${ECHO_T}yes" >&6; }
10421 { echo "$as_me:$LINENO: result: no" >&5
10422 echo "${ECHO_T}no" >&6; }
10426 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10427 # header files included from there.
10428 { echo "$as_me:$LINENO: checking for Xkb" >&5
10429 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10430 cat >conftest.$ac_ext <<_ACEOF
10433 cat confdefs.h >>conftest.$ac_ext
10434 cat >>conftest.$ac_ext <<_ACEOF
10435 /* end confdefs.h. */
10436 #include <X11/Xlib.h>
10437 #include <X11/XKBlib.h>
10441 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10446 rm -f conftest.$ac_objext conftest$ac_exeext
10447 if { (ac_try="$ac_link"
10448 case "(($ac_try" in
10449 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10450 *) ac_try_echo
=$ac_try;;
10452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10453 (eval "$ac_link") 2>conftest.er1
10455 grep -v '^ *+' conftest.er1
>conftest.err
10457 cat conftest.err
>&5
10458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10459 (exit $ac_status); } && {
10460 test -z "$ac_c_werror_flag" ||
10461 test ! -s conftest.err
10462 } && test -s conftest
$ac_exeext &&
10463 $as_test_x conftest
$ac_exeext; then
10466 echo "$as_me: failed program was:" >&5
10467 sed 's/^/| /' conftest.
$ac_ext >&5
10472 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10473 conftest
$ac_exeext conftest.
$ac_ext
10474 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10475 echo "${ECHO_T}$emacs_xkb" >&6; }
10476 if test $emacs_xkb = yes; then
10478 cat >>confdefs.h
<<\_ACEOF
10479 #define HAVE_XKBGETKEYBOARD 1
10488 for ac_func
in XrmSetDatabase XScreenResourceString \
10489 XScreenNumberOfScreen XSetWMProtocols
10491 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10492 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10493 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10494 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10495 echo $ECHO_N "(cached) $ECHO_C" >&6
10497 cat >conftest.
$ac_ext <<_ACEOF
10500 cat confdefs.h
>>conftest.
$ac_ext
10501 cat >>conftest.
$ac_ext <<_ACEOF
10502 /* end confdefs.h. */
10503 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10504 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10505 #define $ac_func innocuous_$ac_func
10507 /* System header to define __stub macros and hopefully few prototypes,
10508 which can conflict with char $ac_func (); below.
10509 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10510 <limits.h> exists even on freestanding compilers. */
10513 # include <limits.h>
10515 # include <assert.h>
10520 /* Override any GCC internal prototype to avoid an error.
10521 Use char because int might match the return type of a GCC
10522 builtin and then its argument prototype would still apply. */
10527 /* The GNU C library defines this for functions which it implements
10528 to always fail with ENOSYS. Some functions are actually named
10529 something starting with __ and the normal name is an alias. */
10530 #if defined __stub_$ac_func || defined __stub___$ac_func
10537 return $ac_func ();
10542 rm -f conftest.
$ac_objext conftest
$ac_exeext
10543 if { (ac_try
="$ac_link"
10544 case "(($ac_try" in
10545 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10546 *) ac_try_echo=$ac_try;;
10548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10549 (eval "$ac_link") 2>conftest.er1
10551 grep -v '^ *+' conftest.er1 >conftest.err
10553 cat conftest.err >&5
10554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10555 (exit $ac_status); } && {
10556 test -z "$ac_c_werror_flag" ||
10557 test ! -s conftest.err
10558 } && test -s conftest$ac_exeext &&
10559 $as_test_x conftest$ac_exeext; then
10560 eval "$as_ac_var=yes"
10562 echo "$as_me: failed program was:" >&5
10563 sed 's/^/| /' conftest.$ac_ext >&5
10565 eval "$as_ac_var=no"
10568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10569 conftest$ac_exeext conftest.$ac_ext
10571 ac_res=`eval echo '${'$as_ac_var'}'`
10572 { echo "$as_me:$LINENO: result: $ac_res" >&5
10573 echo "${ECHO_T}$ac_res" >&6; }
10574 if test `eval echo '${'$as_ac_var'}'` = yes; then
10575 cat >>confdefs.h <<_ACEOF
10576 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10584 if test "${window_system}" = "x11"; then
10585 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10586 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10587 if test "${emacs_cv_x11_version_6+set}" = set; then
10588 echo $ECHO_N "(cached) $ECHO_C" >&6
10590 cat >conftest.$ac_ext <<_ACEOF
10593 cat confdefs.h >>conftest.$ac_ext
10594 cat >>conftest.$ac_ext <<_ACEOF
10595 /* end confdefs.h. */
10596 #include <X11/Xlib.h>
10600 #if XlibSpecificationRelease < 6
10608 rm -f conftest.$ac_objext conftest$ac_exeext
10609 if { (ac_try="$ac_link"
10610 case "(($ac_try" in
10611 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10612 *) ac_try_echo
=$ac_try;;
10614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10615 (eval "$ac_link") 2>conftest.er1
10617 grep -v '^ *+' conftest.er1
>conftest.err
10619 cat conftest.err
>&5
10620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10621 (exit $ac_status); } && {
10622 test -z "$ac_c_werror_flag" ||
10623 test ! -s conftest.err
10624 } && test -s conftest
$ac_exeext &&
10625 $as_test_x conftest
$ac_exeext; then
10626 emacs_cv_x11_version_6
=yes
10628 echo "$as_me: failed program was:" >&5
10629 sed 's/^/| /' conftest.
$ac_ext >&5
10631 emacs_cv_x11_version_6
=no
10634 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10635 conftest
$ac_exeext conftest.
$ac_ext
10638 if test $emacs_cv_x11_version_6 = yes; then
10639 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10640 echo "${ECHO_T}6 or newer" >&6; }
10642 cat >>confdefs.h
<<\_ACEOF
10643 #define HAVE_X11R6 1
10647 { echo "$as_me:$LINENO: result: before 6" >&5
10648 echo "${ECHO_T}before 6" >&6; }
10653 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10655 if test "${HAVE_X11}" = "yes" ||
test "${HAVE_CARBON}" = "yes"; then
10656 if test "${with_rsvg}" != "no"; then
10657 RSVG_REQUIRED
=2.0.0
10658 RSVG_MODULE
="librsvg-2.0 >= $RSVG_REQUIRED"
10663 # Extract the first word of "pkg-config", so it can be a program name with args.
10664 set dummy pkg-config
; ac_word
=$2
10665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10667 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10668 echo $ECHO_N "(cached) $ECHO_C" >&6
10670 case $PKG_CONFIG in
10672 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10676 for as_dir
in $PATH
10679 test -z "$as_dir" && as_dir
=.
10680 for ac_exec_ext
in '' $ac_executable_extensions; do
10681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10682 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10690 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10694 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10695 if test -n "$PKG_CONFIG"; then
10696 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10697 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10699 { echo "$as_me:$LINENO: result: no" >&5
10700 echo "${ECHO_T}no" >&6; }
10705 if test "$PKG_CONFIG" = "no" ; then
10708 PKG_CONFIG_MIN_VERSION
=0.9.0
10709 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10710 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10711 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10713 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10714 { echo "$as_me:$LINENO: result: yes" >&5
10715 echo "${ECHO_T}yes" >&6; }
10718 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10719 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10720 RSVG_CFLAGS
=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10721 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10722 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10724 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10725 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10726 RSVG_LIBS
=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10727 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10728 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10730 { echo "$as_me:$LINENO: result: no" >&5
10731 echo "${ECHO_T}no" >&6; }
10734 ## If we have a custom action on failure, don't print errors, but
10735 ## do set a variable so people can do so.
10736 RSVG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10743 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10744 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10748 if test $succeeded = yes; then
10757 if test ".${RSVG_CFLAGS}" != "."; then
10760 cat >>confdefs.h
<<\_ACEOF
10761 #define HAVE_RSVG 1
10764 CFLAGS
="$CFLAGS $RSVG_CFLAGS"
10765 LIBS
="$RSVG_LIBS $LIBS"
10772 if test "${with_gtk}" = "yes" ||
test "$USE_X_TOOLKIT" = "maybe"; then
10775 GTK_MODULES
="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10780 # Extract the first word of "pkg-config", so it can be a program name with args.
10781 set dummy pkg-config
; ac_word
=$2
10782 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10784 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10785 echo $ECHO_N "(cached) $ECHO_C" >&6
10787 case $PKG_CONFIG in
10789 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
10792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10793 for as_dir
in $PATH
10796 test -z "$as_dir" && as_dir
=.
10797 for ac_exec_ext
in '' $ac_executable_extensions; do
10798 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10799 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
10800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10807 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
10811 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
10812 if test -n "$PKG_CONFIG"; then
10813 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10814 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10816 { echo "$as_me:$LINENO: result: no" >&5
10817 echo "${ECHO_T}no" >&6; }
10822 if test "$PKG_CONFIG" = "no" ; then
10825 PKG_CONFIG_MIN_VERSION
=0.9.0
10826 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10827 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10828 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10830 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10831 { echo "$as_me:$LINENO: result: yes" >&5
10832 echo "${ECHO_T}yes" >&6; }
10835 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10836 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10837 GTK_CFLAGS
=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10838 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10839 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10841 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10842 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10843 GTK_LIBS
=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10844 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10845 echo "${ECHO_T}$GTK_LIBS" >&6; }
10847 { echo "$as_me:$LINENO: result: no" >&5
10848 echo "${ECHO_T}no" >&6; }
10851 ## If we have a custom action on failure, don't print errors, but
10852 ## do set a variable so people can do so.
10853 GTK_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10860 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10861 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10865 if test $succeeded = yes; then
10871 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10872 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10873 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10874 { (exit 1); exit 1; }; }
10879 if test x
"$pkg_check_gtk" = xyes
; then
10883 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE $GTK_CFLAGS"
10884 CFLAGS
="$CFLAGS $GTK_CFLAGS"
10885 LIBS
="$GTK_LIBS $LIBS"
10888 for ac_func
in gtk_main
10890 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10893 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10894 echo $ECHO_N "(cached) $ECHO_C" >&6
10896 cat >conftest.
$ac_ext <<_ACEOF
10899 cat confdefs.h
>>conftest.
$ac_ext
10900 cat >>conftest.
$ac_ext <<_ACEOF
10901 /* end confdefs.h. */
10902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10904 #define $ac_func innocuous_$ac_func
10906 /* System header to define __stub macros and hopefully few prototypes,
10907 which can conflict with char $ac_func (); below.
10908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10909 <limits.h> exists even on freestanding compilers. */
10912 # include <limits.h>
10914 # include <assert.h>
10919 /* Override any GCC internal prototype to avoid an error.
10920 Use char because int might match the return type of a GCC
10921 builtin and then its argument prototype would still apply. */
10926 /* The GNU C library defines this for functions which it implements
10927 to always fail with ENOSYS. Some functions are actually named
10928 something starting with __ and the normal name is an alias. */
10929 #if defined __stub_$ac_func || defined __stub___$ac_func
10936 return $ac_func ();
10941 rm -f conftest.
$ac_objext conftest
$ac_exeext
10942 if { (ac_try
="$ac_link"
10943 case "(($ac_try" in
10944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10945 *) ac_try_echo=$ac_try;;
10947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10948 (eval "$ac_link") 2>conftest.er1
10950 grep -v '^ *+' conftest.er1 >conftest.err
10952 cat conftest.err >&5
10953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10954 (exit $ac_status); } && {
10955 test -z "$ac_c_werror_flag" ||
10956 test ! -s conftest.err
10957 } && test -s conftest$ac_exeext &&
10958 $as_test_x conftest$ac_exeext; then
10959 eval "$as_ac_var=yes"
10961 echo "$as_me: failed program was:" >&5
10962 sed 's/^/| /' conftest.$ac_ext >&5
10964 eval "$as_ac_var=no"
10967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10968 conftest$ac_exeext conftest.$ac_ext
10970 ac_res=`eval echo '${'$as_ac_var'}'`
10971 { echo "$as_me:$LINENO: result: $ac_res" >&5
10972 echo "${ECHO_T}$ac_res" >&6; }
10973 if test `eval echo '${'$as_ac_var'}'` = yes; then
10974 cat >>confdefs.h <<_ACEOF
10975 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10981 if test "${GTK_COMPILES}" != "yes"; then
10982 if test "$USE_X_TOOLKIT" != "maybe"; then
10983 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10984 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10985 { (exit 1); exit 1; }; };
10990 cat >>confdefs.h <<\_ACEOF
11000 if test "${HAVE_GTK}" = "yes"; then
11002 if test "$with_toolkit_scroll_bars" != no; then
11003 with_toolkit_scroll_bars=yes
11006 HAVE_GTK_MULTIDISPLAY=no
11008 for ac_func in gdk_display_open
11010 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11011 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11012 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11013 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11016 cat >conftest.$ac_ext <<_ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11023 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11024 #define $ac_func innocuous_$ac_func
11026 /* System header to define __stub macros and hopefully few prototypes,
11027 which can conflict with char $ac_func (); below.
11028 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11029 <limits.h> exists even on freestanding compilers. */
11032 # include <limits.h>
11034 # include <assert.h>
11039 /* Override any GCC internal prototype to avoid an error.
11040 Use char because int might match the return type of a GCC
11041 builtin and then its argument prototype would still apply. */
11046 /* The GNU C library defines this for functions which it implements
11047 to always fail with ENOSYS. Some functions are actually named
11048 something starting with __ and the normal name is an alias. */
11049 #if defined __stub_$ac_func || defined __stub___$ac_func
11056 return $ac_func ();
11061 rm -f conftest.$ac_objext conftest$ac_exeext
11062 if { (ac_try="$ac_link"
11063 case "(($ac_try" in
11064 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11065 *) ac_try_echo
=$ac_try;;
11067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11068 (eval "$ac_link") 2>conftest.er1
11070 grep -v '^ *+' conftest.er1
>conftest.err
11072 cat conftest.err
>&5
11073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11074 (exit $ac_status); } && {
11075 test -z "$ac_c_werror_flag" ||
11076 test ! -s conftest.err
11077 } && test -s conftest
$ac_exeext &&
11078 $as_test_x conftest
$ac_exeext; then
11079 eval "$as_ac_var=yes"
11081 echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.
$ac_ext >&5
11084 eval "$as_ac_var=no"
11087 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11088 conftest
$ac_exeext conftest.
$ac_ext
11090 ac_res
=`eval echo '${'$as_ac_var'}'`
11091 { echo "$as_me:$LINENO: result: $ac_res" >&5
11092 echo "${ECHO_T}$ac_res" >&6; }
11093 if test `eval echo '${'$as_ac_var'}'` = yes; then
11094 cat >>confdefs.h
<<_ACEOF
11095 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11097 HAVE_GTK_MULTIDISPLAY
=yes
11101 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11103 cat >>confdefs.h
<<\_ACEOF
11104 #define HAVE_GTK_MULTIDISPLAY 1
11109 HAVE_GTK_FILE_SELECTION
=no
11111 for ac_func
in gtk_file_selection_new
11113 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11114 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11115 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11116 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 cat >conftest.
$ac_ext <<_ACEOF
11122 cat confdefs.h
>>conftest.
$ac_ext
11123 cat >>conftest.
$ac_ext <<_ACEOF
11124 /* end confdefs.h. */
11125 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11126 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11127 #define $ac_func innocuous_$ac_func
11129 /* System header to define __stub macros and hopefully few prototypes,
11130 which can conflict with char $ac_func (); below.
11131 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11132 <limits.h> exists even on freestanding compilers. */
11135 # include <limits.h>
11137 # include <assert.h>
11142 /* Override any GCC internal prototype to avoid an error.
11143 Use char because int might match the return type of a GCC
11144 builtin and then its argument prototype would still apply. */
11149 /* The GNU C library defines this for functions which it implements
11150 to always fail with ENOSYS. Some functions are actually named
11151 something starting with __ and the normal name is an alias. */
11152 #if defined __stub_$ac_func || defined __stub___$ac_func
11159 return $ac_func ();
11164 rm -f conftest.
$ac_objext conftest
$ac_exeext
11165 if { (ac_try
="$ac_link"
11166 case "(($ac_try" in
11167 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11168 *) ac_try_echo=$ac_try;;
11170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11171 (eval "$ac_link") 2>conftest.er1
11173 grep -v '^ *+' conftest.er1 >conftest.err
11175 cat conftest.err >&5
11176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11177 (exit $ac_status); } && {
11178 test -z "$ac_c_werror_flag" ||
11179 test ! -s conftest.err
11180 } && test -s conftest$ac_exeext &&
11181 $as_test_x conftest$ac_exeext; then
11182 eval "$as_ac_var=yes"
11184 echo "$as_me: failed program was:" >&5
11185 sed 's/^/| /' conftest.$ac_ext >&5
11187 eval "$as_ac_var=no"
11190 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11191 conftest$ac_exeext conftest.$ac_ext
11193 ac_res=`eval echo '${'$as_ac_var'}'`
11194 { echo "$as_me:$LINENO: result: $ac_res" >&5
11195 echo "${ECHO_T}$ac_res" >&6; }
11196 if test `eval echo '${'$as_ac_var'}'` = yes; then
11197 cat >>confdefs.h <<_ACEOF
11198 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11200 HAVE_GTK_FILE_SELECTION=yes
11205 HAVE_GTK_FILE_CHOOSER=no
11207 for ac_func in gtk_file_chooser_dialog_new
11209 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11210 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11211 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11212 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11213 echo $ECHO_N "(cached) $ECHO_C" >&6
11215 cat >conftest.$ac_ext <<_ACEOF
11218 cat confdefs.h >>conftest.$ac_ext
11219 cat >>conftest.$ac_ext <<_ACEOF
11220 /* end confdefs.h. */
11221 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11222 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11223 #define $ac_func innocuous_$ac_func
11225 /* System header to define __stub macros and hopefully few prototypes,
11226 which can conflict with char $ac_func (); below.
11227 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11228 <limits.h> exists even on freestanding compilers. */
11231 # include <limits.h>
11233 # include <assert.h>
11238 /* Override any GCC internal prototype to avoid an error.
11239 Use char because int might match the return type of a GCC
11240 builtin and then its argument prototype would still apply. */
11245 /* The GNU C library defines this for functions which it implements
11246 to always fail with ENOSYS. Some functions are actually named
11247 something starting with __ and the normal name is an alias. */
11248 #if defined __stub_$ac_func || defined __stub___$ac_func
11255 return $ac_func ();
11260 rm -f conftest.$ac_objext conftest$ac_exeext
11261 if { (ac_try="$ac_link"
11262 case "(($ac_try" in
11263 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11264 *) ac_try_echo
=$ac_try;;
11266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11267 (eval "$ac_link") 2>conftest.er1
11269 grep -v '^ *+' conftest.er1
>conftest.err
11271 cat conftest.err
>&5
11272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11273 (exit $ac_status); } && {
11274 test -z "$ac_c_werror_flag" ||
11275 test ! -s conftest.err
11276 } && test -s conftest
$ac_exeext &&
11277 $as_test_x conftest
$ac_exeext; then
11278 eval "$as_ac_var=yes"
11280 echo "$as_me: failed program was:" >&5
11281 sed 's/^/| /' conftest.
$ac_ext >&5
11283 eval "$as_ac_var=no"
11286 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11287 conftest
$ac_exeext conftest.
$ac_ext
11289 ac_res
=`eval echo '${'$as_ac_var'}'`
11290 { echo "$as_me:$LINENO: result: $ac_res" >&5
11291 echo "${ECHO_T}$ac_res" >&6; }
11292 if test `eval echo '${'$as_ac_var'}'` = yes; then
11293 cat >>confdefs.h
<<_ACEOF
11294 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11296 HAVE_GTK_FILE_CHOOSER
=yes
11301 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11302 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11304 cat >>confdefs.h
<<\_ACEOF
11305 #define HAVE_GTK_FILE_BOTH 1
11310 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11311 HAVE_GTK_AND_PTHREAD
=no
11313 for ac_header
in pthread.h
11315 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11316 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11317 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11319 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11322 ac_res
=`eval echo '${'$as_ac_Header'}'`
11323 { echo "$as_me:$LINENO: result: $ac_res" >&5
11324 echo "${ECHO_T}$ac_res" >&6; }
11326 # Is the header compilable?
11327 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11329 cat >conftest.
$ac_ext <<_ACEOF
11332 cat confdefs.h
>>conftest.
$ac_ext
11333 cat >>conftest.
$ac_ext <<_ACEOF
11334 /* end confdefs.h. */
11335 $ac_includes_default
11336 #include <$ac_header>
11338 rm -f conftest.
$ac_objext
11339 if { (ac_try
="$ac_compile"
11340 case "(($ac_try" in
11341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11342 *) ac_try_echo=$ac_try;;
11344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11345 (eval "$ac_compile") 2>conftest.er1
11347 grep -v '^ *+' conftest.er1 >conftest.err
11349 cat conftest.err >&5
11350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11351 (exit $ac_status); } && {
11352 test -z "$ac_c_werror_flag" ||
11353 test ! -s conftest.err
11354 } && test -s conftest.$ac_objext; then
11355 ac_header_compiler=yes
11357 echo "$as_me: failed program was:" >&5
11358 sed 's/^/| /' conftest.$ac_ext >&5
11360 ac_header_compiler=no
11363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11364 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11365 echo "${ECHO_T}$ac_header_compiler" >&6; }
11367 # Is the header present?
11368 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11369 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11370 cat >conftest.$ac_ext <<_ACEOF
11373 cat confdefs.h >>conftest.$ac_ext
11374 cat >>conftest.$ac_ext <<_ACEOF
11375 /* end confdefs.h. */
11376 #include <$ac_header>
11378 if { (ac_try="$ac_cpp conftest.$ac_ext"
11379 case "(($ac_try" in
11380 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11381 *) ac_try_echo
=$ac_try;;
11383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11384 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11386 grep -v '^ *+' conftest.er1
>conftest.err
11388 cat conftest.err
>&5
11389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11390 (exit $ac_status); } >/dev
/null
&& {
11391 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11392 test ! -s conftest.err
11394 ac_header_preproc
=yes
11396 echo "$as_me: failed program was:" >&5
11397 sed 's/^/| /' conftest.
$ac_ext >&5
11399 ac_header_preproc
=no
11402 rm -f conftest.err conftest.
$ac_ext
11403 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11404 echo "${ECHO_T}$ac_header_preproc" >&6; }
11406 # So? What about this header?
11407 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11409 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11410 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11412 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11413 ac_header_preproc
=yes
11416 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11417 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11419 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11421 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11423 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11425 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11427 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11433 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11434 echo $ECHO_N "(cached) $ECHO_C" >&6
11436 eval "$as_ac_Header=\$ac_header_preproc"
11438 ac_res
=`eval echo '${'$as_ac_Header'}'`
11439 { echo "$as_me:$LINENO: result: $ac_res" >&5
11440 echo "${ECHO_T}$ac_res" >&6; }
11443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11444 cat >>confdefs.h
<<_ACEOF
11445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11452 if test "$ac_cv_header_pthread_h"; then
11453 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11454 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11455 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11456 echo $ECHO_N "(cached) $ECHO_C" >&6
11458 ac_check_lib_save_LIBS
=$LIBS
11459 LIBS
="-lpthread $LIBS"
11460 cat >conftest.
$ac_ext <<_ACEOF
11463 cat confdefs.h
>>conftest.
$ac_ext
11464 cat >>conftest.
$ac_ext <<_ACEOF
11465 /* end confdefs.h. */
11467 /* Override any GCC internal prototype to avoid an error.
11468 Use char because int might match the return type of a GCC
11469 builtin and then its argument prototype would still apply. */
11473 char pthread_self ();
11477 return pthread_self ();
11482 rm -f conftest.
$ac_objext conftest
$ac_exeext
11483 if { (ac_try
="$ac_link"
11484 case "(($ac_try" in
11485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11486 *) ac_try_echo=$ac_try;;
11488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11489 (eval "$ac_link") 2>conftest.er1
11491 grep -v '^ *+' conftest.er1 >conftest.err
11493 cat conftest.err >&5
11494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11495 (exit $ac_status); } && {
11496 test -z "$ac_c_werror_flag" ||
11497 test ! -s conftest.err
11498 } && test -s conftest$ac_exeext &&
11499 $as_test_x conftest$ac_exeext; then
11500 ac_cv_lib_pthread_pthread_self=yes
11502 echo "$as_me: failed program was:" >&5
11503 sed 's/^/| /' conftest.$ac_ext >&5
11505 ac_cv_lib_pthread_pthread_self=no
11508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11509 conftest$ac_exeext conftest.$ac_ext
11510 LIBS=$ac_check_lib_save_LIBS
11512 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11513 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11514 if test $ac_cv_lib_pthread_pthread_self = yes; then
11515 HAVE_GTK_AND_PTHREAD=yes
11519 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11520 case "${canonical}" in
11522 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11525 cat >>confdefs.h <<\_ACEOF
11526 #define HAVE_GTK_AND_PTHREAD 1
11534 if test "${with_dbus}" = "yes"; then
11538 # Extract the first word of "pkg-config", so it can be a program name with args.
11539 set dummy pkg-config; ac_word=$2
11540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11542 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11543 echo $ECHO_N "(cached) $ECHO_C" >&6
11545 case $PKG_CONFIG in
11547 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11551 for as_dir in $PATH
11554 test -z "$as_dir" && as_dir=.
11555 for ac_exec_ext in '' $ac_executable_extensions; do
11556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11557 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11558 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11565 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11569 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11570 if test -n "$PKG_CONFIG"; then
11571 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11572 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11574 { echo "$as_me:$LINENO: result: no" >&5
11575 echo "${ECHO_T}no" >&6; }
11580 if test "$PKG_CONFIG" = "no" ; then
11583 PKG_CONFIG_MIN_VERSION=0.9.0
11584 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11585 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11586 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11588 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11589 { echo "$as_me:$LINENO: result: yes" >&5
11590 echo "${ECHO_T}yes" >&6; }
11593 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11594 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11595 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11596 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11597 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11599 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11600 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11601 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|
sed -e 's,///*,/,g'`
11602 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11603 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11605 { echo "$as_me:$LINENO: result: no" >&5
11606 echo "${ECHO_T}no" >&6; }
11609 ## If we have a custom action on failure, don't print errors, but
11610 ## do set a variable so people can do so.
11611 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11618 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11619 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11623 if test $succeeded = yes; then
11629 if test "$HAVE_DBUS" = yes; then
11631 cat >>confdefs.h <<\_ACEOF
11632 #define HAVE_DBUS 1
11639 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11640 if test "$with_xaw3d" != no; then
11641 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11642 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11643 if test "${emacs_cv_xaw3d+set}" = set; then
11644 echo $ECHO_N "(cached) $ECHO_C" >&6
11646 cat >conftest.$ac_ext <<_ACEOF
11649 cat confdefs.h >>conftest.$ac_ext
11650 cat >>conftest.$ac_ext <<_ACEOF
11651 /* end confdefs.h. */
11653 #include <X11/Intrinsic.h>
11654 #include <X11/Xaw3d/Simple.h>
11663 rm -f conftest.$ac_objext conftest$ac_exeext
11664 if { (ac_try="$ac_link"
11665 case "(($ac_try" in
11666 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11667 *) ac_try_echo
=$ac_try;;
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_link") 2>conftest.er1
11672 grep -v '^ *+' conftest.er1
>conftest.err
11674 cat conftest.err
>&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } && {
11677 test -z "$ac_c_werror_flag" ||
11678 test ! -s conftest.err
11679 } && test -s conftest
$ac_exeext &&
11680 $as_test_x conftest
$ac_exeext; then
11683 echo "$as_me: failed program was:" >&5
11684 sed 's/^/| /' conftest.
$ac_ext >&5
11689 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11690 conftest
$ac_exeext conftest.
$ac_ext
11696 if test $emacs_cv_xaw3d = yes; then
11697 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11698 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11699 USE_X_TOOLKIT
=LUCID
11702 cat >>confdefs.h
<<\_ACEOF
11703 #define HAVE_XAW3D 1
11707 { echo "$as_me:$LINENO: result: no" >&5
11708 echo "${ECHO_T}no" >&6; }
11709 { echo "$as_me:$LINENO: checking for libXaw" >&5
11710 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11711 if test "${emacs_cv_xaw+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 cat >conftest.
$ac_ext <<_ACEOF
11717 cat confdefs.h
>>conftest.
$ac_ext
11718 cat >>conftest.
$ac_ext <<_ACEOF
11719 /* end confdefs.h. */
11721 #include <X11/Intrinsic.h>
11722 #include <X11/Xaw/Simple.h>
11731 rm -f conftest.
$ac_objext conftest
$ac_exeext
11732 if { (ac_try
="$ac_link"
11733 case "(($ac_try" in
11734 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11735 *) ac_try_echo=$ac_try;;
11737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11738 (eval "$ac_link") 2>conftest.er1
11740 grep -v '^ *+' conftest.er1 >conftest.err
11742 cat conftest.err >&5
11743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11744 (exit $ac_status); } && {
11745 test -z "$ac_c_werror_flag" ||
11746 test ! -s conftest.err
11747 } && test -s conftest$ac_exeext &&
11748 $as_test_x conftest$ac_exeext; then
11751 echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11758 conftest$ac_exeext conftest.$ac_ext
11761 if test $emacs_cv_xaw = yes; then
11762 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11763 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11764 USE_X_TOOLKIT=LUCID
11765 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11766 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11767 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11768 { (exit 1); exit 1; }; }
11770 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11771 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11777 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11779 if test "${USE_X_TOOLKIT}" != "none"; then
11780 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11781 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11782 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11783 echo $ECHO_N "(cached) $ECHO_C" >&6
11785 cat >conftest.$ac_ext <<_ACEOF
11788 cat confdefs.h >>conftest.$ac_ext
11789 cat >>conftest.$ac_ext <<_ACEOF
11790 /* end confdefs.h. */
11791 #include <X11/Intrinsic.h>
11795 #if XtSpecificationRelease < 6
11803 rm -f conftest.$ac_objext conftest$ac_exeext
11804 if { (ac_try="$ac_link"
11805 case "(($ac_try" in
11806 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11807 *) ac_try_echo
=$ac_try;;
11809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11810 (eval "$ac_link") 2>conftest.er1
11812 grep -v '^ *+' conftest.er1
>conftest.err
11814 cat conftest.err
>&5
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); } && {
11817 test -z "$ac_c_werror_flag" ||
11818 test ! -s conftest.err
11819 } && test -s conftest
$ac_exeext &&
11820 $as_test_x conftest
$ac_exeext; then
11821 emacs_cv_x11_toolkit_version_6
=yes
11823 echo "$as_me: failed program was:" >&5
11824 sed 's/^/| /' conftest.
$ac_ext >&5
11826 emacs_cv_x11_toolkit_version_6
=no
11829 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11830 conftest
$ac_exeext conftest.
$ac_ext
11833 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11834 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11835 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11836 echo "${ECHO_T}6 or newer" >&6; }
11838 cat >>confdefs.h
<<\_ACEOF
11839 #define HAVE_X11XTR6 1
11843 { echo "$as_me:$LINENO: result: before 6" >&5
11844 echo "${ECHO_T}before 6" >&6; }
11848 if test x
$HAVE_X11XTR6 = xyes
; then
11849 LIBS
="-lXt -lSM -lICE $LIBS"
11854 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11855 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11856 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11857 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 ac_check_lib_save_LIBS
=$LIBS
11861 cat >conftest.
$ac_ext <<_ACEOF
11864 cat confdefs.h
>>conftest.
$ac_ext
11865 cat >>conftest.
$ac_ext <<_ACEOF
11866 /* end confdefs.h. */
11868 /* Override any GCC internal prototype to avoid an error.
11869 Use char because int might match the return type of a GCC
11870 builtin and then its argument prototype would still apply. */
11874 char XmuConvertStandardSelection ();
11878 return XmuConvertStandardSelection ();
11883 rm -f conftest.
$ac_objext conftest
$ac_exeext
11884 if { (ac_try
="$ac_link"
11885 case "(($ac_try" in
11886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11887 *) ac_try_echo=$ac_try;;
11889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11890 (eval "$ac_link") 2>conftest.er1
11892 grep -v '^ *+' conftest.er1 >conftest.err
11894 cat conftest.err >&5
11895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11896 (exit $ac_status); } && {
11897 test -z "$ac_c_werror_flag" ||
11898 test ! -s conftest.err
11899 } && test -s conftest$ac_exeext &&
11900 $as_test_x conftest$ac_exeext; then
11901 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11903 echo "$as_me: failed program was:" >&5
11904 sed 's/^/| /' conftest.$ac_ext >&5
11906 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11909 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11910 conftest$ac_exeext conftest.$ac_ext
11911 LIBS=$ac_check_lib_save_LIBS
11913 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11914 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11915 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11916 cat >>confdefs.h <<_ACEOF
11917 #define HAVE_LIBXMU 1
11924 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11927 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11928 if test "${HAVE_X11}" = "yes"; then
11929 if test "${USE_X_TOOLKIT}" != "none"; then
11931 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11932 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11933 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11934 echo $ECHO_N "(cached) $ECHO_C" >&6
11936 ac_check_lib_save_LIBS=$LIBS
11937 LIBS="-lXext $LIBS"
11938 cat >conftest.$ac_ext <<_ACEOF
11941 cat confdefs.h >>conftest.$ac_ext
11942 cat >>conftest.$ac_ext <<_ACEOF
11943 /* end confdefs.h. */
11945 /* Override any GCC internal prototype to avoid an error.
11946 Use char because int might match the return type of a GCC
11947 builtin and then its argument prototype would still apply. */
11951 char XShapeQueryExtension ();
11955 return XShapeQueryExtension ();
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (ac_try="$ac_link"
11962 case "(($ac_try" in
11963 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11964 *) ac_try_echo
=$ac_try;;
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967 (eval "$ac_link") 2>conftest.er1
11969 grep -v '^ *+' conftest.er1
>conftest.err
11971 cat conftest.err
>&5
11972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973 (exit $ac_status); } && {
11974 test -z "$ac_c_werror_flag" ||
11975 test ! -s conftest.err
11976 } && test -s conftest
$ac_exeext &&
11977 $as_test_x conftest
$ac_exeext; then
11978 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11980 echo "$as_me: failed program was:" >&5
11981 sed 's/^/| /' conftest.
$ac_ext >&5
11983 ac_cv_lib_Xext_XShapeQueryExtension
=no
11986 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11987 conftest
$ac_exeext conftest.
$ac_ext
11988 LIBS
=$ac_check_lib_save_LIBS
11990 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11991 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11992 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11993 cat >>confdefs.h
<<_ACEOF
11994 #define HAVE_LIBXEXT 1
11997 LIBS
="-lXext $LIBS"
12004 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12005 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12006 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12007 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12008 echo $ECHO_N "(cached) $ECHO_C" >&6
12010 cat >conftest.
$ac_ext <<_ACEOF
12013 cat confdefs.h
>>conftest.
$ac_ext
12014 cat >>conftest.
$ac_ext <<_ACEOF
12015 /* end confdefs.h. */
12020 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12023 Motif version prior to 2.1.
12029 rm -f conftest.
$ac_objext
12030 if { (ac_try
="$ac_compile"
12031 case "(($ac_try" in
12032 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12033 *) ac_try_echo=$ac_try;;
12035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12036 (eval "$ac_compile") 2>conftest.er1
12038 grep -v '^ *+' conftest.er1 >conftest.err
12040 cat conftest.err >&5
12041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12042 (exit $ac_status); } && {
12043 test -z "$ac_c_werror_flag" ||
12044 test ! -s conftest.err
12045 } && test -s conftest.$ac_objext; then
12046 emacs_cv_motif_version_2_1=yes
12048 echo "$as_me: failed program was:" >&5
12049 sed 's/^/| /' conftest.$ac_ext >&5
12051 emacs_cv_motif_version_2_1=no
12054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12056 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12057 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12058 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12059 if test $emacs_cv_motif_version_2_1 = yes; then
12062 cat >>confdefs.h <<\_ACEOF
12063 #define HAVE_MOTIF_2_1 1
12066 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12067 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12068 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12069 echo $ECHO_N "(cached) $ECHO_C" >&6
12071 ac_check_lib_save_LIBS=$LIBS
12073 cat >conftest.$ac_ext <<_ACEOF
12076 cat confdefs.h >>conftest.$ac_ext
12077 cat >>conftest.$ac_ext <<_ACEOF
12078 /* end confdefs.h. */
12080 /* Override any GCC internal prototype to avoid an error.
12081 Use char because int might match the return type of a GCC
12082 builtin and then its argument prototype would still apply. */
12086 char XpCreateContext ();
12090 return XpCreateContext ();
12095 rm -f conftest.$ac_objext conftest$ac_exeext
12096 if { (ac_try="$ac_link"
12097 case "(($ac_try" in
12098 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12099 *) ac_try_echo
=$ac_try;;
12101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12102 (eval "$ac_link") 2>conftest.er1
12104 grep -v '^ *+' conftest.er1
>conftest.err
12106 cat conftest.err
>&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 (exit $ac_status); } && {
12109 test -z "$ac_c_werror_flag" ||
12110 test ! -s conftest.err
12111 } && test -s conftest
$ac_exeext &&
12112 $as_test_x conftest
$ac_exeext; then
12113 ac_cv_lib_Xp_XpCreateContext
=yes
12115 echo "$as_me: failed program was:" >&5
12116 sed 's/^/| /' conftest.
$ac_ext >&5
12118 ac_cv_lib_Xp_XpCreateContext
=no
12121 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12122 conftest
$ac_exeext conftest.
$ac_ext
12123 LIBS
=$ac_check_lib_save_LIBS
12125 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12126 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12127 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12131 if test ${HAVE_LIBXP} = yes; then
12133 cat >>confdefs.h
<<\_ACEOF
12134 #define HAVE_LIBXP 1
12139 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12140 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12141 if test "${emacs_cv_lesstif+set}" = set; then
12142 echo $ECHO_N "(cached) $ECHO_C" >&6
12144 # We put this in CFLAGS temporarily to precede other -I options
12145 # that might be in CFLAGS temporarily.
12146 # We put this in CPPFLAGS where it precedes the other -I options.
12147 OLD_CPPFLAGS
=$CPPFLAGS
12149 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12150 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12151 cat >conftest.
$ac_ext <<_ACEOF
12154 cat confdefs.h
>>conftest.
$ac_ext
12155 cat >>conftest.
$ac_ext <<_ACEOF
12156 /* end confdefs.h. */
12157 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12166 rm -f conftest.
$ac_objext
12167 if { (ac_try
="$ac_compile"
12168 case "(($ac_try" in
12169 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12170 *) ac_try_echo=$ac_try;;
12172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12173 (eval "$ac_compile") 2>conftest.er1
12175 grep -v '^ *+' conftest.er1 >conftest.err
12177 cat conftest.err >&5
12178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12179 (exit $ac_status); } && {
12180 test -z "$ac_c_werror_flag" ||
12181 test ! -s conftest.err
12182 } && test -s conftest.$ac_objext; then
12183 emacs_cv_lesstif=yes
12185 echo "$as_me: failed program was:" >&5
12186 sed 's/^/| /' conftest.$ac_ext >&5
12188 emacs_cv_lesstif=no
12191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12193 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12194 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12195 if test $emacs_cv_lesstif = yes; then
12196 # Make sure this -I option remains in CPPFLAGS after it is set
12197 # back to REAL_CPPFLAGS.
12198 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12199 # have those other -I options anyway. Ultimately, having this
12200 # directory ultimately in CPPFLAGS will be enough.
12201 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12202 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12205 CPPFLAGS=$OLD_CPPFLAGS
12212 USE_TOOLKIT_SCROLL_BARS=no
12213 if test "${with_toolkit_scroll_bars}" != "no"; then
12214 if test "${USE_X_TOOLKIT}" != "none"; then
12215 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12216 cat >>confdefs.h <<\_ACEOF
12217 #define USE_TOOLKIT_SCROLL_BARS 1
12221 USE_TOOLKIT_SCROLL_BARS=yes
12222 elif test "${HAVE_XAW3D}" = "yes"; then
12223 cat >>confdefs.h <<\_ACEOF
12224 #define USE_TOOLKIT_SCROLL_BARS 1
12227 USE_TOOLKIT_SCROLL_BARS=yes
12229 elif test "${HAVE_GTK}" = "yes"; then
12230 cat >>confdefs.h <<\_ACEOF
12231 #define USE_TOOLKIT_SCROLL_BARS 1
12234 USE_TOOLKIT_SCROLL_BARS=yes
12235 elif test "${HAVE_CARBON}" = "yes"; then
12236 cat >>confdefs.h <<\_ACEOF
12237 #define USE_TOOLKIT_SCROLL_BARS 1
12240 USE_TOOLKIT_SCROLL_BARS=yes
12244 cat >conftest.$ac_ext <<_ACEOF
12247 cat confdefs.h >>conftest.$ac_ext
12248 cat >>conftest.$ac_ext <<_ACEOF
12249 /* end confdefs.h. */
12251 #include <X11/Xlib.h>
12252 #include <X11/Xresource.h>
12261 rm -f conftest.$ac_objext
12262 if { (ac_try="$ac_compile"
12263 case "(($ac_try" in
12264 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12265 *) ac_try_echo
=$ac_try;;
12267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12268 (eval "$ac_compile") 2>conftest.er1
12270 grep -v '^ *+' conftest.er1
>conftest.err
12272 cat conftest.err
>&5
12273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274 (exit $ac_status); } && {
12275 test -z "$ac_c_werror_flag" ||
12276 test ! -s conftest.err
12277 } && test -s conftest.
$ac_objext; then
12280 cat >>confdefs.h
<<\_ACEOF
12285 echo "$as_me: failed program was:" >&5
12286 sed 's/^/| /' conftest.
$ac_ext >&5
12291 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12294 if test "${with_xim}" != "no"; then
12296 cat >>confdefs.h
<<\_ACEOF
12303 if test "${HAVE_XIM}" != "no"; then
12304 late_CFLAGS
=$CFLAGS
12305 if test "$GCC" = yes; then
12306 CFLAGS
="$CFLAGS --pedantic-errors"
12308 cat >conftest.
$ac_ext <<_ACEOF
12311 cat confdefs.h
>>conftest.
$ac_ext
12312 cat >>conftest.
$ac_ext <<_ACEOF
12313 /* end confdefs.h. */
12315 #include <X11/Xlib.h>
12316 #include <X11/Xresource.h>
12325 XPointer *client_data;
12327 /* If we're not using GCC, it's probably not XFree86, and this is
12328 probably right, but we can't use something like --pedantic-errors. */
12329 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12330 char*, XIMProc, XPointer*);
12332 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12338 rm -f conftest.
$ac_objext
12339 if { (ac_try
="$ac_compile"
12340 case "(($ac_try" in
12341 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12342 *) ac_try_echo=$ac_try;;
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_compile") 2>conftest.er1
12347 grep -v '^ *+' conftest.er1 >conftest.err
12349 cat conftest.err >&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } && {
12352 test -z "$ac_c_werror_flag" ||
12353 test ! -s conftest.err
12354 } && test -s conftest.$ac_objext; then
12355 emacs_cv_arg6_star=yes
12357 echo "$as_me: failed program was:" >&5
12358 sed 's/^/| /' conftest.$ac_ext >&5
12363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12365 if test "$emacs_cv_arg6_star" = yes; then
12366 cat >>confdefs.h <<\_ACEOF
12367 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12371 cat >>confdefs.h <<\_ACEOF
12372 #define XRegisterIMInstantiateCallback_arg6 XPointer
12376 CFLAGS=$late_CFLAGS
12379 #### For font-backend
12380 if test "${USE_FONT_BACKEND}" = "yes"; then
12383 cat >>confdefs.h <<\_ACEOF
12384 #define USE_FONT_BACKEND 1
12388 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12390 if test "${HAVE_X11}" = "yes"; then
12391 if test "x${with_freetype}" = "xno"; then
12394 if test "x${with_xft}" != "xno"; then
12396 if test "X${with_pkg_config_prog}" != X
; then
12397 PKG_CONFIG
="${with_pkg_config_prog}"
12403 # Extract the first word of "pkg-config", so it can be a program name with args.
12404 set dummy pkg-config
; ac_word
=$2
12405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12407 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12408 echo $ECHO_N "(cached) $ECHO_C" >&6
12410 case $PKG_CONFIG in
12412 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12415 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12416 for as_dir
in $PATH
12419 test -z "$as_dir" && as_dir
=.
12420 for ac_exec_ext
in '' $ac_executable_extensions; do
12421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12422 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12430 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12434 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12435 if test -n "$PKG_CONFIG"; then
12436 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12437 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12439 { echo "$as_me:$LINENO: result: no" >&5
12440 echo "${ECHO_T}no" >&6; }
12445 if test "$PKG_CONFIG" = "no" ; then
12448 PKG_CONFIG_MIN_VERSION
=0.9.0
12449 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12450 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12451 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12453 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12454 { echo "$as_me:$LINENO: result: yes" >&5
12455 echo "${ECHO_T}yes" >&6; }
12458 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12459 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12460 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12461 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12462 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12464 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12465 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12466 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12467 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12468 echo "${ECHO_T}$XFT_LIBS" >&6; }
12470 { echo "$as_me:$LINENO: result: no" >&5
12471 echo "${ECHO_T}no" >&6; }
12474 ## If we have a custom action on failure, don't print errors, but
12475 ## do set a variable so people can do so.
12476 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12483 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12484 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12488 if test $succeeded = yes; then
12494 if test "$HAVE_XFT" != no
; then
12495 OLD_CPPFLAGS
="$CPPFLAGS"
12496 OLD_CFLAGS
="$CFLAGS"
12498 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12499 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12500 LIBS
="$XFT_LIBS $LIBS"
12501 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12502 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12503 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12504 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12505 echo $ECHO_N "(cached) $ECHO_C" >&6
12507 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12508 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12510 # Is the header compilable?
12511 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12512 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12513 cat >conftest.
$ac_ext <<_ACEOF
12516 cat confdefs.h
>>conftest.
$ac_ext
12517 cat >>conftest.
$ac_ext <<_ACEOF
12518 /* end confdefs.h. */
12519 $ac_includes_default
12520 #include <X11/Xft/Xft.h>
12522 rm -f conftest.
$ac_objext
12523 if { (ac_try
="$ac_compile"
12524 case "(($ac_try" in
12525 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12526 *) ac_try_echo=$ac_try;;
12528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12529 (eval "$ac_compile") 2>conftest.er1
12531 grep -v '^ *+' conftest.er1 >conftest.err
12533 cat conftest.err >&5
12534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12535 (exit $ac_status); } && {
12536 test -z "$ac_c_werror_flag" ||
12537 test ! -s conftest.err
12538 } && test -s conftest.$ac_objext; then
12539 ac_header_compiler=yes
12541 echo "$as_me: failed program was:" >&5
12542 sed 's/^/| /' conftest.$ac_ext >&5
12544 ac_header_compiler=no
12547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12548 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12549 echo "${ECHO_T}$ac_header_compiler" >&6; }
12551 # Is the header present?
12552 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12553 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12554 cat >conftest.$ac_ext <<_ACEOF
12557 cat confdefs.h >>conftest.$ac_ext
12558 cat >>conftest.$ac_ext <<_ACEOF
12559 /* end confdefs.h. */
12560 #include <X11/Xft/Xft.h>
12562 if { (ac_try="$ac_cpp conftest.$ac_ext"
12563 case "(($ac_try" in
12564 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12565 *) ac_try_echo
=$ac_try;;
12567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12568 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12570 grep -v '^ *+' conftest.er1
>conftest.err
12572 cat conftest.err
>&5
12573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12574 (exit $ac_status); } >/dev
/null
&& {
12575 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12576 test ! -s conftest.err
12578 ac_header_preproc
=yes
12580 echo "$as_me: failed program was:" >&5
12581 sed 's/^/| /' conftest.
$ac_ext >&5
12583 ac_header_preproc
=no
12586 rm -f conftest.err conftest.
$ac_ext
12587 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12588 echo "${ECHO_T}$ac_header_preproc" >&6; }
12590 # So? What about this header?
12591 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12593 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12594 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12595 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12596 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12597 ac_header_preproc
=yes
12600 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12601 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12602 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12603 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12604 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12605 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12606 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12607 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12608 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12609 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12610 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12611 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12615 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12616 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12617 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12618 echo $ECHO_N "(cached) $ECHO_C" >&6
12620 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12622 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12623 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12626 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12627 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12628 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12629 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12630 echo $ECHO_N "(cached) $ECHO_C" >&6
12632 ac_check_lib_save_LIBS
=$LIBS
12633 LIBS
="-lXft $XFT_LIBS $LIBS"
12634 cat >conftest.
$ac_ext <<_ACEOF
12637 cat confdefs.h
>>conftest.
$ac_ext
12638 cat >>conftest.
$ac_ext <<_ACEOF
12639 /* end confdefs.h. */
12641 /* Override any GCC internal prototype to avoid an error.
12642 Use char because int might match the return type of a GCC
12643 builtin and then its argument prototype would still apply. */
12647 char XftFontOpen ();
12651 return XftFontOpen ();
12656 rm -f conftest.
$ac_objext conftest
$ac_exeext
12657 if { (ac_try
="$ac_link"
12658 case "(($ac_try" in
12659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12660 *) ac_try_echo=$ac_try;;
12662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12663 (eval "$ac_link") 2>conftest.er1
12665 grep -v '^ *+' conftest.er1 >conftest.err
12667 cat conftest.err >&5
12668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12669 (exit $ac_status); } && {
12670 test -z "$ac_c_werror_flag" ||
12671 test ! -s conftest.err
12672 } && test -s conftest$ac_exeext &&
12673 $as_test_x conftest$ac_exeext; then
12674 ac_cv_lib_Xft_XftFontOpen=yes
12676 echo "$as_me: failed program was:" >&5
12677 sed 's/^/| /' conftest.$ac_ext >&5
12679 ac_cv_lib_Xft_XftFontOpen=no
12682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12683 conftest$ac_exeext conftest.$ac_ext
12684 LIBS=$ac_check_lib_save_LIBS
12686 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12687 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12688 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12696 if test "${HAVE_XFT}" = "yes"; then
12698 cat >>confdefs.h <<\_ACEOF
12703 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12705 CPPFLAGS="$OLD_CPPFLAGS"
12706 CFLAGS="$OLD_CFLAGS"
12712 if test "$HAVE_XFT" != "yes"; then
12718 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12719 if test "${HAVE_XFT}" = "yes"; then
12721 elif test "x${with_freetype}" != "xno"; then
12722 if test "X${with_pkg_config_prog}" != X; then
12723 PKG_CONFIG="${with_pkg_config_prog}"
12729 # Extract the first word of "pkg-config", so it can be a program name with args.
12730 set dummy pkg-config; ac_word=$2
12731 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12732 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12733 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12734 echo $ECHO_N "(cached) $ECHO_C" >&6
12736 case $PKG_CONFIG in
12738 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12745 test -z "$as_dir" && as_dir=.
12746 for ac_exec_ext in '' $ac_executable_extensions; do
12747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12748 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12749 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12756 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12760 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12761 if test -n "$PKG_CONFIG"; then
12762 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12763 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12765 { echo "$as_me:$LINENO: result: no" >&5
12766 echo "${ECHO_T}no" >&6; }
12771 if test "$PKG_CONFIG" = "no" ; then
12774 PKG_CONFIG_MIN_VERSION=0.9.0
12775 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12776 { echo "$as_me:$LINENO: checking for freetype2" >&5
12777 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12779 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12780 { echo "$as_me:$LINENO: result: yes" >&5
12781 echo "${ECHO_T}yes" >&6; }
12784 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12785 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12786 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's
,///*,/,g
'`
12787 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12788 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12790 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12791 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12792 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's
,///*,/,g
'`
12793 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12794 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12796 { echo "$as_me:$LINENO: result: no" >&5
12797 echo "${ECHO_T}no" >&6; }
12800 ## If we have a custom action on failure, don't print errors
, but
12801 ## do set a variable so people can do so.
12802 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12809 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12810 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12814 if test $succeeded = yes; then
12820 if test "${HAVE_FREETYPE}" = "yes"; then
12824 # Extract the first word of "pkg-config", so it can be a program name with args.
12825 set dummy pkg-config
; ac_word
=$2
12826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12828 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12831 case $PKG_CONFIG in
12833 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12836 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12837 for as_dir
in $PATH
12840 test -z "$as_dir" && as_dir
=.
12841 for ac_exec_ext
in '' $ac_executable_extensions; do
12842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12843 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12851 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12855 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12856 if test -n "$PKG_CONFIG"; then
12857 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12858 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12860 { echo "$as_me:$LINENO: result: no" >&5
12861 echo "${ECHO_T}no" >&6; }
12866 if test "$PKG_CONFIG" = "no" ; then
12869 PKG_CONFIG_MIN_VERSION
=0.9.0
12870 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12871 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12872 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12874 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12875 { echo "$as_me:$LINENO: result: yes" >&5
12876 echo "${ECHO_T}yes" >&6; }
12879 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12880 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12881 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
12882 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12883 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12885 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12886 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12887 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
12888 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12889 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12891 { echo "$as_me:$LINENO: result: no" >&5
12892 echo "${ECHO_T}no" >&6; }
12893 FONTCONFIG_CFLAGS
=""
12895 ## If we have a custom action on failure, don't print errors, but
12896 ## do set a variable so people can do so.
12897 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12904 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12905 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12909 if test $succeeded = yes; then
12915 if test "${HAVE_FC}" = "no"; then
12922 if test "${HAVE_FREETYPE}" = "yes"; then
12924 cat >>confdefs.h
<<\_ACEOF
12925 #define HAVE_FREETYPE 1
12928 if test "${with_libotf}" != "no"; then
12929 if test "X${with_pkg_config_prog}" != X
; then
12930 PKG_CONFIG
="${with_pkg_config_prog}"
12935 # Extract the first word of "pkg-config", so it can be a program name with args.
12936 set dummy pkg-config
; ac_word
=$2
12937 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12938 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12939 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12940 echo $ECHO_N "(cached) $ECHO_C" >&6
12942 case $PKG_CONFIG in
12944 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12947 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12948 for as_dir
in $PATH
12951 test -z "$as_dir" && as_dir
=.
12952 for ac_exec_ext
in '' $ac_executable_extensions; do
12953 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12954 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12955 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12962 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12966 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12967 if test -n "$PKG_CONFIG"; then
12968 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12969 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12971 { echo "$as_me:$LINENO: result: no" >&5
12972 echo "${ECHO_T}no" >&6; }
12977 if test "$PKG_CONFIG" = "no" ; then
12980 PKG_CONFIG_MIN_VERSION
=0.9.0
12981 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12982 { echo "$as_me:$LINENO: checking for libotf" >&5
12983 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
12985 if $PKG_CONFIG --exists "libotf" 2>&5; then
12986 { echo "$as_me:$LINENO: result: yes" >&5
12987 echo "${ECHO_T}yes" >&6; }
12990 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
12991 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
12992 LIBOTF_CFLAGS
=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
12993 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
12994 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
12996 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
12997 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
12998 LIBOTF_LIBS
=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
12999 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13000 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13002 { echo "$as_me:$LINENO: result: no" >&5
13003 echo "${ECHO_T}no" >&6; }
13006 ## If we have a custom action on failure, don't print errors, but
13007 ## do set a variable so people can do so.
13008 LIBOTF_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13015 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13016 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13020 if test $succeeded = yes; then
13026 if test "$HAVE_LIBOTF" = "yes"; then
13028 cat >>confdefs.h
<<\_ACEOF
13029 #define HAVE_LIBOTF 1
13037 if test "${with_m17n_flt}" != "no"; then
13038 if test "X${with_pkg_config_prog}" != X
; then
13039 PKG_CONFIG
="${with_pkg_config_prog}"
13044 # Extract the first word of "pkg-config", so it can be a program name with args.
13045 set dummy pkg-config
; ac_word
=$2
13046 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13047 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13048 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13049 echo $ECHO_N "(cached) $ECHO_C" >&6
13051 case $PKG_CONFIG in
13053 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
13056 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13057 for as_dir
in $PATH
13060 test -z "$as_dir" && as_dir
=.
13061 for ac_exec_ext
in '' $ac_executable_extensions; do
13062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13063 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
13064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13071 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
13075 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
13076 if test -n "$PKG_CONFIG"; then
13077 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13078 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13080 { echo "$as_me:$LINENO: result: no" >&5
13081 echo "${ECHO_T}no" >&6; }
13086 if test "$PKG_CONFIG" = "no" ; then
13089 PKG_CONFIG_MIN_VERSION
=0.9.0
13090 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13091 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13092 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13094 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13095 { echo "$as_me:$LINENO: result: yes" >&5
13096 echo "${ECHO_T}yes" >&6; }
13099 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13100 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13101 M17N_FLT_CFLAGS
=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13102 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13103 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13105 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13106 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13107 M17N_FLT_LIBS
=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13108 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13109 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13111 { echo "$as_me:$LINENO: result: no" >&5
13112 echo "${ECHO_T}no" >&6; }
13115 ## If we have a custom action on failure, don't print errors, but
13116 ## do set a variable so people can do so.
13117 M17N_FLT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13124 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13125 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13129 if test $succeeded = yes; then
13135 if test "$HAVE_M17N_FLT" = "yes"; then
13137 cat >>confdefs.h
<<\_ACEOF
13138 #define HAVE_M17N_FLT 1
13154 #### End for font-backend
13156 ### Use -lXpm if available, unless `--with-xpm=no'.
13158 if test "${HAVE_X11}" = "yes"; then
13159 if test "${with_xpm}" != "no"; then
13160 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13161 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13162 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13163 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13164 echo $ECHO_N "(cached) $ECHO_C" >&6
13166 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13167 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13169 # Is the header compilable?
13170 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13171 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13172 cat >conftest.
$ac_ext <<_ACEOF
13175 cat confdefs.h
>>conftest.
$ac_ext
13176 cat >>conftest.
$ac_ext <<_ACEOF
13177 /* end confdefs.h. */
13178 $ac_includes_default
13179 #include <X11/xpm.h>
13181 rm -f conftest.
$ac_objext
13182 if { (ac_try
="$ac_compile"
13183 case "(($ac_try" in
13184 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13185 *) ac_try_echo=$ac_try;;
13187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13188 (eval "$ac_compile") 2>conftest.er1
13190 grep -v '^ *+' conftest.er1 >conftest.err
13192 cat conftest.err >&5
13193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13194 (exit $ac_status); } && {
13195 test -z "$ac_c_werror_flag" ||
13196 test ! -s conftest.err
13197 } && test -s conftest.$ac_objext; then
13198 ac_header_compiler=yes
13200 echo "$as_me: failed program was:" >&5
13201 sed 's/^/| /' conftest.$ac_ext >&5
13203 ac_header_compiler=no
13206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13208 echo "${ECHO_T}$ac_header_compiler" >&6; }
13210 # Is the header present?
13211 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13212 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13213 cat >conftest.$ac_ext <<_ACEOF
13216 cat confdefs.h >>conftest.$ac_ext
13217 cat >>conftest.$ac_ext <<_ACEOF
13218 /* end confdefs.h. */
13219 #include <X11/xpm.h>
13221 if { (ac_try="$ac_cpp conftest.$ac_ext"
13222 case "(($ac_try" in
13223 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13224 *) ac_try_echo
=$ac_try;;
13226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13229 grep -v '^ *+' conftest.er1
>conftest.err
13231 cat conftest.err
>&5
13232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13233 (exit $ac_status); } >/dev
/null
&& {
13234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13235 test ! -s conftest.err
13237 ac_header_preproc
=yes
13239 echo "$as_me: failed program was:" >&5
13240 sed 's/^/| /' conftest.
$ac_ext >&5
13242 ac_header_preproc
=no
13245 rm -f conftest.err conftest.
$ac_ext
13246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13247 echo "${ECHO_T}$ac_header_preproc" >&6; }
13249 # So? What about this header?
13250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13252 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13253 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13254 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13255 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13256 ac_header_preproc
=yes
13259 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13260 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13261 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13262 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13263 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13264 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13266 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13268 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13269 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13270 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13274 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13275 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13276 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13277 echo $ECHO_N "(cached) $ECHO_C" >&6
13279 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13281 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13282 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13285 if test $ac_cv_header_X11_xpm_h = yes; then
13286 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13287 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13288 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13289 echo $ECHO_N "(cached) $ECHO_C" >&6
13291 ac_check_lib_save_LIBS
=$LIBS
13292 LIBS
="-lXpm -lX11 $LIBS"
13293 cat >conftest.
$ac_ext <<_ACEOF
13296 cat confdefs.h
>>conftest.
$ac_ext
13297 cat >>conftest.
$ac_ext <<_ACEOF
13298 /* end confdefs.h. */
13300 /* Override any GCC internal prototype to avoid an error.
13301 Use char because int might match the return type of a GCC
13302 builtin and then its argument prototype would still apply. */
13306 char XpmReadFileToPixmap ();
13310 return XpmReadFileToPixmap ();
13315 rm -f conftest.
$ac_objext conftest
$ac_exeext
13316 if { (ac_try
="$ac_link"
13317 case "(($ac_try" in
13318 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13319 *) ac_try_echo=$ac_try;;
13321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13322 (eval "$ac_link") 2>conftest.er1
13324 grep -v '^ *+' conftest.er1 >conftest.err
13326 cat conftest.err >&5
13327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13328 (exit $ac_status); } && {
13329 test -z "$ac_c_werror_flag" ||
13330 test ! -s conftest.err
13331 } && test -s conftest$ac_exeext &&
13332 $as_test_x conftest$ac_exeext; then
13333 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13335 echo "$as_me: failed program was:" >&5
13336 sed 's/^/| /' conftest.$ac_ext >&5
13338 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13342 conftest$ac_exeext conftest.$ac_ext
13343 LIBS=$ac_check_lib_save_LIBS
13345 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13346 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13347 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13354 if test "${HAVE_XPM}" = "yes"; then
13355 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13356 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13357 cat >conftest.$ac_ext <<_ACEOF
13360 cat confdefs.h >>conftest.$ac_ext
13361 cat >>conftest.$ac_ext <<_ACEOF
13362 /* end confdefs.h. */
13363 #include "X11/xpm.h"
13364 #ifndef XpmReturnAllocPixels
13365 no_return_alloc_pixels
13369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13370 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13378 if test "${HAVE_XPM}" = "yes"; then
13379 { echo "$as_me:$LINENO: result: yes" >&5
13380 echo "${ECHO_T}yes" >&6; }
13382 { echo "$as_me:$LINENO: result: no" >&5
13383 echo "${ECHO_T}no" >&6; }
13388 if test "${HAVE_XPM}" = "yes"; then
13390 cat >>confdefs.h <<\_ACEOF
13397 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13399 if test "${HAVE_X11}" = "yes"; then
13400 if test "${with_jpeg}" != "no"; then
13401 if test "${ac_cv_header_jerror_h+set}" = set; then
13402 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13403 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13404 if test "${ac_cv_header_jerror_h+set}" = set; then
13405 echo $ECHO_N "(cached) $ECHO_C" >&6
13407 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13408 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13410 # Is the header compilable?
13411 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13412 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13413 cat >conftest.$ac_ext <<_ACEOF
13416 cat confdefs.h >>conftest.$ac_ext
13417 cat >>conftest.$ac_ext <<_ACEOF
13418 /* end confdefs.h. */
13419 $ac_includes_default
13420 #include <jerror.h>
13422 rm -f conftest.$ac_objext
13423 if { (ac_try="$ac_compile"
13424 case "(($ac_try" in
13425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13426 *) ac_try_echo=$ac_try;;
13428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13429 (eval "$ac_compile") 2>conftest.er1
13431 grep -v '^
*+' conftest.er1 >conftest.err
13433 cat conftest.err >&5
13434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13435 (exit $ac_status); } && {
13436 test -z "$ac_c_werror_flag" ||
13437 test ! -s conftest.err
13438 } && test -s conftest.$ac_objext; then
13439 ac_header_compiler=yes
13441 echo "$as_me: failed program was:" >&5
13442 sed 's
/^
/|
/' conftest.$ac_ext >&5
13444 ac_header_compiler=no
13447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13448 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13449 echo "${ECHO_T}$ac_header_compiler" >&6; }
13451 # Is the header present?
13452 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13453 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13454 cat >conftest.$ac_ext <<_ACEOF
13457 cat confdefs.h >>conftest.$ac_ext
13458 cat >>conftest.$ac_ext <<_ACEOF
13459 /* end confdefs.h. */
13460 #include <jerror.h>
13462 if { (ac_try="$ac_cpp conftest.$ac_ext"
13463 case "(($ac_try" in
13464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13465 *) ac_try_echo=$ac_try;;
13467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13470 grep -v '^
*+' conftest.er1 >conftest.err
13472 cat conftest.err >&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 (exit $ac_status); } >/dev/null && {
13475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13476 test ! -s conftest.err
13478 ac_header_preproc=yes
13480 echo "$as_me: failed program was:" >&5
13481 sed 's
/^
/|
/' conftest.$ac_ext >&5
13483 ac_header_preproc=no
13486 rm -f conftest.err conftest.$ac_ext
13487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13488 echo "${ECHO_T}$ac_header_preproc" >&6; }
13490 # So? What about this header?
13491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13493 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13494 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13495 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13496 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13497 ac_header_preproc=yes
13500 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13501 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13502 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13503 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13505 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13506 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13507 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13508 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13509 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13510 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13511 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13515 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13516 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13517 if test "${ac_cv_header_jerror_h+set}" = set; then
13518 echo $ECHO_N "(cached) $ECHO_C" >&6
13520 ac_cv_header_jerror_h=$ac_header_preproc
13522 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13523 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13526 if test $ac_cv_header_jerror_h = yes; then
13527 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13528 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13529 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13530 echo $ECHO_N "(cached) $ECHO_C" >&6
13532 ac_check_lib_save_LIBS=$LIBS
13533 LIBS="-ljpeg $LIBS"
13534 cat >conftest.$ac_ext <<_ACEOF
13537 cat confdefs.h >>conftest.$ac_ext
13538 cat >>conftest.$ac_ext <<_ACEOF
13539 /* end confdefs.h. */
13541 /* Override any GCC internal prototype to avoid an error.
13542 Use char because int might match the return type of a GCC
13543 builtin and then its argument prototype would still apply. */
13547 char jpeg_destroy_compress ();
13551 return jpeg_destroy_compress ();
13556 rm -f conftest.$ac_objext conftest$ac_exeext
13557 if { (ac_try="$ac_link"
13558 case "(($ac_try" in
13559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13560 *) ac_try_echo=$ac_try;;
13562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13563 (eval "$ac_link") 2>conftest.er1
13565 grep -v '^
*+' conftest.er1 >conftest.err
13567 cat conftest.err >&5
13568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13569 (exit $ac_status); } && {
13570 test -z "$ac_c_werror_flag" ||
13571 test ! -s conftest.err
13572 } && test -s conftest$ac_exeext &&
13573 $as_test_x conftest$ac_exeext; then
13574 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13576 echo "$as_me: failed program was:" >&5
13577 sed 's
/^
/|
/' conftest.$ac_ext >&5
13579 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13583 conftest$ac_exeext conftest.$ac_ext
13584 LIBS=$ac_check_lib_save_LIBS
13586 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13587 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13588 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13598 if test "${HAVE_JPEG}" = "yes"; then
13599 cat >>confdefs.h <<\_ACEOF
13600 #define HAVE_JPEG 1
13603 cat >conftest.$ac_ext <<_ACEOF
13606 cat confdefs.h >>conftest.$ac_ext
13607 cat >>conftest.$ac_ext <<_ACEOF
13608 /* end confdefs.h. */
13609 #include <jpeglib.h>
13610 version=JPEG_LIB_VERSION
13613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13614 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13615 cat >>confdefs.h <<\_ACEOF
13616 #define HAVE_JPEG 1
13620 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13621 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13629 ### Use -lpng if available, unless `--with-png=no'.
13631 if test "${HAVE_X11}" = "yes"; then
13632 if test "${with_png}" != "no"; then
13633 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13634 # in /usr/include/libpng.
13637 for ac_header
in png.h libpng
/png.h
13639 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13640 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13643 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13644 echo $ECHO_N "(cached) $ECHO_C" >&6
13646 ac_res
=`eval echo '${'$as_ac_Header'}'`
13647 { echo "$as_me:$LINENO: result: $ac_res" >&5
13648 echo "${ECHO_T}$ac_res" >&6; }
13650 # Is the header compilable?
13651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13653 cat >conftest.
$ac_ext <<_ACEOF
13656 cat confdefs.h
>>conftest.
$ac_ext
13657 cat >>conftest.
$ac_ext <<_ACEOF
13658 /* end confdefs.h. */
13659 $ac_includes_default
13660 #include <$ac_header>
13662 rm -f conftest.
$ac_objext
13663 if { (ac_try
="$ac_compile"
13664 case "(($ac_try" in
13665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13666 *) ac_try_echo=$ac_try;;
13668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13669 (eval "$ac_compile") 2>conftest.er1
13671 grep -v '^ *+' conftest.er1 >conftest.err
13673 cat conftest.err >&5
13674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13675 (exit $ac_status); } && {
13676 test -z "$ac_c_werror_flag" ||
13677 test ! -s conftest.err
13678 } && test -s conftest.$ac_objext; then
13679 ac_header_compiler=yes
13681 echo "$as_me: failed program was:" >&5
13682 sed 's/^/| /' conftest.$ac_ext >&5
13684 ac_header_compiler=no
13687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13689 echo "${ECHO_T}$ac_header_compiler" >&6; }
13691 # Is the header present?
13692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13694 cat >conftest.$ac_ext <<_ACEOF
13697 cat confdefs.h >>conftest.$ac_ext
13698 cat >>conftest.$ac_ext <<_ACEOF
13699 /* end confdefs.h. */
13700 #include <$ac_header>
13702 if { (ac_try="$ac_cpp conftest.$ac_ext"
13703 case "(($ac_try" in
13704 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13705 *) ac_try_echo
=$ac_try;;
13707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13710 grep -v '^ *+' conftest.er1
>conftest.err
13712 cat conftest.err
>&5
13713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13714 (exit $ac_status); } >/dev
/null
&& {
13715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13716 test ! -s conftest.err
13718 ac_header_preproc
=yes
13720 echo "$as_me: failed program was:" >&5
13721 sed 's/^/| /' conftest.
$ac_ext >&5
13723 ac_header_preproc
=no
13726 rm -f conftest.err conftest.
$ac_ext
13727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13728 echo "${ECHO_T}$ac_header_preproc" >&6; }
13730 # So? What about this header?
13731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13737 ac_header_preproc
=yes
13740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13757 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13758 echo $ECHO_N "(cached) $ECHO_C" >&6
13760 eval "$as_ac_Header=\$ac_header_preproc"
13762 ac_res
=`eval echo '${'$as_ac_Header'}'`
13763 { echo "$as_me:$LINENO: result: $ac_res" >&5
13764 echo "${ECHO_T}$ac_res" >&6; }
13767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13768 cat >>confdefs.h
<<_ACEOF
13769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13776 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13777 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13778 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13779 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13780 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 ac_check_lib_save_LIBS
=$LIBS
13783 LIBS
="-lpng -lz -lm $LIBS"
13784 cat >conftest.
$ac_ext <<_ACEOF
13787 cat confdefs.h
>>conftest.
$ac_ext
13788 cat >>conftest.
$ac_ext <<_ACEOF
13789 /* end confdefs.h. */
13791 /* Override any GCC internal prototype to avoid an error.
13792 Use char because int might match the return type of a GCC
13793 builtin and then its argument prototype would still apply. */
13797 char png_get_channels ();
13801 return png_get_channels ();
13806 rm -f conftest.
$ac_objext conftest
$ac_exeext
13807 if { (ac_try
="$ac_link"
13808 case "(($ac_try" in
13809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13810 *) ac_try_echo=$ac_try;;
13812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13813 (eval "$ac_link") 2>conftest.er1
13815 grep -v '^ *+' conftest.er1 >conftest.err
13817 cat conftest.err >&5
13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13819 (exit $ac_status); } && {
13820 test -z "$ac_c_werror_flag" ||
13821 test ! -s conftest.err
13822 } && test -s conftest$ac_exeext &&
13823 $as_test_x conftest$ac_exeext; then
13824 ac_cv_lib_png_png_get_channels=yes
13826 echo "$as_me: failed program was:" >&5
13827 sed 's/^/| /' conftest.$ac_ext >&5
13829 ac_cv_lib_png_png_get_channels=no
13832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13833 conftest$ac_exeext conftest.$ac_ext
13834 LIBS=$ac_check_lib_save_LIBS
13836 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13837 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13838 if test $ac_cv_lib_png_png_get_channels = yes; then
13845 if test "${HAVE_PNG}" = "yes"; then
13847 cat >>confdefs.h <<\_ACEOF
13854 ### Use -ltiff if available, unless `--with-tiff=no
'.
13856 if test "${HAVE_X11}" = "yes"; then
13857 if test "${with_tiff}" != "no"; then
13858 if test "${ac_cv_header_tiffio_h+set}" = set; then
13859 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13860 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13861 if test "${ac_cv_header_tiffio_h+set}" = set; then
13862 echo $ECHO_N "(cached) $ECHO_C" >&6
13864 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13865 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13867 # Is the header compilable?
13868 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13869 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13870 cat >conftest.$ac_ext <<_ACEOF
13873 cat confdefs.h >>conftest.$ac_ext
13874 cat >>conftest.$ac_ext <<_ACEOF
13875 /* end confdefs.h. */
13876 $ac_includes_default
13877 #include <tiffio.h>
13879 rm -f conftest.$ac_objext
13880 if { (ac_try="$ac_compile"
13881 case "(($ac_try" in
13882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13883 *) ac_try_echo=$ac_try;;
13885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13886 (eval "$ac_compile") 2>conftest.er1
13888 grep -v '^
*+' conftest.er1 >conftest.err
13890 cat conftest.err >&5
13891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13892 (exit $ac_status); } && {
13893 test -z "$ac_c_werror_flag" ||
13894 test ! -s conftest.err
13895 } && test -s conftest.$ac_objext; then
13896 ac_header_compiler=yes
13898 echo "$as_me: failed program was:" >&5
13899 sed 's
/^
/|
/' conftest.$ac_ext >&5
13901 ac_header_compiler=no
13904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13906 echo "${ECHO_T}$ac_header_compiler" >&6; }
13908 # Is the header present?
13909 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13910 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13911 cat >conftest.$ac_ext <<_ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h. */
13917 #include <tiffio.h>
13919 if { (ac_try="$ac_cpp conftest.$ac_ext"
13920 case "(($ac_try" in
13921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13922 *) ac_try_echo=$ac_try;;
13924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13927 grep -v '^
*+' conftest.er1 >conftest.err
13929 cat conftest.err >&5
13930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13931 (exit $ac_status); } >/dev/null && {
13932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13933 test ! -s conftest.err
13935 ac_header_preproc=yes
13937 echo "$as_me: failed program was:" >&5
13938 sed 's
/^
/|
/' conftest.$ac_ext >&5
13940 ac_header_preproc=no
13943 rm -f conftest.err conftest.$ac_ext
13944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13945 echo "${ECHO_T}$ac_header_preproc" >&6; }
13947 # So? What about this header?
13948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13950 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13951 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13952 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13953 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13954 ac_header_preproc=yes
13957 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13958 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13959 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13960 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13961 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13962 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13963 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13964 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13965 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13966 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13967 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13968 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13972 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13973 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13974 if test "${ac_cv_header_tiffio_h+set}" = set; then
13975 echo $ECHO_N "(cached) $ECHO_C" >&6
13977 ac_cv_header_tiffio_h=$ac_header_preproc
13979 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13980 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13983 if test $ac_cv_header_tiffio_h = yes; then
13985 # At least one tiff package requires the jpeg library.
13986 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13987 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13988 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13989 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13992 ac_check_lib_save_LIBS=$LIBS
13993 LIBS="-ltiff $tifflibs $LIBS"
13994 cat >conftest.$ac_ext <<_ACEOF
13997 cat confdefs.h >>conftest.$ac_ext
13998 cat >>conftest.$ac_ext <<_ACEOF
13999 /* end confdefs.h. */
14001 /* Override any GCC internal prototype to avoid an error.
14002 Use char because int might match the return type of a GCC
14003 builtin and then its argument prototype would still apply. */
14007 char TIFFGetVersion ();
14011 return TIFFGetVersion ();
14016 rm -f conftest.$ac_objext conftest$ac_exeext
14017 if { (ac_try="$ac_link"
14018 case "(($ac_try" in
14019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020 *) ac_try_echo=$ac_try;;
14022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023 (eval "$ac_link") 2>conftest.er1
14025 grep -v '^
*+' conftest.er1 >conftest.err
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } && {
14030 test -z "$ac_c_werror_flag" ||
14031 test ! -s conftest.err
14032 } && test -s conftest$ac_exeext &&
14033 $as_test_x conftest$ac_exeext; then
14034 ac_cv_lib_tiff_TIFFGetVersion=yes
14036 echo "$as_me: failed program was:" >&5
14037 sed 's
/^
/|
/' conftest.$ac_ext >&5
14039 ac_cv_lib_tiff_TIFFGetVersion=no
14042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14043 conftest$ac_exeext conftest.$ac_ext
14044 LIBS=$ac_check_lib_save_LIBS
14046 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14047 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14048 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14057 if test "${HAVE_TIFF}" = "yes"; then
14059 cat >>confdefs.h <<\_ACEOF
14060 #define HAVE_TIFF 1
14066 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14068 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14069 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14070 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14071 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14072 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14076 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14078 # Is the header compilable?
14079 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14080 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14081 cat >conftest.
$ac_ext <<_ACEOF
14084 cat confdefs.h
>>conftest.
$ac_ext
14085 cat >>conftest.
$ac_ext <<_ACEOF
14086 /* end confdefs.h. */
14087 $ac_includes_default
14088 #include <gif_lib.h>
14090 rm -f conftest.
$ac_objext
14091 if { (ac_try
="$ac_compile"
14092 case "(($ac_try" in
14093 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_compile") 2>conftest.er1
14099 grep -v '^ *+' conftest.er1 >conftest.err
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } && {
14104 test -z "$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14106 } && test -s conftest.$ac_objext; then
14107 ac_header_compiler=yes
14109 echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14112 ac_header_compiler=no
14115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14116 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14117 echo "${ECHO_T}$ac_header_compiler" >&6; }
14119 # Is the header present?
14120 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14121 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14122 cat >conftest.$ac_ext <<_ACEOF
14125 cat confdefs.h >>conftest.$ac_ext
14126 cat >>conftest.$ac_ext <<_ACEOF
14127 /* end confdefs.h. */
14128 #include <gif_lib.h>
14130 if { (ac_try="$ac_cpp conftest.$ac_ext"
14131 case "(($ac_try" in
14132 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14133 *) ac_try_echo
=$ac_try;;
14135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14136 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14138 grep -v '^ *+' conftest.er1
>conftest.err
14140 cat conftest.err
>&5
14141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14142 (exit $ac_status); } >/dev
/null
&& {
14143 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14144 test ! -s conftest.err
14146 ac_header_preproc
=yes
14148 echo "$as_me: failed program was:" >&5
14149 sed 's/^/| /' conftest.
$ac_ext >&5
14151 ac_header_preproc
=no
14154 rm -f conftest.err conftest.
$ac_ext
14155 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14156 echo "${ECHO_T}$ac_header_preproc" >&6; }
14158 # So? What about this header?
14159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14161 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14162 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14163 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14164 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14165 ac_header_preproc
=yes
14168 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14169 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14170 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14171 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14172 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14173 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14174 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14175 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14176 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14177 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14178 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14179 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14183 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14184 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14185 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14186 echo $ECHO_N "(cached) $ECHO_C" >&6
14188 ac_cv_header_gif_lib_h
=$ac_header_preproc
14190 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14191 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14194 if test $ac_cv_header_gif_lib_h = yes; then
14195 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14196 # Earlier versions can crash Emacs.
14197 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14198 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14199 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14200 echo $ECHO_N "(cached) $ECHO_C" >&6
14202 ac_check_lib_save_LIBS
=$LIBS
14204 cat >conftest.
$ac_ext <<_ACEOF
14207 cat confdefs.h
>>conftest.
$ac_ext
14208 cat >>conftest.
$ac_ext <<_ACEOF
14209 /* end confdefs.h. */
14211 /* Override any GCC internal prototype to avoid an error.
14212 Use char because int might match the return type of a GCC
14213 builtin and then its argument prototype would still apply. */
14217 char EGifPutExtensionLast ();
14221 return EGifPutExtensionLast ();
14226 rm -f conftest.
$ac_objext conftest
$ac_exeext
14227 if { (ac_try
="$ac_link"
14228 case "(($ac_try" in
14229 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14230 *) ac_try_echo=$ac_try;;
14232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14233 (eval "$ac_link") 2>conftest.er1
14235 grep -v '^ *+' conftest.er1 >conftest.err
14237 cat conftest.err >&5
14238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14239 (exit $ac_status); } && {
14240 test -z "$ac_c_werror_flag" ||
14241 test ! -s conftest.err
14242 } && test -s conftest$ac_exeext &&
14243 $as_test_x conftest$ac_exeext; then
14244 ac_cv_lib_gif_EGifPutExtensionLast=yes
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14249 ac_cv_lib_gif_EGifPutExtensionLast=no
14252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14253 conftest$ac_exeext conftest.$ac_ext
14254 LIBS=$ac_check_lib_save_LIBS
14256 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14257 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14258 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14268 if test "$HAVE_GIF" = yes; then
14269 ac_gif_lib_name="-lgif"
14272 # If gif_lib.h but no libgif, try libungif.
14273 if test x"$try_libungif" = xyes; then
14274 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14275 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14276 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14277 echo $ECHO_N "(cached) $ECHO_C" >&6
14279 ac_check_lib_save_LIBS=$LIBS
14280 LIBS="-lungif $LIBS"
14281 cat >conftest.$ac_ext <<_ACEOF
14284 cat confdefs.h >>conftest.$ac_ext
14285 cat >>conftest.$ac_ext <<_ACEOF
14286 /* end confdefs.h. */
14288 /* Override any GCC internal prototype to avoid an error.
14289 Use char because int might match the return type of a GCC
14290 builtin and then its argument prototype would still apply. */
14294 char EGifPutExtensionLast ();
14298 return EGifPutExtensionLast ();
14303 rm -f conftest.$ac_objext conftest$ac_exeext
14304 if { (ac_try="$ac_link"
14305 case "(($ac_try" in
14306 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14307 *) ac_try_echo
=$ac_try;;
14309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14310 (eval "$ac_link") 2>conftest.er1
14312 grep -v '^ *+' conftest.er1
>conftest.err
14314 cat conftest.err
>&5
14315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14316 (exit $ac_status); } && {
14317 test -z "$ac_c_werror_flag" ||
14318 test ! -s conftest.err
14319 } && test -s conftest
$ac_exeext &&
14320 $as_test_x conftest
$ac_exeext; then
14321 ac_cv_lib_ungif_EGifPutExtensionLast
=yes
14323 echo "$as_me: failed program was:" >&5
14324 sed 's/^/| /' conftest.
$ac_ext >&5
14326 ac_cv_lib_ungif_EGifPutExtensionLast
=no
14329 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14330 conftest
$ac_exeext conftest.
$ac_ext
14331 LIBS
=$ac_check_lib_save_LIBS
14333 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14334 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14335 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14340 if test "$HAVE_GIF" = yes; then
14342 cat >>confdefs.h
<<\_ACEOF
14343 #define LIBGIF -lungif
14346 ac_gif_lib_name
="-lungif"
14350 if test "${HAVE_GIF}" = "yes"; then
14352 cat >>confdefs.h
<<\_ACEOF
14359 if test "${HAVE_X11}" = "yes"; then
14362 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14363 MISSING
="libXpm" && WITH_NO
="--with-xpm=no"
14364 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14365 MISSING
="$MISSING libjpeg" && WITH_NO
="$WITH_NO --with-jpeg=no"
14366 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14367 MISSING
="$MISSING libpng" && WITH_NO
="$WITH_NO --with-png=no"
14368 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14369 MISSING
="$MISSING libgif/libungif" && WITH_NO
="$WITH_NO --with-gif=no"
14370 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14371 MISSING
="$MISSING libtiff" && WITH_NO
="$WITH_NO --with-tiff=no"
14373 if test "X${MISSING}" != X
; then
14374 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14376 Maybe some development libraries/packages are missing?
14377 If you don't want to link with them give
14379 as options to configure" >&5
14380 echo "$as_me: error: The following required libraries were not found:
14382 Maybe some development libraries/packages are missing?
14383 If you don't want to link with them give
14385 as options to configure" >&2;}
14386 { (exit 1); exit 1; }; }
14390 ### Use -lgpm if available, unless `--with-gpm=no'.
14392 if test "${with_gpm}" != "no"; then
14393 if test "${ac_cv_header_gpm_h+set}" = set; then
14394 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14395 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14396 if test "${ac_cv_header_gpm_h+set}" = set; then
14397 echo $ECHO_N "(cached) $ECHO_C" >&6
14399 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14400 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14402 # Is the header compilable?
14403 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14404 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14405 cat >conftest.
$ac_ext <<_ACEOF
14408 cat confdefs.h
>>conftest.
$ac_ext
14409 cat >>conftest.
$ac_ext <<_ACEOF
14410 /* end confdefs.h. */
14411 $ac_includes_default
14414 rm -f conftest.
$ac_objext
14415 if { (ac_try
="$ac_compile"
14416 case "(($ac_try" in
14417 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14418 *) ac_try_echo=$ac_try;;
14420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14421 (eval "$ac_compile") 2>conftest.er1
14423 grep -v '^ *+' conftest.er1 >conftest.err
14425 cat conftest.err >&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); } && {
14428 test -z "$ac_c_werror_flag" ||
14429 test ! -s conftest.err
14430 } && test -s conftest.$ac_objext; then
14431 ac_header_compiler=yes
14433 echo "$as_me: failed program was:" >&5
14434 sed 's/^/| /' conftest.$ac_ext >&5
14436 ac_header_compiler=no
14439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14440 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14441 echo "${ECHO_T}$ac_header_compiler" >&6; }
14443 # Is the header present?
14444 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14445 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14446 cat >conftest.$ac_ext <<_ACEOF
14449 cat confdefs.h >>conftest.$ac_ext
14450 cat >>conftest.$ac_ext <<_ACEOF
14451 /* end confdefs.h. */
14454 if { (ac_try="$ac_cpp conftest.$ac_ext"
14455 case "(($ac_try" in
14456 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14457 *) ac_try_echo
=$ac_try;;
14459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14460 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14462 grep -v '^ *+' conftest.er1
>conftest.err
14464 cat conftest.err
>&5
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); } >/dev
/null
&& {
14467 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14468 test ! -s conftest.err
14470 ac_header_preproc
=yes
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.
$ac_ext >&5
14475 ac_header_preproc
=no
14478 rm -f conftest.err conftest.
$ac_ext
14479 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14480 echo "${ECHO_T}$ac_header_preproc" >&6; }
14482 # So? What about this header?
14483 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14485 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14486 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14487 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14488 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14489 ac_header_preproc
=yes
14492 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14493 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14494 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14495 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14496 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14497 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14499 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14500 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14501 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14502 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14503 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14507 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14508 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14509 if test "${ac_cv_header_gpm_h+set}" = set; then
14510 echo $ECHO_N "(cached) $ECHO_C" >&6
14512 ac_cv_header_gpm_h
=$ac_header_preproc
14514 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14515 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14518 if test $ac_cv_header_gpm_h = yes; then
14519 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14520 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14521 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14522 echo $ECHO_N "(cached) $ECHO_C" >&6
14524 ac_check_lib_save_LIBS
=$LIBS
14526 cat >conftest.
$ac_ext <<_ACEOF
14529 cat confdefs.h
>>conftest.
$ac_ext
14530 cat >>conftest.
$ac_ext <<_ACEOF
14531 /* end confdefs.h. */
14533 /* Override any GCC internal prototype to avoid an error.
14534 Use char because int might match the return type of a GCC
14535 builtin and then its argument prototype would still apply. */
14543 return Gpm_Open ();
14548 rm -f conftest.
$ac_objext conftest
$ac_exeext
14549 if { (ac_try
="$ac_link"
14550 case "(($ac_try" in
14551 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14552 *) ac_try_echo=$ac_try;;
14554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14555 (eval "$ac_link") 2>conftest.er1
14557 grep -v '^ *+' conftest.er1 >conftest.err
14559 cat conftest.err >&5
14560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14561 (exit $ac_status); } && {
14562 test -z "$ac_c_werror_flag" ||
14563 test ! -s conftest.err
14564 } && test -s conftest$ac_exeext &&
14565 $as_test_x conftest$ac_exeext; then
14566 ac_cv_lib_gpm_Gpm_Open=yes
14568 echo "$as_me: failed program was:" >&5
14569 sed 's/^/| /' conftest.$ac_ext >&5
14571 ac_cv_lib_gpm_Gpm_Open=no
14574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14575 conftest$ac_exeext conftest.$ac_ext
14576 LIBS=$ac_check_lib_save_LIBS
14578 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14579 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14580 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14589 if test "${HAVE_GPM}" = "yes"; then
14591 cat >>confdefs.h <<\_ACEOF
14597 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14598 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14599 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14600 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14601 echo $ECHO_N "(cached) $ECHO_C" >&6
14603 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14604 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14606 # Is the header compilable?
14607 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14608 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14609 cat >conftest.$ac_ext <<_ACEOF
14612 cat confdefs.h >>conftest.$ac_ext
14613 cat >>conftest.$ac_ext <<_ACEOF
14614 /* end confdefs.h. */
14615 $ac_includes_default
14616 #include <malloc/malloc.h>
14618 rm -f conftest.$ac_objext
14619 if { (ac_try="$ac_compile"
14620 case "(($ac_try" in
14621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14622 *) ac_try_echo
=$ac_try;;
14624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14625 (eval "$ac_compile") 2>conftest.er1
14627 grep -v '^ *+' conftest.er1
>conftest.err
14629 cat conftest.err
>&5
14630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14631 (exit $ac_status); } && {
14632 test -z "$ac_c_werror_flag" ||
14633 test ! -s conftest.err
14634 } && test -s conftest.
$ac_objext; then
14635 ac_header_compiler
=yes
14637 echo "$as_me: failed program was:" >&5
14638 sed 's/^/| /' conftest.
$ac_ext >&5
14640 ac_header_compiler
=no
14643 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14644 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14645 echo "${ECHO_T}$ac_header_compiler" >&6; }
14647 # Is the header present?
14648 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14649 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14650 cat >conftest.
$ac_ext <<_ACEOF
14653 cat confdefs.h
>>conftest.
$ac_ext
14654 cat >>conftest.
$ac_ext <<_ACEOF
14655 /* end confdefs.h. */
14656 #include <malloc/malloc.h>
14658 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14659 case "(($ac_try" in
14660 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14661 *) ac_try_echo=$ac_try;;
14663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14666 grep -v '^ *+' conftest.er1 >conftest.err
14668 cat conftest.err >&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } >/dev/null && {
14671 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14672 test ! -s conftest.err
14674 ac_header_preproc=yes
14676 echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14679 ac_header_preproc=no
14682 rm -f conftest.err conftest.$ac_ext
14683 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14684 echo "${ECHO_T}$ac_header_preproc" >&6; }
14686 # So? What about this header?
14687 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14689 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14690 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14691 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14692 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14693 ac_header_preproc=yes
14696 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14697 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14698 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14699 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14700 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14701 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14702 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14703 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14704 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14705 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14706 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14707 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14711 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14712 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14713 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14714 echo $ECHO_N "(cached) $ECHO_C" >&6
14716 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14718 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14719 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14722 if test $ac_cv_header_malloc_malloc_h = yes; then
14724 cat >>confdefs.h <<\_ACEOF
14725 #define HAVE_MALLOC_MALLOC_H 1
14732 ### Use Mac OS X Carbon API to implement GUI.
14733 if test "${HAVE_CARBON}" = "yes"; then
14735 cat >>confdefs.h <<\_ACEOF
14736 #define HAVE_CARBON 1
14739 ## Specify the install directory
14741 if test "${carbon_appdir_x}" != ""; then
14742 case ${carbon_appdir_x} in
14743 y | ye | yes) carbon_appdir=/Applications ;;
14744 * ) carbon_appdir=${carbon_appdir_x} ;;
14747 # We also have mouse menus.
14751 ### Use session management (-lSM -lICE) if available
14753 if test "${HAVE_X11}" = "yes"; then
14754 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14755 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14756 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14757 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14758 echo $ECHO_N "(cached) $ECHO_C" >&6
14760 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14761 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14763 # Is the header compilable?
14764 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14765 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14766 cat >conftest.$ac_ext <<_ACEOF
14769 cat confdefs.h >>conftest.$ac_ext
14770 cat >>conftest.$ac_ext <<_ACEOF
14771 /* end confdefs.h. */
14772 $ac_includes_default
14773 #include <X11/SM/SMlib.h>
14775 rm -f conftest.$ac_objext
14776 if { (ac_try="$ac_compile"
14777 case "(($ac_try" in
14778 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14779 *) ac_try_echo
=$ac_try;;
14781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14782 (eval "$ac_compile") 2>conftest.er1
14784 grep -v '^ *+' conftest.er1
>conftest.err
14786 cat conftest.err
>&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } && {
14789 test -z "$ac_c_werror_flag" ||
14790 test ! -s conftest.err
14791 } && test -s conftest.
$ac_objext; then
14792 ac_header_compiler
=yes
14794 echo "$as_me: failed program was:" >&5
14795 sed 's/^/| /' conftest.
$ac_ext >&5
14797 ac_header_compiler
=no
14800 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14802 echo "${ECHO_T}$ac_header_compiler" >&6; }
14804 # Is the header present?
14805 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14806 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14807 cat >conftest.
$ac_ext <<_ACEOF
14810 cat confdefs.h
>>conftest.
$ac_ext
14811 cat >>conftest.
$ac_ext <<_ACEOF
14812 /* end confdefs.h. */
14813 #include <X11/SM/SMlib.h>
14815 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14816 case "(($ac_try" in
14817 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14818 *) ac_try_echo=$ac_try;;
14820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14823 grep -v '^ *+' conftest.er1 >conftest.err
14825 cat conftest.err >&5
14826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14827 (exit $ac_status); } >/dev/null && {
14828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14829 test ! -s conftest.err
14831 ac_header_preproc=yes
14833 echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.$ac_ext >&5
14836 ac_header_preproc=no
14839 rm -f conftest.err conftest.$ac_ext
14840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14841 echo "${ECHO_T}$ac_header_preproc" >&6; }
14843 # So? What about this header?
14844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14846 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14847 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14848 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14849 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14850 ac_header_preproc=yes
14853 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14854 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14855 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14856 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14857 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14858 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14859 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14860 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14861 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14862 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14863 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14864 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14868 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14869 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14870 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14871 echo $ECHO_N "(cached) $ECHO_C" >&6
14873 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14875 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14876 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14879 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14880 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14881 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14882 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14883 echo $ECHO_N "(cached) $ECHO_C" >&6
14885 ac_check_lib_save_LIBS=$LIBS
14886 LIBS="-lSM -lICE $LIBS"
14887 cat >conftest.$ac_ext <<_ACEOF
14890 cat confdefs.h >>conftest.$ac_ext
14891 cat >>conftest.$ac_ext <<_ACEOF
14892 /* end confdefs.h. */
14894 /* Override any GCC internal prototype to avoid an error.
14895 Use char because int might match the return type of a GCC
14896 builtin and then its argument prototype would still apply. */
14900 char SmcOpenConnection ();
14904 return SmcOpenConnection ();
14909 rm -f conftest.$ac_objext conftest$ac_exeext
14910 if { (ac_try="$ac_link"
14911 case "(($ac_try" in
14912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14913 *) ac_try_echo
=$ac_try;;
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_link") 2>conftest.er1
14918 grep -v '^ *+' conftest.er1
>conftest.err
14920 cat conftest.err
>&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); } && {
14923 test -z "$ac_c_werror_flag" ||
14924 test ! -s conftest.err
14925 } && test -s conftest
$ac_exeext &&
14926 $as_test_x conftest
$ac_exeext; then
14927 ac_cv_lib_SM_SmcOpenConnection
=yes
14929 echo "$as_me: failed program was:" >&5
14930 sed 's/^/| /' conftest.
$ac_ext >&5
14932 ac_cv_lib_SM_SmcOpenConnection
=no
14935 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14936 conftest
$ac_exeext conftest.
$ac_ext
14937 LIBS
=$ac_check_lib_save_LIBS
14939 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14940 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14941 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14949 if test "${HAVE_X_SM}" = "yes"; then
14951 cat >>confdefs.h
<<\_ACEOF
14952 #define HAVE_X_SM 1
14957 *) LIBS
="-lSM -lICE $LIBS" ;;
14962 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14963 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14964 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14965 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14966 echo $ECHO_N "(cached) $ECHO_C" >&6
14968 cat >conftest.
$ac_ext <<_ACEOF
14971 cat confdefs.h
>>conftest.
$ac_ext
14972 cat >>conftest.
$ac_ext <<_ACEOF
14973 /* end confdefs.h. */
14983 rm -f conftest.
$ac_objext conftest
$ac_exeext
14984 if { (ac_try
="$ac_link"
14985 case "(($ac_try" in
14986 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14987 *) ac_try_echo=$ac_try;;
14989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14990 (eval "$ac_link") 2>conftest.er1
14992 grep -v '^ *+' conftest.er1 >conftest.err
14994 cat conftest.err >&5
14995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14996 (exit $ac_status); } && {
14997 test -z "$ac_c_werror_flag" ||
14998 test ! -s conftest.err
14999 } && test -s conftest$ac_exeext &&
15000 $as_test_x conftest$ac_exeext; then
15001 emacs_cv_netdb_declares_h_errno=yes
15003 echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.$ac_ext >&5
15006 emacs_cv_netdb_declares_h_errno=no
15009 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15010 conftest$ac_exeext conftest.$ac_ext
15012 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15013 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15014 if test $emacs_cv_netdb_declares_h_errno = yes; then
15016 cat >>confdefs.h <<\_ACEOF
15017 #define HAVE_H_ERRNO 1
15022 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15023 # for constant arguments. Useless!
15024 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15025 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15026 if test "${ac_cv_working_alloca_h+set}" = set; then
15027 echo $ECHO_N "(cached) $ECHO_C" >&6
15029 cat >conftest.$ac_ext <<_ACEOF
15032 cat confdefs.h >>conftest.$ac_ext
15033 cat >>conftest.$ac_ext <<_ACEOF
15034 /* end confdefs.h. */
15035 #include <alloca.h>
15039 char *p = (char *) alloca (2 * sizeof (int));
15045 rm -f conftest.$ac_objext conftest$ac_exeext
15046 if { (ac_try="$ac_link"
15047 case "(($ac_try" in
15048 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
15049 *) ac_try_echo
=$ac_try;;
15051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15052 (eval "$ac_link") 2>conftest.er1
15054 grep -v '^ *+' conftest.er1
>conftest.err
15056 cat conftest.err
>&5
15057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15058 (exit $ac_status); } && {
15059 test -z "$ac_c_werror_flag" ||
15060 test ! -s conftest.err
15061 } && test -s conftest
$ac_exeext &&
15062 $as_test_x conftest
$ac_exeext; then
15063 ac_cv_working_alloca_h
=yes
15065 echo "$as_me: failed program was:" >&5
15066 sed 's/^/| /' conftest.
$ac_ext >&5
15068 ac_cv_working_alloca_h
=no
15071 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
15072 conftest
$ac_exeext conftest.
$ac_ext
15074 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15075 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15076 if test $ac_cv_working_alloca_h = yes; then
15078 cat >>confdefs.h
<<\_ACEOF
15079 #define HAVE_ALLOCA_H 1
15084 { echo "$as_me:$LINENO: checking for alloca" >&5
15085 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15086 if test "${ac_cv_func_alloca_works+set}" = set; then
15087 echo $ECHO_N "(cached) $ECHO_C" >&6
15089 cat >conftest.
$ac_ext <<_ACEOF
15092 cat confdefs.h
>>conftest.
$ac_ext
15093 cat >>conftest.
$ac_ext <<_ACEOF
15094 /* end confdefs.h. */
15096 # define alloca __builtin_alloca
15099 # include <malloc.h>
15100 # define alloca _alloca
15102 # ifdef HAVE_ALLOCA_H
15103 # include <alloca.h>
15108 # ifndef alloca /* predefined by HP cc +Olibcalls */
15119 char *p = (char *) alloca (1);
15125 rm -f conftest.
$ac_objext conftest
$ac_exeext
15126 if { (ac_try
="$ac_link"
15127 case "(($ac_try" in
15128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
15129 *) ac_try_echo=$ac_try;;
15131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15132 (eval "$ac_link") 2>conftest.er1
15134 grep -v '^ *+' conftest.er1 >conftest.err
15136 cat conftest.err >&5
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); } && {
15139 test -z "$ac_c_werror_flag" ||
15140 test ! -s conftest.err
15141 } && test -s conftest$ac_exeext &&
15142 $as_test_x conftest$ac_exeext; then
15143 ac_cv_func_alloca_works=yes
15145 echo "$as_me: failed program was:" >&5
15146 sed 's/^/| /' conftest.$ac_ext >&5
15148 ac_cv_func_alloca_works=no
15151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15152 conftest$ac_exeext conftest.$ac_ext
15154 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15155 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15157 if test $ac_cv_func_alloca_works = yes; then
15159 cat >>confdefs.h <<\_ACEOF
15160 #define HAVE_ALLOCA 1
15164 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15165 # that cause trouble. Some versions do not even contain alloca or
15166 # contain a buggy version. If you still want to use their alloca,
15167 # use ar to extract alloca.o from them instead of compiling alloca.c.
15169 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15171 cat >>confdefs.h <<\_ACEOF
15176 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
15177 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
15178 if test "${ac_cv_os_cray+set}" = set; then
15179 echo $ECHO_N "(cached
) $ECHO_C" >&6
15181 cat >conftest.$ac_ext <<_ACEOF
15184 cat confdefs.h >>conftest.$ac_ext
15185 cat >>conftest.$ac_ext <<_ACEOF
15186 /* end confdefs.h. */
15187 #if defined CRAY && ! defined CRAY2
15194 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
15195 $EGREP "webecray
" >/dev/null 2>&1; then
15203 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
15204 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15205 if test $ac_cv_os_cray = yes; then
15206 for ac_func in _getb67 GETB67 getb67; do
15207 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15208 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15209 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15210 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15211 echo $ECHO_N "(cached
) $ECHO_C" >&6
15213 cat >conftest.$ac_ext <<_ACEOF
15216 cat confdefs.h >>conftest.$ac_ext
15217 cat >>conftest.$ac_ext <<_ACEOF
15218 /* end confdefs.h. */
15219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15221 #define $ac_func innocuous_$ac_func
15223 /* System header to define __stub macros and hopefully few prototypes,
15224 which can conflict with char $ac_func (); below.
15225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15226 <limits.h> exists even on freestanding compilers. */
15229 # include <limits.h>
15231 # include <assert.h>
15236 /* Override any GCC internal prototype to avoid an error.
15237 Use char because int might match the return type of a GCC
15238 builtin and then its argument prototype would still apply. */
15243 /* The GNU C library defines this for functions which it implements
15244 to always fail with ENOSYS. Some functions are actually named
15245 something starting with __ and the normal name is an alias. */
15246 #if defined __stub_$ac_func || defined __stub___$ac_func
15253 return $ac_func ();
15258 rm -f conftest.$ac_objext conftest$ac_exeext
15259 if { (ac_try="$ac_link"
15260 case "(($ac_try" in
15261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15262 *) ac_try_echo=$ac_try;;
15264 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15265 (eval "$ac_link") 2>conftest.er1
15267 grep -v '^ *+' conftest.er1 >conftest.err
15269 cat conftest.err >&5
15270 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15271 (exit $ac_status); } && {
15272 test -z "$ac_c_werror_flag" ||
15273 test ! -s conftest.err
15274 } && test -s conftest$ac_exeext &&
15275 $as_test_x conftest$ac_exeext; then
15276 eval "$as_ac_var=yes"
15278 echo "$as_me: failed program was
:" >&5
15279 sed 's/^/| /' conftest.$ac_ext >&5
15281 eval "$as_ac_var=no
"
15284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15285 conftest$ac_exeext conftest.$ac_ext
15287 ac_res=`eval echo '${'$as_ac_var'}'`
15288 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15289 echo "${ECHO_T}$ac_res" >&6; }
15290 if test `eval echo '${'$as_ac_var'}'` = yes; then
15292 cat >>confdefs.h <<_ACEOF
15293 #define CRAY_STACKSEG_END $ac_func
15302 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
15303 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
15304 if test "${ac_cv_c_stack_direction+set}" = set; then
15305 echo $ECHO_N "(cached
) $ECHO_C" >&6
15307 if test "$cross_compiling" = yes; then
15308 ac_cv_c_stack_direction=0
15310 cat >conftest.$ac_ext <<_ACEOF
15313 cat confdefs.h >>conftest.$ac_ext
15314 cat >>conftest.$ac_ext <<_ACEOF
15315 /* end confdefs.h. */
15316 $ac_includes_default
15318 find_stack_direction ()
15320 static char *addr = 0;
15325 return find_stack_direction ();
15328 return (&dummy > addr) ? 1 : -1;
15334 return find_stack_direction () < 0;
15337 rm -f conftest$ac_exeext
15338 if { (ac_try="$ac_link"
15339 case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_link") 2>&5
15346 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15347 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15348 { (case "(($ac_try" in
15349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15350 *) ac_try_echo=$ac_try;;
15352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15353 (eval "$ac_try") 2>&5
15355 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15356 (exit $ac_status); }; }; then
15357 ac_cv_c_stack_direction=1
15359 echo "$as_me: program exited with status
$ac_status" >&5
15360 echo "$as_me: failed program was
:" >&5
15361 sed 's/^/| /' conftest.$ac_ext >&5
15363 ( exit $ac_status )
15364 ac_cv_c_stack_direction=-1
15366 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15371 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
15372 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15374 cat >>confdefs.h <<_ACEOF
15375 #define STACK_DIRECTION $ac_cv_c_stack_direction
15382 if test x"$ac_cv_func_alloca_works" != xyes; then
15383 { { echo "$as_me:$LINENO: error
: a system implementation of alloca is required
" >&5
15384 echo "$as_me: error
: a system implementation of alloca is required
" >&2;}
15385 { (exit 1); exit 1; }; }
15388 # fmod, logb, and frexp are found in -lm on most systems.
15389 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15391 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
15392 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
15393 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15394 echo $ECHO_N "(cached
) $ECHO_C" >&6
15396 ac_check_lib_save_LIBS=$LIBS
15398 cat >conftest.$ac_ext <<_ACEOF
15401 cat confdefs.h >>conftest.$ac_ext
15402 cat >>conftest.$ac_ext <<_ACEOF
15403 /* end confdefs.h. */
15405 /* Override any GCC internal prototype to avoid an error.
15406 Use char because int might match the return type of a GCC
15407 builtin and then its argument prototype would still apply. */
15420 rm -f conftest.$ac_objext conftest$ac_exeext
15421 if { (ac_try="$ac_link"
15422 case "(($ac_try" in
15423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15424 *) ac_try_echo=$ac_try;;
15426 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15427 (eval "$ac_link") 2>conftest.er1
15429 grep -v '^ *+' conftest.er1 >conftest.err
15431 cat conftest.err >&5
15432 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15433 (exit $ac_status); } && {
15434 test -z "$ac_c_werror_flag" ||
15435 test ! -s conftest.err
15436 } && test -s conftest$ac_exeext &&
15437 $as_test_x conftest$ac_exeext; then
15438 ac_cv_lib_m_sqrt=yes
15440 echo "$as_me: failed program was
:" >&5
15441 sed 's/^/| /' conftest.$ac_ext >&5
15443 ac_cv_lib_m_sqrt=no
15446 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15447 conftest$ac_exeext conftest.$ac_ext
15448 LIBS=$ac_check_lib_save_LIBS
15450 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15451 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15452 if test $ac_cv_lib_m_sqrt = yes; then
15453 cat >>confdefs.h <<_ACEOF
15454 #define HAVE_LIBM 1
15462 # Check for mail-locking functions in a "mail" library. Probably this should
15463 # have the same check as for liblockfile below.
15465 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15466 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15467 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15468 echo $ECHO_N "(cached
) $ECHO_C" >&6
15470 ac_check_lib_save_LIBS=$LIBS
15471 LIBS="-lmail $LIBS"
15472 cat >conftest.$ac_ext <<_ACEOF
15475 cat confdefs.h >>conftest.$ac_ext
15476 cat >>conftest.$ac_ext <<_ACEOF
15477 /* end confdefs.h. */
15479 /* Override any GCC internal prototype to avoid an error.
15480 Use char because int might match the return type of a GCC
15481 builtin and then its argument prototype would still apply. */
15489 return maillock ();
15494 rm -f conftest.$ac_objext conftest$ac_exeext
15495 if { (ac_try="$ac_link"
15496 case "(($ac_try" in
15497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15498 *) ac_try_echo=$ac_try;;
15500 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15501 (eval "$ac_link") 2>conftest.er1
15503 grep -v '^ *+' conftest.er1 >conftest.err
15505 cat conftest.err >&5
15506 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15507 (exit $ac_status); } && {
15508 test -z "$ac_c_werror_flag" ||
15509 test ! -s conftest.err
15510 } && test -s conftest$ac_exeext &&
15511 $as_test_x conftest$ac_exeext; then
15512 ac_cv_lib_mail_maillock=yes
15514 echo "$as_me: failed program was
:" >&5
15515 sed 's/^/| /' conftest.$ac_ext >&5
15517 ac_cv_lib_mail_maillock=no
15520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15521 conftest$ac_exeext conftest.$ac_ext
15522 LIBS=$ac_check_lib_save_LIBS
15524 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15525 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15526 if test $ac_cv_lib_mail_maillock = yes; then
15527 cat >>confdefs.h <<_ACEOF
15528 #define HAVE_LIBMAIL 1
15531 LIBS="-lmail $LIBS"
15536 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15537 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15538 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15539 echo $ECHO_N "(cached
) $ECHO_C" >&6
15541 ac_check_lib_save_LIBS=$LIBS
15542 LIBS="-llockfile $LIBS"
15543 cat >conftest.$ac_ext <<_ACEOF
15546 cat confdefs.h >>conftest.$ac_ext
15547 cat >>conftest.$ac_ext <<_ACEOF
15548 /* end confdefs.h. */
15550 /* Override any GCC internal prototype to avoid an error.
15551 Use char because int might match the return type of a GCC
15552 builtin and then its argument prototype would still apply. */
15560 return maillock ();
15565 rm -f conftest.$ac_objext conftest$ac_exeext
15566 if { (ac_try="$ac_link"
15567 case "(($ac_try" in
15568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15569 *) ac_try_echo=$ac_try;;
15571 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15572 (eval "$ac_link") 2>conftest.er1
15574 grep -v '^ *+' conftest.er1 >conftest.err
15576 cat conftest.err >&5
15577 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15578 (exit $ac_status); } && {
15579 test -z "$ac_c_werror_flag" ||
15580 test ! -s conftest.err
15581 } && test -s conftest$ac_exeext &&
15582 $as_test_x conftest$ac_exeext; then
15583 ac_cv_lib_lockfile_maillock=yes
15585 echo "$as_me: failed program was
:" >&5
15586 sed 's/^/| /' conftest.$ac_ext >&5
15588 ac_cv_lib_lockfile_maillock=no
15591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15592 conftest$ac_exeext conftest.$ac_ext
15593 LIBS=$ac_check_lib_save_LIBS
15595 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15596 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15597 if test $ac_cv_lib_lockfile_maillock = yes; then
15598 cat >>confdefs.h <<_ACEOF
15599 #define HAVE_LIBLOCKFILE 1
15602 LIBS="-llockfile $LIBS"
15606 # If we have the shared liblockfile, assume we must use it for mail
15607 # locking (e.g. Debian). If we couldn't link against liblockfile
15608 # (no liblockfile.a installed), ensure that we don't need to.
15609 if test "$ac_cv_lib_lockfile_maillock" = no; then
15610 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15611 set dummy liblockfile.so; ac_word=$2
15612 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15613 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15614 if test "${ac_cv_prog_liblockfile+set}" = set; then
15615 echo $ECHO_N "(cached
) $ECHO_C" >&6
15617 if test -n "$liblockfile"; then
15618 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15621 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15622 for as_dir in $as_dummy
15625 test -z "$as_dir" && as_dir=.
15626 for ac_exec_ext in '' $ac_executable_extensions; do
15627 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15628 ac_cv_prog_liblockfile="yes"
15629 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15636 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15639 liblockfile=$ac_cv_prog_liblockfile
15640 if test -n "$liblockfile"; then
15641 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15642 echo "${ECHO_T}$liblockfile" >&6; }
15644 { echo "$as_me:$LINENO: result
: no
" >&5
15645 echo "${ECHO_T}no
" >&6; }
15649 if test $ac_cv_prog_liblockfile = yes; then
15650 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15651 This probably means that movemail could lose mail.
15652 There may be a \`development' package to
install containing liblockfile.
" >&5
15653 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15654 This probably means that movemail could lose mail.
15655 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15656 { (exit 1); exit 1; }; }
15661 for ac_func in touchlock
15663 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15664 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15665 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15666 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15667 echo $ECHO_N "(cached
) $ECHO_C" >&6
15669 cat >conftest.$ac_ext <<_ACEOF
15672 cat confdefs.h >>conftest.$ac_ext
15673 cat >>conftest.$ac_ext <<_ACEOF
15674 /* end confdefs.h. */
15675 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15676 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15677 #define $ac_func innocuous_$ac_func
15679 /* System header to define __stub macros and hopefully few prototypes,
15680 which can conflict with char $ac_func (); below.
15681 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15682 <limits.h> exists even on freestanding compilers. */
15685 # include <limits.h>
15687 # include <assert.h>
15692 /* Override any GCC internal prototype to avoid an error.
15693 Use char because int might match the return type of a GCC
15694 builtin and then its argument prototype would still apply. */
15699 /* The GNU C library defines this for functions which it implements
15700 to always fail with ENOSYS. Some functions are actually named
15701 something starting with __ and the normal name is an alias. */
15702 #if defined __stub_$ac_func || defined __stub___$ac_func
15709 return $ac_func ();
15714 rm -f conftest.$ac_objext conftest$ac_exeext
15715 if { (ac_try="$ac_link"
15716 case "(($ac_try" in
15717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15718 *) ac_try_echo=$ac_try;;
15720 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15721 (eval "$ac_link") 2>conftest.er1
15723 grep -v '^ *+' conftest.er1 >conftest.err
15725 cat conftest.err >&5
15726 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15727 (exit $ac_status); } && {
15728 test -z "$ac_c_werror_flag" ||
15729 test ! -s conftest.err
15730 } && test -s conftest$ac_exeext &&
15731 $as_test_x conftest$ac_exeext; then
15732 eval "$as_ac_var=yes"
15734 echo "$as_me: failed program was
:" >&5
15735 sed 's/^/| /' conftest.$ac_ext >&5
15737 eval "$as_ac_var=no
"
15740 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15741 conftest$ac_exeext conftest.$ac_ext
15743 ac_res=`eval echo '${'$as_ac_var'}'`
15744 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15745 echo "${ECHO_T}$ac_res" >&6; }
15746 if test `eval echo '${'$as_ac_var'}'` = yes; then
15747 cat >>confdefs.h <<_ACEOF
15748 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15755 for ac_header in maillock.h
15757 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15758 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15759 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15760 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15761 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15762 echo $ECHO_N "(cached
) $ECHO_C" >&6
15764 ac_res=`eval echo '${'$as_ac_Header'}'`
15765 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15766 echo "${ECHO_T}$ac_res" >&6; }
15768 # Is the header compilable?
15769 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15770 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15771 cat >conftest.$ac_ext <<_ACEOF
15774 cat confdefs.h >>conftest.$ac_ext
15775 cat >>conftest.$ac_ext <<_ACEOF
15776 /* end confdefs.h. */
15777 $ac_includes_default
15778 #include <$ac_header>
15780 rm -f conftest.$ac_objext
15781 if { (ac_try="$ac_compile"
15782 case "(($ac_try" in
15783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15784 *) ac_try_echo=$ac_try;;
15786 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15787 (eval "$ac_compile") 2>conftest.er1
15789 grep -v '^ *+' conftest.er1 >conftest.err
15791 cat conftest.err >&5
15792 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15793 (exit $ac_status); } && {
15794 test -z "$ac_c_werror_flag" ||
15795 test ! -s conftest.err
15796 } && test -s conftest.$ac_objext; then
15797 ac_header_compiler=yes
15799 echo "$as_me: failed program was
:" >&5
15800 sed 's/^/| /' conftest.$ac_ext >&5
15802 ac_header_compiler=no
15805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15806 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15807 echo "${ECHO_T}$ac_header_compiler" >&6; }
15809 # Is the header present?
15810 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15811 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15812 cat >conftest.$ac_ext <<_ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 #include <$ac_header>
15820 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15821 case "(($ac_try" in
15822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15823 *) ac_try_echo=$ac_try;;
15825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15826 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15828 grep -v '^ *+' conftest.er1 >conftest.err
15830 cat conftest.err >&5
15831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15832 (exit $ac_status); } >/dev/null && {
15833 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15834 test ! -s conftest.err
15836 ac_header_preproc=yes
15838 echo "$as_me: failed program was
:" >&5
15839 sed 's/^/| /' conftest.$ac_ext >&5
15841 ac_header_preproc=no
15844 rm -f conftest.err conftest.$ac_ext
15845 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15846 echo "${ECHO_T}$ac_header_preproc" >&6; }
15848 # So? What about this header?
15849 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15851 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15852 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15853 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15854 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15855 ac_header_preproc=yes
15858 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15859 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15860 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15861 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15862 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15863 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15864 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15865 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15866 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15867 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15868 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15869 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15873 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15874 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15875 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15876 echo $ECHO_N "(cached
) $ECHO_C" >&6
15878 eval "$as_ac_Header=\
$ac_header_preproc"
15880 ac_res=`eval echo '${'$as_ac_Header'}'`
15881 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15882 echo "${ECHO_T}$ac_res" >&6; }
15885 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15886 cat >>confdefs.h <<_ACEOF
15887 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15963 for ac_func in gethostname getdomainname dup2 \
15964 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15965 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15966 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15967 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15968 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15969 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15970 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15971 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15973 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15974 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15975 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15976 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15977 echo $ECHO_N "(cached
) $ECHO_C" >&6
15979 cat >conftest.$ac_ext <<_ACEOF
15982 cat confdefs.h >>conftest.$ac_ext
15983 cat >>conftest.$ac_ext <<_ACEOF
15984 /* end confdefs.h. */
15985 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15986 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15987 #define $ac_func innocuous_$ac_func
15989 /* System header to define __stub macros and hopefully few prototypes,
15990 which can conflict with char $ac_func (); below.
15991 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15992 <limits.h> exists even on freestanding compilers. */
15995 # include <limits.h>
15997 # include <assert.h>
16002 /* Override any GCC internal prototype to avoid an error.
16003 Use char because int might match the return type of a GCC
16004 builtin and then its argument prototype would still apply. */
16009 /* The GNU C library defines this for functions which it implements
16010 to always fail with ENOSYS. Some functions are actually named
16011 something starting with __ and the normal name is an alias. */
16012 #if defined __stub_$ac_func || defined __stub___$ac_func
16019 return $ac_func ();
16024 rm -f conftest.$ac_objext conftest$ac_exeext
16025 if { (ac_try="$ac_link"
16026 case "(($ac_try" in
16027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028 *) ac_try_echo=$ac_try;;
16030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16031 (eval "$ac_link") 2>conftest.er1
16033 grep -v '^ *+' conftest.er1 >conftest.err
16035 cat conftest.err >&5
16036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16037 (exit $ac_status); } && {
16038 test -z "$ac_c_werror_flag" ||
16039 test ! -s conftest.err
16040 } && test -s conftest$ac_exeext &&
16041 $as_test_x conftest$ac_exeext; then
16042 eval "$as_ac_var=yes"
16044 echo "$as_me: failed program was
:" >&5
16045 sed 's/^/| /' conftest.$ac_ext >&5
16047 eval "$as_ac_var=no
"
16050 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16051 conftest$ac_exeext conftest.$ac_ext
16053 ac_res=`eval echo '${'$as_ac_var'}'`
16054 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16055 echo "${ECHO_T}$ac_res" >&6; }
16056 if test `eval echo '${'$as_ac_var'}'` = yes; then
16057 cat >>confdefs.h <<_ACEOF
16058 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16066 for ac_header in sys/un.h
16068 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16069 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16070 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16071 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16072 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16073 echo $ECHO_N "(cached
) $ECHO_C" >&6
16075 ac_res=`eval echo '${'$as_ac_Header'}'`
16076 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16077 echo "${ECHO_T}$ac_res" >&6; }
16079 # Is the header compilable?
16080 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16081 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16082 cat >conftest.$ac_ext <<_ACEOF
16085 cat confdefs.h >>conftest.$ac_ext
16086 cat >>conftest.$ac_ext <<_ACEOF
16087 /* end confdefs.h. */
16088 $ac_includes_default
16089 #include <$ac_header>
16091 rm -f conftest.$ac_objext
16092 if { (ac_try="$ac_compile"
16093 case "(($ac_try" in
16094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16095 *) ac_try_echo=$ac_try;;
16097 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16098 (eval "$ac_compile") 2>conftest.er1
16100 grep -v '^ *+' conftest.er1 >conftest.err
16102 cat conftest.err >&5
16103 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16104 (exit $ac_status); } && {
16105 test -z "$ac_c_werror_flag" ||
16106 test ! -s conftest.err
16107 } && test -s conftest.$ac_objext; then
16108 ac_header_compiler=yes
16110 echo "$as_me: failed program was
:" >&5
16111 sed 's/^/| /' conftest.$ac_ext >&5
16113 ac_header_compiler=no
16116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16117 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16118 echo "${ECHO_T}$ac_header_compiler" >&6; }
16120 # Is the header present?
16121 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16122 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16123 cat >conftest.$ac_ext <<_ACEOF
16126 cat confdefs.h >>conftest.$ac_ext
16127 cat >>conftest.$ac_ext <<_ACEOF
16128 /* end confdefs.h. */
16129 #include <$ac_header>
16131 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16132 case "(($ac_try" in
16133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16134 *) ac_try_echo=$ac_try;;
16136 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16137 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16139 grep -v '^ *+' conftest.er1 >conftest.err
16141 cat conftest.err >&5
16142 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16143 (exit $ac_status); } >/dev/null && {
16144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16145 test ! -s conftest.err
16147 ac_header_preproc=yes
16149 echo "$as_me: failed program was
:" >&5
16150 sed 's/^/| /' conftest.$ac_ext >&5
16152 ac_header_preproc=no
16155 rm -f conftest.err conftest.$ac_ext
16156 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16157 echo "${ECHO_T}$ac_header_preproc" >&6; }
16159 # So? What about this header?
16160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16162 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16163 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16164 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16165 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16166 ac_header_preproc=yes
16169 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16170 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16171 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16172 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16173 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16174 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16175 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16176 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16177 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16178 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16179 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16180 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16184 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16185 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16186 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16187 echo $ECHO_N "(cached
) $ECHO_C" >&6
16189 eval "$as_ac_Header=\
$ac_header_preproc"
16191 ac_res=`eval echo '${'$as_ac_Header'}'`
16192 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16193 echo "${ECHO_T}$ac_res" >&6; }
16196 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16197 cat >>confdefs.h <<_ACEOF
16198 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16210 for ac_header in $ac_header_list
16212 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
16213 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16214 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16215 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16216 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16217 echo $ECHO_N "(cached
) $ECHO_C" >&6
16219 ac_res=`eval echo '${'$as_ac_Header'}'`
16220 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16221 echo "${ECHO_T}$ac_res" >&6; }
16223 # Is the header compilable?
16224 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
16225 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
16226 cat >conftest.$ac_ext <<_ACEOF
16229 cat confdefs.h >>conftest.$ac_ext
16230 cat >>conftest.$ac_ext <<_ACEOF
16231 /* end confdefs.h. */
16232 $ac_includes_default
16233 #include <$ac_header>
16235 rm -f conftest.$ac_objext
16236 if { (ac_try="$ac_compile"
16237 case "(($ac_try" in
16238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239 *) ac_try_echo=$ac_try;;
16241 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16242 (eval "$ac_compile") 2>conftest.er1
16244 grep -v '^ *+' conftest.er1 >conftest.err
16246 cat conftest.err >&5
16247 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16248 (exit $ac_status); } && {
16249 test -z "$ac_c_werror_flag" ||
16250 test ! -s conftest.err
16251 } && test -s conftest.$ac_objext; then
16252 ac_header_compiler=yes
16254 echo "$as_me: failed program was
:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16257 ac_header_compiler=no
16260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16262 echo "${ECHO_T}$ac_header_compiler" >&6; }
16264 # Is the header present?
16265 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
16266 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
16267 cat >conftest.$ac_ext <<_ACEOF
16270 cat confdefs.h >>conftest.$ac_ext
16271 cat >>conftest.$ac_ext <<_ACEOF
16272 /* end confdefs.h. */
16273 #include <$ac_header>
16275 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16276 case "(($ac_try" in
16277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16278 *) ac_try_echo=$ac_try;;
16280 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16281 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16283 grep -v '^ *+' conftest.er1 >conftest.err
16285 cat conftest.err >&5
16286 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16287 (exit $ac_status); } >/dev/null && {
16288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16289 test ! -s conftest.err
16291 ac_header_preproc=yes
16293 echo "$as_me: failed program was
:" >&5
16294 sed 's/^/| /' conftest.$ac_ext >&5
16296 ac_header_preproc=no
16299 rm -f conftest.err conftest.$ac_ext
16300 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16301 echo "${ECHO_T}$ac_header_preproc" >&6; }
16303 # So? What about this header?
16304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16306 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
16307 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16308 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
16309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
16310 ac_header_preproc=yes
16313 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
16314 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
16315 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
16316 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
16317 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
16318 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
16319 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
16320 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
16321 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
16322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
16323 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
16324 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
16328 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
16329 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
16330 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
16331 echo $ECHO_N "(cached
) $ECHO_C" >&6
16333 eval "$as_ac_Header=\
$ac_header_preproc"
16335 ac_res=`eval echo '${'$as_ac_Header'}'`
16336 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16337 echo "${ECHO_T}$ac_res" >&6; }
16340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16341 cat >>confdefs.h <<_ACEOF
16342 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
16357 for ac_func in $ac_func_list
16359 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16360 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16361 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16362 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16363 echo $ECHO_N "(cached
) $ECHO_C" >&6
16365 cat >conftest.$ac_ext <<_ACEOF
16368 cat confdefs.h >>conftest.$ac_ext
16369 cat >>conftest.$ac_ext <<_ACEOF
16370 /* end confdefs.h. */
16371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16373 #define $ac_func innocuous_$ac_func
16375 /* System header to define __stub macros and hopefully few prototypes,
16376 which can conflict with char $ac_func (); below.
16377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16378 <limits.h> exists even on freestanding compilers. */
16381 # include <limits.h>
16383 # include <assert.h>
16388 /* Override any GCC internal prototype to avoid an error.
16389 Use char because int might match the return type of a GCC
16390 builtin and then its argument prototype would still apply. */
16395 /* The GNU C library defines this for functions which it implements
16396 to always fail with ENOSYS. Some functions are actually named
16397 something starting with __ and the normal name is an alias. */
16398 #if defined __stub_$ac_func || defined __stub___$ac_func
16405 return $ac_func ();
16410 rm -f conftest.$ac_objext conftest$ac_exeext
16411 if { (ac_try="$ac_link"
16412 case "(($ac_try" in
16413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16414 *) ac_try_echo=$ac_try;;
16416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16417 (eval "$ac_link") 2>conftest.er1
16419 grep -v '^ *+' conftest.er1 >conftest.err
16421 cat conftest.err >&5
16422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16423 (exit $ac_status); } && {
16424 test -z "$ac_c_werror_flag" ||
16425 test ! -s conftest.err
16426 } && test -s conftest$ac_exeext &&
16427 $as_test_x conftest$ac_exeext; then
16428 eval "$as_ac_var=yes"
16430 echo "$as_me: failed program was
:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16433 eval "$as_ac_var=no
"
16436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16437 conftest$ac_exeext conftest.$ac_ext
16439 ac_res=`eval echo '${'$as_ac_var'}'`
16440 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16441 echo "${ECHO_T}$ac_res" >&6; }
16442 if test `eval echo '${'$as_ac_var'}'` = yes; then
16443 cat >>confdefs.h <<_ACEOF
16444 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16466 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16467 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16468 if test "${ac_cv_func_working_mktime+set}" = set; then
16469 echo $ECHO_N "(cached
) $ECHO_C" >&6
16471 if test "$cross_compiling" = yes; then
16472 ac_cv_func_working_mktime=no
16474 cat >conftest.$ac_ext <<_ACEOF
16477 cat confdefs.h >>conftest.$ac_ext
16478 cat >>conftest.$ac_ext <<_ACEOF
16479 /* end confdefs.h. */
16480 /* Test program from Paul Eggert and Tony Leneis. */
16481 #ifdef TIME_WITH_SYS_TIME
16482 # include <sys/time.h>
16485 # ifdef HAVE_SYS_TIME_H
16486 # include <sys/time.h>
16492 #include <stdlib.h>
16494 #ifdef HAVE_UNISTD_H
16495 # include <unistd.h>
16499 # define alarm(X) /* empty */
16502 /* Work around redefinition to rpl_putenv by other config tests. */
16505 static time_t time_t_max;
16506 static time_t time_t_min;
16508 /* Values we'll use to set the TZ environment variable. */
16509 static char *tz_strings[] = {
16510 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16511 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16513 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16515 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16516 Based on a problem report from Andreas Jaeger. */
16518 spring_forward_gap ()
16520 /* glibc (up to about 1998-10-07) failed this test. */
16523 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16524 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16525 on systems that don't support the Olson extension, or don't have the
16526 full zoneinfo tables installed. */
16527 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16536 return mktime (&tm) != (time_t) -1;
16544 return ! (lt = localtime (&now)) || mktime (lt) == now;
16551 return (mktime_test1 (now)
16552 && mktime_test1 ((time_t) (time_t_max - now))
16553 && mktime_test1 ((time_t) (time_t_min + now)));
16559 /* Based on code from Ariel Faigon. */
16569 return tm.tm_mon == 2 && tm.tm_mday == 31;
16578 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16579 now = mktime (&tm);
16580 if (now != (time_t) -1)
16582 struct tm *lt = localtime (&now);
16584 && lt->tm_year == tm.tm_year
16585 && lt->tm_mon == tm.tm_mon
16586 && lt->tm_mday == tm.tm_mday
16587 && lt->tm_hour == tm.tm_hour
16588 && lt->tm_min == tm.tm_min
16589 && lt->tm_sec == tm.tm_sec
16590 && lt->tm_yday == tm.tm_yday
16591 && lt->tm_wday == tm.tm_wday
16592 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16593 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16602 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16603 ignoring leap seconds. */
16604 unsigned long int answer = 2527315200UL;
16608 tm.tm_year = 2050 - 1900;
16611 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16614 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16615 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16616 on systems that don't support the Olson extension, or don't have the
16617 full zoneinfo tables installed. */
16618 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16622 /* Check that the result is either a failure, or close enough
16623 to the correct answer that we can assume the discrepancy is
16624 due to leap seconds. */
16625 return (t == (time_t) -1
16626 || (0 < t && answer - 120 <= t && t <= answer + 120));
16635 /* This test makes some buggy mktime implementations loop.
16636 Give up after 60 seconds; a mktime slower than that
16637 isn't worth using anyway. */
16640 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16643 if ((time_t) -1 < 0)
16644 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16646 delta = time_t_max / 997; /* a suitable prime number */
16647 for (i = 0; i < N_STRINGS; i++)
16650 putenv (tz_strings[i]);
16652 for (t = 0; t <= time_t_max - delta; t += delta)
16653 if (! mktime_test (t))
16655 if (! (mktime_test ((time_t) 1)
16656 && mktime_test ((time_t) (60 * 60))
16657 && mktime_test ((time_t) (60 * 60 * 24))))
16660 for (j = 1; 0 < j; j *= 2)
16661 if (! bigtime_test (j))
16663 if (! bigtime_test (j - 1))
16666 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16669 rm -f conftest$ac_exeext
16670 if { (ac_try="$ac_link"
16671 case "(($ac_try" in
16672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16673 *) ac_try_echo=$ac_try;;
16675 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16676 (eval "$ac_link") 2>&5
16678 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16679 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16680 { (case "(($ac_try" in
16681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16682 *) ac_try_echo=$ac_try;;
16684 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16685 (eval "$ac_try") 2>&5
16687 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16688 (exit $ac_status); }; }; then
16689 ac_cv_func_working_mktime=yes
16691 echo "$as_me: program exited with status
$ac_status" >&5
16692 echo "$as_me: failed program was
:" >&5
16693 sed 's/^/| /' conftest.$ac_ext >&5
16695 ( exit $ac_status )
16696 ac_cv_func_working_mktime=no
16698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16703 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16704 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16705 if test $ac_cv_func_working_mktime = no; then
16706 case " $LIBOBJS " in
16707 *" mktime.
$ac_objext "* ) ;;
16708 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16714 if test "$ac_cv_func_working_mktime" = no; then
16716 cat >>confdefs.h <<\_ACEOF
16717 #define BROKEN_MKTIME 1
16722 ac_have_func=no # yes means we've found a way to get the load average.
16724 # Make sure getloadavg.c is where it belongs, at configure-time.
16725 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16726 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16727 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16728 { (exit 1); exit 1; }; }
16732 # Check for getloadavg, but be sure not to touch the cache variable.
16733 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16734 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16735 if test "${ac_cv_func_getloadavg+set}" = set; then
16736 echo $ECHO_N "(cached
) $ECHO_C" >&6
16738 cat >conftest.$ac_ext <<_ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h. */
16744 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16746 #define getloadavg innocuous_getloadavg
16748 /* System header to define __stub macros and hopefully few prototypes,
16749 which can conflict with char getloadavg (); below.
16750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16751 <limits.h> exists even on freestanding compilers. */
16754 # include <limits.h>
16756 # include <assert.h>
16761 /* Override any GCC internal prototype to avoid an error.
16762 Use char because int might match the return type of a GCC
16763 builtin and then its argument prototype would still apply. */
16767 char getloadavg ();
16768 /* The GNU C library defines this for functions which it implements
16769 to always fail with ENOSYS. Some functions are actually named
16770 something starting with __ and the normal name is an alias. */
16771 #if defined __stub_getloadavg || defined __stub___getloadavg
16778 return getloadavg ();
16783 rm -f conftest.$ac_objext conftest$ac_exeext
16784 if { (ac_try="$ac_link"
16785 case "(($ac_try" in
16786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16787 *) ac_try_echo=$ac_try;;
16789 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16790 (eval "$ac_link") 2>conftest.er1
16792 grep -v '^ *+' conftest.er1 >conftest.err
16794 cat conftest.err >&5
16795 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16796 (exit $ac_status); } && {
16797 test -z "$ac_c_werror_flag" ||
16798 test ! -s conftest.err
16799 } && test -s conftest$ac_exeext &&
16800 $as_test_x conftest$ac_exeext; then
16801 ac_cv_func_getloadavg=yes
16803 echo "$as_me: failed program was
:" >&5
16804 sed 's/^/| /' conftest.$ac_ext >&5
16806 ac_cv_func_getloadavg=no
16809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16810 conftest$ac_exeext conftest.$ac_ext
16812 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16813 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16814 if test $ac_cv_func_getloadavg = yes; then
16819 ) && ac_have_func=yes
16821 # On HPUX9, an unprivileged user can get load averages through this function.
16823 for ac_func in pstat_getdynamic
16825 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16826 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16827 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16828 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16829 echo $ECHO_N "(cached
) $ECHO_C" >&6
16831 cat >conftest.$ac_ext <<_ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h. */
16837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16839 #define $ac_func innocuous_$ac_func
16841 /* System header to define __stub macros and hopefully few prototypes,
16842 which can conflict with char $ac_func (); below.
16843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16844 <limits.h> exists even on freestanding compilers. */
16847 # include <limits.h>
16849 # include <assert.h>
16854 /* Override any GCC internal prototype to avoid an error.
16855 Use char because int might match the return type of a GCC
16856 builtin and then its argument prototype would still apply. */
16861 /* The GNU C library defines this for functions which it implements
16862 to always fail with ENOSYS. Some functions are actually named
16863 something starting with __ and the normal name is an alias. */
16864 #if defined __stub_$ac_func || defined __stub___$ac_func
16871 return $ac_func ();
16876 rm -f conftest.$ac_objext conftest$ac_exeext
16877 if { (ac_try="$ac_link"
16878 case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16882 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16883 (eval "$ac_link") 2>conftest.er1
16885 grep -v '^ *+' conftest.er1 >conftest.err
16887 cat conftest.err >&5
16888 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16889 (exit $ac_status); } && {
16890 test -z "$ac_c_werror_flag" ||
16891 test ! -s conftest.err
16892 } && test -s conftest$ac_exeext &&
16893 $as_test_x conftest$ac_exeext; then
16894 eval "$as_ac_var=yes"
16896 echo "$as_me: failed program was
:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16899 eval "$as_ac_var=no
"
16902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16903 conftest$ac_exeext conftest.$ac_ext
16905 ac_res=`eval echo '${'$as_ac_var'}'`
16906 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16907 echo "${ECHO_T}$ac_res" >&6; }
16908 if test `eval echo '${'$as_ac_var'}'` = yes; then
16909 cat >>confdefs.h <<_ACEOF
16910 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16917 # Solaris has libkstat which does not require root.
16919 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16920 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16921 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16922 echo $ECHO_N "(cached
) $ECHO_C" >&6
16924 ac_check_lib_save_LIBS=$LIBS
16925 LIBS="-lkstat $LIBS"
16926 cat >conftest.$ac_ext <<_ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16933 /* Override any GCC internal prototype to avoid an error.
16934 Use char because int might match the return type of a GCC
16935 builtin and then its argument prototype would still apply. */
16939 char kstat_open ();
16943 return kstat_open ();
16948 rm -f conftest.$ac_objext conftest$ac_exeext
16949 if { (ac_try="$ac_link"
16950 case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16954 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_link") 2>conftest.er1
16957 grep -v '^ *+' conftest.er1 >conftest.err
16959 cat conftest.err >&5
16960 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16961 (exit $ac_status); } && {
16962 test -z "$ac_c_werror_flag" ||
16963 test ! -s conftest.err
16964 } && test -s conftest$ac_exeext &&
16965 $as_test_x conftest$ac_exeext; then
16966 ac_cv_lib_kstat_kstat_open=yes
16968 echo "$as_me: failed program was
:" >&5
16969 sed 's/^/| /' conftest.$ac_ext >&5
16971 ac_cv_lib_kstat_kstat_open=no
16974 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16975 conftest$ac_exeext conftest.$ac_ext
16976 LIBS=$ac_check_lib_save_LIBS
16978 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16979 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16980 if test $ac_cv_lib_kstat_kstat_open = yes; then
16981 cat >>confdefs.h <<_ACEOF
16982 #define HAVE_LIBKSTAT 1
16985 LIBS="-lkstat $LIBS"
16989 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16991 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16992 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16993 # to get the right answer into the cache.
16994 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16995 if test $ac_have_func = no; then
16996 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16997 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16998 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16999 echo $ECHO_N "(cached
) $ECHO_C" >&6
17001 ac_check_lib_save_LIBS=$LIBS
17003 cat >conftest.$ac_ext <<_ACEOF
17006 cat confdefs.h >>conftest.$ac_ext
17007 cat >>conftest.$ac_ext <<_ACEOF
17008 /* end confdefs.h. */
17010 /* Override any GCC internal prototype to avoid an error.
17011 Use char because int might match the return type of a GCC
17012 builtin and then its argument prototype would still apply. */
17020 return elf_begin ();
17025 rm -f conftest.$ac_objext conftest$ac_exeext
17026 if { (ac_try="$ac_link"
17027 case "(($ac_try" in
17028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17029 *) ac_try_echo=$ac_try;;
17031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17032 (eval "$ac_link") 2>conftest.er1
17034 grep -v '^ *+' conftest.er1 >conftest.err
17036 cat conftest.err >&5
17037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17038 (exit $ac_status); } && {
17039 test -z "$ac_c_werror_flag" ||
17040 test ! -s conftest.err
17041 } && test -s conftest$ac_exeext &&
17042 $as_test_x conftest$ac_exeext; then
17043 ac_cv_lib_elf_elf_begin=yes
17045 echo "$as_me: failed program was
:" >&5
17046 sed 's/^/| /' conftest.$ac_ext >&5
17048 ac_cv_lib_elf_elf_begin=no
17051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17052 conftest$ac_exeext conftest.$ac_ext
17053 LIBS=$ac_check_lib_save_LIBS
17055 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
17056 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17057 if test $ac_cv_lib_elf_elf_begin = yes; then
17062 if test $ac_have_func = no; then
17063 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
17064 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
17065 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17066 echo $ECHO_N "(cached
) $ECHO_C" >&6
17068 ac_check_lib_save_LIBS=$LIBS
17070 cat >conftest.$ac_ext <<_ACEOF
17073 cat confdefs.h >>conftest.$ac_ext
17074 cat >>conftest.$ac_ext <<_ACEOF
17075 /* end confdefs.h. */
17077 /* Override any GCC internal prototype to avoid an error.
17078 Use char because int might match the return type of a GCC
17079 builtin and then its argument prototype would still apply. */
17087 return kvm_open ();
17092 rm -f conftest.$ac_objext conftest$ac_exeext
17093 if { (ac_try="$ac_link"
17094 case "(($ac_try" in
17095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17096 *) ac_try_echo=$ac_try;;
17098 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17099 (eval "$ac_link") 2>conftest.er1
17101 grep -v '^ *+' conftest.er1 >conftest.err
17103 cat conftest.err >&5
17104 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17105 (exit $ac_status); } && {
17106 test -z "$ac_c_werror_flag" ||
17107 test ! -s conftest.err
17108 } && test -s conftest$ac_exeext &&
17109 $as_test_x conftest$ac_exeext; then
17110 ac_cv_lib_kvm_kvm_open=yes
17112 echo "$as_me: failed program was
:" >&5
17113 sed 's/^/| /' conftest.$ac_ext >&5
17115 ac_cv_lib_kvm_kvm_open=no
17118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17119 conftest$ac_exeext conftest.$ac_ext
17120 LIBS=$ac_check_lib_save_LIBS
17122 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
17123 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17124 if test $ac_cv_lib_kvm_kvm_open = yes; then
17128 # Check for the 4.4BSD definition of getloadavg.
17129 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
17130 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
17131 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17132 echo $ECHO_N "(cached
) $ECHO_C" >&6
17134 ac_check_lib_save_LIBS=$LIBS
17135 LIBS="-lutil $LIBS"
17136 cat >conftest.$ac_ext <<_ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17143 /* Override any GCC internal prototype to avoid an error.
17144 Use char because int might match the return type of a GCC
17145 builtin and then its argument prototype would still apply. */
17149 char getloadavg ();
17153 return getloadavg ();
17158 rm -f conftest.$ac_objext conftest$ac_exeext
17159 if { (ac_try="$ac_link"
17160 case "(($ac_try" in
17161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17162 *) ac_try_echo=$ac_try;;
17164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17165 (eval "$ac_link") 2>conftest.er1
17167 grep -v '^ *+' conftest.er1 >conftest.err
17169 cat conftest.err >&5
17170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17171 (exit $ac_status); } && {
17172 test -z "$ac_c_werror_flag" ||
17173 test ! -s conftest.err
17174 } && test -s conftest$ac_exeext &&
17175 $as_test_x conftest$ac_exeext; then
17176 ac_cv_lib_util_getloadavg=yes
17178 echo "$as_me: failed program was
:" >&5
17179 sed 's/^/| /' conftest.$ac_ext >&5
17181 ac_cv_lib_util_getloadavg=no
17184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17185 conftest$ac_exeext conftest.$ac_ext
17186 LIBS=$ac_check_lib_save_LIBS
17188 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
17189 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17190 if test $ac_cv_lib_util_getloadavg = yes; then
17191 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17196 if test $ac_have_func = no; then
17197 # There is a commonly available library for RS/6000 AIX.
17198 # Since it is not a standard part of AIX, it might be installed locally.
17199 ac_getloadavg_LIBS=$LIBS
17200 LIBS="-L/usr
/local
/lib
$LIBS"
17201 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
17202 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
17203 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17204 echo $ECHO_N "(cached
) $ECHO_C" >&6
17206 ac_check_lib_save_LIBS=$LIBS
17207 LIBS="-lgetloadavg $LIBS"
17208 cat >conftest.$ac_ext <<_ACEOF
17211 cat confdefs.h >>conftest.$ac_ext
17212 cat >>conftest.$ac_ext <<_ACEOF
17213 /* end confdefs.h. */
17215 /* Override any GCC internal prototype to avoid an error.
17216 Use char because int might match the return type of a GCC
17217 builtin and then its argument prototype would still apply. */
17221 char getloadavg ();
17225 return getloadavg ();
17230 rm -f conftest.$ac_objext conftest$ac_exeext
17231 if { (ac_try="$ac_link"
17232 case "(($ac_try" in
17233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17234 *) ac_try_echo=$ac_try;;
17236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17237 (eval "$ac_link") 2>conftest.er1
17239 grep -v '^ *+' conftest.er1 >conftest.err
17241 cat conftest.err >&5
17242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17243 (exit $ac_status); } && {
17244 test -z "$ac_c_werror_flag" ||
17245 test ! -s conftest.err
17246 } && test -s conftest$ac_exeext &&
17247 $as_test_x conftest$ac_exeext; then
17248 ac_cv_lib_getloadavg_getloadavg=yes
17250 echo "$as_me: failed program was
:" >&5
17251 sed 's/^/| /' conftest.$ac_ext >&5
17253 ac_cv_lib_getloadavg_getloadavg=no
17256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17257 conftest$ac_exeext conftest.$ac_ext
17258 LIBS=$ac_check_lib_save_LIBS
17260 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
17261 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17262 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17263 LIBS="-lgetloadavg $LIBS"
17265 LIBS=$ac_getloadavg_LIBS
17270 # Make sure it is really in the library, if we think we found it,
17271 # otherwise set up the replacement function.
17273 for ac_func in getloadavg
17275 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17276 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17277 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17278 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17279 echo $ECHO_N "(cached
) $ECHO_C" >&6
17281 cat >conftest.$ac_ext <<_ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17287 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17289 #define $ac_func innocuous_$ac_func
17291 /* System header to define __stub macros and hopefully few prototypes,
17292 which can conflict with char $ac_func (); below.
17293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17294 <limits.h> exists even on freestanding compilers. */
17297 # include <limits.h>
17299 # include <assert.h>
17304 /* Override any GCC internal prototype to avoid an error.
17305 Use char because int might match the return type of a GCC
17306 builtin and then its argument prototype would still apply. */
17311 /* The GNU C library defines this for functions which it implements
17312 to always fail with ENOSYS. Some functions are actually named
17313 something starting with __ and the normal name is an alias. */
17314 #if defined __stub_$ac_func || defined __stub___$ac_func
17321 return $ac_func ();
17326 rm -f conftest.$ac_objext conftest$ac_exeext
17327 if { (ac_try="$ac_link"
17328 case "(($ac_try" in
17329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17330 *) ac_try_echo=$ac_try;;
17332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17333 (eval "$ac_link") 2>conftest.er1
17335 grep -v '^ *+' conftest.er1 >conftest.err
17337 cat conftest.err >&5
17338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17339 (exit $ac_status); } && {
17340 test -z "$ac_c_werror_flag" ||
17341 test ! -s conftest.err
17342 } && test -s conftest$ac_exeext &&
17343 $as_test_x conftest$ac_exeext; then
17344 eval "$as_ac_var=yes"
17346 echo "$as_me: failed program was
:" >&5
17347 sed 's/^/| /' conftest.$ac_ext >&5
17349 eval "$as_ac_var=no
"
17352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17353 conftest$ac_exeext conftest.$ac_ext
17355 ac_res=`eval echo '${'$as_ac_var'}'`
17356 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17357 echo "${ECHO_T}$ac_res" >&6; }
17358 if test `eval echo '${'$as_ac_var'}'` = yes; then
17359 cat >>confdefs.h <<_ACEOF
17360 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17364 case " $LIBOBJS " in
17365 *" getloadavg.
$ac_objext "* ) ;;
17366 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
17371 cat >>confdefs.h <<\_ACEOF
17372 #define C_GETLOADAVG 1
17375 # Figure out what our getloadavg.c needs.
17377 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17378 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17379 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17380 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17381 echo $ECHO_N "(cached
) $ECHO_C" >&6
17383 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17384 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17386 # Is the header compilable?
17387 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
17388 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
17389 cat >conftest.$ac_ext <<_ACEOF
17392 cat confdefs.h >>conftest.$ac_ext
17393 cat >>conftest.$ac_ext <<_ACEOF
17394 /* end confdefs.h. */
17395 $ac_includes_default
17396 #include <sys/dg_sys_info.h>
17398 rm -f conftest.$ac_objext
17399 if { (ac_try="$ac_compile"
17400 case "(($ac_try" in
17401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402 *) ac_try_echo=$ac_try;;
17404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17405 (eval "$ac_compile") 2>conftest.er1
17407 grep -v '^ *+' conftest.er1 >conftest.err
17409 cat conftest.err >&5
17410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17411 (exit $ac_status); } && {
17412 test -z "$ac_c_werror_flag" ||
17413 test ! -s conftest.err
17414 } && test -s conftest.$ac_objext; then
17415 ac_header_compiler=yes
17417 echo "$as_me: failed program was
:" >&5
17418 sed 's/^/| /' conftest.$ac_ext >&5
17420 ac_header_compiler=no
17423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17424 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17425 echo "${ECHO_T}$ac_header_compiler" >&6; }
17427 # Is the header present?
17428 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17429 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17430 cat >conftest.$ac_ext <<_ACEOF
17433 cat confdefs.h >>conftest.$ac_ext
17434 cat >>conftest.$ac_ext <<_ACEOF
17435 /* end confdefs.h. */
17436 #include <sys/dg_sys_info.h>
17438 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17439 case "(($ac_try" in
17440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17441 *) ac_try_echo=$ac_try;;
17443 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17444 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17446 grep -v '^ *+' conftest.er1 >conftest.err
17448 cat conftest.err >&5
17449 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17450 (exit $ac_status); } >/dev/null && {
17451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17452 test ! -s conftest.err
17454 ac_header_preproc=yes
17456 echo "$as_me: failed program was
:" >&5
17457 sed 's/^/| /' conftest.$ac_ext >&5
17459 ac_header_preproc=no
17462 rm -f conftest.err conftest.$ac_ext
17463 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17464 echo "${ECHO_T}$ac_header_preproc" >&6; }
17466 # So? What about this header?
17467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17469 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17470 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17471 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17472 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17473 ac_header_preproc=yes
17476 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17477 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17478 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17479 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17480 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17481 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17482 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17483 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17484 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17485 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17486 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17487 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17491 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17492 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17493 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17494 echo $ECHO_N "(cached
) $ECHO_C" >&6
17496 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17498 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17499 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17502 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17505 cat >>confdefs.h <<\_ACEOF
17510 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17511 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17512 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17513 echo $ECHO_N "(cached
) $ECHO_C" >&6
17515 ac_check_lib_save_LIBS=$LIBS
17517 cat >conftest.$ac_ext <<_ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17524 /* Override any GCC internal prototype to avoid an error.
17525 Use char because int might match the return type of a GCC
17526 builtin and then its argument prototype would still apply. */
17530 char dg_sys_info ();
17534 return dg_sys_info ();
17539 rm -f conftest.$ac_objext conftest$ac_exeext
17540 if { (ac_try="$ac_link"
17541 case "(($ac_try" in
17542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17543 *) ac_try_echo=$ac_try;;
17545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17546 (eval "$ac_link") 2>conftest.er1
17548 grep -v '^ *+' conftest.er1 >conftest.err
17550 cat conftest.err >&5
17551 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17552 (exit $ac_status); } && {
17553 test -z "$ac_c_werror_flag" ||
17554 test ! -s conftest.err
17555 } && test -s conftest$ac_exeext &&
17556 $as_test_x conftest$ac_exeext; then
17557 ac_cv_lib_dgc_dg_sys_info=yes
17559 echo "$as_me: failed program was
:" >&5
17560 sed 's/^/| /' conftest.$ac_ext >&5
17562 ac_cv_lib_dgc_dg_sys_info=no
17565 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17566 conftest$ac_exeext conftest.$ac_ext
17567 LIBS=$ac_check_lib_save_LIBS
17569 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17570 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17571 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17572 cat >>confdefs.h <<_ACEOF
17573 #define HAVE_LIBDGC 1
17584 if test "${ac_cv_header_locale_h+set}" = set; then
17585 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17586 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17587 if test "${ac_cv_header_locale_h+set}" = set; then
17588 echo $ECHO_N "(cached
) $ECHO_C" >&6
17590 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17591 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17593 # Is the header compilable?
17594 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17595 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17596 cat >conftest.$ac_ext <<_ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17602 $ac_includes_default
17603 #include <locale.h>
17605 rm -f conftest.$ac_objext
17606 if { (ac_try="$ac_compile"
17607 case "(($ac_try" in
17608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17609 *) ac_try_echo=$ac_try;;
17611 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17612 (eval "$ac_compile") 2>conftest.er1
17614 grep -v '^ *+' conftest.er1 >conftest.err
17616 cat conftest.err >&5
17617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17618 (exit $ac_status); } && {
17619 test -z "$ac_c_werror_flag" ||
17620 test ! -s conftest.err
17621 } && test -s conftest.$ac_objext; then
17622 ac_header_compiler=yes
17624 echo "$as_me: failed program was
:" >&5
17625 sed 's/^/| /' conftest.$ac_ext >&5
17627 ac_header_compiler=no
17630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17631 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17632 echo "${ECHO_T}$ac_header_compiler" >&6; }
17634 # Is the header present?
17635 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17636 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17637 cat >conftest.$ac_ext <<_ACEOF
17640 cat confdefs.h >>conftest.$ac_ext
17641 cat >>conftest.$ac_ext <<_ACEOF
17642 /* end confdefs.h. */
17643 #include <locale.h>
17645 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17646 case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17650 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17653 grep -v '^ *+' conftest.er1 >conftest.err
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17657 (exit $ac_status); } >/dev/null && {
17658 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17659 test ! -s conftest.err
17661 ac_header_preproc=yes
17663 echo "$as_me: failed program was
:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17666 ac_header_preproc=no
17669 rm -f conftest.err conftest.$ac_ext
17670 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17671 echo "${ECHO_T}$ac_header_preproc" >&6; }
17673 # So? What about this header?
17674 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17676 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17677 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17678 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17679 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17680 ac_header_preproc=yes
17683 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17684 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17685 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17686 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17687 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17688 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17689 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17690 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17691 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17692 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17693 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17694 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17698 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17699 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17700 if test "${ac_cv_header_locale_h+set}" = set; then
17701 echo $ECHO_N "(cached
) $ECHO_C" >&6
17703 ac_cv_header_locale_h=$ac_header_preproc
17705 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17706 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17712 for ac_func in setlocale
17714 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17715 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17716 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17717 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17718 echo $ECHO_N "(cached
) $ECHO_C" >&6
17720 cat >conftest.$ac_ext <<_ACEOF
17723 cat confdefs.h >>conftest.$ac_ext
17724 cat >>conftest.$ac_ext <<_ACEOF
17725 /* end confdefs.h. */
17726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17728 #define $ac_func innocuous_$ac_func
17730 /* System header to define __stub macros and hopefully few prototypes,
17731 which can conflict with char $ac_func (); below.
17732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17733 <limits.h> exists even on freestanding compilers. */
17736 # include <limits.h>
17738 # include <assert.h>
17743 /* Override any GCC internal prototype to avoid an error.
17744 Use char because int might match the return type of a GCC
17745 builtin and then its argument prototype would still apply. */
17750 /* The GNU C library defines this for functions which it implements
17751 to always fail with ENOSYS. Some functions are actually named
17752 something starting with __ and the normal name is an alias. */
17753 #if defined __stub_$ac_func || defined __stub___$ac_func
17760 return $ac_func ();
17765 rm -f conftest.$ac_objext conftest$ac_exeext
17766 if { (ac_try="$ac_link"
17767 case "(($ac_try" in
17768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17769 *) ac_try_echo=$ac_try;;
17771 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17772 (eval "$ac_link") 2>conftest.er1
17774 grep -v '^ *+' conftest.er1 >conftest.err
17776 cat conftest.err >&5
17777 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17778 (exit $ac_status); } && {
17779 test -z "$ac_c_werror_flag" ||
17780 test ! -s conftest.err
17781 } && test -s conftest$ac_exeext &&
17782 $as_test_x conftest$ac_exeext; then
17783 eval "$as_ac_var=yes"
17785 echo "$as_me: failed program was
:" >&5
17786 sed 's/^/| /' conftest.$ac_ext >&5
17788 eval "$as_ac_var=no
"
17791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17792 conftest$ac_exeext conftest.$ac_ext
17794 ac_res=`eval echo '${'$as_ac_var'}'`
17795 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17796 echo "${ECHO_T}$ac_res" >&6; }
17797 if test `eval echo '${'$as_ac_var'}'` = yes; then
17798 cat >>confdefs.h <<_ACEOF
17799 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17806 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17807 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17808 # Irix 4.0.5F has the header but not the library.
17809 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17812 cat >>confdefs.h <<\_ACEOF
17818 if test $ac_have_func = no; then
17819 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17820 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17821 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17822 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17823 echo $ECHO_N "(cached
) $ECHO_C" >&6
17825 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17826 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17828 # Is the header compilable?
17829 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17830 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17831 cat >conftest.$ac_ext <<_ACEOF
17834 cat confdefs.h >>conftest.$ac_ext
17835 cat >>conftest.$ac_ext <<_ACEOF
17836 /* end confdefs.h. */
17837 $ac_includes_default
17838 #include <inq_stats/cpustats.h>
17840 rm -f conftest.$ac_objext
17841 if { (ac_try="$ac_compile"
17842 case "(($ac_try" in
17843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17844 *) ac_try_echo=$ac_try;;
17846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17847 (eval "$ac_compile") 2>conftest.er1
17849 grep -v '^ *+' conftest.er1 >conftest.err
17851 cat conftest.err >&5
17852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17853 (exit $ac_status); } && {
17854 test -z "$ac_c_werror_flag" ||
17855 test ! -s conftest.err
17856 } && test -s conftest.$ac_objext; then
17857 ac_header_compiler=yes
17859 echo "$as_me: failed program was
:" >&5
17860 sed 's/^/| /' conftest.$ac_ext >&5
17862 ac_header_compiler=no
17865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17866 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17867 echo "${ECHO_T}$ac_header_compiler" >&6; }
17869 # Is the header present?
17870 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17871 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17872 cat >conftest.$ac_ext <<_ACEOF
17875 cat confdefs.h >>conftest.$ac_ext
17876 cat >>conftest.$ac_ext <<_ACEOF
17877 /* end confdefs.h. */
17878 #include <inq_stats/cpustats.h>
17880 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17881 case "(($ac_try" in
17882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883 *) ac_try_echo=$ac_try;;
17885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17886 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17888 grep -v '^ *+' conftest.er1 >conftest.err
17890 cat conftest.err >&5
17891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17892 (exit $ac_status); } >/dev/null && {
17893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17894 test ! -s conftest.err
17896 ac_header_preproc=yes
17898 echo "$as_me: failed program was
:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17901 ac_header_preproc=no
17904 rm -f conftest.err conftest.$ac_ext
17905 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17906 echo "${ECHO_T}$ac_header_preproc" >&6; }
17908 # So? What about this header?
17909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17911 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17912 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17913 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17914 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17915 ac_header_preproc=yes
17918 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17919 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17920 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17921 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17922 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17923 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17924 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17925 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17926 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17927 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17928 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17929 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17933 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17934 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17935 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17936 echo $ECHO_N "(cached
) $ECHO_C" >&6
17938 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17940 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17941 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17944 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17947 cat >>confdefs.h <<\_ACEOF
17952 cat >>confdefs.h <<\_ACEOF
17961 if test $ac_have_func = no; then
17962 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17963 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17964 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17965 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17966 echo $ECHO_N "(cached
) $ECHO_C" >&6
17968 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17969 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17971 # Is the header compilable?
17972 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17973 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17974 cat >conftest.$ac_ext <<_ACEOF
17977 cat confdefs.h >>conftest.$ac_ext
17978 cat >>conftest.$ac_ext <<_ACEOF
17979 /* end confdefs.h. */
17980 $ac_includes_default
17981 #include <sys/cpustats.h>
17983 rm -f conftest.$ac_objext
17984 if { (ac_try="$ac_compile"
17985 case "(($ac_try" in
17986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17987 *) ac_try_echo=$ac_try;;
17989 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17990 (eval "$ac_compile") 2>conftest.er1
17992 grep -v '^ *+' conftest.er1 >conftest.err
17994 cat conftest.err >&5
17995 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17996 (exit $ac_status); } && {
17997 test -z "$ac_c_werror_flag" ||
17998 test ! -s conftest.err
17999 } && test -s conftest.$ac_objext; then
18000 ac_header_compiler=yes
18002 echo "$as_me: failed program was
:" >&5
18003 sed 's/^/| /' conftest.$ac_ext >&5
18005 ac_header_compiler=no
18008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18009 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18010 echo "${ECHO_T}$ac_header_compiler" >&6; }
18012 # Is the header present?
18013 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
18014 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
18015 cat >conftest.$ac_ext <<_ACEOF
18018 cat confdefs.h >>conftest.$ac_ext
18019 cat >>conftest.$ac_ext <<_ACEOF
18020 /* end confdefs.h. */
18021 #include <sys/cpustats.h>
18023 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18024 case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18028 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18031 grep -v '^ *+' conftest.er1 >conftest.err
18033 cat conftest.err >&5
18034 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18035 (exit $ac_status); } >/dev/null && {
18036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18037 test ! -s conftest.err
18039 ac_header_preproc=yes
18041 echo "$as_me: failed program was
:" >&5
18042 sed 's/^/| /' conftest.$ac_ext >&5
18044 ac_header_preproc=no
18047 rm -f conftest.err conftest.$ac_ext
18048 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18049 echo "${ECHO_T}$ac_header_preproc" >&6; }
18051 # So? What about this header?
18052 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18054 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
18055 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18056 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
18057 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
18058 ac_header_preproc=yes
18061 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
18062 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
18063 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
18064 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
18065 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
18066 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
18067 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
18068 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
18069 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
18070 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
18071 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
18072 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
18076 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
18077 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
18078 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18079 echo $ECHO_N "(cached
) $ECHO_C" >&6
18081 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18083 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
18084 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18087 if test $ac_cv_header_sys_cpustats_h = yes; then
18088 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18097 if test $ac_have_func = no; then
18099 for ac_header in mach/mach.h
18101 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18102 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18103 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18104 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18105 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18106 echo $ECHO_N "(cached
) $ECHO_C" >&6
18108 ac_res=`eval echo '${'$as_ac_Header'}'`
18109 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18110 echo "${ECHO_T}$ac_res" >&6; }
18112 # Is the header compilable?
18113 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18114 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18115 cat >conftest.$ac_ext <<_ACEOF
18118 cat confdefs.h >>conftest.$ac_ext
18119 cat >>conftest.$ac_ext <<_ACEOF
18120 /* end confdefs.h. */
18121 $ac_includes_default
18122 #include <$ac_header>
18124 rm -f conftest.$ac_objext
18125 if { (ac_try="$ac_compile"
18126 case "(($ac_try" in
18127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18128 *) ac_try_echo=$ac_try;;
18130 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18131 (eval "$ac_compile") 2>conftest.er1
18133 grep -v '^ *+' conftest.er1 >conftest.err
18135 cat conftest.err >&5
18136 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18137 (exit $ac_status); } && {
18138 test -z "$ac_c_werror_flag" ||
18139 test ! -s conftest.err
18140 } && test -s conftest.$ac_objext; then
18141 ac_header_compiler=yes
18143 echo "$as_me: failed program was
:" >&5
18144 sed 's/^/| /' conftest.$ac_ext >&5
18146 ac_header_compiler=no
18149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18150 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18151 echo "${ECHO_T}$ac_header_compiler" >&6; }
18153 # Is the header present?
18154 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18155 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18156 cat >conftest.$ac_ext <<_ACEOF
18159 cat confdefs.h >>conftest.$ac_ext
18160 cat >>conftest.$ac_ext <<_ACEOF
18161 /* end confdefs.h. */
18162 #include <$ac_header>
18164 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18165 case "(($ac_try" in
18166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18167 *) ac_try_echo=$ac_try;;
18169 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18170 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18172 grep -v '^ *+' conftest.er1 >conftest.err
18174 cat conftest.err >&5
18175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18176 (exit $ac_status); } >/dev/null && {
18177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18178 test ! -s conftest.err
18180 ac_header_preproc=yes
18182 echo "$as_me: failed program was
:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18185 ac_header_preproc=no
18188 rm -f conftest.err conftest.$ac_ext
18189 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18190 echo "${ECHO_T}$ac_header_preproc" >&6; }
18192 # So? What about this header?
18193 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18195 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18196 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18197 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18198 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18199 ac_header_preproc=yes
18202 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18203 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18204 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18205 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18206 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18207 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18208 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18209 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18210 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18211 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18212 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18213 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18217 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18218 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18219 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18220 echo $ECHO_N "(cached
) $ECHO_C" >&6
18222 eval "$as_ac_Header=\
$ac_header_preproc"
18224 ac_res=`eval echo '${'$as_ac_Header'}'`
18225 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18226 echo "${ECHO_T}$ac_res" >&6; }
18229 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18230 cat >>confdefs.h <<_ACEOF
18231 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18241 for ac_header in nlist.h
18243 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18244 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18245 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18246 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18247 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18248 echo $ECHO_N "(cached
) $ECHO_C" >&6
18250 ac_res=`eval echo '${'$as_ac_Header'}'`
18251 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18252 echo "${ECHO_T}$ac_res" >&6; }
18254 # Is the header compilable?
18255 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18256 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18257 cat >conftest.$ac_ext <<_ACEOF
18260 cat confdefs.h >>conftest.$ac_ext
18261 cat >>conftest.$ac_ext <<_ACEOF
18262 /* end confdefs.h. */
18263 $ac_includes_default
18264 #include <$ac_header>
18266 rm -f conftest.$ac_objext
18267 if { (ac_try="$ac_compile"
18268 case "(($ac_try" in
18269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18270 *) ac_try_echo=$ac_try;;
18272 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18273 (eval "$ac_compile") 2>conftest.er1
18275 grep -v '^ *+' conftest.er1 >conftest.err
18277 cat conftest.err >&5
18278 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18279 (exit $ac_status); } && {
18280 test -z "$ac_c_werror_flag" ||
18281 test ! -s conftest.err
18282 } && test -s conftest.$ac_objext; then
18283 ac_header_compiler=yes
18285 echo "$as_me: failed program was
:" >&5
18286 sed 's/^/| /' conftest.$ac_ext >&5
18288 ac_header_compiler=no
18291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18292 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18293 echo "${ECHO_T}$ac_header_compiler" >&6; }
18295 # Is the header present?
18296 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18297 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18298 cat >conftest.$ac_ext <<_ACEOF
18301 cat confdefs.h >>conftest.$ac_ext
18302 cat >>conftest.$ac_ext <<_ACEOF
18303 /* end confdefs.h. */
18304 #include <$ac_header>
18306 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18307 case "(($ac_try" in
18308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18309 *) ac_try_echo=$ac_try;;
18311 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18312 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18314 grep -v '^ *+' conftest.er1 >conftest.err
18316 cat conftest.err >&5
18317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18318 (exit $ac_status); } >/dev/null && {
18319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18320 test ! -s conftest.err
18322 ac_header_preproc=yes
18324 echo "$as_me: failed program was
:" >&5
18325 sed 's/^/| /' conftest.$ac_ext >&5
18327 ac_header_preproc=no
18330 rm -f conftest.err conftest.$ac_ext
18331 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18332 echo "${ECHO_T}$ac_header_preproc" >&6; }
18334 # So? What about this header?
18335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18337 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18338 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18339 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18341 ac_header_preproc=yes
18344 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18345 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18346 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18347 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18348 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18349 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18350 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18351 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18352 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18354 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18355 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18359 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18360 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18361 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18362 echo $ECHO_N "(cached
) $ECHO_C" >&6
18364 eval "$as_ac_Header=\
$ac_header_preproc"
18366 ac_res=`eval echo '${'$as_ac_Header'}'`
18367 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18368 echo "${ECHO_T}$ac_res" >&6; }
18371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18372 cat >>confdefs.h <<_ACEOF
18373 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18375 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
18376 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
18377 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18378 echo $ECHO_N "(cached
) $ECHO_C" >&6
18380 cat >conftest.$ac_ext <<_ACEOF
18383 cat confdefs.h >>conftest.$ac_ext
18384 cat >>conftest.$ac_ext <<_ACEOF
18385 /* end confdefs.h. */
18391 static struct nlist ac_aggr;
18392 if (ac_aggr.n_un.n_name)
18398 rm -f conftest.$ac_objext
18399 if { (ac_try="$ac_compile"
18400 case "(($ac_try" in
18401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18402 *) ac_try_echo=$ac_try;;
18404 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18405 (eval "$ac_compile") 2>conftest.er1
18407 grep -v '^ *+' conftest.er1 >conftest.err
18409 cat conftest.err >&5
18410 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18411 (exit $ac_status); } && {
18412 test -z "$ac_c_werror_flag" ||
18413 test ! -s conftest.err
18414 } && test -s conftest.$ac_objext; then
18415 ac_cv_member_struct_nlist_n_un_n_name=yes
18417 echo "$as_me: failed program was
:" >&5
18418 sed 's/^/| /' conftest.$ac_ext >&5
18420 cat >conftest.$ac_ext <<_ACEOF
18423 cat confdefs.h >>conftest.$ac_ext
18424 cat >>conftest.$ac_ext <<_ACEOF
18425 /* end confdefs.h. */
18431 static struct nlist ac_aggr;
18432 if (sizeof ac_aggr.n_un.n_name)
18438 rm -f conftest.$ac_objext
18439 if { (ac_try="$ac_compile"
18440 case "(($ac_try" in
18441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18442 *) ac_try_echo=$ac_try;;
18444 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18445 (eval "$ac_compile") 2>conftest.er1
18447 grep -v '^ *+' conftest.er1 >conftest.err
18449 cat conftest.err >&5
18450 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18451 (exit $ac_status); } && {
18452 test -z "$ac_c_werror_flag" ||
18453 test ! -s conftest.err
18454 } && test -s conftest.$ac_objext; then
18455 ac_cv_member_struct_nlist_n_un_n_name=yes
18457 echo "$as_me: failed program was
:" >&5
18458 sed 's/^/| /' conftest.$ac_ext >&5
18460 ac_cv_member_struct_nlist_n_un_n_name=no
18463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18468 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18469 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18470 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18472 cat >>confdefs.h <<_ACEOF
18473 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18477 cat >>confdefs.h <<\_ACEOF
18478 #define NLIST_NAME_UNION 1
18492 # Some definitions of getloadavg require that the program be installed setgid.
18493 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18494 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18495 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18496 echo $ECHO_N "(cached
) $ECHO_C" >&6
18498 cat >conftest.$ac_ext <<_ACEOF
18501 cat confdefs.h >>conftest.$ac_ext
18502 cat >>conftest.$ac_ext <<_ACEOF
18503 /* end confdefs.h. */
18504 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18505 #ifdef LDAV_PRIVILEGED
18506 Yowza Am I SETGID yet
18509 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18510 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18511 ac_cv_func_getloadavg_setgid=yes
18513 ac_cv_func_getloadavg_setgid=no
18518 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18519 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18520 if test $ac_cv_func_getloadavg_setgid = yes; then
18523 cat >>confdefs.h <<\_ACEOF
18524 #define GETLOADAVG_PRIVILEGED 1
18531 if test $ac_cv_func_getloadavg_setgid = yes; then
18532 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18533 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18534 if test "${ac_cv_group_kmem+set}" = set; then
18535 echo $ECHO_N "(cached
) $ECHO_C" >&6
18537 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18538 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18539 # If we got an error (system does not support symlinks), try without -L.
18540 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18541 ac_cv_group_kmem=`echo $ac_ls_output \
18542 | sed -ne 's/[ ][ ]*/ /g;
18543 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18547 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18548 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18549 KMEM_GROUP=$ac_cv_group_kmem
18551 if test "x
$ac_save_LIBS" = x; then
18552 GETLOADAVG_LIBS=$LIBS
18554 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18560 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18561 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18562 if test "${ac_cv_sys_largefile_source+set}" = set; then
18563 echo $ECHO_N "(cached
) $ECHO_C" >&6
18566 cat >conftest.$ac_ext <<_ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h. */
18576 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18581 rm -f conftest.$ac_objext conftest$ac_exeext
18582 if { (ac_try="$ac_link"
18583 case "(($ac_try" in
18584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18585 *) ac_try_echo=$ac_try;;
18587 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18588 (eval "$ac_link") 2>conftest.er1
18590 grep -v '^ *+' conftest.er1 >conftest.err
18592 cat conftest.err >&5
18593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18594 (exit $ac_status); } && {
18595 test -z "$ac_c_werror_flag" ||
18596 test ! -s conftest.err
18597 } && test -s conftest$ac_exeext &&
18598 $as_test_x conftest$ac_exeext; then
18599 ac_cv_sys_largefile_source=no; break
18601 echo "$as_me: failed program was
:" >&5
18602 sed 's/^/| /' conftest.$ac_ext >&5
18607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18608 conftest$ac_exeext conftest.$ac_ext
18609 cat >conftest.$ac_ext <<_ACEOF
18612 cat confdefs.h >>conftest.$ac_ext
18613 cat >>conftest.$ac_ext <<_ACEOF
18614 /* end confdefs.h. */
18615 #define _LARGEFILE_SOURCE 1
18620 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18625 rm -f conftest.$ac_objext conftest$ac_exeext
18626 if { (ac_try="$ac_link"
18627 case "(($ac_try" in
18628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18629 *) ac_try_echo=$ac_try;;
18631 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18632 (eval "$ac_link") 2>conftest.er1
18634 grep -v '^ *+' conftest.er1 >conftest.err
18636 cat conftest.err >&5
18637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18638 (exit $ac_status); } && {
18639 test -z "$ac_c_werror_flag" ||
18640 test ! -s conftest.err
18641 } && test -s conftest$ac_exeext &&
18642 $as_test_x conftest$ac_exeext; then
18643 ac_cv_sys_largefile_source=1; break
18645 echo "$as_me: failed program was
:" >&5
18646 sed 's/^/| /' conftest.$ac_ext >&5
18651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18652 conftest$ac_exeext conftest.$ac_ext
18653 ac_cv_sys_largefile_source=unknown
18657 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18658 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18659 case $ac_cv_sys_largefile_source in #(
18662 cat >>confdefs.h <<_ACEOF
18663 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18669 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18670 # in glibc 2.1.3, but that breaks too many other things.
18671 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18672 if test $ac_cv_sys_largefile_source != unknown; then
18674 cat >>confdefs.h <<\_ACEOF
18675 #define HAVE_FSEEKO 1
18681 # Configure getopt.
18682 # getopt.m4 serial 10
18684 # The getopt module assume you want GNU getopt, with getopt_long etc,
18685 # rather than vanilla POSIX getopt. This means your your code should
18686 # always include <getopt.h> for the getopt prototypes.
18698 # Prerequisites of lib/getopt*.
18705 for ac_header in getopt.h
18707 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18708 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18709 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18710 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18711 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18712 echo $ECHO_N "(cached
) $ECHO_C" >&6
18714 ac_res=`eval echo '${'$as_ac_Header'}'`
18715 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18716 echo "${ECHO_T}$ac_res" >&6; }
18718 # Is the header compilable?
18719 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18720 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18721 cat >conftest.$ac_ext <<_ACEOF
18724 cat confdefs.h >>conftest.$ac_ext
18725 cat >>conftest.$ac_ext <<_ACEOF
18726 /* end confdefs.h. */
18727 $ac_includes_default
18728 #include <$ac_header>
18730 rm -f conftest.$ac_objext
18731 if { (ac_try="$ac_compile"
18732 case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18736 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_compile") 2>conftest.er1
18739 grep -v '^ *+' conftest.er1 >conftest.err
18741 cat conftest.err >&5
18742 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18743 (exit $ac_status); } && {
18744 test -z "$ac_c_werror_flag" ||
18745 test ! -s conftest.err
18746 } && test -s conftest.$ac_objext; then
18747 ac_header_compiler=yes
18749 echo "$as_me: failed program was
:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18752 ac_header_compiler=no
18755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18756 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18757 echo "${ECHO_T}$ac_header_compiler" >&6; }
18759 # Is the header present?
18760 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18761 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18762 cat >conftest.$ac_ext <<_ACEOF
18765 cat confdefs.h >>conftest.$ac_ext
18766 cat >>conftest.$ac_ext <<_ACEOF
18767 /* end confdefs.h. */
18768 #include <$ac_header>
18770 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18771 case "(($ac_try" in
18772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18773 *) ac_try_echo=$ac_try;;
18775 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18776 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18778 grep -v '^ *+' conftest.er1 >conftest.err
18780 cat conftest.err >&5
18781 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18782 (exit $ac_status); } >/dev/null && {
18783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18784 test ! -s conftest.err
18786 ac_header_preproc=yes
18788 echo "$as_me: failed program was
:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18791 ac_header_preproc=no
18794 rm -f conftest.err conftest.$ac_ext
18795 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18796 echo "${ECHO_T}$ac_header_preproc" >&6; }
18798 # So? What about this header?
18799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18801 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18802 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18803 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18805 ac_header_preproc=yes
18808 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18809 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18810 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18811 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18812 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18813 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18814 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18815 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18816 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18818 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18819 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18823 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18824 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18825 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18826 echo $ECHO_N "(cached
) $ECHO_C" >&6
18828 eval "$as_ac_Header=\
$ac_header_preproc"
18830 ac_res=`eval echo '${'$as_ac_Header'}'`
18831 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18832 echo "${ECHO_T}$ac_res" >&6; }
18835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18836 cat >>confdefs.h <<_ACEOF
18837 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18846 if test -z "$GETOPT_H"; then
18848 for ac_func in getopt_long_only
18850 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18851 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18852 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18853 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18854 echo $ECHO_N "(cached
) $ECHO_C" >&6
18856 cat >conftest.$ac_ext <<_ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18864 #define $ac_func innocuous_$ac_func
18866 /* System header to define __stub macros and hopefully few prototypes,
18867 which can conflict with char $ac_func (); below.
18868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18869 <limits.h> exists even on freestanding compilers. */
18872 # include <limits.h>
18874 # include <assert.h>
18879 /* Override any GCC internal prototype to avoid an error.
18880 Use char because int might match the return type of a GCC
18881 builtin and then its argument prototype would still apply. */
18886 /* The GNU C library defines this for functions which it implements
18887 to always fail with ENOSYS. Some functions are actually named
18888 something starting with __ and the normal name is an alias. */
18889 #if defined __stub_$ac_func || defined __stub___$ac_func
18896 return $ac_func ();
18901 rm -f conftest.$ac_objext conftest$ac_exeext
18902 if { (ac_try="$ac_link"
18903 case "(($ac_try" in
18904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18905 *) ac_try_echo=$ac_try;;
18907 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18908 (eval "$ac_link") 2>conftest.er1
18910 grep -v '^ *+' conftest.er1 >conftest.err
18912 cat conftest.err >&5
18913 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18914 (exit $ac_status); } && {
18915 test -z "$ac_c_werror_flag" ||
18916 test ! -s conftest.err
18917 } && test -s conftest$ac_exeext &&
18918 $as_test_x conftest$ac_exeext; then
18919 eval "$as_ac_var=yes"
18921 echo "$as_me: failed program was
:" >&5
18922 sed 's/^/| /' conftest.$ac_ext >&5
18924 eval "$as_ac_var=no
"
18927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18928 conftest$ac_exeext conftest.$ac_ext
18930 ac_res=`eval echo '${'$as_ac_var'}'`
18931 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18932 echo "${ECHO_T}$ac_res" >&6; }
18933 if test `eval echo '${'$as_ac_var'}'` = yes; then
18934 cat >>confdefs.h <<_ACEOF
18935 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18945 if test -z "$GETOPT_H"; then
18946 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18947 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18948 if test "${ac_cv_have_decl_optreset+set}" = set; then
18949 echo $ECHO_N "(cached
) $ECHO_C" >&6
18951 cat >conftest.$ac_ext <<_ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h. */
18957 #include <getopt.h>
18970 rm -f conftest.$ac_objext
18971 if { (ac_try="$ac_compile"
18972 case "(($ac_try" in
18973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18974 *) ac_try_echo=$ac_try;;
18976 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18977 (eval "$ac_compile") 2>conftest.er1
18979 grep -v '^ *+' conftest.er1 >conftest.err
18981 cat conftest.err >&5
18982 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18983 (exit $ac_status); } && {
18984 test -z "$ac_c_werror_flag" ||
18985 test ! -s conftest.err
18986 } && test -s conftest.$ac_objext; then
18987 ac_cv_have_decl_optreset=yes
18989 echo "$as_me: failed program was
:" >&5
18990 sed 's/^/| /' conftest.$ac_ext >&5
18992 ac_cv_have_decl_optreset=no
18995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18997 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18998 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18999 if test $ac_cv_have_decl_optreset = yes; then
19005 if test -z "$GETOPT_H"; then
19006 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
19007 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
19008 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19009 echo $ECHO_N "(cached
) $ECHO_C" >&6
19011 if test "$cross_compiling" = yes; then
19012 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
19013 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
19014 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19015 echo $ECHO_N "(cached
) $ECHO_C" >&6
19017 cat >conftest.$ac_ext <<_ACEOF
19020 cat confdefs.h >>conftest.$ac_ext
19021 cat >>conftest.$ac_ext <<_ACEOF
19022 /* end confdefs.h. */
19023 #include <getopt.h>
19028 #ifndef getopt_clip
19029 (void) getopt_clip;
19036 rm -f conftest.$ac_objext
19037 if { (ac_try="$ac_compile"
19038 case "(($ac_try" in
19039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19040 *) ac_try_echo=$ac_try;;
19042 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19043 (eval "$ac_compile") 2>conftest.er1
19045 grep -v '^ *+' conftest.er1 >conftest.err
19047 cat conftest.err >&5
19048 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19049 (exit $ac_status); } && {
19050 test -z "$ac_c_werror_flag" ||
19051 test ! -s conftest.err
19052 } && test -s conftest.$ac_objext; then
19053 ac_cv_have_decl_getopt_clip=yes
19055 echo "$as_me: failed program was
:" >&5
19056 sed 's/^/| /' conftest.$ac_ext >&5
19058 ac_cv_have_decl_getopt_clip=no
19061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19063 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
19064 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19065 if test $ac_cv_have_decl_getopt_clip = yes; then
19066 gl_cv_func_gnu_getopt=no
19068 gl_cv_func_gnu_getopt=yes
19072 cat >conftest.$ac_ext <<_ACEOF
19075 cat confdefs.h >>conftest.$ac_ext
19076 cat >>conftest.$ac_ext <<_ACEOF
19077 /* end confdefs.h. */
19078 #include <getopt.h>
19084 myargv[0] = "conftest
";
19087 return getopt (2, myargv, "+a
") != '?';
19093 rm -f conftest$ac_exeext
19094 if { (ac_try="$ac_link"
19095 case "(($ac_try" in
19096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19097 *) ac_try_echo=$ac_try;;
19099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19100 (eval "$ac_link") 2>&5
19102 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19103 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19104 { (case "(($ac_try" in
19105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19106 *) ac_try_echo=$ac_try;;
19108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19109 (eval "$ac_try") 2>&5
19111 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19112 (exit $ac_status); }; }; then
19113 gl_cv_func_gnu_getopt=yes
19115 echo "$as_me: program exited with status
$ac_status" >&5
19116 echo "$as_me: failed program was
:" >&5
19117 sed 's/^/| /' conftest.$ac_ext >&5
19119 ( exit $ac_status )
19120 gl_cv_func_gnu_getopt=no
19122 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19127 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
19128 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19129 if test "$gl_cv_func_gnu_getopt" = "no
"; then
19136 if test -n "$GETOPT_H"; then
19141 cat >>confdefs.h <<\_ACEOF
19142 #define __GETOPT_PREFIX rpl_
19148 GETOPTOBJS='getopt.o getopt1.o'
19155 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
19156 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
19157 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19158 echo $ECHO_N "(cached
) $ECHO_C" >&6
19160 # Use it with a single arg.
19161 cat >conftest.$ac_ext <<_ACEOF
19164 cat confdefs.h >>conftest.$ac_ext
19165 cat >>conftest.$ac_ext <<_ACEOF
19166 /* end confdefs.h. */
19167 $ac_includes_default
19176 rm -f conftest.$ac_objext
19177 if { (ac_try="$ac_compile"
19178 case "(($ac_try" in
19179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19180 *) ac_try_echo=$ac_try;;
19182 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19183 (eval "$ac_compile") 2>conftest.er1
19185 grep -v '^ *+' conftest.er1 >conftest.err
19187 cat conftest.err >&5
19188 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19189 (exit $ac_status); } && {
19190 test -z "$ac_c_werror_flag" ||
19191 test ! -s conftest.err
19192 } && test -s conftest.$ac_objext; then
19193 ac_cv_func_getpgrp_void=no
19195 echo "$as_me: failed program was
:" >&5
19196 sed 's/^/| /' conftest.$ac_ext >&5
19198 ac_cv_func_getpgrp_void=yes
19201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19204 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
19205 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19206 if test $ac_cv_func_getpgrp_void = yes; then
19208 cat >>confdefs.h <<\_ACEOF
19209 #define GETPGRP_VOID 1
19216 for ac_func in strftime
19218 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19219 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19220 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19221 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19222 echo $ECHO_N "(cached
) $ECHO_C" >&6
19224 cat >conftest.$ac_ext <<_ACEOF
19227 cat confdefs.h >>conftest.$ac_ext
19228 cat >>conftest.$ac_ext <<_ACEOF
19229 /* end confdefs.h. */
19230 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19231 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19232 #define $ac_func innocuous_$ac_func
19234 /* System header to define __stub macros and hopefully few prototypes,
19235 which can conflict with char $ac_func (); below.
19236 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19237 <limits.h> exists even on freestanding compilers. */
19240 # include <limits.h>
19242 # include <assert.h>
19247 /* Override any GCC internal prototype to avoid an error.
19248 Use char because int might match the return type of a GCC
19249 builtin and then its argument prototype would still apply. */
19254 /* The GNU C library defines this for functions which it implements
19255 to always fail with ENOSYS. Some functions are actually named
19256 something starting with __ and the normal name is an alias. */
19257 #if defined __stub_$ac_func || defined __stub___$ac_func
19264 return $ac_func ();
19269 rm -f conftest.$ac_objext conftest$ac_exeext
19270 if { (ac_try="$ac_link"
19271 case "(($ac_try" in
19272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19273 *) ac_try_echo=$ac_try;;
19275 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19276 (eval "$ac_link") 2>conftest.er1
19278 grep -v '^ *+' conftest.er1 >conftest.err
19280 cat conftest.err >&5
19281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19282 (exit $ac_status); } && {
19283 test -z "$ac_c_werror_flag" ||
19284 test ! -s conftest.err
19285 } && test -s conftest$ac_exeext &&
19286 $as_test_x conftest$ac_exeext; then
19287 eval "$as_ac_var=yes"
19289 echo "$as_me: failed program was
:" >&5
19290 sed 's/^/| /' conftest.$ac_ext >&5
19292 eval "$as_ac_var=no
"
19295 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19296 conftest$ac_exeext conftest.$ac_ext
19298 ac_res=`eval echo '${'$as_ac_var'}'`
19299 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19300 echo "${ECHO_T}$ac_res" >&6; }
19301 if test `eval echo '${'$as_ac_var'}'` = yes; then
19302 cat >>confdefs.h <<_ACEOF
19303 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19307 # strftime is in -lintl on SCO UNIX.
19308 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
19309 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
19310 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19311 echo $ECHO_N "(cached
) $ECHO_C" >&6
19313 ac_check_lib_save_LIBS=$LIBS
19314 LIBS="-lintl $LIBS"
19315 cat >conftest.$ac_ext <<_ACEOF
19318 cat confdefs.h >>conftest.$ac_ext
19319 cat >>conftest.$ac_ext <<_ACEOF
19320 /* end confdefs.h. */
19322 /* Override any GCC internal prototype to avoid an error.
19323 Use char because int might match the return type of a GCC
19324 builtin and then its argument prototype would still apply. */
19332 return strftime ();
19337 rm -f conftest.$ac_objext conftest$ac_exeext
19338 if { (ac_try="$ac_link"
19339 case "(($ac_try" in
19340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341 *) ac_try_echo=$ac_try;;
19343 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19344 (eval "$ac_link") 2>conftest.er1
19346 grep -v '^ *+' conftest.er1 >conftest.err
19348 cat conftest.err >&5
19349 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19350 (exit $ac_status); } && {
19351 test -z "$ac_c_werror_flag" ||
19352 test ! -s conftest.err
19353 } && test -s conftest$ac_exeext &&
19354 $as_test_x conftest$ac_exeext; then
19355 ac_cv_lib_intl_strftime=yes
19357 echo "$as_me: failed program was
:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19360 ac_cv_lib_intl_strftime=no
19363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19364 conftest$ac_exeext conftest.$ac_ext
19365 LIBS=$ac_check_lib_save_LIBS
19367 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
19368 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19369 if test $ac_cv_lib_intl_strftime = yes; then
19370 cat >>confdefs.h <<\_ACEOF
19371 #define HAVE_STRFTIME 1
19374 LIBS="-lintl $LIBS"
19383 for ac_func in grantpt
19385 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19386 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19387 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19388 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19389 echo $ECHO_N "(cached
) $ECHO_C" >&6
19391 cat >conftest.$ac_ext <<_ACEOF
19394 cat confdefs.h >>conftest.$ac_ext
19395 cat >>conftest.$ac_ext <<_ACEOF
19396 /* end confdefs.h. */
19397 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19398 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19399 #define $ac_func innocuous_$ac_func
19401 /* System header to define __stub macros and hopefully few prototypes,
19402 which can conflict with char $ac_func (); below.
19403 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19404 <limits.h> exists even on freestanding compilers. */
19407 # include <limits.h>
19409 # include <assert.h>
19414 /* Override any GCC internal prototype to avoid an error.
19415 Use char because int might match the return type of a GCC
19416 builtin and then its argument prototype would still apply. */
19421 /* The GNU C library defines this for functions which it implements
19422 to always fail with ENOSYS. Some functions are actually named
19423 something starting with __ and the normal name is an alias. */
19424 #if defined __stub_$ac_func || defined __stub___$ac_func
19431 return $ac_func ();
19436 rm -f conftest.$ac_objext conftest$ac_exeext
19437 if { (ac_try="$ac_link"
19438 case "(($ac_try" in
19439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19440 *) ac_try_echo=$ac_try;;
19442 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19443 (eval "$ac_link") 2>conftest.er1
19445 grep -v '^ *+' conftest.er1 >conftest.err
19447 cat conftest.err >&5
19448 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19449 (exit $ac_status); } && {
19450 test -z "$ac_c_werror_flag" ||
19451 test ! -s conftest.err
19452 } && test -s conftest$ac_exeext &&
19453 $as_test_x conftest$ac_exeext; then
19454 eval "$as_ac_var=yes"
19456 echo "$as_me: failed program was
:" >&5
19457 sed 's/^/| /' conftest.$ac_ext >&5
19459 eval "$as_ac_var=no
"
19462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19463 conftest$ac_exeext conftest.$ac_ext
19465 ac_res=`eval echo '${'$as_ac_var'}'`
19466 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19467 echo "${ECHO_T}$ac_res" >&6; }
19468 if test `eval echo '${'$as_ac_var'}'` = yes; then
19469 cat >>confdefs.h <<_ACEOF
19470 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19477 # PTY-related GNU extensions.
19479 for ac_func in getpt
19481 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19482 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19483 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19484 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19485 echo $ECHO_N "(cached
) $ECHO_C" >&6
19487 cat >conftest.$ac_ext <<_ACEOF
19490 cat confdefs.h >>conftest.$ac_ext
19491 cat >>conftest.$ac_ext <<_ACEOF
19492 /* end confdefs.h. */
19493 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19494 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19495 #define $ac_func innocuous_$ac_func
19497 /* System header to define __stub macros and hopefully few prototypes,
19498 which can conflict with char $ac_func (); below.
19499 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19500 <limits.h> exists even on freestanding compilers. */
19503 # include <limits.h>
19505 # include <assert.h>
19510 /* Override any GCC internal prototype to avoid an error.
19511 Use char because int might match the return type of a GCC
19512 builtin and then its argument prototype would still apply. */
19517 /* The GNU C library defines this for functions which it implements
19518 to always fail with ENOSYS. Some functions are actually named
19519 something starting with __ and the normal name is an alias. */
19520 #if defined __stub_$ac_func || defined __stub___$ac_func
19527 return $ac_func ();
19532 rm -f conftest.$ac_objext conftest$ac_exeext
19533 if { (ac_try="$ac_link"
19534 case "(($ac_try" in
19535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19536 *) ac_try_echo=$ac_try;;
19538 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19539 (eval "$ac_link") 2>conftest.er1
19541 grep -v '^ *+' conftest.er1 >conftest.err
19543 cat conftest.err >&5
19544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19545 (exit $ac_status); } && {
19546 test -z "$ac_c_werror_flag" ||
19547 test ! -s conftest.err
19548 } && test -s conftest$ac_exeext &&
19549 $as_test_x conftest$ac_exeext; then
19550 eval "$as_ac_var=yes"
19552 echo "$as_me: failed program was
:" >&5
19553 sed 's/^/| /' conftest.$ac_ext >&5
19555 eval "$as_ac_var=no
"
19558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19559 conftest$ac_exeext conftest.$ac_ext
19561 ac_res=`eval echo '${'$as_ac_var'}'`
19562 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19563 echo "${ECHO_T}$ac_res" >&6; }
19564 if test `eval echo '${'$as_ac_var'}'` = yes; then
19565 cat >>confdefs.h <<_ACEOF
19566 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19573 # Check this now, so that we will NOT find the above functions in ncurses.
19574 # That is because we have not set up to link ncurses in lib-src.
19575 # It's better to believe a function is not available
19576 # than to expect to find it in ncurses.
19578 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19579 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19580 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19581 echo $ECHO_N "(cached
) $ECHO_C" >&6
19583 ac_check_lib_save_LIBS=$LIBS
19584 LIBS="-lncurses $LIBS"
19585 cat >conftest.$ac_ext <<_ACEOF
19588 cat confdefs.h >>conftest.$ac_ext
19589 cat >>conftest.$ac_ext <<_ACEOF
19590 /* end confdefs.h. */
19592 /* Override any GCC internal prototype to avoid an error.
19593 Use char because int might match the return type of a GCC
19594 builtin and then its argument prototype would still apply. */
19607 rm -f conftest.$ac_objext conftest$ac_exeext
19608 if { (ac_try="$ac_link"
19609 case "(($ac_try" in
19610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19611 *) ac_try_echo=$ac_try;;
19613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19614 (eval "$ac_link") 2>conftest.er1
19616 grep -v '^ *+' conftest.er1 >conftest.err
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19620 (exit $ac_status); } && {
19621 test -z "$ac_c_werror_flag" ||
19622 test ! -s conftest.err
19623 } && test -s conftest$ac_exeext &&
19624 $as_test_x conftest$ac_exeext; then
19625 ac_cv_lib_ncurses_tparm=yes
19627 echo "$as_me: failed program was
:" >&5
19628 sed 's/^/| /' conftest.$ac_ext >&5
19630 ac_cv_lib_ncurses_tparm=no
19633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19634 conftest$ac_exeext conftest.$ac_ext
19635 LIBS=$ac_check_lib_save_LIBS
19637 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19638 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19639 if test $ac_cv_lib_ncurses_tparm = yes; then
19640 cat >>confdefs.h <<_ACEOF
19641 #define HAVE_LIBNCURSES 1
19644 LIBS="-lncurses $LIBS"
19649 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19652 cat >conftest.$ac_ext <<_ACEOF
19655 cat confdefs.h >>conftest.$ac_ext
19656 cat >>conftest.$ac_ext <<_ACEOF
19657 /* end confdefs.h. */
19658 #include <netinet/in.h>
19659 #include <arpa/nameser.h>
19660 #include <resolv.h>
19669 rm -f conftest.$ac_objext conftest$ac_exeext
19670 if { (ac_try="$ac_link"
19671 case "(($ac_try" in
19672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19673 *) ac_try_echo=$ac_try;;
19675 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19676 (eval "$ac_link") 2>conftest.er1
19678 grep -v '^ *+' conftest.er1 >conftest.err
19680 cat conftest.err >&5
19681 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19682 (exit $ac_status); } && {
19683 test -z "$ac_c_werror_flag" ||
19684 test ! -s conftest.err
19685 } && test -s conftest$ac_exeext &&
19686 $as_test_x conftest$ac_exeext; then
19689 echo "$as_me: failed program was
:" >&5
19690 sed 's/^/| /' conftest.$ac_ext >&5
19695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19696 conftest$ac_exeext conftest.$ac_ext
19697 if test "$have_res_init" = no; then
19699 LIBS="$LIBS -lresolv"
19700 { echo "$as_me:$LINENO: checking
for res_init with
-lresolv" >&5
19701 echo $ECHO_N "checking
for res_init with
-lresolv...
$ECHO_C" >&6; }
19702 cat >conftest.$ac_ext <<_ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19708 #include <netinet/in.h>
19709 #include <arpa/nameser.h>
19710 #include <resolv.h>
19719 rm -f conftest.$ac_objext conftest$ac_exeext
19720 if { (ac_try="$ac_link"
19721 case "(($ac_try" in
19722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19723 *) ac_try_echo=$ac_try;;
19725 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19726 (eval "$ac_link") 2>conftest.er1
19728 grep -v '^ *+' conftest.er1 >conftest.err
19730 cat conftest.err >&5
19731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19732 (exit $ac_status); } && {
19733 test -z "$ac_c_werror_flag" ||
19734 test ! -s conftest.err
19735 } && test -s conftest$ac_exeext &&
19736 $as_test_x conftest$ac_exeext; then
19739 echo "$as_me: failed program was
:" >&5
19740 sed 's/^/| /' conftest.$ac_ext >&5
19745 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19746 conftest$ac_exeext conftest.$ac_ext
19747 { echo "$as_me:$LINENO: result
: $have_res_init" >&5
19748 echo "${ECHO_T}$have_res_init" >&6; }
19749 if test "$have_res_init" = yes ; then
19755 if test "$have_res_init" = yes; then
19757 cat >>confdefs.h <<\_ACEOF
19758 #define HAVE_RES_INIT 1
19763 # Do we need the Hesiod library to provide the support routines?
19764 if test "$with_hesiod" = yes ; then
19765 # Don't set $LIBS here -- see comments above.
19766 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19767 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19768 if test "${ac_cv_func_res_send+set}" = set; then
19769 echo $ECHO_N "(cached
) $ECHO_C" >&6
19771 cat >conftest.$ac_ext <<_ACEOF
19774 cat confdefs.h >>conftest.$ac_ext
19775 cat >>conftest.$ac_ext <<_ACEOF
19776 /* end confdefs.h. */
19777 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19778 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19779 #define res_send innocuous_res_send
19781 /* System header to define __stub macros and hopefully few prototypes,
19782 which can conflict with char res_send (); below.
19783 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19784 <limits.h> exists even on freestanding compilers. */
19787 # include <limits.h>
19789 # include <assert.h>
19794 /* Override any GCC internal prototype to avoid an error.
19795 Use char because int might match the return type of a GCC
19796 builtin and then its argument prototype would still apply. */
19801 /* The GNU C library defines this for functions which it implements
19802 to always fail with ENOSYS. Some functions are actually named
19803 something starting with __ and the normal name is an alias. */
19804 #if defined __stub_res_send || defined __stub___res_send
19811 return res_send ();
19816 rm -f conftest.$ac_objext conftest$ac_exeext
19817 if { (ac_try="$ac_link"
19818 case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_link") 2>conftest.er1
19825 grep -v '^ *+' conftest.er1 >conftest.err
19827 cat conftest.err >&5
19828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19829 (exit $ac_status); } && {
19830 test -z "$ac_c_werror_flag" ||
19831 test ! -s conftest.err
19832 } && test -s conftest$ac_exeext &&
19833 $as_test_x conftest$ac_exeext; then
19834 ac_cv_func_res_send=yes
19836 echo "$as_me: failed program was
:" >&5
19837 sed 's/^/| /' conftest.$ac_ext >&5
19839 ac_cv_func_res_send=no
19842 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19843 conftest$ac_exeext conftest.$ac_ext
19845 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19846 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19847 if test $ac_cv_func_res_send = yes; then
19850 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19851 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19852 if test "${ac_cv_func___res_send+set}" = set; then
19853 echo $ECHO_N "(cached
) $ECHO_C" >&6
19855 cat >conftest.$ac_ext <<_ACEOF
19858 cat confdefs.h >>conftest.$ac_ext
19859 cat >>conftest.$ac_ext <<_ACEOF
19860 /* end confdefs.h. */
19861 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19863 #define __res_send innocuous___res_send
19865 /* System header to define __stub macros and hopefully few prototypes,
19866 which can conflict with char __res_send (); below.
19867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19868 <limits.h> exists even on freestanding compilers. */
19871 # include <limits.h>
19873 # include <assert.h>
19878 /* Override any GCC internal prototype to avoid an error.
19879 Use char because int might match the return type of a GCC
19880 builtin and then its argument prototype would still apply. */
19884 char __res_send ();
19885 /* The GNU C library defines this for functions which it implements
19886 to always fail with ENOSYS. Some functions are actually named
19887 something starting with __ and the normal name is an alias. */
19888 #if defined __stub___res_send || defined __stub_____res_send
19895 return __res_send ();
19900 rm -f conftest.$ac_objext conftest$ac_exeext
19901 if { (ac_try="$ac_link"
19902 case "(($ac_try" in
19903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19904 *) ac_try_echo=$ac_try;;
19906 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19907 (eval "$ac_link") 2>conftest.er1
19909 grep -v '^ *+' conftest.er1 >conftest.err
19911 cat conftest.err >&5
19912 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19913 (exit $ac_status); } && {
19914 test -z "$ac_c_werror_flag" ||
19915 test ! -s conftest.err
19916 } && test -s conftest$ac_exeext &&
19917 $as_test_x conftest$ac_exeext; then
19918 ac_cv_func___res_send=yes
19920 echo "$as_me: failed program was
:" >&5
19921 sed 's/^/| /' conftest.$ac_ext >&5
19923 ac_cv_func___res_send=no
19926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19927 conftest$ac_exeext conftest.$ac_ext
19929 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19930 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19931 if test $ac_cv_func___res_send = yes; then
19934 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19935 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19936 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19937 echo $ECHO_N "(cached
) $ECHO_C" >&6
19939 ac_check_lib_save_LIBS=$LIBS
19940 LIBS="-lresolv $LIBS"
19941 cat >conftest.$ac_ext <<_ACEOF
19944 cat confdefs.h >>conftest.$ac_ext
19945 cat >>conftest.$ac_ext <<_ACEOF
19946 /* end confdefs.h. */
19948 /* Override any GCC internal prototype to avoid an error.
19949 Use char because int might match the return type of a GCC
19950 builtin and then its argument prototype would still apply. */
19958 return res_send ();
19963 rm -f conftest.$ac_objext conftest$ac_exeext
19964 if { (ac_try="$ac_link"
19965 case "(($ac_try" in
19966 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19967 *) ac_try_echo=$ac_try;;
19969 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19970 (eval "$ac_link") 2>conftest.er1
19972 grep -v '^ *+' conftest.er1 >conftest.err
19974 cat conftest.err >&5
19975 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19976 (exit $ac_status); } && {
19977 test -z "$ac_c_werror_flag" ||
19978 test ! -s conftest.err
19979 } && test -s conftest$ac_exeext &&
19980 $as_test_x conftest$ac_exeext; then
19981 ac_cv_lib_resolv_res_send=yes
19983 echo "$as_me: failed program was
:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19986 ac_cv_lib_resolv_res_send=no
19989 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19990 conftest$ac_exeext conftest.$ac_ext
19991 LIBS=$ac_check_lib_save_LIBS
19993 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19994 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19995 if test $ac_cv_lib_resolv_res_send = yes; then
19998 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19999 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
20000 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20001 echo $ECHO_N "(cached
) $ECHO_C" >&6
20003 ac_check_lib_save_LIBS=$LIBS
20004 LIBS="-lresolv $LIBS"
20005 cat >conftest.$ac_ext <<_ACEOF
20008 cat confdefs.h >>conftest.$ac_ext
20009 cat >>conftest.$ac_ext <<_ACEOF
20010 /* end confdefs.h. */
20012 /* Override any GCC internal prototype to avoid an error.
20013 Use char because int might match the return type of a GCC
20014 builtin and then its argument prototype would still apply. */
20018 char __res_send ();
20022 return __res_send ();
20027 rm -f conftest.$ac_objext conftest$ac_exeext
20028 if { (ac_try="$ac_link"
20029 case "(($ac_try" in
20030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20031 *) ac_try_echo=$ac_try;;
20033 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20034 (eval "$ac_link") 2>conftest.er1
20036 grep -v '^ *+' conftest.er1 >conftest.err
20038 cat conftest.err >&5
20039 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20040 (exit $ac_status); } && {
20041 test -z "$ac_c_werror_flag" ||
20042 test ! -s conftest.err
20043 } && test -s conftest$ac_exeext &&
20044 $as_test_x conftest$ac_exeext; then
20045 ac_cv_lib_resolv___res_send=yes
20047 echo "$as_me: failed program was
:" >&5
20048 sed 's/^/| /' conftest.$ac_ext >&5
20050 ac_cv_lib_resolv___res_send=no
20053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20054 conftest$ac_exeext conftest.$ac_ext
20055 LIBS=$ac_check_lib_save_LIBS
20057 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
20058 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20059 if test $ac_cv_lib_resolv___res_send = yes; then
20069 if test "$resolv" = yes ; then
20074 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
20075 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
20076 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20077 echo $ECHO_N "(cached
) $ECHO_C" >&6
20079 cat >conftest.$ac_ext <<_ACEOF
20082 cat confdefs.h >>conftest.$ac_ext
20083 cat >>conftest.$ac_ext <<_ACEOF
20084 /* end confdefs.h. */
20085 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20087 #define hes_getmailhost innocuous_hes_getmailhost
20089 /* System header to define __stub macros and hopefully few prototypes,
20090 which can conflict with char hes_getmailhost (); below.
20091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20092 <limits.h> exists even on freestanding compilers. */
20095 # include <limits.h>
20097 # include <assert.h>
20100 #undef hes_getmailhost
20102 /* Override any GCC internal prototype to avoid an error.
20103 Use char because int might match the return type of a GCC
20104 builtin and then its argument prototype would still apply. */
20108 char hes_getmailhost ();
20109 /* The GNU C library defines this for functions which it implements
20110 to always fail with ENOSYS. Some functions are actually named
20111 something starting with __ and the normal name is an alias. */
20112 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20119 return hes_getmailhost ();
20124 rm -f conftest.$ac_objext conftest$ac_exeext
20125 if { (ac_try="$ac_link"
20126 case "(($ac_try" in
20127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20128 *) ac_try_echo=$ac_try;;
20130 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20131 (eval "$ac_link") 2>conftest.er1
20133 grep -v '^ *+' conftest.er1 >conftest.err
20135 cat conftest.err >&5
20136 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20137 (exit $ac_status); } && {
20138 test -z "$ac_c_werror_flag" ||
20139 test ! -s conftest.err
20140 } && test -s conftest$ac_exeext &&
20141 $as_test_x conftest$ac_exeext; then
20142 ac_cv_func_hes_getmailhost=yes
20144 echo "$as_me: failed program was
:" >&5
20145 sed 's/^/| /' conftest.$ac_ext >&5
20147 ac_cv_func_hes_getmailhost=no
20150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20151 conftest$ac_exeext conftest.$ac_ext
20153 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
20154 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20155 if test $ac_cv_func_hes_getmailhost = yes; then
20158 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
20159 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
20160 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20161 echo $ECHO_N "(cached
) $ECHO_C" >&6
20163 ac_check_lib_save_LIBS=$LIBS
20164 LIBS="-lhesiod $RESOLVLIB $LIBS"
20165 cat >conftest.$ac_ext <<_ACEOF
20168 cat confdefs.h >>conftest.$ac_ext
20169 cat >>conftest.$ac_ext <<_ACEOF
20170 /* end confdefs.h. */
20172 /* Override any GCC internal prototype to avoid an error.
20173 Use char because int might match the return type of a GCC
20174 builtin and then its argument prototype would still apply. */
20178 char hes_getmailhost ();
20182 return hes_getmailhost ();
20187 rm -f conftest.$ac_objext conftest$ac_exeext
20188 if { (ac_try="$ac_link"
20189 case "(($ac_try" in
20190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20191 *) ac_try_echo=$ac_try;;
20193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20194 (eval "$ac_link") 2>conftest.er1
20196 grep -v '^ *+' conftest.er1 >conftest.err
20198 cat conftest.err >&5
20199 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20200 (exit $ac_status); } && {
20201 test -z "$ac_c_werror_flag" ||
20202 test ! -s conftest.err
20203 } && test -s conftest$ac_exeext &&
20204 $as_test_x conftest$ac_exeext; then
20205 ac_cv_lib_hesiod_hes_getmailhost=yes
20207 echo "$as_me: failed program was
:" >&5
20208 sed 's/^/| /' conftest.$ac_ext >&5
20210 ac_cv_lib_hesiod_hes_getmailhost=no
20213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20214 conftest$ac_exeext conftest.$ac_ext
20215 LIBS=$ac_check_lib_save_LIBS
20217 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20218 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20219 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20221 cat >>confdefs.h <<\_ACEOF
20222 #define HAVE_LIBHESIOD 1
20233 # Do we need libresolv (due to res_init or Hesiod)?
20234 if test "$resolv" = yes ; then
20236 cat >>confdefs.h <<\_ACEOF
20237 #define HAVE_LIBRESOLV 1
20242 # These tell us which Kerberos-related libraries to use.
20243 if test "${with_kerberos+set}" = set; then
20245 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
20246 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
20247 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20248 echo $ECHO_N "(cached
) $ECHO_C" >&6
20250 ac_check_lib_save_LIBS=$LIBS
20251 LIBS="-lcom_err $LIBS"
20252 cat >conftest.$ac_ext <<_ACEOF
20255 cat confdefs.h >>conftest.$ac_ext
20256 cat >>conftest.$ac_ext <<_ACEOF
20257 /* end confdefs.h. */
20259 /* Override any GCC internal prototype to avoid an error.
20260 Use char because int might match the return type of a GCC
20261 builtin and then its argument prototype would still apply. */
20274 rm -f conftest.$ac_objext conftest$ac_exeext
20275 if { (ac_try="$ac_link"
20276 case "(($ac_try" in
20277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20278 *) ac_try_echo=$ac_try;;
20280 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20281 (eval "$ac_link") 2>conftest.er1
20283 grep -v '^ *+' conftest.er1 >conftest.err
20285 cat conftest.err >&5
20286 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20287 (exit $ac_status); } && {
20288 test -z "$ac_c_werror_flag" ||
20289 test ! -s conftest.err
20290 } && test -s conftest$ac_exeext &&
20291 $as_test_x conftest$ac_exeext; then
20292 ac_cv_lib_com_err_com_err=yes
20294 echo "$as_me: failed program was
:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20297 ac_cv_lib_com_err_com_err=no
20300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20301 conftest$ac_exeext conftest.$ac_ext
20302 LIBS=$ac_check_lib_save_LIBS
20304 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
20305 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20306 if test $ac_cv_lib_com_err_com_err = yes; then
20307 cat >>confdefs.h <<_ACEOF
20308 #define HAVE_LIBCOM_ERR 1
20311 LIBS="-lcom_err $LIBS"
20316 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
20317 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
20318 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20319 echo $ECHO_N "(cached
) $ECHO_C" >&6
20321 ac_check_lib_save_LIBS=$LIBS
20322 LIBS="-lk5crypto $LIBS"
20323 cat >conftest.$ac_ext <<_ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20330 /* Override any GCC internal prototype to avoid an error.
20331 Use char because int might match the return type of a GCC
20332 builtin and then its argument prototype would still apply. */
20336 char mit_des_cbc_encrypt ();
20340 return mit_des_cbc_encrypt ();
20345 rm -f conftest.$ac_objext conftest$ac_exeext
20346 if { (ac_try="$ac_link"
20347 case "(($ac_try" in
20348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20349 *) ac_try_echo=$ac_try;;
20351 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20352 (eval "$ac_link") 2>conftest.er1
20354 grep -v '^ *+' conftest.er1 >conftest.err
20356 cat conftest.err >&5
20357 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20358 (exit $ac_status); } && {
20359 test -z "$ac_c_werror_flag" ||
20360 test ! -s conftest.err
20361 } && test -s conftest$ac_exeext &&
20362 $as_test_x conftest$ac_exeext; then
20363 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20365 echo "$as_me: failed program was
:" >&5
20366 sed 's/^/| /' conftest.$ac_ext >&5
20368 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20371 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20372 conftest$ac_exeext conftest.$ac_ext
20373 LIBS=$ac_check_lib_save_LIBS
20375 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20376 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20377 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20378 cat >>confdefs.h <<_ACEOF
20379 #define HAVE_LIBK5CRYPTO 1
20382 LIBS="-lk5crypto $LIBS"
20387 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
20388 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
20389 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20390 echo $ECHO_N "(cached
) $ECHO_C" >&6
20392 ac_check_lib_save_LIBS=$LIBS
20393 LIBS="-lcrypto $LIBS"
20394 cat >conftest.$ac_ext <<_ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20401 /* Override any GCC internal prototype to avoid an error.
20402 Use char because int might match the return type of a GCC
20403 builtin and then its argument prototype would still apply. */
20407 char mit_des_cbc_encrypt ();
20411 return mit_des_cbc_encrypt ();
20416 rm -f conftest.$ac_objext conftest$ac_exeext
20417 if { (ac_try="$ac_link"
20418 case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_link") 2>conftest.er1
20425 grep -v '^ *+' conftest.er1 >conftest.err
20427 cat conftest.err >&5
20428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20429 (exit $ac_status); } && {
20430 test -z "$ac_c_werror_flag" ||
20431 test ! -s conftest.err
20432 } && test -s conftest$ac_exeext &&
20433 $as_test_x conftest$ac_exeext; then
20434 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20436 echo "$as_me: failed program was
:" >&5
20437 sed 's/^/| /' conftest.$ac_ext >&5
20439 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20443 conftest$ac_exeext conftest.$ac_ext
20444 LIBS=$ac_check_lib_save_LIBS
20446 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20447 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20448 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20449 cat >>confdefs.h <<_ACEOF
20450 #define HAVE_LIBCRYPTO 1
20453 LIBS="-lcrypto $LIBS"
20458 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
20459 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
20460 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20461 echo $ECHO_N "(cached
) $ECHO_C" >&6
20463 ac_check_lib_save_LIBS=$LIBS
20464 LIBS="-lkrb5 $LIBS"
20465 cat >conftest.$ac_ext <<_ACEOF
20468 cat confdefs.h >>conftest.$ac_ext
20469 cat >>conftest.$ac_ext <<_ACEOF
20470 /* end confdefs.h. */
20472 /* Override any GCC internal prototype to avoid an error.
20473 Use char because int might match the return type of a GCC
20474 builtin and then its argument prototype would still apply. */
20478 char krb5_init_context ();
20482 return krb5_init_context ();
20487 rm -f conftest.$ac_objext conftest$ac_exeext
20488 if { (ac_try="$ac_link"
20489 case "(($ac_try" in
20490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20491 *) ac_try_echo=$ac_try;;
20493 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20494 (eval "$ac_link") 2>conftest.er1
20496 grep -v '^ *+' conftest.er1 >conftest.err
20498 cat conftest.err >&5
20499 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20500 (exit $ac_status); } && {
20501 test -z "$ac_c_werror_flag" ||
20502 test ! -s conftest.err
20503 } && test -s conftest$ac_exeext &&
20504 $as_test_x conftest$ac_exeext; then
20505 ac_cv_lib_krb5_krb5_init_context=yes
20507 echo "$as_me: failed program was
:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20510 ac_cv_lib_krb5_krb5_init_context=no
20513 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20514 conftest$ac_exeext conftest.$ac_ext
20515 LIBS=$ac_check_lib_save_LIBS
20517 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
20518 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20519 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20520 cat >>confdefs.h <<_ACEOF
20521 #define HAVE_LIBKRB5 1
20524 LIBS="-lkrb5 $LIBS"
20528 if test "${with_kerberos5+set}" != set; then
20530 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
20531 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
20532 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20533 echo $ECHO_N "(cached
) $ECHO_C" >&6
20535 ac_check_lib_save_LIBS=$LIBS
20536 LIBS="-ldes425 $LIBS"
20537 cat >conftest.$ac_ext <<_ACEOF
20540 cat confdefs.h >>conftest.$ac_ext
20541 cat >>conftest.$ac_ext <<_ACEOF
20542 /* end confdefs.h. */
20544 /* Override any GCC internal prototype to avoid an error.
20545 Use char because int might match the return type of a GCC
20546 builtin and then its argument prototype would still apply. */
20550 char des_cbc_encrypt ();
20554 return des_cbc_encrypt ();
20559 rm -f conftest.$ac_objext conftest$ac_exeext
20560 if { (ac_try="$ac_link"
20561 case "(($ac_try" in
20562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20563 *) ac_try_echo=$ac_try;;
20565 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20566 (eval "$ac_link") 2>conftest.er1
20568 grep -v '^ *+' conftest.er1 >conftest.err
20570 cat conftest.err >&5
20571 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20572 (exit $ac_status); } && {
20573 test -z "$ac_c_werror_flag" ||
20574 test ! -s conftest.err
20575 } && test -s conftest$ac_exeext &&
20576 $as_test_x conftest$ac_exeext; then
20577 ac_cv_lib_des425_des_cbc_encrypt=yes
20579 echo "$as_me: failed program was
:" >&5
20580 sed 's/^/| /' conftest.$ac_ext >&5
20582 ac_cv_lib_des425_des_cbc_encrypt=no
20585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20586 conftest$ac_exeext conftest.$ac_ext
20587 LIBS=$ac_check_lib_save_LIBS
20589 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20590 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20591 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20592 cat >>confdefs.h <<_ACEOF
20593 #define HAVE_LIBDES425 1
20596 LIBS="-ldes425 $LIBS"
20600 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20601 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20602 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20603 echo $ECHO_N "(cached
) $ECHO_C" >&6
20605 ac_check_lib_save_LIBS=$LIBS
20607 cat >conftest.$ac_ext <<_ACEOF
20610 cat confdefs.h >>conftest.$ac_ext
20611 cat >>conftest.$ac_ext <<_ACEOF
20612 /* end confdefs.h. */
20614 /* Override any GCC internal prototype to avoid an error.
20615 Use char because int might match the return type of a GCC
20616 builtin and then its argument prototype would still apply. */
20620 char des_cbc_encrypt ();
20624 return des_cbc_encrypt ();
20629 rm -f conftest.$ac_objext conftest$ac_exeext
20630 if { (ac_try="$ac_link"
20631 case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20635 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_link") 2>conftest.er1
20638 grep -v '^ *+' conftest.er1 >conftest.err
20640 cat conftest.err >&5
20641 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20642 (exit $ac_status); } && {
20643 test -z "$ac_c_werror_flag" ||
20644 test ! -s conftest.err
20645 } && test -s conftest$ac_exeext &&
20646 $as_test_x conftest$ac_exeext; then
20647 ac_cv_lib_des_des_cbc_encrypt=yes
20649 echo "$as_me: failed program was
:" >&5
20650 sed 's/^/| /' conftest.$ac_ext >&5
20652 ac_cv_lib_des_des_cbc_encrypt=no
20655 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20656 conftest$ac_exeext conftest.$ac_ext
20657 LIBS=$ac_check_lib_save_LIBS
20659 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20660 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20661 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20662 cat >>confdefs.h <<_ACEOF
20663 #define HAVE_LIBDES 1
20673 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20674 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20675 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20676 echo $ECHO_N "(cached
) $ECHO_C" >&6
20678 ac_check_lib_save_LIBS=$LIBS
20679 LIBS="-lkrb4 $LIBS"
20680 cat >conftest.$ac_ext <<_ACEOF
20683 cat confdefs.h >>conftest.$ac_ext
20684 cat >>conftest.$ac_ext <<_ACEOF
20685 /* end confdefs.h. */
20687 /* Override any GCC internal prototype to avoid an error.
20688 Use char because int might match the return type of a GCC
20689 builtin and then its argument prototype would still apply. */
20693 char krb_get_cred ();
20697 return krb_get_cred ();
20702 rm -f conftest.$ac_objext conftest$ac_exeext
20703 if { (ac_try="$ac_link"
20704 case "(($ac_try" in
20705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20706 *) ac_try_echo=$ac_try;;
20708 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20709 (eval "$ac_link") 2>conftest.er1
20711 grep -v '^ *+' conftest.er1 >conftest.err
20713 cat conftest.err >&5
20714 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20715 (exit $ac_status); } && {
20716 test -z "$ac_c_werror_flag" ||
20717 test ! -s conftest.err
20718 } && test -s conftest$ac_exeext &&
20719 $as_test_x conftest$ac_exeext; then
20720 ac_cv_lib_krb4_krb_get_cred=yes
20722 echo "$as_me: failed program was
:" >&5
20723 sed 's/^/| /' conftest.$ac_ext >&5
20725 ac_cv_lib_krb4_krb_get_cred=no
20728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20729 conftest$ac_exeext conftest.$ac_ext
20730 LIBS=$ac_check_lib_save_LIBS
20732 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20733 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20734 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20735 cat >>confdefs.h <<_ACEOF
20736 #define HAVE_LIBKRB4 1
20739 LIBS="-lkrb4 $LIBS"
20743 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20744 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20745 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20746 echo $ECHO_N "(cached
) $ECHO_C" >&6
20748 ac_check_lib_save_LIBS=$LIBS
20750 cat >conftest.$ac_ext <<_ACEOF
20753 cat confdefs.h >>conftest.$ac_ext
20754 cat >>conftest.$ac_ext <<_ACEOF
20755 /* end confdefs.h. */
20757 /* Override any GCC internal prototype to avoid an error.
20758 Use char because int might match the return type of a GCC
20759 builtin and then its argument prototype would still apply. */
20763 char krb_get_cred ();
20767 return krb_get_cred ();
20772 rm -f conftest.$ac_objext conftest$ac_exeext
20773 if { (ac_try="$ac_link"
20774 case "(($ac_try" in
20775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20776 *) ac_try_echo=$ac_try;;
20778 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20779 (eval "$ac_link") 2>conftest.er1
20781 grep -v '^ *+' conftest.er1 >conftest.err
20783 cat conftest.err >&5
20784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20785 (exit $ac_status); } && {
20786 test -z "$ac_c_werror_flag" ||
20787 test ! -s conftest.err
20788 } && test -s conftest$ac_exeext &&
20789 $as_test_x conftest$ac_exeext; then
20790 ac_cv_lib_krb_krb_get_cred=yes
20792 echo "$as_me: failed program was
:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20795 ac_cv_lib_krb_krb_get_cred=no
20798 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20799 conftest$ac_exeext conftest.$ac_ext
20800 LIBS=$ac_check_lib_save_LIBS
20802 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20803 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20804 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20805 cat >>confdefs.h <<_ACEOF
20806 #define HAVE_LIBKRB 1
20817 if test "${with_kerberos5+set}" = set; then
20819 for ac_header in krb5.h
20821 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20822 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20823 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20824 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20825 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20826 echo $ECHO_N "(cached
) $ECHO_C" >&6
20828 ac_res=`eval echo '${'$as_ac_Header'}'`
20829 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20830 echo "${ECHO_T}$ac_res" >&6; }
20832 # Is the header compilable?
20833 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20834 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20835 cat >conftest.$ac_ext <<_ACEOF
20838 cat confdefs.h >>conftest.$ac_ext
20839 cat >>conftest.$ac_ext <<_ACEOF
20840 /* end confdefs.h. */
20841 $ac_includes_default
20842 #include <$ac_header>
20844 rm -f conftest.$ac_objext
20845 if { (ac_try="$ac_compile"
20846 case "(($ac_try" in
20847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20848 *) ac_try_echo=$ac_try;;
20850 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20851 (eval "$ac_compile") 2>conftest.er1
20853 grep -v '^ *+' conftest.er1 >conftest.err
20855 cat conftest.err >&5
20856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20857 (exit $ac_status); } && {
20858 test -z "$ac_c_werror_flag" ||
20859 test ! -s conftest.err
20860 } && test -s conftest.$ac_objext; then
20861 ac_header_compiler=yes
20863 echo "$as_me: failed program was
:" >&5
20864 sed 's/^/| /' conftest.$ac_ext >&5
20866 ac_header_compiler=no
20869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20870 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20871 echo "${ECHO_T}$ac_header_compiler" >&6; }
20873 # Is the header present?
20874 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20875 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20876 cat >conftest.$ac_ext <<_ACEOF
20879 cat confdefs.h >>conftest.$ac_ext
20880 cat >>conftest.$ac_ext <<_ACEOF
20881 /* end confdefs.h. */
20882 #include <$ac_header>
20884 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20885 case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20889 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20892 grep -v '^ *+' conftest.er1 >conftest.err
20894 cat conftest.err >&5
20895 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20896 (exit $ac_status); } >/dev/null && {
20897 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20898 test ! -s conftest.err
20900 ac_header_preproc=yes
20902 echo "$as_me: failed program was
:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20905 ac_header_preproc=no
20908 rm -f conftest.err conftest.$ac_ext
20909 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20910 echo "${ECHO_T}$ac_header_preproc" >&6; }
20912 # So? What about this header?
20913 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20915 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20916 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20917 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20918 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20919 ac_header_preproc=yes
20922 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20923 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20924 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20925 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20926 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20927 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20928 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20929 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20930 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20931 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20932 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20933 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20937 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20938 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20939 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20940 echo $ECHO_N "(cached
) $ECHO_C" >&6
20942 eval "$as_ac_Header=\
$ac_header_preproc"
20944 ac_res=`eval echo '${'$as_ac_Header'}'`
20945 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20946 echo "${ECHO_T}$ac_res" >&6; }
20949 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20950 cat >>confdefs.h <<_ACEOF
20951 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20960 for ac_header in des.h
20962 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20963 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20964 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20965 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20966 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20967 echo $ECHO_N "(cached
) $ECHO_C" >&6
20969 ac_res=`eval echo '${'$as_ac_Header'}'`
20970 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20971 echo "${ECHO_T}$ac_res" >&6; }
20973 # Is the header compilable?
20974 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20975 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20976 cat >conftest.$ac_ext <<_ACEOF
20979 cat confdefs.h >>conftest.$ac_ext
20980 cat >>conftest.$ac_ext <<_ACEOF
20981 /* end confdefs.h. */
20982 $ac_includes_default
20983 #include <$ac_header>
20985 rm -f conftest.$ac_objext
20986 if { (ac_try="$ac_compile"
20987 case "(($ac_try" in
20988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20989 *) ac_try_echo=$ac_try;;
20991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20992 (eval "$ac_compile") 2>conftest.er1
20994 grep -v '^ *+' conftest.er1 >conftest.err
20996 cat conftest.err >&5
20997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20998 (exit $ac_status); } && {
20999 test -z "$ac_c_werror_flag" ||
21000 test ! -s conftest.err
21001 } && test -s conftest.$ac_objext; then
21002 ac_header_compiler=yes
21004 echo "$as_me: failed program was
:" >&5
21005 sed 's/^/| /' conftest.$ac_ext >&5
21007 ac_header_compiler=no
21010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21011 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21012 echo "${ECHO_T}$ac_header_compiler" >&6; }
21014 # Is the header present?
21015 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21016 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21017 cat >conftest.$ac_ext <<_ACEOF
21020 cat confdefs.h >>conftest.$ac_ext
21021 cat >>conftest.$ac_ext <<_ACEOF
21022 /* end confdefs.h. */
21023 #include <$ac_header>
21025 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21026 case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21030 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21031 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21033 grep -v '^ *+' conftest.er1 >conftest.err
21035 cat conftest.err >&5
21036 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21037 (exit $ac_status); } >/dev/null && {
21038 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21039 test ! -s conftest.err
21041 ac_header_preproc=yes
21043 echo "$as_me: failed program was
:" >&5
21044 sed 's/^/| /' conftest.$ac_ext >&5
21046 ac_header_preproc=no
21049 rm -f conftest.err conftest.$ac_ext
21050 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21051 echo "${ECHO_T}$ac_header_preproc" >&6; }
21053 # So? What about this header?
21054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21056 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21057 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21058 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21060 ac_header_preproc=yes
21063 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21064 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21065 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21066 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21067 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21068 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21069 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21070 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21071 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21073 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21074 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21078 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21079 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21080 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21081 echo $ECHO_N "(cached
) $ECHO_C" >&6
21083 eval "$as_ac_Header=\
$ac_header_preproc"
21085 ac_res=`eval echo '${'$as_ac_Header'}'`
21086 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21087 echo "${ECHO_T}$ac_res" >&6; }
21090 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21091 cat >>confdefs.h <<_ACEOF
21092 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21097 for ac_header in kerberosIV/des.h
21099 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21100 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21101 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21102 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21103 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21104 echo $ECHO_N "(cached
) $ECHO_C" >&6
21106 ac_res=`eval echo '${'$as_ac_Header'}'`
21107 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21108 echo "${ECHO_T}$ac_res" >&6; }
21110 # Is the header compilable?
21111 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21112 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21113 cat >conftest.$ac_ext <<_ACEOF
21116 cat confdefs.h >>conftest.$ac_ext
21117 cat >>conftest.$ac_ext <<_ACEOF
21118 /* end confdefs.h. */
21119 $ac_includes_default
21120 #include <$ac_header>
21122 rm -f conftest.$ac_objext
21123 if { (ac_try="$ac_compile"
21124 case "(($ac_try" in
21125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21126 *) ac_try_echo=$ac_try;;
21128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21129 (eval "$ac_compile") 2>conftest.er1
21131 grep -v '^ *+' conftest.er1 >conftest.err
21133 cat conftest.err >&5
21134 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21135 (exit $ac_status); } && {
21136 test -z "$ac_c_werror_flag" ||
21137 test ! -s conftest.err
21138 } && test -s conftest.$ac_objext; then
21139 ac_header_compiler=yes
21141 echo "$as_me: failed program was
:" >&5
21142 sed 's/^/| /' conftest.$ac_ext >&5
21144 ac_header_compiler=no
21147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21148 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21149 echo "${ECHO_T}$ac_header_compiler" >&6; }
21151 # Is the header present?
21152 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21153 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21154 cat >conftest.$ac_ext <<_ACEOF
21157 cat confdefs.h >>conftest.$ac_ext
21158 cat >>conftest.$ac_ext <<_ACEOF
21159 /* end confdefs.h. */
21160 #include <$ac_header>
21162 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21163 case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21170 grep -v '^ *+' conftest.er1 >conftest.err
21172 cat conftest.err >&5
21173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21174 (exit $ac_status); } >/dev/null && {
21175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21176 test ! -s conftest.err
21178 ac_header_preproc=yes
21180 echo "$as_me: failed program was
:" >&5
21181 sed 's/^/| /' conftest.$ac_ext >&5
21183 ac_header_preproc=no
21186 rm -f conftest.err conftest.$ac_ext
21187 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21188 echo "${ECHO_T}$ac_header_preproc" >&6; }
21190 # So? What about this header?
21191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21193 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21194 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21195 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21196 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21197 ac_header_preproc=yes
21200 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21201 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21202 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21203 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21204 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21205 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21206 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21207 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21208 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21209 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21210 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21211 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21215 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21216 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21217 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21218 echo $ECHO_N "(cached
) $ECHO_C" >&6
21220 eval "$as_ac_Header=\
$ac_header_preproc"
21222 ac_res=`eval echo '${'$as_ac_Header'}'`
21223 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21224 echo "${ECHO_T}$ac_res" >&6; }
21227 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21228 cat >>confdefs.h <<_ACEOF
21229 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21234 for ac_header in kerberos/des.h
21236 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21237 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21238 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21239 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21240 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21241 echo $ECHO_N "(cached
) $ECHO_C" >&6
21243 ac_res=`eval echo '${'$as_ac_Header'}'`
21244 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21245 echo "${ECHO_T}$ac_res" >&6; }
21247 # Is the header compilable?
21248 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21249 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21250 cat >conftest.$ac_ext <<_ACEOF
21253 cat confdefs.h >>conftest.$ac_ext
21254 cat >>conftest.$ac_ext <<_ACEOF
21255 /* end confdefs.h. */
21256 $ac_includes_default
21257 #include <$ac_header>
21259 rm -f conftest.$ac_objext
21260 if { (ac_try="$ac_compile"
21261 case "(($ac_try" in
21262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21263 *) ac_try_echo=$ac_try;;
21265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21266 (eval "$ac_compile") 2>conftest.er1
21268 grep -v '^ *+' conftest.er1 >conftest.err
21270 cat conftest.err >&5
21271 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21272 (exit $ac_status); } && {
21273 test -z "$ac_c_werror_flag" ||
21274 test ! -s conftest.err
21275 } && test -s conftest.$ac_objext; then
21276 ac_header_compiler=yes
21278 echo "$as_me: failed program was
:" >&5
21279 sed 's/^/| /' conftest.$ac_ext >&5
21281 ac_header_compiler=no
21284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21285 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21286 echo "${ECHO_T}$ac_header_compiler" >&6; }
21288 # Is the header present?
21289 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21290 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21291 cat >conftest.$ac_ext <<_ACEOF
21294 cat confdefs.h >>conftest.$ac_ext
21295 cat >>conftest.$ac_ext <<_ACEOF
21296 /* end confdefs.h. */
21297 #include <$ac_header>
21299 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21300 case "(($ac_try" in
21301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21302 *) ac_try_echo=$ac_try;;
21304 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21305 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21307 grep -v '^ *+' conftest.er1 >conftest.err
21309 cat conftest.err >&5
21310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21311 (exit $ac_status); } >/dev/null && {
21312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21313 test ! -s conftest.err
21315 ac_header_preproc=yes
21317 echo "$as_me: failed program was
:" >&5
21318 sed 's/^/| /' conftest.$ac_ext >&5
21320 ac_header_preproc=no
21323 rm -f conftest.err conftest.$ac_ext
21324 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21325 echo "${ECHO_T}$ac_header_preproc" >&6; }
21327 # So? What about this header?
21328 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21330 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21331 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21332 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21333 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21334 ac_header_preproc=yes
21337 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21338 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21339 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21340 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21341 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21342 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21343 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21344 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21345 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21346 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21347 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21348 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21352 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21353 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21354 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21355 echo $ECHO_N "(cached
) $ECHO_C" >&6
21357 eval "$as_ac_Header=\
$ac_header_preproc"
21359 ac_res=`eval echo '${'$as_ac_Header'}'`
21360 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21361 echo "${ECHO_T}$ac_res" >&6; }
21364 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21365 cat >>confdefs.h <<_ACEOF
21366 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21382 for ac_header in krb.h
21384 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21385 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21386 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21387 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21388 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21389 echo $ECHO_N "(cached
) $ECHO_C" >&6
21391 ac_res=`eval echo '${'$as_ac_Header'}'`
21392 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21393 echo "${ECHO_T}$ac_res" >&6; }
21395 # Is the header compilable?
21396 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21397 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21398 cat >conftest.$ac_ext <<_ACEOF
21401 cat confdefs.h >>conftest.$ac_ext
21402 cat >>conftest.$ac_ext <<_ACEOF
21403 /* end confdefs.h. */
21404 $ac_includes_default
21405 #include <$ac_header>
21407 rm -f conftest.$ac_objext
21408 if { (ac_try="$ac_compile"
21409 case "(($ac_try" in
21410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21411 *) ac_try_echo=$ac_try;;
21413 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21414 (eval "$ac_compile") 2>conftest.er1
21416 grep -v '^ *+' conftest.er1 >conftest.err
21418 cat conftest.err >&5
21419 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21420 (exit $ac_status); } && {
21421 test -z "$ac_c_werror_flag" ||
21422 test ! -s conftest.err
21423 } && test -s conftest.$ac_objext; then
21424 ac_header_compiler=yes
21426 echo "$as_me: failed program was
:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21429 ac_header_compiler=no
21432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21433 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21434 echo "${ECHO_T}$ac_header_compiler" >&6; }
21436 # Is the header present?
21437 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21438 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21439 cat >conftest.$ac_ext <<_ACEOF
21442 cat confdefs.h >>conftest.$ac_ext
21443 cat >>conftest.$ac_ext <<_ACEOF
21444 /* end confdefs.h. */
21445 #include <$ac_header>
21447 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21448 case "(($ac_try" in
21449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21450 *) ac_try_echo=$ac_try;;
21452 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21453 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21455 grep -v '^ *+' conftest.er1 >conftest.err
21457 cat conftest.err >&5
21458 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21459 (exit $ac_status); } >/dev/null && {
21460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21461 test ! -s conftest.err
21463 ac_header_preproc=yes
21465 echo "$as_me: failed program was
:" >&5
21466 sed 's/^/| /' conftest.$ac_ext >&5
21468 ac_header_preproc=no
21471 rm -f conftest.err conftest.$ac_ext
21472 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21473 echo "${ECHO_T}$ac_header_preproc" >&6; }
21475 # So? What about this header?
21476 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21478 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21479 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21480 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21481 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21482 ac_header_preproc=yes
21485 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21486 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21487 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21488 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21489 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21490 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21491 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21492 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21493 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21494 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21495 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21496 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21500 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21501 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21502 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21503 echo $ECHO_N "(cached
) $ECHO_C" >&6
21505 eval "$as_ac_Header=\
$ac_header_preproc"
21507 ac_res=`eval echo '${'$as_ac_Header'}'`
21508 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21509 echo "${ECHO_T}$ac_res" >&6; }
21512 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21513 cat >>confdefs.h <<_ACEOF
21514 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21519 for ac_header in kerberosIV/krb.h
21521 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21522 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21523 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21524 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21525 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21526 echo $ECHO_N "(cached
) $ECHO_C" >&6
21528 ac_res=`eval echo '${'$as_ac_Header'}'`
21529 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21530 echo "${ECHO_T}$ac_res" >&6; }
21532 # Is the header compilable?
21533 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21534 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21535 cat >conftest.$ac_ext <<_ACEOF
21538 cat confdefs.h >>conftest.$ac_ext
21539 cat >>conftest.$ac_ext <<_ACEOF
21540 /* end confdefs.h. */
21541 $ac_includes_default
21542 #include <$ac_header>
21544 rm -f conftest.$ac_objext
21545 if { (ac_try="$ac_compile"
21546 case "(($ac_try" in
21547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21548 *) ac_try_echo=$ac_try;;
21550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21551 (eval "$ac_compile") 2>conftest.er1
21553 grep -v '^ *+' conftest.er1 >conftest.err
21555 cat conftest.err >&5
21556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21557 (exit $ac_status); } && {
21558 test -z "$ac_c_werror_flag" ||
21559 test ! -s conftest.err
21560 } && test -s conftest.$ac_objext; then
21561 ac_header_compiler=yes
21563 echo "$as_me: failed program was
:" >&5
21564 sed 's/^/| /' conftest.$ac_ext >&5
21566 ac_header_compiler=no
21569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21570 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21571 echo "${ECHO_T}$ac_header_compiler" >&6; }
21573 # Is the header present?
21574 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21575 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21576 cat >conftest.$ac_ext <<_ACEOF
21579 cat confdefs.h >>conftest.$ac_ext
21580 cat >>conftest.$ac_ext <<_ACEOF
21581 /* end confdefs.h. */
21582 #include <$ac_header>
21584 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21585 case "(($ac_try" in
21586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21587 *) ac_try_echo=$ac_try;;
21589 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21590 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21592 grep -v '^ *+' conftest.er1 >conftest.err
21594 cat conftest.err >&5
21595 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21596 (exit $ac_status); } >/dev/null && {
21597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21598 test ! -s conftest.err
21600 ac_header_preproc=yes
21602 echo "$as_me: failed program was
:" >&5
21603 sed 's/^/| /' conftest.$ac_ext >&5
21605 ac_header_preproc=no
21608 rm -f conftest.err conftest.$ac_ext
21609 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21610 echo "${ECHO_T}$ac_header_preproc" >&6; }
21612 # So? What about this header?
21613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21615 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21616 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21617 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21619 ac_header_preproc=yes
21622 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21623 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21624 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21625 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21626 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21627 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21628 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21629 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21630 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21632 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21633 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21637 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21638 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21639 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21640 echo $ECHO_N "(cached
) $ECHO_C" >&6
21642 eval "$as_ac_Header=\
$ac_header_preproc"
21644 ac_res=`eval echo '${'$as_ac_Header'}'`
21645 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21646 echo "${ECHO_T}$ac_res" >&6; }
21649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21650 cat >>confdefs.h <<_ACEOF
21651 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21656 for ac_header in kerberos/krb.h
21658 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21659 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21660 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21661 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21662 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21663 echo $ECHO_N "(cached
) $ECHO_C" >&6
21665 ac_res=`eval echo '${'$as_ac_Header'}'`
21666 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21667 echo "${ECHO_T}$ac_res" >&6; }
21669 # Is the header compilable?
21670 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21671 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21672 cat >conftest.$ac_ext <<_ACEOF
21675 cat confdefs.h >>conftest.$ac_ext
21676 cat >>conftest.$ac_ext <<_ACEOF
21677 /* end confdefs.h. */
21678 $ac_includes_default
21679 #include <$ac_header>
21681 rm -f conftest.$ac_objext
21682 if { (ac_try="$ac_compile"
21683 case "(($ac_try" in
21684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21685 *) ac_try_echo=$ac_try;;
21687 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21688 (eval "$ac_compile") 2>conftest.er1
21690 grep -v '^ *+' conftest.er1 >conftest.err
21692 cat conftest.err >&5
21693 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21694 (exit $ac_status); } && {
21695 test -z "$ac_c_werror_flag" ||
21696 test ! -s conftest.err
21697 } && test -s conftest.$ac_objext; then
21698 ac_header_compiler=yes
21700 echo "$as_me: failed program was
:" >&5
21701 sed 's/^/| /' conftest.$ac_ext >&5
21703 ac_header_compiler=no
21706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21707 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21708 echo "${ECHO_T}$ac_header_compiler" >&6; }
21710 # Is the header present?
21711 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21712 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21713 cat >conftest.$ac_ext <<_ACEOF
21716 cat confdefs.h >>conftest.$ac_ext
21717 cat >>conftest.$ac_ext <<_ACEOF
21718 /* end confdefs.h. */
21719 #include <$ac_header>
21721 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21722 case "(($ac_try" in
21723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21724 *) ac_try_echo=$ac_try;;
21726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21727 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21729 grep -v '^ *+' conftest.er1 >conftest.err
21731 cat conftest.err >&5
21732 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21733 (exit $ac_status); } >/dev/null && {
21734 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21735 test ! -s conftest.err
21737 ac_header_preproc=yes
21739 echo "$as_me: failed program was
:" >&5
21740 sed 's/^/| /' conftest.$ac_ext >&5
21742 ac_header_preproc=no
21745 rm -f conftest.err conftest.$ac_ext
21746 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21747 echo "${ECHO_T}$ac_header_preproc" >&6; }
21749 # So? What about this header?
21750 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21752 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21753 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21754 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21755 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21756 ac_header_preproc=yes
21759 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21760 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21761 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21762 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21763 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21764 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21765 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21766 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21767 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21768 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21769 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21770 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21774 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21775 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21776 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21777 echo $ECHO_N "(cached
) $ECHO_C" >&6
21779 eval "$as_ac_Header=\
$ac_header_preproc"
21781 ac_res=`eval echo '${'$as_ac_Header'}'`
21782 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21783 echo "${ECHO_T}$ac_res" >&6; }
21786 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21787 cat >>confdefs.h <<_ACEOF
21788 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21805 for ac_header in com_err.h
21807 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21808 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21809 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21810 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21811 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21812 echo $ECHO_N "(cached
) $ECHO_C" >&6
21814 ac_res=`eval echo '${'$as_ac_Header'}'`
21815 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21816 echo "${ECHO_T}$ac_res" >&6; }
21818 # Is the header compilable?
21819 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21820 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21821 cat >conftest.$ac_ext <<_ACEOF
21824 cat confdefs.h >>conftest.$ac_ext
21825 cat >>conftest.$ac_ext <<_ACEOF
21826 /* end confdefs.h. */
21827 $ac_includes_default
21828 #include <$ac_header>
21830 rm -f conftest.$ac_objext
21831 if { (ac_try="$ac_compile"
21832 case "(($ac_try" in
21833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834 *) ac_try_echo=$ac_try;;
21836 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21837 (eval "$ac_compile") 2>conftest.er1
21839 grep -v '^ *+' conftest.er1 >conftest.err
21841 cat conftest.err >&5
21842 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21843 (exit $ac_status); } && {
21844 test -z "$ac_c_werror_flag" ||
21845 test ! -s conftest.err
21846 } && test -s conftest.$ac_objext; then
21847 ac_header_compiler=yes
21849 echo "$as_me: failed program was
:" >&5
21850 sed 's/^/| /' conftest.$ac_ext >&5
21852 ac_header_compiler=no
21855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21856 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21857 echo "${ECHO_T}$ac_header_compiler" >&6; }
21859 # Is the header present?
21860 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21861 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21862 cat >conftest.$ac_ext <<_ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h. */
21868 #include <$ac_header>
21870 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21871 case "(($ac_try" in
21872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21873 *) ac_try_echo=$ac_try;;
21875 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21876 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21878 grep -v '^ *+' conftest.er1 >conftest.err
21880 cat conftest.err >&5
21881 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21882 (exit $ac_status); } >/dev/null && {
21883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21884 test ! -s conftest.err
21886 ac_header_preproc=yes
21888 echo "$as_me: failed program was
:" >&5
21889 sed 's/^/| /' conftest.$ac_ext >&5
21891 ac_header_preproc=no
21894 rm -f conftest.err conftest.$ac_ext
21895 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21896 echo "${ECHO_T}$ac_header_preproc" >&6; }
21898 # So? What about this header?
21899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21901 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21902 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21903 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21905 ac_header_preproc=yes
21908 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21909 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21910 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21911 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21912 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21913 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21914 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21915 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21916 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21918 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21919 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21923 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21924 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21925 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21926 echo $ECHO_N "(cached
) $ECHO_C" >&6
21928 eval "$as_ac_Header=\
$ac_header_preproc"
21930 ac_res=`eval echo '${'$as_ac_Header'}'`
21931 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21932 echo "${ECHO_T}$ac_res" >&6; }
21935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21936 cat >>confdefs.h <<_ACEOF
21937 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21946 # Solaris requires -lintl if you want strerror (which calls dgettext)
21947 # to return localized messages.
21949 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21950 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21951 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21952 echo $ECHO_N "(cached
) $ECHO_C" >&6
21954 ac_check_lib_save_LIBS=$LIBS
21955 LIBS="-lintl $LIBS"
21956 cat >conftest.$ac_ext <<_ACEOF
21959 cat confdefs.h >>conftest.$ac_ext
21960 cat >>conftest.$ac_ext <<_ACEOF
21961 /* end confdefs.h. */
21963 /* Override any GCC internal prototype to avoid an error.
21964 Use char because int might match the return type of a GCC
21965 builtin and then its argument prototype would still apply. */
21973 return dgettext ();
21978 rm -f conftest.$ac_objext conftest$ac_exeext
21979 if { (ac_try="$ac_link"
21980 case "(($ac_try" in
21981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21982 *) ac_try_echo=$ac_try;;
21984 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21985 (eval "$ac_link") 2>conftest.er1
21987 grep -v '^ *+' conftest.er1 >conftest.err
21989 cat conftest.err >&5
21990 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21991 (exit $ac_status); } && {
21992 test -z "$ac_c_werror_flag" ||
21993 test ! -s conftest.err
21994 } && test -s conftest$ac_exeext &&
21995 $as_test_x conftest$ac_exeext; then
21996 ac_cv_lib_intl_dgettext=yes
21998 echo "$as_me: failed program was
:" >&5
21999 sed 's/^/| /' conftest.$ac_ext >&5
22001 ac_cv_lib_intl_dgettext=no
22004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22005 conftest$ac_exeext conftest.$ac_ext
22006 LIBS=$ac_check_lib_save_LIBS
22008 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
22009 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22010 if test $ac_cv_lib_intl_dgettext = yes; then
22011 cat >>confdefs.h <<_ACEOF
22012 #define HAVE_LIBINTL 1
22015 LIBS="-lintl $LIBS"
22020 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
22021 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
22022 if test "${emacs_cv_localtime_cache+set}" = set; then
22023 echo $ECHO_N "(cached
) $ECHO_C" >&6
22025 if test x$ac_cv_func_tzset = xyes; then
22026 if test "$cross_compiling" = yes; then
22027 # If we have tzset, assume the worst when cross-compiling.
22028 emacs_cv_localtime_cache=yes
22030 cat >conftest.$ac_ext <<_ACEOF
22033 cat confdefs.h >>conftest.$ac_ext
22034 cat >>conftest.$ac_ext <<_ACEOF
22035 /* end confdefs.h. */
22037 extern char **environ;
22041 for (to = from = environ; (*to = *from); from++)
22042 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22045 char TZ_GMT0[] = "TZ
=GMT0
";
22046 char TZ_PST8[] = "TZ
=PST8
";
22049 time_t now = time ((time_t *) 0);
22050 int hour_GMT0, hour_unset;
22051 if (putenv (TZ_GMT0) != 0)
22053 hour_GMT0 = localtime (&now)->tm_hour;
22055 hour_unset = localtime (&now)->tm_hour;
22056 if (putenv (TZ_PST8) != 0)
22058 if (localtime (&now)->tm_hour == hour_GMT0)
22061 if (localtime (&now)->tm_hour != hour_unset)
22066 rm -f conftest$ac_exeext
22067 if { (ac_try="$ac_link"
22068 case "(($ac_try" in
22069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22070 *) ac_try_echo=$ac_try;;
22072 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22073 (eval "$ac_link") 2>&5
22075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22076 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22077 { (case "(($ac_try" in
22078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22079 *) ac_try_echo=$ac_try;;
22081 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22082 (eval "$ac_try") 2>&5
22084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22085 (exit $ac_status); }; }; then
22086 emacs_cv_localtime_cache=no
22088 echo "$as_me: program exited with status
$ac_status" >&5
22089 echo "$as_me: failed program was
:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22092 ( exit $ac_status )
22093 emacs_cv_localtime_cache=yes
22095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22100 # If we lack tzset, report that localtime does not cache TZ,
22101 # since we can't invalidate the cache if we don't have tzset.
22102 emacs_cv_localtime_cache=no
22105 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
22106 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22107 if test $emacs_cv_localtime_cache = yes; then
22109 cat >>confdefs.h <<\_ACEOF
22110 #define LOCALTIME_CACHE 1
22115 if test "x
$HAVE_TIMEVAL" = xyes; then
22117 for ac_func in gettimeofday
22119 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22120 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22121 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22122 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22123 echo $ECHO_N "(cached
) $ECHO_C" >&6
22125 cat >conftest.$ac_ext <<_ACEOF
22128 cat confdefs.h >>conftest.$ac_ext
22129 cat >>conftest.$ac_ext <<_ACEOF
22130 /* end confdefs.h. */
22131 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22132 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22133 #define $ac_func innocuous_$ac_func
22135 /* System header to define __stub macros and hopefully few prototypes,
22136 which can conflict with char $ac_func (); below.
22137 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22138 <limits.h> exists even on freestanding compilers. */
22141 # include <limits.h>
22143 # include <assert.h>
22148 /* Override any GCC internal prototype to avoid an error.
22149 Use char because int might match the return type of a GCC
22150 builtin and then its argument prototype would still apply. */
22155 /* The GNU C library defines this for functions which it implements
22156 to always fail with ENOSYS. Some functions are actually named
22157 something starting with __ and the normal name is an alias. */
22158 #if defined __stub_$ac_func || defined __stub___$ac_func
22165 return $ac_func ();
22170 rm -f conftest.$ac_objext conftest$ac_exeext
22171 if { (ac_try="$ac_link"
22172 case "(($ac_try" in
22173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22174 *) ac_try_echo=$ac_try;;
22176 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22177 (eval "$ac_link") 2>conftest.er1
22179 grep -v '^ *+' conftest.er1 >conftest.err
22181 cat conftest.err >&5
22182 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22183 (exit $ac_status); } && {
22184 test -z "$ac_c_werror_flag" ||
22185 test ! -s conftest.err
22186 } && test -s conftest$ac_exeext &&
22187 $as_test_x conftest$ac_exeext; then
22188 eval "$as_ac_var=yes"
22190 echo "$as_me: failed program was
:" >&5
22191 sed 's/^/| /' conftest.$ac_ext >&5
22193 eval "$as_ac_var=no
"
22196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22197 conftest$ac_exeext conftest.$ac_ext
22199 ac_res=`eval echo '${'$as_ac_var'}'`
22200 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22201 echo "${ECHO_T}$ac_res" >&6; }
22202 if test `eval echo '${'$as_ac_var'}'` = yes; then
22203 cat >>confdefs.h <<_ACEOF
22204 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22210 if test $ac_cv_func_gettimeofday = yes; then
22211 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
22212 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
22213 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22214 echo $ECHO_N "(cached
) $ECHO_C" >&6
22216 cat >conftest.$ac_ext <<_ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h. */
22223 #ifdef TIME_WITH_SYS_TIME
22224 #include <sys/time.h>
22227 #ifdef HAVE_SYS_TIME_H
22228 #include <sys/time.h>
22236 struct timeval time;
22237 gettimeofday (&time, 0);
22242 rm -f conftest.$ac_objext
22243 if { (ac_try="$ac_compile"
22244 case "(($ac_try" in
22245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22246 *) ac_try_echo=$ac_try;;
22248 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22249 (eval "$ac_compile") 2>conftest.er1
22251 grep -v '^ *+' conftest.er1 >conftest.err
22253 cat conftest.err >&5
22254 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22255 (exit $ac_status); } && {
22256 test -z "$ac_c_werror_flag" ||
22257 test ! -s conftest.err
22258 } && test -s conftest.$ac_objext; then
22259 emacs_cv_gettimeofday_two_arguments=yes
22261 echo "$as_me: failed program was
:" >&5
22262 sed 's/^/| /' conftest.$ac_ext >&5
22264 emacs_cv_gettimeofday_two_arguments=no
22267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22269 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
22270 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22271 if test $emacs_cv_gettimeofday_two_arguments = no; then
22273 cat >>confdefs.h <<\_ACEOF
22274 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22282 { echo "$as_me:$LINENO: checking
for socket
" >&5
22283 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
22284 if test "${ac_cv_func_socket+set}" = set; then
22285 echo $ECHO_N "(cached
) $ECHO_C" >&6
22287 cat >conftest.$ac_ext <<_ACEOF
22290 cat confdefs.h >>conftest.$ac_ext
22291 cat >>conftest.$ac_ext <<_ACEOF
22292 /* end confdefs.h. */
22293 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22294 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22295 #define socket innocuous_socket
22297 /* System header to define __stub macros and hopefully few prototypes,
22298 which can conflict with char socket (); below.
22299 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22300 <limits.h> exists even on freestanding compilers. */
22303 # include <limits.h>
22305 # include <assert.h>
22310 /* Override any GCC internal prototype to avoid an error.
22311 Use char because int might match the return type of a GCC
22312 builtin and then its argument prototype would still apply. */
22317 /* The GNU C library defines this for functions which it implements
22318 to always fail with ENOSYS. Some functions are actually named
22319 something starting with __ and the normal name is an alias. */
22320 #if defined __stub_socket || defined __stub___socket
22332 rm -f conftest.$ac_objext conftest$ac_exeext
22333 if { (ac_try="$ac_link"
22334 case "(($ac_try" in
22335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22336 *) ac_try_echo=$ac_try;;
22338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22339 (eval "$ac_link") 2>conftest.er1
22341 grep -v '^ *+' conftest.er1 >conftest.err
22343 cat conftest.err >&5
22344 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22345 (exit $ac_status); } && {
22346 test -z "$ac_c_werror_flag" ||
22347 test ! -s conftest.err
22348 } && test -s conftest$ac_exeext &&
22349 $as_test_x conftest$ac_exeext; then
22350 ac_cv_func_socket=yes
22352 echo "$as_me: failed program was
:" >&5
22353 sed 's/^/| /' conftest.$ac_ext >&5
22355 ac_cv_func_socket=no
22358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22359 conftest$ac_exeext conftest.$ac_ext
22361 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
22362 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22363 if test $ac_cv_func_socket = yes; then
22369 if test $ok_so_far = yes; then
22370 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22371 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22372 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22373 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22374 echo $ECHO_N "(cached
) $ECHO_C" >&6
22376 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22377 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22379 # Is the header compilable?
22380 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
22381 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
22382 cat >conftest.$ac_ext <<_ACEOF
22385 cat confdefs.h >>conftest.$ac_ext
22386 cat >>conftest.$ac_ext <<_ACEOF
22387 /* end confdefs.h. */
22388 $ac_includes_default
22389 #include <netinet/in.h>
22391 rm -f conftest.$ac_objext
22392 if { (ac_try="$ac_compile"
22393 case "(($ac_try" in
22394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22395 *) ac_try_echo=$ac_try;;
22397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22398 (eval "$ac_compile") 2>conftest.er1
22400 grep -v '^ *+' conftest.er1 >conftest.err
22402 cat conftest.err >&5
22403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22404 (exit $ac_status); } && {
22405 test -z "$ac_c_werror_flag" ||
22406 test ! -s conftest.err
22407 } && test -s conftest.$ac_objext; then
22408 ac_header_compiler=yes
22410 echo "$as_me: failed program was
:" >&5
22411 sed 's/^/| /' conftest.$ac_ext >&5
22413 ac_header_compiler=no
22416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22417 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22418 echo "${ECHO_T}$ac_header_compiler" >&6; }
22420 # Is the header present?
22421 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
22422 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
22423 cat >conftest.$ac_ext <<_ACEOF
22426 cat confdefs.h >>conftest.$ac_ext
22427 cat >>conftest.$ac_ext <<_ACEOF
22428 /* end confdefs.h. */
22429 #include <netinet/in.h>
22431 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22432 case "(($ac_try" in
22433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434 *) ac_try_echo=$ac_try;;
22436 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22437 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22439 grep -v '^ *+' conftest.er1 >conftest.err
22441 cat conftest.err >&5
22442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22443 (exit $ac_status); } >/dev/null && {
22444 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22445 test ! -s conftest.err
22447 ac_header_preproc=yes
22449 echo "$as_me: failed program was
:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22452 ac_header_preproc=no
22455 rm -f conftest.err conftest.$ac_ext
22456 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22457 echo "${ECHO_T}$ac_header_preproc" >&6; }
22459 # So? What about this header?
22460 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22462 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22463 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22464 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
22465 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
22466 ac_header_preproc=yes
22469 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
22470 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
22471 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
22472 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
22473 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
22474 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
22475 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22476 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22477 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
22478 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
22479 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
22480 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
22484 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
22485 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
22486 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22487 echo $ECHO_N "(cached
) $ECHO_C" >&6
22489 ac_cv_header_netinet_in_h=$ac_header_preproc
22491 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
22492 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22495 if test $ac_cv_header_netinet_in_h = yes; then
22503 if test $ok_so_far = yes; then
22504 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22505 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22506 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22507 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22508 echo $ECHO_N "(cached
) $ECHO_C" >&6
22510 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22511 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22513 # Is the header compilable?
22514 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
22515 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
22516 cat >conftest.$ac_ext <<_ACEOF
22519 cat confdefs.h >>conftest.$ac_ext
22520 cat >>conftest.$ac_ext <<_ACEOF
22521 /* end confdefs.h. */
22522 $ac_includes_default
22523 #include <arpa/inet.h>
22525 rm -f conftest.$ac_objext
22526 if { (ac_try="$ac_compile"
22527 case "(($ac_try" in
22528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22529 *) ac_try_echo=$ac_try;;
22531 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22532 (eval "$ac_compile") 2>conftest.er1
22534 grep -v '^ *+' conftest.er1 >conftest.err
22536 cat conftest.err >&5
22537 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22538 (exit $ac_status); } && {
22539 test -z "$ac_c_werror_flag" ||
22540 test ! -s conftest.err
22541 } && test -s conftest.$ac_objext; then
22542 ac_header_compiler=yes
22544 echo "$as_me: failed program was
:" >&5
22545 sed 's/^/| /' conftest.$ac_ext >&5
22547 ac_header_compiler=no
22550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22551 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22552 echo "${ECHO_T}$ac_header_compiler" >&6; }
22554 # Is the header present?
22555 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22556 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22557 cat >conftest.$ac_ext <<_ACEOF
22560 cat confdefs.h >>conftest.$ac_ext
22561 cat >>conftest.$ac_ext <<_ACEOF
22562 /* end confdefs.h. */
22563 #include <arpa/inet.h>
22565 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22566 case "(($ac_try" in
22567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22568 *) ac_try_echo=$ac_try;;
22570 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22571 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22573 grep -v '^ *+' conftest.er1 >conftest.err
22575 cat conftest.err >&5
22576 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22577 (exit $ac_status); } >/dev/null && {
22578 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22579 test ! -s conftest.err
22581 ac_header_preproc=yes
22583 echo "$as_me: failed program was
:" >&5
22584 sed 's/^/| /' conftest.$ac_ext >&5
22586 ac_header_preproc=no
22589 rm -f conftest.err conftest.$ac_ext
22590 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22591 echo "${ECHO_T}$ac_header_preproc" >&6; }
22593 # So? What about this header?
22594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22596 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22597 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22598 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22599 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22600 ac_header_preproc=yes
22603 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22604 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22605 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22606 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22607 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22608 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22609 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22610 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22611 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22612 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22613 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22614 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22618 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22619 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22620 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22621 echo $ECHO_N "(cached
) $ECHO_C" >&6
22623 ac_cv_header_arpa_inet_h=$ac_header_preproc
22625 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22626 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22629 if test $ac_cv_header_arpa_inet_h = yes; then
22637 if test $ok_so_far = yes; then
22639 cat >>confdefs.h <<\_ACEOF
22640 #define HAVE_INET_SOCKETS 1
22646 for ac_header in sys/ioctl.h
22648 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22649 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22650 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22651 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22652 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22653 echo $ECHO_N "(cached
) $ECHO_C" >&6
22655 ac_res=`eval echo '${'$as_ac_Header'}'`
22656 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22657 echo "${ECHO_T}$ac_res" >&6; }
22659 # Is the header compilable?
22660 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22661 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22662 cat >conftest.$ac_ext <<_ACEOF
22665 cat confdefs.h >>conftest.$ac_ext
22666 cat >>conftest.$ac_ext <<_ACEOF
22667 /* end confdefs.h. */
22668 $ac_includes_default
22669 #include <$ac_header>
22671 rm -f conftest.$ac_objext
22672 if { (ac_try="$ac_compile"
22673 case "(($ac_try" in
22674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675 *) ac_try_echo=$ac_try;;
22677 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22678 (eval "$ac_compile") 2>conftest.er1
22680 grep -v '^ *+' conftest.er1 >conftest.err
22682 cat conftest.err >&5
22683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22684 (exit $ac_status); } && {
22685 test -z "$ac_c_werror_flag" ||
22686 test ! -s conftest.err
22687 } && test -s conftest.$ac_objext; then
22688 ac_header_compiler=yes
22690 echo "$as_me: failed program was
:" >&5
22691 sed 's/^/| /' conftest.$ac_ext >&5
22693 ac_header_compiler=no
22696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22697 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22698 echo "${ECHO_T}$ac_header_compiler" >&6; }
22700 # Is the header present?
22701 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22702 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22703 cat >conftest.$ac_ext <<_ACEOF
22706 cat confdefs.h >>conftest.$ac_ext
22707 cat >>conftest.$ac_ext <<_ACEOF
22708 /* end confdefs.h. */
22709 #include <$ac_header>
22711 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22712 case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22716 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22717 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22719 grep -v '^ *+' conftest.er1 >conftest.err
22721 cat conftest.err >&5
22722 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22723 (exit $ac_status); } >/dev/null && {
22724 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22725 test ! -s conftest.err
22727 ac_header_preproc=yes
22729 echo "$as_me: failed program was
:" >&5
22730 sed 's/^/| /' conftest.$ac_ext >&5
22732 ac_header_preproc=no
22735 rm -f conftest.err conftest.$ac_ext
22736 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22737 echo "${ECHO_T}$ac_header_preproc" >&6; }
22739 # So? What about this header?
22740 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22742 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22743 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22744 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22745 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22746 ac_header_preproc=yes
22749 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22750 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22751 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22752 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22753 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22754 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22755 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22756 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22757 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22758 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22759 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22760 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22764 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22765 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22766 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22767 echo $ECHO_N "(cached
) $ECHO_C" >&6
22769 eval "$as_ac_Header=\
$ac_header_preproc"
22771 ac_res=`eval echo '${'$as_ac_Header'}'`
22772 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22773 echo "${ECHO_T}$ac_res" >&6; }
22776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22777 cat >>confdefs.h <<_ACEOF
22778 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22786 if test -f /usr/lpp/X11/bin/smt.exp; then
22788 cat >>confdefs.h <<\_ACEOF
22789 #define HAVE_AIX_SMT_EXP 1
22794 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22795 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22796 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22797 { echo "$as_me:$LINENO: result
: yes" >&5
22798 echo "${ECHO_T}yes" >&6; }
22800 cat >>confdefs.h <<\_ACEOF
22801 #define HAVE_DEV_PTMX 1
22805 { echo "$as_me:$LINENO: result
: no
" >&5
22806 echo "${ECHO_T}no
" >&6; }
22809 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22810 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22811 if test "${ac_cv_type_pid_t+set}" = set; then
22812 echo $ECHO_N "(cached
) $ECHO_C" >&6
22814 cat >conftest.$ac_ext <<_ACEOF
22817 cat confdefs.h >>conftest.$ac_ext
22818 cat >>conftest.$ac_ext <<_ACEOF
22819 /* end confdefs.h. */
22820 $ac_includes_default
22821 typedef pid_t ac__type_new_;
22825 if ((ac__type_new_ *) 0)
22827 if (sizeof (ac__type_new_))
22833 rm -f conftest.$ac_objext
22834 if { (ac_try="$ac_compile"
22835 case "(($ac_try" in
22836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22837 *) ac_try_echo=$ac_try;;
22839 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22840 (eval "$ac_compile") 2>conftest.er1
22842 grep -v '^ *+' conftest.er1 >conftest.err
22844 cat conftest.err >&5
22845 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22846 (exit $ac_status); } && {
22847 test -z "$ac_c_werror_flag" ||
22848 test ! -s conftest.err
22849 } && test -s conftest.$ac_objext; then
22850 ac_cv_type_pid_t=yes
22852 echo "$as_me: failed program was
:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22855 ac_cv_type_pid_t=no
22858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22860 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22861 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22862 if test $ac_cv_type_pid_t = yes; then
22866 cat >>confdefs.h <<_ACEOF
22873 for ac_header in vfork.h
22875 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22876 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22877 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22878 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22879 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22880 echo $ECHO_N "(cached
) $ECHO_C" >&6
22882 ac_res=`eval echo '${'$as_ac_Header'}'`
22883 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22884 echo "${ECHO_T}$ac_res" >&6; }
22886 # Is the header compilable?
22887 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22888 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22889 cat >conftest.$ac_ext <<_ACEOF
22892 cat confdefs.h >>conftest.$ac_ext
22893 cat >>conftest.$ac_ext <<_ACEOF
22894 /* end confdefs.h. */
22895 $ac_includes_default
22896 #include <$ac_header>
22898 rm -f conftest.$ac_objext
22899 if { (ac_try="$ac_compile"
22900 case "(($ac_try" in
22901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22902 *) ac_try_echo=$ac_try;;
22904 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22905 (eval "$ac_compile") 2>conftest.er1
22907 grep -v '^ *+' conftest.er1 >conftest.err
22909 cat conftest.err >&5
22910 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22911 (exit $ac_status); } && {
22912 test -z "$ac_c_werror_flag" ||
22913 test ! -s conftest.err
22914 } && test -s conftest.$ac_objext; then
22915 ac_header_compiler=yes
22917 echo "$as_me: failed program was
:" >&5
22918 sed 's/^/| /' conftest.$ac_ext >&5
22920 ac_header_compiler=no
22923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22924 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22925 echo "${ECHO_T}$ac_header_compiler" >&6; }
22927 # Is the header present?
22928 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22929 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22930 cat >conftest.$ac_ext <<_ACEOF
22933 cat confdefs.h >>conftest.$ac_ext
22934 cat >>conftest.$ac_ext <<_ACEOF
22935 /* end confdefs.h. */
22936 #include <$ac_header>
22938 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22939 case "(($ac_try" in
22940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22941 *) ac_try_echo=$ac_try;;
22943 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22944 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22946 grep -v '^ *+' conftest.er1 >conftest.err
22948 cat conftest.err >&5
22949 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22950 (exit $ac_status); } >/dev/null && {
22951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22952 test ! -s conftest.err
22954 ac_header_preproc=yes
22956 echo "$as_me: failed program was
:" >&5
22957 sed 's/^/| /' conftest.$ac_ext >&5
22959 ac_header_preproc=no
22962 rm -f conftest.err conftest.$ac_ext
22963 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22964 echo "${ECHO_T}$ac_header_preproc" >&6; }
22966 # So? What about this header?
22967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22969 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22970 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22971 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22972 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22973 ac_header_preproc=yes
22976 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22977 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22978 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22979 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22980 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22981 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22982 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22983 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22984 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22985 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22986 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22987 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22991 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22992 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22993 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22994 echo $ECHO_N "(cached
) $ECHO_C" >&6
22996 eval "$as_ac_Header=\
$ac_header_preproc"
22998 ac_res=`eval echo '${'$as_ac_Header'}'`
22999 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23000 echo "${ECHO_T}$ac_res" >&6; }
23003 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23004 cat >>confdefs.h <<_ACEOF
23005 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
23014 for ac_func in fork vfork
23016 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
23017 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
23018 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
23019 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
23020 echo $ECHO_N "(cached
) $ECHO_C" >&6
23022 cat >conftest.$ac_ext <<_ACEOF
23025 cat confdefs.h >>conftest.$ac_ext
23026 cat >>conftest.$ac_ext <<_ACEOF
23027 /* end confdefs.h. */
23028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23030 #define $ac_func innocuous_$ac_func
23032 /* System header to define __stub macros and hopefully few prototypes,
23033 which can conflict with char $ac_func (); below.
23034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23035 <limits.h> exists even on freestanding compilers. */
23038 # include <limits.h>
23040 # include <assert.h>
23045 /* Override any GCC internal prototype to avoid an error.
23046 Use char because int might match the return type of a GCC
23047 builtin and then its argument prototype would still apply. */
23052 /* The GNU C library defines this for functions which it implements
23053 to always fail with ENOSYS. Some functions are actually named
23054 something starting with __ and the normal name is an alias. */
23055 #if defined __stub_$ac_func || defined __stub___$ac_func
23062 return $ac_func ();
23067 rm -f conftest.$ac_objext conftest$ac_exeext
23068 if { (ac_try="$ac_link"
23069 case "(($ac_try" in
23070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071 *) ac_try_echo=$ac_try;;
23073 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23074 (eval "$ac_link") 2>conftest.er1
23076 grep -v '^ *+' conftest.er1 >conftest.err
23078 cat conftest.err >&5
23079 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23080 (exit $ac_status); } && {
23081 test -z "$ac_c_werror_flag" ||
23082 test ! -s conftest.err
23083 } && test -s conftest$ac_exeext &&
23084 $as_test_x conftest$ac_exeext; then
23085 eval "$as_ac_var=yes"
23087 echo "$as_me: failed program was
:" >&5
23088 sed 's/^/| /' conftest.$ac_ext >&5
23090 eval "$as_ac_var=no
"
23093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23094 conftest$ac_exeext conftest.$ac_ext
23096 ac_res=`eval echo '${'$as_ac_var'}'`
23097 { echo "$as_me:$LINENO: result
: $ac_res" >&5
23098 echo "${ECHO_T}$ac_res" >&6; }
23099 if test `eval echo '${'$as_ac_var'}'` = yes; then
23100 cat >>confdefs.h <<_ACEOF
23101 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
23107 if test "x
$ac_cv_func_fork" = xyes; then
23108 { echo "$as_me:$LINENO: checking
for working fork
" >&5
23109 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
23110 if test "${ac_cv_func_fork_works+set}" = set; then
23111 echo $ECHO_N "(cached
) $ECHO_C" >&6
23113 if test "$cross_compiling" = yes; then
23114 ac_cv_func_fork_works=cross
23116 cat >conftest.$ac_ext <<_ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h. */
23122 $ac_includes_default
23127 /* By Ruediger Kuhlmann. */
23128 return fork () < 0;
23134 rm -f conftest$ac_exeext
23135 if { (ac_try="$ac_link"
23136 case "(($ac_try" in
23137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23138 *) ac_try_echo=$ac_try;;
23140 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23141 (eval "$ac_link") 2>&5
23143 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23144 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23145 { (case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_try") 2>&5
23152 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23153 (exit $ac_status); }; }; then
23154 ac_cv_func_fork_works=yes
23156 echo "$as_me: program exited with status
$ac_status" >&5
23157 echo "$as_me: failed program was
:" >&5
23158 sed 's/^/| /' conftest.$ac_ext >&5
23160 ( exit $ac_status )
23161 ac_cv_func_fork_works=no
23163 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23168 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
23169 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23172 ac_cv_func_fork_works=$ac_cv_func_fork
23174 if test "x
$ac_cv_func_fork_works" = xcross; then
23176 *-*-amigaos* | *-*-msdosdjgpp*)
23177 # Override, as these systems have only a dummy fork() stub
23178 ac_cv_func_fork_works=no
23181 ac_cv_func_fork_works=yes
23184 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
23185 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
23187 ac_cv_func_vfork_works=$ac_cv_func_vfork
23188 if test "x
$ac_cv_func_vfork" = xyes; then
23189 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
23190 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
23191 if test "${ac_cv_func_vfork_works+set}" = set; then
23192 echo $ECHO_N "(cached
) $ECHO_C" >&6
23194 if test "$cross_compiling" = yes; then
23195 ac_cv_func_vfork_works=cross
23197 cat >conftest.$ac_ext <<_ACEOF
23200 cat confdefs.h >>conftest.$ac_ext
23201 cat >>conftest.$ac_ext <<_ACEOF
23202 /* end confdefs.h. */
23203 /* Thanks to Paul Eggert for this test. */
23204 $ac_includes_default
23205 #include <sys/wait.h>
23206 #ifdef HAVE_VFORK_H
23207 # include <vfork.h>
23209 /* On some sparc systems, changes by the child to local and incoming
23210 argument registers are propagated back to the parent. The compiler
23211 is told about this with #include <vfork.h>, but some compilers
23212 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23213 static variable whose address is put into a register that is
23214 clobbered by the vfork. */
23217 sparc_address_test (int arg)
23219 sparc_address_test (arg) int arg;
23222 static pid_t child;
23240 pid_t parent = getpid ();
23243 sparc_address_test (0);
23248 /* Here is another test for sparc vfork register problems. This
23249 test uses lots of local variables, at least as many local
23250 variables as main has allocated so far including compiler
23251 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23252 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23253 reuse the register of parent for one of the local variables,
23254 since it will think that parent can't possibly be used any more
23255 in this routine. Assigning to the local variable will thus
23256 munge parent in the parent process. */
23258 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23259 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23260 /* Convince the compiler that p..p7 are live; otherwise, it might
23261 use the same hardware register for all 8 local variables. */
23262 if (p != p1 || p != p2 || p != p3 || p != p4
23263 || p != p5 || p != p6 || p != p7)
23266 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23267 from child file descriptors. If the child closes a descriptor
23268 before it execs or exits, this munges the parent's descriptor
23269 as well. Test for this by closing stdout in the child. */
23270 _exit(close(fileno(stdout)) != 0);
23275 while (wait(&status) != child)
23278 /* Was there some problem with vforking? */
23281 /* Did the child fail? (This shouldn't happen.) */
23284 /* Did the vfork/compiler bug occur? */
23285 || parent != getpid()
23287 /* Did the file descriptor bug occur? */
23288 || fstat(fileno(stdout), &st) != 0
23293 rm -f conftest$ac_exeext
23294 if { (ac_try="$ac_link"
23295 case "(($ac_try" in
23296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23297 *) ac_try_echo=$ac_try;;
23299 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23300 (eval "$ac_link") 2>&5
23302 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23304 { (case "(($ac_try" in
23305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23306 *) ac_try_echo=$ac_try;;
23308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23309 (eval "$ac_try") 2>&5
23311 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23312 (exit $ac_status); }; }; then
23313 ac_cv_func_vfork_works=yes
23315 echo "$as_me: program exited with status
$ac_status" >&5
23316 echo "$as_me: failed program was
:" >&5
23317 sed 's/^/| /' conftest.$ac_ext >&5
23319 ( exit $ac_status )
23320 ac_cv_func_vfork_works=no
23322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23327 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
23328 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23331 if test "x
$ac_cv_func_fork_works" = xcross; then
23332 ac_cv_func_vfork_works=$ac_cv_func_vfork
23333 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
23334 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
23337 if test "x
$ac_cv_func_vfork_works" = xyes; then
23339 cat >>confdefs.h <<\_ACEOF
23340 #define HAVE_WORKING_VFORK 1
23345 cat >>confdefs.h <<\_ACEOF
23350 if test "x
$ac_cv_func_fork_works" = xyes; then
23352 cat >>confdefs.h <<\_ACEOF
23353 #define HAVE_WORKING_FORK 1
23359 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
23360 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
23361 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23362 echo $ECHO_N "(cached
) $ECHO_C" >&6
23364 cat >conftest.$ac_ext <<_ACEOF
23367 cat confdefs.h >>conftest.$ac_ext
23368 cat >>conftest.$ac_ext <<_ACEOF
23369 /* end confdefs.h. */
23370 #include <langinfo.h>
23374 char* cs = nl_langinfo(CODESET);
23379 rm -f conftest.$ac_objext conftest$ac_exeext
23380 if { (ac_try="$ac_link"
23381 case "(($ac_try" in
23382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23383 *) ac_try_echo=$ac_try;;
23385 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23386 (eval "$ac_link") 2>conftest.er1
23388 grep -v '^ *+' conftest.er1 >conftest.err
23390 cat conftest.err >&5
23391 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23392 (exit $ac_status); } && {
23393 test -z "$ac_c_werror_flag" ||
23394 test ! -s conftest.err
23395 } && test -s conftest$ac_exeext &&
23396 $as_test_x conftest$ac_exeext; then
23397 emacs_cv_langinfo_codeset=yes
23399 echo "$as_me: failed program was
:" >&5
23400 sed 's/^/| /' conftest.$ac_ext >&5
23402 emacs_cv_langinfo_codeset=no
23405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23406 conftest$ac_exeext conftest.$ac_ext
23409 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
23410 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23411 if test $emacs_cv_langinfo_codeset = yes; then
23413 cat >>confdefs.h <<\_ACEOF
23414 #define HAVE_LANGINFO_CODESET 1
23419 { echo "$as_me:$LINENO: checking
for size_t
" >&5
23420 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
23421 if test "${ac_cv_type_size_t+set}" = set; then
23422 echo $ECHO_N "(cached
) $ECHO_C" >&6
23424 cat >conftest.$ac_ext <<_ACEOF
23427 cat confdefs.h >>conftest.$ac_ext
23428 cat >>conftest.$ac_ext <<_ACEOF
23429 /* end confdefs.h. */
23430 $ac_includes_default
23431 typedef size_t ac__type_new_;
23435 if ((ac__type_new_ *) 0)
23437 if (sizeof (ac__type_new_))
23443 rm -f conftest.$ac_objext
23444 if { (ac_try="$ac_compile"
23445 case "(($ac_try" in
23446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23447 *) ac_try_echo=$ac_try;;
23449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23450 (eval "$ac_compile") 2>conftest.er1
23452 grep -v '^ *+' conftest.er1 >conftest.err
23454 cat conftest.err >&5
23455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23456 (exit $ac_status); } && {
23457 test -z "$ac_c_werror_flag" ||
23458 test ! -s conftest.err
23459 } && test -s conftest.$ac_objext; then
23460 ac_cv_type_size_t=yes
23462 echo "$as_me: failed program was
:" >&5
23463 sed 's/^/| /' conftest.$ac_ext >&5
23465 ac_cv_type_size_t=no
23468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23470 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
23471 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23472 if test $ac_cv_type_size_t = yes; then
23474 cat >>confdefs.h <<_ACEOF
23475 #define HAVE_SIZE_T 1
23482 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
23483 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
23484 if test "${ac_cv_type_mbstate_t+set}" = set; then
23485 echo $ECHO_N "(cached
) $ECHO_C" >&6
23487 cat >conftest.$ac_ext <<_ACEOF
23490 cat confdefs.h >>conftest.$ac_ext
23491 cat >>conftest.$ac_ext <<_ACEOF
23492 /* end confdefs.h. */
23493 $ac_includes_default
23494 # include <wchar.h>
23498 mbstate_t x; return sizeof x;
23503 rm -f conftest.$ac_objext
23504 if { (ac_try="$ac_compile"
23505 case "(($ac_try" in
23506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23507 *) ac_try_echo=$ac_try;;
23509 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23510 (eval "$ac_compile") 2>conftest.er1
23512 grep -v '^ *+' conftest.er1 >conftest.err
23514 cat conftest.err >&5
23515 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23516 (exit $ac_status); } && {
23517 test -z "$ac_c_werror_flag" ||
23518 test ! -s conftest.err
23519 } && test -s conftest.$ac_objext; then
23520 ac_cv_type_mbstate_t=yes
23522 echo "$as_me: failed program was
:" >&5
23523 sed 's/^/| /' conftest.$ac_ext >&5
23525 ac_cv_type_mbstate_t=no
23528 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23530 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
23531 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23532 if test $ac_cv_type_mbstate_t = yes; then
23534 cat >>confdefs.h <<\_ACEOF
23535 #define HAVE_MBSTATE_T 1
23540 cat >>confdefs.h <<\_ACEOF
23541 #define mbstate_t int
23546 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23547 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23548 if test "${emacs_cv_c_restrict+set}" = set; then
23549 echo $ECHO_N "(cached
) $ECHO_C" >&6
23551 cat >conftest.$ac_ext <<_ACEOF
23554 cat confdefs.h >>conftest.$ac_ext
23555 cat >>conftest.$ac_ext <<_ACEOF
23556 /* end confdefs.h. */
23557 void fred (int *restrict x);
23566 rm -f conftest.$ac_objext
23567 if { (ac_try="$ac_compile"
23568 case "(($ac_try" in
23569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23570 *) ac_try_echo=$ac_try;;
23572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23573 (eval "$ac_compile") 2>conftest.er1
23575 grep -v '^ *+' conftest.er1 >conftest.err
23577 cat conftest.err >&5
23578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23579 (exit $ac_status); } && {
23580 test -z "$ac_c_werror_flag" ||
23581 test ! -s conftest.err
23582 } && test -s conftest.$ac_objext; then
23583 emacs_cv_c_restrict=yes
23585 echo "$as_me: failed program was
:" >&5
23586 sed 's/^/| /' conftest.$ac_ext >&5
23588 cat >conftest.$ac_ext <<_ACEOF
23591 cat confdefs.h >>conftest.$ac_ext
23592 cat >>conftest.$ac_ext <<_ACEOF
23593 /* end confdefs.h. */
23594 void fred (int *__restrict x);
23603 rm -f conftest.$ac_objext
23604 if { (ac_try="$ac_compile"
23605 case "(($ac_try" in
23606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23607 *) ac_try_echo=$ac_try;;
23609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23610 (eval "$ac_compile") 2>conftest.er1
23612 grep -v '^ *+' conftest.er1 >conftest.err
23614 cat conftest.err >&5
23615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23616 (exit $ac_status); } && {
23617 test -z "$ac_c_werror_flag" ||
23618 test ! -s conftest.err
23619 } && test -s conftest.$ac_objext; then
23620 emacs_cv_c_restrict=__restrict
23622 echo "$as_me: failed program was
:" >&5
23623 sed 's/^/| /' conftest.$ac_ext >&5
23625 emacs_cv_c_restrict=no
23628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23633 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23634 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23635 case "$emacs_cv_c_restrict" in
23636 yes) emacs_restrict=restrict;;
23637 no) emacs_restrict="";;
23638 *) emacs_restrict="$emacs_cv_c_restrict";;
23640 if test "$emacs_restrict" != __restrict; then
23642 cat >>confdefs.h <<_ACEOF
23643 #define __restrict $emacs_restrict
23648 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23649 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23650 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23651 echo $ECHO_N "(cached
) $ECHO_C" >&6
23653 cat >conftest.$ac_ext <<_ACEOF
23656 cat confdefs.h >>conftest.$ac_ext
23657 cat >>conftest.$ac_ext <<_ACEOF
23658 /* end confdefs.h. */
23659 void fred (int x[__restrict]);
23668 rm -f conftest.$ac_objext
23669 if { (ac_try="$ac_compile"
23670 case "(($ac_try" in
23671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23672 *) ac_try_echo=$ac_try;;
23674 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23675 (eval "$ac_compile") 2>conftest.er1
23677 grep -v '^ *+' conftest.er1 >conftest.err
23679 cat conftest.err >&5
23680 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23681 (exit $ac_status); } && {
23682 test -z "$ac_c_werror_flag" ||
23683 test ! -s conftest.err
23684 } && test -s conftest.$ac_objext; then
23685 emacs_cv_c_restrict_arr=yes
23687 echo "$as_me: failed program was
:" >&5
23688 sed 's/^/| /' conftest.$ac_ext >&5
23690 emacs_cv_c_restrict_arr=no
23693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23695 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23696 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23697 if test "$emacs_cv_c_restrict_arr" = yes; then
23699 cat >>confdefs.h <<\_ACEOF
23700 #define __restrict_arr __restrict
23707 # Set up the CFLAGS for real compilation, so we can substitute it.
23708 CFLAGS="$REAL_CFLAGS"
23709 CPPFLAGS="$REAL_CPPFLAGS"
23711 #### Find out which version of Emacs this is.
23712 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23713 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23714 if test x"${version}" = x; then
23715 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23716 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23717 { (exit 1); exit 1; }; }
23720 ### Specify what sort of things we'll be editing into Makefile and config.h.
23721 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23757 cat >>confdefs.h <<_ACEOF
23758 #define EMACS_CONFIGURATION "${canonical}"
23762 cat >>confdefs.h <<_ACEOF
23763 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23767 cat >>confdefs.h <<_ACEOF
23768 #define config_machfile "${machfile}"
23772 cat >>confdefs.h <<_ACEOF
23773 #define config_opsysfile "${opsysfile}"
23777 cat >>confdefs.h <<_ACEOF
23778 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23782 cat >>confdefs.h <<_ACEOF
23783 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23787 cat >>confdefs.h <<_ACEOF
23788 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23792 cat >>confdefs.h <<_ACEOF
23793 #define UNEXEC_SRC ${UNEXEC_SRC}
23797 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23799 cat >>confdefs.h <<\_ACEOF
23800 #define HAVE_X_WINDOWS 1
23804 if test "${USE_X_TOOLKIT}" != "none
" ; then
23806 cat >>confdefs.h <<\_ACEOF
23807 #define USE_X_TOOLKIT 1
23811 if test "${HAVE_X11}" = "yes" ; then
23813 cat >>confdefs.h <<\_ACEOF
23818 if test "${HAVE_MENUS}" = "yes" ; then
23820 cat >>confdefs.h <<\_ACEOF
23821 #define HAVE_MENUS 1
23825 if test "${GNU_MALLOC}" = "yes" ; then
23827 cat >>confdefs.h <<\_ACEOF
23828 #define GNU_MALLOC 1
23832 if test "${REL_ALLOC}" = "yes" ; then
23834 cat >>confdefs.h <<\_ACEOF
23835 #define REL_ALLOC 1
23845 #### Report on what we decided to do.
23846 #### Report GTK as a toolkit, even if it doesn't use Xt.
23847 #### It makes printing result more understandable as using GTK sets
23848 #### toolkit_scroll_bars to yes by default.
23849 if test "${HAVE_GTK}" = "yes"; then
23854 Configured
for \
`${canonical}'.
23856 Where should the build process find the source code? ${srcdir}
23857 What operating system and machine description files should Emacs use?
23858 \`${opsysfile}' and \`${machfile}'
23859 What compiler should emacs be built with?
${CC} ${CFLAGS}
23860 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23861 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23862 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23863 What window system should Emacs use?
${window_system}
23864 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23866 if test -n "${x_includes}"; then
23867 echo " Where
do we
find X Windows header files?
${x_includes}"
23869 echo " Where
do we
find X Windows header files? Standard
dirs"
23871 if test -n "${x_libraries}"; then
23872 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23874 echo " Where
do we
find X Windows libraries? Standard
dirs"
23877 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23878 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23879 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23880 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23881 echo " Does Emacs use a gif library?
${HAVE_GIF} $ac_gif_lib_name"
23882 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23883 echo " Does Emacs use
-lrsvg-2?
${HAVE_RSVG}"
23884 echo " Does Emacs use
-lgpm?
${HAVE_GPM}"
23885 echo " Does Emacs use
-ldbus?
${HAVE_DBUS}"
23886 echo " Does Emacs use a font backend?
${USE_FONT_BACKEND}"
23888 if test "${USE_FONT_BACKEND}" = "yes"; then
23889 echo " Does Emacs use
-lfreetype?
${HAVE_FREETYPE}"
23890 echo " Does Emacs use
-lm17n-flt?
${HAVE_M17N_FLT}"
23891 echo " Does Emacs use
-lotf?
${HAVE_LIBOTF}"
23892 echo " Does Emacs use
-lxft?
${HAVE_XFT}"
23894 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23897 if test $USE_XASSERTS = yes; then
23898 echo " Compiling with asserts turned on.
"
23899 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23903 if test "$USE_X_TOOLKIT" = GTK; then
23904 case "$canonical" in
23906 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23907 will probably get a crash on startup. If this happens
, please use another
23908 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23914 if test "$HAVE_CARBON" = "yes"; then
23916 echo "Warning
: The Mac Carbon port is currently unsupported and has
23917 known problems. It is not recommended
for use by non-developers.
23918 Read the emacs-devel archives
for more information.
"
23922 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux
"; then
23923 echo "D-Bus integration has been tested
for GNU
/Linux only.
"
23928 # Remove any trailing slashes in these variables.
23929 test "${prefix}" != NONE &&
23930 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23931 test "${exec_prefix}" != NONE &&
23932 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23934 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23935 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23936 ## from Makefile.c can correctly provide the arg `-traditional' to the
23939 cat >conftest.$ac_ext <<_ACEOF
23942 cat confdefs.h >>conftest.$ac_ext
23943 cat >>conftest.$ac_ext <<_ACEOF
23944 /* end confdefs.h. */
23947 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23948 $EGREP "yes..
yes" >/dev/null 2>&1; then
23949 CPP_NEED_TRADITIONAL=no
23951 CPP_NEED_TRADITIONAL=yes
23956 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
"
23958 ac_config_commands="$ac_config_commands default
"
23960 cat >confcache <<\_ACEOF
23961 # This file is a shell script that caches the results of configure
23962 # tests run on this system so they can be shared between configure
23963 # scripts and configure runs, see configure's option --config-cache.
23964 # It is not useful on other systems. If it contains results you don't
23965 # want to keep, you may remove or edit it.
23967 # config.status only pays attention to the cache file if you give it
23968 # the --recheck option to rerun configure.
23970 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23971 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23972 # following values.
23976 # The following way of writing the cache mishandles newlines in values,
23977 # but we know of no workaround that is simple, portable, and efficient.
23978 # So, we kill variables containing newlines.
23979 # Ultrix sh set writes to stderr and can't be redirected directly,
23980 # and sets the high bit in the cache file unless we assign to the vars.
23982 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23983 eval ac_val=\$$ac_var
23987 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23988 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23991 _ | IFS | as_nl) ;; #(
23992 *) $as_unset $ac_var ;;
23998 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23999 *${as_nl}ac_space=\ *)
24000 # `set' does not quote correctly, so add quotes (double-quote
24001 # substitution turns \\\\ into \\, and sed turns \\ into \).
24004 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
24007 # `set' quotes correctly as required by POSIX, so do not add quotes.
24008 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
24017 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24019 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24021 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24022 if test -w "$cache_file"; then
24023 test "x
$cache_file" != "x
/dev
/null
" &&
24024 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
24025 echo "$as_me: updating cache
$cache_file" >&6;}
24026 cat confcache >$cache_file
24028 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
24029 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
24034 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
24035 # Let make expand exec_prefix.
24036 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
24038 DEFS=-DHAVE_CONFIG_H
24042 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
24043 # 1. Remove the extension, and $U if already installed.
24044 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24045 ac_i=`echo "$ac_i" | sed "$ac_script"`
24046 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24047 # will be set to the directory where LIBOBJS objects are built.
24048 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
24049 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
24051 LIBOBJS=$ac_libobjs
24053 LTLIBOBJS=$ac_ltlibobjs
24057 : ${CONFIG_STATUS=./config.status}
24058 ac_clean_files_save=$ac_clean_files
24059 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24060 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
24061 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
24062 cat >$CONFIG_STATUS <<_ACEOF
24064 # Generated by $as_me.
24065 # Run this file to recreate the current configuration.
24066 # Compiler output produced by configure, useful for debugging
24067 # configure, is in config.log if it exists.
24070 ac_cs_recheck=false
24072 SHELL=\${CONFIG_SHELL-$SHELL}
24075 cat >>$CONFIG_STATUS <<\_ACEOF
24076 ## --------------------- ##
24077 ## M4sh Initialization. ##
24078 ## --------------------- ##
24080 # Be more Bourne compatible
24081 DUALCASE=1; export DUALCASE # for MKS sh
24082 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24085 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24086 # is contrary to our usage. Disable this feature.
24087 alias -g '${1+"$@"}'='"$@
"'
24088 setopt NO_GLOB_SUBST
24090 case `(set -o) 2>/dev/null` in
24091 *posix*) set -o posix ;;
24100 # Avoid depending upon Character Ranges.
24101 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24102 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24103 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24104 as_cr_digits='0123456789'
24105 as_cr_alnum=$as_cr_Letters$as_cr_digits
24107 # The user is always right.
24108 if test "${PATH_SEPARATOR+set}" != set; then
24109 echo "#! /bin/sh" >conf$$.sh
24110 echo "exit 0" >>conf$$.sh
24112 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
24120 # Support unset when possible.
24121 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
24129 # We need space, tab and new line, in precisely that order. Quoting is
24130 # there to prevent editors from complaining about space-tab.
24131 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24132 # splitting by setting IFS to empty value.)
24137 # Find who we are. Look in the path if we contain no directory separator.
24139 *[\\/]* ) as_myself
=$0 ;;
24140 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
24141 for as_dir
in $PATH
24144 test -z "$as_dir" && as_dir
=.
24145 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
24151 # We did not find ourselves, most probably we were run as `sh COMMAND'
24152 # in which case we are not to be found in the path.
24153 if test "x$as_myself" = x
; then
24156 if test ! -f "$as_myself"; then
24157 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24158 { (exit 1); exit 1; }
24161 # Work around bugs in pre-3.0 UWIN ksh.
24162 for as_var
in ENV MAIL MAILPATH
24163 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24171 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24172 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24173 LC_TELEPHONE LC_TIME
24175 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24176 eval $as_var=C
; export $as_var
24178 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
24182 # Required to use basename.
24183 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24184 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24190 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24191 as_basename
=basename
24197 # Name of the executable.
24198 as_me
=`$as_basename -- "$0" ||
24199 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24200 X"$0" : 'X\(//\)$' \| \
24201 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24203 sed '/^.*\/\([^/][^/]*\)\/*$/{
24222 as_lineno_1
=$LINENO
24223 as_lineno_2
=$LINENO
24224 test "x$as_lineno_1" != "x$as_lineno_2" &&
24225 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
24227 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24228 # uniformly replaced by the line number. The first 'sed' inserts a
24229 # line-number line after each line using $LINENO; the second 'sed'
24230 # does the real work. The second script uses 'N' to pair each
24231 # line-number line with the line containing $LINENO, and appends
24232 # trailing '-' during substitution so that $LINENO is not a special
24233 # case at line end.
24234 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24235 # scripts with optimization help from Paolo Bonzini. Blame Lee
24236 # E. McMahon (1931-1989) for sed's syntax. :-)
24248 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24251 ' >$as_me.lineno
&&
24252 chmod +x
"$as_me.lineno" ||
24253 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24254 { (exit 1); exit 1; }; }
24256 # Don't try to exec as it changes $[0], causing all sort of problems
24257 # (the dirname of $[0] is not the place where we might find the
24258 # original and so on. Autoconf is especially sensitive to this).
24259 .
"./$as_me.lineno"
24260 # Exit status is that of the last command.
24265 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
24271 ECHO_C
= ECHO_N
= ECHO_T
=
24272 case `echo -n x` in
24274 case `echo 'x\c'` in
24275 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
24282 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
24283 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
24289 rm -f conf$$ conf$$.exe conf$$.
file
24290 if test -d conf$$.dir
; then
24291 rm -f conf$$.dir
/conf$$.
file
24297 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
24299 # ... but there are two gotchas:
24300 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24301 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24302 # In both cases, we have to default to `cp -p'.
24303 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
24305 elif ln conf$$.
file conf$$
2>/dev
/null
; then
24310 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
24311 rmdir conf$$.dir
2>/dev
/null
24313 if mkdir
-p .
2>/dev
/null
; then
24316 test -d .
/-p && rmdir .
/-p
24320 if test -x / >/dev
/null
2>&1; then
24321 as_test_x
='test -x'
24323 if ls -dL / >/dev
/null
2>&1; then
24330 if test -d "$1"; then
24336 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24337 ???[sx]*):;;*)false;;esac;fi
24341 as_executable_p
=$as_test_x
24343 # Sed expression to map a string onto a valid CPP name.
24344 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24346 # Sed expression to map a string onto a valid variable name.
24347 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24352 # Save the log message, to keep $[0] and so on meaningful, and to
24353 # report actual input values of CONFIG_FILES etc. instead of their
24354 # values after options handling.
24356 This file was extended by emacs $as_me 23.0.50, which was
24357 generated by GNU Autoconf 2.61. Invocation command line was
24359 CONFIG_FILES = $CONFIG_FILES
24360 CONFIG_HEADERS = $CONFIG_HEADERS
24361 CONFIG_LINKS = $CONFIG_LINKS
24362 CONFIG_COMMANDS = $CONFIG_COMMANDS
24365 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24370 cat >>$CONFIG_STATUS <<_ACEOF
24371 # Files that config.status was made for.
24372 config_files="$ac_config_files"
24373 config_headers="$ac_config_headers"
24374 config_commands="$ac_config_commands"
24378 cat >>$CONFIG_STATUS <<\_ACEOF
24380 \`$as_me' instantiates files from templates according to the
24381 current configuration.
24383 Usage: $0 [OPTIONS] [FILE]...
24385 -h, --help print this help, then exit
24386 -V, --version print version number and configuration settings, then exit
24387 -q, --quiet do not print progress messages
24388 -d, --debug don't remove temporary files
24389 --recheck update $as_me by reconfiguring in the same conditions
24390 --file=FILE[:TEMPLATE]
24391 instantiate the configuration file FILE
24392 --header=FILE[:TEMPLATE]
24393 instantiate the configuration header FILE
24395 Configuration files:
24398 Configuration headers:
24401 Configuration commands:
24404 Report bugs to <bug-autoconf@gnu.org>."
24407 cat >>$CONFIG_STATUS <<_ACEOF
24409 emacs config.status 23.0.50
24410 configured by $0, generated by GNU Autoconf 2.61,
24411 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24413 Copyright (C) 2006 Free Software Foundation, Inc.
24414 This config.status script is free software; the Free Software Foundation
24415 gives unlimited permission to copy, distribute and modify it."
24422 cat >>$CONFIG_STATUS <<\_ACEOF
24423 # If no file are specified by the user, then we need to provide default
24424 # value. By we need to know if files were specified by the user.
24430 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
24431 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
24442 # Handling of the options.
24443 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
24445 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
24446 echo "$ac_cs_version"; exit ;;
24447 --debug |
--debu |
--deb |
--de |
--d |
-d )
24449 --file |
--fil |
--fi |
--f )
24451 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
24452 ac_need_defaults
=false
;;
24453 --header |
--heade |
--head |
--hea )
24455 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
24456 ac_need_defaults
=false
;;
24458 # Conflict between --help and --header
24459 { echo "$as_me: error: ambiguous option: $1
24460 Try \`$0 --help' for more information." >&2
24461 { (exit 1); exit 1; }; };;
24462 --help |
--hel |
-h )
24463 echo "$ac_cs_usage"; exit ;;
24464 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
24465 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
24468 # This is an error.
24469 -*) { echo "$as_me: error: unrecognized option: $1
24470 Try \`$0 --help' for more information." >&2
24471 { (exit 1); exit 1; }; } ;;
24473 *) ac_config_targets
="$ac_config_targets $1"
24474 ac_need_defaults
=false
;;
24480 ac_configure_extra_args
=
24482 if $ac_cs_silent; then
24484 ac_configure_extra_args
="$ac_configure_extra_args --silent"
24488 cat >>$CONFIG_STATUS <<_ACEOF
24489 if \$ac_cs_recheck; then
24490 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24491 CONFIG_SHELL=$SHELL
24492 export CONFIG_SHELL
24493 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24497 cat >>$CONFIG_STATUS <<\_ACEOF
24501 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24502 ## Running $as_me. ##
24508 cat >>$CONFIG_STATUS <<_ACEOF
24512 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24516 cat >>$CONFIG_STATUS <<\_ACEOF
24518 # Handling of arguments.
24519 for ac_config_target
in $ac_config_targets
24521 case $ac_config_target in
24522 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24523 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
24524 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24525 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
24526 "doc/emacs/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/emacs/Makefile" ;;
24527 "doc/misc/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/misc/Makefile" ;;
24528 "doc/lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispintro/Makefile" ;;
24529 "doc/lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES doc/lispref/Makefile" ;;
24530 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24531 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
24532 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
24533 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
24534 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
24536 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24537 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24538 { (exit 1); exit 1; }; };;
24543 # If the user did not use the arguments to specify the items to instantiate,
24544 # then the envvar interface is used. Set only those that are not.
24545 # We use the long form for the default assignment because of an extremely
24546 # bizarre bug on SunOS 4.1.3.
24547 if $ac_need_defaults; then
24548 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
24549 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
24550 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
24553 # Have a temporary directory for convenience. Make it in the build tree
24554 # simply because there is no reason against having it here, and in addition,
24555 # creating and moving files from /tmp can sometimes cause problems.
24556 # Hook for its removal unless debugging.
24557 # Note that there is a small window in which the directory will not be cleaned:
24558 # after its creation but before its name has been assigned to `$tmp'.
24562 trap 'exit_status=$?
24563 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24565 trap '{ (exit 1); exit 1; }' 1 2 13 15
24567 # Create a (secure) tmp directory for tmp files.
24570 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24571 test -n "$tmp" && test -d "$tmp"
24574 tmp
=.
/conf$$
-$RANDOM
24575 (umask 077 && mkdir
"$tmp")
24578 echo "$me: cannot create a temporary directory in ." >&2
24579 { (exit 1); exit 1; }
24583 # Set up the sed scripts for CONFIG_FILES section.
24586 # No need to generate the scripts if there are no CONFIG_FILES.
24587 # This happens for instance when ./config.status config.h
24588 if test -n "$CONFIG_FILES"; then
24595 for ac_last_try
in false false false false false
:; do
24596 cat >conf$
$subs.
sed <<_ACEOF
24597 SHELL!$SHELL$ac_delim
24598 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24599 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24600 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24601 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24602 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24603 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24604 exec_prefix!$exec_prefix$ac_delim
24605 prefix!$prefix$ac_delim
24606 program_transform_name!$program_transform_name$ac_delim
24607 bindir!$bindir$ac_delim
24608 sbindir!$sbindir$ac_delim
24609 libexecdir!$libexecdir$ac_delim
24610 datarootdir!$datarootdir$ac_delim
24611 datadir!$datadir$ac_delim
24612 sysconfdir!$sysconfdir$ac_delim
24613 sharedstatedir!$sharedstatedir$ac_delim
24614 localstatedir!$localstatedir$ac_delim
24615 includedir!$includedir$ac_delim
24616 oldincludedir!$oldincludedir$ac_delim
24617 docdir!$docdir$ac_delim
24618 infodir!$infodir$ac_delim
24619 htmldir!$htmldir$ac_delim
24620 dvidir!$dvidir$ac_delim
24621 pdfdir!$pdfdir$ac_delim
24622 psdir!$psdir$ac_delim
24623 libdir!$libdir$ac_delim
24624 localedir!$localedir$ac_delim
24625 mandir!$mandir$ac_delim
24626 DEFS!$DEFS$ac_delim
24627 ECHO_C!$ECHO_C$ac_delim
24628 ECHO_N!$ECHO_N$ac_delim
24629 ECHO_T!$ECHO_T$ac_delim
24630 LIBS!$LIBS$ac_delim
24631 build_alias!$build_alias$ac_delim
24632 host_alias!$host_alias$ac_delim
24633 target_alias!$target_alias$ac_delim
24634 MAINT!$MAINT$ac_delim
24635 build!$build$ac_delim
24636 build_cpu!$build_cpu$ac_delim
24637 build_vendor!$build_vendor$ac_delim
24638 build_os!$build_os$ac_delim
24639 host!$host$ac_delim
24640 host_cpu!$host_cpu$ac_delim
24641 host_vendor!$host_vendor$ac_delim
24642 host_os!$host_os$ac_delim
24644 CFLAGS!$CFLAGS$ac_delim
24645 LDFLAGS!$LDFLAGS$ac_delim
24646 CPPFLAGS!$CPPFLAGS$ac_delim
24647 ac_ct_CC!$ac_ct_CC$ac_delim
24648 EXEEXT!$EXEEXT$ac_delim
24649 OBJEXT!$OBJEXT$ac_delim
24651 GREP!$GREP$ac_delim
24652 EGREP!$EGREP$ac_delim
24653 LN_S!$LN_S$ac_delim
24654 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24655 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24656 INSTALL_DATA!$INSTALL_DATA$ac_delim
24657 RANLIB!$RANLIB$ac_delim
24658 INSTALL_INFO!$INSTALL_INFO$ac_delim
24659 GZIP_PROG!$GZIP_PROG$ac_delim
24660 MAKEINFO!$MAKEINFO$ac_delim
24661 LIBSOUND!$LIBSOUND$ac_delim
24662 PKG_CONFIG!$PKG_CONFIG$ac_delim
24663 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24664 ALSA_LIBS!$ALSA_LIBS$ac_delim
24665 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24666 SET_MAKE!$SET_MAKE$ac_delim
24667 XMKMF!$XMKMF$ac_delim
24668 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24669 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24670 RSVG_LIBS!$RSVG_LIBS$ac_delim
24671 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24672 GTK_LIBS!$GTK_LIBS$ac_delim
24673 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24674 DBUS_LIBS!$DBUS_LIBS$ac_delim
24675 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24676 XFT_LIBS!$XFT_LIBS$ac_delim
24677 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24678 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24679 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24680 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24681 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24682 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24683 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
24684 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
24685 ALLOCA!$ALLOCA$ac_delim
24686 liblockfile!$liblockfile$ac_delim
24687 LIBOBJS!$LIBOBJS$ac_delim
24688 NEED_SETGID!$NEED_SETGID$ac_delim
24689 KMEM_GROUP!$KMEM_GROUP$ac_delim
24690 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24691 GETOPT_H!$GETOPT_H$ac_delim
24692 GETOPTOBJS!$GETOPTOBJS$ac_delim
24693 version!$version$ac_delim
24696 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24698 elif $ac_last_try; then
24699 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24700 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24701 { (exit 1); exit 1; }; }
24703 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24707 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24708 if test -n "$ac_eof"; then
24709 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24710 ac_eof
=`expr $ac_eof + 1`
24713 cat >>$CONFIG_STATUS <<_ACEOF
24714 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24715 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24718 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24719 s/^/s,@/; s/!/@,|#_!!_#|/
24722 s/'"$ac_delim"'$/,g/; t
24724 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24725 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24726 rm -f conf$
$subs.
sed
24727 cat >>$CONFIG_STATUS <<_ACEOF
24733 for ac_last_try
in false false false false false
:; do
24734 cat >conf$
$subs.
sed <<_ACEOF
24735 configuration!$configuration$ac_delim
24736 canonical!$canonical$ac_delim
24737 srcdir!$srcdir$ac_delim
24738 lispdir!$lispdir$ac_delim
24739 locallisppath!$locallisppath$ac_delim
24740 lisppath!$lisppath$ac_delim
24741 x_default_search_path!$x_default_search_path$ac_delim
24742 etcdir!$etcdir$ac_delim
24743 archlibdir!$archlibdir$ac_delim
24744 bitmapdir!$bitmapdir$ac_delim
24745 gamedir!$gamedir$ac_delim
24746 gameuser!$gameuser$ac_delim
24747 c_switch_system!$c_switch_system$ac_delim
24748 c_switch_machine!$c_switch_machine$ac_delim
24749 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24750 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24751 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24752 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24753 machfile!$machfile$ac_delim
24754 opsysfile!$opsysfile$ac_delim
24755 carbon_appdir!$carbon_appdir$ac_delim
24756 LTLIBOBJS!$LTLIBOBJS$ac_delim
24759 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 22; then
24761 elif $ac_last_try; then
24762 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24763 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24764 { (exit 1); exit 1; }; }
24766 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24770 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24771 if test -n "$ac_eof"; then
24772 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24773 ac_eof
=`expr $ac_eof + 1`
24776 cat >>$CONFIG_STATUS <<_ACEOF
24777 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24778 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24781 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24782 s/^/s,@/; s/!/@,|#_!!_#|/
24785 s/'"$ac_delim"'$/,g/; t
24787 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24788 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24789 rm -f conf$
$subs.
sed
24790 cat >>$CONFIG_STATUS <<_ACEOF
24797 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24798 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24799 # trailing colons and then remove the whole line if VPATH becomes empty
24800 # (actually we leave an empty line to preserve line numbers).
24801 if test "x$srcdir" = x.
; then
24802 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24803 s/:*\$(srcdir):*/:/
24804 s/:*\${srcdir}:*/:/
24806 s/^\([^=]*=[ ]*\):*/\1/
24812 cat >>$CONFIG_STATUS <<\_ACEOF
24813 fi # test -n "$CONFIG_FILES"
24816 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24819 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24821 case $ac_mode$ac_tag in
24823 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24824 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24825 { (exit 1); exit 1; }; };;
24826 :[FH
]-) ac_tag
=-:-;;
24827 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24844 -) ac_f
="$tmp/stdin";;
24845 *) # Look for the file first in the build tree, then in the source tree
24846 # (if the path is not absolute). The absolute path cannot be DOS-style,
24847 # because $ac_f cannot contain `:'.
24851 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24853 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24854 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24855 { (exit 1); exit 1; }; };;
24857 ac_file_inputs
="$ac_file_inputs $ac_f"
24860 # Let's still pretend it is `configure' which instantiates (i.e., don't
24861 # use $as_me), people would be surprised to read:
24862 # /* config.h. Generated by config.status. */
24863 configure_input
="Generated from "`IFS=:
24864 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24865 if test x
"$ac_file" != x-
; then
24866 configure_input
="$ac_file. $configure_input"
24867 { echo "$as_me:$LINENO: creating $ac_file" >&5
24868 echo "$as_me: creating $ac_file" >&6;}
24872 *:-:* |
*:-) cat >"$tmp/stdin";;
24877 ac_dir
=`$as_dirname -- "$ac_file" ||
24878 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24879 X"$ac_file" : 'X\(//\)[^/]' \| \
24880 X"$ac_file" : 'X\(//\)$' \| \
24881 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24883 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24887 /^X\(\/\/\)[^/].*/{
24902 -*) as_dir
=.
/$as_dir;;
24904 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24908 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24909 *) as_qdir
=$as_dir;;
24911 as_dirs
="'$as_qdir' $as_dirs"
24912 as_dir
=`$as_dirname -- "$as_dir" ||
24913 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24914 X"$as_dir" : 'X\(//\)[^/]' \| \
24915 X"$as_dir" : 'X\(//\)$' \| \
24916 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24918 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24922 /^X\(\/\/\)[^/].*/{
24935 test -d "$as_dir" && break
24937 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24938 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24939 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24940 { (exit 1); exit 1; }; }; }
24944 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24946 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24947 # A ".." for each directory in $ac_dir_suffix.
24948 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24949 case $ac_top_builddir_sub in
24950 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24951 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24954 ac_abs_top_builddir
=$ac_pwd
24955 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24956 # for backward compatibility:
24957 ac_top_builddir
=$ac_top_build_prefix
24960 .
) # We are building in place.
24962 ac_top_srcdir
=$ac_top_builddir_sub
24963 ac_abs_top_srcdir
=$ac_pwd ;;
24964 [\\/]* | ?
:[\\/]* ) # Absolute name.
24965 ac_srcdir
=$srcdir$ac_dir_suffix;
24966 ac_top_srcdir
=$srcdir
24967 ac_abs_top_srcdir
=$srcdir ;;
24968 *) # Relative name.
24969 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24970 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24971 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24973 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24983 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24984 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24988 cat >>$CONFIG_STATUS <<\_ACEOF
24989 # If the template does not know about datarootdir, expand it.
24990 # FIXME: This hack should be removed a few years after 2.60.
24991 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24993 case `sed -n '/datarootdir/ {
25002 ' $ac_file_inputs` in
25003 *datarootdir
*) ac_datarootdir_seen
=yes;;
25004 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
25005 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25006 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25008 cat >>$CONFIG_STATUS <<_ACEOF
25009 ac_datarootdir_hack='
25010 s&@datadir@&$datadir&g
25011 s&@docdir@&$docdir&g
25012 s&@infodir@&$infodir&g
25013 s&@localedir@&$localedir&g
25014 s&@mandir@&$mandir&g
25015 s&\\\${datarootdir}&$datarootdir&g' ;;
25019 # Neutralize VPATH when `$srcdir' = `.'.
25020 # Shell code in configure.ac might set extrasub.
25021 # FIXME: do we really want to maintain this feature?
25022 cat >>$CONFIG_STATUS <<_ACEOF
25026 cat >>$CONFIG_STATUS <<\_ACEOF
25028 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
25029 s
&@configure_input@
&$configure_input&;t t
25030 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
25031 s
&@srcdir@
&$ac_srcdir&;t t
25032 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
25033 s
&@top_srcdir@
&$ac_top_srcdir&;t t
25034 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
25035 s
&@builddir@
&$ac_builddir&;t t
25036 s
&@abs_builddir@
&$ac_abs_builddir&;t t
25037 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
25038 s
&@INSTALL@
&$ac_INSTALL&;t t
25039 $ac_datarootdir_hack
25040 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
25042 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25043 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
25044 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
25045 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
25046 which seems to be undefined. Please make sure it is defined." >&5
25047 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
25048 which seems to be undefined. Please make sure it is defined." >&2;}
25052 -) cat "$tmp/out"; rm -f "$tmp/out";;
25053 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25062 # Transform confdefs.h into a sed script `conftest.defines', that
25063 # substitutes the proper values into config.h.in to produce config.h.
25064 rm -f conftest.defines conftest.
tail
25065 # First, append a space to every undef/define line, to ease matching.
25066 echo 's/$/ /' >conftest.defines
25067 # Then, protect against being on the right side of a sed subst, or in
25068 # an unquoted here document, in config.status. If some macros were
25069 # called several times there might be several #defines for the same
25070 # symbol, which is useless. But do not sort them, since the last
25071 # AC_DEFINE must be honored.
25072 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
25073 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25074 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25075 # PARAMS is the parameter list in the macro definition--in most cases, it's
25076 # just an empty string.
25077 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25078 ac_dB
='\\)[ (].*,\\1define\\2'
25086 s/^[ ]*#[ ]*define[ ][ ]*//
25091 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25092 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25093 ' >>conftest.defines
25095 # Remove the space that was appended to ease matching.
25096 # Then replace #undef with comments. This is necessary, for
25097 # example, in the case of _POSIX_SOURCE, which is predefined and required
25098 # on some systems where configure will not decide to define it.
25099 # (The regexp can be short, since the line contains either #define or #undef.)
25101 s,^[ #]*u.*,/* & */,' >>conftest.defines
25103 # Break up conftest.defines:
25104 ac_max_sed_lines
=50
25106 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25107 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25108 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25110 ac_in
='$ac_file_inputs'
25111 ac_out
='"$tmp/out1"'
25112 ac_nxt
='"$tmp/out2"'
25116 # Write a here document:
25117 cat >>$CONFIG_STATUS <<_ACEOF
25118 # First, check the format of the line:
25119 cat >"\$tmp/defines.sed" <<\\CEOF
25120 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25121 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25125 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
25127 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25128 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
25129 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
25130 grep . conftest.
tail >/dev
/null ||
break
25131 rm -f conftest.defines
25132 mv conftest.
tail conftest.defines
25134 rm -f conftest.defines conftest.
tail
25136 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25137 cat >>$CONFIG_STATUS <<\_ACEOF
25138 if test x
"$ac_file" != x-
; then
25139 echo "/* $configure_input */" >"$tmp/config.h"
25140 cat "$ac_result" >>"$tmp/config.h"
25141 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
25142 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25143 echo "$as_me: $ac_file is unchanged" >&6;}
25146 mv "$tmp/config.h" $ac_file
25149 echo "/* $configure_input */"
25155 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25156 echo "$as_me: executing $ac_file commands" >&6;}
25161 case $ac_file$ac_mode in
25164 ### Make the necessary directories, if they don't exist.
25165 for dir
in etc lisp
; do
25166 test -d ${dir} || mkdir
${dir}
25169 # Build src/Makefile from ${srcdir}/src/Makefile.c
25170 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25171 # This must be done after src/config.h is built, since we rely on that file.
25173 # Now get this: Some word that is part of the ${srcdir} directory name
25174 # or the ${configuration} value might, just might, happen to be an
25175 # identifier like `sun4' or `i386' or something, and be predefined by
25176 # the C preprocessor to some helpful value like 1, or maybe the empty
25177 # string. Needless to say consequent macro substitutions are less
25178 # than conducive to the makefile finding the correct directory.
25179 undefs
="`echo $top_srcdir $configuration $canonical |
25180 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25181 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25184 echo creating src
/epaths.h
25185 ${MAKE-make} epaths-force
25187 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25188 # `..' to `. .' unless invoked with -traditional
25190 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
25191 CPPFLAGS
="$CPPFLAGS -traditional"
25194 echo creating lib-src
/Makefile
25196 rm -f junk.c junk1.c junk2.c
25197 sed -e '/start of cpp stuff/q' \
25198 < Makefile.c
> junk1.c
25199 sed -e '1,/start of cpp stuff/d'\
25200 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25201 < Makefile.c
> junk.c
25202 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25203 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25204 cat junk1.c junk2.c
> Makefile.new
25205 rm -f junk.c junk1.c junk2.c
25206 chmod 444 Makefile.new
25207 mv -f Makefile.new Makefile
25210 echo creating src
/Makefile
25212 rm -f junk.c junk1.c junk2.c
25213 sed -e '/start of cpp stuff/q' \
25214 < Makefile.c
> junk1.c
25215 sed -e '1,/start of cpp stuff/d'\
25216 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25217 < Makefile.c
> junk.c
25218 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
25219 echo creating
${srcdir}/admin
/unidata
/Makefile
25220 cp ${srcdir}/admin
/unidata
/Makefile.
in ${srcdir}/admin
/unidata
/Makefile
25221 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
25223 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
25224 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25225 cat junk1.c junk2.c
> Makefile.new
25226 rm -f junk.c junk1.c junk2.c
25227 chmod 444 Makefile.new
25228 mv -f Makefile.new Makefile
25231 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
25232 echo creating src
/.gdbinit
25233 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
25236 # This is how we know whether to re-run configure in certain cases.
25237 touch src
/config.stamp
25245 { (exit 0); exit 0; }
25247 chmod +x
$CONFIG_STATUS
25248 ac_clean_files
=$ac_clean_files_save
25251 # configure is writing to config.log, and then calls config.status.
25252 # config.status does its own redirection, appending to config.log.
25253 # Unfortunately, on DOS this fails, as config.log is still kept open
25254 # by configure, so config.status won't be able to write to it; its
25255 # output is simply discarded. So we exec the FD to /dev/null,
25256 # effectively closing config.log, so it can be properly (re)opened and
25257 # appended to by config.status. When coming back to configure, we
25258 # need to make the FD available again.
25259 if test "$no_create" != yes; then
25261 ac_config_status_args
=
25262 test "$silent" = yes &&
25263 ac_config_status_args
="$ac_config_status_args --quiet"
25265 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
25267 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25268 # would make configure fail if this is the last instruction.
25269 $ac_cs_success ||
{ (exit 1); exit 1; }