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
;;
2263 i386-
*-openbsd*) machine
=intel386
;;
2264 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2265 m68k-
*-openbsd*) machine
=hp9000s300
;;
2266 mipsel-
*-openbsd*) machine
=pmax
;;
2267 ns32k-
*-openbsd*) machine
=ns32000
;;
2268 sparc-
*-openbsd*) machine
=sparc
;;
2269 vax-
*-openbsd*) machine
=vax
;;
2276 case "${canonical}" in
2277 i
[3456]86-*-lynxos*) machine
=intel386
;;
2278 powerpc-
*-lynxos*) machine
=powerpc
;;
2283 arm-acorn-riscix1.1
* )
2284 machine
=acorn opsys
=riscix1-1
2286 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2287 ## This name is riscix12 instead of riscix1.2
2288 ## to avoid a file name conflict on MSDOS.
2289 machine
=acorn opsys
=riscix12
2295 case "${canonical}" in
2296 i
[345]86-*-bsdi*) machine
=intel386
;;
2297 sparc-
*-bsdi*) machine
=sparc
;;
2298 powerpc-
*-bsdi*) machine
=macppc
;;
2300 case "${canonical}" in
2301 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2302 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2303 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2304 *-*-bsdi3* ) opsys
=bsdos3
;;
2305 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2310 ## Strictly speaking, we need the version of the alliant operating
2311 ## system to choose the right machine file, but currently the
2312 ## configuration name doesn't tell us enough to choose the right
2313 ## one; we need to give alliants their own operating system name to
2314 ## do this right. When someone cares, they can help us.
2316 machine
=alliant4 opsys
=bsd4-2
2319 machine
=alliant-2800 opsys
=bsd4-3
2322 ## Alpha (DEC) machines.
2324 machine
=alpha opsys
=osf1
2325 # This is needed to find X11R6.1 libraries for certain tests.
2326 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2327 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2328 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2329 # due to non-traditional preprocessing with the current compiler
2330 # defaults. OSF 4 can also have that compiler version, and there
2331 # seems always to have been a usable /usr/bin/cpp.
2332 NON_GNU_CPP
=/usr
/bin
/cpp
2333 case "${canonical}" in
2334 alpha
*-dec-osf[5-9]*)
2339 alpha
*-*-linux-gnu* )
2340 machine
=alpha opsys
=gnu-linux
2344 machine
=arm opsys
=gnu-linux
2349 machine
=altos opsys
=usg5-2
2354 machine
=amdahl opsys
=usg5-2-2
2357 ## Apollo, Domain/OS
2359 machine
=apollo opsys
=bsd4-3
2362 ## Apple Darwin / Mac OS X
2364 case "${canonical}" in
2365 i
[3456]86-* ) machine
=intel386
;;
2366 powerpc-
* ) machine
=powermac
;;
2370 # Define CPP as follows to make autoconf work correctly.
2371 CPP
="${CC-cc} -E -no-cpp-precomp"
2372 # Use fink packages if available.
2373 if test -d /sw
/include
&& test -d /sw
/lib
; then
2374 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2375 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2376 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2380 ## AT&T 3b2, 3b5, 3b15, 3b20
2382 machine
=att3b opsys
=usg5-2-2
2385 ## AT&T 3b1 - The Mighty Unix PC!
2387 machine
=7300 opsys
=usg5-2-2
2392 machine
=ibmrs6000 opsys
=aix3-2
2397 machine
=dpx2 opsys
=usg5-3
2402 machine
=sps7 opsys
=usg5-2
2405 ## CCI 5/32, 6/32 -- see "Tahoe".
2408 ## I don't know what configuration name to use for this; config.sub
2409 ## doesn't seem to know anything about it. Hey, Celerity users, get
2410 ## in touch with us!
2411 celerity-celerity-bsd
* )
2412 machine
=celerity opsys
=bsd4-2
2416 ## What operating systems does this chip run that Emacs has been
2420 ## We'll use the catch-all code at the bottom to guess the
2421 ## operating system.
2425 mips-compaq-nonstopux
* )
2426 machine
=nonstopux opsys
=nonstopux
2430 *-convex-bsd* |
*-convex-convexos* )
2431 machine
=convex opsys
=bsd4-3
2432 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2433 NON_GNU_CPP
="cc -E -P"
2437 i
[3456]86-cubix-sysv* )
2438 machine
=intel386 opsys
=usg5-3
2442 cydra
*-cydrome-sysv* )
2443 machine
=cydra5 opsys
=usg5-3
2446 ## Data General AViiON Machines
2447 ## DG changed naming conventions with the release of 5.4.4.10, they
2448 ## dropped the initial 5.4 but left the intervening R. Because of the
2449 ## R this shouldn't conflict with older versions of the OS (which I
2450 ## think were named like dgux4.*). In addition, DG new AViiONs series
2451 ## uses either Motorola M88k or Intel Pentium CPUs.
2452 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2453 machine
=aviion opsys
=dgux4
2455 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2456 ## This name is dgux5-4-3 instead of dgux5-4r3
2457 ## to avoid a file name conflict on MSDOS.
2458 machine
=aviion opsys
=dgux5-4-3
2460 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2461 machine
=aviion opsys
=dgux5-4r2
2464 machine
=aviion opsys
=dgux
2467 ## Data General AViiON Intel (x86) Machines
2468 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2469 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2470 i
[345]86-dg-dguxR4* )
2471 machine
=aviion-intel opsys
=dgux4
2475 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2476 machine
=pmax opsys
=bsd4-2
2478 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2479 machine
=pmax opsys
=bsd4-3
2482 machine
=pmax opsys
=ultrix4-3
2485 machine
=pmax opsys
=osf1
2487 mips-dec-mach_bsd4.3
* )
2488 machine
=pmax opsys
=mach-bsd4-3
2491 ## Motorola Delta machines
2492 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2493 machine
=delta opsys
=usg5-3
2494 if test -z "`type gnucc | grep 'not found'`"
2496 if test -s /etc
/167config
2497 then CC
="gnucc -m68040"
2498 else CC
="gnucc -m68881"
2501 if test -z "`type gcc | grep 'not found'`"
2507 m88k-motorola-sysv4
* )
2508 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2509 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2510 # I hope there are not other 4.0 versions for this machine
2511 # which really need usg5-4 instead.
2512 machine
=delta88k opsys
=usg5-4-2
2514 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2515 machine
=delta88k opsys
=usg5-3
2520 machine
=dual opsys
=usg5-2
2522 m68
*-dual-uniplus* )
2523 machine
=dual opsys
=unipl5-2
2528 machine
=elxsi opsys
=usg5-2
2533 machine
=ns16000 opsys
=umax
2536 ## The GEC 63 - apparently, this port isn't really finished yet.
2537 # I'm sure we finished off the last of the machines, though. -- fx
2539 ## Gould Power Node and NP1
2541 machine
=gould opsys
=bsd4-2
2544 machine
=gould opsys
=bsd4-3
2547 machine
=gould-np1 opsys
=bsd4-3
2550 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2551 ## as far as Emacs is concerned).
2553 # Build needs to be different on 7.0 and later releases
2554 case "`uname -r`" in
2555 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2556 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2558 NON_GNU_CPP
="/lib/cpp"
2560 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2562 machine
=nh3000 opsys
=cxux
2564 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2565 powerpc-harris-powerunix
)
2566 machine
=nh6000 opsys
=powerunix
2567 NON_GNU_CPP
="cc -Xo -E -P"
2570 xps
*-honeywell-sysv* )
2571 machine
=xps100 opsys
=usg5-2
2574 ## HP 9000 series 200 or 300
2576 machine
=hp9000s300 opsys
=bsd4-3
2578 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2580 case "`uname -r`" in
2581 ## Someone's system reports A.B8.05 for this.
2582 ## I wonder what other possibilities there are.
2583 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2584 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2585 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2586 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2587 *) machine
=hp9000s300 opsys
=hpux
;;
2591 hppa
*-*-linux-gnu* )
2592 machine
=hp800 opsys
=gnu-linux
2596 machine
=hp800 opsys
=nextstep
2601 machine
=orion opsys
=bsd4-2
2603 clipper-orion-bsd
* )
2604 machine
=orion105 opsys
=bsd4-2
2608 i
[3456]86-ibm-aix1.1
* )
2609 machine
=ibmps2-aix opsys
=usg5-2-2
2611 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2612 machine
=ibmps2-aix opsys
=usg5-3
2615 machine
=ibm370aix opsys
=usg5-3
2618 machine
=ibms390 opsys
=gnu-linux
2620 s390x-
*-linux-gnu* )
2621 machine
=ibms390x opsys
=gnu-linux
2623 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2624 machine
=ibmrs6000 opsys
=aix3-1
2626 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2627 machine
=ibmrs6000 opsys
=aix3-2-5
2629 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2630 machine
=ibmrs6000 opsys
=aix4-1
2632 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2633 machine
=ibmrs6000 opsys
=aix4-2
2635 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2636 machine
=ibmrs6000 opsys
=aix4-2
2638 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2639 machine
=ibmrs6000 opsys
=aix4
2641 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2642 machine
=ibmrs6000 opsys
=aix4-1
2644 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2645 machine
=ibmrs6000 opsys
=aix3-2
2648 machine
=ibmrt opsys
=bsd4-3
2651 machine
=ibmrt opsys
=bsd4-2
2654 machine
=ibmrt opsys
=bsd4-3
2657 machine
=ibmrt opsys
=bsd4-2
2660 machine
=ibmrt opsys
=bsd4-3
2663 machine
=ibmrt opsys
=bsd4-3
2666 machine
=ibmrt-aix opsys
=usg5-2-2
2669 ## Integrated Solutions `Optimum V'
2671 machine
=isi-ov opsys
=bsd4-2
2674 machine
=isi-ov opsys
=bsd4-3
2677 ## Intel 386 machines where we do care about the manufacturer
2678 i
[3456]86-intsys-sysv* )
2679 machine
=is386 opsys
=usg5-2-2
2683 i
[3456]86-prime-sysv* )
2684 machine
=i386 opsys
=usg5-3
2687 ## Sequent Symmetry running Dynix
2688 i
[3456]86-sequent-bsd* )
2689 machine
=symmetry opsys
=bsd4-3
2692 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2693 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2694 machine
=sequent-ptx opsys
=ptx4
2695 NON_GNU_CPP
=/lib
/cpp
2698 ## Sequent Symmetry running DYNIX/ptx
2699 ## Use the old cpp rather than the newer ANSI one.
2700 i
[3456]86-sequent-ptx* )
2701 machine
=sequent-ptx opsys
=ptx
2702 NON_GNU_CPP
="/lib/cpp"
2705 ## ncr machine running svr4.3.
2706 i
[3456]86-ncr-sysv4.3
)
2707 machine
=ncr386 opsys
=usg5-4-3
2710 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2711 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2712 i
[3456]86-ncr-sysv* )
2713 machine
=ncr386 opsys
=usg5-4-2
2716 ## Intel Paragon OSF/1
2718 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2723 machine
=i860 opsys
=usg5-4
2724 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2725 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2728 ## Macintosh PowerPC
2729 powerpc
*-*-linux-gnu* )
2730 machine
=macppc opsys
=gnu-linux
2733 ## Masscomp machines
2734 m68
*-masscomp-rtu* )
2735 machine
=masscomp opsys
=rtu
2738 ## Megatest machines
2739 m68
*-megatest-bsd* )
2740 machine
=mega68 opsys
=bsd4-2
2743 ## Workstations sold by MIPS
2744 ## This is not necessarily all workstations using the MIPS processor -
2745 ## Irises are produced by SGI, and DECstations by DEC.
2747 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2748 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2749 ## it gives for choosing between the alternatives seems to be "Use
2750 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2751 ## the BSD world." I'll assume that these are instructions for
2752 ## handling two odd situations, and that every other situation
2753 ## should use mips.h and usg5-2-2, they being listed first.
2756 ## Fall through to the general code at the bottom to decide on the OS.
2758 mips-mips-riscos4
* )
2759 machine
=mips4 opsys
=bsd4-3
2760 NON_GNU_CC
="cc -systype bsd43"
2761 NON_GNU_CPP
="cc -systype bsd43 -E"
2763 mips-mips-riscos5
* )
2764 machine
=mips4 opsys
=riscos5
2765 NON_GNU_CC
="cc -systype bsd43"
2766 NON_GNU_CPP
="cc -systype bsd43 -E"
2769 machine
=mips opsys
=bsd4-3
2772 machine
=mips opsys
=usg5-2-2
2776 m68
*-next-* | m68k-
*-nextstep* )
2777 machine
=m68k opsys
=nextstep
2780 ## The complete machine from National Semiconductor
2782 machine
=ns32000 opsys
=usg5-2
2786 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2787 machine
=tower32 opsys
=usg5-2-2
2789 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2790 machine
=tower32v3 opsys
=usg5-3
2795 machine
=ews4800 opsys
=ux4800
2798 ## Nixdorf Targon 31
2799 m68
*-nixdorf-sysv* )
2800 machine
=targon31 opsys
=usg5-2-2
2805 machine
=nu opsys
=usg5-2
2810 machine
=plexus opsys
=usg5-2
2814 ## I don't really have any idea what sort of processor the Pyramid has,
2815 ## so I'm assuming it is its own architecture.
2816 pyramid-pyramid-bsd
* )
2817 machine
=pyramid opsys
=bsd4-2
2821 ns32k-sequent-bsd4.2
* )
2822 machine
=sequent opsys
=bsd4-2
2824 ns32k-sequent-bsd4.3
* )
2825 machine
=sequent opsys
=bsd4-3
2829 mips-siemens-sysv
* | mips-sni-sysv
*)
2830 machine
=mips-siemens opsys
=usg5-4
2831 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2832 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2835 ## Silicon Graphics machines
2836 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2838 machine
=irist opsys
=iris3-5
2840 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2841 machine
=irist opsys
=iris3-6
2845 machine
=iris4d opsys
=irix3-3
2848 machine
=iris4d opsys
=irix4-0
2851 machine
=iris4d opsys
=irix6-5
2852 # Without defining _LANGUAGE_C, things get masked out in the headers
2853 # so that, for instance, grepping for `free' in stdlib.h fails and
2854 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2855 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2856 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2859 machine
=iris4d opsys
=irix6-0
2860 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2861 # but presumably it does no harm.
2862 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2863 # -32 probably isn't necessary in later v.6s -- anyone know which?
2864 NON_GCC_TEST_OPTIONS
=-32
2866 mips-sgi-irix5.
[01]* )
2867 machine
=iris4d opsys
=irix5-0
2869 mips-sgi-irix5
* | mips-sgi-irix
* )
2870 machine
=iris4d opsys
=irix5-2
2875 machine
=news opsys
=bsd4-2
2878 machine
=news opsys
=bsd4-3
2880 m68
*-sony-newsos3* | m68
*-sony-news3*)
2881 machine
=news opsys
=bsd4-3
2883 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2884 machine
=news-risc opsys
=bsd4-3
2886 mips-sony-newsos6
* )
2887 machine
=news-r6 opsys
=newsos6
2890 machine
=news-risc opsys
=newsos5
2895 machine
=stride opsys
=usg5-2
2899 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2900 machine
=sparc opsys
=gnu-linux
2903 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2904 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2905 | rs6000-
*-solaris2*)
2906 case "${canonical}" in
2907 m68
*-sunos1* ) machine
=sun1
;;
2908 m68
*-sunos2* ) machine
=sun2
;;
2909 m68
* ) machine
=sun3
;;
2910 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2911 i
[3456]86-*-* ) machine
=intel386
;;
2912 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2913 powerpcle
* ) machine
=powerpcle
;;
2914 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2915 sparc
* ) machine
=sparc
;;
2918 case "${canonical}" in
2919 ## The Sun386 didn't get past 4.0.
2920 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2921 *-sunos4.0
* ) opsys
=sunos4-0
;;
2922 *-sunos4.1.
[3-9]*noshare
)
2923 ## This name is sunos413 instead of sunos4-1-3
2924 ## to avoid a file name conflict on MSDOS.
2926 NON_GNU_CPP
=/usr
/lib
/cpp
2927 NON_GCC_TEST_OPTIONS
=-Bstatic
2928 GCC_TEST_OPTIONS
=-static
2930 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2932 NON_GNU_CPP
=/usr
/lib
/cpp
2934 *-sunos4* |
*-sunos )
2936 NON_GCC_TEST_OPTIONS
=-Bstatic
2937 GCC_TEST_OPTIONS
=-static
2939 *-sunos5.3
* |
*-solaris2.3
* )
2941 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2943 *-sunos5.4
* |
*-solaris2.4
* )
2945 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2948 *-sunos5.5
* |
*-solaris2.5
* )
2950 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2953 *-sunos5.6
* |
*-solaris2.6
* )
2955 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2958 *-sunos5* |
*-solaris* )
2960 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2964 ## Watch out for a compiler that we know will not work.
2965 case "${canonical}" in
2966 *-solaris* |
*-sunos5* )
2967 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2968 ## /usr/ucb/cc doesn't work;
2969 ## we should find some other compiler that does work.
2977 machine
=sparc opsys
=nextstep
2981 m68
*-tadpole-sysv* )
2982 machine
=tad68k opsys
=usg5-3
2986 tahoe-tahoe-bsd4.2
* )
2987 machine
=tahoe opsys
=bsd4-2
2989 tahoe-tahoe-bsd4.3
* )
2990 machine
=tahoe opsys
=bsd4-3
2993 ## Tandem Integrity S2
2995 machine
=tandem-s2 opsys
=usg5-3
2999 m88k-tektronix-sysv3
* )
3000 machine
=tekxd88 opsys
=usg5-3
3003 ## Tektronix 16000 box (6130?)
3004 ns16k-tektronix-bsd
* )
3005 machine
=ns16000 opsys
=bsd4-2
3008 ## src/m/tek4300.h hints that this is a m68k machine.
3009 m68
*-tektronix-bsd* )
3010 machine
=tek4300 opsys
=bsd4-3
3014 ## We seem to have lost the machine-description file titan.h!
3016 machine
=titan opsys
=usg5-3
3019 ## Ustation E30 (SS5E)
3020 m68
*-unisys-uniplus* )
3021 machine
=ustation opsystem
=unipl5-2
3027 case "${canonical}" in
3028 *-bsd4.1
* ) opsys
=bsd4-1
;;
3029 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3030 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3031 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3032 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3033 *-vms* ) opsys
=vms
;;
3039 ns16k-whitechapel-
* )
3041 ## We don't know what sort of OS runs on these; we'll let the
3042 ## operating system guessing code below try.
3047 machine
=wicat opsys
=usg5-2
3052 machine
=ia64 opsys
=gnu-linux
3055 ## Intel 386 machines where we don't care about the manufacturer
3058 case "${canonical}" in
3059 *-cygwin ) opsys
=cygwin
;;
3060 *-darwin* ) opsys
=darwin
3061 CPP
="${CC-cc} -E -no-cpp-precomp"
3063 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3064 *-isc2.2
* ) opsys
=isc2-2
;;
3065 *-isc4.0
* ) opsys
=isc4-0
;;
3066 *-isc4.
* ) opsys
=isc4-1
3067 GCC_TEST_OPTIONS
=-posix
3068 NON_GCC_TEST_OPTIONS
=-Xp
3070 *-isc* ) opsys
=isc3-0
;;
3071 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3072 *-esix* ) opsys
=esix
;;
3073 *-xenix* ) opsys
=xenix
;;
3074 *-linux-gnu* ) opsys
=gnu-linux
;;
3075 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3076 *-sco3.2v5
* ) opsys
=sco5
3077 NON_GNU_CPP
=/lib
/cpp
3078 # Prevent -belf from being passed to $CPP.
3079 # /lib/cpp does not accept it.
3080 OVERRIDE_CPPFLAGS
=" "
3082 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3083 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3084 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3085 *-386bsd* ) opsys
=386bsd
;;
3086 *-nextstep* ) opsys
=nextstep
;;
3087 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3091 ## m68k Linux-based GNU system
3093 machine
=m68k opsys
=gnu-linux
3096 ## Mips Linux-based GNU system
3097 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3098 machine
=mips opsys
=gnu-linux
3102 sparc-fujitsu-sysv4
* )
3103 machine
=sparc opsys
=uxpds
3104 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3109 f301-fujitsu-uxpv4.1
)
3110 machine
=f301 opsys
=uxpv
3113 ## AMD x86-64 Linux-based GNU system
3114 x86_64-
*-linux-gnu* )
3115 machine
=amdx86-64 opsys
=gnu-linux
3118 ## Tensilica Xtensa Linux-based GNU system
3119 xtensa-
*-linux-gnu* )
3120 machine
=xtensa opsys
=gnu-linux
3128 ### If the code above didn't choose an operating system, just choose
3129 ### an operating system based on the configuration name. You really
3130 ### only want to use this when you have no idea what the right
3131 ### operating system is; if you know what operating systems a machine
3132 ### runs, it's cleaner to make it explicit in the case statement
3134 if test x
"${opsys}" = x
; then
3135 case "${canonical}" in
3136 *-gnu* ) opsys
=gnu
;;
3137 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3138 *-bsd4.2
) opsys
=bsd4-2
;;
3139 *-bsd4.3
) opsys
=bsd4-3
;;
3140 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3141 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3142 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3143 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3144 *-sysv4.2uw
* ) opsys
=unixware
;;
3145 *-sysv5uw* ) opsys
=unixware
;;
3146 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3147 *-sysv4.1
* |
*-sysvr4.1
* )
3148 NON_GNU_CPP
=/usr
/lib
/cpp
3150 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3151 if [ x
$NON_GNU_CPP = x
]; then
3152 if [ -f /usr
/ccs
/lib
/cpp
]; then
3153 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3155 NON_GNU_CPP
=/lib
/cpp
3159 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3168 if test $unported = yes; then
3169 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3170 Check \`etc/MACHINES' for recognized configuration names." >&5
3171 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3172 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3173 { (exit 1); exit 1; }; }
3176 machfile
="m/${machine}.h"
3177 opsysfile
="s/${opsys}.h"
3180 #### Choose a compiler.
3181 test -n "$CC" && cc_specified
=yes
3183 # Save the value of CFLAGS that the user specified.
3184 SPECIFIED_CFLAGS
="$CFLAGS"
3187 "yes" ) CC
="gcc" GCC
=yes ;;
3188 "no" ) : ${CC=cc} ;;
3192 ac_cpp
='$CPP $CPPFLAGS'
3193 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3196 if test -n "$ac_tool_prefix"; then
3197 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3198 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3199 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3200 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3201 if test "${ac_cv_prog_CC+set}" = set; then
3202 echo $ECHO_N "(cached) $ECHO_C" >&6
3204 if test -n "$CC"; then
3205 ac_cv_prog_CC
="$CC" # Let the user override the test.
3207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3211 test -z "$as_dir" && as_dir
=.
3212 for ac_exec_ext
in '' $ac_executable_extensions; do
3213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3214 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3215 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3225 if test -n "$CC"; then
3226 { echo "$as_me:$LINENO: result: $CC" >&5
3227 echo "${ECHO_T}$CC" >&6; }
3229 { echo "$as_me:$LINENO: result: no" >&5
3230 echo "${ECHO_T}no" >&6; }
3235 if test -z "$ac_cv_prog_CC"; then
3237 # Extract the first word of "gcc", so it can be a program name with args.
3238 set dummy gcc
; ac_word
=$2
3239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3241 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3242 echo $ECHO_N "(cached) $ECHO_C" >&6
3244 if test -n "$ac_ct_CC"; then
3245 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3247 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3251 test -z "$as_dir" && as_dir
=.
3252 for ac_exec_ext
in '' $ac_executable_extensions; do
3253 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3254 ac_cv_prog_ac_ct_CC
="gcc"
3255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3264 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3265 if test -n "$ac_ct_CC"; then
3266 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3267 echo "${ECHO_T}$ac_ct_CC" >&6; }
3269 { echo "$as_me:$LINENO: result: no" >&5
3270 echo "${ECHO_T}no" >&6; }
3273 if test "x$ac_ct_CC" = x
; then
3276 case $cross_compiling:$ac_tool_warned in
3278 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3279 whose name does not start with the host triplet. If you think this
3280 configuration is useful to you, please write to autoconf@gnu.org." >&5
3281 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3282 whose name does not start with the host triplet. If you think this
3283 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3284 ac_tool_warned
=yes ;;
3292 if test -z "$CC"; then
3293 if test -n "$ac_tool_prefix"; then
3294 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3295 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3296 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3297 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3298 if test "${ac_cv_prog_CC+set}" = set; then
3299 echo $ECHO_N "(cached) $ECHO_C" >&6
3301 if test -n "$CC"; then
3302 ac_cv_prog_CC
="$CC" # Let the user override the test.
3304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3308 test -z "$as_dir" && as_dir
=.
3309 for ac_exec_ext
in '' $ac_executable_extensions; do
3310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3311 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3312 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3322 if test -n "$CC"; then
3323 { echo "$as_me:$LINENO: result: $CC" >&5
3324 echo "${ECHO_T}$CC" >&6; }
3326 { echo "$as_me:$LINENO: result: no" >&5
3327 echo "${ECHO_T}no" >&6; }
3333 if test -z "$CC"; then
3334 # Extract the first word of "cc", so it can be a program name with args.
3335 set dummy cc
; ac_word
=$2
3336 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3337 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3338 if test "${ac_cv_prog_CC+set}" = set; then
3339 echo $ECHO_N "(cached) $ECHO_C" >&6
3341 if test -n "$CC"; then
3342 ac_cv_prog_CC
="$CC" # Let the user override the test.
3345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3349 test -z "$as_dir" && as_dir
=.
3350 for ac_exec_ext
in '' $ac_executable_extensions; do
3351 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3352 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3353 ac_prog_rejected
=yes
3357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3364 if test $ac_prog_rejected = yes; then
3365 # We found a bogon in the path, so make sure we never use it.
3366 set dummy
$ac_cv_prog_CC
3368 if test $# != 0; then
3369 # We chose a different compiler from the bogus one.
3370 # However, it has the same basename, so the bogon will be chosen
3371 # first if we set CC to just the basename; use the full file name.
3373 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3379 if test -n "$CC"; then
3380 { echo "$as_me:$LINENO: result: $CC" >&5
3381 echo "${ECHO_T}$CC" >&6; }
3383 { echo "$as_me:$LINENO: result: no" >&5
3384 echo "${ECHO_T}no" >&6; }
3389 if test -z "$CC"; then
3390 if test -n "$ac_tool_prefix"; then
3391 for ac_prog
in cl.exe
3393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3394 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3395 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3396 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3397 if test "${ac_cv_prog_CC+set}" = set; then
3398 echo $ECHO_N "(cached) $ECHO_C" >&6
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC
="$CC" # Let the user override the test.
3403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3407 test -z "$as_dir" && as_dir
=.
3408 for ac_exec_ext
in '' $ac_executable_extensions; do
3409 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3410 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3411 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3421 if test -n "$CC"; then
3422 { echo "$as_me:$LINENO: result: $CC" >&5
3423 echo "${ECHO_T}$CC" >&6; }
3425 { echo "$as_me:$LINENO: result: no" >&5
3426 echo "${ECHO_T}no" >&6; }
3430 test -n "$CC" && break
3433 if test -z "$CC"; then
3435 for ac_prog
in cl.exe
3437 # Extract the first word of "$ac_prog", so it can be a program name with args.
3438 set dummy
$ac_prog; ac_word
=$2
3439 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3441 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3442 echo $ECHO_N "(cached) $ECHO_C" >&6
3444 if test -n "$ac_ct_CC"; then
3445 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3451 test -z "$as_dir" && as_dir
=.
3452 for ac_exec_ext
in '' $ac_executable_extensions; do
3453 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3454 ac_cv_prog_ac_ct_CC
="$ac_prog"
3455 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3464 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3465 if test -n "$ac_ct_CC"; then
3466 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3467 echo "${ECHO_T}$ac_ct_CC" >&6; }
3469 { echo "$as_me:$LINENO: result: no" >&5
3470 echo "${ECHO_T}no" >&6; }
3474 test -n "$ac_ct_CC" && break
3477 if test "x$ac_ct_CC" = x
; then
3480 case $cross_compiling:$ac_tool_warned in
3482 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3483 whose name does not start with the host triplet. If you think this
3484 configuration is useful to you, please write to autoconf@gnu.org." >&5
3485 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3486 whose name does not start with the host triplet. If you think this
3487 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3488 ac_tool_warned
=yes ;;
3497 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3498 See \`config.log' for more details." >&5
3499 echo "$as_me: error: no acceptable C compiler found in \$PATH
3500 See \`config.log' for more details." >&2;}
3501 { (exit 1); exit 1; }; }
3503 # Provide some information about the compiler.
3504 echo "$as_me:$LINENO: checking for C compiler version" >&5
3505 ac_compiler
=`set X $ac_compile; echo $2`
3506 { (ac_try
="$ac_compiler --version >&5"
3508 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3512 (eval "$ac_compiler --version >&5") 2>&5
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }
3516 { (ac_try="$ac_compiler -v >&5"
3518 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3519 *) ac_try_echo
=$ac_try;;
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_compiler -v >&5") 2>&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }
3526 { (ac_try
="$ac_compiler -V >&5"
3528 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3529 *) ac_try_echo=$ac_try;;
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_compiler -V >&5") 2>&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }
3537 cat >conftest.$ac_ext <<_ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h. */
3552 ac_clean_files_save=$ac_clean_files
3553 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3554 # Try to create an executable without -o first, disregard a.out.
3555 # It will help us diagnose broken compilers, and finding out an intuition
3557 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3558 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3559 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3561 # List of possible output files, starting from the most likely.
3562 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3563 # only as a last resort. b.out is created by i960 compilers.
3564 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3566 # The IRIX 6 linker writes into existing files which may not be
3567 # executable, retaining their permissions. Remove them first so a
3568 # subsequent execution test works.
3570 for ac_file in $ac_files
3573 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3574 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3579 if { (ac_try="$ac_link_default"
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585 (eval "$ac_link_default") 2>&5
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }; then
3589 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3590 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3591 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3592 # so that the user can short-circuit this test for compilers unknown to
3594 for ac_file
in $ac_files ''
3596 test -f "$ac_file" ||
continue
3598 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3601 # We found the default executable, but exeext='' is most
3605 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3607 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3609 # We set ac_cv_exeext here because the later test for it is not
3610 # safe: cross compilers may not add the suffix if given an `-o'
3611 # argument, so we may need to know it at that point already.
3612 # Even if this section looks crufty: it has the advantage of
3619 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3625 { echo "$as_me:$LINENO: result: $ac_file" >&5
3626 echo "${ECHO_T}$ac_file" >&6; }
3627 if test -z "$ac_file"; then
3628 echo "$as_me: failed program was:" >&5
3629 sed 's/^/| /' conftest.
$ac_ext >&5
3631 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3632 See \`config.log' for more details." >&5
3633 echo "$as_me: error: C compiler cannot create executables
3634 See \`config.log' for more details." >&2;}
3635 { (exit 77); exit 77; }; }
3638 ac_exeext
=$ac_cv_exeext
3640 # Check that the compiler produces executables we can run. If not, either
3641 # the compiler is broken, or we cross compile.
3642 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3643 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3644 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3645 # If not cross compiling, check that we can run a simple program.
3646 if test "$cross_compiling" != yes; then
3647 if { ac_try
='./$ac_file'
3648 { (case "(($ac_try" in
3649 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3650 *) ac_try_echo=$ac_try;;
3652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3653 (eval "$ac_try") 2>&5
3655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3656 (exit $ac_status); }; }; then
3659 if test "$cross_compiling" = maybe; then
3662 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3663 If you meant to cross compile, use \`--host'.
3664 See \`config.log' for more details.
" >&5
3665 echo "$as_me: error
: cannot run C compiled programs.
3666 If you meant to cross compile
, use \
`--host'.
3667 See \`config.log
' for more details." >&2;}
3668 { (exit 1); exit 1; }; }
3672 { echo "$as_me:$LINENO: result: yes" >&5
3673 echo "${ECHO_T}yes" >&6; }
3675 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3676 ac_clean_files=$ac_clean_files_save
3677 # Check that the compiler produces executables we can run. If not, either
3678 # the compiler is broken, or we cross compile.
3679 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3680 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3681 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3682 echo "${ECHO_T}$cross_compiling" >&6; }
3684 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3685 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3686 if { (ac_try="$ac_link"
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3692 (eval "$ac_link") 2>&5
3694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3695 (exit $ac_status); }; then
3696 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3697 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3698 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3700 for ac_file
in conftest.exe conftest conftest.
*; do
3701 test -f "$ac_file" ||
continue
3703 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3704 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3710 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3711 See \`config.log' for more details." >&5
3712 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3713 See \`config.log' for more details." >&2;}
3714 { (exit 1); exit 1; }; }
3717 rm -f conftest
$ac_cv_exeext
3718 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3719 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3721 rm -f conftest.
$ac_ext
3722 EXEEXT
=$ac_cv_exeext
3724 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3725 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3726 if test "${ac_cv_objext+set}" = set; then
3727 echo $ECHO_N "(cached) $ECHO_C" >&6
3729 cat >conftest.
$ac_ext <<_ACEOF
3732 cat confdefs.h
>>conftest.
$ac_ext
3733 cat >>conftest.
$ac_ext <<_ACEOF
3734 /* end confdefs.h. */
3744 rm -f conftest.o conftest.obj
3745 if { (ac_try
="$ac_compile"
3747 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3748 *) ac_try_echo=$ac_try;;
3750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3751 (eval "$ac_compile") 2>&5
3753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3754 (exit $ac_status); }; then
3755 for ac_file in conftest.o conftest.obj conftest.*; do
3756 test -f "$ac_file" || continue;
3758 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3759 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3764 echo "$as_me: failed program was:" >&5
3765 sed 's/^/| /' conftest.$ac_ext >&5
3767 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3768 See \`config.log
' for more details." >&5
3769 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3770 See \`config.log' for more details.
" >&2;}
3771 { (exit 1); exit 1; }; }
3774 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3776 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3777 echo "${ECHO_T}$ac_cv_objext" >&6; }
3778 OBJEXT=$ac_cv_objext
3780 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3781 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3782 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3783 echo $ECHO_N "(cached
) $ECHO_C" >&6
3785 cat >conftest.$ac_ext <<_ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3803 rm -f conftest.$ac_objext
3804 if { (ac_try="$ac_compile"
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3809 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_compile") 2>conftest.er1
3812 grep -v '^ *+' conftest.er1 >conftest.err
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3816 (exit $ac_status); } && {
3817 test -z "$ac_c_werror_flag" ||
3818 test ! -s conftest.err
3819 } && test -s conftest.$ac_objext; then
3822 echo "$as_me: failed program was
:" >&5
3823 sed 's/^/| /' conftest.$ac_ext >&5
3828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3829 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3832 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3833 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3834 GCC=`test $ac_compiler_gnu = yes && echo yes`
3835 ac_test_CFLAGS=${CFLAGS+set}
3836 ac_save_CFLAGS=$CFLAGS
3837 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3838 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3839 if test "${ac_cv_prog_cc_g+set}" = set; then
3840 echo $ECHO_N "(cached
) $ECHO_C" >&6
3842 ac_save_c_werror_flag=$ac_c_werror_flag
3843 ac_c_werror_flag=yes
3846 cat >conftest.$ac_ext <<_ACEOF
3849 cat confdefs.h >>conftest.$ac_ext
3850 cat >>conftest.$ac_ext <<_ACEOF
3851 /* end confdefs.h. */
3861 rm -f conftest.$ac_objext
3862 if { (ac_try="$ac_compile"
3864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3865 *) ac_try_echo=$ac_try;;
3867 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3868 (eval "$ac_compile") 2>conftest.er1
3870 grep -v '^ *+' conftest.er1 >conftest.err
3872 cat conftest.err >&5
3873 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3874 (exit $ac_status); } && {
3875 test -z "$ac_c_werror_flag" ||
3876 test ! -s conftest.err
3877 } && test -s conftest.$ac_objext; then
3880 echo "$as_me: failed program was
:" >&5
3881 sed 's/^/| /' conftest.$ac_ext >&5
3884 cat >conftest.$ac_ext <<_ACEOF
3887 cat confdefs.h >>conftest.$ac_ext
3888 cat >>conftest.$ac_ext <<_ACEOF
3889 /* end confdefs.h. */
3899 rm -f conftest.$ac_objext
3900 if { (ac_try="$ac_compile"
3902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3903 *) ac_try_echo=$ac_try;;
3905 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3906 (eval "$ac_compile") 2>conftest.er1
3908 grep -v '^ *+' conftest.er1 >conftest.err
3910 cat conftest.err >&5
3911 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3912 (exit $ac_status); } && {
3913 test -z "$ac_c_werror_flag" ||
3914 test ! -s conftest.err
3915 } && test -s conftest.$ac_objext; then
3918 echo "$as_me: failed program was
:" >&5
3919 sed 's/^/| /' conftest.$ac_ext >&5
3921 ac_c_werror_flag=$ac_save_c_werror_flag
3923 cat >conftest.$ac_ext <<_ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h. */
3938 rm -f conftest.$ac_objext
3939 if { (ac_try="$ac_compile"
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3944 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3945 (eval "$ac_compile") 2>conftest.er1
3947 grep -v '^ *+' conftest.er1 >conftest.err
3949 cat conftest.err >&5
3950 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3951 (exit $ac_status); } && {
3952 test -z "$ac_c_werror_flag" ||
3953 test ! -s conftest.err
3954 } && test -s conftest.$ac_objext; then
3957 echo "$as_me: failed program was
:" >&5
3958 sed 's/^/| /' conftest.$ac_ext >&5
3963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3970 ac_c_werror_flag=$ac_save_c_werror_flag
3972 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3973 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3974 if test "$ac_test_CFLAGS" = set; then
3975 CFLAGS=$ac_save_CFLAGS
3976 elif test $ac_cv_prog_cc_g = yes; then
3977 if test "$GCC" = yes; then
3983 if test "$GCC" = yes; then
3989 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
3990 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
3991 if test "${ac_cv_prog_cc_c89+set}" = set; then
3992 echo $ECHO_N "(cached
) $ECHO_C" >&6
3994 ac_cv_prog_cc_c89=no
3996 cat >conftest.$ac_ext <<_ACEOF
3999 cat confdefs.h >>conftest.$ac_ext
4000 cat >>conftest.$ac_ext <<_ACEOF
4001 /* end confdefs.h. */
4004 #include <sys/types.h>
4005 #include <sys/stat.h>
4006 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4007 struct buf { int x; };
4008 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4009 static char *e (p, i)
4015 static char *f (char * (*g) (char **, int), char **p, ...)
4020 s = g (p, va_arg (v,int));
4025 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4026 function prototypes and stuff, but not '\xHH' hex character constants.
4027 These don't provoke an error unfortunately, instead are silently treated
4028 as 'x'. The following induces an error, until -std is added to get
4029 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4030 array size at least. It's necessary to write '\x00'==0 to get something
4031 that's true only with -std. */
4032 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4034 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4035 inside strings and character constants. */
4037 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4039 int test (int i, double x);
4040 struct s1 {int (*f) (int a);};
4041 struct s2 {int (*f) (double a);};
4042 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4048 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4053 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4054 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4056 CC="$ac_save_CC $ac_arg"
4057 rm -f conftest.$ac_objext
4058 if { (ac_try="$ac_compile"
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4063 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_compile") 2>conftest.er1
4066 grep -v '^ *+' conftest.er1 >conftest.err
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4070 (exit $ac_status); } && {
4071 test -z "$ac_c_werror_flag" ||
4072 test ! -s conftest.err
4073 } && test -s conftest.$ac_objext; then
4074 ac_cv_prog_cc_c89=$ac_arg
4076 echo "$as_me: failed program was
:" >&5
4077 sed 's/^/| /' conftest.$ac_ext >&5
4082 rm -f core conftest.err conftest.$ac_objext
4083 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4085 rm -f conftest.$ac_ext
4090 case "x
$ac_cv_prog_cc_c89" in
4092 { echo "$as_me:$LINENO: result
: none needed
" >&5
4093 echo "${ECHO_T}none needed
" >&6; } ;;
4095 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4096 echo "${ECHO_T}unsupported
" >&6; } ;;
4098 CC="$CC $ac_cv_prog_cc_c89"
4099 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4100 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4105 ac_cpp='$CPP $CPPFLAGS'
4106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4111 # On Suns, sometimes $CPP names a directory.
4112 if test -n "$CPP" && test -d "$CPP"; then
4116 #### Some systems specify a CPP to use unless we are using GCC.
4117 #### Now that we know whether we are using GCC, we can decide whether
4118 #### to use that one.
4119 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4124 #### Some systems specify a CC to use unless we are using GCC.
4125 #### Now that we know whether we are using GCC, we can decide whether
4126 #### to use that one.
4127 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4128 test x$cc_specified != xyes
4133 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4135 CC="$CC $GCC_TEST_OPTIONS"
4138 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4140 CC="$CC $NON_GCC_TEST_OPTIONS"
4145 ac_cpp='$CPP $CPPFLAGS'
4146 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4147 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4148 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4149 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4150 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4151 # On Suns, sometimes $CPP names a directory.
4152 if test -n "$CPP" && test -d "$CPP"; then
4155 if test -z "$CPP"; then
4156 if test "${ac_cv_prog_CPP+set}" = set; then
4157 echo $ECHO_N "(cached
) $ECHO_C" >&6
4159 # Double quotes because CPP needs to be expanded
4160 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4163 for ac_c_preproc_warn_flag in '' yes
4165 # Use a header file that comes with gcc, so configuring glibc
4166 # with a fresh cross-compiler works.
4167 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4168 # <limits.h> exists even on freestanding compilers.
4169 # On the NeXT, cc -E runs the code through the compiler's parser,
4170 # not just through cpp. "Syntax error
" is here to catch this case.
4171 cat >conftest.$ac_ext <<_ACEOF
4174 cat confdefs.h >>conftest.$ac_ext
4175 cat >>conftest.$ac_ext <<_ACEOF
4176 /* end confdefs.h. */
4178 # include <limits.h>
4180 # include <assert.h>
4184 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4189 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4190 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4192 grep -v '^ *+' conftest.er1 >conftest.err
4194 cat conftest.err >&5
4195 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4196 (exit $ac_status); } >/dev/null && {
4197 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4198 test ! -s conftest.err
4202 echo "$as_me: failed program was
:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4205 # Broken: fails on valid input.
4209 rm -f conftest.err conftest.$ac_ext
4211 # OK, works on sane cases. Now check whether nonexistent headers
4212 # can be detected and how.
4213 cat >conftest.$ac_ext <<_ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4219 #include <ac_nonexistent.h>
4221 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4224 *) ac_try_echo=$ac_try;;
4226 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4227 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4229 grep -v '^ *+' conftest.er1 >conftest.err
4231 cat conftest.err >&5
4232 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4233 (exit $ac_status); } >/dev/null && {
4234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4235 test ! -s conftest.err
4237 # Broken: success on invalid input.
4240 echo "$as_me: failed program was
:" >&5
4241 sed 's/^/| /' conftest.$ac_ext >&5
4243 # Passes both tests.
4248 rm -f conftest.err conftest.$ac_ext
4251 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4252 rm -f conftest.err conftest.$ac_ext
4253 if $ac_preproc_ok; then
4265 { echo "$as_me:$LINENO: result
: $CPP" >&5
4266 echo "${ECHO_T}$CPP" >&6; }
4268 for ac_c_preproc_warn_flag in '' yes
4270 # Use a header file that comes with gcc, so configuring glibc
4271 # with a fresh cross-compiler works.
4272 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4273 # <limits.h> exists even on freestanding compilers.
4274 # On the NeXT, cc -E runs the code through the compiler's parser,
4275 # not just through cpp. "Syntax error
" is here to catch this case.
4276 cat >conftest.$ac_ext <<_ACEOF
4279 cat confdefs.h >>conftest.$ac_ext
4280 cat >>conftest.$ac_ext <<_ACEOF
4281 /* end confdefs.h. */
4283 # include <limits.h>
4285 # include <assert.h>
4289 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4295 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4297 grep -v '^ *+' conftest.er1 >conftest.err
4299 cat conftest.err >&5
4300 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4301 (exit $ac_status); } >/dev/null && {
4302 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4303 test ! -s conftest.err
4307 echo "$as_me: failed program was
:" >&5
4308 sed 's/^/| /' conftest.$ac_ext >&5
4310 # Broken: fails on valid input.
4314 rm -f conftest.err conftest.$ac_ext
4316 # OK, works on sane cases. Now check whether nonexistent headers
4317 # can be detected and how.
4318 cat >conftest.$ac_ext <<_ACEOF
4321 cat confdefs.h >>conftest.$ac_ext
4322 cat >>conftest.$ac_ext <<_ACEOF
4323 /* end confdefs.h. */
4324 #include <ac_nonexistent.h>
4326 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4331 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4334 grep -v '^ *+' conftest.er1 >conftest.err
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4338 (exit $ac_status); } >/dev/null && {
4339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4340 test ! -s conftest.err
4342 # Broken: success on invalid input.
4345 echo "$as_me: failed program was
:" >&5
4346 sed 's/^/| /' conftest.$ac_ext >&5
4348 # Passes both tests.
4353 rm -f conftest.err conftest.$ac_ext
4356 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4357 rm -f conftest.err conftest.$ac_ext
4358 if $ac_preproc_ok; then
4361 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4362 See \
`config.log' for more details." >&5
4363 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4364 See \`config.log
' for more details." >&2;}
4365 { (exit 1); exit 1; }; }
4369 ac_cpp='$CPP $CPPFLAGS'
4370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4371 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4375 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4376 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4377 if test "${ac_cv_path_GREP+set}" = set; then
4378 echo $ECHO_N "(cached) $ECHO_C" >&6
4380 # Extract the first word of "grep ggrep" to use in msg output
4381 if test -z "$GREP"; then
4382 set dummy grep ggrep; ac_prog_name=$2
4383 if test "${ac_cv_path_GREP+set}" = set; then
4384 echo $ECHO_N "(cached) $ECHO_C" >&6
4386 ac_path_GREP_found=false
4387 # Loop through the user's path and
test for each of PROGNAME-LIST
4388 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4389 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4392 test -z "$as_dir" && as_dir
=.
4393 for ac_prog
in grep ggrep
; do
4394 for ac_exec_ext
in '' $ac_executable_extensions; do
4395 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4396 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4397 # Check for GNU ac_path_GREP and select it if it is found.
4398 # Check for GNU $ac_path_GREP
4399 case `"$ac_path_GREP" --version 2>&1` in
4401 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4404 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4407 cat "conftest.in" "conftest.in" >"conftest.tmp"
4408 mv "conftest.tmp" "conftest.in"
4409 cp "conftest.in" "conftest.nl"
4410 echo 'GREP' >> "conftest.nl"
4411 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4412 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4413 ac_count
=`expr $ac_count + 1`
4414 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4415 # Best one so far, save it but keep looking for a better one
4416 ac_cv_path_GREP
="$ac_path_GREP"
4417 ac_path_GREP_max
=$ac_count
4419 # 10*(2^10) chars as input seems more than enough
4420 test $ac_count -gt 10 && break
4422 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4426 $ac_path_GREP_found && break 3
4436 GREP
="$ac_cv_path_GREP"
4437 if test -z "$GREP"; then
4438 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4439 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4440 { (exit 1); exit 1; }; }
4444 ac_cv_path_GREP
=$GREP
4449 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4450 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4451 GREP
="$ac_cv_path_GREP"
4454 { echo "$as_me:$LINENO: checking for egrep" >&5
4455 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4456 if test "${ac_cv_path_EGREP+set}" = set; then
4457 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4460 then ac_cv_path_EGREP
="$GREP -E"
4462 # Extract the first word of "egrep" to use in msg output
4463 if test -z "$EGREP"; then
4464 set dummy
egrep; ac_prog_name
=$2
4465 if test "${ac_cv_path_EGREP+set}" = set; then
4466 echo $ECHO_N "(cached) $ECHO_C" >&6
4468 ac_path_EGREP_found
=false
4469 # Loop through the user's path and test for each of PROGNAME-LIST
4470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4471 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4474 test -z "$as_dir" && as_dir
=.
4475 for ac_prog
in egrep; do
4476 for ac_exec_ext
in '' $ac_executable_extensions; do
4477 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4478 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4479 # Check for GNU ac_path_EGREP and select it if it is found.
4480 # Check for GNU $ac_path_EGREP
4481 case `"$ac_path_EGREP" --version 2>&1` in
4483 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4486 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4489 cat "conftest.in" "conftest.in" >"conftest.tmp"
4490 mv "conftest.tmp" "conftest.in"
4491 cp "conftest.in" "conftest.nl"
4492 echo 'EGREP' >> "conftest.nl"
4493 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4494 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4495 ac_count
=`expr $ac_count + 1`
4496 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4497 # Best one so far, save it but keep looking for a better one
4498 ac_cv_path_EGREP
="$ac_path_EGREP"
4499 ac_path_EGREP_max
=$ac_count
4501 # 10*(2^10) chars as input seems more than enough
4502 test $ac_count -gt 10 && break
4504 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4508 $ac_path_EGREP_found && break 3
4518 EGREP
="$ac_cv_path_EGREP"
4519 if test -z "$EGREP"; then
4520 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4521 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4522 { (exit 1); exit 1; }; }
4526 ac_cv_path_EGREP
=$EGREP
4532 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4533 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4534 EGREP
="$ac_cv_path_EGREP"
4538 { echo "$as_me:$LINENO: checking for AIX" >&5
4539 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4540 cat >conftest.
$ac_ext <<_ACEOF
4543 cat confdefs.h
>>conftest.
$ac_ext
4544 cat >>conftest.
$ac_ext <<_ACEOF
4545 /* end confdefs.h. */
4551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4552 $EGREP "yes" >/dev
/null
2>&1; then
4553 { echo "$as_me:$LINENO: result: yes" >&5
4554 echo "${ECHO_T}yes" >&6; }
4555 cat >>confdefs.h
<<\_ACEOF
4556 #define _ALL_SOURCE 1
4560 { echo "$as_me:$LINENO: result: no" >&5
4561 echo "${ECHO_T}no" >&6; }
4567 cat >>confdefs.h
<<\_ACEOF
4568 #define _GNU_SOURCE 1
4573 ### Use -Wno-pointer-sign if the compiler supports it
4574 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4575 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4576 SAVE_CFLAGS
="$CFLAGS"
4577 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4578 cat >conftest.
$ac_ext <<_ACEOF
4581 cat confdefs.h
>>conftest.
$ac_ext
4582 cat >>conftest.
$ac_ext <<_ACEOF
4583 /* end confdefs.h. */
4593 rm -f conftest.
$ac_objext
4594 if { (ac_try
="$ac_compile"
4596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4597 *) ac_try_echo=$ac_try;;
4599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4600 (eval "$ac_compile") 2>conftest.er1
4602 grep -v '^ *+' conftest.er1 >conftest.err
4604 cat conftest.err >&5
4605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4606 (exit $ac_status); } && {
4607 test -z "$ac_c_werror_flag" ||
4608 test ! -s conftest.err
4609 } && test -s conftest.$ac_objext; then
4612 echo "$as_me: failed program was:" >&5
4613 sed 's/^/| /' conftest.$ac_ext >&5
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 if test $has_option = yes; then
4620 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4622 { echo "$as_me:$LINENO: result: $has_option" >&5
4623 echo "${ECHO_T}$has_option" >&6; }
4624 CFLAGS="$SAVE_CFLAGS"
4628 #### Some other nice autoconf tests.
4630 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4631 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4633 if test "$LN_S" = "ln -s"; then
4634 { echo "$as_me:$LINENO: result: yes" >&5
4635 echo "${ECHO_T}yes" >&6; }
4637 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4638 echo "${ECHO_T}no, using $LN_S" >&6; }
4642 ac_cpp='$CPP $CPPFLAGS'
4643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4646 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4647 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4648 # On Suns, sometimes $CPP names a directory.
4649 if test -n "$CPP" && test -d "$CPP"; then
4652 if test -z "$CPP"; then
4653 if test "${ac_cv_prog_CPP+set}" = set; then
4654 echo $ECHO_N "(cached) $ECHO_C" >&6
4656 # Double quotes because CPP needs to be expanded
4657 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4660 for ac_c_preproc_warn_flag in '' yes
4662 # Use a header file that comes with gcc, so configuring glibc
4663 # with a fresh cross-compiler works.
4664 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4665 # <limits.h> exists even on freestanding compilers.
4666 # On the NeXT, cc -E runs the code through the compiler's parser,
4667 # not just through cpp. "Syntax error" is here to catch this case.
4668 cat >conftest.$ac_ext <<_ACEOF
4671 cat confdefs.h >>conftest.$ac_ext
4672 cat >>conftest.$ac_ext <<_ACEOF
4673 /* end confdefs.h. */
4675 # include <limits.h>
4677 # include <assert.h>
4681 if { (ac_try="$ac_cpp conftest.$ac_ext"
4683 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4684 *) ac_try_echo
=$ac_try;;
4686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4689 grep -v '^ *+' conftest.er1
>conftest.err
4691 cat conftest.err
>&5
4692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4693 (exit $ac_status); } >/dev
/null
&& {
4694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4695 test ! -s conftest.err
4699 echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.
$ac_ext >&5
4702 # Broken: fails on valid input.
4706 rm -f conftest.err conftest.
$ac_ext
4708 # OK, works on sane cases. Now check whether nonexistent headers
4709 # can be detected and how.
4710 cat >conftest.
$ac_ext <<_ACEOF
4713 cat confdefs.h
>>conftest.
$ac_ext
4714 cat >>conftest.
$ac_ext <<_ACEOF
4715 /* end confdefs.h. */
4716 #include <ac_nonexistent.h>
4718 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4720 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4724 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4726 grep -v '^ *+' conftest.er1 >conftest.err
4728 cat conftest.err >&5
4729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4730 (exit $ac_status); } >/dev/null && {
4731 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4732 test ! -s conftest.err
4734 # Broken: success on invalid input.
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4740 # Passes both tests.
4745 rm -f conftest.err conftest.$ac_ext
4748 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4749 rm -f conftest.err conftest.
$ac_ext
4750 if $ac_preproc_ok; then
4762 { echo "$as_me:$LINENO: result: $CPP" >&5
4763 echo "${ECHO_T}$CPP" >&6; }
4765 for ac_c_preproc_warn_flag
in '' yes
4767 # Use a header file that comes with gcc, so configuring glibc
4768 # with a fresh cross-compiler works.
4769 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4770 # <limits.h> exists even on freestanding compilers.
4771 # On the NeXT, cc -E runs the code through the compiler's parser,
4772 # not just through cpp. "Syntax error" is here to catch this case.
4773 cat >conftest.
$ac_ext <<_ACEOF
4776 cat confdefs.h
>>conftest.
$ac_ext
4777 cat >>conftest.
$ac_ext <<_ACEOF
4778 /* end confdefs.h. */
4780 # include <limits.h>
4782 # include <assert.h>
4786 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4788 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4789 *) ac_try_echo=$ac_try;;
4791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4792 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4794 grep -v '^ *+' conftest.er1 >conftest.err
4796 cat conftest.err >&5
4797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4798 (exit $ac_status); } >/dev/null && {
4799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4800 test ! -s conftest.err
4804 echo "$as_me: failed program was:" >&5
4805 sed 's/^/| /' conftest.$ac_ext >&5
4807 # Broken: fails on valid input.
4811 rm -f conftest.err conftest.$ac_ext
4813 # OK, works on sane cases. Now check whether nonexistent headers
4814 # can be detected and how.
4815 cat >conftest.$ac_ext <<_ACEOF
4818 cat confdefs.h >>conftest.$ac_ext
4819 cat >>conftest.$ac_ext <<_ACEOF
4820 /* end confdefs.h. */
4821 #include <ac_nonexistent.h>
4823 if { (ac_try="$ac_cpp conftest.$ac_ext"
4825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4826 *) ac_try_echo
=$ac_try;;
4828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4831 grep -v '^ *+' conftest.er1
>conftest.err
4833 cat conftest.err
>&5
4834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4835 (exit $ac_status); } >/dev
/null
&& {
4836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4837 test ! -s conftest.err
4839 # Broken: success on invalid input.
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.
$ac_ext >&5
4845 # Passes both tests.
4850 rm -f conftest.err conftest.
$ac_ext
4853 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4854 rm -f conftest.err conftest.
$ac_ext
4855 if $ac_preproc_ok; then
4858 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4859 See \`config.log' for more details." >&5
4860 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4861 See \`config.log' for more details." >&2;}
4862 { (exit 1); exit 1; }; }
4866 ac_cpp
='$CPP $CPPFLAGS'
4867 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4868 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4869 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4871 # Find a good install program. We prefer a C program (faster),
4872 # so one script is as good as another. But avoid the broken or
4873 # incompatible versions:
4874 # SysV /etc/install, /usr/sbin/install
4875 # SunOS /usr/etc/install
4876 # IRIX /sbin/install
4878 # AmigaOS /C/install, which installs bootblocks on floppy discs
4879 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4880 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4881 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4882 # OS/2's system install, which has a completely different semantic
4883 # ./install, which can be erroneously created by make from ./install.sh.
4884 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4885 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4886 if test -z "$INSTALL"; then
4887 if test "${ac_cv_path_install+set}" = set; then
4888 echo $ECHO_N "(cached) $ECHO_C" >&6
4890 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4894 test -z "$as_dir" && as_dir
=.
4895 # Account for people who put trailing slashes in PATH elements.
4897 .
/ | .
// |
/cC
/* | \
4898 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4899 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4902 # OSF1 and SCO ODT 3.0 have their own names for install.
4903 # Don't use installbsd from OSF since it installs stuff as root
4905 for ac_prog
in ginstall scoinst
install; do
4906 for ac_exec_ext
in '' $ac_executable_extensions; do
4907 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4908 if test $ac_prog = install &&
4909 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4910 # AIX install. It has an incompatible calling convention.
4912 elif test $ac_prog = install &&
4913 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4914 # program-specific install script used by HP pwplus--don't use.
4917 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4930 if test "${ac_cv_path_install+set}" = set; then
4931 INSTALL
=$ac_cv_path_install
4933 # As a last resort, use the slow shell script. Don't cache a
4934 # value for INSTALL within a source directory, because that will
4935 # break other packages using the cache if that directory is
4936 # removed, or if the value is a relative name.
4937 INSTALL
=$ac_install_sh
4940 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4941 echo "${ECHO_T}$INSTALL" >&6; }
4943 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4944 # It thinks the first close brace ends the variable substitution.
4945 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4947 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4949 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4951 if test "x$RANLIB" = x
; then
4952 if test -n "$ac_tool_prefix"; then
4953 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4954 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4955 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4956 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4957 if test "${ac_cv_prog_RANLIB+set}" = set; then
4958 echo $ECHO_N "(cached) $ECHO_C" >&6
4960 if test -n "$RANLIB"; then
4961 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4963 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4967 test -z "$as_dir" && as_dir
=.
4968 for ac_exec_ext
in '' $ac_executable_extensions; do
4969 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4970 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 RANLIB
=$ac_cv_prog_RANLIB
4981 if test -n "$RANLIB"; then
4982 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4983 echo "${ECHO_T}$RANLIB" >&6; }
4985 { echo "$as_me:$LINENO: result: no" >&5
4986 echo "${ECHO_T}no" >&6; }
4991 if test -z "$ac_cv_prog_RANLIB"; then
4992 ac_ct_RANLIB
=$RANLIB
4993 # Extract the first word of "ranlib", so it can be a program name with args.
4994 set dummy ranlib
; ac_word
=$2
4995 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4996 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4997 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4998 echo $ECHO_N "(cached) $ECHO_C" >&6
5000 if test -n "$ac_ct_RANLIB"; then
5001 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5007 test -z "$as_dir" && as_dir
=.
5008 for ac_exec_ext
in '' $ac_executable_extensions; do
5009 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5010 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5011 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5021 if test -n "$ac_ct_RANLIB"; then
5022 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5023 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5025 { echo "$as_me:$LINENO: result: no" >&5
5026 echo "${ECHO_T}no" >&6; }
5029 if test "x$ac_ct_RANLIB" = x
; then
5032 case $cross_compiling:$ac_tool_warned in
5034 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5035 whose name does not start with the host triplet. If you think this
5036 configuration is useful to you, please write to autoconf@gnu.org." >&5
5037 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5038 whose name does not start with the host triplet. If you think this
5039 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5040 ac_tool_warned
=yes ;;
5042 RANLIB
=$ac_ct_RANLIB
5045 RANLIB
="$ac_cv_prog_RANLIB"
5049 # Extract the first word of "install-info", so it can be a program name with args.
5050 set dummy install-info
; ac_word
=$2
5051 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5052 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5053 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5054 echo $ECHO_N "(cached) $ECHO_C" >&6
5056 case $INSTALL_INFO in
5058 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5061 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5065 test -z "$as_dir" && as_dir
=.
5066 for ac_exec_ext
in '' $ac_executable_extensions; do
5067 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5068 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5069 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5079 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5080 if test -n "$INSTALL_INFO"; then
5081 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5082 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5084 { echo "$as_me:$LINENO: result: no" >&5
5085 echo "${ECHO_T}no" >&6; }
5089 # Extract the first word of "install-info", so it can be a program name with args.
5090 set dummy install-info
; ac_word
=$2
5091 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5093 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5094 echo $ECHO_N "(cached) $ECHO_C" >&6
5096 case $INSTALL_INFO in
5098 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5101 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5102 for as_dir
in /usr
/sbin
5105 test -z "$as_dir" && as_dir
=.
5106 for ac_exec_ext
in '' $ac_executable_extensions; do
5107 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5108 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5109 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5119 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5120 if test -n "$INSTALL_INFO"; then
5121 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5122 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5124 { echo "$as_me:$LINENO: result: no" >&5
5125 echo "${ECHO_T}no" >&6; }
5129 # Extract the first word of "install-info", so it can be a program name with args.
5130 set dummy install-info
; ac_word
=$2
5131 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5133 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5134 echo $ECHO_N "(cached) $ECHO_C" >&6
5136 case $INSTALL_INFO in
5138 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5141 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5145 test -z "$as_dir" && as_dir
=.
5146 for ac_exec_ext
in '' $ac_executable_extensions; do
5147 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5148 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5156 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5160 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5161 if test -n "$INSTALL_INFO"; then
5162 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5163 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5165 { echo "$as_me:$LINENO: result: no" >&5
5166 echo "${ECHO_T}no" >&6; }
5170 # Extract the first word of "gzip", so it can be a program name with args.
5171 set dummy
gzip; ac_word
=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5179 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5182 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5186 test -z "$as_dir" && as_dir
=.
5187 for ac_exec_ext
in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5201 if test -n "$GZIP_PROG"; then
5202 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5203 echo "${ECHO_T}$GZIP_PROG" >&6; }
5205 { echo "$as_me:$LINENO: result: no" >&5
5206 echo "${ECHO_T}no" >&6; }
5212 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5214 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5217 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5219 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5223 late_LDFLAGS
=$LDFLAGS
5224 if test "$GCC" = yes; then
5225 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5227 LDFLAGS
="$LDFLAGS -znocombreloc"
5230 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5231 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5232 cat >conftest.
$ac_ext <<_ACEOF
5235 rm -f conftest.
$ac_objext conftest
$ac_exeext
5236 if { (ac_try
="$ac_link"
5238 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5239 *) ac_try_echo=$ac_try;;
5241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5242 (eval "$ac_link") 2>conftest.er1
5244 grep -v '^ *+' conftest.er1 >conftest.err
5246 cat conftest.err >&5
5247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5248 (exit $ac_status); } && {
5249 test -z "$ac_c_werror_flag" ||
5250 test ! -s conftest.err
5251 } && test -s conftest$ac_exeext &&
5252 $as_test_x conftest$ac_exeext; then
5253 { echo "$as_me:$LINENO: result: yes" >&5
5254 echo "${ECHO_T}yes" >&6; }
5256 echo "$as_me: failed program was:" >&5
5257 sed 's/^/| /' conftest.$ac_ext >&5
5259 LDFLAGS=$late_LDFLAGS
5260 { echo "$as_me:$LINENO: result: no" >&5
5261 echo "${ECHO_T}no" >&6; }
5264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5265 conftest$ac_exeext conftest.$ac_ext
5267 #### Extract some information from the operating system and machine files.
5269 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5270 - which libraries the lib-src programs will want, and
5271 - whether the GNU malloc routines are usable..." >&5
5272 echo "$as_me: checking the machine- and system-dependent files to find out
5273 - which libraries the lib-src programs will want, and
5274 - whether the GNU malloc routines are usable..." >&6;}
5276 ### First figure out CFLAGS (which we use for running the compiler here)
5277 ### and REAL_CFLAGS (which we use for real compilation).
5278 ### The two are the same except on a few systems, where they are made
5279 ### different to work around various lossages. For example,
5280 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5281 ### as implying static linking.
5283 ### If the CFLAGS env var is specified, we use that value
5284 ### instead of the default.
5286 ### It's not important that this name contain the PID; you can't run
5287 ### two configures in the same directory and have anything work
5289 tempcname="conftest.c"
5292 #include "'${srcdir}'/src/'${opsysfile}'"
5293 #include "'${srcdir}'/src/'${machfile}'"
5294 #ifndef LIBS_MACHINE
5295 #define LIBS_MACHINE
5300 #ifndef C_SWITCH_SYSTEM
5301 #define C_SWITCH_SYSTEM
5303 #ifndef C_SWITCH_MACHINE
5304 #define C_SWITCH_MACHINE
5306 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5307 configure___ c_switch_system=C_SWITCH_SYSTEM
5308 configure___ c_switch_machine=C_SWITCH_MACHINE
5311 #define LIB_X11_LIB -lX11
5314 #ifndef LIBX11_MACHINE
5315 #define LIBX11_MACHINE
5318 #ifndef LIBX11_SYSTEM
5319 #define LIBX11_SYSTEM
5321 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5324 configure___ unexec=UNEXEC
5326 configure___ unexec=unexec.o
5329 #ifdef SYSTEM_MALLOC
5330 configure___ system_malloc=yes
5332 configure___ system_malloc=no
5335 #ifdef USE_MMAP_FOR_BUFFERS
5336 configure___ use_mmap_for_buffers=yes
5338 configure___ use_mmap_for_buffers=no
5341 #ifndef C_DEBUG_SWITCH
5342 #define C_DEBUG_SWITCH -g
5345 #ifndef C_OPTIMIZE_SWITCH
5347 #define C_OPTIMIZE_SWITCH -O2
5349 #define C_OPTIMIZE_SWITCH -O
5353 #ifndef C_WARNINGS_SWITCH
5354 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5357 #ifndef LD_SWITCH_MACHINE
5358 #define LD_SWITCH_MACHINE
5361 #ifndef LD_SWITCH_SYSTEM
5362 #define LD_SWITCH_SYSTEM
5365 #ifndef LD_SWITCH_X_SITE_AUX
5366 #define LD_SWITCH_X_SITE_AUX
5369 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5370 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5372 #ifdef THIS_IS_CONFIGURE
5374 /* Get the CFLAGS for tests in configure. */
5376 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5378 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5381 #else /* not THIS_IS_CONFIGURE */
5383 /* Get the CFLAGS for real compilation. */
5385 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5387 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5390 #endif /* not THIS_IS_CONFIGURE */
5393 # The value of CPP is a quoted variable reference, so we need to do this
5394 # to get its actual value...
5395 CPP=`eval "echo $CPP"`
5396 eval `${CPP} -Isrc ${tempcname} \
5397 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5398 if test "x$SPECIFIED_CFLAGS" = x; then
5399 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5400 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5402 REAL_CFLAGS="$CFLAGS"
5406 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5408 ### Make sure subsequent tests use flags consistent with the build flags.
5410 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5411 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5413 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5418 # Check whether --enable-largefile was given.
5419 if test "${enable_largefile+set}" = set; then
5420 enableval=$enable_largefile;
5423 if test "$enable_largefile" != no; then
5425 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5426 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5427 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5428 echo $ECHO_N "(cached) $ECHO_C" >&6
5430 ac_cv_sys_largefile_CC=no
5431 if test "$GCC" != yes; then
5434 # IRIX 6.2 and later do not support large files by default,
5435 # so use the C compiler's -n32 option if that helps.
5436 cat >conftest.$ac_ext <<_ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h. */
5442 #include <sys/types.h>
5443 /* Check that off_t can represent 2**63 - 1 correctly.
5444 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5445 since some C++ compilers masquerading as C compilers
5446 incorrectly reject 9223372036854775807. */
5447 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5448 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5449 && LARGE_OFF_T % 2147483647 == 1)
5459 rm -f conftest.$ac_objext
5460 if { (ac_try="$ac_compile"
5462 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5463 *) ac_try_echo
=$ac_try;;
5465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5466 (eval "$ac_compile") 2>conftest.er1
5468 grep -v '^ *+' conftest.er1
>conftest.err
5470 cat conftest.err
>&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } && {
5473 test -z "$ac_c_werror_flag" ||
5474 test ! -s conftest.err
5475 } && test -s conftest.
$ac_objext; then
5478 echo "$as_me: failed program was:" >&5
5479 sed 's/^/| /' conftest.
$ac_ext >&5
5484 rm -f core conftest.err conftest.
$ac_objext
5486 rm -f conftest.
$ac_objext
5487 if { (ac_try
="$ac_compile"
5489 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5490 *) ac_try_echo=$ac_try;;
5492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5493 (eval "$ac_compile") 2>conftest.er1
5495 grep -v '^ *+' conftest.er1 >conftest.err
5497 cat conftest.err >&5
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); } && {
5500 test -z "$ac_c_werror_flag" ||
5501 test ! -s conftest.err
5502 } && test -s conftest.$ac_objext; then
5503 ac_cv_sys_largefile_CC=' -n32'; break
5505 echo "$as_me: failed program was:" >&5
5506 sed 's/^/| /' conftest.$ac_ext >&5
5511 rm -f core conftest.err conftest.$ac_objext
5515 rm -f conftest.$ac_ext
5518 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5519 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5520 if test "$ac_cv_sys_largefile_CC" != no; then
5521 CC=$CC$ac_cv_sys_largefile_CC
5524 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5525 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5526 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5530 cat >conftest.$ac_ext <<_ACEOF
5533 cat confdefs.h >>conftest.$ac_ext
5534 cat >>conftest.$ac_ext <<_ACEOF
5535 /* end confdefs.h. */
5536 #include <sys/types.h>
5537 /* Check that off_t can represent 2**63 - 1 correctly.
5538 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5539 since some C++ compilers masquerading as C compilers
5540 incorrectly reject 9223372036854775807. */
5541 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5542 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5543 && LARGE_OFF_T % 2147483647 == 1)
5553 rm -f conftest.$ac_objext
5554 if { (ac_try="$ac_compile"
5556 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5557 *) ac_try_echo
=$ac_try;;
5559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5560 (eval "$ac_compile") 2>conftest.er1
5562 grep -v '^ *+' conftest.er1
>conftest.err
5564 cat conftest.err
>&5
5565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5566 (exit $ac_status); } && {
5567 test -z "$ac_c_werror_flag" ||
5568 test ! -s conftest.err
5569 } && test -s conftest.
$ac_objext; then
5570 ac_cv_sys_file_offset_bits
=no
; break
5572 echo "$as_me: failed program was:" >&5
5573 sed 's/^/| /' conftest.
$ac_ext >&5
5578 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5579 cat >conftest.
$ac_ext <<_ACEOF
5582 cat confdefs.h
>>conftest.
$ac_ext
5583 cat >>conftest.
$ac_ext <<_ACEOF
5584 /* end confdefs.h. */
5585 #define _FILE_OFFSET_BITS 64
5586 #include <sys/types.h>
5587 /* Check that off_t can represent 2**63 - 1 correctly.
5588 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5589 since some C++ compilers masquerading as C compilers
5590 incorrectly reject 9223372036854775807. */
5591 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5592 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5593 && LARGE_OFF_T % 2147483647 == 1)
5603 rm -f conftest.
$ac_objext
5604 if { (ac_try
="$ac_compile"
5606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5607 *) ac_try_echo=$ac_try;;
5609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5610 (eval "$ac_compile") 2>conftest.er1
5612 grep -v '^ *+' conftest.er1 >conftest.err
5614 cat conftest.err >&5
5615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5616 (exit $ac_status); } && {
5617 test -z "$ac_c_werror_flag" ||
5618 test ! -s conftest.err
5619 } && test -s conftest.$ac_objext; then
5620 ac_cv_sys_file_offset_bits=64; break
5622 echo "$as_me: failed program was:" >&5
5623 sed 's/^/| /' conftest.$ac_ext >&5
5628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629 ac_cv_sys_file_offset_bits=unknown
5633 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5634 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5635 case $ac_cv_sys_file_offset_bits in #(
5638 cat >>confdefs.h <<_ACEOF
5639 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5644 if test $ac_cv_sys_file_offset_bits = unknown; then
5645 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5646 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5647 if test "${ac_cv_sys_large_files+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5651 cat >conftest.$ac_ext <<_ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 #include <sys/types.h>
5658 /* Check that off_t can represent 2**63 - 1 correctly.
5659 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5660 since some C++ compilers masquerading as C compilers
5661 incorrectly reject 9223372036854775807. */
5662 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5664 && LARGE_OFF_T % 2147483647 == 1)
5674 rm -f conftest.$ac_objext
5675 if { (ac_try="$ac_compile"
5677 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5678 *) ac_try_echo
=$ac_try;;
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_compile") 2>conftest.er1
5683 grep -v '^ *+' conftest.er1
>conftest.err
5685 cat conftest.err
>&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } && {
5688 test -z "$ac_c_werror_flag" ||
5689 test ! -s conftest.err
5690 } && test -s conftest.
$ac_objext; then
5691 ac_cv_sys_large_files
=no
; break
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.
$ac_ext >&5
5699 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5700 cat >conftest.
$ac_ext <<_ACEOF
5703 cat confdefs.h
>>conftest.
$ac_ext
5704 cat >>conftest.
$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 #define _LARGE_FILES 1
5707 #include <sys/types.h>
5708 /* Check that off_t can represent 2**63 - 1 correctly.
5709 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5710 since some C++ compilers masquerading as C compilers
5711 incorrectly reject 9223372036854775807. */
5712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5714 && LARGE_OFF_T % 2147483647 == 1)
5724 rm -f conftest.
$ac_objext
5725 if { (ac_try
="$ac_compile"
5727 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_compile") 2>conftest.er1
5733 grep -v '^ *+' conftest.er1 >conftest.err
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } && {
5738 test -z "$ac_c_werror_flag" ||
5739 test ! -s conftest.err
5740 } && test -s conftest.$ac_objext; then
5741 ac_cv_sys_large_files=1; break
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 ac_cv_sys_large_files=unknown
5754 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5755 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5756 case $ac_cv_sys_large_files in #(
5759 cat >>confdefs.h <<_ACEOF
5760 #define _LARGE_FILES $ac_cv_sys_large_files
5770 ### The standard library on x86-64 GNU/Linux distributions can
5771 ### be located in either /usr/lib64 or /usr/lib.
5772 case "${canonical}" in
5773 x86_64-*-linux-gnu* )
5774 if test -d /usr/lib64; then
5776 cat >>confdefs.h <<\_ACEOF
5777 #define HAVE_X86_64_LIB64_DIR 1
5786 if test "${with_sound}" != "no"; then
5787 # Sound support for GNU/Linux and the free BSDs.
5788 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5789 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5790 if test "${ac_cv_header_stdc+set}" = set; then
5791 echo $ECHO_N "(cached) $ECHO_C" >&6
5793 cat >conftest.$ac_ext <<_ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5812 rm -f conftest.$ac_objext
5813 if { (ac_try="$ac_compile"
5815 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5816 *) ac_try_echo
=$ac_try;;
5818 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5819 (eval "$ac_compile") 2>conftest.er1
5821 grep -v '^ *+' conftest.er1
>conftest.err
5823 cat conftest.err
>&5
5824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5825 (exit $ac_status); } && {
5826 test -z "$ac_c_werror_flag" ||
5827 test ! -s conftest.err
5828 } && test -s conftest.
$ac_objext; then
5829 ac_cv_header_stdc
=yes
5831 echo "$as_me: failed program was:" >&5
5832 sed 's/^/| /' conftest.
$ac_ext >&5
5834 ac_cv_header_stdc
=no
5837 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5839 if test $ac_cv_header_stdc = yes; then
5840 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5841 cat >conftest.
$ac_ext <<_ACEOF
5844 cat confdefs.h
>>conftest.
$ac_ext
5845 cat >>conftest.
$ac_ext <<_ACEOF
5846 /* end confdefs.h. */
5850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5851 $EGREP "memchr" >/dev
/null
2>&1; then
5854 ac_cv_header_stdc
=no
5860 if test $ac_cv_header_stdc = yes; then
5861 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5862 cat >conftest.
$ac_ext <<_ACEOF
5865 cat confdefs.h
>>conftest.
$ac_ext
5866 cat >>conftest.
$ac_ext <<_ACEOF
5867 /* end confdefs.h. */
5871 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5872 $EGREP "free" >/dev
/null
2>&1; then
5875 ac_cv_header_stdc
=no
5881 if test $ac_cv_header_stdc = yes; then
5882 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5883 if test "$cross_compiling" = yes; then
5886 cat >conftest.
$ac_ext <<_ACEOF
5889 cat confdefs.h
>>conftest.
$ac_ext
5890 cat >>conftest.
$ac_ext <<_ACEOF
5891 /* end confdefs.h. */
5894 #if ((' ' & 0x0FF) == 0x020)
5895 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5896 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5898 # define ISLOWER(c) \
5899 (('a' <= (c) && (c) <= 'i') \
5900 || ('j' <= (c) && (c) <= 'r') \
5901 || ('s' <= (c) && (c) <= 'z'))
5902 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5905 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5910 for (i = 0; i < 256; i++)
5911 if (XOR (islower (i), ISLOWER (i))
5912 || toupper (i) != TOUPPER (i))
5917 rm -f conftest
$ac_exeext
5918 if { (ac_try
="$ac_link"
5920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5921 *) ac_try_echo=$ac_try;;
5923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5924 (eval "$ac_link") 2>&5
5926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5927 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5928 { (case "(($ac_try" in
5929 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5930 *) ac_try_echo
=$ac_try;;
5932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5933 (eval "$ac_try") 2>&5
5935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5936 (exit $ac_status); }; }; then
5939 echo "$as_me: program exited with status $ac_status" >&5
5940 echo "$as_me: failed program was:" >&5
5941 sed 's/^/| /' conftest.
$ac_ext >&5
5944 ac_cv_header_stdc
=no
5946 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5952 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5953 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5954 if test $ac_cv_header_stdc = yes; then
5956 cat >>confdefs.h
<<\_ACEOF
5957 #define STDC_HEADERS 1
5962 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5972 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5973 inttypes.h stdint.h unistd.h
5975 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5978 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5979 echo $ECHO_N "(cached) $ECHO_C" >&6
5981 cat >conftest.
$ac_ext <<_ACEOF
5984 cat confdefs.h
>>conftest.
$ac_ext
5985 cat >>conftest.
$ac_ext <<_ACEOF
5986 /* end confdefs.h. */
5987 $ac_includes_default
5989 #include <$ac_header>
5991 rm -f conftest.
$ac_objext
5992 if { (ac_try
="$ac_compile"
5994 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_compile") 2>conftest.er1
6000 grep -v '^ *+' conftest.er1 >conftest.err
6002 cat conftest.err >&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); } && {
6005 test -z "$ac_c_werror_flag" ||
6006 test ! -s conftest.err
6007 } && test -s conftest.$ac_objext; then
6008 eval "$as_ac_Header=yes"
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6013 eval "$as_ac_Header=no"
6016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6018 ac_res=`eval echo '${'$as_ac_Header'}'`
6019 { echo "$as_me:$LINENO: result: $ac_res" >&5
6020 echo "${ECHO_T}$ac_res" >&6; }
6021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6022 cat >>confdefs.h <<_ACEOF
6023 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6034 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6036 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6041 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 ac_res=`eval echo '${'$as_ac_Header'}'`
6044 { echo "$as_me:$LINENO: result: $ac_res" >&5
6045 echo "${ECHO_T}$ac_res" >&6; }
6047 # Is the header compilable?
6048 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6050 cat >conftest.$ac_ext <<_ACEOF
6053 cat confdefs.h >>conftest.$ac_ext
6054 cat >>conftest.$ac_ext <<_ACEOF
6055 /* end confdefs.h. */
6056 $ac_includes_default
6057 #include <$ac_header>
6059 rm -f conftest.$ac_objext
6060 if { (ac_try="$ac_compile"
6062 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6063 *) ac_try_echo
=$ac_try;;
6065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6066 (eval "$ac_compile") 2>conftest.er1
6068 grep -v '^ *+' conftest.er1
>conftest.err
6070 cat conftest.err
>&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } && {
6073 test -z "$ac_c_werror_flag" ||
6074 test ! -s conftest.err
6075 } && test -s conftest.
$ac_objext; then
6076 ac_header_compiler
=yes
6078 echo "$as_me: failed program was:" >&5
6079 sed 's/^/| /' conftest.
$ac_ext >&5
6081 ac_header_compiler
=no
6084 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6085 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6086 echo "${ECHO_T}$ac_header_compiler" >&6; }
6088 # Is the header present?
6089 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6091 cat >conftest.
$ac_ext <<_ACEOF
6094 cat confdefs.h
>>conftest.
$ac_ext
6095 cat >>conftest.
$ac_ext <<_ACEOF
6096 /* end confdefs.h. */
6097 #include <$ac_header>
6099 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6101 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6102 *) ac_try_echo=$ac_try;;
6104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6107 grep -v '^ *+' conftest.er1 >conftest.err
6109 cat conftest.err >&5
6110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6111 (exit $ac_status); } >/dev/null && {
6112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6113 test ! -s conftest.err
6115 ac_header_preproc=yes
6117 echo "$as_me: failed program was:" >&5
6118 sed 's/^/| /' conftest.$ac_ext >&5
6120 ac_header_preproc=no
6123 rm -f conftest.err conftest.$ac_ext
6124 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6125 echo "${ECHO_T}$ac_header_preproc" >&6; }
6127 # So? What about this header?
6128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6134 ac_header_preproc=yes
6137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6144 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6155 echo $ECHO_N "(cached) $ECHO_C" >&6
6157 eval "$as_ac_Header=\$ac_header_preproc"
6159 ac_res=`eval echo '${'$as_ac_Header'}'`
6160 { echo "$as_me:$LINENO: result: $ac_res" >&5
6161 echo "${ECHO_T}$ac_res" >&6; }
6164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6165 cat >>confdefs.h <<_ACEOF
6166 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6173 # Emulation library used on NetBSD.
6174 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6175 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6176 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6177 echo $ECHO_N "(cached) $ECHO_C" >&6
6179 ac_check_lib_save_LIBS=$LIBS
6180 LIBS="-lossaudio $LIBS"
6181 cat >conftest.$ac_ext <<_ACEOF
6184 cat confdefs.h >>conftest.$ac_ext
6185 cat >>conftest.$ac_ext <<_ACEOF
6186 /* end confdefs.h. */
6188 /* Override any GCC internal prototype to avoid an error.
6189 Use char because int might match the return type of a GCC
6190 builtin and then its argument prototype would still apply. */
6198 return _oss_ioctl ();
6203 rm -f conftest.$ac_objext conftest$ac_exeext
6204 if { (ac_try="$ac_link"
6206 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6207 *) ac_try_echo
=$ac_try;;
6209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6210 (eval "$ac_link") 2>conftest.er1
6212 grep -v '^ *+' conftest.er1
>conftest.err
6214 cat conftest.err
>&5
6215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6216 (exit $ac_status); } && {
6217 test -z "$ac_c_werror_flag" ||
6218 test ! -s conftest.err
6219 } && test -s conftest
$ac_exeext &&
6220 $as_test_x conftest
$ac_exeext; then
6221 ac_cv_lib_ossaudio__oss_ioctl
=yes
6223 echo "$as_me: failed program was:" >&5
6224 sed 's/^/| /' conftest.
$ac_ext >&5
6226 ac_cv_lib_ossaudio__oss_ioctl
=no
6229 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6230 conftest
$ac_exeext conftest.
$ac_ext
6231 LIBS
=$ac_check_lib_save_LIBS
6233 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6234 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6235 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6244 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6245 if test "X${with_pkg_config_prog}" != X
; then
6246 PKG_CONFIG
="${with_pkg_config_prog}"
6251 if test -z "$PKG_CONFIG"; then
6252 # Extract the first word of "pkg-config", so it can be a program name with args.
6253 set dummy pkg-config
; ac_word
=$2
6254 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6255 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6256 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6257 echo $ECHO_N "(cached) $ECHO_C" >&6
6261 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6264 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6268 test -z "$as_dir" && as_dir
=.
6269 for ac_exec_ext
in '' $ac_executable_extensions; do
6270 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6271 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6272 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6279 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6283 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6284 if test -n "$PKG_CONFIG"; then
6285 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6286 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6288 { echo "$as_me:$LINENO: result: no" >&5
6289 echo "${ECHO_T}no" >&6; }
6295 if test "$PKG_CONFIG" = "no" ; then
6298 PKG_CONFIG_MIN_VERSION
=0.9.0
6299 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6300 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6301 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6303 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6304 { echo "$as_me:$LINENO: result: yes" >&5
6305 echo "${ECHO_T}yes" >&6; }
6308 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6309 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6310 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6311 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6312 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6314 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6315 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6316 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6317 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6318 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6320 { echo "$as_me:$LINENO: result: no" >&5
6321 echo "${ECHO_T}no" >&6; }
6324 ## If we have a custom action on failure, don't print errors, but
6325 ## do set a variable so people can do so.
6326 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6333 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6334 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6338 if test $succeeded = yes; then
6344 if test $HAVE_ALSA = yes; then
6345 SAVE_CFLAGS
="$CFLAGS"
6346 SAVE_LDFLAGS
="$LDFLAGS"
6347 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6348 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6349 cat >conftest.
$ac_ext <<_ACEOF
6352 cat confdefs.h
>>conftest.
$ac_ext
6353 cat >>conftest.
$ac_ext <<_ACEOF
6354 /* end confdefs.h. */
6355 #include <asoundlib.h>
6359 snd_lib_error_set_handler (0);
6364 rm -f conftest.
$ac_objext
6365 if { (ac_try
="$ac_compile"
6367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_compile") 2>conftest.er1
6373 grep -v '^ *+' conftest.er1 >conftest.err
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } && {
6378 test -z "$ac_c_werror_flag" ||
6379 test ! -s conftest.err
6380 } && test -s conftest.$ac_objext; then
6381 emacs_alsa_normal=yes
6383 echo "$as_me: failed program was:" >&5
6384 sed 's/^/| /' conftest.$ac_ext >&5
6386 emacs_alsa_normal=no
6389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6390 if test "$emacs_alsa_normal" != yes; then
6391 cat >conftest.$ac_ext <<_ACEOF
6394 cat confdefs.h >>conftest.$ac_ext
6395 cat >>conftest.$ac_ext <<_ACEOF
6396 /* end confdefs.h. */
6397 #include <alsa/asoundlib.h>
6401 snd_lib_error_set_handler (0);
6406 rm -f conftest.$ac_objext
6407 if { (ac_try="$ac_compile"
6409 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6410 *) ac_try_echo
=$ac_try;;
6412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6413 (eval "$ac_compile") 2>conftest.er1
6415 grep -v '^ *+' conftest.er1
>conftest.err
6417 cat conftest.err
>&5
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); } && {
6420 test -z "$ac_c_werror_flag" ||
6421 test ! -s conftest.err
6422 } && test -s conftest.
$ac_objext; then
6423 emacs_alsa_subdir
=yes
6425 echo "$as_me: failed program was:" >&5
6426 sed 's/^/| /' conftest.
$ac_ext >&5
6428 emacs_alsa_subdir
=no
6431 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6432 if test "$emacs_alsa_subdir" != yes; then
6433 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6434 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6435 { (exit 1); exit 1; }; }
6437 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6440 CFLAGS
="$SAVE_CFLAGS"
6441 LDFLAGS
="$SAVE_LDFLAGS"
6442 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6443 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6445 cat >>confdefs.h
<<\_ACEOF
6479 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6480 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6481 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6482 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6485 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6486 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6487 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6488 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6489 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6490 echo $ECHO_N "(cached) $ECHO_C" >&6
6492 ac_res
=`eval echo '${'$as_ac_Header'}'`
6493 { echo "$as_me:$LINENO: result: $ac_res" >&5
6494 echo "${ECHO_T}$ac_res" >&6; }
6496 # Is the header compilable?
6497 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6498 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6499 cat >conftest.
$ac_ext <<_ACEOF
6502 cat confdefs.h
>>conftest.
$ac_ext
6503 cat >>conftest.
$ac_ext <<_ACEOF
6504 /* end confdefs.h. */
6505 $ac_includes_default
6506 #include <$ac_header>
6508 rm -f conftest.
$ac_objext
6509 if { (ac_try
="$ac_compile"
6511 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6512 *) ac_try_echo=$ac_try;;
6514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6515 (eval "$ac_compile") 2>conftest.er1
6517 grep -v '^ *+' conftest.er1 >conftest.err
6519 cat conftest.err >&5
6520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6521 (exit $ac_status); } && {
6522 test -z "$ac_c_werror_flag" ||
6523 test ! -s conftest.err
6524 } && test -s conftest.$ac_objext; then
6525 ac_header_compiler=yes
6527 echo "$as_me: failed program was:" >&5
6528 sed 's/^/| /' conftest.$ac_ext >&5
6530 ac_header_compiler=no
6533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6535 echo "${ECHO_T}$ac_header_compiler" >&6; }
6537 # Is the header present?
6538 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6539 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6540 cat >conftest.$ac_ext <<_ACEOF
6543 cat confdefs.h >>conftest.$ac_ext
6544 cat >>conftest.$ac_ext <<_ACEOF
6545 /* end confdefs.h. */
6546 #include <$ac_header>
6548 if { (ac_try="$ac_cpp conftest.$ac_ext"
6550 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6551 *) ac_try_echo
=$ac_try;;
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6556 grep -v '^ *+' conftest.er1
>conftest.err
6558 cat conftest.err
>&5
6559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6560 (exit $ac_status); } >/dev
/null
&& {
6561 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6562 test ! -s conftest.err
6564 ac_header_preproc
=yes
6566 echo "$as_me: failed program was:" >&5
6567 sed 's/^/| /' conftest.
$ac_ext >&5
6569 ac_header_preproc
=no
6572 rm -f conftest.err conftest.
$ac_ext
6573 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6574 echo "${ECHO_T}$ac_header_preproc" >&6; }
6576 # So? What about this header?
6577 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6579 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6580 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6581 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6582 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6583 ac_header_preproc
=yes
6586 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6587 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6588 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6589 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6590 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6591 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6592 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6593 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6594 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6595 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6596 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6597 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6601 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6602 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6603 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6604 echo $ECHO_N "(cached) $ECHO_C" >&6
6606 eval "$as_ac_Header=\$ac_header_preproc"
6608 ac_res
=`eval echo '${'$as_ac_Header'}'`
6609 { echo "$as_me:$LINENO: result: $ac_res" >&5
6610 echo "${ECHO_T}$ac_res" >&6; }
6613 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6614 cat >>confdefs.h
<<_ACEOF
6615 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6623 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6624 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6625 cat >conftest.
$ac_ext <<_ACEOF
6628 cat confdefs.h
>>conftest.
$ac_ext
6629 cat >>conftest.
$ac_ext <<_ACEOF
6630 /* end confdefs.h. */
6631 #include <sys/personality.h>
6635 personality (PER_LINUX32)
6640 rm -f conftest.
$ac_objext
6641 if { (ac_try
="$ac_compile"
6643 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6644 *) ac_try_echo=$ac_try;;
6646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6647 (eval "$ac_compile") 2>conftest.er1
6649 grep -v '^ *+' conftest.er1 >conftest.err
6651 cat conftest.err >&5
6652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6653 (exit $ac_status); } && {
6654 test -z "$ac_c_werror_flag" ||
6655 test ! -s conftest.err
6656 } && test -s conftest.$ac_objext; then
6657 emacs_cv_personality_linux32=yes
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6662 emacs_cv_personality_linux32=no
6665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6666 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6667 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6669 if test $emacs_cv_personality_linux32 = yes; then
6671 cat >>confdefs.h <<\_ACEOF
6672 #define HAVE_PERSONALITY_LINUX32 1
6678 for ac_header in term.h
6680 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6684 echo $ECHO_N "(cached) $ECHO_C" >&6
6686 cat >conftest.$ac_ext <<_ACEOF
6689 cat confdefs.h >>conftest.$ac_ext
6690 cat >>conftest.$ac_ext <<_ACEOF
6691 /* end confdefs.h. */
6692 #include <$ac_header>
6694 if { (ac_try="$ac_cpp conftest.$ac_ext"
6696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6697 *) ac_try_echo
=$ac_try;;
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6702 grep -v '^ *+' conftest.er1
>conftest.err
6704 cat conftest.err
>&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } >/dev
/null
&& {
6707 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6708 test ! -s conftest.err
6710 eval "$as_ac_Header=yes"
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.
$ac_ext >&5
6715 eval "$as_ac_Header=no"
6718 rm -f conftest.err conftest.
$ac_ext
6720 ac_res
=`eval echo '${'$as_ac_Header'}'`
6721 { echo "$as_me:$LINENO: result: $ac_res" >&5
6722 echo "${ECHO_T}$ac_res" >&6; }
6723 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6724 cat >>confdefs.h
<<_ACEOF
6725 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6732 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6733 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6734 if test "${ac_cv_header_stdc+set}" = set; then
6735 echo $ECHO_N "(cached) $ECHO_C" >&6
6737 cat >conftest.
$ac_ext <<_ACEOF
6740 cat confdefs.h
>>conftest.
$ac_ext
6741 cat >>conftest.
$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6756 rm -f conftest.
$ac_objext
6757 if { (ac_try
="$ac_compile"
6759 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6760 *) ac_try_echo=$ac_try;;
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763 (eval "$ac_compile") 2>conftest.er1
6765 grep -v '^ *+' conftest.er1 >conftest.err
6767 cat conftest.err >&5
6768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6769 (exit $ac_status); } && {
6770 test -z "$ac_c_werror_flag" ||
6771 test ! -s conftest.err
6772 } && test -s conftest.$ac_objext; then
6773 ac_cv_header_stdc=yes
6775 echo "$as_me: failed program was:" >&5
6776 sed 's/^/| /' conftest.$ac_ext >&5
6778 ac_cv_header_stdc=no
6781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6783 if test $ac_cv_header_stdc = yes; then
6784 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6785 cat >conftest.$ac_ext <<_ACEOF
6788 cat confdefs.h >>conftest.$ac_ext
6789 cat >>conftest.$ac_ext <<_ACEOF
6790 /* end confdefs.h. */
6794 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6795 $EGREP "memchr" >/dev/null 2>&1; then
6798 ac_cv_header_stdc=no
6804 if test $ac_cv_header_stdc = yes; then
6805 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6806 cat >conftest.$ac_ext <<_ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6815 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6816 $EGREP "free" >/dev/null 2>&1; then
6819 ac_cv_header_stdc=no
6825 if test $ac_cv_header_stdc = yes; then
6826 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6827 if test "$cross_compiling" = yes; then
6830 cat >conftest.$ac_ext <<_ACEOF
6833 cat confdefs.h >>conftest.$ac_ext
6834 cat >>conftest.$ac_ext <<_ACEOF
6835 /* end confdefs.h. */
6838 #if ((' ' & 0x0FF) == 0x020)
6839 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6840 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6842 # define ISLOWER(c) \
6843 (('a' <= (c) && (c) <= 'i') \
6844 || ('j' <= (c) && (c) <= 'r') \
6845 || ('s' <= (c) && (c) <= 'z'))
6846 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6849 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6854 for (i = 0; i < 256; i++)
6855 if (XOR (islower (i), ISLOWER (i))
6856 || toupper (i) != TOUPPER (i))
6861 rm -f conftest$ac_exeext
6862 if { (ac_try="$ac_link"
6864 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6865 *) ac_try_echo
=$ac_try;;
6867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6868 (eval "$ac_link") 2>&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6872 { (case "(($ac_try" in
6873 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6877 (eval "$ac_try") 2>&5
6879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6880 (exit $ac_status); }; }; then
6883 echo "$as_me: program exited with status $ac_status" >&5
6884 echo "$as_me: failed program was:" >&5
6885 sed 's/^/| /' conftest.$ac_ext >&5
6888 ac_cv_header_stdc=no
6890 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6896 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6897 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6898 if test $ac_cv_header_stdc = yes; then
6900 cat >>confdefs.h <<\_ACEOF
6901 #define STDC_HEADERS 1
6906 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6907 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6908 if test "${ac_cv_header_time+set}" = set; then
6909 echo $ECHO_N "(cached) $ECHO_C" >&6
6911 cat >conftest.$ac_ext <<_ACEOF
6914 cat confdefs.h >>conftest.$ac_ext
6915 cat >>conftest.$ac_ext <<_ACEOF
6916 /* end confdefs.h. */
6917 #include <sys/types.h>
6918 #include <sys/time.h>
6924 if ((struct tm *) 0)
6930 rm -f conftest.$ac_objext
6931 if { (ac_try="$ac_compile"
6933 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6934 *) ac_try_echo
=$ac_try;;
6936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6937 (eval "$ac_compile") 2>conftest.er1
6939 grep -v '^ *+' conftest.er1
>conftest.err
6941 cat conftest.err
>&5
6942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6943 (exit $ac_status); } && {
6944 test -z "$ac_c_werror_flag" ||
6945 test ! -s conftest.err
6946 } && test -s conftest.
$ac_objext; then
6947 ac_cv_header_time
=yes
6949 echo "$as_me: failed program was:" >&5
6950 sed 's/^/| /' conftest.
$ac_ext >&5
6952 ac_cv_header_time
=no
6955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6957 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6958 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6959 if test $ac_cv_header_time = yes; then
6961 cat >>confdefs.h
<<\_ACEOF
6962 #define TIME_WITH_SYS_TIME 1
6967 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6968 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6969 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6970 echo $ECHO_N "(cached) $ECHO_C" >&6
6972 cat >conftest.
$ac_ext <<_ACEOF
6975 cat confdefs.h
>>conftest.
$ac_ext
6976 cat >>conftest.
$ac_ext <<_ACEOF
6977 /* end confdefs.h. */
6978 $ac_includes_default
6990 rm -f conftest.
$ac_objext
6991 if { (ac_try
="$ac_compile"
6993 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997 (eval "$ac_compile") 2>conftest.er1
6999 grep -v '^ *+' conftest.er1 >conftest.err
7001 cat conftest.err >&5
7002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7003 (exit $ac_status); } && {
7004 test -z "$ac_c_werror_flag" ||
7005 test ! -s conftest.err
7006 } && test -s conftest.$ac_objext; then
7007 ac_cv_have_decl_sys_siglist=yes
7009 echo "$as_me: failed program was:" >&5
7010 sed 's/^/| /' conftest.$ac_ext >&5
7012 ac_cv_have_decl_sys_siglist=no
7015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7017 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7018 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7019 if test $ac_cv_have_decl_sys_siglist = yes; then
7021 cat >>confdefs.h <<_ACEOF
7022 #define HAVE_DECL_SYS_SIGLIST 1
7027 cat >>confdefs.h <<_ACEOF
7028 #define HAVE_DECL_SYS_SIGLIST 0
7035 if test $ac_cv_have_decl_sys_siglist != yes; then
7036 # For Tru64, at least:
7037 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7038 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7039 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7040 echo $ECHO_N "(cached) $ECHO_C" >&6
7042 cat >conftest.$ac_ext <<_ACEOF
7045 cat confdefs.h >>conftest.$ac_ext
7046 cat >>conftest.$ac_ext <<_ACEOF
7047 /* end confdefs.h. */
7048 $ac_includes_default
7052 #ifndef __sys_siglist
7053 (void) __sys_siglist;
7060 rm -f conftest.$ac_objext
7061 if { (ac_try="$ac_compile"
7063 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7064 *) ac_try_echo
=$ac_try;;
7066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7067 (eval "$ac_compile") 2>conftest.er1
7069 grep -v '^ *+' conftest.er1
>conftest.err
7071 cat conftest.err
>&5
7072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7073 (exit $ac_status); } && {
7074 test -z "$ac_c_werror_flag" ||
7075 test ! -s conftest.err
7076 } && test -s conftest.
$ac_objext; then
7077 ac_cv_have_decl___sys_siglist
=yes
7079 echo "$as_me: failed program was:" >&5
7080 sed 's/^/| /' conftest.
$ac_ext >&5
7082 ac_cv_have_decl___sys_siglist
=no
7085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7087 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7088 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7089 if test $ac_cv_have_decl___sys_siglist = yes; then
7091 cat >>confdefs.h
<<_ACEOF
7092 #define HAVE_DECL___SYS_SIGLIST 1
7097 cat >>confdefs.h
<<_ACEOF
7098 #define HAVE_DECL___SYS_SIGLIST 0
7105 if test $ac_cv_have_decl___sys_siglist = yes; then
7107 cat >>confdefs.h
<<\_ACEOF
7108 #define sys_siglist __sys_siglist
7113 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7114 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7115 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7116 echo $ECHO_N "(cached) $ECHO_C" >&6
7118 cat >conftest.
$ac_ext <<_ACEOF
7121 cat confdefs.h
>>conftest.
$ac_ext
7122 cat >>conftest.
$ac_ext <<_ACEOF
7123 /* end confdefs.h. */
7124 #include <sys/types.h>
7125 #include <sys/wait.h>
7127 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7130 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7138 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7143 rm -f conftest.
$ac_objext
7144 if { (ac_try
="$ac_compile"
7146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7147 *) ac_try_echo=$ac_try;;
7149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7150 (eval "$ac_compile") 2>conftest.er1
7152 grep -v '^ *+' conftest.er1 >conftest.err
7154 cat conftest.err >&5
7155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7156 (exit $ac_status); } && {
7157 test -z "$ac_c_werror_flag" ||
7158 test ! -s conftest.err
7159 } && test -s conftest.$ac_objext; then
7160 ac_cv_header_sys_wait_h=yes
7162 echo "$as_me: failed program was:" >&5
7163 sed 's/^/| /' conftest.$ac_ext >&5
7165 ac_cv_header_sys_wait_h=no
7168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7171 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7172 if test $ac_cv_header_sys_wait_h = yes; then
7174 cat >>confdefs.h <<\_ACEOF
7175 #define HAVE_SYS_WAIT_H 1
7181 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7182 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7183 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 cat >conftest.$ac_ext <<_ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 #ifdef TIME_WITH_SYS_TIME
7193 #include <sys/time.h>
7196 #ifdef HAVE_SYS_TIME_H
7197 #include <sys/time.h>
7208 static struct utimbuf x; x.actime = x.modtime;
7213 rm -f conftest.$ac_objext
7214 if { (ac_try="$ac_compile"
7216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7217 *) ac_try_echo
=$ac_try;;
7219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7220 (eval "$ac_compile") 2>conftest.er1
7222 grep -v '^ *+' conftest.er1
>conftest.err
7224 cat conftest.err
>&5
7225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7226 (exit $ac_status); } && {
7227 test -z "$ac_c_werror_flag" ||
7228 test ! -s conftest.err
7229 } && test -s conftest.
$ac_objext; then
7230 emacs_cv_struct_utimbuf
=yes
7232 echo "$as_me: failed program was:" >&5
7233 sed 's/^/| /' conftest.
$ac_ext >&5
7235 emacs_cv_struct_utimbuf
=no
7238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7240 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7241 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7242 if test $emacs_cv_struct_utimbuf = yes; then
7244 cat >>confdefs.h
<<\_ACEOF
7245 #define HAVE_STRUCT_UTIMBUF 1
7250 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7251 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7252 if test "${ac_cv_type_signal+set}" = set; then
7253 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 cat >conftest.
$ac_ext <<_ACEOF
7258 cat confdefs.h
>>conftest.
$ac_ext
7259 cat >>conftest.
$ac_ext <<_ACEOF
7260 /* end confdefs.h. */
7261 #include <sys/types.h>
7267 return *(signal (0, 0)) (0) == 1;
7272 rm -f conftest.
$ac_objext
7273 if { (ac_try
="$ac_compile"
7275 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7276 *) ac_try_echo=$ac_try;;
7278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7279 (eval "$ac_compile") 2>conftest.er1
7281 grep -v '^ *+' conftest.er1 >conftest.err
7283 cat conftest.err >&5
7284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7285 (exit $ac_status); } && {
7286 test -z "$ac_c_werror_flag" ||
7287 test ! -s conftest.err
7288 } && test -s conftest.$ac_objext; then
7289 ac_cv_type_signal=int
7291 echo "$as_me: failed program was:" >&5
7292 sed 's/^/| /' conftest.$ac_ext >&5
7294 ac_cv_type_signal=void
7297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7299 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7300 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7302 cat >>confdefs.h <<_ACEOF
7303 #define RETSIGTYPE $ac_cv_type_signal
7308 { echo "$as_me:$LINENO: checking for speed_t" >&5
7309 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7310 if test "${emacs_cv_speed_t+set}" = set; then
7311 echo $ECHO_N "(cached) $ECHO_C" >&6
7313 cat >conftest.$ac_ext <<_ACEOF
7316 cat confdefs.h >>conftest.$ac_ext
7317 cat >>conftest.$ac_ext <<_ACEOF
7318 /* end confdefs.h. */
7319 #include <termios.h>
7328 rm -f conftest.$ac_objext
7329 if { (ac_try="$ac_compile"
7331 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7332 *) ac_try_echo
=$ac_try;;
7334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7335 (eval "$ac_compile") 2>conftest.er1
7337 grep -v '^ *+' conftest.er1
>conftest.err
7339 cat conftest.err
>&5
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); } && {
7342 test -z "$ac_c_werror_flag" ||
7343 test ! -s conftest.err
7344 } && test -s conftest.
$ac_objext; then
7345 emacs_cv_speed_t
=yes
7347 echo "$as_me: failed program was:" >&5
7348 sed 's/^/| /' conftest.
$ac_ext >&5
7353 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7355 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7356 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7357 if test $emacs_cv_speed_t = yes; then
7359 cat >>confdefs.h
<<\_ACEOF
7360 #define HAVE_SPEED_T 1
7365 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7366 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7367 if test "${emacs_cv_struct_timeval+set}" = set; then
7368 echo $ECHO_N "(cached) $ECHO_C" >&6
7370 cat >conftest.
$ac_ext <<_ACEOF
7373 cat confdefs.h
>>conftest.
$ac_ext
7374 cat >>conftest.
$ac_ext <<_ACEOF
7375 /* end confdefs.h. */
7376 #ifdef TIME_WITH_SYS_TIME
7377 #include <sys/time.h>
7380 #ifdef HAVE_SYS_TIME_H
7381 #include <sys/time.h>
7389 static struct timeval x; x.tv_sec = x.tv_usec;
7394 rm -f conftest.
$ac_objext
7395 if { (ac_try
="$ac_compile"
7397 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7398 *) ac_try_echo=$ac_try;;
7400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7401 (eval "$ac_compile") 2>conftest.er1
7403 grep -v '^ *+' conftest.er1 >conftest.err
7405 cat conftest.err >&5
7406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7407 (exit $ac_status); } && {
7408 test -z "$ac_c_werror_flag" ||
7409 test ! -s conftest.err
7410 } && test -s conftest.$ac_objext; then
7411 emacs_cv_struct_timeval=yes
7413 echo "$as_me: failed program was:" >&5
7414 sed 's/^/| /' conftest.$ac_ext >&5
7416 emacs_cv_struct_timeval=no
7419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7421 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7422 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7423 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7424 if test $emacs_cv_struct_timeval = yes; then
7426 cat >>confdefs.h <<\_ACEOF
7427 #define HAVE_TIMEVAL 1
7432 { echo "$as_me:$LINENO: checking for struct exception" >&5
7433 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7434 if test "${emacs_cv_struct_exception+set}" = set; then
7435 echo $ECHO_N "(cached) $ECHO_C" >&6
7437 cat >conftest.$ac_ext <<_ACEOF
7440 cat confdefs.h >>conftest.$ac_ext
7441 cat >>conftest.$ac_ext <<_ACEOF
7442 /* end confdefs.h. */
7447 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7452 rm -f conftest.$ac_objext
7453 if { (ac_try="$ac_compile"
7455 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7456 *) ac_try_echo
=$ac_try;;
7458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7459 (eval "$ac_compile") 2>conftest.er1
7461 grep -v '^ *+' conftest.er1
>conftest.err
7463 cat conftest.err
>&5
7464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7465 (exit $ac_status); } && {
7466 test -z "$ac_c_werror_flag" ||
7467 test ! -s conftest.err
7468 } && test -s conftest.
$ac_objext; then
7469 emacs_cv_struct_exception
=yes
7471 echo "$as_me: failed program was:" >&5
7472 sed 's/^/| /' conftest.
$ac_ext >&5
7474 emacs_cv_struct_exception
=no
7477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7479 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7480 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7481 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7482 if test $emacs_cv_struct_exception != yes; then
7484 cat >>confdefs.h
<<\_ACEOF
7485 #define NO_MATHERR 1
7491 for ac_header
in sys
/socket.h
7493 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7494 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7495 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7496 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7497 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7498 echo $ECHO_N "(cached) $ECHO_C" >&6
7500 ac_res
=`eval echo '${'$as_ac_Header'}'`
7501 { echo "$as_me:$LINENO: result: $ac_res" >&5
7502 echo "${ECHO_T}$ac_res" >&6; }
7504 # Is the header compilable?
7505 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7506 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7507 cat >conftest.
$ac_ext <<_ACEOF
7510 cat confdefs.h
>>conftest.
$ac_ext
7511 cat >>conftest.
$ac_ext <<_ACEOF
7512 /* end confdefs.h. */
7513 $ac_includes_default
7514 #include <$ac_header>
7516 rm -f conftest.
$ac_objext
7517 if { (ac_try
="$ac_compile"
7519 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7520 *) ac_try_echo=$ac_try;;
7522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7523 (eval "$ac_compile") 2>conftest.er1
7525 grep -v '^ *+' conftest.er1 >conftest.err
7527 cat conftest.err >&5
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); } && {
7530 test -z "$ac_c_werror_flag" ||
7531 test ! -s conftest.err
7532 } && test -s conftest.$ac_objext; then
7533 ac_header_compiler=yes
7535 echo "$as_me: failed program was:" >&5
7536 sed 's/^/| /' conftest.$ac_ext >&5
7538 ac_header_compiler=no
7541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7542 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7543 echo "${ECHO_T}$ac_header_compiler" >&6; }
7545 # Is the header present?
7546 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7547 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7548 cat >conftest.$ac_ext <<_ACEOF
7551 cat confdefs.h >>conftest.$ac_ext
7552 cat >>conftest.$ac_ext <<_ACEOF
7553 /* end confdefs.h. */
7554 #include <$ac_header>
7556 if { (ac_try="$ac_cpp conftest.$ac_ext"
7558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7559 *) ac_try_echo
=$ac_try;;
7561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7562 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7564 grep -v '^ *+' conftest.er1
>conftest.err
7566 cat conftest.err
>&5
7567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7568 (exit $ac_status); } >/dev
/null
&& {
7569 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7570 test ! -s conftest.err
7572 ac_header_preproc
=yes
7574 echo "$as_me: failed program was:" >&5
7575 sed 's/^/| /' conftest.
$ac_ext >&5
7577 ac_header_preproc
=no
7580 rm -f conftest.err conftest.
$ac_ext
7581 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7582 echo "${ECHO_T}$ac_header_preproc" >&6; }
7584 # So? What about this header?
7585 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7588 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7590 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7591 ac_header_preproc
=yes
7594 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7595 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7596 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7597 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7598 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7599 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7600 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7601 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7602 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7603 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7604 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7605 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7609 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7610 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7611 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7612 echo $ECHO_N "(cached) $ECHO_C" >&6
7614 eval "$as_ac_Header=\$ac_header_preproc"
7616 ac_res
=`eval echo '${'$as_ac_Header'}'`
7617 { echo "$as_me:$LINENO: result: $ac_res" >&5
7618 echo "${ECHO_T}$ac_res" >&6; }
7621 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7622 cat >>confdefs.h
<<_ACEOF
7623 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7631 for ac_header
in net
/if.h
7633 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7634 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7635 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7636 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7637 echo $ECHO_N "(cached) $ECHO_C" >&6
7639 cat >conftest.
$ac_ext <<_ACEOF
7642 cat confdefs.h
>>conftest.
$ac_ext
7643 cat >>conftest.
$ac_ext <<_ACEOF
7644 /* end confdefs.h. */
7645 $ac_includes_default
7646 #if HAVE_SYS_SOCKET_H
7647 #include <sys/socket.h>
7650 #include <$ac_header>
7652 rm -f conftest.
$ac_objext
7653 if { (ac_try
="$ac_compile"
7655 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7656 *) ac_try_echo=$ac_try;;
7658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7659 (eval "$ac_compile") 2>conftest.er1
7661 grep -v '^ *+' conftest.er1 >conftest.err
7663 cat conftest.err >&5
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); } && {
7666 test -z "$ac_c_werror_flag" ||
7667 test ! -s conftest.err
7668 } && test -s conftest.$ac_objext; then
7669 eval "$as_ac_Header=yes"
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7674 eval "$as_ac_Header=no"
7677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7679 ac_res=`eval echo '${'$as_ac_Header'}'`
7680 { echo "$as_me:$LINENO: result: $ac_res" >&5
7681 echo "${ECHO_T}$ac_res" >&6; }
7682 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7683 cat >>confdefs.h <<_ACEOF
7684 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7692 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7693 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7694 if test "${ac_cv_struct_tm+set}" = set; then
7695 echo $ECHO_N "(cached) $ECHO_C" >&6
7697 cat >conftest.$ac_ext <<_ACEOF
7700 cat confdefs.h >>conftest.$ac_ext
7701 cat >>conftest.$ac_ext <<_ACEOF
7702 /* end confdefs.h. */
7703 #include <sys/types.h>
7710 int *p = &tm.tm_sec;
7716 rm -f conftest.$ac_objext
7717 if { (ac_try="$ac_compile"
7719 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7720 *) ac_try_echo
=$ac_try;;
7722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7723 (eval "$ac_compile") 2>conftest.er1
7725 grep -v '^ *+' conftest.er1
>conftest.err
7727 cat conftest.err
>&5
7728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7729 (exit $ac_status); } && {
7730 test -z "$ac_c_werror_flag" ||
7731 test ! -s conftest.err
7732 } && test -s conftest.
$ac_objext; then
7733 ac_cv_struct_tm
=time.h
7735 echo "$as_me: failed program was:" >&5
7736 sed 's/^/| /' conftest.
$ac_ext >&5
7738 ac_cv_struct_tm
=sys
/time.h
7741 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7743 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7744 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7745 if test $ac_cv_struct_tm = sys
/time.h
; then
7747 cat >>confdefs.h
<<\_ACEOF
7748 #define TM_IN_SYS_TIME 1
7753 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7754 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7755 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7756 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 cat >conftest.
$ac_ext <<_ACEOF
7761 cat confdefs.h
>>conftest.
$ac_ext
7762 cat >>conftest.
$ac_ext <<_ACEOF
7763 /* end confdefs.h. */
7764 #include <sys/types.h>
7765 #include <$ac_cv_struct_tm>
7771 static struct tm ac_aggr;
7772 if (ac_aggr.tm_zone)
7778 rm -f conftest.
$ac_objext
7779 if { (ac_try
="$ac_compile"
7781 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7782 *) ac_try_echo=$ac_try;;
7784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7785 (eval "$ac_compile") 2>conftest.er1
7787 grep -v '^ *+' conftest.er1 >conftest.err
7789 cat conftest.err >&5
7790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7791 (exit $ac_status); } && {
7792 test -z "$ac_c_werror_flag" ||
7793 test ! -s conftest.err
7794 } && test -s conftest.$ac_objext; then
7795 ac_cv_member_struct_tm_tm_zone=yes
7797 echo "$as_me: failed program was:" >&5
7798 sed 's/^/| /' conftest.$ac_ext >&5
7800 cat >conftest.$ac_ext <<_ACEOF
7803 cat confdefs.h >>conftest.$ac_ext
7804 cat >>conftest.$ac_ext <<_ACEOF
7805 /* end confdefs.h. */
7806 #include <sys/types.h>
7807 #include <$ac_cv_struct_tm>
7813 static struct tm ac_aggr;
7814 if (sizeof ac_aggr.tm_zone)
7820 rm -f conftest.$ac_objext
7821 if { (ac_try="$ac_compile"
7823 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7824 *) ac_try_echo
=$ac_try;;
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_compile") 2>conftest.er1
7829 grep -v '^ *+' conftest.er1
>conftest.err
7831 cat conftest.err
>&5
7832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7833 (exit $ac_status); } && {
7834 test -z "$ac_c_werror_flag" ||
7835 test ! -s conftest.err
7836 } && test -s conftest.
$ac_objext; then
7837 ac_cv_member_struct_tm_tm_zone
=yes
7839 echo "$as_me: failed program was:" >&5
7840 sed 's/^/| /' conftest.
$ac_ext >&5
7842 ac_cv_member_struct_tm_tm_zone
=no
7845 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7848 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7850 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7851 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7852 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7854 cat >>confdefs.h
<<_ACEOF
7855 #define HAVE_STRUCT_TM_TM_ZONE 1
7861 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7863 cat >>confdefs.h
<<\_ACEOF
7864 #define HAVE_TM_ZONE 1
7868 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7869 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7870 if test "${ac_cv_have_decl_tzname+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7873 cat >conftest.
$ac_ext <<_ACEOF
7876 cat confdefs.h
>>conftest.
$ac_ext
7877 cat >>conftest.
$ac_ext <<_ACEOF
7878 /* end confdefs.h. */
7892 rm -f conftest.
$ac_objext
7893 if { (ac_try
="$ac_compile"
7895 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7896 *) ac_try_echo=$ac_try;;
7898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7899 (eval "$ac_compile") 2>conftest.er1
7901 grep -v '^ *+' conftest.er1 >conftest.err
7903 cat conftest.err >&5
7904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7905 (exit $ac_status); } && {
7906 test -z "$ac_c_werror_flag" ||
7907 test ! -s conftest.err
7908 } && test -s conftest.$ac_objext; then
7909 ac_cv_have_decl_tzname=yes
7911 echo "$as_me: failed program was:" >&5
7912 sed 's/^/| /' conftest.$ac_ext >&5
7914 ac_cv_have_decl_tzname=no
7917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7919 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7920 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7921 if test $ac_cv_have_decl_tzname = yes; then
7923 cat >>confdefs.h <<_ACEOF
7924 #define HAVE_DECL_TZNAME 1
7929 cat >>confdefs.h <<_ACEOF
7930 #define HAVE_DECL_TZNAME 0
7937 { echo "$as_me:$LINENO: checking for tzname" >&5
7938 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7939 if test "${ac_cv_var_tzname+set}" = set; then
7940 echo $ECHO_N "(cached) $ECHO_C" >&6
7942 cat >conftest.$ac_ext <<_ACEOF
7945 cat confdefs.h >>conftest.$ac_ext
7946 cat >>conftest.$ac_ext <<_ACEOF
7947 /* end confdefs.h. */
7949 #if !HAVE_DECL_TZNAME
7950 extern char *tzname[];
7956 return tzname[0][0];
7961 rm -f conftest.$ac_objext conftest$ac_exeext
7962 if { (ac_try="$ac_link"
7964 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7965 *) ac_try_echo
=$ac_try;;
7967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7968 (eval "$ac_link") 2>conftest.er1
7970 grep -v '^ *+' conftest.er1
>conftest.err
7972 cat conftest.err
>&5
7973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7974 (exit $ac_status); } && {
7975 test -z "$ac_c_werror_flag" ||
7976 test ! -s conftest.err
7977 } && test -s conftest
$ac_exeext &&
7978 $as_test_x conftest
$ac_exeext; then
7979 ac_cv_var_tzname
=yes
7981 echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.
$ac_ext >&5
7987 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7988 conftest
$ac_exeext conftest.
$ac_ext
7990 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7991 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7992 if test $ac_cv_var_tzname = yes; then
7994 cat >>confdefs.h
<<\_ACEOF
7995 #define HAVE_TZNAME 1
8001 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8002 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8003 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8004 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 cat >conftest.
$ac_ext <<_ACEOF
8009 cat confdefs.h
>>conftest.
$ac_ext
8010 cat >>conftest.
$ac_ext <<_ACEOF
8011 /* end confdefs.h. */
8017 static struct tm ac_aggr;
8018 if (ac_aggr.tm_gmtoff)
8024 rm -f conftest.
$ac_objext
8025 if { (ac_try
="$ac_compile"
8027 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8028 *) ac_try_echo=$ac_try;;
8030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8031 (eval "$ac_compile") 2>conftest.er1
8033 grep -v '^ *+' conftest.er1 >conftest.err
8035 cat conftest.err >&5
8036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8037 (exit $ac_status); } && {
8038 test -z "$ac_c_werror_flag" ||
8039 test ! -s conftest.err
8040 } && test -s conftest.$ac_objext; then
8041 ac_cv_member_struct_tm_tm_gmtoff=yes
8043 echo "$as_me: failed program was:" >&5
8044 sed 's/^/| /' conftest.$ac_ext >&5
8046 cat >conftest.$ac_ext <<_ACEOF
8049 cat confdefs.h >>conftest.$ac_ext
8050 cat >>conftest.$ac_ext <<_ACEOF
8051 /* end confdefs.h. */
8057 static struct tm ac_aggr;
8058 if (sizeof ac_aggr.tm_gmtoff)
8064 rm -f conftest.$ac_objext
8065 if { (ac_try="$ac_compile"
8067 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8068 *) ac_try_echo
=$ac_try;;
8070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8071 (eval "$ac_compile") 2>conftest.er1
8073 grep -v '^ *+' conftest.er1
>conftest.err
8075 cat conftest.err
>&5
8076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8077 (exit $ac_status); } && {
8078 test -z "$ac_c_werror_flag" ||
8079 test ! -s conftest.err
8080 } && test -s conftest.
$ac_objext; then
8081 ac_cv_member_struct_tm_tm_gmtoff
=yes
8083 echo "$as_me: failed program was:" >&5
8084 sed 's/^/| /' conftest.
$ac_ext >&5
8086 ac_cv_member_struct_tm_tm_gmtoff
=no
8089 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8094 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8095 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8096 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8098 cat >>confdefs.h
<<\_ACEOF
8099 #define HAVE_TM_GMTOFF 1
8104 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8105 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8106 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 cat >conftest.
$ac_ext <<_ACEOF
8112 cat confdefs.h
>>conftest.
$ac_ext
8113 cat >>conftest.
$ac_ext <<_ACEOF
8114 /* end confdefs.h. */
8115 $ac_includes_default
8116 #if HAVE_SYS_SOCKET_H
8117 #include <sys/socket.h>
8126 static struct ifreq ac_aggr;
8127 if (ac_aggr.ifr_flags)
8133 rm -f conftest.
$ac_objext
8134 if { (ac_try
="$ac_compile"
8136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8137 *) ac_try_echo=$ac_try;;
8139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8140 (eval "$ac_compile") 2>conftest.er1
8142 grep -v '^ *+' conftest.er1 >conftest.err
8144 cat conftest.err >&5
8145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8146 (exit $ac_status); } && {
8147 test -z "$ac_c_werror_flag" ||
8148 test ! -s conftest.err
8149 } && test -s conftest.$ac_objext; then
8150 ac_cv_member_struct_ifreq_ifr_flags=yes
8152 echo "$as_me: failed program was:" >&5
8153 sed 's/^/| /' conftest.$ac_ext >&5
8155 cat >conftest.$ac_ext <<_ACEOF
8158 cat confdefs.h >>conftest.$ac_ext
8159 cat >>conftest.$ac_ext <<_ACEOF
8160 /* end confdefs.h. */
8161 $ac_includes_default
8162 #if HAVE_SYS_SOCKET_H
8163 #include <sys/socket.h>
8172 static struct ifreq ac_aggr;
8173 if (sizeof ac_aggr.ifr_flags)
8179 rm -f conftest.$ac_objext
8180 if { (ac_try="$ac_compile"
8182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8183 *) ac_try_echo
=$ac_try;;
8185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8186 (eval "$ac_compile") 2>conftest.er1
8188 grep -v '^ *+' conftest.er1
>conftest.err
8190 cat conftest.err
>&5
8191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8192 (exit $ac_status); } && {
8193 test -z "$ac_c_werror_flag" ||
8194 test ! -s conftest.err
8195 } && test -s conftest.
$ac_objext; then
8196 ac_cv_member_struct_ifreq_ifr_flags
=yes
8198 echo "$as_me: failed program was:" >&5
8199 sed 's/^/| /' conftest.
$ac_ext >&5
8201 ac_cv_member_struct_ifreq_ifr_flags
=no
8204 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8207 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8209 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8210 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8211 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8213 cat >>confdefs.h
<<_ACEOF
8214 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8219 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8220 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8221 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8222 echo $ECHO_N "(cached) $ECHO_C" >&6
8224 cat >conftest.
$ac_ext <<_ACEOF
8227 cat confdefs.h
>>conftest.
$ac_ext
8228 cat >>conftest.
$ac_ext <<_ACEOF
8229 /* end confdefs.h. */
8230 $ac_includes_default
8231 #if HAVE_SYS_SOCKET_H
8232 #include <sys/socket.h>
8241 static struct ifreq ac_aggr;
8242 if (ac_aggr.ifr_hwaddr)
8248 rm -f conftest.
$ac_objext
8249 if { (ac_try
="$ac_compile"
8251 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8252 *) ac_try_echo=$ac_try;;
8254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8255 (eval "$ac_compile") 2>conftest.er1
8257 grep -v '^ *+' conftest.er1 >conftest.err
8259 cat conftest.err >&5
8260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8261 (exit $ac_status); } && {
8262 test -z "$ac_c_werror_flag" ||
8263 test ! -s conftest.err
8264 } && test -s conftest.$ac_objext; then
8265 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8267 echo "$as_me: failed program was:" >&5
8268 sed 's/^/| /' conftest.$ac_ext >&5
8270 cat >conftest.$ac_ext <<_ACEOF
8273 cat confdefs.h >>conftest.$ac_ext
8274 cat >>conftest.$ac_ext <<_ACEOF
8275 /* end confdefs.h. */
8276 $ac_includes_default
8277 #if HAVE_SYS_SOCKET_H
8278 #include <sys/socket.h>
8287 static struct ifreq ac_aggr;
8288 if (sizeof ac_aggr.ifr_hwaddr)
8294 rm -f conftest.$ac_objext
8295 if { (ac_try="$ac_compile"
8297 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8298 *) ac_try_echo
=$ac_try;;
8300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8301 (eval "$ac_compile") 2>conftest.er1
8303 grep -v '^ *+' conftest.er1
>conftest.err
8305 cat conftest.err
>&5
8306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8307 (exit $ac_status); } && {
8308 test -z "$ac_c_werror_flag" ||
8309 test ! -s conftest.err
8310 } && test -s conftest.
$ac_objext; then
8311 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8313 echo "$as_me: failed program was:" >&5
8314 sed 's/^/| /' conftest.
$ac_ext >&5
8316 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8319 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8324 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8325 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8326 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8328 cat >>confdefs.h
<<_ACEOF
8329 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8334 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8335 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8336 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8337 echo $ECHO_N "(cached) $ECHO_C" >&6
8339 cat >conftest.
$ac_ext <<_ACEOF
8342 cat confdefs.h
>>conftest.
$ac_ext
8343 cat >>conftest.
$ac_ext <<_ACEOF
8344 /* end confdefs.h. */
8345 $ac_includes_default
8346 #if HAVE_SYS_SOCKET_H
8347 #include <sys/socket.h>
8356 static struct ifreq ac_aggr;
8357 if (ac_aggr.ifr_netmask)
8363 rm -f conftest.
$ac_objext
8364 if { (ac_try
="$ac_compile"
8366 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8367 *) ac_try_echo=$ac_try;;
8369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8370 (eval "$ac_compile") 2>conftest.er1
8372 grep -v '^ *+' conftest.er1 >conftest.err
8374 cat conftest.err >&5
8375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8376 (exit $ac_status); } && {
8377 test -z "$ac_c_werror_flag" ||
8378 test ! -s conftest.err
8379 } && test -s conftest.$ac_objext; then
8380 ac_cv_member_struct_ifreq_ifr_netmask=yes
8382 echo "$as_me: failed program was:" >&5
8383 sed 's/^/| /' conftest.$ac_ext >&5
8385 cat >conftest.$ac_ext <<_ACEOF
8388 cat confdefs.h >>conftest.$ac_ext
8389 cat >>conftest.$ac_ext <<_ACEOF
8390 /* end confdefs.h. */
8391 $ac_includes_default
8392 #if HAVE_SYS_SOCKET_H
8393 #include <sys/socket.h>
8402 static struct ifreq ac_aggr;
8403 if (sizeof ac_aggr.ifr_netmask)
8409 rm -f conftest.$ac_objext
8410 if { (ac_try="$ac_compile"
8412 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8413 *) ac_try_echo
=$ac_try;;
8415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8416 (eval "$ac_compile") 2>conftest.er1
8418 grep -v '^ *+' conftest.er1
>conftest.err
8420 cat conftest.err
>&5
8421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8422 (exit $ac_status); } && {
8423 test -z "$ac_c_werror_flag" ||
8424 test ! -s conftest.err
8425 } && test -s conftest.
$ac_objext; then
8426 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8428 echo "$as_me: failed program was:" >&5
8429 sed 's/^/| /' conftest.
$ac_ext >&5
8431 ac_cv_member_struct_ifreq_ifr_netmask
=no
8434 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8437 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8439 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8440 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8441 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8443 cat >>confdefs.h
<<_ACEOF
8444 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8449 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8450 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8451 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8452 echo $ECHO_N "(cached) $ECHO_C" >&6
8454 cat >conftest.
$ac_ext <<_ACEOF
8457 cat confdefs.h
>>conftest.
$ac_ext
8458 cat >>conftest.
$ac_ext <<_ACEOF
8459 /* end confdefs.h. */
8460 $ac_includes_default
8461 #if HAVE_SYS_SOCKET_H
8462 #include <sys/socket.h>
8471 static struct ifreq ac_aggr;
8472 if (ac_aggr.ifr_broadaddr)
8478 rm -f conftest.
$ac_objext
8479 if { (ac_try
="$ac_compile"
8481 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8482 *) ac_try_echo=$ac_try;;
8484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8485 (eval "$ac_compile") 2>conftest.er1
8487 grep -v '^ *+' conftest.er1 >conftest.err
8489 cat conftest.err >&5
8490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8491 (exit $ac_status); } && {
8492 test -z "$ac_c_werror_flag" ||
8493 test ! -s conftest.err
8494 } && test -s conftest.$ac_objext; then
8495 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8497 echo "$as_me: failed program was:" >&5
8498 sed 's/^/| /' conftest.$ac_ext >&5
8500 cat >conftest.$ac_ext <<_ACEOF
8503 cat confdefs.h >>conftest.$ac_ext
8504 cat >>conftest.$ac_ext <<_ACEOF
8505 /* end confdefs.h. */
8506 $ac_includes_default
8507 #if HAVE_SYS_SOCKET_H
8508 #include <sys/socket.h>
8517 static struct ifreq ac_aggr;
8518 if (sizeof ac_aggr.ifr_broadaddr)
8524 rm -f conftest.$ac_objext
8525 if { (ac_try="$ac_compile"
8527 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8528 *) ac_try_echo
=$ac_try;;
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_compile") 2>conftest.er1
8533 grep -v '^ *+' conftest.er1
>conftest.err
8535 cat conftest.err
>&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } && {
8538 test -z "$ac_c_werror_flag" ||
8539 test ! -s conftest.err
8540 } && test -s conftest.
$ac_objext; then
8541 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8543 echo "$as_me: failed program was:" >&5
8544 sed 's/^/| /' conftest.
$ac_ext >&5
8546 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8549 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8552 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8554 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8555 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8556 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8558 cat >>confdefs.h
<<_ACEOF
8559 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8564 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8565 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8566 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8567 echo $ECHO_N "(cached) $ECHO_C" >&6
8569 cat >conftest.
$ac_ext <<_ACEOF
8572 cat confdefs.h
>>conftest.
$ac_ext
8573 cat >>conftest.
$ac_ext <<_ACEOF
8574 /* end confdefs.h. */
8575 $ac_includes_default
8576 #if HAVE_SYS_SOCKET_H
8577 #include <sys/socket.h>
8586 static struct ifreq ac_aggr;
8587 if (ac_aggr.ifr_addr)
8593 rm -f conftest.
$ac_objext
8594 if { (ac_try
="$ac_compile"
8596 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8597 *) ac_try_echo=$ac_try;;
8599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8600 (eval "$ac_compile") 2>conftest.er1
8602 grep -v '^ *+' conftest.er1 >conftest.err
8604 cat conftest.err >&5
8605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8606 (exit $ac_status); } && {
8607 test -z "$ac_c_werror_flag" ||
8608 test ! -s conftest.err
8609 } && test -s conftest.$ac_objext; then
8610 ac_cv_member_struct_ifreq_ifr_addr=yes
8612 echo "$as_me: failed program was:" >&5
8613 sed 's/^/| /' conftest.$ac_ext >&5
8615 cat >conftest.$ac_ext <<_ACEOF
8618 cat confdefs.h >>conftest.$ac_ext
8619 cat >>conftest.$ac_ext <<_ACEOF
8620 /* end confdefs.h. */
8621 $ac_includes_default
8622 #if HAVE_SYS_SOCKET_H
8623 #include <sys/socket.h>
8632 static struct ifreq ac_aggr;
8633 if (sizeof ac_aggr.ifr_addr)
8639 rm -f conftest.$ac_objext
8640 if { (ac_try="$ac_compile"
8642 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8643 *) ac_try_echo
=$ac_try;;
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646 (eval "$ac_compile") 2>conftest.er1
8648 grep -v '^ *+' conftest.er1
>conftest.err
8650 cat conftest.err
>&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } && {
8653 test -z "$ac_c_werror_flag" ||
8654 test ! -s conftest.err
8655 } && test -s conftest.
$ac_objext; then
8656 ac_cv_member_struct_ifreq_ifr_addr
=yes
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.
$ac_ext >&5
8661 ac_cv_member_struct_ifreq_ifr_addr
=no
8664 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8667 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8669 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8670 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8671 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8673 cat >>confdefs.h
<<_ACEOF
8674 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8682 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8683 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8684 if test "$ac_cv_prog_cc_c89" != no
; then
8685 { echo "$as_me:$LINENO: result: yes" >&5
8686 echo "${ECHO_T}yes" >&6; }
8688 cat >>confdefs.h
<<\_ACEOF
8689 #define PROTOTYPES 1
8693 cat >>confdefs.h
<<\_ACEOF
8694 #define __PROTOTYPES 1
8698 { echo "$as_me:$LINENO: result: no" >&5
8699 echo "${ECHO_T}no" >&6; }
8702 { echo "$as_me:$LINENO: checking for working volatile" >&5
8703 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8704 if test "${ac_cv_c_volatile+set}" = set; then
8705 echo $ECHO_N "(cached) $ECHO_C" >&6
8707 cat >conftest.
$ac_ext <<_ACEOF
8710 cat confdefs.h
>>conftest.
$ac_ext
8711 cat >>conftest.
$ac_ext <<_ACEOF
8712 /* end confdefs.h. */
8719 int * volatile y = (int *) 0;
8725 rm -f conftest.
$ac_objext
8726 if { (ac_try
="$ac_compile"
8728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8729 *) ac_try_echo=$ac_try;;
8731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8732 (eval "$ac_compile") 2>conftest.er1
8734 grep -v '^ *+' conftest.er1 >conftest.err
8736 cat conftest.err >&5
8737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8738 (exit $ac_status); } && {
8739 test -z "$ac_c_werror_flag" ||
8740 test ! -s conftest.err
8741 } && test -s conftest.$ac_objext; then
8742 ac_cv_c_volatile=yes
8744 echo "$as_me: failed program was:" >&5
8745 sed 's/^/| /' conftest.$ac_ext >&5
8750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8752 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8753 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8754 if test $ac_cv_c_volatile = no; then
8756 cat >>confdefs.h <<\_ACEOF
8762 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8763 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8764 if test "${ac_cv_c_const+set}" = set; then
8765 echo $ECHO_N "(cached) $ECHO_C" >&6
8767 cat >conftest.$ac_ext <<_ACEOF
8770 cat confdefs.h >>conftest.$ac_ext
8771 cat >>conftest.$ac_ext <<_ACEOF
8772 /* end confdefs.h. */
8777 /* FIXME: Include the comments suggested by Paul. */
8779 /* Ultrix mips cc rejects this. */
8780 typedef int charset[2];
8782 /* SunOS 4.1.1 cc rejects this. */
8783 char const *const *pcpcc;
8785 /* NEC SVR4.0.2 mips cc rejects this. */
8786 struct point {int x, y;};
8787 static struct point const zero = {0,0};
8788 /* AIX XL C 1.02.0.0 rejects this.
8789 It does not let you subtract one const X* pointer from another in
8790 an arm of an if-expression whose if-part is not a constant
8792 const char *g = "string";
8793 pcpcc = &g + (g ? g-g : 0);
8794 /* HPUX 7.0 cc rejects these. */
8796 ppc = (char**) pcpcc;
8797 pcpcc = (char const *const *) ppc;
8798 { /* SCO 3.2v4 cc rejects this. */
8800 char const *s = 0 ? (char *) 0 : (char const *) 0;
8805 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8807 const int *foo = &x[0];
8810 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8811 typedef const int *iptr;
8815 { /* AIX XL C 1.02.0.0 rejects this saying
8816 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8817 struct s { int j; const int *ap[3]; };
8818 struct s *b; b->j = 5;
8820 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8824 return !cs[0] && !zero.x;
8831 rm -f conftest.$ac_objext
8832 if { (ac_try="$ac_compile"
8834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8835 *) ac_try_echo
=$ac_try;;
8837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8838 (eval "$ac_compile") 2>conftest.er1
8840 grep -v '^ *+' conftest.er1
>conftest.err
8842 cat conftest.err
>&5
8843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8844 (exit $ac_status); } && {
8845 test -z "$ac_c_werror_flag" ||
8846 test ! -s conftest.err
8847 } && test -s conftest.
$ac_objext; then
8850 echo "$as_me: failed program was:" >&5
8851 sed 's/^/| /' conftest.
$ac_ext >&5
8856 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8858 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8859 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8860 if test $ac_cv_c_const = no
; then
8862 cat >>confdefs.h
<<\_ACEOF
8868 { echo "$as_me:$LINENO: checking for void * support" >&5
8869 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8870 if test "${emacs_cv_void_star+set}" = set; then
8871 echo $ECHO_N "(cached) $ECHO_C" >&6
8873 cat >conftest.
$ac_ext <<_ACEOF
8876 cat confdefs.h
>>conftest.
$ac_ext
8877 cat >>conftest.
$ac_ext <<_ACEOF
8878 /* end confdefs.h. */
8888 rm -f conftest.
$ac_objext
8889 if { (ac_try
="$ac_compile"
8891 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8892 *) ac_try_echo=$ac_try;;
8894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8895 (eval "$ac_compile") 2>conftest.er1
8897 grep -v '^ *+' conftest.er1 >conftest.err
8899 cat conftest.err >&5
8900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8901 (exit $ac_status); } && {
8902 test -z "$ac_c_werror_flag" ||
8903 test ! -s conftest.err
8904 } && test -s conftest.$ac_objext; then
8905 emacs_cv_void_star=yes
8907 echo "$as_me: failed program was:" >&5
8908 sed 's/^/| /' conftest.$ac_ext >&5
8910 emacs_cv_void_star=no
8913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8915 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8916 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8917 if test $emacs_cv_void_star = yes; then
8918 cat >>confdefs.h <<\_ACEOF
8919 #define POINTER_TYPE void
8923 cat >>confdefs.h <<\_ACEOF
8924 #define POINTER_TYPE char
8933 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8934 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8935 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8936 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8937 echo $ECHO_N "(cached) $ECHO_C" >&6
8939 cat >conftest.make <<\_ACEOF
8942 @echo '@@@%%%=$(MAKE)=@@@%%%'
8944 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8945 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8947 eval ac_cv_prog_make_${ac_make}_set=yes;;
8949 eval ac_cv_prog_make_${ac_make}_set=no;;
8953 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8954 { echo "$as_me:$LINENO: result: yes" >&5
8955 echo "${ECHO_T}yes" >&6; }
8958 { echo "$as_me:$LINENO: result: no" >&5
8959 echo "${ECHO_T}no" >&6; }
8960 SET_MAKE="MAKE=${MAKE-make}"
8964 { echo "$as_me:$LINENO: checking for long file names" >&5
8965 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8966 if test "${ac_cv_sys_long_file_names+set}" = set; then
8967 echo $ECHO_N "(cached) $ECHO_C" >&6
8969 ac_cv_sys_long_file_names=yes
8970 # Test for long file names in all the places we know might matter:
8971 # . the current directory, where building will happen
8972 # $prefix/lib where we will be installing things
8973 # $exec_prefix/lib likewise
8974 # $TMPDIR if set, where it might want to write temporary files
8975 # /tmp where it might want to write temporary files
8978 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8979 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8980 # in the usual case where exec_prefix is '${prefix}'.
8982 . | /* | ?:[\\/]*) ;; #(
8985 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8986 ac_xdir=$ac_dir/cf$$
8987 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8988 ac_tf1=$ac_xdir/conftest9012345
8989 ac_tf2=$ac_xdir/conftest9012346
8990 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8991 ac_cv_sys_long_file_names=no
8992 rm -f -r "$ac_xdir" 2>/dev/null
8993 test $ac_cv_sys_long_file_names = no && break
8996 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8997 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8998 if test $ac_cv_sys_long_file_names = yes; then
9000 cat >>confdefs.h <<\_ACEOF
9001 #define HAVE_LONG_FILE_NAMES 1
9007 #### Choose a window system.
9009 { echo "$as_me:$LINENO: checking for X" >&5
9010 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9013 # Check whether --with-x was given.
9014 if test "${with_x+set}" = set; then
9018 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9019 if test "x$with_x" = xno; then
9020 # The user explicitly disabled X.
9023 case $x_includes,$x_libraries in #(
9024 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9025 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9026 { (exit 1); exit 1; }; };; #(
9027 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9028 echo $ECHO_N "(cached) $ECHO_C" >&6
9030 # One or both of the vars are not set, and there is no cached value.
9031 ac_x_includes=no ac_x_libraries=no
9032 rm -f -r conftest.dir
9033 if mkdir conftest.dir; then
9035 cat >Imakefile <<'_ACEOF'
9037 @echo incroot='${INCROOT}'
9039 @echo usrlibdir='${USRLIBDIR}'
9041 @echo libdir='${LIBDIR}'
9043 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9044 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9045 for ac_var in incroot usrlibdir libdir; do
9046 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9048 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9049 for ac_extension in a so sl; do
9050 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9051 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9052 ac_im_usrlibdir=$ac_im_libdir; break
9055 # Screen out bogus values from the imake configuration. They are
9056 # bogus both because they are the default anyway, and because
9057 # using them would break gcc on systems where it needs fixed includes.
9058 case $ac_im_incroot in
9059 /usr/include) ac_x_includes= ;;
9060 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9062 case $ac_im_usrlibdir in
9064 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9068 rm -f -r conftest.dir
9071 # Standard set of common directories for X headers.
9072 # Check X11 before X11Rn because it is often a symlink to the current release.
9084 /usr/local/X11/include
9085 /usr/local/X11R6/include
9086 /usr/local/X11R5/include
9087 /usr/local/X11R4/include
9089 /usr/local/include/X11
9090 /usr/local/include/X11R6
9091 /usr/local/include/X11R5
9092 /usr/local/include/X11R4
9096 /usr/XFree86/include/X11
9100 /usr/unsupported/include
9102 /usr/local/x11r5/include
9103 /usr/lpp/Xamples/include
9105 /usr/openwin/include
9106 /usr/openwin/share/include'
9108 if test "$ac_x_includes" = no; then
9109 # Guess where to find include files, by looking for Xlib.h.
9110 # First, try using that file with no special directory specified.
9111 cat >conftest.$ac_ext <<_ACEOF
9114 cat confdefs.h >>conftest.$ac_ext
9115 cat >>conftest.$ac_ext <<_ACEOF
9116 /* end confdefs.h. */
9117 #include <X11/Xlib.h>
9119 if { (ac_try="$ac_cpp conftest.$ac_ext"
9121 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9122 *) ac_try_echo
=$ac_try;;
9124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9127 grep -v '^ *+' conftest.er1
>conftest.err
9129 cat conftest.err
>&5
9130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9131 (exit $ac_status); } >/dev
/null
&& {
9132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9133 test ! -s conftest.err
9135 # We can compile using X headers with no special include directory.
9138 echo "$as_me: failed program was:" >&5
9139 sed 's/^/| /' conftest.
$ac_ext >&5
9141 for ac_dir
in $ac_x_header_dirs; do
9142 if test -r "$ac_dir/X11/Xlib.h"; then
9143 ac_x_includes
=$ac_dir
9149 rm -f conftest.err conftest.
$ac_ext
9150 fi # $ac_x_includes = no
9152 if test "$ac_x_libraries" = no
; then
9153 # Check for the libraries.
9154 # See if we find them without any special options.
9155 # Don't add to $LIBS permanently.
9158 cat >conftest.
$ac_ext <<_ACEOF
9161 cat confdefs.h
>>conftest.
$ac_ext
9162 cat >>conftest.
$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9164 #include <X11/Xlib.h>
9173 rm -f conftest.
$ac_objext conftest
$ac_exeext
9174 if { (ac_try
="$ac_link"
9176 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9177 *) ac_try_echo=$ac_try;;
9179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9180 (eval "$ac_link") 2>conftest.er1
9182 grep -v '^ *+' conftest.er1 >conftest.err
9184 cat conftest.err >&5
9185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9186 (exit $ac_status); } && {
9187 test -z "$ac_c_werror_flag" ||
9188 test ! -s conftest.err
9189 } && test -s conftest$ac_exeext &&
9190 $as_test_x conftest$ac_exeext; then
9192 # We can link X programs with no special library path.
9195 echo "$as_me: failed program was:" >&5
9196 sed 's/^/| /' conftest.$ac_ext >&5
9199 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9201 # Don't even attempt the hair of trying to link an X program!
9202 for ac_extension in a so sl; do
9203 if test -r "$ac_dir/libX11.$ac_extension"; then
9204 ac_x_libraries=$ac_dir
9211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9212 conftest$ac_exeext conftest.$ac_ext
9213 fi # $ac_x_libraries = no
9215 case $ac_x_includes,$ac_x_libraries in #(
9217 # Didn't find X, or a directory has "'" in its name.
9218 ac_cv_have_x="have_x=no";; #(
9220 # Record where we found X for the cache.
9221 ac_cv_have_x="have_x=yes\
9222 ac_x_includes='$ac_x_includes'\
9223 ac_x_libraries='$ac_x_libraries'"
9229 eval "$ac_cv_have_x"
9232 if test "$have_x" != yes; then
9233 { echo "$as_me:$LINENO: result: $have_x" >&5
9234 echo "${ECHO_T}$have_x" >&6; }
9237 # If each of the values was on the command line, it overrides each guess.
9238 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9239 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9240 # Update the cache value to reflect the command line values.
9241 ac_cv_have_x="have_x=yes\
9242 ac_x_includes='$x_includes'\
9243 ac_x_libraries='$x_libraries'"
9244 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9245 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9248 if test "$no_x" = yes; then
9254 if test "${x_libraries}" != NONE; then
9255 if test -n "${x_libraries}"; then
9256 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9257 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9259 x_default_search_path=""
9260 x_search_path=${x_libraries}
9261 if test -z "${x_search_path}"; then
9262 x_search_path=/usr/lib
9264 for x_library in `echo ${x_search_path}: | \
9265 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9267 ${x_library}/X11/%L/%T/%N%C%S:\
9268 ${x_library}/X11/%l/%T/%N%C%S:\
9269 ${x_library}/X11/%T/%N%C%S:\
9270 ${x_library}/X11/%L/%T/%N%S:\
9271 ${x_library}/X11/%l/%T/%N%S:\
9272 ${x_library}/X11/%T/%N%S"
9273 if test x"${x_default_search_path}" = x; then
9274 x_default_search_path=${x_search_path}
9276 x_default_search_path="${x_search_path}:${x_default_search_path}"
9280 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9281 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9284 if test x"${x_includes}" = x; then
9285 bitmapdir=/usr/include/X11/bitmaps
9287 # accumulate include directories that have X11 bitmap subdirectories
9289 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9290 if test -d "${bmd}/X11/bitmaps"; then
9291 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9293 if test -d "${bmd}/bitmaps"; then
9294 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9297 if test ${bmd_acc} != "dummyval"; then
9298 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9303 if test "${with_carbon}" != no; then
9304 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9305 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9306 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9307 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9308 echo $ECHO_N "(cached) $ECHO_C" >&6
9310 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9311 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9313 # Is the header compilable?
9314 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9315 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9316 cat >conftest.$ac_ext <<_ACEOF
9319 cat confdefs.h >>conftest.$ac_ext
9320 cat >>conftest.$ac_ext <<_ACEOF
9321 /* end confdefs.h. */
9322 $ac_includes_default
9323 #include <Carbon/Carbon.h>
9325 rm -f conftest.$ac_objext
9326 if { (ac_try="$ac_compile"
9328 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9329 *) ac_try_echo
=$ac_try;;
9331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9332 (eval "$ac_compile") 2>conftest.er1
9334 grep -v '^ *+' conftest.er1
>conftest.err
9336 cat conftest.err
>&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 (exit $ac_status); } && {
9339 test -z "$ac_c_werror_flag" ||
9340 test ! -s conftest.err
9341 } && test -s conftest.
$ac_objext; then
9342 ac_header_compiler
=yes
9344 echo "$as_me: failed program was:" >&5
9345 sed 's/^/| /' conftest.
$ac_ext >&5
9347 ac_header_compiler
=no
9350 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9351 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9352 echo "${ECHO_T}$ac_header_compiler" >&6; }
9354 # Is the header present?
9355 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9356 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9357 cat >conftest.
$ac_ext <<_ACEOF
9360 cat confdefs.h
>>conftest.
$ac_ext
9361 cat >>conftest.
$ac_ext <<_ACEOF
9362 /* end confdefs.h. */
9363 #include <Carbon/Carbon.h>
9365 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9367 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9368 *) ac_try_echo=$ac_try;;
9370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9373 grep -v '^ *+' conftest.er1 >conftest.err
9375 cat conftest.err >&5
9376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9377 (exit $ac_status); } >/dev/null && {
9378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9379 test ! -s conftest.err
9381 ac_header_preproc=yes
9383 echo "$as_me: failed program was:" >&5
9384 sed 's/^/| /' conftest.$ac_ext >&5
9386 ac_header_preproc=no
9389 rm -f conftest.err conftest.$ac_ext
9390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9391 echo "${ECHO_T}$ac_header_preproc" >&6; }
9393 # So? What about this header?
9394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9396 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9397 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9399 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9400 ac_header_preproc=yes
9403 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9404 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9406 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9407 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9408 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9409 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9410 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9411 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9412 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9413 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9414 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9418 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9419 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9420 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9423 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9425 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9426 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9429 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9435 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9436 if test "${with_carbon+set}" != set \
9437 && test "${carbon_appdir_x+set}" != set; then
9438 for var in with_x with_x_toolkit with_gtk with_xim \
9439 with_xpm with_jpeg with_tiff with_gif with_png; do
9440 if eval test \"\${$var+set}\" = set; then
9447 if test "${HAVE_CARBON}" = yes; then
9451 case "${window_system}" in
9455 case "${with_x_toolkit}" in
9456 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9457 motif ) USE_X_TOOLKIT=MOTIF ;;
9459 USE_X_TOOLKIT=none ;;
9460 no ) USE_X_TOOLKIT=none ;;
9461 * ) USE_X_TOOLKIT=maybe ;;
9471 ### If we're using X11, we should use the X menu package.
9474 yes ) HAVE_MENUS=yes ;;
9477 if test "${opsys}" = "hpux9"; then
9478 case "${x_libraries}" in
9480 opsysfile="s/hpux9-x11r4.h"
9485 if test "${opsys}" = "hpux9shr"; then
9486 case "${x_libraries}" in
9488 opsysfile="s/hpux9shxr4.h"
9493 ### Compute the unexec source name from the object name.
9494 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9496 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9497 # Assume not, until told otherwise.
9500 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9501 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9502 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9503 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 cat >conftest.$ac_ext <<_ACEOF
9508 cat confdefs.h >>conftest.$ac_ext
9509 cat >>conftest.$ac_ext <<_ACEOF
9510 /* end confdefs.h. */
9511 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9513 #define malloc_get_state innocuous_malloc_get_state
9515 /* System header to define __stub macros and hopefully few prototypes,
9516 which can conflict with char malloc_get_state (); below.
9517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9518 <limits.h> exists even on freestanding compilers. */
9521 # include <limits.h>
9523 # include <assert.h>
9526 #undef malloc_get_state
9528 /* Override any GCC internal prototype to avoid an error.
9529 Use char because int might match the return type of a GCC
9530 builtin and then its argument prototype would still apply. */
9534 char malloc_get_state ();
9535 /* The GNU C library defines this for functions which it implements
9536 to always fail with ENOSYS. Some functions are actually named
9537 something starting with __ and the normal name is an alias. */
9538 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9545 return malloc_get_state ();
9550 rm -f conftest.$ac_objext conftest$ac_exeext
9551 if { (ac_try="$ac_link"
9553 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9554 *) ac_try_echo
=$ac_try;;
9556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9557 (eval "$ac_link") 2>conftest.er1
9559 grep -v '^ *+' conftest.er1
>conftest.err
9561 cat conftest.err
>&5
9562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9563 (exit $ac_status); } && {
9564 test -z "$ac_c_werror_flag" ||
9565 test ! -s conftest.err
9566 } && test -s conftest
$ac_exeext &&
9567 $as_test_x conftest
$ac_exeext; then
9568 ac_cv_func_malloc_get_state
=yes
9570 echo "$as_me: failed program was:" >&5
9571 sed 's/^/| /' conftest.
$ac_ext >&5
9573 ac_cv_func_malloc_get_state
=no
9576 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9577 conftest
$ac_exeext conftest.
$ac_ext
9579 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9580 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9581 if test $ac_cv_func_malloc_get_state = yes; then
9587 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9588 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9589 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9590 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 cat >conftest.
$ac_ext <<_ACEOF
9595 cat confdefs.h
>>conftest.
$ac_ext
9596 cat >>conftest.
$ac_ext <<_ACEOF
9597 /* end confdefs.h. */
9598 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9599 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9600 #define malloc_set_state innocuous_malloc_set_state
9602 /* System header to define __stub macros and hopefully few prototypes,
9603 which can conflict with char malloc_set_state (); below.
9604 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9605 <limits.h> exists even on freestanding compilers. */
9608 # include <limits.h>
9610 # include <assert.h>
9613 #undef malloc_set_state
9615 /* Override any GCC internal prototype to avoid an error.
9616 Use char because int might match the return type of a GCC
9617 builtin and then its argument prototype would still apply. */
9621 char malloc_set_state ();
9622 /* The GNU C library defines this for functions which it implements
9623 to always fail with ENOSYS. Some functions are actually named
9624 something starting with __ and the normal name is an alias. */
9625 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9632 return malloc_set_state ();
9637 rm -f conftest.
$ac_objext conftest
$ac_exeext
9638 if { (ac_try
="$ac_link"
9640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9641 *) ac_try_echo=$ac_try;;
9643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9644 (eval "$ac_link") 2>conftest.er1
9646 grep -v '^ *+' conftest.er1 >conftest.err
9648 cat conftest.err >&5
9649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9650 (exit $ac_status); } && {
9651 test -z "$ac_c_werror_flag" ||
9652 test ! -s conftest.err
9653 } && test -s conftest$ac_exeext &&
9654 $as_test_x conftest$ac_exeext; then
9655 ac_cv_func_malloc_set_state=yes
9657 echo "$as_me: failed program was:" >&5
9658 sed 's/^/| /' conftest.$ac_ext >&5
9660 ac_cv_func_malloc_set_state=no
9663 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9664 conftest$ac_exeext conftest.$ac_ext
9666 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9667 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9668 if test $ac_cv_func_malloc_set_state = yes; then
9674 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9675 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9676 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9677 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 cat >conftest.$ac_ext <<_ACEOF
9682 cat confdefs.h >>conftest.$ac_ext
9683 cat >>conftest.$ac_ext <<_ACEOF
9684 /* end confdefs.h. */
9685 extern void (* __after_morecore_hook)();
9689 __after_morecore_hook = 0
9694 rm -f conftest.$ac_objext conftest$ac_exeext
9695 if { (ac_try="$ac_link"
9697 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9698 *) ac_try_echo
=$ac_try;;
9700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9701 (eval "$ac_link") 2>conftest.er1
9703 grep -v '^ *+' conftest.er1
>conftest.err
9705 cat conftest.err
>&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 (exit $ac_status); } && {
9708 test -z "$ac_c_werror_flag" ||
9709 test ! -s conftest.err
9710 } && test -s conftest
$ac_exeext &&
9711 $as_test_x conftest
$ac_exeext; then
9712 emacs_cv_var___after_morecore_hook
=yes
9714 echo "$as_me: failed program was:" >&5
9715 sed 's/^/| /' conftest.
$ac_ext >&5
9717 emacs_cv_var___after_morecore_hook
=no
9720 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9721 conftest
$ac_exeext conftest.
$ac_ext
9723 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9724 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9725 if test $emacs_cv_var___after_morecore_hook = no
; then
9728 if test "${system_malloc}" = "yes"; then
9731 (The GNU allocators don't work with this system configuration.)"
9733 if test "$doug_lea_malloc" = "yes" ; then
9734 if test "$GNU_MALLOC" = yes ; then
9736 (Using Doug Lea's new malloc from the GNU C Library.)"
9739 cat >>confdefs.h
<<\_ACEOF
9740 #define DOUG_LEA_MALLOC 1
9745 if test x
"${REL_ALLOC}" = x
; then
9746 REL_ALLOC
=${GNU_MALLOC}
9752 for ac_header
in stdlib.h unistd.h
9754 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9755 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9756 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9757 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9758 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9759 echo $ECHO_N "(cached) $ECHO_C" >&6
9761 ac_res
=`eval echo '${'$as_ac_Header'}'`
9762 { echo "$as_me:$LINENO: result: $ac_res" >&5
9763 echo "${ECHO_T}$ac_res" >&6; }
9765 # Is the header compilable?
9766 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9767 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9768 cat >conftest.
$ac_ext <<_ACEOF
9771 cat confdefs.h
>>conftest.
$ac_ext
9772 cat >>conftest.
$ac_ext <<_ACEOF
9773 /* end confdefs.h. */
9774 $ac_includes_default
9775 #include <$ac_header>
9777 rm -f conftest.
$ac_objext
9778 if { (ac_try
="$ac_compile"
9780 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9781 *) ac_try_echo=$ac_try;;
9783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9784 (eval "$ac_compile") 2>conftest.er1
9786 grep -v '^ *+' conftest.er1 >conftest.err
9788 cat conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 (exit $ac_status); } && {
9791 test -z "$ac_c_werror_flag" ||
9792 test ! -s conftest.err
9793 } && test -s conftest.$ac_objext; then
9794 ac_header_compiler=yes
9796 echo "$as_me: failed program was:" >&5
9797 sed 's/^/| /' conftest.$ac_ext >&5
9799 ac_header_compiler=no
9802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9804 echo "${ECHO_T}$ac_header_compiler" >&6; }
9806 # Is the header present?
9807 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9808 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9809 cat >conftest.$ac_ext <<_ACEOF
9812 cat confdefs.h >>conftest.$ac_ext
9813 cat >>conftest.$ac_ext <<_ACEOF
9814 /* end confdefs.h. */
9815 #include <$ac_header>
9817 if { (ac_try="$ac_cpp conftest.$ac_ext"
9819 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9820 *) ac_try_echo
=$ac_try;;
9822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9825 grep -v '^ *+' conftest.er1
>conftest.err
9827 cat conftest.err
>&5
9828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9829 (exit $ac_status); } >/dev
/null
&& {
9830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9831 test ! -s conftest.err
9833 ac_header_preproc
=yes
9835 echo "$as_me: failed program was:" >&5
9836 sed 's/^/| /' conftest.
$ac_ext >&5
9838 ac_header_preproc
=no
9841 rm -f conftest.err conftest.
$ac_ext
9842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9843 echo "${ECHO_T}$ac_header_preproc" >&6; }
9845 # So? What about this header?
9846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9849 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9851 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9852 ac_header_preproc
=yes
9855 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9856 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9857 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9858 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9859 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9860 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9861 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9862 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9863 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9864 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9865 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9866 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9870 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9871 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9872 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9873 echo $ECHO_N "(cached) $ECHO_C" >&6
9875 eval "$as_ac_Header=\$ac_header_preproc"
9877 ac_res
=`eval echo '${'$as_ac_Header'}'`
9878 { echo "$as_me:$LINENO: result: $ac_res" >&5
9879 echo "${ECHO_T}$ac_res" >&6; }
9882 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9883 cat >>confdefs.h
<<_ACEOF
9884 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9892 for ac_func
in getpagesize
9894 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9895 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9896 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9897 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9898 echo $ECHO_N "(cached) $ECHO_C" >&6
9900 cat >conftest.
$ac_ext <<_ACEOF
9903 cat confdefs.h
>>conftest.
$ac_ext
9904 cat >>conftest.
$ac_ext <<_ACEOF
9905 /* end confdefs.h. */
9906 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9908 #define $ac_func innocuous_$ac_func
9910 /* System header to define __stub macros and hopefully few prototypes,
9911 which can conflict with char $ac_func (); below.
9912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9913 <limits.h> exists even on freestanding compilers. */
9916 # include <limits.h>
9918 # include <assert.h>
9923 /* Override any GCC internal prototype to avoid an error.
9924 Use char because int might match the return type of a GCC
9925 builtin and then its argument prototype would still apply. */
9930 /* The GNU C library defines this for functions which it implements
9931 to always fail with ENOSYS. Some functions are actually named
9932 something starting with __ and the normal name is an alias. */
9933 #if defined __stub_$ac_func || defined __stub___$ac_func
9945 rm -f conftest.
$ac_objext conftest
$ac_exeext
9946 if { (ac_try
="$ac_link"
9948 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9949 *) ac_try_echo=$ac_try;;
9951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9952 (eval "$ac_link") 2>conftest.er1
9954 grep -v '^ *+' conftest.er1 >conftest.err
9956 cat conftest.err >&5
9957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9958 (exit $ac_status); } && {
9959 test -z "$ac_c_werror_flag" ||
9960 test ! -s conftest.err
9961 } && test -s conftest$ac_exeext &&
9962 $as_test_x conftest$ac_exeext; then
9963 eval "$as_ac_var=yes"
9965 echo "$as_me: failed program was:" >&5
9966 sed 's/^/| /' conftest.$ac_ext >&5
9968 eval "$as_ac_var=no"
9971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9972 conftest$ac_exeext conftest.$ac_ext
9974 ac_res=`eval echo '${'$as_ac_var'}'`
9975 { echo "$as_me:$LINENO: result: $ac_res" >&5
9976 echo "${ECHO_T}$ac_res" >&6; }
9977 if test `eval echo '${'$as_ac_var'}'` = yes; then
9978 cat >>confdefs.h <<_ACEOF
9979 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9985 { echo "$as_me:$LINENO: checking for working mmap" >&5
9986 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9987 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9988 echo $ECHO_N "(cached) $ECHO_C" >&6
9990 if test "$cross_compiling" = yes; then
9991 ac_cv_func_mmap_fixed_mapped=no
9993 cat >conftest.$ac_ext <<_ACEOF
9996 cat confdefs.h >>conftest.$ac_ext
9997 cat >>conftest.$ac_ext <<_ACEOF
9998 /* end confdefs.h. */
9999 $ac_includes_default
10000 /* malloc might have been renamed as rpl_malloc. */
10003 /* Thanks to Mike Haertel and Jim Avera for this test.
10004 Here is a matrix of mmap possibilities:
10005 mmap private not fixed
10006 mmap private fixed at somewhere currently unmapped
10007 mmap private fixed at somewhere already mapped
10008 mmap shared not fixed
10009 mmap shared fixed at somewhere currently unmapped
10010 mmap shared fixed at somewhere already mapped
10011 For private mappings, we should verify that changes cannot be read()
10012 back from the file, nor mmap's back from the file at a different
10013 address. (There have been systems where private was not correctly
10014 implemented like the infamous i386 svr4.0, and systems where the
10015 VM page cache was not coherent with the file system buffer cache
10016 like early versions of FreeBSD and possibly contemporary NetBSD.)
10017 For shared mappings, we should conversely verify that changes get
10018 propagated back to all the places they're supposed to be.
10020 Grep wants private fixed already mapped.
10021 The main things grep needs to know about mmap are:
10022 * does it exist and is it safe to write into the mmap'd area
10023 * how to use it (BSD variants) */
10026 #include <sys/mman.h>
10028 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10032 /* This mess was copied from the GNU getpagesize.h. */
10033 #ifndef HAVE_GETPAGESIZE
10034 /* Assume that all systems that can run configure have sys/param.h. */
10035 # ifndef HAVE_SYS_PARAM_H
10036 # define HAVE_SYS_PARAM_H 1
10039 # ifdef _SC_PAGESIZE
10040 # define getpagesize() sysconf(_SC_PAGESIZE)
10041 # else /* no _SC_PAGESIZE */
10042 # ifdef HAVE_SYS_PARAM_H
10043 # include <sys/param.h>
10044 # ifdef EXEC_PAGESIZE
10045 # define getpagesize() EXEC_PAGESIZE
10046 # else /* no EXEC_PAGESIZE */
10048 # define getpagesize() NBPG * CLSIZE
10051 # endif /* no CLSIZE */
10052 # else /* no NBPG */
10054 # define getpagesize() NBPC
10055 # else /* no NBPC */
10057 # define getpagesize() PAGESIZE
10058 # endif /* PAGESIZE */
10059 # endif /* no NBPC */
10060 # endif /* no NBPG */
10061 # endif /* no EXEC_PAGESIZE */
10062 # else /* no HAVE_SYS_PARAM_H */
10063 # define getpagesize() 8192 /* punt totally */
10064 # endif /* no HAVE_SYS_PARAM_H */
10065 # endif /* no _SC_PAGESIZE */
10067 #endif /* no HAVE_GETPAGESIZE */
10072 char *data, *data2, *data3;
10076 pagesize = getpagesize ();
10078 /* First, make a file with some known garbage in it. */
10079 data = (char *) malloc (pagesize);
10082 for (i = 0; i < pagesize; ++i)
10083 *(data + i) = rand ();
10085 fd = creat ("conftest.mmap", 0600);
10088 if (write (fd, data, pagesize) != pagesize)
10092 /* Next, try to mmap the file at a fixed address which already has
10093 something else allocated at it. If we can, also make sure that
10094 we see the same garbage. */
10095 fd = open ("conftest.mmap", O_RDWR);
10098 data2 = (char *) malloc (2 * pagesize);
10101 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10102 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10103 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10105 for (i = 0; i < pagesize; ++i)
10106 if (*(data + i) != *(data2 + i))
10109 /* Finally, make sure that changes to the mapped area do not
10110 percolate back to the file as seen by read(). (This is a bug on
10111 some variants of i386 svr4.0.) */
10112 for (i = 0; i < pagesize; ++i)
10113 *(data2 + i) = *(data2 + i) + 1;
10114 data3 = (char *) malloc (pagesize);
10117 if (read (fd, data3, pagesize) != pagesize)
10119 for (i = 0; i < pagesize; ++i)
10120 if (*(data + i) != *(data3 + i))
10126 rm -f conftest$ac_exeext
10127 if { (ac_try="$ac_link"
10128 case "(($ac_try" in
10129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10130 *) ac_try_echo
=$ac_try;;
10132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10133 (eval "$ac_link") 2>&5
10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10136 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10137 { (case "(($ac_try" in
10138 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10139 *) ac_try_echo=$ac_try;;
10141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10142 (eval "$ac_try") 2>&5
10144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10145 (exit $ac_status); }; }; then
10146 ac_cv_func_mmap_fixed_mapped=yes
10148 echo "$as_me: program exited with status $ac_status" >&5
10149 echo "$as_me: failed program was:" >&5
10150 sed 's/^/| /' conftest.$ac_ext >&5
10152 ( exit $ac_status )
10153 ac_cv_func_mmap_fixed_mapped=no
10155 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10160 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10161 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10162 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10164 cat >>confdefs.h <<\_ACEOF
10165 #define HAVE_MMAP 1
10169 rm -f conftest.mmap
10171 if test $use_mmap_for_buffers = yes; then
10175 LIBS="$libsrc_libs $LIBS"
10178 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10179 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10180 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10181 echo $ECHO_N "(cached) $ECHO_C" >&6
10183 ac_check_lib_save_LIBS=$LIBS
10184 LIBS="-ldnet $LIBS"
10185 cat >conftest.$ac_ext <<_ACEOF
10188 cat confdefs.h >>conftest.$ac_ext
10189 cat >>conftest.$ac_ext <<_ACEOF
10190 /* end confdefs.h. */
10192 /* Override any GCC internal prototype to avoid an error.
10193 Use char because int might match the return type of a GCC
10194 builtin and then its argument prototype would still apply. */
10202 return dnet_ntoa ();
10207 rm -f conftest.$ac_objext conftest$ac_exeext
10208 if { (ac_try="$ac_link"
10209 case "(($ac_try" in
10210 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10211 *) ac_try_echo
=$ac_try;;
10213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10214 (eval "$ac_link") 2>conftest.er1
10216 grep -v '^ *+' conftest.er1
>conftest.err
10218 cat conftest.err
>&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 (exit $ac_status); } && {
10221 test -z "$ac_c_werror_flag" ||
10222 test ! -s conftest.err
10223 } && test -s conftest
$ac_exeext &&
10224 $as_test_x conftest
$ac_exeext; then
10225 ac_cv_lib_dnet_dnet_ntoa
=yes
10227 echo "$as_me: failed program was:" >&5
10228 sed 's/^/| /' conftest.
$ac_ext >&5
10230 ac_cv_lib_dnet_dnet_ntoa
=no
10233 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10234 conftest
$ac_exeext conftest.
$ac_ext
10235 LIBS
=$ac_check_lib_save_LIBS
10237 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10238 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10239 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10240 cat >>confdefs.h
<<_ACEOF
10241 #define HAVE_LIBDNET 1
10244 LIBS
="-ldnet $LIBS"
10249 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10250 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10251 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10252 echo $ECHO_N "(cached) $ECHO_C" >&6
10254 ac_check_lib_save_LIBS
=$LIBS
10255 LIBS
="-lXbsd $LIBS"
10256 cat >conftest.
$ac_ext <<_ACEOF
10259 cat confdefs.h
>>conftest.
$ac_ext
10260 cat >>conftest.
$ac_ext <<_ACEOF
10261 /* end confdefs.h. */
10272 rm -f conftest.
$ac_objext conftest
$ac_exeext
10273 if { (ac_try
="$ac_link"
10274 case "(($ac_try" in
10275 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10276 *) ac_try_echo=$ac_try;;
10278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10279 (eval "$ac_link") 2>conftest.er1
10281 grep -v '^ *+' conftest.er1 >conftest.err
10283 cat conftest.err >&5
10284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10285 (exit $ac_status); } && {
10286 test -z "$ac_c_werror_flag" ||
10287 test ! -s conftest.err
10288 } && test -s conftest$ac_exeext &&
10289 $as_test_x conftest$ac_exeext; then
10290 ac_cv_lib_Xbsd_main=yes
10292 echo "$as_me: failed program was:" >&5
10293 sed 's/^/| /' conftest.$ac_ext >&5
10295 ac_cv_lib_Xbsd_main=no
10298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10299 conftest$ac_exeext conftest.$ac_ext
10300 LIBS=$ac_check_lib_save_LIBS
10302 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10303 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10304 if test $ac_cv_lib_Xbsd_main = yes; then
10305 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10310 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10311 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10312 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10313 echo $ECHO_N "(cached) $ECHO_C" >&6
10315 ac_check_lib_save_LIBS=$LIBS
10316 LIBS="-lpthreads $LIBS"
10317 cat >conftest.$ac_ext <<_ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10324 /* Override any GCC internal prototype to avoid an error.
10325 Use char because int might match the return type of a GCC
10326 builtin and then its argument prototype would still apply. */
10334 return cma_open ();
10339 rm -f conftest.$ac_objext conftest$ac_exeext
10340 if { (ac_try="$ac_link"
10341 case "(($ac_try" in
10342 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10343 *) ac_try_echo
=$ac_try;;
10345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10346 (eval "$ac_link") 2>conftest.er1
10348 grep -v '^ *+' conftest.er1
>conftest.err
10350 cat conftest.err
>&5
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); } && {
10353 test -z "$ac_c_werror_flag" ||
10354 test ! -s conftest.err
10355 } && test -s conftest
$ac_exeext &&
10356 $as_test_x conftest
$ac_exeext; then
10357 ac_cv_lib_pthreads_cma_open
=yes
10359 echo "$as_me: failed program was:" >&5
10360 sed 's/^/| /' conftest.
$ac_ext >&5
10362 ac_cv_lib_pthreads_cma_open
=no
10365 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10366 conftest
$ac_exeext conftest.
$ac_ext
10367 LIBS
=$ac_check_lib_save_LIBS
10369 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10370 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10371 if test $ac_cv_lib_pthreads_cma_open = yes; then
10372 cat >>confdefs.h
<<_ACEOF
10373 #define HAVE_LIBPTHREADS 1
10376 LIBS
="-lpthreads $LIBS"
10381 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10382 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10383 if test -d /usr
/X386
/include
; then
10385 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10389 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10390 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10395 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10396 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10397 if test "${gdb_cv_bigtoc+set}" = set; then
10398 echo $ECHO_N "(cached) $ECHO_C" >&6
10402 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10403 *) gdb_cv_bigtoc
=-bbigtoc ;;
10406 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10407 cat >conftest.
$ac_ext <<_ACEOF
10410 cat confdefs.h
>>conftest.
$ac_ext
10411 cat >>conftest.
$ac_ext <<_ACEOF
10412 /* end confdefs.h. */
10422 rm -f conftest.
$ac_objext conftest
$ac_exeext
10423 if { (ac_try
="$ac_link"
10424 case "(($ac_try" in
10425 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10426 *) ac_try_echo=$ac_try;;
10428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10429 (eval "$ac_link") 2>conftest.er1
10431 grep -v '^ *+' conftest.er1 >conftest.err
10433 cat conftest.err >&5
10434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10435 (exit $ac_status); } && {
10436 test -z "$ac_c_werror_flag" ||
10437 test ! -s conftest.err
10438 } && test -s conftest$ac_exeext &&
10439 $as_test_x conftest$ac_exeext; then
10442 echo "$as_me: failed program was:" >&5
10443 sed 's/^/| /' conftest.$ac_ext >&5
10448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10449 conftest$ac_exeext conftest.$ac_ext
10452 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10453 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10457 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10458 # used for the tests that follow. We set them back to REAL_CFLAGS and
10459 # REAL_CPPFLAGS later on.
10461 REAL_CPPFLAGS="$CPPFLAGS"
10463 if test "${HAVE_X11}" = "yes"; then
10464 DEFS="$C_SWITCH_X_SITE $DEFS"
10465 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10467 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10468 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10470 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10471 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10472 # but it's more convenient here to set LD_RUN_PATH
10473 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10474 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10475 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10479 if test "${opsys}" = "gnu-linux"; then
10480 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10481 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10482 cat >conftest.$ac_ext <<_ACEOF
10485 cat confdefs.h >>conftest.$ac_ext
10486 cat >>conftest.$ac_ext <<_ACEOF
10487 /* end confdefs.h. */
10492 XOpenDisplay ("foo");
10497 rm -f conftest.$ac_objext conftest$ac_exeext
10498 if { (ac_try="$ac_link"
10499 case "(($ac_try" in
10500 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10501 *) ac_try_echo
=$ac_try;;
10503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10504 (eval "$ac_link") 2>conftest.er1
10506 grep -v '^ *+' conftest.er1
>conftest.err
10508 cat conftest.err
>&5
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); } && {
10511 test -z "$ac_c_werror_flag" ||
10512 test ! -s conftest.err
10513 } && test -s conftest
$ac_exeext &&
10514 $as_test_x conftest
$ac_exeext; then
10515 xlinux_first_failure
=no
10517 echo "$as_me: failed program was:" >&5
10518 sed 's/^/| /' conftest.
$ac_ext >&5
10520 xlinux_first_failure
=yes
10523 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10524 conftest
$ac_exeext conftest.
$ac_ext
10525 if test "${xlinux_first_failure}" = "yes"; then
10526 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10527 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10528 OLD_CPPFLAGS
="$CPPFLAGS"
10530 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10531 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10532 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10533 LIBS
="$LIBS -b i486-linuxaout"
10534 cat >conftest.
$ac_ext <<_ACEOF
10537 cat confdefs.h
>>conftest.
$ac_ext
10538 cat >>conftest.
$ac_ext <<_ACEOF
10539 /* end confdefs.h. */
10544 XOpenDisplay ("foo");
10549 rm -f conftest.
$ac_objext conftest
$ac_exeext
10550 if { (ac_try
="$ac_link"
10551 case "(($ac_try" in
10552 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10553 *) ac_try_echo=$ac_try;;
10555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10556 (eval "$ac_link") 2>conftest.er1
10558 grep -v '^ *+' conftest.er1 >conftest.err
10560 cat conftest.err >&5
10561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562 (exit $ac_status); } && {
10563 test -z "$ac_c_werror_flag" ||
10564 test ! -s conftest.err
10565 } && test -s conftest$ac_exeext &&
10566 $as_test_x conftest$ac_exeext; then
10567 xlinux_second_failure=no
10569 echo "$as_me: failed program was:" >&5
10570 sed 's/^/| /' conftest.$ac_ext >&5
10572 xlinux_second_failure=yes
10575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10576 conftest$ac_exeext conftest.$ac_ext
10577 if test "${xlinux_second_failure}" = "yes"; then
10578 # If we get the same failure with -b, there is no use adding -b.
10579 # So take it out. This plays safe.
10580 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10581 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10582 CPPFLAGS="$OLD_CPPFLAGS"
10584 { echo "$as_me:$LINENO: result: no" >&5
10585 echo "${ECHO_T}no" >&6; }
10587 { echo "$as_me:$LINENO: result: yes" >&5
10588 echo "${ECHO_T}yes" >&6; }
10591 { echo "$as_me:$LINENO: result: no" >&5
10592 echo "${ECHO_T}no" >&6; }
10596 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10597 # header files included from there.
10598 { echo "$as_me:$LINENO: checking for Xkb" >&5
10599 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10600 cat >conftest.$ac_ext <<_ACEOF
10603 cat confdefs.h >>conftest.$ac_ext
10604 cat >>conftest.$ac_ext <<_ACEOF
10605 /* end confdefs.h. */
10606 #include <X11/Xlib.h>
10607 #include <X11/XKBlib.h>
10611 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10616 rm -f conftest.$ac_objext conftest$ac_exeext
10617 if { (ac_try="$ac_link"
10618 case "(($ac_try" in
10619 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10620 *) ac_try_echo
=$ac_try;;
10622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10623 (eval "$ac_link") 2>conftest.er1
10625 grep -v '^ *+' conftest.er1
>conftest.err
10627 cat conftest.err
>&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } && {
10630 test -z "$ac_c_werror_flag" ||
10631 test ! -s conftest.err
10632 } && test -s conftest
$ac_exeext &&
10633 $as_test_x conftest
$ac_exeext; then
10636 echo "$as_me: failed program was:" >&5
10637 sed 's/^/| /' conftest.
$ac_ext >&5
10642 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10643 conftest
$ac_exeext conftest.
$ac_ext
10644 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10645 echo "${ECHO_T}$emacs_xkb" >&6; }
10646 if test $emacs_xkb = yes; then
10648 cat >>confdefs.h
<<\_ACEOF
10649 #define HAVE_XKBGETKEYBOARD 1
10658 for ac_func
in XrmSetDatabase XScreenResourceString \
10659 XScreenNumberOfScreen XSetWMProtocols
10661 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10662 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10663 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10664 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10665 echo $ECHO_N "(cached) $ECHO_C" >&6
10667 cat >conftest.
$ac_ext <<_ACEOF
10670 cat confdefs.h
>>conftest.
$ac_ext
10671 cat >>conftest.
$ac_ext <<_ACEOF
10672 /* end confdefs.h. */
10673 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10674 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10675 #define $ac_func innocuous_$ac_func
10677 /* System header to define __stub macros and hopefully few prototypes,
10678 which can conflict with char $ac_func (); below.
10679 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10680 <limits.h> exists even on freestanding compilers. */
10683 # include <limits.h>
10685 # include <assert.h>
10690 /* Override any GCC internal prototype to avoid an error.
10691 Use char because int might match the return type of a GCC
10692 builtin and then its argument prototype would still apply. */
10697 /* The GNU C library defines this for functions which it implements
10698 to always fail with ENOSYS. Some functions are actually named
10699 something starting with __ and the normal name is an alias. */
10700 #if defined __stub_$ac_func || defined __stub___$ac_func
10707 return $ac_func ();
10712 rm -f conftest.
$ac_objext conftest
$ac_exeext
10713 if { (ac_try
="$ac_link"
10714 case "(($ac_try" in
10715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10716 *) ac_try_echo=$ac_try;;
10718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10719 (eval "$ac_link") 2>conftest.er1
10721 grep -v '^ *+' conftest.er1 >conftest.err
10723 cat conftest.err >&5
10724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725 (exit $ac_status); } && {
10726 test -z "$ac_c_werror_flag" ||
10727 test ! -s conftest.err
10728 } && test -s conftest$ac_exeext &&
10729 $as_test_x conftest$ac_exeext; then
10730 eval "$as_ac_var=yes"
10732 echo "$as_me: failed program was:" >&5
10733 sed 's/^/| /' conftest.$ac_ext >&5
10735 eval "$as_ac_var=no"
10738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10739 conftest$ac_exeext conftest.$ac_ext
10741 ac_res=`eval echo '${'$as_ac_var'}'`
10742 { echo "$as_me:$LINENO: result: $ac_res" >&5
10743 echo "${ECHO_T}$ac_res" >&6; }
10744 if test `eval echo '${'$as_ac_var'}'` = yes; then
10745 cat >>confdefs.h <<_ACEOF
10746 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10754 if test "${window_system}" = "x11"; then
10755 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10756 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10757 if test "${emacs_cv_x11_version_6+set}" = set; then
10758 echo $ECHO_N "(cached) $ECHO_C" >&6
10760 cat >conftest.$ac_ext <<_ACEOF
10763 cat confdefs.h >>conftest.$ac_ext
10764 cat >>conftest.$ac_ext <<_ACEOF
10765 /* end confdefs.h. */
10766 #include <X11/Xlib.h>
10770 #if XlibSpecificationRelease < 6
10778 rm -f conftest.$ac_objext conftest$ac_exeext
10779 if { (ac_try="$ac_link"
10780 case "(($ac_try" in
10781 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10782 *) ac_try_echo
=$ac_try;;
10784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10785 (eval "$ac_link") 2>conftest.er1
10787 grep -v '^ *+' conftest.er1
>conftest.err
10789 cat conftest.err
>&5
10790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791 (exit $ac_status); } && {
10792 test -z "$ac_c_werror_flag" ||
10793 test ! -s conftest.err
10794 } && test -s conftest
$ac_exeext &&
10795 $as_test_x conftest
$ac_exeext; then
10796 emacs_cv_x11_version_6
=yes
10798 echo "$as_me: failed program was:" >&5
10799 sed 's/^/| /' conftest.
$ac_ext >&5
10801 emacs_cv_x11_version_6
=no
10804 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10805 conftest
$ac_exeext conftest.
$ac_ext
10808 if test $emacs_cv_x11_version_6 = yes; then
10809 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10810 echo "${ECHO_T}6 or newer" >&6; }
10812 cat >>confdefs.h
<<\_ACEOF
10813 #define HAVE_X11R6 1
10817 { echo "$as_me:$LINENO: result: before 6" >&5
10818 echo "${ECHO_T}before 6" >&6; }
10822 if test "${window_system}" = "x11"; then
10823 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10824 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10825 if test "${emacs_cv_x11_version_5+set}" = set; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10828 cat >conftest.
$ac_ext <<_ACEOF
10831 cat confdefs.h
>>conftest.
$ac_ext
10832 cat >>conftest.
$ac_ext <<_ACEOF
10833 /* end confdefs.h. */
10834 #include <X11/Xlib.h>
10838 #if XlibSpecificationRelease < 5
10846 rm -f conftest.
$ac_objext conftest
$ac_exeext
10847 if { (ac_try
="$ac_link"
10848 case "(($ac_try" in
10849 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10850 *) ac_try_echo=$ac_try;;
10852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10853 (eval "$ac_link") 2>conftest.er1
10855 grep -v '^ *+' conftest.er1 >conftest.err
10857 cat conftest.err >&5
10858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10859 (exit $ac_status); } && {
10860 test -z "$ac_c_werror_flag" ||
10861 test ! -s conftest.err
10862 } && test -s conftest$ac_exeext &&
10863 $as_test_x conftest$ac_exeext; then
10864 emacs_cv_x11_version_5=yes
10866 echo "$as_me: failed program was:" >&5
10867 sed 's/^/| /' conftest.$ac_ext >&5
10869 emacs_cv_x11_version_5=no
10872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10873 conftest$ac_exeext conftest.$ac_ext
10876 if test $emacs_cv_x11_version_5 = yes; then
10877 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10878 echo "${ECHO_T}5 or newer" >&6; }
10881 cat >>confdefs.h <<\_ACEOF
10882 #define HAVE_X11R5 1
10887 { echo "$as_me:$LINENO: result: before 5" >&5
10888 echo "${ECHO_T}before 5" >&6; }
10893 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10896 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10897 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10898 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10899 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10900 { (exit 1); exit 1; }; };
10904 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10906 if test "X${with_pkg_config_prog}" != X; then
10907 PKG_CONFIG="${with_pkg_config_prog}"
10912 if test -z "$PKG_CONFIG"; then
10913 # Extract the first word of "pkg-config", so it can be a program name with args.
10914 set dummy pkg-config; ac_word=$2
10915 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10916 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10917 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10918 echo $ECHO_N "(cached) $ECHO_C" >&6
10920 case $PKG_CONFIG in
10922 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926 for as_dir in $PATH
10929 test -z "$as_dir" && as_dir=.
10930 for ac_exec_ext in '' $ac_executable_extensions; do
10931 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10932 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10940 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10944 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10945 if test -n "$PKG_CONFIG"; then
10946 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10947 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10949 { echo "$as_me:$LINENO: result: no" >&5
10950 echo "${ECHO_T}no" >&6; }
10956 if test "$PKG_CONFIG" = "no" ; then
10957 { { echo "$as_me:$LINENO: error:
10958 *** 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
10959 echo "$as_me: error:
10960 *** 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;}
10961 { (exit 1); exit 1; }; }
10963 PKG_CONFIG_MIN_VERSION=0.9.0
10964 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10965 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10966 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10968 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10969 { echo "$as_me:$LINENO: result: yes" >&5
10970 echo "${ECHO_T}yes" >&6; }
10973 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10974 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10975 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|
sed -e 's,///*,/,g'`
10976 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10977 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10979 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10980 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10981 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|
sed -e 's,///*,/,g'`
10982 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10983 echo "${ECHO_T}$GTK_LIBS" >&6; }
10985 { echo "$as_me:$LINENO: result: no" >&5
10986 echo "${ECHO_T}no" >&6; }
10989 ## If we have a custom action on failure, don't print errors, but
10990 ## do set a variable so people can do so.
10991 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10992 echo $GTK_PKG_ERRORS
10998 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10999 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11003 if test $succeeded = yes; then
11006 { { 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
11007 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;}
11008 { (exit 1); exit 1; }; }
11013 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11014 CFLAGS="$CFLAGS $GTK_CFLAGS"
11015 LIBS="$GTK_LIBS $LIBS"
11018 for ac_func in gtk_main
11020 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11024 echo $ECHO_N "(cached) $ECHO_C" >&6
11026 cat >conftest.$ac_ext <<_ACEOF
11029 cat confdefs.h >>conftest.$ac_ext
11030 cat >>conftest.$ac_ext <<_ACEOF
11031 /* end confdefs.h. */
11032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11034 #define $ac_func innocuous_$ac_func
11036 /* System header to define __stub macros and hopefully few prototypes,
11037 which can conflict with char $ac_func (); below.
11038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11039 <limits.h> exists even on freestanding compilers. */
11042 # include <limits.h>
11044 # include <assert.h>
11049 /* Override any GCC internal prototype to avoid an error.
11050 Use char because int might match the return type of a GCC
11051 builtin and then its argument prototype would still apply. */
11056 /* The GNU C library defines this for functions which it implements
11057 to always fail with ENOSYS. Some functions are actually named
11058 something starting with __ and the normal name is an alias. */
11059 #if defined __stub_$ac_func || defined __stub___$ac_func
11066 return $ac_func ();
11071 rm -f conftest.$ac_objext conftest$ac_exeext
11072 if { (ac_try="$ac_link"
11073 case "(($ac_try" in
11074 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11075 *) ac_try_echo
=$ac_try;;
11077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11078 (eval "$ac_link") 2>conftest.er1
11080 grep -v '^ *+' conftest.er1
>conftest.err
11082 cat conftest.err
>&5
11083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11084 (exit $ac_status); } && {
11085 test -z "$ac_c_werror_flag" ||
11086 test ! -s conftest.err
11087 } && test -s conftest
$ac_exeext &&
11088 $as_test_x conftest
$ac_exeext; then
11089 eval "$as_ac_var=yes"
11091 echo "$as_me: failed program was:" >&5
11092 sed 's/^/| /' conftest.
$ac_ext >&5
11094 eval "$as_ac_var=no"
11097 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11098 conftest
$ac_exeext conftest.
$ac_ext
11100 ac_res
=`eval echo '${'$as_ac_var'}'`
11101 { echo "$as_me:$LINENO: result: $ac_res" >&5
11102 echo "${ECHO_T}$ac_res" >&6; }
11103 if test `eval echo '${'$as_ac_var'}'` = yes; then
11104 cat >>confdefs.h
<<_ACEOF
11105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11111 if test "${GTK_COMPILES}" != "yes"; then
11112 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11113 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11114 { (exit 1); exit 1; }; };
11119 cat >>confdefs.h
<<\_ACEOF
11125 if test "$with_toolkit_scroll_bars" != no
; then
11126 with_toolkit_scroll_bars
=yes
11129 HAVE_GTK_MULTIDISPLAY
=no
11131 for ac_func
in gdk_display_open
11133 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11134 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11135 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11136 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11137 echo $ECHO_N "(cached) $ECHO_C" >&6
11139 cat >conftest.
$ac_ext <<_ACEOF
11142 cat confdefs.h
>>conftest.
$ac_ext
11143 cat >>conftest.
$ac_ext <<_ACEOF
11144 /* end confdefs.h. */
11145 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11146 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11147 #define $ac_func innocuous_$ac_func
11149 /* System header to define __stub macros and hopefully few prototypes,
11150 which can conflict with char $ac_func (); below.
11151 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11152 <limits.h> exists even on freestanding compilers. */
11155 # include <limits.h>
11157 # include <assert.h>
11162 /* Override any GCC internal prototype to avoid an error.
11163 Use char because int might match the return type of a GCC
11164 builtin and then its argument prototype would still apply. */
11169 /* The GNU C library defines this for functions which it implements
11170 to always fail with ENOSYS. Some functions are actually named
11171 something starting with __ and the normal name is an alias. */
11172 #if defined __stub_$ac_func || defined __stub___$ac_func
11179 return $ac_func ();
11184 rm -f conftest.
$ac_objext conftest
$ac_exeext
11185 if { (ac_try
="$ac_link"
11186 case "(($ac_try" in
11187 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11188 *) ac_try_echo=$ac_try;;
11190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11191 (eval "$ac_link") 2>conftest.er1
11193 grep -v '^ *+' conftest.er1 >conftest.err
11195 cat conftest.err >&5
11196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11197 (exit $ac_status); } && {
11198 test -z "$ac_c_werror_flag" ||
11199 test ! -s conftest.err
11200 } && test -s conftest$ac_exeext &&
11201 $as_test_x conftest$ac_exeext; then
11202 eval "$as_ac_var=yes"
11204 echo "$as_me: failed program was:" >&5
11205 sed 's/^/| /' conftest.$ac_ext >&5
11207 eval "$as_ac_var=no"
11210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11211 conftest$ac_exeext conftest.$ac_ext
11213 ac_res=`eval echo '${'$as_ac_var'}'`
11214 { echo "$as_me:$LINENO: result: $ac_res" >&5
11215 echo "${ECHO_T}$ac_res" >&6; }
11216 if test `eval echo '${'$as_ac_var'}'` = yes; then
11217 cat >>confdefs.h <<_ACEOF
11218 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11220 HAVE_GTK_MULTIDISPLAY=yes
11224 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11226 cat >>confdefs.h <<\_ACEOF
11227 #define HAVE_GTK_MULTIDISPLAY 1
11231 HAVE_GTK_FILE_SELECTION=no
11233 for ac_func in gtk_file_selection_new
11235 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11236 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11237 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11238 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11239 echo $ECHO_N "(cached) $ECHO_C" >&6
11241 cat >conftest.$ac_ext <<_ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11249 #define $ac_func innocuous_$ac_func
11251 /* System header to define __stub macros and hopefully few prototypes,
11252 which can conflict with char $ac_func (); below.
11253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11254 <limits.h> exists even on freestanding compilers. */
11257 # include <limits.h>
11259 # include <assert.h>
11264 /* Override any GCC internal prototype to avoid an error.
11265 Use char because int might match the return type of a GCC
11266 builtin and then its argument prototype would still apply. */
11271 /* The GNU C library defines this for functions which it implements
11272 to always fail with ENOSYS. Some functions are actually named
11273 something starting with __ and the normal name is an alias. */
11274 #if defined __stub_$ac_func || defined __stub___$ac_func
11281 return $ac_func ();
11286 rm -f conftest.$ac_objext conftest$ac_exeext
11287 if { (ac_try="$ac_link"
11288 case "(($ac_try" in
11289 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11290 *) ac_try_echo
=$ac_try;;
11292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11293 (eval "$ac_link") 2>conftest.er1
11295 grep -v '^ *+' conftest.er1
>conftest.err
11297 cat conftest.err
>&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } && {
11300 test -z "$ac_c_werror_flag" ||
11301 test ! -s conftest.err
11302 } && test -s conftest
$ac_exeext &&
11303 $as_test_x conftest
$ac_exeext; then
11304 eval "$as_ac_var=yes"
11306 echo "$as_me: failed program was:" >&5
11307 sed 's/^/| /' conftest.
$ac_ext >&5
11309 eval "$as_ac_var=no"
11312 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11313 conftest
$ac_exeext conftest.
$ac_ext
11315 ac_res
=`eval echo '${'$as_ac_var'}'`
11316 { echo "$as_me:$LINENO: result: $ac_res" >&5
11317 echo "${ECHO_T}$ac_res" >&6; }
11318 if test `eval echo '${'$as_ac_var'}'` = yes; then
11319 cat >>confdefs.h
<<_ACEOF
11320 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11322 HAVE_GTK_FILE_SELECTION
=yes
11327 HAVE_GTK_FILE_CHOOSER
=no
11329 for ac_func
in gtk_file_chooser_dialog_new
11331 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11332 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11333 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11334 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11335 echo $ECHO_N "(cached) $ECHO_C" >&6
11337 cat >conftest.
$ac_ext <<_ACEOF
11340 cat confdefs.h
>>conftest.
$ac_ext
11341 cat >>conftest.
$ac_ext <<_ACEOF
11342 /* end confdefs.h. */
11343 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11344 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11345 #define $ac_func innocuous_$ac_func
11347 /* System header to define __stub macros and hopefully few prototypes,
11348 which can conflict with char $ac_func (); below.
11349 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11350 <limits.h> exists even on freestanding compilers. */
11353 # include <limits.h>
11355 # include <assert.h>
11360 /* Override any GCC internal prototype to avoid an error.
11361 Use char because int might match the return type of a GCC
11362 builtin and then its argument prototype would still apply. */
11367 /* The GNU C library defines this for functions which it implements
11368 to always fail with ENOSYS. Some functions are actually named
11369 something starting with __ and the normal name is an alias. */
11370 #if defined __stub_$ac_func || defined __stub___$ac_func
11377 return $ac_func ();
11382 rm -f conftest.
$ac_objext conftest
$ac_exeext
11383 if { (ac_try
="$ac_link"
11384 case "(($ac_try" in
11385 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11386 *) ac_try_echo=$ac_try;;
11388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11389 (eval "$ac_link") 2>conftest.er1
11391 grep -v '^ *+' conftest.er1 >conftest.err
11393 cat conftest.err >&5
11394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11395 (exit $ac_status); } && {
11396 test -z "$ac_c_werror_flag" ||
11397 test ! -s conftest.err
11398 } && test -s conftest$ac_exeext &&
11399 $as_test_x conftest$ac_exeext; then
11400 eval "$as_ac_var=yes"
11402 echo "$as_me: failed program was:" >&5
11403 sed 's/^/| /' conftest.$ac_ext >&5
11405 eval "$as_ac_var=no"
11408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11409 conftest$ac_exeext conftest.$ac_ext
11411 ac_res=`eval echo '${'$as_ac_var'}'`
11412 { echo "$as_me:$LINENO: result: $ac_res" >&5
11413 echo "${ECHO_T}$ac_res" >&6; }
11414 if test `eval echo '${'$as_ac_var'}'` = yes; then
11415 cat >>confdefs.h <<_ACEOF
11416 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11418 HAVE_GTK_FILE_CHOOSER=yes
11423 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11424 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11426 cat >>confdefs.h <<\_ACEOF
11427 #define HAVE_GTK_FILE_BOTH 1
11432 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11433 HAVE_GTK_AND_PTHREAD=no
11435 for ac_header in pthread.h
11437 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11442 echo $ECHO_N "(cached) $ECHO_C" >&6
11444 ac_res=`eval echo '${'$as_ac_Header'}'`
11445 { echo "$as_me:$LINENO: result: $ac_res" >&5
11446 echo "${ECHO_T}$ac_res" >&6; }
11448 # Is the header compilable?
11449 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11451 cat >conftest.$ac_ext <<_ACEOF
11454 cat confdefs.h >>conftest.$ac_ext
11455 cat >>conftest.$ac_ext <<_ACEOF
11456 /* end confdefs.h. */
11457 $ac_includes_default
11458 #include <$ac_header>
11460 rm -f conftest.$ac_objext
11461 if { (ac_try="$ac_compile"
11462 case "(($ac_try" in
11463 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11464 *) ac_try_echo
=$ac_try;;
11466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11467 (eval "$ac_compile") 2>conftest.er1
11469 grep -v '^ *+' conftest.er1
>conftest.err
11471 cat conftest.err
>&5
11472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11473 (exit $ac_status); } && {
11474 test -z "$ac_c_werror_flag" ||
11475 test ! -s conftest.err
11476 } && test -s conftest.
$ac_objext; then
11477 ac_header_compiler
=yes
11479 echo "$as_me: failed program was:" >&5
11480 sed 's/^/| /' conftest.
$ac_ext >&5
11482 ac_header_compiler
=no
11485 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11487 echo "${ECHO_T}$ac_header_compiler" >&6; }
11489 # Is the header present?
11490 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11492 cat >conftest.
$ac_ext <<_ACEOF
11495 cat confdefs.h
>>conftest.
$ac_ext
11496 cat >>conftest.
$ac_ext <<_ACEOF
11497 /* end confdefs.h. */
11498 #include <$ac_header>
11500 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11501 case "(($ac_try" in
11502 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11503 *) ac_try_echo=$ac_try;;
11505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11506 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11508 grep -v '^ *+' conftest.er1 >conftest.err
11510 cat conftest.err >&5
11511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11512 (exit $ac_status); } >/dev/null && {
11513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11514 test ! -s conftest.err
11516 ac_header_preproc=yes
11518 echo "$as_me: failed program was:" >&5
11519 sed 's/^/| /' conftest.$ac_ext >&5
11521 ac_header_preproc=no
11524 rm -f conftest.err conftest.$ac_ext
11525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11526 echo "${ECHO_T}$ac_header_preproc" >&6; }
11528 # So? What about this header?
11529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11535 ac_header_preproc=yes
11538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11545 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11556 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 eval "$as_ac_Header=\$ac_header_preproc"
11560 ac_res=`eval echo '${'$as_ac_Header'}'`
11561 { echo "$as_me:$LINENO: result: $ac_res" >&5
11562 echo "${ECHO_T}$ac_res" >&6; }
11565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11566 cat >>confdefs.h <<_ACEOF
11567 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11574 if test "$ac_cv_header_pthread_h"; then
11575 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11576 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11577 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11578 echo $ECHO_N "(cached) $ECHO_C" >&6
11580 ac_check_lib_save_LIBS=$LIBS
11581 LIBS="-lpthread $LIBS"
11582 cat >conftest.$ac_ext <<_ACEOF
11585 cat confdefs.h >>conftest.$ac_ext
11586 cat >>conftest.$ac_ext <<_ACEOF
11587 /* end confdefs.h. */
11589 /* Override any GCC internal prototype to avoid an error.
11590 Use char because int might match the return type of a GCC
11591 builtin and then its argument prototype would still apply. */
11595 char pthread_self ();
11599 return pthread_self ();
11604 rm -f conftest.$ac_objext conftest$ac_exeext
11605 if { (ac_try="$ac_link"
11606 case "(($ac_try" in
11607 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11608 *) ac_try_echo
=$ac_try;;
11610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11611 (eval "$ac_link") 2>conftest.er1
11613 grep -v '^ *+' conftest.er1
>conftest.err
11615 cat conftest.err
>&5
11616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11617 (exit $ac_status); } && {
11618 test -z "$ac_c_werror_flag" ||
11619 test ! -s conftest.err
11620 } && test -s conftest
$ac_exeext &&
11621 $as_test_x conftest
$ac_exeext; then
11622 ac_cv_lib_pthread_pthread_self
=yes
11624 echo "$as_me: failed program was:" >&5
11625 sed 's/^/| /' conftest.
$ac_ext >&5
11627 ac_cv_lib_pthread_pthread_self
=no
11630 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11631 conftest
$ac_exeext conftest.
$ac_ext
11632 LIBS
=$ac_check_lib_save_LIBS
11634 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11635 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11636 if test $ac_cv_lib_pthread_pthread_self = yes; then
11637 HAVE_GTK_AND_PTHREAD
=yes
11641 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11642 GTK_LIBS
="$GTK_LIBS -lpthread"
11644 cat >>confdefs.h
<<\_ACEOF
11645 #define HAVE_GTK_AND_PTHREAD 1
11652 ### Link with -lXft if available to work around a bug.
11654 if test "${HAVE_GTK}" = "yes"; then
11655 if test "X${with_pkg_config_prog}" != X
; then
11656 PKG_CONFIG
="${with_pkg_config_prog}"
11662 if test -z "$PKG_CONFIG"; then
11663 # Extract the first word of "pkg-config", so it can be a program name with args.
11664 set dummy pkg-config
; ac_word
=$2
11665 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11666 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11667 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11668 echo $ECHO_N "(cached) $ECHO_C" >&6
11670 case $PKG_CONFIG in
11672 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
11675 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11676 for as_dir
in $PATH
11679 test -z "$as_dir" && as_dir
=.
11680 for ac_exec_ext
in '' $ac_executable_extensions; do
11681 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11682 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
11683 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11690 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
11694 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
11695 if test -n "$PKG_CONFIG"; then
11696 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11697 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11699 { echo "$as_me:$LINENO: result: no" >&5
11700 echo "${ECHO_T}no" >&6; }
11706 if test "$PKG_CONFIG" = "no" ; then
11709 PKG_CONFIG_MIN_VERSION
=0.9.0
11710 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11711 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11712 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11714 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11715 { echo "$as_me:$LINENO: result: yes" >&5
11716 echo "${ECHO_T}yes" >&6; }
11719 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11720 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11721 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11722 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11723 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11725 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11726 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11727 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11728 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11729 echo "${ECHO_T}$XFT_LIBS" >&6; }
11731 { echo "$as_me:$LINENO: result: no" >&5
11732 echo "${ECHO_T}no" >&6; }
11735 ## If we have a custom action on failure, don't print errors, but
11736 ## do set a variable so people can do so.
11737 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11744 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11745 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11749 if test $succeeded = yes; then
11755 if test "$HAVE_XFT" != no
; then
11756 OLD_CFLAGS
="$CPPFLAGS"
11757 OLD_CPPFLAGS
="$CFLAGS"
11759 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
11760 CFLAGS
="$CFLAGS $XFT_CFLAGS"
11761 LIBS
="$XFT_LIBS $LIBS"
11762 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11763 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11764 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11765 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11768 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11769 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11771 # Is the header compilable?
11772 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11773 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11774 cat >conftest.
$ac_ext <<_ACEOF
11777 cat confdefs.h
>>conftest.
$ac_ext
11778 cat >>conftest.
$ac_ext <<_ACEOF
11779 /* end confdefs.h. */
11780 $ac_includes_default
11781 #include <X11/Xft/Xft.h>
11783 rm -f conftest.
$ac_objext
11784 if { (ac_try
="$ac_compile"
11785 case "(($ac_try" in
11786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11787 *) ac_try_echo=$ac_try;;
11789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11790 (eval "$ac_compile") 2>conftest.er1
11792 grep -v '^ *+' conftest.er1 >conftest.err
11794 cat conftest.err >&5
11795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11796 (exit $ac_status); } && {
11797 test -z "$ac_c_werror_flag" ||
11798 test ! -s conftest.err
11799 } && test -s conftest.$ac_objext; then
11800 ac_header_compiler=yes
11802 echo "$as_me: failed program was:" >&5
11803 sed 's/^/| /' conftest.$ac_ext >&5
11805 ac_header_compiler=no
11808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11809 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11810 echo "${ECHO_T}$ac_header_compiler" >&6; }
11812 # Is the header present?
11813 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11814 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11815 cat >conftest.$ac_ext <<_ACEOF
11818 cat confdefs.h >>conftest.$ac_ext
11819 cat >>conftest.$ac_ext <<_ACEOF
11820 /* end confdefs.h. */
11821 #include <X11/Xft/Xft.h>
11823 if { (ac_try="$ac_cpp conftest.$ac_ext"
11824 case "(($ac_try" in
11825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11826 *) ac_try_echo
=$ac_try;;
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11831 grep -v '^ *+' conftest.er1
>conftest.err
11833 cat conftest.err
>&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } >/dev
/null
&& {
11836 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11837 test ! -s conftest.err
11839 ac_header_preproc
=yes
11841 echo "$as_me: failed program was:" >&5
11842 sed 's/^/| /' conftest.
$ac_ext >&5
11844 ac_header_preproc
=no
11847 rm -f conftest.err conftest.
$ac_ext
11848 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11849 echo "${ECHO_T}$ac_header_preproc" >&6; }
11851 # So? What about this header?
11852 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11854 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11855 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11857 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11858 ac_header_preproc
=yes
11861 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11862 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11864 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11866 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11867 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11868 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11869 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11870 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11871 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11872 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11876 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11877 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11878 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11879 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
11883 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11884 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11887 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11888 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11889 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11890 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11891 echo $ECHO_N "(cached) $ECHO_C" >&6
11893 ac_check_lib_save_LIBS
=$LIBS
11894 LIBS
="-lXft $XFT_LIBS $LIBS"
11895 cat >conftest.
$ac_ext <<_ACEOF
11898 cat confdefs.h
>>conftest.
$ac_ext
11899 cat >>conftest.
$ac_ext <<_ACEOF
11900 /* end confdefs.h. */
11902 /* Override any GCC internal prototype to avoid an error.
11903 Use char because int might match the return type of a GCC
11904 builtin and then its argument prototype would still apply. */
11908 char XftFontOpen ();
11912 return XftFontOpen ();
11917 rm -f conftest.
$ac_objext conftest
$ac_exeext
11918 if { (ac_try
="$ac_link"
11919 case "(($ac_try" in
11920 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11921 *) ac_try_echo=$ac_try;;
11923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11924 (eval "$ac_link") 2>conftest.er1
11926 grep -v '^ *+' conftest.er1 >conftest.err
11928 cat conftest.err >&5
11929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11930 (exit $ac_status); } && {
11931 test -z "$ac_c_werror_flag" ||
11932 test ! -s conftest.err
11933 } && test -s conftest$ac_exeext &&
11934 $as_test_x conftest$ac_exeext; then
11935 ac_cv_lib_Xft_XftFontOpen=yes
11937 echo "$as_me: failed program was:" >&5
11938 sed 's/^/| /' conftest.$ac_ext >&5
11940 ac_cv_lib_Xft_XftFontOpen=no
11943 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11944 conftest$ac_exeext conftest.$ac_ext
11945 LIBS=$ac_check_lib_save_LIBS
11947 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11948 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11949 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11957 if test "${HAVE_XFT}" = "yes"; then
11959 cat >>confdefs.h <<\_ACEOF
11964 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11966 CFLAGS="$OLD_CPPFLAGS"
11967 CFLAGS="$OLD_CFLAGS"
11973 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11974 if test x"${HAVE_X11R5}" = xyes; then
11975 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11976 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11977 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11978 echo $ECHO_N "(cached) $ECHO_C" >&6
11980 cat >conftest.$ac_ext <<_ACEOF
11983 cat confdefs.h >>conftest.$ac_ext
11984 cat >>conftest.$ac_ext <<_ACEOF
11985 /* end confdefs.h. */
11987 #include <X11/Intrinsic.h>
11988 #include <X11/Xaw/Simple.h>
11997 rm -f conftest.$ac_objext conftest$ac_exeext
11998 if { (ac_try="$ac_link"
11999 case "(($ac_try" in
12000 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12001 *) ac_try_echo
=$ac_try;;
12003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12004 (eval "$ac_link") 2>conftest.er1
12006 grep -v '^ *+' conftest.er1
>conftest.err
12008 cat conftest.err
>&5
12009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010 (exit $ac_status); } && {
12011 test -z "$ac_c_werror_flag" ||
12012 test ! -s conftest.err
12013 } && test -s conftest
$ac_exeext &&
12014 $as_test_x conftest
$ac_exeext; then
12015 emacs_cv_x11_version_5_with_xaw
=yes
12017 echo "$as_me: failed program was:" >&5
12018 sed 's/^/| /' conftest.
$ac_ext >&5
12020 emacs_cv_x11_version_5_with_xaw
=no
12023 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12024 conftest
$ac_exeext conftest.
$ac_ext
12027 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12028 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12029 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12030 USE_X_TOOLKIT
=LUCID
12032 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12033 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12041 X_TOOLKIT_TYPE
=$USE_X_TOOLKIT
12043 if test "${USE_X_TOOLKIT}" != "none"; then
12044 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12045 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12046 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12049 cat >conftest.
$ac_ext <<_ACEOF
12052 cat confdefs.h
>>conftest.
$ac_ext
12053 cat >>conftest.
$ac_ext <<_ACEOF
12054 /* end confdefs.h. */
12055 #include <X11/Intrinsic.h>
12059 #if XtSpecificationRelease < 6
12067 rm -f conftest.
$ac_objext conftest
$ac_exeext
12068 if { (ac_try
="$ac_link"
12069 case "(($ac_try" in
12070 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12071 *) ac_try_echo=$ac_try;;
12073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12074 (eval "$ac_link") 2>conftest.er1
12076 grep -v '^ *+' conftest.er1 >conftest.err
12078 cat conftest.err >&5
12079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12080 (exit $ac_status); } && {
12081 test -z "$ac_c_werror_flag" ||
12082 test ! -s conftest.err
12083 } && test -s conftest$ac_exeext &&
12084 $as_test_x conftest$ac_exeext; then
12085 emacs_cv_x11_toolkit_version_6=yes
12087 echo "$as_me: failed program was:" >&5
12088 sed 's/^/| /' conftest.$ac_ext >&5
12090 emacs_cv_x11_toolkit_version_6=no
12093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12094 conftest$ac_exeext conftest.$ac_ext
12097 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12098 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12099 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12100 echo "${ECHO_T}6 or newer" >&6; }
12102 cat >>confdefs.h <<\_ACEOF
12103 #define HAVE_X11XTR6 1
12107 { echo "$as_me:$LINENO: result: before 6" >&5
12108 echo "${ECHO_T}before 6" >&6; }
12112 if test x$HAVE_X11XTR6 = xyes; then
12113 LIBS="-lXt -lSM -lICE $LIBS"
12118 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12119 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12120 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12121 echo $ECHO_N "(cached) $ECHO_C" >&6
12123 ac_check_lib_save_LIBS=$LIBS
12125 cat >conftest.$ac_ext <<_ACEOF
12128 cat confdefs.h >>conftest.$ac_ext
12129 cat >>conftest.$ac_ext <<_ACEOF
12130 /* end confdefs.h. */
12132 /* Override any GCC internal prototype to avoid an error.
12133 Use char because int might match the return type of a GCC
12134 builtin and then its argument prototype would still apply. */
12138 char XmuConvertStandardSelection ();
12142 return XmuConvertStandardSelection ();
12147 rm -f conftest.$ac_objext conftest$ac_exeext
12148 if { (ac_try="$ac_link"
12149 case "(($ac_try" in
12150 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12151 *) ac_try_echo
=$ac_try;;
12153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12154 (eval "$ac_link") 2>conftest.er1
12156 grep -v '^ *+' conftest.er1
>conftest.err
12158 cat conftest.err
>&5
12159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12160 (exit $ac_status); } && {
12161 test -z "$ac_c_werror_flag" ||
12162 test ! -s conftest.err
12163 } && test -s conftest
$ac_exeext &&
12164 $as_test_x conftest
$ac_exeext; then
12165 ac_cv_lib_Xmu_XmuConvertStandardSelection
=yes
12167 echo "$as_me: failed program was:" >&5
12168 sed 's/^/| /' conftest.
$ac_ext >&5
12170 ac_cv_lib_Xmu_XmuConvertStandardSelection
=no
12173 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12174 conftest
$ac_exeext conftest.
$ac_ext
12175 LIBS
=$ac_check_lib_save_LIBS
12177 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12178 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12179 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12180 cat >>confdefs.h
<<_ACEOF
12181 #define HAVE_LIBXMU 1
12188 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no
&& LIBS
="$OLDLIBS"
12191 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12192 if test "${HAVE_X11}" = "yes"; then
12193 if test "${USE_X_TOOLKIT}" != "none"; then
12195 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12196 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12197 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12198 echo $ECHO_N "(cached) $ECHO_C" >&6
12200 ac_check_lib_save_LIBS
=$LIBS
12201 LIBS
="-lXext $LIBS"
12202 cat >conftest.
$ac_ext <<_ACEOF
12205 cat confdefs.h
>>conftest.
$ac_ext
12206 cat >>conftest.
$ac_ext <<_ACEOF
12207 /* end confdefs.h. */
12209 /* Override any GCC internal prototype to avoid an error.
12210 Use char because int might match the return type of a GCC
12211 builtin and then its argument prototype would still apply. */
12215 char XShapeQueryExtension ();
12219 return XShapeQueryExtension ();
12224 rm -f conftest.
$ac_objext conftest
$ac_exeext
12225 if { (ac_try
="$ac_link"
12226 case "(($ac_try" in
12227 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12228 *) ac_try_echo=$ac_try;;
12230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12231 (eval "$ac_link") 2>conftest.er1
12233 grep -v '^ *+' conftest.er1 >conftest.err
12235 cat conftest.err >&5
12236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12237 (exit $ac_status); } && {
12238 test -z "$ac_c_werror_flag" ||
12239 test ! -s conftest.err
12240 } && test -s conftest$ac_exeext &&
12241 $as_test_x conftest$ac_exeext; then
12242 ac_cv_lib_Xext_XShapeQueryExtension=yes
12244 echo "$as_me: failed program was:" >&5
12245 sed 's/^/| /' conftest.$ac_ext >&5
12247 ac_cv_lib_Xext_XShapeQueryExtension=no
12250 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12251 conftest$ac_exeext conftest.$ac_ext
12252 LIBS=$ac_check_lib_save_LIBS
12254 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12255 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12256 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12257 cat >>confdefs.h <<_ACEOF
12258 #define HAVE_LIBXEXT 1
12261 LIBS="-lXext $LIBS"
12268 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12269 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12270 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12271 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12272 echo $ECHO_N "(cached) $ECHO_C" >&6
12274 cat >conftest.$ac_ext <<_ACEOF
12277 cat confdefs.h >>conftest.$ac_ext
12278 cat >>conftest.$ac_ext <<_ACEOF
12279 /* end confdefs.h. */
12284 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12287 Motif version prior to 2.1.
12293 rm -f conftest.$ac_objext
12294 if { (ac_try="$ac_compile"
12295 case "(($ac_try" in
12296 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12297 *) ac_try_echo
=$ac_try;;
12299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12300 (eval "$ac_compile") 2>conftest.er1
12302 grep -v '^ *+' conftest.er1
>conftest.err
12304 cat conftest.err
>&5
12305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12306 (exit $ac_status); } && {
12307 test -z "$ac_c_werror_flag" ||
12308 test ! -s conftest.err
12309 } && test -s conftest.
$ac_objext; then
12310 emacs_cv_motif_version_2_1
=yes
12312 echo "$as_me: failed program was:" >&5
12313 sed 's/^/| /' conftest.
$ac_ext >&5
12315 emacs_cv_motif_version_2_1
=no
12318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12320 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12321 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12322 HAVE_MOTIF_2_1
=$emacs_cv_motif_version_2_1
12323 if test $emacs_cv_motif_version_2_1 = yes; then
12326 cat >>confdefs.h
<<\_ACEOF
12327 #define HAVE_MOTIF_2_1 1
12330 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12331 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12332 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12333 echo $ECHO_N "(cached) $ECHO_C" >&6
12335 ac_check_lib_save_LIBS
=$LIBS
12337 cat >conftest.
$ac_ext <<_ACEOF
12340 cat confdefs.h
>>conftest.
$ac_ext
12341 cat >>conftest.
$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12344 /* Override any GCC internal prototype to avoid an error.
12345 Use char because int might match the return type of a GCC
12346 builtin and then its argument prototype would still apply. */
12350 char XpCreateContext ();
12354 return XpCreateContext ();
12359 rm -f conftest.
$ac_objext conftest
$ac_exeext
12360 if { (ac_try
="$ac_link"
12361 case "(($ac_try" in
12362 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12363 *) ac_try_echo=$ac_try;;
12365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12366 (eval "$ac_link") 2>conftest.er1
12368 grep -v '^ *+' conftest.er1 >conftest.err
12370 cat conftest.err >&5
12371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12372 (exit $ac_status); } && {
12373 test -z "$ac_c_werror_flag" ||
12374 test ! -s conftest.err
12375 } && test -s conftest$ac_exeext &&
12376 $as_test_x conftest$ac_exeext; then
12377 ac_cv_lib_Xp_XpCreateContext=yes
12379 echo "$as_me: failed program was:" >&5
12380 sed 's/^/| /' conftest.$ac_ext >&5
12382 ac_cv_lib_Xp_XpCreateContext=no
12385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12386 conftest$ac_exeext conftest.$ac_ext
12387 LIBS=$ac_check_lib_save_LIBS
12389 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12390 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12391 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12395 if test ${HAVE_LIBXP} = yes; then
12397 cat >>confdefs.h <<\_ACEOF
12398 #define HAVE_LIBXP 1
12403 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12404 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12405 if test "${emacs_cv_lesstif+set}" = set; then
12406 echo $ECHO_N "(cached) $ECHO_C" >&6
12408 # We put this in CFLAGS temporarily to precede other -I options
12409 # that might be in CFLAGS temporarily.
12410 # We put this in CPPFLAGS where it precedes the other -I options.
12411 OLD_CPPFLAGS=$CPPFLAGS
12413 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12414 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12415 cat >conftest.$ac_ext <<_ACEOF
12418 cat confdefs.h >>conftest.$ac_ext
12419 cat >>conftest.$ac_ext <<_ACEOF
12420 /* end confdefs.h. */
12421 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12430 rm -f conftest.$ac_objext
12431 if { (ac_try="$ac_compile"
12432 case "(($ac_try" in
12433 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12434 *) ac_try_echo
=$ac_try;;
12436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12437 (eval "$ac_compile") 2>conftest.er1
12439 grep -v '^ *+' conftest.er1
>conftest.err
12441 cat conftest.err
>&5
12442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12443 (exit $ac_status); } && {
12444 test -z "$ac_c_werror_flag" ||
12445 test ! -s conftest.err
12446 } && test -s conftest.
$ac_objext; then
12447 emacs_cv_lesstif
=yes
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.
$ac_ext >&5
12452 emacs_cv_lesstif
=no
12455 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12457 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12458 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12459 if test $emacs_cv_lesstif = yes; then
12460 # Make sure this -I option remains in CPPFLAGS after it is set
12461 # back to REAL_CPPFLAGS.
12462 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12463 # have those other -I options anyway. Ultimately, having this
12464 # directory ultimately in CPPFLAGS will be enough.
12465 REAL_CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12466 LDFLAGS
="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12469 CPPFLAGS
=$OLD_CPPFLAGS
12474 ### Is -lXaw3d available?
12476 if test "${HAVE_X11}" = "yes"; then
12477 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12478 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12479 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12480 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12481 echo $ECHO_N "(cached) $ECHO_C" >&6
12483 cat >conftest.
$ac_ext <<_ACEOF
12486 cat confdefs.h
>>conftest.
$ac_ext
12487 cat >>conftest.
$ac_ext <<_ACEOF
12488 /* end confdefs.h. */
12489 #include <X11/Xaw3d/Scrollbar.h>
12491 if { (ac_try
="$ac_cpp conftest.$ac_ext"
12492 case "(($ac_try" in
12493 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12494 *) ac_try_echo=$ac_try;;
12496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12497 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12499 grep -v '^ *+' conftest.er1 >conftest.err
12501 cat conftest.err >&5
12502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12503 (exit $ac_status); } >/dev/null && {
12504 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12505 test ! -s conftest.err
12507 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12509 echo "$as_me: failed program was:" >&5
12510 sed 's/^/| /' conftest.$ac_ext >&5
12512 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12515 rm -f conftest.err conftest.$ac_ext
12517 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12518 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12519 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12520 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12521 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12522 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12523 echo $ECHO_N "(cached) $ECHO_C" >&6
12525 ac_check_lib_save_LIBS=$LIBS
12526 LIBS="-lXaw3d $LIBS"
12527 cat >conftest.$ac_ext <<_ACEOF
12530 cat confdefs.h >>conftest.$ac_ext
12531 cat >>conftest.$ac_ext <<_ACEOF
12532 /* end confdefs.h. */
12534 /* Override any GCC internal prototype to avoid an error.
12535 Use char because int might match the return type of a GCC
12536 builtin and then its argument prototype would still apply. */
12540 char XawScrollbarSetThumb ();
12544 return XawScrollbarSetThumb ();
12549 rm -f conftest.$ac_objext conftest$ac_exeext
12550 if { (ac_try="$ac_link"
12551 case "(($ac_try" in
12552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12553 *) ac_try_echo
=$ac_try;;
12555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12556 (eval "$ac_link") 2>conftest.er1
12558 grep -v '^ *+' conftest.er1
>conftest.err
12560 cat conftest.err
>&5
12561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12562 (exit $ac_status); } && {
12563 test -z "$ac_c_werror_flag" ||
12564 test ! -s conftest.err
12565 } && test -s conftest
$ac_exeext &&
12566 $as_test_x conftest
$ac_exeext; then
12567 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=yes
12569 echo "$as_me: failed program was:" >&5
12570 sed 's/^/| /' conftest.
$ac_ext >&5
12572 ac_cv_lib_Xaw3d_XawScrollbarSetThumb
=no
12575 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12576 conftest
$ac_exeext conftest.
$ac_ext
12577 LIBS
=$ac_check_lib_save_LIBS
12579 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12580 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12581 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12588 if test "${HAVE_XAW3D}" = "yes"; then
12590 cat >>confdefs.h
<<\_ACEOF
12591 #define HAVE_XAW3D 1
12600 USE_TOOLKIT_SCROLL_BARS
=no
12601 if test "${with_toolkit_scroll_bars}" != "no"; then
12602 if test "${USE_X_TOOLKIT}" != "none"; then
12603 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12604 cat >>confdefs.h
<<\_ACEOF
12605 #define USE_TOOLKIT_SCROLL_BARS 1
12609 USE_TOOLKIT_SCROLL_BARS
=yes
12610 elif test "${HAVE_XAW3D}" = "yes"; then
12611 cat >>confdefs.h
<<\_ACEOF
12612 #define USE_TOOLKIT_SCROLL_BARS 1
12615 USE_TOOLKIT_SCROLL_BARS
=yes
12617 elif test "${HAVE_GTK}" = "yes"; then
12618 cat >>confdefs.h
<<\_ACEOF
12619 #define USE_TOOLKIT_SCROLL_BARS 1
12622 USE_TOOLKIT_SCROLL_BARS
=yes
12623 elif test "${HAVE_CARBON}" = "yes"; then
12624 cat >>confdefs.h
<<\_ACEOF
12625 #define USE_TOOLKIT_SCROLL_BARS 1
12628 USE_TOOLKIT_SCROLL_BARS
=yes
12632 cat >conftest.
$ac_ext <<_ACEOF
12635 cat confdefs.h
>>conftest.
$ac_ext
12636 cat >>conftest.
$ac_ext <<_ACEOF
12637 /* end confdefs.h. */
12639 #include <X11/Xlib.h>
12640 #include <X11/Xresource.h>
12649 rm -f conftest.
$ac_objext
12650 if { (ac_try
="$ac_compile"
12651 case "(($ac_try" in
12652 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12653 *) ac_try_echo=$ac_try;;
12655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12656 (eval "$ac_compile") 2>conftest.er1
12658 grep -v '^ *+' conftest.er1 >conftest.err
12660 cat conftest.err >&5
12661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12662 (exit $ac_status); } && {
12663 test -z "$ac_c_werror_flag" ||
12664 test ! -s conftest.err
12665 } && test -s conftest.$ac_objext; then
12668 cat >>confdefs.h <<\_ACEOF
12673 echo "$as_me: failed program was:" >&5
12674 sed 's/^/| /' conftest.$ac_ext >&5
12679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12682 if test "${with_xim}" != "no"; then
12684 cat >>confdefs.h <<\_ACEOF
12691 if test "${HAVE_XIM}" != "no"; then
12692 late_CFLAGS=$CFLAGS
12693 if test "$GCC" = yes; then
12694 CFLAGS="$CFLAGS --pedantic-errors"
12696 cat >conftest.$ac_ext <<_ACEOF
12699 cat confdefs.h >>conftest.$ac_ext
12700 cat >>conftest.$ac_ext <<_ACEOF
12701 /* end confdefs.h. */
12703 #include <X11/Xlib.h>
12704 #include <X11/Xresource.h>
12713 XPointer *client_data;
12715 /* If we're not using GCC, it's probably not XFree86, and this is
12716 probably right, but we can't use something like --pedantic-errors. */
12717 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12718 char*, XIMProc, XPointer*);
12720 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12726 rm -f conftest.$ac_objext
12727 if { (ac_try="$ac_compile"
12728 case "(($ac_try" in
12729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12730 *) ac_try_echo
=$ac_try;;
12732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12733 (eval "$ac_compile") 2>conftest.er1
12735 grep -v '^ *+' conftest.er1
>conftest.err
12737 cat conftest.err
>&5
12738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12739 (exit $ac_status); } && {
12740 test -z "$ac_c_werror_flag" ||
12741 test ! -s conftest.err
12742 } && test -s conftest.
$ac_objext; then
12743 emacs_cv_arg6_star
=yes
12745 echo "$as_me: failed program was:" >&5
12746 sed 's/^/| /' conftest.
$ac_ext >&5
12751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12753 if test "$emacs_cv_arg6_star" = yes; then
12754 cat >>confdefs.h
<<\_ACEOF
12755 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12759 cat >>confdefs.h
<<\_ACEOF
12760 #define XRegisterIMInstantiateCallback_arg6 XPointer
12764 CFLAGS
=$late_CFLAGS
12767 ### Use -lXpm if available, unless `--with-xpm=no'.
12769 if test "${HAVE_X11}" = "yes"; then
12770 if test "${with_xpm}" != "no"; then
12771 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12772 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12773 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12774 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12775 echo $ECHO_N "(cached) $ECHO_C" >&6
12777 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12778 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12780 # Is the header compilable?
12781 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12782 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12783 cat >conftest.
$ac_ext <<_ACEOF
12786 cat confdefs.h
>>conftest.
$ac_ext
12787 cat >>conftest.
$ac_ext <<_ACEOF
12788 /* end confdefs.h. */
12789 $ac_includes_default
12790 #include <X11/xpm.h>
12792 rm -f conftest.
$ac_objext
12793 if { (ac_try
="$ac_compile"
12794 case "(($ac_try" in
12795 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12796 *) ac_try_echo=$ac_try;;
12798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12799 (eval "$ac_compile") 2>conftest.er1
12801 grep -v '^ *+' conftest.er1 >conftest.err
12803 cat conftest.err >&5
12804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12805 (exit $ac_status); } && {
12806 test -z "$ac_c_werror_flag" ||
12807 test ! -s conftest.err
12808 } && test -s conftest.$ac_objext; then
12809 ac_header_compiler=yes
12811 echo "$as_me: failed program was:" >&5
12812 sed 's/^/| /' conftest.$ac_ext >&5
12814 ac_header_compiler=no
12817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12818 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12819 echo "${ECHO_T}$ac_header_compiler" >&6; }
12821 # Is the header present?
12822 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12823 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12824 cat >conftest.$ac_ext <<_ACEOF
12827 cat confdefs.h >>conftest.$ac_ext
12828 cat >>conftest.$ac_ext <<_ACEOF
12829 /* end confdefs.h. */
12830 #include <X11/xpm.h>
12832 if { (ac_try="$ac_cpp conftest.$ac_ext"
12833 case "(($ac_try" in
12834 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12835 *) ac_try_echo
=$ac_try;;
12837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12838 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12840 grep -v '^ *+' conftest.er1
>conftest.err
12842 cat conftest.err
>&5
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); } >/dev
/null
&& {
12845 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12846 test ! -s conftest.err
12848 ac_header_preproc
=yes
12850 echo "$as_me: failed program was:" >&5
12851 sed 's/^/| /' conftest.
$ac_ext >&5
12853 ac_header_preproc
=no
12856 rm -f conftest.err conftest.
$ac_ext
12857 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12858 echo "${ECHO_T}$ac_header_preproc" >&6; }
12860 # So? What about this header?
12861 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12863 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12864 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12866 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12867 ac_header_preproc
=yes
12870 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12871 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12872 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12873 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12874 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12875 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12876 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12877 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12878 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12879 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12880 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12881 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12885 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12886 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12887 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12888 echo $ECHO_N "(cached) $ECHO_C" >&6
12890 ac_cv_header_X11_xpm_h
=$ac_header_preproc
12892 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12893 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12896 if test $ac_cv_header_X11_xpm_h = yes; then
12897 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12898 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12899 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12900 echo $ECHO_N "(cached) $ECHO_C" >&6
12902 ac_check_lib_save_LIBS
=$LIBS
12903 LIBS
="-lXpm -lX11 $LIBS"
12904 cat >conftest.
$ac_ext <<_ACEOF
12907 cat confdefs.h
>>conftest.
$ac_ext
12908 cat >>conftest.
$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12911 /* Override any GCC internal prototype to avoid an error.
12912 Use char because int might match the return type of a GCC
12913 builtin and then its argument prototype would still apply. */
12917 char XpmReadFileToPixmap ();
12921 return XpmReadFileToPixmap ();
12926 rm -f conftest.
$ac_objext conftest
$ac_exeext
12927 if { (ac_try
="$ac_link"
12928 case "(($ac_try" in
12929 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12930 *) ac_try_echo=$ac_try;;
12932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12933 (eval "$ac_link") 2>conftest.er1
12935 grep -v '^ *+' conftest.er1 >conftest.err
12937 cat conftest.err >&5
12938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12939 (exit $ac_status); } && {
12940 test -z "$ac_c_werror_flag" ||
12941 test ! -s conftest.err
12942 } && test -s conftest$ac_exeext &&
12943 $as_test_x conftest$ac_exeext; then
12944 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12946 echo "$as_me: failed program was:" >&5
12947 sed 's/^/| /' conftest.$ac_ext >&5
12949 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12953 conftest$ac_exeext conftest.$ac_ext
12954 LIBS=$ac_check_lib_save_LIBS
12956 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12957 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12958 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12965 if test "${HAVE_XPM}" = "yes"; then
12966 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12967 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12968 cat >conftest.$ac_ext <<_ACEOF
12971 cat confdefs.h >>conftest.$ac_ext
12972 cat >>conftest.$ac_ext <<_ACEOF
12973 /* end confdefs.h. */
12974 #include "X11/xpm.h"
12975 #ifndef XpmReturnAllocPixels
12976 no_return_alloc_pixels
12980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12981 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12989 if test "${HAVE_XPM}" = "yes"; then
12990 { echo "$as_me:$LINENO: result: yes" >&5
12991 echo "${ECHO_T}yes" >&6; }
12993 { echo "$as_me:$LINENO: result: no" >&5
12994 echo "${ECHO_T}no" >&6; }
12999 if test "${HAVE_XPM}" = "yes"; then
13001 cat >>confdefs.h <<\_ACEOF
13008 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13010 if test "${HAVE_X11}" = "yes"; then
13011 if test "${with_jpeg}" != "no"; then
13012 if test "${ac_cv_header_jerror_h+set}" = set; then
13013 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13014 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13015 if test "${ac_cv_header_jerror_h+set}" = set; then
13016 echo $ECHO_N "(cached) $ECHO_C" >&6
13018 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13019 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13021 # Is the header compilable?
13022 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13023 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13024 cat >conftest.$ac_ext <<_ACEOF
13027 cat confdefs.h >>conftest.$ac_ext
13028 cat >>conftest.$ac_ext <<_ACEOF
13029 /* end confdefs.h. */
13030 $ac_includes_default
13031 #include <jerror.h>
13033 rm -f conftest.$ac_objext
13034 if { (ac_try="$ac_compile"
13035 case "(($ac_try" in
13036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13037 *) ac_try_echo=$ac_try;;
13039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13040 (eval "$ac_compile") 2>conftest.er1
13042 grep -v '^
*+' conftest.er1 >conftest.err
13044 cat conftest.err >&5
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); } && {
13047 test -z "$ac_c_werror_flag" ||
13048 test ! -s conftest.err
13049 } && test -s conftest.$ac_objext; then
13050 ac_header_compiler=yes
13052 echo "$as_me: failed program was:" >&5
13053 sed 's
/^
/|
/' conftest.$ac_ext >&5
13055 ac_header_compiler=no
13058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13059 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13060 echo "${ECHO_T}$ac_header_compiler" >&6; }
13062 # Is the header present?
13063 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13064 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13065 cat >conftest.$ac_ext <<_ACEOF
13068 cat confdefs.h >>conftest.$ac_ext
13069 cat >>conftest.$ac_ext <<_ACEOF
13070 /* end confdefs.h. */
13071 #include <jerror.h>
13073 if { (ac_try="$ac_cpp conftest.$ac_ext"
13074 case "(($ac_try" in
13075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076 *) ac_try_echo=$ac_try;;
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13081 grep -v '^
*+' conftest.er1 >conftest.err
13083 cat conftest.err >&5
13084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085 (exit $ac_status); } >/dev/null && {
13086 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13087 test ! -s conftest.err
13089 ac_header_preproc=yes
13091 echo "$as_me: failed program was:" >&5
13092 sed 's
/^
/|
/' conftest.$ac_ext >&5
13094 ac_header_preproc=no
13097 rm -f conftest.err conftest.$ac_ext
13098 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13099 echo "${ECHO_T}$ac_header_preproc" >&6; }
13101 # So? What about this header?
13102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13104 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13105 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13106 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13107 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13108 ac_header_preproc=yes
13111 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13112 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13113 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13114 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13115 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13116 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13117 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13118 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13119 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13120 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13121 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13122 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13126 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13127 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13128 if test "${ac_cv_header_jerror_h+set}" = set; then
13129 echo $ECHO_N "(cached) $ECHO_C" >&6
13131 ac_cv_header_jerror_h=$ac_header_preproc
13133 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13134 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13137 if test $ac_cv_header_jerror_h = yes; then
13138 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13139 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13140 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13141 echo $ECHO_N "(cached) $ECHO_C" >&6
13143 ac_check_lib_save_LIBS=$LIBS
13144 LIBS="-ljpeg $LIBS"
13145 cat >conftest.$ac_ext <<_ACEOF
13148 cat confdefs.h >>conftest.$ac_ext
13149 cat >>conftest.$ac_ext <<_ACEOF
13150 /* end confdefs.h. */
13152 /* Override any GCC internal prototype to avoid an error.
13153 Use char because int might match the return type of a GCC
13154 builtin and then its argument prototype would still apply. */
13158 char jpeg_destroy_compress ();
13162 return jpeg_destroy_compress ();
13167 rm -f conftest.$ac_objext conftest$ac_exeext
13168 if { (ac_try="$ac_link"
13169 case "(($ac_try" in
13170 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13171 *) ac_try_echo=$ac_try;;
13173 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13174 (eval "$ac_link") 2>conftest.er1
13176 grep -v '^
*+' conftest.er1 >conftest.err
13178 cat conftest.err >&5
13179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13180 (exit $ac_status); } && {
13181 test -z "$ac_c_werror_flag" ||
13182 test ! -s conftest.err
13183 } && test -s conftest$ac_exeext &&
13184 $as_test_x conftest$ac_exeext; then
13185 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13187 echo "$as_me: failed program was:" >&5
13188 sed 's
/^
/|
/' conftest.$ac_ext >&5
13190 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13193 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13194 conftest$ac_exeext conftest.$ac_ext
13195 LIBS=$ac_check_lib_save_LIBS
13197 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13198 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13199 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13209 if test "${HAVE_JPEG}" = "yes"; then
13210 cat >>confdefs.h <<\_ACEOF
13211 #define HAVE_JPEG 1
13214 cat >conftest.$ac_ext <<_ACEOF
13217 cat confdefs.h >>conftest.$ac_ext
13218 cat >>conftest.$ac_ext <<_ACEOF
13219 /* end confdefs.h. */
13220 #include <jpeglib.h>
13221 version=JPEG_LIB_VERSION
13224 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13225 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13226 cat >>confdefs.h <<\_ACEOF
13227 #define HAVE_JPEG 1
13231 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13232 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13240 ### Use -lpng if available, unless `--with-png=no'.
13242 if test "${HAVE_X11}" = "yes"; then
13243 if test "${with_png}" != "no"; then
13244 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13245 # in /usr/include/libpng.
13248 for ac_header
in png.h libpng
/png.h
13250 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13251 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13254 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13255 echo $ECHO_N "(cached) $ECHO_C" >&6
13257 ac_res
=`eval echo '${'$as_ac_Header'}'`
13258 { echo "$as_me:$LINENO: result: $ac_res" >&5
13259 echo "${ECHO_T}$ac_res" >&6; }
13261 # Is the header compilable?
13262 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13263 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13264 cat >conftest.
$ac_ext <<_ACEOF
13267 cat confdefs.h
>>conftest.
$ac_ext
13268 cat >>conftest.
$ac_ext <<_ACEOF
13269 /* end confdefs.h. */
13270 $ac_includes_default
13271 #include <$ac_header>
13273 rm -f conftest.
$ac_objext
13274 if { (ac_try
="$ac_compile"
13275 case "(($ac_try" in
13276 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13277 *) ac_try_echo=$ac_try;;
13279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13280 (eval "$ac_compile") 2>conftest.er1
13282 grep -v '^ *+' conftest.er1 >conftest.err
13284 cat conftest.err >&5
13285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13286 (exit $ac_status); } && {
13287 test -z "$ac_c_werror_flag" ||
13288 test ! -s conftest.err
13289 } && test -s conftest.$ac_objext; then
13290 ac_header_compiler=yes
13292 echo "$as_me: failed program was:" >&5
13293 sed 's/^/| /' conftest.$ac_ext >&5
13295 ac_header_compiler=no
13298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13299 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13300 echo "${ECHO_T}$ac_header_compiler" >&6; }
13302 # Is the header present?
13303 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13304 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13305 cat >conftest.$ac_ext <<_ACEOF
13308 cat confdefs.h >>conftest.$ac_ext
13309 cat >>conftest.$ac_ext <<_ACEOF
13310 /* end confdefs.h. */
13311 #include <$ac_header>
13313 if { (ac_try="$ac_cpp conftest.$ac_ext"
13314 case "(($ac_try" in
13315 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13316 *) ac_try_echo
=$ac_try;;
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13321 grep -v '^ *+' conftest.er1
>conftest.err
13323 cat conftest.err
>&5
13324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13325 (exit $ac_status); } >/dev
/null
&& {
13326 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13327 test ! -s conftest.err
13329 ac_header_preproc
=yes
13331 echo "$as_me: failed program was:" >&5
13332 sed 's/^/| /' conftest.
$ac_ext >&5
13334 ac_header_preproc
=no
13337 rm -f conftest.err conftest.
$ac_ext
13338 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13339 echo "${ECHO_T}$ac_header_preproc" >&6; }
13341 # So? What about this header?
13342 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13344 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13345 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13347 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13348 ac_header_preproc
=yes
13351 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13352 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13353 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13354 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13355 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13356 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13357 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13358 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13360 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13361 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13362 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13368 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13369 echo $ECHO_N "(cached) $ECHO_C" >&6
13371 eval "$as_ac_Header=\$ac_header_preproc"
13373 ac_res
=`eval echo '${'$as_ac_Header'}'`
13374 { echo "$as_me:$LINENO: result: $ac_res" >&5
13375 echo "${ECHO_T}$ac_res" >&6; }
13378 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13379 cat >>confdefs.h
<<_ACEOF
13380 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13387 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13388 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13389 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13390 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13391 echo $ECHO_N "(cached) $ECHO_C" >&6
13393 ac_check_lib_save_LIBS
=$LIBS
13394 LIBS
="-lpng -lz -lm $LIBS"
13395 cat >conftest.
$ac_ext <<_ACEOF
13398 cat confdefs.h
>>conftest.
$ac_ext
13399 cat >>conftest.
$ac_ext <<_ACEOF
13400 /* end confdefs.h. */
13402 /* Override any GCC internal prototype to avoid an error.
13403 Use char because int might match the return type of a GCC
13404 builtin and then its argument prototype would still apply. */
13408 char png_get_channels ();
13412 return png_get_channels ();
13417 rm -f conftest.
$ac_objext conftest
$ac_exeext
13418 if { (ac_try
="$ac_link"
13419 case "(($ac_try" in
13420 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13421 *) ac_try_echo=$ac_try;;
13423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13424 (eval "$ac_link") 2>conftest.er1
13426 grep -v '^ *+' conftest.er1 >conftest.err
13428 cat conftest.err >&5
13429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13430 (exit $ac_status); } && {
13431 test -z "$ac_c_werror_flag" ||
13432 test ! -s conftest.err
13433 } && test -s conftest$ac_exeext &&
13434 $as_test_x conftest$ac_exeext; then
13435 ac_cv_lib_png_png_get_channels=yes
13437 echo "$as_me: failed program was:" >&5
13438 sed 's/^/| /' conftest.$ac_ext >&5
13440 ac_cv_lib_png_png_get_channels=no
13443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13444 conftest$ac_exeext conftest.$ac_ext
13445 LIBS=$ac_check_lib_save_LIBS
13447 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13448 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13449 if test $ac_cv_lib_png_png_get_channels = yes; then
13456 if test "${HAVE_PNG}" = "yes"; then
13458 cat >>confdefs.h <<\_ACEOF
13465 ### Use -ltiff if available, unless `--with-tiff=no
'.
13467 if test "${HAVE_X11}" = "yes"; then
13468 if test "${with_tiff}" != "no"; then
13469 if test "${ac_cv_header_tiffio_h+set}" = set; then
13470 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13471 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13472 if test "${ac_cv_header_tiffio_h+set}" = set; then
13473 echo $ECHO_N "(cached) $ECHO_C" >&6
13475 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13476 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13478 # Is the header compilable?
13479 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13480 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13481 cat >conftest.$ac_ext <<_ACEOF
13484 cat confdefs.h >>conftest.$ac_ext
13485 cat >>conftest.$ac_ext <<_ACEOF
13486 /* end confdefs.h. */
13487 $ac_includes_default
13488 #include <tiffio.h>
13490 rm -f conftest.$ac_objext
13491 if { (ac_try="$ac_compile"
13492 case "(($ac_try" in
13493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13494 *) ac_try_echo=$ac_try;;
13496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13497 (eval "$ac_compile") 2>conftest.er1
13499 grep -v '^
*+' conftest.er1 >conftest.err
13501 cat conftest.err >&5
13502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13503 (exit $ac_status); } && {
13504 test -z "$ac_c_werror_flag" ||
13505 test ! -s conftest.err
13506 } && test -s conftest.$ac_objext; then
13507 ac_header_compiler=yes
13509 echo "$as_me: failed program was:" >&5
13510 sed 's
/^
/|
/' conftest.$ac_ext >&5
13512 ac_header_compiler=no
13515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13517 echo "${ECHO_T}$ac_header_compiler" >&6; }
13519 # Is the header present?
13520 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13521 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13522 cat >conftest.$ac_ext <<_ACEOF
13525 cat confdefs.h >>conftest.$ac_ext
13526 cat >>conftest.$ac_ext <<_ACEOF
13527 /* end confdefs.h. */
13528 #include <tiffio.h>
13530 if { (ac_try="$ac_cpp conftest.$ac_ext"
13531 case "(($ac_try" in
13532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13533 *) ac_try_echo=$ac_try;;
13535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13538 grep -v '^
*+' conftest.er1 >conftest.err
13540 cat conftest.err >&5
13541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13542 (exit $ac_status); } >/dev/null && {
13543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13544 test ! -s conftest.err
13546 ac_header_preproc=yes
13548 echo "$as_me: failed program was:" >&5
13549 sed 's
/^
/|
/' conftest.$ac_ext >&5
13551 ac_header_preproc=no
13554 rm -f conftest.err conftest.$ac_ext
13555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13556 echo "${ECHO_T}$ac_header_preproc" >&6; }
13558 # So? What about this header?
13559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13561 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13562 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13564 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13565 ac_header_preproc=yes
13568 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13569 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13570 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13571 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13572 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13573 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13574 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13575 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13576 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13577 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13578 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13579 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13583 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13584 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13585 if test "${ac_cv_header_tiffio_h+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13588 ac_cv_header_tiffio_h=$ac_header_preproc
13590 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13591 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13594 if test $ac_cv_header_tiffio_h = yes; then
13596 # At least one tiff package requires the jpeg library.
13597 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13598 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13599 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13600 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13603 ac_check_lib_save_LIBS=$LIBS
13604 LIBS="-ltiff $tifflibs $LIBS"
13605 cat >conftest.$ac_ext <<_ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13612 /* Override any GCC internal prototype to avoid an error.
13613 Use char because int might match the return type of a GCC
13614 builtin and then its argument prototype would still apply. */
13618 char TIFFGetVersion ();
13622 return TIFFGetVersion ();
13627 rm -f conftest.$ac_objext conftest$ac_exeext
13628 if { (ac_try="$ac_link"
13629 case "(($ac_try" in
13630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13631 *) ac_try_echo=$ac_try;;
13633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13634 (eval "$ac_link") 2>conftest.er1
13636 grep -v '^
*+' conftest.er1 >conftest.err
13638 cat conftest.err >&5
13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13640 (exit $ac_status); } && {
13641 test -z "$ac_c_werror_flag" ||
13642 test ! -s conftest.err
13643 } && test -s conftest$ac_exeext &&
13644 $as_test_x conftest$ac_exeext; then
13645 ac_cv_lib_tiff_TIFFGetVersion=yes
13647 echo "$as_me: failed program was:" >&5
13648 sed 's
/^
/|
/' conftest.$ac_ext >&5
13650 ac_cv_lib_tiff_TIFFGetVersion=no
13653 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13654 conftest$ac_exeext conftest.$ac_ext
13655 LIBS=$ac_check_lib_save_LIBS
13657 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13658 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13659 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13668 if test "${HAVE_TIFF}" = "yes"; then
13670 cat >>confdefs.h <<\_ACEOF
13671 #define HAVE_TIFF 1
13677 ### Use -lgif if available, unless `--with-gif=no'.
13679 if test "${HAVE_X11}" = "yes"; then
13680 if test "${with_gif}" != "no"; then
13681 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13682 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13683 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13684 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13685 echo $ECHO_N "(cached) $ECHO_C" >&6
13687 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13688 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13690 # Is the header compilable?
13691 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13692 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13693 cat >conftest.
$ac_ext <<_ACEOF
13696 cat confdefs.h
>>conftest.
$ac_ext
13697 cat >>conftest.
$ac_ext <<_ACEOF
13698 /* end confdefs.h. */
13699 $ac_includes_default
13700 #include <gif_lib.h>
13702 rm -f conftest.
$ac_objext
13703 if { (ac_try
="$ac_compile"
13704 case "(($ac_try" in
13705 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13706 *) ac_try_echo=$ac_try;;
13708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13709 (eval "$ac_compile") 2>conftest.er1
13711 grep -v '^ *+' conftest.er1 >conftest.err
13713 cat conftest.err >&5
13714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13715 (exit $ac_status); } && {
13716 test -z "$ac_c_werror_flag" ||
13717 test ! -s conftest.err
13718 } && test -s conftest.$ac_objext; then
13719 ac_header_compiler=yes
13721 echo "$as_me: failed program was:" >&5
13722 sed 's/^/| /' conftest.$ac_ext >&5
13724 ac_header_compiler=no
13727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13728 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13729 echo "${ECHO_T}$ac_header_compiler" >&6; }
13731 # Is the header present?
13732 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13733 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13734 cat >conftest.$ac_ext <<_ACEOF
13737 cat confdefs.h >>conftest.$ac_ext
13738 cat >>conftest.$ac_ext <<_ACEOF
13739 /* end confdefs.h. */
13740 #include <gif_lib.h>
13742 if { (ac_try="$ac_cpp conftest.$ac_ext"
13743 case "(($ac_try" in
13744 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13745 *) ac_try_echo
=$ac_try;;
13747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13750 grep -v '^ *+' conftest.er1
>conftest.err
13752 cat conftest.err
>&5
13753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13754 (exit $ac_status); } >/dev
/null
&& {
13755 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13756 test ! -s conftest.err
13758 ac_header_preproc
=yes
13760 echo "$as_me: failed program was:" >&5
13761 sed 's/^/| /' conftest.
$ac_ext >&5
13763 ac_header_preproc
=no
13766 rm -f conftest.err conftest.
$ac_ext
13767 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13768 echo "${ECHO_T}$ac_header_preproc" >&6; }
13770 # So? What about this header?
13771 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13773 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13774 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13775 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13776 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13777 ac_header_preproc
=yes
13780 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13781 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13782 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13783 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13784 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13785 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13786 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13787 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13788 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13789 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13790 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13791 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13795 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13796 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13797 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13800 ac_cv_header_gif_lib_h
=$ac_header_preproc
13802 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13803 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13806 if test $ac_cv_header_gif_lib_h = yes; then
13807 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13808 # Earlier versions can crash Emacs.
13809 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13810 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13811 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13812 echo $ECHO_N "(cached) $ECHO_C" >&6
13814 ac_check_lib_save_LIBS
=$LIBS
13815 LIBS
="-lungif $LIBS"
13816 cat >conftest.
$ac_ext <<_ACEOF
13819 cat confdefs.h
>>conftest.
$ac_ext
13820 cat >>conftest.
$ac_ext <<_ACEOF
13821 /* end confdefs.h. */
13823 /* Override any GCC internal prototype to avoid an error.
13824 Use char because int might match the return type of a GCC
13825 builtin and then its argument prototype would still apply. */
13829 char EGifPutExtensionLast ();
13833 return EGifPutExtensionLast ();
13838 rm -f conftest.
$ac_objext conftest
$ac_exeext
13839 if { (ac_try
="$ac_link"
13840 case "(($ac_try" in
13841 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_link") 2>conftest.er1
13847 grep -v '^ *+' conftest.er1 >conftest.err
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } && {
13852 test -z "$ac_c_werror_flag" ||
13853 test ! -s conftest.err
13854 } && test -s conftest$ac_exeext &&
13855 $as_test_x conftest$ac_exeext; then
13856 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13858 echo "$as_me: failed program was:" >&5
13859 sed 's/^/| /' conftest.$ac_ext >&5
13861 ac_cv_lib_ungif_EGifPutExtensionLast=no
13864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13865 conftest$ac_exeext conftest.$ac_ext
13866 LIBS=$ac_check_lib_save_LIBS
13868 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13869 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13870 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13879 if test "${HAVE_GIF}" = "yes"; then
13881 cat >>confdefs.h <<\_ACEOF
13888 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13889 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13890 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13891 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13892 echo $ECHO_N "(cached) $ECHO_C" >&6
13894 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13895 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13897 # Is the header compilable?
13898 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13899 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13900 cat >conftest.$ac_ext <<_ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13906 $ac_includes_default
13907 #include <malloc/malloc.h>
13909 rm -f conftest.$ac_objext
13910 if { (ac_try="$ac_compile"
13911 case "(($ac_try" in
13912 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13913 *) ac_try_echo
=$ac_try;;
13915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13916 (eval "$ac_compile") 2>conftest.er1
13918 grep -v '^ *+' conftest.er1
>conftest.err
13920 cat conftest.err
>&5
13921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13922 (exit $ac_status); } && {
13923 test -z "$ac_c_werror_flag" ||
13924 test ! -s conftest.err
13925 } && test -s conftest.
$ac_objext; then
13926 ac_header_compiler
=yes
13928 echo "$as_me: failed program was:" >&5
13929 sed 's/^/| /' conftest.
$ac_ext >&5
13931 ac_header_compiler
=no
13934 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
13935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13936 echo "${ECHO_T}$ac_header_compiler" >&6; }
13938 # Is the header present?
13939 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13940 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13941 cat >conftest.
$ac_ext <<_ACEOF
13944 cat confdefs.h
>>conftest.
$ac_ext
13945 cat >>conftest.
$ac_ext <<_ACEOF
13946 /* end confdefs.h. */
13947 #include <malloc/malloc.h>
13949 if { (ac_try
="$ac_cpp conftest.$ac_ext"
13950 case "(($ac_try" in
13951 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13952 *) ac_try_echo=$ac_try;;
13954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13957 grep -v '^ *+' conftest.er1 >conftest.err
13959 cat conftest.err >&5
13960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13961 (exit $ac_status); } >/dev/null && {
13962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13963 test ! -s conftest.err
13965 ac_header_preproc=yes
13967 echo "$as_me: failed program was:" >&5
13968 sed 's/^/| /' conftest.$ac_ext >&5
13970 ac_header_preproc=no
13973 rm -f conftest.err conftest.$ac_ext
13974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13975 echo "${ECHO_T}$ac_header_preproc" >&6; }
13977 # So? What about this header?
13978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13980 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13981 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13982 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13983 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13984 ac_header_preproc=yes
13987 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13988 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13989 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13990 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13991 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13992 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13993 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13994 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13995 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13996 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13997 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13998 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14002 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14003 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14004 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14005 echo $ECHO_N "(cached) $ECHO_C" >&6
14007 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14009 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14010 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14013 if test $ac_cv_header_malloc_malloc_h = yes; then
14015 cat >>confdefs.h <<\_ACEOF
14016 #define HAVE_MALLOC_MALLOC_H 1
14023 ### Use Mac OS X Carbon API to implement GUI.
14024 if test "${HAVE_CARBON}" = "yes"; then
14026 cat >>confdefs.h <<\_ACEOF
14027 #define HAVE_CARBON 1
14030 ## Specify the install directory
14032 if test "${carbon_appdir_x}" != ""; then
14033 case ${carbon_appdir_x} in
14034 y | ye | yes) carbon_appdir=/Applications ;;
14035 * ) carbon_appdir=${carbon_appdir_x} ;;
14038 # We also have mouse menus.
14042 ### Use session management (-lSM -lICE) if available
14044 if test "${HAVE_X11}" = "yes"; then
14045 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14046 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14047 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14048 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14049 echo $ECHO_N "(cached) $ECHO_C" >&6
14051 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14052 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14054 # Is the header compilable?
14055 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14056 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14057 cat >conftest.$ac_ext <<_ACEOF
14060 cat confdefs.h >>conftest.$ac_ext
14061 cat >>conftest.$ac_ext <<_ACEOF
14062 /* end confdefs.h. */
14063 $ac_includes_default
14064 #include <X11/SM/SMlib.h>
14066 rm -f conftest.$ac_objext
14067 if { (ac_try="$ac_compile"
14068 case "(($ac_try" in
14069 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14070 *) ac_try_echo
=$ac_try;;
14072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14073 (eval "$ac_compile") 2>conftest.er1
14075 grep -v '^ *+' conftest.er1
>conftest.err
14077 cat conftest.err
>&5
14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14079 (exit $ac_status); } && {
14080 test -z "$ac_c_werror_flag" ||
14081 test ! -s conftest.err
14082 } && test -s conftest.
$ac_objext; then
14083 ac_header_compiler
=yes
14085 echo "$as_me: failed program was:" >&5
14086 sed 's/^/| /' conftest.
$ac_ext >&5
14088 ac_header_compiler
=no
14091 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14092 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14093 echo "${ECHO_T}$ac_header_compiler" >&6; }
14095 # Is the header present?
14096 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14097 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14098 cat >conftest.
$ac_ext <<_ACEOF
14101 cat confdefs.h
>>conftest.
$ac_ext
14102 cat >>conftest.
$ac_ext <<_ACEOF
14103 /* end confdefs.h. */
14104 #include <X11/SM/SMlib.h>
14106 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14107 case "(($ac_try" in
14108 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14109 *) ac_try_echo=$ac_try;;
14111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14112 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14114 grep -v '^ *+' conftest.er1 >conftest.err
14116 cat conftest.err >&5
14117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14118 (exit $ac_status); } >/dev/null && {
14119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14120 test ! -s conftest.err
14122 ac_header_preproc=yes
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14127 ac_header_preproc=no
14130 rm -f conftest.err conftest.$ac_ext
14131 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14132 echo "${ECHO_T}$ac_header_preproc" >&6; }
14134 # So? What about this header?
14135 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14137 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14138 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14139 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14140 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14141 ac_header_preproc=yes
14144 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14145 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14146 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14147 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14148 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14149 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14150 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14151 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14152 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14153 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14154 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14155 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14159 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14160 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14161 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14162 echo $ECHO_N "(cached) $ECHO_C" >&6
14164 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14166 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14167 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14170 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14171 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14172 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14173 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14174 echo $ECHO_N "(cached) $ECHO_C" >&6
14176 ac_check_lib_save_LIBS=$LIBS
14177 LIBS="-lSM -lICE $LIBS"
14178 cat >conftest.$ac_ext <<_ACEOF
14181 cat confdefs.h >>conftest.$ac_ext
14182 cat >>conftest.$ac_ext <<_ACEOF
14183 /* end confdefs.h. */
14185 /* Override any GCC internal prototype to avoid an error.
14186 Use char because int might match the return type of a GCC
14187 builtin and then its argument prototype would still apply. */
14191 char SmcOpenConnection ();
14195 return SmcOpenConnection ();
14200 rm -f conftest.$ac_objext conftest$ac_exeext
14201 if { (ac_try="$ac_link"
14202 case "(($ac_try" in
14203 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14204 *) ac_try_echo
=$ac_try;;
14206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14207 (eval "$ac_link") 2>conftest.er1
14209 grep -v '^ *+' conftest.er1
>conftest.err
14211 cat conftest.err
>&5
14212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14213 (exit $ac_status); } && {
14214 test -z "$ac_c_werror_flag" ||
14215 test ! -s conftest.err
14216 } && test -s conftest
$ac_exeext &&
14217 $as_test_x conftest
$ac_exeext; then
14218 ac_cv_lib_SM_SmcOpenConnection
=yes
14220 echo "$as_me: failed program was:" >&5
14221 sed 's/^/| /' conftest.
$ac_ext >&5
14223 ac_cv_lib_SM_SmcOpenConnection
=no
14226 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14227 conftest
$ac_exeext conftest.
$ac_ext
14228 LIBS
=$ac_check_lib_save_LIBS
14230 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14231 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14232 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14240 if test "${HAVE_X_SM}" = "yes"; then
14242 cat >>confdefs.h
<<\_ACEOF
14243 #define HAVE_X_SM 1
14248 *) LIBS
="-lSM -lICE $LIBS" ;;
14253 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14254 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14255 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14256 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14257 echo $ECHO_N "(cached) $ECHO_C" >&6
14259 cat >conftest.
$ac_ext <<_ACEOF
14262 cat confdefs.h
>>conftest.
$ac_ext
14263 cat >>conftest.
$ac_ext <<_ACEOF
14264 /* end confdefs.h. */
14274 rm -f conftest.
$ac_objext conftest
$ac_exeext
14275 if { (ac_try
="$ac_link"
14276 case "(($ac_try" in
14277 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14278 *) ac_try_echo=$ac_try;;
14280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14281 (eval "$ac_link") 2>conftest.er1
14283 grep -v '^ *+' conftest.er1 >conftest.err
14285 cat conftest.err >&5
14286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14287 (exit $ac_status); } && {
14288 test -z "$ac_c_werror_flag" ||
14289 test ! -s conftest.err
14290 } && test -s conftest$ac_exeext &&
14291 $as_test_x conftest$ac_exeext; then
14292 emacs_cv_netdb_declares_h_errno=yes
14294 echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14297 emacs_cv_netdb_declares_h_errno=no
14300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14301 conftest$ac_exeext conftest.$ac_ext
14303 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14304 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14305 if test $emacs_cv_netdb_declares_h_errno = yes; then
14307 cat >>confdefs.h <<\_ACEOF
14308 #define HAVE_H_ERRNO 1
14313 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14314 # for constant arguments. Useless!
14315 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14316 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14317 if test "${ac_cv_working_alloca_h+set}" = set; then
14318 echo $ECHO_N "(cached) $ECHO_C" >&6
14320 cat >conftest.$ac_ext <<_ACEOF
14323 cat confdefs.h >>conftest.$ac_ext
14324 cat >>conftest.$ac_ext <<_ACEOF
14325 /* end confdefs.h. */
14326 #include <alloca.h>
14330 char *p = (char *) alloca (2 * sizeof (int));
14336 rm -f conftest.$ac_objext conftest$ac_exeext
14337 if { (ac_try="$ac_link"
14338 case "(($ac_try" in
14339 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14340 *) ac_try_echo
=$ac_try;;
14342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14343 (eval "$ac_link") 2>conftest.er1
14345 grep -v '^ *+' conftest.er1
>conftest.err
14347 cat conftest.err
>&5
14348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14349 (exit $ac_status); } && {
14350 test -z "$ac_c_werror_flag" ||
14351 test ! -s conftest.err
14352 } && test -s conftest
$ac_exeext &&
14353 $as_test_x conftest
$ac_exeext; then
14354 ac_cv_working_alloca_h
=yes
14356 echo "$as_me: failed program was:" >&5
14357 sed 's/^/| /' conftest.
$ac_ext >&5
14359 ac_cv_working_alloca_h
=no
14362 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14363 conftest
$ac_exeext conftest.
$ac_ext
14365 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14366 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14367 if test $ac_cv_working_alloca_h = yes; then
14369 cat >>confdefs.h
<<\_ACEOF
14370 #define HAVE_ALLOCA_H 1
14375 { echo "$as_me:$LINENO: checking for alloca" >&5
14376 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14377 if test "${ac_cv_func_alloca_works+set}" = set; then
14378 echo $ECHO_N "(cached) $ECHO_C" >&6
14380 cat >conftest.
$ac_ext <<_ACEOF
14383 cat confdefs.h
>>conftest.
$ac_ext
14384 cat >>conftest.
$ac_ext <<_ACEOF
14385 /* end confdefs.h. */
14387 # define alloca __builtin_alloca
14390 # include <malloc.h>
14391 # define alloca _alloca
14393 # ifdef HAVE_ALLOCA_H
14394 # include <alloca.h>
14399 # ifndef alloca /* predefined by HP cc +Olibcalls */
14410 char *p = (char *) alloca (1);
14416 rm -f conftest.
$ac_objext conftest
$ac_exeext
14417 if { (ac_try
="$ac_link"
14418 case "(($ac_try" in
14419 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14420 *) ac_try_echo=$ac_try;;
14422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14423 (eval "$ac_link") 2>conftest.er1
14425 grep -v '^ *+' conftest.er1 >conftest.err
14427 cat conftest.err >&5
14428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14429 (exit $ac_status); } && {
14430 test -z "$ac_c_werror_flag" ||
14431 test ! -s conftest.err
14432 } && test -s conftest$ac_exeext &&
14433 $as_test_x conftest$ac_exeext; then
14434 ac_cv_func_alloca_works=yes
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.$ac_ext >&5
14439 ac_cv_func_alloca_works=no
14442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14443 conftest$ac_exeext conftest.$ac_ext
14445 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14446 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14448 if test $ac_cv_func_alloca_works = yes; then
14450 cat >>confdefs.h <<\_ACEOF
14451 #define HAVE_ALLOCA 1
14455 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14456 # that cause trouble. Some versions do not even contain alloca or
14457 # contain a buggy version. If you still want to use their alloca,
14458 # use ar to extract alloca.o from them instead of compiling alloca.c.
14460 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14462 cat >>confdefs.h <<\_ACEOF
14467 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14468 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14469 if test "${ac_cv_os_cray+set}" = set; then
14470 echo $ECHO_N "(cached
) $ECHO_C" >&6
14472 cat >conftest.$ac_ext <<_ACEOF
14475 cat confdefs.h >>conftest.$ac_ext
14476 cat >>conftest.$ac_ext <<_ACEOF
14477 /* end confdefs.h. */
14478 #if defined CRAY && ! defined CRAY2
14485 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14486 $EGREP "webecray
" >/dev/null 2>&1; then
14494 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14495 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14496 if test $ac_cv_os_cray = yes; then
14497 for ac_func in _getb67 GETB67 getb67; do
14498 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14499 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14500 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14501 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14502 echo $ECHO_N "(cached
) $ECHO_C" >&6
14504 cat >conftest.$ac_ext <<_ACEOF
14507 cat confdefs.h >>conftest.$ac_ext
14508 cat >>conftest.$ac_ext <<_ACEOF
14509 /* end confdefs.h. */
14510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14512 #define $ac_func innocuous_$ac_func
14514 /* System header to define __stub macros and hopefully few prototypes,
14515 which can conflict with char $ac_func (); below.
14516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14517 <limits.h> exists even on freestanding compilers. */
14520 # include <limits.h>
14522 # include <assert.h>
14527 /* Override any GCC internal prototype to avoid an error.
14528 Use char because int might match the return type of a GCC
14529 builtin and then its argument prototype would still apply. */
14534 /* The GNU C library defines this for functions which it implements
14535 to always fail with ENOSYS. Some functions are actually named
14536 something starting with __ and the normal name is an alias. */
14537 #if defined __stub_$ac_func || defined __stub___$ac_func
14544 return $ac_func ();
14549 rm -f conftest.$ac_objext conftest$ac_exeext
14550 if { (ac_try="$ac_link"
14551 case "(($ac_try" in
14552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14553 *) ac_try_echo=$ac_try;;
14555 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14556 (eval "$ac_link") 2>conftest.er1
14558 grep -v '^ *+' conftest.er1 >conftest.err
14560 cat conftest.err >&5
14561 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14562 (exit $ac_status); } && {
14563 test -z "$ac_c_werror_flag" ||
14564 test ! -s conftest.err
14565 } && test -s conftest$ac_exeext &&
14566 $as_test_x conftest$ac_exeext; then
14567 eval "$as_ac_var=yes"
14569 echo "$as_me: failed program was
:" >&5
14570 sed 's/^/| /' conftest.$ac_ext >&5
14572 eval "$as_ac_var=no
"
14575 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14576 conftest$ac_exeext conftest.$ac_ext
14578 ac_res=`eval echo '${'$as_ac_var'}'`
14579 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14580 echo "${ECHO_T}$ac_res" >&6; }
14581 if test `eval echo '${'$as_ac_var'}'` = yes; then
14583 cat >>confdefs.h <<_ACEOF
14584 #define CRAY_STACKSEG_END $ac_func
14593 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14594 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14595 if test "${ac_cv_c_stack_direction+set}" = set; then
14596 echo $ECHO_N "(cached
) $ECHO_C" >&6
14598 if test "$cross_compiling" = yes; then
14599 ac_cv_c_stack_direction=0
14601 cat >conftest.$ac_ext <<_ACEOF
14604 cat confdefs.h >>conftest.$ac_ext
14605 cat >>conftest.$ac_ext <<_ACEOF
14606 /* end confdefs.h. */
14607 $ac_includes_default
14609 find_stack_direction ()
14611 static char *addr = 0;
14616 return find_stack_direction ();
14619 return (&dummy > addr) ? 1 : -1;
14625 return find_stack_direction () < 0;
14628 rm -f conftest$ac_exeext
14629 if { (ac_try="$ac_link"
14630 case "(($ac_try" in
14631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14632 *) ac_try_echo=$ac_try;;
14634 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14635 (eval "$ac_link") 2>&5
14637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14638 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14639 { (case "(($ac_try" in
14640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14641 *) ac_try_echo=$ac_try;;
14643 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14644 (eval "$ac_try") 2>&5
14646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14647 (exit $ac_status); }; }; then
14648 ac_cv_c_stack_direction=1
14650 echo "$as_me: program exited with status
$ac_status" >&5
14651 echo "$as_me: failed program was
:" >&5
14652 sed 's/^/| /' conftest.$ac_ext >&5
14654 ( exit $ac_status )
14655 ac_cv_c_stack_direction=-1
14657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14662 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14663 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14665 cat >>confdefs.h <<_ACEOF
14666 #define STACK_DIRECTION $ac_cv_c_stack_direction
14673 # fmod, logb, and frexp are found in -lm on most systems.
14674 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14676 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14677 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14678 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14679 echo $ECHO_N "(cached
) $ECHO_C" >&6
14681 ac_check_lib_save_LIBS=$LIBS
14683 cat >conftest.$ac_ext <<_ACEOF
14686 cat confdefs.h >>conftest.$ac_ext
14687 cat >>conftest.$ac_ext <<_ACEOF
14688 /* end confdefs.h. */
14690 /* Override any GCC internal prototype to avoid an error.
14691 Use char because int might match the return type of a GCC
14692 builtin and then its argument prototype would still apply. */
14705 rm -f conftest.$ac_objext conftest$ac_exeext
14706 if { (ac_try="$ac_link"
14707 case "(($ac_try" in
14708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709 *) ac_try_echo=$ac_try;;
14711 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14712 (eval "$ac_link") 2>conftest.er1
14714 grep -v '^ *+' conftest.er1 >conftest.err
14716 cat conftest.err >&5
14717 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14718 (exit $ac_status); } && {
14719 test -z "$ac_c_werror_flag" ||
14720 test ! -s conftest.err
14721 } && test -s conftest$ac_exeext &&
14722 $as_test_x conftest$ac_exeext; then
14723 ac_cv_lib_m_sqrt=yes
14725 echo "$as_me: failed program was
:" >&5
14726 sed 's/^/| /' conftest.$ac_ext >&5
14728 ac_cv_lib_m_sqrt=no
14731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14732 conftest$ac_exeext conftest.$ac_ext
14733 LIBS=$ac_check_lib_save_LIBS
14735 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
14736 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14737 if test $ac_cv_lib_m_sqrt = yes; then
14738 cat >>confdefs.h <<_ACEOF
14739 #define HAVE_LIBM 1
14747 # Check for mail-locking functions in a "mail" library. Probably this should
14748 # have the same check as for liblockfile below.
14750 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
14751 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
14752 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14753 echo $ECHO_N "(cached
) $ECHO_C" >&6
14755 ac_check_lib_save_LIBS=$LIBS
14756 LIBS="-lmail $LIBS"
14757 cat >conftest.$ac_ext <<_ACEOF
14760 cat confdefs.h >>conftest.$ac_ext
14761 cat >>conftest.$ac_ext <<_ACEOF
14762 /* end confdefs.h. */
14764 /* Override any GCC internal prototype to avoid an error.
14765 Use char because int might match the return type of a GCC
14766 builtin and then its argument prototype would still apply. */
14774 return maillock ();
14779 rm -f conftest.$ac_objext conftest$ac_exeext
14780 if { (ac_try="$ac_link"
14781 case "(($ac_try" in
14782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14783 *) ac_try_echo=$ac_try;;
14785 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14786 (eval "$ac_link") 2>conftest.er1
14788 grep -v '^ *+' conftest.er1 >conftest.err
14790 cat conftest.err >&5
14791 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14792 (exit $ac_status); } && {
14793 test -z "$ac_c_werror_flag" ||
14794 test ! -s conftest.err
14795 } && test -s conftest$ac_exeext &&
14796 $as_test_x conftest$ac_exeext; then
14797 ac_cv_lib_mail_maillock=yes
14799 echo "$as_me: failed program was
:" >&5
14800 sed 's/^/| /' conftest.$ac_ext >&5
14802 ac_cv_lib_mail_maillock=no
14805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14806 conftest$ac_exeext conftest.$ac_ext
14807 LIBS=$ac_check_lib_save_LIBS
14809 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
14810 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14811 if test $ac_cv_lib_mail_maillock = yes; then
14812 cat >>confdefs.h <<_ACEOF
14813 #define HAVE_LIBMAIL 1
14816 LIBS="-lmail $LIBS"
14821 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
14822 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
14823 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14824 echo $ECHO_N "(cached
) $ECHO_C" >&6
14826 ac_check_lib_save_LIBS=$LIBS
14827 LIBS="-llockfile $LIBS"
14828 cat >conftest.$ac_ext <<_ACEOF
14831 cat confdefs.h >>conftest.$ac_ext
14832 cat >>conftest.$ac_ext <<_ACEOF
14833 /* end confdefs.h. */
14835 /* Override any GCC internal prototype to avoid an error.
14836 Use char because int might match the return type of a GCC
14837 builtin and then its argument prototype would still apply. */
14845 return maillock ();
14850 rm -f conftest.$ac_objext conftest$ac_exeext
14851 if { (ac_try="$ac_link"
14852 case "(($ac_try" in
14853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14854 *) ac_try_echo=$ac_try;;
14856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14857 (eval "$ac_link") 2>conftest.er1
14859 grep -v '^ *+' conftest.er1 >conftest.err
14861 cat conftest.err >&5
14862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14863 (exit $ac_status); } && {
14864 test -z "$ac_c_werror_flag" ||
14865 test ! -s conftest.err
14866 } && test -s conftest$ac_exeext &&
14867 $as_test_x conftest$ac_exeext; then
14868 ac_cv_lib_lockfile_maillock=yes
14870 echo "$as_me: failed program was
:" >&5
14871 sed 's/^/| /' conftest.$ac_ext >&5
14873 ac_cv_lib_lockfile_maillock=no
14876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14877 conftest$ac_exeext conftest.$ac_ext
14878 LIBS=$ac_check_lib_save_LIBS
14880 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
14881 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14882 if test $ac_cv_lib_lockfile_maillock = yes; then
14883 cat >>confdefs.h <<_ACEOF
14884 #define HAVE_LIBLOCKFILE 1
14887 LIBS="-llockfile $LIBS"
14891 # If we have the shared liblockfile, assume we must use it for mail
14892 # locking (e.g. Debian). If we couldn't link against liblockfile
14893 # (no liblockfile.a installed), ensure that we don't need to.
14894 if test "$ac_cv_lib_lockfile_maillock" = no; then
14895 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
14896 set dummy liblockfile.so; ac_word=$2
14897 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14898 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14899 if test "${ac_cv_prog_liblockfile+set}" = set; then
14900 echo $ECHO_N "(cached
) $ECHO_C" >&6
14902 if test -n "$liblockfile"; then
14903 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14906 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
14907 for as_dir in $as_dummy
14910 test -z "$as_dir" && as_dir=.
14911 for ac_exec_ext in '' $ac_executable_extensions; do
14912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14913 ac_cv_prog_liblockfile="yes"
14914 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14921 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
14924 liblockfile=$ac_cv_prog_liblockfile
14925 if test -n "$liblockfile"; then
14926 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
14927 echo "${ECHO_T}$liblockfile" >&6; }
14929 { echo "$as_me:$LINENO: result
: no
" >&5
14930 echo "${ECHO_T}no
" >&6; }
14934 if test $ac_cv_prog_liblockfile = yes; then
14935 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
14936 This probably means that movemail could lose mail.
14937 There may be a \`development' package to
install containing liblockfile.
" >&5
14938 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
14939 This probably means that movemail could lose mail.
14940 There may be a \`development' package to
install containing liblockfile.
" >&2;}
14941 { (exit 1); exit 1; }; }
14946 for ac_func in touchlock
14948 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14949 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14950 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14951 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14952 echo $ECHO_N "(cached
) $ECHO_C" >&6
14954 cat >conftest.$ac_ext <<_ACEOF
14957 cat confdefs.h >>conftest.$ac_ext
14958 cat >>conftest.$ac_ext <<_ACEOF
14959 /* end confdefs.h. */
14960 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14961 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14962 #define $ac_func innocuous_$ac_func
14964 /* System header to define __stub macros and hopefully few prototypes,
14965 which can conflict with char $ac_func (); below.
14966 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14967 <limits.h> exists even on freestanding compilers. */
14970 # include <limits.h>
14972 # include <assert.h>
14977 /* Override any GCC internal prototype to avoid an error.
14978 Use char because int might match the return type of a GCC
14979 builtin and then its argument prototype would still apply. */
14984 /* The GNU C library defines this for functions which it implements
14985 to always fail with ENOSYS. Some functions are actually named
14986 something starting with __ and the normal name is an alias. */
14987 #if defined __stub_$ac_func || defined __stub___$ac_func
14994 return $ac_func ();
14999 rm -f conftest.$ac_objext conftest$ac_exeext
15000 if { (ac_try="$ac_link"
15001 case "(($ac_try" in
15002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15003 *) ac_try_echo=$ac_try;;
15005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15006 (eval "$ac_link") 2>conftest.er1
15008 grep -v '^ *+' conftest.er1 >conftest.err
15010 cat conftest.err >&5
15011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15012 (exit $ac_status); } && {
15013 test -z "$ac_c_werror_flag" ||
15014 test ! -s conftest.err
15015 } && test -s conftest$ac_exeext &&
15016 $as_test_x conftest$ac_exeext; then
15017 eval "$as_ac_var=yes"
15019 echo "$as_me: failed program was
:" >&5
15020 sed 's/^/| /' conftest.$ac_ext >&5
15022 eval "$as_ac_var=no
"
15025 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15026 conftest$ac_exeext conftest.$ac_ext
15028 ac_res=`eval echo '${'$as_ac_var'}'`
15029 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15030 echo "${ECHO_T}$ac_res" >&6; }
15031 if test `eval echo '${'$as_ac_var'}'` = yes; then
15032 cat >>confdefs.h <<_ACEOF
15033 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15040 for ac_header in maillock.h
15042 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15043 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15044 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15045 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15046 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15047 echo $ECHO_N "(cached
) $ECHO_C" >&6
15049 ac_res=`eval echo '${'$as_ac_Header'}'`
15050 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15051 echo "${ECHO_T}$ac_res" >&6; }
15053 # Is the header compilable?
15054 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15055 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15056 cat >conftest.$ac_ext <<_ACEOF
15059 cat confdefs.h >>conftest.$ac_ext
15060 cat >>conftest.$ac_ext <<_ACEOF
15061 /* end confdefs.h. */
15062 $ac_includes_default
15063 #include <$ac_header>
15065 rm -f conftest.$ac_objext
15066 if { (ac_try="$ac_compile"
15067 case "(($ac_try" in
15068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069 *) ac_try_echo=$ac_try;;
15071 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15072 (eval "$ac_compile") 2>conftest.er1
15074 grep -v '^ *+' conftest.er1 >conftest.err
15076 cat conftest.err >&5
15077 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15078 (exit $ac_status); } && {
15079 test -z "$ac_c_werror_flag" ||
15080 test ! -s conftest.err
15081 } && test -s conftest.$ac_objext; then
15082 ac_header_compiler=yes
15084 echo "$as_me: failed program was
:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15087 ac_header_compiler=no
15090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15091 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15092 echo "${ECHO_T}$ac_header_compiler" >&6; }
15094 # Is the header present?
15095 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15096 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15097 cat >conftest.$ac_ext <<_ACEOF
15100 cat confdefs.h >>conftest.$ac_ext
15101 cat >>conftest.$ac_ext <<_ACEOF
15102 /* end confdefs.h. */
15103 #include <$ac_header>
15105 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15106 case "(($ac_try" in
15107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15108 *) ac_try_echo=$ac_try;;
15110 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15111 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15113 grep -v '^ *+' conftest.er1 >conftest.err
15115 cat conftest.err >&5
15116 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15117 (exit $ac_status); } >/dev/null && {
15118 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15119 test ! -s conftest.err
15121 ac_header_preproc=yes
15123 echo "$as_me: failed program was
:" >&5
15124 sed 's/^/| /' conftest.$ac_ext >&5
15126 ac_header_preproc=no
15129 rm -f conftest.err conftest.$ac_ext
15130 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15131 echo "${ECHO_T}$ac_header_preproc" >&6; }
15133 # So? What about this header?
15134 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15136 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15137 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15138 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15139 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15140 ac_header_preproc=yes
15143 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15144 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15145 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15146 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15147 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15148 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15149 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15150 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15151 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15152 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15153 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15154 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15158 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15159 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15160 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15161 echo $ECHO_N "(cached
) $ECHO_C" >&6
15163 eval "$as_ac_Header=\
$ac_header_preproc"
15165 ac_res=`eval echo '${'$as_ac_Header'}'`
15166 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15167 echo "${ECHO_T}$ac_res" >&6; }
15170 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15171 cat >>confdefs.h <<_ACEOF
15172 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15249 for ac_func in gethostname getdomainname dup2 \
15250 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15251 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15252 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15253 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15254 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15255 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15256 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15257 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15259 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15260 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15261 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15262 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15263 echo $ECHO_N "(cached
) $ECHO_C" >&6
15265 cat >conftest.$ac_ext <<_ACEOF
15268 cat confdefs.h >>conftest.$ac_ext
15269 cat >>conftest.$ac_ext <<_ACEOF
15270 /* end confdefs.h. */
15271 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15272 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15273 #define $ac_func innocuous_$ac_func
15275 /* System header to define __stub macros and hopefully few prototypes,
15276 which can conflict with char $ac_func (); below.
15277 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15278 <limits.h> exists even on freestanding compilers. */
15281 # include <limits.h>
15283 # include <assert.h>
15288 /* Override any GCC internal prototype to avoid an error.
15289 Use char because int might match the return type of a GCC
15290 builtin and then its argument prototype would still apply. */
15295 /* The GNU C library defines this for functions which it implements
15296 to always fail with ENOSYS. Some functions are actually named
15297 something starting with __ and the normal name is an alias. */
15298 #if defined __stub_$ac_func || defined __stub___$ac_func
15305 return $ac_func ();
15310 rm -f conftest.$ac_objext conftest$ac_exeext
15311 if { (ac_try="$ac_link"
15312 case "(($ac_try" in
15313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15314 *) ac_try_echo=$ac_try;;
15316 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15317 (eval "$ac_link") 2>conftest.er1
15319 grep -v '^ *+' conftest.er1 >conftest.err
15321 cat conftest.err >&5
15322 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15323 (exit $ac_status); } && {
15324 test -z "$ac_c_werror_flag" ||
15325 test ! -s conftest.err
15326 } && test -s conftest$ac_exeext &&
15327 $as_test_x conftest$ac_exeext; then
15328 eval "$as_ac_var=yes"
15330 echo "$as_me: failed program was
:" >&5
15331 sed 's/^/| /' conftest.$ac_ext >&5
15333 eval "$as_ac_var=no
"
15336 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15337 conftest$ac_exeext conftest.$ac_ext
15339 ac_res=`eval echo '${'$as_ac_var'}'`
15340 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15341 echo "${ECHO_T}$ac_res" >&6; }
15342 if test `eval echo '${'$as_ac_var'}'` = yes; then
15343 cat >>confdefs.h <<_ACEOF
15344 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15352 for ac_header in sys/un.h
15354 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15355 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15356 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15357 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15358 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15359 echo $ECHO_N "(cached
) $ECHO_C" >&6
15361 ac_res=`eval echo '${'$as_ac_Header'}'`
15362 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15363 echo "${ECHO_T}$ac_res" >&6; }
15365 # Is the header compilable?
15366 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15367 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15368 cat >conftest.$ac_ext <<_ACEOF
15371 cat confdefs.h >>conftest.$ac_ext
15372 cat >>conftest.$ac_ext <<_ACEOF
15373 /* end confdefs.h. */
15374 $ac_includes_default
15375 #include <$ac_header>
15377 rm -f conftest.$ac_objext
15378 if { (ac_try="$ac_compile"
15379 case "(($ac_try" in
15380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15381 *) ac_try_echo=$ac_try;;
15383 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15384 (eval "$ac_compile") 2>conftest.er1
15386 grep -v '^ *+' conftest.er1 >conftest.err
15388 cat conftest.err >&5
15389 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15390 (exit $ac_status); } && {
15391 test -z "$ac_c_werror_flag" ||
15392 test ! -s conftest.err
15393 } && test -s conftest.$ac_objext; then
15394 ac_header_compiler=yes
15396 echo "$as_me: failed program was
:" >&5
15397 sed 's/^/| /' conftest.$ac_ext >&5
15399 ac_header_compiler=no
15402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15403 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15404 echo "${ECHO_T}$ac_header_compiler" >&6; }
15406 # Is the header present?
15407 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15408 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15409 cat >conftest.$ac_ext <<_ACEOF
15412 cat confdefs.h >>conftest.$ac_ext
15413 cat >>conftest.$ac_ext <<_ACEOF
15414 /* end confdefs.h. */
15415 #include <$ac_header>
15417 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15418 case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15422 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15425 grep -v '^ *+' conftest.er1 >conftest.err
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15429 (exit $ac_status); } >/dev/null && {
15430 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15431 test ! -s conftest.err
15433 ac_header_preproc=yes
15435 echo "$as_me: failed program was
:" >&5
15436 sed 's/^/| /' conftest.$ac_ext >&5
15438 ac_header_preproc=no
15441 rm -f conftest.err conftest.$ac_ext
15442 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15443 echo "${ECHO_T}$ac_header_preproc" >&6; }
15445 # So? What about this header?
15446 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15448 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15449 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15450 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15451 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15452 ac_header_preproc=yes
15455 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15456 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15457 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15458 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15459 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15460 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15461 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15462 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15463 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15464 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15465 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15466 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15470 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15471 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15472 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15473 echo $ECHO_N "(cached
) $ECHO_C" >&6
15475 eval "$as_ac_Header=\
$ac_header_preproc"
15477 ac_res=`eval echo '${'$as_ac_Header'}'`
15478 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15479 echo "${ECHO_T}$ac_res" >&6; }
15482 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15483 cat >>confdefs.h <<_ACEOF
15484 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15496 for ac_header in $ac_header_list
15498 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15499 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15500 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15501 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15502 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15503 echo $ECHO_N "(cached
) $ECHO_C" >&6
15505 ac_res=`eval echo '${'$as_ac_Header'}'`
15506 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15507 echo "${ECHO_T}$ac_res" >&6; }
15509 # Is the header compilable?
15510 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15511 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15512 cat >conftest.$ac_ext <<_ACEOF
15515 cat confdefs.h >>conftest.$ac_ext
15516 cat >>conftest.$ac_ext <<_ACEOF
15517 /* end confdefs.h. */
15518 $ac_includes_default
15519 #include <$ac_header>
15521 rm -f conftest.$ac_objext
15522 if { (ac_try="$ac_compile"
15523 case "(($ac_try" in
15524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15525 *) ac_try_echo=$ac_try;;
15527 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15528 (eval "$ac_compile") 2>conftest.er1
15530 grep -v '^ *+' conftest.er1 >conftest.err
15532 cat conftest.err >&5
15533 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15534 (exit $ac_status); } && {
15535 test -z "$ac_c_werror_flag" ||
15536 test ! -s conftest.err
15537 } && test -s conftest.$ac_objext; then
15538 ac_header_compiler=yes
15540 echo "$as_me: failed program was
:" >&5
15541 sed 's/^/| /' conftest.$ac_ext >&5
15543 ac_header_compiler=no
15546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15547 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15548 echo "${ECHO_T}$ac_header_compiler" >&6; }
15550 # Is the header present?
15551 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15552 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15553 cat >conftest.$ac_ext <<_ACEOF
15556 cat confdefs.h >>conftest.$ac_ext
15557 cat >>conftest.$ac_ext <<_ACEOF
15558 /* end confdefs.h. */
15559 #include <$ac_header>
15561 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15562 case "(($ac_try" in
15563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15564 *) ac_try_echo=$ac_try;;
15566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15567 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15569 grep -v '^ *+' conftest.er1 >conftest.err
15571 cat conftest.err >&5
15572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15573 (exit $ac_status); } >/dev/null && {
15574 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15575 test ! -s conftest.err
15577 ac_header_preproc=yes
15579 echo "$as_me: failed program was
:" >&5
15580 sed 's/^/| /' conftest.$ac_ext >&5
15582 ac_header_preproc=no
15585 rm -f conftest.err conftest.$ac_ext
15586 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15587 echo "${ECHO_T}$ac_header_preproc" >&6; }
15589 # So? What about this header?
15590 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15592 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15593 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15594 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15595 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15596 ac_header_preproc=yes
15599 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15600 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15601 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15602 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15603 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15604 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15605 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15606 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15607 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15608 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15609 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15610 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15614 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15615 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15616 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15617 echo $ECHO_N "(cached
) $ECHO_C" >&6
15619 eval "$as_ac_Header=\
$ac_header_preproc"
15621 ac_res=`eval echo '${'$as_ac_Header'}'`
15622 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15623 echo "${ECHO_T}$ac_res" >&6; }
15626 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15627 cat >>confdefs.h <<_ACEOF
15628 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15643 for ac_func in $ac_func_list
15645 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15646 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15647 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15648 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15649 echo $ECHO_N "(cached
) $ECHO_C" >&6
15651 cat >conftest.$ac_ext <<_ACEOF
15654 cat confdefs.h >>conftest.$ac_ext
15655 cat >>conftest.$ac_ext <<_ACEOF
15656 /* end confdefs.h. */
15657 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15658 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15659 #define $ac_func innocuous_$ac_func
15661 /* System header to define __stub macros and hopefully few prototypes,
15662 which can conflict with char $ac_func (); below.
15663 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15664 <limits.h> exists even on freestanding compilers. */
15667 # include <limits.h>
15669 # include <assert.h>
15674 /* Override any GCC internal prototype to avoid an error.
15675 Use char because int might match the return type of a GCC
15676 builtin and then its argument prototype would still apply. */
15681 /* The GNU C library defines this for functions which it implements
15682 to always fail with ENOSYS. Some functions are actually named
15683 something starting with __ and the normal name is an alias. */
15684 #if defined __stub_$ac_func || defined __stub___$ac_func
15691 return $ac_func ();
15696 rm -f conftest.$ac_objext conftest$ac_exeext
15697 if { (ac_try="$ac_link"
15698 case "(($ac_try" in
15699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15700 *) ac_try_echo=$ac_try;;
15702 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15703 (eval "$ac_link") 2>conftest.er1
15705 grep -v '^ *+' conftest.er1 >conftest.err
15707 cat conftest.err >&5
15708 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15709 (exit $ac_status); } && {
15710 test -z "$ac_c_werror_flag" ||
15711 test ! -s conftest.err
15712 } && test -s conftest$ac_exeext &&
15713 $as_test_x conftest$ac_exeext; then
15714 eval "$as_ac_var=yes"
15716 echo "$as_me: failed program was
:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15719 eval "$as_ac_var=no
"
15722 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15723 conftest$ac_exeext conftest.$ac_ext
15725 ac_res=`eval echo '${'$as_ac_var'}'`
15726 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15727 echo "${ECHO_T}$ac_res" >&6; }
15728 if test `eval echo '${'$as_ac_var'}'` = yes; then
15729 cat >>confdefs.h <<_ACEOF
15730 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15752 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
15753 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
15754 if test "${ac_cv_func_working_mktime+set}" = set; then
15755 echo $ECHO_N "(cached
) $ECHO_C" >&6
15757 if test "$cross_compiling" = yes; then
15758 ac_cv_func_working_mktime=no
15760 cat >conftest.$ac_ext <<_ACEOF
15763 cat confdefs.h >>conftest.$ac_ext
15764 cat >>conftest.$ac_ext <<_ACEOF
15765 /* end confdefs.h. */
15766 /* Test program from Paul Eggert and Tony Leneis. */
15767 #ifdef TIME_WITH_SYS_TIME
15768 # include <sys/time.h>
15771 # ifdef HAVE_SYS_TIME_H
15772 # include <sys/time.h>
15778 #include <stdlib.h>
15780 #ifdef HAVE_UNISTD_H
15781 # include <unistd.h>
15785 # define alarm(X) /* empty */
15788 /* Work around redefinition to rpl_putenv by other config tests. */
15791 static time_t time_t_max;
15792 static time_t time_t_min;
15794 /* Values we'll use to set the TZ environment variable. */
15795 static char *tz_strings[] = {
15796 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
15797 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
15799 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15801 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15802 Based on a problem report from Andreas Jaeger. */
15804 spring_forward_gap ()
15806 /* glibc (up to about 1998-10-07) failed this test. */
15809 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15810 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15811 on systems that don't support the Olson extension, or don't have the
15812 full zoneinfo tables installed. */
15813 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15822 return mktime (&tm) != (time_t) -1;
15830 return ! (lt = localtime (&now)) || mktime (lt) == now;
15837 return (mktime_test1 (now)
15838 && mktime_test1 ((time_t) (time_t_max - now))
15839 && mktime_test1 ((time_t) (time_t_min + now)));
15845 /* Based on code from Ariel Faigon. */
15855 return tm.tm_mon == 2 && tm.tm_mday == 31;
15864 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15865 now = mktime (&tm);
15866 if (now != (time_t) -1)
15868 struct tm *lt = localtime (&now);
15870 && lt->tm_year == tm.tm_year
15871 && lt->tm_mon == tm.tm_mon
15872 && lt->tm_mday == tm.tm_mday
15873 && lt->tm_hour == tm.tm_hour
15874 && lt->tm_min == tm.tm_min
15875 && lt->tm_sec == tm.tm_sec
15876 && lt->tm_yday == tm.tm_yday
15877 && lt->tm_wday == tm.tm_wday
15878 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15879 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15888 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15889 ignoring leap seconds. */
15890 unsigned long int answer = 2527315200UL;
15894 tm.tm_year = 2050 - 1900;
15897 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15900 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15901 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15902 on systems that don't support the Olson extension, or don't have the
15903 full zoneinfo tables installed. */
15904 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15908 /* Check that the result is either a failure, or close enough
15909 to the correct answer that we can assume the discrepancy is
15910 due to leap seconds. */
15911 return (t == (time_t) -1
15912 || (0 < t && answer - 120 <= t && t <= answer + 120));
15921 /* This test makes some buggy mktime implementations loop.
15922 Give up after 60 seconds; a mktime slower than that
15923 isn't worth using anyway. */
15926 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15929 if ((time_t) -1 < 0)
15930 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15932 delta = time_t_max / 997; /* a suitable prime number */
15933 for (i = 0; i < N_STRINGS; i++)
15936 putenv (tz_strings[i]);
15938 for (t = 0; t <= time_t_max - delta; t += delta)
15939 if (! mktime_test (t))
15941 if (! (mktime_test ((time_t) 1)
15942 && mktime_test ((time_t) (60 * 60))
15943 && mktime_test ((time_t) (60 * 60 * 24))))
15946 for (j = 1; 0 < j; j *= 2)
15947 if (! bigtime_test (j))
15949 if (! bigtime_test (j - 1))
15952 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15955 rm -f conftest$ac_exeext
15956 if { (ac_try="$ac_link"
15957 case "(($ac_try" in
15958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15959 *) ac_try_echo=$ac_try;;
15961 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15962 (eval "$ac_link") 2>&5
15964 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15965 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15966 { (case "(($ac_try" in
15967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15968 *) ac_try_echo=$ac_try;;
15970 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15971 (eval "$ac_try") 2>&5
15973 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15974 (exit $ac_status); }; }; then
15975 ac_cv_func_working_mktime=yes
15977 echo "$as_me: program exited with status
$ac_status" >&5
15978 echo "$as_me: failed program was
:" >&5
15979 sed 's/^/| /' conftest.$ac_ext >&5
15981 ( exit $ac_status )
15982 ac_cv_func_working_mktime=no
15984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15989 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
15990 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15991 if test $ac_cv_func_working_mktime = no; then
15992 case " $LIBOBJS " in
15993 *" mktime.
$ac_objext "* ) ;;
15994 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16000 if test "$ac_cv_func_working_mktime" = no; then
16002 cat >>confdefs.h <<\_ACEOF
16003 #define BROKEN_MKTIME 1
16008 ac_have_func=no # yes means we've found a way to get the load average.
16010 # Make sure getloadavg.c is where it belongs, at configure-time.
16011 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16012 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16013 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16014 { (exit 1); exit 1; }; }
16018 # Check for getloadavg, but be sure not to touch the cache variable.
16019 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16020 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16021 if test "${ac_cv_func_getloadavg+set}" = set; then
16022 echo $ECHO_N "(cached
) $ECHO_C" >&6
16024 cat >conftest.$ac_ext <<_ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16030 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16032 #define getloadavg innocuous_getloadavg
16034 /* System header to define __stub macros and hopefully few prototypes,
16035 which can conflict with char getloadavg (); below.
16036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16037 <limits.h> exists even on freestanding compilers. */
16040 # include <limits.h>
16042 # include <assert.h>
16047 /* Override any GCC internal prototype to avoid an error.
16048 Use char because int might match the return type of a GCC
16049 builtin and then its argument prototype would still apply. */
16053 char getloadavg ();
16054 /* The GNU C library defines this for functions which it implements
16055 to always fail with ENOSYS. Some functions are actually named
16056 something starting with __ and the normal name is an alias. */
16057 #if defined __stub_getloadavg || defined __stub___getloadavg
16064 return getloadavg ();
16069 rm -f conftest.$ac_objext conftest$ac_exeext
16070 if { (ac_try="$ac_link"
16071 case "(($ac_try" in
16072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16073 *) ac_try_echo=$ac_try;;
16075 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16076 (eval "$ac_link") 2>conftest.er1
16078 grep -v '^ *+' conftest.er1 >conftest.err
16080 cat conftest.err >&5
16081 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16082 (exit $ac_status); } && {
16083 test -z "$ac_c_werror_flag" ||
16084 test ! -s conftest.err
16085 } && test -s conftest$ac_exeext &&
16086 $as_test_x conftest$ac_exeext; then
16087 ac_cv_func_getloadavg=yes
16089 echo "$as_me: failed program was
:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16092 ac_cv_func_getloadavg=no
16095 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16096 conftest$ac_exeext conftest.$ac_ext
16098 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16099 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16100 if test $ac_cv_func_getloadavg = yes; then
16105 ) && ac_have_func=yes
16107 # On HPUX9, an unprivileged user can get load averages through this function.
16109 for ac_func in pstat_getdynamic
16111 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16112 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16113 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16114 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16115 echo $ECHO_N "(cached
) $ECHO_C" >&6
16117 cat >conftest.$ac_ext <<_ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16123 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16124 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16125 #define $ac_func innocuous_$ac_func
16127 /* System header to define __stub macros and hopefully few prototypes,
16128 which can conflict with char $ac_func (); below.
16129 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16130 <limits.h> exists even on freestanding compilers. */
16133 # include <limits.h>
16135 # include <assert.h>
16140 /* Override any GCC internal prototype to avoid an error.
16141 Use char because int might match the return type of a GCC
16142 builtin and then its argument prototype would still apply. */
16147 /* The GNU C library defines this for functions which it implements
16148 to always fail with ENOSYS. Some functions are actually named
16149 something starting with __ and the normal name is an alias. */
16150 #if defined __stub_$ac_func || defined __stub___$ac_func
16157 return $ac_func ();
16162 rm -f conftest.$ac_objext conftest$ac_exeext
16163 if { (ac_try="$ac_link"
16164 case "(($ac_try" in
16165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16166 *) ac_try_echo=$ac_try;;
16168 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16169 (eval "$ac_link") 2>conftest.er1
16171 grep -v '^ *+' conftest.er1 >conftest.err
16173 cat conftest.err >&5
16174 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16175 (exit $ac_status); } && {
16176 test -z "$ac_c_werror_flag" ||
16177 test ! -s conftest.err
16178 } && test -s conftest$ac_exeext &&
16179 $as_test_x conftest$ac_exeext; then
16180 eval "$as_ac_var=yes"
16182 echo "$as_me: failed program was
:" >&5
16183 sed 's/^/| /' conftest.$ac_ext >&5
16185 eval "$as_ac_var=no
"
16188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16189 conftest$ac_exeext conftest.$ac_ext
16191 ac_res=`eval echo '${'$as_ac_var'}'`
16192 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16193 echo "${ECHO_T}$ac_res" >&6; }
16194 if test `eval echo '${'$as_ac_var'}'` = yes; then
16195 cat >>confdefs.h <<_ACEOF
16196 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16203 # Solaris has libkstat which does not require root.
16205 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16206 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16207 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16208 echo $ECHO_N "(cached
) $ECHO_C" >&6
16210 ac_check_lib_save_LIBS=$LIBS
16211 LIBS="-lkstat $LIBS"
16212 cat >conftest.$ac_ext <<_ACEOF
16215 cat confdefs.h >>conftest.$ac_ext
16216 cat >>conftest.$ac_ext <<_ACEOF
16217 /* end confdefs.h. */
16219 /* Override any GCC internal prototype to avoid an error.
16220 Use char because int might match the return type of a GCC
16221 builtin and then its argument prototype would still apply. */
16225 char kstat_open ();
16229 return kstat_open ();
16234 rm -f conftest.$ac_objext conftest$ac_exeext
16235 if { (ac_try="$ac_link"
16236 case "(($ac_try" in
16237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16238 *) ac_try_echo=$ac_try;;
16240 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16241 (eval "$ac_link") 2>conftest.er1
16243 grep -v '^ *+' conftest.er1 >conftest.err
16245 cat conftest.err >&5
16246 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16247 (exit $ac_status); } && {
16248 test -z "$ac_c_werror_flag" ||
16249 test ! -s conftest.err
16250 } && test -s conftest$ac_exeext &&
16251 $as_test_x conftest$ac_exeext; then
16252 ac_cv_lib_kstat_kstat_open=yes
16254 echo "$as_me: failed program was
:" >&5
16255 sed 's/^/| /' conftest.$ac_ext >&5
16257 ac_cv_lib_kstat_kstat_open=no
16260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16261 conftest$ac_exeext conftest.$ac_ext
16262 LIBS=$ac_check_lib_save_LIBS
16264 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16265 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16266 if test $ac_cv_lib_kstat_kstat_open = yes; then
16267 cat >>confdefs.h <<_ACEOF
16268 #define HAVE_LIBKSTAT 1
16271 LIBS="-lkstat $LIBS"
16275 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16277 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16278 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16279 # to get the right answer into the cache.
16280 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16281 if test $ac_have_func = no; then
16282 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16283 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16284 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16285 echo $ECHO_N "(cached
) $ECHO_C" >&6
16287 ac_check_lib_save_LIBS=$LIBS
16289 cat >conftest.$ac_ext <<_ACEOF
16292 cat confdefs.h >>conftest.$ac_ext
16293 cat >>conftest.$ac_ext <<_ACEOF
16294 /* end confdefs.h. */
16296 /* Override any GCC internal prototype to avoid an error.
16297 Use char because int might match the return type of a GCC
16298 builtin and then its argument prototype would still apply. */
16306 return elf_begin ();
16311 rm -f conftest.$ac_objext conftest$ac_exeext
16312 if { (ac_try="$ac_link"
16313 case "(($ac_try" in
16314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16315 *) ac_try_echo=$ac_try;;
16317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16318 (eval "$ac_link") 2>conftest.er1
16320 grep -v '^ *+' conftest.er1 >conftest.err
16322 cat conftest.err >&5
16323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16324 (exit $ac_status); } && {
16325 test -z "$ac_c_werror_flag" ||
16326 test ! -s conftest.err
16327 } && test -s conftest$ac_exeext &&
16328 $as_test_x conftest$ac_exeext; then
16329 ac_cv_lib_elf_elf_begin=yes
16331 echo "$as_me: failed program was
:" >&5
16332 sed 's/^/| /' conftest.$ac_ext >&5
16334 ac_cv_lib_elf_elf_begin=no
16337 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16338 conftest$ac_exeext conftest.$ac_ext
16339 LIBS=$ac_check_lib_save_LIBS
16341 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16342 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16343 if test $ac_cv_lib_elf_elf_begin = yes; then
16348 if test $ac_have_func = no; then
16349 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16350 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16351 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16352 echo $ECHO_N "(cached
) $ECHO_C" >&6
16354 ac_check_lib_save_LIBS=$LIBS
16356 cat >conftest.$ac_ext <<_ACEOF
16359 cat confdefs.h >>conftest.$ac_ext
16360 cat >>conftest.$ac_ext <<_ACEOF
16361 /* end confdefs.h. */
16363 /* Override any GCC internal prototype to avoid an error.
16364 Use char because int might match the return type of a GCC
16365 builtin and then its argument prototype would still apply. */
16373 return kvm_open ();
16378 rm -f conftest.$ac_objext conftest$ac_exeext
16379 if { (ac_try="$ac_link"
16380 case "(($ac_try" in
16381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16382 *) ac_try_echo=$ac_try;;
16384 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16385 (eval "$ac_link") 2>conftest.er1
16387 grep -v '^ *+' conftest.er1 >conftest.err
16389 cat conftest.err >&5
16390 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16391 (exit $ac_status); } && {
16392 test -z "$ac_c_werror_flag" ||
16393 test ! -s conftest.err
16394 } && test -s conftest$ac_exeext &&
16395 $as_test_x conftest$ac_exeext; then
16396 ac_cv_lib_kvm_kvm_open=yes
16398 echo "$as_me: failed program was
:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16401 ac_cv_lib_kvm_kvm_open=no
16404 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16405 conftest$ac_exeext conftest.$ac_ext
16406 LIBS=$ac_check_lib_save_LIBS
16408 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16409 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16410 if test $ac_cv_lib_kvm_kvm_open = yes; then
16414 # Check for the 4.4BSD definition of getloadavg.
16415 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16416 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16417 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16418 echo $ECHO_N "(cached
) $ECHO_C" >&6
16420 ac_check_lib_save_LIBS=$LIBS
16421 LIBS="-lutil $LIBS"
16422 cat >conftest.$ac_ext <<_ACEOF
16425 cat confdefs.h >>conftest.$ac_ext
16426 cat >>conftest.$ac_ext <<_ACEOF
16427 /* end confdefs.h. */
16429 /* Override any GCC internal prototype to avoid an error.
16430 Use char because int might match the return type of a GCC
16431 builtin and then its argument prototype would still apply. */
16435 char getloadavg ();
16439 return getloadavg ();
16444 rm -f conftest.$ac_objext conftest$ac_exeext
16445 if { (ac_try="$ac_link"
16446 case "(($ac_try" in
16447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16448 *) ac_try_echo=$ac_try;;
16450 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16451 (eval "$ac_link") 2>conftest.er1
16453 grep -v '^ *+' conftest.er1 >conftest.err
16455 cat conftest.err >&5
16456 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16457 (exit $ac_status); } && {
16458 test -z "$ac_c_werror_flag" ||
16459 test ! -s conftest.err
16460 } && test -s conftest$ac_exeext &&
16461 $as_test_x conftest$ac_exeext; then
16462 ac_cv_lib_util_getloadavg=yes
16464 echo "$as_me: failed program was
:" >&5
16465 sed 's/^/| /' conftest.$ac_ext >&5
16467 ac_cv_lib_util_getloadavg=no
16470 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16471 conftest$ac_exeext conftest.$ac_ext
16472 LIBS=$ac_check_lib_save_LIBS
16474 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16475 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16476 if test $ac_cv_lib_util_getloadavg = yes; then
16477 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16482 if test $ac_have_func = no; then
16483 # There is a commonly available library for RS/6000 AIX.
16484 # Since it is not a standard part of AIX, it might be installed locally.
16485 ac_getloadavg_LIBS=$LIBS
16486 LIBS="-L/usr
/local
/lib
$LIBS"
16487 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16488 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16489 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16490 echo $ECHO_N "(cached
) $ECHO_C" >&6
16492 ac_check_lib_save_LIBS=$LIBS
16493 LIBS="-lgetloadavg $LIBS"
16494 cat >conftest.$ac_ext <<_ACEOF
16497 cat confdefs.h >>conftest.$ac_ext
16498 cat >>conftest.$ac_ext <<_ACEOF
16499 /* end confdefs.h. */
16501 /* Override any GCC internal prototype to avoid an error.
16502 Use char because int might match the return type of a GCC
16503 builtin and then its argument prototype would still apply. */
16507 char getloadavg ();
16511 return getloadavg ();
16516 rm -f conftest.$ac_objext conftest$ac_exeext
16517 if { (ac_try="$ac_link"
16518 case "(($ac_try" in
16519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16520 *) ac_try_echo=$ac_try;;
16522 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16523 (eval "$ac_link") 2>conftest.er1
16525 grep -v '^ *+' conftest.er1 >conftest.err
16527 cat conftest.err >&5
16528 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16529 (exit $ac_status); } && {
16530 test -z "$ac_c_werror_flag" ||
16531 test ! -s conftest.err
16532 } && test -s conftest$ac_exeext &&
16533 $as_test_x conftest$ac_exeext; then
16534 ac_cv_lib_getloadavg_getloadavg=yes
16536 echo "$as_me: failed program was
:" >&5
16537 sed 's/^/| /' conftest.$ac_ext >&5
16539 ac_cv_lib_getloadavg_getloadavg=no
16542 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16543 conftest$ac_exeext conftest.$ac_ext
16544 LIBS=$ac_check_lib_save_LIBS
16546 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16547 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16548 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16549 LIBS="-lgetloadavg $LIBS"
16551 LIBS=$ac_getloadavg_LIBS
16556 # Make sure it is really in the library, if we think we found it,
16557 # otherwise set up the replacement function.
16559 for ac_func in getloadavg
16561 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16562 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16563 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16564 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16565 echo $ECHO_N "(cached
) $ECHO_C" >&6
16567 cat >conftest.$ac_ext <<_ACEOF
16570 cat confdefs.h >>conftest.$ac_ext
16571 cat >>conftest.$ac_ext <<_ACEOF
16572 /* end confdefs.h. */
16573 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16574 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16575 #define $ac_func innocuous_$ac_func
16577 /* System header to define __stub macros and hopefully few prototypes,
16578 which can conflict with char $ac_func (); below.
16579 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16580 <limits.h> exists even on freestanding compilers. */
16583 # include <limits.h>
16585 # include <assert.h>
16590 /* Override any GCC internal prototype to avoid an error.
16591 Use char because int might match the return type of a GCC
16592 builtin and then its argument prototype would still apply. */
16597 /* The GNU C library defines this for functions which it implements
16598 to always fail with ENOSYS. Some functions are actually named
16599 something starting with __ and the normal name is an alias. */
16600 #if defined __stub_$ac_func || defined __stub___$ac_func
16607 return $ac_func ();
16612 rm -f conftest.$ac_objext conftest$ac_exeext
16613 if { (ac_try="$ac_link"
16614 case "(($ac_try" in
16615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16616 *) ac_try_echo=$ac_try;;
16618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16619 (eval "$ac_link") 2>conftest.er1
16621 grep -v '^ *+' conftest.er1 >conftest.err
16623 cat conftest.err >&5
16624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16625 (exit $ac_status); } && {
16626 test -z "$ac_c_werror_flag" ||
16627 test ! -s conftest.err
16628 } && test -s conftest$ac_exeext &&
16629 $as_test_x conftest$ac_exeext; then
16630 eval "$as_ac_var=yes"
16632 echo "$as_me: failed program was
:" >&5
16633 sed 's/^/| /' conftest.$ac_ext >&5
16635 eval "$as_ac_var=no
"
16638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16639 conftest$ac_exeext conftest.$ac_ext
16641 ac_res=`eval echo '${'$as_ac_var'}'`
16642 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16643 echo "${ECHO_T}$ac_res" >&6; }
16644 if test `eval echo '${'$as_ac_var'}'` = yes; then
16645 cat >>confdefs.h <<_ACEOF
16646 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16650 case " $LIBOBJS " in
16651 *" getloadavg.
$ac_objext "* ) ;;
16652 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16657 cat >>confdefs.h <<\_ACEOF
16658 #define C_GETLOADAVG 1
16661 # Figure out what our getloadavg.c needs.
16663 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16664 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16665 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16666 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16667 echo $ECHO_N "(cached
) $ECHO_C" >&6
16669 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16670 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16672 # Is the header compilable?
16673 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16674 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16675 cat >conftest.$ac_ext <<_ACEOF
16678 cat confdefs.h >>conftest.$ac_ext
16679 cat >>conftest.$ac_ext <<_ACEOF
16680 /* end confdefs.h. */
16681 $ac_includes_default
16682 #include <sys/dg_sys_info.h>
16684 rm -f conftest.$ac_objext
16685 if { (ac_try="$ac_compile"
16686 case "(($ac_try" in
16687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16688 *) ac_try_echo=$ac_try;;
16690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16691 (eval "$ac_compile") 2>conftest.er1
16693 grep -v '^ *+' conftest.er1 >conftest.err
16695 cat conftest.err >&5
16696 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16697 (exit $ac_status); } && {
16698 test -z "$ac_c_werror_flag" ||
16699 test ! -s conftest.err
16700 } && test -s conftest.$ac_objext; then
16701 ac_header_compiler=yes
16703 echo "$as_me: failed program was
:" >&5
16704 sed 's/^/| /' conftest.$ac_ext >&5
16706 ac_header_compiler=no
16709 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16710 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16711 echo "${ECHO_T}$ac_header_compiler" >&6; }
16713 # Is the header present?
16714 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16715 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16716 cat >conftest.$ac_ext <<_ACEOF
16719 cat confdefs.h >>conftest.$ac_ext
16720 cat >>conftest.$ac_ext <<_ACEOF
16721 /* end confdefs.h. */
16722 #include <sys/dg_sys_info.h>
16724 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16725 case "(($ac_try" in
16726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16727 *) ac_try_echo=$ac_try;;
16729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16730 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16732 grep -v '^ *+' conftest.er1 >conftest.err
16734 cat conftest.err >&5
16735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16736 (exit $ac_status); } >/dev/null && {
16737 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16738 test ! -s conftest.err
16740 ac_header_preproc=yes
16742 echo "$as_me: failed program was
:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16745 ac_header_preproc=no
16748 rm -f conftest.err conftest.$ac_ext
16749 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16750 echo "${ECHO_T}$ac_header_preproc" >&6; }
16752 # So? What about this header?
16753 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16755 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16756 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16757 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
16758 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
16759 ac_header_preproc=yes
16762 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
16763 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
16764 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
16765 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
16766 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
16767 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
16768 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16769 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16770 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
16771 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
16772 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
16773 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
16777 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16778 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16779 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16780 echo $ECHO_N "(cached
) $ECHO_C" >&6
16782 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16784 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16785 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16788 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16791 cat >>confdefs.h <<\_ACEOF
16796 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
16797 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
16798 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16799 echo $ECHO_N "(cached
) $ECHO_C" >&6
16801 ac_check_lib_save_LIBS=$LIBS
16803 cat >conftest.$ac_ext <<_ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16810 /* Override any GCC internal prototype to avoid an error.
16811 Use char because int might match the return type of a GCC
16812 builtin and then its argument prototype would still apply. */
16816 char dg_sys_info ();
16820 return dg_sys_info ();
16825 rm -f conftest.$ac_objext conftest$ac_exeext
16826 if { (ac_try="$ac_link"
16827 case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16831 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16832 (eval "$ac_link") 2>conftest.er1
16834 grep -v '^ *+' conftest.er1 >conftest.err
16836 cat conftest.err >&5
16837 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16838 (exit $ac_status); } && {
16839 test -z "$ac_c_werror_flag" ||
16840 test ! -s conftest.err
16841 } && test -s conftest$ac_exeext &&
16842 $as_test_x conftest$ac_exeext; then
16843 ac_cv_lib_dgc_dg_sys_info=yes
16845 echo "$as_me: failed program was
:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16848 ac_cv_lib_dgc_dg_sys_info=no
16851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16852 conftest$ac_exeext conftest.$ac_ext
16853 LIBS=$ac_check_lib_save_LIBS
16855 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
16856 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16857 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16858 cat >>confdefs.h <<_ACEOF
16859 #define HAVE_LIBDGC 1
16870 if test "${ac_cv_header_locale_h+set}" = set; then
16871 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16872 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16873 if test "${ac_cv_header_locale_h+set}" = set; then
16874 echo $ECHO_N "(cached
) $ECHO_C" >&6
16876 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16877 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16879 # Is the header compilable?
16880 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
16881 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
16882 cat >conftest.$ac_ext <<_ACEOF
16885 cat confdefs.h >>conftest.$ac_ext
16886 cat >>conftest.$ac_ext <<_ACEOF
16887 /* end confdefs.h. */
16888 $ac_includes_default
16889 #include <locale.h>
16891 rm -f conftest.$ac_objext
16892 if { (ac_try="$ac_compile"
16893 case "(($ac_try" in
16894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16895 *) ac_try_echo=$ac_try;;
16897 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16898 (eval "$ac_compile") 2>conftest.er1
16900 grep -v '^ *+' conftest.er1 >conftest.err
16902 cat conftest.err >&5
16903 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16904 (exit $ac_status); } && {
16905 test -z "$ac_c_werror_flag" ||
16906 test ! -s conftest.err
16907 } && test -s conftest.$ac_objext; then
16908 ac_header_compiler=yes
16910 echo "$as_me: failed program was
:" >&5
16911 sed 's/^/| /' conftest.$ac_ext >&5
16913 ac_header_compiler=no
16916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16917 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16918 echo "${ECHO_T}$ac_header_compiler" >&6; }
16920 # Is the header present?
16921 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
16922 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
16923 cat >conftest.$ac_ext <<_ACEOF
16926 cat confdefs.h >>conftest.$ac_ext
16927 cat >>conftest.$ac_ext <<_ACEOF
16928 /* end confdefs.h. */
16929 #include <locale.h>
16931 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16932 case "(($ac_try" in
16933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16934 *) ac_try_echo=$ac_try;;
16936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16937 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16939 grep -v '^ *+' conftest.er1 >conftest.err
16941 cat conftest.err >&5
16942 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16943 (exit $ac_status); } >/dev/null && {
16944 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16945 test ! -s conftest.err
16947 ac_header_preproc=yes
16949 echo "$as_me: failed program was
:" >&5
16950 sed 's/^/| /' conftest.$ac_ext >&5
16952 ac_header_preproc=no
16955 rm -f conftest.err conftest.$ac_ext
16956 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16957 echo "${ECHO_T}$ac_header_preproc" >&6; }
16959 # So? What about this header?
16960 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16962 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16963 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16964 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
16965 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
16966 ac_header_preproc=yes
16969 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
16970 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
16971 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
16972 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
16973 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
16974 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
16975 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16976 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16977 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
16978 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
16979 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
16980 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
16984 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16985 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16986 if test "${ac_cv_header_locale_h+set}" = set; then
16987 echo $ECHO_N "(cached
) $ECHO_C" >&6
16989 ac_cv_header_locale_h=$ac_header_preproc
16991 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16992 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16998 for ac_func in setlocale
17000 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17001 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17002 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17003 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17004 echo $ECHO_N "(cached
) $ECHO_C" >&6
17006 cat >conftest.$ac_ext <<_ACEOF
17009 cat confdefs.h >>conftest.$ac_ext
17010 cat >>conftest.$ac_ext <<_ACEOF
17011 /* end confdefs.h. */
17012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17014 #define $ac_func innocuous_$ac_func
17016 /* System header to define __stub macros and hopefully few prototypes,
17017 which can conflict with char $ac_func (); below.
17018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17019 <limits.h> exists even on freestanding compilers. */
17022 # include <limits.h>
17024 # include <assert.h>
17029 /* Override any GCC internal prototype to avoid an error.
17030 Use char because int might match the return type of a GCC
17031 builtin and then its argument prototype would still apply. */
17036 /* The GNU C library defines this for functions which it implements
17037 to always fail with ENOSYS. Some functions are actually named
17038 something starting with __ and the normal name is an alias. */
17039 #if defined __stub_$ac_func || defined __stub___$ac_func
17046 return $ac_func ();
17051 rm -f conftest.$ac_objext conftest$ac_exeext
17052 if { (ac_try="$ac_link"
17053 case "(($ac_try" in
17054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17055 *) ac_try_echo=$ac_try;;
17057 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17058 (eval "$ac_link") 2>conftest.er1
17060 grep -v '^ *+' conftest.er1 >conftest.err
17062 cat conftest.err >&5
17063 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17064 (exit $ac_status); } && {
17065 test -z "$ac_c_werror_flag" ||
17066 test ! -s conftest.err
17067 } && test -s conftest$ac_exeext &&
17068 $as_test_x conftest$ac_exeext; then
17069 eval "$as_ac_var=yes"
17071 echo "$as_me: failed program was
:" >&5
17072 sed 's/^/| /' conftest.$ac_ext >&5
17074 eval "$as_ac_var=no
"
17077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17078 conftest$ac_exeext conftest.$ac_ext
17080 ac_res=`eval echo '${'$as_ac_var'}'`
17081 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17082 echo "${ECHO_T}$ac_res" >&6; }
17083 if test `eval echo '${'$as_ac_var'}'` = yes; then
17084 cat >>confdefs.h <<_ACEOF
17085 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17092 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17093 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17094 # Irix 4.0.5F has the header but not the library.
17095 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17098 cat >>confdefs.h <<\_ACEOF
17104 if test $ac_have_func = no; then
17105 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17106 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17107 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17108 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17109 echo $ECHO_N "(cached
) $ECHO_C" >&6
17111 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17112 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17114 # Is the header compilable?
17115 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17116 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17117 cat >conftest.$ac_ext <<_ACEOF
17120 cat confdefs.h >>conftest.$ac_ext
17121 cat >>conftest.$ac_ext <<_ACEOF
17122 /* end confdefs.h. */
17123 $ac_includes_default
17124 #include <inq_stats/cpustats.h>
17126 rm -f conftest.$ac_objext
17127 if { (ac_try="$ac_compile"
17128 case "(($ac_try" in
17129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17130 *) ac_try_echo=$ac_try;;
17132 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17133 (eval "$ac_compile") 2>conftest.er1
17135 grep -v '^ *+' conftest.er1 >conftest.err
17137 cat conftest.err >&5
17138 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17139 (exit $ac_status); } && {
17140 test -z "$ac_c_werror_flag" ||
17141 test ! -s conftest.err
17142 } && test -s conftest.$ac_objext; then
17143 ac_header_compiler=yes
17145 echo "$as_me: failed program was
:" >&5
17146 sed 's/^/| /' conftest.$ac_ext >&5
17148 ac_header_compiler=no
17151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17152 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17153 echo "${ECHO_T}$ac_header_compiler" >&6; }
17155 # Is the header present?
17156 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17157 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17158 cat >conftest.$ac_ext <<_ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17164 #include <inq_stats/cpustats.h>
17166 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17167 case "(($ac_try" in
17168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17169 *) ac_try_echo=$ac_try;;
17171 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17172 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17174 grep -v '^ *+' conftest.er1 >conftest.err
17176 cat conftest.err >&5
17177 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17178 (exit $ac_status); } >/dev/null && {
17179 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17180 test ! -s conftest.err
17182 ac_header_preproc=yes
17184 echo "$as_me: failed program was
:" >&5
17185 sed 's/^/| /' conftest.$ac_ext >&5
17187 ac_header_preproc=no
17190 rm -f conftest.err conftest.$ac_ext
17191 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17192 echo "${ECHO_T}$ac_header_preproc" >&6; }
17194 # So? What about this header?
17195 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17197 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17198 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17199 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17200 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17201 ac_header_preproc=yes
17204 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17205 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17206 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17207 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17208 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17209 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17210 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17211 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17212 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17213 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17214 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17215 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17219 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17220 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17221 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17222 echo $ECHO_N "(cached
) $ECHO_C" >&6
17224 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17226 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17227 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17230 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17233 cat >>confdefs.h <<\_ACEOF
17238 cat >>confdefs.h <<\_ACEOF
17247 if test $ac_have_func = no; then
17248 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17249 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17250 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17251 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17252 echo $ECHO_N "(cached
) $ECHO_C" >&6
17254 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17255 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17257 # Is the header compilable?
17258 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17259 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17260 cat >conftest.$ac_ext <<_ACEOF
17263 cat confdefs.h >>conftest.$ac_ext
17264 cat >>conftest.$ac_ext <<_ACEOF
17265 /* end confdefs.h. */
17266 $ac_includes_default
17267 #include <sys/cpustats.h>
17269 rm -f conftest.$ac_objext
17270 if { (ac_try="$ac_compile"
17271 case "(($ac_try" in
17272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17273 *) ac_try_echo=$ac_try;;
17275 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17276 (eval "$ac_compile") 2>conftest.er1
17278 grep -v '^ *+' conftest.er1 >conftest.err
17280 cat conftest.err >&5
17281 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17282 (exit $ac_status); } && {
17283 test -z "$ac_c_werror_flag" ||
17284 test ! -s conftest.err
17285 } && test -s conftest.$ac_objext; then
17286 ac_header_compiler=yes
17288 echo "$as_me: failed program was
:" >&5
17289 sed 's/^/| /' conftest.$ac_ext >&5
17291 ac_header_compiler=no
17294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17295 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17296 echo "${ECHO_T}$ac_header_compiler" >&6; }
17298 # Is the header present?
17299 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17300 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17301 cat >conftest.$ac_ext <<_ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h. */
17307 #include <sys/cpustats.h>
17309 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17310 case "(($ac_try" in
17311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17312 *) ac_try_echo=$ac_try;;
17314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17315 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17317 grep -v '^ *+' conftest.er1 >conftest.err
17319 cat conftest.err >&5
17320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17321 (exit $ac_status); } >/dev/null && {
17322 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17323 test ! -s conftest.err
17325 ac_header_preproc=yes
17327 echo "$as_me: failed program was
:" >&5
17328 sed 's/^/| /' conftest.$ac_ext >&5
17330 ac_header_preproc=no
17333 rm -f conftest.err conftest.$ac_ext
17334 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17335 echo "${ECHO_T}$ac_header_preproc" >&6; }
17337 # So? What about this header?
17338 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17340 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17341 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17342 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17343 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17344 ac_header_preproc=yes
17347 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17348 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17349 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17350 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17351 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17352 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17353 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17354 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17355 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17356 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17357 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17358 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17362 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17363 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17364 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17365 echo $ECHO_N "(cached
) $ECHO_C" >&6
17367 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17369 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17370 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17373 if test $ac_cv_header_sys_cpustats_h = yes; then
17374 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17383 if test $ac_have_func = no; then
17385 for ac_header in mach/mach.h
17387 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17388 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17389 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17390 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17391 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17392 echo $ECHO_N "(cached
) $ECHO_C" >&6
17394 ac_res=`eval echo '${'$as_ac_Header'}'`
17395 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17396 echo "${ECHO_T}$ac_res" >&6; }
17398 # Is the header compilable?
17399 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17400 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17401 cat >conftest.$ac_ext <<_ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17407 $ac_includes_default
17408 #include <$ac_header>
17410 rm -f conftest.$ac_objext
17411 if { (ac_try="$ac_compile"
17412 case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17416 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_compile") 2>conftest.er1
17419 grep -v '^ *+' conftest.er1 >conftest.err
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17423 (exit $ac_status); } && {
17424 test -z "$ac_c_werror_flag" ||
17425 test ! -s conftest.err
17426 } && test -s conftest.$ac_objext; then
17427 ac_header_compiler=yes
17429 echo "$as_me: failed program was
:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17432 ac_header_compiler=no
17435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17436 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17437 echo "${ECHO_T}$ac_header_compiler" >&6; }
17439 # Is the header present?
17440 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17441 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17442 cat >conftest.$ac_ext <<_ACEOF
17445 cat confdefs.h >>conftest.$ac_ext
17446 cat >>conftest.$ac_ext <<_ACEOF
17447 /* end confdefs.h. */
17448 #include <$ac_header>
17450 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17451 case "(($ac_try" in
17452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17453 *) ac_try_echo=$ac_try;;
17455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17456 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17458 grep -v '^ *+' conftest.er1 >conftest.err
17460 cat conftest.err >&5
17461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17462 (exit $ac_status); } >/dev/null && {
17463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17464 test ! -s conftest.err
17466 ac_header_preproc=yes
17468 echo "$as_me: failed program was
:" >&5
17469 sed 's/^/| /' conftest.$ac_ext >&5
17471 ac_header_preproc=no
17474 rm -f conftest.err conftest.$ac_ext
17475 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17476 echo "${ECHO_T}$ac_header_preproc" >&6; }
17478 # So? What about this header?
17479 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17481 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17482 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17483 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17484 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17485 ac_header_preproc=yes
17488 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17489 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17490 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17491 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17492 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17493 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17494 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17495 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17496 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17497 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17498 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17499 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17503 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17504 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17505 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17506 echo $ECHO_N "(cached
) $ECHO_C" >&6
17508 eval "$as_ac_Header=\
$ac_header_preproc"
17510 ac_res=`eval echo '${'$as_ac_Header'}'`
17511 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17512 echo "${ECHO_T}$ac_res" >&6; }
17515 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17516 cat >>confdefs.h <<_ACEOF
17517 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17527 for ac_header in nlist.h
17529 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17530 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17531 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17532 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17533 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17534 echo $ECHO_N "(cached
) $ECHO_C" >&6
17536 ac_res=`eval echo '${'$as_ac_Header'}'`
17537 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17538 echo "${ECHO_T}$ac_res" >&6; }
17540 # Is the header compilable?
17541 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17542 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17543 cat >conftest.$ac_ext <<_ACEOF
17546 cat confdefs.h >>conftest.$ac_ext
17547 cat >>conftest.$ac_ext <<_ACEOF
17548 /* end confdefs.h. */
17549 $ac_includes_default
17550 #include <$ac_header>
17552 rm -f conftest.$ac_objext
17553 if { (ac_try="$ac_compile"
17554 case "(($ac_try" in
17555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17556 *) ac_try_echo=$ac_try;;
17558 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17559 (eval "$ac_compile") 2>conftest.er1
17561 grep -v '^ *+' conftest.er1 >conftest.err
17563 cat conftest.err >&5
17564 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17565 (exit $ac_status); } && {
17566 test -z "$ac_c_werror_flag" ||
17567 test ! -s conftest.err
17568 } && test -s conftest.$ac_objext; then
17569 ac_header_compiler=yes
17571 echo "$as_me: failed program was
:" >&5
17572 sed 's/^/| /' conftest.$ac_ext >&5
17574 ac_header_compiler=no
17577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17578 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17579 echo "${ECHO_T}$ac_header_compiler" >&6; }
17581 # Is the header present?
17582 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17583 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17584 cat >conftest.$ac_ext <<_ACEOF
17587 cat confdefs.h >>conftest.$ac_ext
17588 cat >>conftest.$ac_ext <<_ACEOF
17589 /* end confdefs.h. */
17590 #include <$ac_header>
17592 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17593 case "(($ac_try" in
17594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17595 *) ac_try_echo=$ac_try;;
17597 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17598 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17600 grep -v '^ *+' conftest.er1 >conftest.err
17602 cat conftest.err >&5
17603 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17604 (exit $ac_status); } >/dev/null && {
17605 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17606 test ! -s conftest.err
17608 ac_header_preproc=yes
17610 echo "$as_me: failed program was
:" >&5
17611 sed 's/^/| /' conftest.$ac_ext >&5
17613 ac_header_preproc=no
17616 rm -f conftest.err conftest.$ac_ext
17617 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17618 echo "${ECHO_T}$ac_header_preproc" >&6; }
17620 # So? What about this header?
17621 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17623 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17624 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17625 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17626 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17627 ac_header_preproc=yes
17630 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17631 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17632 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17633 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17634 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17635 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17636 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17637 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17638 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17639 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17640 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17641 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17645 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17646 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17647 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17648 echo $ECHO_N "(cached
) $ECHO_C" >&6
17650 eval "$as_ac_Header=\
$ac_header_preproc"
17652 ac_res=`eval echo '${'$as_ac_Header'}'`
17653 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17654 echo "${ECHO_T}$ac_res" >&6; }
17657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17658 cat >>confdefs.h <<_ACEOF
17659 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17661 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17662 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17663 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17664 echo $ECHO_N "(cached
) $ECHO_C" >&6
17666 cat >conftest.$ac_ext <<_ACEOF
17669 cat confdefs.h >>conftest.$ac_ext
17670 cat >>conftest.$ac_ext <<_ACEOF
17671 /* end confdefs.h. */
17677 static struct nlist ac_aggr;
17678 if (ac_aggr.n_un.n_name)
17684 rm -f conftest.$ac_objext
17685 if { (ac_try="$ac_compile"
17686 case "(($ac_try" in
17687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17688 *) ac_try_echo=$ac_try;;
17690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17691 (eval "$ac_compile") 2>conftest.er1
17693 grep -v '^ *+' conftest.er1 >conftest.err
17695 cat conftest.err >&5
17696 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17697 (exit $ac_status); } && {
17698 test -z "$ac_c_werror_flag" ||
17699 test ! -s conftest.err
17700 } && test -s conftest.$ac_objext; then
17701 ac_cv_member_struct_nlist_n_un_n_name=yes
17703 echo "$as_me: failed program was
:" >&5
17704 sed 's/^/| /' conftest.$ac_ext >&5
17706 cat >conftest.$ac_ext <<_ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17717 static struct nlist ac_aggr;
17718 if (sizeof ac_aggr.n_un.n_name)
17724 rm -f conftest.$ac_objext
17725 if { (ac_try="$ac_compile"
17726 case "(($ac_try" in
17727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728 *) ac_try_echo=$ac_try;;
17730 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17731 (eval "$ac_compile") 2>conftest.er1
17733 grep -v '^ *+' conftest.er1 >conftest.err
17735 cat conftest.err >&5
17736 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17737 (exit $ac_status); } && {
17738 test -z "$ac_c_werror_flag" ||
17739 test ! -s conftest.err
17740 } && test -s conftest.$ac_objext; then
17741 ac_cv_member_struct_nlist_n_un_n_name=yes
17743 echo "$as_me: failed program was
:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17746 ac_cv_member_struct_nlist_n_un_n_name=no
17749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17754 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17755 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17756 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17758 cat >>confdefs.h <<_ACEOF
17759 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17763 cat >>confdefs.h <<\_ACEOF
17764 #define NLIST_NAME_UNION 1
17778 # Some definitions of getloadavg require that the program be installed setgid.
17779 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
17780 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
17781 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17782 echo $ECHO_N "(cached
) $ECHO_C" >&6
17784 cat >conftest.$ac_ext <<_ACEOF
17787 cat confdefs.h >>conftest.$ac_ext
17788 cat >>conftest.$ac_ext <<_ACEOF
17789 /* end confdefs.h. */
17790 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
17791 #ifdef LDAV_PRIVILEGED
17792 Yowza Am I SETGID yet
17795 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17796 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
17797 ac_cv_func_getloadavg_setgid=yes
17799 ac_cv_func_getloadavg_setgid=no
17804 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
17805 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17806 if test $ac_cv_func_getloadavg_setgid = yes; then
17809 cat >>confdefs.h <<\_ACEOF
17810 #define GETLOADAVG_PRIVILEGED 1
17817 if test $ac_cv_func_getloadavg_setgid = yes; then
17818 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
17819 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
17820 if test "${ac_cv_group_kmem+set}" = set; then
17821 echo $ECHO_N "(cached
) $ECHO_C" >&6
17823 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17824 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17825 # If we got an error (system does not support symlinks), try without -L.
17826 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17827 ac_cv_group_kmem=`echo $ac_ls_output \
17828 | sed -ne 's/[ ][ ]*/ /g;
17829 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17833 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
17834 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17835 KMEM_GROUP=$ac_cv_group_kmem
17837 if test "x
$ac_save_LIBS" = x; then
17838 GETLOADAVG_LIBS=$LIBS
17840 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
17846 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
17847 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
17848 if test "${ac_cv_sys_largefile_source+set}" = set; then
17849 echo $ECHO_N "(cached
) $ECHO_C" >&6
17852 cat >conftest.$ac_ext <<_ACEOF
17855 cat confdefs.h >>conftest.$ac_ext
17856 cat >>conftest.$ac_ext <<_ACEOF
17857 /* end confdefs.h. */
17862 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17867 rm -f conftest.$ac_objext conftest$ac_exeext
17868 if { (ac_try="$ac_link"
17869 case "(($ac_try" in
17870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17871 *) ac_try_echo=$ac_try;;
17873 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17874 (eval "$ac_link") 2>conftest.er1
17876 grep -v '^ *+' conftest.er1 >conftest.err
17878 cat conftest.err >&5
17879 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17880 (exit $ac_status); } && {
17881 test -z "$ac_c_werror_flag" ||
17882 test ! -s conftest.err
17883 } && test -s conftest$ac_exeext &&
17884 $as_test_x conftest$ac_exeext; then
17885 ac_cv_sys_largefile_source=no; break
17887 echo "$as_me: failed program was
:" >&5
17888 sed 's/^/| /' conftest.$ac_ext >&5
17893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17894 conftest$ac_exeext conftest.$ac_ext
17895 cat >conftest.$ac_ext <<_ACEOF
17898 cat confdefs.h >>conftest.$ac_ext
17899 cat >>conftest.$ac_ext <<_ACEOF
17900 /* end confdefs.h. */
17901 #define _LARGEFILE_SOURCE 1
17906 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17911 rm -f conftest.$ac_objext conftest$ac_exeext
17912 if { (ac_try="$ac_link"
17913 case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17917 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17918 (eval "$ac_link") 2>conftest.er1
17920 grep -v '^ *+' conftest.er1 >conftest.err
17922 cat conftest.err >&5
17923 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17924 (exit $ac_status); } && {
17925 test -z "$ac_c_werror_flag" ||
17926 test ! -s conftest.err
17927 } && test -s conftest$ac_exeext &&
17928 $as_test_x conftest$ac_exeext; then
17929 ac_cv_sys_largefile_source=1; break
17931 echo "$as_me: failed program was
:" >&5
17932 sed 's/^/| /' conftest.$ac_ext >&5
17937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17938 conftest$ac_exeext conftest.$ac_ext
17939 ac_cv_sys_largefile_source=unknown
17943 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
17944 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17945 case $ac_cv_sys_largefile_source in #(
17948 cat >>confdefs.h <<_ACEOF
17949 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17955 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17956 # in glibc 2.1.3, but that breaks too many other things.
17957 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17958 if test $ac_cv_sys_largefile_source != unknown; then
17960 cat >>confdefs.h <<\_ACEOF
17961 #define HAVE_FSEEKO 1
17967 # Configure getopt.
17968 # getopt.m4 serial 10
17970 # The getopt module assume you want GNU getopt, with getopt_long etc,
17971 # rather than vanilla POSIX getopt. This means your your code should
17972 # always include <getopt.h> for the getopt prototypes.
17984 # Prerequisites of lib/getopt*.
17991 for ac_header in getopt.h
17993 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17994 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17995 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17996 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17997 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17998 echo $ECHO_N "(cached
) $ECHO_C" >&6
18000 ac_res=`eval echo '${'$as_ac_Header'}'`
18001 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18002 echo "${ECHO_T}$ac_res" >&6; }
18004 # Is the header compilable?
18005 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18006 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18007 cat >conftest.$ac_ext <<_ACEOF
18010 cat confdefs.h >>conftest.$ac_ext
18011 cat >>conftest.$ac_ext <<_ACEOF
18012 /* end confdefs.h. */
18013 $ac_includes_default
18014 #include <$ac_header>
18016 rm -f conftest.$ac_objext
18017 if { (ac_try="$ac_compile"
18018 case "(($ac_try" in
18019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18020 *) ac_try_echo=$ac_try;;
18022 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18023 (eval "$ac_compile") 2>conftest.er1
18025 grep -v '^ *+' conftest.er1 >conftest.err
18027 cat conftest.err >&5
18028 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18029 (exit $ac_status); } && {
18030 test -z "$ac_c_werror_flag" ||
18031 test ! -s conftest.err
18032 } && test -s conftest.$ac_objext; then
18033 ac_header_compiler=yes
18035 echo "$as_me: failed program was
:" >&5
18036 sed 's/^/| /' conftest.$ac_ext >&5
18038 ac_header_compiler=no
18041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18042 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18043 echo "${ECHO_T}$ac_header_compiler" >&6; }
18045 # Is the header present?
18046 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18047 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18048 cat >conftest.$ac_ext <<_ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 #include <$ac_header>
18056 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18057 case "(($ac_try" in
18058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18059 *) ac_try_echo=$ac_try;;
18061 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18062 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18064 grep -v '^ *+' conftest.er1 >conftest.err
18066 cat conftest.err >&5
18067 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18068 (exit $ac_status); } >/dev/null && {
18069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18070 test ! -s conftest.err
18072 ac_header_preproc=yes
18074 echo "$as_me: failed program was
:" >&5
18075 sed 's/^/| /' conftest.$ac_ext >&5
18077 ac_header_preproc=no
18080 rm -f conftest.err conftest.$ac_ext
18081 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18082 echo "${ECHO_T}$ac_header_preproc" >&6; }
18084 # So? What about this header?
18085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18087 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18088 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18089 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18090 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18091 ac_header_preproc=yes
18094 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18095 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18096 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18097 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18098 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18099 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18100 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18101 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18102 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18103 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18104 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18105 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18109 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18110 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18111 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18112 echo $ECHO_N "(cached
) $ECHO_C" >&6
18114 eval "$as_ac_Header=\
$ac_header_preproc"
18116 ac_res=`eval echo '${'$as_ac_Header'}'`
18117 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18118 echo "${ECHO_T}$ac_res" >&6; }
18121 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18122 cat >>confdefs.h <<_ACEOF
18123 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18132 if test -z "$GETOPT_H"; then
18134 for ac_func in getopt_long_only
18136 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18137 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18138 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18139 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18140 echo $ECHO_N "(cached
) $ECHO_C" >&6
18142 cat >conftest.$ac_ext <<_ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h. */
18148 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18149 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18150 #define $ac_func innocuous_$ac_func
18152 /* System header to define __stub macros and hopefully few prototypes,
18153 which can conflict with char $ac_func (); below.
18154 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18155 <limits.h> exists even on freestanding compilers. */
18158 # include <limits.h>
18160 # include <assert.h>
18165 /* Override any GCC internal prototype to avoid an error.
18166 Use char because int might match the return type of a GCC
18167 builtin and then its argument prototype would still apply. */
18172 /* The GNU C library defines this for functions which it implements
18173 to always fail with ENOSYS. Some functions are actually named
18174 something starting with __ and the normal name is an alias. */
18175 #if defined __stub_$ac_func || defined __stub___$ac_func
18182 return $ac_func ();
18187 rm -f conftest.$ac_objext conftest$ac_exeext
18188 if { (ac_try="$ac_link"
18189 case "(($ac_try" in
18190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18191 *) ac_try_echo=$ac_try;;
18193 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18194 (eval "$ac_link") 2>conftest.er1
18196 grep -v '^ *+' conftest.er1 >conftest.err
18198 cat conftest.err >&5
18199 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18200 (exit $ac_status); } && {
18201 test -z "$ac_c_werror_flag" ||
18202 test ! -s conftest.err
18203 } && test -s conftest$ac_exeext &&
18204 $as_test_x conftest$ac_exeext; then
18205 eval "$as_ac_var=yes"
18207 echo "$as_me: failed program was
:" >&5
18208 sed 's/^/| /' conftest.$ac_ext >&5
18210 eval "$as_ac_var=no
"
18213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18214 conftest$ac_exeext conftest.$ac_ext
18216 ac_res=`eval echo '${'$as_ac_var'}'`
18217 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18218 echo "${ECHO_T}$ac_res" >&6; }
18219 if test `eval echo '${'$as_ac_var'}'` = yes; then
18220 cat >>confdefs.h <<_ACEOF
18221 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18231 if test -z "$GETOPT_H"; then
18232 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18233 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18234 if test "${ac_cv_have_decl_optreset+set}" = set; then
18235 echo $ECHO_N "(cached
) $ECHO_C" >&6
18237 cat >conftest.$ac_ext <<_ACEOF
18240 cat confdefs.h >>conftest.$ac_ext
18241 cat >>conftest.$ac_ext <<_ACEOF
18242 /* end confdefs.h. */
18243 #include <getopt.h>
18256 rm -f conftest.$ac_objext
18257 if { (ac_try="$ac_compile"
18258 case "(($ac_try" in
18259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18260 *) ac_try_echo=$ac_try;;
18262 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18263 (eval "$ac_compile") 2>conftest.er1
18265 grep -v '^ *+' conftest.er1 >conftest.err
18267 cat conftest.err >&5
18268 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18269 (exit $ac_status); } && {
18270 test -z "$ac_c_werror_flag" ||
18271 test ! -s conftest.err
18272 } && test -s conftest.$ac_objext; then
18273 ac_cv_have_decl_optreset=yes
18275 echo "$as_me: failed program was
:" >&5
18276 sed 's/^/| /' conftest.$ac_ext >&5
18278 ac_cv_have_decl_optreset=no
18281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18283 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18284 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18285 if test $ac_cv_have_decl_optreset = yes; then
18291 if test -z "$GETOPT_H"; then
18292 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18293 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18294 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18295 echo $ECHO_N "(cached
) $ECHO_C" >&6
18297 if test "$cross_compiling" = yes; then
18298 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18299 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18300 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18301 echo $ECHO_N "(cached
) $ECHO_C" >&6
18303 cat >conftest.$ac_ext <<_ACEOF
18306 cat confdefs.h >>conftest.$ac_ext
18307 cat >>conftest.$ac_ext <<_ACEOF
18308 /* end confdefs.h. */
18309 #include <getopt.h>
18314 #ifndef getopt_clip
18315 (void) getopt_clip;
18322 rm -f conftest.$ac_objext
18323 if { (ac_try="$ac_compile"
18324 case "(($ac_try" in
18325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18326 *) ac_try_echo=$ac_try;;
18328 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18329 (eval "$ac_compile") 2>conftest.er1
18331 grep -v '^ *+' conftest.er1 >conftest.err
18333 cat conftest.err >&5
18334 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18335 (exit $ac_status); } && {
18336 test -z "$ac_c_werror_flag" ||
18337 test ! -s conftest.err
18338 } && test -s conftest.$ac_objext; then
18339 ac_cv_have_decl_getopt_clip=yes
18341 echo "$as_me: failed program was
:" >&5
18342 sed 's/^/| /' conftest.$ac_ext >&5
18344 ac_cv_have_decl_getopt_clip=no
18347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18349 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18350 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18351 if test $ac_cv_have_decl_getopt_clip = yes; then
18352 gl_cv_func_gnu_getopt=no
18354 gl_cv_func_gnu_getopt=yes
18358 cat >conftest.$ac_ext <<_ACEOF
18361 cat confdefs.h >>conftest.$ac_ext
18362 cat >>conftest.$ac_ext <<_ACEOF
18363 /* end confdefs.h. */
18364 #include <getopt.h>
18370 myargv[0] = "conftest
";
18373 return getopt (2, myargv, "+a
") != '?';
18379 rm -f conftest$ac_exeext
18380 if { (ac_try="$ac_link"
18381 case "(($ac_try" in
18382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18383 *) ac_try_echo=$ac_try;;
18385 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18386 (eval "$ac_link") 2>&5
18388 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18389 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18390 { (case "(($ac_try" in
18391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18392 *) ac_try_echo=$ac_try;;
18394 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18395 (eval "$ac_try") 2>&5
18397 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18398 (exit $ac_status); }; }; then
18399 gl_cv_func_gnu_getopt=yes
18401 echo "$as_me: program exited with status
$ac_status" >&5
18402 echo "$as_me: failed program was
:" >&5
18403 sed 's/^/| /' conftest.$ac_ext >&5
18405 ( exit $ac_status )
18406 gl_cv_func_gnu_getopt=no
18408 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18413 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18414 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18415 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18422 if test -n "$GETOPT_H"; then
18427 cat >>confdefs.h <<\_ACEOF
18428 #define __GETOPT_PREFIX rpl_
18434 GETOPTOBJS='getopt.o getopt1.o'
18441 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18442 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18443 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18444 echo $ECHO_N "(cached
) $ECHO_C" >&6
18446 # Use it with a single arg.
18447 cat >conftest.$ac_ext <<_ACEOF
18450 cat confdefs.h >>conftest.$ac_ext
18451 cat >>conftest.$ac_ext <<_ACEOF
18452 /* end confdefs.h. */
18453 $ac_includes_default
18462 rm -f conftest.$ac_objext
18463 if { (ac_try="$ac_compile"
18464 case "(($ac_try" in
18465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466 *) ac_try_echo=$ac_try;;
18468 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18469 (eval "$ac_compile") 2>conftest.er1
18471 grep -v '^ *+' conftest.er1 >conftest.err
18473 cat conftest.err >&5
18474 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18475 (exit $ac_status); } && {
18476 test -z "$ac_c_werror_flag" ||
18477 test ! -s conftest.err
18478 } && test -s conftest.$ac_objext; then
18479 ac_cv_func_getpgrp_void=no
18481 echo "$as_me: failed program was
:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18484 ac_cv_func_getpgrp_void=yes
18487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18490 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18491 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18492 if test $ac_cv_func_getpgrp_void = yes; then
18494 cat >>confdefs.h <<\_ACEOF
18495 #define GETPGRP_VOID 1
18502 for ac_func in strftime
18504 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18505 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18506 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18507 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18508 echo $ECHO_N "(cached
) $ECHO_C" >&6
18510 cat >conftest.$ac_ext <<_ACEOF
18513 cat confdefs.h >>conftest.$ac_ext
18514 cat >>conftest.$ac_ext <<_ACEOF
18515 /* end confdefs.h. */
18516 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18517 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18518 #define $ac_func innocuous_$ac_func
18520 /* System header to define __stub macros and hopefully few prototypes,
18521 which can conflict with char $ac_func (); below.
18522 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18523 <limits.h> exists even on freestanding compilers. */
18526 # include <limits.h>
18528 # include <assert.h>
18533 /* Override any GCC internal prototype to avoid an error.
18534 Use char because int might match the return type of a GCC
18535 builtin and then its argument prototype would still apply. */
18540 /* The GNU C library defines this for functions which it implements
18541 to always fail with ENOSYS. Some functions are actually named
18542 something starting with __ and the normal name is an alias. */
18543 #if defined __stub_$ac_func || defined __stub___$ac_func
18550 return $ac_func ();
18555 rm -f conftest.$ac_objext conftest$ac_exeext
18556 if { (ac_try="$ac_link"
18557 case "(($ac_try" in
18558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18559 *) ac_try_echo=$ac_try;;
18561 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18562 (eval "$ac_link") 2>conftest.er1
18564 grep -v '^ *+' conftest.er1 >conftest.err
18566 cat conftest.err >&5
18567 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18568 (exit $ac_status); } && {
18569 test -z "$ac_c_werror_flag" ||
18570 test ! -s conftest.err
18571 } && test -s conftest$ac_exeext &&
18572 $as_test_x conftest$ac_exeext; then
18573 eval "$as_ac_var=yes"
18575 echo "$as_me: failed program was
:" >&5
18576 sed 's/^/| /' conftest.$ac_ext >&5
18578 eval "$as_ac_var=no
"
18581 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18582 conftest$ac_exeext conftest.$ac_ext
18584 ac_res=`eval echo '${'$as_ac_var'}'`
18585 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18586 echo "${ECHO_T}$ac_res" >&6; }
18587 if test `eval echo '${'$as_ac_var'}'` = yes; then
18588 cat >>confdefs.h <<_ACEOF
18589 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18593 # strftime is in -lintl on SCO UNIX.
18594 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18595 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18596 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18597 echo $ECHO_N "(cached
) $ECHO_C" >&6
18599 ac_check_lib_save_LIBS=$LIBS
18600 LIBS="-lintl $LIBS"
18601 cat >conftest.$ac_ext <<_ACEOF
18604 cat confdefs.h >>conftest.$ac_ext
18605 cat >>conftest.$ac_ext <<_ACEOF
18606 /* end confdefs.h. */
18608 /* Override any GCC internal prototype to avoid an error.
18609 Use char because int might match the return type of a GCC
18610 builtin and then its argument prototype would still apply. */
18618 return strftime ();
18623 rm -f conftest.$ac_objext conftest$ac_exeext
18624 if { (ac_try="$ac_link"
18625 case "(($ac_try" in
18626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18627 *) ac_try_echo=$ac_try;;
18629 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18630 (eval "$ac_link") 2>conftest.er1
18632 grep -v '^ *+' conftest.er1 >conftest.err
18634 cat conftest.err >&5
18635 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18636 (exit $ac_status); } && {
18637 test -z "$ac_c_werror_flag" ||
18638 test ! -s conftest.err
18639 } && test -s conftest$ac_exeext &&
18640 $as_test_x conftest$ac_exeext; then
18641 ac_cv_lib_intl_strftime=yes
18643 echo "$as_me: failed program was
:" >&5
18644 sed 's/^/| /' conftest.$ac_ext >&5
18646 ac_cv_lib_intl_strftime=no
18649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18650 conftest$ac_exeext conftest.$ac_ext
18651 LIBS=$ac_check_lib_save_LIBS
18653 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18654 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18655 if test $ac_cv_lib_intl_strftime = yes; then
18656 cat >>confdefs.h <<\_ACEOF
18657 #define HAVE_STRFTIME 1
18660 LIBS="-lintl $LIBS"
18669 for ac_func in grantpt
18671 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18672 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18673 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18674 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18675 echo $ECHO_N "(cached
) $ECHO_C" >&6
18677 cat >conftest.$ac_ext <<_ACEOF
18680 cat confdefs.h >>conftest.$ac_ext
18681 cat >>conftest.$ac_ext <<_ACEOF
18682 /* end confdefs.h. */
18683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18685 #define $ac_func innocuous_$ac_func
18687 /* System header to define __stub macros and hopefully few prototypes,
18688 which can conflict with char $ac_func (); below.
18689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18690 <limits.h> exists even on freestanding compilers. */
18693 # include <limits.h>
18695 # include <assert.h>
18700 /* Override any GCC internal prototype to avoid an error.
18701 Use char because int might match the return type of a GCC
18702 builtin and then its argument prototype would still apply. */
18707 /* The GNU C library defines this for functions which it implements
18708 to always fail with ENOSYS. Some functions are actually named
18709 something starting with __ and the normal name is an alias. */
18710 #if defined __stub_$ac_func || defined __stub___$ac_func
18717 return $ac_func ();
18722 rm -f conftest.$ac_objext conftest$ac_exeext
18723 if { (ac_try="$ac_link"
18724 case "(($ac_try" in
18725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18726 *) ac_try_echo=$ac_try;;
18728 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18729 (eval "$ac_link") 2>conftest.er1
18731 grep -v '^ *+' conftest.er1 >conftest.err
18733 cat conftest.err >&5
18734 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18735 (exit $ac_status); } && {
18736 test -z "$ac_c_werror_flag" ||
18737 test ! -s conftest.err
18738 } && test -s conftest$ac_exeext &&
18739 $as_test_x conftest$ac_exeext; then
18740 eval "$as_ac_var=yes"
18742 echo "$as_me: failed program was
:" >&5
18743 sed 's/^/| /' conftest.$ac_ext >&5
18745 eval "$as_ac_var=no
"
18748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18749 conftest$ac_exeext conftest.$ac_ext
18751 ac_res=`eval echo '${'$as_ac_var'}'`
18752 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18753 echo "${ECHO_T}$ac_res" >&6; }
18754 if test `eval echo '${'$as_ac_var'}'` = yes; then
18755 cat >>confdefs.h <<_ACEOF
18756 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18763 # PTY-related GNU extensions.
18765 for ac_func in getpt
18767 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18768 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18769 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18770 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18771 echo $ECHO_N "(cached
) $ECHO_C" >&6
18773 cat >conftest.$ac_ext <<_ACEOF
18776 cat confdefs.h >>conftest.$ac_ext
18777 cat >>conftest.$ac_ext <<_ACEOF
18778 /* end confdefs.h. */
18779 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18780 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18781 #define $ac_func innocuous_$ac_func
18783 /* System header to define __stub macros and hopefully few prototypes,
18784 which can conflict with char $ac_func (); below.
18785 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18786 <limits.h> exists even on freestanding compilers. */
18789 # include <limits.h>
18791 # include <assert.h>
18796 /* Override any GCC internal prototype to avoid an error.
18797 Use char because int might match the return type of a GCC
18798 builtin and then its argument prototype would still apply. */
18803 /* The GNU C library defines this for functions which it implements
18804 to always fail with ENOSYS. Some functions are actually named
18805 something starting with __ and the normal name is an alias. */
18806 #if defined __stub_$ac_func || defined __stub___$ac_func
18813 return $ac_func ();
18818 rm -f conftest.$ac_objext conftest$ac_exeext
18819 if { (ac_try="$ac_link"
18820 case "(($ac_try" in
18821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18822 *) ac_try_echo=$ac_try;;
18824 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18825 (eval "$ac_link") 2>conftest.er1
18827 grep -v '^ *+' conftest.er1 >conftest.err
18829 cat conftest.err >&5
18830 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18831 (exit $ac_status); } && {
18832 test -z "$ac_c_werror_flag" ||
18833 test ! -s conftest.err
18834 } && test -s conftest$ac_exeext &&
18835 $as_test_x conftest$ac_exeext; then
18836 eval "$as_ac_var=yes"
18838 echo "$as_me: failed program was
:" >&5
18839 sed 's/^/| /' conftest.$ac_ext >&5
18841 eval "$as_ac_var=no
"
18844 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18845 conftest$ac_exeext conftest.$ac_ext
18847 ac_res=`eval echo '${'$as_ac_var'}'`
18848 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18849 echo "${ECHO_T}$ac_res" >&6; }
18850 if test `eval echo '${'$as_ac_var'}'` = yes; then
18851 cat >>confdefs.h <<_ACEOF
18852 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18859 # Check this now, so that we will NOT find the above functions in ncurses.
18860 # That is because we have not set up to link ncurses in lib-src.
18861 # It's better to believe a function is not available
18862 # than to expect to find it in ncurses.
18864 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
18865 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
18866 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18867 echo $ECHO_N "(cached
) $ECHO_C" >&6
18869 ac_check_lib_save_LIBS=$LIBS
18870 LIBS="-lncurses $LIBS"
18871 cat >conftest.$ac_ext <<_ACEOF
18874 cat confdefs.h >>conftest.$ac_ext
18875 cat >>conftest.$ac_ext <<_ACEOF
18876 /* end confdefs.h. */
18878 /* Override any GCC internal prototype to avoid an error.
18879 Use char because int might match the return type of a GCC
18880 builtin and then its argument prototype would still apply. */
18893 rm -f conftest.$ac_objext conftest$ac_exeext
18894 if { (ac_try="$ac_link"
18895 case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18899 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_link") 2>conftest.er1
18902 grep -v '^ *+' conftest.er1 >conftest.err
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18906 (exit $ac_status); } && {
18907 test -z "$ac_c_werror_flag" ||
18908 test ! -s conftest.err
18909 } && test -s conftest$ac_exeext &&
18910 $as_test_x conftest$ac_exeext; then
18911 ac_cv_lib_ncurses_tparm=yes
18913 echo "$as_me: failed program was
:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18916 ac_cv_lib_ncurses_tparm=no
18919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18920 conftest$ac_exeext conftest.$ac_ext
18921 LIBS=$ac_check_lib_save_LIBS
18923 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
18924 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18925 if test $ac_cv_lib_ncurses_tparm = yes; then
18926 cat >>confdefs.h <<_ACEOF
18927 #define HAVE_LIBNCURSES 1
18930 LIBS="-lncurses $LIBS"
18935 # Do we need the Hesiod library to provide the support routines?
18936 if test "$with_hesiod" = yes ; then
18937 # Don't set $LIBS here -- see comments above.
18939 { echo "$as_me:$LINENO: checking
for res_send
" >&5
18940 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
18941 if test "${ac_cv_func_res_send+set}" = set; then
18942 echo $ECHO_N "(cached
) $ECHO_C" >&6
18944 cat >conftest.$ac_ext <<_ACEOF
18947 cat confdefs.h >>conftest.$ac_ext
18948 cat >>conftest.$ac_ext <<_ACEOF
18949 /* end confdefs.h. */
18950 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18951 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18952 #define res_send innocuous_res_send
18954 /* System header to define __stub macros and hopefully few prototypes,
18955 which can conflict with char res_send (); below.
18956 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18957 <limits.h> exists even on freestanding compilers. */
18960 # include <limits.h>
18962 # include <assert.h>
18967 /* Override any GCC internal prototype to avoid an error.
18968 Use char because int might match the return type of a GCC
18969 builtin and then its argument prototype would still apply. */
18974 /* The GNU C library defines this for functions which it implements
18975 to always fail with ENOSYS. Some functions are actually named
18976 something starting with __ and the normal name is an alias. */
18977 #if defined __stub_res_send || defined __stub___res_send
18984 return res_send ();
18989 rm -f conftest.$ac_objext conftest$ac_exeext
18990 if { (ac_try="$ac_link"
18991 case "(($ac_try" in
18992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18993 *) ac_try_echo=$ac_try;;
18995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18996 (eval "$ac_link") 2>conftest.er1
18998 grep -v '^ *+' conftest.er1 >conftest.err
19000 cat conftest.err >&5
19001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19002 (exit $ac_status); } && {
19003 test -z "$ac_c_werror_flag" ||
19004 test ! -s conftest.err
19005 } && test -s conftest$ac_exeext &&
19006 $as_test_x conftest$ac_exeext; then
19007 ac_cv_func_res_send=yes
19009 echo "$as_me: failed program was
:" >&5
19010 sed 's/^/| /' conftest.$ac_ext >&5
19012 ac_cv_func_res_send=no
19015 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19016 conftest$ac_exeext conftest.$ac_ext
19018 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19019 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19020 if test $ac_cv_func_res_send = yes; then
19023 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19024 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19025 if test "${ac_cv_func___res_send+set}" = set; then
19026 echo $ECHO_N "(cached
) $ECHO_C" >&6
19028 cat >conftest.$ac_ext <<_ACEOF
19031 cat confdefs.h >>conftest.$ac_ext
19032 cat >>conftest.$ac_ext <<_ACEOF
19033 /* end confdefs.h. */
19034 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19036 #define __res_send innocuous___res_send
19038 /* System header to define __stub macros and hopefully few prototypes,
19039 which can conflict with char __res_send (); below.
19040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19041 <limits.h> exists even on freestanding compilers. */
19044 # include <limits.h>
19046 # include <assert.h>
19051 /* Override any GCC internal prototype to avoid an error.
19052 Use char because int might match the return type of a GCC
19053 builtin and then its argument prototype would still apply. */
19057 char __res_send ();
19058 /* The GNU C library defines this for functions which it implements
19059 to always fail with ENOSYS. Some functions are actually named
19060 something starting with __ and the normal name is an alias. */
19061 #if defined __stub___res_send || defined __stub_____res_send
19068 return __res_send ();
19073 rm -f conftest.$ac_objext conftest$ac_exeext
19074 if { (ac_try="$ac_link"
19075 case "(($ac_try" in
19076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19077 *) ac_try_echo=$ac_try;;
19079 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19080 (eval "$ac_link") 2>conftest.er1
19082 grep -v '^ *+' conftest.er1 >conftest.err
19084 cat conftest.err >&5
19085 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19086 (exit $ac_status); } && {
19087 test -z "$ac_c_werror_flag" ||
19088 test ! -s conftest.err
19089 } && test -s conftest$ac_exeext &&
19090 $as_test_x conftest$ac_exeext; then
19091 ac_cv_func___res_send=yes
19093 echo "$as_me: failed program was
:" >&5
19094 sed 's/^/| /' conftest.$ac_ext >&5
19096 ac_cv_func___res_send=no
19099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19100 conftest$ac_exeext conftest.$ac_ext
19102 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19103 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19104 if test $ac_cv_func___res_send = yes; then
19107 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19108 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19109 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19110 echo $ECHO_N "(cached
) $ECHO_C" >&6
19112 ac_check_lib_save_LIBS=$LIBS
19113 LIBS="-lresolv $LIBS"
19114 cat >conftest.$ac_ext <<_ACEOF
19117 cat confdefs.h >>conftest.$ac_ext
19118 cat >>conftest.$ac_ext <<_ACEOF
19119 /* end confdefs.h. */
19121 /* Override any GCC internal prototype to avoid an error.
19122 Use char because int might match the return type of a GCC
19123 builtin and then its argument prototype would still apply. */
19131 return res_send ();
19136 rm -f conftest.$ac_objext conftest$ac_exeext
19137 if { (ac_try="$ac_link"
19138 case "(($ac_try" in
19139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19140 *) ac_try_echo=$ac_try;;
19142 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19143 (eval "$ac_link") 2>conftest.er1
19145 grep -v '^ *+' conftest.er1 >conftest.err
19147 cat conftest.err >&5
19148 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19149 (exit $ac_status); } && {
19150 test -z "$ac_c_werror_flag" ||
19151 test ! -s conftest.err
19152 } && test -s conftest$ac_exeext &&
19153 $as_test_x conftest$ac_exeext; then
19154 ac_cv_lib_resolv_res_send=yes
19156 echo "$as_me: failed program was
:" >&5
19157 sed 's/^/| /' conftest.$ac_ext >&5
19159 ac_cv_lib_resolv_res_send=no
19162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19163 conftest$ac_exeext conftest.$ac_ext
19164 LIBS=$ac_check_lib_save_LIBS
19166 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19167 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19168 if test $ac_cv_lib_resolv_res_send = yes; then
19171 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19172 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19173 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19174 echo $ECHO_N "(cached
) $ECHO_C" >&6
19176 ac_check_lib_save_LIBS=$LIBS
19177 LIBS="-lresolv $LIBS"
19178 cat >conftest.$ac_ext <<_ACEOF
19181 cat confdefs.h >>conftest.$ac_ext
19182 cat >>conftest.$ac_ext <<_ACEOF
19183 /* end confdefs.h. */
19185 /* Override any GCC internal prototype to avoid an error.
19186 Use char because int might match the return type of a GCC
19187 builtin and then its argument prototype would still apply. */
19191 char __res_send ();
19195 return __res_send ();
19200 rm -f conftest.$ac_objext conftest$ac_exeext
19201 if { (ac_try="$ac_link"
19202 case "(($ac_try" in
19203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19204 *) ac_try_echo=$ac_try;;
19206 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19207 (eval "$ac_link") 2>conftest.er1
19209 grep -v '^ *+' conftest.er1 >conftest.err
19211 cat conftest.err >&5
19212 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19213 (exit $ac_status); } && {
19214 test -z "$ac_c_werror_flag" ||
19215 test ! -s conftest.err
19216 } && test -s conftest$ac_exeext &&
19217 $as_test_x conftest$ac_exeext; then
19218 ac_cv_lib_resolv___res_send=yes
19220 echo "$as_me: failed program was
:" >&5
19221 sed 's/^/| /' conftest.$ac_ext >&5
19223 ac_cv_lib_resolv___res_send=no
19226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19227 conftest$ac_exeext conftest.$ac_ext
19228 LIBS=$ac_check_lib_save_LIBS
19230 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19231 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19232 if test $ac_cv_lib_resolv___res_send = yes; then
19242 if test "$resolv" = yes ; then
19245 cat >>confdefs.h <<\_ACEOF
19246 #define HAVE_LIBRESOLV 1
19252 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19253 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19254 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19255 echo $ECHO_N "(cached
) $ECHO_C" >&6
19257 cat >conftest.$ac_ext <<_ACEOF
19260 cat confdefs.h >>conftest.$ac_ext
19261 cat >>conftest.$ac_ext <<_ACEOF
19262 /* end confdefs.h. */
19263 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19265 #define hes_getmailhost innocuous_hes_getmailhost
19267 /* System header to define __stub macros and hopefully few prototypes,
19268 which can conflict with char hes_getmailhost (); below.
19269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19270 <limits.h> exists even on freestanding compilers. */
19273 # include <limits.h>
19275 # include <assert.h>
19278 #undef hes_getmailhost
19280 /* Override any GCC internal prototype to avoid an error.
19281 Use char because int might match the return type of a GCC
19282 builtin and then its argument prototype would still apply. */
19286 char hes_getmailhost ();
19287 /* The GNU C library defines this for functions which it implements
19288 to always fail with ENOSYS. Some functions are actually named
19289 something starting with __ and the normal name is an alias. */
19290 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19297 return hes_getmailhost ();
19302 rm -f conftest.$ac_objext conftest$ac_exeext
19303 if { (ac_try="$ac_link"
19304 case "(($ac_try" in
19305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19306 *) ac_try_echo=$ac_try;;
19308 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19309 (eval "$ac_link") 2>conftest.er1
19311 grep -v '^ *+' conftest.er1 >conftest.err
19313 cat conftest.err >&5
19314 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19315 (exit $ac_status); } && {
19316 test -z "$ac_c_werror_flag" ||
19317 test ! -s conftest.err
19318 } && test -s conftest$ac_exeext &&
19319 $as_test_x conftest$ac_exeext; then
19320 ac_cv_func_hes_getmailhost=yes
19322 echo "$as_me: failed program was
:" >&5
19323 sed 's/^/| /' conftest.$ac_ext >&5
19325 ac_cv_func_hes_getmailhost=no
19328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19329 conftest$ac_exeext conftest.$ac_ext
19331 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19332 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19333 if test $ac_cv_func_hes_getmailhost = yes; then
19336 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19337 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19338 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19339 echo $ECHO_N "(cached
) $ECHO_C" >&6
19341 ac_check_lib_save_LIBS=$LIBS
19342 LIBS="-lhesiod $RESOLVLIB $LIBS"
19343 cat >conftest.$ac_ext <<_ACEOF
19346 cat confdefs.h >>conftest.$ac_ext
19347 cat >>conftest.$ac_ext <<_ACEOF
19348 /* end confdefs.h. */
19350 /* Override any GCC internal prototype to avoid an error.
19351 Use char because int might match the return type of a GCC
19352 builtin and then its argument prototype would still apply. */
19356 char hes_getmailhost ();
19360 return hes_getmailhost ();
19365 rm -f conftest.$ac_objext conftest$ac_exeext
19366 if { (ac_try="$ac_link"
19367 case "(($ac_try" in
19368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19369 *) ac_try_echo=$ac_try;;
19371 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19372 (eval "$ac_link") 2>conftest.er1
19374 grep -v '^ *+' conftest.er1 >conftest.err
19376 cat conftest.err >&5
19377 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19378 (exit $ac_status); } && {
19379 test -z "$ac_c_werror_flag" ||
19380 test ! -s conftest.err
19381 } && test -s conftest$ac_exeext &&
19382 $as_test_x conftest$ac_exeext; then
19383 ac_cv_lib_hesiod_hes_getmailhost=yes
19385 echo "$as_me: failed program was
:" >&5
19386 sed 's/^/| /' conftest.$ac_ext >&5
19388 ac_cv_lib_hesiod_hes_getmailhost=no
19391 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19392 conftest$ac_exeext conftest.$ac_ext
19393 LIBS=$ac_check_lib_save_LIBS
19395 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19396 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19397 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19399 cat >>confdefs.h <<\_ACEOF
19400 #define HAVE_LIBHESIOD 1
19411 # These tell us which Kerberos-related libraries to use.
19412 if test "${with_kerberos+set}" = set; then
19414 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19415 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19416 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19417 echo $ECHO_N "(cached
) $ECHO_C" >&6
19419 ac_check_lib_save_LIBS=$LIBS
19420 LIBS="-lcom_err $LIBS"
19421 cat >conftest.$ac_ext <<_ACEOF
19424 cat confdefs.h >>conftest.$ac_ext
19425 cat >>conftest.$ac_ext <<_ACEOF
19426 /* end confdefs.h. */
19428 /* Override any GCC internal prototype to avoid an error.
19429 Use char because int might match the return type of a GCC
19430 builtin and then its argument prototype would still apply. */
19443 rm -f conftest.$ac_objext conftest$ac_exeext
19444 if { (ac_try="$ac_link"
19445 case "(($ac_try" in
19446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19447 *) ac_try_echo=$ac_try;;
19449 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19450 (eval "$ac_link") 2>conftest.er1
19452 grep -v '^ *+' conftest.er1 >conftest.err
19454 cat conftest.err >&5
19455 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19456 (exit $ac_status); } && {
19457 test -z "$ac_c_werror_flag" ||
19458 test ! -s conftest.err
19459 } && test -s conftest$ac_exeext &&
19460 $as_test_x conftest$ac_exeext; then
19461 ac_cv_lib_com_err_com_err=yes
19463 echo "$as_me: failed program was
:" >&5
19464 sed 's/^/| /' conftest.$ac_ext >&5
19466 ac_cv_lib_com_err_com_err=no
19469 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19470 conftest$ac_exeext conftest.$ac_ext
19471 LIBS=$ac_check_lib_save_LIBS
19473 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19474 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19475 if test $ac_cv_lib_com_err_com_err = yes; then
19476 cat >>confdefs.h <<_ACEOF
19477 #define HAVE_LIBCOM_ERR 1
19480 LIBS="-lcom_err $LIBS"
19485 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19486 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19487 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19488 echo $ECHO_N "(cached
) $ECHO_C" >&6
19490 ac_check_lib_save_LIBS=$LIBS
19491 LIBS="-lk5crypto $LIBS"
19492 cat >conftest.$ac_ext <<_ACEOF
19495 cat confdefs.h >>conftest.$ac_ext
19496 cat >>conftest.$ac_ext <<_ACEOF
19497 /* end confdefs.h. */
19499 /* Override any GCC internal prototype to avoid an error.
19500 Use char because int might match the return type of a GCC
19501 builtin and then its argument prototype would still apply. */
19505 char mit_des_cbc_encrypt ();
19509 return mit_des_cbc_encrypt ();
19514 rm -f conftest.$ac_objext conftest$ac_exeext
19515 if { (ac_try="$ac_link"
19516 case "(($ac_try" in
19517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19518 *) ac_try_echo=$ac_try;;
19520 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19521 (eval "$ac_link") 2>conftest.er1
19523 grep -v '^ *+' conftest.er1 >conftest.err
19525 cat conftest.err >&5
19526 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19527 (exit $ac_status); } && {
19528 test -z "$ac_c_werror_flag" ||
19529 test ! -s conftest.err
19530 } && test -s conftest$ac_exeext &&
19531 $as_test_x conftest$ac_exeext; then
19532 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19534 echo "$as_me: failed program was
:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19537 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19540 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19541 conftest$ac_exeext conftest.$ac_ext
19542 LIBS=$ac_check_lib_save_LIBS
19544 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19545 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19546 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19547 cat >>confdefs.h <<_ACEOF
19548 #define HAVE_LIBK5CRYPTO 1
19551 LIBS="-lk5crypto $LIBS"
19556 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19557 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19558 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19559 echo $ECHO_N "(cached
) $ECHO_C" >&6
19561 ac_check_lib_save_LIBS=$LIBS
19562 LIBS="-lcrypto $LIBS"
19563 cat >conftest.$ac_ext <<_ACEOF
19566 cat confdefs.h >>conftest.$ac_ext
19567 cat >>conftest.$ac_ext <<_ACEOF
19568 /* end confdefs.h. */
19570 /* Override any GCC internal prototype to avoid an error.
19571 Use char because int might match the return type of a GCC
19572 builtin and then its argument prototype would still apply. */
19576 char mit_des_cbc_encrypt ();
19580 return mit_des_cbc_encrypt ();
19585 rm -f conftest.$ac_objext conftest$ac_exeext
19586 if { (ac_try="$ac_link"
19587 case "(($ac_try" in
19588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589 *) ac_try_echo=$ac_try;;
19591 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19592 (eval "$ac_link") 2>conftest.er1
19594 grep -v '^ *+' conftest.er1 >conftest.err
19596 cat conftest.err >&5
19597 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19598 (exit $ac_status); } && {
19599 test -z "$ac_c_werror_flag" ||
19600 test ! -s conftest.err
19601 } && test -s conftest$ac_exeext &&
19602 $as_test_x conftest$ac_exeext; then
19603 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19605 echo "$as_me: failed program was
:" >&5
19606 sed 's/^/| /' conftest.$ac_ext >&5
19608 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19612 conftest$ac_exeext conftest.$ac_ext
19613 LIBS=$ac_check_lib_save_LIBS
19615 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19616 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19617 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19618 cat >>confdefs.h <<_ACEOF
19619 #define HAVE_LIBCRYPTO 1
19622 LIBS="-lcrypto $LIBS"
19627 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19628 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19629 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19630 echo $ECHO_N "(cached
) $ECHO_C" >&6
19632 ac_check_lib_save_LIBS=$LIBS
19633 LIBS="-lkrb5 $LIBS"
19634 cat >conftest.$ac_ext <<_ACEOF
19637 cat confdefs.h >>conftest.$ac_ext
19638 cat >>conftest.$ac_ext <<_ACEOF
19639 /* end confdefs.h. */
19641 /* Override any GCC internal prototype to avoid an error.
19642 Use char because int might match the return type of a GCC
19643 builtin and then its argument prototype would still apply. */
19647 char krb5_init_context ();
19651 return krb5_init_context ();
19656 rm -f conftest.$ac_objext conftest$ac_exeext
19657 if { (ac_try="$ac_link"
19658 case "(($ac_try" in
19659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19660 *) ac_try_echo=$ac_try;;
19662 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19663 (eval "$ac_link") 2>conftest.er1
19665 grep -v '^ *+' conftest.er1 >conftest.err
19667 cat conftest.err >&5
19668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19669 (exit $ac_status); } && {
19670 test -z "$ac_c_werror_flag" ||
19671 test ! -s conftest.err
19672 } && test -s conftest$ac_exeext &&
19673 $as_test_x conftest$ac_exeext; then
19674 ac_cv_lib_krb5_krb5_init_context=yes
19676 echo "$as_me: failed program was
:" >&5
19677 sed 's/^/| /' conftest.$ac_ext >&5
19679 ac_cv_lib_krb5_krb5_init_context=no
19682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19683 conftest$ac_exeext conftest.$ac_ext
19684 LIBS=$ac_check_lib_save_LIBS
19686 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19687 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19688 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19689 cat >>confdefs.h <<_ACEOF
19690 #define HAVE_LIBKRB5 1
19693 LIBS="-lkrb5 $LIBS"
19697 if test "${with_kerberos5+set}" != set; then
19699 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19700 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19701 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19702 echo $ECHO_N "(cached
) $ECHO_C" >&6
19704 ac_check_lib_save_LIBS=$LIBS
19705 LIBS="-ldes425 $LIBS"
19706 cat >conftest.$ac_ext <<_ACEOF
19709 cat confdefs.h >>conftest.$ac_ext
19710 cat >>conftest.$ac_ext <<_ACEOF
19711 /* end confdefs.h. */
19713 /* Override any GCC internal prototype to avoid an error.
19714 Use char because int might match the return type of a GCC
19715 builtin and then its argument prototype would still apply. */
19719 char des_cbc_encrypt ();
19723 return des_cbc_encrypt ();
19728 rm -f conftest.$ac_objext conftest$ac_exeext
19729 if { (ac_try="$ac_link"
19730 case "(($ac_try" in
19731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19732 *) ac_try_echo=$ac_try;;
19734 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19735 (eval "$ac_link") 2>conftest.er1
19737 grep -v '^ *+' conftest.er1 >conftest.err
19739 cat conftest.err >&5
19740 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19741 (exit $ac_status); } && {
19742 test -z "$ac_c_werror_flag" ||
19743 test ! -s conftest.err
19744 } && test -s conftest$ac_exeext &&
19745 $as_test_x conftest$ac_exeext; then
19746 ac_cv_lib_des425_des_cbc_encrypt=yes
19748 echo "$as_me: failed program was
:" >&5
19749 sed 's/^/| /' conftest.$ac_ext >&5
19751 ac_cv_lib_des425_des_cbc_encrypt=no
19754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19755 conftest$ac_exeext conftest.$ac_ext
19756 LIBS=$ac_check_lib_save_LIBS
19758 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19759 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19760 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19761 cat >>confdefs.h <<_ACEOF
19762 #define HAVE_LIBDES425 1
19765 LIBS="-ldes425 $LIBS"
19769 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
19770 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
19771 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19772 echo $ECHO_N "(cached
) $ECHO_C" >&6
19774 ac_check_lib_save_LIBS=$LIBS
19776 cat >conftest.$ac_ext <<_ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19783 /* Override any GCC internal prototype to avoid an error.
19784 Use char because int might match the return type of a GCC
19785 builtin and then its argument prototype would still apply. */
19789 char des_cbc_encrypt ();
19793 return des_cbc_encrypt ();
19798 rm -f conftest.$ac_objext conftest$ac_exeext
19799 if { (ac_try="$ac_link"
19800 case "(($ac_try" in
19801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19802 *) ac_try_echo=$ac_try;;
19804 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19805 (eval "$ac_link") 2>conftest.er1
19807 grep -v '^ *+' conftest.er1 >conftest.err
19809 cat conftest.err >&5
19810 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19811 (exit $ac_status); } && {
19812 test -z "$ac_c_werror_flag" ||
19813 test ! -s conftest.err
19814 } && test -s conftest$ac_exeext &&
19815 $as_test_x conftest$ac_exeext; then
19816 ac_cv_lib_des_des_cbc_encrypt=yes
19818 echo "$as_me: failed program was
:" >&5
19819 sed 's/^/| /' conftest.$ac_ext >&5
19821 ac_cv_lib_des_des_cbc_encrypt=no
19824 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19825 conftest$ac_exeext conftest.$ac_ext
19826 LIBS=$ac_check_lib_save_LIBS
19828 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
19829 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19830 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19831 cat >>confdefs.h <<_ACEOF
19832 #define HAVE_LIBDES 1
19842 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
19843 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
19844 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19845 echo $ECHO_N "(cached
) $ECHO_C" >&6
19847 ac_check_lib_save_LIBS=$LIBS
19848 LIBS="-lkrb4 $LIBS"
19849 cat >conftest.$ac_ext <<_ACEOF
19852 cat confdefs.h >>conftest.$ac_ext
19853 cat >>conftest.$ac_ext <<_ACEOF
19854 /* end confdefs.h. */
19856 /* Override any GCC internal prototype to avoid an error.
19857 Use char because int might match the return type of a GCC
19858 builtin and then its argument prototype would still apply. */
19862 char krb_get_cred ();
19866 return krb_get_cred ();
19871 rm -f conftest.$ac_objext conftest$ac_exeext
19872 if { (ac_try="$ac_link"
19873 case "(($ac_try" in
19874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19875 *) ac_try_echo=$ac_try;;
19877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19878 (eval "$ac_link") 2>conftest.er1
19880 grep -v '^ *+' conftest.er1 >conftest.err
19882 cat conftest.err >&5
19883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19884 (exit $ac_status); } && {
19885 test -z "$ac_c_werror_flag" ||
19886 test ! -s conftest.err
19887 } && test -s conftest$ac_exeext &&
19888 $as_test_x conftest$ac_exeext; then
19889 ac_cv_lib_krb4_krb_get_cred=yes
19891 echo "$as_me: failed program was
:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19894 ac_cv_lib_krb4_krb_get_cred=no
19897 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19898 conftest$ac_exeext conftest.$ac_ext
19899 LIBS=$ac_check_lib_save_LIBS
19901 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
19902 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19903 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19904 cat >>confdefs.h <<_ACEOF
19905 #define HAVE_LIBKRB4 1
19908 LIBS="-lkrb4 $LIBS"
19912 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
19913 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
19914 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19915 echo $ECHO_N "(cached
) $ECHO_C" >&6
19917 ac_check_lib_save_LIBS=$LIBS
19919 cat >conftest.$ac_ext <<_ACEOF
19922 cat confdefs.h >>conftest.$ac_ext
19923 cat >>conftest.$ac_ext <<_ACEOF
19924 /* end confdefs.h. */
19926 /* Override any GCC internal prototype to avoid an error.
19927 Use char because int might match the return type of a GCC
19928 builtin and then its argument prototype would still apply. */
19932 char krb_get_cred ();
19936 return krb_get_cred ();
19941 rm -f conftest.$ac_objext conftest$ac_exeext
19942 if { (ac_try="$ac_link"
19943 case "(($ac_try" in
19944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19945 *) ac_try_echo=$ac_try;;
19947 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19948 (eval "$ac_link") 2>conftest.er1
19950 grep -v '^ *+' conftest.er1 >conftest.err
19952 cat conftest.err >&5
19953 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19954 (exit $ac_status); } && {
19955 test -z "$ac_c_werror_flag" ||
19956 test ! -s conftest.err
19957 } && test -s conftest$ac_exeext &&
19958 $as_test_x conftest$ac_exeext; then
19959 ac_cv_lib_krb_krb_get_cred=yes
19961 echo "$as_me: failed program was
:" >&5
19962 sed 's/^/| /' conftest.$ac_ext >&5
19964 ac_cv_lib_krb_krb_get_cred=no
19967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19968 conftest$ac_exeext conftest.$ac_ext
19969 LIBS=$ac_check_lib_save_LIBS
19971 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
19972 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19973 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19974 cat >>confdefs.h <<_ACEOF
19975 #define HAVE_LIBKRB 1
19986 if test "${with_kerberos5+set}" = set; then
19988 for ac_header in krb5.h
19990 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19991 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19992 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19993 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19994 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19995 echo $ECHO_N "(cached
) $ECHO_C" >&6
19997 ac_res=`eval echo '${'$as_ac_Header'}'`
19998 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19999 echo "${ECHO_T}$ac_res" >&6; }
20001 # Is the header compilable?
20002 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20003 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20004 cat >conftest.$ac_ext <<_ACEOF
20007 cat confdefs.h >>conftest.$ac_ext
20008 cat >>conftest.$ac_ext <<_ACEOF
20009 /* end confdefs.h. */
20010 $ac_includes_default
20011 #include <$ac_header>
20013 rm -f conftest.$ac_objext
20014 if { (ac_try="$ac_compile"
20015 case "(($ac_try" in
20016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20017 *) ac_try_echo=$ac_try;;
20019 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20020 (eval "$ac_compile") 2>conftest.er1
20022 grep -v '^ *+' conftest.er1 >conftest.err
20024 cat conftest.err >&5
20025 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20026 (exit $ac_status); } && {
20027 test -z "$ac_c_werror_flag" ||
20028 test ! -s conftest.err
20029 } && test -s conftest.$ac_objext; then
20030 ac_header_compiler=yes
20032 echo "$as_me: failed program was
:" >&5
20033 sed 's/^/| /' conftest.$ac_ext >&5
20035 ac_header_compiler=no
20038 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20039 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20040 echo "${ECHO_T}$ac_header_compiler" >&6; }
20042 # Is the header present?
20043 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20044 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20045 cat >conftest.$ac_ext <<_ACEOF
20048 cat confdefs.h >>conftest.$ac_ext
20049 cat >>conftest.$ac_ext <<_ACEOF
20050 /* end confdefs.h. */
20051 #include <$ac_header>
20053 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20054 case "(($ac_try" in
20055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20056 *) ac_try_echo=$ac_try;;
20058 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20059 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20061 grep -v '^ *+' conftest.er1 >conftest.err
20063 cat conftest.err >&5
20064 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20065 (exit $ac_status); } >/dev/null && {
20066 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20067 test ! -s conftest.err
20069 ac_header_preproc=yes
20071 echo "$as_me: failed program was
:" >&5
20072 sed 's/^/| /' conftest.$ac_ext >&5
20074 ac_header_preproc=no
20077 rm -f conftest.err conftest.$ac_ext
20078 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20079 echo "${ECHO_T}$ac_header_preproc" >&6; }
20081 # So? What about this header?
20082 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20084 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20085 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20086 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20087 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20088 ac_header_preproc=yes
20091 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20092 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20093 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20094 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20095 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20096 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20097 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20098 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20099 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20100 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20101 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20102 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20106 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20107 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20108 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20109 echo $ECHO_N "(cached
) $ECHO_C" >&6
20111 eval "$as_ac_Header=\
$ac_header_preproc"
20113 ac_res=`eval echo '${'$as_ac_Header'}'`
20114 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20115 echo "${ECHO_T}$ac_res" >&6; }
20118 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20119 cat >>confdefs.h <<_ACEOF
20120 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20129 for ac_header in des.h
20131 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20132 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20133 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20134 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20135 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20136 echo $ECHO_N "(cached
) $ECHO_C" >&6
20138 ac_res=`eval echo '${'$as_ac_Header'}'`
20139 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20140 echo "${ECHO_T}$ac_res" >&6; }
20142 # Is the header compilable?
20143 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20144 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20145 cat >conftest.$ac_ext <<_ACEOF
20148 cat confdefs.h >>conftest.$ac_ext
20149 cat >>conftest.$ac_ext <<_ACEOF
20150 /* end confdefs.h. */
20151 $ac_includes_default
20152 #include <$ac_header>
20154 rm -f conftest.$ac_objext
20155 if { (ac_try="$ac_compile"
20156 case "(($ac_try" in
20157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158 *) ac_try_echo=$ac_try;;
20160 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20161 (eval "$ac_compile") 2>conftest.er1
20163 grep -v '^ *+' conftest.er1 >conftest.err
20165 cat conftest.err >&5
20166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20167 (exit $ac_status); } && {
20168 test -z "$ac_c_werror_flag" ||
20169 test ! -s conftest.err
20170 } && test -s conftest.$ac_objext; then
20171 ac_header_compiler=yes
20173 echo "$as_me: failed program was
:" >&5
20174 sed 's/^/| /' conftest.$ac_ext >&5
20176 ac_header_compiler=no
20179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20180 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20181 echo "${ECHO_T}$ac_header_compiler" >&6; }
20183 # Is the header present?
20184 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20185 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20186 cat >conftest.$ac_ext <<_ACEOF
20189 cat confdefs.h >>conftest.$ac_ext
20190 cat >>conftest.$ac_ext <<_ACEOF
20191 /* end confdefs.h. */
20192 #include <$ac_header>
20194 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20195 case "(($ac_try" in
20196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20197 *) ac_try_echo=$ac_try;;
20199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20200 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20202 grep -v '^ *+' conftest.er1 >conftest.err
20204 cat conftest.err >&5
20205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20206 (exit $ac_status); } >/dev/null && {
20207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20208 test ! -s conftest.err
20210 ac_header_preproc=yes
20212 echo "$as_me: failed program was
:" >&5
20213 sed 's/^/| /' conftest.$ac_ext >&5
20215 ac_header_preproc=no
20218 rm -f conftest.err conftest.$ac_ext
20219 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20220 echo "${ECHO_T}$ac_header_preproc" >&6; }
20222 # So? What about this header?
20223 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20225 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20226 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20227 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20228 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20229 ac_header_preproc=yes
20232 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20233 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20234 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20235 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20236 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20237 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20238 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20239 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20240 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20241 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20242 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20243 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20247 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20248 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20249 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20250 echo $ECHO_N "(cached
) $ECHO_C" >&6
20252 eval "$as_ac_Header=\
$ac_header_preproc"
20254 ac_res=`eval echo '${'$as_ac_Header'}'`
20255 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20256 echo "${ECHO_T}$ac_res" >&6; }
20259 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20260 cat >>confdefs.h <<_ACEOF
20261 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20266 for ac_header in kerberosIV/des.h
20268 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20269 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20270 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20271 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20272 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20273 echo $ECHO_N "(cached
) $ECHO_C" >&6
20275 ac_res=`eval echo '${'$as_ac_Header'}'`
20276 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20277 echo "${ECHO_T}$ac_res" >&6; }
20279 # Is the header compilable?
20280 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20281 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20282 cat >conftest.$ac_ext <<_ACEOF
20285 cat confdefs.h >>conftest.$ac_ext
20286 cat >>conftest.$ac_ext <<_ACEOF
20287 /* end confdefs.h. */
20288 $ac_includes_default
20289 #include <$ac_header>
20291 rm -f conftest.$ac_objext
20292 if { (ac_try="$ac_compile"
20293 case "(($ac_try" in
20294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20295 *) ac_try_echo=$ac_try;;
20297 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20298 (eval "$ac_compile") 2>conftest.er1
20300 grep -v '^ *+' conftest.er1 >conftest.err
20302 cat conftest.err >&5
20303 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20304 (exit $ac_status); } && {
20305 test -z "$ac_c_werror_flag" ||
20306 test ! -s conftest.err
20307 } && test -s conftest.$ac_objext; then
20308 ac_header_compiler=yes
20310 echo "$as_me: failed program was
:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20313 ac_header_compiler=no
20316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20317 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20318 echo "${ECHO_T}$ac_header_compiler" >&6; }
20320 # Is the header present?
20321 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20322 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20323 cat >conftest.$ac_ext <<_ACEOF
20326 cat confdefs.h >>conftest.$ac_ext
20327 cat >>conftest.$ac_ext <<_ACEOF
20328 /* end confdefs.h. */
20329 #include <$ac_header>
20331 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20332 case "(($ac_try" in
20333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20334 *) ac_try_echo=$ac_try;;
20336 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20337 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20339 grep -v '^ *+' conftest.er1 >conftest.err
20341 cat conftest.err >&5
20342 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20343 (exit $ac_status); } >/dev/null && {
20344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20345 test ! -s conftest.err
20347 ac_header_preproc=yes
20349 echo "$as_me: failed program was
:" >&5
20350 sed 's/^/| /' conftest.$ac_ext >&5
20352 ac_header_preproc=no
20355 rm -f conftest.err conftest.$ac_ext
20356 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20357 echo "${ECHO_T}$ac_header_preproc" >&6; }
20359 # So? What about this header?
20360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20362 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20363 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20364 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20365 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20366 ac_header_preproc=yes
20369 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20370 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20371 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20372 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20373 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20374 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20375 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20376 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20377 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20379 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20380 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20384 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20385 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20386 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20387 echo $ECHO_N "(cached
) $ECHO_C" >&6
20389 eval "$as_ac_Header=\
$ac_header_preproc"
20391 ac_res=`eval echo '${'$as_ac_Header'}'`
20392 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20393 echo "${ECHO_T}$ac_res" >&6; }
20396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20397 cat >>confdefs.h <<_ACEOF
20398 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20403 for ac_header in kerberos/des.h
20405 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20406 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20407 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20408 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20409 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20410 echo $ECHO_N "(cached
) $ECHO_C" >&6
20412 ac_res=`eval echo '${'$as_ac_Header'}'`
20413 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20414 echo "${ECHO_T}$ac_res" >&6; }
20416 # Is the header compilable?
20417 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20418 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20419 cat >conftest.$ac_ext <<_ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20425 $ac_includes_default
20426 #include <$ac_header>
20428 rm -f conftest.$ac_objext
20429 if { (ac_try="$ac_compile"
20430 case "(($ac_try" in
20431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20432 *) ac_try_echo=$ac_try;;
20434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20435 (eval "$ac_compile") 2>conftest.er1
20437 grep -v '^ *+' conftest.er1 >conftest.err
20439 cat conftest.err >&5
20440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20441 (exit $ac_status); } && {
20442 test -z "$ac_c_werror_flag" ||
20443 test ! -s conftest.err
20444 } && test -s conftest.$ac_objext; then
20445 ac_header_compiler=yes
20447 echo "$as_me: failed program was
:" >&5
20448 sed 's/^/| /' conftest.$ac_ext >&5
20450 ac_header_compiler=no
20453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20454 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20455 echo "${ECHO_T}$ac_header_compiler" >&6; }
20457 # Is the header present?
20458 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20459 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20460 cat >conftest.$ac_ext <<_ACEOF
20463 cat confdefs.h >>conftest.$ac_ext
20464 cat >>conftest.$ac_ext <<_ACEOF
20465 /* end confdefs.h. */
20466 #include <$ac_header>
20468 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20469 case "(($ac_try" in
20470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20471 *) ac_try_echo=$ac_try;;
20473 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20474 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20476 grep -v '^ *+' conftest.er1 >conftest.err
20478 cat conftest.err >&5
20479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20480 (exit $ac_status); } >/dev/null && {
20481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20482 test ! -s conftest.err
20484 ac_header_preproc=yes
20486 echo "$as_me: failed program was
:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20489 ac_header_preproc=no
20492 rm -f conftest.err conftest.$ac_ext
20493 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20494 echo "${ECHO_T}$ac_header_preproc" >&6; }
20496 # So? What about this header?
20497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20499 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20500 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20501 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20503 ac_header_preproc=yes
20506 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20507 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20508 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20509 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20510 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20511 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20512 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20513 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20514 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20516 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20517 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20521 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20522 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20523 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20524 echo $ECHO_N "(cached
) $ECHO_C" >&6
20526 eval "$as_ac_Header=\
$ac_header_preproc"
20528 ac_res=`eval echo '${'$as_ac_Header'}'`
20529 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20530 echo "${ECHO_T}$ac_res" >&6; }
20533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20534 cat >>confdefs.h <<_ACEOF
20535 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20551 for ac_header in krb.h
20553 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20554 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20555 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20556 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20557 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20558 echo $ECHO_N "(cached
) $ECHO_C" >&6
20560 ac_res=`eval echo '${'$as_ac_Header'}'`
20561 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20562 echo "${ECHO_T}$ac_res" >&6; }
20564 # Is the header compilable?
20565 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20566 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20567 cat >conftest.$ac_ext <<_ACEOF
20570 cat confdefs.h >>conftest.$ac_ext
20571 cat >>conftest.$ac_ext <<_ACEOF
20572 /* end confdefs.h. */
20573 $ac_includes_default
20574 #include <$ac_header>
20576 rm -f conftest.$ac_objext
20577 if { (ac_try="$ac_compile"
20578 case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20582 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_compile") 2>conftest.er1
20585 grep -v '^ *+' conftest.er1 >conftest.err
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20589 (exit $ac_status); } && {
20590 test -z "$ac_c_werror_flag" ||
20591 test ! -s conftest.err
20592 } && test -s conftest.$ac_objext; then
20593 ac_header_compiler=yes
20595 echo "$as_me: failed program was
:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20598 ac_header_compiler=no
20601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20602 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20603 echo "${ECHO_T}$ac_header_compiler" >&6; }
20605 # Is the header present?
20606 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20607 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20608 cat >conftest.$ac_ext <<_ACEOF
20611 cat confdefs.h >>conftest.$ac_ext
20612 cat >>conftest.$ac_ext <<_ACEOF
20613 /* end confdefs.h. */
20614 #include <$ac_header>
20616 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20617 case "(($ac_try" in
20618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20619 *) ac_try_echo=$ac_try;;
20621 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20622 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20624 grep -v '^ *+' conftest.er1 >conftest.err
20626 cat conftest.err >&5
20627 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20628 (exit $ac_status); } >/dev/null && {
20629 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20630 test ! -s conftest.err
20632 ac_header_preproc=yes
20634 echo "$as_me: failed program was
:" >&5
20635 sed 's/^/| /' conftest.$ac_ext >&5
20637 ac_header_preproc=no
20640 rm -f conftest.err conftest.$ac_ext
20641 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20642 echo "${ECHO_T}$ac_header_preproc" >&6; }
20644 # So? What about this header?
20645 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20647 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20648 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20649 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20650 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20651 ac_header_preproc=yes
20654 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20655 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20656 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20657 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20658 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20659 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20660 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20661 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20662 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20663 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20664 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20665 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20669 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20670 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20671 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20672 echo $ECHO_N "(cached
) $ECHO_C" >&6
20674 eval "$as_ac_Header=\
$ac_header_preproc"
20676 ac_res=`eval echo '${'$as_ac_Header'}'`
20677 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20678 echo "${ECHO_T}$ac_res" >&6; }
20681 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20682 cat >>confdefs.h <<_ACEOF
20683 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20688 for ac_header in kerberosIV/krb.h
20690 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20691 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20692 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20693 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20694 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20695 echo $ECHO_N "(cached
) $ECHO_C" >&6
20697 ac_res=`eval echo '${'$as_ac_Header'}'`
20698 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20699 echo "${ECHO_T}$ac_res" >&6; }
20701 # Is the header compilable?
20702 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20703 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20704 cat >conftest.$ac_ext <<_ACEOF
20707 cat confdefs.h >>conftest.$ac_ext
20708 cat >>conftest.$ac_ext <<_ACEOF
20709 /* end confdefs.h. */
20710 $ac_includes_default
20711 #include <$ac_header>
20713 rm -f conftest.$ac_objext
20714 if { (ac_try="$ac_compile"
20715 case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20719 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_compile") 2>conftest.er1
20722 grep -v '^ *+' conftest.er1 >conftest.err
20724 cat conftest.err >&5
20725 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20726 (exit $ac_status); } && {
20727 test -z "$ac_c_werror_flag" ||
20728 test ! -s conftest.err
20729 } && test -s conftest.$ac_objext; then
20730 ac_header_compiler=yes
20732 echo "$as_me: failed program was
:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20735 ac_header_compiler=no
20738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20739 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20740 echo "${ECHO_T}$ac_header_compiler" >&6; }
20742 # Is the header present?
20743 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20744 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20745 cat >conftest.$ac_ext <<_ACEOF
20748 cat confdefs.h >>conftest.$ac_ext
20749 cat >>conftest.$ac_ext <<_ACEOF
20750 /* end confdefs.h. */
20751 #include <$ac_header>
20753 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20754 case "(($ac_try" in
20755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20756 *) ac_try_echo=$ac_try;;
20758 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20759 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20761 grep -v '^ *+' conftest.er1 >conftest.err
20763 cat conftest.err >&5
20764 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20765 (exit $ac_status); } >/dev/null && {
20766 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20767 test ! -s conftest.err
20769 ac_header_preproc=yes
20771 echo "$as_me: failed program was
:" >&5
20772 sed 's/^/| /' conftest.$ac_ext >&5
20774 ac_header_preproc=no
20777 rm -f conftest.err conftest.$ac_ext
20778 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20779 echo "${ECHO_T}$ac_header_preproc" >&6; }
20781 # So? What about this header?
20782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20784 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20785 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20786 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20788 ac_header_preproc=yes
20791 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20792 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20793 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20794 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20795 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20796 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20797 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20798 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20799 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20801 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20802 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20806 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20807 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20808 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20809 echo $ECHO_N "(cached
) $ECHO_C" >&6
20811 eval "$as_ac_Header=\
$ac_header_preproc"
20813 ac_res=`eval echo '${'$as_ac_Header'}'`
20814 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20815 echo "${ECHO_T}$ac_res" >&6; }
20818 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20819 cat >>confdefs.h <<_ACEOF
20820 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20825 for ac_header in kerberos/krb.h
20827 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20828 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20829 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20830 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20831 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20832 echo $ECHO_N "(cached
) $ECHO_C" >&6
20834 ac_res=`eval echo '${'$as_ac_Header'}'`
20835 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20836 echo "${ECHO_T}$ac_res" >&6; }
20838 # Is the header compilable?
20839 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20840 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20841 cat >conftest.$ac_ext <<_ACEOF
20844 cat confdefs.h >>conftest.$ac_ext
20845 cat >>conftest.$ac_ext <<_ACEOF
20846 /* end confdefs.h. */
20847 $ac_includes_default
20848 #include <$ac_header>
20850 rm -f conftest.$ac_objext
20851 if { (ac_try="$ac_compile"
20852 case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_compile") 2>conftest.er1
20859 grep -v '^ *+' conftest.er1 >conftest.err
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20863 (exit $ac_status); } && {
20864 test -z "$ac_c_werror_flag" ||
20865 test ! -s conftest.err
20866 } && test -s conftest.$ac_objext; then
20867 ac_header_compiler=yes
20869 echo "$as_me: failed program was
:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20872 ac_header_compiler=no
20875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20876 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20877 echo "${ECHO_T}$ac_header_compiler" >&6; }
20879 # Is the header present?
20880 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20881 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20882 cat >conftest.$ac_ext <<_ACEOF
20885 cat confdefs.h >>conftest.$ac_ext
20886 cat >>conftest.$ac_ext <<_ACEOF
20887 /* end confdefs.h. */
20888 #include <$ac_header>
20890 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20891 case "(($ac_try" in
20892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20893 *) ac_try_echo=$ac_try;;
20895 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20896 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20898 grep -v '^ *+' conftest.er1 >conftest.err
20900 cat conftest.err >&5
20901 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20902 (exit $ac_status); } >/dev/null && {
20903 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20904 test ! -s conftest.err
20906 ac_header_preproc=yes
20908 echo "$as_me: failed program was
:" >&5
20909 sed 's/^/| /' conftest.$ac_ext >&5
20911 ac_header_preproc=no
20914 rm -f conftest.err conftest.$ac_ext
20915 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20916 echo "${ECHO_T}$ac_header_preproc" >&6; }
20918 # So? What about this header?
20919 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20921 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20922 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20923 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20924 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20925 ac_header_preproc=yes
20928 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20929 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20930 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20931 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20932 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20933 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20934 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20935 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20936 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20937 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20938 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20939 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20943 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20944 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20945 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20946 echo $ECHO_N "(cached
) $ECHO_C" >&6
20948 eval "$as_ac_Header=\
$ac_header_preproc"
20950 ac_res=`eval echo '${'$as_ac_Header'}'`
20951 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20952 echo "${ECHO_T}$ac_res" >&6; }
20955 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20956 cat >>confdefs.h <<_ACEOF
20957 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20974 for ac_header in com_err.h
20976 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20977 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20978 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20979 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20980 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20981 echo $ECHO_N "(cached
) $ECHO_C" >&6
20983 ac_res=`eval echo '${'$as_ac_Header'}'`
20984 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20985 echo "${ECHO_T}$ac_res" >&6; }
20987 # Is the header compilable?
20988 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20989 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20990 cat >conftest.$ac_ext <<_ACEOF
20993 cat confdefs.h >>conftest.$ac_ext
20994 cat >>conftest.$ac_ext <<_ACEOF
20995 /* end confdefs.h. */
20996 $ac_includes_default
20997 #include <$ac_header>
20999 rm -f conftest.$ac_objext
21000 if { (ac_try="$ac_compile"
21001 case "(($ac_try" in
21002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21003 *) ac_try_echo=$ac_try;;
21005 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21006 (eval "$ac_compile") 2>conftest.er1
21008 grep -v '^ *+' conftest.er1 >conftest.err
21010 cat conftest.err >&5
21011 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21012 (exit $ac_status); } && {
21013 test -z "$ac_c_werror_flag" ||
21014 test ! -s conftest.err
21015 } && test -s conftest.$ac_objext; then
21016 ac_header_compiler=yes
21018 echo "$as_me: failed program was
:" >&5
21019 sed 's/^/| /' conftest.$ac_ext >&5
21021 ac_header_compiler=no
21024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21025 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21026 echo "${ECHO_T}$ac_header_compiler" >&6; }
21028 # Is the header present?
21029 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21030 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21031 cat >conftest.$ac_ext <<_ACEOF
21034 cat confdefs.h >>conftest.$ac_ext
21035 cat >>conftest.$ac_ext <<_ACEOF
21036 /* end confdefs.h. */
21037 #include <$ac_header>
21039 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21040 case "(($ac_try" in
21041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21042 *) ac_try_echo=$ac_try;;
21044 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21045 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21047 grep -v '^ *+' conftest.er1 >conftest.err
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21051 (exit $ac_status); } >/dev/null && {
21052 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21053 test ! -s conftest.err
21055 ac_header_preproc=yes
21057 echo "$as_me: failed program was
:" >&5
21058 sed 's/^/| /' conftest.$ac_ext >&5
21060 ac_header_preproc=no
21063 rm -f conftest.err conftest.$ac_ext
21064 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21065 echo "${ECHO_T}$ac_header_preproc" >&6; }
21067 # So? What about this header?
21068 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21070 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21071 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21072 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21073 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21074 ac_header_preproc=yes
21077 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21078 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21079 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21080 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21081 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21082 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21083 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21084 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21085 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21086 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21087 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21088 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21092 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21093 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21094 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21095 echo $ECHO_N "(cached
) $ECHO_C" >&6
21097 eval "$as_ac_Header=\
$ac_header_preproc"
21099 ac_res=`eval echo '${'$as_ac_Header'}'`
21100 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21101 echo "${ECHO_T}$ac_res" >&6; }
21104 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21105 cat >>confdefs.h <<_ACEOF
21106 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21115 # Solaris requires -lintl if you want strerror (which calls dgettext)
21116 # to return localized messages.
21118 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21119 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21120 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21121 echo $ECHO_N "(cached
) $ECHO_C" >&6
21123 ac_check_lib_save_LIBS=$LIBS
21124 LIBS="-lintl $LIBS"
21125 cat >conftest.$ac_ext <<_ACEOF
21128 cat confdefs.h >>conftest.$ac_ext
21129 cat >>conftest.$ac_ext <<_ACEOF
21130 /* end confdefs.h. */
21132 /* Override any GCC internal prototype to avoid an error.
21133 Use char because int might match the return type of a GCC
21134 builtin and then its argument prototype would still apply. */
21142 return dgettext ();
21147 rm -f conftest.$ac_objext conftest$ac_exeext
21148 if { (ac_try="$ac_link"
21149 case "(($ac_try" in
21150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21151 *) ac_try_echo=$ac_try;;
21153 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21154 (eval "$ac_link") 2>conftest.er1
21156 grep -v '^ *+' conftest.er1 >conftest.err
21158 cat conftest.err >&5
21159 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21160 (exit $ac_status); } && {
21161 test -z "$ac_c_werror_flag" ||
21162 test ! -s conftest.err
21163 } && test -s conftest$ac_exeext &&
21164 $as_test_x conftest$ac_exeext; then
21165 ac_cv_lib_intl_dgettext=yes
21167 echo "$as_me: failed program was
:" >&5
21168 sed 's/^/| /' conftest.$ac_ext >&5
21170 ac_cv_lib_intl_dgettext=no
21173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21174 conftest$ac_exeext conftest.$ac_ext
21175 LIBS=$ac_check_lib_save_LIBS
21177 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21178 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21179 if test $ac_cv_lib_intl_dgettext = yes; then
21180 cat >>confdefs.h <<_ACEOF
21181 #define HAVE_LIBINTL 1
21184 LIBS="-lintl $LIBS"
21189 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21190 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21191 if test "${emacs_cv_localtime_cache+set}" = set; then
21192 echo $ECHO_N "(cached
) $ECHO_C" >&6
21194 if test x$ac_cv_func_tzset = xyes; then
21195 if test "$cross_compiling" = yes; then
21196 # If we have tzset, assume the worst when cross-compiling.
21197 emacs_cv_localtime_cache=yes
21199 cat >conftest.$ac_ext <<_ACEOF
21202 cat confdefs.h >>conftest.$ac_ext
21203 cat >>conftest.$ac_ext <<_ACEOF
21204 /* end confdefs.h. */
21206 extern char **environ;
21210 for (to = from = environ; (*to = *from); from++)
21211 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21214 char TZ_GMT0[] = "TZ
=GMT0
";
21215 char TZ_PST8[] = "TZ
=PST8
";
21218 time_t now = time ((time_t *) 0);
21219 int hour_GMT0, hour_unset;
21220 if (putenv (TZ_GMT0) != 0)
21222 hour_GMT0 = localtime (&now)->tm_hour;
21224 hour_unset = localtime (&now)->tm_hour;
21225 if (putenv (TZ_PST8) != 0)
21227 if (localtime (&now)->tm_hour == hour_GMT0)
21230 if (localtime (&now)->tm_hour != hour_unset)
21235 rm -f conftest$ac_exeext
21236 if { (ac_try="$ac_link"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21241 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_link") 2>&5
21244 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21245 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21246 { (case "(($ac_try" in
21247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21248 *) ac_try_echo=$ac_try;;
21250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21251 (eval "$ac_try") 2>&5
21253 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21254 (exit $ac_status); }; }; then
21255 emacs_cv_localtime_cache=no
21257 echo "$as_me: program exited with status
$ac_status" >&5
21258 echo "$as_me: failed program was
:" >&5
21259 sed 's/^/| /' conftest.$ac_ext >&5
21261 ( exit $ac_status )
21262 emacs_cv_localtime_cache=yes
21264 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21269 # If we lack tzset, report that localtime does not cache TZ,
21270 # since we can't invalidate the cache if we don't have tzset.
21271 emacs_cv_localtime_cache=no
21274 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21275 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21276 if test $emacs_cv_localtime_cache = yes; then
21278 cat >>confdefs.h <<\_ACEOF
21279 #define LOCALTIME_CACHE 1
21284 if test "x
$HAVE_TIMEVAL" = xyes; then
21286 for ac_func in gettimeofday
21288 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21289 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21290 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21291 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21292 echo $ECHO_N "(cached
) $ECHO_C" >&6
21294 cat >conftest.$ac_ext <<_ACEOF
21297 cat confdefs.h >>conftest.$ac_ext
21298 cat >>conftest.$ac_ext <<_ACEOF
21299 /* end confdefs.h. */
21300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21302 #define $ac_func innocuous_$ac_func
21304 /* System header to define __stub macros and hopefully few prototypes,
21305 which can conflict with char $ac_func (); below.
21306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21307 <limits.h> exists even on freestanding compilers. */
21310 # include <limits.h>
21312 # include <assert.h>
21317 /* Override any GCC internal prototype to avoid an error.
21318 Use char because int might match the return type of a GCC
21319 builtin and then its argument prototype would still apply. */
21324 /* The GNU C library defines this for functions which it implements
21325 to always fail with ENOSYS. Some functions are actually named
21326 something starting with __ and the normal name is an alias. */
21327 #if defined __stub_$ac_func || defined __stub___$ac_func
21334 return $ac_func ();
21339 rm -f conftest.$ac_objext conftest$ac_exeext
21340 if { (ac_try="$ac_link"
21341 case "(($ac_try" in
21342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21343 *) ac_try_echo=$ac_try;;
21345 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21346 (eval "$ac_link") 2>conftest.er1
21348 grep -v '^ *+' conftest.er1 >conftest.err
21350 cat conftest.err >&5
21351 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21352 (exit $ac_status); } && {
21353 test -z "$ac_c_werror_flag" ||
21354 test ! -s conftest.err
21355 } && test -s conftest$ac_exeext &&
21356 $as_test_x conftest$ac_exeext; then
21357 eval "$as_ac_var=yes"
21359 echo "$as_me: failed program was
:" >&5
21360 sed 's/^/| /' conftest.$ac_ext >&5
21362 eval "$as_ac_var=no
"
21365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21366 conftest$ac_exeext conftest.$ac_ext
21368 ac_res=`eval echo '${'$as_ac_var'}'`
21369 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21370 echo "${ECHO_T}$ac_res" >&6; }
21371 if test `eval echo '${'$as_ac_var'}'` = yes; then
21372 cat >>confdefs.h <<_ACEOF
21373 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21379 if test $ac_cv_func_gettimeofday = yes; then
21380 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21381 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21382 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21383 echo $ECHO_N "(cached
) $ECHO_C" >&6
21385 cat >conftest.$ac_ext <<_ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21392 #ifdef TIME_WITH_SYS_TIME
21393 #include <sys/time.h>
21396 #ifdef HAVE_SYS_TIME_H
21397 #include <sys/time.h>
21405 struct timeval time;
21406 gettimeofday (&time, 0);
21411 rm -f conftest.$ac_objext
21412 if { (ac_try="$ac_compile"
21413 case "(($ac_try" in
21414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21415 *) ac_try_echo=$ac_try;;
21417 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21418 (eval "$ac_compile") 2>conftest.er1
21420 grep -v '^ *+' conftest.er1 >conftest.err
21422 cat conftest.err >&5
21423 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21424 (exit $ac_status); } && {
21425 test -z "$ac_c_werror_flag" ||
21426 test ! -s conftest.err
21427 } && test -s conftest.$ac_objext; then
21428 emacs_cv_gettimeofday_two_arguments=yes
21430 echo "$as_me: failed program was
:" >&5
21431 sed 's/^/| /' conftest.$ac_ext >&5
21433 emacs_cv_gettimeofday_two_arguments=no
21436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21438 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21439 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21440 if test $emacs_cv_gettimeofday_two_arguments = no; then
21442 cat >>confdefs.h <<\_ACEOF
21443 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21451 { echo "$as_me:$LINENO: checking
for socket
" >&5
21452 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21453 if test "${ac_cv_func_socket+set}" = set; then
21454 echo $ECHO_N "(cached
) $ECHO_C" >&6
21456 cat >conftest.$ac_ext <<_ACEOF
21459 cat confdefs.h >>conftest.$ac_ext
21460 cat >>conftest.$ac_ext <<_ACEOF
21461 /* end confdefs.h. */
21462 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21463 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21464 #define socket innocuous_socket
21466 /* System header to define __stub macros and hopefully few prototypes,
21467 which can conflict with char socket (); below.
21468 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21469 <limits.h> exists even on freestanding compilers. */
21472 # include <limits.h>
21474 # include <assert.h>
21479 /* Override any GCC internal prototype to avoid an error.
21480 Use char because int might match the return type of a GCC
21481 builtin and then its argument prototype would still apply. */
21486 /* The GNU C library defines this for functions which it implements
21487 to always fail with ENOSYS. Some functions are actually named
21488 something starting with __ and the normal name is an alias. */
21489 #if defined __stub_socket || defined __stub___socket
21501 rm -f conftest.$ac_objext conftest$ac_exeext
21502 if { (ac_try="$ac_link"
21503 case "(($ac_try" in
21504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21505 *) ac_try_echo=$ac_try;;
21507 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21508 (eval "$ac_link") 2>conftest.er1
21510 grep -v '^ *+' conftest.er1 >conftest.err
21512 cat conftest.err >&5
21513 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21514 (exit $ac_status); } && {
21515 test -z "$ac_c_werror_flag" ||
21516 test ! -s conftest.err
21517 } && test -s conftest$ac_exeext &&
21518 $as_test_x conftest$ac_exeext; then
21519 ac_cv_func_socket=yes
21521 echo "$as_me: failed program was
:" >&5
21522 sed 's/^/| /' conftest.$ac_ext >&5
21524 ac_cv_func_socket=no
21527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21528 conftest$ac_exeext conftest.$ac_ext
21530 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21531 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21532 if test $ac_cv_func_socket = yes; then
21538 if test $ok_so_far = yes; then
21539 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21540 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21541 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21542 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21543 echo $ECHO_N "(cached
) $ECHO_C" >&6
21545 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21546 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21548 # Is the header compilable?
21549 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21550 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21551 cat >conftest.$ac_ext <<_ACEOF
21554 cat confdefs.h >>conftest.$ac_ext
21555 cat >>conftest.$ac_ext <<_ACEOF
21556 /* end confdefs.h. */
21557 $ac_includes_default
21558 #include <netinet/in.h>
21560 rm -f conftest.$ac_objext
21561 if { (ac_try="$ac_compile"
21562 case "(($ac_try" in
21563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21564 *) ac_try_echo=$ac_try;;
21566 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21567 (eval "$ac_compile") 2>conftest.er1
21569 grep -v '^ *+' conftest.er1 >conftest.err
21571 cat conftest.err >&5
21572 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21573 (exit $ac_status); } && {
21574 test -z "$ac_c_werror_flag" ||
21575 test ! -s conftest.err
21576 } && test -s conftest.$ac_objext; then
21577 ac_header_compiler=yes
21579 echo "$as_me: failed program was
:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21582 ac_header_compiler=no
21585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21586 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21587 echo "${ECHO_T}$ac_header_compiler" >&6; }
21589 # Is the header present?
21590 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21591 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21592 cat >conftest.$ac_ext <<_ACEOF
21595 cat confdefs.h >>conftest.$ac_ext
21596 cat >>conftest.$ac_ext <<_ACEOF
21597 /* end confdefs.h. */
21598 #include <netinet/in.h>
21600 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21601 case "(($ac_try" in
21602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21603 *) ac_try_echo=$ac_try;;
21605 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21606 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21608 grep -v '^ *+' conftest.er1 >conftest.err
21610 cat conftest.err >&5
21611 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21612 (exit $ac_status); } >/dev/null && {
21613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21614 test ! -s conftest.err
21616 ac_header_preproc=yes
21618 echo "$as_me: failed program was
:" >&5
21619 sed 's/^/| /' conftest.$ac_ext >&5
21621 ac_header_preproc=no
21624 rm -f conftest.err conftest.$ac_ext
21625 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21626 echo "${ECHO_T}$ac_header_preproc" >&6; }
21628 # So? What about this header?
21629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21631 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21632 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21633 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21634 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21635 ac_header_preproc=yes
21638 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21639 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21640 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21641 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21642 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21643 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21644 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21645 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21646 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21647 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21648 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21649 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21653 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21654 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21655 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21656 echo $ECHO_N "(cached
) $ECHO_C" >&6
21658 ac_cv_header_netinet_in_h=$ac_header_preproc
21660 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21661 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21664 if test $ac_cv_header_netinet_in_h = yes; then
21672 if test $ok_so_far = yes; then
21673 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21674 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21675 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21676 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21677 echo $ECHO_N "(cached
) $ECHO_C" >&6
21679 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21680 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21682 # Is the header compilable?
21683 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21684 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21685 cat >conftest.$ac_ext <<_ACEOF
21688 cat confdefs.h >>conftest.$ac_ext
21689 cat >>conftest.$ac_ext <<_ACEOF
21690 /* end confdefs.h. */
21691 $ac_includes_default
21692 #include <arpa/inet.h>
21694 rm -f conftest.$ac_objext
21695 if { (ac_try="$ac_compile"
21696 case "(($ac_try" in
21697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21698 *) ac_try_echo=$ac_try;;
21700 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21701 (eval "$ac_compile") 2>conftest.er1
21703 grep -v '^ *+' conftest.er1 >conftest.err
21705 cat conftest.err >&5
21706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21707 (exit $ac_status); } && {
21708 test -z "$ac_c_werror_flag" ||
21709 test ! -s conftest.err
21710 } && test -s conftest.$ac_objext; then
21711 ac_header_compiler=yes
21713 echo "$as_me: failed program was
:" >&5
21714 sed 's/^/| /' conftest.$ac_ext >&5
21716 ac_header_compiler=no
21719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21720 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21721 echo "${ECHO_T}$ac_header_compiler" >&6; }
21723 # Is the header present?
21724 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21725 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21726 cat >conftest.$ac_ext <<_ACEOF
21729 cat confdefs.h >>conftest.$ac_ext
21730 cat >>conftest.$ac_ext <<_ACEOF
21731 /* end confdefs.h. */
21732 #include <arpa/inet.h>
21734 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21735 case "(($ac_try" in
21736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21737 *) ac_try_echo=$ac_try;;
21739 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21740 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21742 grep -v '^ *+' conftest.er1 >conftest.err
21744 cat conftest.err >&5
21745 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21746 (exit $ac_status); } >/dev/null && {
21747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21748 test ! -s conftest.err
21750 ac_header_preproc=yes
21752 echo "$as_me: failed program was
:" >&5
21753 sed 's/^/| /' conftest.$ac_ext >&5
21755 ac_header_preproc=no
21758 rm -f conftest.err conftest.$ac_ext
21759 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21760 echo "${ECHO_T}$ac_header_preproc" >&6; }
21762 # So? What about this header?
21763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21765 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21766 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21767 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
21768 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
21769 ac_header_preproc=yes
21772 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
21773 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
21774 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
21775 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
21776 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
21777 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
21778 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21779 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21780 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
21781 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
21782 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
21783 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
21787 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21788 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21789 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21790 echo $ECHO_N "(cached
) $ECHO_C" >&6
21792 ac_cv_header_arpa_inet_h=$ac_header_preproc
21794 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21795 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21798 if test $ac_cv_header_arpa_inet_h = yes; then
21806 if test $ok_so_far = yes; then
21808 cat >>confdefs.h <<\_ACEOF
21809 #define HAVE_INET_SOCKETS 1
21815 for ac_header in sys/ioctl.h
21817 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21818 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21819 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21820 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21821 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21822 echo $ECHO_N "(cached
) $ECHO_C" >&6
21824 ac_res=`eval echo '${'$as_ac_Header'}'`
21825 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21826 echo "${ECHO_T}$ac_res" >&6; }
21828 # Is the header compilable?
21829 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21830 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21831 cat >conftest.$ac_ext <<_ACEOF
21834 cat confdefs.h >>conftest.$ac_ext
21835 cat >>conftest.$ac_ext <<_ACEOF
21836 /* end confdefs.h. */
21837 $ac_includes_default
21838 #include <$ac_header>
21840 rm -f conftest.$ac_objext
21841 if { (ac_try="$ac_compile"
21842 case "(($ac_try" in
21843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21844 *) ac_try_echo=$ac_try;;
21846 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21847 (eval "$ac_compile") 2>conftest.er1
21849 grep -v '^ *+' conftest.er1 >conftest.err
21851 cat conftest.err >&5
21852 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21853 (exit $ac_status); } && {
21854 test -z "$ac_c_werror_flag" ||
21855 test ! -s conftest.err
21856 } && test -s conftest.$ac_objext; then
21857 ac_header_compiler=yes
21859 echo "$as_me: failed program was
:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21862 ac_header_compiler=no
21865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21866 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21867 echo "${ECHO_T}$ac_header_compiler" >&6; }
21869 # Is the header present?
21870 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21871 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21872 cat >conftest.$ac_ext <<_ACEOF
21875 cat confdefs.h >>conftest.$ac_ext
21876 cat >>conftest.$ac_ext <<_ACEOF
21877 /* end confdefs.h. */
21878 #include <$ac_header>
21880 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21881 case "(($ac_try" in
21882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21883 *) ac_try_echo=$ac_try;;
21885 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21886 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21888 grep -v '^ *+' conftest.er1 >conftest.err
21890 cat conftest.err >&5
21891 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21892 (exit $ac_status); } >/dev/null && {
21893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21894 test ! -s conftest.err
21896 ac_header_preproc=yes
21898 echo "$as_me: failed program was
:" >&5
21899 sed 's/^/| /' conftest.$ac_ext >&5
21901 ac_header_preproc=no
21904 rm -f conftest.err conftest.$ac_ext
21905 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21906 echo "${ECHO_T}$ac_header_preproc" >&6; }
21908 # So? What about this header?
21909 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21911 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21912 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21913 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21914 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21915 ac_header_preproc=yes
21918 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21919 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21920 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21921 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21922 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21923 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21924 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21925 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21926 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21927 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21928 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21929 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21933 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21934 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21935 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21936 echo $ECHO_N "(cached
) $ECHO_C" >&6
21938 eval "$as_ac_Header=\
$ac_header_preproc"
21940 ac_res=`eval echo '${'$as_ac_Header'}'`
21941 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21942 echo "${ECHO_T}$ac_res" >&6; }
21945 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21946 cat >>confdefs.h <<_ACEOF
21947 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21955 if test -f /usr/lpp/X11/bin/smt.exp; then
21957 cat >>confdefs.h <<\_ACEOF
21958 #define HAVE_AIX_SMT_EXP 1
21963 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
21964 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
21965 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21966 { echo "$as_me:$LINENO: result
: yes" >&5
21967 echo "${ECHO_T}yes" >&6; }
21969 cat >>confdefs.h <<\_ACEOF
21970 #define HAVE_DEV_PTMX 1
21974 { echo "$as_me:$LINENO: result
: no
" >&5
21975 echo "${ECHO_T}no
" >&6; }
21978 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
21979 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
21980 if test "${ac_cv_type_pid_t+set}" = set; then
21981 echo $ECHO_N "(cached
) $ECHO_C" >&6
21983 cat >conftest.$ac_ext <<_ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h. */
21989 $ac_includes_default
21990 typedef pid_t ac__type_new_;
21994 if ((ac__type_new_ *) 0)
21996 if (sizeof (ac__type_new_))
22002 rm -f conftest.$ac_objext
22003 if { (ac_try="$ac_compile"
22004 case "(($ac_try" in
22005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22006 *) ac_try_echo=$ac_try;;
22008 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22009 (eval "$ac_compile") 2>conftest.er1
22011 grep -v '^ *+' conftest.er1 >conftest.err
22013 cat conftest.err >&5
22014 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22015 (exit $ac_status); } && {
22016 test -z "$ac_c_werror_flag" ||
22017 test ! -s conftest.err
22018 } && test -s conftest.$ac_objext; then
22019 ac_cv_type_pid_t=yes
22021 echo "$as_me: failed program was
:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22024 ac_cv_type_pid_t=no
22027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22029 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22030 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22031 if test $ac_cv_type_pid_t = yes; then
22035 cat >>confdefs.h <<_ACEOF
22042 for ac_header in vfork.h
22044 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22045 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22046 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22047 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22048 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22049 echo $ECHO_N "(cached
) $ECHO_C" >&6
22051 ac_res=`eval echo '${'$as_ac_Header'}'`
22052 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22053 echo "${ECHO_T}$ac_res" >&6; }
22055 # Is the header compilable?
22056 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22057 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22058 cat >conftest.$ac_ext <<_ACEOF
22061 cat confdefs.h >>conftest.$ac_ext
22062 cat >>conftest.$ac_ext <<_ACEOF
22063 /* end confdefs.h. */
22064 $ac_includes_default
22065 #include <$ac_header>
22067 rm -f conftest.$ac_objext
22068 if { (ac_try="$ac_compile"
22069 case "(($ac_try" in
22070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22071 *) ac_try_echo=$ac_try;;
22073 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22074 (eval "$ac_compile") 2>conftest.er1
22076 grep -v '^ *+' conftest.er1 >conftest.err
22078 cat conftest.err >&5
22079 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22080 (exit $ac_status); } && {
22081 test -z "$ac_c_werror_flag" ||
22082 test ! -s conftest.err
22083 } && test -s conftest.$ac_objext; then
22084 ac_header_compiler=yes
22086 echo "$as_me: failed program was
:" >&5
22087 sed 's/^/| /' conftest.$ac_ext >&5
22089 ac_header_compiler=no
22092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22093 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22094 echo "${ECHO_T}$ac_header_compiler" >&6; }
22096 # Is the header present?
22097 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22098 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22099 cat >conftest.$ac_ext <<_ACEOF
22102 cat confdefs.h >>conftest.$ac_ext
22103 cat >>conftest.$ac_ext <<_ACEOF
22104 /* end confdefs.h. */
22105 #include <$ac_header>
22107 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22108 case "(($ac_try" in
22109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22110 *) ac_try_echo=$ac_try;;
22112 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22113 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22115 grep -v '^ *+' conftest.er1 >conftest.err
22117 cat conftest.err >&5
22118 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22119 (exit $ac_status); } >/dev/null && {
22120 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22121 test ! -s conftest.err
22123 ac_header_preproc=yes
22125 echo "$as_me: failed program was
:" >&5
22126 sed 's/^/| /' conftest.$ac_ext >&5
22128 ac_header_preproc=no
22131 rm -f conftest.err conftest.$ac_ext
22132 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22133 echo "${ECHO_T}$ac_header_preproc" >&6; }
22135 # So? What about this header?
22136 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22138 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22139 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22140 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22141 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22142 ac_header_preproc=yes
22145 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22146 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22147 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22148 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22149 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22150 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22151 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22152 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22153 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22154 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22155 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22156 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22160 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22161 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22162 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22163 echo $ECHO_N "(cached
) $ECHO_C" >&6
22165 eval "$as_ac_Header=\
$ac_header_preproc"
22167 ac_res=`eval echo '${'$as_ac_Header'}'`
22168 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22169 echo "${ECHO_T}$ac_res" >&6; }
22172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22173 cat >>confdefs.h <<_ACEOF
22174 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22183 for ac_func in fork vfork
22185 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22186 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22187 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22188 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22189 echo $ECHO_N "(cached
) $ECHO_C" >&6
22191 cat >conftest.$ac_ext <<_ACEOF
22194 cat confdefs.h >>conftest.$ac_ext
22195 cat >>conftest.$ac_ext <<_ACEOF
22196 /* end confdefs.h. */
22197 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22198 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22199 #define $ac_func innocuous_$ac_func
22201 /* System header to define __stub macros and hopefully few prototypes,
22202 which can conflict with char $ac_func (); below.
22203 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22204 <limits.h> exists even on freestanding compilers. */
22207 # include <limits.h>
22209 # include <assert.h>
22214 /* Override any GCC internal prototype to avoid an error.
22215 Use char because int might match the return type of a GCC
22216 builtin and then its argument prototype would still apply. */
22221 /* The GNU C library defines this for functions which it implements
22222 to always fail with ENOSYS. Some functions are actually named
22223 something starting with __ and the normal name is an alias. */
22224 #if defined __stub_$ac_func || defined __stub___$ac_func
22231 return $ac_func ();
22236 rm -f conftest.$ac_objext conftest$ac_exeext
22237 if { (ac_try="$ac_link"
22238 case "(($ac_try" in
22239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22240 *) ac_try_echo=$ac_try;;
22242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22243 (eval "$ac_link") 2>conftest.er1
22245 grep -v '^ *+' conftest.er1 >conftest.err
22247 cat conftest.err >&5
22248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22249 (exit $ac_status); } && {
22250 test -z "$ac_c_werror_flag" ||
22251 test ! -s conftest.err
22252 } && test -s conftest$ac_exeext &&
22253 $as_test_x conftest$ac_exeext; then
22254 eval "$as_ac_var=yes"
22256 echo "$as_me: failed program was
:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22259 eval "$as_ac_var=no
"
22262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22263 conftest$ac_exeext conftest.$ac_ext
22265 ac_res=`eval echo '${'$as_ac_var'}'`
22266 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22267 echo "${ECHO_T}$ac_res" >&6; }
22268 if test `eval echo '${'$as_ac_var'}'` = yes; then
22269 cat >>confdefs.h <<_ACEOF
22270 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22276 if test "x
$ac_cv_func_fork" = xyes; then
22277 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22278 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22279 if test "${ac_cv_func_fork_works+set}" = set; then
22280 echo $ECHO_N "(cached
) $ECHO_C" >&6
22282 if test "$cross_compiling" = yes; then
22283 ac_cv_func_fork_works=cross
22285 cat >conftest.$ac_ext <<_ACEOF
22288 cat confdefs.h >>conftest.$ac_ext
22289 cat >>conftest.$ac_ext <<_ACEOF
22290 /* end confdefs.h. */
22291 $ac_includes_default
22296 /* By Ruediger Kuhlmann. */
22297 return fork () < 0;
22303 rm -f conftest$ac_exeext
22304 if { (ac_try="$ac_link"
22305 case "(($ac_try" in
22306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22307 *) ac_try_echo=$ac_try;;
22309 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22310 (eval "$ac_link") 2>&5
22312 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22313 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22314 { (case "(($ac_try" in
22315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22316 *) ac_try_echo=$ac_try;;
22318 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22319 (eval "$ac_try") 2>&5
22321 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22322 (exit $ac_status); }; }; then
22323 ac_cv_func_fork_works=yes
22325 echo "$as_me: program exited with status
$ac_status" >&5
22326 echo "$as_me: failed program was
:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22329 ( exit $ac_status )
22330 ac_cv_func_fork_works=no
22332 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22337 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22338 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22341 ac_cv_func_fork_works=$ac_cv_func_fork
22343 if test "x
$ac_cv_func_fork_works" = xcross; then
22345 *-*-amigaos* | *-*-msdosdjgpp*)
22346 # Override, as these systems have only a dummy fork() stub
22347 ac_cv_func_fork_works=no
22350 ac_cv_func_fork_works=yes
22353 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22354 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22356 ac_cv_func_vfork_works=$ac_cv_func_vfork
22357 if test "x
$ac_cv_func_vfork" = xyes; then
22358 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22359 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22360 if test "${ac_cv_func_vfork_works+set}" = set; then
22361 echo $ECHO_N "(cached
) $ECHO_C" >&6
22363 if test "$cross_compiling" = yes; then
22364 ac_cv_func_vfork_works=cross
22366 cat >conftest.$ac_ext <<_ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22372 /* Thanks to Paul Eggert for this test. */
22373 $ac_includes_default
22374 #include <sys/wait.h>
22375 #ifdef HAVE_VFORK_H
22376 # include <vfork.h>
22378 /* On some sparc systems, changes by the child to local and incoming
22379 argument registers are propagated back to the parent. The compiler
22380 is told about this with #include <vfork.h>, but some compilers
22381 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22382 static variable whose address is put into a register that is
22383 clobbered by the vfork. */
22386 sparc_address_test (int arg)
22388 sparc_address_test (arg) int arg;
22391 static pid_t child;
22409 pid_t parent = getpid ();
22412 sparc_address_test (0);
22417 /* Here is another test for sparc vfork register problems. This
22418 test uses lots of local variables, at least as many local
22419 variables as main has allocated so far including compiler
22420 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22421 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22422 reuse the register of parent for one of the local variables,
22423 since it will think that parent can't possibly be used any more
22424 in this routine. Assigning to the local variable will thus
22425 munge parent in the parent process. */
22427 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22428 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22429 /* Convince the compiler that p..p7 are live; otherwise, it might
22430 use the same hardware register for all 8 local variables. */
22431 if (p != p1 || p != p2 || p != p3 || p != p4
22432 || p != p5 || p != p6 || p != p7)
22435 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22436 from child file descriptors. If the child closes a descriptor
22437 before it execs or exits, this munges the parent's descriptor
22438 as well. Test for this by closing stdout in the child. */
22439 _exit(close(fileno(stdout)) != 0);
22444 while (wait(&status) != child)
22447 /* Was there some problem with vforking? */
22450 /* Did the child fail? (This shouldn't happen.) */
22453 /* Did the vfork/compiler bug occur? */
22454 || parent != getpid()
22456 /* Did the file descriptor bug occur? */
22457 || fstat(fileno(stdout), &st) != 0
22462 rm -f conftest$ac_exeext
22463 if { (ac_try="$ac_link"
22464 case "(($ac_try" in
22465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22466 *) ac_try_echo=$ac_try;;
22468 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22469 (eval "$ac_link") 2>&5
22471 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22472 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22473 { (case "(($ac_try" in
22474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22475 *) ac_try_echo=$ac_try;;
22477 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22478 (eval "$ac_try") 2>&5
22480 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22481 (exit $ac_status); }; }; then
22482 ac_cv_func_vfork_works=yes
22484 echo "$as_me: program exited with status
$ac_status" >&5
22485 echo "$as_me: failed program was
:" >&5
22486 sed 's/^/| /' conftest.$ac_ext >&5
22488 ( exit $ac_status )
22489 ac_cv_func_vfork_works=no
22491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22496 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22497 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22500 if test "x
$ac_cv_func_fork_works" = xcross; then
22501 ac_cv_func_vfork_works=$ac_cv_func_vfork
22502 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22503 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22506 if test "x
$ac_cv_func_vfork_works" = xyes; then
22508 cat >>confdefs.h <<\_ACEOF
22509 #define HAVE_WORKING_VFORK 1
22514 cat >>confdefs.h <<\_ACEOF
22519 if test "x
$ac_cv_func_fork_works" = xyes; then
22521 cat >>confdefs.h <<\_ACEOF
22522 #define HAVE_WORKING_FORK 1
22528 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22529 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22530 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22531 echo $ECHO_N "(cached
) $ECHO_C" >&6
22533 cat >conftest.$ac_ext <<_ACEOF
22536 cat confdefs.h >>conftest.$ac_ext
22537 cat >>conftest.$ac_ext <<_ACEOF
22538 /* end confdefs.h. */
22539 #include <langinfo.h>
22543 char* cs = nl_langinfo(CODESET);
22548 rm -f conftest.$ac_objext conftest$ac_exeext
22549 if { (ac_try="$ac_link"
22550 case "(($ac_try" in
22551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22552 *) ac_try_echo=$ac_try;;
22554 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22555 (eval "$ac_link") 2>conftest.er1
22557 grep -v '^ *+' conftest.er1 >conftest.err
22559 cat conftest.err >&5
22560 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22561 (exit $ac_status); } && {
22562 test -z "$ac_c_werror_flag" ||
22563 test ! -s conftest.err
22564 } && test -s conftest$ac_exeext &&
22565 $as_test_x conftest$ac_exeext; then
22566 emacs_cv_langinfo_codeset=yes
22568 echo "$as_me: failed program was
:" >&5
22569 sed 's/^/| /' conftest.$ac_ext >&5
22571 emacs_cv_langinfo_codeset=no
22574 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22575 conftest$ac_exeext conftest.$ac_ext
22578 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22579 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22580 if test $emacs_cv_langinfo_codeset = yes; then
22582 cat >>confdefs.h <<\_ACEOF
22583 #define HAVE_LANGINFO_CODESET 1
22588 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22589 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22590 if test "${ac_cv_type_size_t+set}" = set; then
22591 echo $ECHO_N "(cached
) $ECHO_C" >&6
22593 cat >conftest.$ac_ext <<_ACEOF
22596 cat confdefs.h >>conftest.$ac_ext
22597 cat >>conftest.$ac_ext <<_ACEOF
22598 /* end confdefs.h. */
22599 $ac_includes_default
22600 typedef size_t ac__type_new_;
22604 if ((ac__type_new_ *) 0)
22606 if (sizeof (ac__type_new_))
22612 rm -f conftest.$ac_objext
22613 if { (ac_try="$ac_compile"
22614 case "(($ac_try" in
22615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22616 *) ac_try_echo=$ac_try;;
22618 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22619 (eval "$ac_compile") 2>conftest.er1
22621 grep -v '^ *+' conftest.er1 >conftest.err
22623 cat conftest.err >&5
22624 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22625 (exit $ac_status); } && {
22626 test -z "$ac_c_werror_flag" ||
22627 test ! -s conftest.err
22628 } && test -s conftest.$ac_objext; then
22629 ac_cv_type_size_t=yes
22631 echo "$as_me: failed program was
:" >&5
22632 sed 's/^/| /' conftest.$ac_ext >&5
22634 ac_cv_type_size_t=no
22637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22639 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22640 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22641 if test $ac_cv_type_size_t = yes; then
22643 cat >>confdefs.h <<_ACEOF
22644 #define HAVE_SIZE_T 1
22651 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22652 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22653 if test "${ac_cv_type_mbstate_t+set}" = set; then
22654 echo $ECHO_N "(cached
) $ECHO_C" >&6
22656 cat >conftest.$ac_ext <<_ACEOF
22659 cat confdefs.h >>conftest.$ac_ext
22660 cat >>conftest.$ac_ext <<_ACEOF
22661 /* end confdefs.h. */
22662 $ac_includes_default
22663 # include <wchar.h>
22667 mbstate_t x; return sizeof x;
22672 rm -f conftest.$ac_objext
22673 if { (ac_try="$ac_compile"
22674 case "(($ac_try" in
22675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22676 *) ac_try_echo=$ac_try;;
22678 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22679 (eval "$ac_compile") 2>conftest.er1
22681 grep -v '^ *+' conftest.er1 >conftest.err
22683 cat conftest.err >&5
22684 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22685 (exit $ac_status); } && {
22686 test -z "$ac_c_werror_flag" ||
22687 test ! -s conftest.err
22688 } && test -s conftest.$ac_objext; then
22689 ac_cv_type_mbstate_t=yes
22691 echo "$as_me: failed program was
:" >&5
22692 sed 's/^/| /' conftest.$ac_ext >&5
22694 ac_cv_type_mbstate_t=no
22697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22699 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22700 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22701 if test $ac_cv_type_mbstate_t = yes; then
22703 cat >>confdefs.h <<\_ACEOF
22704 #define HAVE_MBSTATE_T 1
22709 cat >>confdefs.h <<\_ACEOF
22710 #define mbstate_t int
22715 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22716 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22717 if test "${emacs_cv_c_restrict+set}" = set; then
22718 echo $ECHO_N "(cached
) $ECHO_C" >&6
22720 cat >conftest.$ac_ext <<_ACEOF
22723 cat confdefs.h >>conftest.$ac_ext
22724 cat >>conftest.$ac_ext <<_ACEOF
22725 /* end confdefs.h. */
22726 void fred (int *restrict x);
22735 rm -f conftest.$ac_objext
22736 if { (ac_try="$ac_compile"
22737 case "(($ac_try" in
22738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22739 *) ac_try_echo=$ac_try;;
22741 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22742 (eval "$ac_compile") 2>conftest.er1
22744 grep -v '^ *+' conftest.er1 >conftest.err
22746 cat conftest.err >&5
22747 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22748 (exit $ac_status); } && {
22749 test -z "$ac_c_werror_flag" ||
22750 test ! -s conftest.err
22751 } && test -s conftest.$ac_objext; then
22752 emacs_cv_c_restrict=yes
22754 echo "$as_me: failed program was
:" >&5
22755 sed 's/^/| /' conftest.$ac_ext >&5
22757 cat >conftest.$ac_ext <<_ACEOF
22760 cat confdefs.h >>conftest.$ac_ext
22761 cat >>conftest.$ac_ext <<_ACEOF
22762 /* end confdefs.h. */
22763 void fred (int *__restrict x);
22772 rm -f conftest.$ac_objext
22773 if { (ac_try="$ac_compile"
22774 case "(($ac_try" in
22775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22776 *) ac_try_echo=$ac_try;;
22778 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22779 (eval "$ac_compile") 2>conftest.er1
22781 grep -v '^ *+' conftest.er1 >conftest.err
22783 cat conftest.err >&5
22784 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22785 (exit $ac_status); } && {
22786 test -z "$ac_c_werror_flag" ||
22787 test ! -s conftest.err
22788 } && test -s conftest.$ac_objext; then
22789 emacs_cv_c_restrict=__restrict
22791 echo "$as_me: failed program was
:" >&5
22792 sed 's/^/| /' conftest.$ac_ext >&5
22794 emacs_cv_c_restrict=no
22797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22802 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
22803 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22804 case "$emacs_cv_c_restrict" in
22805 yes) emacs_restrict=restrict;;
22806 no) emacs_restrict="";;
22807 *) emacs_restrict="$emacs_cv_c_restrict";;
22809 if test "$emacs_restrict" != __restrict; then
22811 cat >>confdefs.h <<_ACEOF
22812 #define __restrict $emacs_restrict
22817 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
22818 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
22819 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22820 echo $ECHO_N "(cached
) $ECHO_C" >&6
22822 cat >conftest.$ac_ext <<_ACEOF
22825 cat confdefs.h >>conftest.$ac_ext
22826 cat >>conftest.$ac_ext <<_ACEOF
22827 /* end confdefs.h. */
22828 void fred (int x[__restrict]);
22837 rm -f conftest.$ac_objext
22838 if { (ac_try="$ac_compile"
22839 case "(($ac_try" in
22840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22841 *) ac_try_echo=$ac_try;;
22843 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22844 (eval "$ac_compile") 2>conftest.er1
22846 grep -v '^ *+' conftest.er1 >conftest.err
22848 cat conftest.err >&5
22849 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22850 (exit $ac_status); } && {
22851 test -z "$ac_c_werror_flag" ||
22852 test ! -s conftest.err
22853 } && test -s conftest.$ac_objext; then
22854 emacs_cv_c_restrict_arr=yes
22856 echo "$as_me: failed program was
:" >&5
22857 sed 's/^/| /' conftest.$ac_ext >&5
22859 emacs_cv_c_restrict_arr=no
22862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22864 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
22865 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22866 if test "$emacs_cv_c_restrict_arr" = yes; then
22868 cat >>confdefs.h <<\_ACEOF
22869 #define __restrict_arr __restrict
22876 # Set up the CFLAGS for real compilation, so we can substitute it.
22877 CFLAGS="$REAL_CFLAGS"
22878 CPPFLAGS="$REAL_CPPFLAGS"
22880 #### Find out which version of Emacs this is.
22881 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22882 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
22883 if test x"${version}" = x; then
22884 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
22885 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
22886 { (exit 1); exit 1; }; }
22889 ### Specify what sort of things we'll be editing into Makefile and config.h.
22890 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22926 cat >>confdefs.h <<_ACEOF
22927 #define EMACS_CONFIGURATION "${canonical}"
22931 cat >>confdefs.h <<_ACEOF
22932 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22936 cat >>confdefs.h <<_ACEOF
22937 #define config_machfile "${machfile}"
22941 cat >>confdefs.h <<_ACEOF
22942 #define config_opsysfile "${opsysfile}"
22946 cat >>confdefs.h <<_ACEOF
22947 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22951 cat >>confdefs.h <<_ACEOF
22952 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22956 cat >>confdefs.h <<_ACEOF
22957 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22961 cat >>confdefs.h <<_ACEOF
22962 #define UNEXEC_SRC ${UNEXEC_SRC}
22966 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22968 cat >>confdefs.h <<\_ACEOF
22969 #define HAVE_X_WINDOWS 1
22973 if test "${USE_X_TOOLKIT}" != "none
" ; then
22975 cat >>confdefs.h <<\_ACEOF
22976 #define USE_X_TOOLKIT 1
22980 if test "${HAVE_X11}" = "yes" ; then
22982 cat >>confdefs.h <<\_ACEOF
22987 if test "${HAVE_XFREE386}" = "yes" ; then
22989 cat >>confdefs.h <<\_ACEOF
22990 #define HAVE_XFREE386 1
22994 if test "${HAVE_MENUS}" = "yes" ; then
22996 cat >>confdefs.h <<\_ACEOF
22997 #define HAVE_MENUS 1
23001 if test "${GNU_MALLOC}" = "yes" ; then
23003 cat >>confdefs.h <<\_ACEOF
23004 #define GNU_MALLOC 1
23008 if test "${REL_ALLOC}" = "yes" ; then
23010 cat >>confdefs.h <<\_ACEOF
23011 #define REL_ALLOC 1
23020 #### Report on what we decided to do.
23021 #### Report GTK as a toolkit, even if it doesn't use Xt.
23022 #### It makes printing result more understandable as using GTK sets
23023 #### toolkit_scroll_bars to yes by default.
23024 if test "${HAVE_GTK}" = "yes"; then
23029 Configured
for \
`${canonical}'.
23031 Where should the build process find the source code? ${srcdir}
23032 What operating system and machine description files should Emacs use?
23033 \`${opsysfile}' and \`${machfile}'
23034 What compiler should emacs be built with?
${CC} ${CFLAGS}
23035 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23036 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23037 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23038 What window system should Emacs use?
${window_system}
23039 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23041 if test -n "${x_includes}"; then
23042 echo " Where
do we
find X Windows header files?
${x_includes}"
23044 echo " Where
do we
find X Windows header files? Standard
dirs"
23046 if test -n "${x_libraries}"; then
23047 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23049 echo " Where
do we
find X Windows libraries? Standard
dirs"
23052 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23053 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23054 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23055 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23056 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23057 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23058 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23061 if test $USE_XASSERTS = yes; then
23062 echo " Compiling with asserts turned on.
"
23063 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23067 if test "$USE_X_TOOLKIT" = GTK; then
23068 case "$canonical" in
23070 echo "There are known problems with Emacs and Gtk
+ on cygwin
, so you
23071 will probably get a crash on startup. If this happens
, please use another
23072 toolkit
for Emacs. See etc
/PROBLEMS
for more information.
"
23079 # Remove any trailing slashes in these variables.
23080 test "${prefix}" != NONE &&
23081 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23082 test "${exec_prefix}" != NONE &&
23083 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23085 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23086 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23087 ## from Makefile.c can correctly provide the arg `-traditional' to the
23090 cat >conftest.$ac_ext <<_ACEOF
23093 cat confdefs.h >>conftest.$ac_ext
23094 cat >>conftest.$ac_ext <<_ACEOF
23095 /* end confdefs.h. */
23098 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23099 $EGREP "yes..
yes" >/dev/null 2>&1; then
23100 CPP_NEED_TRADITIONAL=no
23102 CPP_NEED_TRADITIONAL=yes
23107 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
"
23109 ac_config_commands="$ac_config_commands default
"
23111 cat >confcache <<\_ACEOF
23112 # This file is a shell script that caches the results of configure
23113 # tests run on this system so they can be shared between configure
23114 # scripts and configure runs, see configure's option --config-cache.
23115 # It is not useful on other systems. If it contains results you don't
23116 # want to keep, you may remove or edit it.
23118 # config.status only pays attention to the cache file if you give it
23119 # the --recheck option to rerun configure.
23121 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23122 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23123 # following values.
23127 # The following way of writing the cache mishandles newlines in values,
23128 # but we know of no workaround that is simple, portable, and efficient.
23129 # So, we kill variables containing newlines.
23130 # Ultrix sh set writes to stderr and can't be redirected directly,
23131 # and sets the high bit in the cache file unless we assign to the vars.
23133 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23134 eval ac_val=\$$ac_var
23138 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23139 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23142 _ | IFS | as_nl) ;; #(
23143 *) $as_unset $ac_var ;;
23149 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23150 *${as_nl}ac_space=\ *)
23151 # `set' does not quote correctly, so add quotes (double-quote
23152 # substitution turns \\\\ into \\, and sed turns \\ into \).
23155 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23158 # `set' quotes correctly as required by POSIX, so do not add quotes.
23159 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23168 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23170 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23172 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23173 if test -w "$cache_file"; then
23174 test "x
$cache_file" != "x
/dev
/null
" &&
23175 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23176 echo "$as_me: updating cache
$cache_file" >&6;}
23177 cat confcache >$cache_file
23179 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23180 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23185 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23186 # Let make expand exec_prefix.
23187 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23189 DEFS=-DHAVE_CONFIG_H
23193 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23194 # 1. Remove the extension, and $U if already installed.
23195 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23196 ac_i=`echo "$ac_i" | sed "$ac_script"`
23197 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23198 # will be set to the directory where LIBOBJS objects are built.
23199 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23200 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23202 LIBOBJS=$ac_libobjs
23204 LTLIBOBJS=$ac_ltlibobjs
23208 : ${CONFIG_STATUS=./config.status}
23209 ac_clean_files_save=$ac_clean_files
23210 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23211 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23212 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23213 cat >$CONFIG_STATUS <<_ACEOF
23215 # Generated by $as_me.
23216 # Run this file to recreate the current configuration.
23217 # Compiler output produced by configure, useful for debugging
23218 # configure, is in config.log if it exists.
23221 ac_cs_recheck=false
23223 SHELL=\${CONFIG_SHELL-$SHELL}
23226 cat >>$CONFIG_STATUS <<\_ACEOF
23227 ## --------------------- ##
23228 ## M4sh Initialization. ##
23229 ## --------------------- ##
23231 # Be more Bourne compatible
23232 DUALCASE=1; export DUALCASE # for MKS sh
23233 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23236 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23237 # is contrary to our usage. Disable this feature.
23238 alias -g '${1+"$@"}'='"$@
"'
23239 setopt NO_GLOB_SUBST
23241 case `(set -o) 2>/dev/null` in
23242 *posix*) set -o posix ;;
23251 # Avoid depending upon Character Ranges.
23252 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23253 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23254 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23255 as_cr_digits='0123456789'
23256 as_cr_alnum=$as_cr_Letters$as_cr_digits
23258 # The user is always right.
23259 if test "${PATH_SEPARATOR+set}" != set; then
23260 echo "#! /bin/sh" >conf$$.sh
23261 echo "exit 0" >>conf$$.sh
23263 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23271 # Support unset when possible.
23272 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23280 # We need space, tab and new line, in precisely that order. Quoting is
23281 # there to prevent editors from complaining about space-tab.
23282 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23283 # splitting by setting IFS to empty value.)
23288 # Find who we are. Look in the path if we contain no directory separator.
23290 *[\\/]* ) as_myself
=$0 ;;
23291 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23292 for as_dir
in $PATH
23295 test -z "$as_dir" && as_dir
=.
23296 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23302 # We did not find ourselves, most probably we were run as `sh COMMAND'
23303 # in which case we are not to be found in the path.
23304 if test "x$as_myself" = x
; then
23307 if test ! -f "$as_myself"; then
23308 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23309 { (exit 1); exit 1; }
23312 # Work around bugs in pre-3.0 UWIN ksh.
23313 for as_var
in ENV MAIL MAILPATH
23314 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23322 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23323 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23324 LC_TELEPHONE LC_TIME
23326 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23327 eval $as_var=C
; export $as_var
23329 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23333 # Required to use basename.
23334 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23335 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23341 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23342 as_basename
=basename
23348 # Name of the executable.
23349 as_me
=`$as_basename -- "$0" ||
23350 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23351 X"$0" : 'X\(//\)$' \| \
23352 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23354 sed '/^.*\/\([^/][^/]*\)\/*$/{
23373 as_lineno_1
=$LINENO
23374 as_lineno_2
=$LINENO
23375 test "x$as_lineno_1" != "x$as_lineno_2" &&
23376 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23378 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23379 # uniformly replaced by the line number. The first 'sed' inserts a
23380 # line-number line after each line using $LINENO; the second 'sed'
23381 # does the real work. The second script uses 'N' to pair each
23382 # line-number line with the line containing $LINENO, and appends
23383 # trailing '-' during substitution so that $LINENO is not a special
23384 # case at line end.
23385 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23386 # scripts with optimization help from Paolo Bonzini. Blame Lee
23387 # E. McMahon (1931-1989) for sed's syntax. :-)
23399 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23402 ' >$as_me.lineno
&&
23403 chmod +x
"$as_me.lineno" ||
23404 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23405 { (exit 1); exit 1; }; }
23407 # Don't try to exec as it changes $[0], causing all sort of problems
23408 # (the dirname of $[0] is not the place where we might find the
23409 # original and so on. Autoconf is especially sensitive to this).
23410 .
"./$as_me.lineno"
23411 # Exit status is that of the last command.
23416 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23422 ECHO_C
= ECHO_N
= ECHO_T
=
23423 case `echo -n x` in
23425 case `echo 'x\c'` in
23426 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23433 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23434 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23440 rm -f conf$$ conf$$.exe conf$$.
file
23441 if test -d conf$$.dir
; then
23442 rm -f conf$$.dir
/conf$$.
file
23448 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23450 # ... but there are two gotchas:
23451 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23452 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23453 # In both cases, we have to default to `cp -p'.
23454 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23456 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23461 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23462 rmdir conf$$.dir
2>/dev
/null
23464 if mkdir
-p .
2>/dev
/null
; then
23467 test -d .
/-p && rmdir .
/-p
23471 if test -x / >/dev
/null
2>&1; then
23472 as_test_x
='test -x'
23474 if ls -dL / >/dev
/null
2>&1; then
23481 if test -d "$1"; then
23487 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23488 ???[sx]*):;;*)false;;esac;fi
23492 as_executable_p
=$as_test_x
23494 # Sed expression to map a string onto a valid CPP name.
23495 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23497 # Sed expression to map a string onto a valid variable name.
23498 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23503 # Save the log message, to keep $[0] and so on meaningful, and to
23504 # report actual input values of CONFIG_FILES etc. instead of their
23505 # values after options handling.
23507 This file was extended by $as_me, which was
23508 generated by GNU Autoconf 2.61. Invocation command line was
23510 CONFIG_FILES = $CONFIG_FILES
23511 CONFIG_HEADERS = $CONFIG_HEADERS
23512 CONFIG_LINKS = $CONFIG_LINKS
23513 CONFIG_COMMANDS = $CONFIG_COMMANDS
23516 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23521 cat >>$CONFIG_STATUS <<_ACEOF
23522 # Files that config.status was made for.
23523 config_files="$ac_config_files"
23524 config_headers="$ac_config_headers"
23525 config_commands="$ac_config_commands"
23529 cat >>$CONFIG_STATUS <<\_ACEOF
23531 \`$as_me' instantiates files from templates according to the
23532 current configuration.
23534 Usage: $0 [OPTIONS] [FILE]...
23536 -h, --help print this help, then exit
23537 -V, --version print version number and configuration settings, then exit
23538 -q, --quiet do not print progress messages
23539 -d, --debug don't remove temporary files
23540 --recheck update $as_me by reconfiguring in the same conditions
23541 --file=FILE[:TEMPLATE]
23542 instantiate the configuration file FILE
23543 --header=FILE[:TEMPLATE]
23544 instantiate the configuration header FILE
23546 Configuration files:
23549 Configuration headers:
23552 Configuration commands:
23555 Report bugs to <bug-autoconf@gnu.org>."
23558 cat >>$CONFIG_STATUS <<_ACEOF
23561 configured by $0, generated by GNU Autoconf 2.61,
23562 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23564 Copyright (C) 2006 Free Software Foundation, Inc.
23565 This config.status script is free software; the Free Software Foundation
23566 gives unlimited permission to copy, distribute and modify it."
23573 cat >>$CONFIG_STATUS <<\_ACEOF
23574 # If no file are specified by the user, then we need to provide default
23575 # value. By we need to know if files were specified by the user.
23581 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23582 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23593 # Handling of the options.
23594 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23596 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23597 echo "$ac_cs_version"; exit ;;
23598 --debug |
--debu |
--deb |
--de |
--d |
-d )
23600 --file |
--fil |
--fi |
--f )
23602 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23603 ac_need_defaults
=false
;;
23604 --header |
--heade |
--head |
--hea )
23606 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23607 ac_need_defaults
=false
;;
23609 # Conflict between --help and --header
23610 { echo "$as_me: error: ambiguous option: $1
23611 Try \`$0 --help' for more information." >&2
23612 { (exit 1); exit 1; }; };;
23613 --help |
--hel |
-h )
23614 echo "$ac_cs_usage"; exit ;;
23615 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23616 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23619 # This is an error.
23620 -*) { echo "$as_me: error: unrecognized option: $1
23621 Try \`$0 --help' for more information." >&2
23622 { (exit 1); exit 1; }; } ;;
23624 *) ac_config_targets
="$ac_config_targets $1"
23625 ac_need_defaults
=false
;;
23631 ac_configure_extra_args
=
23633 if $ac_cs_silent; then
23635 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23639 cat >>$CONFIG_STATUS <<_ACEOF
23640 if \$ac_cs_recheck; then
23641 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23642 CONFIG_SHELL=$SHELL
23643 export CONFIG_SHELL
23644 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23648 cat >>$CONFIG_STATUS <<\_ACEOF
23652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23653 ## Running $as_me. ##
23659 cat >>$CONFIG_STATUS <<_ACEOF
23663 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23667 cat >>$CONFIG_STATUS <<\_ACEOF
23669 # Handling of arguments.
23670 for ac_config_target
in $ac_config_targets
23672 case $ac_config_target in
23673 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23674 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23675 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23676 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23677 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23678 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23679 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23680 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23681 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23682 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23683 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23684 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23686 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23687 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23688 { (exit 1); exit 1; }; };;
23693 # If the user did not use the arguments to specify the items to instantiate,
23694 # then the envvar interface is used. Set only those that are not.
23695 # We use the long form for the default assignment because of an extremely
23696 # bizarre bug on SunOS 4.1.3.
23697 if $ac_need_defaults; then
23698 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23699 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23700 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23703 # Have a temporary directory for convenience. Make it in the build tree
23704 # simply because there is no reason against having it here, and in addition,
23705 # creating and moving files from /tmp can sometimes cause problems.
23706 # Hook for its removal unless debugging.
23707 # Note that there is a small window in which the directory will not be cleaned:
23708 # after its creation but before its name has been assigned to `$tmp'.
23712 trap 'exit_status=$?
23713 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23715 trap '{ (exit 1); exit 1; }' 1 2 13 15
23717 # Create a (secure) tmp directory for tmp files.
23720 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23721 test -n "$tmp" && test -d "$tmp"
23724 tmp
=.
/conf$$
-$RANDOM
23725 (umask 077 && mkdir
"$tmp")
23728 echo "$me: cannot create a temporary directory in ." >&2
23729 { (exit 1); exit 1; }
23733 # Set up the sed scripts for CONFIG_FILES section.
23736 # No need to generate the scripts if there are no CONFIG_FILES.
23737 # This happens for instance when ./config.status config.h
23738 if test -n "$CONFIG_FILES"; then
23745 for ac_last_try
in false false false false false
:; do
23746 cat >conf$
$subs.
sed <<_ACEOF
23747 SHELL!$SHELL$ac_delim
23748 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23749 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23750 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23751 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23752 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23753 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23754 exec_prefix!$exec_prefix$ac_delim
23755 prefix!$prefix$ac_delim
23756 program_transform_name!$program_transform_name$ac_delim
23757 bindir!$bindir$ac_delim
23758 sbindir!$sbindir$ac_delim
23759 libexecdir!$libexecdir$ac_delim
23760 datarootdir!$datarootdir$ac_delim
23761 datadir!$datadir$ac_delim
23762 sysconfdir!$sysconfdir$ac_delim
23763 sharedstatedir!$sharedstatedir$ac_delim
23764 localstatedir!$localstatedir$ac_delim
23765 includedir!$includedir$ac_delim
23766 oldincludedir!$oldincludedir$ac_delim
23767 docdir!$docdir$ac_delim
23768 infodir!$infodir$ac_delim
23769 htmldir!$htmldir$ac_delim
23770 dvidir!$dvidir$ac_delim
23771 pdfdir!$pdfdir$ac_delim
23772 psdir!$psdir$ac_delim
23773 libdir!$libdir$ac_delim
23774 localedir!$localedir$ac_delim
23775 mandir!$mandir$ac_delim
23776 DEFS!$DEFS$ac_delim
23777 ECHO_C!$ECHO_C$ac_delim
23778 ECHO_N!$ECHO_N$ac_delim
23779 ECHO_T!$ECHO_T$ac_delim
23780 LIBS!$LIBS$ac_delim
23781 build_alias!$build_alias$ac_delim
23782 host_alias!$host_alias$ac_delim
23783 target_alias!$target_alias$ac_delim
23784 MAINT!$MAINT$ac_delim
23785 build!$build$ac_delim
23786 build_cpu!$build_cpu$ac_delim
23787 build_vendor!$build_vendor$ac_delim
23788 build_os!$build_os$ac_delim
23789 host!$host$ac_delim
23790 host_cpu!$host_cpu$ac_delim
23791 host_vendor!$host_vendor$ac_delim
23792 host_os!$host_os$ac_delim
23794 CFLAGS!$CFLAGS$ac_delim
23795 LDFLAGS!$LDFLAGS$ac_delim
23796 CPPFLAGS!$CPPFLAGS$ac_delim
23797 ac_ct_CC!$ac_ct_CC$ac_delim
23798 EXEEXT!$EXEEXT$ac_delim
23799 OBJEXT!$OBJEXT$ac_delim
23801 GREP!$GREP$ac_delim
23802 EGREP!$EGREP$ac_delim
23803 LN_S!$LN_S$ac_delim
23804 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23805 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23806 INSTALL_DATA!$INSTALL_DATA$ac_delim
23807 RANLIB!$RANLIB$ac_delim
23808 INSTALL_INFO!$INSTALL_INFO$ac_delim
23809 GZIP_PROG!$GZIP_PROG$ac_delim
23810 LIBSOUND!$LIBSOUND$ac_delim
23811 PKG_CONFIG!$PKG_CONFIG$ac_delim
23812 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23813 ALSA_LIBS!$ALSA_LIBS$ac_delim
23814 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23815 SET_MAKE!$SET_MAKE$ac_delim
23816 XMKMF!$XMKMF$ac_delim
23817 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23818 GTK_LIBS!$GTK_LIBS$ac_delim
23819 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23820 XFT_LIBS!$XFT_LIBS$ac_delim
23821 ALLOCA!$ALLOCA$ac_delim
23822 liblockfile!$liblockfile$ac_delim
23823 LIBOBJS!$LIBOBJS$ac_delim
23824 NEED_SETGID!$NEED_SETGID$ac_delim
23825 KMEM_GROUP!$KMEM_GROUP$ac_delim
23826 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23827 GETOPT_H!$GETOPT_H$ac_delim
23828 GETOPTOBJS!$GETOPTOBJS$ac_delim
23829 version!$version$ac_delim
23830 configuration!$configuration$ac_delim
23831 canonical!$canonical$ac_delim
23832 srcdir!$srcdir$ac_delim
23833 lispdir!$lispdir$ac_delim
23834 locallisppath!$locallisppath$ac_delim
23835 lisppath!$lisppath$ac_delim
23836 x_default_search_path!$x_default_search_path$ac_delim
23837 etcdir!$etcdir$ac_delim
23838 archlibdir!$archlibdir$ac_delim
23839 bitmapdir!$bitmapdir$ac_delim
23840 gamedir!$gamedir$ac_delim
23841 gameuser!$gameuser$ac_delim
23842 c_switch_system!$c_switch_system$ac_delim
23843 c_switch_machine!$c_switch_machine$ac_delim
23846 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23848 elif $ac_last_try; then
23849 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23850 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23851 { (exit 1); exit 1; }; }
23853 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23857 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23858 if test -n "$ac_eof"; then
23859 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23860 ac_eof
=`expr $ac_eof + 1`
23863 cat >>$CONFIG_STATUS <<_ACEOF
23864 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23865 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23868 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23869 s/^/s,@/; s/!/@,|#_!!_#|/
23872 s/'"$ac_delim"'$/,g/; t
23874 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23875 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23876 rm -f conf$
$subs.
sed
23877 cat >>$CONFIG_STATUS <<_ACEOF
23883 for ac_last_try
in false false false false false
:; do
23884 cat >conf$
$subs.
sed <<_ACEOF
23885 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23886 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23887 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23888 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23889 machfile!$machfile$ac_delim
23890 opsysfile!$opsysfile$ac_delim
23891 carbon_appdir!$carbon_appdir$ac_delim
23892 LTLIBOBJS!$LTLIBOBJS$ac_delim
23895 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23897 elif $ac_last_try; then
23898 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23899 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23900 { (exit 1); exit 1; }; }
23902 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23906 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23907 if test -n "$ac_eof"; then
23908 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23909 ac_eof
=`expr $ac_eof + 1`
23912 cat >>$CONFIG_STATUS <<_ACEOF
23913 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23914 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23917 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23918 s/^/s,@/; s/!/@,|#_!!_#|/
23921 s/'"$ac_delim"'$/,g/; t
23923 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23924 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23925 rm -f conf$
$subs.
sed
23926 cat >>$CONFIG_STATUS <<_ACEOF
23933 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23934 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23935 # trailing colons and then remove the whole line if VPATH becomes empty
23936 # (actually we leave an empty line to preserve line numbers).
23937 if test "x$srcdir" = x.
; then
23938 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23939 s/:*\$(srcdir):*/:/
23940 s/:*\${srcdir}:*/:/
23942 s/^\([^=]*=[ ]*\):*/\1/
23948 cat >>$CONFIG_STATUS <<\_ACEOF
23949 fi # test -n "$CONFIG_FILES"
23952 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
23955 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23957 case $ac_mode$ac_tag in
23959 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23960 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23961 { (exit 1); exit 1; }; };;
23962 :[FH
]-) ac_tag
=-:-;;
23963 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23980 -) ac_f
="$tmp/stdin";;
23981 *) # Look for the file first in the build tree, then in the source tree
23982 # (if the path is not absolute). The absolute path cannot be DOS-style,
23983 # because $ac_f cannot contain `:'.
23987 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23989 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23990 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23991 { (exit 1); exit 1; }; };;
23993 ac_file_inputs
="$ac_file_inputs $ac_f"
23996 # Let's still pretend it is `configure' which instantiates (i.e., don't
23997 # use $as_me), people would be surprised to read:
23998 # /* config.h. Generated by config.status. */
23999 configure_input
="Generated from "`IFS=:
24000 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24001 if test x
"$ac_file" != x-
; then
24002 configure_input
="$ac_file. $configure_input"
24003 { echo "$as_me:$LINENO: creating $ac_file" >&5
24004 echo "$as_me: creating $ac_file" >&6;}
24008 *:-:* |
*:-) cat >"$tmp/stdin";;
24013 ac_dir
=`$as_dirname -- "$ac_file" ||
24014 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24015 X"$ac_file" : 'X\(//\)[^/]' \| \
24016 X"$ac_file" : 'X\(//\)$' \| \
24017 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24019 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24023 /^X\(\/\/\)[^/].*/{
24038 -*) as_dir
=.
/$as_dir;;
24040 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24044 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24045 *) as_qdir
=$as_dir;;
24047 as_dirs
="'$as_qdir' $as_dirs"
24048 as_dir
=`$as_dirname -- "$as_dir" ||
24049 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24050 X"$as_dir" : 'X\(//\)[^/]' \| \
24051 X"$as_dir" : 'X\(//\)$' \| \
24052 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24054 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24058 /^X\(\/\/\)[^/].*/{
24071 test -d "$as_dir" && break
24073 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24074 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24075 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24076 { (exit 1); exit 1; }; }; }
24080 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24082 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24083 # A ".." for each directory in $ac_dir_suffix.
24084 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24085 case $ac_top_builddir_sub in
24086 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24087 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24090 ac_abs_top_builddir
=$ac_pwd
24091 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24092 # for backward compatibility:
24093 ac_top_builddir
=$ac_top_build_prefix
24096 .
) # We are building in place.
24098 ac_top_srcdir
=$ac_top_builddir_sub
24099 ac_abs_top_srcdir
=$ac_pwd ;;
24100 [\\/]* | ?
:[\\/]* ) # Absolute name.
24101 ac_srcdir
=$srcdir$ac_dir_suffix;
24102 ac_top_srcdir
=$srcdir
24103 ac_abs_top_srcdir
=$srcdir ;;
24104 *) # Relative name.
24105 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24106 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24107 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24109 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24119 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24120 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24124 cat >>$CONFIG_STATUS <<\_ACEOF
24125 # If the template does not know about datarootdir, expand it.
24126 # FIXME: This hack should be removed a few years after 2.60.
24127 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24129 case `sed -n '/datarootdir/ {
24138 ' $ac_file_inputs` in
24139 *datarootdir
*) ac_datarootdir_seen
=yes;;
24140 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24141 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24142 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24144 cat >>$CONFIG_STATUS <<_ACEOF
24145 ac_datarootdir_hack='
24146 s&@datadir@&$datadir&g
24147 s&@docdir@&$docdir&g
24148 s&@infodir@&$infodir&g
24149 s&@localedir@&$localedir&g
24150 s&@mandir@&$mandir&g
24151 s&\\\${datarootdir}&$datarootdir&g' ;;
24155 # Neutralize VPATH when `$srcdir' = `.'.
24156 # Shell code in configure.ac might set extrasub.
24157 # FIXME: do we really want to maintain this feature?
24158 cat >>$CONFIG_STATUS <<_ACEOF
24162 cat >>$CONFIG_STATUS <<\_ACEOF
24164 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24165 s
&@configure_input@
&$configure_input&;t t
24166 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24167 s
&@srcdir@
&$ac_srcdir&;t t
24168 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24169 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24170 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24171 s
&@builddir@
&$ac_builddir&;t t
24172 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24173 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24174 s
&@INSTALL@
&$ac_INSTALL&;t t
24175 $ac_datarootdir_hack
24176 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24178 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24179 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24180 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24181 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24182 which seems to be undefined. Please make sure it is defined." >&5
24183 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24184 which seems to be undefined. Please make sure it is defined." >&2;}
24188 -) cat "$tmp/out"; rm -f "$tmp/out";;
24189 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24198 # Transform confdefs.h into a sed script `conftest.defines', that
24199 # substitutes the proper values into config.h.in to produce config.h.
24200 rm -f conftest.defines conftest.
tail
24201 # First, append a space to every undef/define line, to ease matching.
24202 echo 's/$/ /' >conftest.defines
24203 # Then, protect against being on the right side of a sed subst, or in
24204 # an unquoted here document, in config.status. If some macros were
24205 # called several times there might be several #defines for the same
24206 # symbol, which is useless. But do not sort them, since the last
24207 # AC_DEFINE must be honored.
24208 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24209 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24210 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24211 # PARAMS is the parameter list in the macro definition--in most cases, it's
24212 # just an empty string.
24213 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24214 ac_dB
='\\)[ (].*,\\1define\\2'
24222 s/^[ ]*#[ ]*define[ ][ ]*//
24227 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24228 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24229 ' >>conftest.defines
24231 # Remove the space that was appended to ease matching.
24232 # Then replace #undef with comments. This is necessary, for
24233 # example, in the case of _POSIX_SOURCE, which is predefined and required
24234 # on some systems where configure will not decide to define it.
24235 # (The regexp can be short, since the line contains either #define or #undef.)
24237 s,^[ #]*u.*,/* & */,' >>conftest.defines
24239 # Break up conftest.defines:
24240 ac_max_sed_lines
=50
24242 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24243 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24244 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24246 ac_in
='$ac_file_inputs'
24247 ac_out
='"$tmp/out1"'
24248 ac_nxt
='"$tmp/out2"'
24252 # Write a here document:
24253 cat >>$CONFIG_STATUS <<_ACEOF
24254 # First, check the format of the line:
24255 cat >"\$tmp/defines.sed" <<\\CEOF
24256 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24257 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24261 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24263 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24264 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24265 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24266 grep . conftest.
tail >/dev
/null ||
break
24267 rm -f conftest.defines
24268 mv conftest.
tail conftest.defines
24270 rm -f conftest.defines conftest.
tail
24272 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24273 cat >>$CONFIG_STATUS <<\_ACEOF
24274 if test x
"$ac_file" != x-
; then
24275 echo "/* $configure_input */" >"$tmp/config.h"
24276 cat "$ac_result" >>"$tmp/config.h"
24277 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24278 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24279 echo "$as_me: $ac_file is unchanged" >&6;}
24282 mv "$tmp/config.h" $ac_file
24285 echo "/* $configure_input */"
24291 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24292 echo "$as_me: executing $ac_file commands" >&6;}
24297 case $ac_file$ac_mode in
24300 ### Make the necessary directories, if they don't exist.
24301 for dir
in etc lisp
; do
24302 test -d ${dir} || mkdir
${dir}
24305 # Build src/Makefile from ${srcdir}/src/Makefile.c
24306 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24307 # This must be done after src/config.h is built, since we rely on that file.
24309 # Now get this: Some word that is part of the ${srcdir} directory name
24310 # or the ${configuration} value might, just might, happen to be an
24311 # identifier like `sun4' or `i386' or something, and be predefined by
24312 # the C preprocessor to some helpful value like 1, or maybe the empty
24313 # string. Needless to say consequent macro substitutions are less
24314 # than conducive to the makefile finding the correct directory.
24315 undefs
="`echo $top_srcdir $configuration $canonical |
24316 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24317 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24320 echo creating src
/epaths.h
24321 ${MAKE-make} epaths-force
24323 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24324 # `..' to `. .' unless invoked with -traditional
24326 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24327 CPPFLAGS
="$CPPFLAGS -traditional"
24330 echo creating lib-src
/Makefile
24332 rm -f junk.c junk1.c junk2.c
24333 sed -e '/start of cpp stuff/q' \
24334 < Makefile.c
> junk1.c
24335 sed -e '1,/start of cpp stuff/d'\
24336 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24337 < Makefile.c
> junk.c
24338 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24339 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24340 cat junk1.c junk2.c
> Makefile.new
24341 rm -f junk.c junk1.c junk2.c
24342 chmod 444 Makefile.new
24343 mv -f Makefile.new Makefile
24346 echo creating src
/Makefile
24348 rm -f junk.c junk1.c junk2.c
24349 sed -e '/start of cpp stuff/q' \
24350 < Makefile.c
> junk1.c
24351 sed -e '1,/start of cpp stuff/d'\
24352 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24353 < Makefile.c
> junk.c
24354 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24355 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24356 cat junk1.c junk2.c
> Makefile.new
24357 rm -f junk.c junk1.c junk2.c
24358 chmod 444 Makefile.new
24359 mv -f Makefile.new Makefile
24362 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24363 echo creating src
/.gdbinit
24364 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24367 # This is how we know whether to re-run configure in certain cases.
24368 touch src
/config.stamp
24376 { (exit 0); exit 0; }
24378 chmod +x
$CONFIG_STATUS
24379 ac_clean_files
=$ac_clean_files_save
24382 # configure is writing to config.log, and then calls config.status.
24383 # config.status does its own redirection, appending to config.log.
24384 # Unfortunately, on DOS this fails, as config.log is still kept open
24385 # by configure, so config.status won't be able to write to it; its
24386 # output is simply discarded. So we exec the FD to /dev/null,
24387 # effectively closing config.log, so it can be properly (re)opened and
24388 # appended to by config.status. When coming back to configure, we
24389 # need to make the FD available again.
24390 if test "$no_create" != yes; then
24392 ac_config_status_args
=
24393 test "$silent" = yes &&
24394 ac_config_status_args
="$ac_config_status_args --quiet"
24396 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24398 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24399 # would make configure fail if this is the last instruction.
24400 $ac_cs_success ||
{ (exit 1); exit 1; }