2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
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.
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
709 x_default_search_path
726 ac_precious_vars
='build_alias
738 # Initialize some variables set by options.
740 ac_init_version
=false
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
750 program_transform_name
=s
,x
,x
,
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir
='${exec_prefix}/bin'
765 sbindir
='${exec_prefix}/sbin'
766 libexecdir
='${exec_prefix}/libexec'
767 datarootdir
='${prefix}/share'
768 datadir
='${datarootdir}'
769 sysconfdir
='${prefix}/etc'
770 sharedstatedir
='${prefix}/com'
771 localstatedir
='${prefix}/var'
772 includedir
='${prefix}/include'
773 oldincludedir
='/usr/include'
774 docdir
='${datarootdir}/doc/${PACKAGE}'
775 infodir
='${datarootdir}/info'
780 libdir
='${exec_prefix}/lib'
781 localedir
='${datarootdir}/locale'
782 mandir
='${datarootdir}/man'
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\
$ac_option
796 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
800 # Accept the important Cygnus configure options, so we can diagnose typos.
802 case $ac_dashdash$ac_option in
806 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
808 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
811 -build |
--build |
--buil |
--bui |
--bu)
812 ac_prev
=build_alias
;;
813 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
814 build_alias
=$ac_optarg ;;
816 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
817 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
818 ac_prev
=cache_file
;;
819 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
820 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
821 cache_file
=$ac_optarg ;;
824 cache_file
=config.cache
;;
826 -datadir |
--datadir |
--datadi |
--datad)
828 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
829 datadir
=$ac_optarg ;;
831 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
832 |
--dataroo |
--dataro |
--datar)
833 ac_prev
=datarootdir
;;
834 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
835 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
836 datarootdir
=$ac_optarg ;;
838 -disable-* |
--disable-*)
839 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_
$ac_feature=no
;;
847 -docdir |
--docdir |
--docdi |
--doc |
--do)
849 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
852 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
854 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
857 -enable-* |
--enable-*)
858 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_
$ac_feature=\
$ac_optarg ;;
866 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
867 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
868 |
--exec |
--exe |
--ex)
869 ac_prev
=exec_prefix
;;
870 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
871 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
872 |
--exec=* |
--exe=* |
--ex=*)
873 exec_prefix
=$ac_optarg ;;
875 -gas |
--gas |
--ga |
--g)
876 # Obsolete; use --with-gas.
879 -help |
--help |
--hel |
--he |
-h)
881 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
882 ac_init_help
=recursive
;;
883 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
884 ac_init_help
=short
;;
886 -host |
--host |
--hos |
--ho)
887 ac_prev
=host_alias
;;
888 -host=* |
--host=* |
--hos=* |
--ho=*)
889 host_alias
=$ac_optarg ;;
891 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
893 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
895 htmldir
=$ac_optarg ;;
897 -includedir |
--includedir |
--includedi |
--included |
--include \
898 |
--includ |
--inclu |
--incl |
--inc)
899 ac_prev
=includedir
;;
900 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
901 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
902 includedir
=$ac_optarg ;;
904 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
906 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
907 infodir
=$ac_optarg ;;
909 -libdir |
--libdir |
--libdi |
--libd)
911 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
914 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
915 |
--libexe |
--libex |
--libe)
916 ac_prev
=libexecdir
;;
917 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
918 |
--libexe=* |
--libex=* |
--libe=*)
919 libexecdir
=$ac_optarg ;;
921 -localedir |
--localedir |
--localedi |
--localed |
--locale)
923 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
924 localedir
=$ac_optarg ;;
926 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
927 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
928 ac_prev
=localstatedir
;;
929 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
930 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
931 localstatedir
=$ac_optarg ;;
933 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
935 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
939 # Obsolete; use --without-fp.
942 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
943 |
--no-cr |
--no-c |
-n)
946 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
947 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
950 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
951 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
952 |
--oldin |
--oldi |
--old |
--ol |
--o)
953 ac_prev
=oldincludedir
;;
954 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
955 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
956 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
957 oldincludedir
=$ac_optarg ;;
959 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
961 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
964 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
965 |
--program-pre |
--program-pr |
--program-p)
966 ac_prev
=program_prefix
;;
967 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
968 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
969 program_prefix
=$ac_optarg ;;
971 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
972 |
--program-suf |
--program-su |
--program-s)
973 ac_prev
=program_suffix
;;
974 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
975 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
976 program_suffix
=$ac_optarg ;;
978 -program-transform-name |
--program-transform-name \
979 |
--program-transform-nam |
--program-transform-na \
980 |
--program-transform-n |
--program-transform- \
981 |
--program-transform |
--program-transfor \
982 |
--program-transfo |
--program-transf \
983 |
--program-trans |
--program-tran \
984 |
--progr-tra |
--program-tr |
--program-t)
985 ac_prev
=program_transform_name
;;
986 -program-transform-name=* |
--program-transform-name=* \
987 |
--program-transform-nam=* |
--program-transform-na=* \
988 |
--program-transform-n=* |
--program-transform-=* \
989 |
--program-transform=* |
--program-transfor=* \
990 |
--program-transfo=* |
--program-transf=* \
991 |
--program-trans=* |
--program-tran=* \
992 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
993 program_transform_name
=$ac_optarg ;;
995 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
997 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1000 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1002 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1005 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1006 |
-silent |
--silent |
--silen |
--sile |
--sil)
1009 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1011 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1013 sbindir
=$ac_optarg ;;
1015 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1016 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1017 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1019 ac_prev
=sharedstatedir
;;
1020 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1021 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1022 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1024 sharedstatedir
=$ac_optarg ;;
1026 -site |
--site |
--sit)
1028 -site=* |
--site=* |
--sit=*)
1031 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1033 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1034 srcdir
=$ac_optarg ;;
1036 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1037 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1038 ac_prev
=sysconfdir
;;
1039 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1040 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1041 sysconfdir
=$ac_optarg ;;
1043 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1044 ac_prev
=target_alias
;;
1045 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1046 target_alias
=$ac_optarg ;;
1048 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1051 -version |
--version |
--versio |
--versi |
--vers |
-V)
1052 ac_init_version
=: ;;
1055 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_
$ac_package=\
$ac_optarg ;;
1063 -without-* |
--without-*)
1064 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_
$ac_package=no
;;
1073 # Obsolete; use --with-x.
1076 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1077 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1078 ac_prev
=x_includes
;;
1079 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1080 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1081 x_includes
=$ac_optarg ;;
1083 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1084 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1085 ac_prev
=x_libraries
;;
1086 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1087 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1088 x_libraries
=$ac_optarg ;;
1090 -*) { echo "$as_me: error: unrecognized option: $ac_option
1091 Try \`$0 --help' for more information." >&2
1092 { (exit 1); exit 1; }; }
1096 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1099 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1100 { (exit 1); exit 1; }; }
1101 eval $ac_envvar=\
$ac_optarg
1102 export $ac_envvar ;;
1105 # FIXME: should be removed in autoconf 3.0.
1106 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1108 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1115 if test -n "$ac_prev"; then
1116 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1117 { echo "$as_me: error: missing argument to $ac_option" >&2
1118 { (exit 1); exit 1; }; }
1121 # Be sure to have absolute directory names.
1122 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123 datadir sysconfdir sharedstatedir localstatedir includedir \
1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1125 libdir localedir mandir
1127 eval ac_val
=\$
$ac_var
1129 [\\/$
]* | ?
:[\\/]* ) continue;;
1130 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1132 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1133 { (exit 1); exit 1; }; }
1136 # There might be people who depend on the old broken behavior: `$host'
1137 # used to hold the argument of --host etc.
1138 # FIXME: To remove some day.
1141 target
=$target_alias
1143 # FIXME: To remove some day.
1144 if test "x$host_alias" != x
; then
1145 if test "x$build_alias" = x
; then
1146 cross_compiling
=maybe
1147 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148 If a cross compiler is detected then cross compile mode will be used." >&2
1149 elif test "x$build_alias" != "x$host_alias"; then
1155 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1157 test "$silent" = yes && exec 6>/dev
/null
1160 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di
=`ls -di .` &&
1162 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1163 { echo "$as_me: error: Working directory cannot be determined" >&2
1164 { (exit 1); exit 1; }; }
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 { echo "$as_me: error: pwd does not report name of working directory" >&2
1167 { (exit 1); exit 1; }; }
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted
=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir
=`$as_dirname -- "$0" ||
1175 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$0" : 'X\(//\)[^/]' \| \
1177 X"$0" : 'X\(//\)$' \| \
1178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1202 ac_srcdir_defaulted
=no
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1206 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1207 { (exit 1); exit 1; }; }
1209 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1211 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1212 { (exit 1); exit 1; }; }
1214 # When building in place, set srcdir=.
1215 if test "$ac_abs_confdir" = "$ac_pwd"; then
1218 # Remove unnecessary trailing slashes from srcdir.
1219 # Double slashes in file names in object file debugging info
1220 # mess up M-x gdb in Emacs.
1222 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1224 for ac_var
in $ac_precious_vars; do
1225 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1227 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1232 # Report the --help message.
1234 if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1238 \`configure' configures this package to adapt to many kinds of systems.
1240 Usage: $0 [OPTION]... [VAR=VALUE]...
1242 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243 VAR=VALUE. See below for descriptions of some of the useful variables.
1245 Defaults for the options are specified in brackets.
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1258 Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1264 By default, \`make install' will install all the files in
1265 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267 for instance \`--prefix=\$HOME'.
1269 For better control, use the options below.
1271 Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1301 --x-includes=DIR X include files are
in DIR
1302 --x-libraries=DIR X library files are
in DIR
1305 --build=BUILD configure
for building on BUILD
[guessed
]
1306 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1310 if test -n "$ac_init_help"; then
1315 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1316 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1317 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1318 specify
install directory
for Emacs.app on Mac OS X
1319 --enable-asserts compile code with asserts enabled
1320 --enable-maintainer-mode enable make rules and dependencies not useful
1321 (and sometimes confusing
) to the casual installer
1322 --enable-locallisppath=PATH
1323 directories Emacs should search
for lisp files
1324 specific to this site
1325 --disable-largefile omit support
for large files
1328 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1329 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1330 --without-gcc don
't use GCC to compile Emacs if GCC is found
1331 --without-pop don't support POP
mail retrieval with movemail
1332 --with-kerberos support Kerberos-authenticated POP
1333 --with-kerberos5 support Kerberos version
5 authenticated POP
1334 --with-hesiod support Hesiod to get the POP server
host
1335 --without-sound don
't compile with sound support
1336 --with-x-toolkit=KIT use an X toolkit
1337 (KIT = yes/lucid/athena/motif/gtk/no)
1338 --with-xpm use -lXpm for displaying XPM images
1339 --with-jpeg use -ljpeg for displaying JPEG images
1340 --with-tiff use -ltiff for displaying TIFF images
1341 --with-gif use -lungif for displaying GIF images
1342 --with-png use -lpng for displaying PNG images
1343 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1344 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1345 --without-toolkit-scroll-bars
1346 don't use Motif or Xaw3d scroll bars
1347 --without-xim don
't use X11 XIM
1348 --without-carbon don't use Carbon GUI on Mac OS X
1349 --with-x use the X Window System
1351 Some influential environment variables
:
1352 CC C compiler
command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1355 nonstandard directory
<lib dir
>
1356 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1357 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1358 you have headers
in a nonstandard directory
<include dir
>
1360 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1362 Use these variables to override the choices made by
`configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1378 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1392 .) # We are building in place.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1426 generated by GNU Autoconf 2.61
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1439 It was created by $as_me, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1452 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1453 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1454 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1455 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1456 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1458 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1459 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1461 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1462 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1463 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1464 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1465 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1466 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1467 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1500 ac_must_keep_next=false
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1511 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1529 -* ) ac_must_keep_next=true ;;
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1556 # The following way of writing the cache mishandles newlines in values,
1558 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1559 eval ac_val=\$$ac_var
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1573 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1593 for ac_var in $ac_subst_vars
1595 eval ac_val=\$$ac_var
1597 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1599 echo "$ac_var='\''$ac_val'\''"
1603 if test -n "$ac_subst_files"; then
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1610 for ac_var in $ac_subst_files
1612 eval ac_val=\$$ac_var
1614 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1616 echo "$ac_var='\''$ac_val'\''"
1621 if test -s confdefs.h; then
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1647 # Predefined preprocessor variables.
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1712 ac_header_list="$ac_header_list sys/time.h"
1713 ac_header_list="$ac_header_list unistd.h"
1714 ac_func_list="$ac_func_list alarm"
1715 # Check that the precious variables saved in the cache have kept the same
1717 ac_cache_corrupted=false
1718 for ac_var in $ac_precious_vars; do
1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
1723 case $ac_old_set,$ac_new_set in
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1726 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1730 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1736 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1737 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1738 echo "$as_me: former value
: $ac_old_val" >&2;}
1739 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1740 echo "$as_me: current value
: $ac_new_val" >&2;}
1741 ac_cache_corrupted=:
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1748 *) ac_arg=$ac_var=$ac_new_val ;;
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1756 if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1758 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1759 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1787 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1790 test "$program_prefix" != NONE &&
1791 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1792 # Use a double $ so make ignores it.
1793 test "$program_suffix" != NONE &&
1794 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1795 # Double any \ or $. echo might interpret backslashes.
1796 # By default was `s
,x
,x
', remove it if useless.
1797 cat <<\_ACEOF >conftest.sed
1798 s/[\\$]/&&/g;s/;s,x,x,$//
1800 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1804 lispdir='${datadir}/emacs
/${version}/lisp
'
1805 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1806 '${datadir}/emacs
/site-lisp
'
1807 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1808 etcdir='${datadir}/emacs
/${version}/etc
'
1809 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1810 docdir='${datadir}/emacs
/${version}/etc
'
1811 gamedir='${localstatedir}/games
/emacs
'
1816 # Check whether --with-gcc was given.
1817 if test "${with_gcc+set}" = set; then
1822 # Check whether --with-pop was given.
1823 if test "${with_pop+set}" = set; then
1824 withval=$with_pop; if test "$withval" = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define MAIL_USE_POP 1
1832 cat >>confdefs.h <<\_ACEOF
1833 #define MAIL_USE_POP 1
1840 # Check whether --with-kerberos was given.
1841 if test "${with_kerberos+set}" = set; then
1842 withval=$with_kerberos; if test "$withval" = yes; then
1843 cat >>confdefs.h <<\_ACEOF
1852 # Check whether --with-kerberos5 was given.
1853 if test "${with_kerberos5+set}" = set; then
1854 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1855 if test "${with_kerberos+set}" != set; then
1857 cat >>confdefs.h <<\_ACEOF
1863 cat >>confdefs.h <<\_ACEOF
1871 # Check whether --with-hesiod was given.
1872 if test "${with_hesiod+set}" = set; then
1873 withval=$with_hesiod; if test "$withval" = yes; then
1875 cat >>confdefs.h <<\_ACEOF
1884 # Check whether --with-sound was given.
1885 if test "${with_sound+set}" = set; then
1886 withval=$with_sound;
1891 # Check whether --with-x-toolkit was given.
1892 if test "${with_x_toolkit+set}" = set; then
1893 withval=$with_x_toolkit; case "${withval}" in
1894 y | ye | yes ) val=athena ;;
1896 l | lu | luc | luci | lucid ) val=lucid ;;
1897 a | at | ath | athe | athen | athena ) val=athena ;;
1898 m | mo | mot | moti | motif ) val=motif ;;
1899 g | gt | gtk ) val=gtk ;;
1901 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1902 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1903 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1904 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1905 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1906 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1907 { (exit 1); exit 1; }; }
1915 # Check whether --with-xpm was given.
1916 if test "${with_xpm+set}" = set; then
1921 # Check whether --with-jpeg was given.
1922 if test "${with_jpeg+set}" = set; then
1927 # Check whether --with-tiff was given.
1928 if test "${with_tiff+set}" = set; then
1933 # Check whether --with-gif was given.
1934 if test "${with_gif+set}" = set; then
1939 # Check whether --with-png was given.
1940 if test "${with_png+set}" = set; then
1945 # Check whether --with-gtk was given.
1946 if test "${with_gtk+set}" = set; then
1951 # Check whether --with-pkg-config-prog was given.
1952 if test "${with_pkg_config_prog+set}" = set; then
1953 withval=$with_pkg_config_prog;
1957 # Check whether --with-toolkit-scroll-bars was given.
1958 if test "${with_toolkit_scroll_bars+set}" = set; then
1959 withval=$with_toolkit_scroll_bars;
1963 # Check whether --with-xim was given.
1964 if test "${with_xim+set}" = set; then
1969 # Check whether --with-carbon was given.
1970 if test "${with_carbon+set}" = set; then
1971 withval=$with_carbon;
1974 # Check whether --enable-carbon-app was given.
1975 if test "${enable_carbon_app+set}" = set; then
1976 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1980 # Check whether --enable-asserts was given.
1981 if test "${enable_asserts+set}" = set; then
1982 enableval=$enable_asserts; USE_XASSERTS=$enableval
1988 # Check whether --enable-maintainer-mode was given.
1989 if test "${enable_maintainer_mode+set}" = set; then
1990 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1992 USE_MAINTAINER_MODE=no
1995 if test $USE_MAINTAINER_MODE = yes; then
2002 # Check whether --enable-locallisppath was given.
2003 if test "${enable_locallisppath+set}" = set; then
2004 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2006 elif test "${enableval}" != "yes"; then
2007 locallisppath=${enableval}
2012 #### Make srcdir absolute, if it isn't already. It
's important to
2013 #### avoid running the path through pwd unnecessarily, since pwd can
2014 #### give you automounter prefixes, which can go away. We do all this
2015 #### so Emacs can find its files when run uninstalled.
2016 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2021 ## We may be able to use the $PWD environment variable to make this
2022 ## absolute. But sometimes PWD is inaccurate.
2023 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2024 ## but that tested only for a well-formed and valid PWD,
2025 ## it did not object when PWD was well-formed and valid but just wrong.
2026 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2030 srcdir
="`(cd ${srcdir}; pwd)`"
2033 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2036 #### Check if the source directory already has a configured system in it.
2037 if test `pwd` != `(cd ${srcdir} && pwd)` \
2038 && test -f "${srcdir}/src/config.h" ; then
2039 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2040 as a build directory right now; it has been configured in its own
2041 right. To configure in another directory as well, you MUST
2042 use GNU make. If you do not have GNU make, then you must
2043 now do \`make distclean' in ${srcdir},
2044 and then run $0 again." >&5
2045 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2046 as a build directory right now; it has been configured in its own
2047 right. To configure in another directory as well, you MUST
2048 use GNU make. If you do not have GNU make, then you must
2049 now do \`make distclean' in ${srcdir},
2050 and then run $0 again." >&2;}
2053 #### Given the configuration name, set machfile and opsysfile to the
2054 #### names of the m/*.h and s/*.h files we should use.
2056 ### Canonicalize the configuration name.
2059 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2060 if test -f "$ac_dir/install-sh"; then
2062 ac_install_sh
="$ac_aux_dir/install-sh -c"
2064 elif test -f "$ac_dir/install.sh"; then
2066 ac_install_sh
="$ac_aux_dir/install.sh -c"
2068 elif test -f "$ac_dir/shtool"; then
2070 ac_install_sh
="$ac_aux_dir/shtool install -c"
2074 if test -z "$ac_aux_dir"; then
2075 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2076 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2077 { (exit 1); exit 1; }; }
2080 # These three variables are undocumented and unsupported,
2081 # and are intended to be withdrawn in a future Autoconf release.
2082 # They can cause serious problems if a builder's source tree is in a directory
2083 # whose full name contains unusual characters.
2084 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2085 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2086 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2089 # Make sure we can run config.sub.
2090 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2091 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2092 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2093 { (exit 1); exit 1; }; }
2095 { echo "$as_me:$LINENO: checking build system type" >&5
2096 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2097 if test "${ac_cv_build+set}" = set; then
2098 echo $ECHO_N "(cached) $ECHO_C" >&6
2100 ac_build_alias
=$build_alias
2101 test "x$ac_build_alias" = x
&&
2102 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2103 test "x$ac_build_alias" = x
&&
2104 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2105 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2106 { (exit 1); exit 1; }; }
2107 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2108 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2110 { (exit 1); exit 1; }; }
2113 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2114 echo "${ECHO_T}$ac_cv_build" >&6; }
2115 case $ac_cv_build in
2117 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2118 echo "$as_me: error: invalid value of canonical build" >&2;}
2119 { (exit 1); exit 1; }; };;
2122 ac_save_IFS
=$IFS; IFS
='-'
2128 # Remember, the first character of IFS is used to create $*,
2129 # except with old shells:
2132 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2135 { echo "$as_me:$LINENO: checking host system type" >&5
2136 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2137 if test "${ac_cv_host+set}" = set; then
2138 echo $ECHO_N "(cached) $ECHO_C" >&6
2140 if test "x$host_alias" = x
; then
2141 ac_cv_host
=$ac_cv_build
2143 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2144 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2145 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2146 { (exit 1); exit 1; }; }
2150 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2151 echo "${ECHO_T}$ac_cv_host" >&6; }
2154 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2155 echo "$as_me: error: invalid value of canonical host" >&2;}
2156 { (exit 1); exit 1; }; };;
2159 ac_save_IFS
=$IFS; IFS
='-'
2165 # Remember, the first character of IFS is used to create $*,
2166 # except with old shells:
2169 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2173 configuration
=${host_alias-$host}
2177 ### If you add support for a new configuration, add code to this
2178 ### switch statement to recognize your configuration name and select
2179 ### the appropriate operating system and machine description files.
2181 ### You would hope that you could choose an m/*.h file pretty much
2182 ### based on the machine portion of the configuration name, and an s-
2183 ### file based on the operating system portion. However, it turns out
2184 ### that each m/*.h file is pretty manufacturer-specific - for
2185 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2186 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2187 ### machines. So we basically have to have a special case for each
2188 ### configuration name.
2190 ### As far as handling version numbers on operating systems is
2191 ### concerned, make sure things will fail in a fixable way. If
2192 ### /etc/MACHINES doesn't say anything about version numbers, be
2193 ### prepared to handle anything reasonably. If version numbers
2194 ### matter, be sure /etc/MACHINES says something about it.
2196 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2197 ### "System V Release 4"; he writes, "The old convention encouraged
2198 ### confusion between `system' and `release' levels'."
2200 machine
='' opsys
='' unported
=no
2201 case "${canonical}" in
2206 case "${canonical}" in
2207 alpha
*-*-freebsd*) machine
=alpha
;;
2208 ia64-
*-freebsd*) machine
=ia64
;;
2209 sparc64-
*-freebsd*) machine
=sparc
;;
2210 powerpc-
*-freebsd*) machine
=macppc
;;
2211 i
[3456]86-*-freebsd*) machine
=intel386
;;
2212 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2219 if test -f /usr
/lib
/crti.o
; then
2221 cat >>confdefs.h
<<\_ACEOF
2227 case "${canonical}" in
2228 alpha
*-*-netbsd*) machine
=alpha
;;
2229 i
[3456]86-*-netbsd*) machine
=intel386
;;
2231 # This is somewhat bogus.
2232 machine
=hp9000s300
;;
2233 mips-
*-netbsd*) machine
=pmax
;;
2234 mipsel-
*-netbsd*) machine
=pmax
;;
2235 mipseb-
*-netbsd*) machine
=pmax
;;
2236 ns32k-
*-netbsd*) machine
=ns32000
;;
2237 powerpc-
*-netbsd*) machine
=macppc
;;
2238 sparc
*-*-netbsd*) machine
=sparc
;;
2239 vax-
*-netbsd*) machine
=vax
;;
2240 arm-
*-netbsd*) machine
=arm
;;
2241 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2242 hppa-
*-netbsd*) machine
=hp800
;;
2243 shle-
*-netbsd*) machine
=sh3el
;;
2250 case "${canonical}" in
2251 alpha
*-*-openbsd*) machine
=alpha
;;
2252 arm-
*-openbsd*) machine
=arm
;;
2253 hppa-
*-openbsd*) machine
=hp9000s300
;;
2254 i386-
*-openbsd*) machine
=intel386
;;
2255 m68k-
*-openbsd*) machine
=hp9000s300
;;
2256 m88k-
*-openbsd*) machine
=aviion
;;
2257 mips64-
*-openbsd*) machine
=mips64
;;
2258 powerpc-
*-openbsd*) machine
=macppc
;;
2259 sh-
*-openbsd*) machine
=sh3el
;;
2260 sparc
*-*-openbsd*) machine
=sparc
;;
2261 vax-
*-openbsd*) machine
=vax
;;
2262 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2269 case "${canonical}" in
2270 i
[3456]86-*-lynxos*) machine
=intel386
;;
2271 powerpc-
*-lynxos*) machine
=powerpc
;;
2276 arm-acorn-riscix1.1
* )
2277 machine
=acorn opsys
=riscix1-1
2279 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2280 ## This name is riscix12 instead of riscix1.2
2281 ## to avoid a file name conflict on MSDOS.
2282 machine
=acorn opsys
=riscix12
2288 case "${canonical}" in
2289 i
[345]86-*-bsdi*) machine
=intel386
;;
2290 sparc-
*-bsdi*) machine
=sparc
;;
2291 powerpc-
*-bsdi*) machine
=macppc
;;
2293 case "${canonical}" in
2294 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2295 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2296 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2297 *-*-bsdi3* ) opsys
=bsdos3
;;
2298 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2303 ## Strictly speaking, we need the version of the alliant operating
2304 ## system to choose the right machine file, but currently the
2305 ## configuration name doesn't tell us enough to choose the right
2306 ## one; we need to give alliants their own operating system name to
2307 ## do this right. When someone cares, they can help us.
2309 machine
=alliant4 opsys
=bsd4-2
2312 machine
=alliant-2800 opsys
=bsd4-3
2315 ## Alpha (DEC) machines.
2317 machine
=alpha opsys
=osf1
2318 # This is needed to find X11R6.1 libraries for certain tests.
2319 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2320 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2321 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2322 # due to non-traditional preprocessing with the current compiler
2323 # defaults. OSF 4 can also have that compiler version, and there
2324 # seems always to have been a usable /usr/bin/cpp.
2325 NON_GNU_CPP
=/usr
/bin
/cpp
2326 case "${canonical}" in
2327 alpha
*-dec-osf[5-9]*)
2332 alpha
*-*-linux-gnu* )
2333 machine
=alpha opsys
=gnu-linux
2337 machine
=arm opsys
=gnu-linux
2342 machine
=altos opsys
=usg5-2
2347 machine
=amdahl opsys
=usg5-2-2
2350 ## Apollo, Domain/OS
2352 machine
=apollo opsys
=bsd4-3
2355 ## Apple Darwin / Mac OS X
2357 case "${canonical}" in
2358 i
[3456]86-* ) machine
=intel386
;;
2359 powerpc-
* ) machine
=powermac
;;
2363 # Define CPP as follows to make autoconf work correctly.
2364 CPP
="${CC-cc} -E -no-cpp-precomp"
2365 # Use fink packages if available.
2366 if test -d /sw
/include
&& test -d /sw
/lib
; then
2367 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2368 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2369 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2373 ## AT&T 3b2, 3b5, 3b15, 3b20
2375 machine
=att3b opsys
=usg5-2-2
2378 ## AT&T 3b1 - The Mighty Unix PC!
2380 machine
=7300 opsys
=usg5-2-2
2385 machine
=ibmrs6000 opsys
=aix3-2
2390 machine
=dpx2 opsys
=usg5-3
2395 machine
=sps7 opsys
=usg5-2
2398 ## CCI 5/32, 6/32 -- see "Tahoe".
2401 ## I don't know what configuration name to use for this; config.sub
2402 ## doesn't seem to know anything about it. Hey, Celerity users, get
2403 ## in touch with us!
2404 celerity-celerity-bsd
* )
2405 machine
=celerity opsys
=bsd4-2
2409 ## What operating systems does this chip run that Emacs has been
2413 ## We'll use the catch-all code at the bottom to guess the
2414 ## operating system.
2418 mips-compaq-nonstopux
* )
2419 machine
=nonstopux opsys
=nonstopux
2423 *-convex-bsd* |
*-convex-convexos* )
2424 machine
=convex opsys
=bsd4-3
2425 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2426 NON_GNU_CPP
="cc -E -P"
2430 i
[3456]86-cubix-sysv* )
2431 machine
=intel386 opsys
=usg5-3
2435 cydra
*-cydrome-sysv* )
2436 machine
=cydra5 opsys
=usg5-3
2439 ## Data General AViiON Machines
2440 ## DG changed naming conventions with the release of 5.4.4.10, they
2441 ## dropped the initial 5.4 but left the intervening R. Because of the
2442 ## R this shouldn't conflict with older versions of the OS (which I
2443 ## think were named like dgux4.*). In addition, DG new AViiONs series
2444 ## uses either Motorola M88k or Intel Pentium CPUs.
2445 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2446 machine
=aviion opsys
=dgux4
2448 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2449 ## This name is dgux5-4-3 instead of dgux5-4r3
2450 ## to avoid a file name conflict on MSDOS.
2451 machine
=aviion opsys
=dgux5-4-3
2453 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2454 machine
=aviion opsys
=dgux5-4r2
2457 machine
=aviion opsys
=dgux
2460 ## Data General AViiON Intel (x86) Machines
2461 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2462 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2463 i
[345]86-dg-dguxR4* )
2464 machine
=aviion-intel opsys
=dgux4
2468 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2469 machine
=pmax opsys
=bsd4-2
2471 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2472 machine
=pmax opsys
=bsd4-3
2475 machine
=pmax opsys
=ultrix4-3
2478 machine
=pmax opsys
=osf1
2480 mips-dec-mach_bsd4.3
* )
2481 machine
=pmax opsys
=mach-bsd4-3
2484 ## Motorola Delta machines
2485 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2486 machine
=delta opsys
=usg5-3
2487 if test -z "`type gnucc | grep 'not found'`"
2489 if test -s /etc
/167config
2490 then CC
="gnucc -m68040"
2491 else CC
="gnucc -m68881"
2494 if test -z "`type gcc | grep 'not found'`"
2500 m88k-motorola-sysv4
* )
2501 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2502 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2503 # I hope there are not other 4.0 versions for this machine
2504 # which really need usg5-4 instead.
2505 machine
=delta88k opsys
=usg5-4-2
2507 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2508 machine
=delta88k opsys
=usg5-3
2513 machine
=dual opsys
=usg5-2
2515 m68
*-dual-uniplus* )
2516 machine
=dual opsys
=unipl5-2
2521 machine
=elxsi opsys
=usg5-2
2526 machine
=ns16000 opsys
=umax
2529 ## The GEC 63 - apparently, this port isn't really finished yet.
2530 # I'm sure we finished off the last of the machines, though. -- fx
2532 ## Gould Power Node and NP1
2534 machine
=gould opsys
=bsd4-2
2537 machine
=gould opsys
=bsd4-3
2540 machine
=gould-np1 opsys
=bsd4-3
2543 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2544 ## as far as Emacs is concerned).
2546 # Build needs to be different on 7.0 and later releases
2547 case "`uname -r`" in
2548 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2549 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2551 NON_GNU_CPP
="/lib/cpp"
2553 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2555 machine
=nh3000 opsys
=cxux
2557 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2558 powerpc-harris-powerunix
)
2559 machine
=nh6000 opsys
=powerunix
2560 NON_GNU_CPP
="cc -Xo -E -P"
2563 xps
*-honeywell-sysv* )
2564 machine
=xps100 opsys
=usg5-2
2567 ## HP 9000 series 200 or 300
2569 machine
=hp9000s300 opsys
=bsd4-3
2571 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2573 case "`uname -r`" in
2574 ## Someone's system reports A.B8.05 for this.
2575 ## I wonder what other possibilities there are.
2576 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2577 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2578 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2579 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2580 *) machine
=hp9000s300 opsys
=hpux
;;
2584 hppa
*-*-linux-gnu* )
2585 machine
=hp800 opsys
=gnu-linux
2589 machine
=hp800 opsys
=nextstep
2594 machine
=orion opsys
=bsd4-2
2596 clipper-orion-bsd
* )
2597 machine
=orion105 opsys
=bsd4-2
2601 i
[3456]86-ibm-aix1.1
* )
2602 machine
=ibmps2-aix opsys
=usg5-2-2
2604 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2605 machine
=ibmps2-aix opsys
=usg5-3
2608 machine
=ibm370aix opsys
=usg5-3
2611 machine
=ibms390 opsys
=gnu-linux
2613 s390x-
*-linux-gnu* )
2614 machine
=ibms390x opsys
=gnu-linux
2616 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2617 machine
=ibmrs6000 opsys
=aix3-1
2619 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2620 machine
=ibmrs6000 opsys
=aix3-2-5
2622 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2623 machine
=ibmrs6000 opsys
=aix4-1
2625 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2626 machine
=ibmrs6000 opsys
=aix4-2
2628 rs6000-ibm-aix4.3
* | powerpc-ibm-aix4.3
* )
2629 machine
=ibmrs6000 opsys
=aix4-2
2631 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2632 machine
=ibmrs6000 opsys
=aix4-2
2634 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2635 machine
=ibmrs6000 opsys
=aix4
2637 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2638 machine
=ibmrs6000 opsys
=aix4-1
2640 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2641 machine
=ibmrs6000 opsys
=aix3-2
2644 machine
=ibmrt opsys
=bsd4-3
2647 machine
=ibmrt opsys
=bsd4-2
2650 machine
=ibmrt opsys
=bsd4-3
2653 machine
=ibmrt opsys
=bsd4-2
2656 machine
=ibmrt opsys
=bsd4-3
2659 machine
=ibmrt opsys
=bsd4-3
2662 machine
=ibmrt-aix opsys
=usg5-2-2
2665 ## Integrated Solutions `Optimum V'
2667 machine
=isi-ov opsys
=bsd4-2
2670 machine
=isi-ov opsys
=bsd4-3
2673 ## Intel 386 machines where we do care about the manufacturer
2674 i
[3456]86-intsys-sysv* )
2675 machine
=is386 opsys
=usg5-2-2
2679 i
[3456]86-prime-sysv* )
2680 machine
=i386 opsys
=usg5-3
2683 ## Sequent Symmetry running Dynix
2684 i
[3456]86-sequent-bsd* )
2685 machine
=symmetry opsys
=bsd4-3
2688 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2689 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2690 machine
=sequent-ptx opsys
=ptx4
2691 NON_GNU_CPP
=/lib
/cpp
2694 ## Sequent Symmetry running DYNIX/ptx
2695 ## Use the old cpp rather than the newer ANSI one.
2696 i
[3456]86-sequent-ptx* )
2697 machine
=sequent-ptx opsys
=ptx
2698 NON_GNU_CPP
="/lib/cpp"
2701 ## ncr machine running svr4.3.
2702 i
[3456]86-ncr-sysv4.3
)
2703 machine
=ncr386 opsys
=usg5-4-3
2706 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2707 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2708 i
[3456]86-ncr-sysv* )
2709 machine
=ncr386 opsys
=usg5-4-2
2712 ## Intel Paragon OSF/1
2714 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2719 machine
=i860 opsys
=usg5-4
2720 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2721 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2724 ## Macintosh PowerPC
2725 powerpc
*-*-linux-gnu* )
2726 machine
=macppc opsys
=gnu-linux
2729 ## Masscomp machines
2730 m68
*-masscomp-rtu* )
2731 machine
=masscomp opsys
=rtu
2734 ## Megatest machines
2735 m68
*-megatest-bsd* )
2736 machine
=mega68 opsys
=bsd4-2
2739 ## Workstations sold by MIPS
2740 ## This is not necessarily all workstations using the MIPS processor -
2741 ## Irises are produced by SGI, and DECstations by DEC.
2743 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2744 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2745 ## it gives for choosing between the alternatives seems to be "Use
2746 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2747 ## the BSD world." I'll assume that these are instructions for
2748 ## handling two odd situations, and that every other situation
2749 ## should use mips.h and usg5-2-2, they being listed first.
2752 ## Fall through to the general code at the bottom to decide on the OS.
2754 mips-mips-riscos4
* )
2755 machine
=mips4 opsys
=bsd4-3
2756 NON_GNU_CC
="cc -systype bsd43"
2757 NON_GNU_CPP
="cc -systype bsd43 -E"
2759 mips-mips-riscos5
* )
2760 machine
=mips4 opsys
=riscos5
2761 NON_GNU_CC
="cc -systype bsd43"
2762 NON_GNU_CPP
="cc -systype bsd43 -E"
2765 machine
=mips opsys
=bsd4-3
2768 machine
=mips opsys
=usg5-2-2
2772 m68
*-next-* | m68k-
*-nextstep* )
2773 machine
=m68k opsys
=nextstep
2776 ## The complete machine from National Semiconductor
2778 machine
=ns32000 opsys
=usg5-2
2782 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2783 machine
=tower32 opsys
=usg5-2-2
2785 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2786 machine
=tower32v3 opsys
=usg5-3
2791 machine
=ews4800 opsys
=ux4800
2794 ## Nixdorf Targon 31
2795 m68
*-nixdorf-sysv* )
2796 machine
=targon31 opsys
=usg5-2-2
2801 machine
=nu opsys
=usg5-2
2806 machine
=plexus opsys
=usg5-2
2810 ## I don't really have any idea what sort of processor the Pyramid has,
2811 ## so I'm assuming it is its own architecture.
2812 pyramid-pyramid-bsd
* )
2813 machine
=pyramid opsys
=bsd4-2
2817 ns32k-sequent-bsd4.2
* )
2818 machine
=sequent opsys
=bsd4-2
2820 ns32k-sequent-bsd4.3
* )
2821 machine
=sequent opsys
=bsd4-3
2825 mips-siemens-sysv
* | mips-sni-sysv
*)
2826 machine
=mips-siemens opsys
=usg5-4
2827 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2828 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2831 ## Silicon Graphics machines
2832 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2834 machine
=irist opsys
=iris3-5
2836 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2837 machine
=irist opsys
=iris3-6
2841 machine
=iris4d opsys
=irix3-3
2844 machine
=iris4d opsys
=irix4-0
2847 machine
=iris4d opsys
=irix6-5
2848 # Without defining _LANGUAGE_C, things get masked out in the headers
2849 # so that, for instance, grepping for `free' in stdlib.h fails and
2850 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2851 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2852 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2855 machine
=iris4d opsys
=irix6-0
2856 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2857 # but presumably it does no harm.
2858 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2859 # -32 probably isn't necessary in later v.6s -- anyone know which?
2860 NON_GCC_TEST_OPTIONS
=-32
2862 mips-sgi-irix5.
[01]* )
2863 machine
=iris4d opsys
=irix5-0
2865 mips-sgi-irix5
* | mips-sgi-irix
* )
2866 machine
=iris4d opsys
=irix5-2
2871 machine
=news opsys
=bsd4-2
2874 machine
=news opsys
=bsd4-3
2876 m68
*-sony-newsos3* | m68
*-sony-news3*)
2877 machine
=news opsys
=bsd4-3
2879 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2880 machine
=news-risc opsys
=bsd4-3
2882 mips-sony-newsos6
* )
2883 machine
=news-r6 opsys
=newsos6
2886 machine
=news-risc opsys
=newsos5
2891 machine
=stride opsys
=usg5-2
2895 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2896 machine
=sparc opsys
=gnu-linux
2899 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2900 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2901 | rs6000-
*-solaris2*)
2902 case "${canonical}" in
2903 m68
*-sunos1* ) machine
=sun1
;;
2904 m68
*-sunos2* ) machine
=sun2
;;
2905 m68
* ) machine
=sun3
;;
2906 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2907 i
[3456]86-*-* ) machine
=intel386
;;
2908 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2909 powerpcle
* ) machine
=powerpcle
;;
2910 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2911 sparc
* ) machine
=sparc
;;
2914 case "${canonical}" in
2915 ## The Sun386 didn't get past 4.0.
2916 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2917 *-sunos4.0
* ) opsys
=sunos4-0
;;
2918 *-sunos4.1.
[3-9]*noshare
)
2919 ## This name is sunos413 instead of sunos4-1-3
2920 ## to avoid a file name conflict on MSDOS.
2922 NON_GNU_CPP
=/usr
/lib
/cpp
2923 NON_GCC_TEST_OPTIONS
=-Bstatic
2924 GCC_TEST_OPTIONS
=-static
2926 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2928 NON_GNU_CPP
=/usr
/lib
/cpp
2930 *-sunos4* |
*-sunos )
2932 NON_GCC_TEST_OPTIONS
=-Bstatic
2933 GCC_TEST_OPTIONS
=-static
2935 *-sunos5.3
* |
*-solaris2.3
* )
2937 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2939 *-sunos5.4
* |
*-solaris2.4
* )
2941 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2944 *-sunos5.5
* |
*-solaris2.5
* )
2946 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2949 *-sunos5.6
* |
*-solaris2.6
* )
2951 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2954 *-sunos5* |
*-solaris* )
2956 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2960 ## Watch out for a compiler that we know will not work.
2961 case "${canonical}" in
2962 *-solaris* |
*-sunos5* )
2963 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2964 ## /usr/ucb/cc doesn't work;
2965 ## we should find some other compiler that does work.
2973 machine
=sparc opsys
=nextstep
2977 m68
*-tadpole-sysv* )
2978 machine
=tad68k opsys
=usg5-3
2982 tahoe-tahoe-bsd4.2
* )
2983 machine
=tahoe opsys
=bsd4-2
2985 tahoe-tahoe-bsd4.3
* )
2986 machine
=tahoe opsys
=bsd4-3
2989 ## Tandem Integrity S2
2991 machine
=tandem-s2 opsys
=usg5-3
2995 m88k-tektronix-sysv3
* )
2996 machine
=tekxd88 opsys
=usg5-3
2999 ## Tektronix 16000 box (6130?)
3000 ns16k-tektronix-bsd
* )
3001 machine
=ns16000 opsys
=bsd4-2
3004 ## src/m/tek4300.h hints that this is a m68k machine.
3005 m68
*-tektronix-bsd* )
3006 machine
=tek4300 opsys
=bsd4-3
3010 ## We seem to have lost the machine-description file titan.h!
3012 machine
=titan opsys
=usg5-3
3015 ## Ustation E30 (SS5E)
3016 m68
*-unisys-uniplus* )
3017 machine
=ustation opsystem
=unipl5-2
3023 case "${canonical}" in
3024 *-bsd4.1
* ) opsys
=bsd4-1
;;
3025 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3026 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3027 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3028 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3029 *-vms* ) opsys
=vms
;;
3035 ns16k-whitechapel-
* )
3037 ## We don't know what sort of OS runs on these; we'll let the
3038 ## operating system guessing code below try.
3043 machine
=wicat opsys
=usg5-2
3048 machine
=ia64 opsys
=gnu-linux
3051 ## Intel 386 machines where we don't care about the manufacturer
3054 case "${canonical}" in
3055 *-cygwin ) opsys
=cygwin
;;
3056 *-darwin* ) opsys
=darwin
3057 CPP
="${CC-cc} -E -no-cpp-precomp"
3059 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3060 *-isc2.2
* ) opsys
=isc2-2
;;
3061 *-isc4.0
* ) opsys
=isc4-0
;;
3062 *-isc4.
* ) opsys
=isc4-1
3063 GCC_TEST_OPTIONS
=-posix
3064 NON_GCC_TEST_OPTIONS
=-Xp
3066 *-isc* ) opsys
=isc3-0
;;
3067 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3068 *-esix* ) opsys
=esix
;;
3069 *-xenix* ) opsys
=xenix
;;
3070 *-linux-gnu* ) opsys
=gnu-linux
;;
3071 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3072 *-sco3.2v5
* ) opsys
=sco5
3073 NON_GNU_CPP
=/lib
/cpp
3074 # Prevent -belf from being passed to $CPP.
3075 # /lib/cpp does not accept it.
3076 OVERRIDE_CPPFLAGS
=" "
3078 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3079 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3080 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3081 *-386bsd* ) opsys
=386bsd
;;
3082 *-nextstep* ) opsys
=nextstep
;;
3083 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3087 ## m68k Linux-based GNU system
3089 machine
=m68k opsys
=gnu-linux
3092 ## Mips Linux-based GNU system
3093 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3094 machine
=mips opsys
=gnu-linux
3098 sparc-fujitsu-sysv4
* )
3099 machine
=sparc opsys
=uxpds
3100 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3105 f301-fujitsu-uxpv4.1
)
3106 machine
=f301 opsys
=uxpv
3109 ## AMD x86-64 Linux-based GNU system
3110 x86_64-
*-linux-gnu* )
3111 machine
=amdx86-64 opsys
=gnu-linux
3114 ## Tensilica Xtensa Linux-based GNU system
3115 xtensa-
*-linux-gnu* )
3116 machine
=xtensa opsys
=gnu-linux
3124 ### If the code above didn't choose an operating system, just choose
3125 ### an operating system based on the configuration name. You really
3126 ### only want to use this when you have no idea what the right
3127 ### operating system is; if you know what operating systems a machine
3128 ### runs, it's cleaner to make it explicit in the case statement
3130 if test x
"${opsys}" = x
; then
3131 case "${canonical}" in
3132 *-gnu* ) opsys
=gnu
;;
3133 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3134 *-bsd4.2
) opsys
=bsd4-2
;;
3135 *-bsd4.3
) opsys
=bsd4-3
;;
3136 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3137 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3138 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3139 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3140 *-sysv4.2uw
* ) opsys
=unixware
;;
3141 *-sysv5uw* ) opsys
=unixware
;;
3142 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3143 *-sysv4.1
* |
*-sysvr4.1
* )
3144 NON_GNU_CPP
=/usr
/lib
/cpp
3146 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3147 if [ x
$NON_GNU_CPP = x
]; then
3148 if [ -f /usr
/ccs
/lib
/cpp
]; then
3149 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3151 NON_GNU_CPP
=/lib
/cpp
3155 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3164 if test $unported = yes; then
3165 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3166 Check \`etc/MACHINES' for recognized configuration names." >&5
3167 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3168 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3169 { (exit 1); exit 1; }; }
3172 machfile
="m/${machine}.h"
3173 opsysfile
="s/${opsys}.h"
3176 #### Choose a compiler.
3177 test -n "$CC" && cc_specified
=yes
3179 # Save the value of CFLAGS that the user specified.
3180 SPECIFIED_CFLAGS
="$CFLAGS"
3183 "yes" ) CC
="gcc" GCC
=yes ;;
3184 "no" ) : ${CC=cc} ;;
3188 ac_cpp
='$CPP $CPPFLAGS'
3189 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3190 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3191 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3192 if test -n "$ac_tool_prefix"; then
3193 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3194 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3195 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3197 if test "${ac_cv_prog_CC+set}" = set; then
3198 echo $ECHO_N "(cached) $ECHO_C" >&6
3200 if test -n "$CC"; then
3201 ac_cv_prog_CC
="$CC" # Let the user override the test.
3203 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3207 test -z "$as_dir" && as_dir
=.
3208 for ac_exec_ext
in '' $ac_executable_extensions; do
3209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3210 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 if test -n "$CC"; then
3222 { echo "$as_me:$LINENO: result: $CC" >&5
3223 echo "${ECHO_T}$CC" >&6; }
3225 { echo "$as_me:$LINENO: result: no" >&5
3226 echo "${ECHO_T}no" >&6; }
3231 if test -z "$ac_cv_prog_CC"; then
3233 # Extract the first word of "gcc", so it can be a program name with args.
3234 set dummy gcc
; ac_word
=$2
3235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3237 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 if test -n "$ac_ct_CC"; then
3241 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3243 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3247 test -z "$as_dir" && as_dir
=.
3248 for ac_exec_ext
in '' $ac_executable_extensions; do
3249 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3250 ac_cv_prog_ac_ct_CC
="gcc"
3251 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3260 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3261 if test -n "$ac_ct_CC"; then
3262 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3263 echo "${ECHO_T}$ac_ct_CC" >&6; }
3265 { echo "$as_me:$LINENO: result: no" >&5
3266 echo "${ECHO_T}no" >&6; }
3269 if test "x$ac_ct_CC" = x
; then
3272 case $cross_compiling:$ac_tool_warned in
3274 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3275 whose name does not start with the host triplet. If you think this
3276 configuration is useful to you, please write to autoconf@gnu.org." >&5
3277 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3278 whose name does not start with the host triplet. If you think this
3279 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3280 ac_tool_warned
=yes ;;
3288 if test -z "$CC"; then
3289 if test -n "$ac_tool_prefix"; then
3290 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3291 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3294 if test "${ac_cv_prog_CC+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3297 if test -n "$CC"; then
3298 ac_cv_prog_CC
="$CC" # Let the user override the test.
3300 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3304 test -z "$as_dir" && as_dir
=.
3305 for ac_exec_ext
in '' $ac_executable_extensions; do
3306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3318 if test -n "$CC"; then
3319 { echo "$as_me:$LINENO: result: $CC" >&5
3320 echo "${ECHO_T}$CC" >&6; }
3322 { echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6; }
3329 if test -z "$CC"; then
3330 # Extract the first word of "cc", so it can be a program name with args.
3331 set dummy cc
; ac_word
=$2
3332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3334 if test "${ac_cv_prog_CC+set}" = set; then
3335 echo $ECHO_N "(cached) $ECHO_C" >&6
3337 if test -n "$CC"; then
3338 ac_cv_prog_CC
="$CC" # Let the user override the test.
3341 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3345 test -z "$as_dir" && as_dir
=.
3346 for ac_exec_ext
in '' $ac_executable_extensions; do
3347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3348 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3349 ac_prog_rejected
=yes
3353 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3360 if test $ac_prog_rejected = yes; then
3361 # We found a bogon in the path, so make sure we never use it.
3362 set dummy
$ac_cv_prog_CC
3364 if test $# != 0; then
3365 # We chose a different compiler from the bogus one.
3366 # However, it has the same basename, so the bogon will be chosen
3367 # first if we set CC to just the basename; use the full file name.
3369 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3375 if test -n "$CC"; then
3376 { echo "$as_me:$LINENO: result: $CC" >&5
3377 echo "${ECHO_T}$CC" >&6; }
3379 { echo "$as_me:$LINENO: result: no" >&5
3380 echo "${ECHO_T}no" >&6; }
3385 if test -z "$CC"; then
3386 if test -n "$ac_tool_prefix"; then
3387 for ac_prog
in cl.exe
3389 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3390 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3393 if test "${ac_cv_prog_CC+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 if test -n "$CC"; then
3397 ac_cv_prog_CC
="$CC" # Let the user override the test.
3399 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3403 test -z "$as_dir" && as_dir
=.
3404 for ac_exec_ext
in '' $ac_executable_extensions; do
3405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3406 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 if test -n "$CC"; then
3418 { echo "$as_me:$LINENO: result: $CC" >&5
3419 echo "${ECHO_T}$CC" >&6; }
3421 { echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6; }
3426 test -n "$CC" && break
3429 if test -z "$CC"; then
3431 for ac_prog
in cl.exe
3433 # Extract the first word of "$ac_prog", so it can be a program name with args.
3434 set dummy
$ac_prog; ac_word
=$2
3435 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3436 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3437 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3438 echo $ECHO_N "(cached) $ECHO_C" >&6
3440 if test -n "$ac_ct_CC"; then
3441 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3443 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3447 test -z "$as_dir" && as_dir
=.
3448 for ac_exec_ext
in '' $ac_executable_extensions; do
3449 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3450 ac_cv_prog_ac_ct_CC
="$ac_prog"
3451 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3460 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3461 if test -n "$ac_ct_CC"; then
3462 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3463 echo "${ECHO_T}$ac_ct_CC" >&6; }
3465 { echo "$as_me:$LINENO: result: no" >&5
3466 echo "${ECHO_T}no" >&6; }
3470 test -n "$ac_ct_CC" && break
3473 if test "x$ac_ct_CC" = x
; then
3476 case $cross_compiling:$ac_tool_warned in
3478 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3479 whose name does not start with the host triplet. If you think this
3480 configuration is useful to you, please write to autoconf@gnu.org." >&5
3481 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3482 whose name does not start with the host triplet. If you think this
3483 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3484 ac_tool_warned
=yes ;;
3493 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3494 See \`config.log' for more details." >&5
3495 echo "$as_me: error: no acceptable C compiler found in \$PATH
3496 See \`config.log' for more details." >&2;}
3497 { (exit 1); exit 1; }; }
3499 # Provide some information about the compiler.
3500 echo "$as_me:$LINENO: checking for C compiler version" >&5
3501 ac_compiler
=`set X $ac_compile; echo $2`
3502 { (ac_try
="$ac_compiler --version >&5"
3504 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3508 (eval "$ac_compiler --version >&5") 2>&5
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }
3512 { (ac_try="$ac_compiler -v >&5"
3514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3515 *) ac_try_echo
=$ac_try;;
3517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3518 (eval "$ac_compiler -v >&5") 2>&5
3520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3521 (exit $ac_status); }
3522 { (ac_try
="$ac_compiler -V >&5"
3524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_compiler -V >&5") 2>&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }
3533 cat >conftest.$ac_ext <<_ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h. */
3548 ac_clean_files_save=$ac_clean_files
3549 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3550 # Try to create an executable without -o first, disregard a.out.
3551 # It will help us diagnose broken compilers, and finding out an intuition
3553 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3554 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3555 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3557 # List of possible output files, starting from the most likely.
3558 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3559 # only as a last resort. b.out is created by i960 compilers.
3560 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3562 # The IRIX 6 linker writes into existing files which may not be
3563 # executable, retaining their permissions. Remove them first so a
3564 # subsequent execution test works.
3566 for ac_file in $ac_files
3569 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3570 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3575 if { (ac_try="$ac_link_default"
3577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3581 (eval "$ac_link_default") 2>&5
3583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3584 (exit $ac_status); }; then
3585 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3586 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3587 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3588 # so that the user can short-circuit this test for compilers unknown to
3590 for ac_file
in $ac_files ''
3592 test -f "$ac_file" ||
continue
3594 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3597 # We found the default executable, but exeext='' is most
3601 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3603 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3605 # We set ac_cv_exeext here because the later test for it is not
3606 # safe: cross compilers may not add the suffix if given an `-o'
3607 # argument, so we may need to know it at that point already.
3608 # Even if this section looks crufty: it has the advantage of
3615 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3621 { echo "$as_me:$LINENO: result: $ac_file" >&5
3622 echo "${ECHO_T}$ac_file" >&6; }
3623 if test -z "$ac_file"; then
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.
$ac_ext >&5
3627 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3628 See \`config.log' for more details." >&5
3629 echo "$as_me: error: C compiler cannot create executables
3630 See \`config.log' for more details." >&2;}
3631 { (exit 77); exit 77; }; }
3634 ac_exeext
=$ac_cv_exeext
3636 # Check that the compiler produces executables we can run. If not, either
3637 # the compiler is broken, or we cross compile.
3638 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3639 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3640 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3641 # If not cross compiling, check that we can run a simple program.
3642 if test "$cross_compiling" != yes; then
3643 if { ac_try
='./$ac_file'
3644 { (case "(($ac_try" in
3645 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3646 *) ac_try_echo=$ac_try;;
3648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3649 (eval "$ac_try") 2>&5
3651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3652 (exit $ac_status); }; }; then
3655 if test "$cross_compiling" = maybe; then
3658 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3659 If you meant to cross compile, use \`--host'.
3660 See \`config.log' for more details.
" >&5
3661 echo "$as_me: error
: cannot run C compiled programs.
3662 If you meant to cross compile
, use \
`--host'.
3663 See \`config.log
' for more details." >&2;}
3664 { (exit 1); exit 1; }; }
3668 { echo "$as_me:$LINENO: result: yes" >&5
3669 echo "${ECHO_T}yes" >&6; }
3671 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3672 ac_clean_files=$ac_clean_files_save
3673 # Check that the compiler produces executables we can run. If not, either
3674 # the compiler is broken, or we cross compile.
3675 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3676 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3677 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3678 echo "${ECHO_T}$cross_compiling" >&6; }
3680 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3681 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3682 if { (ac_try="$ac_link"
3684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3685 *) ac_try_echo=$ac_try;;
3687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3688 (eval "$ac_link") 2>&5
3690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3691 (exit $ac_status); }; then
3692 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3693 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3694 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3696 for ac_file
in conftest.exe conftest conftest.
*; do
3697 test -f "$ac_file" ||
continue
3699 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3700 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3706 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3707 See \`config.log' for more details." >&5
3708 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3709 See \`config.log' for more details." >&2;}
3710 { (exit 1); exit 1; }; }
3713 rm -f conftest
$ac_cv_exeext
3714 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3715 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3717 rm -f conftest.
$ac_ext
3718 EXEEXT
=$ac_cv_exeext
3720 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3721 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3722 if test "${ac_cv_objext+set}" = set; then
3723 echo $ECHO_N "(cached) $ECHO_C" >&6
3725 cat >conftest.
$ac_ext <<_ACEOF
3728 cat confdefs.h
>>conftest.
$ac_ext
3729 cat >>conftest.
$ac_ext <<_ACEOF
3730 /* end confdefs.h. */
3740 rm -f conftest.o conftest.obj
3741 if { (ac_try
="$ac_compile"
3743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3744 *) ac_try_echo=$ac_try;;
3746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3747 (eval "$ac_compile") 2>&5
3749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3750 (exit $ac_status); }; then
3751 for ac_file in conftest.o conftest.obj conftest.*; do
3752 test -f "$ac_file" || continue;
3754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3755 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3760 echo "$as_me: failed program was:" >&5
3761 sed 's/^/| /' conftest.$ac_ext >&5
3763 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3764 See \`config.log
' for more details." >&5
3765 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3766 See \`config.log' for more details.
" >&2;}
3767 { (exit 1); exit 1; }; }
3770 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3772 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3773 echo "${ECHO_T}$ac_cv_objext" >&6; }
3774 OBJEXT=$ac_cv_objext
3776 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3777 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3778 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3779 echo $ECHO_N "(cached
) $ECHO_C" >&6
3781 cat >conftest.$ac_ext <<_ACEOF
3784 cat confdefs.h >>conftest.$ac_ext
3785 cat >>conftest.$ac_ext <<_ACEOF
3786 /* end confdefs.h. */
3799 rm -f conftest.$ac_objext
3800 if { (ac_try="$ac_compile"
3802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3803 *) ac_try_echo=$ac_try;;
3805 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3806 (eval "$ac_compile") 2>conftest.er1
3808 grep -v '^ *+' conftest.er1 >conftest.err
3810 cat conftest.err >&5
3811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3812 (exit $ac_status); } && {
3813 test -z "$ac_c_werror_flag" ||
3814 test ! -s conftest.err
3815 } && test -s conftest.$ac_objext; then
3818 echo "$as_me: failed program was
:" >&5
3819 sed 's/^/| /' conftest.$ac_ext >&5
3824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3825 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3828 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3829 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3830 GCC=`test $ac_compiler_gnu = yes && echo yes`
3831 ac_test_CFLAGS=${CFLAGS+set}
3832 ac_save_CFLAGS=$CFLAGS
3833 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3834 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3835 if test "${ac_cv_prog_cc_g+set}" = set; then
3836 echo $ECHO_N "(cached
) $ECHO_C" >&6
3838 ac_save_c_werror_flag=$ac_c_werror_flag
3839 ac_c_werror_flag=yes
3842 cat >conftest.$ac_ext <<_ACEOF
3845 cat confdefs.h >>conftest.$ac_ext
3846 cat >>conftest.$ac_ext <<_ACEOF
3847 /* end confdefs.h. */
3857 rm -f conftest.$ac_objext
3858 if { (ac_try="$ac_compile"
3860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3861 *) ac_try_echo=$ac_try;;
3863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3864 (eval "$ac_compile") 2>conftest.er1
3866 grep -v '^ *+' conftest.er1 >conftest.err
3868 cat conftest.err >&5
3869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3870 (exit $ac_status); } && {
3871 test -z "$ac_c_werror_flag" ||
3872 test ! -s conftest.err
3873 } && test -s conftest.$ac_objext; then
3876 echo "$as_me: failed program was
:" >&5
3877 sed 's/^/| /' conftest.$ac_ext >&5
3880 cat >conftest.$ac_ext <<_ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3895 rm -f conftest.$ac_objext
3896 if { (ac_try="$ac_compile"
3898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3899 *) ac_try_echo=$ac_try;;
3901 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3902 (eval "$ac_compile") 2>conftest.er1
3904 grep -v '^ *+' conftest.er1 >conftest.err
3906 cat conftest.err >&5
3907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3908 (exit $ac_status); } && {
3909 test -z "$ac_c_werror_flag" ||
3910 test ! -s conftest.err
3911 } && test -s conftest.$ac_objext; then
3914 echo "$as_me: failed program was
:" >&5
3915 sed 's/^/| /' conftest.$ac_ext >&5
3917 ac_c_werror_flag=$ac_save_c_werror_flag
3919 cat >conftest.$ac_ext <<_ACEOF
3922 cat confdefs.h >>conftest.$ac_ext
3923 cat >>conftest.$ac_ext <<_ACEOF
3924 /* end confdefs.h. */
3934 rm -f conftest.$ac_objext
3935 if { (ac_try="$ac_compile"
3937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3938 *) ac_try_echo=$ac_try;;
3940 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3941 (eval "$ac_compile") 2>conftest.er1
3943 grep -v '^ *+' conftest.er1 >conftest.err
3945 cat conftest.err >&5
3946 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3947 (exit $ac_status); } && {
3948 test -z "$ac_c_werror_flag" ||
3949 test ! -s conftest.err
3950 } && test -s conftest.$ac_objext; then
3953 echo "$as_me: failed program was
:" >&5
3954 sed 's/^/| /' conftest.$ac_ext >&5
3959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 ac_c_werror_flag=$ac_save_c_werror_flag
3968 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3969 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3970 if test "$ac_test_CFLAGS" = set; then
3971 CFLAGS=$ac_save_CFLAGS
3972 elif test $ac_cv_prog_cc_g = yes; then
3973 if test "$GCC" = yes; then
3979 if test "$GCC" = yes; then
3985 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3986 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3987 if test "${ac_cv_prog_cc_c89+set}" = set; then
3988 echo $ECHO_N "(cached
) $ECHO_C" >&6
3990 ac_cv_prog_cc_c89=no
3992 cat >conftest.$ac_ext <<_ACEOF
3995 cat confdefs.h >>conftest.$ac_ext
3996 cat >>conftest.$ac_ext <<_ACEOF
3997 /* end confdefs.h. */
4000 #include <sys/types.h>
4001 #include <sys/stat.h>
4002 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4003 struct buf { int x; };
4004 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4005 static char *e (p, i)
4011 static char *f (char * (*g) (char **, int), char **p, ...)
4016 s = g (p, va_arg (v,int));
4021 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4022 function prototypes and stuff, but not '\xHH' hex character constants.
4023 These don't provoke an error unfortunately, instead are silently treated
4024 as 'x'. The following induces an error, until -std is added to get
4025 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4026 array size at least. It's necessary to write '\x00'==0 to get something
4027 that's true only with -std. */
4028 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4030 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4031 inside strings and character constants. */
4033 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4035 int test (int i, double x);
4036 struct s1 {int (*f) (int a);};
4037 struct s2 {int (*f) (double a);};
4038 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4044 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4049 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4050 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4052 CC="$ac_save_CC $ac_arg"
4053 rm -f conftest.$ac_objext
4054 if { (ac_try="$ac_compile"
4056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4057 *) ac_try_echo=$ac_try;;
4059 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4060 (eval "$ac_compile") 2>conftest.er1
4062 grep -v '^ *+' conftest.er1 >conftest.err
4064 cat conftest.err >&5
4065 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4066 (exit $ac_status); } && {
4067 test -z "$ac_c_werror_flag" ||
4068 test ! -s conftest.err
4069 } && test -s conftest.$ac_objext; then
4070 ac_cv_prog_cc_c89=$ac_arg
4072 echo "$as_me: failed program was
:" >&5
4073 sed 's/^/| /' conftest.$ac_ext >&5
4078 rm -f core conftest.err conftest.$ac_objext
4079 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4081 rm -f conftest.$ac_ext
4086 case "x
$ac_cv_prog_cc_c89" in
4088 { echo "$as_me:$LINENO: result
: none needed
" >&5
4089 echo "${ECHO_T}none needed
" >&6; } ;;
4091 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4092 echo "${ECHO_T}unsupported
" >&6; } ;;
4094 CC="$CC $ac_cv_prog_cc_c89"
4095 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4096 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107 # On Suns, sometimes $CPP names a directory.
4108 if test -n "$CPP" && test -d "$CPP"; then
4112 #### Some systems specify a CPP to use unless we are using GCC.
4113 #### Now that we know whether we are using GCC, we can decide whether
4114 #### to use that one.
4115 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4120 #### Some systems specify a CC to use unless we are using GCC.
4121 #### Now that we know whether we are using GCC, we can decide whether
4122 #### to use that one.
4123 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4124 test x$cc_specified != xyes
4129 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4131 CC="$CC $GCC_TEST_OPTIONS"
4134 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4136 CC="$CC $NON_GCC_TEST_OPTIONS"
4141 ac_cpp='$CPP $CPPFLAGS'
4142 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4143 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4144 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4145 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4146 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4147 # On Suns, sometimes $CPP names a directory.
4148 if test -n "$CPP" && test -d "$CPP"; then
4151 if test -z "$CPP"; then
4152 if test "${ac_cv_prog_CPP+set}" = set; then
4153 echo $ECHO_N "(cached
) $ECHO_C" >&6
4155 # Double quotes because CPP needs to be expanded
4156 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4159 for ac_c_preproc_warn_flag in '' yes
4161 # Use a header file that comes with gcc, so configuring glibc
4162 # with a fresh cross-compiler works.
4163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4164 # <limits.h> exists even on freestanding compilers.
4165 # On the NeXT, cc -E runs the code through the compiler's parser,
4166 # not just through cpp. "Syntax error
" is here to catch this case.
4167 cat >conftest.$ac_ext <<_ACEOF
4170 cat confdefs.h >>conftest.$ac_ext
4171 cat >>conftest.$ac_ext <<_ACEOF
4172 /* end confdefs.h. */
4174 # include <limits.h>
4176 # include <assert.h>
4180 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183 *) ac_try_echo=$ac_try;;
4185 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4186 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4188 grep -v '^ *+' conftest.er1 >conftest.err
4190 cat conftest.err >&5
4191 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4192 (exit $ac_status); } >/dev/null && {
4193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4194 test ! -s conftest.err
4198 echo "$as_me: failed program was
:" >&5
4199 sed 's/^/| /' conftest.$ac_ext >&5
4201 # Broken: fails on valid input.
4205 rm -f conftest.err conftest.$ac_ext
4207 # OK, works on sane cases. Now check whether nonexistent headers
4208 # can be detected and how.
4209 cat >conftest.$ac_ext <<_ACEOF
4212 cat confdefs.h >>conftest.$ac_ext
4213 cat >>conftest.$ac_ext <<_ACEOF
4214 /* end confdefs.h. */
4215 #include <ac_nonexistent.h>
4217 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4222 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4223 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4225 grep -v '^ *+' conftest.er1 >conftest.err
4227 cat conftest.err >&5
4228 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4229 (exit $ac_status); } >/dev/null && {
4230 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4231 test ! -s conftest.err
4233 # Broken: success on invalid input.
4236 echo "$as_me: failed program was
:" >&5
4237 sed 's/^/| /' conftest.$ac_ext >&5
4239 # Passes both tests.
4244 rm -f conftest.err conftest.$ac_ext
4247 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4248 rm -f conftest.err conftest.$ac_ext
4249 if $ac_preproc_ok; then
4261 { echo "$as_me:$LINENO: result
: $CPP" >&5
4262 echo "${ECHO_T}$CPP" >&6; }
4264 for ac_c_preproc_warn_flag in '' yes
4266 # Use a header file that comes with gcc, so configuring glibc
4267 # with a fresh cross-compiler works.
4268 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4269 # <limits.h> exists even on freestanding compilers.
4270 # On the NeXT, cc -E runs the code through the compiler's parser,
4271 # not just through cpp. "Syntax error
" is here to catch this case.
4272 cat >conftest.$ac_ext <<_ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4279 # include <limits.h>
4281 # include <assert.h>
4285 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4288 *) ac_try_echo=$ac_try;;
4290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4291 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4293 grep -v '^ *+' conftest.er1 >conftest.err
4295 cat conftest.err >&5
4296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4297 (exit $ac_status); } >/dev/null && {
4298 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4299 test ! -s conftest.err
4303 echo "$as_me: failed program was
:" >&5
4304 sed 's/^/| /' conftest.$ac_ext >&5
4306 # Broken: fails on valid input.
4310 rm -f conftest.err conftest.$ac_ext
4312 # OK, works on sane cases. Now check whether nonexistent headers
4313 # can be detected and how.
4314 cat >conftest.$ac_ext <<_ACEOF
4317 cat confdefs.h >>conftest.$ac_ext
4318 cat >>conftest.$ac_ext <<_ACEOF
4319 /* end confdefs.h. */
4320 #include <ac_nonexistent.h>
4322 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4325 *) ac_try_echo=$ac_try;;
4327 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4328 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4330 grep -v '^ *+' conftest.er1 >conftest.err
4332 cat conftest.err >&5
4333 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4334 (exit $ac_status); } >/dev/null && {
4335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4336 test ! -s conftest.err
4338 # Broken: success on invalid input.
4341 echo "$as_me: failed program was
:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4344 # Passes both tests.
4349 rm -f conftest.err conftest.$ac_ext
4352 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4353 rm -f conftest.err conftest.$ac_ext
4354 if $ac_preproc_ok; then
4357 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4358 See \
`config.log' for more details." >&5
4359 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4360 See \`config.log
' for more details." >&2;}
4361 { (exit 1); exit 1; }; }
4365 ac_cpp='$CPP $CPPFLAGS'
4366 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4367 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4368 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4371 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4372 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4373 if test "${ac_cv_path_GREP+set}" = set; then
4374 echo $ECHO_N "(cached) $ECHO_C" >&6
4376 # Extract the first word of "grep ggrep" to use in msg output
4377 if test -z "$GREP"; then
4378 set dummy grep ggrep; ac_prog_name=$2
4379 if test "${ac_cv_path_GREP+set}" = set; then
4380 echo $ECHO_N "(cached) $ECHO_C" >&6
4382 ac_path_GREP_found=false
4383 # Loop through the user's path and
test for each of PROGNAME-LIST
4384 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4385 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4388 test -z "$as_dir" && as_dir
=.
4389 for ac_prog
in grep ggrep
; do
4390 for ac_exec_ext
in '' $ac_executable_extensions; do
4391 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4392 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4393 # Check for GNU ac_path_GREP and select it if it is found.
4394 # Check for GNU $ac_path_GREP
4395 case `"$ac_path_GREP" --version 2>&1` in
4397 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4400 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4403 cat "conftest.in" "conftest.in" >"conftest.tmp"
4404 mv "conftest.tmp" "conftest.in"
4405 cp "conftest.in" "conftest.nl"
4406 echo 'GREP' >> "conftest.nl"
4407 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4408 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4409 ac_count
=`expr $ac_count + 1`
4410 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4411 # Best one so far, save it but keep looking for a better one
4412 ac_cv_path_GREP
="$ac_path_GREP"
4413 ac_path_GREP_max
=$ac_count
4415 # 10*(2^10) chars as input seems more than enough
4416 test $ac_count -gt 10 && break
4418 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4422 $ac_path_GREP_found && break 3
4432 GREP
="$ac_cv_path_GREP"
4433 if test -z "$GREP"; then
4434 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4435 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4436 { (exit 1); exit 1; }; }
4440 ac_cv_path_GREP
=$GREP
4445 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4446 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4447 GREP
="$ac_cv_path_GREP"
4450 { echo "$as_me:$LINENO: checking for egrep" >&5
4451 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4452 if test "${ac_cv_path_EGREP+set}" = set; then
4453 echo $ECHO_N "(cached) $ECHO_C" >&6
4455 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4456 then ac_cv_path_EGREP
="$GREP -E"
4458 # Extract the first word of "egrep" to use in msg output
4459 if test -z "$EGREP"; then
4460 set dummy
egrep; ac_prog_name
=$2
4461 if test "${ac_cv_path_EGREP+set}" = set; then
4462 echo $ECHO_N "(cached) $ECHO_C" >&6
4464 ac_path_EGREP_found
=false
4465 # Loop through the user's path and test for each of PROGNAME-LIST
4466 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4467 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4470 test -z "$as_dir" && as_dir
=.
4471 for ac_prog
in egrep; do
4472 for ac_exec_ext
in '' $ac_executable_extensions; do
4473 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4474 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4475 # Check for GNU ac_path_EGREP and select it if it is found.
4476 # Check for GNU $ac_path_EGREP
4477 case `"$ac_path_EGREP" --version 2>&1` in
4479 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4482 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4485 cat "conftest.in" "conftest.in" >"conftest.tmp"
4486 mv "conftest.tmp" "conftest.in"
4487 cp "conftest.in" "conftest.nl"
4488 echo 'EGREP' >> "conftest.nl"
4489 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4490 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4491 ac_count
=`expr $ac_count + 1`
4492 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4493 # Best one so far, save it but keep looking for a better one
4494 ac_cv_path_EGREP
="$ac_path_EGREP"
4495 ac_path_EGREP_max
=$ac_count
4497 # 10*(2^10) chars as input seems more than enough
4498 test $ac_count -gt 10 && break
4500 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4504 $ac_path_EGREP_found && break 3
4514 EGREP
="$ac_cv_path_EGREP"
4515 if test -z "$EGREP"; then
4516 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4517 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4518 { (exit 1); exit 1; }; }
4522 ac_cv_path_EGREP
=$EGREP
4528 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4529 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4530 EGREP
="$ac_cv_path_EGREP"
4534 { echo "$as_me:$LINENO: checking for AIX" >&5
4535 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4536 cat >conftest.
$ac_ext <<_ACEOF
4539 cat confdefs.h
>>conftest.
$ac_ext
4540 cat >>conftest.
$ac_ext <<_ACEOF
4541 /* end confdefs.h. */
4547 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4548 $EGREP "yes" >/dev
/null
2>&1; then
4549 { echo "$as_me:$LINENO: result: yes" >&5
4550 echo "${ECHO_T}yes" >&6; }
4551 cat >>confdefs.h
<<\_ACEOF
4552 #define _ALL_SOURCE 1
4556 { echo "$as_me:$LINENO: result: no" >&5
4557 echo "${ECHO_T}no" >&6; }
4563 cat >>confdefs.h
<<\_ACEOF
4564 #define _GNU_SOURCE 1
4569 ### Use -Wno-pointer-sign if the compiler supports it
4570 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4571 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4572 SAVE_CFLAGS
="$CFLAGS"
4573 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4574 cat >conftest.
$ac_ext <<_ACEOF
4577 cat confdefs.h
>>conftest.
$ac_ext
4578 cat >>conftest.
$ac_ext <<_ACEOF
4579 /* end confdefs.h. */
4589 rm -f conftest.
$ac_objext
4590 if { (ac_try
="$ac_compile"
4592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4593 *) ac_try_echo=$ac_try;;
4595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4596 (eval "$ac_compile") 2>conftest.er1
4598 grep -v '^ *+' conftest.er1 >conftest.err
4600 cat conftest.err >&5
4601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4602 (exit $ac_status); } && {
4603 test -z "$ac_c_werror_flag" ||
4604 test ! -s conftest.err
4605 } && test -s conftest.$ac_objext; then
4608 echo "$as_me: failed program was:" >&5
4609 sed 's/^/| /' conftest.$ac_ext >&5
4614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4615 if test $has_option = yes; then
4616 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4618 { echo "$as_me:$LINENO: result: $has_option" >&5
4619 echo "${ECHO_T}$has_option" >&6; }
4620 CFLAGS="$SAVE_CFLAGS"
4624 #### Some other nice autoconf tests.
4626 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4627 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4629 if test "$LN_S" = "ln -s"; then
4630 { echo "$as_me:$LINENO: result: yes" >&5
4631 echo "${ECHO_T}yes" >&6; }
4633 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4634 echo "${ECHO_T}no, using $LN_S" >&6; }
4638 ac_cpp='$CPP $CPPFLAGS'
4639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4642 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4643 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4644 # On Suns, sometimes $CPP names a directory.
4645 if test -n "$CPP" && test -d "$CPP"; then
4648 if test -z "$CPP"; then
4649 if test "${ac_cv_prog_CPP+set}" = set; then
4650 echo $ECHO_N "(cached) $ECHO_C" >&6
4652 # Double quotes because CPP needs to be expanded
4653 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4656 for ac_c_preproc_warn_flag in '' yes
4658 # Use a header file that comes with gcc, so configuring glibc
4659 # with a fresh cross-compiler works.
4660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4661 # <limits.h> exists even on freestanding compilers.
4662 # On the NeXT, cc -E runs the code through the compiler's parser,
4663 # not just through cpp. "Syntax error" is here to catch this case.
4664 cat >conftest.$ac_ext <<_ACEOF
4667 cat confdefs.h >>conftest.$ac_ext
4668 cat >>conftest.$ac_ext <<_ACEOF
4669 /* end confdefs.h. */
4671 # include <limits.h>
4673 # include <assert.h>
4677 if { (ac_try="$ac_cpp conftest.$ac_ext"
4679 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4680 *) ac_try_echo
=$ac_try;;
4682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4683 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4685 grep -v '^ *+' conftest.er1
>conftest.err
4687 cat conftest.err
>&5
4688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4689 (exit $ac_status); } >/dev
/null
&& {
4690 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4691 test ! -s conftest.err
4695 echo "$as_me: failed program was:" >&5
4696 sed 's/^/| /' conftest.
$ac_ext >&5
4698 # Broken: fails on valid input.
4702 rm -f conftest.err conftest.
$ac_ext
4704 # OK, works on sane cases. Now check whether nonexistent headers
4705 # can be detected and how.
4706 cat >conftest.
$ac_ext <<_ACEOF
4709 cat confdefs.h
>>conftest.
$ac_ext
4710 cat >>conftest.
$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 #include <ac_nonexistent.h>
4714 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4716 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4717 *) ac_try_echo=$ac_try;;
4719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4722 grep -v '^ *+' conftest.er1 >conftest.err
4724 cat conftest.err >&5
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); } >/dev/null && {
4727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4728 test ! -s conftest.err
4730 # Broken: success on invalid input.
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4736 # Passes both tests.
4741 rm -f conftest.err conftest.$ac_ext
4744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4745 rm -f conftest.err conftest.
$ac_ext
4746 if $ac_preproc_ok; then
4758 { echo "$as_me:$LINENO: result: $CPP" >&5
4759 echo "${ECHO_T}$CPP" >&6; }
4761 for ac_c_preproc_warn_flag
in '' yes
4763 # Use a header file that comes with gcc, so configuring glibc
4764 # with a fresh cross-compiler works.
4765 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4766 # <limits.h> exists even on freestanding compilers.
4767 # On the NeXT, cc -E runs the code through the compiler's parser,
4768 # not just through cpp. "Syntax error" is here to catch this case.
4769 cat >conftest.
$ac_ext <<_ACEOF
4772 cat confdefs.h
>>conftest.
$ac_ext
4773 cat >>conftest.
$ac_ext <<_ACEOF
4774 /* end confdefs.h. */
4776 # include <limits.h>
4778 # include <assert.h>
4782 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4784 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4785 *) ac_try_echo=$ac_try;;
4787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4788 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4790 grep -v '^ *+' conftest.er1 >conftest.err
4792 cat conftest.err >&5
4793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4794 (exit $ac_status); } >/dev/null && {
4795 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4796 test ! -s conftest.err
4800 echo "$as_me: failed program was:" >&5
4801 sed 's/^/| /' conftest.$ac_ext >&5
4803 # Broken: fails on valid input.
4807 rm -f conftest.err conftest.$ac_ext
4809 # OK, works on sane cases. Now check whether nonexistent headers
4810 # can be detected and how.
4811 cat >conftest.$ac_ext <<_ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 #include <ac_nonexistent.h>
4819 if { (ac_try="$ac_cpp conftest.$ac_ext"
4821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4822 *) ac_try_echo
=$ac_try;;
4824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4827 grep -v '^ *+' conftest.er1
>conftest.err
4829 cat conftest.err
>&5
4830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4831 (exit $ac_status); } >/dev
/null
&& {
4832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4833 test ! -s conftest.err
4835 # Broken: success on invalid input.
4838 echo "$as_me: failed program was:" >&5
4839 sed 's/^/| /' conftest.
$ac_ext >&5
4841 # Passes both tests.
4846 rm -f conftest.err conftest.
$ac_ext
4849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4850 rm -f conftest.err conftest.
$ac_ext
4851 if $ac_preproc_ok; then
4854 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4855 See \`config.log' for more details." >&5
4856 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4857 See \`config.log' for more details." >&2;}
4858 { (exit 1); exit 1; }; }
4862 ac_cpp
='$CPP $CPPFLAGS'
4863 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4867 # Find a good install program. We prefer a C program (faster),
4868 # so one script is as good as another. But avoid the broken or
4869 # incompatible versions:
4870 # SysV /etc/install, /usr/sbin/install
4871 # SunOS /usr/etc/install
4872 # IRIX /sbin/install
4874 # AmigaOS /C/install, which installs bootblocks on floppy discs
4875 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4876 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4877 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4878 # OS/2's system install, which has a completely different semantic
4879 # ./install, which can be erroneously created by make from ./install.sh.
4880 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4881 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4882 if test -z "$INSTALL"; then
4883 if test "${ac_cv_path_install+set}" = set; then
4884 echo $ECHO_N "(cached) $ECHO_C" >&6
4886 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4890 test -z "$as_dir" && as_dir
=.
4891 # Account for people who put trailing slashes in PATH elements.
4893 .
/ | .
// |
/cC
/* | \
4894 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4895 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4898 # OSF1 and SCO ODT 3.0 have their own names for install.
4899 # Don't use installbsd from OSF since it installs stuff as root
4901 for ac_prog
in ginstall scoinst
install; do
4902 for ac_exec_ext
in '' $ac_executable_extensions; do
4903 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4904 if test $ac_prog = install &&
4905 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4906 # AIX install. It has an incompatible calling convention.
4908 elif test $ac_prog = install &&
4909 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4910 # program-specific install script used by HP pwplus--don't use.
4913 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4926 if test "${ac_cv_path_install+set}" = set; then
4927 INSTALL
=$ac_cv_path_install
4929 # As a last resort, use the slow shell script. Don't cache a
4930 # value for INSTALL within a source directory, because that will
4931 # break other packages using the cache if that directory is
4932 # removed, or if the value is a relative name.
4933 INSTALL
=$ac_install_sh
4936 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4937 echo "${ECHO_T}$INSTALL" >&6; }
4939 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4940 # It thinks the first close brace ends the variable substitution.
4941 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4943 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4945 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4947 if test "x$RANLIB" = x
; then
4948 if test -n "$ac_tool_prefix"; then
4949 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4950 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4953 if test "${ac_cv_prog_RANLIB+set}" = set; then
4954 echo $ECHO_N "(cached) $ECHO_C" >&6
4956 if test -n "$RANLIB"; then
4957 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4959 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4963 test -z "$as_dir" && as_dir
=.
4964 for ac_exec_ext
in '' $ac_executable_extensions; do
4965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4966 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 RANLIB
=$ac_cv_prog_RANLIB
4977 if test -n "$RANLIB"; then
4978 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4979 echo "${ECHO_T}$RANLIB" >&6; }
4981 { echo "$as_me:$LINENO: result: no" >&5
4982 echo "${ECHO_T}no" >&6; }
4987 if test -z "$ac_cv_prog_RANLIB"; then
4988 ac_ct_RANLIB
=$RANLIB
4989 # Extract the first word of "ranlib", so it can be a program name with args.
4990 set dummy ranlib
; ac_word
=$2
4991 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4992 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4993 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4994 echo $ECHO_N "(cached) $ECHO_C" >&6
4996 if test -n "$ac_ct_RANLIB"; then
4997 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
4999 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5003 test -z "$as_dir" && as_dir
=.
5004 for ac_exec_ext
in '' $ac_executable_extensions; do
5005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5006 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5016 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5017 if test -n "$ac_ct_RANLIB"; then
5018 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5019 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5021 { echo "$as_me:$LINENO: result: no" >&5
5022 echo "${ECHO_T}no" >&6; }
5025 if test "x$ac_ct_RANLIB" = x
; then
5028 case $cross_compiling:$ac_tool_warned in
5030 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5031 whose name does not start with the host triplet. If you think this
5032 configuration is useful to you, please write to autoconf@gnu.org." >&5
5033 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5034 whose name does not start with the host triplet. If you think this
5035 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5036 ac_tool_warned
=yes ;;
5038 RANLIB
=$ac_ct_RANLIB
5041 RANLIB
="$ac_cv_prog_RANLIB"
5045 # Extract the first word of "install-info", so it can be a program name with args.
5046 set dummy install-info
; ac_word
=$2
5047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5049 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5050 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 case $INSTALL_INFO in
5054 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5057 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5061 test -z "$as_dir" && as_dir
=.
5062 for ac_exec_ext
in '' $ac_executable_extensions; do
5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5064 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5076 if test -n "$INSTALL_INFO"; then
5077 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5078 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5080 { echo "$as_me:$LINENO: result: no" >&5
5081 echo "${ECHO_T}no" >&6; }
5085 # Extract the first word of "install-info", so it can be a program name with args.
5086 set dummy install-info
; ac_word
=$2
5087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5089 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5090 echo $ECHO_N "(cached) $ECHO_C" >&6
5092 case $INSTALL_INFO in
5094 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5097 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5098 for as_dir
in /usr
/sbin
5101 test -z "$as_dir" && as_dir
=.
5102 for ac_exec_ext
in '' $ac_executable_extensions; do
5103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5104 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5105 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5116 if test -n "$INSTALL_INFO"; then
5117 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5118 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5120 { echo "$as_me:$LINENO: result: no" >&5
5121 echo "${ECHO_T}no" >&6; }
5125 # Extract the first word of "install-info", so it can be a program name with args.
5126 set dummy install-info
; ac_word
=$2
5127 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5128 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5129 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5130 echo $ECHO_N "(cached) $ECHO_C" >&6
5132 case $INSTALL_INFO in
5134 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5141 test -z "$as_dir" && as_dir
=.
5142 for ac_exec_ext
in '' $ac_executable_extensions; do
5143 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5144 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5152 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5156 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5157 if test -n "$INSTALL_INFO"; then
5158 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5159 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5161 { echo "$as_me:$LINENO: result: no" >&5
5162 echo "${ECHO_T}no" >&6; }
5166 # Extract the first word of "gzip", so it can be a program name with args.
5167 set dummy
gzip; ac_word
=$2
5168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5170 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5175 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5178 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5182 test -z "$as_dir" && as_dir
=.
5183 for ac_exec_ext
in '' $ac_executable_extensions; do
5184 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5185 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5186 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5196 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5197 if test -n "$GZIP_PROG"; then
5198 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5199 echo "${ECHO_T}$GZIP_PROG" >&6; }
5201 { echo "$as_me:$LINENO: result: no" >&5
5202 echo "${ECHO_T}no" >&6; }
5208 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5210 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5213 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5215 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5219 late_LDFLAGS
=$LDFLAGS
5220 if test "$GCC" = yes; then
5221 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5223 LDFLAGS
="$LDFLAGS -znocombreloc"
5226 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5227 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5228 cat >conftest.
$ac_ext <<_ACEOF
5231 rm -f conftest.
$ac_objext conftest
$ac_exeext
5232 if { (ac_try
="$ac_link"
5234 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5235 *) ac_try_echo=$ac_try;;
5237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5238 (eval "$ac_link") 2>conftest.er1
5240 grep -v '^ *+' conftest.er1 >conftest.err
5242 cat conftest.err >&5
5243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5244 (exit $ac_status); } && {
5245 test -z "$ac_c_werror_flag" ||
5246 test ! -s conftest.err
5247 } && test -s conftest$ac_exeext &&
5248 $as_test_x conftest$ac_exeext; then
5249 { echo "$as_me:$LINENO: result: yes" >&5
5250 echo "${ECHO_T}yes" >&6; }
5252 echo "$as_me: failed program was:" >&5
5253 sed 's/^/| /' conftest.$ac_ext >&5
5255 LDFLAGS=$late_LDFLAGS
5256 { echo "$as_me:$LINENO: result: no" >&5
5257 echo "${ECHO_T}no" >&6; }
5260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5261 conftest$ac_exeext conftest.$ac_ext
5263 #### Extract some information from the operating system and machine files.
5265 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5266 - which libraries the lib-src programs will want, and
5267 - whether the GNU malloc routines are usable..." >&5
5268 echo "$as_me: checking the machine- and system-dependent files to find out
5269 - which libraries the lib-src programs will want, and
5270 - whether the GNU malloc routines are usable..." >&6;}
5272 ### First figure out CFLAGS (which we use for running the compiler here)
5273 ### and REAL_CFLAGS (which we use for real compilation).
5274 ### The two are the same except on a few systems, where they are made
5275 ### different to work around various lossages. For example,
5276 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5277 ### as implying static linking.
5279 ### If the CFLAGS env var is specified, we use that value
5280 ### instead of the default.
5282 ### It's not important that this name contain the PID; you can't run
5283 ### two configures in the same directory and have anything work
5285 tempcname="conftest.c"
5288 #include "'${srcdir}'/src/'${opsysfile}'"
5289 #include "'${srcdir}'/src/'${machfile}'"
5290 #ifndef LIBS_MACHINE
5291 #define LIBS_MACHINE
5296 #ifndef C_SWITCH_SYSTEM
5297 #define C_SWITCH_SYSTEM
5299 #ifndef C_SWITCH_MACHINE
5300 #define C_SWITCH_MACHINE
5302 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5303 configure___ c_switch_system=C_SWITCH_SYSTEM
5304 configure___ c_switch_machine=C_SWITCH_MACHINE
5307 #define LIB_X11_LIB -lX11
5310 #ifndef LIBX11_MACHINE
5311 #define LIBX11_MACHINE
5314 #ifndef LIBX11_SYSTEM
5315 #define LIBX11_SYSTEM
5317 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5320 configure___ unexec=UNEXEC
5322 configure___ unexec=unexec.o
5325 #ifdef SYSTEM_MALLOC
5326 configure___ system_malloc=yes
5328 configure___ system_malloc=no
5331 #ifdef USE_MMAP_FOR_BUFFERS
5332 configure___ use_mmap_for_buffers=yes
5334 configure___ use_mmap_for_buffers=no
5337 #ifndef C_DEBUG_SWITCH
5338 #define C_DEBUG_SWITCH -g
5341 #ifndef C_OPTIMIZE_SWITCH
5343 #define C_OPTIMIZE_SWITCH -O2
5345 #define C_OPTIMIZE_SWITCH -O
5349 #ifndef C_WARNINGS_SWITCH
5350 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5353 #ifndef LD_SWITCH_MACHINE
5354 #define LD_SWITCH_MACHINE
5357 #ifndef LD_SWITCH_SYSTEM
5358 #define LD_SWITCH_SYSTEM
5361 #ifndef LD_SWITCH_X_SITE_AUX
5362 #define LD_SWITCH_X_SITE_AUX
5365 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5366 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5368 #ifdef THIS_IS_CONFIGURE
5370 /* Get the CFLAGS for tests in configure. */
5372 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5374 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5377 #else /* not THIS_IS_CONFIGURE */
5379 /* Get the CFLAGS for real compilation. */
5381 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5383 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5386 #endif /* not THIS_IS_CONFIGURE */
5389 # The value of CPP is a quoted variable reference, so we need to do this
5390 # to get its actual value...
5391 CPP=`eval "echo $CPP"`
5392 eval `${CPP} -Isrc ${tempcname} \
5393 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5394 if test "x$SPECIFIED_CFLAGS" = x; then
5395 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5396 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5398 REAL_CFLAGS="$CFLAGS"
5402 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5404 ### Make sure subsequent tests use flags consistent with the build flags.
5406 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5407 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5409 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5414 # Check whether --enable-largefile was given.
5415 if test "${enable_largefile+set}" = set; then
5416 enableval=$enable_largefile;
5419 if test "$enable_largefile" != no; then
5421 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5422 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5423 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5424 echo $ECHO_N "(cached) $ECHO_C" >&6
5426 ac_cv_sys_largefile_CC=no
5427 if test "$GCC" != yes; then
5430 # IRIX 6.2 and later do not support large files by default,
5431 # so use the C compiler's -n32 option if that helps.
5432 cat >conftest.$ac_ext <<_ACEOF
5435 cat confdefs.h >>conftest.$ac_ext
5436 cat >>conftest.$ac_ext <<_ACEOF
5437 /* end confdefs.h. */
5438 #include <sys/types.h>
5439 /* Check that off_t can represent 2**63 - 1 correctly.
5440 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5441 since some C++ compilers masquerading as C compilers
5442 incorrectly reject 9223372036854775807. */
5443 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5444 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5445 && LARGE_OFF_T % 2147483647 == 1)
5455 rm -f conftest.$ac_objext
5456 if { (ac_try="$ac_compile"
5458 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5459 *) ac_try_echo
=$ac_try;;
5461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5462 (eval "$ac_compile") 2>conftest.er1
5464 grep -v '^ *+' conftest.er1
>conftest.err
5466 cat conftest.err
>&5
5467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5468 (exit $ac_status); } && {
5469 test -z "$ac_c_werror_flag" ||
5470 test ! -s conftest.err
5471 } && test -s conftest.
$ac_objext; then
5474 echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.
$ac_ext >&5
5480 rm -f core conftest.err conftest.
$ac_objext
5482 rm -f conftest.
$ac_objext
5483 if { (ac_try
="$ac_compile"
5485 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5486 *) ac_try_echo=$ac_try;;
5488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5489 (eval "$ac_compile") 2>conftest.er1
5491 grep -v '^ *+' conftest.er1 >conftest.err
5493 cat conftest.err >&5
5494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5495 (exit $ac_status); } && {
5496 test -z "$ac_c_werror_flag" ||
5497 test ! -s conftest.err
5498 } && test -s conftest.$ac_objext; then
5499 ac_cv_sys_largefile_CC=' -n32'; break
5501 echo "$as_me: failed program was:" >&5
5502 sed 's/^/| /' conftest.$ac_ext >&5
5507 rm -f core conftest.err conftest.$ac_objext
5511 rm -f conftest.$ac_ext
5514 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5515 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5516 if test "$ac_cv_sys_largefile_CC" != no; then
5517 CC=$CC$ac_cv_sys_largefile_CC
5520 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5521 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5522 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5523 echo $ECHO_N "(cached) $ECHO_C" >&6
5526 cat >conftest.$ac_ext <<_ACEOF
5529 cat confdefs.h >>conftest.$ac_ext
5530 cat >>conftest.$ac_ext <<_ACEOF
5531 /* end confdefs.h. */
5532 #include <sys/types.h>
5533 /* Check that off_t can represent 2**63 - 1 correctly.
5534 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5535 since some C++ compilers masquerading as C compilers
5536 incorrectly reject 9223372036854775807. */
5537 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5538 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5539 && LARGE_OFF_T % 2147483647 == 1)
5549 rm -f conftest.$ac_objext
5550 if { (ac_try="$ac_compile"
5552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5553 *) ac_try_echo
=$ac_try;;
5555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5556 (eval "$ac_compile") 2>conftest.er1
5558 grep -v '^ *+' conftest.er1
>conftest.err
5560 cat conftest.err
>&5
5561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5562 (exit $ac_status); } && {
5563 test -z "$ac_c_werror_flag" ||
5564 test ! -s conftest.err
5565 } && test -s conftest.
$ac_objext; then
5566 ac_cv_sys_file_offset_bits
=no
; break
5568 echo "$as_me: failed program was:" >&5
5569 sed 's/^/| /' conftest.
$ac_ext >&5
5574 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5575 cat >conftest.
$ac_ext <<_ACEOF
5578 cat confdefs.h
>>conftest.
$ac_ext
5579 cat >>conftest.
$ac_ext <<_ACEOF
5580 /* end confdefs.h. */
5581 #define _FILE_OFFSET_BITS 64
5582 #include <sys/types.h>
5583 /* Check that off_t can represent 2**63 - 1 correctly.
5584 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5585 since some C++ compilers masquerading as C compilers
5586 incorrectly reject 9223372036854775807. */
5587 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5588 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5589 && LARGE_OFF_T % 2147483647 == 1)
5599 rm -f conftest.
$ac_objext
5600 if { (ac_try
="$ac_compile"
5602 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_compile") 2>conftest.er1
5608 grep -v '^ *+' conftest.er1 >conftest.err
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } && {
5613 test -z "$ac_c_werror_flag" ||
5614 test ! -s conftest.err
5615 } && test -s conftest.$ac_objext; then
5616 ac_cv_sys_file_offset_bits=64; break
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625 ac_cv_sys_file_offset_bits=unknown
5629 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5630 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5631 case $ac_cv_sys_file_offset_bits in #(
5634 cat >>confdefs.h <<_ACEOF
5635 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5640 if test $ac_cv_sys_file_offset_bits = unknown; then
5641 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5642 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5643 if test "${ac_cv_sys_large_files+set}" = set; then
5644 echo $ECHO_N "(cached) $ECHO_C" >&6
5647 cat >conftest.$ac_ext <<_ACEOF
5650 cat confdefs.h >>conftest.$ac_ext
5651 cat >>conftest.$ac_ext <<_ACEOF
5652 /* end confdefs.h. */
5653 #include <sys/types.h>
5654 /* Check that off_t can represent 2**63 - 1 correctly.
5655 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5656 since some C++ compilers masquerading as C compilers
5657 incorrectly reject 9223372036854775807. */
5658 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5659 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5660 && LARGE_OFF_T % 2147483647 == 1)
5670 rm -f conftest.$ac_objext
5671 if { (ac_try="$ac_compile"
5673 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5674 *) ac_try_echo
=$ac_try;;
5676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5677 (eval "$ac_compile") 2>conftest.er1
5679 grep -v '^ *+' conftest.er1
>conftest.err
5681 cat conftest.err
>&5
5682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5683 (exit $ac_status); } && {
5684 test -z "$ac_c_werror_flag" ||
5685 test ! -s conftest.err
5686 } && test -s conftest.
$ac_objext; then
5687 ac_cv_sys_large_files
=no
; break
5689 echo "$as_me: failed program was:" >&5
5690 sed 's/^/| /' conftest.
$ac_ext >&5
5695 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5696 cat >conftest.
$ac_ext <<_ACEOF
5699 cat confdefs.h
>>conftest.
$ac_ext
5700 cat >>conftest.
$ac_ext <<_ACEOF
5701 /* end confdefs.h. */
5702 #define _LARGE_FILES 1
5703 #include <sys/types.h>
5704 /* Check that off_t can represent 2**63 - 1 correctly.
5705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5706 since some C++ compilers masquerading as C compilers
5707 incorrectly reject 9223372036854775807. */
5708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5710 && LARGE_OFF_T % 2147483647 == 1)
5720 rm -f conftest.
$ac_objext
5721 if { (ac_try
="$ac_compile"
5723 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5727 (eval "$ac_compile") 2>conftest.er1
5729 grep -v '^ *+' conftest.er1 >conftest.err
5731 cat conftest.err >&5
5732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5733 (exit $ac_status); } && {
5734 test -z "$ac_c_werror_flag" ||
5735 test ! -s conftest.err
5736 } && test -s conftest.$ac_objext; then
5737 ac_cv_sys_large_files=1; break
5739 echo "$as_me: failed program was:" >&5
5740 sed 's/^/| /' conftest.$ac_ext >&5
5745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5746 ac_cv_sys_large_files=unknown
5750 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5751 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5752 case $ac_cv_sys_large_files in #(
5755 cat >>confdefs.h <<_ACEOF
5756 #define _LARGE_FILES $ac_cv_sys_large_files
5766 ### The standard library on x86-64 GNU/Linux distributions can
5767 ### be located in either /usr/lib64 or /usr/lib.
5768 case "${canonical}" in
5769 x86_64-*-linux-gnu* )
5770 if test -d /usr/lib64; then
5772 cat >>confdefs.h <<\_ACEOF
5773 #define HAVE_X86_64_LIB64_DIR 1
5782 if test "${with_sound}" != "no"; then
5783 # Sound support for GNU/Linux and the free BSDs.
5784 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5785 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5786 if test "${ac_cv_header_stdc+set}" = set; then
5787 echo $ECHO_N "(cached) $ECHO_C" >&6
5789 cat >conftest.$ac_ext <<_ACEOF
5792 cat confdefs.h >>conftest.$ac_ext
5793 cat >>conftest.$ac_ext <<_ACEOF
5794 /* end confdefs.h. */
5808 rm -f conftest.$ac_objext
5809 if { (ac_try="$ac_compile"
5811 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5812 *) ac_try_echo
=$ac_try;;
5814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5815 (eval "$ac_compile") 2>conftest.er1
5817 grep -v '^ *+' conftest.er1
>conftest.err
5819 cat conftest.err
>&5
5820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5821 (exit $ac_status); } && {
5822 test -z "$ac_c_werror_flag" ||
5823 test ! -s conftest.err
5824 } && test -s conftest.
$ac_objext; then
5825 ac_cv_header_stdc
=yes
5827 echo "$as_me: failed program was:" >&5
5828 sed 's/^/| /' conftest.
$ac_ext >&5
5830 ac_cv_header_stdc
=no
5833 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5835 if test $ac_cv_header_stdc = yes; then
5836 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5837 cat >conftest.
$ac_ext <<_ACEOF
5840 cat confdefs.h
>>conftest.
$ac_ext
5841 cat >>conftest.
$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5846 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5847 $EGREP "memchr" >/dev
/null
2>&1; then
5850 ac_cv_header_stdc
=no
5856 if test $ac_cv_header_stdc = yes; then
5857 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5858 cat >conftest.
$ac_ext <<_ACEOF
5861 cat confdefs.h
>>conftest.
$ac_ext
5862 cat >>conftest.
$ac_ext <<_ACEOF
5863 /* end confdefs.h. */
5867 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5868 $EGREP "free" >/dev
/null
2>&1; then
5871 ac_cv_header_stdc
=no
5877 if test $ac_cv_header_stdc = yes; then
5878 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5879 if test "$cross_compiling" = yes; then
5882 cat >conftest.
$ac_ext <<_ACEOF
5885 cat confdefs.h
>>conftest.
$ac_ext
5886 cat >>conftest.
$ac_ext <<_ACEOF
5887 /* end confdefs.h. */
5890 #if ((' ' & 0x0FF) == 0x020)
5891 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5892 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5894 # define ISLOWER(c) \
5895 (('a' <= (c) && (c) <= 'i') \
5896 || ('j' <= (c) && (c) <= 'r') \
5897 || ('s' <= (c) && (c) <= 'z'))
5898 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5901 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5906 for (i = 0; i < 256; i++)
5907 if (XOR (islower (i), ISLOWER (i))
5908 || toupper (i) != TOUPPER (i))
5913 rm -f conftest
$ac_exeext
5914 if { (ac_try
="$ac_link"
5916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5917 *) ac_try_echo=$ac_try;;
5919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5920 (eval "$ac_link") 2>&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5924 { (case "(($ac_try" in
5925 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5926 *) ac_try_echo
=$ac_try;;
5928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5929 (eval "$ac_try") 2>&5
5931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5932 (exit $ac_status); }; }; then
5935 echo "$as_me: program exited with status $ac_status" >&5
5936 echo "$as_me: failed program was:" >&5
5937 sed 's/^/| /' conftest.
$ac_ext >&5
5940 ac_cv_header_stdc
=no
5942 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5948 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5949 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5950 if test $ac_cv_header_stdc = yes; then
5952 cat >>confdefs.h
<<\_ACEOF
5953 #define STDC_HEADERS 1
5958 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5968 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5969 inttypes.h stdint.h unistd.h
5971 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5972 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5973 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5974 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5975 echo $ECHO_N "(cached) $ECHO_C" >&6
5977 cat >conftest.
$ac_ext <<_ACEOF
5980 cat confdefs.h
>>conftest.
$ac_ext
5981 cat >>conftest.
$ac_ext <<_ACEOF
5982 /* end confdefs.h. */
5983 $ac_includes_default
5985 #include <$ac_header>
5987 rm -f conftest.
$ac_objext
5988 if { (ac_try
="$ac_compile"
5990 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5991 *) ac_try_echo=$ac_try;;
5993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5994 (eval "$ac_compile") 2>conftest.er1
5996 grep -v '^ *+' conftest.er1 >conftest.err
5998 cat conftest.err >&5
5999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6000 (exit $ac_status); } && {
6001 test -z "$ac_c_werror_flag" ||
6002 test ! -s conftest.err
6003 } && test -s conftest.$ac_objext; then
6004 eval "$as_ac_Header=yes"
6006 echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6009 eval "$as_ac_Header=no"
6012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6014 ac_res=`eval echo '${'$as_ac_Header'}'`
6015 { echo "$as_me:$LINENO: result: $ac_res" >&5
6016 echo "${ECHO_T}$ac_res" >&6; }
6017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6018 cat >>confdefs.h <<_ACEOF
6019 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6030 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6032 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6034 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6035 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6036 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6037 echo $ECHO_N "(cached) $ECHO_C" >&6
6039 ac_res=`eval echo '${'$as_ac_Header'}'`
6040 { echo "$as_me:$LINENO: result: $ac_res" >&5
6041 echo "${ECHO_T}$ac_res" >&6; }
6043 # Is the header compilable?
6044 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6045 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6046 cat >conftest.$ac_ext <<_ACEOF
6049 cat confdefs.h >>conftest.$ac_ext
6050 cat >>conftest.$ac_ext <<_ACEOF
6051 /* end confdefs.h. */
6052 $ac_includes_default
6053 #include <$ac_header>
6055 rm -f conftest.$ac_objext
6056 if { (ac_try="$ac_compile"
6058 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6059 *) ac_try_echo
=$ac_try;;
6061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6062 (eval "$ac_compile") 2>conftest.er1
6064 grep -v '^ *+' conftest.er1
>conftest.err
6066 cat conftest.err
>&5
6067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6068 (exit $ac_status); } && {
6069 test -z "$ac_c_werror_flag" ||
6070 test ! -s conftest.err
6071 } && test -s conftest.
$ac_objext; then
6072 ac_header_compiler
=yes
6074 echo "$as_me: failed program was:" >&5
6075 sed 's/^/| /' conftest.
$ac_ext >&5
6077 ac_header_compiler
=no
6080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6081 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6082 echo "${ECHO_T}$ac_header_compiler" >&6; }
6084 # Is the header present?
6085 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6086 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6087 cat >conftest.
$ac_ext <<_ACEOF
6090 cat confdefs.h
>>conftest.
$ac_ext
6091 cat >>conftest.
$ac_ext <<_ACEOF
6092 /* end confdefs.h. */
6093 #include <$ac_header>
6095 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6097 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6103 grep -v '^ *+' conftest.er1 >conftest.err
6105 cat conftest.err >&5
6106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6107 (exit $ac_status); } >/dev/null && {
6108 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6109 test ! -s conftest.err
6111 ac_header_preproc=yes
6113 echo "$as_me: failed program was:" >&5
6114 sed 's/^/| /' conftest.$ac_ext >&5
6116 ac_header_preproc=no
6119 rm -f conftest.err conftest.$ac_ext
6120 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6121 echo "${ECHO_T}$ac_header_preproc" >&6; }
6123 # So? What about this header?
6124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6126 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6127 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6128 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6129 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6130 ac_header_preproc=yes
6133 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6134 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6135 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6136 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6137 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6138 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6139 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6140 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6141 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6142 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6143 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6144 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6148 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6150 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6151 echo $ECHO_N "(cached) $ECHO_C" >&6
6153 eval "$as_ac_Header=\$ac_header_preproc"
6155 ac_res=`eval echo '${'$as_ac_Header'}'`
6156 { echo "$as_me:$LINENO: result: $ac_res" >&5
6157 echo "${ECHO_T}$ac_res" >&6; }
6160 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6161 cat >>confdefs.h <<_ACEOF
6162 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6169 # Emulation library used on NetBSD.
6170 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6171 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6172 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6173 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 ac_check_lib_save_LIBS=$LIBS
6176 LIBS="-lossaudio $LIBS"
6177 cat >conftest.$ac_ext <<_ACEOF
6180 cat confdefs.h >>conftest.$ac_ext
6181 cat >>conftest.$ac_ext <<_ACEOF
6182 /* end confdefs.h. */
6184 /* Override any GCC internal prototype to avoid an error.
6185 Use char because int might match the return type of a GCC
6186 builtin and then its argument prototype would still apply. */
6194 return _oss_ioctl ();
6199 rm -f conftest.$ac_objext conftest$ac_exeext
6200 if { (ac_try="$ac_link"
6202 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6203 *) ac_try_echo
=$ac_try;;
6205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6206 (eval "$ac_link") 2>conftest.er1
6208 grep -v '^ *+' conftest.er1
>conftest.err
6210 cat conftest.err
>&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); } && {
6213 test -z "$ac_c_werror_flag" ||
6214 test ! -s conftest.err
6215 } && test -s conftest
$ac_exeext &&
6216 $as_test_x conftest
$ac_exeext; then
6217 ac_cv_lib_ossaudio__oss_ioctl
=yes
6219 echo "$as_me: failed program was:" >&5
6220 sed 's/^/| /' conftest.
$ac_ext >&5
6222 ac_cv_lib_ossaudio__oss_ioctl
=no
6225 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6226 conftest
$ac_exeext conftest.
$ac_ext
6227 LIBS
=$ac_check_lib_save_LIBS
6229 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6230 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6231 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6240 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6241 if test "X${with_pkg_config_prog}" != X
; then
6242 PKG_CONFIG
="${with_pkg_config_prog}"
6247 if test -z "$PKG_CONFIG"; then
6248 # Extract the first word of "pkg-config", so it can be a program name with args.
6249 set dummy pkg-config
; ac_word
=$2
6250 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6252 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6264 test -z "$as_dir" && as_dir
=.
6265 for ac_exec_ext
in '' $ac_executable_extensions; do
6266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6267 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6275 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6279 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6280 if test -n "$PKG_CONFIG"; then
6281 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6282 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6284 { echo "$as_me:$LINENO: result: no" >&5
6285 echo "${ECHO_T}no" >&6; }
6291 if test "$PKG_CONFIG" = "no" ; then
6294 PKG_CONFIG_MIN_VERSION
=0.9.0
6295 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6296 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6297 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6299 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6300 { echo "$as_me:$LINENO: result: yes" >&5
6301 echo "${ECHO_T}yes" >&6; }
6304 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6305 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6306 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6307 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6308 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6310 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6311 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6312 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6313 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6314 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6316 { echo "$as_me:$LINENO: result: no" >&5
6317 echo "${ECHO_T}no" >&6; }
6320 ## If we have a custom action on failure, don't print errors, but
6321 ## do set a variable so people can do so.
6322 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6329 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6330 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6334 if test $succeeded = yes; then
6340 if test $HAVE_ALSA = yes; then
6341 SAVE_CFLAGS
="$CFLAGS"
6342 SAVE_LDFLAGS
="$LDFLAGS"
6343 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6344 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6345 cat >conftest.
$ac_ext <<_ACEOF
6348 cat confdefs.h
>>conftest.
$ac_ext
6349 cat >>conftest.
$ac_ext <<_ACEOF
6350 /* end confdefs.h. */
6351 #include <asoundlib.h>
6355 snd_lib_error_set_handler (0);
6360 rm -f conftest.
$ac_objext
6361 if { (ac_try
="$ac_compile"
6363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6364 *) ac_try_echo=$ac_try;;
6366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6367 (eval "$ac_compile") 2>conftest.er1
6369 grep -v '^ *+' conftest.er1 >conftest.err
6371 cat conftest.err >&5
6372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6373 (exit $ac_status); } && {
6374 test -z "$ac_c_werror_flag" ||
6375 test ! -s conftest.err
6376 } && test -s conftest.$ac_objext; then
6377 emacs_alsa_normal=yes
6379 echo "$as_me: failed program was:" >&5
6380 sed 's/^/| /' conftest.$ac_ext >&5
6382 emacs_alsa_normal=no
6385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6386 if test "$emacs_alsa_normal" != yes; then
6387 cat >conftest.$ac_ext <<_ACEOF
6390 cat confdefs.h >>conftest.$ac_ext
6391 cat >>conftest.$ac_ext <<_ACEOF
6392 /* end confdefs.h. */
6393 #include <alsa/asoundlib.h>
6397 snd_lib_error_set_handler (0);
6402 rm -f conftest.$ac_objext
6403 if { (ac_try="$ac_compile"
6405 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6406 *) ac_try_echo
=$ac_try;;
6408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6409 (eval "$ac_compile") 2>conftest.er1
6411 grep -v '^ *+' conftest.er1
>conftest.err
6413 cat conftest.err
>&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); } && {
6416 test -z "$ac_c_werror_flag" ||
6417 test ! -s conftest.err
6418 } && test -s conftest.
$ac_objext; then
6419 emacs_alsa_subdir
=yes
6421 echo "$as_me: failed program was:" >&5
6422 sed 's/^/| /' conftest.
$ac_ext >&5
6424 emacs_alsa_subdir
=no
6427 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6428 if test "$emacs_alsa_subdir" != yes; then
6429 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6430 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6431 { (exit 1); exit 1; }; }
6433 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6436 CFLAGS
="$SAVE_CFLAGS"
6437 LDFLAGS
="$SAVE_LDFLAGS"
6438 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6439 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6441 cat >>confdefs.h
<<\_ACEOF
6475 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6476 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6477 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6478 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6481 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6482 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6483 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6484 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6485 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6486 echo $ECHO_N "(cached) $ECHO_C" >&6
6488 ac_res
=`eval echo '${'$as_ac_Header'}'`
6489 { echo "$as_me:$LINENO: result: $ac_res" >&5
6490 echo "${ECHO_T}$ac_res" >&6; }
6492 # Is the header compilable?
6493 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6494 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6495 cat >conftest.
$ac_ext <<_ACEOF
6498 cat confdefs.h
>>conftest.
$ac_ext
6499 cat >>conftest.
$ac_ext <<_ACEOF
6500 /* end confdefs.h. */
6501 $ac_includes_default
6502 #include <$ac_header>
6504 rm -f conftest.
$ac_objext
6505 if { (ac_try
="$ac_compile"
6507 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6508 *) ac_try_echo=$ac_try;;
6510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6511 (eval "$ac_compile") 2>conftest.er1
6513 grep -v '^ *+' conftest.er1 >conftest.err
6515 cat conftest.err >&5
6516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6517 (exit $ac_status); } && {
6518 test -z "$ac_c_werror_flag" ||
6519 test ! -s conftest.err
6520 } && test -s conftest.$ac_objext; then
6521 ac_header_compiler=yes
6523 echo "$as_me: failed program was:" >&5
6524 sed 's/^/| /' conftest.$ac_ext >&5
6526 ac_header_compiler=no
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6530 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6531 echo "${ECHO_T}$ac_header_compiler" >&6; }
6533 # Is the header present?
6534 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6535 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6536 cat >conftest.$ac_ext <<_ACEOF
6539 cat confdefs.h >>conftest.$ac_ext
6540 cat >>conftest.$ac_ext <<_ACEOF
6541 /* end confdefs.h. */
6542 #include <$ac_header>
6544 if { (ac_try="$ac_cpp conftest.$ac_ext"
6546 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6547 *) ac_try_echo
=$ac_try;;
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6552 grep -v '^ *+' conftest.er1
>conftest.err
6554 cat conftest.err
>&5
6555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6556 (exit $ac_status); } >/dev
/null
&& {
6557 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6558 test ! -s conftest.err
6560 ac_header_preproc
=yes
6562 echo "$as_me: failed program was:" >&5
6563 sed 's/^/| /' conftest.
$ac_ext >&5
6565 ac_header_preproc
=no
6568 rm -f conftest.err conftest.
$ac_ext
6569 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6570 echo "${ECHO_T}$ac_header_preproc" >&6; }
6572 # So? What about this header?
6573 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6575 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6576 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6577 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6578 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6579 ac_header_preproc
=yes
6582 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6583 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6584 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6585 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6586 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6587 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6588 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6589 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6590 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6591 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6592 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6593 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6597 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6599 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 eval "$as_ac_Header=\$ac_header_preproc"
6604 ac_res
=`eval echo '${'$as_ac_Header'}'`
6605 { echo "$as_me:$LINENO: result: $ac_res" >&5
6606 echo "${ECHO_T}$ac_res" >&6; }
6609 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6610 cat >>confdefs.h
<<_ACEOF
6611 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6619 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6620 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6621 cat >conftest.
$ac_ext <<_ACEOF
6624 cat confdefs.h
>>conftest.
$ac_ext
6625 cat >>conftest.
$ac_ext <<_ACEOF
6626 /* end confdefs.h. */
6627 #include <sys/personality.h>
6631 personality (PER_LINUX32)
6636 rm -f conftest.
$ac_objext
6637 if { (ac_try
="$ac_compile"
6639 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6640 *) ac_try_echo=$ac_try;;
6642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6643 (eval "$ac_compile") 2>conftest.er1
6645 grep -v '^ *+' conftest.er1 >conftest.err
6647 cat conftest.err >&5
6648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6649 (exit $ac_status); } && {
6650 test -z "$ac_c_werror_flag" ||
6651 test ! -s conftest.err
6652 } && test -s conftest.$ac_objext; then
6653 emacs_cv_personality_linux32=yes
6655 echo "$as_me: failed program was:" >&5
6656 sed 's/^/| /' conftest.$ac_ext >&5
6658 emacs_cv_personality_linux32=no
6661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6662 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6663 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6665 if test $emacs_cv_personality_linux32 = yes; then
6667 cat >>confdefs.h <<\_ACEOF
6668 #define HAVE_PERSONALITY_LINUX32 1
6674 for ac_header in term.h
6676 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6682 cat >conftest.$ac_ext <<_ACEOF
6685 cat confdefs.h >>conftest.$ac_ext
6686 cat >>conftest.$ac_ext <<_ACEOF
6687 /* end confdefs.h. */
6688 #include <$ac_header>
6690 if { (ac_try="$ac_cpp conftest.$ac_ext"
6692 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6693 *) ac_try_echo
=$ac_try;;
6695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6698 grep -v '^ *+' conftest.er1
>conftest.err
6700 cat conftest.err
>&5
6701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6702 (exit $ac_status); } >/dev
/null
&& {
6703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6704 test ! -s conftest.err
6706 eval "$as_ac_Header=yes"
6708 echo "$as_me: failed program was:" >&5
6709 sed 's/^/| /' conftest.
$ac_ext >&5
6711 eval "$as_ac_Header=no"
6714 rm -f conftest.err conftest.
$ac_ext
6716 ac_res
=`eval echo '${'$as_ac_Header'}'`
6717 { echo "$as_me:$LINENO: result: $ac_res" >&5
6718 echo "${ECHO_T}$ac_res" >&6; }
6719 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6720 cat >>confdefs.h
<<_ACEOF
6721 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6728 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6729 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6730 if test "${ac_cv_header_stdc+set}" = set; then
6731 echo $ECHO_N "(cached) $ECHO_C" >&6
6733 cat >conftest.
$ac_ext <<_ACEOF
6736 cat confdefs.h
>>conftest.
$ac_ext
6737 cat >>conftest.
$ac_ext <<_ACEOF
6738 /* end confdefs.h. */
6752 rm -f conftest.
$ac_objext
6753 if { (ac_try
="$ac_compile"
6755 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6756 *) ac_try_echo=$ac_try;;
6758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6759 (eval "$ac_compile") 2>conftest.er1
6761 grep -v '^ *+' conftest.er1 >conftest.err
6763 cat conftest.err >&5
6764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6765 (exit $ac_status); } && {
6766 test -z "$ac_c_werror_flag" ||
6767 test ! -s conftest.err
6768 } && test -s conftest.$ac_objext; then
6769 ac_cv_header_stdc=yes
6771 echo "$as_me: failed program was:" >&5
6772 sed 's/^/| /' conftest.$ac_ext >&5
6774 ac_cv_header_stdc=no
6777 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6779 if test $ac_cv_header_stdc = yes; then
6780 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6781 cat >conftest.$ac_ext <<_ACEOF
6784 cat confdefs.h >>conftest.$ac_ext
6785 cat >>conftest.$ac_ext <<_ACEOF
6786 /* end confdefs.h. */
6790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6791 $EGREP "memchr" >/dev/null 2>&1; then
6794 ac_cv_header_stdc=no
6800 if test $ac_cv_header_stdc = yes; then
6801 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6802 cat >conftest.$ac_ext <<_ACEOF
6805 cat confdefs.h >>conftest.$ac_ext
6806 cat >>conftest.$ac_ext <<_ACEOF
6807 /* end confdefs.h. */
6811 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6812 $EGREP "free" >/dev/null 2>&1; then
6815 ac_cv_header_stdc=no
6821 if test $ac_cv_header_stdc = yes; then
6822 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6823 if test "$cross_compiling" = yes; then
6826 cat >conftest.$ac_ext <<_ACEOF
6829 cat confdefs.h >>conftest.$ac_ext
6830 cat >>conftest.$ac_ext <<_ACEOF
6831 /* end confdefs.h. */
6834 #if ((' ' & 0x0FF) == 0x020)
6835 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6836 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6838 # define ISLOWER(c) \
6839 (('a' <= (c) && (c) <= 'i') \
6840 || ('j' <= (c) && (c) <= 'r') \
6841 || ('s' <= (c) && (c) <= 'z'))
6842 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6845 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6850 for (i = 0; i < 256; i++)
6851 if (XOR (islower (i), ISLOWER (i))
6852 || toupper (i) != TOUPPER (i))
6857 rm -f conftest$ac_exeext
6858 if { (ac_try="$ac_link"
6860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6861 *) ac_try_echo
=$ac_try;;
6863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6864 (eval "$ac_link") 2>&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6868 { (case "(($ac_try" in
6869 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6870 *) ac_try_echo=$ac_try;;
6872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6873 (eval "$ac_try") 2>&5
6875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6876 (exit $ac_status); }; }; then
6879 echo "$as_me: program exited with status $ac_status" >&5
6880 echo "$as_me: failed program was:" >&5
6881 sed 's/^/| /' conftest.$ac_ext >&5
6884 ac_cv_header_stdc=no
6886 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6892 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6893 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6894 if test $ac_cv_header_stdc = yes; then
6896 cat >>confdefs.h <<\_ACEOF
6897 #define STDC_HEADERS 1
6902 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6903 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6904 if test "${ac_cv_header_time+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6907 cat >conftest.$ac_ext <<_ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 #include <sys/types.h>
6914 #include <sys/time.h>
6920 if ((struct tm *) 0)
6926 rm -f conftest.$ac_objext
6927 if { (ac_try="$ac_compile"
6929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6930 *) ac_try_echo
=$ac_try;;
6932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6933 (eval "$ac_compile") 2>conftest.er1
6935 grep -v '^ *+' conftest.er1
>conftest.err
6937 cat conftest.err
>&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } && {
6940 test -z "$ac_c_werror_flag" ||
6941 test ! -s conftest.err
6942 } && test -s conftest.
$ac_objext; then
6943 ac_cv_header_time
=yes
6945 echo "$as_me: failed program was:" >&5
6946 sed 's/^/| /' conftest.
$ac_ext >&5
6948 ac_cv_header_time
=no
6951 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6953 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6954 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6955 if test $ac_cv_header_time = yes; then
6957 cat >>confdefs.h
<<\_ACEOF
6958 #define TIME_WITH_SYS_TIME 1
6963 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6964 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6965 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6966 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 cat >conftest.
$ac_ext <<_ACEOF
6971 cat confdefs.h
>>conftest.
$ac_ext
6972 cat >>conftest.
$ac_ext <<_ACEOF
6973 /* end confdefs.h. */
6974 $ac_includes_default
6986 rm -f conftest.
$ac_objext
6987 if { (ac_try
="$ac_compile"
6989 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6990 *) ac_try_echo=$ac_try;;
6992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6993 (eval "$ac_compile") 2>conftest.er1
6995 grep -v '^ *+' conftest.er1 >conftest.err
6997 cat conftest.err >&5
6998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6999 (exit $ac_status); } && {
7000 test -z "$ac_c_werror_flag" ||
7001 test ! -s conftest.err
7002 } && test -s conftest.$ac_objext; then
7003 ac_cv_have_decl_sys_siglist=yes
7005 echo "$as_me: failed program was:" >&5
7006 sed 's/^/| /' conftest.$ac_ext >&5
7008 ac_cv_have_decl_sys_siglist=no
7011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7013 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7014 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7015 if test $ac_cv_have_decl_sys_siglist = yes; then
7017 cat >>confdefs.h <<_ACEOF
7018 #define HAVE_DECL_SYS_SIGLIST 1
7023 cat >>confdefs.h <<_ACEOF
7024 #define HAVE_DECL_SYS_SIGLIST 0
7031 if test $ac_cv_have_decl_sys_siglist != yes; then
7032 # For Tru64, at least:
7033 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7034 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7035 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7038 cat >conftest.$ac_ext <<_ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044 $ac_includes_default
7048 #ifndef __sys_siglist
7049 (void) __sys_siglist;
7056 rm -f conftest.$ac_objext
7057 if { (ac_try="$ac_compile"
7059 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7060 *) ac_try_echo
=$ac_try;;
7062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7063 (eval "$ac_compile") 2>conftest.er1
7065 grep -v '^ *+' conftest.er1
>conftest.err
7067 cat conftest.err
>&5
7068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7069 (exit $ac_status); } && {
7070 test -z "$ac_c_werror_flag" ||
7071 test ! -s conftest.err
7072 } && test -s conftest.
$ac_objext; then
7073 ac_cv_have_decl___sys_siglist
=yes
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.
$ac_ext >&5
7078 ac_cv_have_decl___sys_siglist
=no
7081 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7083 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7084 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7085 if test $ac_cv_have_decl___sys_siglist = yes; then
7087 cat >>confdefs.h
<<_ACEOF
7088 #define HAVE_DECL___SYS_SIGLIST 1
7093 cat >>confdefs.h
<<_ACEOF
7094 #define HAVE_DECL___SYS_SIGLIST 0
7101 if test $ac_cv_have_decl___sys_siglist = yes; then
7103 cat >>confdefs.h
<<\_ACEOF
7104 #define sys_siglist __sys_siglist
7109 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7110 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7111 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7112 echo $ECHO_N "(cached) $ECHO_C" >&6
7114 cat >conftest.
$ac_ext <<_ACEOF
7117 cat confdefs.h
>>conftest.
$ac_ext
7118 cat >>conftest.
$ac_ext <<_ACEOF
7119 /* end confdefs.h. */
7120 #include <sys/types.h>
7121 #include <sys/wait.h>
7123 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7126 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7134 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7139 rm -f conftest.
$ac_objext
7140 if { (ac_try
="$ac_compile"
7142 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7143 *) ac_try_echo=$ac_try;;
7145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7146 (eval "$ac_compile") 2>conftest.er1
7148 grep -v '^ *+' conftest.er1 >conftest.err
7150 cat conftest.err >&5
7151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7152 (exit $ac_status); } && {
7153 test -z "$ac_c_werror_flag" ||
7154 test ! -s conftest.err
7155 } && test -s conftest.$ac_objext; then
7156 ac_cv_header_sys_wait_h=yes
7158 echo "$as_me: failed program was:" >&5
7159 sed 's/^/| /' conftest.$ac_ext >&5
7161 ac_cv_header_sys_wait_h=no
7164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7166 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7167 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7168 if test $ac_cv_header_sys_wait_h = yes; then
7170 cat >>confdefs.h <<\_ACEOF
7171 #define HAVE_SYS_WAIT_H 1
7177 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7178 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7179 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7180 echo $ECHO_N "(cached) $ECHO_C" >&6
7182 cat >conftest.$ac_ext <<_ACEOF
7185 cat confdefs.h >>conftest.$ac_ext
7186 cat >>conftest.$ac_ext <<_ACEOF
7187 /* end confdefs.h. */
7188 #ifdef TIME_WITH_SYS_TIME
7189 #include <sys/time.h>
7192 #ifdef HAVE_SYS_TIME_H
7193 #include <sys/time.h>
7204 static struct utimbuf x; x.actime = x.modtime;
7209 rm -f conftest.$ac_objext
7210 if { (ac_try="$ac_compile"
7212 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7213 *) ac_try_echo
=$ac_try;;
7215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7216 (eval "$ac_compile") 2>conftest.er1
7218 grep -v '^ *+' conftest.er1
>conftest.err
7220 cat conftest.err
>&5
7221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7222 (exit $ac_status); } && {
7223 test -z "$ac_c_werror_flag" ||
7224 test ! -s conftest.err
7225 } && test -s conftest.
$ac_objext; then
7226 emacs_cv_struct_utimbuf
=yes
7228 echo "$as_me: failed program was:" >&5
7229 sed 's/^/| /' conftest.
$ac_ext >&5
7231 emacs_cv_struct_utimbuf
=no
7234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7236 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7237 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7238 if test $emacs_cv_struct_utimbuf = yes; then
7240 cat >>confdefs.h
<<\_ACEOF
7241 #define HAVE_STRUCT_UTIMBUF 1
7246 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7247 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7248 if test "${ac_cv_type_signal+set}" = set; then
7249 echo $ECHO_N "(cached) $ECHO_C" >&6
7251 cat >conftest.
$ac_ext <<_ACEOF
7254 cat confdefs.h
>>conftest.
$ac_ext
7255 cat >>conftest.
$ac_ext <<_ACEOF
7256 /* end confdefs.h. */
7257 #include <sys/types.h>
7263 return *(signal (0, 0)) (0) == 1;
7268 rm -f conftest.
$ac_objext
7269 if { (ac_try
="$ac_compile"
7271 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7272 *) ac_try_echo=$ac_try;;
7274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7275 (eval "$ac_compile") 2>conftest.er1
7277 grep -v '^ *+' conftest.er1 >conftest.err
7279 cat conftest.err >&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } && {
7282 test -z "$ac_c_werror_flag" ||
7283 test ! -s conftest.err
7284 } && test -s conftest.$ac_objext; then
7285 ac_cv_type_signal=int
7287 echo "$as_me: failed program was:" >&5
7288 sed 's/^/| /' conftest.$ac_ext >&5
7290 ac_cv_type_signal=void
7293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7295 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7296 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7298 cat >>confdefs.h <<_ACEOF
7299 #define RETSIGTYPE $ac_cv_type_signal
7304 { echo "$as_me:$LINENO: checking for speed_t" >&5
7305 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7306 if test "${emacs_cv_speed_t+set}" = set; then
7307 echo $ECHO_N "(cached) $ECHO_C" >&6
7309 cat >conftest.$ac_ext <<_ACEOF
7312 cat confdefs.h >>conftest.$ac_ext
7313 cat >>conftest.$ac_ext <<_ACEOF
7314 /* end confdefs.h. */
7315 #include <termios.h>
7324 rm -f conftest.$ac_objext
7325 if { (ac_try="$ac_compile"
7327 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7328 *) ac_try_echo
=$ac_try;;
7330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7331 (eval "$ac_compile") 2>conftest.er1
7333 grep -v '^ *+' conftest.er1
>conftest.err
7335 cat conftest.err
>&5
7336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7337 (exit $ac_status); } && {
7338 test -z "$ac_c_werror_flag" ||
7339 test ! -s conftest.err
7340 } && test -s conftest.
$ac_objext; then
7341 emacs_cv_speed_t
=yes
7343 echo "$as_me: failed program was:" >&5
7344 sed 's/^/| /' conftest.
$ac_ext >&5
7349 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7351 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7352 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7353 if test $emacs_cv_speed_t = yes; then
7355 cat >>confdefs.h
<<\_ACEOF
7356 #define HAVE_SPEED_T 1
7361 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7362 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7363 if test "${emacs_cv_struct_timeval+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7366 cat >conftest.
$ac_ext <<_ACEOF
7369 cat confdefs.h
>>conftest.
$ac_ext
7370 cat >>conftest.
$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 #ifdef TIME_WITH_SYS_TIME
7373 #include <sys/time.h>
7376 #ifdef HAVE_SYS_TIME_H
7377 #include <sys/time.h>
7385 static struct timeval x; x.tv_sec = x.tv_usec;
7390 rm -f conftest.
$ac_objext
7391 if { (ac_try
="$ac_compile"
7393 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7394 *) ac_try_echo=$ac_try;;
7396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7397 (eval "$ac_compile") 2>conftest.er1
7399 grep -v '^ *+' conftest.er1 >conftest.err
7401 cat conftest.err >&5
7402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7403 (exit $ac_status); } && {
7404 test -z "$ac_c_werror_flag" ||
7405 test ! -s conftest.err
7406 } && test -s conftest.$ac_objext; then
7407 emacs_cv_struct_timeval=yes
7409 echo "$as_me: failed program was:" >&5
7410 sed 's/^/| /' conftest.$ac_ext >&5
7412 emacs_cv_struct_timeval=no
7415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7417 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7418 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7419 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7420 if test $emacs_cv_struct_timeval = yes; then
7422 cat >>confdefs.h <<\_ACEOF
7423 #define HAVE_TIMEVAL 1
7428 { echo "$as_me:$LINENO: checking for struct exception" >&5
7429 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7430 if test "${emacs_cv_struct_exception+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7433 cat >conftest.$ac_ext <<_ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7443 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7448 rm -f conftest.$ac_objext
7449 if { (ac_try="$ac_compile"
7451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7452 *) ac_try_echo
=$ac_try;;
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_compile") 2>conftest.er1
7457 grep -v '^ *+' conftest.er1
>conftest.err
7459 cat conftest.err
>&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } && {
7462 test -z "$ac_c_werror_flag" ||
7463 test ! -s conftest.err
7464 } && test -s conftest.
$ac_objext; then
7465 emacs_cv_struct_exception
=yes
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.
$ac_ext >&5
7470 emacs_cv_struct_exception
=no
7473 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7475 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7476 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7477 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7478 if test $emacs_cv_struct_exception != yes; then
7480 cat >>confdefs.h
<<\_ACEOF
7481 #define NO_MATHERR 1
7487 for ac_header
in sys
/socket.h
7489 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7490 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7493 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7494 echo $ECHO_N "(cached) $ECHO_C" >&6
7496 ac_res
=`eval echo '${'$as_ac_Header'}'`
7497 { echo "$as_me:$LINENO: result: $ac_res" >&5
7498 echo "${ECHO_T}$ac_res" >&6; }
7500 # Is the header compilable?
7501 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7502 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7503 cat >conftest.
$ac_ext <<_ACEOF
7506 cat confdefs.h
>>conftest.
$ac_ext
7507 cat >>conftest.
$ac_ext <<_ACEOF
7508 /* end confdefs.h. */
7509 $ac_includes_default
7510 #include <$ac_header>
7512 rm -f conftest.
$ac_objext
7513 if { (ac_try
="$ac_compile"
7515 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7516 *) ac_try_echo=$ac_try;;
7518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7519 (eval "$ac_compile") 2>conftest.er1
7521 grep -v '^ *+' conftest.er1 >conftest.err
7523 cat conftest.err >&5
7524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7525 (exit $ac_status); } && {
7526 test -z "$ac_c_werror_flag" ||
7527 test ! -s conftest.err
7528 } && test -s conftest.$ac_objext; then
7529 ac_header_compiler=yes
7531 echo "$as_me: failed program was:" >&5
7532 sed 's/^/| /' conftest.$ac_ext >&5
7534 ac_header_compiler=no
7537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7538 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7539 echo "${ECHO_T}$ac_header_compiler" >&6; }
7541 # Is the header present?
7542 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7543 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7544 cat >conftest.$ac_ext <<_ACEOF
7547 cat confdefs.h >>conftest.$ac_ext
7548 cat >>conftest.$ac_ext <<_ACEOF
7549 /* end confdefs.h. */
7550 #include <$ac_header>
7552 if { (ac_try="$ac_cpp conftest.$ac_ext"
7554 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7555 *) ac_try_echo
=$ac_try;;
7557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7558 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7560 grep -v '^ *+' conftest.er1
>conftest.err
7562 cat conftest.err
>&5
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); } >/dev
/null
&& {
7565 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7566 test ! -s conftest.err
7568 ac_header_preproc
=yes
7570 echo "$as_me: failed program was:" >&5
7571 sed 's/^/| /' conftest.
$ac_ext >&5
7573 ac_header_preproc
=no
7576 rm -f conftest.err conftest.
$ac_ext
7577 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7578 echo "${ECHO_T}$ac_header_preproc" >&6; }
7580 # So? What about this header?
7581 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7583 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7584 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7585 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7586 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7587 ac_header_preproc
=yes
7590 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7591 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7592 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7593 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7594 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7595 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7596 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7597 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7598 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7599 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7600 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7601 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7605 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7606 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7607 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7608 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 eval "$as_ac_Header=\$ac_header_preproc"
7612 ac_res
=`eval echo '${'$as_ac_Header'}'`
7613 { echo "$as_me:$LINENO: result: $ac_res" >&5
7614 echo "${ECHO_T}$ac_res" >&6; }
7617 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7618 cat >>confdefs.h
<<_ACEOF
7619 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7627 for ac_header
in net
/if.h
7629 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7632 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7633 echo $ECHO_N "(cached) $ECHO_C" >&6
7635 cat >conftest.
$ac_ext <<_ACEOF
7638 cat confdefs.h
>>conftest.
$ac_ext
7639 cat >>conftest.
$ac_ext <<_ACEOF
7640 /* end confdefs.h. */
7641 $ac_includes_default
7642 #if HAVE_SYS_SOCKET_H
7643 #include <sys/socket.h>
7646 #include <$ac_header>
7648 rm -f conftest.
$ac_objext
7649 if { (ac_try
="$ac_compile"
7651 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7652 *) ac_try_echo=$ac_try;;
7654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7655 (eval "$ac_compile") 2>conftest.er1
7657 grep -v '^ *+' conftest.er1 >conftest.err
7659 cat conftest.err >&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } && {
7662 test -z "$ac_c_werror_flag" ||
7663 test ! -s conftest.err
7664 } && test -s conftest.$ac_objext; then
7665 eval "$as_ac_Header=yes"
7667 echo "$as_me: failed program was:" >&5
7668 sed 's/^/| /' conftest.$ac_ext >&5
7670 eval "$as_ac_Header=no"
7673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7675 ac_res=`eval echo '${'$as_ac_Header'}'`
7676 { echo "$as_me:$LINENO: result: $ac_res" >&5
7677 echo "${ECHO_T}$ac_res" >&6; }
7678 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7679 cat >>confdefs.h <<_ACEOF
7680 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7688 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7689 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7690 if test "${ac_cv_struct_tm+set}" = set; then
7691 echo $ECHO_N "(cached) $ECHO_C" >&6
7693 cat >conftest.$ac_ext <<_ACEOF
7696 cat confdefs.h >>conftest.$ac_ext
7697 cat >>conftest.$ac_ext <<_ACEOF
7698 /* end confdefs.h. */
7699 #include <sys/types.h>
7706 int *p = &tm.tm_sec;
7712 rm -f conftest.$ac_objext
7713 if { (ac_try="$ac_compile"
7715 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7716 *) ac_try_echo
=$ac_try;;
7718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7719 (eval "$ac_compile") 2>conftest.er1
7721 grep -v '^ *+' conftest.er1
>conftest.err
7723 cat conftest.err
>&5
7724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7725 (exit $ac_status); } && {
7726 test -z "$ac_c_werror_flag" ||
7727 test ! -s conftest.err
7728 } && test -s conftest.
$ac_objext; then
7729 ac_cv_struct_tm
=time.h
7731 echo "$as_me: failed program was:" >&5
7732 sed 's/^/| /' conftest.
$ac_ext >&5
7734 ac_cv_struct_tm
=sys
/time.h
7737 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7739 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7740 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7741 if test $ac_cv_struct_tm = sys
/time.h
; then
7743 cat >>confdefs.h
<<\_ACEOF
7744 #define TM_IN_SYS_TIME 1
7749 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7750 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7751 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7752 echo $ECHO_N "(cached) $ECHO_C" >&6
7754 cat >conftest.
$ac_ext <<_ACEOF
7757 cat confdefs.h
>>conftest.
$ac_ext
7758 cat >>conftest.
$ac_ext <<_ACEOF
7759 /* end confdefs.h. */
7760 #include <sys/types.h>
7761 #include <$ac_cv_struct_tm>
7767 static struct tm ac_aggr;
7768 if (ac_aggr.tm_zone)
7774 rm -f conftest.
$ac_objext
7775 if { (ac_try
="$ac_compile"
7777 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7778 *) ac_try_echo=$ac_try;;
7780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7781 (eval "$ac_compile") 2>conftest.er1
7783 grep -v '^ *+' conftest.er1 >conftest.err
7785 cat conftest.err >&5
7786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7787 (exit $ac_status); } && {
7788 test -z "$ac_c_werror_flag" ||
7789 test ! -s conftest.err
7790 } && test -s conftest.$ac_objext; then
7791 ac_cv_member_struct_tm_tm_zone=yes
7793 echo "$as_me: failed program was:" >&5
7794 sed 's/^/| /' conftest.$ac_ext >&5
7796 cat >conftest.$ac_ext <<_ACEOF
7799 cat confdefs.h >>conftest.$ac_ext
7800 cat >>conftest.$ac_ext <<_ACEOF
7801 /* end confdefs.h. */
7802 #include <sys/types.h>
7803 #include <$ac_cv_struct_tm>
7809 static struct tm ac_aggr;
7810 if (sizeof ac_aggr.tm_zone)
7816 rm -f conftest.$ac_objext
7817 if { (ac_try="$ac_compile"
7819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7820 *) ac_try_echo
=$ac_try;;
7822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7823 (eval "$ac_compile") 2>conftest.er1
7825 grep -v '^ *+' conftest.er1
>conftest.err
7827 cat conftest.err
>&5
7828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7829 (exit $ac_status); } && {
7830 test -z "$ac_c_werror_flag" ||
7831 test ! -s conftest.err
7832 } && test -s conftest.
$ac_objext; then
7833 ac_cv_member_struct_tm_tm_zone
=yes
7835 echo "$as_me: failed program was:" >&5
7836 sed 's/^/| /' conftest.
$ac_ext >&5
7838 ac_cv_member_struct_tm_tm_zone
=no
7841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7844 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7846 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7847 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7848 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7850 cat >>confdefs.h
<<_ACEOF
7851 #define HAVE_STRUCT_TM_TM_ZONE 1
7857 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7859 cat >>confdefs.h
<<\_ACEOF
7860 #define HAVE_TM_ZONE 1
7864 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7865 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7866 if test "${ac_cv_have_decl_tzname+set}" = set; then
7867 echo $ECHO_N "(cached) $ECHO_C" >&6
7869 cat >conftest.
$ac_ext <<_ACEOF
7872 cat confdefs.h
>>conftest.
$ac_ext
7873 cat >>conftest.
$ac_ext <<_ACEOF
7874 /* end confdefs.h. */
7888 rm -f conftest.
$ac_objext
7889 if { (ac_try
="$ac_compile"
7891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7892 *) ac_try_echo=$ac_try;;
7894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7895 (eval "$ac_compile") 2>conftest.er1
7897 grep -v '^ *+' conftest.er1 >conftest.err
7899 cat conftest.err >&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } && {
7902 test -z "$ac_c_werror_flag" ||
7903 test ! -s conftest.err
7904 } && test -s conftest.$ac_objext; then
7905 ac_cv_have_decl_tzname=yes
7907 echo "$as_me: failed program was:" >&5
7908 sed 's/^/| /' conftest.$ac_ext >&5
7910 ac_cv_have_decl_tzname=no
7913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7915 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7916 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7917 if test $ac_cv_have_decl_tzname = yes; then
7919 cat >>confdefs.h <<_ACEOF
7920 #define HAVE_DECL_TZNAME 1
7925 cat >>confdefs.h <<_ACEOF
7926 #define HAVE_DECL_TZNAME 0
7933 { echo "$as_me:$LINENO: checking for tzname" >&5
7934 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7935 if test "${ac_cv_var_tzname+set}" = set; then
7936 echo $ECHO_N "(cached) $ECHO_C" >&6
7938 cat >conftest.$ac_ext <<_ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7945 #if !HAVE_DECL_TZNAME
7946 extern char *tzname[];
7952 return tzname[0][0];
7957 rm -f conftest.$ac_objext conftest$ac_exeext
7958 if { (ac_try="$ac_link"
7960 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7961 *) ac_try_echo
=$ac_try;;
7963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7964 (eval "$ac_link") 2>conftest.er1
7966 grep -v '^ *+' conftest.er1
>conftest.err
7968 cat conftest.err
>&5
7969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7970 (exit $ac_status); } && {
7971 test -z "$ac_c_werror_flag" ||
7972 test ! -s conftest.err
7973 } && test -s conftest
$ac_exeext &&
7974 $as_test_x conftest
$ac_exeext; then
7975 ac_cv_var_tzname
=yes
7977 echo "$as_me: failed program was:" >&5
7978 sed 's/^/| /' conftest.
$ac_ext >&5
7983 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7984 conftest
$ac_exeext conftest.
$ac_ext
7986 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7987 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7988 if test $ac_cv_var_tzname = yes; then
7990 cat >>confdefs.h
<<\_ACEOF
7991 #define HAVE_TZNAME 1
7997 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7998 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7999 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8000 echo $ECHO_N "(cached) $ECHO_C" >&6
8002 cat >conftest.
$ac_ext <<_ACEOF
8005 cat confdefs.h
>>conftest.
$ac_ext
8006 cat >>conftest.
$ac_ext <<_ACEOF
8007 /* end confdefs.h. */
8013 static struct tm ac_aggr;
8014 if (ac_aggr.tm_gmtoff)
8020 rm -f conftest.
$ac_objext
8021 if { (ac_try
="$ac_compile"
8023 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8024 *) ac_try_echo=$ac_try;;
8026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8027 (eval "$ac_compile") 2>conftest.er1
8029 grep -v '^ *+' conftest.er1 >conftest.err
8031 cat conftest.err >&5
8032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8033 (exit $ac_status); } && {
8034 test -z "$ac_c_werror_flag" ||
8035 test ! -s conftest.err
8036 } && test -s conftest.$ac_objext; then
8037 ac_cv_member_struct_tm_tm_gmtoff=yes
8039 echo "$as_me: failed program was:" >&5
8040 sed 's/^/| /' conftest.$ac_ext >&5
8042 cat >conftest.$ac_ext <<_ACEOF
8045 cat confdefs.h >>conftest.$ac_ext
8046 cat >>conftest.$ac_ext <<_ACEOF
8047 /* end confdefs.h. */
8053 static struct tm ac_aggr;
8054 if (sizeof ac_aggr.tm_gmtoff)
8060 rm -f conftest.$ac_objext
8061 if { (ac_try="$ac_compile"
8063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8064 *) ac_try_echo
=$ac_try;;
8066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8067 (eval "$ac_compile") 2>conftest.er1
8069 grep -v '^ *+' conftest.er1
>conftest.err
8071 cat conftest.err
>&5
8072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8073 (exit $ac_status); } && {
8074 test -z "$ac_c_werror_flag" ||
8075 test ! -s conftest.err
8076 } && test -s conftest.
$ac_objext; then
8077 ac_cv_member_struct_tm_tm_gmtoff
=yes
8079 echo "$as_me: failed program was:" >&5
8080 sed 's/^/| /' conftest.
$ac_ext >&5
8082 ac_cv_member_struct_tm_tm_gmtoff
=no
8085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8090 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8091 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8092 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8094 cat >>confdefs.h
<<\_ACEOF
8095 #define HAVE_TM_GMTOFF 1
8100 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8101 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8102 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8103 echo $ECHO_N "(cached) $ECHO_C" >&6
8105 cat >conftest.
$ac_ext <<_ACEOF
8108 cat confdefs.h
>>conftest.
$ac_ext
8109 cat >>conftest.
$ac_ext <<_ACEOF
8110 /* end confdefs.h. */
8111 $ac_includes_default
8112 #if HAVE_SYS_SOCKET_H
8113 #include <sys/socket.h>
8122 static struct ifreq ac_aggr;
8123 if (ac_aggr.ifr_flags)
8129 rm -f conftest.
$ac_objext
8130 if { (ac_try
="$ac_compile"
8132 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8133 *) ac_try_echo=$ac_try;;
8135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8136 (eval "$ac_compile") 2>conftest.er1
8138 grep -v '^ *+' conftest.er1 >conftest.err
8140 cat conftest.err >&5
8141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8142 (exit $ac_status); } && {
8143 test -z "$ac_c_werror_flag" ||
8144 test ! -s conftest.err
8145 } && test -s conftest.$ac_objext; then
8146 ac_cv_member_struct_ifreq_ifr_flags=yes
8148 echo "$as_me: failed program was:" >&5
8149 sed 's/^/| /' conftest.$ac_ext >&5
8151 cat >conftest.$ac_ext <<_ACEOF
8154 cat confdefs.h >>conftest.$ac_ext
8155 cat >>conftest.$ac_ext <<_ACEOF
8156 /* end confdefs.h. */
8157 $ac_includes_default
8158 #if HAVE_SYS_SOCKET_H
8159 #include <sys/socket.h>
8168 static struct ifreq ac_aggr;
8169 if (sizeof ac_aggr.ifr_flags)
8175 rm -f conftest.$ac_objext
8176 if { (ac_try="$ac_compile"
8178 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8179 *) ac_try_echo
=$ac_try;;
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_compile") 2>conftest.er1
8184 grep -v '^ *+' conftest.er1
>conftest.err
8186 cat conftest.err
>&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } && {
8189 test -z "$ac_c_werror_flag" ||
8190 test ! -s conftest.err
8191 } && test -s conftest.
$ac_objext; then
8192 ac_cv_member_struct_ifreq_ifr_flags
=yes
8194 echo "$as_me: failed program was:" >&5
8195 sed 's/^/| /' conftest.
$ac_ext >&5
8197 ac_cv_member_struct_ifreq_ifr_flags
=no
8200 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8205 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8206 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8207 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8209 cat >>confdefs.h
<<_ACEOF
8210 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8215 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8216 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8217 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8220 cat >conftest.
$ac_ext <<_ACEOF
8223 cat confdefs.h
>>conftest.
$ac_ext
8224 cat >>conftest.
$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8226 $ac_includes_default
8227 #if HAVE_SYS_SOCKET_H
8228 #include <sys/socket.h>
8237 static struct ifreq ac_aggr;
8238 if (ac_aggr.ifr_hwaddr)
8244 rm -f conftest.
$ac_objext
8245 if { (ac_try
="$ac_compile"
8247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8248 *) ac_try_echo=$ac_try;;
8250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8251 (eval "$ac_compile") 2>conftest.er1
8253 grep -v '^ *+' conftest.er1 >conftest.err
8255 cat conftest.err >&5
8256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8257 (exit $ac_status); } && {
8258 test -z "$ac_c_werror_flag" ||
8259 test ! -s conftest.err
8260 } && test -s conftest.$ac_objext; then
8261 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8263 echo "$as_me: failed program was:" >&5
8264 sed 's/^/| /' conftest.$ac_ext >&5
8266 cat >conftest.$ac_ext <<_ACEOF
8269 cat confdefs.h >>conftest.$ac_ext
8270 cat >>conftest.$ac_ext <<_ACEOF
8271 /* end confdefs.h. */
8272 $ac_includes_default
8273 #if HAVE_SYS_SOCKET_H
8274 #include <sys/socket.h>
8283 static struct ifreq ac_aggr;
8284 if (sizeof ac_aggr.ifr_hwaddr)
8290 rm -f conftest.$ac_objext
8291 if { (ac_try="$ac_compile"
8293 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8294 *) ac_try_echo
=$ac_try;;
8296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8297 (eval "$ac_compile") 2>conftest.er1
8299 grep -v '^ *+' conftest.er1
>conftest.err
8301 cat conftest.err
>&5
8302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8303 (exit $ac_status); } && {
8304 test -z "$ac_c_werror_flag" ||
8305 test ! -s conftest.err
8306 } && test -s conftest.
$ac_objext; then
8307 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8309 echo "$as_me: failed program was:" >&5
8310 sed 's/^/| /' conftest.
$ac_ext >&5
8312 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8320 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8321 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8322 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8324 cat >>confdefs.h
<<_ACEOF
8325 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8330 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8331 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8332 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8333 echo $ECHO_N "(cached) $ECHO_C" >&6
8335 cat >conftest.
$ac_ext <<_ACEOF
8338 cat confdefs.h
>>conftest.
$ac_ext
8339 cat >>conftest.
$ac_ext <<_ACEOF
8340 /* end confdefs.h. */
8341 $ac_includes_default
8342 #if HAVE_SYS_SOCKET_H
8343 #include <sys/socket.h>
8352 static struct ifreq ac_aggr;
8353 if (ac_aggr.ifr_netmask)
8359 rm -f conftest.
$ac_objext
8360 if { (ac_try
="$ac_compile"
8362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8363 *) ac_try_echo=$ac_try;;
8365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8366 (eval "$ac_compile") 2>conftest.er1
8368 grep -v '^ *+' conftest.er1 >conftest.err
8370 cat conftest.err >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } && {
8373 test -z "$ac_c_werror_flag" ||
8374 test ! -s conftest.err
8375 } && test -s conftest.$ac_objext; then
8376 ac_cv_member_struct_ifreq_ifr_netmask=yes
8378 echo "$as_me: failed program was:" >&5
8379 sed 's/^/| /' conftest.$ac_ext >&5
8381 cat >conftest.$ac_ext <<_ACEOF
8384 cat confdefs.h >>conftest.$ac_ext
8385 cat >>conftest.$ac_ext <<_ACEOF
8386 /* end confdefs.h. */
8387 $ac_includes_default
8388 #if HAVE_SYS_SOCKET_H
8389 #include <sys/socket.h>
8398 static struct ifreq ac_aggr;
8399 if (sizeof ac_aggr.ifr_netmask)
8405 rm -f conftest.$ac_objext
8406 if { (ac_try="$ac_compile"
8408 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8409 *) ac_try_echo
=$ac_try;;
8411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8412 (eval "$ac_compile") 2>conftest.er1
8414 grep -v '^ *+' conftest.er1
>conftest.err
8416 cat conftest.err
>&5
8417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8418 (exit $ac_status); } && {
8419 test -z "$ac_c_werror_flag" ||
8420 test ! -s conftest.err
8421 } && test -s conftest.
$ac_objext; then
8422 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8424 echo "$as_me: failed program was:" >&5
8425 sed 's/^/| /' conftest.
$ac_ext >&5
8427 ac_cv_member_struct_ifreq_ifr_netmask
=no
8430 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8433 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8435 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8436 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8437 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8439 cat >>confdefs.h
<<_ACEOF
8440 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8445 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8446 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8447 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8448 echo $ECHO_N "(cached) $ECHO_C" >&6
8450 cat >conftest.
$ac_ext <<_ACEOF
8453 cat confdefs.h
>>conftest.
$ac_ext
8454 cat >>conftest.
$ac_ext <<_ACEOF
8455 /* end confdefs.h. */
8456 $ac_includes_default
8457 #if HAVE_SYS_SOCKET_H
8458 #include <sys/socket.h>
8467 static struct ifreq ac_aggr;
8468 if (ac_aggr.ifr_broadaddr)
8474 rm -f conftest.
$ac_objext
8475 if { (ac_try
="$ac_compile"
8477 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8478 *) ac_try_echo=$ac_try;;
8480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8481 (eval "$ac_compile") 2>conftest.er1
8483 grep -v '^ *+' conftest.er1 >conftest.err
8485 cat conftest.err >&5
8486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8487 (exit $ac_status); } && {
8488 test -z "$ac_c_werror_flag" ||
8489 test ! -s conftest.err
8490 } && test -s conftest.$ac_objext; then
8491 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8493 echo "$as_me: failed program was:" >&5
8494 sed 's/^/| /' conftest.$ac_ext >&5
8496 cat >conftest.$ac_ext <<_ACEOF
8499 cat confdefs.h >>conftest.$ac_ext
8500 cat >>conftest.$ac_ext <<_ACEOF
8501 /* end confdefs.h. */
8502 $ac_includes_default
8503 #if HAVE_SYS_SOCKET_H
8504 #include <sys/socket.h>
8513 static struct ifreq ac_aggr;
8514 if (sizeof ac_aggr.ifr_broadaddr)
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_member_struct_ifreq_ifr_broadaddr
=yes
8539 echo "$as_me: failed program was:" >&5
8540 sed 's/^/| /' conftest.
$ac_ext >&5
8542 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8545 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8548 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8550 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8551 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8552 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8554 cat >>confdefs.h
<<_ACEOF
8555 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8560 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8561 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8562 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8563 echo $ECHO_N "(cached) $ECHO_C" >&6
8565 cat >conftest.
$ac_ext <<_ACEOF
8568 cat confdefs.h
>>conftest.
$ac_ext
8569 cat >>conftest.
$ac_ext <<_ACEOF
8570 /* end confdefs.h. */
8571 $ac_includes_default
8572 #if HAVE_SYS_SOCKET_H
8573 #include <sys/socket.h>
8582 static struct ifreq ac_aggr;
8583 if (ac_aggr.ifr_addr)
8589 rm -f conftest.
$ac_objext
8590 if { (ac_try
="$ac_compile"
8592 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8593 *) ac_try_echo=$ac_try;;
8595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8596 (eval "$ac_compile") 2>conftest.er1
8598 grep -v '^ *+' conftest.er1 >conftest.err
8600 cat conftest.err >&5
8601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8602 (exit $ac_status); } && {
8603 test -z "$ac_c_werror_flag" ||
8604 test ! -s conftest.err
8605 } && test -s conftest.$ac_objext; then
8606 ac_cv_member_struct_ifreq_ifr_addr=yes
8608 echo "$as_me: failed program was:" >&5
8609 sed 's/^/| /' conftest.$ac_ext >&5
8611 cat >conftest.$ac_ext <<_ACEOF
8614 cat confdefs.h >>conftest.$ac_ext
8615 cat >>conftest.$ac_ext <<_ACEOF
8616 /* end confdefs.h. */
8617 $ac_includes_default
8618 #if HAVE_SYS_SOCKET_H
8619 #include <sys/socket.h>
8628 static struct ifreq ac_aggr;
8629 if (sizeof ac_aggr.ifr_addr)
8635 rm -f conftest.$ac_objext
8636 if { (ac_try="$ac_compile"
8638 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8639 *) ac_try_echo
=$ac_try;;
8641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8642 (eval "$ac_compile") 2>conftest.er1
8644 grep -v '^ *+' conftest.er1
>conftest.err
8646 cat conftest.err
>&5
8647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8648 (exit $ac_status); } && {
8649 test -z "$ac_c_werror_flag" ||
8650 test ! -s conftest.err
8651 } && test -s conftest.
$ac_objext; then
8652 ac_cv_member_struct_ifreq_ifr_addr
=yes
8654 echo "$as_me: failed program was:" >&5
8655 sed 's/^/| /' conftest.
$ac_ext >&5
8657 ac_cv_member_struct_ifreq_ifr_addr
=no
8660 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8663 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8665 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8666 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8667 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8669 cat >>confdefs.h
<<_ACEOF
8670 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8678 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8679 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8680 if test "$ac_cv_prog_cc_c89" != no
; then
8681 { echo "$as_me:$LINENO: result: yes" >&5
8682 echo "${ECHO_T}yes" >&6; }
8684 cat >>confdefs.h
<<\_ACEOF
8685 #define PROTOTYPES 1
8689 cat >>confdefs.h
<<\_ACEOF
8690 #define __PROTOTYPES 1
8694 { echo "$as_me:$LINENO: result: no" >&5
8695 echo "${ECHO_T}no" >&6; }
8698 { echo "$as_me:$LINENO: checking for working volatile" >&5
8699 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8700 if test "${ac_cv_c_volatile+set}" = set; then
8701 echo $ECHO_N "(cached) $ECHO_C" >&6
8703 cat >conftest.
$ac_ext <<_ACEOF
8706 cat confdefs.h
>>conftest.
$ac_ext
8707 cat >>conftest.
$ac_ext <<_ACEOF
8708 /* end confdefs.h. */
8715 int * volatile y = (int *) 0;
8721 rm -f conftest.
$ac_objext
8722 if { (ac_try
="$ac_compile"
8724 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8725 *) ac_try_echo=$ac_try;;
8727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8728 (eval "$ac_compile") 2>conftest.er1
8730 grep -v '^ *+' conftest.er1 >conftest.err
8732 cat conftest.err >&5
8733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8734 (exit $ac_status); } && {
8735 test -z "$ac_c_werror_flag" ||
8736 test ! -s conftest.err
8737 } && test -s conftest.$ac_objext; then
8738 ac_cv_c_volatile=yes
8740 echo "$as_me: failed program was:" >&5
8741 sed 's/^/| /' conftest.$ac_ext >&5
8746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8748 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8749 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8750 if test $ac_cv_c_volatile = no; then
8752 cat >>confdefs.h <<\_ACEOF
8758 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8759 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8760 if test "${ac_cv_c_const+set}" = set; then
8761 echo $ECHO_N "(cached) $ECHO_C" >&6
8763 cat >conftest.$ac_ext <<_ACEOF
8766 cat confdefs.h >>conftest.$ac_ext
8767 cat >>conftest.$ac_ext <<_ACEOF
8768 /* end confdefs.h. */
8773 /* FIXME: Include the comments suggested by Paul. */
8775 /* Ultrix mips cc rejects this. */
8776 typedef int charset[2];
8778 /* SunOS 4.1.1 cc rejects this. */
8779 char const *const *pcpcc;
8781 /* NEC SVR4.0.2 mips cc rejects this. */
8782 struct point {int x, y;};
8783 static struct point const zero = {0,0};
8784 /* AIX XL C 1.02.0.0 rejects this.
8785 It does not let you subtract one const X* pointer from another in
8786 an arm of an if-expression whose if-part is not a constant
8788 const char *g = "string";
8789 pcpcc = &g + (g ? g-g : 0);
8790 /* HPUX 7.0 cc rejects these. */
8792 ppc = (char**) pcpcc;
8793 pcpcc = (char const *const *) ppc;
8794 { /* SCO 3.2v4 cc rejects this. */
8796 char const *s = 0 ? (char *) 0 : (char const *) 0;
8801 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8803 const int *foo = &x[0];
8806 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8807 typedef const int *iptr;
8811 { /* AIX XL C 1.02.0.0 rejects this saying
8812 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8813 struct s { int j; const int *ap[3]; };
8814 struct s *b; b->j = 5;
8816 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8820 return !cs[0] && !zero.x;
8827 rm -f conftest.$ac_objext
8828 if { (ac_try="$ac_compile"
8830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8831 *) ac_try_echo
=$ac_try;;
8833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8834 (eval "$ac_compile") 2>conftest.er1
8836 grep -v '^ *+' conftest.er1
>conftest.err
8838 cat conftest.err
>&5
8839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8840 (exit $ac_status); } && {
8841 test -z "$ac_c_werror_flag" ||
8842 test ! -s conftest.err
8843 } && test -s conftest.
$ac_objext; then
8846 echo "$as_me: failed program was:" >&5
8847 sed 's/^/| /' conftest.
$ac_ext >&5
8852 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8854 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8855 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8856 if test $ac_cv_c_const = no
; then
8858 cat >>confdefs.h
<<\_ACEOF
8864 { echo "$as_me:$LINENO: checking for void * support" >&5
8865 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8866 if test "${emacs_cv_void_star+set}" = set; then
8867 echo $ECHO_N "(cached) $ECHO_C" >&6
8869 cat >conftest.
$ac_ext <<_ACEOF
8872 cat confdefs.h
>>conftest.
$ac_ext
8873 cat >>conftest.
$ac_ext <<_ACEOF
8874 /* end confdefs.h. */
8884 rm -f conftest.
$ac_objext
8885 if { (ac_try
="$ac_compile"
8887 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_compile") 2>conftest.er1
8893 grep -v '^ *+' conftest.er1 >conftest.err
8895 cat conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest.$ac_objext; then
8901 emacs_cv_void_star=yes
8903 echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8906 emacs_cv_void_star=no
8909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8911 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8912 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8913 if test $emacs_cv_void_star = yes; then
8914 cat >>confdefs.h <<\_ACEOF
8915 #define POINTER_TYPE void
8919 cat >>confdefs.h <<\_ACEOF
8920 #define POINTER_TYPE char
8929 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8930 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8931 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8932 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8933 echo $ECHO_N "(cached) $ECHO_C" >&6
8935 cat >conftest.make <<\_ACEOF
8938 @echo '@@@%%%=$(MAKE)=@@@%%%'
8940 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8941 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8943 eval ac_cv_prog_make_${ac_make}_set=yes;;
8945 eval ac_cv_prog_make_${ac_make}_set=no;;
8949 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8950 { echo "$as_me:$LINENO: result: yes" >&5
8951 echo "${ECHO_T}yes" >&6; }
8954 { echo "$as_me:$LINENO: result: no" >&5
8955 echo "${ECHO_T}no" >&6; }
8956 SET_MAKE="MAKE=${MAKE-make}"
8960 { echo "$as_me:$LINENO: checking for long file names" >&5
8961 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8962 if test "${ac_cv_sys_long_file_names+set}" = set; then
8963 echo $ECHO_N "(cached) $ECHO_C" >&6
8965 ac_cv_sys_long_file_names=yes
8966 # Test for long file names in all the places we know might matter:
8967 # . the current directory, where building will happen
8968 # $prefix/lib where we will be installing things
8969 # $exec_prefix/lib likewise
8970 # $TMPDIR if set, where it might want to write temporary files
8971 # /tmp where it might want to write temporary files
8974 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8975 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8976 # in the usual case where exec_prefix is '${prefix}'.
8978 . | /* | ?:[\\/]*) ;; #(
8981 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8982 ac_xdir=$ac_dir/cf$$
8983 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8984 ac_tf1=$ac_xdir/conftest9012345
8985 ac_tf2=$ac_xdir/conftest9012346
8986 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8987 ac_cv_sys_long_file_names=no
8988 rm -f -r "$ac_xdir" 2>/dev/null
8989 test $ac_cv_sys_long_file_names = no && break
8992 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8993 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8994 if test $ac_cv_sys_long_file_names = yes; then
8996 cat >>confdefs.h <<\_ACEOF
8997 #define HAVE_LONG_FILE_NAMES 1
9003 #### Choose a window system.
9005 { echo "$as_me:$LINENO: checking for X" >&5
9006 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9009 # Check whether --with-x was given.
9010 if test "${with_x+set}" = set; then
9014 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9015 if test "x$with_x" = xno; then
9016 # The user explicitly disabled X.
9019 case $x_includes,$x_libraries in #(
9020 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9021 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9022 { (exit 1); exit 1; }; };; #(
9023 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9024 echo $ECHO_N "(cached) $ECHO_C" >&6
9026 # One or both of the vars are not set, and there is no cached value.
9027 ac_x_includes=no ac_x_libraries=no
9028 rm -f -r conftest.dir
9029 if mkdir conftest.dir; then
9031 cat >Imakefile <<'_ACEOF'
9033 @echo incroot='${INCROOT}'
9035 @echo usrlibdir='${USRLIBDIR}'
9037 @echo libdir='${LIBDIR}'
9039 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9040 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9041 for ac_var in incroot usrlibdir libdir; do
9042 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9044 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9045 for ac_extension in a so sl; do
9046 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9047 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9048 ac_im_usrlibdir=$ac_im_libdir; break
9051 # Screen out bogus values from the imake configuration. They are
9052 # bogus both because they are the default anyway, and because
9053 # using them would break gcc on systems where it needs fixed includes.
9054 case $ac_im_incroot in
9055 /usr/include) ac_x_includes= ;;
9056 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9058 case $ac_im_usrlibdir in
9060 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9064 rm -f -r conftest.dir
9067 # Standard set of common directories for X headers.
9068 # Check X11 before X11Rn because it is often a symlink to the current release.
9080 /usr/local/X11/include
9081 /usr/local/X11R6/include
9082 /usr/local/X11R5/include
9083 /usr/local/X11R4/include
9085 /usr/local/include/X11
9086 /usr/local/include/X11R6
9087 /usr/local/include/X11R5
9088 /usr/local/include/X11R4
9092 /usr/XFree86/include/X11
9096 /usr/unsupported/include
9098 /usr/local/x11r5/include
9099 /usr/lpp/Xamples/include
9101 /usr/openwin/include
9102 /usr/openwin/share/include'
9104 if test "$ac_x_includes" = no; then
9105 # Guess where to find include files, by looking for Xlib.h.
9106 # First, try using that file with no special directory specified.
9107 cat >conftest.$ac_ext <<_ACEOF
9110 cat confdefs.h >>conftest.$ac_ext
9111 cat >>conftest.$ac_ext <<_ACEOF
9112 /* end confdefs.h. */
9113 #include <X11/Xlib.h>
9115 if { (ac_try="$ac_cpp conftest.$ac_ext"
9117 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9118 *) ac_try_echo
=$ac_try;;
9120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9123 grep -v '^ *+' conftest.er1
>conftest.err
9125 cat conftest.err
>&5
9126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9127 (exit $ac_status); } >/dev
/null
&& {
9128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9129 test ! -s conftest.err
9131 # We can compile using X headers with no special include directory.
9134 echo "$as_me: failed program was:" >&5
9135 sed 's/^/| /' conftest.
$ac_ext >&5
9137 for ac_dir
in $ac_x_header_dirs; do
9138 if test -r "$ac_dir/X11/Xlib.h"; then
9139 ac_x_includes
=$ac_dir
9145 rm -f conftest.err conftest.
$ac_ext
9146 fi # $ac_x_includes = no
9148 if test "$ac_x_libraries" = no
; then
9149 # Check for the libraries.
9150 # See if we find them without any special options.
9151 # Don't add to $LIBS permanently.
9154 cat >conftest.
$ac_ext <<_ACEOF
9157 cat confdefs.h
>>conftest.
$ac_ext
9158 cat >>conftest.
$ac_ext <<_ACEOF
9159 /* end confdefs.h. */
9160 #include <X11/Xlib.h>
9169 rm -f conftest.
$ac_objext conftest
$ac_exeext
9170 if { (ac_try
="$ac_link"
9172 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9173 *) ac_try_echo=$ac_try;;
9175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9176 (eval "$ac_link") 2>conftest.er1
9178 grep -v '^ *+' conftest.er1 >conftest.err
9180 cat conftest.err >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); } && {
9183 test -z "$ac_c_werror_flag" ||
9184 test ! -s conftest.err
9185 } && test -s conftest$ac_exeext &&
9186 $as_test_x conftest$ac_exeext; then
9188 # We can link X programs with no special library path.
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9195 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9197 # Don't even attempt the hair of trying to link an X program!
9198 for ac_extension in a so sl; do
9199 if test -r "$ac_dir/libX11.$ac_extension"; then
9200 ac_x_libraries=$ac_dir
9207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9208 conftest$ac_exeext conftest.$ac_ext
9209 fi # $ac_x_libraries = no
9211 case $ac_x_includes,$ac_x_libraries in #(
9213 # Didn't find X, or a directory has "'" in its name.
9214 ac_cv_have_x="have_x=no";; #(
9216 # Record where we found X for the cache.
9217 ac_cv_have_x="have_x=yes\
9218 ac_x_includes='$ac_x_includes'\
9219 ac_x_libraries='$ac_x_libraries'"
9225 eval "$ac_cv_have_x"
9228 if test "$have_x" != yes; then
9229 { echo "$as_me:$LINENO: result: $have_x" >&5
9230 echo "${ECHO_T}$have_x" >&6; }
9233 # If each of the values was on the command line, it overrides each guess.
9234 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9235 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9236 # Update the cache value to reflect the command line values.
9237 ac_cv_have_x="have_x=yes\
9238 ac_x_includes='$x_includes'\
9239 ac_x_libraries='$x_libraries'"
9240 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9241 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9244 if test "$no_x" = yes; then
9250 if test "${x_libraries}" != NONE; then
9251 if test -n "${x_libraries}"; then
9252 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9253 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9255 x_default_search_path=""
9256 x_search_path=${x_libraries}
9257 if test -z "${x_search_path}"; then
9258 x_search_path=/usr/lib
9260 for x_library in `echo ${x_search_path}: | \
9261 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9263 ${x_library}/X11/%L/%T/%N%C%S:\
9264 ${x_library}/X11/%l/%T/%N%C%S:\
9265 ${x_library}/X11/%T/%N%C%S:\
9266 ${x_library}/X11/%L/%T/%N%S:\
9267 ${x_library}/X11/%l/%T/%N%S:\
9268 ${x_library}/X11/%T/%N%S"
9269 if test x"${x_default_search_path}" = x; then
9270 x_default_search_path=${x_search_path}
9272 x_default_search_path="${x_search_path}:${x_default_search_path}"
9276 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9277 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9280 if test x"${x_includes}" = x; then
9281 bitmapdir=/usr/include/X11/bitmaps
9283 # accumulate include directories that have X11 bitmap subdirectories
9285 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9286 if test -d "${bmd}/X11/bitmaps"; then
9287 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9289 if test -d "${bmd}/bitmaps"; then
9290 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9293 if test ${bmd_acc} != "dummyval"; then
9294 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9299 if test "${with_carbon}" != no; then
9300 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9301 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9302 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9303 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9304 echo $ECHO_N "(cached) $ECHO_C" >&6
9306 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9307 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9309 # Is the header compilable?
9310 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9311 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9312 cat >conftest.$ac_ext <<_ACEOF
9315 cat confdefs.h >>conftest.$ac_ext
9316 cat >>conftest.$ac_ext <<_ACEOF
9317 /* end confdefs.h. */
9318 $ac_includes_default
9319 #include <Carbon/Carbon.h>
9321 rm -f conftest.$ac_objext
9322 if { (ac_try="$ac_compile"
9324 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9325 *) ac_try_echo
=$ac_try;;
9327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9328 (eval "$ac_compile") 2>conftest.er1
9330 grep -v '^ *+' conftest.er1
>conftest.err
9332 cat conftest.err
>&5
9333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9334 (exit $ac_status); } && {
9335 test -z "$ac_c_werror_flag" ||
9336 test ! -s conftest.err
9337 } && test -s conftest.
$ac_objext; then
9338 ac_header_compiler
=yes
9340 echo "$as_me: failed program was:" >&5
9341 sed 's/^/| /' conftest.
$ac_ext >&5
9343 ac_header_compiler
=no
9346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9347 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9348 echo "${ECHO_T}$ac_header_compiler" >&6; }
9350 # Is the header present?
9351 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9352 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9353 cat >conftest.
$ac_ext <<_ACEOF
9356 cat confdefs.h
>>conftest.
$ac_ext
9357 cat >>conftest.
$ac_ext <<_ACEOF
9358 /* end confdefs.h. */
9359 #include <Carbon/Carbon.h>
9361 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9363 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9364 *) ac_try_echo=$ac_try;;
9366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9367 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9369 grep -v '^ *+' conftest.er1 >conftest.err
9371 cat conftest.err >&5
9372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373 (exit $ac_status); } >/dev/null && {
9374 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9375 test ! -s conftest.err
9377 ac_header_preproc=yes
9379 echo "$as_me: failed program was:" >&5
9380 sed 's/^/| /' conftest.$ac_ext >&5
9382 ac_header_preproc=no
9385 rm -f conftest.err conftest.$ac_ext
9386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9387 echo "${ECHO_T}$ac_header_preproc" >&6; }
9389 # So? What about this header?
9390 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9392 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9393 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9395 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9396 ac_header_preproc=yes
9399 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9400 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9401 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9402 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9403 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9404 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9406 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9408 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9410 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9414 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9415 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9416 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9419 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9421 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9422 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9425 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9431 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9432 if test "${with_carbon+set}" != set \
9433 && test "${carbon_appdir_x+set}" != set; then
9434 for var in with_x with_x_toolkit with_gtk with_xim \
9435 with_xpm with_jpeg with_tiff with_gif with_png; do
9436 if eval test \"\${$var+set}\" = set; then
9443 if test "${HAVE_CARBON}" = yes; then
9447 case "${window_system}" in
9451 case "${with_x_toolkit}" in
9452 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9453 motif ) USE_X_TOOLKIT=MOTIF ;;
9455 USE_X_TOOLKIT=none ;;
9456 no ) USE_X_TOOLKIT=none ;;
9457 * ) USE_X_TOOLKIT=maybe ;;
9467 ### If we're using X11, we should use the X menu package.
9470 yes ) HAVE_MENUS=yes ;;
9473 if test "${opsys}" = "hpux9"; then
9474 case "${x_libraries}" in
9476 opsysfile="s/hpux9-x11r4.h"
9481 if test "${opsys}" = "hpux9shr"; then
9482 case "${x_libraries}" in
9484 opsysfile="s/hpux9shxr4.h"
9489 ### Compute the unexec source name from the object name.
9490 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9492 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9493 # Assume not, until told otherwise.
9496 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9497 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9498 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9499 echo $ECHO_N "(cached) $ECHO_C" >&6
9501 cat >conftest.$ac_ext <<_ACEOF
9504 cat confdefs.h >>conftest.$ac_ext
9505 cat >>conftest.$ac_ext <<_ACEOF
9506 /* end confdefs.h. */
9507 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9509 #define malloc_get_state innocuous_malloc_get_state
9511 /* System header to define __stub macros and hopefully few prototypes,
9512 which can conflict with char malloc_get_state (); below.
9513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9514 <limits.h> exists even on freestanding compilers. */
9517 # include <limits.h>
9519 # include <assert.h>
9522 #undef malloc_get_state
9524 /* Override any GCC internal prototype to avoid an error.
9525 Use char because int might match the return type of a GCC
9526 builtin and then its argument prototype would still apply. */
9530 char malloc_get_state ();
9531 /* The GNU C library defines this for functions which it implements
9532 to always fail with ENOSYS. Some functions are actually named
9533 something starting with __ and the normal name is an alias. */
9534 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9541 return malloc_get_state ();
9546 rm -f conftest.$ac_objext conftest$ac_exeext
9547 if { (ac_try="$ac_link"
9549 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9550 *) ac_try_echo
=$ac_try;;
9552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9553 (eval "$ac_link") 2>conftest.er1
9555 grep -v '^ *+' conftest.er1
>conftest.err
9557 cat conftest.err
>&5
9558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9559 (exit $ac_status); } && {
9560 test -z "$ac_c_werror_flag" ||
9561 test ! -s conftest.err
9562 } && test -s conftest
$ac_exeext &&
9563 $as_test_x conftest
$ac_exeext; then
9564 ac_cv_func_malloc_get_state
=yes
9566 echo "$as_me: failed program was:" >&5
9567 sed 's/^/| /' conftest.
$ac_ext >&5
9569 ac_cv_func_malloc_get_state
=no
9572 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9573 conftest
$ac_exeext conftest.
$ac_ext
9575 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9576 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9577 if test $ac_cv_func_malloc_get_state = yes; then
9583 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9584 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9585 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9586 echo $ECHO_N "(cached) $ECHO_C" >&6
9588 cat >conftest.
$ac_ext <<_ACEOF
9591 cat confdefs.h
>>conftest.
$ac_ext
9592 cat >>conftest.
$ac_ext <<_ACEOF
9593 /* end confdefs.h. */
9594 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9596 #define malloc_set_state innocuous_malloc_set_state
9598 /* System header to define __stub macros and hopefully few prototypes,
9599 which can conflict with char malloc_set_state (); below.
9600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9601 <limits.h> exists even on freestanding compilers. */
9604 # include <limits.h>
9606 # include <assert.h>
9609 #undef malloc_set_state
9611 /* Override any GCC internal prototype to avoid an error.
9612 Use char because int might match the return type of a GCC
9613 builtin and then its argument prototype would still apply. */
9617 char malloc_set_state ();
9618 /* The GNU C library defines this for functions which it implements
9619 to always fail with ENOSYS. Some functions are actually named
9620 something starting with __ and the normal name is an alias. */
9621 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9628 return malloc_set_state ();
9633 rm -f conftest.
$ac_objext conftest
$ac_exeext
9634 if { (ac_try
="$ac_link"
9636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9637 *) ac_try_echo=$ac_try;;
9639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9640 (eval "$ac_link") 2>conftest.er1
9642 grep -v '^ *+' conftest.er1 >conftest.err
9644 cat conftest.err >&5
9645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9646 (exit $ac_status); } && {
9647 test -z "$ac_c_werror_flag" ||
9648 test ! -s conftest.err
9649 } && test -s conftest$ac_exeext &&
9650 $as_test_x conftest$ac_exeext; then
9651 ac_cv_func_malloc_set_state=yes
9653 echo "$as_me: failed program was:" >&5
9654 sed 's/^/| /' conftest.$ac_ext >&5
9656 ac_cv_func_malloc_set_state=no
9659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9660 conftest$ac_exeext conftest.$ac_ext
9662 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9663 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9664 if test $ac_cv_func_malloc_set_state = yes; then
9670 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9671 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9672 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9675 cat >conftest.$ac_ext <<_ACEOF
9678 cat confdefs.h >>conftest.$ac_ext
9679 cat >>conftest.$ac_ext <<_ACEOF
9680 /* end confdefs.h. */
9681 extern void (* __after_morecore_hook)();
9685 __after_morecore_hook = 0
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (ac_try="$ac_link"
9693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9694 *) ac_try_echo
=$ac_try;;
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_link") 2>conftest.er1
9699 grep -v '^ *+' conftest.er1
>conftest.err
9701 cat conftest.err
>&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } && {
9704 test -z "$ac_c_werror_flag" ||
9705 test ! -s conftest.err
9706 } && test -s conftest
$ac_exeext &&
9707 $as_test_x conftest
$ac_exeext; then
9708 emacs_cv_var___after_morecore_hook
=yes
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.
$ac_ext >&5
9713 emacs_cv_var___after_morecore_hook
=no
9716 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9717 conftest
$ac_exeext conftest.
$ac_ext
9719 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9720 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9721 if test $emacs_cv_var___after_morecore_hook = no
; then
9724 if test "${system_malloc}" = "yes"; then
9727 (The GNU allocators don't work with this system configuration.)"
9729 if test "$doug_lea_malloc" = "yes" ; then
9730 if test "$GNU_MALLOC" = yes ; then
9732 (Using Doug Lea's new malloc from the GNU C Library.)"
9735 cat >>confdefs.h
<<\_ACEOF
9736 #define DOUG_LEA_MALLOC 1
9741 if test x
"${REL_ALLOC}" = x
; then
9742 REL_ALLOC
=${GNU_MALLOC}
9748 for ac_header
in stdlib.h unistd.h
9750 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9751 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9752 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9753 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9754 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9755 echo $ECHO_N "(cached) $ECHO_C" >&6
9757 ac_res
=`eval echo '${'$as_ac_Header'}'`
9758 { echo "$as_me:$LINENO: result: $ac_res" >&5
9759 echo "${ECHO_T}$ac_res" >&6; }
9761 # Is the header compilable?
9762 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9763 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9764 cat >conftest.
$ac_ext <<_ACEOF
9767 cat confdefs.h
>>conftest.
$ac_ext
9768 cat >>conftest.
$ac_ext <<_ACEOF
9769 /* end confdefs.h. */
9770 $ac_includes_default
9771 #include <$ac_header>
9773 rm -f conftest.
$ac_objext
9774 if { (ac_try
="$ac_compile"
9776 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9777 *) ac_try_echo=$ac_try;;
9779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9780 (eval "$ac_compile") 2>conftest.er1
9782 grep -v '^ *+' conftest.er1 >conftest.err
9784 cat conftest.err >&5
9785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9786 (exit $ac_status); } && {
9787 test -z "$ac_c_werror_flag" ||
9788 test ! -s conftest.err
9789 } && test -s conftest.$ac_objext; then
9790 ac_header_compiler=yes
9792 echo "$as_me: failed program was:" >&5
9793 sed 's/^/| /' conftest.$ac_ext >&5
9795 ac_header_compiler=no
9798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9799 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9800 echo "${ECHO_T}$ac_header_compiler" >&6; }
9802 # Is the header present?
9803 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9804 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9805 cat >conftest.$ac_ext <<_ACEOF
9808 cat confdefs.h >>conftest.$ac_ext
9809 cat >>conftest.$ac_ext <<_ACEOF
9810 /* end confdefs.h. */
9811 #include <$ac_header>
9813 if { (ac_try="$ac_cpp conftest.$ac_ext"
9815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9816 *) ac_try_echo
=$ac_try;;
9818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9819 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9821 grep -v '^ *+' conftest.er1
>conftest.err
9823 cat conftest.err
>&5
9824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9825 (exit $ac_status); } >/dev
/null
&& {
9826 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9827 test ! -s conftest.err
9829 ac_header_preproc
=yes
9831 echo "$as_me: failed program was:" >&5
9832 sed 's/^/| /' conftest.
$ac_ext >&5
9834 ac_header_preproc
=no
9837 rm -f conftest.err conftest.
$ac_ext
9838 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9839 echo "${ECHO_T}$ac_header_preproc" >&6; }
9841 # So? What about this header?
9842 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9845 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9847 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9848 ac_header_preproc
=yes
9851 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9852 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9853 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9854 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9856 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9858 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9860 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9862 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9866 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9867 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9868 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9869 echo $ECHO_N "(cached) $ECHO_C" >&6
9871 eval "$as_ac_Header=\$ac_header_preproc"
9873 ac_res
=`eval echo '${'$as_ac_Header'}'`
9874 { echo "$as_me:$LINENO: result: $ac_res" >&5
9875 echo "${ECHO_T}$ac_res" >&6; }
9878 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9879 cat >>confdefs.h
<<_ACEOF
9880 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9888 for ac_func
in getpagesize
9890 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9891 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9892 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9893 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9894 echo $ECHO_N "(cached) $ECHO_C" >&6
9896 cat >conftest.
$ac_ext <<_ACEOF
9899 cat confdefs.h
>>conftest.
$ac_ext
9900 cat >>conftest.
$ac_ext <<_ACEOF
9901 /* end confdefs.h. */
9902 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9903 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9904 #define $ac_func innocuous_$ac_func
9906 /* System header to define __stub macros and hopefully few prototypes,
9907 which can conflict with char $ac_func (); below.
9908 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9909 <limits.h> exists even on freestanding compilers. */
9912 # include <limits.h>
9914 # include <assert.h>
9919 /* Override any GCC internal prototype to avoid an error.
9920 Use char because int might match the return type of a GCC
9921 builtin and then its argument prototype would still apply. */
9926 /* The GNU C library defines this for functions which it implements
9927 to always fail with ENOSYS. Some functions are actually named
9928 something starting with __ and the normal name is an alias. */
9929 #if defined __stub_$ac_func || defined __stub___$ac_func
9941 rm -f conftest.
$ac_objext conftest
$ac_exeext
9942 if { (ac_try
="$ac_link"
9944 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9945 *) ac_try_echo=$ac_try;;
9947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9948 (eval "$ac_link") 2>conftest.er1
9950 grep -v '^ *+' conftest.er1 >conftest.err
9952 cat conftest.err >&5
9953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9954 (exit $ac_status); } && {
9955 test -z "$ac_c_werror_flag" ||
9956 test ! -s conftest.err
9957 } && test -s conftest$ac_exeext &&
9958 $as_test_x conftest$ac_exeext; then
9959 eval "$as_ac_var=yes"
9961 echo "$as_me: failed program was:" >&5
9962 sed 's/^/| /' conftest.$ac_ext >&5
9964 eval "$as_ac_var=no"
9967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9968 conftest$ac_exeext conftest.$ac_ext
9970 ac_res=`eval echo '${'$as_ac_var'}'`
9971 { echo "$as_me:$LINENO: result: $ac_res" >&5
9972 echo "${ECHO_T}$ac_res" >&6; }
9973 if test `eval echo '${'$as_ac_var'}'` = yes; then
9974 cat >>confdefs.h <<_ACEOF
9975 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9981 { echo "$as_me:$LINENO: checking for working mmap" >&5
9982 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9983 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9984 echo $ECHO_N "(cached) $ECHO_C" >&6
9986 if test "$cross_compiling" = yes; then
9987 ac_cv_func_mmap_fixed_mapped=no
9989 cat >conftest.$ac_ext <<_ACEOF
9992 cat confdefs.h >>conftest.$ac_ext
9993 cat >>conftest.$ac_ext <<_ACEOF
9994 /* end confdefs.h. */
9995 $ac_includes_default
9996 /* malloc might have been renamed as rpl_malloc. */
9999 /* Thanks to Mike Haertel and Jim Avera for this test.
10000 Here is a matrix of mmap possibilities:
10001 mmap private not fixed
10002 mmap private fixed at somewhere currently unmapped
10003 mmap private fixed at somewhere already mapped
10004 mmap shared not fixed
10005 mmap shared fixed at somewhere currently unmapped
10006 mmap shared fixed at somewhere already mapped
10007 For private mappings, we should verify that changes cannot be read()
10008 back from the file, nor mmap's back from the file at a different
10009 address. (There have been systems where private was not correctly
10010 implemented like the infamous i386 svr4.0, and systems where the
10011 VM page cache was not coherent with the file system buffer cache
10012 like early versions of FreeBSD and possibly contemporary NetBSD.)
10013 For shared mappings, we should conversely verify that changes get
10014 propagated back to all the places they're supposed to be.
10016 Grep wants private fixed already mapped.
10017 The main things grep needs to know about mmap are:
10018 * does it exist and is it safe to write into the mmap'd area
10019 * how to use it (BSD variants) */
10022 #include <sys/mman.h>
10024 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10028 /* This mess was copied from the GNU getpagesize.h. */
10029 #ifndef HAVE_GETPAGESIZE
10030 /* Assume that all systems that can run configure have sys/param.h. */
10031 # ifndef HAVE_SYS_PARAM_H
10032 # define HAVE_SYS_PARAM_H 1
10035 # ifdef _SC_PAGESIZE
10036 # define getpagesize() sysconf(_SC_PAGESIZE)
10037 # else /* no _SC_PAGESIZE */
10038 # ifdef HAVE_SYS_PARAM_H
10039 # include <sys/param.h>
10040 # ifdef EXEC_PAGESIZE
10041 # define getpagesize() EXEC_PAGESIZE
10042 # else /* no EXEC_PAGESIZE */
10044 # define getpagesize() NBPG * CLSIZE
10047 # endif /* no CLSIZE */
10048 # else /* no NBPG */
10050 # define getpagesize() NBPC
10051 # else /* no NBPC */
10053 # define getpagesize() PAGESIZE
10054 # endif /* PAGESIZE */
10055 # endif /* no NBPC */
10056 # endif /* no NBPG */
10057 # endif /* no EXEC_PAGESIZE */
10058 # else /* no HAVE_SYS_PARAM_H */
10059 # define getpagesize() 8192 /* punt totally */
10060 # endif /* no HAVE_SYS_PARAM_H */
10061 # endif /* no _SC_PAGESIZE */
10063 #endif /* no HAVE_GETPAGESIZE */
10068 char *data, *data2, *data3;
10072 pagesize = getpagesize ();
10074 /* First, make a file with some known garbage in it. */
10075 data = (char *) malloc (pagesize);
10078 for (i = 0; i < pagesize; ++i)
10079 *(data + i) = rand ();
10081 fd = creat ("conftest.mmap", 0600);
10084 if (write (fd, data, pagesize) != pagesize)
10088 /* Next, try to mmap the file at a fixed address which already has
10089 something else allocated at it. If we can, also make sure that
10090 we see the same garbage. */
10091 fd = open ("conftest.mmap", O_RDWR);
10094 data2 = (char *) malloc (2 * pagesize);
10097 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10098 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10099 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10101 for (i = 0; i < pagesize; ++i)
10102 if (*(data + i) != *(data2 + i))
10105 /* Finally, make sure that changes to the mapped area do not
10106 percolate back to the file as seen by read(). (This is a bug on
10107 some variants of i386 svr4.0.) */
10108 for (i = 0; i < pagesize; ++i)
10109 *(data2 + i) = *(data2 + i) + 1;
10110 data3 = (char *) malloc (pagesize);
10113 if (read (fd, data3, pagesize) != pagesize)
10115 for (i = 0; i < pagesize; ++i)
10116 if (*(data + i) != *(data3 + i))
10122 rm -f conftest$ac_exeext
10123 if { (ac_try="$ac_link"
10124 case "(($ac_try" in
10125 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10126 *) ac_try_echo
=$ac_try;;
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_link") 2>&5
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10133 { (case "(($ac_try" in
10134 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10135 *) ac_try_echo=$ac_try;;
10137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10138 (eval "$ac_try") 2>&5
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 ac_cv_func_mmap_fixed_mapped=yes
10144 echo "$as_me: program exited with status $ac_status" >&5
10145 echo "$as_me: failed program was:" >&5
10146 sed 's/^/| /' conftest.$ac_ext >&5
10148 ( exit $ac_status )
10149 ac_cv_func_mmap_fixed_mapped=no
10151 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10156 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10157 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10158 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10160 cat >>confdefs.h <<\_ACEOF
10161 #define HAVE_MMAP 1
10165 rm -f conftest.mmap
10167 if test $use_mmap_for_buffers = yes; then
10171 LIBS="$libsrc_libs $LIBS"
10174 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10175 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10176 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10177 echo $ECHO_N "(cached) $ECHO_C" >&6
10179 ac_check_lib_save_LIBS=$LIBS
10180 LIBS="-ldnet $LIBS"
10181 cat >conftest.$ac_ext <<_ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10188 /* Override any GCC internal prototype to avoid an error.
10189 Use char because int might match the return type of a GCC
10190 builtin and then its argument prototype would still apply. */
10198 return dnet_ntoa ();
10203 rm -f conftest.$ac_objext conftest$ac_exeext
10204 if { (ac_try="$ac_link"
10205 case "(($ac_try" in
10206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10207 *) ac_try_echo
=$ac_try;;
10209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10210 (eval "$ac_link") 2>conftest.er1
10212 grep -v '^ *+' conftest.er1
>conftest.err
10214 cat conftest.err
>&5
10215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10216 (exit $ac_status); } && {
10217 test -z "$ac_c_werror_flag" ||
10218 test ! -s conftest.err
10219 } && test -s conftest
$ac_exeext &&
10220 $as_test_x conftest
$ac_exeext; then
10221 ac_cv_lib_dnet_dnet_ntoa
=yes
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.
$ac_ext >&5
10226 ac_cv_lib_dnet_dnet_ntoa
=no
10229 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10230 conftest
$ac_exeext conftest.
$ac_ext
10231 LIBS
=$ac_check_lib_save_LIBS
10233 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10234 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10235 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10236 cat >>confdefs.h
<<_ACEOF
10237 #define HAVE_LIBDNET 1
10240 LIBS
="-ldnet $LIBS"
10245 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10246 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10247 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10248 echo $ECHO_N "(cached) $ECHO_C" >&6
10250 ac_check_lib_save_LIBS
=$LIBS
10251 LIBS
="-lXbsd $LIBS"
10252 cat >conftest.
$ac_ext <<_ACEOF
10255 cat confdefs.h
>>conftest.
$ac_ext
10256 cat >>conftest.
$ac_ext <<_ACEOF
10257 /* end confdefs.h. */
10268 rm -f conftest.
$ac_objext conftest
$ac_exeext
10269 if { (ac_try
="$ac_link"
10270 case "(($ac_try" in
10271 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10272 *) ac_try_echo=$ac_try;;
10274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10275 (eval "$ac_link") 2>conftest.er1
10277 grep -v '^ *+' conftest.er1 >conftest.err
10279 cat conftest.err >&5
10280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10281 (exit $ac_status); } && {
10282 test -z "$ac_c_werror_flag" ||
10283 test ! -s conftest.err
10284 } && test -s conftest$ac_exeext &&
10285 $as_test_x conftest$ac_exeext; then
10286 ac_cv_lib_Xbsd_main=yes
10288 echo "$as_me: failed program was:" >&5
10289 sed 's/^/| /' conftest.$ac_ext >&5
10291 ac_cv_lib_Xbsd_main=no
10294 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10295 conftest$ac_exeext conftest.$ac_ext
10296 LIBS=$ac_check_lib_save_LIBS
10298 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10299 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10300 if test $ac_cv_lib_Xbsd_main = yes; then
10301 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10306 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10307 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10308 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10309 echo $ECHO_N "(cached) $ECHO_C" >&6
10311 ac_check_lib_save_LIBS=$LIBS
10312 LIBS="-lpthreads $LIBS"
10313 cat >conftest.$ac_ext <<_ACEOF
10316 cat confdefs.h >>conftest.$ac_ext
10317 cat >>conftest.$ac_ext <<_ACEOF
10318 /* end confdefs.h. */
10320 /* Override any GCC internal prototype to avoid an error.
10321 Use char because int might match the return type of a GCC
10322 builtin and then its argument prototype would still apply. */
10330 return cma_open ();
10335 rm -f conftest.$ac_objext conftest$ac_exeext
10336 if { (ac_try="$ac_link"
10337 case "(($ac_try" in
10338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10339 *) ac_try_echo
=$ac_try;;
10341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10342 (eval "$ac_link") 2>conftest.er1
10344 grep -v '^ *+' conftest.er1
>conftest.err
10346 cat conftest.err
>&5
10347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10348 (exit $ac_status); } && {
10349 test -z "$ac_c_werror_flag" ||
10350 test ! -s conftest.err
10351 } && test -s conftest
$ac_exeext &&
10352 $as_test_x conftest
$ac_exeext; then
10353 ac_cv_lib_pthreads_cma_open
=yes
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.
$ac_ext >&5
10358 ac_cv_lib_pthreads_cma_open
=no
10361 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10362 conftest
$ac_exeext conftest.
$ac_ext
10363 LIBS
=$ac_check_lib_save_LIBS
10365 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10366 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10367 if test $ac_cv_lib_pthreads_cma_open = yes; then
10368 cat >>confdefs.h
<<_ACEOF
10369 #define HAVE_LIBPTHREADS 1
10372 LIBS
="-lpthreads $LIBS"
10377 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10378 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10379 if test -d /usr
/X386
/include
; then
10381 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10385 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10386 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10391 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10392 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10393 if test "${gdb_cv_bigtoc+set}" = set; then
10394 echo $ECHO_N "(cached) $ECHO_C" >&6
10398 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10399 *) gdb_cv_bigtoc
=-bbigtoc ;;
10402 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10403 cat >conftest.
$ac_ext <<_ACEOF
10406 cat confdefs.h
>>conftest.
$ac_ext
10407 cat >>conftest.
$ac_ext <<_ACEOF
10408 /* end confdefs.h. */
10418 rm -f conftest.
$ac_objext conftest
$ac_exeext
10419 if { (ac_try
="$ac_link"
10420 case "(($ac_try" in
10421 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10422 *) ac_try_echo=$ac_try;;
10424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10425 (eval "$ac_link") 2>conftest.er1
10427 grep -v '^ *+' conftest.er1 >conftest.err
10429 cat conftest.err >&5
10430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10431 (exit $ac_status); } && {
10432 test -z "$ac_c_werror_flag" ||
10433 test ! -s conftest.err
10434 } && test -s conftest$ac_exeext &&
10435 $as_test_x conftest$ac_exeext; then
10438 echo "$as_me: failed program was:" >&5
10439 sed 's/^/| /' conftest.$ac_ext >&5
10444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10445 conftest$ac_exeext conftest.$ac_ext
10448 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10449 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10453 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10454 # used for the tests that follow. We set them back to REAL_CFLAGS and
10455 # REAL_CPPFLAGS later on.
10457 REAL_CPPFLAGS="$CPPFLAGS"
10459 if test "${HAVE_X11}" = "yes"; then
10460 DEFS="$C_SWITCH_X_SITE $DEFS"
10461 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10463 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10464 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10466 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10467 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10468 # but it's more convenient here to set LD_RUN_PATH
10469 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10470 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10471 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10475 if test "${opsys}" = "gnu-linux"; then
10476 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10477 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10478 cat >conftest.$ac_ext <<_ACEOF
10481 cat confdefs.h >>conftest.$ac_ext
10482 cat >>conftest.$ac_ext <<_ACEOF
10483 /* end confdefs.h. */
10488 XOpenDisplay ("foo");
10493 rm -f conftest.$ac_objext conftest$ac_exeext
10494 if { (ac_try="$ac_link"
10495 case "(($ac_try" in
10496 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10497 *) ac_try_echo
=$ac_try;;
10499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10500 (eval "$ac_link") 2>conftest.er1
10502 grep -v '^ *+' conftest.er1
>conftest.err
10504 cat conftest.err
>&5
10505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10506 (exit $ac_status); } && {
10507 test -z "$ac_c_werror_flag" ||
10508 test ! -s conftest.err
10509 } && test -s conftest
$ac_exeext &&
10510 $as_test_x conftest
$ac_exeext; then
10511 xlinux_first_failure
=no
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.
$ac_ext >&5
10516 xlinux_first_failure
=yes
10519 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10520 conftest
$ac_exeext conftest.
$ac_ext
10521 if test "${xlinux_first_failure}" = "yes"; then
10522 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10523 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10524 OLD_CPPFLAGS
="$CPPFLAGS"
10526 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10527 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10528 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10529 LIBS
="$LIBS -b i486-linuxaout"
10530 cat >conftest.
$ac_ext <<_ACEOF
10533 cat confdefs.h
>>conftest.
$ac_ext
10534 cat >>conftest.
$ac_ext <<_ACEOF
10535 /* end confdefs.h. */
10540 XOpenDisplay ("foo");
10545 rm -f conftest.
$ac_objext conftest
$ac_exeext
10546 if { (ac_try
="$ac_link"
10547 case "(($ac_try" in
10548 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_link") 2>conftest.er1
10554 grep -v '^ *+' conftest.er1 >conftest.err
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && {
10559 test -z "$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 } && test -s conftest$ac_exeext &&
10562 $as_test_x conftest$ac_exeext; then
10563 xlinux_second_failure=no
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10568 xlinux_second_failure=yes
10571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10572 conftest$ac_exeext conftest.$ac_ext
10573 if test "${xlinux_second_failure}" = "yes"; then
10574 # If we get the same failure with -b, there is no use adding -b.
10575 # So take it out. This plays safe.
10576 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10577 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10578 CPPFLAGS="$OLD_CPPFLAGS"
10580 { echo "$as_me:$LINENO: result: no" >&5
10581 echo "${ECHO_T}no" >&6; }
10583 { echo "$as_me:$LINENO: result: yes" >&5
10584 echo "${ECHO_T}yes" >&6; }
10587 { echo "$as_me:$LINENO: result: no" >&5
10588 echo "${ECHO_T}no" >&6; }
10592 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10593 # header files included from there.
10594 { echo "$as_me:$LINENO: checking for Xkb" >&5
10595 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10596 cat >conftest.$ac_ext <<_ACEOF
10599 cat confdefs.h >>conftest.$ac_ext
10600 cat >>conftest.$ac_ext <<_ACEOF
10601 /* end confdefs.h. */
10602 #include <X11/Xlib.h>
10603 #include <X11/XKBlib.h>
10607 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10612 rm -f conftest.$ac_objext conftest$ac_exeext
10613 if { (ac_try="$ac_link"
10614 case "(($ac_try" in
10615 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10616 *) ac_try_echo
=$ac_try;;
10618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10619 (eval "$ac_link") 2>conftest.er1
10621 grep -v '^ *+' conftest.er1
>conftest.err
10623 cat conftest.err
>&5
10624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10625 (exit $ac_status); } && {
10626 test -z "$ac_c_werror_flag" ||
10627 test ! -s conftest.err
10628 } && test -s conftest
$ac_exeext &&
10629 $as_test_x conftest
$ac_exeext; then
10632 echo "$as_me: failed program was:" >&5
10633 sed 's/^/| /' conftest.
$ac_ext >&5
10638 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10639 conftest
$ac_exeext conftest.
$ac_ext
10640 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10641 echo "${ECHO_T}$emacs_xkb" >&6; }
10642 if test $emacs_xkb = yes; then
10644 cat >>confdefs.h
<<\_ACEOF
10645 #define HAVE_XKBGETKEYBOARD 1
10654 for ac_func
in XrmSetDatabase XScreenResourceString \
10655 XScreenNumberOfScreen XSetWMProtocols
10657 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10658 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10659 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10660 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10663 cat >conftest.
$ac_ext <<_ACEOF
10666 cat confdefs.h
>>conftest.
$ac_ext
10667 cat >>conftest.
$ac_ext <<_ACEOF
10668 /* end confdefs.h. */
10669 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10670 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10671 #define $ac_func innocuous_$ac_func
10673 /* System header to define __stub macros and hopefully few prototypes,
10674 which can conflict with char $ac_func (); below.
10675 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10676 <limits.h> exists even on freestanding compilers. */
10679 # include <limits.h>
10681 # include <assert.h>
10686 /* Override any GCC internal prototype to avoid an error.
10687 Use char because int might match the return type of a GCC
10688 builtin and then its argument prototype would still apply. */
10693 /* The GNU C library defines this for functions which it implements
10694 to always fail with ENOSYS. Some functions are actually named
10695 something starting with __ and the normal name is an alias. */
10696 #if defined __stub_$ac_func || defined __stub___$ac_func
10703 return $ac_func ();
10708 rm -f conftest.
$ac_objext conftest
$ac_exeext
10709 if { (ac_try
="$ac_link"
10710 case "(($ac_try" in
10711 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10712 *) ac_try_echo=$ac_try;;
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715 (eval "$ac_link") 2>conftest.er1
10717 grep -v '^ *+' conftest.er1 >conftest.err
10719 cat conftest.err >&5
10720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10721 (exit $ac_status); } && {
10722 test -z "$ac_c_werror_flag" ||
10723 test ! -s conftest.err
10724 } && test -s conftest$ac_exeext &&
10725 $as_test_x conftest$ac_exeext; then
10726 eval "$as_ac_var=yes"
10728 echo "$as_me: failed program was:" >&5
10729 sed 's/^/| /' conftest.$ac_ext >&5
10731 eval "$as_ac_var=no"
10734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10735 conftest$ac_exeext conftest.$ac_ext
10737 ac_res=`eval echo '${'$as_ac_var'}'`
10738 { echo "$as_me:$LINENO: result: $ac_res" >&5
10739 echo "${ECHO_T}$ac_res" >&6; }
10740 if test `eval echo '${'$as_ac_var'}'` = yes; then
10741 cat >>confdefs.h <<_ACEOF
10742 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10750 if test "${window_system}" = "x11"; then
10751 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10752 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10753 if test "${emacs_cv_x11_version_6+set}" = set; then
10754 echo $ECHO_N "(cached) $ECHO_C" >&6
10756 cat >conftest.$ac_ext <<_ACEOF
10759 cat confdefs.h >>conftest.$ac_ext
10760 cat >>conftest.$ac_ext <<_ACEOF
10761 /* end confdefs.h. */
10762 #include <X11/Xlib.h>
10766 #if XlibSpecificationRelease < 6
10774 rm -f conftest.$ac_objext conftest$ac_exeext
10775 if { (ac_try="$ac_link"
10776 case "(($ac_try" in
10777 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10778 *) ac_try_echo
=$ac_try;;
10780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10781 (eval "$ac_link") 2>conftest.er1
10783 grep -v '^ *+' conftest.er1
>conftest.err
10785 cat conftest.err
>&5
10786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10787 (exit $ac_status); } && {
10788 test -z "$ac_c_werror_flag" ||
10789 test ! -s conftest.err
10790 } && test -s conftest
$ac_exeext &&
10791 $as_test_x conftest
$ac_exeext; then
10792 emacs_cv_x11_version_6
=yes
10794 echo "$as_me: failed program was:" >&5
10795 sed 's/^/| /' conftest.
$ac_ext >&5
10797 emacs_cv_x11_version_6
=no
10800 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10801 conftest
$ac_exeext conftest.
$ac_ext
10804 if test $emacs_cv_x11_version_6 = yes; then
10805 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10806 echo "${ECHO_T}6 or newer" >&6; }
10808 cat >>confdefs.h
<<\_ACEOF
10809 #define HAVE_X11R6 1
10813 { echo "$as_me:$LINENO: result: before 6" >&5
10814 echo "${ECHO_T}before 6" >&6; }
10818 if test "${window_system}" = "x11"; then
10819 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10820 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10821 if test "${emacs_cv_x11_version_5+set}" = set; then
10822 echo $ECHO_N "(cached) $ECHO_C" >&6
10824 cat >conftest.
$ac_ext <<_ACEOF
10827 cat confdefs.h
>>conftest.
$ac_ext
10828 cat >>conftest.
$ac_ext <<_ACEOF
10829 /* end confdefs.h. */
10830 #include <X11/Xlib.h>
10834 #if XlibSpecificationRelease < 5
10842 rm -f conftest.
$ac_objext conftest
$ac_exeext
10843 if { (ac_try
="$ac_link"
10844 case "(($ac_try" in
10845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10846 *) ac_try_echo=$ac_try;;
10848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10849 (eval "$ac_link") 2>conftest.er1
10851 grep -v '^ *+' conftest.er1 >conftest.err
10853 cat conftest.err >&5
10854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10855 (exit $ac_status); } && {
10856 test -z "$ac_c_werror_flag" ||
10857 test ! -s conftest.err
10858 } && test -s conftest$ac_exeext &&
10859 $as_test_x conftest$ac_exeext; then
10860 emacs_cv_x11_version_5=yes
10862 echo "$as_me: failed program was:" >&5
10863 sed 's/^/| /' conftest.$ac_ext >&5
10865 emacs_cv_x11_version_5=no
10868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10869 conftest$ac_exeext conftest.$ac_ext
10872 if test $emacs_cv_x11_version_5 = yes; then
10873 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10874 echo "${ECHO_T}5 or newer" >&6; }
10877 cat >>confdefs.h <<\_ACEOF
10878 #define HAVE_X11R5 1
10883 { echo "$as_me:$LINENO: result: before 5" >&5
10884 echo "${ECHO_T}before 5" >&6; }
10889 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10892 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10893 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10894 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10895 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10896 { (exit 1); exit 1; }; };
10900 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10902 if test "X${with_pkg_config_prog}" != X; then
10903 PKG_CONFIG="${with_pkg_config_prog}"
10908 if test -z "$PKG_CONFIG"; then
10909 # Extract the first word of "pkg-config", so it can be a program name with args.
10910 set dummy pkg-config; ac_word=$2
10911 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10912 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10913 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10914 echo $ECHO_N "(cached) $ECHO_C" >&6
10916 case $PKG_CONFIG in
10918 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10922 for as_dir in $PATH
10925 test -z "$as_dir" && as_dir=.
10926 for ac_exec_ext in '' $ac_executable_extensions; do
10927 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10928 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10929 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10936 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10940 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10941 if test -n "$PKG_CONFIG"; then
10942 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10943 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10945 { echo "$as_me:$LINENO: result: no" >&5
10946 echo "${ECHO_T}no" >&6; }
10952 if test "$PKG_CONFIG" = "no" ; then
10953 { { echo "$as_me:$LINENO: error:
10954 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
10955 echo "$as_me: error:
10956 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
10957 { (exit 1); exit 1; }; }
10959 PKG_CONFIG_MIN_VERSION=0.9.0
10960 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10961 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10962 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10964 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10965 { echo "$as_me:$LINENO: result: yes" >&5
10966 echo "${ECHO_T}yes" >&6; }
10969 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10970 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10971 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
10972 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10973 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10975 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10976 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10977 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
10978 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10979 echo "${ECHO_T}$GTK_LIBS" >&6; }
10981 { echo "$as_me:$LINENO: result: no" >&5
10982 echo "${ECHO_T}no" >&6; }
10985 ## If we have a custom action on failure, don't print errors, but
10986 ## do set a variable so people can do so.
10987 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10988 echo $GTK_PKG_ERRORS
10994 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10995 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10999 if test $succeeded = yes; then
11002 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
11003 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
11004 { (exit 1); exit 1; }; }
11009 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11010 CFLAGS="$CFLAGS $GTK_CFLAGS"
11011 LIBS="$GTK_LIBS $LIBS"
11014 for ac_func in gtk_main
11016 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11017 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11018 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11019 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11020 echo $ECHO_N "(cached) $ECHO_C" >&6
11022 cat >conftest.$ac_ext <<_ACEOF
11025 cat confdefs.h >>conftest.$ac_ext
11026 cat >>conftest.$ac_ext <<_ACEOF
11027 /* end confdefs.h. */
11028 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11029 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11030 #define $ac_func innocuous_$ac_func
11032 /* System header to define __stub macros and hopefully few prototypes,
11033 which can conflict with char $ac_func (); below.
11034 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11035 <limits.h> exists even on freestanding compilers. */
11038 # include <limits.h>
11040 # include <assert.h>
11045 /* Override any GCC internal prototype to avoid an error.
11046 Use char because int might match the return type of a GCC
11047 builtin and then its argument prototype would still apply. */
11052 /* The GNU C library defines this for functions which it implements
11053 to always fail with ENOSYS. Some functions are actually named
11054 something starting with __ and the normal name is an alias. */
11055 #if defined __stub_$ac_func || defined __stub___$ac_func
11062 return $ac_func ();
11067 rm -f conftest.$ac_objext conftest$ac_exeext
11068 if { (ac_try="$ac_link"
11069 case "(($ac_try" in
11070 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11071 *) ac_try_echo
=$ac_try;;
11073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11074 (eval "$ac_link") 2>conftest.er1
11076 grep -v '^ *+' conftest.er1
>conftest.err
11078 cat conftest.err
>&5
11079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11080 (exit $ac_status); } && {
11081 test -z "$ac_c_werror_flag" ||
11082 test ! -s conftest.err
11083 } && test -s conftest
$ac_exeext &&
11084 $as_test_x conftest
$ac_exeext; then
11085 eval "$as_ac_var=yes"
11087 echo "$as_me: failed program was:" >&5
11088 sed 's/^/| /' conftest.
$ac_ext >&5
11090 eval "$as_ac_var=no"
11093 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11094 conftest
$ac_exeext conftest.
$ac_ext
11096 ac_res
=`eval echo '${'$as_ac_var'}'`
11097 { echo "$as_me:$LINENO: result: $ac_res" >&5
11098 echo "${ECHO_T}$ac_res" >&6; }
11099 if test `eval echo '${'$as_ac_var'}'` = yes; then
11100 cat >>confdefs.h
<<_ACEOF
11101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11107 if test "${GTK_COMPILES}" != "yes"; then
11108 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11109 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11110 { (exit 1); exit 1; }; };
11115 cat >>confdefs.h
<<\_ACEOF
11121 if test "$with_toolkit_scroll_bars" != no
; then
11122 with_toolkit_scroll_bars
=yes
11125 HAVE_GTK_MULTIDISPLAY
=no
11127 for ac_func
in gdk_display_open
11129 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11130 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11131 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11132 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11133 echo $ECHO_N "(cached) $ECHO_C" >&6
11135 cat >conftest.
$ac_ext <<_ACEOF
11138 cat confdefs.h
>>conftest.
$ac_ext
11139 cat >>conftest.
$ac_ext <<_ACEOF
11140 /* end confdefs.h. */
11141 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11142 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11143 #define $ac_func innocuous_$ac_func
11145 /* System header to define __stub macros and hopefully few prototypes,
11146 which can conflict with char $ac_func (); below.
11147 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11148 <limits.h> exists even on freestanding compilers. */
11151 # include <limits.h>
11153 # include <assert.h>
11158 /* Override any GCC internal prototype to avoid an error.
11159 Use char because int might match the return type of a GCC
11160 builtin and then its argument prototype would still apply. */
11165 /* The GNU C library defines this for functions which it implements
11166 to always fail with ENOSYS. Some functions are actually named
11167 something starting with __ and the normal name is an alias. */
11168 #if defined __stub_$ac_func || defined __stub___$ac_func
11175 return $ac_func ();
11180 rm -f conftest.
$ac_objext conftest
$ac_exeext
11181 if { (ac_try
="$ac_link"
11182 case "(($ac_try" in
11183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11184 *) ac_try_echo=$ac_try;;
11186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11187 (eval "$ac_link") 2>conftest.er1
11189 grep -v '^ *+' conftest.er1 >conftest.err
11191 cat conftest.err >&5
11192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11193 (exit $ac_status); } && {
11194 test -z "$ac_c_werror_flag" ||
11195 test ! -s conftest.err
11196 } && test -s conftest$ac_exeext &&
11197 $as_test_x conftest$ac_exeext; then
11198 eval "$as_ac_var=yes"
11200 echo "$as_me: failed program was:" >&5
11201 sed 's/^/| /' conftest.$ac_ext >&5
11203 eval "$as_ac_var=no"
11206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11207 conftest$ac_exeext conftest.$ac_ext
11209 ac_res=`eval echo '${'$as_ac_var'}'`
11210 { echo "$as_me:$LINENO: result: $ac_res" >&5
11211 echo "${ECHO_T}$ac_res" >&6; }
11212 if test `eval echo '${'$as_ac_var'}'` = yes; then
11213 cat >>confdefs.h <<_ACEOF
11214 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11216 HAVE_GTK_MULTIDISPLAY=yes
11220 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11222 cat >>confdefs.h <<\_ACEOF
11223 #define HAVE_GTK_MULTIDISPLAY 1
11227 HAVE_GTK_FILE_SELECTION=no
11229 for ac_func in gtk_file_selection_new
11231 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11232 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11233 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11234 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11235 echo $ECHO_N "(cached) $ECHO_C" >&6
11237 cat >conftest.$ac_ext <<_ACEOF
11240 cat confdefs.h >>conftest.$ac_ext
11241 cat >>conftest.$ac_ext <<_ACEOF
11242 /* end confdefs.h. */
11243 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11244 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11245 #define $ac_func innocuous_$ac_func
11247 /* System header to define __stub macros and hopefully few prototypes,
11248 which can conflict with char $ac_func (); below.
11249 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11250 <limits.h> exists even on freestanding compilers. */
11253 # include <limits.h>
11255 # include <assert.h>
11260 /* Override any GCC internal prototype to avoid an error.
11261 Use char because int might match the return type of a GCC
11262 builtin and then its argument prototype would still apply. */
11267 /* The GNU C library defines this for functions which it implements
11268 to always fail with ENOSYS. Some functions are actually named
11269 something starting with __ and the normal name is an alias. */
11270 #if defined __stub_$ac_func || defined __stub___$ac_func
11277 return $ac_func ();
11282 rm -f conftest.$ac_objext conftest$ac_exeext
11283 if { (ac_try="$ac_link"
11284 case "(($ac_try" in
11285 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11286 *) ac_try_echo
=$ac_try;;
11288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11289 (eval "$ac_link") 2>conftest.er1
11291 grep -v '^ *+' conftest.er1
>conftest.err
11293 cat conftest.err
>&5
11294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11295 (exit $ac_status); } && {
11296 test -z "$ac_c_werror_flag" ||
11297 test ! -s conftest.err
11298 } && test -s conftest
$ac_exeext &&
11299 $as_test_x conftest
$ac_exeext; then
11300 eval "$as_ac_var=yes"
11302 echo "$as_me: failed program was:" >&5
11303 sed 's/^/| /' conftest.
$ac_ext >&5
11305 eval "$as_ac_var=no"
11308 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11309 conftest
$ac_exeext conftest.
$ac_ext
11311 ac_res
=`eval echo '${'$as_ac_var'}'`
11312 { echo "$as_me:$LINENO: result: $ac_res" >&5
11313 echo "${ECHO_T}$ac_res" >&6; }
11314 if test `eval echo '${'$as_ac_var'}'` = yes; then
11315 cat >>confdefs.h
<<_ACEOF
11316 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11318 HAVE_GTK_FILE_SELECTION
=yes
11323 HAVE_GTK_FILE_CHOOSER
=no
11325 for ac_func
in gtk_file_chooser_dialog_new
11327 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11328 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11329 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11330 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11331 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 cat >conftest.
$ac_ext <<_ACEOF
11336 cat confdefs.h
>>conftest.
$ac_ext
11337 cat >>conftest.
$ac_ext <<_ACEOF
11338 /* end confdefs.h. */
11339 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11340 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11341 #define $ac_func innocuous_$ac_func
11343 /* System header to define __stub macros and hopefully few prototypes,
11344 which can conflict with char $ac_func (); below.
11345 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11346 <limits.h> exists even on freestanding compilers. */
11349 # include <limits.h>
11351 # include <assert.h>
11356 /* Override any GCC internal prototype to avoid an error.
11357 Use char because int might match the return type of a GCC
11358 builtin and then its argument prototype would still apply. */
11363 /* The GNU C library defines this for functions which it implements
11364 to always fail with ENOSYS. Some functions are actually named
11365 something starting with __ and the normal name is an alias. */
11366 #if defined __stub_$ac_func || defined __stub___$ac_func
11373 return $ac_func ();
11378 rm -f conftest.
$ac_objext conftest
$ac_exeext
11379 if { (ac_try
="$ac_link"
11380 case "(($ac_try" in
11381 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11382 *) ac_try_echo=$ac_try;;
11384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11385 (eval "$ac_link") 2>conftest.er1
11387 grep -v '^ *+' conftest.er1 >conftest.err
11389 cat conftest.err >&5
11390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11391 (exit $ac_status); } && {
11392 test -z "$ac_c_werror_flag" ||
11393 test ! -s conftest.err
11394 } && test -s conftest$ac_exeext &&
11395 $as_test_x conftest$ac_exeext; then
11396 eval "$as_ac_var=yes"
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11401 eval "$as_ac_var=no"
11404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11405 conftest$ac_exeext conftest.$ac_ext
11407 ac_res=`eval echo '${'$as_ac_var'}'`
11408 { echo "$as_me:$LINENO: result: $ac_res" >&5
11409 echo "${ECHO_T}$ac_res" >&6; }
11410 if test `eval echo '${'$as_ac_var'}'` = yes; then
11411 cat >>confdefs.h <<_ACEOF
11412 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11414 HAVE_GTK_FILE_CHOOSER=yes
11419 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11420 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11422 cat >>confdefs.h <<\_ACEOF
11423 #define HAVE_GTK_FILE_BOTH 1
11428 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11429 HAVE_GTK_AND_PTHREAD=no
11431 for ac_header in pthread.h
11433 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11434 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11435 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11436 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11437 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11438 echo $ECHO_N "(cached) $ECHO_C" >&6
11440 ac_res=`eval echo '${'$as_ac_Header'}'`
11441 { echo "$as_me:$LINENO: result: $ac_res" >&5
11442 echo "${ECHO_T}$ac_res" >&6; }
11444 # Is the header compilable?
11445 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11446 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11447 cat >conftest.$ac_ext <<_ACEOF
11450 cat confdefs.h >>conftest.$ac_ext
11451 cat >>conftest.$ac_ext <<_ACEOF
11452 /* end confdefs.h. */
11453 $ac_includes_default
11454 #include <$ac_header>
11456 rm -f conftest.$ac_objext
11457 if { (ac_try="$ac_compile"
11458 case "(($ac_try" in
11459 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11460 *) ac_try_echo
=$ac_try;;
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_compile") 2>conftest.er1
11465 grep -v '^ *+' conftest.er1
>conftest.err
11467 cat conftest.err
>&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } && {
11470 test -z "$ac_c_werror_flag" ||
11471 test ! -s conftest.err
11472 } && test -s conftest.
$ac_objext; then
11473 ac_header_compiler
=yes
11475 echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.
$ac_ext >&5
11478 ac_header_compiler
=no
11481 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11482 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11483 echo "${ECHO_T}$ac_header_compiler" >&6; }
11485 # Is the header present?
11486 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11487 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11488 cat >conftest.
$ac_ext <<_ACEOF
11491 cat confdefs.h
>>conftest.
$ac_ext
11492 cat >>conftest.
$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 #include <$ac_header>
11496 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11497 case "(($ac_try" in
11498 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11499 *) ac_try_echo=$ac_try;;
11501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11502 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11504 grep -v '^ *+' conftest.er1 >conftest.err
11506 cat conftest.err >&5
11507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11508 (exit $ac_status); } >/dev/null && {
11509 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11510 test ! -s conftest.err
11512 ac_header_preproc=yes
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11517 ac_header_preproc=no
11520 rm -f conftest.err conftest.$ac_ext
11521 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11522 echo "${ECHO_T}$ac_header_preproc" >&6; }
11524 # So? What about this header?
11525 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11528 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11530 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11531 ac_header_preproc=yes
11534 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11535 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11536 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11537 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11539 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11541 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11542 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11543 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11545 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11549 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11550 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11551 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11552 echo $ECHO_N "(cached) $ECHO_C" >&6
11554 eval "$as_ac_Header=\$ac_header_preproc"
11556 ac_res=`eval echo '${'$as_ac_Header'}'`
11557 { echo "$as_me:$LINENO: result: $ac_res" >&5
11558 echo "${ECHO_T}$ac_res" >&6; }
11561 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11562 cat >>confdefs.h <<_ACEOF
11563 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11570 if test "$ac_cv_header_pthread_h"; then
11571 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11572 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11573 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11574 echo $ECHO_N "(cached) $ECHO_C" >&6
11576 ac_check_lib_save_LIBS=$LIBS
11577 LIBS="-lpthread $LIBS"
11578 cat >conftest.$ac_ext <<_ACEOF
11581 cat confdefs.h >>conftest.$ac_ext
11582 cat >>conftest.$ac_ext <<_ACEOF
11583 /* end confdefs.h. */
11585 /* Override any GCC internal prototype to avoid an error.
11586 Use char because int might match the return type of a GCC
11587 builtin and then its argument prototype would still apply. */
11591 char pthread_self ();
11595 return pthread_self ();
11600 rm -f conftest.$ac_objext conftest$ac_exeext
11601 if { (ac_try="$ac_link"
11602 case "(($ac_try" in
11603 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11604 *) ac_try_echo
=$ac_try;;
11606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11607 (eval "$ac_link") 2>conftest.er1
11609 grep -v '^ *+' conftest.er1
>conftest.err
11611 cat conftest.err
>&5
11612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11613 (exit $ac_status); } && {
11614 test -z "$ac_c_werror_flag" ||
11615 test ! -s conftest.err
11616 } && test -s conftest
$ac_exeext &&
11617 $as_test_x conftest
$ac_exeext; then
11618 ac_cv_lib_pthread_pthread_self
=yes
11620 echo "$as_me: failed program was:" >&5
11621 sed 's/^/| /' conftest.
$ac_ext >&5
11623 ac_cv_lib_pthread_pthread_self
=no
11626 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11627 conftest
$ac_exeext conftest.
$ac_ext
11628 LIBS
=$ac_check_lib_save_LIBS
11630 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11631 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11632 if test $ac_cv_lib_pthread_pthread_self = yes; then
11633 HAVE_GTK_AND_PTHREAD
=yes
11637 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11638 GTK_LIBS
="$GTK_LIBS -lpthread"
11640 cat >>confdefs.h
<<\_ACEOF
11641 #define HAVE_GTK_AND_PTHREAD 1
11648 ### Link with -lXft if available to work around a bug.
11650 if test "${HAVE_GTK}" = "yes"; then
11651 if test "X${with_pkg_config_prog}" != X
; then
11652 PKG_CONFIG
="${with_pkg_config_prog}"
11658 if test -z "$PKG_CONFIG"; then
11659 # Extract the first word of "pkg-config", so it can be a program name with args.
11660 set dummy pkg-config
; ac_word
=$2
11661 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11662 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11663 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11664 echo $ECHO_N "(cached) $ECHO_C" >&6
11666 case $PKG_CONFIG in
11668 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11671 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11672 for as_dir
in $PATH
11675 test -z "$as_dir" && as_dir
=.
11676 for ac_exec_ext
in '' $ac_executable_extensions; do
11677 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11678 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11679 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11686 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11690 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11691 if test -n "$PKG_CONFIG"; then
11692 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11693 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11695 { echo "$as_me:$LINENO: result: no" >&5
11696 echo "${ECHO_T}no" >&6; }
11702 if test "$PKG_CONFIG" = "no" ; then
11705 PKG_CONFIG_MIN_VERSION
=0.9.0
11706 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11707 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11708 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11710 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11711 { echo "$as_me:$LINENO: result: yes" >&5
11712 echo "${ECHO_T}yes" >&6; }
11715 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11716 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11717 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11718 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11719 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11721 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11722 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11723 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11724 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11725 echo "${ECHO_T}$XFT_LIBS" >&6; }
11727 { echo "$as_me:$LINENO: result: no" >&5
11728 echo "${ECHO_T}no" >&6; }
11731 ## If we have a custom action on failure, don't print errors, but
11732 ## do set a variable so people can do so.
11733 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11740 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11741 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11745 if test $succeeded = yes; then
11751 if test "$HAVE_XFT" != no
; then
11752 OLD_CFLAGS
="$CPPFLAGS"
11753 OLD_CPPFLAGS
="$CFLAGS"
11755 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11756 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11757 LIBS
="$XFT_LIBS $LIBS"
11758 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11759 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11760 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11761 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11764 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11765 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11767 # Is the header compilable?
11768 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11769 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11770 cat >conftest.
$ac_ext <<_ACEOF
11773 cat confdefs.h
>>conftest.
$ac_ext
11774 cat >>conftest.
$ac_ext <<_ACEOF
11775 /* end confdefs.h. */
11776 $ac_includes_default
11777 #include <X11/Xft/Xft.h>
11779 rm -f conftest.
$ac_objext
11780 if { (ac_try
="$ac_compile"
11781 case "(($ac_try" in
11782 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11783 *) ac_try_echo=$ac_try;;
11785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11786 (eval "$ac_compile") 2>conftest.er1
11788 grep -v '^ *+' conftest.er1 >conftest.err
11790 cat conftest.err >&5
11791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11792 (exit $ac_status); } && {
11793 test -z "$ac_c_werror_flag" ||
11794 test ! -s conftest.err
11795 } && test -s conftest.$ac_objext; then
11796 ac_header_compiler=yes
11798 echo "$as_me: failed program was:" >&5
11799 sed 's/^/| /' conftest.$ac_ext >&5
11801 ac_header_compiler=no
11804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11805 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11806 echo "${ECHO_T}$ac_header_compiler" >&6; }
11808 # Is the header present?
11809 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11810 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11811 cat >conftest.$ac_ext <<_ACEOF
11814 cat confdefs.h >>conftest.$ac_ext
11815 cat >>conftest.$ac_ext <<_ACEOF
11816 /* end confdefs.h. */
11817 #include <X11/Xft/Xft.h>
11819 if { (ac_try="$ac_cpp conftest.$ac_ext"
11820 case "(($ac_try" in
11821 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11822 *) ac_try_echo
=$ac_try;;
11824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11825 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11827 grep -v '^ *+' conftest.er1
>conftest.err
11829 cat conftest.err
>&5
11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11831 (exit $ac_status); } >/dev
/null
&& {
11832 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11833 test ! -s conftest.err
11835 ac_header_preproc
=yes
11837 echo "$as_me: failed program was:" >&5
11838 sed 's/^/| /' conftest.
$ac_ext >&5
11840 ac_header_preproc
=no
11843 rm -f conftest.err conftest.
$ac_ext
11844 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11845 echo "${ECHO_T}$ac_header_preproc" >&6; }
11847 # So? What about this header?
11848 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11850 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11851 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11853 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11854 ac_header_preproc
=yes
11857 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11858 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11860 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11862 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11864 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11866 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11868 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11872 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11873 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11874 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11875 echo $ECHO_N "(cached) $ECHO_C" >&6
11877 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
11879 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11880 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11883 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11884 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11885 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11886 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 ac_check_lib_save_LIBS
=$LIBS
11890 LIBS
="-lXft $XFT_LIBS $LIBS"
11891 cat >conftest.
$ac_ext <<_ACEOF
11894 cat confdefs.h
>>conftest.
$ac_ext
11895 cat >>conftest.
$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11898 /* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11904 char XftFontOpen ();
11908 return XftFontOpen ();
11913 rm -f conftest.
$ac_objext conftest
$ac_exeext
11914 if { (ac_try
="$ac_link"
11915 case "(($ac_try" in
11916 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11917 *) ac_try_echo=$ac_try;;
11919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920 (eval "$ac_link") 2>conftest.er1
11922 grep -v '^ *+' conftest.er1 >conftest.err
11924 cat conftest.err >&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } && {
11927 test -z "$ac_c_werror_flag" ||
11928 test ! -s conftest.err
11929 } && test -s conftest$ac_exeext &&
11930 $as_test_x conftest$ac_exeext; then
11931 ac_cv_lib_Xft_XftFontOpen=yes
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.$ac_ext >&5
11936 ac_cv_lib_Xft_XftFontOpen=no
11939 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11940 conftest$ac_exeext conftest.$ac_ext
11941 LIBS=$ac_check_lib_save_LIBS
11943 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11944 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11945 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11953 if test "${HAVE_XFT}" = "yes"; then
11955 cat >>confdefs.h <<\_ACEOF
11960 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11962 CFLAGS="$OLD_CPPFLAGS"
11963 CFLAGS="$OLD_CFLAGS"
11969 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11970 if test x"${HAVE_X11R5}" = xyes; then
11971 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11972 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11973 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11974 echo $ECHO_N "(cached) $ECHO_C" >&6
11976 cat >conftest.$ac_ext <<_ACEOF
11979 cat confdefs.h >>conftest.$ac_ext
11980 cat >>conftest.$ac_ext <<_ACEOF
11981 /* end confdefs.h. */
11983 #include <X11/Intrinsic.h>
11984 #include <X11/Xaw/Simple.h>
11993 rm -f conftest.$ac_objext conftest$ac_exeext
11994 if { (ac_try="$ac_link"
11995 case "(($ac_try" in
11996 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11997 *) ac_try_echo
=$ac_try;;
11999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12000 (eval "$ac_link") 2>conftest.er1
12002 grep -v '^ *+' conftest.er1
>conftest.err
12004 cat conftest.err
>&5
12005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12006 (exit $ac_status); } && {
12007 test -z "$ac_c_werror_flag" ||
12008 test ! -s conftest.err
12009 } && test -s conftest
$ac_exeext &&
12010 $as_test_x conftest
$ac_exeext; then
12011 emacs_cv_x11_version_5_with_xaw
=yes
12013 echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.
$ac_ext >&5
12016 emacs_cv_x11_version_5_with_xaw
=no
12019 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12020 conftest
$ac_exeext conftest.
$ac_ext
12023 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12024 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12025 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12026 USE_X_TOOLKIT
=LUCID
12028 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12029 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12037 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12039 if test "${USE_X_TOOLKIT}" != "none"; then
12040 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12041 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12042 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12043 echo $ECHO_N "(cached) $ECHO_C" >&6
12045 cat >conftest.
$ac_ext <<_ACEOF
12048 cat confdefs.h
>>conftest.
$ac_ext
12049 cat >>conftest.
$ac_ext <<_ACEOF
12050 /* end confdefs.h. */
12051 #include <X11/Intrinsic.h>
12055 #if XtSpecificationRelease < 6
12063 rm -f conftest.
$ac_objext conftest
$ac_exeext
12064 if { (ac_try
="$ac_link"
12065 case "(($ac_try" in
12066 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12067 *) ac_try_echo=$ac_try;;
12069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12070 (eval "$ac_link") 2>conftest.er1
12072 grep -v '^ *+' conftest.er1 >conftest.err
12074 cat conftest.err >&5
12075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12076 (exit $ac_status); } && {
12077 test -z "$ac_c_werror_flag" ||
12078 test ! -s conftest.err
12079 } && test -s conftest$ac_exeext &&
12080 $as_test_x conftest$ac_exeext; then
12081 emacs_cv_x11_toolkit_version_6=yes
12083 echo "$as_me: failed program was:" >&5
12084 sed 's/^/| /' conftest.$ac_ext >&5
12086 emacs_cv_x11_toolkit_version_6=no
12089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12090 conftest$ac_exeext conftest.$ac_ext
12093 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12094 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12095 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12096 echo "${ECHO_T}6 or newer" >&6; }
12098 cat >>confdefs.h <<\_ACEOF
12099 #define HAVE_X11XTR6 1
12103 { echo "$as_me:$LINENO: result: before 6" >&5
12104 echo "${ECHO_T}before 6" >&6; }
12108 if test x$HAVE_X11XTR6 = xyes; then
12109 LIBS="-lXt -lSM -lICE $LIBS"
12114 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12115 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12116 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12117 echo $ECHO_N "(cached) $ECHO_C" >&6
12119 ac_check_lib_save_LIBS=$LIBS
12121 cat >conftest.$ac_ext <<_ACEOF
12124 cat confdefs.h >>conftest.$ac_ext
12125 cat >>conftest.$ac_ext <<_ACEOF
12126 /* end confdefs.h. */
12128 /* Override any GCC internal prototype to avoid an error.
12129 Use char because int might match the return type of a GCC
12130 builtin and then its argument prototype would still apply. */
12134 char XmuConvertStandardSelection ();
12138 return XmuConvertStandardSelection ();
12143 rm -f conftest.$ac_objext conftest$ac_exeext
12144 if { (ac_try="$ac_link"
12145 case "(($ac_try" in
12146 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12147 *) ac_try_echo
=$ac_try;;
12149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12150 (eval "$ac_link") 2>conftest.er1
12152 grep -v '^ *+' conftest.er1
>conftest.err
12154 cat conftest.err
>&5
12155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12156 (exit $ac_status); } && {
12157 test -z "$ac_c_werror_flag" ||
12158 test ! -s conftest.err
12159 } && test -s conftest
$ac_exeext &&
12160 $as_test_x conftest
$ac_exeext; then
12161 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12163 echo "$as_me: failed program was:" >&5
12164 sed 's/^/| /' conftest.
$ac_ext >&5
12166 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12169 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12170 conftest
$ac_exeext conftest.
$ac_ext
12171 LIBS
=$ac_check_lib_save_LIBS
12173 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12174 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12175 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12176 cat >>confdefs.h
<<_ACEOF
12177 #define HAVE_LIBXMU 1
12184 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12187 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12188 if test "${HAVE_X11}" = "yes"; then
12189 if test "${USE_X_TOOLKIT}" != "none"; then
12191 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12192 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12193 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12194 echo $ECHO_N "(cached) $ECHO_C" >&6
12196 ac_check_lib_save_LIBS
=$LIBS
12197 LIBS
="-lXext $LIBS"
12198 cat >conftest.
$ac_ext <<_ACEOF
12201 cat confdefs.h
>>conftest.
$ac_ext
12202 cat >>conftest.
$ac_ext <<_ACEOF
12203 /* end confdefs.h. */
12205 /* Override any GCC internal prototype to avoid an error.
12206 Use char because int might match the return type of a GCC
12207 builtin and then its argument prototype would still apply. */
12211 char XShapeQueryExtension ();
12215 return XShapeQueryExtension ();
12220 rm -f conftest.
$ac_objext conftest
$ac_exeext
12221 if { (ac_try
="$ac_link"
12222 case "(($ac_try" in
12223 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12224 *) ac_try_echo=$ac_try;;
12226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227 (eval "$ac_link") 2>conftest.er1
12229 grep -v '^ *+' conftest.er1 >conftest.err
12231 cat conftest.err >&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); } && {
12234 test -z "$ac_c_werror_flag" ||
12235 test ! -s conftest.err
12236 } && test -s conftest$ac_exeext &&
12237 $as_test_x conftest$ac_exeext; then
12238 ac_cv_lib_Xext_XShapeQueryExtension=yes
12240 echo "$as_me: failed program was:" >&5
12241 sed 's/^/| /' conftest.$ac_ext >&5
12243 ac_cv_lib_Xext_XShapeQueryExtension=no
12246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12247 conftest$ac_exeext conftest.$ac_ext
12248 LIBS=$ac_check_lib_save_LIBS
12250 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12251 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12252 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12253 cat >>confdefs.h <<_ACEOF
12254 #define HAVE_LIBXEXT 1
12257 LIBS="-lXext $LIBS"
12264 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12265 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12266 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12267 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12268 echo $ECHO_N "(cached) $ECHO_C" >&6
12270 cat >conftest.$ac_ext <<_ACEOF
12273 cat confdefs.h >>conftest.$ac_ext
12274 cat >>conftest.$ac_ext <<_ACEOF
12275 /* end confdefs.h. */
12280 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12283 Motif version prior to 2.1.
12289 rm -f conftest.$ac_objext
12290 if { (ac_try="$ac_compile"
12291 case "(($ac_try" in
12292 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12293 *) ac_try_echo
=$ac_try;;
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_compile") 2>conftest.er1
12298 grep -v '^ *+' conftest.er1
>conftest.err
12300 cat conftest.err
>&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest.
$ac_objext; then
12306 emacs_cv_motif_version_2_1
=yes
12308 echo "$as_me: failed program was:" >&5
12309 sed 's/^/| /' conftest.
$ac_ext >&5
12311 emacs_cv_motif_version_2_1
=no
12314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12316 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12317 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12318 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12319 if test $emacs_cv_motif_version_2_1 = yes; then
12322 cat >>confdefs.h
<<\_ACEOF
12323 #define HAVE_MOTIF_2_1 1
12326 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12327 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12328 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12329 echo $ECHO_N "(cached) $ECHO_C" >&6
12331 ac_check_lib_save_LIBS
=$LIBS
12333 cat >conftest.
$ac_ext <<_ACEOF
12336 cat confdefs.h
>>conftest.
$ac_ext
12337 cat >>conftest.
$ac_ext <<_ACEOF
12338 /* end confdefs.h. */
12340 /* Override any GCC internal prototype to avoid an error.
12341 Use char because int might match the return type of a GCC
12342 builtin and then its argument prototype would still apply. */
12346 char XpCreateContext ();
12350 return XpCreateContext ();
12355 rm -f conftest.
$ac_objext conftest
$ac_exeext
12356 if { (ac_try
="$ac_link"
12357 case "(($ac_try" in
12358 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12359 *) ac_try_echo=$ac_try;;
12361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12362 (eval "$ac_link") 2>conftest.er1
12364 grep -v '^ *+' conftest.er1 >conftest.err
12366 cat conftest.err >&5
12367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12368 (exit $ac_status); } && {
12369 test -z "$ac_c_werror_flag" ||
12370 test ! -s conftest.err
12371 } && test -s conftest$ac_exeext &&
12372 $as_test_x conftest$ac_exeext; then
12373 ac_cv_lib_Xp_XpCreateContext=yes
12375 echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12378 ac_cv_lib_Xp_XpCreateContext=no
12381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12382 conftest$ac_exeext conftest.$ac_ext
12383 LIBS=$ac_check_lib_save_LIBS
12385 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12386 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12387 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12391 if test ${HAVE_LIBXP} = yes; then
12393 cat >>confdefs.h <<\_ACEOF
12394 #define HAVE_LIBXP 1
12399 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12400 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12401 if test "${emacs_cv_lesstif+set}" = set; then
12402 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 # We put this in CFLAGS temporarily to precede other -I options
12405 # that might be in CFLAGS temporarily.
12406 # We put this in CPPFLAGS where it precedes the other -I options.
12407 OLD_CPPFLAGS=$CPPFLAGS
12409 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12410 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12411 cat >conftest.$ac_ext <<_ACEOF
12414 cat confdefs.h >>conftest.$ac_ext
12415 cat >>conftest.$ac_ext <<_ACEOF
12416 /* end confdefs.h. */
12417 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12426 rm -f conftest.$ac_objext
12427 if { (ac_try="$ac_compile"
12428 case "(($ac_try" in
12429 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12430 *) ac_try_echo
=$ac_try;;
12432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12433 (eval "$ac_compile") 2>conftest.er1
12435 grep -v '^ *+' conftest.er1
>conftest.err
12437 cat conftest.err
>&5
12438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12439 (exit $ac_status); } && {
12440 test -z "$ac_c_werror_flag" ||
12441 test ! -s conftest.err
12442 } && test -s conftest.
$ac_objext; then
12443 emacs_cv_lesstif
=yes
12445 echo "$as_me: failed program was:" >&5
12446 sed 's/^/| /' conftest.
$ac_ext >&5
12448 emacs_cv_lesstif
=no
12451 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12453 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12454 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12455 if test $emacs_cv_lesstif = yes; then
12456 # Make sure this -I option remains in CPPFLAGS after it is set
12457 # back to REAL_CPPFLAGS.
12458 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12459 # have those other -I options anyway. Ultimately, having this
12460 # directory ultimately in CPPFLAGS will be enough.
12461 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12462 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12465 CPPFLAGS
=$OLD_CPPFLAGS
12470 ### Is -lXaw3d available?
12472 if test "${HAVE_X11}" = "yes"; then
12473 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12474 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12475 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12476 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12477 echo $ECHO_N "(cached) $ECHO_C" >&6
12479 cat >conftest.
$ac_ext <<_ACEOF
12482 cat confdefs.h
>>conftest.
$ac_ext
12483 cat >>conftest.
$ac_ext <<_ACEOF
12484 /* end confdefs.h. */
12485 #include <X11/Xaw3d/Scrollbar.h>
12487 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12488 case "(($ac_try" in
12489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12490 *) ac_try_echo=$ac_try;;
12492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12493 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12495 grep -v '^ *+' conftest.er1 >conftest.err
12497 cat conftest.err >&5
12498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12499 (exit $ac_status); } >/dev/null && {
12500 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12501 test ! -s conftest.err
12503 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12505 echo "$as_me: failed program was:" >&5
12506 sed 's/^/| /' conftest.$ac_ext >&5
12508 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12511 rm -f conftest.err conftest.$ac_ext
12513 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12514 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12515 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12516 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12517 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12518 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 ac_check_lib_save_LIBS=$LIBS
12522 LIBS="-lXaw3d $LIBS"
12523 cat >conftest.$ac_ext <<_ACEOF
12526 cat confdefs.h >>conftest.$ac_ext
12527 cat >>conftest.$ac_ext <<_ACEOF
12528 /* end confdefs.h. */
12530 /* Override any GCC internal prototype to avoid an error.
12531 Use char because int might match the return type of a GCC
12532 builtin and then its argument prototype would still apply. */
12536 char XawScrollbarSetThumb ();
12540 return XawScrollbarSetThumb ();
12545 rm -f conftest.$ac_objext conftest$ac_exeext
12546 if { (ac_try="$ac_link"
12547 case "(($ac_try" in
12548 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12549 *) ac_try_echo
=$ac_try;;
12551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12552 (eval "$ac_link") 2>conftest.er1
12554 grep -v '^ *+' conftest.er1
>conftest.err
12556 cat conftest.err
>&5
12557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12558 (exit $ac_status); } && {
12559 test -z "$ac_c_werror_flag" ||
12560 test ! -s conftest.err
12561 } && test -s conftest
$ac_exeext &&
12562 $as_test_x conftest
$ac_exeext; then
12563 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12565 echo "$as_me: failed program was:" >&5
12566 sed 's/^/| /' conftest.
$ac_ext >&5
12568 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12571 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12572 conftest
$ac_exeext conftest.
$ac_ext
12573 LIBS
=$ac_check_lib_save_LIBS
12575 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12576 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12577 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12584 if test "${HAVE_XAW3D}" = "yes"; then
12586 cat >>confdefs.h
<<\_ACEOF
12587 #define HAVE_XAW3D 1
12596 USE_TOOLKIT_SCROLL_BARS
=no
12597 if test "${with_toolkit_scroll_bars}" != "no"; then
12598 if test "${USE_X_TOOLKIT}" != "none"; then
12599 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12600 cat >>confdefs.h
<<\_ACEOF
12601 #define USE_TOOLKIT_SCROLL_BARS 1
12605 USE_TOOLKIT_SCROLL_BARS
=yes
12606 elif test "${HAVE_XAW3D}" = "yes"; then
12607 cat >>confdefs.h
<<\_ACEOF
12608 #define USE_TOOLKIT_SCROLL_BARS 1
12611 USE_TOOLKIT_SCROLL_BARS
=yes
12613 elif test "${HAVE_GTK}" = "yes"; then
12614 cat >>confdefs.h
<<\_ACEOF
12615 #define USE_TOOLKIT_SCROLL_BARS 1
12618 USE_TOOLKIT_SCROLL_BARS
=yes
12619 elif test "${HAVE_CARBON}" = "yes"; then
12620 cat >>confdefs.h
<<\_ACEOF
12621 #define USE_TOOLKIT_SCROLL_BARS 1
12624 USE_TOOLKIT_SCROLL_BARS
=yes
12628 cat >conftest.
$ac_ext <<_ACEOF
12631 cat confdefs.h
>>conftest.
$ac_ext
12632 cat >>conftest.
$ac_ext <<_ACEOF
12633 /* end confdefs.h. */
12635 #include <X11/Xlib.h>
12636 #include <X11/Xresource.h>
12645 rm -f conftest.
$ac_objext
12646 if { (ac_try
="$ac_compile"
12647 case "(($ac_try" in
12648 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12649 *) ac_try_echo=$ac_try;;
12651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12652 (eval "$ac_compile") 2>conftest.er1
12654 grep -v '^ *+' conftest.er1 >conftest.err
12656 cat conftest.err >&5
12657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12658 (exit $ac_status); } && {
12659 test -z "$ac_c_werror_flag" ||
12660 test ! -s conftest.err
12661 } && test -s conftest.$ac_objext; then
12664 cat >>confdefs.h <<\_ACEOF
12669 echo "$as_me: failed program was:" >&5
12670 sed 's/^/| /' conftest.$ac_ext >&5
12675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12678 if test "${with_xim}" != "no"; then
12680 cat >>confdefs.h <<\_ACEOF
12687 if test "${HAVE_XIM}" != "no"; then
12688 late_CFLAGS=$CFLAGS
12689 if test "$GCC" = yes; then
12690 CFLAGS="$CFLAGS --pedantic-errors"
12692 cat >conftest.$ac_ext <<_ACEOF
12695 cat confdefs.h >>conftest.$ac_ext
12696 cat >>conftest.$ac_ext <<_ACEOF
12697 /* end confdefs.h. */
12699 #include <X11/Xlib.h>
12700 #include <X11/Xresource.h>
12709 XPointer *client_data;
12711 /* If we're not using GCC, it's probably not XFree86, and this is
12712 probably right, but we can't use something like --pedantic-errors. */
12713 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12714 char*, XIMProc, XPointer*);
12716 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12722 rm -f conftest.$ac_objext
12723 if { (ac_try="$ac_compile"
12724 case "(($ac_try" in
12725 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12726 *) ac_try_echo
=$ac_try;;
12728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12729 (eval "$ac_compile") 2>conftest.er1
12731 grep -v '^ *+' conftest.er1
>conftest.err
12733 cat conftest.err
>&5
12734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12735 (exit $ac_status); } && {
12736 test -z "$ac_c_werror_flag" ||
12737 test ! -s conftest.err
12738 } && test -s conftest.
$ac_objext; then
12739 emacs_cv_arg6_star
=yes
12741 echo "$as_me: failed program was:" >&5
12742 sed 's/^/| /' conftest.
$ac_ext >&5
12747 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12749 if test "$emacs_cv_arg6_star" = yes; then
12750 cat >>confdefs.h
<<\_ACEOF
12751 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12755 cat >>confdefs.h
<<\_ACEOF
12756 #define XRegisterIMInstantiateCallback_arg6 XPointer
12760 CFLAGS
=$late_CFLAGS
12763 ### Use -lXpm if available, unless `--with-xpm=no'.
12765 if test "${HAVE_X11}" = "yes"; then
12766 if test "${with_xpm}" != "no"; then
12767 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12768 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12769 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12770 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12771 echo $ECHO_N "(cached) $ECHO_C" >&6
12773 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12774 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12776 # Is the header compilable?
12777 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12778 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12779 cat >conftest.
$ac_ext <<_ACEOF
12782 cat confdefs.h
>>conftest.
$ac_ext
12783 cat >>conftest.
$ac_ext <<_ACEOF
12784 /* end confdefs.h. */
12785 $ac_includes_default
12786 #include <X11/xpm.h>
12788 rm -f conftest.
$ac_objext
12789 if { (ac_try
="$ac_compile"
12790 case "(($ac_try" in
12791 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12792 *) ac_try_echo=$ac_try;;
12794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12795 (eval "$ac_compile") 2>conftest.er1
12797 grep -v '^ *+' conftest.er1 >conftest.err
12799 cat conftest.err >&5
12800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12801 (exit $ac_status); } && {
12802 test -z "$ac_c_werror_flag" ||
12803 test ! -s conftest.err
12804 } && test -s conftest.$ac_objext; then
12805 ac_header_compiler=yes
12807 echo "$as_me: failed program was:" >&5
12808 sed 's/^/| /' conftest.$ac_ext >&5
12810 ac_header_compiler=no
12813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12815 echo "${ECHO_T}$ac_header_compiler" >&6; }
12817 # Is the header present?
12818 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12819 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12820 cat >conftest.$ac_ext <<_ACEOF
12823 cat confdefs.h >>conftest.$ac_ext
12824 cat >>conftest.$ac_ext <<_ACEOF
12825 /* end confdefs.h. */
12826 #include <X11/xpm.h>
12828 if { (ac_try="$ac_cpp conftest.$ac_ext"
12829 case "(($ac_try" in
12830 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12831 *) ac_try_echo
=$ac_try;;
12833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12836 grep -v '^ *+' conftest.er1
>conftest.err
12838 cat conftest.err
>&5
12839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12840 (exit $ac_status); } >/dev
/null
&& {
12841 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12842 test ! -s conftest.err
12844 ac_header_preproc
=yes
12846 echo "$as_me: failed program was:" >&5
12847 sed 's/^/| /' conftest.
$ac_ext >&5
12849 ac_header_preproc
=no
12852 rm -f conftest.err conftest.
$ac_ext
12853 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12854 echo "${ECHO_T}$ac_header_preproc" >&6; }
12856 # So? What about this header?
12857 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12859 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12860 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12861 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12862 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12863 ac_header_preproc
=yes
12866 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12867 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12868 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12869 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12870 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12871 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12872 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12873 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12874 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12875 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12877 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12881 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12882 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12883 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12884 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12888 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12889 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12892 if test $ac_cv_header_X11_xpm_h = yes; then
12893 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12894 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12895 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12898 ac_check_lib_save_LIBS
=$LIBS
12899 LIBS
="-lXpm -lX11 $LIBS"
12900 cat >conftest.
$ac_ext <<_ACEOF
12903 cat confdefs.h
>>conftest.
$ac_ext
12904 cat >>conftest.
$ac_ext <<_ACEOF
12905 /* end confdefs.h. */
12907 /* Override any GCC internal prototype to avoid an error.
12908 Use char because int might match the return type of a GCC
12909 builtin and then its argument prototype would still apply. */
12913 char XpmReadFileToPixmap ();
12917 return XpmReadFileToPixmap ();
12922 rm -f conftest.
$ac_objext conftest
$ac_exeext
12923 if { (ac_try
="$ac_link"
12924 case "(($ac_try" in
12925 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12926 *) ac_try_echo=$ac_try;;
12928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929 (eval "$ac_link") 2>conftest.er1
12931 grep -v '^ *+' conftest.er1 >conftest.err
12933 cat conftest.err >&5
12934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12935 (exit $ac_status); } && {
12936 test -z "$ac_c_werror_flag" ||
12937 test ! -s conftest.err
12938 } && test -s conftest$ac_exeext &&
12939 $as_test_x conftest$ac_exeext; then
12940 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12942 echo "$as_me: failed program was:" >&5
12943 sed 's/^/| /' conftest.$ac_ext >&5
12945 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12949 conftest$ac_exeext conftest.$ac_ext
12950 LIBS=$ac_check_lib_save_LIBS
12952 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12953 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12954 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12961 if test "${HAVE_XPM}" = "yes"; then
12962 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12963 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12964 cat >conftest.$ac_ext <<_ACEOF
12967 cat confdefs.h >>conftest.$ac_ext
12968 cat >>conftest.$ac_ext <<_ACEOF
12969 /* end confdefs.h. */
12970 #include "X11/xpm.h"
12971 #ifndef XpmReturnAllocPixels
12972 no_return_alloc_pixels
12976 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12977 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12985 if test "${HAVE_XPM}" = "yes"; then
12986 { echo "$as_me:$LINENO: result: yes" >&5
12987 echo "${ECHO_T}yes" >&6; }
12989 { echo "$as_me:$LINENO: result: no" >&5
12990 echo "${ECHO_T}no" >&6; }
12995 if test "${HAVE_XPM}" = "yes"; then
12997 cat >>confdefs.h <<\_ACEOF
13004 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13006 if test "${HAVE_X11}" = "yes"; then
13007 if test "${with_jpeg}" != "no"; then
13008 if test "${ac_cv_header_jerror_h+set}" = set; then
13009 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13010 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13011 if test "${ac_cv_header_jerror_h+set}" = set; then
13012 echo $ECHO_N "(cached) $ECHO_C" >&6
13014 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13015 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13017 # Is the header compilable?
13018 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13019 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13020 cat >conftest.$ac_ext <<_ACEOF
13023 cat confdefs.h >>conftest.$ac_ext
13024 cat >>conftest.$ac_ext <<_ACEOF
13025 /* end confdefs.h. */
13026 $ac_includes_default
13027 #include <jerror.h>
13029 rm -f conftest.$ac_objext
13030 if { (ac_try="$ac_compile"
13031 case "(($ac_try" in
13032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13033 *) ac_try_echo=$ac_try;;
13035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13036 (eval "$ac_compile") 2>conftest.er1
13038 grep -v '^
*+' conftest.er1 >conftest.err
13040 cat conftest.err >&5
13041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13042 (exit $ac_status); } && {
13043 test -z "$ac_c_werror_flag" ||
13044 test ! -s conftest.err
13045 } && test -s conftest.$ac_objext; then
13046 ac_header_compiler=yes
13048 echo "$as_me: failed program was:" >&5
13049 sed 's
/^
/|
/' conftest.$ac_ext >&5
13051 ac_header_compiler=no
13054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13055 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13056 echo "${ECHO_T}$ac_header_compiler" >&6; }
13058 # Is the header present?
13059 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13060 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13061 cat >conftest.$ac_ext <<_ACEOF
13064 cat confdefs.h >>conftest.$ac_ext
13065 cat >>conftest.$ac_ext <<_ACEOF
13066 /* end confdefs.h. */
13067 #include <jerror.h>
13069 if { (ac_try="$ac_cpp conftest.$ac_ext"
13070 case "(($ac_try" in
13071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072 *) ac_try_echo=$ac_try;;
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13077 grep -v '^
*+' conftest.er1 >conftest.err
13079 cat conftest.err >&5
13080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13081 (exit $ac_status); } >/dev/null && {
13082 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13083 test ! -s conftest.err
13085 ac_header_preproc=yes
13087 echo "$as_me: failed program was:" >&5
13088 sed 's
/^
/|
/' conftest.$ac_ext >&5
13090 ac_header_preproc=no
13093 rm -f conftest.err conftest.$ac_ext
13094 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13095 echo "${ECHO_T}$ac_header_preproc" >&6; }
13097 # So? What about this header?
13098 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13100 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13101 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13102 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13103 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13104 ac_header_preproc=yes
13107 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13108 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13109 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13110 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13111 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13112 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13113 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13114 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13115 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13116 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13117 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13118 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13122 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13123 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13124 if test "${ac_cv_header_jerror_h+set}" = set; then
13125 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 ac_cv_header_jerror_h=$ac_header_preproc
13129 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13130 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13133 if test $ac_cv_header_jerror_h = yes; then
13134 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13135 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13136 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13137 echo $ECHO_N "(cached) $ECHO_C" >&6
13139 ac_check_lib_save_LIBS=$LIBS
13140 LIBS="-ljpeg $LIBS"
13141 cat >conftest.$ac_ext <<_ACEOF
13144 cat confdefs.h >>conftest.$ac_ext
13145 cat >>conftest.$ac_ext <<_ACEOF
13146 /* end confdefs.h. */
13148 /* Override any GCC internal prototype to avoid an error.
13149 Use char because int might match the return type of a GCC
13150 builtin and then its argument prototype would still apply. */
13154 char jpeg_destroy_compress ();
13158 return jpeg_destroy_compress ();
13163 rm -f conftest.$ac_objext conftest$ac_exeext
13164 if { (ac_try="$ac_link"
13165 case "(($ac_try" in
13166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13167 *) ac_try_echo=$ac_try;;
13169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13170 (eval "$ac_link") 2>conftest.er1
13172 grep -v '^
*+' conftest.er1 >conftest.err
13174 cat conftest.err >&5
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); } && {
13177 test -z "$ac_c_werror_flag" ||
13178 test ! -s conftest.err
13179 } && test -s conftest$ac_exeext &&
13180 $as_test_x conftest$ac_exeext; then
13181 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13183 echo "$as_me: failed program was:" >&5
13184 sed 's
/^
/|
/' conftest.$ac_ext >&5
13186 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13190 conftest$ac_exeext conftest.$ac_ext
13191 LIBS=$ac_check_lib_save_LIBS
13193 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13194 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13195 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13205 if test "${HAVE_JPEG}" = "yes"; then
13206 cat >>confdefs.h <<\_ACEOF
13207 #define HAVE_JPEG 1
13210 cat >conftest.$ac_ext <<_ACEOF
13213 cat confdefs.h >>conftest.$ac_ext
13214 cat >>conftest.$ac_ext <<_ACEOF
13215 /* end confdefs.h. */
13216 #include <jpeglib.h>
13217 version=JPEG_LIB_VERSION
13220 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13221 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13222 cat >>confdefs.h <<\_ACEOF
13223 #define HAVE_JPEG 1
13227 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13228 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13236 ### Use -lpng if available, unless `--with-png=no'.
13238 if test "${HAVE_X11}" = "yes"; then
13239 if test "${with_png}" != "no"; then
13240 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13241 # in /usr/include/libpng.
13244 for ac_header
in png.h libpng
/png.h
13246 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13247 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13248 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13249 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13250 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13251 echo $ECHO_N "(cached) $ECHO_C" >&6
13253 ac_res
=`eval echo '${'$as_ac_Header'}'`
13254 { echo "$as_me:$LINENO: result: $ac_res" >&5
13255 echo "${ECHO_T}$ac_res" >&6; }
13257 # Is the header compilable?
13258 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13259 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13260 cat >conftest.
$ac_ext <<_ACEOF
13263 cat confdefs.h
>>conftest.
$ac_ext
13264 cat >>conftest.
$ac_ext <<_ACEOF
13265 /* end confdefs.h. */
13266 $ac_includes_default
13267 #include <$ac_header>
13269 rm -f conftest.
$ac_objext
13270 if { (ac_try
="$ac_compile"
13271 case "(($ac_try" in
13272 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13273 *) ac_try_echo=$ac_try;;
13275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276 (eval "$ac_compile") 2>conftest.er1
13278 grep -v '^ *+' conftest.er1 >conftest.err
13280 cat conftest.err >&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } && {
13283 test -z "$ac_c_werror_flag" ||
13284 test ! -s conftest.err
13285 } && test -s conftest.$ac_objext; then
13286 ac_header_compiler=yes
13288 echo "$as_me: failed program was:" >&5
13289 sed 's/^/| /' conftest.$ac_ext >&5
13291 ac_header_compiler=no
13294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13295 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13296 echo "${ECHO_T}$ac_header_compiler" >&6; }
13298 # Is the header present?
13299 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13300 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13301 cat >conftest.$ac_ext <<_ACEOF
13304 cat confdefs.h >>conftest.$ac_ext
13305 cat >>conftest.$ac_ext <<_ACEOF
13306 /* end confdefs.h. */
13307 #include <$ac_header>
13309 if { (ac_try="$ac_cpp conftest.$ac_ext"
13310 case "(($ac_try" in
13311 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13312 *) ac_try_echo
=$ac_try;;
13314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13315 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13317 grep -v '^ *+' conftest.er1
>conftest.err
13319 cat conftest.err
>&5
13320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13321 (exit $ac_status); } >/dev
/null
&& {
13322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13323 test ! -s conftest.err
13325 ac_header_preproc
=yes
13327 echo "$as_me: failed program was:" >&5
13328 sed 's/^/| /' conftest.
$ac_ext >&5
13330 ac_header_preproc
=no
13333 rm -f conftest.err conftest.
$ac_ext
13334 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13335 echo "${ECHO_T}$ac_header_preproc" >&6; }
13337 # So? What about this header?
13338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13341 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13343 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13344 ac_header_preproc
=yes
13347 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13348 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13349 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13350 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13351 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13352 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13353 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13354 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13356 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13357 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13358 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13362 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13363 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13364 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13365 echo $ECHO_N "(cached) $ECHO_C" >&6
13367 eval "$as_ac_Header=\$ac_header_preproc"
13369 ac_res
=`eval echo '${'$as_ac_Header'}'`
13370 { echo "$as_me:$LINENO: result: $ac_res" >&5
13371 echo "${ECHO_T}$ac_res" >&6; }
13374 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13375 cat >>confdefs.h
<<_ACEOF
13376 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13383 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13384 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13385 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13386 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13387 echo $ECHO_N "(cached) $ECHO_C" >&6
13389 ac_check_lib_save_LIBS
=$LIBS
13390 LIBS
="-lpng -lz -lm $LIBS"
13391 cat >conftest.
$ac_ext <<_ACEOF
13394 cat confdefs.h
>>conftest.
$ac_ext
13395 cat >>conftest.
$ac_ext <<_ACEOF
13396 /* end confdefs.h. */
13398 /* Override any GCC internal prototype to avoid an error.
13399 Use char because int might match the return type of a GCC
13400 builtin and then its argument prototype would still apply. */
13404 char png_get_channels ();
13408 return png_get_channels ();
13413 rm -f conftest.
$ac_objext conftest
$ac_exeext
13414 if { (ac_try
="$ac_link"
13415 case "(($ac_try" in
13416 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13417 *) ac_try_echo=$ac_try;;
13419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13420 (eval "$ac_link") 2>conftest.er1
13422 grep -v '^ *+' conftest.er1 >conftest.err
13424 cat conftest.err >&5
13425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426 (exit $ac_status); } && {
13427 test -z "$ac_c_werror_flag" ||
13428 test ! -s conftest.err
13429 } && test -s conftest$ac_exeext &&
13430 $as_test_x conftest$ac_exeext; then
13431 ac_cv_lib_png_png_get_channels=yes
13433 echo "$as_me: failed program was:" >&5
13434 sed 's/^/| /' conftest.$ac_ext >&5
13436 ac_cv_lib_png_png_get_channels=no
13439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13440 conftest$ac_exeext conftest.$ac_ext
13441 LIBS=$ac_check_lib_save_LIBS
13443 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13444 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13445 if test $ac_cv_lib_png_png_get_channels = yes; then
13452 if test "${HAVE_PNG}" = "yes"; then
13454 cat >>confdefs.h <<\_ACEOF
13461 ### Use -ltiff if available, unless `--with-tiff=no
'.
13463 if test "${HAVE_X11}" = "yes"; then
13464 if test "${with_tiff}" != "no"; then
13465 if test "${ac_cv_header_tiffio_h+set}" = set; then
13466 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13467 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13468 if test "${ac_cv_header_tiffio_h+set}" = set; then
13469 echo $ECHO_N "(cached) $ECHO_C" >&6
13471 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13472 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13474 # Is the header compilable?
13475 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13476 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13477 cat >conftest.$ac_ext <<_ACEOF
13480 cat confdefs.h >>conftest.$ac_ext
13481 cat >>conftest.$ac_ext <<_ACEOF
13482 /* end confdefs.h. */
13483 $ac_includes_default
13484 #include <tiffio.h>
13486 rm -f conftest.$ac_objext
13487 if { (ac_try="$ac_compile"
13488 case "(($ac_try" in
13489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13490 *) ac_try_echo=$ac_try;;
13492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13493 (eval "$ac_compile") 2>conftest.er1
13495 grep -v '^
*+' conftest.er1 >conftest.err
13497 cat conftest.err >&5
13498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13499 (exit $ac_status); } && {
13500 test -z "$ac_c_werror_flag" ||
13501 test ! -s conftest.err
13502 } && test -s conftest.$ac_objext; then
13503 ac_header_compiler=yes
13505 echo "$as_me: failed program was:" >&5
13506 sed 's
/^
/|
/' conftest.$ac_ext >&5
13508 ac_header_compiler=no
13511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13512 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13513 echo "${ECHO_T}$ac_header_compiler" >&6; }
13515 # Is the header present?
13516 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13517 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13518 cat >conftest.$ac_ext <<_ACEOF
13521 cat confdefs.h >>conftest.$ac_ext
13522 cat >>conftest.$ac_ext <<_ACEOF
13523 /* end confdefs.h. */
13524 #include <tiffio.h>
13526 if { (ac_try="$ac_cpp conftest.$ac_ext"
13527 case "(($ac_try" in
13528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13529 *) ac_try_echo=$ac_try;;
13531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13532 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13534 grep -v '^
*+' conftest.er1 >conftest.err
13536 cat conftest.err >&5
13537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13538 (exit $ac_status); } >/dev/null && {
13539 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13540 test ! -s conftest.err
13542 ac_header_preproc=yes
13544 echo "$as_me: failed program was:" >&5
13545 sed 's
/^
/|
/' conftest.$ac_ext >&5
13547 ac_header_preproc=no
13550 rm -f conftest.err conftest.$ac_ext
13551 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13552 echo "${ECHO_T}$ac_header_preproc" >&6; }
13554 # So? What about this header?
13555 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13557 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13558 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13560 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13561 ac_header_preproc=yes
13564 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13565 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13566 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13567 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13568 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13569 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13570 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13571 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13572 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13573 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13574 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13575 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13579 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13580 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13581 if test "${ac_cv_header_tiffio_h+set}" = set; then
13582 echo $ECHO_N "(cached) $ECHO_C" >&6
13584 ac_cv_header_tiffio_h=$ac_header_preproc
13586 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13587 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13590 if test $ac_cv_header_tiffio_h = yes; then
13592 # At least one tiff package requires the jpeg library.
13593 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13594 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13595 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13596 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13597 echo $ECHO_N "(cached) $ECHO_C" >&6
13599 ac_check_lib_save_LIBS=$LIBS
13600 LIBS="-ltiff $tifflibs $LIBS"
13601 cat >conftest.$ac_ext <<_ACEOF
13604 cat confdefs.h >>conftest.$ac_ext
13605 cat >>conftest.$ac_ext <<_ACEOF
13606 /* end confdefs.h. */
13608 /* Override any GCC internal prototype to avoid an error.
13609 Use char because int might match the return type of a GCC
13610 builtin and then its argument prototype would still apply. */
13614 char TIFFGetVersion ();
13618 return TIFFGetVersion ();
13623 rm -f conftest.$ac_objext conftest$ac_exeext
13624 if { (ac_try="$ac_link"
13625 case "(($ac_try" in
13626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13627 *) ac_try_echo=$ac_try;;
13629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13630 (eval "$ac_link") 2>conftest.er1
13632 grep -v '^
*+' conftest.er1 >conftest.err
13634 cat conftest.err >&5
13635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13636 (exit $ac_status); } && {
13637 test -z "$ac_c_werror_flag" ||
13638 test ! -s conftest.err
13639 } && test -s conftest$ac_exeext &&
13640 $as_test_x conftest$ac_exeext; then
13641 ac_cv_lib_tiff_TIFFGetVersion=yes
13643 echo "$as_me: failed program was:" >&5
13644 sed 's
/^
/|
/' conftest.$ac_ext >&5
13646 ac_cv_lib_tiff_TIFFGetVersion=no
13649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13650 conftest$ac_exeext conftest.$ac_ext
13651 LIBS=$ac_check_lib_save_LIBS
13653 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13654 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13655 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13664 if test "${HAVE_TIFF}" = "yes"; then
13666 cat >>confdefs.h <<\_ACEOF
13667 #define HAVE_TIFF 1
13673 ### Use -lgif if available, unless `--with-gif=no'.
13675 if test "${HAVE_X11}" = "yes"; then
13676 if test "${with_gif}" != "no"; then
13677 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13678 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13679 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13680 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13681 echo $ECHO_N "(cached) $ECHO_C" >&6
13683 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13684 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13686 # Is the header compilable?
13687 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13688 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13689 cat >conftest.
$ac_ext <<_ACEOF
13692 cat confdefs.h
>>conftest.
$ac_ext
13693 cat >>conftest.
$ac_ext <<_ACEOF
13694 /* end confdefs.h. */
13695 $ac_includes_default
13696 #include <gif_lib.h>
13698 rm -f conftest.
$ac_objext
13699 if { (ac_try
="$ac_compile"
13700 case "(($ac_try" in
13701 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_compile") 2>conftest.er1
13707 grep -v '^ *+' conftest.er1 >conftest.err
13709 cat conftest.err >&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } && {
13712 test -z "$ac_c_werror_flag" ||
13713 test ! -s conftest.err
13714 } && test -s conftest.$ac_objext; then
13715 ac_header_compiler=yes
13717 echo "$as_me: failed program was:" >&5
13718 sed 's/^/| /' conftest.$ac_ext >&5
13720 ac_header_compiler=no
13723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13725 echo "${ECHO_T}$ac_header_compiler" >&6; }
13727 # Is the header present?
13728 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13729 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13730 cat >conftest.$ac_ext <<_ACEOF
13733 cat confdefs.h >>conftest.$ac_ext
13734 cat >>conftest.$ac_ext <<_ACEOF
13735 /* end confdefs.h. */
13736 #include <gif_lib.h>
13738 if { (ac_try="$ac_cpp conftest.$ac_ext"
13739 case "(($ac_try" in
13740 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13741 *) ac_try_echo
=$ac_try;;
13743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13746 grep -v '^ *+' conftest.er1
>conftest.err
13748 cat conftest.err
>&5
13749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13750 (exit $ac_status); } >/dev
/null
&& {
13751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13752 test ! -s conftest.err
13754 ac_header_preproc
=yes
13756 echo "$as_me: failed program was:" >&5
13757 sed 's/^/| /' conftest.
$ac_ext >&5
13759 ac_header_preproc
=no
13762 rm -f conftest.err conftest.
$ac_ext
13763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13764 echo "${ECHO_T}$ac_header_preproc" >&6; }
13766 # So? What about this header?
13767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13769 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13770 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13771 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13772 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13773 ac_header_preproc
=yes
13776 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13777 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13778 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13779 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13780 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13781 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13782 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13783 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13784 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13785 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13786 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13787 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13791 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13792 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13793 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13794 echo $ECHO_N "(cached) $ECHO_C" >&6
13796 ac_cv_header_gif_lib_h
=$ac_header_preproc
13798 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13799 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13802 if test $ac_cv_header_gif_lib_h = yes; then
13803 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13804 # Earlier versions can crash Emacs.
13805 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13806 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13807 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13808 echo $ECHO_N "(cached) $ECHO_C" >&6
13810 ac_check_lib_save_LIBS
=$LIBS
13811 LIBS
="-lungif $LIBS"
13812 cat >conftest.
$ac_ext <<_ACEOF
13815 cat confdefs.h
>>conftest.
$ac_ext
13816 cat >>conftest.
$ac_ext <<_ACEOF
13817 /* end confdefs.h. */
13819 /* Override any GCC internal prototype to avoid an error.
13820 Use char because int might match the return type of a GCC
13821 builtin and then its argument prototype would still apply. */
13825 char EGifPutExtensionLast ();
13829 return EGifPutExtensionLast ();
13834 rm -f conftest.
$ac_objext conftest
$ac_exeext
13835 if { (ac_try
="$ac_link"
13836 case "(($ac_try" in
13837 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13838 *) ac_try_echo=$ac_try;;
13840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13841 (eval "$ac_link") 2>conftest.er1
13843 grep -v '^ *+' conftest.er1 >conftest.err
13845 cat conftest.err >&5
13846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13847 (exit $ac_status); } && {
13848 test -z "$ac_c_werror_flag" ||
13849 test ! -s conftest.err
13850 } && test -s conftest$ac_exeext &&
13851 $as_test_x conftest$ac_exeext; then
13852 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13854 echo "$as_me: failed program was:" >&5
13855 sed 's/^/| /' conftest.$ac_ext >&5
13857 ac_cv_lib_ungif_EGifPutExtensionLast=no
13860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13861 conftest$ac_exeext conftest.$ac_ext
13862 LIBS=$ac_check_lib_save_LIBS
13864 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13865 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13866 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13875 if test "${HAVE_GIF}" = "yes"; then
13877 cat >>confdefs.h <<\_ACEOF
13884 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13885 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13886 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13887 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13888 echo $ECHO_N "(cached) $ECHO_C" >&6
13890 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13891 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13893 # Is the header compilable?
13894 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13895 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13896 cat >conftest.$ac_ext <<_ACEOF
13899 cat confdefs.h >>conftest.$ac_ext
13900 cat >>conftest.$ac_ext <<_ACEOF
13901 /* end confdefs.h. */
13902 $ac_includes_default
13903 #include <malloc/malloc.h>
13905 rm -f conftest.$ac_objext
13906 if { (ac_try="$ac_compile"
13907 case "(($ac_try" in
13908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13909 *) ac_try_echo
=$ac_try;;
13911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13912 (eval "$ac_compile") 2>conftest.er1
13914 grep -v '^ *+' conftest.er1
>conftest.err
13916 cat conftest.err
>&5
13917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13918 (exit $ac_status); } && {
13919 test -z "$ac_c_werror_flag" ||
13920 test ! -s conftest.err
13921 } && test -s conftest.
$ac_objext; then
13922 ac_header_compiler
=yes
13924 echo "$as_me: failed program was:" >&5
13925 sed 's/^/| /' conftest.
$ac_ext >&5
13927 ac_header_compiler
=no
13930 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13931 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13932 echo "${ECHO_T}$ac_header_compiler" >&6; }
13934 # Is the header present?
13935 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13936 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13937 cat >conftest.
$ac_ext <<_ACEOF
13940 cat confdefs.h
>>conftest.
$ac_ext
13941 cat >>conftest.
$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 #include <malloc/malloc.h>
13945 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13946 case "(($ac_try" in
13947 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13948 *) ac_try_echo=$ac_try;;
13950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13953 grep -v '^ *+' conftest.er1 >conftest.err
13955 cat conftest.err >&5
13956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13957 (exit $ac_status); } >/dev/null && {
13958 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13959 test ! -s conftest.err
13961 ac_header_preproc=yes
13963 echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13966 ac_header_preproc=no
13969 rm -f conftest.err conftest.$ac_ext
13970 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13971 echo "${ECHO_T}$ac_header_preproc" >&6; }
13973 # So? What about this header?
13974 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13976 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13977 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13978 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13979 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13980 ac_header_preproc=yes
13983 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13984 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13985 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13986 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13988 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13990 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13992 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13994 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13998 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13999 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14000 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14001 echo $ECHO_N "(cached) $ECHO_C" >&6
14003 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14005 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14006 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14009 if test $ac_cv_header_malloc_malloc_h = yes; then
14011 cat >>confdefs.h <<\_ACEOF
14012 #define HAVE_MALLOC_MALLOC_H 1
14019 ### Use Mac OS X Carbon API to implement GUI.
14020 if test "${HAVE_CARBON}" = "yes"; then
14022 cat >>confdefs.h <<\_ACEOF
14023 #define HAVE_CARBON 1
14026 ## Specify the install directory
14028 if test "${carbon_appdir_x}" != ""; then
14029 case ${carbon_appdir_x} in
14030 y | ye | yes) carbon_appdir=/Applications ;;
14031 * ) carbon_appdir=${carbon_appdir_x} ;;
14034 # We also have mouse menus.
14038 ### Use session management (-lSM -lICE) if available
14040 if test "${HAVE_X11}" = "yes"; then
14041 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14042 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14043 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14044 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14045 echo $ECHO_N "(cached) $ECHO_C" >&6
14047 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14048 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14050 # Is the header compilable?
14051 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14052 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14053 cat >conftest.$ac_ext <<_ACEOF
14056 cat confdefs.h >>conftest.$ac_ext
14057 cat >>conftest.$ac_ext <<_ACEOF
14058 /* end confdefs.h. */
14059 $ac_includes_default
14060 #include <X11/SM/SMlib.h>
14062 rm -f conftest.$ac_objext
14063 if { (ac_try="$ac_compile"
14064 case "(($ac_try" in
14065 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14066 *) ac_try_echo
=$ac_try;;
14068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14069 (eval "$ac_compile") 2>conftest.er1
14071 grep -v '^ *+' conftest.er1
>conftest.err
14073 cat conftest.err
>&5
14074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075 (exit $ac_status); } && {
14076 test -z "$ac_c_werror_flag" ||
14077 test ! -s conftest.err
14078 } && test -s conftest.
$ac_objext; then
14079 ac_header_compiler
=yes
14081 echo "$as_me: failed program was:" >&5
14082 sed 's/^/| /' conftest.
$ac_ext >&5
14084 ac_header_compiler
=no
14087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14088 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14089 echo "${ECHO_T}$ac_header_compiler" >&6; }
14091 # Is the header present?
14092 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14093 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14094 cat >conftest.
$ac_ext <<_ACEOF
14097 cat confdefs.h
>>conftest.
$ac_ext
14098 cat >>conftest.
$ac_ext <<_ACEOF
14099 /* end confdefs.h. */
14100 #include <X11/SM/SMlib.h>
14102 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14103 case "(($ac_try" in
14104 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14105 *) ac_try_echo=$ac_try;;
14107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14108 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14110 grep -v '^ *+' conftest.er1 >conftest.err
14112 cat conftest.err >&5
14113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14114 (exit $ac_status); } >/dev/null && {
14115 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14116 test ! -s conftest.err
14118 ac_header_preproc=yes
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14123 ac_header_preproc=no
14126 rm -f conftest.err conftest.$ac_ext
14127 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14128 echo "${ECHO_T}$ac_header_preproc" >&6; }
14130 # So? What about this header?
14131 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14133 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14134 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14135 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14136 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14137 ac_header_preproc=yes
14140 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14141 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14142 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14143 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14144 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14145 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14146 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14147 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14148 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14149 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14150 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14151 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14155 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14156 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14157 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14158 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14162 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14163 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14166 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14167 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14168 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14169 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14170 echo $ECHO_N "(cached) $ECHO_C" >&6
14172 ac_check_lib_save_LIBS=$LIBS
14173 LIBS="-lSM -lICE $LIBS"
14174 cat >conftest.$ac_ext <<_ACEOF
14177 cat confdefs.h >>conftest.$ac_ext
14178 cat >>conftest.$ac_ext <<_ACEOF
14179 /* end confdefs.h. */
14181 /* Override any GCC internal prototype to avoid an error.
14182 Use char because int might match the return type of a GCC
14183 builtin and then its argument prototype would still apply. */
14187 char SmcOpenConnection ();
14191 return SmcOpenConnection ();
14196 rm -f conftest.$ac_objext conftest$ac_exeext
14197 if { (ac_try="$ac_link"
14198 case "(($ac_try" in
14199 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14200 *) ac_try_echo
=$ac_try;;
14202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14203 (eval "$ac_link") 2>conftest.er1
14205 grep -v '^ *+' conftest.er1
>conftest.err
14207 cat conftest.err
>&5
14208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14209 (exit $ac_status); } && {
14210 test -z "$ac_c_werror_flag" ||
14211 test ! -s conftest.err
14212 } && test -s conftest
$ac_exeext &&
14213 $as_test_x conftest
$ac_exeext; then
14214 ac_cv_lib_SM_SmcOpenConnection
=yes
14216 echo "$as_me: failed program was:" >&5
14217 sed 's/^/| /' conftest.
$ac_ext >&5
14219 ac_cv_lib_SM_SmcOpenConnection
=no
14222 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14223 conftest
$ac_exeext conftest.
$ac_ext
14224 LIBS
=$ac_check_lib_save_LIBS
14226 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14227 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14228 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14236 if test "${HAVE_X_SM}" = "yes"; then
14238 cat >>confdefs.h
<<\_ACEOF
14239 #define HAVE_X_SM 1
14244 *) LIBS
="-lSM -lICE $LIBS" ;;
14249 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14250 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14251 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14252 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14253 echo $ECHO_N "(cached) $ECHO_C" >&6
14255 cat >conftest.
$ac_ext <<_ACEOF
14258 cat confdefs.h
>>conftest.
$ac_ext
14259 cat >>conftest.
$ac_ext <<_ACEOF
14260 /* end confdefs.h. */
14270 rm -f conftest.
$ac_objext conftest
$ac_exeext
14271 if { (ac_try
="$ac_link"
14272 case "(($ac_try" in
14273 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14274 *) ac_try_echo=$ac_try;;
14276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14277 (eval "$ac_link") 2>conftest.er1
14279 grep -v '^ *+' conftest.er1 >conftest.err
14281 cat conftest.err >&5
14282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14283 (exit $ac_status); } && {
14284 test -z "$ac_c_werror_flag" ||
14285 test ! -s conftest.err
14286 } && test -s conftest$ac_exeext &&
14287 $as_test_x conftest$ac_exeext; then
14288 emacs_cv_netdb_declares_h_errno=yes
14290 echo "$as_me: failed program was:" >&5
14291 sed 's/^/| /' conftest.$ac_ext >&5
14293 emacs_cv_netdb_declares_h_errno=no
14296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14297 conftest$ac_exeext conftest.$ac_ext
14299 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14300 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14301 if test $emacs_cv_netdb_declares_h_errno = yes; then
14303 cat >>confdefs.h <<\_ACEOF
14304 #define HAVE_H_ERRNO 1
14309 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14310 # for constant arguments. Useless!
14311 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14312 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14313 if test "${ac_cv_working_alloca_h+set}" = set; then
14314 echo $ECHO_N "(cached) $ECHO_C" >&6
14316 cat >conftest.$ac_ext <<_ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14322 #include <alloca.h>
14326 char *p = (char *) alloca (2 * sizeof (int));
14332 rm -f conftest.$ac_objext conftest$ac_exeext
14333 if { (ac_try="$ac_link"
14334 case "(($ac_try" in
14335 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14336 *) ac_try_echo
=$ac_try;;
14338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_link") 2>conftest.er1
14341 grep -v '^ *+' conftest.er1
>conftest.err
14343 cat conftest.err
>&5
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); } && {
14346 test -z "$ac_c_werror_flag" ||
14347 test ! -s conftest.err
14348 } && test -s conftest
$ac_exeext &&
14349 $as_test_x conftest
$ac_exeext; then
14350 ac_cv_working_alloca_h
=yes
14352 echo "$as_me: failed program was:" >&5
14353 sed 's/^/| /' conftest.
$ac_ext >&5
14355 ac_cv_working_alloca_h
=no
14358 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14359 conftest
$ac_exeext conftest.
$ac_ext
14361 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14362 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14363 if test $ac_cv_working_alloca_h = yes; then
14365 cat >>confdefs.h
<<\_ACEOF
14366 #define HAVE_ALLOCA_H 1
14371 { echo "$as_me:$LINENO: checking for alloca" >&5
14372 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14373 if test "${ac_cv_func_alloca_works+set}" = set; then
14374 echo $ECHO_N "(cached) $ECHO_C" >&6
14376 cat >conftest.
$ac_ext <<_ACEOF
14379 cat confdefs.h
>>conftest.
$ac_ext
14380 cat >>conftest.
$ac_ext <<_ACEOF
14381 /* end confdefs.h. */
14383 # define alloca __builtin_alloca
14386 # include <malloc.h>
14387 # define alloca _alloca
14389 # ifdef HAVE_ALLOCA_H
14390 # include <alloca.h>
14395 # ifndef alloca /* predefined by HP cc +Olibcalls */
14406 char *p = (char *) alloca (1);
14412 rm -f conftest.
$ac_objext conftest
$ac_exeext
14413 if { (ac_try
="$ac_link"
14414 case "(($ac_try" in
14415 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14416 *) ac_try_echo=$ac_try;;
14418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14419 (eval "$ac_link") 2>conftest.er1
14421 grep -v '^ *+' conftest.er1 >conftest.err
14423 cat conftest.err >&5
14424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14425 (exit $ac_status); } && {
14426 test -z "$ac_c_werror_flag" ||
14427 test ! -s conftest.err
14428 } && test -s conftest$ac_exeext &&
14429 $as_test_x conftest$ac_exeext; then
14430 ac_cv_func_alloca_works=yes
14432 echo "$as_me: failed program was:" >&5
14433 sed 's/^/| /' conftest.$ac_ext >&5
14435 ac_cv_func_alloca_works=no
14438 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14439 conftest$ac_exeext conftest.$ac_ext
14441 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14442 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14444 if test $ac_cv_func_alloca_works = yes; then
14446 cat >>confdefs.h <<\_ACEOF
14447 #define HAVE_ALLOCA 1
14451 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14452 # that cause trouble. Some versions do not even contain alloca or
14453 # contain a buggy version. If you still want to use their alloca,
14454 # use ar to extract alloca.o from them instead of compiling alloca.c.
14456 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14458 cat >>confdefs.h <<\_ACEOF
14463 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14464 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14465 if test "${ac_cv_os_cray+set}" = set; then
14466 echo $ECHO_N "(cached
) $ECHO_C" >&6
14468 cat >conftest.$ac_ext <<_ACEOF
14471 cat confdefs.h >>conftest.$ac_ext
14472 cat >>conftest.$ac_ext <<_ACEOF
14473 /* end confdefs.h. */
14474 #if defined CRAY && ! defined CRAY2
14481 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14482 $EGREP "webecray
" >/dev/null 2>&1; then
14490 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14491 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14492 if test $ac_cv_os_cray = yes; then
14493 for ac_func in _getb67 GETB67 getb67; do
14494 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14495 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14496 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14497 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14498 echo $ECHO_N "(cached
) $ECHO_C" >&6
14500 cat >conftest.$ac_ext <<_ACEOF
14503 cat confdefs.h >>conftest.$ac_ext
14504 cat >>conftest.$ac_ext <<_ACEOF
14505 /* end confdefs.h. */
14506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14508 #define $ac_func innocuous_$ac_func
14510 /* System header to define __stub macros and hopefully few prototypes,
14511 which can conflict with char $ac_func (); below.
14512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14513 <limits.h> exists even on freestanding compilers. */
14516 # include <limits.h>
14518 # include <assert.h>
14523 /* Override any GCC internal prototype to avoid an error.
14524 Use char because int might match the return type of a GCC
14525 builtin and then its argument prototype would still apply. */
14530 /* The GNU C library defines this for functions which it implements
14531 to always fail with ENOSYS. Some functions are actually named
14532 something starting with __ and the normal name is an alias. */
14533 #if defined __stub_$ac_func || defined __stub___$ac_func
14540 return $ac_func ();
14545 rm -f conftest.$ac_objext conftest$ac_exeext
14546 if { (ac_try="$ac_link"
14547 case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14551 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_link") 2>conftest.er1
14554 grep -v '^ *+' conftest.er1 >conftest.err
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14558 (exit $ac_status); } && {
14559 test -z "$ac_c_werror_flag" ||
14560 test ! -s conftest.err
14561 } && test -s conftest$ac_exeext &&
14562 $as_test_x conftest$ac_exeext; then
14563 eval "$as_ac_var=yes"
14565 echo "$as_me: failed program was
:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14568 eval "$as_ac_var=no
"
14571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14572 conftest$ac_exeext conftest.$ac_ext
14574 ac_res=`eval echo '${'$as_ac_var'}'`
14575 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14576 echo "${ECHO_T}$ac_res" >&6; }
14577 if test `eval echo '${'$as_ac_var'}'` = yes; then
14579 cat >>confdefs.h <<_ACEOF
14580 #define CRAY_STACKSEG_END $ac_func
14589 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14590 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14591 if test "${ac_cv_c_stack_direction+set}" = set; then
14592 echo $ECHO_N "(cached
) $ECHO_C" >&6
14594 if test "$cross_compiling" = yes; then
14595 ac_cv_c_stack_direction=0
14597 cat >conftest.$ac_ext <<_ACEOF
14600 cat confdefs.h >>conftest.$ac_ext
14601 cat >>conftest.$ac_ext <<_ACEOF
14602 /* end confdefs.h. */
14603 $ac_includes_default
14605 find_stack_direction ()
14607 static char *addr = 0;
14612 return find_stack_direction ();
14615 return (&dummy > addr) ? 1 : -1;
14621 return find_stack_direction () < 0;
14624 rm -f conftest$ac_exeext
14625 if { (ac_try="$ac_link"
14626 case "(($ac_try" in
14627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14628 *) ac_try_echo=$ac_try;;
14630 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14631 (eval "$ac_link") 2>&5
14633 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14634 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14635 { (case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14639 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_try") 2>&5
14642 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14643 (exit $ac_status); }; }; then
14644 ac_cv_c_stack_direction=1
14646 echo "$as_me: program exited with status
$ac_status" >&5
14647 echo "$as_me: failed program was
:" >&5
14648 sed 's/^/| /' conftest.$ac_ext >&5
14650 ( exit $ac_status )
14651 ac_cv_c_stack_direction=-1
14653 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14658 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14659 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14661 cat >>confdefs.h <<_ACEOF
14662 #define STACK_DIRECTION $ac_cv_c_stack_direction
14669 # fmod, logb, and frexp are found in -lm on most systems.
14670 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14672 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14673 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14674 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14675 echo $ECHO_N "(cached
) $ECHO_C" >&6
14677 ac_check_lib_save_LIBS=$LIBS
14679 cat >conftest.$ac_ext <<_ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h. */
14686 /* Override any GCC internal prototype to avoid an error.
14687 Use char because int might match the return type of a GCC
14688 builtin and then its argument prototype would still apply. */
14701 rm -f conftest.$ac_objext conftest$ac_exeext
14702 if { (ac_try="$ac_link"
14703 case "(($ac_try" in
14704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14705 *) ac_try_echo=$ac_try;;
14707 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14708 (eval "$ac_link") 2>conftest.er1
14710 grep -v '^ *+' conftest.er1 >conftest.err
14712 cat conftest.err >&5
14713 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14714 (exit $ac_status); } && {
14715 test -z "$ac_c_werror_flag" ||
14716 test ! -s conftest.err
14717 } && test -s conftest$ac_exeext &&
14718 $as_test_x conftest$ac_exeext; then
14719 ac_cv_lib_m_sqrt=yes
14721 echo "$as_me: failed program was
:" >&5
14722 sed 's/^/| /' conftest.$ac_ext >&5
14724 ac_cv_lib_m_sqrt=no
14727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14728 conftest$ac_exeext conftest.$ac_ext
14729 LIBS=$ac_check_lib_save_LIBS
14731 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
14732 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14733 if test $ac_cv_lib_m_sqrt = yes; then
14734 cat >>confdefs.h <<_ACEOF
14735 #define HAVE_LIBM 1
14743 # Check for mail-locking functions in a "mail" library. Probably this should
14744 # have the same check as for liblockfile below.
14746 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
14747 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
14748 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14749 echo $ECHO_N "(cached
) $ECHO_C" >&6
14751 ac_check_lib_save_LIBS=$LIBS
14752 LIBS="-lmail $LIBS"
14753 cat >conftest.$ac_ext <<_ACEOF
14756 cat confdefs.h >>conftest.$ac_ext
14757 cat >>conftest.$ac_ext <<_ACEOF
14758 /* end confdefs.h. */
14760 /* Override any GCC internal prototype to avoid an error.
14761 Use char because int might match the return type of a GCC
14762 builtin and then its argument prototype would still apply. */
14770 return maillock ();
14775 rm -f conftest.$ac_objext conftest$ac_exeext
14776 if { (ac_try="$ac_link"
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_link") 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_exeext &&
14792 $as_test_x conftest$ac_exeext; then
14793 ac_cv_lib_mail_maillock=yes
14795 echo "$as_me: failed program was
:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14798 ac_cv_lib_mail_maillock=no
14801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14802 conftest$ac_exeext conftest.$ac_ext
14803 LIBS=$ac_check_lib_save_LIBS
14805 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
14806 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14807 if test $ac_cv_lib_mail_maillock = yes; then
14808 cat >>confdefs.h <<_ACEOF
14809 #define HAVE_LIBMAIL 1
14812 LIBS="-lmail $LIBS"
14817 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
14818 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
14819 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14820 echo $ECHO_N "(cached
) $ECHO_C" >&6
14822 ac_check_lib_save_LIBS=$LIBS
14823 LIBS="-llockfile $LIBS"
14824 cat >conftest.$ac_ext <<_ACEOF
14827 cat confdefs.h >>conftest.$ac_ext
14828 cat >>conftest.$ac_ext <<_ACEOF
14829 /* end confdefs.h. */
14831 /* Override any GCC internal prototype to avoid an error.
14832 Use char because int might match the return type of a GCC
14833 builtin and then its argument prototype would still apply. */
14841 return maillock ();
14846 rm -f conftest.$ac_objext conftest$ac_exeext
14847 if { (ac_try="$ac_link"
14848 case "(($ac_try" in
14849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14850 *) ac_try_echo=$ac_try;;
14852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14853 (eval "$ac_link") 2>conftest.er1
14855 grep -v '^ *+' conftest.er1 >conftest.err
14857 cat conftest.err >&5
14858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14859 (exit $ac_status); } && {
14860 test -z "$ac_c_werror_flag" ||
14861 test ! -s conftest.err
14862 } && test -s conftest$ac_exeext &&
14863 $as_test_x conftest$ac_exeext; then
14864 ac_cv_lib_lockfile_maillock=yes
14866 echo "$as_me: failed program was
:" >&5
14867 sed 's/^/| /' conftest.$ac_ext >&5
14869 ac_cv_lib_lockfile_maillock=no
14872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14873 conftest$ac_exeext conftest.$ac_ext
14874 LIBS=$ac_check_lib_save_LIBS
14876 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
14877 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14878 if test $ac_cv_lib_lockfile_maillock = yes; then
14879 cat >>confdefs.h <<_ACEOF
14880 #define HAVE_LIBLOCKFILE 1
14883 LIBS="-llockfile $LIBS"
14887 # If we have the shared liblockfile, assume we must use it for mail
14888 # locking (e.g. Debian). If we couldn't link against liblockfile
14889 # (no liblockfile.a installed), ensure that we don't need to.
14890 if test "$ac_cv_lib_lockfile_maillock" = no; then
14891 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
14892 set dummy liblockfile.so; ac_word=$2
14893 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14894 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14895 if test "${ac_cv_prog_liblockfile+set}" = set; then
14896 echo $ECHO_N "(cached
) $ECHO_C" >&6
14898 if test -n "$liblockfile"; then
14899 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14902 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
14903 for as_dir in $as_dummy
14906 test -z "$as_dir" && as_dir=.
14907 for ac_exec_ext in '' $ac_executable_extensions; do
14908 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14909 ac_cv_prog_liblockfile="yes"
14910 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14917 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
14920 liblockfile=$ac_cv_prog_liblockfile
14921 if test -n "$liblockfile"; then
14922 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
14923 echo "${ECHO_T}$liblockfile" >&6; }
14925 { echo "$as_me:$LINENO: result
: no
" >&5
14926 echo "${ECHO_T}no
" >&6; }
14930 if test $ac_cv_prog_liblockfile = yes; then
14931 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
14932 This probably means that movemail could lose mail.
14933 There may be a \`development' package to
install containing liblockfile.
" >&5
14934 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
14935 This probably means that movemail could lose mail.
14936 There may be a \`development' package to
install containing liblockfile.
" >&2;}
14937 { (exit 1); exit 1; }; }
14942 for ac_func in touchlock
14944 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14945 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14946 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14947 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14948 echo $ECHO_N "(cached
) $ECHO_C" >&6
14950 cat >conftest.$ac_ext <<_ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14956 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14957 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14958 #define $ac_func innocuous_$ac_func
14960 /* System header to define __stub macros and hopefully few prototypes,
14961 which can conflict with char $ac_func (); below.
14962 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14963 <limits.h> exists even on freestanding compilers. */
14966 # include <limits.h>
14968 # include <assert.h>
14973 /* Override any GCC internal prototype to avoid an error.
14974 Use char because int might match the return type of a GCC
14975 builtin and then its argument prototype would still apply. */
14980 /* The GNU C library defines this for functions which it implements
14981 to always fail with ENOSYS. Some functions are actually named
14982 something starting with __ and the normal name is an alias. */
14983 #if defined __stub_$ac_func || defined __stub___$ac_func
14990 return $ac_func ();
14995 rm -f conftest.$ac_objext conftest$ac_exeext
14996 if { (ac_try="$ac_link"
14997 case "(($ac_try" in
14998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999 *) ac_try_echo=$ac_try;;
15001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15002 (eval "$ac_link") 2>conftest.er1
15004 grep -v '^ *+' conftest.er1 >conftest.err
15006 cat conftest.err >&5
15007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15008 (exit $ac_status); } && {
15009 test -z "$ac_c_werror_flag" ||
15010 test ! -s conftest.err
15011 } && test -s conftest$ac_exeext &&
15012 $as_test_x conftest$ac_exeext; then
15013 eval "$as_ac_var=yes"
15015 echo "$as_me: failed program was
:" >&5
15016 sed 's/^/| /' conftest.$ac_ext >&5
15018 eval "$as_ac_var=no
"
15021 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15022 conftest$ac_exeext conftest.$ac_ext
15024 ac_res=`eval echo '${'$as_ac_var'}'`
15025 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15026 echo "${ECHO_T}$ac_res" >&6; }
15027 if test `eval echo '${'$as_ac_var'}'` = yes; then
15028 cat >>confdefs.h <<_ACEOF
15029 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15036 for ac_header in maillock.h
15038 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15039 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15040 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15041 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15042 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15043 echo $ECHO_N "(cached
) $ECHO_C" >&6
15045 ac_res=`eval echo '${'$as_ac_Header'}'`
15046 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15047 echo "${ECHO_T}$ac_res" >&6; }
15049 # Is the header compilable?
15050 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15051 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15052 cat >conftest.$ac_ext <<_ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15058 $ac_includes_default
15059 #include <$ac_header>
15061 rm -f conftest.$ac_objext
15062 if { (ac_try="$ac_compile"
15063 case "(($ac_try" in
15064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15065 *) ac_try_echo=$ac_try;;
15067 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15068 (eval "$ac_compile") 2>conftest.er1
15070 grep -v '^ *+' conftest.er1 >conftest.err
15072 cat conftest.err >&5
15073 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15074 (exit $ac_status); } && {
15075 test -z "$ac_c_werror_flag" ||
15076 test ! -s conftest.err
15077 } && test -s conftest.$ac_objext; then
15078 ac_header_compiler=yes
15080 echo "$as_me: failed program was
:" >&5
15081 sed 's/^/| /' conftest.$ac_ext >&5
15083 ac_header_compiler=no
15086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15087 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15088 echo "${ECHO_T}$ac_header_compiler" >&6; }
15090 # Is the header present?
15091 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15092 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15093 cat >conftest.$ac_ext <<_ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15099 #include <$ac_header>
15101 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15102 case "(($ac_try" in
15103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15104 *) ac_try_echo=$ac_try;;
15106 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15107 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15109 grep -v '^ *+' conftest.er1 >conftest.err
15111 cat conftest.err >&5
15112 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15113 (exit $ac_status); } >/dev/null && {
15114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15115 test ! -s conftest.err
15117 ac_header_preproc=yes
15119 echo "$as_me: failed program was
:" >&5
15120 sed 's/^/| /' conftest.$ac_ext >&5
15122 ac_header_preproc=no
15125 rm -f conftest.err conftest.$ac_ext
15126 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15127 echo "${ECHO_T}$ac_header_preproc" >&6; }
15129 # So? What about this header?
15130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15132 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15133 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15134 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15136 ac_header_preproc=yes
15139 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15140 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15141 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15142 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15143 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15144 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15145 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15146 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15147 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15149 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15150 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15154 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15155 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15156 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15157 echo $ECHO_N "(cached
) $ECHO_C" >&6
15159 eval "$as_ac_Header=\
$ac_header_preproc"
15161 ac_res=`eval echo '${'$as_ac_Header'}'`
15162 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15163 echo "${ECHO_T}$ac_res" >&6; }
15166 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15167 cat >>confdefs.h <<_ACEOF
15168 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15245 for ac_func in gethostname getdomainname dup2 \
15246 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15247 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15248 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15249 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15250 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15251 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15252 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15253 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15255 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15256 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15257 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15258 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15259 echo $ECHO_N "(cached
) $ECHO_C" >&6
15261 cat >conftest.$ac_ext <<_ACEOF
15264 cat confdefs.h >>conftest.$ac_ext
15265 cat >>conftest.$ac_ext <<_ACEOF
15266 /* end confdefs.h. */
15267 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15268 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15269 #define $ac_func innocuous_$ac_func
15271 /* System header to define __stub macros and hopefully few prototypes,
15272 which can conflict with char $ac_func (); below.
15273 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15274 <limits.h> exists even on freestanding compilers. */
15277 # include <limits.h>
15279 # include <assert.h>
15284 /* Override any GCC internal prototype to avoid an error.
15285 Use char because int might match the return type of a GCC
15286 builtin and then its argument prototype would still apply. */
15291 /* The GNU C library defines this for functions which it implements
15292 to always fail with ENOSYS. Some functions are actually named
15293 something starting with __ and the normal name is an alias. */
15294 #if defined __stub_$ac_func || defined __stub___$ac_func
15301 return $ac_func ();
15306 rm -f conftest.$ac_objext conftest$ac_exeext
15307 if { (ac_try="$ac_link"
15308 case "(($ac_try" in
15309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15310 *) ac_try_echo=$ac_try;;
15312 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15313 (eval "$ac_link") 2>conftest.er1
15315 grep -v '^ *+' conftest.er1 >conftest.err
15317 cat conftest.err >&5
15318 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15319 (exit $ac_status); } && {
15320 test -z "$ac_c_werror_flag" ||
15321 test ! -s conftest.err
15322 } && test -s conftest$ac_exeext &&
15323 $as_test_x conftest$ac_exeext; then
15324 eval "$as_ac_var=yes"
15326 echo "$as_me: failed program was
:" >&5
15327 sed 's/^/| /' conftest.$ac_ext >&5
15329 eval "$as_ac_var=no
"
15332 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15333 conftest$ac_exeext conftest.$ac_ext
15335 ac_res=`eval echo '${'$as_ac_var'}'`
15336 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15337 echo "${ECHO_T}$ac_res" >&6; }
15338 if test `eval echo '${'$as_ac_var'}'` = yes; then
15339 cat >>confdefs.h <<_ACEOF
15340 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15348 for ac_header in sys/un.h
15350 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15351 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15352 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15353 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15354 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15355 echo $ECHO_N "(cached
) $ECHO_C" >&6
15357 ac_res=`eval echo '${'$as_ac_Header'}'`
15358 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15359 echo "${ECHO_T}$ac_res" >&6; }
15361 # Is the header compilable?
15362 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15363 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15364 cat >conftest.$ac_ext <<_ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15370 $ac_includes_default
15371 #include <$ac_header>
15373 rm -f conftest.$ac_objext
15374 if { (ac_try="$ac_compile"
15375 case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15379 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_compile") 2>conftest.er1
15382 grep -v '^ *+' conftest.er1 >conftest.err
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15386 (exit $ac_status); } && {
15387 test -z "$ac_c_werror_flag" ||
15388 test ! -s conftest.err
15389 } && test -s conftest.$ac_objext; then
15390 ac_header_compiler=yes
15392 echo "$as_me: failed program was
:" >&5
15393 sed 's/^/| /' conftest.$ac_ext >&5
15395 ac_header_compiler=no
15398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15400 echo "${ECHO_T}$ac_header_compiler" >&6; }
15402 # Is the header present?
15403 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15404 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15405 cat >conftest.$ac_ext <<_ACEOF
15408 cat confdefs.h >>conftest.$ac_ext
15409 cat >>conftest.$ac_ext <<_ACEOF
15410 /* end confdefs.h. */
15411 #include <$ac_header>
15413 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15414 case "(($ac_try" in
15415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15416 *) ac_try_echo=$ac_try;;
15418 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15419 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15421 grep -v '^ *+' conftest.er1 >conftest.err
15423 cat conftest.err >&5
15424 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15425 (exit $ac_status); } >/dev/null && {
15426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15427 test ! -s conftest.err
15429 ac_header_preproc=yes
15431 echo "$as_me: failed program was
:" >&5
15432 sed 's/^/| /' conftest.$ac_ext >&5
15434 ac_header_preproc=no
15437 rm -f conftest.err conftest.$ac_ext
15438 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15439 echo "${ECHO_T}$ac_header_preproc" >&6; }
15441 # So? What about this header?
15442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15444 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15445 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15446 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15448 ac_header_preproc=yes
15451 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15452 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15453 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15454 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15455 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15456 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15457 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15458 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15459 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15461 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15462 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15466 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15467 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15468 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15469 echo $ECHO_N "(cached
) $ECHO_C" >&6
15471 eval "$as_ac_Header=\
$ac_header_preproc"
15473 ac_res=`eval echo '${'$as_ac_Header'}'`
15474 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15475 echo "${ECHO_T}$ac_res" >&6; }
15478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15479 cat >>confdefs.h <<_ACEOF
15480 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15492 for ac_header in $ac_header_list
15494 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15495 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15496 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15497 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15498 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15499 echo $ECHO_N "(cached
) $ECHO_C" >&6
15501 ac_res=`eval echo '${'$as_ac_Header'}'`
15502 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15503 echo "${ECHO_T}$ac_res" >&6; }
15505 # Is the header compilable?
15506 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15507 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15508 cat >conftest.$ac_ext <<_ACEOF
15511 cat confdefs.h >>conftest.$ac_ext
15512 cat >>conftest.$ac_ext <<_ACEOF
15513 /* end confdefs.h. */
15514 $ac_includes_default
15515 #include <$ac_header>
15517 rm -f conftest.$ac_objext
15518 if { (ac_try="$ac_compile"
15519 case "(($ac_try" in
15520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15521 *) ac_try_echo=$ac_try;;
15523 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15524 (eval "$ac_compile") 2>conftest.er1
15526 grep -v '^ *+' conftest.er1 >conftest.err
15528 cat conftest.err >&5
15529 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15530 (exit $ac_status); } && {
15531 test -z "$ac_c_werror_flag" ||
15532 test ! -s conftest.err
15533 } && test -s conftest.$ac_objext; then
15534 ac_header_compiler=yes
15536 echo "$as_me: failed program was
:" >&5
15537 sed 's/^/| /' conftest.$ac_ext >&5
15539 ac_header_compiler=no
15542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15543 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15544 echo "${ECHO_T}$ac_header_compiler" >&6; }
15546 # Is the header present?
15547 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15548 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15549 cat >conftest.$ac_ext <<_ACEOF
15552 cat confdefs.h >>conftest.$ac_ext
15553 cat >>conftest.$ac_ext <<_ACEOF
15554 /* end confdefs.h. */
15555 #include <$ac_header>
15557 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15558 case "(($ac_try" in
15559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15560 *) ac_try_echo=$ac_try;;
15562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15563 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15565 grep -v '^ *+' conftest.er1 >conftest.err
15567 cat conftest.err >&5
15568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15569 (exit $ac_status); } >/dev/null && {
15570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15571 test ! -s conftest.err
15573 ac_header_preproc=yes
15575 echo "$as_me: failed program was
:" >&5
15576 sed 's/^/| /' conftest.$ac_ext >&5
15578 ac_header_preproc=no
15581 rm -f conftest.err conftest.$ac_ext
15582 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15583 echo "${ECHO_T}$ac_header_preproc" >&6; }
15585 # So? What about this header?
15586 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15588 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15589 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15590 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15591 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15592 ac_header_preproc=yes
15595 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15596 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15597 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15598 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15599 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15600 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15601 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15602 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15603 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15604 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15605 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15606 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15610 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15611 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15612 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15613 echo $ECHO_N "(cached
) $ECHO_C" >&6
15615 eval "$as_ac_Header=\
$ac_header_preproc"
15617 ac_res=`eval echo '${'$as_ac_Header'}'`
15618 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15619 echo "${ECHO_T}$ac_res" >&6; }
15622 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15623 cat >>confdefs.h <<_ACEOF
15624 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15639 for ac_func in $ac_func_list
15641 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15642 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15643 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15644 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15645 echo $ECHO_N "(cached
) $ECHO_C" >&6
15647 cat >conftest.$ac_ext <<_ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15655 #define $ac_func innocuous_$ac_func
15657 /* System header to define __stub macros and hopefully few prototypes,
15658 which can conflict with char $ac_func (); below.
15659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15660 <limits.h> exists even on freestanding compilers. */
15663 # include <limits.h>
15665 # include <assert.h>
15670 /* Override any GCC internal prototype to avoid an error.
15671 Use char because int might match the return type of a GCC
15672 builtin and then its argument prototype would still apply. */
15677 /* The GNU C library defines this for functions which it implements
15678 to always fail with ENOSYS. Some functions are actually named
15679 something starting with __ and the normal name is an alias. */
15680 #if defined __stub_$ac_func || defined __stub___$ac_func
15687 return $ac_func ();
15692 rm -f conftest.$ac_objext conftest$ac_exeext
15693 if { (ac_try="$ac_link"
15694 case "(($ac_try" in
15695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15696 *) ac_try_echo=$ac_try;;
15698 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15699 (eval "$ac_link") 2>conftest.er1
15701 grep -v '^ *+' conftest.er1 >conftest.err
15703 cat conftest.err >&5
15704 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15705 (exit $ac_status); } && {
15706 test -z "$ac_c_werror_flag" ||
15707 test ! -s conftest.err
15708 } && test -s conftest$ac_exeext &&
15709 $as_test_x conftest$ac_exeext; then
15710 eval "$as_ac_var=yes"
15712 echo "$as_me: failed program was
:" >&5
15713 sed 's/^/| /' conftest.$ac_ext >&5
15715 eval "$as_ac_var=no
"
15718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15719 conftest$ac_exeext conftest.$ac_ext
15721 ac_res=`eval echo '${'$as_ac_var'}'`
15722 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15723 echo "${ECHO_T}$ac_res" >&6; }
15724 if test `eval echo '${'$as_ac_var'}'` = yes; then
15725 cat >>confdefs.h <<_ACEOF
15726 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15748 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
15749 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
15750 if test "${ac_cv_func_working_mktime+set}" = set; then
15751 echo $ECHO_N "(cached
) $ECHO_C" >&6
15753 if test "$cross_compiling" = yes; then
15754 ac_cv_func_working_mktime=no
15756 cat >conftest.$ac_ext <<_ACEOF
15759 cat confdefs.h >>conftest.$ac_ext
15760 cat >>conftest.$ac_ext <<_ACEOF
15761 /* end confdefs.h. */
15762 /* Test program from Paul Eggert and Tony Leneis. */
15763 #ifdef TIME_WITH_SYS_TIME
15764 # include <sys/time.h>
15767 # ifdef HAVE_SYS_TIME_H
15768 # include <sys/time.h>
15774 #include <stdlib.h>
15776 #ifdef HAVE_UNISTD_H
15777 # include <unistd.h>
15781 # define alarm(X) /* empty */
15784 /* Work around redefinition to rpl_putenv by other config tests. */
15787 static time_t time_t_max;
15788 static time_t time_t_min;
15790 /* Values we'll use to set the TZ environment variable. */
15791 static char *tz_strings[] = {
15792 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
15793 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
15795 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15797 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15798 Based on a problem report from Andreas Jaeger. */
15800 spring_forward_gap ()
15802 /* glibc (up to about 1998-10-07) failed this test. */
15805 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15806 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15807 on systems that don't support the Olson extension, or don't have the
15808 full zoneinfo tables installed. */
15809 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15818 return mktime (&tm) != (time_t) -1;
15826 return ! (lt = localtime (&now)) || mktime (lt) == now;
15833 return (mktime_test1 (now)
15834 && mktime_test1 ((time_t) (time_t_max - now))
15835 && mktime_test1 ((time_t) (time_t_min + now)));
15841 /* Based on code from Ariel Faigon. */
15851 return tm.tm_mon == 2 && tm.tm_mday == 31;
15860 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15861 now = mktime (&tm);
15862 if (now != (time_t) -1)
15864 struct tm *lt = localtime (&now);
15866 && lt->tm_year == tm.tm_year
15867 && lt->tm_mon == tm.tm_mon
15868 && lt->tm_mday == tm.tm_mday
15869 && lt->tm_hour == tm.tm_hour
15870 && lt->tm_min == tm.tm_min
15871 && lt->tm_sec == tm.tm_sec
15872 && lt->tm_yday == tm.tm_yday
15873 && lt->tm_wday == tm.tm_wday
15874 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15875 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15884 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15885 ignoring leap seconds. */
15886 unsigned long int answer = 2527315200UL;
15890 tm.tm_year = 2050 - 1900;
15893 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15896 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15897 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15898 on systems that don't support the Olson extension, or don't have the
15899 full zoneinfo tables installed. */
15900 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15904 /* Check that the result is either a failure, or close enough
15905 to the correct answer that we can assume the discrepancy is
15906 due to leap seconds. */
15907 return (t == (time_t) -1
15908 || (0 < t && answer - 120 <= t && t <= answer + 120));
15917 /* This test makes some buggy mktime implementations loop.
15918 Give up after 60 seconds; a mktime slower than that
15919 isn't worth using anyway. */
15922 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15925 if ((time_t) -1 < 0)
15926 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15928 delta = time_t_max / 997; /* a suitable prime number */
15929 for (i = 0; i < N_STRINGS; i++)
15932 putenv (tz_strings[i]);
15934 for (t = 0; t <= time_t_max - delta; t += delta)
15935 if (! mktime_test (t))
15937 if (! (mktime_test ((time_t) 1)
15938 && mktime_test ((time_t) (60 * 60))
15939 && mktime_test ((time_t) (60 * 60 * 24))))
15942 for (j = 1; 0 < j; j *= 2)
15943 if (! bigtime_test (j))
15945 if (! bigtime_test (j - 1))
15948 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15951 rm -f conftest$ac_exeext
15952 if { (ac_try="$ac_link"
15953 case "(($ac_try" in
15954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15955 *) ac_try_echo=$ac_try;;
15957 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15958 (eval "$ac_link") 2>&5
15960 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15961 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15962 { (case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15966 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_try") 2>&5
15969 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15970 (exit $ac_status); }; }; then
15971 ac_cv_func_working_mktime=yes
15973 echo "$as_me: program exited with status
$ac_status" >&5
15974 echo "$as_me: failed program was
:" >&5
15975 sed 's/^/| /' conftest.$ac_ext >&5
15977 ( exit $ac_status )
15978 ac_cv_func_working_mktime=no
15980 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15985 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
15986 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15987 if test $ac_cv_func_working_mktime = no; then
15988 case " $LIBOBJS " in
15989 *" mktime.
$ac_objext "* ) ;;
15990 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
15996 if test "$ac_cv_func_working_mktime" = no; then
15998 cat >>confdefs.h <<\_ACEOF
15999 #define BROKEN_MKTIME 1
16004 ac_have_func=no # yes means we've found a way to get the load average.
16006 # Make sure getloadavg.c is where it belongs, at configure-time.
16007 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16008 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16009 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16010 { (exit 1); exit 1; }; }
16014 # Check for getloadavg, but be sure not to touch the cache variable.
16015 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16016 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16017 if test "${ac_cv_func_getloadavg+set}" = set; then
16018 echo $ECHO_N "(cached
) $ECHO_C" >&6
16020 cat >conftest.$ac_ext <<_ACEOF
16023 cat confdefs.h >>conftest.$ac_ext
16024 cat >>conftest.$ac_ext <<_ACEOF
16025 /* end confdefs.h. */
16026 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16027 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16028 #define getloadavg innocuous_getloadavg
16030 /* System header to define __stub macros and hopefully few prototypes,
16031 which can conflict with char getloadavg (); below.
16032 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16033 <limits.h> exists even on freestanding compilers. */
16036 # include <limits.h>
16038 # include <assert.h>
16043 /* Override any GCC internal prototype to avoid an error.
16044 Use char because int might match the return type of a GCC
16045 builtin and then its argument prototype would still apply. */
16049 char getloadavg ();
16050 /* The GNU C library defines this for functions which it implements
16051 to always fail with ENOSYS. Some functions are actually named
16052 something starting with __ and the normal name is an alias. */
16053 #if defined __stub_getloadavg || defined __stub___getloadavg
16060 return getloadavg ();
16065 rm -f conftest.$ac_objext conftest$ac_exeext
16066 if { (ac_try="$ac_link"
16067 case "(($ac_try" in
16068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16069 *) ac_try_echo=$ac_try;;
16071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16072 (eval "$ac_link") 2>conftest.er1
16074 grep -v '^ *+' conftest.er1 >conftest.err
16076 cat conftest.err >&5
16077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16078 (exit $ac_status); } && {
16079 test -z "$ac_c_werror_flag" ||
16080 test ! -s conftest.err
16081 } && test -s conftest$ac_exeext &&
16082 $as_test_x conftest$ac_exeext; then
16083 ac_cv_func_getloadavg=yes
16085 echo "$as_me: failed program was
:" >&5
16086 sed 's/^/| /' conftest.$ac_ext >&5
16088 ac_cv_func_getloadavg=no
16091 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16092 conftest$ac_exeext conftest.$ac_ext
16094 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16095 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16096 if test $ac_cv_func_getloadavg = yes; then
16101 ) && ac_have_func=yes
16103 # On HPUX9, an unprivileged user can get load averages through this function.
16105 for ac_func in pstat_getdynamic
16107 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16108 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16109 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16110 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16111 echo $ECHO_N "(cached
) $ECHO_C" >&6
16113 cat >conftest.$ac_ext <<_ACEOF
16116 cat confdefs.h >>conftest.$ac_ext
16117 cat >>conftest.$ac_ext <<_ACEOF
16118 /* end confdefs.h. */
16119 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16120 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16121 #define $ac_func innocuous_$ac_func
16123 /* System header to define __stub macros and hopefully few prototypes,
16124 which can conflict with char $ac_func (); below.
16125 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16126 <limits.h> exists even on freestanding compilers. */
16129 # include <limits.h>
16131 # include <assert.h>
16136 /* Override any GCC internal prototype to avoid an error.
16137 Use char because int might match the return type of a GCC
16138 builtin and then its argument prototype would still apply. */
16143 /* The GNU C library defines this for functions which it implements
16144 to always fail with ENOSYS. Some functions are actually named
16145 something starting with __ and the normal name is an alias. */
16146 #if defined __stub_$ac_func || defined __stub___$ac_func
16153 return $ac_func ();
16158 rm -f conftest.$ac_objext conftest$ac_exeext
16159 if { (ac_try="$ac_link"
16160 case "(($ac_try" in
16161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16162 *) ac_try_echo=$ac_try;;
16164 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16165 (eval "$ac_link") 2>conftest.er1
16167 grep -v '^ *+' conftest.er1 >conftest.err
16169 cat conftest.err >&5
16170 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16171 (exit $ac_status); } && {
16172 test -z "$ac_c_werror_flag" ||
16173 test ! -s conftest.err
16174 } && test -s conftest$ac_exeext &&
16175 $as_test_x conftest$ac_exeext; then
16176 eval "$as_ac_var=yes"
16178 echo "$as_me: failed program was
:" >&5
16179 sed 's/^/| /' conftest.$ac_ext >&5
16181 eval "$as_ac_var=no
"
16184 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16185 conftest$ac_exeext conftest.$ac_ext
16187 ac_res=`eval echo '${'$as_ac_var'}'`
16188 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16189 echo "${ECHO_T}$ac_res" >&6; }
16190 if test `eval echo '${'$as_ac_var'}'` = yes; then
16191 cat >>confdefs.h <<_ACEOF
16192 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16199 # Solaris has libkstat which does not require root.
16201 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16202 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16203 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16204 echo $ECHO_N "(cached
) $ECHO_C" >&6
16206 ac_check_lib_save_LIBS=$LIBS
16207 LIBS="-lkstat $LIBS"
16208 cat >conftest.$ac_ext <<_ACEOF
16211 cat confdefs.h >>conftest.$ac_ext
16212 cat >>conftest.$ac_ext <<_ACEOF
16213 /* end confdefs.h. */
16215 /* Override any GCC internal prototype to avoid an error.
16216 Use char because int might match the return type of a GCC
16217 builtin and then its argument prototype would still apply. */
16221 char kstat_open ();
16225 return kstat_open ();
16230 rm -f conftest.$ac_objext conftest$ac_exeext
16231 if { (ac_try="$ac_link"
16232 case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_link") 2>conftest.er1
16239 grep -v '^ *+' conftest.er1 >conftest.err
16241 cat conftest.err >&5
16242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16243 (exit $ac_status); } && {
16244 test -z "$ac_c_werror_flag" ||
16245 test ! -s conftest.err
16246 } && test -s conftest$ac_exeext &&
16247 $as_test_x conftest$ac_exeext; then
16248 ac_cv_lib_kstat_kstat_open=yes
16250 echo "$as_me: failed program was
:" >&5
16251 sed 's/^/| /' conftest.$ac_ext >&5
16253 ac_cv_lib_kstat_kstat_open=no
16256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16257 conftest$ac_exeext conftest.$ac_ext
16258 LIBS=$ac_check_lib_save_LIBS
16260 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16261 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16262 if test $ac_cv_lib_kstat_kstat_open = yes; then
16263 cat >>confdefs.h <<_ACEOF
16264 #define HAVE_LIBKSTAT 1
16267 LIBS="-lkstat $LIBS"
16271 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16273 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16274 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16275 # to get the right answer into the cache.
16276 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16277 if test $ac_have_func = no; then
16278 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16279 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16280 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16281 echo $ECHO_N "(cached
) $ECHO_C" >&6
16283 ac_check_lib_save_LIBS=$LIBS
16285 cat >conftest.$ac_ext <<_ACEOF
16288 cat confdefs.h >>conftest.$ac_ext
16289 cat >>conftest.$ac_ext <<_ACEOF
16290 /* end confdefs.h. */
16292 /* Override any GCC internal prototype to avoid an error.
16293 Use char because int might match the return type of a GCC
16294 builtin and then its argument prototype would still apply. */
16302 return elf_begin ();
16307 rm -f conftest.$ac_objext conftest$ac_exeext
16308 if { (ac_try="$ac_link"
16309 case "(($ac_try" in
16310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311 *) ac_try_echo=$ac_try;;
16313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16314 (eval "$ac_link") 2>conftest.er1
16316 grep -v '^ *+' conftest.er1 >conftest.err
16318 cat conftest.err >&5
16319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16320 (exit $ac_status); } && {
16321 test -z "$ac_c_werror_flag" ||
16322 test ! -s conftest.err
16323 } && test -s conftest$ac_exeext &&
16324 $as_test_x conftest$ac_exeext; then
16325 ac_cv_lib_elf_elf_begin=yes
16327 echo "$as_me: failed program was
:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16330 ac_cv_lib_elf_elf_begin=no
16333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16334 conftest$ac_exeext conftest.$ac_ext
16335 LIBS=$ac_check_lib_save_LIBS
16337 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16338 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16339 if test $ac_cv_lib_elf_elf_begin = yes; then
16344 if test $ac_have_func = no; then
16345 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16346 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16347 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16348 echo $ECHO_N "(cached
) $ECHO_C" >&6
16350 ac_check_lib_save_LIBS=$LIBS
16352 cat >conftest.$ac_ext <<_ACEOF
16355 cat confdefs.h >>conftest.$ac_ext
16356 cat >>conftest.$ac_ext <<_ACEOF
16357 /* end confdefs.h. */
16359 /* Override any GCC internal prototype to avoid an error.
16360 Use char because int might match the return type of a GCC
16361 builtin and then its argument prototype would still apply. */
16369 return kvm_open ();
16374 rm -f conftest.$ac_objext conftest$ac_exeext
16375 if { (ac_try="$ac_link"
16376 case "(($ac_try" in
16377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378 *) ac_try_echo=$ac_try;;
16380 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16381 (eval "$ac_link") 2>conftest.er1
16383 grep -v '^ *+' conftest.er1 >conftest.err
16385 cat conftest.err >&5
16386 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16387 (exit $ac_status); } && {
16388 test -z "$ac_c_werror_flag" ||
16389 test ! -s conftest.err
16390 } && test -s conftest$ac_exeext &&
16391 $as_test_x conftest$ac_exeext; then
16392 ac_cv_lib_kvm_kvm_open=yes
16394 echo "$as_me: failed program was
:" >&5
16395 sed 's/^/| /' conftest.$ac_ext >&5
16397 ac_cv_lib_kvm_kvm_open=no
16400 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16401 conftest$ac_exeext conftest.$ac_ext
16402 LIBS=$ac_check_lib_save_LIBS
16404 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16405 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16406 if test $ac_cv_lib_kvm_kvm_open = yes; then
16410 # Check for the 4.4BSD definition of getloadavg.
16411 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16412 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16413 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16414 echo $ECHO_N "(cached
) $ECHO_C" >&6
16416 ac_check_lib_save_LIBS=$LIBS
16417 LIBS="-lutil $LIBS"
16418 cat >conftest.$ac_ext <<_ACEOF
16421 cat confdefs.h >>conftest.$ac_ext
16422 cat >>conftest.$ac_ext <<_ACEOF
16423 /* end confdefs.h. */
16425 /* Override any GCC internal prototype to avoid an error.
16426 Use char because int might match the return type of a GCC
16427 builtin and then its argument prototype would still apply. */
16431 char getloadavg ();
16435 return getloadavg ();
16440 rm -f conftest.$ac_objext conftest$ac_exeext
16441 if { (ac_try="$ac_link"
16442 case "(($ac_try" in
16443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16444 *) ac_try_echo=$ac_try;;
16446 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16447 (eval "$ac_link") 2>conftest.er1
16449 grep -v '^ *+' conftest.er1 >conftest.err
16451 cat conftest.err >&5
16452 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16453 (exit $ac_status); } && {
16454 test -z "$ac_c_werror_flag" ||
16455 test ! -s conftest.err
16456 } && test -s conftest$ac_exeext &&
16457 $as_test_x conftest$ac_exeext; then
16458 ac_cv_lib_util_getloadavg=yes
16460 echo "$as_me: failed program was
:" >&5
16461 sed 's/^/| /' conftest.$ac_ext >&5
16463 ac_cv_lib_util_getloadavg=no
16466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16467 conftest$ac_exeext conftest.$ac_ext
16468 LIBS=$ac_check_lib_save_LIBS
16470 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16471 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16472 if test $ac_cv_lib_util_getloadavg = yes; then
16473 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16478 if test $ac_have_func = no; then
16479 # There is a commonly available library for RS/6000 AIX.
16480 # Since it is not a standard part of AIX, it might be installed locally.
16481 ac_getloadavg_LIBS=$LIBS
16482 LIBS="-L/usr
/local
/lib
$LIBS"
16483 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16484 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16485 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16486 echo $ECHO_N "(cached
) $ECHO_C" >&6
16488 ac_check_lib_save_LIBS=$LIBS
16489 LIBS="-lgetloadavg $LIBS"
16490 cat >conftest.$ac_ext <<_ACEOF
16493 cat confdefs.h >>conftest.$ac_ext
16494 cat >>conftest.$ac_ext <<_ACEOF
16495 /* end confdefs.h. */
16497 /* Override any GCC internal prototype to avoid an error.
16498 Use char because int might match the return type of a GCC
16499 builtin and then its argument prototype would still apply. */
16503 char getloadavg ();
16507 return getloadavg ();
16512 rm -f conftest.$ac_objext conftest$ac_exeext
16513 if { (ac_try="$ac_link"
16514 case "(($ac_try" in
16515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16516 *) ac_try_echo=$ac_try;;
16518 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16519 (eval "$ac_link") 2>conftest.er1
16521 grep -v '^ *+' conftest.er1 >conftest.err
16523 cat conftest.err >&5
16524 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16525 (exit $ac_status); } && {
16526 test -z "$ac_c_werror_flag" ||
16527 test ! -s conftest.err
16528 } && test -s conftest$ac_exeext &&
16529 $as_test_x conftest$ac_exeext; then
16530 ac_cv_lib_getloadavg_getloadavg=yes
16532 echo "$as_me: failed program was
:" >&5
16533 sed 's/^/| /' conftest.$ac_ext >&5
16535 ac_cv_lib_getloadavg_getloadavg=no
16538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16539 conftest$ac_exeext conftest.$ac_ext
16540 LIBS=$ac_check_lib_save_LIBS
16542 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16543 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16544 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16545 LIBS="-lgetloadavg $LIBS"
16547 LIBS=$ac_getloadavg_LIBS
16552 # Make sure it is really in the library, if we think we found it,
16553 # otherwise set up the replacement function.
16555 for ac_func in getloadavg
16557 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16558 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16559 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16560 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16561 echo $ECHO_N "(cached
) $ECHO_C" >&6
16563 cat >conftest.$ac_ext <<_ACEOF
16566 cat confdefs.h >>conftest.$ac_ext
16567 cat >>conftest.$ac_ext <<_ACEOF
16568 /* end confdefs.h. */
16569 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16570 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16571 #define $ac_func innocuous_$ac_func
16573 /* System header to define __stub macros and hopefully few prototypes,
16574 which can conflict with char $ac_func (); below.
16575 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16576 <limits.h> exists even on freestanding compilers. */
16579 # include <limits.h>
16581 # include <assert.h>
16586 /* Override any GCC internal prototype to avoid an error.
16587 Use char because int might match the return type of a GCC
16588 builtin and then its argument prototype would still apply. */
16593 /* The GNU C library defines this for functions which it implements
16594 to always fail with ENOSYS. Some functions are actually named
16595 something starting with __ and the normal name is an alias. */
16596 #if defined __stub_$ac_func || defined __stub___$ac_func
16603 return $ac_func ();
16608 rm -f conftest.$ac_objext conftest$ac_exeext
16609 if { (ac_try="$ac_link"
16610 case "(($ac_try" in
16611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16612 *) ac_try_echo=$ac_try;;
16614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16615 (eval "$ac_link") 2>conftest.er1
16617 grep -v '^ *+' conftest.er1 >conftest.err
16619 cat conftest.err >&5
16620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16621 (exit $ac_status); } && {
16622 test -z "$ac_c_werror_flag" ||
16623 test ! -s conftest.err
16624 } && test -s conftest$ac_exeext &&
16625 $as_test_x conftest$ac_exeext; then
16626 eval "$as_ac_var=yes"
16628 echo "$as_me: failed program was
:" >&5
16629 sed 's/^/| /' conftest.$ac_ext >&5
16631 eval "$as_ac_var=no
"
16634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16635 conftest$ac_exeext conftest.$ac_ext
16637 ac_res=`eval echo '${'$as_ac_var'}'`
16638 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16639 echo "${ECHO_T}$ac_res" >&6; }
16640 if test `eval echo '${'$as_ac_var'}'` = yes; then
16641 cat >>confdefs.h <<_ACEOF
16642 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16646 case " $LIBOBJS " in
16647 *" getloadavg.
$ac_objext "* ) ;;
16648 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16653 cat >>confdefs.h <<\_ACEOF
16654 #define C_GETLOADAVG 1
16657 # Figure out what our getloadavg.c needs.
16659 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16660 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16661 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16662 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16663 echo $ECHO_N "(cached
) $ECHO_C" >&6
16665 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16666 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16668 # Is the header compilable?
16669 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16670 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16671 cat >conftest.$ac_ext <<_ACEOF
16674 cat confdefs.h >>conftest.$ac_ext
16675 cat >>conftest.$ac_ext <<_ACEOF
16676 /* end confdefs.h. */
16677 $ac_includes_default
16678 #include <sys/dg_sys_info.h>
16680 rm -f conftest.$ac_objext
16681 if { (ac_try="$ac_compile"
16682 case "(($ac_try" in
16683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16684 *) ac_try_echo=$ac_try;;
16686 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16687 (eval "$ac_compile") 2>conftest.er1
16689 grep -v '^ *+' conftest.er1 >conftest.err
16691 cat conftest.err >&5
16692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16693 (exit $ac_status); } && {
16694 test -z "$ac_c_werror_flag" ||
16695 test ! -s conftest.err
16696 } && test -s conftest.$ac_objext; then
16697 ac_header_compiler=yes
16699 echo "$as_me: failed program was
:" >&5
16700 sed 's/^/| /' conftest.$ac_ext >&5
16702 ac_header_compiler=no
16705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16706 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16707 echo "${ECHO_T}$ac_header_compiler" >&6; }
16709 # Is the header present?
16710 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16711 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16712 cat >conftest.$ac_ext <<_ACEOF
16715 cat confdefs.h >>conftest.$ac_ext
16716 cat >>conftest.$ac_ext <<_ACEOF
16717 /* end confdefs.h. */
16718 #include <sys/dg_sys_info.h>
16720 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16721 case "(($ac_try" in
16722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723 *) ac_try_echo=$ac_try;;
16725 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16726 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16728 grep -v '^ *+' conftest.er1 >conftest.err
16730 cat conftest.err >&5
16731 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16732 (exit $ac_status); } >/dev/null && {
16733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16734 test ! -s conftest.err
16736 ac_header_preproc=yes
16738 echo "$as_me: failed program was
:" >&5
16739 sed 's/^/| /' conftest.$ac_ext >&5
16741 ac_header_preproc=no
16744 rm -f conftest.err conftest.$ac_ext
16745 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16746 echo "${ECHO_T}$ac_header_preproc" >&6; }
16748 # So? What about this header?
16749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16751 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16752 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16753 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
16754 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
16755 ac_header_preproc=yes
16758 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
16759 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
16760 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
16761 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
16762 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
16763 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
16764 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16765 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16766 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
16767 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
16768 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
16769 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
16773 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16774 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16775 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16776 echo $ECHO_N "(cached
) $ECHO_C" >&6
16778 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16780 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16781 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16784 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16787 cat >>confdefs.h <<\_ACEOF
16792 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
16793 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
16794 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16795 echo $ECHO_N "(cached
) $ECHO_C" >&6
16797 ac_check_lib_save_LIBS=$LIBS
16799 cat >conftest.$ac_ext <<_ACEOF
16802 cat confdefs.h >>conftest.$ac_ext
16803 cat >>conftest.$ac_ext <<_ACEOF
16804 /* end confdefs.h. */
16806 /* Override any GCC internal prototype to avoid an error.
16807 Use char because int might match the return type of a GCC
16808 builtin and then its argument prototype would still apply. */
16812 char dg_sys_info ();
16816 return dg_sys_info ();
16821 rm -f conftest.$ac_objext conftest$ac_exeext
16822 if { (ac_try="$ac_link"
16823 case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_link") 2>conftest.er1
16830 grep -v '^ *+' conftest.er1 >conftest.err
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16834 (exit $ac_status); } && {
16835 test -z "$ac_c_werror_flag" ||
16836 test ! -s conftest.err
16837 } && test -s conftest$ac_exeext &&
16838 $as_test_x conftest$ac_exeext; then
16839 ac_cv_lib_dgc_dg_sys_info=yes
16841 echo "$as_me: failed program was
:" >&5
16842 sed 's/^/| /' conftest.$ac_ext >&5
16844 ac_cv_lib_dgc_dg_sys_info=no
16847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16848 conftest$ac_exeext conftest.$ac_ext
16849 LIBS=$ac_check_lib_save_LIBS
16851 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
16852 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16853 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16854 cat >>confdefs.h <<_ACEOF
16855 #define HAVE_LIBDGC 1
16866 if test "${ac_cv_header_locale_h+set}" = set; then
16867 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16868 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16869 if test "${ac_cv_header_locale_h+set}" = set; then
16870 echo $ECHO_N "(cached
) $ECHO_C" >&6
16872 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16873 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16875 # Is the header compilable?
16876 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
16877 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
16878 cat >conftest.$ac_ext <<_ACEOF
16881 cat confdefs.h >>conftest.$ac_ext
16882 cat >>conftest.$ac_ext <<_ACEOF
16883 /* end confdefs.h. */
16884 $ac_includes_default
16885 #include <locale.h>
16887 rm -f conftest.$ac_objext
16888 if { (ac_try="$ac_compile"
16889 case "(($ac_try" in
16890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16891 *) ac_try_echo=$ac_try;;
16893 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16894 (eval "$ac_compile") 2>conftest.er1
16896 grep -v '^ *+' conftest.er1 >conftest.err
16898 cat conftest.err >&5
16899 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16900 (exit $ac_status); } && {
16901 test -z "$ac_c_werror_flag" ||
16902 test ! -s conftest.err
16903 } && test -s conftest.$ac_objext; then
16904 ac_header_compiler=yes
16906 echo "$as_me: failed program was
:" >&5
16907 sed 's/^/| /' conftest.$ac_ext >&5
16909 ac_header_compiler=no
16912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16913 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16914 echo "${ECHO_T}$ac_header_compiler" >&6; }
16916 # Is the header present?
16917 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
16918 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
16919 cat >conftest.$ac_ext <<_ACEOF
16922 cat confdefs.h >>conftest.$ac_ext
16923 cat >>conftest.$ac_ext <<_ACEOF
16924 /* end confdefs.h. */
16925 #include <locale.h>
16927 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16928 case "(($ac_try" in
16929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16930 *) ac_try_echo=$ac_try;;
16932 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16933 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16935 grep -v '^ *+' conftest.er1 >conftest.err
16937 cat conftest.err >&5
16938 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16939 (exit $ac_status); } >/dev/null && {
16940 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16941 test ! -s conftest.err
16943 ac_header_preproc=yes
16945 echo "$as_me: failed program was
:" >&5
16946 sed 's/^/| /' conftest.$ac_ext >&5
16948 ac_header_preproc=no
16951 rm -f conftest.err conftest.$ac_ext
16952 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16953 echo "${ECHO_T}$ac_header_preproc" >&6; }
16955 # So? What about this header?
16956 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16958 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16959 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16960 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
16961 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
16962 ac_header_preproc=yes
16965 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
16966 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
16967 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
16968 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
16969 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
16970 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
16971 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16972 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16973 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
16974 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
16975 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
16976 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
16980 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16981 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16982 if test "${ac_cv_header_locale_h+set}" = set; then
16983 echo $ECHO_N "(cached
) $ECHO_C" >&6
16985 ac_cv_header_locale_h=$ac_header_preproc
16987 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16988 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16994 for ac_func in setlocale
16996 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16997 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16998 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16999 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17000 echo $ECHO_N "(cached
) $ECHO_C" >&6
17002 cat >conftest.$ac_ext <<_ACEOF
17005 cat confdefs.h >>conftest.$ac_ext
17006 cat >>conftest.$ac_ext <<_ACEOF
17007 /* end confdefs.h. */
17008 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17009 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17010 #define $ac_func innocuous_$ac_func
17012 /* System header to define __stub macros and hopefully few prototypes,
17013 which can conflict with char $ac_func (); below.
17014 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17015 <limits.h> exists even on freestanding compilers. */
17018 # include <limits.h>
17020 # include <assert.h>
17025 /* Override any GCC internal prototype to avoid an error.
17026 Use char because int might match the return type of a GCC
17027 builtin and then its argument prototype would still apply. */
17032 /* The GNU C library defines this for functions which it implements
17033 to always fail with ENOSYS. Some functions are actually named
17034 something starting with __ and the normal name is an alias. */
17035 #if defined __stub_$ac_func || defined __stub___$ac_func
17042 return $ac_func ();
17047 rm -f conftest.$ac_objext conftest$ac_exeext
17048 if { (ac_try="$ac_link"
17049 case "(($ac_try" in
17050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17051 *) ac_try_echo=$ac_try;;
17053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17054 (eval "$ac_link") 2>conftest.er1
17056 grep -v '^ *+' conftest.er1 >conftest.err
17058 cat conftest.err >&5
17059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17060 (exit $ac_status); } && {
17061 test -z "$ac_c_werror_flag" ||
17062 test ! -s conftest.err
17063 } && test -s conftest$ac_exeext &&
17064 $as_test_x conftest$ac_exeext; then
17065 eval "$as_ac_var=yes"
17067 echo "$as_me: failed program was
:" >&5
17068 sed 's/^/| /' conftest.$ac_ext >&5
17070 eval "$as_ac_var=no
"
17073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17074 conftest$ac_exeext conftest.$ac_ext
17076 ac_res=`eval echo '${'$as_ac_var'}'`
17077 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17078 echo "${ECHO_T}$ac_res" >&6; }
17079 if test `eval echo '${'$as_ac_var'}'` = yes; then
17080 cat >>confdefs.h <<_ACEOF
17081 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17088 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17089 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17090 # Irix 4.0.5F has the header but not the library.
17091 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17094 cat >>confdefs.h <<\_ACEOF
17100 if test $ac_have_func = no; then
17101 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17102 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17103 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17104 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17105 echo $ECHO_N "(cached
) $ECHO_C" >&6
17107 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17108 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17110 # Is the header compilable?
17111 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17112 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17113 cat >conftest.$ac_ext <<_ACEOF
17116 cat confdefs.h >>conftest.$ac_ext
17117 cat >>conftest.$ac_ext <<_ACEOF
17118 /* end confdefs.h. */
17119 $ac_includes_default
17120 #include <inq_stats/cpustats.h>
17122 rm -f conftest.$ac_objext
17123 if { (ac_try="$ac_compile"
17124 case "(($ac_try" in
17125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17126 *) ac_try_echo=$ac_try;;
17128 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17129 (eval "$ac_compile") 2>conftest.er1
17131 grep -v '^ *+' conftest.er1 >conftest.err
17133 cat conftest.err >&5
17134 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17135 (exit $ac_status); } && {
17136 test -z "$ac_c_werror_flag" ||
17137 test ! -s conftest.err
17138 } && test -s conftest.$ac_objext; then
17139 ac_header_compiler=yes
17141 echo "$as_me: failed program was
:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17144 ac_header_compiler=no
17147 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17148 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17149 echo "${ECHO_T}$ac_header_compiler" >&6; }
17151 # Is the header present?
17152 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17153 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17154 cat >conftest.$ac_ext <<_ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h. */
17160 #include <inq_stats/cpustats.h>
17162 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17163 case "(($ac_try" in
17164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17165 *) ac_try_echo=$ac_try;;
17167 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17168 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17170 grep -v '^ *+' conftest.er1 >conftest.err
17172 cat conftest.err >&5
17173 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17174 (exit $ac_status); } >/dev/null && {
17175 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17176 test ! -s conftest.err
17178 ac_header_preproc=yes
17180 echo "$as_me: failed program was
:" >&5
17181 sed 's/^/| /' conftest.$ac_ext >&5
17183 ac_header_preproc=no
17186 rm -f conftest.err conftest.$ac_ext
17187 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17188 echo "${ECHO_T}$ac_header_preproc" >&6; }
17190 # So? What about this header?
17191 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17193 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17194 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17195 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17196 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17197 ac_header_preproc=yes
17200 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17201 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17202 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17203 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17204 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17205 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17206 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17207 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17208 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17209 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17210 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17211 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17215 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17216 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17217 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17218 echo $ECHO_N "(cached
) $ECHO_C" >&6
17220 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17222 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17223 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17226 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17229 cat >>confdefs.h <<\_ACEOF
17234 cat >>confdefs.h <<\_ACEOF
17243 if test $ac_have_func = no; then
17244 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17245 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17246 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17247 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17248 echo $ECHO_N "(cached
) $ECHO_C" >&6
17250 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17251 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17253 # Is the header compilable?
17254 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17255 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17256 cat >conftest.$ac_ext <<_ACEOF
17259 cat confdefs.h >>conftest.$ac_ext
17260 cat >>conftest.$ac_ext <<_ACEOF
17261 /* end confdefs.h. */
17262 $ac_includes_default
17263 #include <sys/cpustats.h>
17265 rm -f conftest.$ac_objext
17266 if { (ac_try="$ac_compile"
17267 case "(($ac_try" in
17268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17269 *) ac_try_echo=$ac_try;;
17271 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17272 (eval "$ac_compile") 2>conftest.er1
17274 grep -v '^ *+' conftest.er1 >conftest.err
17276 cat conftest.err >&5
17277 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17278 (exit $ac_status); } && {
17279 test -z "$ac_c_werror_flag" ||
17280 test ! -s conftest.err
17281 } && test -s conftest.$ac_objext; then
17282 ac_header_compiler=yes
17284 echo "$as_me: failed program was
:" >&5
17285 sed 's/^/| /' conftest.$ac_ext >&5
17287 ac_header_compiler=no
17290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17291 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17292 echo "${ECHO_T}$ac_header_compiler" >&6; }
17294 # Is the header present?
17295 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17296 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17297 cat >conftest.$ac_ext <<_ACEOF
17300 cat confdefs.h >>conftest.$ac_ext
17301 cat >>conftest.$ac_ext <<_ACEOF
17302 /* end confdefs.h. */
17303 #include <sys/cpustats.h>
17305 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17306 case "(($ac_try" in
17307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17308 *) ac_try_echo=$ac_try;;
17310 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17311 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17313 grep -v '^ *+' conftest.er1 >conftest.err
17315 cat conftest.err >&5
17316 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17317 (exit $ac_status); } >/dev/null && {
17318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17319 test ! -s conftest.err
17321 ac_header_preproc=yes
17323 echo "$as_me: failed program was
:" >&5
17324 sed 's/^/| /' conftest.$ac_ext >&5
17326 ac_header_preproc=no
17329 rm -f conftest.err conftest.$ac_ext
17330 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17331 echo "${ECHO_T}$ac_header_preproc" >&6; }
17333 # So? What about this header?
17334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17336 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17337 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17338 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17339 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17340 ac_header_preproc=yes
17343 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17344 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17345 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17346 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17347 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17348 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17349 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17350 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17351 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17352 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17353 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17354 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17358 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17359 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17360 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17361 echo $ECHO_N "(cached
) $ECHO_C" >&6
17363 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17365 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17366 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17369 if test $ac_cv_header_sys_cpustats_h = yes; then
17370 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17379 if test $ac_have_func = no; then
17381 for ac_header in mach/mach.h
17383 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17384 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17385 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17386 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17387 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17388 echo $ECHO_N "(cached
) $ECHO_C" >&6
17390 ac_res=`eval echo '${'$as_ac_Header'}'`
17391 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17392 echo "${ECHO_T}$ac_res" >&6; }
17394 # Is the header compilable?
17395 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17396 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17397 cat >conftest.$ac_ext <<_ACEOF
17400 cat confdefs.h >>conftest.$ac_ext
17401 cat >>conftest.$ac_ext <<_ACEOF
17402 /* end confdefs.h. */
17403 $ac_includes_default
17404 #include <$ac_header>
17406 rm -f conftest.$ac_objext
17407 if { (ac_try="$ac_compile"
17408 case "(($ac_try" in
17409 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410 *) ac_try_echo=$ac_try;;
17412 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17413 (eval "$ac_compile") 2>conftest.er1
17415 grep -v '^ *+' conftest.er1 >conftest.err
17417 cat conftest.err >&5
17418 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17419 (exit $ac_status); } && {
17420 test -z "$ac_c_werror_flag" ||
17421 test ! -s conftest.err
17422 } && test -s conftest.$ac_objext; then
17423 ac_header_compiler=yes
17425 echo "$as_me: failed program was
:" >&5
17426 sed 's/^/| /' conftest.$ac_ext >&5
17428 ac_header_compiler=no
17431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17432 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17433 echo "${ECHO_T}$ac_header_compiler" >&6; }
17435 # Is the header present?
17436 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17437 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17438 cat >conftest.$ac_ext <<_ACEOF
17441 cat confdefs.h >>conftest.$ac_ext
17442 cat >>conftest.$ac_ext <<_ACEOF
17443 /* end confdefs.h. */
17444 #include <$ac_header>
17446 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17447 case "(($ac_try" in
17448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17449 *) ac_try_echo=$ac_try;;
17451 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17452 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17454 grep -v '^ *+' conftest.er1 >conftest.err
17456 cat conftest.err >&5
17457 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17458 (exit $ac_status); } >/dev/null && {
17459 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17460 test ! -s conftest.err
17462 ac_header_preproc=yes
17464 echo "$as_me: failed program was
:" >&5
17465 sed 's/^/| /' conftest.$ac_ext >&5
17467 ac_header_preproc=no
17470 rm -f conftest.err conftest.$ac_ext
17471 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17472 echo "${ECHO_T}$ac_header_preproc" >&6; }
17474 # So? What about this header?
17475 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17477 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17478 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17479 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17480 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17481 ac_header_preproc=yes
17484 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17485 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17486 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17487 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17488 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17489 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17490 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17491 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17492 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17493 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17494 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17495 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17499 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17500 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17501 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17502 echo $ECHO_N "(cached
) $ECHO_C" >&6
17504 eval "$as_ac_Header=\
$ac_header_preproc"
17506 ac_res=`eval echo '${'$as_ac_Header'}'`
17507 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17508 echo "${ECHO_T}$ac_res" >&6; }
17511 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17512 cat >>confdefs.h <<_ACEOF
17513 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17523 for ac_header in nlist.h
17525 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17526 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17527 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17528 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17529 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17530 echo $ECHO_N "(cached
) $ECHO_C" >&6
17532 ac_res=`eval echo '${'$as_ac_Header'}'`
17533 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17534 echo "${ECHO_T}$ac_res" >&6; }
17536 # Is the header compilable?
17537 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17538 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17539 cat >conftest.$ac_ext <<_ACEOF
17542 cat confdefs.h >>conftest.$ac_ext
17543 cat >>conftest.$ac_ext <<_ACEOF
17544 /* end confdefs.h. */
17545 $ac_includes_default
17546 #include <$ac_header>
17548 rm -f conftest.$ac_objext
17549 if { (ac_try="$ac_compile"
17550 case "(($ac_try" in
17551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17552 *) ac_try_echo=$ac_try;;
17554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17555 (eval "$ac_compile") 2>conftest.er1
17557 grep -v '^ *+' conftest.er1 >conftest.err
17559 cat conftest.err >&5
17560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17561 (exit $ac_status); } && {
17562 test -z "$ac_c_werror_flag" ||
17563 test ! -s conftest.err
17564 } && test -s conftest.$ac_objext; then
17565 ac_header_compiler=yes
17567 echo "$as_me: failed program was
:" >&5
17568 sed 's/^/| /' conftest.$ac_ext >&5
17570 ac_header_compiler=no
17573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17574 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17575 echo "${ECHO_T}$ac_header_compiler" >&6; }
17577 # Is the header present?
17578 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17579 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17580 cat >conftest.$ac_ext <<_ACEOF
17583 cat confdefs.h >>conftest.$ac_ext
17584 cat >>conftest.$ac_ext <<_ACEOF
17585 /* end confdefs.h. */
17586 #include <$ac_header>
17588 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17589 case "(($ac_try" in
17590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17591 *) ac_try_echo=$ac_try;;
17593 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17594 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17596 grep -v '^ *+' conftest.er1 >conftest.err
17598 cat conftest.err >&5
17599 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17600 (exit $ac_status); } >/dev/null && {
17601 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17602 test ! -s conftest.err
17604 ac_header_preproc=yes
17606 echo "$as_me: failed program was
:" >&5
17607 sed 's/^/| /' conftest.$ac_ext >&5
17609 ac_header_preproc=no
17612 rm -f conftest.err conftest.$ac_ext
17613 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17614 echo "${ECHO_T}$ac_header_preproc" >&6; }
17616 # So? What about this header?
17617 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17619 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17620 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17621 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17622 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17623 ac_header_preproc=yes
17626 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17627 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17628 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17629 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17630 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17631 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17632 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17633 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17634 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17635 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17636 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17637 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17641 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17642 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17643 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17644 echo $ECHO_N "(cached
) $ECHO_C" >&6
17646 eval "$as_ac_Header=\
$ac_header_preproc"
17648 ac_res=`eval echo '${'$as_ac_Header'}'`
17649 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17650 echo "${ECHO_T}$ac_res" >&6; }
17653 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17654 cat >>confdefs.h <<_ACEOF
17655 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17657 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17658 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17659 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17660 echo $ECHO_N "(cached
) $ECHO_C" >&6
17662 cat >conftest.$ac_ext <<_ACEOF
17665 cat confdefs.h >>conftest.$ac_ext
17666 cat >>conftest.$ac_ext <<_ACEOF
17667 /* end confdefs.h. */
17673 static struct nlist ac_aggr;
17674 if (ac_aggr.n_un.n_name)
17680 rm -f conftest.$ac_objext
17681 if { (ac_try="$ac_compile"
17682 case "(($ac_try" in
17683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17684 *) ac_try_echo=$ac_try;;
17686 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17687 (eval "$ac_compile") 2>conftest.er1
17689 grep -v '^ *+' conftest.er1 >conftest.err
17691 cat conftest.err >&5
17692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17693 (exit $ac_status); } && {
17694 test -z "$ac_c_werror_flag" ||
17695 test ! -s conftest.err
17696 } && test -s conftest.$ac_objext; then
17697 ac_cv_member_struct_nlist_n_un_n_name=yes
17699 echo "$as_me: failed program was
:" >&5
17700 sed 's/^/| /' conftest.$ac_ext >&5
17702 cat >conftest.$ac_ext <<_ACEOF
17705 cat confdefs.h >>conftest.$ac_ext
17706 cat >>conftest.$ac_ext <<_ACEOF
17707 /* end confdefs.h. */
17713 static struct nlist ac_aggr;
17714 if (sizeof ac_aggr.n_un.n_name)
17720 rm -f conftest.$ac_objext
17721 if { (ac_try="$ac_compile"
17722 case "(($ac_try" in
17723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17724 *) ac_try_echo=$ac_try;;
17726 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17727 (eval "$ac_compile") 2>conftest.er1
17729 grep -v '^ *+' conftest.er1 >conftest.err
17731 cat conftest.err >&5
17732 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17733 (exit $ac_status); } && {
17734 test -z "$ac_c_werror_flag" ||
17735 test ! -s conftest.err
17736 } && test -s conftest.$ac_objext; then
17737 ac_cv_member_struct_nlist_n_un_n_name=yes
17739 echo "$as_me: failed program was
:" >&5
17740 sed 's/^/| /' conftest.$ac_ext >&5
17742 ac_cv_member_struct_nlist_n_un_n_name=no
17745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17750 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17751 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17752 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17754 cat >>confdefs.h <<_ACEOF
17755 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17759 cat >>confdefs.h <<\_ACEOF
17760 #define NLIST_NAME_UNION 1
17774 # Some definitions of getloadavg require that the program be installed setgid.
17775 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
17776 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
17777 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17778 echo $ECHO_N "(cached
) $ECHO_C" >&6
17780 cat >conftest.$ac_ext <<_ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h. */
17786 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
17787 #ifdef LDAV_PRIVILEGED
17788 Yowza Am I SETGID yet
17791 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17792 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
17793 ac_cv_func_getloadavg_setgid=yes
17795 ac_cv_func_getloadavg_setgid=no
17800 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
17801 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17802 if test $ac_cv_func_getloadavg_setgid = yes; then
17805 cat >>confdefs.h <<\_ACEOF
17806 #define GETLOADAVG_PRIVILEGED 1
17813 if test $ac_cv_func_getloadavg_setgid = yes; then
17814 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
17815 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
17816 if test "${ac_cv_group_kmem+set}" = set; then
17817 echo $ECHO_N "(cached
) $ECHO_C" >&6
17819 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17820 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17821 # If we got an error (system does not support symlinks), try without -L.
17822 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17823 ac_cv_group_kmem=`echo $ac_ls_output \
17824 | sed -ne 's/[ ][ ]*/ /g;
17825 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17829 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
17830 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17831 KMEM_GROUP=$ac_cv_group_kmem
17833 if test "x
$ac_save_LIBS" = x; then
17834 GETLOADAVG_LIBS=$LIBS
17836 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
17842 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
17843 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
17844 if test "${ac_cv_sys_largefile_source+set}" = set; then
17845 echo $ECHO_N "(cached
) $ECHO_C" >&6
17848 cat >conftest.$ac_ext <<_ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17858 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17863 rm -f conftest.$ac_objext conftest$ac_exeext
17864 if { (ac_try="$ac_link"
17865 case "(($ac_try" in
17866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17867 *) ac_try_echo=$ac_try;;
17869 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17870 (eval "$ac_link") 2>conftest.er1
17872 grep -v '^ *+' conftest.er1 >conftest.err
17874 cat conftest.err >&5
17875 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17876 (exit $ac_status); } && {
17877 test -z "$ac_c_werror_flag" ||
17878 test ! -s conftest.err
17879 } && test -s conftest$ac_exeext &&
17880 $as_test_x conftest$ac_exeext; then
17881 ac_cv_sys_largefile_source=no; break
17883 echo "$as_me: failed program was
:" >&5
17884 sed 's/^/| /' conftest.$ac_ext >&5
17889 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17890 conftest$ac_exeext conftest.$ac_ext
17891 cat >conftest.$ac_ext <<_ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17897 #define _LARGEFILE_SOURCE 1
17902 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17907 rm -f conftest.$ac_objext conftest$ac_exeext
17908 if { (ac_try="$ac_link"
17909 case "(($ac_try" in
17910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17911 *) ac_try_echo=$ac_try;;
17913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17914 (eval "$ac_link") 2>conftest.er1
17916 grep -v '^ *+' conftest.er1 >conftest.err
17918 cat conftest.err >&5
17919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17920 (exit $ac_status); } && {
17921 test -z "$ac_c_werror_flag" ||
17922 test ! -s conftest.err
17923 } && test -s conftest$ac_exeext &&
17924 $as_test_x conftest$ac_exeext; then
17925 ac_cv_sys_largefile_source=1; break
17927 echo "$as_me: failed program was
:" >&5
17928 sed 's/^/| /' conftest.$ac_ext >&5
17933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17934 conftest$ac_exeext conftest.$ac_ext
17935 ac_cv_sys_largefile_source=unknown
17939 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
17940 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17941 case $ac_cv_sys_largefile_source in #(
17944 cat >>confdefs.h <<_ACEOF
17945 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17951 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17952 # in glibc 2.1.3, but that breaks too many other things.
17953 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17954 if test $ac_cv_sys_largefile_source != unknown; then
17956 cat >>confdefs.h <<\_ACEOF
17957 #define HAVE_FSEEKO 1
17963 # Configure getopt.
17964 # getopt.m4 serial 10
17966 # The getopt module assume you want GNU getopt, with getopt_long etc,
17967 # rather than vanilla POSIX getopt. This means your your code should
17968 # always include <getopt.h> for the getopt prototypes.
17980 # Prerequisites of lib/getopt*.
17987 for ac_header in getopt.h
17989 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17990 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17991 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17992 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17993 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17994 echo $ECHO_N "(cached
) $ECHO_C" >&6
17996 ac_res=`eval echo '${'$as_ac_Header'}'`
17997 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17998 echo "${ECHO_T}$ac_res" >&6; }
18000 # Is the header compilable?
18001 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18002 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18003 cat >conftest.$ac_ext <<_ACEOF
18006 cat confdefs.h >>conftest.$ac_ext
18007 cat >>conftest.$ac_ext <<_ACEOF
18008 /* end confdefs.h. */
18009 $ac_includes_default
18010 #include <$ac_header>
18012 rm -f conftest.$ac_objext
18013 if { (ac_try="$ac_compile"
18014 case "(($ac_try" in
18015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18016 *) ac_try_echo=$ac_try;;
18018 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18019 (eval "$ac_compile") 2>conftest.er1
18021 grep -v '^ *+' conftest.er1 >conftest.err
18023 cat conftest.err >&5
18024 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18025 (exit $ac_status); } && {
18026 test -z "$ac_c_werror_flag" ||
18027 test ! -s conftest.err
18028 } && test -s conftest.$ac_objext; then
18029 ac_header_compiler=yes
18031 echo "$as_me: failed program was
:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18034 ac_header_compiler=no
18037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18038 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18039 echo "${ECHO_T}$ac_header_compiler" >&6; }
18041 # Is the header present?
18042 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18043 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18044 cat >conftest.$ac_ext <<_ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18050 #include <$ac_header>
18052 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18053 case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18060 grep -v '^ *+' conftest.er1 >conftest.err
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18064 (exit $ac_status); } >/dev/null && {
18065 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18066 test ! -s conftest.err
18068 ac_header_preproc=yes
18070 echo "$as_me: failed program was
:" >&5
18071 sed 's/^/| /' conftest.$ac_ext >&5
18073 ac_header_preproc=no
18076 rm -f conftest.err conftest.$ac_ext
18077 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18078 echo "${ECHO_T}$ac_header_preproc" >&6; }
18080 # So? What about this header?
18081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18083 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18084 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18085 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18086 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18087 ac_header_preproc=yes
18090 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18091 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18092 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18093 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18094 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18095 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18096 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18097 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18098 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18099 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18100 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18101 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18105 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18106 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18107 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18108 echo $ECHO_N "(cached
) $ECHO_C" >&6
18110 eval "$as_ac_Header=\
$ac_header_preproc"
18112 ac_res=`eval echo '${'$as_ac_Header'}'`
18113 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18114 echo "${ECHO_T}$ac_res" >&6; }
18117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18118 cat >>confdefs.h <<_ACEOF
18119 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18128 if test -z "$GETOPT_H"; then
18130 for ac_func in getopt_long_only
18132 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18133 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18134 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18135 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18136 echo $ECHO_N "(cached
) $ECHO_C" >&6
18138 cat >conftest.$ac_ext <<_ACEOF
18141 cat confdefs.h >>conftest.$ac_ext
18142 cat >>conftest.$ac_ext <<_ACEOF
18143 /* end confdefs.h. */
18144 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18145 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18146 #define $ac_func innocuous_$ac_func
18148 /* System header to define __stub macros and hopefully few prototypes,
18149 which can conflict with char $ac_func (); below.
18150 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18151 <limits.h> exists even on freestanding compilers. */
18154 # include <limits.h>
18156 # include <assert.h>
18161 /* Override any GCC internal prototype to avoid an error.
18162 Use char because int might match the return type of a GCC
18163 builtin and then its argument prototype would still apply. */
18168 /* The GNU C library defines this for functions which it implements
18169 to always fail with ENOSYS. Some functions are actually named
18170 something starting with __ and the normal name is an alias. */
18171 #if defined __stub_$ac_func || defined __stub___$ac_func
18178 return $ac_func ();
18183 rm -f conftest.$ac_objext conftest$ac_exeext
18184 if { (ac_try="$ac_link"
18185 case "(($ac_try" in
18186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18187 *) ac_try_echo=$ac_try;;
18189 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18190 (eval "$ac_link") 2>conftest.er1
18192 grep -v '^ *+' conftest.er1 >conftest.err
18194 cat conftest.err >&5
18195 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18196 (exit $ac_status); } && {
18197 test -z "$ac_c_werror_flag" ||
18198 test ! -s conftest.err
18199 } && test -s conftest$ac_exeext &&
18200 $as_test_x conftest$ac_exeext; then
18201 eval "$as_ac_var=yes"
18203 echo "$as_me: failed program was
:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18206 eval "$as_ac_var=no
"
18209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18210 conftest$ac_exeext conftest.$ac_ext
18212 ac_res=`eval echo '${'$as_ac_var'}'`
18213 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18214 echo "${ECHO_T}$ac_res" >&6; }
18215 if test `eval echo '${'$as_ac_var'}'` = yes; then
18216 cat >>confdefs.h <<_ACEOF
18217 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18227 if test -z "$GETOPT_H"; then
18228 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18229 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18230 if test "${ac_cv_have_decl_optreset+set}" = set; then
18231 echo $ECHO_N "(cached
) $ECHO_C" >&6
18233 cat >conftest.$ac_ext <<_ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h. */
18239 #include <getopt.h>
18252 rm -f conftest.$ac_objext
18253 if { (ac_try="$ac_compile"
18254 case "(($ac_try" in
18255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256 *) ac_try_echo=$ac_try;;
18258 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18259 (eval "$ac_compile") 2>conftest.er1
18261 grep -v '^ *+' conftest.er1 >conftest.err
18263 cat conftest.err >&5
18264 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18265 (exit $ac_status); } && {
18266 test -z "$ac_c_werror_flag" ||
18267 test ! -s conftest.err
18268 } && test -s conftest.$ac_objext; then
18269 ac_cv_have_decl_optreset=yes
18271 echo "$as_me: failed program was
:" >&5
18272 sed 's/^/| /' conftest.$ac_ext >&5
18274 ac_cv_have_decl_optreset=no
18277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18279 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18280 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18281 if test $ac_cv_have_decl_optreset = yes; then
18287 if test -z "$GETOPT_H"; then
18288 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18289 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18290 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18291 echo $ECHO_N "(cached
) $ECHO_C" >&6
18293 if test "$cross_compiling" = yes; then
18294 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18295 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18296 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18297 echo $ECHO_N "(cached
) $ECHO_C" >&6
18299 cat >conftest.$ac_ext <<_ACEOF
18302 cat confdefs.h >>conftest.$ac_ext
18303 cat >>conftest.$ac_ext <<_ACEOF
18304 /* end confdefs.h. */
18305 #include <getopt.h>
18310 #ifndef getopt_clip
18311 (void) getopt_clip;
18318 rm -f conftest.$ac_objext
18319 if { (ac_try="$ac_compile"
18320 case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_compile") 2>conftest.er1
18327 grep -v '^ *+' conftest.er1 >conftest.err
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18331 (exit $ac_status); } && {
18332 test -z "$ac_c_werror_flag" ||
18333 test ! -s conftest.err
18334 } && test -s conftest.$ac_objext; then
18335 ac_cv_have_decl_getopt_clip=yes
18337 echo "$as_me: failed program was
:" >&5
18338 sed 's/^/| /' conftest.$ac_ext >&5
18340 ac_cv_have_decl_getopt_clip=no
18343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18345 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18346 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18347 if test $ac_cv_have_decl_getopt_clip = yes; then
18348 gl_cv_func_gnu_getopt=no
18350 gl_cv_func_gnu_getopt=yes
18354 cat >conftest.$ac_ext <<_ACEOF
18357 cat confdefs.h >>conftest.$ac_ext
18358 cat >>conftest.$ac_ext <<_ACEOF
18359 /* end confdefs.h. */
18360 #include <getopt.h>
18366 myargv[0] = "conftest
";
18369 return getopt (2, myargv, "+a
") != '?';
18375 rm -f conftest$ac_exeext
18376 if { (ac_try="$ac_link"
18377 case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18381 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_link") 2>&5
18384 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18385 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18386 { (case "(($ac_try" in
18387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18388 *) ac_try_echo=$ac_try;;
18390 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18391 (eval "$ac_try") 2>&5
18393 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18394 (exit $ac_status); }; }; then
18395 gl_cv_func_gnu_getopt=yes
18397 echo "$as_me: program exited with status
$ac_status" >&5
18398 echo "$as_me: failed program was
:" >&5
18399 sed 's/^/| /' conftest.$ac_ext >&5
18401 ( exit $ac_status )
18402 gl_cv_func_gnu_getopt=no
18404 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18409 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18410 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18411 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18418 if test -n "$GETOPT_H"; then
18423 cat >>confdefs.h <<\_ACEOF
18424 #define __GETOPT_PREFIX rpl_
18430 GETOPTOBJS='getopt.o getopt1.o'
18437 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18438 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18439 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18440 echo $ECHO_N "(cached
) $ECHO_C" >&6
18442 # Use it with a single arg.
18443 cat >conftest.$ac_ext <<_ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h. */
18449 $ac_includes_default
18458 rm -f conftest.$ac_objext
18459 if { (ac_try="$ac_compile"
18460 case "(($ac_try" in
18461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18462 *) ac_try_echo=$ac_try;;
18464 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18465 (eval "$ac_compile") 2>conftest.er1
18467 grep -v '^ *+' conftest.er1 >conftest.err
18469 cat conftest.err >&5
18470 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18471 (exit $ac_status); } && {
18472 test -z "$ac_c_werror_flag" ||
18473 test ! -s conftest.err
18474 } && test -s conftest.$ac_objext; then
18475 ac_cv_func_getpgrp_void=no
18477 echo "$as_me: failed program was
:" >&5
18478 sed 's/^/| /' conftest.$ac_ext >&5
18480 ac_cv_func_getpgrp_void=yes
18483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18486 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18487 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18488 if test $ac_cv_func_getpgrp_void = yes; then
18490 cat >>confdefs.h <<\_ACEOF
18491 #define GETPGRP_VOID 1
18498 for ac_func in strftime
18500 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18501 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18502 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18503 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18504 echo $ECHO_N "(cached
) $ECHO_C" >&6
18506 cat >conftest.$ac_ext <<_ACEOF
18509 cat confdefs.h >>conftest.$ac_ext
18510 cat >>conftest.$ac_ext <<_ACEOF
18511 /* end confdefs.h. */
18512 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18514 #define $ac_func innocuous_$ac_func
18516 /* System header to define __stub macros and hopefully few prototypes,
18517 which can conflict with char $ac_func (); below.
18518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18519 <limits.h> exists even on freestanding compilers. */
18522 # include <limits.h>
18524 # include <assert.h>
18529 /* Override any GCC internal prototype to avoid an error.
18530 Use char because int might match the return type of a GCC
18531 builtin and then its argument prototype would still apply. */
18536 /* The GNU C library defines this for functions which it implements
18537 to always fail with ENOSYS. Some functions are actually named
18538 something starting with __ and the normal name is an alias. */
18539 #if defined __stub_$ac_func || defined __stub___$ac_func
18546 return $ac_func ();
18551 rm -f conftest.$ac_objext conftest$ac_exeext
18552 if { (ac_try="$ac_link"
18553 case "(($ac_try" in
18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555 *) ac_try_echo=$ac_try;;
18557 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18558 (eval "$ac_link") 2>conftest.er1
18560 grep -v '^ *+' conftest.er1 >conftest.err
18562 cat conftest.err >&5
18563 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18564 (exit $ac_status); } && {
18565 test -z "$ac_c_werror_flag" ||
18566 test ! -s conftest.err
18567 } && test -s conftest$ac_exeext &&
18568 $as_test_x conftest$ac_exeext; then
18569 eval "$as_ac_var=yes"
18571 echo "$as_me: failed program was
:" >&5
18572 sed 's/^/| /' conftest.$ac_ext >&5
18574 eval "$as_ac_var=no
"
18577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18578 conftest$ac_exeext conftest.$ac_ext
18580 ac_res=`eval echo '${'$as_ac_var'}'`
18581 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18582 echo "${ECHO_T}$ac_res" >&6; }
18583 if test `eval echo '${'$as_ac_var'}'` = yes; then
18584 cat >>confdefs.h <<_ACEOF
18585 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18589 # strftime is in -lintl on SCO UNIX.
18590 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18591 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18592 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18593 echo $ECHO_N "(cached
) $ECHO_C" >&6
18595 ac_check_lib_save_LIBS=$LIBS
18596 LIBS="-lintl $LIBS"
18597 cat >conftest.$ac_ext <<_ACEOF
18600 cat confdefs.h >>conftest.$ac_ext
18601 cat >>conftest.$ac_ext <<_ACEOF
18602 /* end confdefs.h. */
18604 /* Override any GCC internal prototype to avoid an error.
18605 Use char because int might match the return type of a GCC
18606 builtin and then its argument prototype would still apply. */
18614 return strftime ();
18619 rm -f conftest.$ac_objext conftest$ac_exeext
18620 if { (ac_try="$ac_link"
18621 case "(($ac_try" in
18622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18623 *) ac_try_echo=$ac_try;;
18625 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18626 (eval "$ac_link") 2>conftest.er1
18628 grep -v '^ *+' conftest.er1 >conftest.err
18630 cat conftest.err >&5
18631 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18632 (exit $ac_status); } && {
18633 test -z "$ac_c_werror_flag" ||
18634 test ! -s conftest.err
18635 } && test -s conftest$ac_exeext &&
18636 $as_test_x conftest$ac_exeext; then
18637 ac_cv_lib_intl_strftime=yes
18639 echo "$as_me: failed program was
:" >&5
18640 sed 's/^/| /' conftest.$ac_ext >&5
18642 ac_cv_lib_intl_strftime=no
18645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18646 conftest$ac_exeext conftest.$ac_ext
18647 LIBS=$ac_check_lib_save_LIBS
18649 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18650 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18651 if test $ac_cv_lib_intl_strftime = yes; then
18652 cat >>confdefs.h <<\_ACEOF
18653 #define HAVE_STRFTIME 1
18656 LIBS="-lintl $LIBS"
18665 for ac_func in grantpt
18667 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18668 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18669 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18670 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18671 echo $ECHO_N "(cached
) $ECHO_C" >&6
18673 cat >conftest.$ac_ext <<_ACEOF
18676 cat confdefs.h >>conftest.$ac_ext
18677 cat >>conftest.$ac_ext <<_ACEOF
18678 /* end confdefs.h. */
18679 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18680 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18681 #define $ac_func innocuous_$ac_func
18683 /* System header to define __stub macros and hopefully few prototypes,
18684 which can conflict with char $ac_func (); below.
18685 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18686 <limits.h> exists even on freestanding compilers. */
18689 # include <limits.h>
18691 # include <assert.h>
18696 /* Override any GCC internal prototype to avoid an error.
18697 Use char because int might match the return type of a GCC
18698 builtin and then its argument prototype would still apply. */
18703 /* The GNU C library defines this for functions which it implements
18704 to always fail with ENOSYS. Some functions are actually named
18705 something starting with __ and the normal name is an alias. */
18706 #if defined __stub_$ac_func || defined __stub___$ac_func
18713 return $ac_func ();
18718 rm -f conftest.$ac_objext conftest$ac_exeext
18719 if { (ac_try="$ac_link"
18720 case "(($ac_try" in
18721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18722 *) ac_try_echo=$ac_try;;
18724 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18725 (eval "$ac_link") 2>conftest.er1
18727 grep -v '^ *+' conftest.er1 >conftest.err
18729 cat conftest.err >&5
18730 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18731 (exit $ac_status); } && {
18732 test -z "$ac_c_werror_flag" ||
18733 test ! -s conftest.err
18734 } && test -s conftest$ac_exeext &&
18735 $as_test_x conftest$ac_exeext; then
18736 eval "$as_ac_var=yes"
18738 echo "$as_me: failed program was
:" >&5
18739 sed 's/^/| /' conftest.$ac_ext >&5
18741 eval "$as_ac_var=no
"
18744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18745 conftest$ac_exeext conftest.$ac_ext
18747 ac_res=`eval echo '${'$as_ac_var'}'`
18748 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18749 echo "${ECHO_T}$ac_res" >&6; }
18750 if test `eval echo '${'$as_ac_var'}'` = yes; then
18751 cat >>confdefs.h <<_ACEOF
18752 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18759 # PTY-related GNU extensions.
18761 for ac_func in getpt
18763 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18764 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18765 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18766 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18767 echo $ECHO_N "(cached
) $ECHO_C" >&6
18769 cat >conftest.$ac_ext <<_ACEOF
18772 cat confdefs.h >>conftest.$ac_ext
18773 cat >>conftest.$ac_ext <<_ACEOF
18774 /* end confdefs.h. */
18775 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18776 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18777 #define $ac_func innocuous_$ac_func
18779 /* System header to define __stub macros and hopefully few prototypes,
18780 which can conflict with char $ac_func (); below.
18781 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18782 <limits.h> exists even on freestanding compilers. */
18785 # include <limits.h>
18787 # include <assert.h>
18792 /* Override any GCC internal prototype to avoid an error.
18793 Use char because int might match the return type of a GCC
18794 builtin and then its argument prototype would still apply. */
18799 /* The GNU C library defines this for functions which it implements
18800 to always fail with ENOSYS. Some functions are actually named
18801 something starting with __ and the normal name is an alias. */
18802 #if defined __stub_$ac_func || defined __stub___$ac_func
18809 return $ac_func ();
18814 rm -f conftest.$ac_objext conftest$ac_exeext
18815 if { (ac_try="$ac_link"
18816 case "(($ac_try" in
18817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18818 *) ac_try_echo=$ac_try;;
18820 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18821 (eval "$ac_link") 2>conftest.er1
18823 grep -v '^ *+' conftest.er1 >conftest.err
18825 cat conftest.err >&5
18826 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18827 (exit $ac_status); } && {
18828 test -z "$ac_c_werror_flag" ||
18829 test ! -s conftest.err
18830 } && test -s conftest$ac_exeext &&
18831 $as_test_x conftest$ac_exeext; then
18832 eval "$as_ac_var=yes"
18834 echo "$as_me: failed program was
:" >&5
18835 sed 's/^/| /' conftest.$ac_ext >&5
18837 eval "$as_ac_var=no
"
18840 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18841 conftest$ac_exeext conftest.$ac_ext
18843 ac_res=`eval echo '${'$as_ac_var'}'`
18844 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18845 echo "${ECHO_T}$ac_res" >&6; }
18846 if test `eval echo '${'$as_ac_var'}'` = yes; then
18847 cat >>confdefs.h <<_ACEOF
18848 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18855 # Check this now, so that we will NOT find the above functions in ncurses.
18856 # That is because we have not set up to link ncurses in lib-src.
18857 # It's better to believe a function is not available
18858 # than to expect to find it in ncurses.
18860 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
18861 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
18862 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18863 echo $ECHO_N "(cached
) $ECHO_C" >&6
18865 ac_check_lib_save_LIBS=$LIBS
18866 LIBS="-lncurses $LIBS"
18867 cat >conftest.$ac_ext <<_ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h. */
18874 /* Override any GCC internal prototype to avoid an error.
18875 Use char because int might match the return type of a GCC
18876 builtin and then its argument prototype would still apply. */
18889 rm -f conftest.$ac_objext conftest$ac_exeext
18890 if { (ac_try="$ac_link"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_link") 2>conftest.er1
18898 grep -v '^ *+' conftest.er1 >conftest.err
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18902 (exit $ac_status); } && {
18903 test -z "$ac_c_werror_flag" ||
18904 test ! -s conftest.err
18905 } && test -s conftest$ac_exeext &&
18906 $as_test_x conftest$ac_exeext; then
18907 ac_cv_lib_ncurses_tparm=yes
18909 echo "$as_me: failed program was
:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18912 ac_cv_lib_ncurses_tparm=no
18915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18916 conftest$ac_exeext conftest.$ac_ext
18917 LIBS=$ac_check_lib_save_LIBS
18919 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
18920 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18921 if test $ac_cv_lib_ncurses_tparm = yes; then
18922 cat >>confdefs.h <<_ACEOF
18923 #define HAVE_LIBNCURSES 1
18926 LIBS="-lncurses $LIBS"
18931 # Do we need the Hesiod library to provide the support routines?
18932 if test "$with_hesiod" = yes ; then
18933 # Don't set $LIBS here -- see comments above.
18935 { echo "$as_me:$LINENO: checking
for res_send
" >&5
18936 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
18937 if test "${ac_cv_func_res_send+set}" = set; then
18938 echo $ECHO_N "(cached
) $ECHO_C" >&6
18940 cat >conftest.$ac_ext <<_ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h. */
18946 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18947 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18948 #define res_send innocuous_res_send
18950 /* System header to define __stub macros and hopefully few prototypes,
18951 which can conflict with char res_send (); below.
18952 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18953 <limits.h> exists even on freestanding compilers. */
18956 # include <limits.h>
18958 # include <assert.h>
18963 /* Override any GCC internal prototype to avoid an error.
18964 Use char because int might match the return type of a GCC
18965 builtin and then its argument prototype would still apply. */
18970 /* The GNU C library defines this for functions which it implements
18971 to always fail with ENOSYS. Some functions are actually named
18972 something starting with __ and the normal name is an alias. */
18973 #if defined __stub_res_send || defined __stub___res_send
18980 return res_send ();
18985 rm -f conftest.$ac_objext conftest$ac_exeext
18986 if { (ac_try="$ac_link"
18987 case "(($ac_try" in
18988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989 *) ac_try_echo=$ac_try;;
18991 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18992 (eval "$ac_link") 2>conftest.er1
18994 grep -v '^ *+' conftest.er1 >conftest.err
18996 cat conftest.err >&5
18997 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18998 (exit $ac_status); } && {
18999 test -z "$ac_c_werror_flag" ||
19000 test ! -s conftest.err
19001 } && test -s conftest$ac_exeext &&
19002 $as_test_x conftest$ac_exeext; then
19003 ac_cv_func_res_send=yes
19005 echo "$as_me: failed program was
:" >&5
19006 sed 's/^/| /' conftest.$ac_ext >&5
19008 ac_cv_func_res_send=no
19011 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19012 conftest$ac_exeext conftest.$ac_ext
19014 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19015 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19016 if test $ac_cv_func_res_send = yes; then
19019 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19020 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19021 if test "${ac_cv_func___res_send+set}" = set; then
19022 echo $ECHO_N "(cached
) $ECHO_C" >&6
19024 cat >conftest.$ac_ext <<_ACEOF
19027 cat confdefs.h >>conftest.$ac_ext
19028 cat >>conftest.$ac_ext <<_ACEOF
19029 /* end confdefs.h. */
19030 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19032 #define __res_send innocuous___res_send
19034 /* System header to define __stub macros and hopefully few prototypes,
19035 which can conflict with char __res_send (); below.
19036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19037 <limits.h> exists even on freestanding compilers. */
19040 # include <limits.h>
19042 # include <assert.h>
19047 /* Override any GCC internal prototype to avoid an error.
19048 Use char because int might match the return type of a GCC
19049 builtin and then its argument prototype would still apply. */
19053 char __res_send ();
19054 /* The GNU C library defines this for functions which it implements
19055 to always fail with ENOSYS. Some functions are actually named
19056 something starting with __ and the normal name is an alias. */
19057 #if defined __stub___res_send || defined __stub_____res_send
19064 return __res_send ();
19069 rm -f conftest.$ac_objext conftest$ac_exeext
19070 if { (ac_try="$ac_link"
19071 case "(($ac_try" in
19072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19073 *) ac_try_echo=$ac_try;;
19075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19076 (eval "$ac_link") 2>conftest.er1
19078 grep -v '^ *+' conftest.er1 >conftest.err
19080 cat conftest.err >&5
19081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19082 (exit $ac_status); } && {
19083 test -z "$ac_c_werror_flag" ||
19084 test ! -s conftest.err
19085 } && test -s conftest$ac_exeext &&
19086 $as_test_x conftest$ac_exeext; then
19087 ac_cv_func___res_send=yes
19089 echo "$as_me: failed program was
:" >&5
19090 sed 's/^/| /' conftest.$ac_ext >&5
19092 ac_cv_func___res_send=no
19095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19096 conftest$ac_exeext conftest.$ac_ext
19098 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19099 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19100 if test $ac_cv_func___res_send = yes; then
19103 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19104 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19105 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19106 echo $ECHO_N "(cached
) $ECHO_C" >&6
19108 ac_check_lib_save_LIBS=$LIBS
19109 LIBS="-lresolv $LIBS"
19110 cat >conftest.$ac_ext <<_ACEOF
19113 cat confdefs.h >>conftest.$ac_ext
19114 cat >>conftest.$ac_ext <<_ACEOF
19115 /* end confdefs.h. */
19117 /* Override any GCC internal prototype to avoid an error.
19118 Use char because int might match the return type of a GCC
19119 builtin and then its argument prototype would still apply. */
19127 return res_send ();
19132 rm -f conftest.$ac_objext conftest$ac_exeext
19133 if { (ac_try="$ac_link"
19134 case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_link") 2>conftest.er1
19141 grep -v '^ *+' conftest.er1 >conftest.err
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19145 (exit $ac_status); } && {
19146 test -z "$ac_c_werror_flag" ||
19147 test ! -s conftest.err
19148 } && test -s conftest$ac_exeext &&
19149 $as_test_x conftest$ac_exeext; then
19150 ac_cv_lib_resolv_res_send=yes
19152 echo "$as_me: failed program was
:" >&5
19153 sed 's/^/| /' conftest.$ac_ext >&5
19155 ac_cv_lib_resolv_res_send=no
19158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19159 conftest$ac_exeext conftest.$ac_ext
19160 LIBS=$ac_check_lib_save_LIBS
19162 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19163 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19164 if test $ac_cv_lib_resolv_res_send = yes; then
19167 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19168 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19169 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19170 echo $ECHO_N "(cached
) $ECHO_C" >&6
19172 ac_check_lib_save_LIBS=$LIBS
19173 LIBS="-lresolv $LIBS"
19174 cat >conftest.$ac_ext <<_ACEOF
19177 cat confdefs.h >>conftest.$ac_ext
19178 cat >>conftest.$ac_ext <<_ACEOF
19179 /* end confdefs.h. */
19181 /* Override any GCC internal prototype to avoid an error.
19182 Use char because int might match the return type of a GCC
19183 builtin and then its argument prototype would still apply. */
19187 char __res_send ();
19191 return __res_send ();
19196 rm -f conftest.$ac_objext conftest$ac_exeext
19197 if { (ac_try="$ac_link"
19198 case "(($ac_try" in
19199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19200 *) ac_try_echo=$ac_try;;
19202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19203 (eval "$ac_link") 2>conftest.er1
19205 grep -v '^ *+' conftest.er1 >conftest.err
19207 cat conftest.err >&5
19208 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19209 (exit $ac_status); } && {
19210 test -z "$ac_c_werror_flag" ||
19211 test ! -s conftest.err
19212 } && test -s conftest$ac_exeext &&
19213 $as_test_x conftest$ac_exeext; then
19214 ac_cv_lib_resolv___res_send=yes
19216 echo "$as_me: failed program was
:" >&5
19217 sed 's/^/| /' conftest.$ac_ext >&5
19219 ac_cv_lib_resolv___res_send=no
19222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19223 conftest$ac_exeext conftest.$ac_ext
19224 LIBS=$ac_check_lib_save_LIBS
19226 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19227 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19228 if test $ac_cv_lib_resolv___res_send = yes; then
19238 if test "$resolv" = yes ; then
19241 cat >>confdefs.h <<\_ACEOF
19242 #define HAVE_LIBRESOLV 1
19248 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19249 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19250 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19251 echo $ECHO_N "(cached
) $ECHO_C" >&6
19253 cat >conftest.$ac_ext <<_ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19260 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19261 #define hes_getmailhost innocuous_hes_getmailhost
19263 /* System header to define __stub macros and hopefully few prototypes,
19264 which can conflict with char hes_getmailhost (); below.
19265 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19266 <limits.h> exists even on freestanding compilers. */
19269 # include <limits.h>
19271 # include <assert.h>
19274 #undef hes_getmailhost
19276 /* Override any GCC internal prototype to avoid an error.
19277 Use char because int might match the return type of a GCC
19278 builtin and then its argument prototype would still apply. */
19282 char hes_getmailhost ();
19283 /* The GNU C library defines this for functions which it implements
19284 to always fail with ENOSYS. Some functions are actually named
19285 something starting with __ and the normal name is an alias. */
19286 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19293 return hes_getmailhost ();
19298 rm -f conftest.$ac_objext conftest$ac_exeext
19299 if { (ac_try="$ac_link"
19300 case "(($ac_try" in
19301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19302 *) ac_try_echo=$ac_try;;
19304 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19305 (eval "$ac_link") 2>conftest.er1
19307 grep -v '^ *+' conftest.er1 >conftest.err
19309 cat conftest.err >&5
19310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19311 (exit $ac_status); } && {
19312 test -z "$ac_c_werror_flag" ||
19313 test ! -s conftest.err
19314 } && test -s conftest$ac_exeext &&
19315 $as_test_x conftest$ac_exeext; then
19316 ac_cv_func_hes_getmailhost=yes
19318 echo "$as_me: failed program was
:" >&5
19319 sed 's/^/| /' conftest.$ac_ext >&5
19321 ac_cv_func_hes_getmailhost=no
19324 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19325 conftest$ac_exeext conftest.$ac_ext
19327 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19328 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19329 if test $ac_cv_func_hes_getmailhost = yes; then
19332 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19333 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19334 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19335 echo $ECHO_N "(cached
) $ECHO_C" >&6
19337 ac_check_lib_save_LIBS=$LIBS
19338 LIBS="-lhesiod $RESOLVLIB $LIBS"
19339 cat >conftest.$ac_ext <<_ACEOF
19342 cat confdefs.h >>conftest.$ac_ext
19343 cat >>conftest.$ac_ext <<_ACEOF
19344 /* end confdefs.h. */
19346 /* Override any GCC internal prototype to avoid an error.
19347 Use char because int might match the return type of a GCC
19348 builtin and then its argument prototype would still apply. */
19352 char hes_getmailhost ();
19356 return hes_getmailhost ();
19361 rm -f conftest.$ac_objext conftest$ac_exeext
19362 if { (ac_try="$ac_link"
19363 case "(($ac_try" in
19364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19365 *) ac_try_echo=$ac_try;;
19367 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19368 (eval "$ac_link") 2>conftest.er1
19370 grep -v '^ *+' conftest.er1 >conftest.err
19372 cat conftest.err >&5
19373 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19374 (exit $ac_status); } && {
19375 test -z "$ac_c_werror_flag" ||
19376 test ! -s conftest.err
19377 } && test -s conftest$ac_exeext &&
19378 $as_test_x conftest$ac_exeext; then
19379 ac_cv_lib_hesiod_hes_getmailhost=yes
19381 echo "$as_me: failed program was
:" >&5
19382 sed 's/^/| /' conftest.$ac_ext >&5
19384 ac_cv_lib_hesiod_hes_getmailhost=no
19387 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19388 conftest$ac_exeext conftest.$ac_ext
19389 LIBS=$ac_check_lib_save_LIBS
19391 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19392 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19393 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19395 cat >>confdefs.h <<\_ACEOF
19396 #define HAVE_LIBHESIOD 1
19407 # These tell us which Kerberos-related libraries to use.
19408 if test "${with_kerberos+set}" = set; then
19410 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19411 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19412 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19413 echo $ECHO_N "(cached
) $ECHO_C" >&6
19415 ac_check_lib_save_LIBS=$LIBS
19416 LIBS="-lcom_err $LIBS"
19417 cat >conftest.$ac_ext <<_ACEOF
19420 cat confdefs.h >>conftest.$ac_ext
19421 cat >>conftest.$ac_ext <<_ACEOF
19422 /* end confdefs.h. */
19424 /* Override any GCC internal prototype to avoid an error.
19425 Use char because int might match the return type of a GCC
19426 builtin and then its argument prototype would still apply. */
19439 rm -f conftest.$ac_objext conftest$ac_exeext
19440 if { (ac_try="$ac_link"
19441 case "(($ac_try" in
19442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19443 *) ac_try_echo=$ac_try;;
19445 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19446 (eval "$ac_link") 2>conftest.er1
19448 grep -v '^ *+' conftest.er1 >conftest.err
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19452 (exit $ac_status); } && {
19453 test -z "$ac_c_werror_flag" ||
19454 test ! -s conftest.err
19455 } && test -s conftest$ac_exeext &&
19456 $as_test_x conftest$ac_exeext; then
19457 ac_cv_lib_com_err_com_err=yes
19459 echo "$as_me: failed program was
:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19462 ac_cv_lib_com_err_com_err=no
19465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19466 conftest$ac_exeext conftest.$ac_ext
19467 LIBS=$ac_check_lib_save_LIBS
19469 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19470 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19471 if test $ac_cv_lib_com_err_com_err = yes; then
19472 cat >>confdefs.h <<_ACEOF
19473 #define HAVE_LIBCOM_ERR 1
19476 LIBS="-lcom_err $LIBS"
19481 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19482 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19483 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19484 echo $ECHO_N "(cached
) $ECHO_C" >&6
19486 ac_check_lib_save_LIBS=$LIBS
19487 LIBS="-lk5crypto $LIBS"
19488 cat >conftest.$ac_ext <<_ACEOF
19491 cat confdefs.h >>conftest.$ac_ext
19492 cat >>conftest.$ac_ext <<_ACEOF
19493 /* end confdefs.h. */
19495 /* Override any GCC internal prototype to avoid an error.
19496 Use char because int might match the return type of a GCC
19497 builtin and then its argument prototype would still apply. */
19501 char mit_des_cbc_encrypt ();
19505 return mit_des_cbc_encrypt ();
19510 rm -f conftest.$ac_objext conftest$ac_exeext
19511 if { (ac_try="$ac_link"
19512 case "(($ac_try" in
19513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19514 *) ac_try_echo=$ac_try;;
19516 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19517 (eval "$ac_link") 2>conftest.er1
19519 grep -v '^ *+' conftest.er1 >conftest.err
19521 cat conftest.err >&5
19522 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19523 (exit $ac_status); } && {
19524 test -z "$ac_c_werror_flag" ||
19525 test ! -s conftest.err
19526 } && test -s conftest$ac_exeext &&
19527 $as_test_x conftest$ac_exeext; then
19528 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19530 echo "$as_me: failed program was
:" >&5
19531 sed 's/^/| /' conftest.$ac_ext >&5
19533 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19536 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19537 conftest$ac_exeext conftest.$ac_ext
19538 LIBS=$ac_check_lib_save_LIBS
19540 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19541 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19542 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19543 cat >>confdefs.h <<_ACEOF
19544 #define HAVE_LIBK5CRYPTO 1
19547 LIBS="-lk5crypto $LIBS"
19552 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19553 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19554 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19555 echo $ECHO_N "(cached
) $ECHO_C" >&6
19557 ac_check_lib_save_LIBS=$LIBS
19558 LIBS="-lcrypto $LIBS"
19559 cat >conftest.$ac_ext <<_ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19566 /* Override any GCC internal prototype to avoid an error.
19567 Use char because int might match the return type of a GCC
19568 builtin and then its argument prototype would still apply. */
19572 char mit_des_cbc_encrypt ();
19576 return mit_des_cbc_encrypt ();
19581 rm -f conftest.$ac_objext conftest$ac_exeext
19582 if { (ac_try="$ac_link"
19583 case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19587 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_link") 2>conftest.er1
19590 grep -v '^ *+' conftest.er1 >conftest.err
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19594 (exit $ac_status); } && {
19595 test -z "$ac_c_werror_flag" ||
19596 test ! -s conftest.err
19597 } && test -s conftest$ac_exeext &&
19598 $as_test_x conftest$ac_exeext; then
19599 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19601 echo "$as_me: failed program was
:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19604 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19608 conftest$ac_exeext conftest.$ac_ext
19609 LIBS=$ac_check_lib_save_LIBS
19611 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19612 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19613 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19614 cat >>confdefs.h <<_ACEOF
19615 #define HAVE_LIBCRYPTO 1
19618 LIBS="-lcrypto $LIBS"
19623 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19624 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19625 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19626 echo $ECHO_N "(cached
) $ECHO_C" >&6
19628 ac_check_lib_save_LIBS=$LIBS
19629 LIBS="-lkrb5 $LIBS"
19630 cat >conftest.$ac_ext <<_ACEOF
19633 cat confdefs.h >>conftest.$ac_ext
19634 cat >>conftest.$ac_ext <<_ACEOF
19635 /* end confdefs.h. */
19637 /* Override any GCC internal prototype to avoid an error.
19638 Use char because int might match the return type of a GCC
19639 builtin and then its argument prototype would still apply. */
19643 char krb5_init_context ();
19647 return krb5_init_context ();
19652 rm -f conftest.$ac_objext conftest$ac_exeext
19653 if { (ac_try="$ac_link"
19654 case "(($ac_try" in
19655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19656 *) ac_try_echo=$ac_try;;
19658 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19659 (eval "$ac_link") 2>conftest.er1
19661 grep -v '^ *+' conftest.er1 >conftest.err
19663 cat conftest.err >&5
19664 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19665 (exit $ac_status); } && {
19666 test -z "$ac_c_werror_flag" ||
19667 test ! -s conftest.err
19668 } && test -s conftest$ac_exeext &&
19669 $as_test_x conftest$ac_exeext; then
19670 ac_cv_lib_krb5_krb5_init_context=yes
19672 echo "$as_me: failed program was
:" >&5
19673 sed 's/^/| /' conftest.$ac_ext >&5
19675 ac_cv_lib_krb5_krb5_init_context=no
19678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19679 conftest$ac_exeext conftest.$ac_ext
19680 LIBS=$ac_check_lib_save_LIBS
19682 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19683 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19684 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19685 cat >>confdefs.h <<_ACEOF
19686 #define HAVE_LIBKRB5 1
19689 LIBS="-lkrb5 $LIBS"
19693 if test "${with_kerberos5+set}" != set; then
19695 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19696 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19697 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19698 echo $ECHO_N "(cached
) $ECHO_C" >&6
19700 ac_check_lib_save_LIBS=$LIBS
19701 LIBS="-ldes425 $LIBS"
19702 cat >conftest.$ac_ext <<_ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19709 /* Override any GCC internal prototype to avoid an error.
19710 Use char because int might match the return type of a GCC
19711 builtin and then its argument prototype would still apply. */
19715 char des_cbc_encrypt ();
19719 return des_cbc_encrypt ();
19724 rm -f conftest.$ac_objext conftest$ac_exeext
19725 if { (ac_try="$ac_link"
19726 case "(($ac_try" in
19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728 *) ac_try_echo=$ac_try;;
19730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19731 (eval "$ac_link") 2>conftest.er1
19733 grep -v '^ *+' conftest.er1 >conftest.err
19735 cat conftest.err >&5
19736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19737 (exit $ac_status); } && {
19738 test -z "$ac_c_werror_flag" ||
19739 test ! -s conftest.err
19740 } && test -s conftest$ac_exeext &&
19741 $as_test_x conftest$ac_exeext; then
19742 ac_cv_lib_des425_des_cbc_encrypt=yes
19744 echo "$as_me: failed program was
:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19747 ac_cv_lib_des425_des_cbc_encrypt=no
19750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19751 conftest$ac_exeext conftest.$ac_ext
19752 LIBS=$ac_check_lib_save_LIBS
19754 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19755 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19756 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19757 cat >>confdefs.h <<_ACEOF
19758 #define HAVE_LIBDES425 1
19761 LIBS="-ldes425 $LIBS"
19765 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
19766 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
19767 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19768 echo $ECHO_N "(cached
) $ECHO_C" >&6
19770 ac_check_lib_save_LIBS=$LIBS
19772 cat >conftest.$ac_ext <<_ACEOF
19775 cat confdefs.h >>conftest.$ac_ext
19776 cat >>conftest.$ac_ext <<_ACEOF
19777 /* end confdefs.h. */
19779 /* Override any GCC internal prototype to avoid an error.
19780 Use char because int might match the return type of a GCC
19781 builtin and then its argument prototype would still apply. */
19785 char des_cbc_encrypt ();
19789 return des_cbc_encrypt ();
19794 rm -f conftest.$ac_objext conftest$ac_exeext
19795 if { (ac_try="$ac_link"
19796 case "(($ac_try" in
19797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19798 *) ac_try_echo=$ac_try;;
19800 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19801 (eval "$ac_link") 2>conftest.er1
19803 grep -v '^ *+' conftest.er1 >conftest.err
19805 cat conftest.err >&5
19806 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19807 (exit $ac_status); } && {
19808 test -z "$ac_c_werror_flag" ||
19809 test ! -s conftest.err
19810 } && test -s conftest$ac_exeext &&
19811 $as_test_x conftest$ac_exeext; then
19812 ac_cv_lib_des_des_cbc_encrypt=yes
19814 echo "$as_me: failed program was
:" >&5
19815 sed 's/^/| /' conftest.$ac_ext >&5
19817 ac_cv_lib_des_des_cbc_encrypt=no
19820 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19821 conftest$ac_exeext conftest.$ac_ext
19822 LIBS=$ac_check_lib_save_LIBS
19824 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
19825 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19826 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19827 cat >>confdefs.h <<_ACEOF
19828 #define HAVE_LIBDES 1
19838 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
19839 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
19840 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19841 echo $ECHO_N "(cached
) $ECHO_C" >&6
19843 ac_check_lib_save_LIBS=$LIBS
19844 LIBS="-lkrb4 $LIBS"
19845 cat >conftest.$ac_ext <<_ACEOF
19848 cat confdefs.h >>conftest.$ac_ext
19849 cat >>conftest.$ac_ext <<_ACEOF
19850 /* end confdefs.h. */
19852 /* Override any GCC internal prototype to avoid an error.
19853 Use char because int might match the return type of a GCC
19854 builtin and then its argument prototype would still apply. */
19858 char krb_get_cred ();
19862 return krb_get_cred ();
19867 rm -f conftest.$ac_objext conftest$ac_exeext
19868 if { (ac_try="$ac_link"
19869 case "(($ac_try" in
19870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19871 *) ac_try_echo=$ac_try;;
19873 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19874 (eval "$ac_link") 2>conftest.er1
19876 grep -v '^ *+' conftest.er1 >conftest.err
19878 cat conftest.err >&5
19879 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19880 (exit $ac_status); } && {
19881 test -z "$ac_c_werror_flag" ||
19882 test ! -s conftest.err
19883 } && test -s conftest$ac_exeext &&
19884 $as_test_x conftest$ac_exeext; then
19885 ac_cv_lib_krb4_krb_get_cred=yes
19887 echo "$as_me: failed program was
:" >&5
19888 sed 's/^/| /' conftest.$ac_ext >&5
19890 ac_cv_lib_krb4_krb_get_cred=no
19893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19894 conftest$ac_exeext conftest.$ac_ext
19895 LIBS=$ac_check_lib_save_LIBS
19897 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
19898 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19899 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19900 cat >>confdefs.h <<_ACEOF
19901 #define HAVE_LIBKRB4 1
19904 LIBS="-lkrb4 $LIBS"
19908 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
19909 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
19910 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19911 echo $ECHO_N "(cached
) $ECHO_C" >&6
19913 ac_check_lib_save_LIBS=$LIBS
19915 cat >conftest.$ac_ext <<_ACEOF
19918 cat confdefs.h >>conftest.$ac_ext
19919 cat >>conftest.$ac_ext <<_ACEOF
19920 /* end confdefs.h. */
19922 /* Override any GCC internal prototype to avoid an error.
19923 Use char because int might match the return type of a GCC
19924 builtin and then its argument prototype would still apply. */
19928 char krb_get_cred ();
19932 return krb_get_cred ();
19937 rm -f conftest.$ac_objext conftest$ac_exeext
19938 if { (ac_try="$ac_link"
19939 case "(($ac_try" in
19940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19941 *) ac_try_echo=$ac_try;;
19943 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19944 (eval "$ac_link") 2>conftest.er1
19946 grep -v '^ *+' conftest.er1 >conftest.err
19948 cat conftest.err >&5
19949 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19950 (exit $ac_status); } && {
19951 test -z "$ac_c_werror_flag" ||
19952 test ! -s conftest.err
19953 } && test -s conftest$ac_exeext &&
19954 $as_test_x conftest$ac_exeext; then
19955 ac_cv_lib_krb_krb_get_cred=yes
19957 echo "$as_me: failed program was
:" >&5
19958 sed 's/^/| /' conftest.$ac_ext >&5
19960 ac_cv_lib_krb_krb_get_cred=no
19963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19964 conftest$ac_exeext conftest.$ac_ext
19965 LIBS=$ac_check_lib_save_LIBS
19967 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
19968 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19969 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19970 cat >>confdefs.h <<_ACEOF
19971 #define HAVE_LIBKRB 1
19982 if test "${with_kerberos5+set}" = set; then
19984 for ac_header in krb5.h
19986 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19987 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19988 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19989 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19990 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19991 echo $ECHO_N "(cached
) $ECHO_C" >&6
19993 ac_res=`eval echo '${'$as_ac_Header'}'`
19994 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19995 echo "${ECHO_T}$ac_res" >&6; }
19997 # Is the header compilable?
19998 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19999 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20000 cat >conftest.$ac_ext <<_ACEOF
20003 cat confdefs.h >>conftest.$ac_ext
20004 cat >>conftest.$ac_ext <<_ACEOF
20005 /* end confdefs.h. */
20006 $ac_includes_default
20007 #include <$ac_header>
20009 rm -f conftest.$ac_objext
20010 if { (ac_try="$ac_compile"
20011 case "(($ac_try" in
20012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20013 *) ac_try_echo=$ac_try;;
20015 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20016 (eval "$ac_compile") 2>conftest.er1
20018 grep -v '^ *+' conftest.er1 >conftest.err
20020 cat conftest.err >&5
20021 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20022 (exit $ac_status); } && {
20023 test -z "$ac_c_werror_flag" ||
20024 test ! -s conftest.err
20025 } && test -s conftest.$ac_objext; then
20026 ac_header_compiler=yes
20028 echo "$as_me: failed program was
:" >&5
20029 sed 's/^/| /' conftest.$ac_ext >&5
20031 ac_header_compiler=no
20034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20035 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20036 echo "${ECHO_T}$ac_header_compiler" >&6; }
20038 # Is the header present?
20039 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20040 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20041 cat >conftest.$ac_ext <<_ACEOF
20044 cat confdefs.h >>conftest.$ac_ext
20045 cat >>conftest.$ac_ext <<_ACEOF
20046 /* end confdefs.h. */
20047 #include <$ac_header>
20049 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20050 case "(($ac_try" in
20051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20052 *) ac_try_echo=$ac_try;;
20054 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20055 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20057 grep -v '^ *+' conftest.er1 >conftest.err
20059 cat conftest.err >&5
20060 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20061 (exit $ac_status); } >/dev/null && {
20062 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20063 test ! -s conftest.err
20065 ac_header_preproc=yes
20067 echo "$as_me: failed program was
:" >&5
20068 sed 's/^/| /' conftest.$ac_ext >&5
20070 ac_header_preproc=no
20073 rm -f conftest.err conftest.$ac_ext
20074 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20075 echo "${ECHO_T}$ac_header_preproc" >&6; }
20077 # So? What about this header?
20078 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20080 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20081 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20082 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20083 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20084 ac_header_preproc=yes
20087 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20088 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20089 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20090 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20091 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20092 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20093 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20094 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20095 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20096 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20097 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20098 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20102 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20103 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20104 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20105 echo $ECHO_N "(cached
) $ECHO_C" >&6
20107 eval "$as_ac_Header=\
$ac_header_preproc"
20109 ac_res=`eval echo '${'$as_ac_Header'}'`
20110 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20111 echo "${ECHO_T}$ac_res" >&6; }
20114 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20115 cat >>confdefs.h <<_ACEOF
20116 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20125 for ac_header in des.h
20127 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20128 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20129 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20130 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20131 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20132 echo $ECHO_N "(cached
) $ECHO_C" >&6
20134 ac_res=`eval echo '${'$as_ac_Header'}'`
20135 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20136 echo "${ECHO_T}$ac_res" >&6; }
20138 # Is the header compilable?
20139 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20140 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20141 cat >conftest.$ac_ext <<_ACEOF
20144 cat confdefs.h >>conftest.$ac_ext
20145 cat >>conftest.$ac_ext <<_ACEOF
20146 /* end confdefs.h. */
20147 $ac_includes_default
20148 #include <$ac_header>
20150 rm -f conftest.$ac_objext
20151 if { (ac_try="$ac_compile"
20152 case "(($ac_try" in
20153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20154 *) ac_try_echo=$ac_try;;
20156 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20157 (eval "$ac_compile") 2>conftest.er1
20159 grep -v '^ *+' conftest.er1 >conftest.err
20161 cat conftest.err >&5
20162 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20163 (exit $ac_status); } && {
20164 test -z "$ac_c_werror_flag" ||
20165 test ! -s conftest.err
20166 } && test -s conftest.$ac_objext; then
20167 ac_header_compiler=yes
20169 echo "$as_me: failed program was
:" >&5
20170 sed 's/^/| /' conftest.$ac_ext >&5
20172 ac_header_compiler=no
20175 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20176 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20177 echo "${ECHO_T}$ac_header_compiler" >&6; }
20179 # Is the header present?
20180 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20181 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20182 cat >conftest.$ac_ext <<_ACEOF
20185 cat confdefs.h >>conftest.$ac_ext
20186 cat >>conftest.$ac_ext <<_ACEOF
20187 /* end confdefs.h. */
20188 #include <$ac_header>
20190 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20191 case "(($ac_try" in
20192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193 *) ac_try_echo=$ac_try;;
20195 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20196 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20198 grep -v '^ *+' conftest.er1 >conftest.err
20200 cat conftest.err >&5
20201 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20202 (exit $ac_status); } >/dev/null && {
20203 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20204 test ! -s conftest.err
20206 ac_header_preproc=yes
20208 echo "$as_me: failed program was
:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20211 ac_header_preproc=no
20214 rm -f conftest.err conftest.$ac_ext
20215 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20216 echo "${ECHO_T}$ac_header_preproc" >&6; }
20218 # So? What about this header?
20219 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20221 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20222 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20223 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20224 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20225 ac_header_preproc=yes
20228 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20229 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20230 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20231 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20232 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20233 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20234 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20235 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20236 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20237 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20238 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20239 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20243 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20244 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20245 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20246 echo $ECHO_N "(cached
) $ECHO_C" >&6
20248 eval "$as_ac_Header=\
$ac_header_preproc"
20250 ac_res=`eval echo '${'$as_ac_Header'}'`
20251 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20252 echo "${ECHO_T}$ac_res" >&6; }
20255 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20256 cat >>confdefs.h <<_ACEOF
20257 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20262 for ac_header in kerberosIV/des.h
20264 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20265 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20266 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20267 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20268 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20269 echo $ECHO_N "(cached
) $ECHO_C" >&6
20271 ac_res=`eval echo '${'$as_ac_Header'}'`
20272 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20273 echo "${ECHO_T}$ac_res" >&6; }
20275 # Is the header compilable?
20276 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20277 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20278 cat >conftest.$ac_ext <<_ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284 $ac_includes_default
20285 #include <$ac_header>
20287 rm -f conftest.$ac_objext
20288 if { (ac_try="$ac_compile"
20289 case "(($ac_try" in
20290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20291 *) ac_try_echo=$ac_try;;
20293 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20294 (eval "$ac_compile") 2>conftest.er1
20296 grep -v '^ *+' conftest.er1 >conftest.err
20298 cat conftest.err >&5
20299 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20300 (exit $ac_status); } && {
20301 test -z "$ac_c_werror_flag" ||
20302 test ! -s conftest.err
20303 } && test -s conftest.$ac_objext; then
20304 ac_header_compiler=yes
20306 echo "$as_me: failed program was
:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20309 ac_header_compiler=no
20312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20313 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20314 echo "${ECHO_T}$ac_header_compiler" >&6; }
20316 # Is the header present?
20317 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20318 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20319 cat >conftest.$ac_ext <<_ACEOF
20322 cat confdefs.h >>conftest.$ac_ext
20323 cat >>conftest.$ac_ext <<_ACEOF
20324 /* end confdefs.h. */
20325 #include <$ac_header>
20327 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20328 case "(($ac_try" in
20329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20330 *) ac_try_echo=$ac_try;;
20332 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20333 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20335 grep -v '^ *+' conftest.er1 >conftest.err
20337 cat conftest.err >&5
20338 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20339 (exit $ac_status); } >/dev/null && {
20340 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20341 test ! -s conftest.err
20343 ac_header_preproc=yes
20345 echo "$as_me: failed program was
:" >&5
20346 sed 's/^/| /' conftest.$ac_ext >&5
20348 ac_header_preproc=no
20351 rm -f conftest.err conftest.$ac_ext
20352 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20353 echo "${ECHO_T}$ac_header_preproc" >&6; }
20355 # So? What about this header?
20356 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20358 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20359 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20360 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20361 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20362 ac_header_preproc=yes
20365 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20366 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20367 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20368 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20369 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20370 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20371 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20372 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20373 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20374 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20375 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20376 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20380 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20381 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20382 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20383 echo $ECHO_N "(cached
) $ECHO_C" >&6
20385 eval "$as_ac_Header=\
$ac_header_preproc"
20387 ac_res=`eval echo '${'$as_ac_Header'}'`
20388 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20389 echo "${ECHO_T}$ac_res" >&6; }
20392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20393 cat >>confdefs.h <<_ACEOF
20394 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20399 for ac_header in kerberos/des.h
20401 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20402 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20403 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20404 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20405 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20406 echo $ECHO_N "(cached
) $ECHO_C" >&6
20408 ac_res=`eval echo '${'$as_ac_Header'}'`
20409 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20410 echo "${ECHO_T}$ac_res" >&6; }
20412 # Is the header compilable?
20413 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20414 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20415 cat >conftest.$ac_ext <<_ACEOF
20418 cat confdefs.h >>conftest.$ac_ext
20419 cat >>conftest.$ac_ext <<_ACEOF
20420 /* end confdefs.h. */
20421 $ac_includes_default
20422 #include <$ac_header>
20424 rm -f conftest.$ac_objext
20425 if { (ac_try="$ac_compile"
20426 case "(($ac_try" in
20427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20428 *) ac_try_echo=$ac_try;;
20430 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20431 (eval "$ac_compile") 2>conftest.er1
20433 grep -v '^ *+' conftest.er1 >conftest.err
20435 cat conftest.err >&5
20436 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20437 (exit $ac_status); } && {
20438 test -z "$ac_c_werror_flag" ||
20439 test ! -s conftest.err
20440 } && test -s conftest.$ac_objext; then
20441 ac_header_compiler=yes
20443 echo "$as_me: failed program was
:" >&5
20444 sed 's/^/| /' conftest.$ac_ext >&5
20446 ac_header_compiler=no
20449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20450 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20451 echo "${ECHO_T}$ac_header_compiler" >&6; }
20453 # Is the header present?
20454 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20455 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20456 cat >conftest.$ac_ext <<_ACEOF
20459 cat confdefs.h >>conftest.$ac_ext
20460 cat >>conftest.$ac_ext <<_ACEOF
20461 /* end confdefs.h. */
20462 #include <$ac_header>
20464 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20465 case "(($ac_try" in
20466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20467 *) ac_try_echo=$ac_try;;
20469 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20470 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20472 grep -v '^ *+' conftest.er1 >conftest.err
20474 cat conftest.err >&5
20475 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20476 (exit $ac_status); } >/dev/null && {
20477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20478 test ! -s conftest.err
20480 ac_header_preproc=yes
20482 echo "$as_me: failed program was
:" >&5
20483 sed 's/^/| /' conftest.$ac_ext >&5
20485 ac_header_preproc=no
20488 rm -f conftest.err conftest.$ac_ext
20489 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20490 echo "${ECHO_T}$ac_header_preproc" >&6; }
20492 # So? What about this header?
20493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20495 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20496 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20497 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20499 ac_header_preproc=yes
20502 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20503 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20504 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20505 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20506 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20507 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20508 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20509 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20510 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20512 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20513 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20517 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20518 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20519 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20520 echo $ECHO_N "(cached
) $ECHO_C" >&6
20522 eval "$as_ac_Header=\
$ac_header_preproc"
20524 ac_res=`eval echo '${'$as_ac_Header'}'`
20525 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20526 echo "${ECHO_T}$ac_res" >&6; }
20529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20530 cat >>confdefs.h <<_ACEOF
20531 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20547 for ac_header in krb.h
20549 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20550 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20551 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20552 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20553 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20554 echo $ECHO_N "(cached
) $ECHO_C" >&6
20556 ac_res=`eval echo '${'$as_ac_Header'}'`
20557 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20558 echo "${ECHO_T}$ac_res" >&6; }
20560 # Is the header compilable?
20561 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20562 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20563 cat >conftest.$ac_ext <<_ACEOF
20566 cat confdefs.h >>conftest.$ac_ext
20567 cat >>conftest.$ac_ext <<_ACEOF
20568 /* end confdefs.h. */
20569 $ac_includes_default
20570 #include <$ac_header>
20572 rm -f conftest.$ac_objext
20573 if { (ac_try="$ac_compile"
20574 case "(($ac_try" in
20575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20576 *) ac_try_echo=$ac_try;;
20578 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20579 (eval "$ac_compile") 2>conftest.er1
20581 grep -v '^ *+' conftest.er1 >conftest.err
20583 cat conftest.err >&5
20584 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20585 (exit $ac_status); } && {
20586 test -z "$ac_c_werror_flag" ||
20587 test ! -s conftest.err
20588 } && test -s conftest.$ac_objext; then
20589 ac_header_compiler=yes
20591 echo "$as_me: failed program was
:" >&5
20592 sed 's/^/| /' conftest.$ac_ext >&5
20594 ac_header_compiler=no
20597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20598 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20599 echo "${ECHO_T}$ac_header_compiler" >&6; }
20601 # Is the header present?
20602 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20603 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20604 cat >conftest.$ac_ext <<_ACEOF
20607 cat confdefs.h >>conftest.$ac_ext
20608 cat >>conftest.$ac_ext <<_ACEOF
20609 /* end confdefs.h. */
20610 #include <$ac_header>
20612 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20613 case "(($ac_try" in
20614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20615 *) ac_try_echo=$ac_try;;
20617 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20618 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20620 grep -v '^ *+' conftest.er1 >conftest.err
20622 cat conftest.err >&5
20623 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20624 (exit $ac_status); } >/dev/null && {
20625 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20626 test ! -s conftest.err
20628 ac_header_preproc=yes
20630 echo "$as_me: failed program was
:" >&5
20631 sed 's/^/| /' conftest.$ac_ext >&5
20633 ac_header_preproc=no
20636 rm -f conftest.err conftest.$ac_ext
20637 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20638 echo "${ECHO_T}$ac_header_preproc" >&6; }
20640 # So? What about this header?
20641 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20643 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20644 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20645 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20646 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20647 ac_header_preproc=yes
20650 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20651 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20652 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20653 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20654 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20655 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20656 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20657 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20658 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20659 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20660 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20661 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20665 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20666 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20667 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20668 echo $ECHO_N "(cached
) $ECHO_C" >&6
20670 eval "$as_ac_Header=\
$ac_header_preproc"
20672 ac_res=`eval echo '${'$as_ac_Header'}'`
20673 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20674 echo "${ECHO_T}$ac_res" >&6; }
20677 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20678 cat >>confdefs.h <<_ACEOF
20679 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20684 for ac_header in kerberosIV/krb.h
20686 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20687 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20688 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20689 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20690 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20691 echo $ECHO_N "(cached
) $ECHO_C" >&6
20693 ac_res=`eval echo '${'$as_ac_Header'}'`
20694 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20695 echo "${ECHO_T}$ac_res" >&6; }
20697 # Is the header compilable?
20698 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20699 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20700 cat >conftest.$ac_ext <<_ACEOF
20703 cat confdefs.h >>conftest.$ac_ext
20704 cat >>conftest.$ac_ext <<_ACEOF
20705 /* end confdefs.h. */
20706 $ac_includes_default
20707 #include <$ac_header>
20709 rm -f conftest.$ac_objext
20710 if { (ac_try="$ac_compile"
20711 case "(($ac_try" in
20712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20713 *) ac_try_echo=$ac_try;;
20715 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20716 (eval "$ac_compile") 2>conftest.er1
20718 grep -v '^ *+' conftest.er1 >conftest.err
20720 cat conftest.err >&5
20721 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20722 (exit $ac_status); } && {
20723 test -z "$ac_c_werror_flag" ||
20724 test ! -s conftest.err
20725 } && test -s conftest.$ac_objext; then
20726 ac_header_compiler=yes
20728 echo "$as_me: failed program was
:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20731 ac_header_compiler=no
20734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20735 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20736 echo "${ECHO_T}$ac_header_compiler" >&6; }
20738 # Is the header present?
20739 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20740 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20741 cat >conftest.$ac_ext <<_ACEOF
20744 cat confdefs.h >>conftest.$ac_ext
20745 cat >>conftest.$ac_ext <<_ACEOF
20746 /* end confdefs.h. */
20747 #include <$ac_header>
20749 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20750 case "(($ac_try" in
20751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20752 *) ac_try_echo=$ac_try;;
20754 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20755 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20757 grep -v '^ *+' conftest.er1 >conftest.err
20759 cat conftest.err >&5
20760 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20761 (exit $ac_status); } >/dev/null && {
20762 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20763 test ! -s conftest.err
20765 ac_header_preproc=yes
20767 echo "$as_me: failed program was
:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20770 ac_header_preproc=no
20773 rm -f conftest.err conftest.$ac_ext
20774 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20775 echo "${ECHO_T}$ac_header_preproc" >&6; }
20777 # So? What about this header?
20778 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20780 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20781 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20782 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20783 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20784 ac_header_preproc=yes
20787 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20788 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20789 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20790 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20791 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20792 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20793 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20794 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20795 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20796 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20797 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20798 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20802 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20803 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20804 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20805 echo $ECHO_N "(cached
) $ECHO_C" >&6
20807 eval "$as_ac_Header=\
$ac_header_preproc"
20809 ac_res=`eval echo '${'$as_ac_Header'}'`
20810 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20811 echo "${ECHO_T}$ac_res" >&6; }
20814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20815 cat >>confdefs.h <<_ACEOF
20816 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20821 for ac_header in kerberos/krb.h
20823 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20824 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20825 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20826 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20827 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20828 echo $ECHO_N "(cached
) $ECHO_C" >&6
20830 ac_res=`eval echo '${'$as_ac_Header'}'`
20831 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20832 echo "${ECHO_T}$ac_res" >&6; }
20834 # Is the header compilable?
20835 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20836 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20837 cat >conftest.$ac_ext <<_ACEOF
20840 cat confdefs.h >>conftest.$ac_ext
20841 cat >>conftest.$ac_ext <<_ACEOF
20842 /* end confdefs.h. */
20843 $ac_includes_default
20844 #include <$ac_header>
20846 rm -f conftest.$ac_objext
20847 if { (ac_try="$ac_compile"
20848 case "(($ac_try" in
20849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20850 *) ac_try_echo=$ac_try;;
20852 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20853 (eval "$ac_compile") 2>conftest.er1
20855 grep -v '^ *+' conftest.er1 >conftest.err
20857 cat conftest.err >&5
20858 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20859 (exit $ac_status); } && {
20860 test -z "$ac_c_werror_flag" ||
20861 test ! -s conftest.err
20862 } && test -s conftest.$ac_objext; then
20863 ac_header_compiler=yes
20865 echo "$as_me: failed program was
:" >&5
20866 sed 's/^/| /' conftest.$ac_ext >&5
20868 ac_header_compiler=no
20871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20872 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20873 echo "${ECHO_T}$ac_header_compiler" >&6; }
20875 # Is the header present?
20876 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20877 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20878 cat >conftest.$ac_ext <<_ACEOF
20881 cat confdefs.h >>conftest.$ac_ext
20882 cat >>conftest.$ac_ext <<_ACEOF
20883 /* end confdefs.h. */
20884 #include <$ac_header>
20886 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20887 case "(($ac_try" in
20888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20889 *) ac_try_echo=$ac_try;;
20891 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20892 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20894 grep -v '^ *+' conftest.er1 >conftest.err
20896 cat conftest.err >&5
20897 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20898 (exit $ac_status); } >/dev/null && {
20899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20900 test ! -s conftest.err
20902 ac_header_preproc=yes
20904 echo "$as_me: failed program was
:" >&5
20905 sed 's/^/| /' conftest.$ac_ext >&5
20907 ac_header_preproc=no
20910 rm -f conftest.err conftest.$ac_ext
20911 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20912 echo "${ECHO_T}$ac_header_preproc" >&6; }
20914 # So? What about this header?
20915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20917 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20918 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20919 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20921 ac_header_preproc=yes
20924 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20925 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20926 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20927 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20928 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20929 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20930 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20931 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20932 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20934 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20935 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20939 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20940 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20941 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20942 echo $ECHO_N "(cached
) $ECHO_C" >&6
20944 eval "$as_ac_Header=\
$ac_header_preproc"
20946 ac_res=`eval echo '${'$as_ac_Header'}'`
20947 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20948 echo "${ECHO_T}$ac_res" >&6; }
20951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20952 cat >>confdefs.h <<_ACEOF
20953 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20970 for ac_header in com_err.h
20972 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20973 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20974 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20975 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20976 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20977 echo $ECHO_N "(cached
) $ECHO_C" >&6
20979 ac_res=`eval echo '${'$as_ac_Header'}'`
20980 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20981 echo "${ECHO_T}$ac_res" >&6; }
20983 # Is the header compilable?
20984 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20985 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20986 cat >conftest.$ac_ext <<_ACEOF
20989 cat confdefs.h >>conftest.$ac_ext
20990 cat >>conftest.$ac_ext <<_ACEOF
20991 /* end confdefs.h. */
20992 $ac_includes_default
20993 #include <$ac_header>
20995 rm -f conftest.$ac_objext
20996 if { (ac_try="$ac_compile"
20997 case "(($ac_try" in
20998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20999 *) ac_try_echo=$ac_try;;
21001 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21002 (eval "$ac_compile") 2>conftest.er1
21004 grep -v '^ *+' conftest.er1 >conftest.err
21006 cat conftest.err >&5
21007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21008 (exit $ac_status); } && {
21009 test -z "$ac_c_werror_flag" ||
21010 test ! -s conftest.err
21011 } && test -s conftest.$ac_objext; then
21012 ac_header_compiler=yes
21014 echo "$as_me: failed program was
:" >&5
21015 sed 's/^/| /' conftest.$ac_ext >&5
21017 ac_header_compiler=no
21020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21021 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21022 echo "${ECHO_T}$ac_header_compiler" >&6; }
21024 # Is the header present?
21025 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21026 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21027 cat >conftest.$ac_ext <<_ACEOF
21030 cat confdefs.h >>conftest.$ac_ext
21031 cat >>conftest.$ac_ext <<_ACEOF
21032 /* end confdefs.h. */
21033 #include <$ac_header>
21035 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21036 case "(($ac_try" in
21037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038 *) ac_try_echo=$ac_try;;
21040 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21041 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21043 grep -v '^ *+' conftest.er1 >conftest.err
21045 cat conftest.err >&5
21046 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21047 (exit $ac_status); } >/dev/null && {
21048 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21049 test ! -s conftest.err
21051 ac_header_preproc=yes
21053 echo "$as_me: failed program was
:" >&5
21054 sed 's/^/| /' conftest.$ac_ext >&5
21056 ac_header_preproc=no
21059 rm -f conftest.err conftest.$ac_ext
21060 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21061 echo "${ECHO_T}$ac_header_preproc" >&6; }
21063 # So? What about this header?
21064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21066 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21067 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21068 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21070 ac_header_preproc=yes
21073 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21074 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21075 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21076 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21077 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21078 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21079 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21080 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21081 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21083 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21084 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21088 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21089 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21090 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21091 echo $ECHO_N "(cached
) $ECHO_C" >&6
21093 eval "$as_ac_Header=\
$ac_header_preproc"
21095 ac_res=`eval echo '${'$as_ac_Header'}'`
21096 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21097 echo "${ECHO_T}$ac_res" >&6; }
21100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21101 cat >>confdefs.h <<_ACEOF
21102 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21111 # Solaris requires -lintl if you want strerror (which calls dgettext)
21112 # to return localized messages.
21114 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21115 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21116 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21117 echo $ECHO_N "(cached
) $ECHO_C" >&6
21119 ac_check_lib_save_LIBS=$LIBS
21120 LIBS="-lintl $LIBS"
21121 cat >conftest.$ac_ext <<_ACEOF
21124 cat confdefs.h >>conftest.$ac_ext
21125 cat >>conftest.$ac_ext <<_ACEOF
21126 /* end confdefs.h. */
21128 /* Override any GCC internal prototype to avoid an error.
21129 Use char because int might match the return type of a GCC
21130 builtin and then its argument prototype would still apply. */
21138 return dgettext ();
21143 rm -f conftest.$ac_objext conftest$ac_exeext
21144 if { (ac_try="$ac_link"
21145 case "(($ac_try" in
21146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21147 *) ac_try_echo=$ac_try;;
21149 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21150 (eval "$ac_link") 2>conftest.er1
21152 grep -v '^ *+' conftest.er1 >conftest.err
21154 cat conftest.err >&5
21155 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21156 (exit $ac_status); } && {
21157 test -z "$ac_c_werror_flag" ||
21158 test ! -s conftest.err
21159 } && test -s conftest$ac_exeext &&
21160 $as_test_x conftest$ac_exeext; then
21161 ac_cv_lib_intl_dgettext=yes
21163 echo "$as_me: failed program was
:" >&5
21164 sed 's/^/| /' conftest.$ac_ext >&5
21166 ac_cv_lib_intl_dgettext=no
21169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21170 conftest$ac_exeext conftest.$ac_ext
21171 LIBS=$ac_check_lib_save_LIBS
21173 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21174 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21175 if test $ac_cv_lib_intl_dgettext = yes; then
21176 cat >>confdefs.h <<_ACEOF
21177 #define HAVE_LIBINTL 1
21180 LIBS="-lintl $LIBS"
21185 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21186 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21187 if test "${emacs_cv_localtime_cache+set}" = set; then
21188 echo $ECHO_N "(cached
) $ECHO_C" >&6
21190 if test x$ac_cv_func_tzset = xyes; then
21191 if test "$cross_compiling" = yes; then
21192 # If we have tzset, assume the worst when cross-compiling.
21193 emacs_cv_localtime_cache=yes
21195 cat >conftest.$ac_ext <<_ACEOF
21198 cat confdefs.h >>conftest.$ac_ext
21199 cat >>conftest.$ac_ext <<_ACEOF
21200 /* end confdefs.h. */
21202 extern char **environ;
21206 for (to = from = environ; (*to = *from); from++)
21207 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21210 char TZ_GMT0[] = "TZ
=GMT0
";
21211 char TZ_PST8[] = "TZ
=PST8
";
21214 time_t now = time ((time_t *) 0);
21215 int hour_GMT0, hour_unset;
21216 if (putenv (TZ_GMT0) != 0)
21218 hour_GMT0 = localtime (&now)->tm_hour;
21220 hour_unset = localtime (&now)->tm_hour;
21221 if (putenv (TZ_PST8) != 0)
21223 if (localtime (&now)->tm_hour == hour_GMT0)
21226 if (localtime (&now)->tm_hour != hour_unset)
21231 rm -f conftest$ac_exeext
21232 if { (ac_try="$ac_link"
21233 case "(($ac_try" in
21234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21235 *) ac_try_echo=$ac_try;;
21237 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21238 (eval "$ac_link") 2>&5
21240 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21242 { (case "(($ac_try" in
21243 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21244 *) ac_try_echo=$ac_try;;
21246 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21247 (eval "$ac_try") 2>&5
21249 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21250 (exit $ac_status); }; }; then
21251 emacs_cv_localtime_cache=no
21253 echo "$as_me: program exited with status
$ac_status" >&5
21254 echo "$as_me: failed program was
:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21257 ( exit $ac_status )
21258 emacs_cv_localtime_cache=yes
21260 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21265 # If we lack tzset, report that localtime does not cache TZ,
21266 # since we can't invalidate the cache if we don't have tzset.
21267 emacs_cv_localtime_cache=no
21270 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21271 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21272 if test $emacs_cv_localtime_cache = yes; then
21274 cat >>confdefs.h <<\_ACEOF
21275 #define LOCALTIME_CACHE 1
21280 if test "x
$HAVE_TIMEVAL" = xyes; then
21282 for ac_func in gettimeofday
21284 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21285 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21286 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21287 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21288 echo $ECHO_N "(cached
) $ECHO_C" >&6
21290 cat >conftest.$ac_ext <<_ACEOF
21293 cat confdefs.h >>conftest.$ac_ext
21294 cat >>conftest.$ac_ext <<_ACEOF
21295 /* end confdefs.h. */
21296 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21298 #define $ac_func innocuous_$ac_func
21300 /* System header to define __stub macros and hopefully few prototypes,
21301 which can conflict with char $ac_func (); below.
21302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21303 <limits.h> exists even on freestanding compilers. */
21306 # include <limits.h>
21308 # include <assert.h>
21313 /* Override any GCC internal prototype to avoid an error.
21314 Use char because int might match the return type of a GCC
21315 builtin and then its argument prototype would still apply. */
21320 /* The GNU C library defines this for functions which it implements
21321 to always fail with ENOSYS. Some functions are actually named
21322 something starting with __ and the normal name is an alias. */
21323 #if defined __stub_$ac_func || defined __stub___$ac_func
21330 return $ac_func ();
21335 rm -f conftest.$ac_objext conftest$ac_exeext
21336 if { (ac_try="$ac_link"
21337 case "(($ac_try" in
21338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21339 *) ac_try_echo=$ac_try;;
21341 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21342 (eval "$ac_link") 2>conftest.er1
21344 grep -v '^ *+' conftest.er1 >conftest.err
21346 cat conftest.err >&5
21347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21348 (exit $ac_status); } && {
21349 test -z "$ac_c_werror_flag" ||
21350 test ! -s conftest.err
21351 } && test -s conftest$ac_exeext &&
21352 $as_test_x conftest$ac_exeext; then
21353 eval "$as_ac_var=yes"
21355 echo "$as_me: failed program was
:" >&5
21356 sed 's/^/| /' conftest.$ac_ext >&5
21358 eval "$as_ac_var=no
"
21361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21362 conftest$ac_exeext conftest.$ac_ext
21364 ac_res=`eval echo '${'$as_ac_var'}'`
21365 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21366 echo "${ECHO_T}$ac_res" >&6; }
21367 if test `eval echo '${'$as_ac_var'}'` = yes; then
21368 cat >>confdefs.h <<_ACEOF
21369 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21375 if test $ac_cv_func_gettimeofday = yes; then
21376 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21377 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21378 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21379 echo $ECHO_N "(cached
) $ECHO_C" >&6
21381 cat >conftest.$ac_ext <<_ACEOF
21384 cat confdefs.h >>conftest.$ac_ext
21385 cat >>conftest.$ac_ext <<_ACEOF
21386 /* end confdefs.h. */
21388 #ifdef TIME_WITH_SYS_TIME
21389 #include <sys/time.h>
21392 #ifdef HAVE_SYS_TIME_H
21393 #include <sys/time.h>
21401 struct timeval time;
21402 gettimeofday (&time, 0);
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 emacs_cv_gettimeofday_two_arguments=yes
21426 echo "$as_me: failed program was
:" >&5
21427 sed 's/^/| /' conftest.$ac_ext >&5
21429 emacs_cv_gettimeofday_two_arguments=no
21432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21434 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21435 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21436 if test $emacs_cv_gettimeofday_two_arguments = no; then
21438 cat >>confdefs.h <<\_ACEOF
21439 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21447 { echo "$as_me:$LINENO: checking
for socket
" >&5
21448 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21449 if test "${ac_cv_func_socket+set}" = set; then
21450 echo $ECHO_N "(cached
) $ECHO_C" >&6
21452 cat >conftest.$ac_ext <<_ACEOF
21455 cat confdefs.h >>conftest.$ac_ext
21456 cat >>conftest.$ac_ext <<_ACEOF
21457 /* end confdefs.h. */
21458 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21459 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21460 #define socket innocuous_socket
21462 /* System header to define __stub macros and hopefully few prototypes,
21463 which can conflict with char socket (); below.
21464 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21465 <limits.h> exists even on freestanding compilers. */
21468 # include <limits.h>
21470 # include <assert.h>
21475 /* Override any GCC internal prototype to avoid an error.
21476 Use char because int might match the return type of a GCC
21477 builtin and then its argument prototype would still apply. */
21482 /* The GNU C library defines this for functions which it implements
21483 to always fail with ENOSYS. Some functions are actually named
21484 something starting with __ and the normal name is an alias. */
21485 #if defined __stub_socket || defined __stub___socket
21497 rm -f conftest.$ac_objext conftest$ac_exeext
21498 if { (ac_try="$ac_link"
21499 case "(($ac_try" in
21500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21501 *) ac_try_echo=$ac_try;;
21503 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21504 (eval "$ac_link") 2>conftest.er1
21506 grep -v '^ *+' conftest.er1 >conftest.err
21508 cat conftest.err >&5
21509 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21510 (exit $ac_status); } && {
21511 test -z "$ac_c_werror_flag" ||
21512 test ! -s conftest.err
21513 } && test -s conftest$ac_exeext &&
21514 $as_test_x conftest$ac_exeext; then
21515 ac_cv_func_socket=yes
21517 echo "$as_me: failed program was
:" >&5
21518 sed 's/^/| /' conftest.$ac_ext >&5
21520 ac_cv_func_socket=no
21523 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21524 conftest$ac_exeext conftest.$ac_ext
21526 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21527 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21528 if test $ac_cv_func_socket = yes; then
21534 if test $ok_so_far = yes; then
21535 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21536 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21537 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21538 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21539 echo $ECHO_N "(cached
) $ECHO_C" >&6
21541 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21542 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21544 # Is the header compilable?
21545 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21546 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21547 cat >conftest.$ac_ext <<_ACEOF
21550 cat confdefs.h >>conftest.$ac_ext
21551 cat >>conftest.$ac_ext <<_ACEOF
21552 /* end confdefs.h. */
21553 $ac_includes_default
21554 #include <netinet/in.h>
21556 rm -f conftest.$ac_objext
21557 if { (ac_try="$ac_compile"
21558 case "(($ac_try" in
21559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21560 *) ac_try_echo=$ac_try;;
21562 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21563 (eval "$ac_compile") 2>conftest.er1
21565 grep -v '^ *+' conftest.er1 >conftest.err
21567 cat conftest.err >&5
21568 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21569 (exit $ac_status); } && {
21570 test -z "$ac_c_werror_flag" ||
21571 test ! -s conftest.err
21572 } && test -s conftest.$ac_objext; then
21573 ac_header_compiler=yes
21575 echo "$as_me: failed program was
:" >&5
21576 sed 's/^/| /' conftest.$ac_ext >&5
21578 ac_header_compiler=no
21581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21582 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21583 echo "${ECHO_T}$ac_header_compiler" >&6; }
21585 # Is the header present?
21586 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21587 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21588 cat >conftest.$ac_ext <<_ACEOF
21591 cat confdefs.h >>conftest.$ac_ext
21592 cat >>conftest.$ac_ext <<_ACEOF
21593 /* end confdefs.h. */
21594 #include <netinet/in.h>
21596 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21597 case "(($ac_try" in
21598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21599 *) ac_try_echo=$ac_try;;
21601 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21602 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21604 grep -v '^ *+' conftest.er1 >conftest.err
21606 cat conftest.err >&5
21607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21608 (exit $ac_status); } >/dev/null && {
21609 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21610 test ! -s conftest.err
21612 ac_header_preproc=yes
21614 echo "$as_me: failed program was
:" >&5
21615 sed 's/^/| /' conftest.$ac_ext >&5
21617 ac_header_preproc=no
21620 rm -f conftest.err conftest.$ac_ext
21621 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21622 echo "${ECHO_T}$ac_header_preproc" >&6; }
21624 # So? What about this header?
21625 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21627 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21628 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21629 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21630 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21631 ac_header_preproc=yes
21634 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21635 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21636 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21637 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21638 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21639 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21640 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21641 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21642 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21643 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21644 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21645 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21649 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21650 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21651 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21652 echo $ECHO_N "(cached
) $ECHO_C" >&6
21654 ac_cv_header_netinet_in_h=$ac_header_preproc
21656 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21657 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21660 if test $ac_cv_header_netinet_in_h = yes; then
21668 if test $ok_so_far = yes; then
21669 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21670 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21671 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21672 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21673 echo $ECHO_N "(cached
) $ECHO_C" >&6
21675 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21676 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21678 # Is the header compilable?
21679 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21680 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21681 cat >conftest.$ac_ext <<_ACEOF
21684 cat confdefs.h >>conftest.$ac_ext
21685 cat >>conftest.$ac_ext <<_ACEOF
21686 /* end confdefs.h. */
21687 $ac_includes_default
21688 #include <arpa/inet.h>
21690 rm -f conftest.$ac_objext
21691 if { (ac_try="$ac_compile"
21692 case "(($ac_try" in
21693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21694 *) ac_try_echo=$ac_try;;
21696 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21697 (eval "$ac_compile") 2>conftest.er1
21699 grep -v '^ *+' conftest.er1 >conftest.err
21701 cat conftest.err >&5
21702 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21703 (exit $ac_status); } && {
21704 test -z "$ac_c_werror_flag" ||
21705 test ! -s conftest.err
21706 } && test -s conftest.$ac_objext; then
21707 ac_header_compiler=yes
21709 echo "$as_me: failed program was
:" >&5
21710 sed 's/^/| /' conftest.$ac_ext >&5
21712 ac_header_compiler=no
21715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21716 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21717 echo "${ECHO_T}$ac_header_compiler" >&6; }
21719 # Is the header present?
21720 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21721 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21722 cat >conftest.$ac_ext <<_ACEOF
21725 cat confdefs.h >>conftest.$ac_ext
21726 cat >>conftest.$ac_ext <<_ACEOF
21727 /* end confdefs.h. */
21728 #include <arpa/inet.h>
21730 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21731 case "(($ac_try" in
21732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21733 *) ac_try_echo=$ac_try;;
21735 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21736 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21738 grep -v '^ *+' conftest.er1 >conftest.err
21740 cat conftest.err >&5
21741 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21742 (exit $ac_status); } >/dev/null && {
21743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21744 test ! -s conftest.err
21746 ac_header_preproc=yes
21748 echo "$as_me: failed program was
:" >&5
21749 sed 's/^/| /' conftest.$ac_ext >&5
21751 ac_header_preproc=no
21754 rm -f conftest.err conftest.$ac_ext
21755 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21756 echo "${ECHO_T}$ac_header_preproc" >&6; }
21758 # So? What about this header?
21759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21761 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21762 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21763 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
21764 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
21765 ac_header_preproc=yes
21768 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
21769 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
21770 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
21771 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
21772 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
21773 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
21774 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21775 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21776 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
21777 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
21778 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
21779 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
21783 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21784 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21785 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21786 echo $ECHO_N "(cached
) $ECHO_C" >&6
21788 ac_cv_header_arpa_inet_h=$ac_header_preproc
21790 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21791 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21794 if test $ac_cv_header_arpa_inet_h = yes; then
21802 if test $ok_so_far = yes; then
21804 cat >>confdefs.h <<\_ACEOF
21805 #define HAVE_INET_SOCKETS 1
21811 for ac_header in sys/ioctl.h
21813 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21814 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21815 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21816 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21817 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21818 echo $ECHO_N "(cached
) $ECHO_C" >&6
21820 ac_res=`eval echo '${'$as_ac_Header'}'`
21821 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21822 echo "${ECHO_T}$ac_res" >&6; }
21824 # Is the header compilable?
21825 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21826 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21827 cat >conftest.$ac_ext <<_ACEOF
21830 cat confdefs.h >>conftest.$ac_ext
21831 cat >>conftest.$ac_ext <<_ACEOF
21832 /* end confdefs.h. */
21833 $ac_includes_default
21834 #include <$ac_header>
21836 rm -f conftest.$ac_objext
21837 if { (ac_try="$ac_compile"
21838 case "(($ac_try" in
21839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21840 *) ac_try_echo=$ac_try;;
21842 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21843 (eval "$ac_compile") 2>conftest.er1
21845 grep -v '^ *+' conftest.er1 >conftest.err
21847 cat conftest.err >&5
21848 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21849 (exit $ac_status); } && {
21850 test -z "$ac_c_werror_flag" ||
21851 test ! -s conftest.err
21852 } && test -s conftest.$ac_objext; then
21853 ac_header_compiler=yes
21855 echo "$as_me: failed program was
:" >&5
21856 sed 's/^/| /' conftest.$ac_ext >&5
21858 ac_header_compiler=no
21861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21862 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21863 echo "${ECHO_T}$ac_header_compiler" >&6; }
21865 # Is the header present?
21866 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21867 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21868 cat >conftest.$ac_ext <<_ACEOF
21871 cat confdefs.h >>conftest.$ac_ext
21872 cat >>conftest.$ac_ext <<_ACEOF
21873 /* end confdefs.h. */
21874 #include <$ac_header>
21876 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21877 case "(($ac_try" in
21878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21879 *) ac_try_echo=$ac_try;;
21881 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21882 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21884 grep -v '^ *+' conftest.er1 >conftest.err
21886 cat conftest.err >&5
21887 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21888 (exit $ac_status); } >/dev/null && {
21889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21890 test ! -s conftest.err
21892 ac_header_preproc=yes
21894 echo "$as_me: failed program was
:" >&5
21895 sed 's/^/| /' conftest.$ac_ext >&5
21897 ac_header_preproc=no
21900 rm -f conftest.err conftest.$ac_ext
21901 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21902 echo "${ECHO_T}$ac_header_preproc" >&6; }
21904 # So? What about this header?
21905 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21907 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21908 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21909 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21910 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21911 ac_header_preproc=yes
21914 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21915 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21916 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21917 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21918 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21919 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21920 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21921 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21922 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21923 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21924 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21925 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21929 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21930 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21931 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21932 echo $ECHO_N "(cached
) $ECHO_C" >&6
21934 eval "$as_ac_Header=\
$ac_header_preproc"
21936 ac_res=`eval echo '${'$as_ac_Header'}'`
21937 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21938 echo "${ECHO_T}$ac_res" >&6; }
21941 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21942 cat >>confdefs.h <<_ACEOF
21943 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21951 if test -f /usr/lpp/X11/bin/smt.exp; then
21953 cat >>confdefs.h <<\_ACEOF
21954 #define HAVE_AIX_SMT_EXP 1
21959 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
21960 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
21961 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21962 { echo "$as_me:$LINENO: result
: yes" >&5
21963 echo "${ECHO_T}yes" >&6; }
21965 cat >>confdefs.h <<\_ACEOF
21966 #define HAVE_DEV_PTMX 1
21970 { echo "$as_me:$LINENO: result
: no
" >&5
21971 echo "${ECHO_T}no
" >&6; }
21974 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
21975 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
21976 if test "${ac_cv_type_pid_t+set}" = set; then
21977 echo $ECHO_N "(cached
) $ECHO_C" >&6
21979 cat >conftest.$ac_ext <<_ACEOF
21982 cat confdefs.h >>conftest.$ac_ext
21983 cat >>conftest.$ac_ext <<_ACEOF
21984 /* end confdefs.h. */
21985 $ac_includes_default
21986 typedef pid_t ac__type_new_;
21990 if ((ac__type_new_ *) 0)
21992 if (sizeof (ac__type_new_))
21998 rm -f conftest.$ac_objext
21999 if { (ac_try="$ac_compile"
22000 case "(($ac_try" in
22001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002 *) ac_try_echo=$ac_try;;
22004 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22005 (eval "$ac_compile") 2>conftest.er1
22007 grep -v '^ *+' conftest.er1 >conftest.err
22009 cat conftest.err >&5
22010 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22011 (exit $ac_status); } && {
22012 test -z "$ac_c_werror_flag" ||
22013 test ! -s conftest.err
22014 } && test -s conftest.$ac_objext; then
22015 ac_cv_type_pid_t=yes
22017 echo "$as_me: failed program was
:" >&5
22018 sed 's/^/| /' conftest.$ac_ext >&5
22020 ac_cv_type_pid_t=no
22023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22025 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22026 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22027 if test $ac_cv_type_pid_t = yes; then
22031 cat >>confdefs.h <<_ACEOF
22038 for ac_header in vfork.h
22040 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22041 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22042 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22043 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22044 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22045 echo $ECHO_N "(cached
) $ECHO_C" >&6
22047 ac_res=`eval echo '${'$as_ac_Header'}'`
22048 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22049 echo "${ECHO_T}$ac_res" >&6; }
22051 # Is the header compilable?
22052 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22053 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22054 cat >conftest.$ac_ext <<_ACEOF
22057 cat confdefs.h >>conftest.$ac_ext
22058 cat >>conftest.$ac_ext <<_ACEOF
22059 /* end confdefs.h. */
22060 $ac_includes_default
22061 #include <$ac_header>
22063 rm -f conftest.$ac_objext
22064 if { (ac_try="$ac_compile"
22065 case "(($ac_try" in
22066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22067 *) ac_try_echo=$ac_try;;
22069 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22070 (eval "$ac_compile") 2>conftest.er1
22072 grep -v '^ *+' conftest.er1 >conftest.err
22074 cat conftest.err >&5
22075 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22076 (exit $ac_status); } && {
22077 test -z "$ac_c_werror_flag" ||
22078 test ! -s conftest.err
22079 } && test -s conftest.$ac_objext; then
22080 ac_header_compiler=yes
22082 echo "$as_me: failed program was
:" >&5
22083 sed 's/^/| /' conftest.$ac_ext >&5
22085 ac_header_compiler=no
22088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22089 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22090 echo "${ECHO_T}$ac_header_compiler" >&6; }
22092 # Is the header present?
22093 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22094 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22095 cat >conftest.$ac_ext <<_ACEOF
22098 cat confdefs.h >>conftest.$ac_ext
22099 cat >>conftest.$ac_ext <<_ACEOF
22100 /* end confdefs.h. */
22101 #include <$ac_header>
22103 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22104 case "(($ac_try" in
22105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22106 *) ac_try_echo=$ac_try;;
22108 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22109 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22111 grep -v '^ *+' conftest.er1 >conftest.err
22113 cat conftest.err >&5
22114 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22115 (exit $ac_status); } >/dev/null && {
22116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22117 test ! -s conftest.err
22119 ac_header_preproc=yes
22121 echo "$as_me: failed program was
:" >&5
22122 sed 's/^/| /' conftest.$ac_ext >&5
22124 ac_header_preproc=no
22127 rm -f conftest.err conftest.$ac_ext
22128 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22129 echo "${ECHO_T}$ac_header_preproc" >&6; }
22131 # So? What about this header?
22132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22134 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22135 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22136 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22138 ac_header_preproc=yes
22141 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22142 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22143 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22144 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22145 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22146 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22147 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22148 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22149 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22151 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22152 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22156 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22157 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22158 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22159 echo $ECHO_N "(cached
) $ECHO_C" >&6
22161 eval "$as_ac_Header=\
$ac_header_preproc"
22163 ac_res=`eval echo '${'$as_ac_Header'}'`
22164 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22165 echo "${ECHO_T}$ac_res" >&6; }
22168 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22169 cat >>confdefs.h <<_ACEOF
22170 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22179 for ac_func in fork vfork
22181 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22182 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22183 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22184 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22185 echo $ECHO_N "(cached
) $ECHO_C" >&6
22187 cat >conftest.$ac_ext <<_ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h. */
22193 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22194 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22195 #define $ac_func innocuous_$ac_func
22197 /* System header to define __stub macros and hopefully few prototypes,
22198 which can conflict with char $ac_func (); below.
22199 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22200 <limits.h> exists even on freestanding compilers. */
22203 # include <limits.h>
22205 # include <assert.h>
22210 /* Override any GCC internal prototype to avoid an error.
22211 Use char because int might match the return type of a GCC
22212 builtin and then its argument prototype would still apply. */
22217 /* The GNU C library defines this for functions which it implements
22218 to always fail with ENOSYS. Some functions are actually named
22219 something starting with __ and the normal name is an alias. */
22220 #if defined __stub_$ac_func || defined __stub___$ac_func
22227 return $ac_func ();
22232 rm -f conftest.$ac_objext conftest$ac_exeext
22233 if { (ac_try="$ac_link"
22234 case "(($ac_try" in
22235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22236 *) ac_try_echo=$ac_try;;
22238 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22239 (eval "$ac_link") 2>conftest.er1
22241 grep -v '^ *+' conftest.er1 >conftest.err
22243 cat conftest.err >&5
22244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22245 (exit $ac_status); } && {
22246 test -z "$ac_c_werror_flag" ||
22247 test ! -s conftest.err
22248 } && test -s conftest$ac_exeext &&
22249 $as_test_x conftest$ac_exeext; then
22250 eval "$as_ac_var=yes"
22252 echo "$as_me: failed program was
:" >&5
22253 sed 's/^/| /' conftest.$ac_ext >&5
22255 eval "$as_ac_var=no
"
22258 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22259 conftest$ac_exeext conftest.$ac_ext
22261 ac_res=`eval echo '${'$as_ac_var'}'`
22262 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22263 echo "${ECHO_T}$ac_res" >&6; }
22264 if test `eval echo '${'$as_ac_var'}'` = yes; then
22265 cat >>confdefs.h <<_ACEOF
22266 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22272 if test "x
$ac_cv_func_fork" = xyes; then
22273 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22274 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22275 if test "${ac_cv_func_fork_works+set}" = set; then
22276 echo $ECHO_N "(cached
) $ECHO_C" >&6
22278 if test "$cross_compiling" = yes; then
22279 ac_cv_func_fork_works=cross
22281 cat >conftest.$ac_ext <<_ACEOF
22284 cat confdefs.h >>conftest.$ac_ext
22285 cat >>conftest.$ac_ext <<_ACEOF
22286 /* end confdefs.h. */
22287 $ac_includes_default
22292 /* By Ruediger Kuhlmann. */
22293 return fork () < 0;
22299 rm -f conftest$ac_exeext
22300 if { (ac_try="$ac_link"
22301 case "(($ac_try" in
22302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22303 *) ac_try_echo=$ac_try;;
22305 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22306 (eval "$ac_link") 2>&5
22308 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22309 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22310 { (case "(($ac_try" in
22311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22312 *) ac_try_echo=$ac_try;;
22314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22315 (eval "$ac_try") 2>&5
22317 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22318 (exit $ac_status); }; }; then
22319 ac_cv_func_fork_works=yes
22321 echo "$as_me: program exited with status
$ac_status" >&5
22322 echo "$as_me: failed program was
:" >&5
22323 sed 's/^/| /' conftest.$ac_ext >&5
22325 ( exit $ac_status )
22326 ac_cv_func_fork_works=no
22328 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22333 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22334 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22337 ac_cv_func_fork_works=$ac_cv_func_fork
22339 if test "x
$ac_cv_func_fork_works" = xcross; then
22341 *-*-amigaos* | *-*-msdosdjgpp*)
22342 # Override, as these systems have only a dummy fork() stub
22343 ac_cv_func_fork_works=no
22346 ac_cv_func_fork_works=yes
22349 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22350 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22352 ac_cv_func_vfork_works=$ac_cv_func_vfork
22353 if test "x
$ac_cv_func_vfork" = xyes; then
22354 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22355 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22356 if test "${ac_cv_func_vfork_works+set}" = set; then
22357 echo $ECHO_N "(cached
) $ECHO_C" >&6
22359 if test "$cross_compiling" = yes; then
22360 ac_cv_func_vfork_works=cross
22362 cat >conftest.$ac_ext <<_ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h. */
22368 /* Thanks to Paul Eggert for this test. */
22369 $ac_includes_default
22370 #include <sys/wait.h>
22371 #ifdef HAVE_VFORK_H
22372 # include <vfork.h>
22374 /* On some sparc systems, changes by the child to local and incoming
22375 argument registers are propagated back to the parent. The compiler
22376 is told about this with #include <vfork.h>, but some compilers
22377 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22378 static variable whose address is put into a register that is
22379 clobbered by the vfork. */
22382 sparc_address_test (int arg)
22384 sparc_address_test (arg) int arg;
22387 static pid_t child;
22405 pid_t parent = getpid ();
22408 sparc_address_test (0);
22413 /* Here is another test for sparc vfork register problems. This
22414 test uses lots of local variables, at least as many local
22415 variables as main has allocated so far including compiler
22416 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22417 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22418 reuse the register of parent for one of the local variables,
22419 since it will think that parent can't possibly be used any more
22420 in this routine. Assigning to the local variable will thus
22421 munge parent in the parent process. */
22423 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22424 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22425 /* Convince the compiler that p..p7 are live; otherwise, it might
22426 use the same hardware register for all 8 local variables. */
22427 if (p != p1 || p != p2 || p != p3 || p != p4
22428 || p != p5 || p != p6 || p != p7)
22431 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22432 from child file descriptors. If the child closes a descriptor
22433 before it execs or exits, this munges the parent's descriptor
22434 as well. Test for this by closing stdout in the child. */
22435 _exit(close(fileno(stdout)) != 0);
22440 while (wait(&status) != child)
22443 /* Was there some problem with vforking? */
22446 /* Did the child fail? (This shouldn't happen.) */
22449 /* Did the vfork/compiler bug occur? */
22450 || parent != getpid()
22452 /* Did the file descriptor bug occur? */
22453 || fstat(fileno(stdout), &st) != 0
22458 rm -f conftest$ac_exeext
22459 if { (ac_try="$ac_link"
22460 case "(($ac_try" in
22461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22462 *) ac_try_echo=$ac_try;;
22464 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22465 (eval "$ac_link") 2>&5
22467 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22469 { (case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22473 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_try") 2>&5
22476 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22477 (exit $ac_status); }; }; then
22478 ac_cv_func_vfork_works=yes
22480 echo "$as_me: program exited with status
$ac_status" >&5
22481 echo "$as_me: failed program was
:" >&5
22482 sed 's/^/| /' conftest.$ac_ext >&5
22484 ( exit $ac_status )
22485 ac_cv_func_vfork_works=no
22487 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22492 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22493 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22496 if test "x
$ac_cv_func_fork_works" = xcross; then
22497 ac_cv_func_vfork_works=$ac_cv_func_vfork
22498 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22499 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22502 if test "x
$ac_cv_func_vfork_works" = xyes; then
22504 cat >>confdefs.h <<\_ACEOF
22505 #define HAVE_WORKING_VFORK 1
22510 cat >>confdefs.h <<\_ACEOF
22515 if test "x
$ac_cv_func_fork_works" = xyes; then
22517 cat >>confdefs.h <<\_ACEOF
22518 #define HAVE_WORKING_FORK 1
22524 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22525 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22526 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22527 echo $ECHO_N "(cached
) $ECHO_C" >&6
22529 cat >conftest.$ac_ext <<_ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22535 #include <langinfo.h>
22539 char* cs = nl_langinfo(CODESET);
22544 rm -f conftest.$ac_objext conftest$ac_exeext
22545 if { (ac_try="$ac_link"
22546 case "(($ac_try" in
22547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22548 *) ac_try_echo=$ac_try;;
22550 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22551 (eval "$ac_link") 2>conftest.er1
22553 grep -v '^ *+' conftest.er1 >conftest.err
22555 cat conftest.err >&5
22556 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22557 (exit $ac_status); } && {
22558 test -z "$ac_c_werror_flag" ||
22559 test ! -s conftest.err
22560 } && test -s conftest$ac_exeext &&
22561 $as_test_x conftest$ac_exeext; then
22562 emacs_cv_langinfo_codeset=yes
22564 echo "$as_me: failed program was
:" >&5
22565 sed 's/^/| /' conftest.$ac_ext >&5
22567 emacs_cv_langinfo_codeset=no
22570 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22571 conftest$ac_exeext conftest.$ac_ext
22574 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22575 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22576 if test $emacs_cv_langinfo_codeset = yes; then
22578 cat >>confdefs.h <<\_ACEOF
22579 #define HAVE_LANGINFO_CODESET 1
22584 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22585 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22586 if test "${ac_cv_type_size_t+set}" = set; then
22587 echo $ECHO_N "(cached
) $ECHO_C" >&6
22589 cat >conftest.$ac_ext <<_ACEOF
22592 cat confdefs.h >>conftest.$ac_ext
22593 cat >>conftest.$ac_ext <<_ACEOF
22594 /* end confdefs.h. */
22595 $ac_includes_default
22596 typedef size_t ac__type_new_;
22600 if ((ac__type_new_ *) 0)
22602 if (sizeof (ac__type_new_))
22608 rm -f conftest.$ac_objext
22609 if { (ac_try="$ac_compile"
22610 case "(($ac_try" in
22611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22612 *) ac_try_echo=$ac_try;;
22614 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22615 (eval "$ac_compile") 2>conftest.er1
22617 grep -v '^ *+' conftest.er1 >conftest.err
22619 cat conftest.err >&5
22620 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22621 (exit $ac_status); } && {
22622 test -z "$ac_c_werror_flag" ||
22623 test ! -s conftest.err
22624 } && test -s conftest.$ac_objext; then
22625 ac_cv_type_size_t=yes
22627 echo "$as_me: failed program was
:" >&5
22628 sed 's/^/| /' conftest.$ac_ext >&5
22630 ac_cv_type_size_t=no
22633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22635 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22636 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22637 if test $ac_cv_type_size_t = yes; then
22639 cat >>confdefs.h <<_ACEOF
22640 #define HAVE_SIZE_T 1
22647 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22648 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22649 if test "${ac_cv_type_mbstate_t+set}" = set; then
22650 echo $ECHO_N "(cached
) $ECHO_C" >&6
22652 cat >conftest.$ac_ext <<_ACEOF
22655 cat confdefs.h >>conftest.$ac_ext
22656 cat >>conftest.$ac_ext <<_ACEOF
22657 /* end confdefs.h. */
22658 $ac_includes_default
22659 # include <wchar.h>
22663 mbstate_t x; return sizeof x;
22668 rm -f conftest.$ac_objext
22669 if { (ac_try="$ac_compile"
22670 case "(($ac_try" in
22671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22672 *) ac_try_echo=$ac_try;;
22674 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22675 (eval "$ac_compile") 2>conftest.er1
22677 grep -v '^ *+' conftest.er1 >conftest.err
22679 cat conftest.err >&5
22680 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22681 (exit $ac_status); } && {
22682 test -z "$ac_c_werror_flag" ||
22683 test ! -s conftest.err
22684 } && test -s conftest.$ac_objext; then
22685 ac_cv_type_mbstate_t=yes
22687 echo "$as_me: failed program was
:" >&5
22688 sed 's/^/| /' conftest.$ac_ext >&5
22690 ac_cv_type_mbstate_t=no
22693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22695 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22696 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22697 if test $ac_cv_type_mbstate_t = yes; then
22699 cat >>confdefs.h <<\_ACEOF
22700 #define HAVE_MBSTATE_T 1
22705 cat >>confdefs.h <<\_ACEOF
22706 #define mbstate_t int
22711 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22712 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22713 if test "${emacs_cv_c_restrict+set}" = set; then
22714 echo $ECHO_N "(cached
) $ECHO_C" >&6
22716 cat >conftest.$ac_ext <<_ACEOF
22719 cat confdefs.h >>conftest.$ac_ext
22720 cat >>conftest.$ac_ext <<_ACEOF
22721 /* end confdefs.h. */
22722 void fred (int *restrict x);
22731 rm -f conftest.$ac_objext
22732 if { (ac_try="$ac_compile"
22733 case "(($ac_try" in
22734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22735 *) ac_try_echo=$ac_try;;
22737 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22738 (eval "$ac_compile") 2>conftest.er1
22740 grep -v '^ *+' conftest.er1 >conftest.err
22742 cat conftest.err >&5
22743 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22744 (exit $ac_status); } && {
22745 test -z "$ac_c_werror_flag" ||
22746 test ! -s conftest.err
22747 } && test -s conftest.$ac_objext; then
22748 emacs_cv_c_restrict=yes
22750 echo "$as_me: failed program was
:" >&5
22751 sed 's/^/| /' conftest.$ac_ext >&5
22753 cat >conftest.$ac_ext <<_ACEOF
22756 cat confdefs.h >>conftest.$ac_ext
22757 cat >>conftest.$ac_ext <<_ACEOF
22758 /* end confdefs.h. */
22759 void fred (int *__restrict x);
22768 rm -f conftest.$ac_objext
22769 if { (ac_try="$ac_compile"
22770 case "(($ac_try" in
22771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22772 *) ac_try_echo=$ac_try;;
22774 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22775 (eval "$ac_compile") 2>conftest.er1
22777 grep -v '^ *+' conftest.er1 >conftest.err
22779 cat conftest.err >&5
22780 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22781 (exit $ac_status); } && {
22782 test -z "$ac_c_werror_flag" ||
22783 test ! -s conftest.err
22784 } && test -s conftest.$ac_objext; then
22785 emacs_cv_c_restrict=__restrict
22787 echo "$as_me: failed program was
:" >&5
22788 sed 's/^/| /' conftest.$ac_ext >&5
22790 emacs_cv_c_restrict=no
22793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22798 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
22799 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22800 case "$emacs_cv_c_restrict" in
22801 yes) emacs_restrict=restrict;;
22802 no) emacs_restrict="";;
22803 *) emacs_restrict="$emacs_cv_c_restrict";;
22805 if test "$emacs_restrict" != __restrict; then
22807 cat >>confdefs.h <<_ACEOF
22808 #define __restrict $emacs_restrict
22813 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
22814 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
22815 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22816 echo $ECHO_N "(cached
) $ECHO_C" >&6
22818 cat >conftest.$ac_ext <<_ACEOF
22821 cat confdefs.h >>conftest.$ac_ext
22822 cat >>conftest.$ac_ext <<_ACEOF
22823 /* end confdefs.h. */
22824 void fred (int x[__restrict]);
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 emacs_cv_c_restrict_arr=yes
22852 echo "$as_me: failed program was
:" >&5
22853 sed 's/^/| /' conftest.$ac_ext >&5
22855 emacs_cv_c_restrict_arr=no
22858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22860 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
22861 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22862 if test "$emacs_cv_c_restrict_arr" = yes; then
22864 cat >>confdefs.h <<\_ACEOF
22865 #define __restrict_arr __restrict
22872 # Set up the CFLAGS for real compilation, so we can substitute it.
22873 CFLAGS="$REAL_CFLAGS"
22874 CPPFLAGS="$REAL_CPPFLAGS"
22876 #### Find out which version of Emacs this is.
22877 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22878 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
22879 if test x"${version}" = x; then
22880 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
22881 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
22882 { (exit 1); exit 1; }; }
22885 ### Specify what sort of things we'll be editing into Makefile and config.h.
22886 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22922 cat >>confdefs.h <<_ACEOF
22923 #define EMACS_CONFIGURATION "${canonical}"
22927 cat >>confdefs.h <<_ACEOF
22928 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22932 cat >>confdefs.h <<_ACEOF
22933 #define config_machfile "${machfile}"
22937 cat >>confdefs.h <<_ACEOF
22938 #define config_opsysfile "${opsysfile}"
22942 cat >>confdefs.h <<_ACEOF
22943 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22947 cat >>confdefs.h <<_ACEOF
22948 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22952 cat >>confdefs.h <<_ACEOF
22953 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22957 cat >>confdefs.h <<_ACEOF
22958 #define UNEXEC_SRC ${UNEXEC_SRC}
22962 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22964 cat >>confdefs.h <<\_ACEOF
22965 #define HAVE_X_WINDOWS 1
22969 if test "${USE_X_TOOLKIT}" != "none
" ; then
22971 cat >>confdefs.h <<\_ACEOF
22972 #define USE_X_TOOLKIT 1
22976 if test "${HAVE_X11}" = "yes" ; then
22978 cat >>confdefs.h <<\_ACEOF
22983 if test "${HAVE_XFREE386}" = "yes" ; then
22985 cat >>confdefs.h <<\_ACEOF
22986 #define HAVE_XFREE386 1
22990 if test "${HAVE_MENUS}" = "yes" ; then
22992 cat >>confdefs.h <<\_ACEOF
22993 #define HAVE_MENUS 1
22997 if test "${GNU_MALLOC}" = "yes" ; then
22999 cat >>confdefs.h <<\_ACEOF
23000 #define GNU_MALLOC 1
23004 if test "${REL_ALLOC}" = "yes" ; then
23006 cat >>confdefs.h <<\_ACEOF
23007 #define REL_ALLOC 1
23016 #### Report on what we decided to do.
23017 #### Report GTK as a toolkit, even if it doesn't use Xt.
23018 #### It makes printing result more understandable as using GTK sets
23019 #### toolkit_scroll_bars to yes by default.
23020 if test "${HAVE_GTK}" = "yes"; then
23025 Configured
for \
`${canonical}'.
23027 Where should the build process find the source code? ${srcdir}
23028 What operating system and machine description files should Emacs use?
23029 \`${opsysfile}' and \`${machfile}'
23030 What compiler should emacs be built with?
${CC} ${CFLAGS}
23031 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23032 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23033 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23034 What window system should Emacs use?
${window_system}
23035 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23037 if test -n "${x_includes}"; then
23038 echo " Where
do we
find X Windows header files?
${x_includes}"
23040 echo " Where
do we
find X Windows header files? Standard
dirs"
23042 if test -n "${x_libraries}"; then
23043 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23045 echo " Where
do we
find X Windows libraries? Standard
dirs"
23048 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23049 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23050 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23051 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23052 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23053 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23054 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23057 if test $USE_XASSERTS = yes; then
23058 echo " Compiling with asserts turned on.
"
23059 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23063 if test "$USE_X_TOOLKIT" = GTK; then
23064 case "$canonical" in
23066 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23067 will probably get a crash on startup. If this happens
, please use another
23068 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23075 # Remove any trailing slashes in these variables.
23076 test "${prefix}" != NONE &&
23077 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23078 test "${exec_prefix}" != NONE &&
23079 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23081 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23082 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23083 ## from Makefile.c can correctly provide the arg `-traditional' to the
23086 cat >conftest.$ac_ext <<_ACEOF
23089 cat confdefs.h >>conftest.$ac_ext
23090 cat >>conftest.$ac_ext <<_ACEOF
23091 /* end confdefs.h. */
23094 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23095 $EGREP "yes..
yes" >/dev/null 2>&1; then
23096 CPP_NEED_TRADITIONAL=no
23098 CPP_NEED_TRADITIONAL=yes
23103 ac_config_files="$ac_config_files Makefile lib-src
/Makefile.c
:lib-src
/Makefile.
in oldXMenu
/Makefile man
/Makefile lwlib
/Makefile src
/Makefile.c
:src
/Makefile.
in lisp
/Makefile lispref
/Makefile lispintro
/Makefile leim
/Makefile
"
23105 ac_config_commands="$ac_config_commands default
"
23107 cat >confcache <<\_ACEOF
23108 # This file is a shell script that caches the results of configure
23109 # tests run on this system so they can be shared between configure
23110 # scripts and configure runs, see configure's option --config-cache.
23111 # It is not useful on other systems. If it contains results you don't
23112 # want to keep, you may remove or edit it.
23114 # config.status only pays attention to the cache file if you give it
23115 # the --recheck option to rerun configure.
23117 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23118 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23119 # following values.
23123 # The following way of writing the cache mishandles newlines in values,
23124 # but we know of no workaround that is simple, portable, and efficient.
23125 # So, we kill variables containing newlines.
23126 # Ultrix sh set writes to stderr and can't be redirected directly,
23127 # and sets the high bit in the cache file unless we assign to the vars.
23129 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23130 eval ac_val=\$$ac_var
23134 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23135 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23138 _ | IFS | as_nl) ;; #(
23139 *) $as_unset $ac_var ;;
23145 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23146 *${as_nl}ac_space=\ *)
23147 # `set' does not quote correctly, so add quotes (double-quote
23148 # substitution turns \\\\ into \\, and sed turns \\ into \).
23151 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23154 # `set' quotes correctly as required by POSIX, so do not add quotes.
23155 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23164 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23166 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23168 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23169 if test -w "$cache_file"; then
23170 test "x
$cache_file" != "x
/dev
/null
" &&
23171 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23172 echo "$as_me: updating cache
$cache_file" >&6;}
23173 cat confcache >$cache_file
23175 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23176 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23181 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23182 # Let make expand exec_prefix.
23183 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23185 DEFS=-DHAVE_CONFIG_H
23189 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23190 # 1. Remove the extension, and $U if already installed.
23191 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23192 ac_i=`echo "$ac_i" | sed "$ac_script"`
23193 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23194 # will be set to the directory where LIBOBJS objects are built.
23195 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23196 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23198 LIBOBJS=$ac_libobjs
23200 LTLIBOBJS=$ac_ltlibobjs
23204 : ${CONFIG_STATUS=./config.status}
23205 ac_clean_files_save=$ac_clean_files
23206 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23207 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23208 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23209 cat >$CONFIG_STATUS <<_ACEOF
23211 # Generated by $as_me.
23212 # Run this file to recreate the current configuration.
23213 # Compiler output produced by configure, useful for debugging
23214 # configure, is in config.log if it exists.
23217 ac_cs_recheck=false
23219 SHELL=\${CONFIG_SHELL-$SHELL}
23222 cat >>$CONFIG_STATUS <<\_ACEOF
23223 ## --------------------- ##
23224 ## M4sh Initialization. ##
23225 ## --------------------- ##
23227 # Be more Bourne compatible
23228 DUALCASE=1; export DUALCASE # for MKS sh
23229 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23232 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23233 # is contrary to our usage. Disable this feature.
23234 alias -g '${1+"$@"}'='"$@
"'
23235 setopt NO_GLOB_SUBST
23237 case `(set -o) 2>/dev/null` in
23238 *posix*) set -o posix ;;
23247 # Avoid depending upon Character Ranges.
23248 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23249 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23250 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23251 as_cr_digits='0123456789'
23252 as_cr_alnum=$as_cr_Letters$as_cr_digits
23254 # The user is always right.
23255 if test "${PATH_SEPARATOR+set}" != set; then
23256 echo "#! /bin/sh" >conf$$.sh
23257 echo "exit 0" >>conf$$.sh
23259 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23267 # Support unset when possible.
23268 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23276 # We need space, tab and new line, in precisely that order. Quoting is
23277 # there to prevent editors from complaining about space-tab.
23278 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23279 # splitting by setting IFS to empty value.)
23284 # Find who we are. Look in the path if we contain no directory separator.
23286 *[\\/]* ) as_myself
=$0 ;;
23287 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23288 for as_dir
in $PATH
23291 test -z "$as_dir" && as_dir
=.
23292 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23298 # We did not find ourselves, most probably we were run as `sh COMMAND'
23299 # in which case we are not to be found in the path.
23300 if test "x$as_myself" = x
; then
23303 if test ! -f "$as_myself"; then
23304 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23305 { (exit 1); exit 1; }
23308 # Work around bugs in pre-3.0 UWIN ksh.
23309 for as_var
in ENV MAIL MAILPATH
23310 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23318 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23319 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23320 LC_TELEPHONE LC_TIME
23322 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23323 eval $as_var=C
; export $as_var
23325 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23329 # Required to use basename.
23330 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23331 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23337 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23338 as_basename
=basename
23344 # Name of the executable.
23345 as_me
=`$as_basename -- "$0" ||
23346 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23347 X"$0" : 'X\(//\)$' \| \
23348 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23350 sed '/^.*\/\([^/][^/]*\)\/*$/{
23369 as_lineno_1
=$LINENO
23370 as_lineno_2
=$LINENO
23371 test "x$as_lineno_1" != "x$as_lineno_2" &&
23372 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23374 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23375 # uniformly replaced by the line number. The first 'sed' inserts a
23376 # line-number line after each line using $LINENO; the second 'sed'
23377 # does the real work. The second script uses 'N' to pair each
23378 # line-number line with the line containing $LINENO, and appends
23379 # trailing '-' during substitution so that $LINENO is not a special
23380 # case at line end.
23381 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23382 # scripts with optimization help from Paolo Bonzini. Blame Lee
23383 # E. McMahon (1931-1989) for sed's syntax. :-)
23395 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23398 ' >$as_me.lineno
&&
23399 chmod +x
"$as_me.lineno" ||
23400 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23401 { (exit 1); exit 1; }; }
23403 # Don't try to exec as it changes $[0], causing all sort of problems
23404 # (the dirname of $[0] is not the place where we might find the
23405 # original and so on. Autoconf is especially sensitive to this).
23406 .
"./$as_me.lineno"
23407 # Exit status is that of the last command.
23412 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23418 ECHO_C
= ECHO_N
= ECHO_T
=
23419 case `echo -n x` in
23421 case `echo 'x\c'` in
23422 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23429 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23430 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23436 rm -f conf$$ conf$$.exe conf$$.
file
23437 if test -d conf$$.dir
; then
23438 rm -f conf$$.dir
/conf$$.
file
23444 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23446 # ... but there are two gotchas:
23447 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23448 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23449 # In both cases, we have to default to `cp -p'.
23450 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23452 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23457 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23458 rmdir conf$$.dir
2>/dev
/null
23460 if mkdir
-p .
2>/dev
/null
; then
23463 test -d .
/-p && rmdir .
/-p
23467 if test -x / >/dev
/null
2>&1; then
23468 as_test_x
='test -x'
23470 if ls -dL / >/dev
/null
2>&1; then
23477 if test -d "$1"; then
23483 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23484 ???[sx]*):;;*)false;;esac;fi
23488 as_executable_p
=$as_test_x
23490 # Sed expression to map a string onto a valid CPP name.
23491 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23493 # Sed expression to map a string onto a valid variable name.
23494 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23499 # Save the log message, to keep $[0] and so on meaningful, and to
23500 # report actual input values of CONFIG_FILES etc. instead of their
23501 # values after options handling.
23503 This file was extended by $as_me, which was
23504 generated by GNU Autoconf 2.61. Invocation command line was
23506 CONFIG_FILES = $CONFIG_FILES
23507 CONFIG_HEADERS = $CONFIG_HEADERS
23508 CONFIG_LINKS = $CONFIG_LINKS
23509 CONFIG_COMMANDS = $CONFIG_COMMANDS
23512 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23517 cat >>$CONFIG_STATUS <<_ACEOF
23518 # Files that config.status was made for.
23519 config_files="$ac_config_files"
23520 config_headers="$ac_config_headers"
23521 config_commands="$ac_config_commands"
23525 cat >>$CONFIG_STATUS <<\_ACEOF
23527 \`$as_me' instantiates files from templates according to the
23528 current configuration.
23530 Usage: $0 [OPTIONS] [FILE]...
23532 -h, --help print this help, then exit
23533 -V, --version print version number and configuration settings, then exit
23534 -q, --quiet do not print progress messages
23535 -d, --debug don't remove temporary files
23536 --recheck update $as_me by reconfiguring in the same conditions
23537 --file=FILE[:TEMPLATE]
23538 instantiate the configuration file FILE
23539 --header=FILE[:TEMPLATE]
23540 instantiate the configuration header FILE
23542 Configuration files:
23545 Configuration headers:
23548 Configuration commands:
23551 Report bugs to <bug-autoconf@gnu.org>."
23554 cat >>$CONFIG_STATUS <<_ACEOF
23557 configured by $0, generated by GNU Autoconf 2.61,
23558 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23560 Copyright (C) 2006 Free Software Foundation, Inc.
23561 This config.status script is free software; the Free Software Foundation
23562 gives unlimited permission to copy, distribute and modify it."
23569 cat >>$CONFIG_STATUS <<\_ACEOF
23570 # If no file are specified by the user, then we need to provide default
23571 # value. By we need to know if files were specified by the user.
23577 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23578 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23589 # Handling of the options.
23590 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23592 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23593 echo "$ac_cs_version"; exit ;;
23594 --debug |
--debu |
--deb |
--de |
--d |
-d )
23596 --file |
--fil |
--fi |
--f )
23598 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23599 ac_need_defaults
=false
;;
23600 --header |
--heade |
--head |
--hea )
23602 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23603 ac_need_defaults
=false
;;
23605 # Conflict between --help and --header
23606 { echo "$as_me: error: ambiguous option: $1
23607 Try \`$0 --help' for more information." >&2
23608 { (exit 1); exit 1; }; };;
23609 --help |
--hel |
-h )
23610 echo "$ac_cs_usage"; exit ;;
23611 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23612 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23615 # This is an error.
23616 -*) { echo "$as_me: error: unrecognized option: $1
23617 Try \`$0 --help' for more information." >&2
23618 { (exit 1); exit 1; }; } ;;
23620 *) ac_config_targets
="$ac_config_targets $1"
23621 ac_need_defaults
=false
;;
23627 ac_configure_extra_args
=
23629 if $ac_cs_silent; then
23631 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23635 cat >>$CONFIG_STATUS <<_ACEOF
23636 if \$ac_cs_recheck; then
23637 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23638 CONFIG_SHELL=$SHELL
23639 export CONFIG_SHELL
23640 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23644 cat >>$CONFIG_STATUS <<\_ACEOF
23648 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23649 ## Running $as_me. ##
23655 cat >>$CONFIG_STATUS <<_ACEOF
23659 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23663 cat >>$CONFIG_STATUS <<\_ACEOF
23665 # Handling of arguments.
23666 for ac_config_target
in $ac_config_targets
23668 case $ac_config_target in
23669 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23670 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23671 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23672 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23673 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23674 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23675 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23676 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23677 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23678 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23679 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23680 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23682 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23683 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23684 { (exit 1); exit 1; }; };;
23689 # If the user did not use the arguments to specify the items to instantiate,
23690 # then the envvar interface is used. Set only those that are not.
23691 # We use the long form for the default assignment because of an extremely
23692 # bizarre bug on SunOS 4.1.3.
23693 if $ac_need_defaults; then
23694 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23695 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23696 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23699 # Have a temporary directory for convenience. Make it in the build tree
23700 # simply because there is no reason against having it here, and in addition,
23701 # creating and moving files from /tmp can sometimes cause problems.
23702 # Hook for its removal unless debugging.
23703 # Note that there is a small window in which the directory will not be cleaned:
23704 # after its creation but before its name has been assigned to `$tmp'.
23708 trap 'exit_status=$?
23709 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23711 trap '{ (exit 1); exit 1; }' 1 2 13 15
23713 # Create a (secure) tmp directory for tmp files.
23716 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23717 test -n "$tmp" && test -d "$tmp"
23720 tmp
=.
/conf$$
-$RANDOM
23721 (umask 077 && mkdir
"$tmp")
23724 echo "$me: cannot create a temporary directory in ." >&2
23725 { (exit 1); exit 1; }
23729 # Set up the sed scripts for CONFIG_FILES section.
23732 # No need to generate the scripts if there are no CONFIG_FILES.
23733 # This happens for instance when ./config.status config.h
23734 if test -n "$CONFIG_FILES"; then
23741 for ac_last_try
in false false false false false
:; do
23742 cat >conf$
$subs.
sed <<_ACEOF
23743 SHELL!$SHELL$ac_delim
23744 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23745 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23746 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23747 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23748 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23749 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23750 exec_prefix!$exec_prefix$ac_delim
23751 prefix!$prefix$ac_delim
23752 program_transform_name!$program_transform_name$ac_delim
23753 bindir!$bindir$ac_delim
23754 sbindir!$sbindir$ac_delim
23755 libexecdir!$libexecdir$ac_delim
23756 datarootdir!$datarootdir$ac_delim
23757 datadir!$datadir$ac_delim
23758 sysconfdir!$sysconfdir$ac_delim
23759 sharedstatedir!$sharedstatedir$ac_delim
23760 localstatedir!$localstatedir$ac_delim
23761 includedir!$includedir$ac_delim
23762 oldincludedir!$oldincludedir$ac_delim
23763 docdir!$docdir$ac_delim
23764 infodir!$infodir$ac_delim
23765 htmldir!$htmldir$ac_delim
23766 dvidir!$dvidir$ac_delim
23767 pdfdir!$pdfdir$ac_delim
23768 psdir!$psdir$ac_delim
23769 libdir!$libdir$ac_delim
23770 localedir!$localedir$ac_delim
23771 mandir!$mandir$ac_delim
23772 DEFS!$DEFS$ac_delim
23773 ECHO_C!$ECHO_C$ac_delim
23774 ECHO_N!$ECHO_N$ac_delim
23775 ECHO_T!$ECHO_T$ac_delim
23776 LIBS!$LIBS$ac_delim
23777 build_alias!$build_alias$ac_delim
23778 host_alias!$host_alias$ac_delim
23779 target_alias!$target_alias$ac_delim
23780 MAINT!$MAINT$ac_delim
23781 build!$build$ac_delim
23782 build_cpu!$build_cpu$ac_delim
23783 build_vendor!$build_vendor$ac_delim
23784 build_os!$build_os$ac_delim
23785 host!$host$ac_delim
23786 host_cpu!$host_cpu$ac_delim
23787 host_vendor!$host_vendor$ac_delim
23788 host_os!$host_os$ac_delim
23790 CFLAGS!$CFLAGS$ac_delim
23791 LDFLAGS!$LDFLAGS$ac_delim
23792 CPPFLAGS!$CPPFLAGS$ac_delim
23793 ac_ct_CC!$ac_ct_CC$ac_delim
23794 EXEEXT!$EXEEXT$ac_delim
23795 OBJEXT!$OBJEXT$ac_delim
23797 GREP!$GREP$ac_delim
23798 EGREP!$EGREP$ac_delim
23799 LN_S!$LN_S$ac_delim
23800 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23801 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23802 INSTALL_DATA!$INSTALL_DATA$ac_delim
23803 RANLIB!$RANLIB$ac_delim
23804 INSTALL_INFO!$INSTALL_INFO$ac_delim
23805 GZIP_PROG!$GZIP_PROG$ac_delim
23806 LIBSOUND!$LIBSOUND$ac_delim
23807 PKG_CONFIG!$PKG_CONFIG$ac_delim
23808 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23809 ALSA_LIBS!$ALSA_LIBS$ac_delim
23810 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23811 SET_MAKE!$SET_MAKE$ac_delim
23812 XMKMF!$XMKMF$ac_delim
23813 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23814 GTK_LIBS!$GTK_LIBS$ac_delim
23815 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23816 XFT_LIBS!$XFT_LIBS$ac_delim
23817 ALLOCA!$ALLOCA$ac_delim
23818 liblockfile!$liblockfile$ac_delim
23819 LIBOBJS!$LIBOBJS$ac_delim
23820 NEED_SETGID!$NEED_SETGID$ac_delim
23821 KMEM_GROUP!$KMEM_GROUP$ac_delim
23822 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23823 GETOPT_H!$GETOPT_H$ac_delim
23824 GETOPTOBJS!$GETOPTOBJS$ac_delim
23825 version!$version$ac_delim
23826 configuration!$configuration$ac_delim
23827 canonical!$canonical$ac_delim
23828 srcdir!$srcdir$ac_delim
23829 lispdir!$lispdir$ac_delim
23830 locallisppath!$locallisppath$ac_delim
23831 lisppath!$lisppath$ac_delim
23832 x_default_search_path!$x_default_search_path$ac_delim
23833 etcdir!$etcdir$ac_delim
23834 archlibdir!$archlibdir$ac_delim
23835 bitmapdir!$bitmapdir$ac_delim
23836 gamedir!$gamedir$ac_delim
23837 gameuser!$gameuser$ac_delim
23838 c_switch_system!$c_switch_system$ac_delim
23839 c_switch_machine!$c_switch_machine$ac_delim
23842 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23844 elif $ac_last_try; then
23845 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23846 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23847 { (exit 1); exit 1; }; }
23849 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23853 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23854 if test -n "$ac_eof"; then
23855 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23856 ac_eof
=`expr $ac_eof + 1`
23859 cat >>$CONFIG_STATUS <<_ACEOF
23860 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23861 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23864 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23865 s/^/s,@/; s/!/@,|#_!!_#|/
23868 s/'"$ac_delim"'$/,g/; t
23870 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23871 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23872 rm -f conf$
$subs.
sed
23873 cat >>$CONFIG_STATUS <<_ACEOF
23879 for ac_last_try
in false false false false false
:; do
23880 cat >conf$
$subs.
sed <<_ACEOF
23881 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23882 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23883 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23884 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23885 machfile!$machfile$ac_delim
23886 opsysfile!$opsysfile$ac_delim
23887 carbon_appdir!$carbon_appdir$ac_delim
23888 LTLIBOBJS!$LTLIBOBJS$ac_delim
23891 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23893 elif $ac_last_try; then
23894 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23895 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23896 { (exit 1); exit 1; }; }
23898 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23902 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23903 if test -n "$ac_eof"; then
23904 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23905 ac_eof
=`expr $ac_eof + 1`
23908 cat >>$CONFIG_STATUS <<_ACEOF
23909 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23910 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23913 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23914 s/^/s,@/; s/!/@,|#_!!_#|/
23917 s/'"$ac_delim"'$/,g/; t
23919 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23920 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23921 rm -f conf$
$subs.
sed
23922 cat >>$CONFIG_STATUS <<_ACEOF
23929 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23930 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23931 # trailing colons and then remove the whole line if VPATH becomes empty
23932 # (actually we leave an empty line to preserve line numbers).
23933 if test "x$srcdir" = x.
; then
23934 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23935 s/:*\$(srcdir):*/:/
23936 s/:*\${srcdir}:*/:/
23938 s/^\([^=]*=[ ]*\):*/\1/
23944 cat >>$CONFIG_STATUS <<\_ACEOF
23945 fi # test -n "$CONFIG_FILES"
23948 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
23951 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23953 case $ac_mode$ac_tag in
23955 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23956 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23957 { (exit 1); exit 1; }; };;
23958 :[FH
]-) ac_tag
=-:-;;
23959 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23976 -) ac_f
="$tmp/stdin";;
23977 *) # Look for the file first in the build tree, then in the source tree
23978 # (if the path is not absolute). The absolute path cannot be DOS-style,
23979 # because $ac_f cannot contain `:'.
23983 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23985 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23986 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23987 { (exit 1); exit 1; }; };;
23989 ac_file_inputs
="$ac_file_inputs $ac_f"
23992 # Let's still pretend it is `configure' which instantiates (i.e., don't
23993 # use $as_me), people would be surprised to read:
23994 # /* config.h. Generated by config.status. */
23995 configure_input
="Generated from "`IFS=:
23996 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23997 if test x
"$ac_file" != x-
; then
23998 configure_input
="$ac_file. $configure_input"
23999 { echo "$as_me:$LINENO: creating $ac_file" >&5
24000 echo "$as_me: creating $ac_file" >&6;}
24004 *:-:* |
*:-) cat >"$tmp/stdin";;
24009 ac_dir
=`$as_dirname -- "$ac_file" ||
24010 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24011 X"$ac_file" : 'X\(//\)[^/]' \| \
24012 X"$ac_file" : 'X\(//\)$' \| \
24013 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24019 /^X\(\/\/\)[^/].*/{
24034 -*) as_dir
=.
/$as_dir;;
24036 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24040 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24041 *) as_qdir
=$as_dir;;
24043 as_dirs
="'$as_qdir' $as_dirs"
24044 as_dir
=`$as_dirname -- "$as_dir" ||
24045 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24046 X"$as_dir" : 'X\(//\)[^/]' \| \
24047 X"$as_dir" : 'X\(//\)$' \| \
24048 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24050 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24054 /^X\(\/\/\)[^/].*/{
24067 test -d "$as_dir" && break
24069 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24070 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24071 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24072 { (exit 1); exit 1; }; }; }
24076 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24078 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24079 # A ".." for each directory in $ac_dir_suffix.
24080 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24081 case $ac_top_builddir_sub in
24082 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24083 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24086 ac_abs_top_builddir
=$ac_pwd
24087 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24088 # for backward compatibility:
24089 ac_top_builddir
=$ac_top_build_prefix
24092 .
) # We are building in place.
24094 ac_top_srcdir
=$ac_top_builddir_sub
24095 ac_abs_top_srcdir
=$ac_pwd ;;
24096 [\\/]* | ?
:[\\/]* ) # Absolute name.
24097 ac_srcdir
=$srcdir$ac_dir_suffix;
24098 ac_top_srcdir
=$srcdir
24099 ac_abs_top_srcdir
=$srcdir ;;
24100 *) # Relative name.
24101 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24102 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24103 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24105 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24115 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24116 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24120 cat >>$CONFIG_STATUS <<\_ACEOF
24121 # If the template does not know about datarootdir, expand it.
24122 # FIXME: This hack should be removed a few years after 2.60.
24123 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24125 case `sed -n '/datarootdir/ {
24134 ' $ac_file_inputs` in
24135 *datarootdir
*) ac_datarootdir_seen
=yes;;
24136 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24137 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24138 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24140 cat >>$CONFIG_STATUS <<_ACEOF
24141 ac_datarootdir_hack='
24142 s&@datadir@&$datadir&g
24143 s&@docdir@&$docdir&g
24144 s&@infodir@&$infodir&g
24145 s&@localedir@&$localedir&g
24146 s&@mandir@&$mandir&g
24147 s&\\\${datarootdir}&$datarootdir&g' ;;
24151 # Neutralize VPATH when `$srcdir' = `.'.
24152 # Shell code in configure.ac might set extrasub.
24153 # FIXME: do we really want to maintain this feature?
24154 cat >>$CONFIG_STATUS <<_ACEOF
24158 cat >>$CONFIG_STATUS <<\_ACEOF
24160 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24161 s
&@configure_input@
&$configure_input&;t t
24162 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24163 s
&@srcdir@
&$ac_srcdir&;t t
24164 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24165 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24166 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24167 s
&@builddir@
&$ac_builddir&;t t
24168 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24169 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24170 s
&@INSTALL@
&$ac_INSTALL&;t t
24171 $ac_datarootdir_hack
24172 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24174 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24175 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24176 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24177 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24178 which seems to be undefined. Please make sure it is defined." >&5
24179 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24180 which seems to be undefined. Please make sure it is defined." >&2;}
24184 -) cat "$tmp/out"; rm -f "$tmp/out";;
24185 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24194 # Transform confdefs.h into a sed script `conftest.defines', that
24195 # substitutes the proper values into config.h.in to produce config.h.
24196 rm -f conftest.defines conftest.
tail
24197 # First, append a space to every undef/define line, to ease matching.
24198 echo 's/$/ /' >conftest.defines
24199 # Then, protect against being on the right side of a sed subst, or in
24200 # an unquoted here document, in config.status. If some macros were
24201 # called several times there might be several #defines for the same
24202 # symbol, which is useless. But do not sort them, since the last
24203 # AC_DEFINE must be honored.
24204 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24205 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24206 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24207 # PARAMS is the parameter list in the macro definition--in most cases, it's
24208 # just an empty string.
24209 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24210 ac_dB
='\\)[ (].*,\\1define\\2'
24218 s/^[ ]*#[ ]*define[ ][ ]*//
24223 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24224 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24225 ' >>conftest.defines
24227 # Remove the space that was appended to ease matching.
24228 # Then replace #undef with comments. This is necessary, for
24229 # example, in the case of _POSIX_SOURCE, which is predefined and required
24230 # on some systems where configure will not decide to define it.
24231 # (The regexp can be short, since the line contains either #define or #undef.)
24233 s,^[ #]*u.*,/* & */,' >>conftest.defines
24235 # Break up conftest.defines:
24236 ac_max_sed_lines
=50
24238 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24239 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24240 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24242 ac_in
='$ac_file_inputs'
24243 ac_out
='"$tmp/out1"'
24244 ac_nxt
='"$tmp/out2"'
24248 # Write a here document:
24249 cat >>$CONFIG_STATUS <<_ACEOF
24250 # First, check the format of the line:
24251 cat >"\$tmp/defines.sed" <<\\CEOF
24252 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24253 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24257 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24259 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24260 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24261 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24262 grep . conftest.
tail >/dev
/null ||
break
24263 rm -f conftest.defines
24264 mv conftest.
tail conftest.defines
24266 rm -f conftest.defines conftest.
tail
24268 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24269 cat >>$CONFIG_STATUS <<\_ACEOF
24270 if test x
"$ac_file" != x-
; then
24271 echo "/* $configure_input */" >"$tmp/config.h"
24272 cat "$ac_result" >>"$tmp/config.h"
24273 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24274 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24275 echo "$as_me: $ac_file is unchanged" >&6;}
24278 mv "$tmp/config.h" $ac_file
24281 echo "/* $configure_input */"
24287 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24288 echo "$as_me: executing $ac_file commands" >&6;}
24293 case $ac_file$ac_mode in
24296 ### Make the necessary directories, if they don't exist.
24297 for dir
in etc lisp
; do
24298 test -d ${dir} || mkdir
${dir}
24301 # Build src/Makefile from ${srcdir}/src/Makefile.c
24302 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24303 # This must be done after src/config.h is built, since we rely on that file.
24305 # Now get this: Some word that is part of the ${srcdir} directory name
24306 # or the ${configuration} value might, just might, happen to be an
24307 # identifier like `sun4' or `i386' or something, and be predefined by
24308 # the C preprocessor to some helpful value like 1, or maybe the empty
24309 # string. Needless to say consequent macro substitutions are less
24310 # than conducive to the makefile finding the correct directory.
24311 undefs
="`echo $top_srcdir $configuration $canonical |
24312 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24313 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24316 echo creating src
/epaths.h
24317 ${MAKE-make} epaths-force
24319 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24320 # `..' to `. .' unless invoked with -traditional
24322 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24323 CPPFLAGS
="$CPPFLAGS -traditional"
24326 echo creating lib-src
/Makefile
24328 rm -f junk.c junk1.c junk2.c
24329 sed -e '/start of cpp stuff/q' \
24330 < Makefile.c
> junk1.c
24331 sed -e '1,/start of cpp stuff/d'\
24332 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24333 < Makefile.c
> junk.c
24334 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24335 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24336 cat junk1.c junk2.c
> Makefile.new
24337 rm -f junk.c junk1.c junk2.c
24338 chmod 444 Makefile.new
24339 mv -f Makefile.new Makefile
24342 echo creating src
/Makefile
24344 rm -f junk.c junk1.c junk2.c
24345 sed -e '/start of cpp stuff/q' \
24346 < Makefile.c
> junk1.c
24347 sed -e '1,/start of cpp stuff/d'\
24348 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24349 < Makefile.c
> junk.c
24350 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24351 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24352 cat junk1.c junk2.c
> Makefile.new
24353 rm -f junk.c junk1.c junk2.c
24354 chmod 444 Makefile.new
24355 mv -f Makefile.new Makefile
24358 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24359 echo creating src
/.gdbinit
24360 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24363 # This is how we know whether to re-run configure in certain cases.
24364 touch src
/config.stamp
24372 { (exit 0); exit 0; }
24374 chmod +x
$CONFIG_STATUS
24375 ac_clean_files
=$ac_clean_files_save
24378 # configure is writing to config.log, and then calls config.status.
24379 # config.status does its own redirection, appending to config.log.
24380 # Unfortunately, on DOS this fails, as config.log is still kept open
24381 # by configure, so config.status won't be able to write to it; its
24382 # output is simply discarded. So we exec the FD to /dev/null,
24383 # effectively closing config.log, so it can be properly (re)opened and
24384 # appended to by config.status. When coming back to configure, we
24385 # need to make the FD available again.
24386 if test "$no_create" != yes; then
24388 ac_config_status_args
=
24389 test "$silent" = yes &&
24390 ac_config_status_args
="$ac_config_status_args --quiet"
24392 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24394 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24395 # would make configure fail if this is the last instruction.
24396 $ac_cs_success ||
{ (exit 1); exit 1; }