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
707 x_default_search_path
724 ac_precious_vars
='build_alias
736 # Initialize some variables set by options.
738 ac_init_version
=false
739 # The variables have the same names as the options, with
740 # dashes changed to underlines.
748 program_transform_name
=s
,x
,x
,
756 # Installation directory options.
757 # These are left unexpanded so users can "make install exec_prefix=/foo"
758 # and all the variables that are supposed to be based on exec_prefix
759 # by default will actually change.
760 # Use braces instead of parens because sh, perl, etc. also accept them.
761 # (The list follows the same order as the GNU Coding Standards.)
762 bindir
='${exec_prefix}/bin'
763 sbindir
='${exec_prefix}/sbin'
764 libexecdir
='${exec_prefix}/libexec'
765 datarootdir
='${prefix}/share'
766 datadir
='${datarootdir}'
767 sysconfdir
='${prefix}/etc'
768 sharedstatedir
='${prefix}/com'
769 localstatedir
='${prefix}/var'
770 includedir
='${prefix}/include'
771 oldincludedir
='/usr/include'
772 docdir
='${datarootdir}/doc/${PACKAGE}'
773 infodir
='${datarootdir}/info'
778 libdir
='${exec_prefix}/lib'
779 localedir
='${datarootdir}/locale'
780 mandir
='${datarootdir}/man'
786 # If the previous option needs an argument, assign it.
787 if test -n "$ac_prev"; then
788 eval $ac_prev=\
$ac_option
794 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
798 # Accept the important Cygnus configure options, so we can diagnose typos.
800 case $ac_dashdash$ac_option in
804 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
806 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
809 -build |
--build |
--buil |
--bui |
--bu)
810 ac_prev
=build_alias
;;
811 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
812 build_alias
=$ac_optarg ;;
814 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
815 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
816 ac_prev
=cache_file
;;
817 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
818 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
819 cache_file
=$ac_optarg ;;
822 cache_file
=config.cache
;;
824 -datadir |
--datadir |
--datadi |
--datad)
826 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
827 datadir
=$ac_optarg ;;
829 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
830 |
--dataroo |
--dataro |
--datar)
831 ac_prev
=datarootdir
;;
832 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
833 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
834 datarootdir
=$ac_optarg ;;
836 -disable-* |
--disable-*)
837 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
841 { (exit 1); exit 1; }; }
842 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
843 eval enable_
$ac_feature=no
;;
845 -docdir |
--docdir |
--docdi |
--doc |
--do)
847 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
850 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
852 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
855 -enable-* |
--enable-*)
856 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860 { (exit 1); exit 1; }; }
861 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
862 eval enable_
$ac_feature=\
$ac_optarg ;;
864 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
865 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
866 |
--exec |
--exe |
--ex)
867 ac_prev
=exec_prefix
;;
868 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
869 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
870 |
--exec=* |
--exe=* |
--ex=*)
871 exec_prefix
=$ac_optarg ;;
873 -gas |
--gas |
--ga |
--g)
874 # Obsolete; use --with-gas.
877 -help |
--help |
--hel |
--he |
-h)
879 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
880 ac_init_help
=recursive
;;
881 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
882 ac_init_help
=short
;;
884 -host |
--host |
--hos |
--ho)
885 ac_prev
=host_alias
;;
886 -host=* |
--host=* |
--hos=* |
--ho=*)
887 host_alias
=$ac_optarg ;;
889 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
891 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
893 htmldir
=$ac_optarg ;;
895 -includedir |
--includedir |
--includedi |
--included |
--include \
896 |
--includ |
--inclu |
--incl |
--inc)
897 ac_prev
=includedir
;;
898 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
899 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
900 includedir
=$ac_optarg ;;
902 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
904 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
905 infodir
=$ac_optarg ;;
907 -libdir |
--libdir |
--libdi |
--libd)
909 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
912 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
913 |
--libexe |
--libex |
--libe)
914 ac_prev
=libexecdir
;;
915 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
916 |
--libexe=* |
--libex=* |
--libe=*)
917 libexecdir
=$ac_optarg ;;
919 -localedir |
--localedir |
--localedi |
--localed |
--locale)
921 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
922 localedir
=$ac_optarg ;;
924 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
925 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
926 ac_prev
=localstatedir
;;
927 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
928 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
929 localstatedir
=$ac_optarg ;;
931 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
933 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
937 # Obsolete; use --without-fp.
940 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
941 |
--no-cr |
--no-c |
-n)
944 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
945 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
948 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
949 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
950 |
--oldin |
--oldi |
--old |
--ol |
--o)
951 ac_prev
=oldincludedir
;;
952 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
953 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
954 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
955 oldincludedir
=$ac_optarg ;;
957 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
959 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
962 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
963 |
--program-pre |
--program-pr |
--program-p)
964 ac_prev
=program_prefix
;;
965 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
966 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
967 program_prefix
=$ac_optarg ;;
969 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
970 |
--program-suf |
--program-su |
--program-s)
971 ac_prev
=program_suffix
;;
972 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
973 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
974 program_suffix
=$ac_optarg ;;
976 -program-transform-name |
--program-transform-name \
977 |
--program-transform-nam |
--program-transform-na \
978 |
--program-transform-n |
--program-transform- \
979 |
--program-transform |
--program-transfor \
980 |
--program-transfo |
--program-transf \
981 |
--program-trans |
--program-tran \
982 |
--progr-tra |
--program-tr |
--program-t)
983 ac_prev
=program_transform_name
;;
984 -program-transform-name=* |
--program-transform-name=* \
985 |
--program-transform-nam=* |
--program-transform-na=* \
986 |
--program-transform-n=* |
--program-transform-=* \
987 |
--program-transform=* |
--program-transfor=* \
988 |
--program-transfo=* |
--program-transf=* \
989 |
--program-trans=* |
--program-tran=* \
990 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
991 program_transform_name
=$ac_optarg ;;
993 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
995 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
998 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1000 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1003 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1004 |
-silent |
--silent |
--silen |
--sile |
--sil)
1007 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1009 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1011 sbindir
=$ac_optarg ;;
1013 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1014 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1015 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1017 ac_prev
=sharedstatedir
;;
1018 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1019 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1020 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1022 sharedstatedir
=$ac_optarg ;;
1024 -site |
--site |
--sit)
1026 -site=* |
--site=* |
--sit=*)
1029 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1031 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1032 srcdir
=$ac_optarg ;;
1034 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1035 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1036 ac_prev
=sysconfdir
;;
1037 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1038 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1039 sysconfdir
=$ac_optarg ;;
1041 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1042 ac_prev
=target_alias
;;
1043 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1044 target_alias
=$ac_optarg ;;
1046 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1049 -version |
--version |
--versio |
--versi |
--vers |
-V)
1050 ac_init_version
=: ;;
1053 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1056 { echo "$as_me: error: invalid package name: $ac_package" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1059 eval with_
$ac_package=\
$ac_optarg ;;
1061 -without-* |
--without-*)
1062 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_
$ac_package=no
;;
1071 # Obsolete; use --with-x.
1074 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1075 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1076 ac_prev
=x_includes
;;
1077 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1078 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1079 x_includes
=$ac_optarg ;;
1081 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1082 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1083 ac_prev
=x_libraries
;;
1084 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1085 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1086 x_libraries
=$ac_optarg ;;
1088 -*) { echo "$as_me: error: unrecognized option: $ac_option
1089 Try \`$0 --help' for more information." >&2
1090 { (exit 1); exit 1; }; }
1094 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1097 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1098 { (exit 1); exit 1; }; }
1099 eval $ac_envvar=\
$ac_optarg
1100 export $ac_envvar ;;
1103 # FIXME: should be removed in autoconf 3.0.
1104 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1105 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1106 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1107 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1113 if test -n "$ac_prev"; then
1114 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1115 { echo "$as_me: error: missing argument to $ac_option" >&2
1116 { (exit 1); exit 1; }; }
1119 # Be sure to have absolute directory names.
1120 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1121 datadir sysconfdir sharedstatedir localstatedir includedir \
1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1123 libdir localedir mandir
1125 eval ac_val
=\$
$ac_var
1127 [\\/$
]* | ?
:[\\/]* ) continue;;
1128 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1130 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1131 { (exit 1); exit 1; }; }
1134 # There might be people who depend on the old broken behavior: `$host'
1135 # used to hold the argument of --host etc.
1136 # FIXME: To remove some day.
1139 target
=$target_alias
1141 # FIXME: To remove some day.
1142 if test "x$host_alias" != x
; then
1143 if test "x$build_alias" = x
; then
1144 cross_compiling
=maybe
1145 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1146 If a cross compiler is detected then cross compile mode will be used." >&2
1147 elif test "x$build_alias" != "x$host_alias"; then
1153 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1155 test "$silent" = yes && exec 6>/dev
/null
1158 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1159 ac_ls_di
=`ls -di .` &&
1160 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1161 { echo "$as_me: error: Working directory cannot be determined" >&2
1162 { (exit 1); exit 1; }; }
1163 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1164 { echo "$as_me: error: pwd does not report name of working directory" >&2
1165 { (exit 1); exit 1; }; }
1168 # Find the source files, if location was not specified.
1169 if test -z "$srcdir"; then
1170 ac_srcdir_defaulted
=yes
1171 # Try the directory containing this script, then the parent directory.
1172 ac_confdir
=`$as_dirname -- "$0" ||
1173 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1174 X"$0" : 'X\(//\)[^/]' \| \
1175 X"$0" : 'X\(//\)$' \| \
1176 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1196 if test ! -r "$srcdir/$ac_unique_file"; then
1200 ac_srcdir_defaulted
=no
1202 if test ! -r "$srcdir/$ac_unique_file"; then
1203 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1204 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1205 { (exit 1); exit 1; }; }
1207 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1209 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1210 { (exit 1); exit 1; }; }
1212 # When building in place, set srcdir=.
1213 if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 # Remove unnecessary trailing slashes from srcdir.
1217 # Double slashes in file names in object file debugging info
1218 # mess up M-x gdb in Emacs.
1220 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1222 for ac_var
in $ac_precious_vars; do
1223 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1224 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1225 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1226 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1230 # Report the --help message.
1232 if test "$ac_init_help" = "long"; then
1233 # Omit some internal or obsolete options to make the list less imposing.
1234 # This message is too long to be a string in the A/UX 3.1 sh.
1236 \`configure' configures this package to adapt to many kinds of systems.
1238 Usage: $0 [OPTION]... [VAR=VALUE]...
1240 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1241 VAR=VALUE. See below for descriptions of some of the useful variables.
1243 Defaults for the options are specified in brackets.
1246 -h, --help display this help and exit
1247 --help=short display options specific to this package
1248 --help=recursive display the short help of all the included packages
1249 -V, --version display version information and exit
1250 -q, --quiet, --silent do not print \`checking...' messages
1251 --cache-file=FILE cache test results in FILE [disabled]
1252 -C, --config-cache alias for \`--cache-file=config.cache'
1253 -n, --no-create do not create output files
1254 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1256 Installation directories:
1257 --prefix=PREFIX install architecture-independent files in PREFIX
1258 [$ac_default_prefix]
1259 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1262 By default, \`make install' will install all the files in
1263 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1264 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1265 for instance \`--prefix=\$HOME'.
1267 For better control, use the options below.
1269 Fine tuning of the installation directories:
1270 --bindir=DIR user executables [EPREFIX/bin]
1271 --sbindir=DIR system admin executables [EPREFIX/sbin]
1272 --libexecdir=DIR program executables [EPREFIX/libexec]
1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1276 --libdir=DIR object code libraries [EPREFIX/lib]
1277 --includedir=DIR C header files [PREFIX/include]
1278 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1279 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1280 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1281 --infodir=DIR info documentation [DATAROOTDIR/info]
1282 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1283 --mandir=DIR man documentation [DATAROOTDIR/man]
1284 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1285 --htmldir=DIR html documentation [DOCDIR]
1286 --dvidir=DIR dvi documentation [DOCDIR]
1287 --pdfdir=DIR pdf documentation [DOCDIR]
1288 --psdir=DIR ps documentation [DOCDIR]
1294 --program-prefix=PREFIX prepend PREFIX to installed program names
1295 --program-suffix=SUFFIX append SUFFIX to installed program names
1296 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1299 --x-includes=DIR X include files are
in DIR
1300 --x-libraries=DIR X library files are
in DIR
1303 --build=BUILD configure
for building on BUILD
[guessed
]
1304 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1308 if test -n "$ac_init_help"; then
1313 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1314 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1315 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1316 specify
install directory
for Emacs.app on Mac OS X
1317 --enable-asserts compile code with asserts enabled
1318 --enable-maintainer-mode enable make rules and dependencies not useful
1319 (and sometimes confusing
) to the casual installer
1320 --enable-locallisppath=PATH
1321 directories Emacs should search
for lisp files
1322 specific to this site
1323 --disable-largefile omit support
for large files
1326 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1327 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1328 --without-gcc don
't use GCC to compile Emacs if GCC is found
1329 --without-pop don't support POP
mail retrieval with movemail
1330 --with-kerberos support Kerberos-authenticated POP
1331 --with-kerberos5 support Kerberos version
5 authenticated POP
1332 --with-hesiod support Hesiod to get the POP server
host
1333 --without-sound don
't compile with sound support
1334 --with-x-toolkit=KIT use an X toolkit
1335 (KIT = yes/lucid/athena/motif/gtk/no)
1336 --with-xpm use -lXpm for displaying XPM images
1337 --with-jpeg use -ljpeg for displaying JPEG images
1338 --with-tiff use -ltiff for displaying TIFF images
1339 --with-gif use -lungif for displaying GIF images
1340 --with-png use -lpng for displaying PNG images
1341 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1342 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1343 --without-toolkit-scroll-bars
1344 don't use Motif or Xaw3d scroll bars
1345 --without-xim don
't use X11 XIM
1346 --without-carbon don't use Carbon GUI on Mac OS X
1347 --with-x use the X Window System
1349 Some influential environment variables
:
1350 CC C compiler
command
1351 CFLAGS C compiler flags
1352 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1353 nonstandard directory
<lib dir
>
1354 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1355 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1356 you have headers
in a nonstandard directory
<include dir
>
1358 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1360 Use these variables to override the choices made by
`configure' or to help
1361 it to find libraries and programs with nonstandard names/locations.
1367 if test "$ac_init_help" = "recursive"; then
1368 # If there are subdirs, report their specific --help.
1369 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1370 test -d "$ac_dir" || continue
1374 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1376 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1377 # A ".." for each directory in $ac_dir_suffix.
1378 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1379 case $ac_top_builddir_sub in
1380 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1381 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 ac_abs_top_builddir=$ac_pwd
1385 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1386 # for backward compatibility:
1387 ac_top_builddir=$ac_top_build_prefix
1390 .) # We are building in place.
1392 ac_top_srcdir=$ac_top_builddir_sub
1393 ac_abs_top_srcdir=$ac_pwd ;;
1394 [\\/]* | ?:[\\/]* ) # Absolute name.
1395 ac_srcdir=$srcdir$ac_dir_suffix;
1396 ac_top_srcdir=$srcdir
1397 ac_abs_top_srcdir=$srcdir ;;
1399 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1400 ac_top_srcdir=$ac_top_build_prefix$srcdir
1401 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1403 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1405 cd "$ac_dir" || { ac_status=$?; continue; }
1406 # Check for guested configure.
1407 if test -f "$ac_srcdir/configure.gnu"; then
1409 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1410 elif test -f "$ac_srcdir/configure"; then
1412 $SHELL "$ac_srcdir/configure" --help=recursive
1414 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1416 cd "$ac_pwd" || { ac_status=$?; break; }
1420 test -n "$ac_init_help" && exit $ac_status
1421 if $ac_init_version; then
1424 generated by GNU Autoconf 2.61
1426 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1427 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1428 This configure script is free software; the Free Software Foundation
1429 gives unlimited permission to copy, distribute and modify it.
1433 cat >config.log <<_ACEOF
1434 This file contains any messages produced by compilers while
1435 running configure, to aid debugging if configure makes a mistake.
1437 It was created by $as_me, which was
1438 generated by GNU Autoconf 2.61. Invocation command line was
1450 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1451 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1452 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1453 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1454 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1456 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1457 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1459 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1460 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1461 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1462 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1463 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1464 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1465 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1473 test -z "$as_dir" && as_dir=.
1474 echo "PATH: $as_dir"
1490 # Keep a trace of the command line.
1491 # Strip out --no-create and --no-recursion so they do not pile up.
1492 # Strip out --silent because we don't want to record it for future runs.
1493 # Also quote any args containing shell meta-characters.
1494 # Make two passes to allow for proper duplicate-argument suppression.
1498 ac_must_keep_next=false
1504 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1505 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1506 | -silent | --silent | --silen | --sile | --sil)
1509 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1512 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1514 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1515 if test $ac_must_keep_next = true; then
1516 ac_must_keep_next=false # Got value, back to normal.
1519 *=* | --config-cache | -C | -disable-* | --disable-* \
1520 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1521 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1522 | -with-* | --with-* | -without-* | --without-* | --x)
1523 case "$ac_configure_args0 " in
1524 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1527 -* ) ac_must_keep_next=true ;;
1530 ac_configure_args="$ac_configure_args '$ac_arg'"
1535 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1536 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1538 # When interrupted or exit'd, cleanup temporary files, and complete
1539 # config.log. We remove comments because anyway the quotes in there
1540 # would cause problems or look ugly.
1541 # WARNING: Use '\'' to represent an apostrophe within the trap.
1542 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1543 trap 'exit_status=$?
1544 # Save into config.log some information that might help in debugging.
1549 ## ---------------- ##
1550 ## Cache variables. ##
1551 ## ---------------- ##
1554 # The following way of writing the cache mishandles newlines in values,
1556 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1557 eval ac_val=\$$ac_var
1561 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1562 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1565 _ | IFS | as_nl) ;; #(
1566 *) $as_unset $ac_var ;;
1571 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1572 *${as_nl}ac_space=\ *)
1574 "s/'\''/'\''\\\\'\'''\''/g;
1575 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1578 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1586 ## ----------------- ##
1587 ## Output variables. ##
1588 ## ----------------- ##
1591 for ac_var in $ac_subst_vars
1593 eval ac_val=\$$ac_var
1595 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1597 echo "$ac_var='\''$ac_val'\''"
1601 if test -n "$ac_subst_files"; then
1603 ## ------------------- ##
1604 ## File substitutions. ##
1605 ## ------------------- ##
1608 for ac_var in $ac_subst_files
1610 eval ac_val=\$$ac_var
1612 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1614 echo "$ac_var='\''$ac_val'\''"
1619 if test -s confdefs.h; then
1629 test "$ac_signal" != 0 &&
1630 echo "$as_me: caught signal $ac_signal"
1631 echo "$as_me: exit $exit_status"
1633 rm -f core *.core core.conftest.* &&
1634 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1637 for ac_signal in 1 2 13 15; do
1638 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1642 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1643 rm -f -r conftest* confdefs.h
1645 # Predefined preprocessor variables.
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE_NAME "$PACKAGE_NAME"
1652 cat >>confdefs.h <<_ACEOF
1653 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1657 cat >>confdefs.h <<_ACEOF
1658 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1662 cat >>confdefs.h <<_ACEOF
1663 #define PACKAGE_STRING "$PACKAGE_STRING"
1667 cat >>confdefs.h <<_ACEOF
1668 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1672 # Let the site file select an alternate cache file if it wants to.
1673 # Prefer explicitly selected file to automatically selected ones.
1674 if test -n "$CONFIG_SITE"; then
1675 set x "$CONFIG_SITE"
1676 elif test "x$prefix" != xNONE; then
1677 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1679 set x "$ac_default_prefix/share/config.site" \
1680 "$ac_default_prefix/etc/config.site"
1685 if test -r "$ac_site_file"; then
1686 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1687 echo "$as_me: loading site script $ac_site_file" >&6;}
1688 sed 's/^/| /' "$ac_site_file" >&5
1693 if test -r "$cache_file"; then
1694 # Some versions of bash will fail to source /dev/null (special
1695 # files actually), so we avoid doing that.
1696 if test -f "$cache_file"; then
1697 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1698 echo "$as_me: loading cache $cache_file" >&6;}
1700 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1701 *) . "./$cache_file";;
1705 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1706 echo "$as_me: creating cache $cache_file" >&6;}
1710 ac_header_list="$ac_header_list sys/time.h"
1711 ac_header_list="$ac_header_list unistd.h"
1712 ac_func_list="$ac_func_list alarm"
1713 # Check that the precious variables saved in the cache have kept the same
1715 ac_cache_corrupted=false
1716 for ac_var in $ac_precious_vars; do
1717 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1718 eval ac_new_set=\$ac_env_${ac_var}_set
1719 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1720 eval ac_new_val=\$ac_env_${ac_var}_value
1721 case $ac_old_set,$ac_new_set in
1723 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1724 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1725 ac_cache_corrupted=: ;;
1727 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1728 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1729 ac_cache_corrupted=: ;;
1732 if test "x$ac_old_val" != "x$ac_new_val"; then
1733 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1734 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1735 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1736 echo "$as_me: former value
: $ac_old_val" >&2;}
1737 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1738 echo "$as_me: current value
: $ac_new_val" >&2;}
1739 ac_cache_corrupted=:
1742 # Pass precious variables to config.status.
1743 if test "$ac_new_set" = set; then
1745 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1746 *) ac_arg=$ac_var=$ac_new_val ;;
1748 case " $ac_configure_args " in
1749 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1750 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1754 if $ac_cache_corrupted; then
1755 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1756 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1757 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1758 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1759 { (exit 1); exit 1; }; }
1779 ac_cpp='$CPP $CPPFLAGS'
1780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1785 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1788 test "$program_prefix" != NONE &&
1789 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1790 # Use a double $ so make ignores it.
1791 test "$program_suffix" != NONE &&
1792 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1793 # Double any \ or $. echo might interpret backslashes.
1794 # By default was `s
,x
,x
', remove it if useless.
1795 cat <<\_ACEOF >conftest.sed
1796 s/[\\$]/&&/g;s/;s,x,x,$//
1798 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1802 lispdir='${datadir}/emacs
/${version}/lisp
'
1803 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1804 '${datadir}/emacs
/site-lisp
'
1805 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1806 etcdir='${datadir}/emacs
/${version}/etc
'
1807 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1808 docdir='${datadir}/emacs
/${version}/etc
'
1809 gamedir='${localstatedir}/games
/emacs
'
1814 # Check whether --with-gcc was given.
1815 if test "${with_gcc+set}" = set; then
1820 # Check whether --with-pop was given.
1821 if test "${with_pop+set}" = set; then
1822 withval=$with_pop; if test "$withval" = yes; then
1823 cat >>confdefs.h <<\_ACEOF
1824 #define MAIL_USE_POP 1
1830 cat >>confdefs.h <<\_ACEOF
1831 #define MAIL_USE_POP 1
1838 # Check whether --with-kerberos was given.
1839 if test "${with_kerberos+set}" = set; then
1840 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1848 # Check whether --with-kerberos5 was given.
1849 if test "${with_kerberos5+set}" = set; then
1850 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1851 if test "${with_kerberos+set}" != set; then
1853 cat >>confdefs.h <<\_ACEOF
1860 cat >>confdefs.h <<\_ACEOF
1867 # Check whether --with-hesiod was given.
1868 if test "${with_hesiod+set}" = set; then
1869 withval=$with_hesiod;
1870 cat >>confdefs.h <<\_ACEOF
1878 # Check whether --with-sound was given.
1879 if test "${with_sound+set}" = set; then
1880 withval=$with_sound;
1885 # Check whether --with-x-toolkit was given.
1886 if test "${with_x_toolkit+set}" = set; then
1887 withval=$with_x_toolkit; case "${withval}" in
1888 y | ye | yes ) val=athena ;;
1890 l | lu | luc | luci | lucid ) val=lucid ;;
1891 a | at | ath | athe | athen | athena ) val=athena ;;
1892 m | mo | mot | moti | motif ) val=motif ;;
1893 g | gt | gtk ) val=gtk ;;
1895 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1896 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1897 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1898 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1899 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1900 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1901 { (exit 1); exit 1; }; }
1909 # Check whether --with-xpm was given.
1910 if test "${with_xpm+set}" = set; then
1915 # Check whether --with-jpeg was given.
1916 if test "${with_jpeg+set}" = set; then
1921 # Check whether --with-tiff was given.
1922 if test "${with_tiff+set}" = set; then
1927 # Check whether --with-gif was given.
1928 if test "${with_gif+set}" = set; then
1933 # Check whether --with-png was given.
1934 if test "${with_png+set}" = set; then
1939 # Check whether --with-gtk was given.
1940 if test "${with_gtk+set}" = set; then
1945 # Check whether --with-pkg-config-prog was given.
1946 if test "${with_pkg_config_prog+set}" = set; then
1947 withval=$with_pkg_config_prog;
1951 # Check whether --with-toolkit-scroll-bars was given.
1952 if test "${with_toolkit_scroll_bars+set}" = set; then
1953 withval=$with_toolkit_scroll_bars;
1957 # Check whether --with-xim was given.
1958 if test "${with_xim+set}" = set; then
1963 # Check whether --with-carbon was given.
1964 if test "${with_carbon+set}" = set; then
1965 withval=$with_carbon;
1968 # Check whether --enable-carbon-app was given.
1969 if test "${enable_carbon_app+set}" = set; then
1970 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1974 # Check whether --enable-asserts was given.
1975 if test "${enable_asserts+set}" = set; then
1976 enableval=$enable_asserts; USE_XASSERTS=$enableval
1982 # Check whether --enable-maintainer-mode was given.
1983 if test "${enable_maintainer_mode+set}" = set; then
1984 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1986 USE_MAINTAINER_MODE=no
1989 if test $USE_MAINTAINER_MODE = yes; then
1996 # Check whether --enable-locallisppath was given.
1997 if test "${enable_locallisppath+set}" = set; then
1998 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2000 elif test "${enableval}" != "yes"; then
2001 locallisppath=${enableval}
2006 #### Make srcdir absolute, if it isn't already. It
's important to
2007 #### avoid running the path through pwd unnecessarily, since pwd can
2008 #### give you automounter prefixes, which can go away. We do all this
2009 #### so Emacs can find its files when run uninstalled.
2010 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2015 ## We may be able to use the $PWD environment variable to make this
2016 ## absolute. But sometimes PWD is inaccurate.
2017 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2018 ## but that tested only for a well-formed and valid PWD,
2019 ## it did not object when PWD was well-formed and valid but just wrong.
2020 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2024 srcdir
="`(cd ${srcdir}; pwd)`"
2027 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2030 #### Check if the source directory already has a configured system in it.
2031 if test `pwd` != `(cd ${srcdir} && pwd)` \
2032 && test -f "${srcdir}/src/config.h" ; then
2033 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2034 as a build directory right now; it has been configured in its own
2035 right. To configure in another directory as well, you MUST
2036 use GNU make. If you do not have GNU make, then you must
2037 now do \`make distclean' in ${srcdir},
2038 and then run $0 again." >&5
2039 echo "$as_me: 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." >&2;}
2047 #### Given the configuration name, set machfile and opsysfile to the
2048 #### names of the m/*.h and s/*.h files we should use.
2050 ### Canonicalize the configuration name.
2053 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2054 if test -f "$ac_dir/install-sh"; then
2056 ac_install_sh
="$ac_aux_dir/install-sh -c"
2058 elif test -f "$ac_dir/install.sh"; then
2060 ac_install_sh
="$ac_aux_dir/install.sh -c"
2062 elif test -f "$ac_dir/shtool"; then
2064 ac_install_sh
="$ac_aux_dir/shtool install -c"
2068 if test -z "$ac_aux_dir"; then
2069 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2070 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2071 { (exit 1); exit 1; }; }
2074 # These three variables are undocumented and unsupported,
2075 # and are intended to be withdrawn in a future Autoconf release.
2076 # They can cause serious problems if a builder's source tree is in a directory
2077 # whose full name contains unusual characters.
2078 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2079 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2080 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2083 # Make sure we can run config.sub.
2084 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2085 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2086 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2087 { (exit 1); exit 1; }; }
2089 { echo "$as_me:$LINENO: checking build system type" >&5
2090 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2091 if test "${ac_cv_build+set}" = set; then
2092 echo $ECHO_N "(cached) $ECHO_C" >&6
2094 ac_build_alias
=$build_alias
2095 test "x$ac_build_alias" = x
&&
2096 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2097 test "x$ac_build_alias" = x
&&
2098 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2099 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2100 { (exit 1); exit 1; }; }
2101 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2102 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2103 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2104 { (exit 1); exit 1; }; }
2107 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2108 echo "${ECHO_T}$ac_cv_build" >&6; }
2109 case $ac_cv_build in
2111 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2112 echo "$as_me: error: invalid value of canonical build" >&2;}
2113 { (exit 1); exit 1; }; };;
2116 ac_save_IFS
=$IFS; IFS
='-'
2122 # Remember, the first character of IFS is used to create $*,
2123 # except with old shells:
2126 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2129 { echo "$as_me:$LINENO: checking host system type" >&5
2130 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2131 if test "${ac_cv_host+set}" = set; then
2132 echo $ECHO_N "(cached) $ECHO_C" >&6
2134 if test "x$host_alias" = x
; then
2135 ac_cv_host
=$ac_cv_build
2137 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2138 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2139 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2140 { (exit 1); exit 1; }; }
2144 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2145 echo "${ECHO_T}$ac_cv_host" >&6; }
2148 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2149 echo "$as_me: error: invalid value of canonical host" >&2;}
2150 { (exit 1); exit 1; }; };;
2153 ac_save_IFS
=$IFS; IFS
='-'
2159 # Remember, the first character of IFS is used to create $*,
2160 # except with old shells:
2163 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2167 configuration
=${host_alias-$host}
2171 ### If you add support for a new configuration, add code to this
2172 ### switch statement to recognize your configuration name and select
2173 ### the appropriate operating system and machine description files.
2175 ### You would hope that you could choose an m/*.h file pretty much
2176 ### based on the machine portion of the configuration name, and an s-
2177 ### file based on the operating system portion. However, it turns out
2178 ### that each m/*.h file is pretty manufacturer-specific - for
2179 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2180 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2181 ### machines. So we basically have to have a special case for each
2182 ### configuration name.
2184 ### As far as handling version numbers on operating systems is
2185 ### concerned, make sure things will fail in a fixable way. If
2186 ### /etc/MACHINES doesn't say anything about version numbers, be
2187 ### prepared to handle anything reasonably. If version numbers
2188 ### matter, be sure /etc/MACHINES says something about it.
2190 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2191 ### "System V Release 4"; he writes, "The old convention encouraged
2192 ### confusion between `system' and `release' levels'."
2194 machine
='' opsys
='' unported
=no
2195 case "${canonical}" in
2200 case "${canonical}" in
2201 alpha
*-*-freebsd*) machine
=alpha
;;
2202 ia64-
*-freebsd*) machine
=ia64
;;
2203 sparc64-
*-freebsd*) machine
=sparc
;;
2204 powerpc-
*-freebsd*) machine
=macppc
;;
2205 i
[3456]86-*-freebsd*) machine
=intel386
;;
2206 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2213 if test -f /usr
/lib
/crti.o
; then
2215 cat >>confdefs.h
<<\_ACEOF
2221 case "${canonical}" in
2222 alpha
*-*-netbsd*) machine
=alpha
;;
2223 i
[3456]86-*-netbsd*) machine
=intel386
;;
2225 # This is somewhat bogus.
2226 machine
=hp9000s300
;;
2227 mips-
*-netbsd*) machine
=pmax
;;
2228 mipsel-
*-netbsd*) machine
=pmax
;;
2229 mipseb-
*-netbsd*) machine
=pmax
;;
2230 ns32k-
*-netbsd*) machine
=ns32000
;;
2231 powerpc-
*-netbsd*) machine
=macppc
;;
2232 sparc
*-*-netbsd*) machine
=sparc
;;
2233 vax-
*-netbsd*) machine
=vax
;;
2234 arm-
*-netbsd*) machine
=arm
;;
2235 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2236 hppa-
*-netbsd*) machine
=hp800
;;
2237 shle-
*-netbsd*) machine
=sh3el
;;
2244 case "${canonical}" in
2245 alpha
*-*-openbsd*) machine
=alpha
;;
2246 i386-
*-openbsd*) machine
=intel386
;;
2247 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2248 m68k-
*-openbsd*) machine
=hp9000s300
;;
2249 mipsel-
*-openbsd*) machine
=pmax
;;
2250 ns32k-
*-openbsd*) machine
=ns32000
;;
2251 sparc-
*-openbsd*) machine
=sparc
;;
2252 vax-
*-openbsd*) machine
=vax
;;
2259 case "${canonical}" in
2260 i
[3456]86-*-lynxos*) machine
=intel386
;;
2261 powerpc-
*-lynxos*) machine
=powerpc
;;
2266 arm-acorn-riscix1.1
* )
2267 machine
=acorn opsys
=riscix1-1
2269 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2270 ## This name is riscix12 instead of riscix1.2
2271 ## to avoid a file name conflict on MSDOS.
2272 machine
=acorn opsys
=riscix12
2278 case "${canonical}" in
2279 i
[345]86-*-bsdi*) machine
=intel386
;;
2280 sparc-
*-bsdi*) machine
=sparc
;;
2281 powerpc-
*-bsdi*) machine
=macppc
;;
2283 case "${canonical}" in
2284 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2285 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2286 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2287 *-*-bsdi3* ) opsys
=bsdos3
;;
2288 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2293 ## Strictly speaking, we need the version of the alliant operating
2294 ## system to choose the right machine file, but currently the
2295 ## configuration name doesn't tell us enough to choose the right
2296 ## one; we need to give alliants their own operating system name to
2297 ## do this right. When someone cares, they can help us.
2299 machine
=alliant4 opsys
=bsd4-2
2302 machine
=alliant-2800 opsys
=bsd4-3
2305 ## Alpha (DEC) machines.
2307 machine
=alpha opsys
=osf1
2308 # This is needed to find X11R6.1 libraries for certain tests.
2309 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2310 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2311 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2312 # due to non-traditional preprocessing with the current compiler
2313 # defaults. OSF 4 can also have that compiler version, and there
2314 # seems always to have been a usable /usr/bin/cpp.
2315 NON_GNU_CPP
=/usr
/bin
/cpp
2316 case "${canonical}" in
2317 alpha
*-dec-osf[5-9]*)
2322 alpha
*-*-linux-gnu* )
2323 machine
=alpha opsys
=gnu-linux
2327 machine
=arm opsys
=gnu-linux
2332 machine
=altos opsys
=usg5-2
2337 machine
=amdahl opsys
=usg5-2-2
2340 ## Apollo, Domain/OS
2342 machine
=apollo opsys
=bsd4-3
2345 ## AT&T 3b2, 3b5, 3b15, 3b20
2347 machine
=att3b opsys
=usg5-2-2
2350 ## AT&T 3b1 - The Mighty Unix PC!
2352 machine
=7300 opsys
=usg5-2-2
2357 machine
=ibmrs6000 opsys
=aix3-2
2362 machine
=dpx2 opsys
=usg5-3
2367 machine
=sps7 opsys
=usg5-2
2370 ## CCI 5/32, 6/32 -- see "Tahoe".
2373 ## I don't know what configuration name to use for this; config.sub
2374 ## doesn't seem to know anything about it. Hey, Celerity users, get
2375 ## in touch with us!
2376 celerity-celerity-bsd
* )
2377 machine
=celerity opsys
=bsd4-2
2381 ## What operating systems does this chip run that Emacs has been
2385 ## We'll use the catch-all code at the bottom to guess the
2386 ## operating system.
2390 mips-compaq-nonstopux
* )
2391 machine
=nonstopux opsys
=nonstopux
2395 *-convex-bsd* |
*-convex-convexos* )
2396 machine
=convex opsys
=bsd4-3
2397 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2398 NON_GNU_CPP
="cc -E -P"
2402 i
[3456]86-cubix-sysv* )
2403 machine
=intel386 opsys
=usg5-3
2407 cydra
*-cydrome-sysv* )
2408 machine
=cydra5 opsys
=usg5-3
2411 ## Data General AViiON Machines
2412 ## DG changed naming conventions with the release of 5.4.4.10, they
2413 ## dropped the initial 5.4 but left the intervening R. Because of the
2414 ## R this shouldn't conflict with older versions of the OS (which I
2415 ## think were named like dgux4.*). In addition, DG new AViiONs series
2416 ## uses either Motorola M88k or Intel Pentium CPUs.
2417 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2418 machine
=aviion opsys
=dgux4
2420 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2421 ## This name is dgux5-4-3 instead of dgux5-4r3
2422 ## to avoid a file name conflict on MSDOS.
2423 machine
=aviion opsys
=dgux5-4-3
2425 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2426 machine
=aviion opsys
=dgux5-4r2
2429 machine
=aviion opsys
=dgux
2432 ## Data General AViiON Intel (x86) Machines
2433 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2434 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2435 i
[345]86-dg-dguxR4* )
2436 machine
=aviion-intel opsys
=dgux4
2440 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2441 machine
=pmax opsys
=bsd4-2
2443 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2444 machine
=pmax opsys
=bsd4-3
2447 machine
=pmax opsys
=ultrix4-3
2450 machine
=pmax opsys
=osf1
2452 mips-dec-mach_bsd4.3
* )
2453 machine
=pmax opsys
=mach-bsd4-3
2456 ## Motorola Delta machines
2457 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2458 machine
=delta opsys
=usg5-3
2459 if test -z "`type gnucc | grep 'not found'`"
2461 if test -s /etc
/167config
2462 then CC
="gnucc -m68040"
2463 else CC
="gnucc -m68881"
2466 if test -z "`type gcc | grep 'not found'`"
2472 m88k-motorola-sysv4
* )
2473 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2474 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2475 # I hope there are not other 4.0 versions for this machine
2476 # which really need usg5-4 instead.
2477 machine
=delta88k opsys
=usg5-4-2
2479 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2480 machine
=delta88k opsys
=usg5-3
2485 machine
=dual opsys
=usg5-2
2487 m68
*-dual-uniplus* )
2488 machine
=dual opsys
=unipl5-2
2493 machine
=elxsi opsys
=usg5-2
2498 machine
=ns16000 opsys
=umax
2501 ## The GEC 63 - apparently, this port isn't really finished yet.
2502 # I'm sure we finished off the last of the machines, though. -- fx
2504 ## Gould Power Node and NP1
2506 machine
=gould opsys
=bsd4-2
2509 machine
=gould opsys
=bsd4-3
2512 machine
=gould-np1 opsys
=bsd4-3
2515 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2516 ## as far as Emacs is concerned).
2518 # Build needs to be different on 7.0 and later releases
2519 case "`uname -r`" in
2520 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2521 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2523 NON_GNU_CPP
="/lib/cpp"
2525 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2527 machine
=nh3000 opsys
=cxux
2529 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2530 powerpc-harris-powerunix
)
2531 machine
=nh6000 opsys
=powerunix
2532 NON_GNU_CPP
="cc -Xo -E -P"
2534 ## SR2001/SR2201 running HI-UX/MPP
2535 hppa1.1
-hitachi-hiuxmpp* )
2536 machine
=sr2k opsys
=hiuxmpp
2538 hppa1.1
-hitachi-hiuxwe2* )
2539 machine
=sr2k opsys
=hiuxwe2
2542 xps
*-honeywell-sysv* )
2543 machine
=xps100 opsys
=usg5-2
2546 ## HP 9000 series 200 or 300
2548 machine
=hp9000s300 opsys
=bsd4-3
2550 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2552 case "`uname -r`" in
2553 ## Someone's system reports A.B8.05 for this.
2554 ## I wonder what other possibilities there are.
2555 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2556 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2557 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2558 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2559 *) machine
=hp9000s300 opsys
=hpux
;;
2563 ## HP 9000 series 700 and 800, running HP/UX
2565 machine
=hp800 opsys
=hpux
2568 machine
=hp800 opsys
=hpux8
2570 hppa
*-hp-hpux9shr* )
2571 machine
=hp800 opsys
=hpux9shr
2574 machine
=hp800 opsys
=hpux9
2576 hppa
*-hp-hpux10.2
* )
2577 machine
=hp800 opsys
=hpux10-20
2580 machine
=hp800 opsys
=hpux10
2582 hppa
*-hp-hpux1[1-9]* )
2583 machine
=hp800 opsys
=hpux11
2584 CFLAGS
="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2587 hppa
*-*-linux-gnu* )
2588 machine
=hp800 opsys
=gnu-linux
2591 ## HP 9000 series 700 and 800, running HP/UX
2593 ## Cross-compilation? Nah!
2594 case "`uname -r`" in
2595 ## Someone's system reports A.B8.05 for this.
2596 ## I wonder what other possibilities there are.
2597 *.B8.
* ) machine
=hp800 opsys
=hpux8
;;
2598 *.08.
* ) machine
=hp800 opsys
=hpux8
;;
2599 *.09.
* ) machine
=hp800 opsys
=hpux9
;;
2600 *) machine
=hp800 opsys
=hpux10
;;
2604 machine
=hp800 opsys
=nextstep
2609 machine
=orion opsys
=bsd4-2
2611 clipper-orion-bsd
* )
2612 machine
=orion105 opsys
=bsd4-2
2616 i
[3456]86-ibm-aix1.1
* )
2617 machine
=ibmps2-aix opsys
=usg5-2-2
2619 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2620 machine
=ibmps2-aix opsys
=usg5-3
2623 machine
=ibm370aix opsys
=usg5-3
2626 machine
=ibms390 opsys
=gnu-linux
2628 s390x-
*-linux-gnu* )
2629 machine
=ibms390x opsys
=gnu-linux
2631 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2632 machine
=ibmrs6000 opsys
=aix3-1
2634 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2635 machine
=ibmrs6000 opsys
=aix3-2-5
2637 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2638 machine
=ibmrs6000 opsys
=aix4-1
2640 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2641 machine
=ibmrs6000 opsys
=aix4-2
2643 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2644 machine
=ibmrs6000 opsys
=aix4-2
2646 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2647 machine
=ibmrs6000 opsys
=aix4
2649 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2650 machine
=ibmrs6000 opsys
=aix4-1
2652 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2653 machine
=ibmrs6000 opsys
=aix3-2
2656 machine
=ibmrt opsys
=bsd4-3
2659 machine
=ibmrt opsys
=bsd4-2
2662 machine
=ibmrt opsys
=bsd4-3
2665 machine
=ibmrt opsys
=bsd4-2
2668 machine
=ibmrt opsys
=bsd4-3
2671 machine
=ibmrt opsys
=bsd4-3
2674 machine
=ibmrt-aix opsys
=usg5-2-2
2677 ## Integrated Solutions `Optimum V'
2679 machine
=isi-ov opsys
=bsd4-2
2682 machine
=isi-ov opsys
=bsd4-3
2685 ## Intel 386 machines where we do care about the manufacturer
2686 i
[3456]86-intsys-sysv* )
2687 machine
=is386 opsys
=usg5-2-2
2691 i
[3456]86-prime-sysv* )
2692 machine
=i386 opsys
=usg5-3
2695 ## Sequent Symmetry running Dynix
2696 i
[3456]86-sequent-bsd* )
2697 machine
=symmetry opsys
=bsd4-3
2700 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2701 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2702 machine
=sequent-ptx opsys
=ptx4
2703 NON_GNU_CPP
=/lib
/cpp
2706 ## Sequent Symmetry running DYNIX/ptx
2707 ## Use the old cpp rather than the newer ANSI one.
2708 i
[3456]86-sequent-ptx* )
2709 machine
=sequent-ptx opsys
=ptx
2710 NON_GNU_CPP
="/lib/cpp"
2713 ## ncr machine running svr4.3.
2714 i
[3456]86-ncr-sysv4.3
)
2715 machine
=ncr386 opsys
=usg5-4-3
2718 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2719 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2720 i
[3456]86-ncr-sysv* )
2721 machine
=ncr386 opsys
=usg5-4-2
2724 ## Intel Paragon OSF/1
2726 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2731 machine
=i860 opsys
=usg5-4
2732 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2733 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2736 ## Macintosh PowerPC
2737 powerpc
*-*-linux-gnu* )
2738 machine
=macppc opsys
=gnu-linux
2741 ## Masscomp machines
2742 m68
*-masscomp-rtu* )
2743 machine
=masscomp opsys
=rtu
2746 ## Megatest machines
2747 m68
*-megatest-bsd* )
2748 machine
=mega68 opsys
=bsd4-2
2751 ## Workstations sold by MIPS
2752 ## This is not necessarily all workstations using the MIPS processor -
2753 ## Irises are produced by SGI, and DECstations by DEC.
2755 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2756 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2757 ## it gives for choosing between the alternatives seems to be "Use
2758 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2759 ## the BSD world." I'll assume that these are instructions for
2760 ## handling two odd situations, and that every other situation
2761 ## should use mips.h and usg5-2-2, they being listed first.
2764 ## Fall through to the general code at the bottom to decide on the OS.
2766 mips-mips-riscos4
* )
2767 machine
=mips4 opsys
=bsd4-3
2768 NON_GNU_CC
="cc -systype bsd43"
2769 NON_GNU_CPP
="cc -systype bsd43 -E"
2771 mips-mips-riscos5
* )
2772 machine
=mips4 opsys
=riscos5
2773 NON_GNU_CC
="cc -systype bsd43"
2774 NON_GNU_CPP
="cc -systype bsd43 -E"
2777 machine
=mips opsys
=bsd4-3
2780 machine
=mips opsys
=usg5-2-2
2784 m68
*-next-* | m68k-
*-nextstep* )
2785 machine
=m68k opsys
=nextstep
2788 ## The complete machine from National Semiconductor
2790 machine
=ns32000 opsys
=usg5-2
2794 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2795 machine
=tower32 opsys
=usg5-2-2
2797 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2798 machine
=tower32v3 opsys
=usg5-3
2803 machine
=ews4800 opsys
=ux4800
2806 ## Nixdorf Targon 31
2807 m68
*-nixdorf-sysv* )
2808 machine
=targon31 opsys
=usg5-2-2
2813 machine
=nu opsys
=usg5-2
2818 machine
=plexus opsys
=usg5-2
2822 ## I don't really have any idea what sort of processor the Pyramid has,
2823 ## so I'm assuming it is its own architecture.
2824 pyramid-pyramid-bsd
* )
2825 machine
=pyramid opsys
=bsd4-2
2829 ns32k-sequent-bsd4.2
* )
2830 machine
=sequent opsys
=bsd4-2
2832 ns32k-sequent-bsd4.3
* )
2833 machine
=sequent opsys
=bsd4-3
2837 mips-siemens-sysv
* | mips-sni-sysv
*)
2838 machine
=mips-siemens opsys
=usg5-4
2839 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2840 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2843 ## Silicon Graphics machines
2844 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2846 machine
=irist opsys
=iris3-5
2848 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2849 machine
=irist opsys
=iris3-6
2853 machine
=iris4d opsys
=irix3-3
2856 machine
=iris4d opsys
=irix4-0
2859 machine
=iris4d opsys
=irix6-5
2860 # Without defining _LANGUAGE_C, things get masked out in the headers
2861 # so that, for instance, grepping for `free' in stdlib.h fails and
2862 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2863 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2864 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2867 machine
=iris4d opsys
=irix6-0
2868 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2869 # but presumably it does no harm.
2870 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2871 # -32 probably isn't necessary in later v.6s -- anyone know which?
2872 NON_GCC_TEST_OPTIONS
=-32
2874 mips-sgi-irix5.
[01]* )
2875 machine
=iris4d opsys
=irix5-0
2877 mips-sgi-irix5
* | mips-sgi-irix
* )
2878 machine
=iris4d opsys
=irix5-2
2883 machine
=news opsys
=bsd4-2
2886 machine
=news opsys
=bsd4-3
2888 m68
*-sony-newsos3* | m68
*-sony-news3*)
2889 machine
=news opsys
=bsd4-3
2891 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2892 machine
=news-risc opsys
=bsd4-3
2894 mips-sony-newsos6
* )
2895 machine
=news-r6 opsys
=newsos6
2898 machine
=news-risc opsys
=newsos5
2903 machine
=stride opsys
=usg5-2
2907 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2908 machine
=sparc opsys
=gnu-linux
2911 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2912 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2913 | rs6000-
*-solaris2*)
2914 case "${canonical}" in
2915 m68
*-sunos1* ) machine
=sun1
;;
2916 m68
*-sunos2* ) machine
=sun2
;;
2917 m68
* ) machine
=sun3
;;
2918 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2919 i
[3456]86-*-* ) machine
=intel386
;;
2920 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2921 powerpcle
* ) machine
=powerpcle
;;
2922 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2923 sparc
* ) machine
=sparc
;;
2926 case "${canonical}" in
2927 ## The Sun386 didn't get past 4.0.
2928 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2929 *-sunos4.0
* ) opsys
=sunos4-0
;;
2930 *-sunos4.1.
[3-9]*noshare
)
2931 ## This name is sunos413 instead of sunos4-1-3
2932 ## to avoid a file name conflict on MSDOS.
2934 NON_GNU_CPP
=/usr
/lib
/cpp
2935 NON_GCC_TEST_OPTIONS
=-Bstatic
2936 GCC_TEST_OPTIONS
=-static
2938 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2940 NON_GNU_CPP
=/usr
/lib
/cpp
2942 *-sunos4* |
*-sunos )
2944 NON_GCC_TEST_OPTIONS
=-Bstatic
2945 GCC_TEST_OPTIONS
=-static
2947 *-sunos5.3
* |
*-solaris2.3
* )
2949 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2951 *-sunos5.4
* |
*-solaris2.4
* )
2953 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2956 *-sunos5.5
* |
*-solaris2.5
* )
2958 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2961 *-sunos5.6
* |
*-solaris2.6
* )
2963 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2966 *-sunos5* |
*-solaris* )
2968 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2972 ## Watch out for a compiler that we know will not work.
2973 case "${canonical}" in
2974 *-solaris* |
*-sunos5* )
2975 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2976 ## /usr/ucb/cc doesn't work;
2977 ## we should find some other compiler that does work.
2985 machine
=sparc opsys
=nextstep
2989 m68
*-tadpole-sysv* )
2990 machine
=tad68k opsys
=usg5-3
2994 tahoe-tahoe-bsd4.2
* )
2995 machine
=tahoe opsys
=bsd4-2
2997 tahoe-tahoe-bsd4.3
* )
2998 machine
=tahoe opsys
=bsd4-3
3001 ## Tandem Integrity S2
3003 machine
=tandem-s2 opsys
=usg5-3
3007 m88k-tektronix-sysv3
* )
3008 machine
=tekxd88 opsys
=usg5-3
3011 ## Tektronix 16000 box (6130?)
3012 ns16k-tektronix-bsd
* )
3013 machine
=ns16000 opsys
=bsd4-2
3016 ## src/m/tek4300.h hints that this is a m68k machine.
3017 m68
*-tektronix-bsd* )
3018 machine
=tek4300 opsys
=bsd4-3
3022 ## We seem to have lost the machine-description file titan.h!
3024 machine
=titan opsys
=usg5-3
3027 ## Ustation E30 (SS5E)
3028 m68
*-unisys-uniplus* )
3029 machine
=ustation opsystem
=unipl5-2
3035 case "${canonical}" in
3036 *-bsd4.1
* ) opsys
=bsd4-1
;;
3037 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3038 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3039 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3040 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3041 *-vms* ) opsys
=vms
;;
3047 ns16k-whitechapel-
* )
3049 ## We don't know what sort of OS runs on these; we'll let the
3050 ## operating system guessing code below try.
3055 machine
=wicat opsys
=usg5-2
3060 machine
=ia64 opsys
=gnu-linux
3063 ## Intel 386 machines where we don't care about the manufacturer
3066 case "${canonical}" in
3067 *-cygwin ) opsys
=cygwin
;;
3068 *-darwin* ) opsys
=darwin
3069 CPP
="${CC-cc} -E -no-cpp-precomp"
3071 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3072 *-isc2.2
* ) opsys
=isc2-2
;;
3073 *-isc4.0
* ) opsys
=isc4-0
;;
3074 *-isc4.
* ) opsys
=isc4-1
3075 GCC_TEST_OPTIONS
=-posix
3076 NON_GCC_TEST_OPTIONS
=-Xp
3078 *-isc* ) opsys
=isc3-0
;;
3079 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3080 *-esix* ) opsys
=esix
;;
3081 *-xenix* ) opsys
=xenix
;;
3082 *-linux-gnu* ) opsys
=gnu-linux
;;
3083 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3084 *-sco3.2v5
* ) opsys
=sco5
3085 NON_GNU_CPP
=/lib
/cpp
3086 # Prevent -belf from being passed to $CPP.
3087 # /lib/cpp does not accept it.
3088 OVERRIDE_CPPFLAGS
=" "
3090 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3091 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3092 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3093 *-386bsd* ) opsys
=386bsd
;;
3094 *-nextstep* ) opsys
=nextstep
;;
3095 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3099 ## m68k Linux-based GNU system
3101 machine
=m68k opsys
=gnu-linux
3104 ## Mips Linux-based GNU system
3105 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3106 machine
=mips opsys
=gnu-linux
3110 sparc-fujitsu-sysv4
* )
3111 machine
=sparc opsys
=uxpds
3112 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3117 f301-fujitsu-uxpv4.1
)
3118 machine
=f301 opsys
=uxpv
3121 ## Darwin / Mac OS X
3122 powerpc-apple-darwin
* )
3123 machine
=powermac opsys
=darwin
3124 # Define CPP as follows to make autoconf work correctly.
3125 CPP
="${CC-cc} -E -no-cpp-precomp"
3126 # Use fink packages if available.
3127 if test -d /sw
/include
&& test -d /sw
/lib
; then
3128 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
3129 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
3130 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
3134 ## AMD x86-64 Linux-based GNU system
3135 x86_64-
*-linux-gnu* )
3136 machine
=amdx86-64 opsys
=gnu-linux
3144 ### If the code above didn't choose an operating system, just choose
3145 ### an operating system based on the configuration name. You really
3146 ### only want to use this when you have no idea what the right
3147 ### operating system is; if you know what operating systems a machine
3148 ### runs, it's cleaner to make it explicit in the case statement
3150 if test x
"${opsys}" = x
; then
3151 case "${canonical}" in
3152 *-gnu* ) opsys
=gnu
;;
3153 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3154 *-bsd4.2
) opsys
=bsd4-2
;;
3155 *-bsd4.3
) opsys
=bsd4-3
;;
3156 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3157 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3158 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3159 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3160 *-sysv4.2uw
* ) opsys
=unixware
;;
3161 *-sysv5uw* ) opsys
=unixware
;;
3162 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3163 *-sysv4.1
* |
*-sysvr4.1
* )
3164 NON_GNU_CPP
=/usr
/lib
/cpp
3166 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3167 if [ x
$NON_GNU_CPP = x
]; then
3168 if [ -f /usr
/ccs
/lib
/cpp
]; then
3169 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3171 NON_GNU_CPP
=/lib
/cpp
3175 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3184 if test $unported = yes; then
3185 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3186 Check \`etc/MACHINES' for recognized configuration names." >&5
3187 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3188 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3189 { (exit 1); exit 1; }; }
3192 machfile
="m/${machine}.h"
3193 opsysfile
="s/${opsys}.h"
3196 #### Choose a compiler.
3197 test -n "$CC" && cc_specified
=yes
3199 # Save the value of CFLAGS that the user specified.
3200 SPECIFIED_CFLAGS
="$CFLAGS"
3203 "yes" ) CC
="gcc" GCC
=yes ;;
3204 "no" ) : ${CC=cc} ;;
3208 ac_cpp
='$CPP $CPPFLAGS'
3209 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3210 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3211 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3212 if test -n "$ac_tool_prefix"; then
3213 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3214 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3215 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3216 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3217 if test "${ac_cv_prog_CC+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3220 if test -n "$CC"; then
3221 ac_cv_prog_CC
="$CC" # Let the user override the test.
3223 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3227 test -z "$as_dir" && as_dir
=.
3228 for ac_exec_ext
in '' $ac_executable_extensions; do
3229 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3230 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3231 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 if test -n "$CC"; then
3242 { echo "$as_me:$LINENO: result: $CC" >&5
3243 echo "${ECHO_T}$CC" >&6; }
3245 { echo "$as_me:$LINENO: result: no" >&5
3246 echo "${ECHO_T}no" >&6; }
3251 if test -z "$ac_cv_prog_CC"; then
3253 # Extract the first word of "gcc", so it can be a program name with args.
3254 set dummy gcc
; ac_word
=$2
3255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3257 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3260 if test -n "$ac_ct_CC"; then
3261 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3263 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3267 test -z "$as_dir" && as_dir
=.
3268 for ac_exec_ext
in '' $ac_executable_extensions; do
3269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3270 ac_cv_prog_ac_ct_CC
="gcc"
3271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3280 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3281 if test -n "$ac_ct_CC"; then
3282 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3283 echo "${ECHO_T}$ac_ct_CC" >&6; }
3285 { echo "$as_me:$LINENO: result: no" >&5
3286 echo "${ECHO_T}no" >&6; }
3289 if test "x$ac_ct_CC" = x
; then
3292 case $cross_compiling:$ac_tool_warned in
3294 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3295 whose name does not start with the host triplet. If you think this
3296 configuration is useful to you, please write to autoconf@gnu.org." >&5
3297 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3298 whose name does not start with the host triplet. If you think this
3299 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3300 ac_tool_warned
=yes ;;
3308 if test -z "$CC"; then
3309 if test -n "$ac_tool_prefix"; then
3310 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3311 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3312 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3313 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3314 if test "${ac_cv_prog_CC+set}" = set; then
3315 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 if test -n "$CC"; then
3318 ac_cv_prog_CC
="$CC" # Let the user override the test.
3320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3324 test -z "$as_dir" && as_dir
=.
3325 for ac_exec_ext
in '' $ac_executable_extensions; do
3326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3327 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 if test -n "$CC"; then
3339 { echo "$as_me:$LINENO: result: $CC" >&5
3340 echo "${ECHO_T}$CC" >&6; }
3342 { echo "$as_me:$LINENO: result: no" >&5
3343 echo "${ECHO_T}no" >&6; }
3349 if test -z "$CC"; then
3350 # Extract the first word of "cc", so it can be a program name with args.
3351 set dummy cc
; ac_word
=$2
3352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3354 if test "${ac_cv_prog_CC+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC
="$CC" # Let the user override the test.
3361 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3365 test -z "$as_dir" && as_dir
=.
3366 for ac_exec_ext
in '' $ac_executable_extensions; do
3367 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3368 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3369 ac_prog_rejected
=yes
3373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 if test $ac_prog_rejected = yes; then
3381 # We found a bogon in the path, so make sure we never use it.
3382 set dummy
$ac_cv_prog_CC
3384 if test $# != 0; then
3385 # We chose a different compiler from the bogus one.
3386 # However, it has the same basename, so the bogon will be chosen
3387 # first if we set CC to just the basename; use the full file name.
3389 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3395 if test -n "$CC"; then
3396 { echo "$as_me:$LINENO: result: $CC" >&5
3397 echo "${ECHO_T}$CC" >&6; }
3399 { echo "$as_me:$LINENO: result: no" >&5
3400 echo "${ECHO_T}no" >&6; }
3405 if test -z "$CC"; then
3406 if test -n "$ac_tool_prefix"; then
3407 for ac_prog
in cl.exe
3409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3410 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3411 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3413 if test "${ac_cv_prog_CC+set}" = set; then
3414 echo $ECHO_N "(cached) $ECHO_C" >&6
3416 if test -n "$CC"; then
3417 ac_cv_prog_CC
="$CC" # Let the user override the test.
3419 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3423 test -z "$as_dir" && as_dir
=.
3424 for ac_exec_ext
in '' $ac_executable_extensions; do
3425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3437 if test -n "$CC"; then
3438 { echo "$as_me:$LINENO: result: $CC" >&5
3439 echo "${ECHO_T}$CC" >&6; }
3441 { echo "$as_me:$LINENO: result: no" >&5
3442 echo "${ECHO_T}no" >&6; }
3446 test -n "$CC" && break
3449 if test -z "$CC"; then
3451 for ac_prog
in cl.exe
3453 # Extract the first word of "$ac_prog", so it can be a program name with args.
3454 set dummy
$ac_prog; ac_word
=$2
3455 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3457 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3458 echo $ECHO_N "(cached) $ECHO_C" >&6
3460 if test -n "$ac_ct_CC"; then
3461 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3463 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3467 test -z "$as_dir" && as_dir
=.
3468 for ac_exec_ext
in '' $ac_executable_extensions; do
3469 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3470 ac_cv_prog_ac_ct_CC
="$ac_prog"
3471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3480 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3481 if test -n "$ac_ct_CC"; then
3482 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3483 echo "${ECHO_T}$ac_ct_CC" >&6; }
3485 { echo "$as_me:$LINENO: result: no" >&5
3486 echo "${ECHO_T}no" >&6; }
3490 test -n "$ac_ct_CC" && break
3493 if test "x$ac_ct_CC" = x
; then
3496 case $cross_compiling:$ac_tool_warned in
3498 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3499 whose name does not start with the host triplet. If you think this
3500 configuration is useful to you, please write to autoconf@gnu.org." >&5
3501 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3502 whose name does not start with the host triplet. If you think this
3503 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3504 ac_tool_warned
=yes ;;
3513 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3514 See \`config.log' for more details." >&5
3515 echo "$as_me: error: no acceptable C compiler found in \$PATH
3516 See \`config.log' for more details." >&2;}
3517 { (exit 1); exit 1; }; }
3519 # Provide some information about the compiler.
3520 echo "$as_me:$LINENO: checking for C compiler version" >&5
3521 ac_compiler
=`set X $ac_compile; echo $2`
3522 { (ac_try
="$ac_compiler --version >&5"
3524 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3525 *) ac_try_echo=$ac_try;;
3527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3528 (eval "$ac_compiler --version >&5") 2>&5
3530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3531 (exit $ac_status); }
3532 { (ac_try="$ac_compiler -v >&5"
3534 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3535 *) ac_try_echo
=$ac_try;;
3537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3538 (eval "$ac_compiler -v >&5") 2>&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); }
3542 { (ac_try
="$ac_compiler -V >&5"
3544 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3545 *) ac_try_echo=$ac_try;;
3547 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3548 (eval "$ac_compiler -V >&5") 2>&5
3550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3551 (exit $ac_status); }
3553 cat >conftest.$ac_ext <<_ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3568 ac_clean_files_save=$ac_clean_files
3569 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3570 # Try to create an executable without -o first, disregard a.out.
3571 # It will help us diagnose broken compilers, and finding out an intuition
3573 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3574 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3575 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3577 # List of possible output files, starting from the most likely.
3578 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3579 # only as a last resort. b.out is created by i960 compilers.
3580 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3582 # The IRIX 6 linker writes into existing files which may not be
3583 # executable, retaining their permissions. Remove them first so a
3584 # subsequent execution test works.
3586 for ac_file in $ac_files
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3590 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3595 if { (ac_try="$ac_link_default"
3597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3598 *) ac_try_echo=$ac_try;;
3600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3601 (eval "$ac_link_default") 2>&5
3603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3604 (exit $ac_status); }; then
3605 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3606 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3607 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3608 # so that the user can short-circuit this test for compilers unknown to
3610 for ac_file
in $ac_files ''
3612 test -f "$ac_file" ||
continue
3614 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3617 # We found the default executable, but exeext='' is most
3621 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3623 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3625 # We set ac_cv_exeext here because the later test for it is not
3626 # safe: cross compilers may not add the suffix if given an `-o'
3627 # argument, so we may need to know it at that point already.
3628 # Even if this section looks crufty: it has the advantage of
3635 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3641 { echo "$as_me:$LINENO: result: $ac_file" >&5
3642 echo "${ECHO_T}$ac_file" >&6; }
3643 if test -z "$ac_file"; then
3644 echo "$as_me: failed program was:" >&5
3645 sed 's/^/| /' conftest.
$ac_ext >&5
3647 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3648 See \`config.log' for more details." >&5
3649 echo "$as_me: error: C compiler cannot create executables
3650 See \`config.log' for more details." >&2;}
3651 { (exit 77); exit 77; }; }
3654 ac_exeext
=$ac_cv_exeext
3656 # Check that the compiler produces executables we can run. If not, either
3657 # the compiler is broken, or we cross compile.
3658 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3659 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3660 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3661 # If not cross compiling, check that we can run a simple program.
3662 if test "$cross_compiling" != yes; then
3663 if { ac_try
='./$ac_file'
3664 { (case "(($ac_try" in
3665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3669 (eval "$ac_try") 2>&5
3671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3672 (exit $ac_status); }; }; then
3675 if test "$cross_compiling" = maybe; then
3678 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3679 If you meant to cross compile, use \`--host'.
3680 See \`config.log' for more details.
" >&5
3681 echo "$as_me: error
: cannot run C compiled programs.
3682 If you meant to cross compile
, use \
`--host'.
3683 See \`config.log
' for more details." >&2;}
3684 { (exit 1); exit 1; }; }
3688 { echo "$as_me:$LINENO: result: yes" >&5
3689 echo "${ECHO_T}yes" >&6; }
3691 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3692 ac_clean_files=$ac_clean_files_save
3693 # Check that the compiler produces executables we can run. If not, either
3694 # the compiler is broken, or we cross compile.
3695 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3696 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3697 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3698 echo "${ECHO_T}$cross_compiling" >&6; }
3700 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3701 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3702 if { (ac_try="$ac_link"
3704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3705 *) ac_try_echo=$ac_try;;
3707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3708 (eval "$ac_link") 2>&5
3710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3711 (exit $ac_status); }; then
3712 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3713 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3714 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3716 for ac_file
in conftest.exe conftest conftest.
*; do
3717 test -f "$ac_file" ||
continue
3719 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3720 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3726 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3727 See \`config.log' for more details." >&5
3728 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3729 See \`config.log' for more details." >&2;}
3730 { (exit 1); exit 1; }; }
3733 rm -f conftest
$ac_cv_exeext
3734 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3735 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3737 rm -f conftest.
$ac_ext
3738 EXEEXT
=$ac_cv_exeext
3740 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3741 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3742 if test "${ac_cv_objext+set}" = set; then
3743 echo $ECHO_N "(cached) $ECHO_C" >&6
3745 cat >conftest.
$ac_ext <<_ACEOF
3748 cat confdefs.h
>>conftest.
$ac_ext
3749 cat >>conftest.
$ac_ext <<_ACEOF
3750 /* end confdefs.h. */
3760 rm -f conftest.o conftest.obj
3761 if { (ac_try
="$ac_compile"
3763 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3764 *) ac_try_echo=$ac_try;;
3766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3767 (eval "$ac_compile") 2>&5
3769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3770 (exit $ac_status); }; then
3771 for ac_file in conftest.o conftest.obj conftest.*; do
3772 test -f "$ac_file" || continue;
3774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3775 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3780 echo "$as_me: failed program was:" >&5
3781 sed 's/^/| /' conftest.$ac_ext >&5
3783 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3784 See \`config.log
' for more details." >&5
3785 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3786 See \`config.log' for more details.
" >&2;}
3787 { (exit 1); exit 1; }; }
3790 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3792 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3793 echo "${ECHO_T}$ac_cv_objext" >&6; }
3794 OBJEXT=$ac_cv_objext
3796 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3797 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3798 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3799 echo $ECHO_N "(cached
) $ECHO_C" >&6
3801 cat >conftest.$ac_ext <<_ACEOF
3804 cat confdefs.h >>conftest.$ac_ext
3805 cat >>conftest.$ac_ext <<_ACEOF
3806 /* end confdefs.h. */
3819 rm -f conftest.$ac_objext
3820 if { (ac_try="$ac_compile"
3822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3823 *) ac_try_echo=$ac_try;;
3825 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3826 (eval "$ac_compile") 2>conftest.er1
3828 grep -v '^ *+' conftest.er1 >conftest.err
3830 cat conftest.err >&5
3831 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3832 (exit $ac_status); } && {
3833 test -z "$ac_c_werror_flag" ||
3834 test ! -s conftest.err
3835 } && test -s conftest.$ac_objext; then
3838 echo "$as_me: failed program was
:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3845 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3848 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3849 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3850 GCC=`test $ac_compiler_gnu = yes && echo yes`
3851 ac_test_CFLAGS=${CFLAGS+set}
3852 ac_save_CFLAGS=$CFLAGS
3853 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3854 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3855 if test "${ac_cv_prog_cc_g+set}" = set; then
3856 echo $ECHO_N "(cached
) $ECHO_C" >&6
3858 ac_save_c_werror_flag=$ac_c_werror_flag
3859 ac_c_werror_flag=yes
3862 cat >conftest.$ac_ext <<_ACEOF
3865 cat confdefs.h >>conftest.$ac_ext
3866 cat >>conftest.$ac_ext <<_ACEOF
3867 /* end confdefs.h. */
3877 rm -f conftest.$ac_objext
3878 if { (ac_try="$ac_compile"
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3883 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3886 grep -v '^ *+' conftest.er1 >conftest.err
3888 cat conftest.err >&5
3889 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3890 (exit $ac_status); } && {
3891 test -z "$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 } && test -s conftest.$ac_objext; then
3896 echo "$as_me: failed program was
:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3900 cat >conftest.$ac_ext <<_ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3915 rm -f conftest.$ac_objext
3916 if { (ac_try="$ac_compile"
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3921 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3922 (eval "$ac_compile") 2>conftest.er1
3924 grep -v '^ *+' conftest.er1 >conftest.err
3926 cat conftest.err >&5
3927 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3928 (exit $ac_status); } && {
3929 test -z "$ac_c_werror_flag" ||
3930 test ! -s conftest.err
3931 } && test -s conftest.$ac_objext; then
3934 echo "$as_me: failed program was
:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3937 ac_c_werror_flag=$ac_save_c_werror_flag
3939 cat >conftest.$ac_ext <<_ACEOF
3942 cat confdefs.h >>conftest.$ac_ext
3943 cat >>conftest.$ac_ext <<_ACEOF
3944 /* end confdefs.h. */
3954 rm -f conftest.$ac_objext
3955 if { (ac_try="$ac_compile"
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3960 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_compile") 2>conftest.er1
3963 grep -v '^ *+' conftest.er1 >conftest.err
3965 cat conftest.err >&5
3966 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3967 (exit $ac_status); } && {
3968 test -z "$ac_c_werror_flag" ||
3969 test ! -s conftest.err
3970 } && test -s conftest.$ac_objext; then
3973 echo "$as_me: failed program was
:" >&5
3974 sed 's/^/| /' conftest.$ac_ext >&5
3979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3986 ac_c_werror_flag=$ac_save_c_werror_flag
3988 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3989 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3990 if test "$ac_test_CFLAGS" = set; then
3991 CFLAGS=$ac_save_CFLAGS
3992 elif test $ac_cv_prog_cc_g = yes; then
3993 if test "$GCC" = yes; then
3999 if test "$GCC" = yes; then
4005 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4006 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4007 if test "${ac_cv_prog_cc_c89+set}" = set; then
4008 echo $ECHO_N "(cached
) $ECHO_C" >&6
4010 ac_cv_prog_cc_c89=no
4012 cat >conftest.$ac_ext <<_ACEOF
4015 cat confdefs.h >>conftest.$ac_ext
4016 cat >>conftest.$ac_ext <<_ACEOF
4017 /* end confdefs.h. */
4020 #include <sys/types.h>
4021 #include <sys/stat.h>
4022 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4023 struct buf { int x; };
4024 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4025 static char *e (p, i)
4031 static char *f (char * (*g) (char **, int), char **p, ...)
4036 s = g (p, va_arg (v,int));
4041 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4042 function prototypes and stuff, but not '\xHH' hex character constants.
4043 These don't provoke an error unfortunately, instead are silently treated
4044 as 'x'. The following induces an error, until -std is added to get
4045 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4046 array size at least. It's necessary to write '\x00'==0 to get something
4047 that's true only with -std. */
4048 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4050 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4051 inside strings and character constants. */
4053 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4055 int test (int i, double x);
4056 struct s1 {int (*f) (int a);};
4057 struct s2 {int (*f) (double a);};
4058 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4064 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4069 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4070 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4072 CC="$ac_save_CC $ac_arg"
4073 rm -f conftest.$ac_objext
4074 if { (ac_try="$ac_compile"
4076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4077 *) ac_try_echo=$ac_try;;
4079 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4080 (eval "$ac_compile") 2>conftest.er1
4082 grep -v '^ *+' conftest.er1 >conftest.err
4084 cat conftest.err >&5
4085 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4086 (exit $ac_status); } && {
4087 test -z "$ac_c_werror_flag" ||
4088 test ! -s conftest.err
4089 } && test -s conftest.$ac_objext; then
4090 ac_cv_prog_cc_c89=$ac_arg
4092 echo "$as_me: failed program was
:" >&5
4093 sed 's/^/| /' conftest.$ac_ext >&5
4098 rm -f core conftest.err conftest.$ac_objext
4099 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4101 rm -f conftest.$ac_ext
4106 case "x
$ac_cv_prog_cc_c89" in
4108 { echo "$as_me:$LINENO: result
: none needed
" >&5
4109 echo "${ECHO_T}none needed
" >&6; } ;;
4111 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4112 echo "${ECHO_T}unsupported
" >&6; } ;;
4114 CC="$CC $ac_cv_prog_cc_c89"
4115 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4116 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4121 ac_cpp='$CPP $CPPFLAGS'
4122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4127 # On Suns, sometimes $CPP names a directory.
4128 if test -n "$CPP" && test -d "$CPP"; then
4132 #### Some systems specify a CPP to use unless we are using GCC.
4133 #### Now that we know whether we are using GCC, we can decide whether
4134 #### to use that one.
4135 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4140 #### Some systems specify a CC to use unless we are using GCC.
4141 #### Now that we know whether we are using GCC, we can decide whether
4142 #### to use that one.
4143 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4144 test x$cc_specified != xyes
4149 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4151 CC="$CC $GCC_TEST_OPTIONS"
4154 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4156 CC="$CC $NON_GCC_TEST_OPTIONS"
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4166 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4167 # On Suns, sometimes $CPP names a directory.
4168 if test -n "$CPP" && test -d "$CPP"; then
4171 if test -z "$CPP"; then
4172 if test "${ac_cv_prog_CPP+set}" = set; then
4173 echo $ECHO_N "(cached
) $ECHO_C" >&6
4175 # Double quotes because CPP needs to be expanded
4176 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4179 for ac_c_preproc_warn_flag in '' yes
4181 # Use a header file that comes with gcc, so configuring glibc
4182 # with a fresh cross-compiler works.
4183 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4184 # <limits.h> exists even on freestanding compilers.
4185 # On the NeXT, cc -E runs the code through the compiler's parser,
4186 # not just through cpp. "Syntax error
" is here to catch this case.
4187 cat >conftest.$ac_ext <<_ACEOF
4190 cat confdefs.h >>conftest.$ac_ext
4191 cat >>conftest.$ac_ext <<_ACEOF
4192 /* end confdefs.h. */
4194 # include <limits.h>
4196 # include <assert.h>
4200 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4203 *) ac_try_echo=$ac_try;;
4205 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4206 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4208 grep -v '^ *+' conftest.er1 >conftest.err
4210 cat conftest.err >&5
4211 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4212 (exit $ac_status); } >/dev/null && {
4213 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4214 test ! -s conftest.err
4218 echo "$as_me: failed program was
:" >&5
4219 sed 's/^/| /' conftest.$ac_ext >&5
4221 # Broken: fails on valid input.
4225 rm -f conftest.err conftest.$ac_ext
4227 # OK, works on sane cases. Now check whether nonexistent headers
4228 # can be detected and how.
4229 cat >conftest.$ac_ext <<_ACEOF
4232 cat confdefs.h >>conftest.$ac_ext
4233 cat >>conftest.$ac_ext <<_ACEOF
4234 /* end confdefs.h. */
4235 #include <ac_nonexistent.h>
4237 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4245 grep -v '^ *+' conftest.er1 >conftest.err
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4249 (exit $ac_status); } >/dev/null && {
4250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4251 test ! -s conftest.err
4253 # Broken: success on invalid input.
4256 echo "$as_me: failed program was
:" >&5
4257 sed 's/^/| /' conftest.$ac_ext >&5
4259 # Passes both tests.
4264 rm -f conftest.err conftest.$ac_ext
4267 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4268 rm -f conftest.err conftest.$ac_ext
4269 if $ac_preproc_ok; then
4281 { echo "$as_me:$LINENO: result
: $CPP" >&5
4282 echo "${ECHO_T}$CPP" >&6; }
4284 for ac_c_preproc_warn_flag in '' yes
4286 # Use a header file that comes with gcc, so configuring glibc
4287 # with a fresh cross-compiler works.
4288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4289 # <limits.h> exists even on freestanding compilers.
4290 # On the NeXT, cc -E runs the code through the compiler's parser,
4291 # not just through cpp. "Syntax error
" is here to catch this case.
4292 cat >conftest.$ac_ext <<_ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4299 # include <limits.h>
4301 # include <assert.h>
4305 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4310 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4313 grep -v '^ *+' conftest.er1 >conftest.err
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4317 (exit $ac_status); } >/dev/null && {
4318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4319 test ! -s conftest.err
4323 echo "$as_me: failed program was
:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4326 # Broken: fails on valid input.
4330 rm -f conftest.err conftest.$ac_ext
4332 # OK, works on sane cases. Now check whether nonexistent headers
4333 # can be detected and how.
4334 cat >conftest.$ac_ext <<_ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 #include <ac_nonexistent.h>
4342 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4347 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4350 grep -v '^ *+' conftest.er1 >conftest.err
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4354 (exit $ac_status); } >/dev/null && {
4355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4358 # Broken: success on invalid input.
4361 echo "$as_me: failed program was
:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4364 # Passes both tests.
4369 rm -f conftest.err conftest.$ac_ext
4372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4373 rm -f conftest.err conftest.$ac_ext
4374 if $ac_preproc_ok; then
4377 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4378 See \
`config.log' for more details." >&5
4379 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4380 See \`config.log
' for more details." >&2;}
4381 { (exit 1); exit 1; }; }
4385 ac_cpp='$CPP $CPPFLAGS'
4386 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4387 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4388 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4391 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4392 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4393 if test "${ac_cv_path_GREP+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 # Extract the first word of "grep ggrep" to use in msg output
4397 if test -z "$GREP"; then
4398 set dummy grep ggrep; ac_prog_name=$2
4399 if test "${ac_cv_path_GREP+set}" = set; then
4400 echo $ECHO_N "(cached) $ECHO_C" >&6
4402 ac_path_GREP_found=false
4403 # Loop through the user's path and
test for each of PROGNAME-LIST
4404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4405 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4408 test -z "$as_dir" && as_dir
=.
4409 for ac_prog
in grep ggrep
; do
4410 for ac_exec_ext
in '' $ac_executable_extensions; do
4411 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4412 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4413 # Check for GNU ac_path_GREP and select it if it is found.
4414 # Check for GNU $ac_path_GREP
4415 case `"$ac_path_GREP" --version 2>&1` in
4417 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4420 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4423 cat "conftest.in" "conftest.in" >"conftest.tmp"
4424 mv "conftest.tmp" "conftest.in"
4425 cp "conftest.in" "conftest.nl"
4426 echo 'GREP' >> "conftest.nl"
4427 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4428 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4429 ac_count
=`expr $ac_count + 1`
4430 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4431 # Best one so far, save it but keep looking for a better one
4432 ac_cv_path_GREP
="$ac_path_GREP"
4433 ac_path_GREP_max
=$ac_count
4435 # 10*(2^10) chars as input seems more than enough
4436 test $ac_count -gt 10 && break
4438 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4442 $ac_path_GREP_found && break 3
4452 GREP
="$ac_cv_path_GREP"
4453 if test -z "$GREP"; then
4454 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4455 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4456 { (exit 1); exit 1; }; }
4460 ac_cv_path_GREP
=$GREP
4465 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4466 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4467 GREP
="$ac_cv_path_GREP"
4470 { echo "$as_me:$LINENO: checking for egrep" >&5
4471 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4472 if test "${ac_cv_path_EGREP+set}" = set; then
4473 echo $ECHO_N "(cached) $ECHO_C" >&6
4475 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4476 then ac_cv_path_EGREP
="$GREP -E"
4478 # Extract the first word of "egrep" to use in msg output
4479 if test -z "$EGREP"; then
4480 set dummy
egrep; ac_prog_name
=$2
4481 if test "${ac_cv_path_EGREP+set}" = set; then
4482 echo $ECHO_N "(cached) $ECHO_C" >&6
4484 ac_path_EGREP_found
=false
4485 # Loop through the user's path and test for each of PROGNAME-LIST
4486 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4487 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4490 test -z "$as_dir" && as_dir
=.
4491 for ac_prog
in egrep; do
4492 for ac_exec_ext
in '' $ac_executable_extensions; do
4493 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4494 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4495 # Check for GNU ac_path_EGREP and select it if it is found.
4496 # Check for GNU $ac_path_EGREP
4497 case `"$ac_path_EGREP" --version 2>&1` in
4499 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4502 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4505 cat "conftest.in" "conftest.in" >"conftest.tmp"
4506 mv "conftest.tmp" "conftest.in"
4507 cp "conftest.in" "conftest.nl"
4508 echo 'EGREP' >> "conftest.nl"
4509 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4510 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4511 ac_count
=`expr $ac_count + 1`
4512 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4513 # Best one so far, save it but keep looking for a better one
4514 ac_cv_path_EGREP
="$ac_path_EGREP"
4515 ac_path_EGREP_max
=$ac_count
4517 # 10*(2^10) chars as input seems more than enough
4518 test $ac_count -gt 10 && break
4520 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4524 $ac_path_EGREP_found && break 3
4534 EGREP
="$ac_cv_path_EGREP"
4535 if test -z "$EGREP"; then
4536 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4537 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4538 { (exit 1); exit 1; }; }
4542 ac_cv_path_EGREP
=$EGREP
4548 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4549 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4550 EGREP
="$ac_cv_path_EGREP"
4554 { echo "$as_me:$LINENO: checking for AIX" >&5
4555 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4556 cat >conftest.
$ac_ext <<_ACEOF
4559 cat confdefs.h
>>conftest.
$ac_ext
4560 cat >>conftest.
$ac_ext <<_ACEOF
4561 /* end confdefs.h. */
4567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4568 $EGREP "yes" >/dev
/null
2>&1; then
4569 { echo "$as_me:$LINENO: result: yes" >&5
4570 echo "${ECHO_T}yes" >&6; }
4571 cat >>confdefs.h
<<\_ACEOF
4572 #define _ALL_SOURCE 1
4576 { echo "$as_me:$LINENO: result: no" >&5
4577 echo "${ECHO_T}no" >&6; }
4583 cat >>confdefs.h
<<\_ACEOF
4584 #define _GNU_SOURCE 1
4589 ### Use -Wno-pointer-sign if the compiler supports it
4590 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4591 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4592 SAVE_CFLAGS
="$CFLAGS"
4593 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4594 cat >conftest.
$ac_ext <<_ACEOF
4597 cat confdefs.h
>>conftest.
$ac_ext
4598 cat >>conftest.
$ac_ext <<_ACEOF
4599 /* end confdefs.h. */
4609 rm -f conftest.
$ac_objext
4610 if { (ac_try
="$ac_compile"
4612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4613 *) ac_try_echo=$ac_try;;
4615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4616 (eval "$ac_compile") 2>conftest.er1
4618 grep -v '^ *+' conftest.er1 >conftest.err
4620 cat conftest.err >&5
4621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4622 (exit $ac_status); } && {
4623 test -z "$ac_c_werror_flag" ||
4624 test ! -s conftest.err
4625 } && test -s conftest.$ac_objext; then
4628 echo "$as_me: failed program was:" >&5
4629 sed 's/^/| /' conftest.$ac_ext >&5
4634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4635 if test $has_option = yes; then
4636 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4638 { echo "$as_me:$LINENO: result: $has_option" >&5
4639 echo "${ECHO_T}$has_option" >&6; }
4640 CFLAGS="$SAVE_CFLAGS"
4644 #### Some other nice autoconf tests.
4646 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4647 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4649 if test "$LN_S" = "ln -s"; then
4650 { echo "$as_me:$LINENO: result: yes" >&5
4651 echo "${ECHO_T}yes" >&6; }
4653 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4654 echo "${ECHO_T}no, using $LN_S" >&6; }
4658 ac_cpp='$CPP $CPPFLAGS'
4659 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4660 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4661 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4662 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4663 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4664 # On Suns, sometimes $CPP names a directory.
4665 if test -n "$CPP" && test -d "$CPP"; then
4668 if test -z "$CPP"; then
4669 if test "${ac_cv_prog_CPP+set}" = set; then
4670 echo $ECHO_N "(cached) $ECHO_C" >&6
4672 # Double quotes because CPP needs to be expanded
4673 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4676 for ac_c_preproc_warn_flag in '' yes
4678 # Use a header file that comes with gcc, so configuring glibc
4679 # with a fresh cross-compiler works.
4680 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4681 # <limits.h> exists even on freestanding compilers.
4682 # On the NeXT, cc -E runs the code through the compiler's parser,
4683 # not just through cpp. "Syntax error" is here to catch this case.
4684 cat >conftest.$ac_ext <<_ACEOF
4687 cat confdefs.h >>conftest.$ac_ext
4688 cat >>conftest.$ac_ext <<_ACEOF
4689 /* end confdefs.h. */
4691 # include <limits.h>
4693 # include <assert.h>
4697 if { (ac_try="$ac_cpp conftest.$ac_ext"
4699 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4700 *) ac_try_echo
=$ac_try;;
4702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4705 grep -v '^ *+' conftest.er1
>conftest.err
4707 cat conftest.err
>&5
4708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4709 (exit $ac_status); } >/dev
/null
&& {
4710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4711 test ! -s conftest.err
4715 echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.
$ac_ext >&5
4718 # Broken: fails on valid input.
4722 rm -f conftest.err conftest.
$ac_ext
4724 # OK, works on sane cases. Now check whether nonexistent headers
4725 # can be detected and how.
4726 cat >conftest.
$ac_ext <<_ACEOF
4729 cat confdefs.h
>>conftest.
$ac_ext
4730 cat >>conftest.
$ac_ext <<_ACEOF
4731 /* end confdefs.h. */
4732 #include <ac_nonexistent.h>
4734 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4736 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4742 grep -v '^ *+' conftest.er1 >conftest.err
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } >/dev/null && {
4747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4748 test ! -s conftest.err
4750 # Broken: success on invalid input.
4753 echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4756 # Passes both tests.
4761 rm -f conftest.err conftest.$ac_ext
4764 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4765 rm -f conftest.err conftest.
$ac_ext
4766 if $ac_preproc_ok; then
4778 { echo "$as_me:$LINENO: result: $CPP" >&5
4779 echo "${ECHO_T}$CPP" >&6; }
4781 for ac_c_preproc_warn_flag
in '' yes
4783 # Use a header file that comes with gcc, so configuring glibc
4784 # with a fresh cross-compiler works.
4785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4786 # <limits.h> exists even on freestanding compilers.
4787 # On the NeXT, cc -E runs the code through the compiler's parser,
4788 # not just through cpp. "Syntax error" is here to catch this case.
4789 cat >conftest.
$ac_ext <<_ACEOF
4792 cat confdefs.h
>>conftest.
$ac_ext
4793 cat >>conftest.
$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4796 # include <limits.h>
4798 # include <assert.h>
4802 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4804 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4810 grep -v '^ *+' conftest.er1 >conftest.err
4812 cat conftest.err >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } >/dev/null && {
4815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4816 test ! -s conftest.err
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4823 # Broken: fails on valid input.
4827 rm -f conftest.err conftest.$ac_ext
4829 # OK, works on sane cases. Now check whether nonexistent headers
4830 # can be detected and how.
4831 cat >conftest.$ac_ext <<_ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 #include <ac_nonexistent.h>
4839 if { (ac_try="$ac_cpp conftest.$ac_ext"
4841 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4842 *) ac_try_echo
=$ac_try;;
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4847 grep -v '^ *+' conftest.er1
>conftest.err
4849 cat conftest.err
>&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } >/dev
/null
&& {
4852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4855 # Broken: success on invalid input.
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.
$ac_ext >&5
4861 # Passes both tests.
4866 rm -f conftest.err conftest.
$ac_ext
4869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4870 rm -f conftest.err conftest.
$ac_ext
4871 if $ac_preproc_ok; then
4874 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4875 See \`config.log' for more details." >&5
4876 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4877 See \`config.log' for more details." >&2;}
4878 { (exit 1); exit 1; }; }
4882 ac_cpp
='$CPP $CPPFLAGS'
4883 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4884 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4885 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4887 # Find a good install program. We prefer a C program (faster),
4888 # so one script is as good as another. But avoid the broken or
4889 # incompatible versions:
4890 # SysV /etc/install, /usr/sbin/install
4891 # SunOS /usr/etc/install
4892 # IRIX /sbin/install
4894 # AmigaOS /C/install, which installs bootblocks on floppy discs
4895 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4896 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4897 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4898 # OS/2's system install, which has a completely different semantic
4899 # ./install, which can be erroneously created by make from ./install.sh.
4900 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4901 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4902 if test -z "$INSTALL"; then
4903 if test "${ac_cv_path_install+set}" = set; then
4904 echo $ECHO_N "(cached) $ECHO_C" >&6
4906 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4910 test -z "$as_dir" && as_dir
=.
4911 # Account for people who put trailing slashes in PATH elements.
4913 .
/ | .
// |
/cC
/* | \
4914 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4915 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4918 # OSF1 and SCO ODT 3.0 have their own names for install.
4919 # Don't use installbsd from OSF since it installs stuff as root
4921 for ac_prog
in ginstall scoinst
install; do
4922 for ac_exec_ext
in '' $ac_executable_extensions; do
4923 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4924 if test $ac_prog = install &&
4925 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4926 # AIX install. It has an incompatible calling convention.
4928 elif test $ac_prog = install &&
4929 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4930 # program-specific install script used by HP pwplus--don't use.
4933 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4946 if test "${ac_cv_path_install+set}" = set; then
4947 INSTALL
=$ac_cv_path_install
4949 # As a last resort, use the slow shell script. Don't cache a
4950 # value for INSTALL within a source directory, because that will
4951 # break other packages using the cache if that directory is
4952 # removed, or if the value is a relative name.
4953 INSTALL
=$ac_install_sh
4956 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4957 echo "${ECHO_T}$INSTALL" >&6; }
4959 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4960 # It thinks the first close brace ends the variable substitution.
4961 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4963 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4965 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4967 if test "x$RANLIB" = x
; then
4968 if test -n "$ac_tool_prefix"; then
4969 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4970 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4971 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4972 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4973 if test "${ac_cv_prog_RANLIB+set}" = set; then
4974 echo $ECHO_N "(cached) $ECHO_C" >&6
4976 if test -n "$RANLIB"; then
4977 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4979 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4983 test -z "$as_dir" && as_dir
=.
4984 for ac_exec_ext
in '' $ac_executable_extensions; do
4985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4986 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4987 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4996 RANLIB
=$ac_cv_prog_RANLIB
4997 if test -n "$RANLIB"; then
4998 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4999 echo "${ECHO_T}$RANLIB" >&6; }
5001 { echo "$as_me:$LINENO: result: no" >&5
5002 echo "${ECHO_T}no" >&6; }
5007 if test -z "$ac_cv_prog_RANLIB"; then
5008 ac_ct_RANLIB
=$RANLIB
5009 # Extract the first word of "ranlib", so it can be a program name with args.
5010 set dummy ranlib
; ac_word
=$2
5011 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5012 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5013 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5014 echo $ECHO_N "(cached) $ECHO_C" >&6
5016 if test -n "$ac_ct_RANLIB"; then
5017 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5019 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5023 test -z "$as_dir" && as_dir
=.
5024 for ac_exec_ext
in '' $ac_executable_extensions; do
5025 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5026 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5027 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5036 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5037 if test -n "$ac_ct_RANLIB"; then
5038 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5039 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5041 { echo "$as_me:$LINENO: result: no" >&5
5042 echo "${ECHO_T}no" >&6; }
5045 if test "x$ac_ct_RANLIB" = x
; then
5048 case $cross_compiling:$ac_tool_warned in
5050 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5051 whose name does not start with the host triplet. If you think this
5052 configuration is useful to you, please write to autoconf@gnu.org." >&5
5053 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5054 whose name does not start with the host triplet. If you think this
5055 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5056 ac_tool_warned
=yes ;;
5058 RANLIB
=$ac_ct_RANLIB
5061 RANLIB
="$ac_cv_prog_RANLIB"
5065 # Extract the first word of "install-info", so it can be a program name with args.
5066 set dummy install-info
; ac_word
=$2
5067 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5068 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5069 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5070 echo $ECHO_N "(cached) $ECHO_C" >&6
5072 case $INSTALL_INFO in
5074 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5077 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5081 test -z "$as_dir" && as_dir
=.
5082 for ac_exec_ext
in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5096 if test -n "$INSTALL_INFO"; then
5097 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5098 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5100 { echo "$as_me:$LINENO: result: no" >&5
5101 echo "${ECHO_T}no" >&6; }
5105 # Extract the first word of "install-info", so it can be a program name with args.
5106 set dummy install-info
; ac_word
=$2
5107 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5108 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5109 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5112 case $INSTALL_INFO in
5114 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5117 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5118 for as_dir
in /usr
/sbin
5121 test -z "$as_dir" && as_dir
=.
5122 for ac_exec_ext
in '' $ac_executable_extensions; do
5123 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5124 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5125 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5136 if test -n "$INSTALL_INFO"; then
5137 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5138 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5140 { echo "$as_me:$LINENO: result: no" >&5
5141 echo "${ECHO_T}no" >&6; }
5145 # Extract the first word of "install-info", so it can be a program name with args.
5146 set dummy install-info
; ac_word
=$2
5147 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5148 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5149 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 case $INSTALL_INFO in
5154 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5157 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5161 test -z "$as_dir" && as_dir
=.
5162 for ac_exec_ext
in '' $ac_executable_extensions; do
5163 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5164 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5165 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5176 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5177 if test -n "$INSTALL_INFO"; then
5178 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5179 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5181 { echo "$as_me:$LINENO: result: no" >&5
5182 echo "${ECHO_T}no" >&6; }
5186 # Extract the first word of "gzip", so it can be a program name with args.
5187 set dummy
gzip; ac_word
=$2
5188 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5189 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5190 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5191 echo $ECHO_N "(cached) $ECHO_C" >&6
5195 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5202 test -z "$as_dir" && as_dir
=.
5203 for ac_exec_ext
in '' $ac_executable_extensions; do
5204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5205 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5216 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5217 if test -n "$GZIP_PROG"; then
5218 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5219 echo "${ECHO_T}$GZIP_PROG" >&6; }
5221 { echo "$as_me:$LINENO: result: no" >&5
5222 echo "${ECHO_T}no" >&6; }
5228 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5230 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5233 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5235 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5239 late_LDFLAGS
=$LDFLAGS
5240 if test "$GCC" = yes; then
5241 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5243 LDFLAGS
="$LDFLAGS -znocombreloc"
5246 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5247 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5248 cat >conftest.
$ac_ext <<_ACEOF
5251 rm -f conftest.
$ac_objext conftest
$ac_exeext
5252 if { (ac_try
="$ac_link"
5254 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5255 *) ac_try_echo=$ac_try;;
5257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5258 (eval "$ac_link") 2>conftest.er1
5260 grep -v '^ *+' conftest.er1 >conftest.err
5262 cat conftest.err >&5
5263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5264 (exit $ac_status); } && {
5265 test -z "$ac_c_werror_flag" ||
5266 test ! -s conftest.err
5267 } && test -s conftest$ac_exeext &&
5268 $as_test_x conftest$ac_exeext; then
5269 { echo "$as_me:$LINENO: result: yes" >&5
5270 echo "${ECHO_T}yes" >&6; }
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5275 LDFLAGS=$late_LDFLAGS
5276 { echo "$as_me:$LINENO: result: no" >&5
5277 echo "${ECHO_T}no" >&6; }
5280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5281 conftest$ac_exeext conftest.$ac_ext
5283 #### Extract some information from the operating system and machine files.
5285 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5286 - which libraries the lib-src programs will want, and
5287 - whether the GNU malloc routines are usable..." >&5
5288 echo "$as_me: checking the machine- and system-dependent files to find out
5289 - which libraries the lib-src programs will want, and
5290 - whether the GNU malloc routines are usable..." >&6;}
5292 ### First figure out CFLAGS (which we use for running the compiler here)
5293 ### and REAL_CFLAGS (which we use for real compilation).
5294 ### The two are the same except on a few systems, where they are made
5295 ### different to work around various lossages. For example,
5296 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5297 ### as implying static linking.
5299 ### If the CFLAGS env var is specified, we use that value
5300 ### instead of the default.
5302 ### It's not important that this name contain the PID; you can't run
5303 ### two configures in the same directory and have anything work
5305 tempcname="conftest.c"
5308 #include "'${srcdir}'/src/'${opsysfile}'"
5309 #include "'${srcdir}'/src/'${machfile}'"
5310 #ifndef LIBS_MACHINE
5311 #define LIBS_MACHINE
5316 #ifndef C_SWITCH_SYSTEM
5317 #define C_SWITCH_SYSTEM
5319 #ifndef C_SWITCH_MACHINE
5320 #define C_SWITCH_MACHINE
5322 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5323 configure___ c_switch_system=C_SWITCH_SYSTEM
5324 configure___ c_switch_machine=C_SWITCH_MACHINE
5327 #define LIB_X11_LIB -lX11
5330 #ifndef LIBX11_MACHINE
5331 #define LIBX11_MACHINE
5334 #ifndef LIBX11_SYSTEM
5335 #define LIBX11_SYSTEM
5337 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5340 configure___ unexec=UNEXEC
5342 configure___ unexec=unexec.o
5345 #ifdef SYSTEM_MALLOC
5346 configure___ system_malloc=yes
5348 configure___ system_malloc=no
5351 #ifdef USE_MMAP_FOR_BUFFERS
5352 configure___ use_mmap_for_buffers=yes
5354 configure___ use_mmap_for_buffers=no
5357 #ifndef C_DEBUG_SWITCH
5358 #define C_DEBUG_SWITCH -g
5361 #ifndef C_OPTIMIZE_SWITCH
5363 #define C_OPTIMIZE_SWITCH -O2
5365 #define C_OPTIMIZE_SWITCH -O
5369 #ifndef C_WARNINGS_SWITCH
5370 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5373 #ifndef LD_SWITCH_MACHINE
5374 #define LD_SWITCH_MACHINE
5377 #ifndef LD_SWITCH_SYSTEM
5378 #define LD_SWITCH_SYSTEM
5381 #ifndef LD_SWITCH_X_SITE_AUX
5382 #define LD_SWITCH_X_SITE_AUX
5385 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5386 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5388 #ifdef THIS_IS_CONFIGURE
5390 /* Get the CFLAGS for tests in configure. */
5392 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5394 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5397 #else /* not THIS_IS_CONFIGURE */
5399 /* Get the CFLAGS for real compilation. */
5401 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5403 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5406 #endif /* not THIS_IS_CONFIGURE */
5409 # The value of CPP is a quoted variable reference, so we need to do this
5410 # to get its actual value...
5411 CPP=`eval "echo $CPP"`
5412 eval `${CPP} -Isrc ${tempcname} \
5413 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5414 if test "x$SPECIFIED_CFLAGS" = x; then
5415 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5416 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5418 REAL_CFLAGS="$CFLAGS"
5422 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5424 ### Make sure subsequent tests use flags consistent with the build flags.
5426 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5427 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5429 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5434 # Check whether --enable-largefile was given.
5435 if test "${enable_largefile+set}" = set; then
5436 enableval=$enable_largefile;
5439 if test "$enable_largefile" != no; then
5441 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5442 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5443 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5444 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 ac_cv_sys_largefile_CC=no
5447 if test "$GCC" != yes; then
5450 # IRIX 6.2 and later do not support large files by default,
5451 # so use the C compiler's -n32 option if that helps.
5452 cat >conftest.$ac_ext <<_ACEOF
5455 cat confdefs.h >>conftest.$ac_ext
5456 cat >>conftest.$ac_ext <<_ACEOF
5457 /* end confdefs.h. */
5458 #include <sys/types.h>
5459 /* Check that off_t can represent 2**63 - 1 correctly.
5460 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5461 since some C++ compilers masquerading as C compilers
5462 incorrectly reject 9223372036854775807. */
5463 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5464 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5465 && LARGE_OFF_T % 2147483647 == 1)
5475 rm -f conftest.$ac_objext
5476 if { (ac_try="$ac_compile"
5478 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5479 *) ac_try_echo
=$ac_try;;
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482 (eval "$ac_compile") 2>conftest.er1
5484 grep -v '^ *+' conftest.er1
>conftest.err
5486 cat conftest.err
>&5
5487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488 (exit $ac_status); } && {
5489 test -z "$ac_c_werror_flag" ||
5490 test ! -s conftest.err
5491 } && test -s conftest.
$ac_objext; then
5494 echo "$as_me: failed program was:" >&5
5495 sed 's/^/| /' conftest.
$ac_ext >&5
5500 rm -f core conftest.err conftest.
$ac_objext
5502 rm -f conftest.
$ac_objext
5503 if { (ac_try
="$ac_compile"
5505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5506 *) ac_try_echo=$ac_try;;
5508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5509 (eval "$ac_compile") 2>conftest.er1
5511 grep -v '^ *+' conftest.er1 >conftest.err
5513 cat conftest.err >&5
5514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5515 (exit $ac_status); } && {
5516 test -z "$ac_c_werror_flag" ||
5517 test ! -s conftest.err
5518 } && test -s conftest.$ac_objext; then
5519 ac_cv_sys_largefile_CC=' -n32'; break
5521 echo "$as_me: failed program was:" >&5
5522 sed 's/^/| /' conftest.$ac_ext >&5
5527 rm -f core conftest.err conftest.$ac_objext
5531 rm -f conftest.$ac_ext
5534 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5535 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5536 if test "$ac_cv_sys_largefile_CC" != no; then
5537 CC=$CC$ac_cv_sys_largefile_CC
5540 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5541 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5542 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5543 echo $ECHO_N "(cached) $ECHO_C" >&6
5546 cat >conftest.$ac_ext <<_ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552 #include <sys/types.h>
5553 /* Check that off_t can represent 2**63 - 1 correctly.
5554 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5555 since some C++ compilers masquerading as C compilers
5556 incorrectly reject 9223372036854775807. */
5557 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5558 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5559 && LARGE_OFF_T % 2147483647 == 1)
5569 rm -f conftest.$ac_objext
5570 if { (ac_try="$ac_compile"
5572 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5573 *) ac_try_echo
=$ac_try;;
5575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5576 (eval "$ac_compile") 2>conftest.er1
5578 grep -v '^ *+' conftest.er1
>conftest.err
5580 cat conftest.err
>&5
5581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5582 (exit $ac_status); } && {
5583 test -z "$ac_c_werror_flag" ||
5584 test ! -s conftest.err
5585 } && test -s conftest.
$ac_objext; then
5586 ac_cv_sys_file_offset_bits
=no
; break
5588 echo "$as_me: failed program was:" >&5
5589 sed 's/^/| /' conftest.
$ac_ext >&5
5594 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5595 cat >conftest.
$ac_ext <<_ACEOF
5598 cat confdefs.h
>>conftest.
$ac_ext
5599 cat >>conftest.
$ac_ext <<_ACEOF
5600 /* end confdefs.h. */
5601 #define _FILE_OFFSET_BITS 64
5602 #include <sys/types.h>
5603 /* Check that off_t can represent 2**63 - 1 correctly.
5604 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5605 since some C++ compilers masquerading as C compilers
5606 incorrectly reject 9223372036854775807. */
5607 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5608 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5609 && LARGE_OFF_T % 2147483647 == 1)
5619 rm -f conftest.
$ac_objext
5620 if { (ac_try
="$ac_compile"
5622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5623 *) ac_try_echo=$ac_try;;
5625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5626 (eval "$ac_compile") 2>conftest.er1
5628 grep -v '^ *+' conftest.er1 >conftest.err
5630 cat conftest.err >&5
5631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5632 (exit $ac_status); } && {
5633 test -z "$ac_c_werror_flag" ||
5634 test ! -s conftest.err
5635 } && test -s conftest.$ac_objext; then
5636 ac_cv_sys_file_offset_bits=64; break
5638 echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5645 ac_cv_sys_file_offset_bits=unknown
5649 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5650 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5651 case $ac_cv_sys_file_offset_bits in #(
5654 cat >>confdefs.h <<_ACEOF
5655 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5660 if test $ac_cv_sys_file_offset_bits = unknown; then
5661 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5662 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5663 if test "${ac_cv_sys_large_files+set}" = set; then
5664 echo $ECHO_N "(cached) $ECHO_C" >&6
5667 cat >conftest.$ac_ext <<_ACEOF
5670 cat confdefs.h >>conftest.$ac_ext
5671 cat >>conftest.$ac_ext <<_ACEOF
5672 /* end confdefs.h. */
5673 #include <sys/types.h>
5674 /* Check that off_t can represent 2**63 - 1 correctly.
5675 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5676 since some C++ compilers masquerading as C compilers
5677 incorrectly reject 9223372036854775807. */
5678 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5679 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5680 && LARGE_OFF_T % 2147483647 == 1)
5690 rm -f conftest.$ac_objext
5691 if { (ac_try="$ac_compile"
5693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5694 *) ac_try_echo
=$ac_try;;
5696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5697 (eval "$ac_compile") 2>conftest.er1
5699 grep -v '^ *+' conftest.er1
>conftest.err
5701 cat conftest.err
>&5
5702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5703 (exit $ac_status); } && {
5704 test -z "$ac_c_werror_flag" ||
5705 test ! -s conftest.err
5706 } && test -s conftest.
$ac_objext; then
5707 ac_cv_sys_large_files
=no
; break
5709 echo "$as_me: failed program was:" >&5
5710 sed 's/^/| /' conftest.
$ac_ext >&5
5715 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5716 cat >conftest.
$ac_ext <<_ACEOF
5719 cat confdefs.h
>>conftest.
$ac_ext
5720 cat >>conftest.
$ac_ext <<_ACEOF
5721 /* end confdefs.h. */
5722 #define _LARGE_FILES 1
5723 #include <sys/types.h>
5724 /* Check that off_t can represent 2**63 - 1 correctly.
5725 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5726 since some C++ compilers masquerading as C compilers
5727 incorrectly reject 9223372036854775807. */
5728 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5729 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5730 && LARGE_OFF_T % 2147483647 == 1)
5740 rm -f conftest.
$ac_objext
5741 if { (ac_try
="$ac_compile"
5743 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5744 *) ac_try_echo=$ac_try;;
5746 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5747 (eval "$ac_compile") 2>conftest.er1
5749 grep -v '^ *+' conftest.er1 >conftest.err
5751 cat conftest.err >&5
5752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5753 (exit $ac_status); } && {
5754 test -z "$ac_c_werror_flag" ||
5755 test ! -s conftest.err
5756 } && test -s conftest.$ac_objext; then
5757 ac_cv_sys_large_files=1; break
5759 echo "$as_me: failed program was:" >&5
5760 sed 's/^/| /' conftest.$ac_ext >&5
5765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5766 ac_cv_sys_large_files=unknown
5770 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5771 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5772 case $ac_cv_sys_large_files in #(
5775 cat >>confdefs.h <<_ACEOF
5776 #define _LARGE_FILES $ac_cv_sys_large_files
5786 ### The standard library on x86-64 GNU/Linux distributions can
5787 ### be located in either /usr/lib64 or /usr/lib.
5788 case "${canonical}" in
5789 x86_64-*-linux-gnu* )
5790 if test -d /usr/lib64; then
5792 cat >>confdefs.h <<\_ACEOF
5793 #define HAVE_X86_64_LIB64_DIR 1
5802 if test "${with_sound}" != "no"; then
5803 # Sound support for GNU/Linux and the free BSDs.
5804 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5805 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5806 if test "${ac_cv_header_stdc+set}" = set; then
5807 echo $ECHO_N "(cached) $ECHO_C" >&6
5809 cat >conftest.$ac_ext <<_ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5828 rm -f conftest.$ac_objext
5829 if { (ac_try="$ac_compile"
5831 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5832 *) ac_try_echo
=$ac_try;;
5834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5835 (eval "$ac_compile") 2>conftest.er1
5837 grep -v '^ *+' conftest.er1
>conftest.err
5839 cat conftest.err
>&5
5840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5841 (exit $ac_status); } && {
5842 test -z "$ac_c_werror_flag" ||
5843 test ! -s conftest.err
5844 } && test -s conftest.
$ac_objext; then
5845 ac_cv_header_stdc
=yes
5847 echo "$as_me: failed program was:" >&5
5848 sed 's/^/| /' conftest.
$ac_ext >&5
5850 ac_cv_header_stdc
=no
5853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5855 if test $ac_cv_header_stdc = yes; then
5856 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5857 cat >conftest.
$ac_ext <<_ACEOF
5860 cat confdefs.h
>>conftest.
$ac_ext
5861 cat >>conftest.
$ac_ext <<_ACEOF
5862 /* end confdefs.h. */
5866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5867 $EGREP "memchr" >/dev
/null
2>&1; then
5870 ac_cv_header_stdc
=no
5876 if test $ac_cv_header_stdc = yes; then
5877 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5878 cat >conftest.
$ac_ext <<_ACEOF
5881 cat confdefs.h
>>conftest.
$ac_ext
5882 cat >>conftest.
$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5888 $EGREP "free" >/dev
/null
2>&1; then
5891 ac_cv_header_stdc
=no
5897 if test $ac_cv_header_stdc = yes; then
5898 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5899 if test "$cross_compiling" = yes; then
5902 cat >conftest.
$ac_ext <<_ACEOF
5905 cat confdefs.h
>>conftest.
$ac_ext
5906 cat >>conftest.
$ac_ext <<_ACEOF
5907 /* end confdefs.h. */
5910 #if ((' ' & 0x0FF) == 0x020)
5911 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5912 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5914 # define ISLOWER(c) \
5915 (('a' <= (c) && (c) <= 'i') \
5916 || ('j' <= (c) && (c) <= 'r') \
5917 || ('s' <= (c) && (c) <= 'z'))
5918 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5921 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5926 for (i = 0; i < 256; i++)
5927 if (XOR (islower (i), ISLOWER (i))
5928 || toupper (i) != TOUPPER (i))
5933 rm -f conftest
$ac_exeext
5934 if { (ac_try
="$ac_link"
5936 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_link") 2>&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5944 { (case "(($ac_try" in
5945 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5946 *) ac_try_echo
=$ac_try;;
5948 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5949 (eval "$ac_try") 2>&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then
5955 echo "$as_me: program exited with status $ac_status" >&5
5956 echo "$as_me: failed program was:" >&5
5957 sed 's/^/| /' conftest.
$ac_ext >&5
5960 ac_cv_header_stdc
=no
5962 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5968 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5969 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5970 if test $ac_cv_header_stdc = yes; then
5972 cat >>confdefs.h
<<\_ACEOF
5973 #define STDC_HEADERS 1
5978 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5988 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5989 inttypes.h stdint.h unistd.h
5991 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5992 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5993 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5994 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5995 echo $ECHO_N "(cached) $ECHO_C" >&6
5997 cat >conftest.
$ac_ext <<_ACEOF
6000 cat confdefs.h
>>conftest.
$ac_ext
6001 cat >>conftest.
$ac_ext <<_ACEOF
6002 /* end confdefs.h. */
6003 $ac_includes_default
6005 #include <$ac_header>
6007 rm -f conftest.
$ac_objext
6008 if { (ac_try
="$ac_compile"
6010 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6011 *) ac_try_echo=$ac_try;;
6013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6014 (eval "$ac_compile") 2>conftest.er1
6016 grep -v '^ *+' conftest.er1 >conftest.err
6018 cat conftest.err >&5
6019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6020 (exit $ac_status); } && {
6021 test -z "$ac_c_werror_flag" ||
6022 test ! -s conftest.err
6023 } && test -s conftest.$ac_objext; then
6024 eval "$as_ac_Header=yes"
6026 echo "$as_me: failed program was:" >&5
6027 sed 's/^/| /' conftest.$ac_ext >&5
6029 eval "$as_ac_Header=no"
6032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6034 ac_res=`eval echo '${'$as_ac_Header'}'`
6035 { echo "$as_me:$LINENO: result: $ac_res" >&5
6036 echo "${ECHO_T}$ac_res" >&6; }
6037 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6038 cat >>confdefs.h <<_ACEOF
6039 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6050 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6052 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6057 echo $ECHO_N "(cached) $ECHO_C" >&6
6059 ac_res=`eval echo '${'$as_ac_Header'}'`
6060 { echo "$as_me:$LINENO: result: $ac_res" >&5
6061 echo "${ECHO_T}$ac_res" >&6; }
6063 # Is the header compilable?
6064 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6065 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6066 cat >conftest.$ac_ext <<_ACEOF
6069 cat confdefs.h >>conftest.$ac_ext
6070 cat >>conftest.$ac_ext <<_ACEOF
6071 /* end confdefs.h. */
6072 $ac_includes_default
6073 #include <$ac_header>
6075 rm -f conftest.$ac_objext
6076 if { (ac_try="$ac_compile"
6078 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6079 *) ac_try_echo
=$ac_try;;
6081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6082 (eval "$ac_compile") 2>conftest.er1
6084 grep -v '^ *+' conftest.er1
>conftest.err
6086 cat conftest.err
>&5
6087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6088 (exit $ac_status); } && {
6089 test -z "$ac_c_werror_flag" ||
6090 test ! -s conftest.err
6091 } && test -s conftest.
$ac_objext; then
6092 ac_header_compiler
=yes
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.
$ac_ext >&5
6097 ac_header_compiler
=no
6100 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6101 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6102 echo "${ECHO_T}$ac_header_compiler" >&6; }
6104 # Is the header present?
6105 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6106 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6107 cat >conftest.
$ac_ext <<_ACEOF
6110 cat confdefs.h
>>conftest.
$ac_ext
6111 cat >>conftest.
$ac_ext <<_ACEOF
6112 /* end confdefs.h. */
6113 #include <$ac_header>
6115 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6117 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6118 *) ac_try_echo=$ac_try;;
6120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6121 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6123 grep -v '^ *+' conftest.er1 >conftest.err
6125 cat conftest.err >&5
6126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6127 (exit $ac_status); } >/dev/null && {
6128 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6129 test ! -s conftest.err
6131 ac_header_preproc=yes
6133 echo "$as_me: failed program was:" >&5
6134 sed 's/^/| /' conftest.$ac_ext >&5
6136 ac_header_preproc=no
6139 rm -f conftest.err conftest.$ac_ext
6140 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6141 echo "${ECHO_T}$ac_header_preproc" >&6; }
6143 # So? What about this header?
6144 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6146 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6147 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6148 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6149 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6150 ac_header_preproc=yes
6153 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6154 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6155 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6156 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6157 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6158 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6159 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6160 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6161 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6162 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6163 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6164 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6168 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6169 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6170 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6171 echo $ECHO_N "(cached) $ECHO_C" >&6
6173 eval "$as_ac_Header=\$ac_header_preproc"
6175 ac_res=`eval echo '${'$as_ac_Header'}'`
6176 { echo "$as_me:$LINENO: result: $ac_res" >&5
6177 echo "${ECHO_T}$ac_res" >&6; }
6180 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6181 cat >>confdefs.h <<_ACEOF
6182 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6189 # Emulation library used on NetBSD.
6190 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6191 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6192 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6193 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 ac_check_lib_save_LIBS=$LIBS
6196 LIBS="-lossaudio $LIBS"
6197 cat >conftest.$ac_ext <<_ACEOF
6200 cat confdefs.h >>conftest.$ac_ext
6201 cat >>conftest.$ac_ext <<_ACEOF
6202 /* end confdefs.h. */
6204 /* Override any GCC internal prototype to avoid an error.
6205 Use char because int might match the return type of a GCC
6206 builtin and then its argument prototype would still apply. */
6214 return _oss_ioctl ();
6219 rm -f conftest.$ac_objext conftest$ac_exeext
6220 if { (ac_try="$ac_link"
6222 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6223 *) ac_try_echo
=$ac_try;;
6225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226 (eval "$ac_link") 2>conftest.er1
6228 grep -v '^ *+' conftest.er1
>conftest.err
6230 cat conftest.err
>&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } && {
6233 test -z "$ac_c_werror_flag" ||
6234 test ! -s conftest.err
6235 } && test -s conftest
$ac_exeext &&
6236 $as_test_x conftest
$ac_exeext; then
6237 ac_cv_lib_ossaudio__oss_ioctl
=yes
6239 echo "$as_me: failed program was:" >&5
6240 sed 's/^/| /' conftest.
$ac_ext >&5
6242 ac_cv_lib_ossaudio__oss_ioctl
=no
6245 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6246 conftest
$ac_exeext conftest.
$ac_ext
6247 LIBS
=$ac_check_lib_save_LIBS
6249 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6250 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6251 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6260 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6261 if test "X${with_pkg_config_prog}" != X
; then
6262 PKG_CONFIG
="${with_pkg_config_prog}"
6267 if test -z "$PKG_CONFIG"; then
6268 # Extract the first word of "pkg-config", so it can be a program name with args.
6269 set dummy pkg-config
; ac_word
=$2
6270 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6271 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6272 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6280 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6284 test -z "$as_dir" && as_dir
=.
6285 for ac_exec_ext
in '' $ac_executable_extensions; do
6286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6287 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6295 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6299 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6300 if test -n "$PKG_CONFIG"; then
6301 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6302 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6304 { echo "$as_me:$LINENO: result: no" >&5
6305 echo "${ECHO_T}no" >&6; }
6311 if test "$PKG_CONFIG" = "no" ; then
6314 PKG_CONFIG_MIN_VERSION
=0.9.0
6315 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6316 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6317 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6319 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6320 { echo "$as_me:$LINENO: result: yes" >&5
6321 echo "${ECHO_T}yes" >&6; }
6324 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6325 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6326 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6327 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6328 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6330 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6331 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6332 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6333 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6334 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6336 { echo "$as_me:$LINENO: result: no" >&5
6337 echo "${ECHO_T}no" >&6; }
6340 ## If we have a custom action on failure, don't print errors, but
6341 ## do set a variable so people can do so.
6342 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6349 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6350 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6354 if test $succeeded = yes; then
6360 if test $HAVE_ALSA = yes; then
6361 SAVE_CFLAGS
="$CFLAGS"
6362 SAVE_LDFLAGS
="$LDFLAGS"
6363 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6364 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6365 cat >conftest.
$ac_ext <<_ACEOF
6368 cat confdefs.h
>>conftest.
$ac_ext
6369 cat >>conftest.
$ac_ext <<_ACEOF
6370 /* end confdefs.h. */
6371 #include <asoundlib.h>
6375 snd_lib_error_set_handler (0);
6380 rm -f conftest.
$ac_objext
6381 if { (ac_try
="$ac_compile"
6383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6384 *) ac_try_echo=$ac_try;;
6386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6387 (eval "$ac_compile") 2>conftest.er1
6389 grep -v '^ *+' conftest.er1 >conftest.err
6391 cat conftest.err >&5
6392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6393 (exit $ac_status); } && {
6394 test -z "$ac_c_werror_flag" ||
6395 test ! -s conftest.err
6396 } && test -s conftest.$ac_objext; then
6397 emacs_alsa_normal=yes
6399 echo "$as_me: failed program was:" >&5
6400 sed 's/^/| /' conftest.$ac_ext >&5
6402 emacs_alsa_normal=no
6405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6406 if test "$emacs_alsa_normal" != yes; then
6407 cat >conftest.$ac_ext <<_ACEOF
6410 cat confdefs.h >>conftest.$ac_ext
6411 cat >>conftest.$ac_ext <<_ACEOF
6412 /* end confdefs.h. */
6413 #include <alsa/asoundlib.h>
6417 snd_lib_error_set_handler (0);
6422 rm -f conftest.$ac_objext
6423 if { (ac_try="$ac_compile"
6425 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6426 *) ac_try_echo
=$ac_try;;
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_compile") 2>conftest.er1
6431 grep -v '^ *+' conftest.er1
>conftest.err
6433 cat conftest.err
>&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } && {
6436 test -z "$ac_c_werror_flag" ||
6437 test ! -s conftest.err
6438 } && test -s conftest.
$ac_objext; then
6439 emacs_alsa_subdir
=yes
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.
$ac_ext >&5
6444 emacs_alsa_subdir
=no
6447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6448 if test "$emacs_alsa_subdir" != yes; then
6449 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6450 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6451 { (exit 1); exit 1; }; }
6453 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6456 CFLAGS
="$SAVE_CFLAGS"
6457 LDFLAGS
="$SAVE_LDFLAGS"
6458 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6459 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6461 cat >>confdefs.h
<<\_ACEOF
6495 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6496 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6497 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6498 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6501 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6502 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6503 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6504 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6505 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6506 echo $ECHO_N "(cached) $ECHO_C" >&6
6508 ac_res
=`eval echo '${'$as_ac_Header'}'`
6509 { echo "$as_me:$LINENO: result: $ac_res" >&5
6510 echo "${ECHO_T}$ac_res" >&6; }
6512 # Is the header compilable?
6513 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6514 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6515 cat >conftest.
$ac_ext <<_ACEOF
6518 cat confdefs.h
>>conftest.
$ac_ext
6519 cat >>conftest.
$ac_ext <<_ACEOF
6520 /* end confdefs.h. */
6521 $ac_includes_default
6522 #include <$ac_header>
6524 rm -f conftest.
$ac_objext
6525 if { (ac_try
="$ac_compile"
6527 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6528 *) ac_try_echo=$ac_try;;
6530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6531 (eval "$ac_compile") 2>conftest.er1
6533 grep -v '^ *+' conftest.er1 >conftest.err
6535 cat conftest.err >&5
6536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6537 (exit $ac_status); } && {
6538 test -z "$ac_c_werror_flag" ||
6539 test ! -s conftest.err
6540 } && test -s conftest.$ac_objext; then
6541 ac_header_compiler=yes
6543 echo "$as_me: failed program was:" >&5
6544 sed 's/^/| /' conftest.$ac_ext >&5
6546 ac_header_compiler=no
6549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6550 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6551 echo "${ECHO_T}$ac_header_compiler" >&6; }
6553 # Is the header present?
6554 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6555 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6556 cat >conftest.$ac_ext <<_ACEOF
6559 cat confdefs.h >>conftest.$ac_ext
6560 cat >>conftest.$ac_ext <<_ACEOF
6561 /* end confdefs.h. */
6562 #include <$ac_header>
6564 if { (ac_try="$ac_cpp conftest.$ac_ext"
6566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6567 *) ac_try_echo
=$ac_try;;
6569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6570 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6572 grep -v '^ *+' conftest.er1
>conftest.err
6574 cat conftest.err
>&5
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); } >/dev
/null
&& {
6577 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6578 test ! -s conftest.err
6580 ac_header_preproc
=yes
6582 echo "$as_me: failed program was:" >&5
6583 sed 's/^/| /' conftest.
$ac_ext >&5
6585 ac_header_preproc
=no
6588 rm -f conftest.err conftest.
$ac_ext
6589 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6590 echo "${ECHO_T}$ac_header_preproc" >&6; }
6592 # So? What about this header?
6593 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6595 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6596 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6597 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6598 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6599 ac_header_preproc
=yes
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6603 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6605 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6607 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6608 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6609 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6611 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6612 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6613 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6617 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6618 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6619 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6620 echo $ECHO_N "(cached) $ECHO_C" >&6
6622 eval "$as_ac_Header=\$ac_header_preproc"
6624 ac_res
=`eval echo '${'$as_ac_Header'}'`
6625 { echo "$as_me:$LINENO: result: $ac_res" >&5
6626 echo "${ECHO_T}$ac_res" >&6; }
6629 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6630 cat >>confdefs.h
<<_ACEOF
6631 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6639 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6640 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6641 cat >conftest.
$ac_ext <<_ACEOF
6644 cat confdefs.h
>>conftest.
$ac_ext
6645 cat >>conftest.
$ac_ext <<_ACEOF
6646 /* end confdefs.h. */
6647 #include <sys/personality.h>
6651 personality (PER_LINUX32)
6656 rm -f conftest.
$ac_objext
6657 if { (ac_try
="$ac_compile"
6659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6660 *) ac_try_echo=$ac_try;;
6662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6663 (eval "$ac_compile") 2>conftest.er1
6665 grep -v '^ *+' conftest.er1 >conftest.err
6667 cat conftest.err >&5
6668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6669 (exit $ac_status); } && {
6670 test -z "$ac_c_werror_flag" ||
6671 test ! -s conftest.err
6672 } && test -s conftest.$ac_objext; then
6673 emacs_cv_personality_linux32=yes
6675 echo "$as_me: failed program was:" >&5
6676 sed 's/^/| /' conftest.$ac_ext >&5
6678 emacs_cv_personality_linux32=no
6681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6682 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6683 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6685 if test $emacs_cv_personality_linux32 = yes; then
6687 cat >>confdefs.h <<\_ACEOF
6688 #define HAVE_PERSONALITY_LINUX32 1
6694 for ac_header in term.h
6696 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6697 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6698 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6699 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6700 echo $ECHO_N "(cached) $ECHO_C" >&6
6702 cat >conftest.$ac_ext <<_ACEOF
6705 cat confdefs.h >>conftest.$ac_ext
6706 cat >>conftest.$ac_ext <<_ACEOF
6707 /* end confdefs.h. */
6708 #include <$ac_header>
6710 if { (ac_try="$ac_cpp conftest.$ac_ext"
6712 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6713 *) ac_try_echo
=$ac_try;;
6715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6718 grep -v '^ *+' conftest.er1
>conftest.err
6720 cat conftest.err
>&5
6721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6722 (exit $ac_status); } >/dev
/null
&& {
6723 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6724 test ! -s conftest.err
6726 eval "$as_ac_Header=yes"
6728 echo "$as_me: failed program was:" >&5
6729 sed 's/^/| /' conftest.
$ac_ext >&5
6731 eval "$as_ac_Header=no"
6734 rm -f conftest.err conftest.
$ac_ext
6736 ac_res
=`eval echo '${'$as_ac_Header'}'`
6737 { echo "$as_me:$LINENO: result: $ac_res" >&5
6738 echo "${ECHO_T}$ac_res" >&6; }
6739 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6740 cat >>confdefs.h
<<_ACEOF
6741 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6748 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6749 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6750 if test "${ac_cv_header_stdc+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6753 cat >conftest.
$ac_ext <<_ACEOF
6756 cat confdefs.h
>>conftest.
$ac_ext
6757 cat >>conftest.
$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6772 rm -f conftest.
$ac_objext
6773 if { (ac_try
="$ac_compile"
6775 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6776 *) ac_try_echo=$ac_try;;
6778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6779 (eval "$ac_compile") 2>conftest.er1
6781 grep -v '^ *+' conftest.er1 >conftest.err
6783 cat conftest.err >&5
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } && {
6786 test -z "$ac_c_werror_flag" ||
6787 test ! -s conftest.err
6788 } && test -s conftest.$ac_objext; then
6789 ac_cv_header_stdc=yes
6791 echo "$as_me: failed program was:" >&5
6792 sed 's/^/| /' conftest.$ac_ext >&5
6794 ac_cv_header_stdc=no
6797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799 if test $ac_cv_header_stdc = yes; then
6800 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6801 cat >conftest.$ac_ext <<_ACEOF
6804 cat confdefs.h >>conftest.$ac_ext
6805 cat >>conftest.$ac_ext <<_ACEOF
6806 /* end confdefs.h. */
6810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6811 $EGREP "memchr" >/dev/null 2>&1; then
6814 ac_cv_header_stdc=no
6820 if test $ac_cv_header_stdc = yes; then
6821 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6822 cat >conftest.$ac_ext <<_ACEOF
6825 cat confdefs.h >>conftest.$ac_ext
6826 cat >>conftest.$ac_ext <<_ACEOF
6827 /* end confdefs.h. */
6831 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6832 $EGREP "free" >/dev/null 2>&1; then
6835 ac_cv_header_stdc=no
6841 if test $ac_cv_header_stdc = yes; then
6842 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6843 if test "$cross_compiling" = yes; then
6846 cat >conftest.$ac_ext <<_ACEOF
6849 cat confdefs.h >>conftest.$ac_ext
6850 cat >>conftest.$ac_ext <<_ACEOF
6851 /* end confdefs.h. */
6854 #if ((' ' & 0x0FF) == 0x020)
6855 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6856 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6858 # define ISLOWER(c) \
6859 (('a' <= (c) && (c) <= 'i') \
6860 || ('j' <= (c) && (c) <= 'r') \
6861 || ('s' <= (c) && (c) <= 'z'))
6862 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6865 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6870 for (i = 0; i < 256; i++)
6871 if (XOR (islower (i), ISLOWER (i))
6872 || toupper (i) != TOUPPER (i))
6877 rm -f conftest$ac_exeext
6878 if { (ac_try="$ac_link"
6880 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6881 *) ac_try_echo
=$ac_try;;
6883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6884 (eval "$ac_link") 2>&5
6886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6887 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6888 { (case "(($ac_try" in
6889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6890 *) ac_try_echo=$ac_try;;
6892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6893 (eval "$ac_try") 2>&5
6895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6896 (exit $ac_status); }; }; then
6899 echo "$as_me: program exited with status $ac_status" >&5
6900 echo "$as_me: failed program was:" >&5
6901 sed 's/^/| /' conftest.$ac_ext >&5
6904 ac_cv_header_stdc=no
6906 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6912 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6913 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6914 if test $ac_cv_header_stdc = yes; then
6916 cat >>confdefs.h <<\_ACEOF
6917 #define STDC_HEADERS 1
6922 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6923 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6924 if test "${ac_cv_header_time+set}" = set; then
6925 echo $ECHO_N "(cached) $ECHO_C" >&6
6927 cat >conftest.$ac_ext <<_ACEOF
6930 cat confdefs.h >>conftest.$ac_ext
6931 cat >>conftest.$ac_ext <<_ACEOF
6932 /* end confdefs.h. */
6933 #include <sys/types.h>
6934 #include <sys/time.h>
6940 if ((struct tm *) 0)
6946 rm -f conftest.$ac_objext
6947 if { (ac_try="$ac_compile"
6949 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6950 *) ac_try_echo
=$ac_try;;
6952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6953 (eval "$ac_compile") 2>conftest.er1
6955 grep -v '^ *+' conftest.er1
>conftest.err
6957 cat conftest.err
>&5
6958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6959 (exit $ac_status); } && {
6960 test -z "$ac_c_werror_flag" ||
6961 test ! -s conftest.err
6962 } && test -s conftest.
$ac_objext; then
6963 ac_cv_header_time
=yes
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.
$ac_ext >&5
6968 ac_cv_header_time
=no
6971 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6973 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6974 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6975 if test $ac_cv_header_time = yes; then
6977 cat >>confdefs.h
<<\_ACEOF
6978 #define TIME_WITH_SYS_TIME 1
6983 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6984 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6985 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6986 echo $ECHO_N "(cached) $ECHO_C" >&6
6988 cat >conftest.
$ac_ext <<_ACEOF
6991 cat confdefs.h
>>conftest.
$ac_ext
6992 cat >>conftest.
$ac_ext <<_ACEOF
6993 /* end confdefs.h. */
6994 $ac_includes_default
7006 rm -f conftest.
$ac_objext
7007 if { (ac_try
="$ac_compile"
7009 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_compile") 2>conftest.er1
7015 grep -v '^ *+' conftest.er1 >conftest.err
7017 cat conftest.err >&5
7018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7019 (exit $ac_status); } && {
7020 test -z "$ac_c_werror_flag" ||
7021 test ! -s conftest.err
7022 } && test -s conftest.$ac_objext; then
7023 ac_cv_have_decl_sys_siglist=yes
7025 echo "$as_me: failed program was:" >&5
7026 sed 's/^/| /' conftest.$ac_ext >&5
7028 ac_cv_have_decl_sys_siglist=no
7031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7033 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7034 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7035 if test $ac_cv_have_decl_sys_siglist = yes; then
7037 cat >>confdefs.h <<_ACEOF
7038 #define HAVE_DECL_SYS_SIGLIST 1
7043 cat >>confdefs.h <<_ACEOF
7044 #define HAVE_DECL_SYS_SIGLIST 0
7051 if test $ac_cv_have_decl_sys_siglist != yes; then
7052 # For Tru64, at least:
7053 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7054 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7055 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7056 echo $ECHO_N "(cached) $ECHO_C" >&6
7058 cat >conftest.$ac_ext <<_ACEOF
7061 cat confdefs.h >>conftest.$ac_ext
7062 cat >>conftest.$ac_ext <<_ACEOF
7063 /* end confdefs.h. */
7064 $ac_includes_default
7068 #ifndef __sys_siglist
7069 (void) __sys_siglist;
7076 rm -f conftest.$ac_objext
7077 if { (ac_try="$ac_compile"
7079 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7080 *) ac_try_echo
=$ac_try;;
7082 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7083 (eval "$ac_compile") 2>conftest.er1
7085 grep -v '^ *+' conftest.er1
>conftest.err
7087 cat conftest.err
>&5
7088 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7089 (exit $ac_status); } && {
7090 test -z "$ac_c_werror_flag" ||
7091 test ! -s conftest.err
7092 } && test -s conftest.
$ac_objext; then
7093 ac_cv_have_decl___sys_siglist
=yes
7095 echo "$as_me: failed program was:" >&5
7096 sed 's/^/| /' conftest.
$ac_ext >&5
7098 ac_cv_have_decl___sys_siglist
=no
7101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7103 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7104 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7105 if test $ac_cv_have_decl___sys_siglist = yes; then
7107 cat >>confdefs.h
<<_ACEOF
7108 #define HAVE_DECL___SYS_SIGLIST 1
7113 cat >>confdefs.h
<<_ACEOF
7114 #define HAVE_DECL___SYS_SIGLIST 0
7121 if test $ac_cv_have_decl___sys_siglist = yes; then
7123 cat >>confdefs.h
<<\_ACEOF
7124 #define sys_siglist __sys_siglist
7129 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7130 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7131 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7132 echo $ECHO_N "(cached) $ECHO_C" >&6
7134 cat >conftest.
$ac_ext <<_ACEOF
7137 cat confdefs.h
>>conftest.
$ac_ext
7138 cat >>conftest.
$ac_ext <<_ACEOF
7139 /* end confdefs.h. */
7140 #include <sys/types.h>
7141 #include <sys/wait.h>
7143 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7146 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7154 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7159 rm -f conftest.
$ac_objext
7160 if { (ac_try
="$ac_compile"
7162 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7163 *) ac_try_echo=$ac_try;;
7165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7166 (eval "$ac_compile") 2>conftest.er1
7168 grep -v '^ *+' conftest.er1 >conftest.err
7170 cat conftest.err >&5
7171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7172 (exit $ac_status); } && {
7173 test -z "$ac_c_werror_flag" ||
7174 test ! -s conftest.err
7175 } && test -s conftest.$ac_objext; then
7176 ac_cv_header_sys_wait_h=yes
7178 echo "$as_me: failed program was:" >&5
7179 sed 's/^/| /' conftest.$ac_ext >&5
7181 ac_cv_header_sys_wait_h=no
7184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7186 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7187 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7188 if test $ac_cv_header_sys_wait_h = yes; then
7190 cat >>confdefs.h <<\_ACEOF
7191 #define HAVE_SYS_WAIT_H 1
7197 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7198 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7199 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7200 echo $ECHO_N "(cached) $ECHO_C" >&6
7202 cat >conftest.$ac_ext <<_ACEOF
7205 cat confdefs.h >>conftest.$ac_ext
7206 cat >>conftest.$ac_ext <<_ACEOF
7207 /* end confdefs.h. */
7208 #ifdef TIME_WITH_SYS_TIME
7209 #include <sys/time.h>
7212 #ifdef HAVE_SYS_TIME_H
7213 #include <sys/time.h>
7224 static struct utimbuf x; x.actime = x.modtime;
7229 rm -f conftest.$ac_objext
7230 if { (ac_try="$ac_compile"
7232 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7233 *) ac_try_echo
=$ac_try;;
7235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7236 (eval "$ac_compile") 2>conftest.er1
7238 grep -v '^ *+' conftest.er1
>conftest.err
7240 cat conftest.err
>&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } && {
7243 test -z "$ac_c_werror_flag" ||
7244 test ! -s conftest.err
7245 } && test -s conftest.
$ac_objext; then
7246 emacs_cv_struct_utimbuf
=yes
7248 echo "$as_me: failed program was:" >&5
7249 sed 's/^/| /' conftest.
$ac_ext >&5
7251 emacs_cv_struct_utimbuf
=no
7254 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7256 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7257 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7258 if test $emacs_cv_struct_utimbuf = yes; then
7260 cat >>confdefs.h
<<\_ACEOF
7261 #define HAVE_STRUCT_UTIMBUF 1
7266 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7267 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7268 if test "${ac_cv_type_signal+set}" = set; then
7269 echo $ECHO_N "(cached) $ECHO_C" >&6
7271 cat >conftest.
$ac_ext <<_ACEOF
7274 cat confdefs.h
>>conftest.
$ac_ext
7275 cat >>conftest.
$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7277 #include <sys/types.h>
7283 return *(signal (0, 0)) (0) == 1;
7288 rm -f conftest.
$ac_objext
7289 if { (ac_try
="$ac_compile"
7291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7292 *) ac_try_echo=$ac_try;;
7294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7295 (eval "$ac_compile") 2>conftest.er1
7297 grep -v '^ *+' conftest.er1 >conftest.err
7299 cat conftest.err >&5
7300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7301 (exit $ac_status); } && {
7302 test -z "$ac_c_werror_flag" ||
7303 test ! -s conftest.err
7304 } && test -s conftest.$ac_objext; then
7305 ac_cv_type_signal=int
7307 echo "$as_me: failed program was:" >&5
7308 sed 's/^/| /' conftest.$ac_ext >&5
7310 ac_cv_type_signal=void
7313 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7315 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7316 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7318 cat >>confdefs.h <<_ACEOF
7319 #define RETSIGTYPE $ac_cv_type_signal
7324 { echo "$as_me:$LINENO: checking for speed_t" >&5
7325 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7326 if test "${emacs_cv_speed_t+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7329 cat >conftest.$ac_ext <<_ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 #include <termios.h>
7344 rm -f conftest.$ac_objext
7345 if { (ac_try="$ac_compile"
7347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7348 *) ac_try_echo
=$ac_try;;
7350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7351 (eval "$ac_compile") 2>conftest.er1
7353 grep -v '^ *+' conftest.er1
>conftest.err
7355 cat conftest.err
>&5
7356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7357 (exit $ac_status); } && {
7358 test -z "$ac_c_werror_flag" ||
7359 test ! -s conftest.err
7360 } && test -s conftest.
$ac_objext; then
7361 emacs_cv_speed_t
=yes
7363 echo "$as_me: failed program was:" >&5
7364 sed 's/^/| /' conftest.
$ac_ext >&5
7369 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7371 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7372 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7373 if test $emacs_cv_speed_t = yes; then
7375 cat >>confdefs.h
<<\_ACEOF
7376 #define HAVE_SPEED_T 1
7381 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7382 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7383 if test "${emacs_cv_struct_timeval+set}" = set; then
7384 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 cat >conftest.
$ac_ext <<_ACEOF
7389 cat confdefs.h
>>conftest.
$ac_ext
7390 cat >>conftest.
$ac_ext <<_ACEOF
7391 /* end confdefs.h. */
7392 #ifdef TIME_WITH_SYS_TIME
7393 #include <sys/time.h>
7396 #ifdef HAVE_SYS_TIME_H
7397 #include <sys/time.h>
7405 static struct timeval x; x.tv_sec = x.tv_usec;
7410 rm -f conftest.
$ac_objext
7411 if { (ac_try
="$ac_compile"
7413 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7414 *) ac_try_echo=$ac_try;;
7416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7417 (eval "$ac_compile") 2>conftest.er1
7419 grep -v '^ *+' conftest.er1 >conftest.err
7421 cat conftest.err >&5
7422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7423 (exit $ac_status); } && {
7424 test -z "$ac_c_werror_flag" ||
7425 test ! -s conftest.err
7426 } && test -s conftest.$ac_objext; then
7427 emacs_cv_struct_timeval=yes
7429 echo "$as_me: failed program was:" >&5
7430 sed 's/^/| /' conftest.$ac_ext >&5
7432 emacs_cv_struct_timeval=no
7435 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7437 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7438 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7439 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7440 if test $emacs_cv_struct_timeval = yes; then
7442 cat >>confdefs.h <<\_ACEOF
7443 #define HAVE_TIMEVAL 1
7448 { echo "$as_me:$LINENO: checking for struct exception" >&5
7449 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7450 if test "${emacs_cv_struct_exception+set}" = set; then
7451 echo $ECHO_N "(cached) $ECHO_C" >&6
7453 cat >conftest.$ac_ext <<_ACEOF
7456 cat confdefs.h >>conftest.$ac_ext
7457 cat >>conftest.$ac_ext <<_ACEOF
7458 /* end confdefs.h. */
7463 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7468 rm -f conftest.$ac_objext
7469 if { (ac_try="$ac_compile"
7471 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7472 *) ac_try_echo
=$ac_try;;
7474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475 (eval "$ac_compile") 2>conftest.er1
7477 grep -v '^ *+' conftest.er1
>conftest.err
7479 cat conftest.err
>&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && {
7482 test -z "$ac_c_werror_flag" ||
7483 test ! -s conftest.err
7484 } && test -s conftest.
$ac_objext; then
7485 emacs_cv_struct_exception
=yes
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.
$ac_ext >&5
7490 emacs_cv_struct_exception
=no
7493 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7495 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7496 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7497 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7498 if test $emacs_cv_struct_exception != yes; then
7500 cat >>confdefs.h
<<\_ACEOF
7501 #define NO_MATHERR 1
7507 for ac_header
in sys
/socket.h
7509 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7510 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7511 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7512 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7513 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7514 echo $ECHO_N "(cached) $ECHO_C" >&6
7516 ac_res
=`eval echo '${'$as_ac_Header'}'`
7517 { echo "$as_me:$LINENO: result: $ac_res" >&5
7518 echo "${ECHO_T}$ac_res" >&6; }
7520 # Is the header compilable?
7521 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7522 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7523 cat >conftest.
$ac_ext <<_ACEOF
7526 cat confdefs.h
>>conftest.
$ac_ext
7527 cat >>conftest.
$ac_ext <<_ACEOF
7528 /* end confdefs.h. */
7529 $ac_includes_default
7530 #include <$ac_header>
7532 rm -f conftest.
$ac_objext
7533 if { (ac_try
="$ac_compile"
7535 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7536 *) ac_try_echo=$ac_try;;
7538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7539 (eval "$ac_compile") 2>conftest.er1
7541 grep -v '^ *+' conftest.er1 >conftest.err
7543 cat conftest.err >&5
7544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7545 (exit $ac_status); } && {
7546 test -z "$ac_c_werror_flag" ||
7547 test ! -s conftest.err
7548 } && test -s conftest.$ac_objext; then
7549 ac_header_compiler=yes
7551 echo "$as_me: failed program was:" >&5
7552 sed 's/^/| /' conftest.$ac_ext >&5
7554 ac_header_compiler=no
7557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7558 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7559 echo "${ECHO_T}$ac_header_compiler" >&6; }
7561 # Is the header present?
7562 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7563 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7564 cat >conftest.$ac_ext <<_ACEOF
7567 cat confdefs.h >>conftest.$ac_ext
7568 cat >>conftest.$ac_ext <<_ACEOF
7569 /* end confdefs.h. */
7570 #include <$ac_header>
7572 if { (ac_try="$ac_cpp conftest.$ac_ext"
7574 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7575 *) ac_try_echo
=$ac_try;;
7577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7578 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7580 grep -v '^ *+' conftest.er1
>conftest.err
7582 cat conftest.err
>&5
7583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7584 (exit $ac_status); } >/dev
/null
&& {
7585 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7586 test ! -s conftest.err
7588 ac_header_preproc
=yes
7590 echo "$as_me: failed program was:" >&5
7591 sed 's/^/| /' conftest.
$ac_ext >&5
7593 ac_header_preproc
=no
7596 rm -f conftest.err conftest.
$ac_ext
7597 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7598 echo "${ECHO_T}$ac_header_preproc" >&6; }
7600 # So? What about this header?
7601 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7603 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7604 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7606 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7607 ac_header_preproc
=yes
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7611 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7613 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7615 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7616 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7617 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7618 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7619 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7620 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7621 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7625 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7626 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7627 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7628 echo $ECHO_N "(cached) $ECHO_C" >&6
7630 eval "$as_ac_Header=\$ac_header_preproc"
7632 ac_res
=`eval echo '${'$as_ac_Header'}'`
7633 { echo "$as_me:$LINENO: result: $ac_res" >&5
7634 echo "${ECHO_T}$ac_res" >&6; }
7637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7638 cat >>confdefs.h
<<_ACEOF
7639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7647 for ac_header
in net
/if.h
7649 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7650 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7651 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7652 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7653 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 cat >conftest.
$ac_ext <<_ACEOF
7658 cat confdefs.h
>>conftest.
$ac_ext
7659 cat >>conftest.
$ac_ext <<_ACEOF
7660 /* end confdefs.h. */
7661 $ac_includes_default
7662 #if HAVE_SYS_SOCKET_H
7663 #include <sys/socket.h>
7666 #include <$ac_header>
7668 rm -f conftest.
$ac_objext
7669 if { (ac_try
="$ac_compile"
7671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7672 *) ac_try_echo=$ac_try;;
7674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7675 (eval "$ac_compile") 2>conftest.er1
7677 grep -v '^ *+' conftest.er1 >conftest.err
7679 cat conftest.err >&5
7680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7681 (exit $ac_status); } && {
7682 test -z "$ac_c_werror_flag" ||
7683 test ! -s conftest.err
7684 } && test -s conftest.$ac_objext; then
7685 eval "$as_ac_Header=yes"
7687 echo "$as_me: failed program was:" >&5
7688 sed 's/^/| /' conftest.$ac_ext >&5
7690 eval "$as_ac_Header=no"
7693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7695 ac_res=`eval echo '${'$as_ac_Header'}'`
7696 { echo "$as_me:$LINENO: result: $ac_res" >&5
7697 echo "${ECHO_T}$ac_res" >&6; }
7698 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7699 cat >>confdefs.h <<_ACEOF
7700 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7708 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7709 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7710 if test "${ac_cv_struct_tm+set}" = set; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 cat >conftest.$ac_ext <<_ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7719 #include <sys/types.h>
7726 int *p = &tm.tm_sec;
7732 rm -f conftest.$ac_objext
7733 if { (ac_try="$ac_compile"
7735 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7736 *) ac_try_echo
=$ac_try;;
7738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7739 (eval "$ac_compile") 2>conftest.er1
7741 grep -v '^ *+' conftest.er1
>conftest.err
7743 cat conftest.err
>&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } && {
7746 test -z "$ac_c_werror_flag" ||
7747 test ! -s conftest.err
7748 } && test -s conftest.
$ac_objext; then
7749 ac_cv_struct_tm
=time.h
7751 echo "$as_me: failed program was:" >&5
7752 sed 's/^/| /' conftest.
$ac_ext >&5
7754 ac_cv_struct_tm
=sys
/time.h
7757 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7759 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7760 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7761 if test $ac_cv_struct_tm = sys
/time.h
; then
7763 cat >>confdefs.h
<<\_ACEOF
7764 #define TM_IN_SYS_TIME 1
7769 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7770 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7771 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7772 echo $ECHO_N "(cached) $ECHO_C" >&6
7774 cat >conftest.
$ac_ext <<_ACEOF
7777 cat confdefs.h
>>conftest.
$ac_ext
7778 cat >>conftest.
$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780 #include <sys/types.h>
7781 #include <$ac_cv_struct_tm>
7787 static struct tm ac_aggr;
7788 if (ac_aggr.tm_zone)
7794 rm -f conftest.
$ac_objext
7795 if { (ac_try
="$ac_compile"
7797 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7798 *) ac_try_echo=$ac_try;;
7800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7801 (eval "$ac_compile") 2>conftest.er1
7803 grep -v '^ *+' conftest.er1 >conftest.err
7805 cat conftest.err >&5
7806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7807 (exit $ac_status); } && {
7808 test -z "$ac_c_werror_flag" ||
7809 test ! -s conftest.err
7810 } && test -s conftest.$ac_objext; then
7811 ac_cv_member_struct_tm_tm_zone=yes
7813 echo "$as_me: failed program was:" >&5
7814 sed 's/^/| /' conftest.$ac_ext >&5
7816 cat >conftest.$ac_ext <<_ACEOF
7819 cat confdefs.h >>conftest.$ac_ext
7820 cat >>conftest.$ac_ext <<_ACEOF
7821 /* end confdefs.h. */
7822 #include <sys/types.h>
7823 #include <$ac_cv_struct_tm>
7829 static struct tm ac_aggr;
7830 if (sizeof ac_aggr.tm_zone)
7836 rm -f conftest.$ac_objext
7837 if { (ac_try="$ac_compile"
7839 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7840 *) ac_try_echo
=$ac_try;;
7842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843 (eval "$ac_compile") 2>conftest.er1
7845 grep -v '^ *+' conftest.er1
>conftest.err
7847 cat conftest.err
>&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } && {
7850 test -z "$ac_c_werror_flag" ||
7851 test ! -s conftest.err
7852 } && test -s conftest.
$ac_objext; then
7853 ac_cv_member_struct_tm_tm_zone
=yes
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.
$ac_ext >&5
7858 ac_cv_member_struct_tm_tm_zone
=no
7861 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7864 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7866 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7867 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7868 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7870 cat >>confdefs.h
<<_ACEOF
7871 #define HAVE_STRUCT_TM_TM_ZONE 1
7877 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7879 cat >>confdefs.h
<<\_ACEOF
7880 #define HAVE_TM_ZONE 1
7884 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7885 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7886 if test "${ac_cv_have_decl_tzname+set}" = set; then
7887 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 cat >conftest.
$ac_ext <<_ACEOF
7892 cat confdefs.h
>>conftest.
$ac_ext
7893 cat >>conftest.
$ac_ext <<_ACEOF
7894 /* end confdefs.h. */
7908 rm -f conftest.
$ac_objext
7909 if { (ac_try
="$ac_compile"
7911 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7912 *) ac_try_echo=$ac_try;;
7914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7915 (eval "$ac_compile") 2>conftest.er1
7917 grep -v '^ *+' conftest.er1 >conftest.err
7919 cat conftest.err >&5
7920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7921 (exit $ac_status); } && {
7922 test -z "$ac_c_werror_flag" ||
7923 test ! -s conftest.err
7924 } && test -s conftest.$ac_objext; then
7925 ac_cv_have_decl_tzname=yes
7927 echo "$as_me: failed program was:" >&5
7928 sed 's/^/| /' conftest.$ac_ext >&5
7930 ac_cv_have_decl_tzname=no
7933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7935 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7936 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7937 if test $ac_cv_have_decl_tzname = yes; then
7939 cat >>confdefs.h <<_ACEOF
7940 #define HAVE_DECL_TZNAME 1
7945 cat >>confdefs.h <<_ACEOF
7946 #define HAVE_DECL_TZNAME 0
7953 { echo "$as_me:$LINENO: checking for tzname" >&5
7954 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7955 if test "${ac_cv_var_tzname+set}" = set; then
7956 echo $ECHO_N "(cached) $ECHO_C" >&6
7958 cat >conftest.$ac_ext <<_ACEOF
7961 cat confdefs.h >>conftest.$ac_ext
7962 cat >>conftest.$ac_ext <<_ACEOF
7963 /* end confdefs.h. */
7965 #if !HAVE_DECL_TZNAME
7966 extern char *tzname[];
7972 return tzname[0][0];
7977 rm -f conftest.$ac_objext conftest$ac_exeext
7978 if { (ac_try="$ac_link"
7980 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7981 *) ac_try_echo
=$ac_try;;
7983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7984 (eval "$ac_link") 2>conftest.er1
7986 grep -v '^ *+' conftest.er1
>conftest.err
7988 cat conftest.err
>&5
7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7990 (exit $ac_status); } && {
7991 test -z "$ac_c_werror_flag" ||
7992 test ! -s conftest.err
7993 } && test -s conftest
$ac_exeext &&
7994 $as_test_x conftest
$ac_exeext; then
7995 ac_cv_var_tzname
=yes
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.
$ac_ext >&5
8003 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
8004 conftest
$ac_exeext conftest.
$ac_ext
8006 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8007 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8008 if test $ac_cv_var_tzname = yes; then
8010 cat >>confdefs.h
<<\_ACEOF
8011 #define HAVE_TZNAME 1
8017 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8018 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8019 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 cat >conftest.
$ac_ext <<_ACEOF
8025 cat confdefs.h
>>conftest.
$ac_ext
8026 cat >>conftest.
$ac_ext <<_ACEOF
8027 /* end confdefs.h. */
8033 static struct tm ac_aggr;
8034 if (ac_aggr.tm_gmtoff)
8040 rm -f conftest.
$ac_objext
8041 if { (ac_try
="$ac_compile"
8043 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047 (eval "$ac_compile") 2>conftest.er1
8049 grep -v '^ *+' conftest.er1 >conftest.err
8051 cat conftest.err >&5
8052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8053 (exit $ac_status); } && {
8054 test -z "$ac_c_werror_flag" ||
8055 test ! -s conftest.err
8056 } && test -s conftest.$ac_objext; then
8057 ac_cv_member_struct_tm_tm_gmtoff=yes
8059 echo "$as_me: failed program was:" >&5
8060 sed 's/^/| /' conftest.$ac_ext >&5
8062 cat >conftest.$ac_ext <<_ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8073 static struct tm ac_aggr;
8074 if (sizeof ac_aggr.tm_gmtoff)
8080 rm -f conftest.$ac_objext
8081 if { (ac_try="$ac_compile"
8083 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8084 *) ac_try_echo
=$ac_try;;
8086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8087 (eval "$ac_compile") 2>conftest.er1
8089 grep -v '^ *+' conftest.er1
>conftest.err
8091 cat conftest.err
>&5
8092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8093 (exit $ac_status); } && {
8094 test -z "$ac_c_werror_flag" ||
8095 test ! -s conftest.err
8096 } && test -s conftest.
$ac_objext; then
8097 ac_cv_member_struct_tm_tm_gmtoff
=yes
8099 echo "$as_me: failed program was:" >&5
8100 sed 's/^/| /' conftest.
$ac_ext >&5
8102 ac_cv_member_struct_tm_tm_gmtoff
=no
8105 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8110 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8111 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8112 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8114 cat >>confdefs.h
<<\_ACEOF
8115 #define HAVE_TM_GMTOFF 1
8120 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8121 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8122 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8123 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 cat >conftest.
$ac_ext <<_ACEOF
8128 cat confdefs.h
>>conftest.
$ac_ext
8129 cat >>conftest.
$ac_ext <<_ACEOF
8130 /* end confdefs.h. */
8131 $ac_includes_default
8132 #if HAVE_SYS_SOCKET_H
8133 #include <sys/socket.h>
8142 static struct ifreq ac_aggr;
8143 if (ac_aggr.ifr_flags)
8149 rm -f conftest.
$ac_objext
8150 if { (ac_try
="$ac_compile"
8152 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8153 *) ac_try_echo=$ac_try;;
8155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8156 (eval "$ac_compile") 2>conftest.er1
8158 grep -v '^ *+' conftest.er1 >conftest.err
8160 cat conftest.err >&5
8161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8162 (exit $ac_status); } && {
8163 test -z "$ac_c_werror_flag" ||
8164 test ! -s conftest.err
8165 } && test -s conftest.$ac_objext; then
8166 ac_cv_member_struct_ifreq_ifr_flags=yes
8168 echo "$as_me: failed program was:" >&5
8169 sed 's/^/| /' conftest.$ac_ext >&5
8171 cat >conftest.$ac_ext <<_ACEOF
8174 cat confdefs.h >>conftest.$ac_ext
8175 cat >>conftest.$ac_ext <<_ACEOF
8176 /* end confdefs.h. */
8177 $ac_includes_default
8178 #if HAVE_SYS_SOCKET_H
8179 #include <sys/socket.h>
8188 static struct ifreq ac_aggr;
8189 if (sizeof ac_aggr.ifr_flags)
8195 rm -f conftest.$ac_objext
8196 if { (ac_try="$ac_compile"
8198 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8199 *) ac_try_echo
=$ac_try;;
8201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8202 (eval "$ac_compile") 2>conftest.er1
8204 grep -v '^ *+' conftest.er1
>conftest.err
8206 cat conftest.err
>&5
8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8208 (exit $ac_status); } && {
8209 test -z "$ac_c_werror_flag" ||
8210 test ! -s conftest.err
8211 } && test -s conftest.
$ac_objext; then
8212 ac_cv_member_struct_ifreq_ifr_flags
=yes
8214 echo "$as_me: failed program was:" >&5
8215 sed 's/^/| /' conftest.
$ac_ext >&5
8217 ac_cv_member_struct_ifreq_ifr_flags
=no
8220 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8225 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8226 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8227 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8229 cat >>confdefs.h
<<_ACEOF
8230 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8235 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8236 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8237 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8238 echo $ECHO_N "(cached) $ECHO_C" >&6
8240 cat >conftest.
$ac_ext <<_ACEOF
8243 cat confdefs.h
>>conftest.
$ac_ext
8244 cat >>conftest.
$ac_ext <<_ACEOF
8245 /* end confdefs.h. */
8246 $ac_includes_default
8247 #if HAVE_SYS_SOCKET_H
8248 #include <sys/socket.h>
8257 static struct ifreq ac_aggr;
8258 if (ac_aggr.ifr_hwaddr)
8264 rm -f conftest.
$ac_objext
8265 if { (ac_try
="$ac_compile"
8267 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8268 *) ac_try_echo=$ac_try;;
8270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8271 (eval "$ac_compile") 2>conftest.er1
8273 grep -v '^ *+' conftest.er1 >conftest.err
8275 cat conftest.err >&5
8276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8277 (exit $ac_status); } && {
8278 test -z "$ac_c_werror_flag" ||
8279 test ! -s conftest.err
8280 } && test -s conftest.$ac_objext; then
8281 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8283 echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8286 cat >conftest.$ac_ext <<_ACEOF
8289 cat confdefs.h >>conftest.$ac_ext
8290 cat >>conftest.$ac_ext <<_ACEOF
8291 /* end confdefs.h. */
8292 $ac_includes_default
8293 #if HAVE_SYS_SOCKET_H
8294 #include <sys/socket.h>
8303 static struct ifreq ac_aggr;
8304 if (sizeof ac_aggr.ifr_hwaddr)
8310 rm -f conftest.$ac_objext
8311 if { (ac_try="$ac_compile"
8313 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8314 *) ac_try_echo
=$ac_try;;
8316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8317 (eval "$ac_compile") 2>conftest.er1
8319 grep -v '^ *+' conftest.er1
>conftest.err
8321 cat conftest.err
>&5
8322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8323 (exit $ac_status); } && {
8324 test -z "$ac_c_werror_flag" ||
8325 test ! -s conftest.err
8326 } && test -s conftest.
$ac_objext; then
8327 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8329 echo "$as_me: failed program was:" >&5
8330 sed 's/^/| /' conftest.
$ac_ext >&5
8332 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8335 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8338 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8340 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8341 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8342 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8344 cat >>confdefs.h
<<_ACEOF
8345 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8350 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8351 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8352 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8353 echo $ECHO_N "(cached) $ECHO_C" >&6
8355 cat >conftest.
$ac_ext <<_ACEOF
8358 cat confdefs.h
>>conftest.
$ac_ext
8359 cat >>conftest.
$ac_ext <<_ACEOF
8360 /* end confdefs.h. */
8361 $ac_includes_default
8362 #if HAVE_SYS_SOCKET_H
8363 #include <sys/socket.h>
8372 static struct ifreq ac_aggr;
8373 if (ac_aggr.ifr_netmask)
8379 rm -f conftest.
$ac_objext
8380 if { (ac_try
="$ac_compile"
8382 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8383 *) ac_try_echo=$ac_try;;
8385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8386 (eval "$ac_compile") 2>conftest.er1
8388 grep -v '^ *+' conftest.er1 >conftest.err
8390 cat conftest.err >&5
8391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8392 (exit $ac_status); } && {
8393 test -z "$ac_c_werror_flag" ||
8394 test ! -s conftest.err
8395 } && test -s conftest.$ac_objext; then
8396 ac_cv_member_struct_ifreq_ifr_netmask=yes
8398 echo "$as_me: failed program was:" >&5
8399 sed 's/^/| /' conftest.$ac_ext >&5
8401 cat >conftest.$ac_ext <<_ACEOF
8404 cat confdefs.h >>conftest.$ac_ext
8405 cat >>conftest.$ac_ext <<_ACEOF
8406 /* end confdefs.h. */
8407 $ac_includes_default
8408 #if HAVE_SYS_SOCKET_H
8409 #include <sys/socket.h>
8418 static struct ifreq ac_aggr;
8419 if (sizeof ac_aggr.ifr_netmask)
8425 rm -f conftest.$ac_objext
8426 if { (ac_try="$ac_compile"
8428 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8429 *) ac_try_echo
=$ac_try;;
8431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8432 (eval "$ac_compile") 2>conftest.er1
8434 grep -v '^ *+' conftest.er1
>conftest.err
8436 cat conftest.err
>&5
8437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8438 (exit $ac_status); } && {
8439 test -z "$ac_c_werror_flag" ||
8440 test ! -s conftest.err
8441 } && test -s conftest.
$ac_objext; then
8442 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8444 echo "$as_me: failed program was:" >&5
8445 sed 's/^/| /' conftest.
$ac_ext >&5
8447 ac_cv_member_struct_ifreq_ifr_netmask
=no
8450 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8453 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8455 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8456 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8457 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8459 cat >>confdefs.h
<<_ACEOF
8460 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8465 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8466 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8467 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8468 echo $ECHO_N "(cached) $ECHO_C" >&6
8470 cat >conftest.
$ac_ext <<_ACEOF
8473 cat confdefs.h
>>conftest.
$ac_ext
8474 cat >>conftest.
$ac_ext <<_ACEOF
8475 /* end confdefs.h. */
8476 $ac_includes_default
8477 #if HAVE_SYS_SOCKET_H
8478 #include <sys/socket.h>
8487 static struct ifreq ac_aggr;
8488 if (ac_aggr.ifr_broadaddr)
8494 rm -f conftest.
$ac_objext
8495 if { (ac_try
="$ac_compile"
8497 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8498 *) ac_try_echo=$ac_try;;
8500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8501 (eval "$ac_compile") 2>conftest.er1
8503 grep -v '^ *+' conftest.er1 >conftest.err
8505 cat conftest.err >&5
8506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8507 (exit $ac_status); } && {
8508 test -z "$ac_c_werror_flag" ||
8509 test ! -s conftest.err
8510 } && test -s conftest.$ac_objext; then
8511 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8513 echo "$as_me: failed program was:" >&5
8514 sed 's/^/| /' conftest.$ac_ext >&5
8516 cat >conftest.$ac_ext <<_ACEOF
8519 cat confdefs.h >>conftest.$ac_ext
8520 cat >>conftest.$ac_ext <<_ACEOF
8521 /* end confdefs.h. */
8522 $ac_includes_default
8523 #if HAVE_SYS_SOCKET_H
8524 #include <sys/socket.h>
8533 static struct ifreq ac_aggr;
8534 if (sizeof ac_aggr.ifr_broadaddr)
8540 rm -f conftest.$ac_objext
8541 if { (ac_try="$ac_compile"
8543 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8544 *) ac_try_echo
=$ac_try;;
8546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8547 (eval "$ac_compile") 2>conftest.er1
8549 grep -v '^ *+' conftest.er1
>conftest.err
8551 cat conftest.err
>&5
8552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8553 (exit $ac_status); } && {
8554 test -z "$ac_c_werror_flag" ||
8555 test ! -s conftest.err
8556 } && test -s conftest.
$ac_objext; then
8557 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8559 echo "$as_me: failed program was:" >&5
8560 sed 's/^/| /' conftest.
$ac_ext >&5
8562 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8565 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8568 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8570 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8571 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8572 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8574 cat >>confdefs.h
<<_ACEOF
8575 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8580 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8581 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8582 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8585 cat >conftest.
$ac_ext <<_ACEOF
8588 cat confdefs.h
>>conftest.
$ac_ext
8589 cat >>conftest.
$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8591 $ac_includes_default
8592 #if HAVE_SYS_SOCKET_H
8593 #include <sys/socket.h>
8602 static struct ifreq ac_aggr;
8603 if (ac_aggr.ifr_addr)
8609 rm -f conftest.
$ac_objext
8610 if { (ac_try
="$ac_compile"
8612 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8613 *) ac_try_echo=$ac_try;;
8615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8616 (eval "$ac_compile") 2>conftest.er1
8618 grep -v '^ *+' conftest.er1 >conftest.err
8620 cat conftest.err >&5
8621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8622 (exit $ac_status); } && {
8623 test -z "$ac_c_werror_flag" ||
8624 test ! -s conftest.err
8625 } && test -s conftest.$ac_objext; then
8626 ac_cv_member_struct_ifreq_ifr_addr=yes
8628 echo "$as_me: failed program was:" >&5
8629 sed 's/^/| /' conftest.$ac_ext >&5
8631 cat >conftest.$ac_ext <<_ACEOF
8634 cat confdefs.h >>conftest.$ac_ext
8635 cat >>conftest.$ac_ext <<_ACEOF
8636 /* end confdefs.h. */
8637 $ac_includes_default
8638 #if HAVE_SYS_SOCKET_H
8639 #include <sys/socket.h>
8648 static struct ifreq ac_aggr;
8649 if (sizeof ac_aggr.ifr_addr)
8655 rm -f conftest.$ac_objext
8656 if { (ac_try="$ac_compile"
8658 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8659 *) ac_try_echo
=$ac_try;;
8661 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8662 (eval "$ac_compile") 2>conftest.er1
8664 grep -v '^ *+' conftest.er1
>conftest.err
8666 cat conftest.err
>&5
8667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8668 (exit $ac_status); } && {
8669 test -z "$ac_c_werror_flag" ||
8670 test ! -s conftest.err
8671 } && test -s conftest.
$ac_objext; then
8672 ac_cv_member_struct_ifreq_ifr_addr
=yes
8674 echo "$as_me: failed program was:" >&5
8675 sed 's/^/| /' conftest.
$ac_ext >&5
8677 ac_cv_member_struct_ifreq_ifr_addr
=no
8680 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8683 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8685 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8686 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8687 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8689 cat >>confdefs.h
<<_ACEOF
8690 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8698 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8699 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8700 if test "$ac_cv_prog_cc_c89" != no
; then
8701 { echo "$as_me:$LINENO: result: yes" >&5
8702 echo "${ECHO_T}yes" >&6; }
8704 cat >>confdefs.h
<<\_ACEOF
8705 #define PROTOTYPES 1
8709 cat >>confdefs.h
<<\_ACEOF
8710 #define __PROTOTYPES 1
8714 { echo "$as_me:$LINENO: result: no" >&5
8715 echo "${ECHO_T}no" >&6; }
8718 { echo "$as_me:$LINENO: checking for working volatile" >&5
8719 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8720 if test "${ac_cv_c_volatile+set}" = set; then
8721 echo $ECHO_N "(cached) $ECHO_C" >&6
8723 cat >conftest.
$ac_ext <<_ACEOF
8726 cat confdefs.h
>>conftest.
$ac_ext
8727 cat >>conftest.
$ac_ext <<_ACEOF
8728 /* end confdefs.h. */
8735 int * volatile y = (int *) 0;
8741 rm -f conftest.
$ac_objext
8742 if { (ac_try
="$ac_compile"
8744 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8745 *) ac_try_echo=$ac_try;;
8747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8748 (eval "$ac_compile") 2>conftest.er1
8750 grep -v '^ *+' conftest.er1 >conftest.err
8752 cat conftest.err >&5
8753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8754 (exit $ac_status); } && {
8755 test -z "$ac_c_werror_flag" ||
8756 test ! -s conftest.err
8757 } && test -s conftest.$ac_objext; then
8758 ac_cv_c_volatile=yes
8760 echo "$as_me: failed program was:" >&5
8761 sed 's/^/| /' conftest.$ac_ext >&5
8766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8768 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8769 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8770 if test $ac_cv_c_volatile = no; then
8772 cat >>confdefs.h <<\_ACEOF
8778 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8779 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8780 if test "${ac_cv_c_const+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8783 cat >conftest.$ac_ext <<_ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8793 /* FIXME: Include the comments suggested by Paul. */
8795 /* Ultrix mips cc rejects this. */
8796 typedef int charset[2];
8798 /* SunOS 4.1.1 cc rejects this. */
8799 char const *const *pcpcc;
8801 /* NEC SVR4.0.2 mips cc rejects this. */
8802 struct point {int x, y;};
8803 static struct point const zero = {0,0};
8804 /* AIX XL C 1.02.0.0 rejects this.
8805 It does not let you subtract one const X* pointer from another in
8806 an arm of an if-expression whose if-part is not a constant
8808 const char *g = "string";
8809 pcpcc = &g + (g ? g-g : 0);
8810 /* HPUX 7.0 cc rejects these. */
8812 ppc = (char**) pcpcc;
8813 pcpcc = (char const *const *) ppc;
8814 { /* SCO 3.2v4 cc rejects this. */
8816 char const *s = 0 ? (char *) 0 : (char const *) 0;
8821 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8823 const int *foo = &x[0];
8826 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8827 typedef const int *iptr;
8831 { /* AIX XL C 1.02.0.0 rejects this saying
8832 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8833 struct s { int j; const int *ap[3]; };
8834 struct s *b; b->j = 5;
8836 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8840 return !cs[0] && !zero.x;
8847 rm -f conftest.$ac_objext
8848 if { (ac_try="$ac_compile"
8850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8851 *) ac_try_echo
=$ac_try;;
8853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8854 (eval "$ac_compile") 2>conftest.er1
8856 grep -v '^ *+' conftest.er1
>conftest.err
8858 cat conftest.err
>&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 (exit $ac_status); } && {
8861 test -z "$ac_c_werror_flag" ||
8862 test ! -s conftest.err
8863 } && test -s conftest.
$ac_objext; then
8866 echo "$as_me: failed program was:" >&5
8867 sed 's/^/| /' conftest.
$ac_ext >&5
8872 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8874 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8875 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8876 if test $ac_cv_c_const = no
; then
8878 cat >>confdefs.h
<<\_ACEOF
8884 { echo "$as_me:$LINENO: checking for void * support" >&5
8885 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8886 if test "${emacs_cv_void_star+set}" = set; then
8887 echo $ECHO_N "(cached) $ECHO_C" >&6
8889 cat >conftest.
$ac_ext <<_ACEOF
8892 cat confdefs.h
>>conftest.
$ac_ext
8893 cat >>conftest.
$ac_ext <<_ACEOF
8894 /* end confdefs.h. */
8904 rm -f conftest.
$ac_objext
8905 if { (ac_try
="$ac_compile"
8907 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8908 *) ac_try_echo=$ac_try;;
8910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8911 (eval "$ac_compile") 2>conftest.er1
8913 grep -v '^ *+' conftest.er1 >conftest.err
8915 cat conftest.err >&5
8916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8917 (exit $ac_status); } && {
8918 test -z "$ac_c_werror_flag" ||
8919 test ! -s conftest.err
8920 } && test -s conftest.$ac_objext; then
8921 emacs_cv_void_star=yes
8923 echo "$as_me: failed program was:" >&5
8924 sed 's/^/| /' conftest.$ac_ext >&5
8926 emacs_cv_void_star=no
8929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8932 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8933 if test $emacs_cv_void_star = yes; then
8934 cat >>confdefs.h <<\_ACEOF
8935 #define POINTER_TYPE void
8939 cat >>confdefs.h <<\_ACEOF
8940 #define POINTER_TYPE char
8949 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8950 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8951 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8952 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8953 echo $ECHO_N "(cached) $ECHO_C" >&6
8955 cat >conftest.make <<\_ACEOF
8958 @echo '@@@%%%=$(MAKE)=@@@%%%'
8960 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8961 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8963 eval ac_cv_prog_make_${ac_make}_set=yes;;
8965 eval ac_cv_prog_make_${ac_make}_set=no;;
8969 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8970 { echo "$as_me:$LINENO: result: yes" >&5
8971 echo "${ECHO_T}yes" >&6; }
8974 { echo "$as_me:$LINENO: result: no" >&5
8975 echo "${ECHO_T}no" >&6; }
8976 SET_MAKE="MAKE=${MAKE-make}"
8980 { echo "$as_me:$LINENO: checking for long file names" >&5
8981 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8982 if test "${ac_cv_sys_long_file_names+set}" = set; then
8983 echo $ECHO_N "(cached) $ECHO_C" >&6
8985 ac_cv_sys_long_file_names=yes
8986 # Test for long file names in all the places we know might matter:
8987 # . the current directory, where building will happen
8988 # $prefix/lib where we will be installing things
8989 # $exec_prefix/lib likewise
8990 # $TMPDIR if set, where it might want to write temporary files
8991 # /tmp where it might want to write temporary files
8994 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8995 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8996 # in the usual case where exec_prefix is '${prefix}'.
8998 . | /* | ?:[\\/]*) ;; #(
9001 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9002 ac_xdir=$ac_dir/cf$$
9003 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9004 ac_tf1=$ac_xdir/conftest9012345
9005 ac_tf2=$ac_xdir/conftest9012346
9006 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9007 ac_cv_sys_long_file_names=no
9008 rm -f -r "$ac_xdir" 2>/dev/null
9009 test $ac_cv_sys_long_file_names = no && break
9012 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9013 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9014 if test $ac_cv_sys_long_file_names = yes; then
9016 cat >>confdefs.h <<\_ACEOF
9017 #define HAVE_LONG_FILE_NAMES 1
9023 #### Choose a window system.
9025 { echo "$as_me:$LINENO: checking for X" >&5
9026 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9029 # Check whether --with-x was given.
9030 if test "${with_x+set}" = set; then
9034 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9035 if test "x$with_x" = xno; then
9036 # The user explicitly disabled X.
9039 case $x_includes,$x_libraries in #(
9040 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9041 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9042 { (exit 1); exit 1; }; };; #(
9043 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9044 echo $ECHO_N "(cached) $ECHO_C" >&6
9046 # One or both of the vars are not set, and there is no cached value.
9047 ac_x_includes=no ac_x_libraries=no
9048 rm -f -r conftest.dir
9049 if mkdir conftest.dir; then
9051 cat >Imakefile <<'_ACEOF'
9053 @echo incroot='${INCROOT}'
9055 @echo usrlibdir='${USRLIBDIR}'
9057 @echo libdir='${LIBDIR}'
9059 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9060 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9061 for ac_var in incroot usrlibdir libdir; do
9062 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9064 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9065 for ac_extension in a so sl; do
9066 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9067 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9068 ac_im_usrlibdir=$ac_im_libdir; break
9071 # Screen out bogus values from the imake configuration. They are
9072 # bogus both because they are the default anyway, and because
9073 # using them would break gcc on systems where it needs fixed includes.
9074 case $ac_im_incroot in
9075 /usr/include) ac_x_includes= ;;
9076 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9078 case $ac_im_usrlibdir in
9080 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9084 rm -f -r conftest.dir
9087 # Standard set of common directories for X headers.
9088 # Check X11 before X11Rn because it is often a symlink to the current release.
9100 /usr/local/X11/include
9101 /usr/local/X11R6/include
9102 /usr/local/X11R5/include
9103 /usr/local/X11R4/include
9105 /usr/local/include/X11
9106 /usr/local/include/X11R6
9107 /usr/local/include/X11R5
9108 /usr/local/include/X11R4
9112 /usr/XFree86/include/X11
9116 /usr/unsupported/include
9118 /usr/local/x11r5/include
9119 /usr/lpp/Xamples/include
9121 /usr/openwin/include
9122 /usr/openwin/share/include'
9124 if test "$ac_x_includes" = no; then
9125 # Guess where to find include files, by looking for Xlib.h.
9126 # First, try using that file with no special directory specified.
9127 cat >conftest.$ac_ext <<_ACEOF
9130 cat confdefs.h >>conftest.$ac_ext
9131 cat >>conftest.$ac_ext <<_ACEOF
9132 /* end confdefs.h. */
9133 #include <X11/Xlib.h>
9135 if { (ac_try="$ac_cpp conftest.$ac_ext"
9137 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9138 *) ac_try_echo
=$ac_try;;
9140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9141 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9143 grep -v '^ *+' conftest.er1
>conftest.err
9145 cat conftest.err
>&5
9146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9147 (exit $ac_status); } >/dev
/null
&& {
9148 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9149 test ! -s conftest.err
9151 # We can compile using X headers with no special include directory.
9154 echo "$as_me: failed program was:" >&5
9155 sed 's/^/| /' conftest.
$ac_ext >&5
9157 for ac_dir
in $ac_x_header_dirs; do
9158 if test -r "$ac_dir/X11/Xlib.h"; then
9159 ac_x_includes
=$ac_dir
9165 rm -f conftest.err conftest.
$ac_ext
9166 fi # $ac_x_includes = no
9168 if test "$ac_x_libraries" = no
; then
9169 # Check for the libraries.
9170 # See if we find them without any special options.
9171 # Don't add to $LIBS permanently.
9174 cat >conftest.
$ac_ext <<_ACEOF
9177 cat confdefs.h
>>conftest.
$ac_ext
9178 cat >>conftest.
$ac_ext <<_ACEOF
9179 /* end confdefs.h. */
9180 #include <X11/Xlib.h>
9189 rm -f conftest.
$ac_objext conftest
$ac_exeext
9190 if { (ac_try
="$ac_link"
9192 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9193 *) ac_try_echo=$ac_try;;
9195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9196 (eval "$ac_link") 2>conftest.er1
9198 grep -v '^ *+' conftest.er1 >conftest.err
9200 cat conftest.err >&5
9201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9202 (exit $ac_status); } && {
9203 test -z "$ac_c_werror_flag" ||
9204 test ! -s conftest.err
9205 } && test -s conftest$ac_exeext &&
9206 $as_test_x conftest$ac_exeext; then
9208 # We can link X programs with no special library path.
9211 echo "$as_me: failed program was:" >&5
9212 sed 's/^/| /' conftest.$ac_ext >&5
9215 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9217 # Don't even attempt the hair of trying to link an X program!
9218 for ac_extension in a so sl; do
9219 if test -r "$ac_dir/libX11.$ac_extension"; then
9220 ac_x_libraries=$ac_dir
9227 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9228 conftest$ac_exeext conftest.$ac_ext
9229 fi # $ac_x_libraries = no
9231 case $ac_x_includes,$ac_x_libraries in #(
9233 # Didn't find X, or a directory has "'" in its name.
9234 ac_cv_have_x="have_x=no";; #(
9236 # Record where we found X for the cache.
9237 ac_cv_have_x="have_x=yes\
9238 ac_x_includes='$ac_x_includes'\
9239 ac_x_libraries='$ac_x_libraries'"
9245 eval "$ac_cv_have_x"
9248 if test "$have_x" != yes; then
9249 { echo "$as_me:$LINENO: result: $have_x" >&5
9250 echo "${ECHO_T}$have_x" >&6; }
9253 # If each of the values was on the command line, it overrides each guess.
9254 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9255 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9256 # Update the cache value to reflect the command line values.
9257 ac_cv_have_x="have_x=yes\
9258 ac_x_includes='$x_includes'\
9259 ac_x_libraries='$x_libraries'"
9260 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9261 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9264 if test "$no_x" = yes; then
9270 if test "${x_libraries}" != NONE; then
9271 if test -n "${x_libraries}"; then
9272 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9273 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9275 x_default_search_path=""
9276 x_search_path=${x_libraries}
9277 if test -z "${x_search_path}"; then
9278 x_search_path=/usr/lib
9280 for x_library in `echo ${x_search_path}: | \
9281 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9283 ${x_library}/X11/%L/%T/%N%C%S:\
9284 ${x_library}/X11/%l/%T/%N%C%S:\
9285 ${x_library}/X11/%T/%N%C%S:\
9286 ${x_library}/X11/%L/%T/%N%S:\
9287 ${x_library}/X11/%l/%T/%N%S:\
9288 ${x_library}/X11/%T/%N%S"
9289 if test x"${x_default_search_path}" = x; then
9290 x_default_search_path=${x_search_path}
9292 x_default_search_path="${x_search_path}:${x_default_search_path}"
9296 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9297 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9300 if test x"${x_includes}" = x; then
9301 bitmapdir=/usr/include/X11/bitmaps
9303 # accumulate include directories that have X11 bitmap subdirectories
9305 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9306 if test -d "${bmd}/X11/bitmaps"; then
9307 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9309 if test -d "${bmd}/bitmaps"; then
9310 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9313 if test ${bmd_acc} != "dummyval"; then
9314 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9319 if test "${with_carbon}" != no; then
9320 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9321 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9322 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9323 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9324 echo $ECHO_N "(cached) $ECHO_C" >&6
9326 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9327 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9329 # Is the header compilable?
9330 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9331 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9332 cat >conftest.$ac_ext <<_ACEOF
9335 cat confdefs.h >>conftest.$ac_ext
9336 cat >>conftest.$ac_ext <<_ACEOF
9337 /* end confdefs.h. */
9338 $ac_includes_default
9339 #include <Carbon/Carbon.h>
9341 rm -f conftest.$ac_objext
9342 if { (ac_try="$ac_compile"
9344 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9345 *) ac_try_echo
=$ac_try;;
9347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9348 (eval "$ac_compile") 2>conftest.er1
9350 grep -v '^ *+' conftest.er1
>conftest.err
9352 cat conftest.err
>&5
9353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9354 (exit $ac_status); } && {
9355 test -z "$ac_c_werror_flag" ||
9356 test ! -s conftest.err
9357 } && test -s conftest.
$ac_objext; then
9358 ac_header_compiler
=yes
9360 echo "$as_me: failed program was:" >&5
9361 sed 's/^/| /' conftest.
$ac_ext >&5
9363 ac_header_compiler
=no
9366 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9367 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9368 echo "${ECHO_T}$ac_header_compiler" >&6; }
9370 # Is the header present?
9371 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9372 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9373 cat >conftest.
$ac_ext <<_ACEOF
9376 cat confdefs.h
>>conftest.
$ac_ext
9377 cat >>conftest.
$ac_ext <<_ACEOF
9378 /* end confdefs.h. */
9379 #include <Carbon/Carbon.h>
9381 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9383 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9384 *) ac_try_echo=$ac_try;;
9386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9389 grep -v '^ *+' conftest.er1 >conftest.err
9391 cat conftest.err >&5
9392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9393 (exit $ac_status); } >/dev/null && {
9394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9395 test ! -s conftest.err
9397 ac_header_preproc=yes
9399 echo "$as_me: failed program was:" >&5
9400 sed 's/^/| /' conftest.$ac_ext >&5
9402 ac_header_preproc=no
9405 rm -f conftest.err conftest.$ac_ext
9406 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9407 echo "${ECHO_T}$ac_header_preproc" >&6; }
9409 # So? What about this header?
9410 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9412 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9413 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9414 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9415 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9416 ac_header_preproc=yes
9419 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9420 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9421 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9422 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9423 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9424 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9425 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9426 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9427 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9428 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9429 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9430 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9434 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9435 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9436 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9437 echo $ECHO_N "(cached) $ECHO_C" >&6
9439 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9441 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9442 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9445 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9451 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9452 if test "${with_carbon+set}" != set \
9453 && test "${carbon_appdir_x+set}" != set; then
9454 for var in with_x with_x_toolkit with_gtk with_xim \
9455 with_xpm with_jpeg with_tiff with_gif with_png; do
9456 if eval test \"\${$var+set}\" = set; then
9463 if test "${HAVE_CARBON}" = yes; then
9467 case "${window_system}" in
9471 case "${with_x_toolkit}" in
9472 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9473 motif ) USE_X_TOOLKIT=MOTIF ;;
9475 USE_X_TOOLKIT=none ;;
9476 no ) USE_X_TOOLKIT=none ;;
9477 * ) USE_X_TOOLKIT=maybe ;;
9487 ### If we're using X11, we should use the X menu package.
9490 yes ) HAVE_MENUS=yes ;;
9493 if test "${opsys}" = "hpux9"; then
9494 case "${x_libraries}" in
9496 opsysfile="s/hpux9-x11r4.h"
9501 if test "${opsys}" = "hpux9shr"; then
9502 case "${x_libraries}" in
9504 opsysfile="s/hpux9shxr4.h"
9509 ### Compute the unexec source name from the object name.
9510 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9512 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9513 # Assume not, until told otherwise.
9516 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9517 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9518 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9519 echo $ECHO_N "(cached) $ECHO_C" >&6
9521 cat >conftest.$ac_ext <<_ACEOF
9524 cat confdefs.h >>conftest.$ac_ext
9525 cat >>conftest.$ac_ext <<_ACEOF
9526 /* end confdefs.h. */
9527 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9528 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9529 #define malloc_get_state innocuous_malloc_get_state
9531 /* System header to define __stub macros and hopefully few prototypes,
9532 which can conflict with char malloc_get_state (); below.
9533 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9534 <limits.h> exists even on freestanding compilers. */
9537 # include <limits.h>
9539 # include <assert.h>
9542 #undef malloc_get_state
9544 /* Override any GCC internal prototype to avoid an error.
9545 Use char because int might match the return type of a GCC
9546 builtin and then its argument prototype would still apply. */
9550 char malloc_get_state ();
9551 /* The GNU C library defines this for functions which it implements
9552 to always fail with ENOSYS. Some functions are actually named
9553 something starting with __ and the normal name is an alias. */
9554 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9561 return malloc_get_state ();
9566 rm -f conftest.$ac_objext conftest$ac_exeext
9567 if { (ac_try="$ac_link"
9569 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9570 *) ac_try_echo
=$ac_try;;
9572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9573 (eval "$ac_link") 2>conftest.er1
9575 grep -v '^ *+' conftest.er1
>conftest.err
9577 cat conftest.err
>&5
9578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9579 (exit $ac_status); } && {
9580 test -z "$ac_c_werror_flag" ||
9581 test ! -s conftest.err
9582 } && test -s conftest
$ac_exeext &&
9583 $as_test_x conftest
$ac_exeext; then
9584 ac_cv_func_malloc_get_state
=yes
9586 echo "$as_me: failed program was:" >&5
9587 sed 's/^/| /' conftest.
$ac_ext >&5
9589 ac_cv_func_malloc_get_state
=no
9592 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9593 conftest
$ac_exeext conftest.
$ac_ext
9595 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9596 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9597 if test $ac_cv_func_malloc_get_state = yes; then
9603 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9604 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9605 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9606 echo $ECHO_N "(cached) $ECHO_C" >&6
9608 cat >conftest.
$ac_ext <<_ACEOF
9611 cat confdefs.h
>>conftest.
$ac_ext
9612 cat >>conftest.
$ac_ext <<_ACEOF
9613 /* end confdefs.h. */
9614 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9615 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9616 #define malloc_set_state innocuous_malloc_set_state
9618 /* System header to define __stub macros and hopefully few prototypes,
9619 which can conflict with char malloc_set_state (); below.
9620 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9621 <limits.h> exists even on freestanding compilers. */
9624 # include <limits.h>
9626 # include <assert.h>
9629 #undef malloc_set_state
9631 /* Override any GCC internal prototype to avoid an error.
9632 Use char because int might match the return type of a GCC
9633 builtin and then its argument prototype would still apply. */
9637 char malloc_set_state ();
9638 /* The GNU C library defines this for functions which it implements
9639 to always fail with ENOSYS. Some functions are actually named
9640 something starting with __ and the normal name is an alias. */
9641 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9648 return malloc_set_state ();
9653 rm -f conftest.
$ac_objext conftest
$ac_exeext
9654 if { (ac_try
="$ac_link"
9656 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9657 *) ac_try_echo=$ac_try;;
9659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9660 (eval "$ac_link") 2>conftest.er1
9662 grep -v '^ *+' conftest.er1 >conftest.err
9664 cat conftest.err >&5
9665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9666 (exit $ac_status); } && {
9667 test -z "$ac_c_werror_flag" ||
9668 test ! -s conftest.err
9669 } && test -s conftest$ac_exeext &&
9670 $as_test_x conftest$ac_exeext; then
9671 ac_cv_func_malloc_set_state=yes
9673 echo "$as_me: failed program was:" >&5
9674 sed 's/^/| /' conftest.$ac_ext >&5
9676 ac_cv_func_malloc_set_state=no
9679 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9680 conftest$ac_exeext conftest.$ac_ext
9682 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9683 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9684 if test $ac_cv_func_malloc_set_state = yes; then
9690 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9691 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9692 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9693 echo $ECHO_N "(cached) $ECHO_C" >&6
9695 cat >conftest.$ac_ext <<_ACEOF
9698 cat confdefs.h >>conftest.$ac_ext
9699 cat >>conftest.$ac_ext <<_ACEOF
9700 /* end confdefs.h. */
9701 extern void (* __after_morecore_hook)();
9705 __after_morecore_hook = 0
9710 rm -f conftest.$ac_objext conftest$ac_exeext
9711 if { (ac_try="$ac_link"
9713 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9714 *) ac_try_echo
=$ac_try;;
9716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9717 (eval "$ac_link") 2>conftest.er1
9719 grep -v '^ *+' conftest.er1
>conftest.err
9721 cat conftest.err
>&5
9722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9723 (exit $ac_status); } && {
9724 test -z "$ac_c_werror_flag" ||
9725 test ! -s conftest.err
9726 } && test -s conftest
$ac_exeext &&
9727 $as_test_x conftest
$ac_exeext; then
9728 emacs_cv_var___after_morecore_hook
=yes
9730 echo "$as_me: failed program was:" >&5
9731 sed 's/^/| /' conftest.
$ac_ext >&5
9733 emacs_cv_var___after_morecore_hook
=no
9736 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9737 conftest
$ac_exeext conftest.
$ac_ext
9739 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9740 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9741 if test $emacs_cv_var___after_morecore_hook = no
; then
9744 if test "${system_malloc}" = "yes"; then
9747 (The GNU allocators don't work with this system configuration.)"
9749 if test "$doug_lea_malloc" = "yes" ; then
9750 if test "$GNU_MALLOC" = yes ; then
9752 (Using Doug Lea's new malloc from the GNU C Library.)"
9755 cat >>confdefs.h
<<\_ACEOF
9756 #define DOUG_LEA_MALLOC 1
9761 if test x
"${REL_ALLOC}" = x
; then
9762 REL_ALLOC
=${GNU_MALLOC}
9768 for ac_header
in stdlib.h unistd.h
9770 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9771 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9774 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9775 echo $ECHO_N "(cached) $ECHO_C" >&6
9777 ac_res
=`eval echo '${'$as_ac_Header'}'`
9778 { echo "$as_me:$LINENO: result: $ac_res" >&5
9779 echo "${ECHO_T}$ac_res" >&6; }
9781 # Is the header compilable?
9782 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9783 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9784 cat >conftest.
$ac_ext <<_ACEOF
9787 cat confdefs.h
>>conftest.
$ac_ext
9788 cat >>conftest.
$ac_ext <<_ACEOF
9789 /* end confdefs.h. */
9790 $ac_includes_default
9791 #include <$ac_header>
9793 rm -f conftest.
$ac_objext
9794 if { (ac_try
="$ac_compile"
9796 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9797 *) ac_try_echo=$ac_try;;
9799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9800 (eval "$ac_compile") 2>conftest.er1
9802 grep -v '^ *+' conftest.er1 >conftest.err
9804 cat conftest.err >&5
9805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9806 (exit $ac_status); } && {
9807 test -z "$ac_c_werror_flag" ||
9808 test ! -s conftest.err
9809 } && test -s conftest.$ac_objext; then
9810 ac_header_compiler=yes
9812 echo "$as_me: failed program was:" >&5
9813 sed 's/^/| /' conftest.$ac_ext >&5
9815 ac_header_compiler=no
9818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9820 echo "${ECHO_T}$ac_header_compiler" >&6; }
9822 # Is the header present?
9823 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9824 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9825 cat >conftest.$ac_ext <<_ACEOF
9828 cat confdefs.h >>conftest.$ac_ext
9829 cat >>conftest.$ac_ext <<_ACEOF
9830 /* end confdefs.h. */
9831 #include <$ac_header>
9833 if { (ac_try="$ac_cpp conftest.$ac_ext"
9835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9836 *) ac_try_echo
=$ac_try;;
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9841 grep -v '^ *+' conftest.er1
>conftest.err
9843 cat conftest.err
>&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } >/dev
/null
&& {
9846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9847 test ! -s conftest.err
9849 ac_header_preproc
=yes
9851 echo "$as_me: failed program was:" >&5
9852 sed 's/^/| /' conftest.
$ac_ext >&5
9854 ac_header_preproc
=no
9857 rm -f conftest.err conftest.
$ac_ext
9858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9859 echo "${ECHO_T}$ac_header_preproc" >&6; }
9861 # So? What about this header?
9862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9864 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9865 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9866 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9867 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9868 ac_header_preproc
=yes
9871 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9872 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9873 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9874 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9875 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9876 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9877 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9878 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9879 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9880 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9881 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9882 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9886 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9888 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9889 echo $ECHO_N "(cached) $ECHO_C" >&6
9891 eval "$as_ac_Header=\$ac_header_preproc"
9893 ac_res
=`eval echo '${'$as_ac_Header'}'`
9894 { echo "$as_me:$LINENO: result: $ac_res" >&5
9895 echo "${ECHO_T}$ac_res" >&6; }
9898 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9899 cat >>confdefs.h
<<_ACEOF
9900 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9908 for ac_func
in getpagesize
9910 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9911 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9912 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9913 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9914 echo $ECHO_N "(cached) $ECHO_C" >&6
9916 cat >conftest.
$ac_ext <<_ACEOF
9919 cat confdefs.h
>>conftest.
$ac_ext
9920 cat >>conftest.
$ac_ext <<_ACEOF
9921 /* end confdefs.h. */
9922 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9923 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9924 #define $ac_func innocuous_$ac_func
9926 /* System header to define __stub macros and hopefully few prototypes,
9927 which can conflict with char $ac_func (); below.
9928 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9929 <limits.h> exists even on freestanding compilers. */
9932 # include <limits.h>
9934 # include <assert.h>
9939 /* Override any GCC internal prototype to avoid an error.
9940 Use char because int might match the return type of a GCC
9941 builtin and then its argument prototype would still apply. */
9946 /* The GNU C library defines this for functions which it implements
9947 to always fail with ENOSYS. Some functions are actually named
9948 something starting with __ and the normal name is an alias. */
9949 #if defined __stub_$ac_func || defined __stub___$ac_func
9961 rm -f conftest.
$ac_objext conftest
$ac_exeext
9962 if { (ac_try
="$ac_link"
9964 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_link") 2>conftest.er1
9970 grep -v '^ *+' conftest.er1 >conftest.err
9972 cat conftest.err >&5
9973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9974 (exit $ac_status); } && {
9975 test -z "$ac_c_werror_flag" ||
9976 test ! -s conftest.err
9977 } && test -s conftest$ac_exeext &&
9978 $as_test_x conftest$ac_exeext; then
9979 eval "$as_ac_var=yes"
9981 echo "$as_me: failed program was:" >&5
9982 sed 's/^/| /' conftest.$ac_ext >&5
9984 eval "$as_ac_var=no"
9987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9988 conftest$ac_exeext conftest.$ac_ext
9990 ac_res=`eval echo '${'$as_ac_var'}'`
9991 { echo "$as_me:$LINENO: result: $ac_res" >&5
9992 echo "${ECHO_T}$ac_res" >&6; }
9993 if test `eval echo '${'$as_ac_var'}'` = yes; then
9994 cat >>confdefs.h <<_ACEOF
9995 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10001 { echo "$as_me:$LINENO: checking for working mmap" >&5
10002 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10003 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10004 echo $ECHO_N "(cached) $ECHO_C" >&6
10006 if test "$cross_compiling" = yes; then
10007 ac_cv_func_mmap_fixed_mapped=no
10009 cat >conftest.$ac_ext <<_ACEOF
10012 cat confdefs.h >>conftest.$ac_ext
10013 cat >>conftest.$ac_ext <<_ACEOF
10014 /* end confdefs.h. */
10015 $ac_includes_default
10016 /* malloc might have been renamed as rpl_malloc. */
10019 /* Thanks to Mike Haertel and Jim Avera for this test.
10020 Here is a matrix of mmap possibilities:
10021 mmap private not fixed
10022 mmap private fixed at somewhere currently unmapped
10023 mmap private fixed at somewhere already mapped
10024 mmap shared not fixed
10025 mmap shared fixed at somewhere currently unmapped
10026 mmap shared fixed at somewhere already mapped
10027 For private mappings, we should verify that changes cannot be read()
10028 back from the file, nor mmap's back from the file at a different
10029 address. (There have been systems where private was not correctly
10030 implemented like the infamous i386 svr4.0, and systems where the
10031 VM page cache was not coherent with the file system buffer cache
10032 like early versions of FreeBSD and possibly contemporary NetBSD.)
10033 For shared mappings, we should conversely verify that changes get
10034 propagated back to all the places they're supposed to be.
10036 Grep wants private fixed already mapped.
10037 The main things grep needs to know about mmap are:
10038 * does it exist and is it safe to write into the mmap'd area
10039 * how to use it (BSD variants) */
10042 #include <sys/mman.h>
10044 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10048 /* This mess was copied from the GNU getpagesize.h. */
10049 #ifndef HAVE_GETPAGESIZE
10050 /* Assume that all systems that can run configure have sys/param.h. */
10051 # ifndef HAVE_SYS_PARAM_H
10052 # define HAVE_SYS_PARAM_H 1
10055 # ifdef _SC_PAGESIZE
10056 # define getpagesize() sysconf(_SC_PAGESIZE)
10057 # else /* no _SC_PAGESIZE */
10058 # ifdef HAVE_SYS_PARAM_H
10059 # include <sys/param.h>
10060 # ifdef EXEC_PAGESIZE
10061 # define getpagesize() EXEC_PAGESIZE
10062 # else /* no EXEC_PAGESIZE */
10064 # define getpagesize() NBPG * CLSIZE
10067 # endif /* no CLSIZE */
10068 # else /* no NBPG */
10070 # define getpagesize() NBPC
10071 # else /* no NBPC */
10073 # define getpagesize() PAGESIZE
10074 # endif /* PAGESIZE */
10075 # endif /* no NBPC */
10076 # endif /* no NBPG */
10077 # endif /* no EXEC_PAGESIZE */
10078 # else /* no HAVE_SYS_PARAM_H */
10079 # define getpagesize() 8192 /* punt totally */
10080 # endif /* no HAVE_SYS_PARAM_H */
10081 # endif /* no _SC_PAGESIZE */
10083 #endif /* no HAVE_GETPAGESIZE */
10088 char *data, *data2, *data3;
10092 pagesize = getpagesize ();
10094 /* First, make a file with some known garbage in it. */
10095 data = (char *) malloc (pagesize);
10098 for (i = 0; i < pagesize; ++i)
10099 *(data + i) = rand ();
10101 fd = creat ("conftest.mmap", 0600);
10104 if (write (fd, data, pagesize) != pagesize)
10108 /* Next, try to mmap the file at a fixed address which already has
10109 something else allocated at it. If we can, also make sure that
10110 we see the same garbage. */
10111 fd = open ("conftest.mmap", O_RDWR);
10114 data2 = (char *) malloc (2 * pagesize);
10117 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10118 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10119 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10121 for (i = 0; i < pagesize; ++i)
10122 if (*(data + i) != *(data2 + i))
10125 /* Finally, make sure that changes to the mapped area do not
10126 percolate back to the file as seen by read(). (This is a bug on
10127 some variants of i386 svr4.0.) */
10128 for (i = 0; i < pagesize; ++i)
10129 *(data2 + i) = *(data2 + i) + 1;
10130 data3 = (char *) malloc (pagesize);
10133 if (read (fd, data3, pagesize) != pagesize)
10135 for (i = 0; i < pagesize; ++i)
10136 if (*(data + i) != *(data3 + i))
10142 rm -f conftest$ac_exeext
10143 if { (ac_try="$ac_link"
10144 case "(($ac_try" in
10145 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10146 *) ac_try_echo
=$ac_try;;
10148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10149 (eval "$ac_link") 2>&5
10151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10152 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10153 { (case "(($ac_try" in
10154 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10155 *) ac_try_echo=$ac_try;;
10157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10158 (eval "$ac_try") 2>&5
10160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10161 (exit $ac_status); }; }; then
10162 ac_cv_func_mmap_fixed_mapped=yes
10164 echo "$as_me: program exited with status $ac_status" >&5
10165 echo "$as_me: failed program was:" >&5
10166 sed 's/^/| /' conftest.$ac_ext >&5
10168 ( exit $ac_status )
10169 ac_cv_func_mmap_fixed_mapped=no
10171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10176 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10177 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10178 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10180 cat >>confdefs.h <<\_ACEOF
10181 #define HAVE_MMAP 1
10185 rm -f conftest.mmap
10187 if test $use_mmap_for_buffers = yes; then
10191 LIBS="$libsrc_libs $LIBS"
10194 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10195 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10196 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10197 echo $ECHO_N "(cached) $ECHO_C" >&6
10199 ac_check_lib_save_LIBS=$LIBS
10200 LIBS="-ldnet $LIBS"
10201 cat >conftest.$ac_ext <<_ACEOF
10204 cat confdefs.h >>conftest.$ac_ext
10205 cat >>conftest.$ac_ext <<_ACEOF
10206 /* end confdefs.h. */
10208 /* Override any GCC internal prototype to avoid an error.
10209 Use char because int might match the return type of a GCC
10210 builtin and then its argument prototype would still apply. */
10218 return dnet_ntoa ();
10223 rm -f conftest.$ac_objext conftest$ac_exeext
10224 if { (ac_try="$ac_link"
10225 case "(($ac_try" in
10226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10227 *) ac_try_echo
=$ac_try;;
10229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10230 (eval "$ac_link") 2>conftest.er1
10232 grep -v '^ *+' conftest.er1
>conftest.err
10234 cat conftest.err
>&5
10235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10236 (exit $ac_status); } && {
10237 test -z "$ac_c_werror_flag" ||
10238 test ! -s conftest.err
10239 } && test -s conftest
$ac_exeext &&
10240 $as_test_x conftest
$ac_exeext; then
10241 ac_cv_lib_dnet_dnet_ntoa
=yes
10243 echo "$as_me: failed program was:" >&5
10244 sed 's/^/| /' conftest.
$ac_ext >&5
10246 ac_cv_lib_dnet_dnet_ntoa
=no
10249 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10250 conftest
$ac_exeext conftest.
$ac_ext
10251 LIBS
=$ac_check_lib_save_LIBS
10253 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10254 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10255 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10256 cat >>confdefs.h
<<_ACEOF
10257 #define HAVE_LIBDNET 1
10260 LIBS
="-ldnet $LIBS"
10265 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10266 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10267 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10268 echo $ECHO_N "(cached) $ECHO_C" >&6
10270 ac_check_lib_save_LIBS
=$LIBS
10271 LIBS
="-lXbsd $LIBS"
10272 cat >conftest.
$ac_ext <<_ACEOF
10275 cat confdefs.h
>>conftest.
$ac_ext
10276 cat >>conftest.
$ac_ext <<_ACEOF
10277 /* end confdefs.h. */
10288 rm -f conftest.
$ac_objext conftest
$ac_exeext
10289 if { (ac_try
="$ac_link"
10290 case "(($ac_try" in
10291 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10292 *) ac_try_echo=$ac_try;;
10294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10295 (eval "$ac_link") 2>conftest.er1
10297 grep -v '^ *+' conftest.er1 >conftest.err
10299 cat conftest.err >&5
10300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10301 (exit $ac_status); } && {
10302 test -z "$ac_c_werror_flag" ||
10303 test ! -s conftest.err
10304 } && test -s conftest$ac_exeext &&
10305 $as_test_x conftest$ac_exeext; then
10306 ac_cv_lib_Xbsd_main=yes
10308 echo "$as_me: failed program was:" >&5
10309 sed 's/^/| /' conftest.$ac_ext >&5
10311 ac_cv_lib_Xbsd_main=no
10314 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10315 conftest$ac_exeext conftest.$ac_ext
10316 LIBS=$ac_check_lib_save_LIBS
10318 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10319 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10320 if test $ac_cv_lib_Xbsd_main = yes; then
10321 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10326 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10327 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10328 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10329 echo $ECHO_N "(cached) $ECHO_C" >&6
10331 ac_check_lib_save_LIBS=$LIBS
10332 LIBS="-lpthreads $LIBS"
10333 cat >conftest.$ac_ext <<_ACEOF
10336 cat confdefs.h >>conftest.$ac_ext
10337 cat >>conftest.$ac_ext <<_ACEOF
10338 /* end confdefs.h. */
10340 /* Override any GCC internal prototype to avoid an error.
10341 Use char because int might match the return type of a GCC
10342 builtin and then its argument prototype would still apply. */
10350 return cma_open ();
10355 rm -f conftest.$ac_objext conftest$ac_exeext
10356 if { (ac_try="$ac_link"
10357 case "(($ac_try" in
10358 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10359 *) ac_try_echo
=$ac_try;;
10361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10362 (eval "$ac_link") 2>conftest.er1
10364 grep -v '^ *+' conftest.er1
>conftest.err
10366 cat conftest.err
>&5
10367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10368 (exit $ac_status); } && {
10369 test -z "$ac_c_werror_flag" ||
10370 test ! -s conftest.err
10371 } && test -s conftest
$ac_exeext &&
10372 $as_test_x conftest
$ac_exeext; then
10373 ac_cv_lib_pthreads_cma_open
=yes
10375 echo "$as_me: failed program was:" >&5
10376 sed 's/^/| /' conftest.
$ac_ext >&5
10378 ac_cv_lib_pthreads_cma_open
=no
10381 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10382 conftest
$ac_exeext conftest.
$ac_ext
10383 LIBS
=$ac_check_lib_save_LIBS
10385 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10386 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10387 if test $ac_cv_lib_pthreads_cma_open = yes; then
10388 cat >>confdefs.h
<<_ACEOF
10389 #define HAVE_LIBPTHREADS 1
10392 LIBS
="-lpthreads $LIBS"
10397 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10398 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10399 if test -d /usr
/X386
/include
; then
10401 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10405 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10406 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10411 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10412 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10413 if test "${gdb_cv_bigtoc+set}" = set; then
10414 echo $ECHO_N "(cached) $ECHO_C" >&6
10418 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10419 *) gdb_cv_bigtoc
=-bbigtoc ;;
10422 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10423 cat >conftest.
$ac_ext <<_ACEOF
10426 cat confdefs.h
>>conftest.
$ac_ext
10427 cat >>conftest.
$ac_ext <<_ACEOF
10428 /* end confdefs.h. */
10438 rm -f conftest.
$ac_objext conftest
$ac_exeext
10439 if { (ac_try
="$ac_link"
10440 case "(($ac_try" in
10441 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10442 *) ac_try_echo=$ac_try;;
10444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10445 (eval "$ac_link") 2>conftest.er1
10447 grep -v '^ *+' conftest.er1 >conftest.err
10449 cat conftest.err >&5
10450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10451 (exit $ac_status); } && {
10452 test -z "$ac_c_werror_flag" ||
10453 test ! -s conftest.err
10454 } && test -s conftest$ac_exeext &&
10455 $as_test_x conftest$ac_exeext; then
10458 echo "$as_me: failed program was:" >&5
10459 sed 's/^/| /' conftest.$ac_ext >&5
10464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10465 conftest$ac_exeext conftest.$ac_ext
10468 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10469 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10473 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10474 # used for the tests that follow. We set them back to REAL_CFLAGS and
10475 # REAL_CPPFLAGS later on.
10477 REAL_CPPFLAGS="$CPPFLAGS"
10479 if test "${HAVE_X11}" = "yes"; then
10480 DEFS="$C_SWITCH_X_SITE $DEFS"
10481 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10483 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10484 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10486 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10487 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10488 # but it's more convenient here to set LD_RUN_PATH
10489 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10490 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10491 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10495 if test "${opsys}" = "gnu-linux"; then
10496 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10497 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10498 cat >conftest.$ac_ext <<_ACEOF
10501 cat confdefs.h >>conftest.$ac_ext
10502 cat >>conftest.$ac_ext <<_ACEOF
10503 /* end confdefs.h. */
10508 XOpenDisplay ("foo");
10513 rm -f conftest.$ac_objext conftest$ac_exeext
10514 if { (ac_try="$ac_link"
10515 case "(($ac_try" in
10516 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10517 *) ac_try_echo
=$ac_try;;
10519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10520 (eval "$ac_link") 2>conftest.er1
10522 grep -v '^ *+' conftest.er1
>conftest.err
10524 cat conftest.err
>&5
10525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10526 (exit $ac_status); } && {
10527 test -z "$ac_c_werror_flag" ||
10528 test ! -s conftest.err
10529 } && test -s conftest
$ac_exeext &&
10530 $as_test_x conftest
$ac_exeext; then
10531 xlinux_first_failure
=no
10533 echo "$as_me: failed program was:" >&5
10534 sed 's/^/| /' conftest.
$ac_ext >&5
10536 xlinux_first_failure
=yes
10539 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10540 conftest
$ac_exeext conftest.
$ac_ext
10541 if test "${xlinux_first_failure}" = "yes"; then
10542 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10543 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10544 OLD_CPPFLAGS
="$CPPFLAGS"
10546 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10547 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10548 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10549 LIBS
="$LIBS -b i486-linuxaout"
10550 cat >conftest.
$ac_ext <<_ACEOF
10553 cat confdefs.h
>>conftest.
$ac_ext
10554 cat >>conftest.
$ac_ext <<_ACEOF
10555 /* end confdefs.h. */
10560 XOpenDisplay ("foo");
10565 rm -f conftest.
$ac_objext conftest
$ac_exeext
10566 if { (ac_try
="$ac_link"
10567 case "(($ac_try" in
10568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10569 *) ac_try_echo=$ac_try;;
10571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10572 (eval "$ac_link") 2>conftest.er1
10574 grep -v '^ *+' conftest.er1 >conftest.err
10576 cat conftest.err >&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); } && {
10579 test -z "$ac_c_werror_flag" ||
10580 test ! -s conftest.err
10581 } && test -s conftest$ac_exeext &&
10582 $as_test_x conftest$ac_exeext; then
10583 xlinux_second_failure=no
10585 echo "$as_me: failed program was:" >&5
10586 sed 's/^/| /' conftest.$ac_ext >&5
10588 xlinux_second_failure=yes
10591 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10592 conftest$ac_exeext conftest.$ac_ext
10593 if test "${xlinux_second_failure}" = "yes"; then
10594 # If we get the same failure with -b, there is no use adding -b.
10595 # So take it out. This plays safe.
10596 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10597 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10598 CPPFLAGS="$OLD_CPPFLAGS"
10600 { echo "$as_me:$LINENO: result: no" >&5
10601 echo "${ECHO_T}no" >&6; }
10603 { echo "$as_me:$LINENO: result: yes" >&5
10604 echo "${ECHO_T}yes" >&6; }
10607 { echo "$as_me:$LINENO: result: no" >&5
10608 echo "${ECHO_T}no" >&6; }
10612 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10613 # header files included from there.
10614 { echo "$as_me:$LINENO: checking for Xkb" >&5
10615 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10616 cat >conftest.$ac_ext <<_ACEOF
10619 cat confdefs.h >>conftest.$ac_ext
10620 cat >>conftest.$ac_ext <<_ACEOF
10621 /* end confdefs.h. */
10622 #include <X11/Xlib.h>
10623 #include <X11/XKBlib.h>
10627 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10632 rm -f conftest.$ac_objext conftest$ac_exeext
10633 if { (ac_try="$ac_link"
10634 case "(($ac_try" in
10635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10636 *) ac_try_echo
=$ac_try;;
10638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10639 (eval "$ac_link") 2>conftest.er1
10641 grep -v '^ *+' conftest.er1
>conftest.err
10643 cat conftest.err
>&5
10644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10645 (exit $ac_status); } && {
10646 test -z "$ac_c_werror_flag" ||
10647 test ! -s conftest.err
10648 } && test -s conftest
$ac_exeext &&
10649 $as_test_x conftest
$ac_exeext; then
10652 echo "$as_me: failed program was:" >&5
10653 sed 's/^/| /' conftest.
$ac_ext >&5
10658 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10659 conftest
$ac_exeext conftest.
$ac_ext
10660 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10661 echo "${ECHO_T}$emacs_xkb" >&6; }
10662 if test $emacs_xkb = yes; then
10664 cat >>confdefs.h
<<\_ACEOF
10665 #define HAVE_XKBGETKEYBOARD 1
10674 for ac_func
in XrmSetDatabase XScreenResourceString \
10675 XScreenNumberOfScreen XSetWMProtocols
10677 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10678 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10679 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10680 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10681 echo $ECHO_N "(cached) $ECHO_C" >&6
10683 cat >conftest.
$ac_ext <<_ACEOF
10686 cat confdefs.h
>>conftest.
$ac_ext
10687 cat >>conftest.
$ac_ext <<_ACEOF
10688 /* end confdefs.h. */
10689 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10690 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10691 #define $ac_func innocuous_$ac_func
10693 /* System header to define __stub macros and hopefully few prototypes,
10694 which can conflict with char $ac_func (); below.
10695 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10696 <limits.h> exists even on freestanding compilers. */
10699 # include <limits.h>
10701 # include <assert.h>
10706 /* Override any GCC internal prototype to avoid an error.
10707 Use char because int might match the return type of a GCC
10708 builtin and then its argument prototype would still apply. */
10713 /* The GNU C library defines this for functions which it implements
10714 to always fail with ENOSYS. Some functions are actually named
10715 something starting with __ and the normal name is an alias. */
10716 #if defined __stub_$ac_func || defined __stub___$ac_func
10723 return $ac_func ();
10728 rm -f conftest.
$ac_objext conftest
$ac_exeext
10729 if { (ac_try
="$ac_link"
10730 case "(($ac_try" in
10731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10732 *) ac_try_echo=$ac_try;;
10734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10735 (eval "$ac_link") 2>conftest.er1
10737 grep -v '^ *+' conftest.er1 >conftest.err
10739 cat conftest.err >&5
10740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10741 (exit $ac_status); } && {
10742 test -z "$ac_c_werror_flag" ||
10743 test ! -s conftest.err
10744 } && test -s conftest$ac_exeext &&
10745 $as_test_x conftest$ac_exeext; then
10746 eval "$as_ac_var=yes"
10748 echo "$as_me: failed program was:" >&5
10749 sed 's/^/| /' conftest.$ac_ext >&5
10751 eval "$as_ac_var=no"
10754 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10755 conftest$ac_exeext conftest.$ac_ext
10757 ac_res=`eval echo '${'$as_ac_var'}'`
10758 { echo "$as_me:$LINENO: result: $ac_res" >&5
10759 echo "${ECHO_T}$ac_res" >&6; }
10760 if test `eval echo '${'$as_ac_var'}'` = yes; then
10761 cat >>confdefs.h <<_ACEOF
10762 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10770 if test "${window_system}" = "x11"; then
10771 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10772 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10773 if test "${emacs_cv_x11_version_6+set}" = set; then
10774 echo $ECHO_N "(cached) $ECHO_C" >&6
10776 cat >conftest.$ac_ext <<_ACEOF
10779 cat confdefs.h >>conftest.$ac_ext
10780 cat >>conftest.$ac_ext <<_ACEOF
10781 /* end confdefs.h. */
10782 #include <X11/Xlib.h>
10786 #if XlibSpecificationRelease < 6
10794 rm -f conftest.$ac_objext conftest$ac_exeext
10795 if { (ac_try="$ac_link"
10796 case "(($ac_try" in
10797 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10798 *) ac_try_echo
=$ac_try;;
10800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10801 (eval "$ac_link") 2>conftest.er1
10803 grep -v '^ *+' conftest.er1
>conftest.err
10805 cat conftest.err
>&5
10806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10807 (exit $ac_status); } && {
10808 test -z "$ac_c_werror_flag" ||
10809 test ! -s conftest.err
10810 } && test -s conftest
$ac_exeext &&
10811 $as_test_x conftest
$ac_exeext; then
10812 emacs_cv_x11_version_6
=yes
10814 echo "$as_me: failed program was:" >&5
10815 sed 's/^/| /' conftest.
$ac_ext >&5
10817 emacs_cv_x11_version_6
=no
10820 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10821 conftest
$ac_exeext conftest.
$ac_ext
10824 if test $emacs_cv_x11_version_6 = yes; then
10825 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10826 echo "${ECHO_T}6 or newer" >&6; }
10828 cat >>confdefs.h
<<\_ACEOF
10829 #define HAVE_X11R6 1
10833 { echo "$as_me:$LINENO: result: before 6" >&5
10834 echo "${ECHO_T}before 6" >&6; }
10838 if test "${window_system}" = "x11"; then
10839 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10840 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10841 if test "${emacs_cv_x11_version_5+set}" = set; then
10842 echo $ECHO_N "(cached) $ECHO_C" >&6
10844 cat >conftest.
$ac_ext <<_ACEOF
10847 cat confdefs.h
>>conftest.
$ac_ext
10848 cat >>conftest.
$ac_ext <<_ACEOF
10849 /* end confdefs.h. */
10850 #include <X11/Xlib.h>
10854 #if XlibSpecificationRelease < 5
10862 rm -f conftest.
$ac_objext conftest
$ac_exeext
10863 if { (ac_try
="$ac_link"
10864 case "(($ac_try" in
10865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10866 *) ac_try_echo=$ac_try;;
10868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10869 (eval "$ac_link") 2>conftest.er1
10871 grep -v '^ *+' conftest.er1 >conftest.err
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } && {
10876 test -z "$ac_c_werror_flag" ||
10877 test ! -s conftest.err
10878 } && test -s conftest$ac_exeext &&
10879 $as_test_x conftest$ac_exeext; then
10880 emacs_cv_x11_version_5=yes
10882 echo "$as_me: failed program was:" >&5
10883 sed 's/^/| /' conftest.$ac_ext >&5
10885 emacs_cv_x11_version_5=no
10888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10889 conftest$ac_exeext conftest.$ac_ext
10892 if test $emacs_cv_x11_version_5 = yes; then
10893 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10894 echo "${ECHO_T}5 or newer" >&6; }
10897 cat >>confdefs.h <<\_ACEOF
10898 #define HAVE_X11R5 1
10903 { echo "$as_me:$LINENO: result: before 5" >&5
10904 echo "${ECHO_T}before 5" >&6; }
10909 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10912 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10913 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10914 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10915 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10916 { (exit 1); exit 1; }; };
10920 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10922 if test "X${with_pkg_config_prog}" != X; then
10923 PKG_CONFIG="${with_pkg_config_prog}"
10928 if test -z "$PKG_CONFIG"; then
10929 # Extract the first word of "pkg-config", so it can be a program name with args.
10930 set dummy pkg-config; ac_word=$2
10931 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10932 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10933 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10934 echo $ECHO_N "(cached) $ECHO_C" >&6
10936 case $PKG_CONFIG in
10938 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10942 for as_dir in $PATH
10945 test -z "$as_dir" && as_dir=.
10946 for ac_exec_ext in '' $ac_executable_extensions; do
10947 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10948 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10949 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10956 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10960 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10961 if test -n "$PKG_CONFIG"; then
10962 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10963 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10965 { echo "$as_me:$LINENO: result: no" >&5
10966 echo "${ECHO_T}no" >&6; }
10972 if test "$PKG_CONFIG" = "no" ; then
10973 { { echo "$as_me:$LINENO: error:
10974 *** 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
10975 echo "$as_me: error:
10976 *** 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;}
10977 { (exit 1); exit 1; }; }
10979 PKG_CONFIG_MIN_VERSION=0.9.0
10980 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10981 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10982 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10984 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10985 { echo "$as_me:$LINENO: result: yes" >&5
10986 echo "${ECHO_T}yes" >&6; }
10989 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10990 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10991 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10992 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10993 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10995 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10996 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10997 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10998 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10999 echo "${ECHO_T}$GTK_LIBS" >&6; }
11001 { echo "$as_me:$LINENO: result: no" >&5
11002 echo "${ECHO_T}no" >&6; }
11005 ## If we have a custom action on failure, don't print errors, but
11006 ## do set a variable so people can do so.
11007 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11008 echo $GTK_PKG_ERRORS
11014 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11015 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11019 if test $succeeded = yes; then
11022 { { 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
11023 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;}
11024 { (exit 1); exit 1; }; }
11029 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11030 CFLAGS="$CFLAGS $GTK_CFLAGS"
11031 LIBS="$GTK_LIBS $LIBS"
11034 for ac_func in gtk_main
11036 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11042 cat >conftest.$ac_ext <<_ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11050 #define $ac_func innocuous_$ac_func
11052 /* System header to define __stub macros and hopefully few prototypes,
11053 which can conflict with char $ac_func (); below.
11054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11055 <limits.h> exists even on freestanding compilers. */
11058 # include <limits.h>
11060 # include <assert.h>
11065 /* Override any GCC internal prototype to avoid an error.
11066 Use char because int might match the return type of a GCC
11067 builtin and then its argument prototype would still apply. */
11072 /* The GNU C library defines this for functions which it implements
11073 to always fail with ENOSYS. Some functions are actually named
11074 something starting with __ and the normal name is an alias. */
11075 #if defined __stub_$ac_func || defined __stub___$ac_func
11082 return $ac_func ();
11087 rm -f conftest.$ac_objext conftest$ac_exeext
11088 if { (ac_try="$ac_link"
11089 case "(($ac_try" in
11090 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11091 *) ac_try_echo
=$ac_try;;
11093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11094 (eval "$ac_link") 2>conftest.er1
11096 grep -v '^ *+' conftest.er1
>conftest.err
11098 cat conftest.err
>&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } && {
11101 test -z "$ac_c_werror_flag" ||
11102 test ! -s conftest.err
11103 } && test -s conftest
$ac_exeext &&
11104 $as_test_x conftest
$ac_exeext; then
11105 eval "$as_ac_var=yes"
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.
$ac_ext >&5
11110 eval "$as_ac_var=no"
11113 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11114 conftest
$ac_exeext conftest.
$ac_ext
11116 ac_res
=`eval echo '${'$as_ac_var'}'`
11117 { echo "$as_me:$LINENO: result: $ac_res" >&5
11118 echo "${ECHO_T}$ac_res" >&6; }
11119 if test `eval echo '${'$as_ac_var'}'` = yes; then
11120 cat >>confdefs.h
<<_ACEOF
11121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11127 if test "${GTK_COMPILES}" != "yes"; then
11128 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11129 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11130 { (exit 1); exit 1; }; };
11135 cat >>confdefs.h
<<\_ACEOF
11141 if test "$with_toolkit_scroll_bars" != no
; then
11142 with_toolkit_scroll_bars
=yes
11145 HAVE_GTK_MULTIDISPLAY
=no
11147 for ac_func
in gdk_display_open
11149 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11152 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11153 echo $ECHO_N "(cached) $ECHO_C" >&6
11155 cat >conftest.
$ac_ext <<_ACEOF
11158 cat confdefs.h
>>conftest.
$ac_ext
11159 cat >>conftest.
$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11163 #define $ac_func innocuous_$ac_func
11165 /* System header to define __stub macros and hopefully few prototypes,
11166 which can conflict with char $ac_func (); below.
11167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11168 <limits.h> exists even on freestanding compilers. */
11171 # include <limits.h>
11173 # include <assert.h>
11178 /* Override any GCC internal prototype to avoid an error.
11179 Use char because int might match the return type of a GCC
11180 builtin and then its argument prototype would still apply. */
11185 /* The GNU C library defines this for functions which it implements
11186 to always fail with ENOSYS. Some functions are actually named
11187 something starting with __ and the normal name is an alias. */
11188 #if defined __stub_$ac_func || defined __stub___$ac_func
11195 return $ac_func ();
11200 rm -f conftest.
$ac_objext conftest
$ac_exeext
11201 if { (ac_try
="$ac_link"
11202 case "(($ac_try" in
11203 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11204 *) ac_try_echo=$ac_try;;
11206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11207 (eval "$ac_link") 2>conftest.er1
11209 grep -v '^ *+' conftest.er1 >conftest.err
11211 cat conftest.err >&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } && {
11214 test -z "$ac_c_werror_flag" ||
11215 test ! -s conftest.err
11216 } && test -s conftest$ac_exeext &&
11217 $as_test_x conftest$ac_exeext; then
11218 eval "$as_ac_var=yes"
11220 echo "$as_me: failed program was:" >&5
11221 sed 's/^/| /' conftest.$ac_ext >&5
11223 eval "$as_ac_var=no"
11226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11227 conftest$ac_exeext conftest.$ac_ext
11229 ac_res=`eval echo '${'$as_ac_var'}'`
11230 { echo "$as_me:$LINENO: result: $ac_res" >&5
11231 echo "${ECHO_T}$ac_res" >&6; }
11232 if test `eval echo '${'$as_ac_var'}'` = yes; then
11233 cat >>confdefs.h <<_ACEOF
11234 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11236 HAVE_GTK_MULTIDISPLAY=yes
11240 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11242 cat >>confdefs.h <<\_ACEOF
11243 #define HAVE_GTK_MULTIDISPLAY 1
11247 HAVE_GTK_FILE_SELECTION=no
11249 for ac_func in gtk_file_selection_new
11251 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11252 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11253 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11254 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11255 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 cat >conftest.$ac_ext <<_ACEOF
11260 cat confdefs.h >>conftest.$ac_ext
11261 cat >>conftest.$ac_ext <<_ACEOF
11262 /* end confdefs.h. */
11263 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11264 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11265 #define $ac_func innocuous_$ac_func
11267 /* System header to define __stub macros and hopefully few prototypes,
11268 which can conflict with char $ac_func (); below.
11269 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11270 <limits.h> exists even on freestanding compilers. */
11273 # include <limits.h>
11275 # include <assert.h>
11280 /* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
11287 /* The GNU C library defines this for functions which it implements
11288 to always fail with ENOSYS. Some functions are actually named
11289 something starting with __ and the normal name is an alias. */
11290 #if defined __stub_$ac_func || defined __stub___$ac_func
11297 return $ac_func ();
11302 rm -f conftest.$ac_objext conftest$ac_exeext
11303 if { (ac_try="$ac_link"
11304 case "(($ac_try" in
11305 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11306 *) ac_try_echo
=$ac_try;;
11308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11309 (eval "$ac_link") 2>conftest.er1
11311 grep -v '^ *+' conftest.er1
>conftest.err
11313 cat conftest.err
>&5
11314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11315 (exit $ac_status); } && {
11316 test -z "$ac_c_werror_flag" ||
11317 test ! -s conftest.err
11318 } && test -s conftest
$ac_exeext &&
11319 $as_test_x conftest
$ac_exeext; then
11320 eval "$as_ac_var=yes"
11322 echo "$as_me: failed program was:" >&5
11323 sed 's/^/| /' conftest.
$ac_ext >&5
11325 eval "$as_ac_var=no"
11328 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11329 conftest
$ac_exeext conftest.
$ac_ext
11331 ac_res
=`eval echo '${'$as_ac_var'}'`
11332 { echo "$as_me:$LINENO: result: $ac_res" >&5
11333 echo "${ECHO_T}$ac_res" >&6; }
11334 if test `eval echo '${'$as_ac_var'}'` = yes; then
11335 cat >>confdefs.h
<<_ACEOF
11336 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11338 HAVE_GTK_FILE_SELECTION
=yes
11343 HAVE_GTK_FILE_CHOOSER
=no
11345 for ac_func
in gtk_file_chooser_dialog_new
11347 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11348 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11349 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11350 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11351 echo $ECHO_N "(cached) $ECHO_C" >&6
11353 cat >conftest.
$ac_ext <<_ACEOF
11356 cat confdefs.h
>>conftest.
$ac_ext
11357 cat >>conftest.
$ac_ext <<_ACEOF
11358 /* end confdefs.h. */
11359 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11360 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11361 #define $ac_func innocuous_$ac_func
11363 /* System header to define __stub macros and hopefully few prototypes,
11364 which can conflict with char $ac_func (); below.
11365 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11366 <limits.h> exists even on freestanding compilers. */
11369 # include <limits.h>
11371 # include <assert.h>
11376 /* Override any GCC internal prototype to avoid an error.
11377 Use char because int might match the return type of a GCC
11378 builtin and then its argument prototype would still apply. */
11383 /* The GNU C library defines this for functions which it implements
11384 to always fail with ENOSYS. Some functions are actually named
11385 something starting with __ and the normal name is an alias. */
11386 #if defined __stub_$ac_func || defined __stub___$ac_func
11393 return $ac_func ();
11398 rm -f conftest.
$ac_objext conftest
$ac_exeext
11399 if { (ac_try
="$ac_link"
11400 case "(($ac_try" in
11401 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11402 *) ac_try_echo=$ac_try;;
11404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11405 (eval "$ac_link") 2>conftest.er1
11407 grep -v '^ *+' conftest.er1 >conftest.err
11409 cat conftest.err >&5
11410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411 (exit $ac_status); } && {
11412 test -z "$ac_c_werror_flag" ||
11413 test ! -s conftest.err
11414 } && test -s conftest$ac_exeext &&
11415 $as_test_x conftest$ac_exeext; then
11416 eval "$as_ac_var=yes"
11418 echo "$as_me: failed program was:" >&5
11419 sed 's/^/| /' conftest.$ac_ext >&5
11421 eval "$as_ac_var=no"
11424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11425 conftest$ac_exeext conftest.$ac_ext
11427 ac_res=`eval echo '${'$as_ac_var'}'`
11428 { echo "$as_me:$LINENO: result: $ac_res" >&5
11429 echo "${ECHO_T}$ac_res" >&6; }
11430 if test `eval echo '${'$as_ac_var'}'` = yes; then
11431 cat >>confdefs.h <<_ACEOF
11432 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11434 HAVE_GTK_FILE_CHOOSER=yes
11439 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11440 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11442 cat >>confdefs.h <<\_ACEOF
11443 #define HAVE_GTK_FILE_BOTH 1
11448 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11449 HAVE_GTK_AND_PTHREAD=no
11451 for ac_header in pthread.h
11453 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11460 ac_res=`eval echo '${'$as_ac_Header'}'`
11461 { echo "$as_me:$LINENO: result: $ac_res" >&5
11462 echo "${ECHO_T}$ac_res" >&6; }
11464 # Is the header compilable?
11465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11467 cat >conftest.$ac_ext <<_ACEOF
11470 cat confdefs.h >>conftest.$ac_ext
11471 cat >>conftest.$ac_ext <<_ACEOF
11472 /* end confdefs.h. */
11473 $ac_includes_default
11474 #include <$ac_header>
11476 rm -f conftest.$ac_objext
11477 if { (ac_try="$ac_compile"
11478 case "(($ac_try" in
11479 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11480 *) ac_try_echo
=$ac_try;;
11482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11483 (eval "$ac_compile") 2>conftest.er1
11485 grep -v '^ *+' conftest.er1
>conftest.err
11487 cat conftest.err
>&5
11488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11489 (exit $ac_status); } && {
11490 test -z "$ac_c_werror_flag" ||
11491 test ! -s conftest.err
11492 } && test -s conftest.
$ac_objext; then
11493 ac_header_compiler
=yes
11495 echo "$as_me: failed program was:" >&5
11496 sed 's/^/| /' conftest.
$ac_ext >&5
11498 ac_header_compiler
=no
11501 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11502 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11503 echo "${ECHO_T}$ac_header_compiler" >&6; }
11505 # Is the header present?
11506 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11507 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11508 cat >conftest.
$ac_ext <<_ACEOF
11511 cat confdefs.h
>>conftest.
$ac_ext
11512 cat >>conftest.
$ac_ext <<_ACEOF
11513 /* end confdefs.h. */
11514 #include <$ac_header>
11516 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11517 case "(($ac_try" in
11518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11519 *) ac_try_echo=$ac_try;;
11521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11522 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11524 grep -v '^ *+' conftest.er1 >conftest.err
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } >/dev/null && {
11529 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11530 test ! -s conftest.err
11532 ac_header_preproc=yes
11534 echo "$as_me: failed program was:" >&5
11535 sed 's/^/| /' conftest.$ac_ext >&5
11537 ac_header_preproc=no
11540 rm -f conftest.err conftest.$ac_ext
11541 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11542 echo "${ECHO_T}$ac_header_preproc" >&6; }
11544 # So? What about this header?
11545 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11547 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11548 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11549 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11550 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11551 ac_header_preproc=yes
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11555 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11557 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11559 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11560 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11561 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11562 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11563 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11564 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11565 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11572 echo $ECHO_N "(cached) $ECHO_C" >&6
11574 eval "$as_ac_Header=\$ac_header_preproc"
11576 ac_res=`eval echo '${'$as_ac_Header'}'`
11577 { echo "$as_me:$LINENO: result: $ac_res" >&5
11578 echo "${ECHO_T}$ac_res" >&6; }
11581 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11582 cat >>confdefs.h <<_ACEOF
11583 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11590 if test "$ac_cv_header_pthread_h"; then
11591 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11592 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11593 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11594 echo $ECHO_N "(cached) $ECHO_C" >&6
11596 ac_check_lib_save_LIBS=$LIBS
11597 LIBS="-lpthread $LIBS"
11598 cat >conftest.$ac_ext <<_ACEOF
11601 cat confdefs.h >>conftest.$ac_ext
11602 cat >>conftest.$ac_ext <<_ACEOF
11603 /* end confdefs.h. */
11605 /* Override any GCC internal prototype to avoid an error.
11606 Use char because int might match the return type of a GCC
11607 builtin and then its argument prototype would still apply. */
11611 char pthread_self ();
11615 return pthread_self ();
11620 rm -f conftest.$ac_objext conftest$ac_exeext
11621 if { (ac_try="$ac_link"
11622 case "(($ac_try" in
11623 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11624 *) ac_try_echo
=$ac_try;;
11626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11627 (eval "$ac_link") 2>conftest.er1
11629 grep -v '^ *+' conftest.er1
>conftest.err
11631 cat conftest.err
>&5
11632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11633 (exit $ac_status); } && {
11634 test -z "$ac_c_werror_flag" ||
11635 test ! -s conftest.err
11636 } && test -s conftest
$ac_exeext &&
11637 $as_test_x conftest
$ac_exeext; then
11638 ac_cv_lib_pthread_pthread_self
=yes
11640 echo "$as_me: failed program was:" >&5
11641 sed 's/^/| /' conftest.
$ac_ext >&5
11643 ac_cv_lib_pthread_pthread_self
=no
11646 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11647 conftest
$ac_exeext conftest.
$ac_ext
11648 LIBS
=$ac_check_lib_save_LIBS
11650 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11651 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11652 if test $ac_cv_lib_pthread_pthread_self = yes; then
11653 HAVE_GTK_AND_PTHREAD
=yes
11657 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11658 GTK_LIBS
="$GTK_LIBS -lpthread"
11660 cat >>confdefs.h
<<\_ACEOF
11661 #define HAVE_GTK_AND_PTHREAD 1
11668 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
11669 if test x
"${HAVE_X11R5}" = xyes
; then
11670 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11671 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11672 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11673 echo $ECHO_N "(cached) $ECHO_C" >&6
11675 cat >conftest.
$ac_ext <<_ACEOF
11678 cat confdefs.h
>>conftest.
$ac_ext
11679 cat >>conftest.
$ac_ext <<_ACEOF
11680 /* end confdefs.h. */
11682 #include <X11/Intrinsic.h>
11683 #include <X11/Xaw/Simple.h>
11692 rm -f conftest.
$ac_objext conftest
$ac_exeext
11693 if { (ac_try
="$ac_link"
11694 case "(($ac_try" in
11695 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11696 *) ac_try_echo=$ac_try;;
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699 (eval "$ac_link") 2>conftest.er1
11701 grep -v '^ *+' conftest.er1 >conftest.err
11703 cat conftest.err >&5
11704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11705 (exit $ac_status); } && {
11706 test -z "$ac_c_werror_flag" ||
11707 test ! -s conftest.err
11708 } && test -s conftest$ac_exeext &&
11709 $as_test_x conftest$ac_exeext; then
11710 emacs_cv_x11_version_5_with_xaw=yes
11712 echo "$as_me: failed program was:" >&5
11713 sed 's/^/| /' conftest.$ac_ext >&5
11715 emacs_cv_x11_version_5_with_xaw=no
11718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11719 conftest$ac_exeext conftest.$ac_ext
11722 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11723 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11724 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11725 USE_X_TOOLKIT=LUCID
11727 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11728 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11736 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11738 if test "${USE_X_TOOLKIT}" != "none"; then
11739 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11740 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11741 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11742 echo $ECHO_N "(cached) $ECHO_C" >&6
11744 cat >conftest.$ac_ext <<_ACEOF
11747 cat confdefs.h >>conftest.$ac_ext
11748 cat >>conftest.$ac_ext <<_ACEOF
11749 /* end confdefs.h. */
11750 #include <X11/Intrinsic.h>
11754 #if XtSpecificationRelease < 6
11762 rm -f conftest.$ac_objext conftest$ac_exeext
11763 if { (ac_try="$ac_link"
11764 case "(($ac_try" in
11765 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11766 *) ac_try_echo
=$ac_try;;
11768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11769 (eval "$ac_link") 2>conftest.er1
11771 grep -v '^ *+' conftest.er1
>conftest.err
11773 cat conftest.err
>&5
11774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11775 (exit $ac_status); } && {
11776 test -z "$ac_c_werror_flag" ||
11777 test ! -s conftest.err
11778 } && test -s conftest
$ac_exeext &&
11779 $as_test_x conftest
$ac_exeext; then
11780 emacs_cv_x11_toolkit_version_6
=yes
11782 echo "$as_me: failed program was:" >&5
11783 sed 's/^/| /' conftest.
$ac_ext >&5
11785 emacs_cv_x11_toolkit_version_6
=no
11788 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11789 conftest
$ac_exeext conftest.
$ac_ext
11792 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11793 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11794 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11795 echo "${ECHO_T}6 or newer" >&6; }
11797 cat >>confdefs.h
<<\_ACEOF
11798 #define HAVE_X11XTR6 1
11802 { echo "$as_me:$LINENO: result: before 6" >&5
11803 echo "${ECHO_T}before 6" >&6; }
11807 if test x
$HAVE_X11XTR6 = xyes
; then
11808 LIBS
="-lXt -lSM -lICE $LIBS"
11813 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11814 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11815 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11816 echo $ECHO_N "(cached) $ECHO_C" >&6
11818 ac_check_lib_save_LIBS
=$LIBS
11820 cat >conftest.
$ac_ext <<_ACEOF
11823 cat confdefs.h
>>conftest.
$ac_ext
11824 cat >>conftest.
$ac_ext <<_ACEOF
11825 /* end confdefs.h. */
11827 /* Override any GCC internal prototype to avoid an error.
11828 Use char because int might match the return type of a GCC
11829 builtin and then its argument prototype would still apply. */
11833 char XmuConvertStandardSelection ();
11837 return XmuConvertStandardSelection ();
11842 rm -f conftest.
$ac_objext conftest
$ac_exeext
11843 if { (ac_try
="$ac_link"
11844 case "(($ac_try" in
11845 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11846 *) ac_try_echo=$ac_try;;
11848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11849 (eval "$ac_link") 2>conftest.er1
11851 grep -v '^ *+' conftest.er1 >conftest.err
11853 cat conftest.err >&5
11854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11855 (exit $ac_status); } && {
11856 test -z "$ac_c_werror_flag" ||
11857 test ! -s conftest.err
11858 } && test -s conftest$ac_exeext &&
11859 $as_test_x conftest$ac_exeext; then
11860 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11862 echo "$as_me: failed program was:" >&5
11863 sed 's/^/| /' conftest.$ac_ext >&5
11865 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11869 conftest$ac_exeext conftest.$ac_ext
11870 LIBS=$ac_check_lib_save_LIBS
11872 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11873 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11874 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11875 cat >>confdefs.h <<_ACEOF
11876 #define HAVE_LIBXMU 1
11883 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11886 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11887 if test "${HAVE_X11}" = "yes"; then
11888 if test "${USE_X_TOOLKIT}" != "none"; then
11890 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11891 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11892 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11893 echo $ECHO_N "(cached) $ECHO_C" >&6
11895 ac_check_lib_save_LIBS=$LIBS
11896 LIBS="-lXext $LIBS"
11897 cat >conftest.$ac_ext <<_ACEOF
11900 cat confdefs.h >>conftest.$ac_ext
11901 cat >>conftest.$ac_ext <<_ACEOF
11902 /* end confdefs.h. */
11904 /* Override any GCC internal prototype to avoid an error.
11905 Use char because int might match the return type of a GCC
11906 builtin and then its argument prototype would still apply. */
11910 char XShapeQueryExtension ();
11914 return XShapeQueryExtension ();
11919 rm -f conftest.$ac_objext conftest$ac_exeext
11920 if { (ac_try="$ac_link"
11921 case "(($ac_try" in
11922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11923 *) ac_try_echo
=$ac_try;;
11925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11926 (eval "$ac_link") 2>conftest.er1
11928 grep -v '^ *+' conftest.er1
>conftest.err
11930 cat conftest.err
>&5
11931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11932 (exit $ac_status); } && {
11933 test -z "$ac_c_werror_flag" ||
11934 test ! -s conftest.err
11935 } && test -s conftest
$ac_exeext &&
11936 $as_test_x conftest
$ac_exeext; then
11937 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11939 echo "$as_me: failed program was:" >&5
11940 sed 's/^/| /' conftest.
$ac_ext >&5
11942 ac_cv_lib_Xext_XShapeQueryExtension
=no
11945 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11946 conftest
$ac_exeext conftest.
$ac_ext
11947 LIBS
=$ac_check_lib_save_LIBS
11949 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11950 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11951 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11952 cat >>confdefs.h
<<_ACEOF
11953 #define HAVE_LIBXEXT 1
11956 LIBS
="-lXext $LIBS"
11963 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11964 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11965 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
11966 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11967 echo $ECHO_N "(cached) $ECHO_C" >&6
11969 cat >conftest.
$ac_ext <<_ACEOF
11972 cat confdefs.h
>>conftest.
$ac_ext
11973 cat >>conftest.
$ac_ext <<_ACEOF
11974 /* end confdefs.h. */
11979 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11982 Motif version prior to 2.1.
11988 rm -f conftest.
$ac_objext
11989 if { (ac_try
="$ac_compile"
11990 case "(($ac_try" in
11991 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11992 *) ac_try_echo=$ac_try;;
11994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11995 (eval "$ac_compile") 2>conftest.er1
11997 grep -v '^ *+' conftest.er1 >conftest.err
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } && {
12002 test -z "$ac_c_werror_flag" ||
12003 test ! -s conftest.err
12004 } && test -s conftest.$ac_objext; then
12005 emacs_cv_motif_version_2_1=yes
12007 echo "$as_me: failed program was:" >&5
12008 sed 's/^/| /' conftest.$ac_ext >&5
12010 emacs_cv_motif_version_2_1=no
12013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12015 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12016 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12017 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12018 if test $emacs_cv_motif_version_2_1 = yes; then
12021 cat >>confdefs.h <<\_ACEOF
12022 #define HAVE_MOTIF_2_1 1
12025 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12026 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12027 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12028 echo $ECHO_N "(cached) $ECHO_C" >&6
12030 ac_check_lib_save_LIBS=$LIBS
12032 cat >conftest.$ac_ext <<_ACEOF
12035 cat confdefs.h >>conftest.$ac_ext
12036 cat >>conftest.$ac_ext <<_ACEOF
12037 /* end confdefs.h. */
12039 /* Override any GCC internal prototype to avoid an error.
12040 Use char because int might match the return type of a GCC
12041 builtin and then its argument prototype would still apply. */
12045 char XpCreateContext ();
12049 return XpCreateContext ();
12054 rm -f conftest.$ac_objext conftest$ac_exeext
12055 if { (ac_try="$ac_link"
12056 case "(($ac_try" in
12057 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12058 *) ac_try_echo
=$ac_try;;
12060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12061 (eval "$ac_link") 2>conftest.er1
12063 grep -v '^ *+' conftest.er1
>conftest.err
12065 cat conftest.err
>&5
12066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12067 (exit $ac_status); } && {
12068 test -z "$ac_c_werror_flag" ||
12069 test ! -s conftest.err
12070 } && test -s conftest
$ac_exeext &&
12071 $as_test_x conftest
$ac_exeext; then
12072 ac_cv_lib_Xp_XpCreateContext
=yes
12074 echo "$as_me: failed program was:" >&5
12075 sed 's/^/| /' conftest.
$ac_ext >&5
12077 ac_cv_lib_Xp_XpCreateContext
=no
12080 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12081 conftest
$ac_exeext conftest.
$ac_ext
12082 LIBS
=$ac_check_lib_save_LIBS
12084 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12085 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12086 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12090 if test ${HAVE_LIBXP} = yes; then
12092 cat >>confdefs.h
<<\_ACEOF
12093 #define HAVE_LIBXP 1
12098 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12099 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12100 if test "${emacs_cv_lesstif+set}" = set; then
12101 echo $ECHO_N "(cached) $ECHO_C" >&6
12103 # We put this in CFLAGS temporarily to precede other -I options
12104 # that might be in CFLAGS temporarily.
12105 # We put this in CPPFLAGS where it precedes the other -I options.
12106 OLD_CPPFLAGS
=$CPPFLAGS
12108 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12109 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12110 cat >conftest.
$ac_ext <<_ACEOF
12113 cat confdefs.h
>>conftest.
$ac_ext
12114 cat >>conftest.
$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12116 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12125 rm -f conftest.
$ac_objext
12126 if { (ac_try
="$ac_compile"
12127 case "(($ac_try" in
12128 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12129 *) ac_try_echo=$ac_try;;
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132 (eval "$ac_compile") 2>conftest.er1
12134 grep -v '^ *+' conftest.er1 >conftest.err
12136 cat conftest.err >&5
12137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138 (exit $ac_status); } && {
12139 test -z "$ac_c_werror_flag" ||
12140 test ! -s conftest.err
12141 } && test -s conftest.$ac_objext; then
12142 emacs_cv_lesstif=yes
12144 echo "$as_me: failed program was:" >&5
12145 sed 's/^/| /' conftest.$ac_ext >&5
12147 emacs_cv_lesstif=no
12150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12152 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12153 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12154 if test $emacs_cv_lesstif = yes; then
12155 # Make sure this -I option remains in CPPFLAGS after it is set
12156 # back to REAL_CPPFLAGS.
12157 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12158 # have those other -I options anyway. Ultimately, having this
12159 # directory ultimately in CPPFLAGS will be enough.
12160 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12161 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12164 CPPFLAGS=$OLD_CPPFLAGS
12169 ### Is -lXaw3d available?
12171 if test "${HAVE_X11}" = "yes"; then
12172 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12173 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12174 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12175 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12178 cat >conftest.$ac_ext <<_ACEOF
12181 cat confdefs.h >>conftest.$ac_ext
12182 cat >>conftest.$ac_ext <<_ACEOF
12183 /* end confdefs.h. */
12184 #include <X11/Xaw3d/Scrollbar.h>
12186 if { (ac_try="$ac_cpp conftest.$ac_ext"
12187 case "(($ac_try" in
12188 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12189 *) ac_try_echo
=$ac_try;;
12191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12194 grep -v '^ *+' conftest.er1
>conftest.err
12196 cat conftest.err
>&5
12197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12198 (exit $ac_status); } >/dev
/null
&& {
12199 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12200 test ! -s conftest.err
12202 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
12204 echo "$as_me: failed program was:" >&5
12205 sed 's/^/| /' conftest.
$ac_ext >&5
12207 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
12210 rm -f conftest.err conftest.
$ac_ext
12212 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12213 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12214 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12215 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12216 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12217 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12218 echo $ECHO_N "(cached) $ECHO_C" >&6
12220 ac_check_lib_save_LIBS
=$LIBS
12221 LIBS
="-lXaw3d $LIBS"
12222 cat >conftest.
$ac_ext <<_ACEOF
12225 cat confdefs.h
>>conftest.
$ac_ext
12226 cat >>conftest.
$ac_ext <<_ACEOF
12227 /* end confdefs.h. */
12229 /* Override any GCC internal prototype to avoid an error.
12230 Use char because int might match the return type of a GCC
12231 builtin and then its argument prototype would still apply. */
12235 char XawScrollbarSetThumb ();
12239 return XawScrollbarSetThumb ();
12244 rm -f conftest.
$ac_objext conftest
$ac_exeext
12245 if { (ac_try
="$ac_link"
12246 case "(($ac_try" in
12247 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12248 *) ac_try_echo=$ac_try;;
12250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12251 (eval "$ac_link") 2>conftest.er1
12253 grep -v '^ *+' conftest.er1 >conftest.err
12255 cat conftest.err >&5
12256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12257 (exit $ac_status); } && {
12258 test -z "$ac_c_werror_flag" ||
12259 test ! -s conftest.err
12260 } && test -s conftest$ac_exeext &&
12261 $as_test_x conftest$ac_exeext; then
12262 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12264 echo "$as_me: failed program was:" >&5
12265 sed 's/^/| /' conftest.$ac_ext >&5
12267 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12271 conftest$ac_exeext conftest.$ac_ext
12272 LIBS=$ac_check_lib_save_LIBS
12274 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12275 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12276 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12283 if test "${HAVE_XAW3D}" = "yes"; then
12285 cat >>confdefs.h <<\_ACEOF
12286 #define HAVE_XAW3D 1
12295 USE_TOOLKIT_SCROLL_BARS=no
12296 if test "${with_toolkit_scroll_bars}" != "no"; then
12297 if test "${USE_X_TOOLKIT}" != "none"; then
12298 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12299 cat >>confdefs.h <<\_ACEOF
12300 #define USE_TOOLKIT_SCROLL_BARS 1
12304 USE_TOOLKIT_SCROLL_BARS=yes
12305 elif test "${HAVE_XAW3D}" = "yes"; then
12306 cat >>confdefs.h <<\_ACEOF
12307 #define USE_TOOLKIT_SCROLL_BARS 1
12310 USE_TOOLKIT_SCROLL_BARS=yes
12312 elif test "${HAVE_GTK}" = "yes"; then
12313 cat >>confdefs.h <<\_ACEOF
12314 #define USE_TOOLKIT_SCROLL_BARS 1
12317 USE_TOOLKIT_SCROLL_BARS=yes
12318 elif test "${HAVE_CARBON}" = "yes"; then
12319 cat >>confdefs.h <<\_ACEOF
12320 #define USE_TOOLKIT_SCROLL_BARS 1
12323 USE_TOOLKIT_SCROLL_BARS=yes
12327 cat >conftest.$ac_ext <<_ACEOF
12330 cat confdefs.h >>conftest.$ac_ext
12331 cat >>conftest.$ac_ext <<_ACEOF
12332 /* end confdefs.h. */
12334 #include <X11/Xlib.h>
12335 #include <X11/Xresource.h>
12344 rm -f conftest.$ac_objext
12345 if { (ac_try="$ac_compile"
12346 case "(($ac_try" in
12347 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12348 *) ac_try_echo
=$ac_try;;
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_compile") 2>conftest.er1
12353 grep -v '^ *+' conftest.er1
>conftest.err
12355 cat conftest.err
>&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } && {
12358 test -z "$ac_c_werror_flag" ||
12359 test ! -s conftest.err
12360 } && test -s conftest.
$ac_objext; then
12363 cat >>confdefs.h
<<\_ACEOF
12368 echo "$as_me: failed program was:" >&5
12369 sed 's/^/| /' conftest.
$ac_ext >&5
12374 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12377 if test "${with_xim}" != "no"; then
12379 cat >>confdefs.h
<<\_ACEOF
12386 if test "${HAVE_XIM}" != "no"; then
12387 late_CFLAGS
=$CFLAGS
12388 if test "$GCC" = yes; then
12389 CFLAGS
="$CFLAGS --pedantic-errors"
12391 cat >conftest.
$ac_ext <<_ACEOF
12394 cat confdefs.h
>>conftest.
$ac_ext
12395 cat >>conftest.
$ac_ext <<_ACEOF
12396 /* end confdefs.h. */
12398 #include <X11/Xlib.h>
12399 #include <X11/Xresource.h>
12408 XPointer *client_data;
12410 /* If we're not using GCC, it's probably not XFree86, and this is
12411 probably right, but we can't use something like --pedantic-errors. */
12412 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12413 char*, XIMProc, XPointer*);
12415 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12421 rm -f conftest.
$ac_objext
12422 if { (ac_try
="$ac_compile"
12423 case "(($ac_try" in
12424 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12425 *) ac_try_echo=$ac_try;;
12427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12428 (eval "$ac_compile") 2>conftest.er1
12430 grep -v '^ *+' conftest.er1 >conftest.err
12432 cat conftest.err >&5
12433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434 (exit $ac_status); } && {
12435 test -z "$ac_c_werror_flag" ||
12436 test ! -s conftest.err
12437 } && test -s conftest.$ac_objext; then
12438 emacs_cv_arg6_star=yes
12440 echo "$as_me: failed program was:" >&5
12441 sed 's/^/| /' conftest.$ac_ext >&5
12446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12448 if test "$emacs_cv_arg6_star" = yes; then
12449 cat >>confdefs.h <<\_ACEOF
12450 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12454 cat >>confdefs.h <<\_ACEOF
12455 #define XRegisterIMInstantiateCallback_arg6 XPointer
12459 CFLAGS=$late_CFLAGS
12462 ### Use -lXpm if available, unless `--with-xpm=no
'.
12464 if test "${HAVE_X11}" = "yes"; then
12465 if test "${with_xpm}" != "no"; then
12466 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12467 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12468 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12469 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12470 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12473 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12475 # Is the header compilable?
12476 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12477 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12478 cat >conftest.$ac_ext <<_ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12484 $ac_includes_default
12485 #include <X11/xpm.h>
12487 rm -f conftest.$ac_objext
12488 if { (ac_try="$ac_compile"
12489 case "(($ac_try" in
12490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12491 *) ac_try_echo=$ac_try;;
12493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12494 (eval "$ac_compile") 2>conftest.er1
12496 grep -v '^
*+' conftest.er1 >conftest.err
12498 cat conftest.err >&5
12499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12500 (exit $ac_status); } && {
12501 test -z "$ac_c_werror_flag" ||
12502 test ! -s conftest.err
12503 } && test -s conftest.$ac_objext; then
12504 ac_header_compiler=yes
12506 echo "$as_me: failed program was:" >&5
12507 sed 's
/^
/|
/' conftest.$ac_ext >&5
12509 ac_header_compiler=no
12512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12513 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12514 echo "${ECHO_T}$ac_header_compiler" >&6; }
12516 # Is the header present?
12517 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12518 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12519 cat >conftest.$ac_ext <<_ACEOF
12522 cat confdefs.h >>conftest.$ac_ext
12523 cat >>conftest.$ac_ext <<_ACEOF
12524 /* end confdefs.h. */
12525 #include <X11/xpm.h>
12527 if { (ac_try="$ac_cpp conftest.$ac_ext"
12528 case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12535 grep -v '^
*+' conftest.er1 >conftest.err
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } >/dev/null && {
12540 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12541 test ! -s conftest.err
12543 ac_header_preproc=yes
12545 echo "$as_me: failed program was:" >&5
12546 sed 's
/^
/|
/' conftest.$ac_ext >&5
12548 ac_header_preproc=no
12551 rm -f conftest.err conftest.$ac_ext
12552 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12553 echo "${ECHO_T}$ac_header_preproc" >&6; }
12555 # So? What about this header?
12556 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12558 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12559 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12560 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result
" >&5
12561 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the compiler
's result" >&2;}
12562 ac_header_preproc=yes
12565 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12566 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12567 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12568 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12569 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12570 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12571 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12572 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12573 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result
" >&5
12574 echo "$as_me: WARNING
: X11
/xpm.h
: proceeding with the preprocessor
's result" >&2;}
12575 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12576 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12580 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12581 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12582 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12583 echo $ECHO_N "(cached) $ECHO_C" >&6
12585 ac_cv_header_X11_xpm_h=$ac_header_preproc
12587 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12588 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12591 if test $ac_cv_header_X11_xpm_h = yes; then
12592 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12593 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12594 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12597 ac_check_lib_save_LIBS=$LIBS
12598 LIBS="-lXpm -lX11 $LIBS"
12599 cat >conftest.$ac_ext <<_ACEOF
12602 cat confdefs.h >>conftest.$ac_ext
12603 cat >>conftest.$ac_ext <<_ACEOF
12604 /* end confdefs.h. */
12606 /* Override any GCC internal prototype to avoid an error.
12607 Use char because int might match the return type of a GCC
12608 builtin and then its argument prototype would still apply. */
12612 char XpmReadFileToPixmap ();
12616 return XpmReadFileToPixmap ();
12621 rm -f conftest.$ac_objext conftest$ac_exeext
12622 if { (ac_try="$ac_link"
12623 case "(($ac_try" in
12624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12625 *) ac_try_echo=$ac_try;;
12627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12628 (eval "$ac_link") 2>conftest.er1
12630 grep -v '^
*+' conftest.er1 >conftest.err
12632 cat conftest.err >&5
12633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12634 (exit $ac_status); } && {
12635 test -z "$ac_c_werror_flag" ||
12636 test ! -s conftest.err
12637 } && test -s conftest$ac_exeext &&
12638 $as_test_x conftest$ac_exeext; then
12639 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12641 echo "$as_me: failed program was:" >&5
12642 sed 's
/^
/|
/' conftest.$ac_ext >&5
12644 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12648 conftest$ac_exeext conftest.$ac_ext
12649 LIBS=$ac_check_lib_save_LIBS
12651 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12652 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12653 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12660 if test "${HAVE_XPM}" = "yes"; then
12661 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12662 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12663 cat >conftest.$ac_ext <<_ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h. */
12669 #include "X11/xpm.h"
12670 #ifndef XpmReturnAllocPixels
12671 no_return_alloc_pixels
12675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12676 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12684 if test "${HAVE_XPM}" = "yes"; then
12685 { echo "$as_me:$LINENO: result: yes" >&5
12686 echo "${ECHO_T}yes" >&6; }
12688 { echo "$as_me:$LINENO: result: no" >&5
12689 echo "${ECHO_T}no" >&6; }
12694 if test "${HAVE_XPM}" = "yes"; then
12696 cat >>confdefs.h <<\_ACEOF
12703 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12705 if test "${HAVE_X11}" = "yes"; then
12706 if test "${with_jpeg}" != "no"; then
12707 if test "${ac_cv_header_jerror_h+set}" = set; then
12708 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12709 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12710 if test "${ac_cv_header_jerror_h+set}" = set; then
12711 echo $ECHO_N "(cached) $ECHO_C" >&6
12713 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12714 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12716 # Is the header compilable?
12717 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
12718 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
12719 cat >conftest.
$ac_ext <<_ACEOF
12722 cat confdefs.h
>>conftest.
$ac_ext
12723 cat >>conftest.
$ac_ext <<_ACEOF
12724 /* end confdefs.h. */
12725 $ac_includes_default
12726 #include <jerror.h>
12728 rm -f conftest.
$ac_objext
12729 if { (ac_try
="$ac_compile"
12730 case "(($ac_try" in
12731 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12732 *) ac_try_echo=$ac_try;;
12734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12735 (eval "$ac_compile") 2>conftest.er1
12737 grep -v '^ *+' conftest.er1 >conftest.err
12739 cat conftest.err >&5
12740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12741 (exit $ac_status); } && {
12742 test -z "$ac_c_werror_flag" ||
12743 test ! -s conftest.err
12744 } && test -s conftest.$ac_objext; then
12745 ac_header_compiler=yes
12747 echo "$as_me: failed program was:" >&5
12748 sed 's/^/| /' conftest.$ac_ext >&5
12750 ac_header_compiler=no
12753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12754 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12755 echo "${ECHO_T}$ac_header_compiler" >&6; }
12757 # Is the header present?
12758 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
12759 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
12760 cat >conftest.$ac_ext <<_ACEOF
12763 cat confdefs.h >>conftest.$ac_ext
12764 cat >>conftest.$ac_ext <<_ACEOF
12765 /* end confdefs.h. */
12766 #include <jerror.h>
12768 if { (ac_try="$ac_cpp conftest.$ac_ext"
12769 case "(($ac_try" in
12770 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12771 *) ac_try_echo
=$ac_try;;
12773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12776 grep -v '^ *+' conftest.er1
>conftest.err
12778 cat conftest.err
>&5
12779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12780 (exit $ac_status); } >/dev
/null
&& {
12781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12782 test ! -s conftest.err
12784 ac_header_preproc
=yes
12786 echo "$as_me: failed program was:" >&5
12787 sed 's/^/| /' conftest.
$ac_ext >&5
12789 ac_header_preproc
=no
12792 rm -f conftest.err conftest.
$ac_ext
12793 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12794 echo "${ECHO_T}$ac_header_preproc" >&6; }
12796 # So? What about this header?
12797 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12799 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12800 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12801 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12802 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12803 ac_header_preproc
=yes
12806 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12807 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12808 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12809 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12810 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12811 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12812 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12813 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12814 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12815 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12816 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12817 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12821 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12822 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12823 if test "${ac_cv_header_jerror_h+set}" = set; then
12824 echo $ECHO_N "(cached) $ECHO_C" >&6
12826 ac_cv_header_jerror_h
=$ac_header_preproc
12828 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12829 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12832 if test $ac_cv_header_jerror_h = yes; then
12833 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12834 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
12835 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12836 echo $ECHO_N "(cached) $ECHO_C" >&6
12838 ac_check_lib_save_LIBS
=$LIBS
12839 LIBS
="-ljpeg $LIBS"
12840 cat >conftest.
$ac_ext <<_ACEOF
12843 cat confdefs.h
>>conftest.
$ac_ext
12844 cat >>conftest.
$ac_ext <<_ACEOF
12845 /* end confdefs.h. */
12847 /* Override any GCC internal prototype to avoid an error.
12848 Use char because int might match the return type of a GCC
12849 builtin and then its argument prototype would still apply. */
12853 char jpeg_destroy_compress ();
12857 return jpeg_destroy_compress ();
12862 rm -f conftest.
$ac_objext conftest
$ac_exeext
12863 if { (ac_try
="$ac_link"
12864 case "(($ac_try" in
12865 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12866 *) ac_try_echo=$ac_try;;
12868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12869 (eval "$ac_link") 2>conftest.er1
12871 grep -v '^ *+' conftest.er1 >conftest.err
12873 cat conftest.err >&5
12874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12875 (exit $ac_status); } && {
12876 test -z "$ac_c_werror_flag" ||
12877 test ! -s conftest.err
12878 } && test -s conftest$ac_exeext &&
12879 $as_test_x conftest$ac_exeext; then
12880 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12882 echo "$as_me: failed program was:" >&5
12883 sed 's/^/| /' conftest.$ac_ext >&5
12885 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12888 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12889 conftest$ac_exeext conftest.$ac_ext
12890 LIBS=$ac_check_lib_save_LIBS
12892 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12893 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12894 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12904 if test "${HAVE_JPEG}" = "yes"; then
12905 cat >>confdefs.h <<\_ACEOF
12906 #define HAVE_JPEG 1
12909 cat >conftest.$ac_ext <<_ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12915 #include <jpeglib.h>
12916 version=JPEG_LIB_VERSION
12919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12920 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12921 cat >>confdefs.h <<\_ACEOF
12922 #define HAVE_JPEG 1
12926 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12927 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12935 ### Use -lpng if available, unless `--with-png=no
'.
12937 if test "${HAVE_X11}" = "yes"; then
12938 if test "${with_png}" != "no"; then
12939 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12940 # in /usr/include/libpng.
12943 for ac_header in png.h libpng/png.h
12945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12952 ac_res=`eval echo '${'$as_ac_Header'}'`
12953 { echo "$as_me:$LINENO: result: $ac_res" >&5
12954 echo "${ECHO_T}$ac_res" >&6; }
12956 # Is the header compilable?
12957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12959 cat >conftest.$ac_ext <<_ACEOF
12962 cat confdefs.h >>conftest.$ac_ext
12963 cat >>conftest.$ac_ext <<_ACEOF
12964 /* end confdefs.h. */
12965 $ac_includes_default
12966 #include <$ac_header>
12968 rm -f conftest.$ac_objext
12969 if { (ac_try="$ac_compile"
12970 case "(($ac_try" in
12971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12972 *) ac_try_echo=$ac_try;;
12974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12975 (eval "$ac_compile") 2>conftest.er1
12977 grep -v '^
*+' conftest.er1 >conftest.err
12979 cat conftest.err >&5
12980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12981 (exit $ac_status); } && {
12982 test -z "$ac_c_werror_flag" ||
12983 test ! -s conftest.err
12984 } && test -s conftest.$ac_objext; then
12985 ac_header_compiler=yes
12987 echo "$as_me: failed program was:" >&5
12988 sed 's
/^
/|
/' conftest.$ac_ext >&5
12990 ac_header_compiler=no
12993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12995 echo "${ECHO_T}$ac_header_compiler" >&6; }
12997 # Is the header present?
12998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13000 cat >conftest.$ac_ext <<_ACEOF
13003 cat confdefs.h >>conftest.$ac_ext
13004 cat >>conftest.$ac_ext <<_ACEOF
13005 /* end confdefs.h. */
13006 #include <$ac_header>
13008 if { (ac_try="$ac_cpp conftest.$ac_ext"
13009 case "(($ac_try" in
13010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13011 *) ac_try_echo=$ac_try;;
13013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13016 grep -v '^
*+' conftest.er1 >conftest.err
13018 cat conftest.err >&5
13019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13020 (exit $ac_status); } >/dev/null && {
13021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13022 test ! -s conftest.err
13024 ac_header_preproc=yes
13026 echo "$as_me: failed program was:" >&5
13027 sed 's
/^
/|
/' conftest.$ac_ext >&5
13029 ac_header_preproc=no
13032 rm -f conftest.err conftest.$ac_ext
13033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13034 echo "${ECHO_T}$ac_header_preproc" >&6; }
13036 # So? What about this header?
13037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result
" >&5
13042 echo "$as_me: WARNING
: $ac_header: proceeding with the compiler
's result" >&2;}
13043 ac_header_preproc=yes
13046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13049 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13050 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13053 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result
" >&5
13055 echo "$as_me: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13064 echo $ECHO_N "(cached) $ECHO_C" >&6
13066 eval "$as_ac_Header=\$ac_header_preproc"
13068 ac_res=`eval echo '${'$as_ac_Header'}'`
13069 { echo "$as_me:$LINENO: result: $ac_res" >&5
13070 echo "${ECHO_T}$ac_res" >&6; }
13073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13074 cat >>confdefs.h <<_ACEOF
13075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13082 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13083 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13084 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13085 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13086 echo $ECHO_N "(cached) $ECHO_C" >&6
13088 ac_check_lib_save_LIBS=$LIBS
13089 LIBS="-lpng -lz -lm $LIBS"
13090 cat >conftest.$ac_ext <<_ACEOF
13093 cat confdefs.h >>conftest.$ac_ext
13094 cat >>conftest.$ac_ext <<_ACEOF
13095 /* end confdefs.h. */
13097 /* Override any GCC internal prototype to avoid an error.
13098 Use char because int might match the return type of a GCC
13099 builtin and then its argument prototype would still apply. */
13103 char png_get_channels ();
13107 return png_get_channels ();
13112 rm -f conftest.$ac_objext conftest$ac_exeext
13113 if { (ac_try="$ac_link"
13114 case "(($ac_try" in
13115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13116 *) ac_try_echo=$ac_try;;
13118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13119 (eval "$ac_link") 2>conftest.er1
13121 grep -v '^
*+' conftest.er1 >conftest.err
13123 cat conftest.err >&5
13124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13125 (exit $ac_status); } && {
13126 test -z "$ac_c_werror_flag" ||
13127 test ! -s conftest.err
13128 } && test -s conftest$ac_exeext &&
13129 $as_test_x conftest$ac_exeext; then
13130 ac_cv_lib_png_png_get_channels=yes
13132 echo "$as_me: failed program was:" >&5
13133 sed 's
/^
/|
/' conftest.$ac_ext >&5
13135 ac_cv_lib_png_png_get_channels=no
13138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13139 conftest$ac_exeext conftest.$ac_ext
13140 LIBS=$ac_check_lib_save_LIBS
13142 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13143 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13144 if test $ac_cv_lib_png_png_get_channels = yes; then
13151 if test "${HAVE_PNG}" = "yes"; then
13153 cat >>confdefs.h <<\_ACEOF
13160 ### Use -ltiff if available, unless `--with-tiff=no'.
13162 if test "${HAVE_X11}" = "yes"; then
13163 if test "${with_tiff}" != "no"; then
13164 if test "${ac_cv_header_tiffio_h+set}" = set; then
13165 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13166 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13167 if test "${ac_cv_header_tiffio_h+set}" = set; then
13168 echo $ECHO_N "(cached) $ECHO_C" >&6
13170 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13171 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13173 # Is the header compilable?
13174 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13175 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13176 cat >conftest.
$ac_ext <<_ACEOF
13179 cat confdefs.h
>>conftest.
$ac_ext
13180 cat >>conftest.
$ac_ext <<_ACEOF
13181 /* end confdefs.h. */
13182 $ac_includes_default
13183 #include <tiffio.h>
13185 rm -f conftest.
$ac_objext
13186 if { (ac_try
="$ac_compile"
13187 case "(($ac_try" in
13188 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13189 *) ac_try_echo=$ac_try;;
13191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13192 (eval "$ac_compile") 2>conftest.er1
13194 grep -v '^ *+' conftest.er1 >conftest.err
13196 cat conftest.err >&5
13197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13198 (exit $ac_status); } && {
13199 test -z "$ac_c_werror_flag" ||
13200 test ! -s conftest.err
13201 } && test -s conftest.$ac_objext; then
13202 ac_header_compiler=yes
13204 echo "$as_me: failed program was:" >&5
13205 sed 's/^/| /' conftest.$ac_ext >&5
13207 ac_header_compiler=no
13210 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13211 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13212 echo "${ECHO_T}$ac_header_compiler" >&6; }
13214 # Is the header present?
13215 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13216 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13217 cat >conftest.$ac_ext <<_ACEOF
13220 cat confdefs.h >>conftest.$ac_ext
13221 cat >>conftest.$ac_ext <<_ACEOF
13222 /* end confdefs.h. */
13223 #include <tiffio.h>
13225 if { (ac_try="$ac_cpp conftest.$ac_ext"
13226 case "(($ac_try" in
13227 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13228 *) ac_try_echo
=$ac_try;;
13230 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13231 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13233 grep -v '^ *+' conftest.er1
>conftest.err
13235 cat conftest.err
>&5
13236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13237 (exit $ac_status); } >/dev
/null
&& {
13238 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13239 test ! -s conftest.err
13241 ac_header_preproc
=yes
13243 echo "$as_me: failed program was:" >&5
13244 sed 's/^/| /' conftest.
$ac_ext >&5
13246 ac_header_preproc
=no
13249 rm -f conftest.err conftest.
$ac_ext
13250 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13251 echo "${ECHO_T}$ac_header_preproc" >&6; }
13253 # So? What about this header?
13254 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13256 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13257 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13258 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13259 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13260 ac_header_preproc
=yes
13263 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13264 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13265 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13266 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13267 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13268 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13269 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13270 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13271 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13272 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13273 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13274 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13278 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13279 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13280 if test "${ac_cv_header_tiffio_h+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13283 ac_cv_header_tiffio_h
=$ac_header_preproc
13285 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13286 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13289 if test $ac_cv_header_tiffio_h = yes; then
13291 # At least one tiff package requires the jpeg library.
13292 if test "${HAVE_JPEG}" = yes; then tifflibs
="-ljpeg $tifflibs"; fi
13293 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13294 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13295 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13296 echo $ECHO_N "(cached) $ECHO_C" >&6
13298 ac_check_lib_save_LIBS
=$LIBS
13299 LIBS
="-ltiff $tifflibs $LIBS"
13300 cat >conftest.
$ac_ext <<_ACEOF
13303 cat confdefs.h
>>conftest.
$ac_ext
13304 cat >>conftest.
$ac_ext <<_ACEOF
13305 /* end confdefs.h. */
13307 /* Override any GCC internal prototype to avoid an error.
13308 Use char because int might match the return type of a GCC
13309 builtin and then its argument prototype would still apply. */
13313 char TIFFGetVersion ();
13317 return TIFFGetVersion ();
13322 rm -f conftest.
$ac_objext conftest
$ac_exeext
13323 if { (ac_try
="$ac_link"
13324 case "(($ac_try" in
13325 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13326 *) ac_try_echo=$ac_try;;
13328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13329 (eval "$ac_link") 2>conftest.er1
13331 grep -v '^ *+' conftest.er1 >conftest.err
13333 cat conftest.err >&5
13334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13335 (exit $ac_status); } && {
13336 test -z "$ac_c_werror_flag" ||
13337 test ! -s conftest.err
13338 } && test -s conftest$ac_exeext &&
13339 $as_test_x conftest$ac_exeext; then
13340 ac_cv_lib_tiff_TIFFGetVersion=yes
13342 echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13345 ac_cv_lib_tiff_TIFFGetVersion=no
13348 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13349 conftest$ac_exeext conftest.$ac_ext
13350 LIBS=$ac_check_lib_save_LIBS
13352 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13353 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13354 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13363 if test "${HAVE_TIFF}" = "yes"; then
13365 cat >>confdefs.h <<\_ACEOF
13366 #define HAVE_TIFF 1
13372 ### Use -lgif if available, unless `--with-gif=no
'.
13374 if test "${HAVE_X11}" = "yes"; then
13375 if test "${with_gif}" != "no"; then
13376 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13377 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13378 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13379 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13380 echo $ECHO_N "(cached) $ECHO_C" >&6
13382 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13383 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13385 # Is the header compilable?
13386 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13387 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13388 cat >conftest.$ac_ext <<_ACEOF
13391 cat confdefs.h >>conftest.$ac_ext
13392 cat >>conftest.$ac_ext <<_ACEOF
13393 /* end confdefs.h. */
13394 $ac_includes_default
13395 #include <gif_lib.h>
13397 rm -f conftest.$ac_objext
13398 if { (ac_try="$ac_compile"
13399 case "(($ac_try" in
13400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13401 *) ac_try_echo=$ac_try;;
13403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13404 (eval "$ac_compile") 2>conftest.er1
13406 grep -v '^
*+' conftest.er1 >conftest.err
13408 cat conftest.err >&5
13409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13410 (exit $ac_status); } && {
13411 test -z "$ac_c_werror_flag" ||
13412 test ! -s conftest.err
13413 } && test -s conftest.$ac_objext; then
13414 ac_header_compiler=yes
13416 echo "$as_me: failed program was:" >&5
13417 sed 's
/^
/|
/' conftest.$ac_ext >&5
13419 ac_header_compiler=no
13422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13423 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13424 echo "${ECHO_T}$ac_header_compiler" >&6; }
13426 # Is the header present?
13427 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13428 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13429 cat >conftest.$ac_ext <<_ACEOF
13432 cat confdefs.h >>conftest.$ac_ext
13433 cat >>conftest.$ac_ext <<_ACEOF
13434 /* end confdefs.h. */
13435 #include <gif_lib.h>
13437 if { (ac_try="$ac_cpp conftest.$ac_ext"
13438 case "(($ac_try" in
13439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13440 *) ac_try_echo=$ac_try;;
13442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13445 grep -v '^
*+' conftest.er1 >conftest.err
13447 cat conftest.err >&5
13448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13449 (exit $ac_status); } >/dev/null && {
13450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13451 test ! -s conftest.err
13453 ac_header_preproc=yes
13455 echo "$as_me: failed program was:" >&5
13456 sed 's
/^
/|
/' conftest.$ac_ext >&5
13458 ac_header_preproc=no
13461 rm -f conftest.err conftest.$ac_ext
13462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13463 echo "${ECHO_T}$ac_header_preproc" >&6; }
13465 # So? What about this header?
13466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13468 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13469 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13470 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result
" >&5
13471 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the compiler
's result" >&2;}
13472 ac_header_preproc=yes
13475 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13476 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13477 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13478 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13479 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13480 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13481 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13482 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13483 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result
" >&5
13484 echo "$as_me: WARNING
: gif_lib.h
: proceeding with the preprocessor
's result" >&2;}
13485 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13486 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13490 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13491 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13492 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13493 echo $ECHO_N "(cached) $ECHO_C" >&6
13495 ac_cv_header_gif_lib_h=$ac_header_preproc
13497 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13498 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13501 if test $ac_cv_header_gif_lib_h = yes; then
13502 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13503 # Earlier versions can crash Emacs.
13504 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13505 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13506 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13509 ac_check_lib_save_LIBS=$LIBS
13510 LIBS="-lungif $LIBS"
13511 cat >conftest.$ac_ext <<_ACEOF
13514 cat confdefs.h >>conftest.$ac_ext
13515 cat >>conftest.$ac_ext <<_ACEOF
13516 /* end confdefs.h. */
13518 /* Override any GCC internal prototype to avoid an error.
13519 Use char because int might match the return type of a GCC
13520 builtin and then its argument prototype would still apply. */
13524 char EGifPutExtensionLast ();
13528 return EGifPutExtensionLast ();
13533 rm -f conftest.$ac_objext conftest$ac_exeext
13534 if { (ac_try="$ac_link"
13535 case "(($ac_try" in
13536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13537 *) ac_try_echo=$ac_try;;
13539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13540 (eval "$ac_link") 2>conftest.er1
13542 grep -v '^
*+' conftest.er1 >conftest.err
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 (exit $ac_status); } && {
13547 test -z "$ac_c_werror_flag" ||
13548 test ! -s conftest.err
13549 } && test -s conftest$ac_exeext &&
13550 $as_test_x conftest$ac_exeext; then
13551 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13553 echo "$as_me: failed program was:" >&5
13554 sed 's
/^
/|
/' conftest.$ac_ext >&5
13556 ac_cv_lib_ungif_EGifPutExtensionLast=no
13559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13560 conftest$ac_exeext conftest.$ac_ext
13561 LIBS=$ac_check_lib_save_LIBS
13563 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13564 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13565 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13574 if test "${HAVE_GIF}" = "yes"; then
13576 cat >>confdefs.h <<\_ACEOF
13583 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13584 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13585 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13586 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13587 echo $ECHO_N "(cached) $ECHO_C" >&6
13589 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13590 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13592 # Is the header compilable?
13593 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13594 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13595 cat >conftest.$ac_ext <<_ACEOF
13598 cat confdefs.h >>conftest.$ac_ext
13599 cat >>conftest.$ac_ext <<_ACEOF
13600 /* end confdefs.h. */
13601 $ac_includes_default
13602 #include <malloc/malloc.h>
13604 rm -f conftest.$ac_objext
13605 if { (ac_try="$ac_compile"
13606 case "(($ac_try" in
13607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13608 *) ac_try_echo=$ac_try;;
13610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13611 (eval "$ac_compile") 2>conftest.er1
13613 grep -v '^
*+' conftest.er1 >conftest.err
13615 cat conftest.err >&5
13616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13617 (exit $ac_status); } && {
13618 test -z "$ac_c_werror_flag" ||
13619 test ! -s conftest.err
13620 } && test -s conftest.$ac_objext; then
13621 ac_header_compiler=yes
13623 echo "$as_me: failed program was:" >&5
13624 sed 's
/^
/|
/' conftest.$ac_ext >&5
13626 ac_header_compiler=no
13629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13630 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13631 echo "${ECHO_T}$ac_header_compiler" >&6; }
13633 # Is the header present?
13634 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13635 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13636 cat >conftest.$ac_ext <<_ACEOF
13639 cat confdefs.h >>conftest.$ac_ext
13640 cat >>conftest.$ac_ext <<_ACEOF
13641 /* end confdefs.h. */
13642 #include <malloc/malloc.h>
13644 if { (ac_try="$ac_cpp conftest.$ac_ext"
13645 case "(($ac_try" in
13646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647 *) ac_try_echo=$ac_try;;
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13652 grep -v '^
*+' conftest.er1 >conftest.err
13654 cat conftest.err >&5
13655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656 (exit $ac_status); } >/dev/null && {
13657 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13658 test ! -s conftest.err
13660 ac_header_preproc=yes
13662 echo "$as_me: failed program was:" >&5
13663 sed 's
/^
/|
/' conftest.$ac_ext >&5
13665 ac_header_preproc=no
13668 rm -f conftest.err conftest.$ac_ext
13669 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13670 echo "${ECHO_T}$ac_header_preproc" >&6; }
13672 # So? What about this header?
13673 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13675 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13676 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13677 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result
" >&5
13678 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the compiler
's result" >&2;}
13679 ac_header_preproc=yes
13682 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13683 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13684 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13685 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13686 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13687 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13688 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13689 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13690 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result
" >&5
13691 echo "$as_me: WARNING
: malloc
/malloc.h
: proceeding with the preprocessor
's result" >&2;}
13692 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13693 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13697 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13698 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13699 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13700 echo $ECHO_N "(cached) $ECHO_C" >&6
13702 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13704 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13705 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13708 if test $ac_cv_header_malloc_malloc_h = yes; then
13710 cat >>confdefs.h <<\_ACEOF
13711 #define HAVE_MALLOC_MALLOC_H 1
13718 ### Use Mac OS X Carbon API to implement GUI.
13719 if test "${HAVE_CARBON}" = "yes"; then
13721 cat >>confdefs.h <<\_ACEOF
13722 #define HAVE_CARBON 1
13725 ## Specify the install directory
13727 if test "${carbon_appdir_x}" != ""; then
13728 case ${carbon_appdir_x} in
13729 y | ye | yes) carbon_appdir=/Applications ;;
13730 * ) carbon_appdir=${carbon_appdir_x} ;;
13733 # We also have mouse menus.
13737 ### Use session management (-lSM -lICE) if available
13739 if test "${HAVE_X11}" = "yes"; then
13740 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13741 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13742 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
13743 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13746 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13747 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
13749 # Is the header compilable?
13750 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13751 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
13752 cat >conftest.$ac_ext <<_ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 $ac_includes_default
13759 #include <X11/SM/SMlib.h>
13761 rm -f conftest.$ac_objext
13762 if { (ac_try="$ac_compile"
13763 case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_compile") 2>conftest.er1
13770 grep -v '^
*+' conftest.er1 >conftest.err
13772 cat conftest.err >&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } && {
13775 test -z "$ac_c_werror_flag" ||
13776 test ! -s conftest.err
13777 } && test -s conftest.$ac_objext; then
13778 ac_header_compiler=yes
13780 echo "$as_me: failed program was:" >&5
13781 sed 's
/^
/|
/' conftest.$ac_ext >&5
13783 ac_header_compiler=no
13786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13788 echo "${ECHO_T}$ac_header_compiler" >&6; }
13790 # Is the header present?
13791 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13792 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
13793 cat >conftest.$ac_ext <<_ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 #include <X11/SM/SMlib.h>
13801 if { (ac_try="$ac_cpp conftest.$ac_ext"
13802 case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13809 grep -v '^
*+' conftest.er1 >conftest.err
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } >/dev/null && {
13814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13815 test ! -s conftest.err
13817 ac_header_preproc=yes
13819 echo "$as_me: failed program was:" >&5
13820 sed 's
/^
/|
/' conftest.$ac_ext >&5
13822 ac_header_preproc=no
13825 rm -f conftest.err conftest.$ac_ext
13826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13827 echo "${ECHO_T}$ac_header_preproc" >&6; }
13829 # So? What about this header?
13830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13832 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13833 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result
" >&5
13835 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the compiler
's result" >&2;}
13836 ac_header_preproc=yes
13839 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13840 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13842 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13844 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13846 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result
" >&5
13848 echo "$as_me: WARNING
: X11
/SM
/SMlib.h
: proceeding with the preprocessor
's result" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13850 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13854 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13855 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
13856 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13861 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13862 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
13865 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13866 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13867 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
13868 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13869 echo $ECHO_N "(cached) $ECHO_C" >&6
13871 ac_check_lib_save_LIBS=$LIBS
13872 LIBS="-lSM -lICE $LIBS"
13873 cat >conftest.$ac_ext <<_ACEOF
13876 cat confdefs.h >>conftest.$ac_ext
13877 cat >>conftest.$ac_ext <<_ACEOF
13878 /* end confdefs.h. */
13880 /* Override any GCC internal prototype to avoid an error.
13881 Use char because int might match the return type of a GCC
13882 builtin and then its argument prototype would still apply. */
13886 char SmcOpenConnection ();
13890 return SmcOpenConnection ();
13895 rm -f conftest.$ac_objext conftest$ac_exeext
13896 if { (ac_try="$ac_link"
13897 case "(($ac_try" in
13898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13899 *) ac_try_echo=$ac_try;;
13901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13902 (eval "$ac_link") 2>conftest.er1
13904 grep -v '^
*+' conftest.er1 >conftest.err
13906 cat conftest.err >&5
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); } && {
13909 test -z "$ac_c_werror_flag" ||
13910 test ! -s conftest.err
13911 } && test -s conftest$ac_exeext &&
13912 $as_test_x conftest$ac_exeext; then
13913 ac_cv_lib_SM_SmcOpenConnection=yes
13915 echo "$as_me: failed program was:" >&5
13916 sed 's
/^
/|
/' conftest.$ac_ext >&5
13918 ac_cv_lib_SM_SmcOpenConnection=no
13921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13922 conftest$ac_exeext conftest.$ac_ext
13923 LIBS=$ac_check_lib_save_LIBS
13925 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13926 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13927 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13935 if test "${HAVE_X_SM}" = "yes"; then
13937 cat >>confdefs.h <<\_ACEOF
13938 #define HAVE_X_SM 1
13943 *) LIBS="-lSM -lICE $LIBS" ;;
13948 # If netdb.h doesn't
declare h_errno
, we must
declare it by hand.
13949 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13950 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
13951 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13952 echo $ECHO_N "(cached) $ECHO_C" >&6
13954 cat >conftest.
$ac_ext <<_ACEOF
13957 cat confdefs.h
>>conftest.
$ac_ext
13958 cat >>conftest.
$ac_ext <<_ACEOF
13959 /* end confdefs.h. */
13969 rm -f conftest.
$ac_objext conftest
$ac_exeext
13970 if { (ac_try
="$ac_link"
13971 case "(($ac_try" in
13972 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13973 *) ac_try_echo=$ac_try;;
13975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13976 (eval "$ac_link") 2>conftest.er1
13978 grep -v '^ *+' conftest.er1 >conftest.err
13980 cat conftest.err >&5
13981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13982 (exit $ac_status); } && {
13983 test -z "$ac_c_werror_flag" ||
13984 test ! -s conftest.err
13985 } && test -s conftest$ac_exeext &&
13986 $as_test_x conftest$ac_exeext; then
13987 emacs_cv_netdb_declares_h_errno=yes
13989 echo "$as_me: failed program was:" >&5
13990 sed 's/^/| /' conftest.$ac_ext >&5
13992 emacs_cv_netdb_declares_h_errno=no
13995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13996 conftest$ac_exeext conftest.$ac_ext
13998 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13999 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14000 if test $emacs_cv_netdb_declares_h_errno = yes; then
14002 cat >>confdefs.h <<\_ACEOF
14003 #define HAVE_H_ERRNO 1
14008 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14009 # for constant arguments. Useless!
14010 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14011 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14012 if test "${ac_cv_working_alloca_h+set}" = set; then
14013 echo $ECHO_N "(cached) $ECHO_C" >&6
14015 cat >conftest.$ac_ext <<_ACEOF
14018 cat confdefs.h >>conftest.$ac_ext
14019 cat >>conftest.$ac_ext <<_ACEOF
14020 /* end confdefs.h. */
14021 #include <alloca.h>
14025 char *p = (char *) alloca (2 * sizeof (int));
14031 rm -f conftest.$ac_objext conftest$ac_exeext
14032 if { (ac_try="$ac_link"
14033 case "(($ac_try" in
14034 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14035 *) ac_try_echo
=$ac_try;;
14037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14038 (eval "$ac_link") 2>conftest.er1
14040 grep -v '^ *+' conftest.er1
>conftest.err
14042 cat conftest.err
>&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } && {
14045 test -z "$ac_c_werror_flag" ||
14046 test ! -s conftest.err
14047 } && test -s conftest
$ac_exeext &&
14048 $as_test_x conftest
$ac_exeext; then
14049 ac_cv_working_alloca_h
=yes
14051 echo "$as_me: failed program was:" >&5
14052 sed 's/^/| /' conftest.
$ac_ext >&5
14054 ac_cv_working_alloca_h
=no
14057 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14058 conftest
$ac_exeext conftest.
$ac_ext
14060 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14061 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14062 if test $ac_cv_working_alloca_h = yes; then
14064 cat >>confdefs.h
<<\_ACEOF
14065 #define HAVE_ALLOCA_H 1
14070 { echo "$as_me:$LINENO: checking for alloca" >&5
14071 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14072 if test "${ac_cv_func_alloca_works+set}" = set; then
14073 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 cat >conftest.
$ac_ext <<_ACEOF
14078 cat confdefs.h
>>conftest.
$ac_ext
14079 cat >>conftest.
$ac_ext <<_ACEOF
14080 /* end confdefs.h. */
14082 # define alloca __builtin_alloca
14085 # include <malloc.h>
14086 # define alloca _alloca
14088 # ifdef HAVE_ALLOCA_H
14089 # include <alloca.h>
14094 # ifndef alloca /* predefined by HP cc +Olibcalls */
14105 char *p = (char *) alloca (1);
14111 rm -f conftest.
$ac_objext conftest
$ac_exeext
14112 if { (ac_try
="$ac_link"
14113 case "(($ac_try" in
14114 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14115 *) ac_try_echo=$ac_try;;
14117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14118 (eval "$ac_link") 2>conftest.er1
14120 grep -v '^ *+' conftest.er1 >conftest.err
14122 cat conftest.err >&5
14123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14124 (exit $ac_status); } && {
14125 test -z "$ac_c_werror_flag" ||
14126 test ! -s conftest.err
14127 } && test -s conftest$ac_exeext &&
14128 $as_test_x conftest$ac_exeext; then
14129 ac_cv_func_alloca_works=yes
14131 echo "$as_me: failed program was:" >&5
14132 sed 's/^/| /' conftest.$ac_ext >&5
14134 ac_cv_func_alloca_works=no
14137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14138 conftest$ac_exeext conftest.$ac_ext
14140 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14141 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14143 if test $ac_cv_func_alloca_works = yes; then
14145 cat >>confdefs.h <<\_ACEOF
14146 #define HAVE_ALLOCA 1
14150 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14151 # that cause trouble. Some versions do not even contain alloca or
14152 # contain a buggy version. If you still want to use their alloca,
14153 # use ar to extract alloca.o from them instead of compiling alloca.c.
14155 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14157 cat >>confdefs.h <<\_ACEOF
14162 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14163 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14164 if test "${ac_cv_os_cray+set}" = set; then
14165 echo $ECHO_N "(cached
) $ECHO_C" >&6
14167 cat >conftest.$ac_ext <<_ACEOF
14170 cat confdefs.h >>conftest.$ac_ext
14171 cat >>conftest.$ac_ext <<_ACEOF
14172 /* end confdefs.h. */
14173 #if defined CRAY && ! defined CRAY2
14180 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14181 $EGREP "webecray
" >/dev/null 2>&1; then
14189 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14190 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14191 if test $ac_cv_os_cray = yes; then
14192 for ac_func in _getb67 GETB67 getb67; do
14193 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14194 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14195 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14196 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14197 echo $ECHO_N "(cached
) $ECHO_C" >&6
14199 cat >conftest.$ac_ext <<_ACEOF
14202 cat confdefs.h >>conftest.$ac_ext
14203 cat >>conftest.$ac_ext <<_ACEOF
14204 /* end confdefs.h. */
14205 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14206 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14207 #define $ac_func innocuous_$ac_func
14209 /* System header to define __stub macros and hopefully few prototypes,
14210 which can conflict with char $ac_func (); below.
14211 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14212 <limits.h> exists even on freestanding compilers. */
14215 # include <limits.h>
14217 # include <assert.h>
14222 /* Override any GCC internal prototype to avoid an error.
14223 Use char because int might match the return type of a GCC
14224 builtin and then its argument prototype would still apply. */
14229 /* The GNU C library defines this for functions which it implements
14230 to always fail with ENOSYS. Some functions are actually named
14231 something starting with __ and the normal name is an alias. */
14232 #if defined __stub_$ac_func || defined __stub___$ac_func
14239 return $ac_func ();
14244 rm -f conftest.$ac_objext conftest$ac_exeext
14245 if { (ac_try="$ac_link"
14246 case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14250 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_link") 2>conftest.er1
14253 grep -v '^ *+' conftest.er1 >conftest.err
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest$ac_exeext &&
14261 $as_test_x conftest$ac_exeext; then
14262 eval "$as_ac_var=yes"
14264 echo "$as_me: failed program was
:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14267 eval "$as_ac_var=no
"
14270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14271 conftest$ac_exeext conftest.$ac_ext
14273 ac_res=`eval echo '${'$as_ac_var'}'`
14274 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14275 echo "${ECHO_T}$ac_res" >&6; }
14276 if test `eval echo '${'$as_ac_var'}'` = yes; then
14278 cat >>confdefs.h <<_ACEOF
14279 #define CRAY_STACKSEG_END $ac_func
14288 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14289 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14290 if test "${ac_cv_c_stack_direction+set}" = set; then
14291 echo $ECHO_N "(cached
) $ECHO_C" >&6
14293 if test "$cross_compiling" = yes; then
14294 ac_cv_c_stack_direction=0
14296 cat >conftest.$ac_ext <<_ACEOF
14299 cat confdefs.h >>conftest.$ac_ext
14300 cat >>conftest.$ac_ext <<_ACEOF
14301 /* end confdefs.h. */
14302 $ac_includes_default
14304 find_stack_direction ()
14306 static char *addr = 0;
14311 return find_stack_direction ();
14314 return (&dummy > addr) ? 1 : -1;
14320 return find_stack_direction () < 0;
14323 rm -f conftest$ac_exeext
14324 if { (ac_try="$ac_link"
14325 case "(($ac_try" in
14326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14327 *) ac_try_echo=$ac_try;;
14329 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14330 (eval "$ac_link") 2>&5
14332 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14334 { (case "(($ac_try" in
14335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14336 *) ac_try_echo=$ac_try;;
14338 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14339 (eval "$ac_try") 2>&5
14341 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14342 (exit $ac_status); }; }; then
14343 ac_cv_c_stack_direction=1
14345 echo "$as_me: program exited with status
$ac_status" >&5
14346 echo "$as_me: failed program was
:" >&5
14347 sed 's/^/| /' conftest.$ac_ext >&5
14349 ( exit $ac_status )
14350 ac_cv_c_stack_direction=-1
14352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14357 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14358 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14360 cat >>confdefs.h <<_ACEOF
14361 #define STACK_DIRECTION $ac_cv_c_stack_direction
14368 # fmod, logb, and frexp are found in -lm on most systems.
14369 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14371 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14372 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14373 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14374 echo $ECHO_N "(cached
) $ECHO_C" >&6
14376 ac_check_lib_save_LIBS=$LIBS
14378 cat >conftest.$ac_ext <<_ACEOF
14381 cat confdefs.h >>conftest.$ac_ext
14382 cat >>conftest.$ac_ext <<_ACEOF
14383 /* end confdefs.h. */
14385 /* Override any GCC internal prototype to avoid an error.
14386 Use char because int might match the return type of a GCC
14387 builtin and then its argument prototype would still apply. */
14400 rm -f conftest.$ac_objext conftest$ac_exeext
14401 if { (ac_try="$ac_link"
14402 case "(($ac_try" in
14403 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14404 *) ac_try_echo=$ac_try;;
14406 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14407 (eval "$ac_link") 2>conftest.er1
14409 grep -v '^ *+' conftest.er1 >conftest.err
14411 cat conftest.err >&5
14412 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14413 (exit $ac_status); } && {
14414 test -z "$ac_c_werror_flag" ||
14415 test ! -s conftest.err
14416 } && test -s conftest$ac_exeext &&
14417 $as_test_x conftest$ac_exeext; then
14418 ac_cv_lib_m_sqrt=yes
14420 echo "$as_me: failed program was
:" >&5
14421 sed 's/^/| /' conftest.$ac_ext >&5
14423 ac_cv_lib_m_sqrt=no
14426 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14427 conftest$ac_exeext conftest.$ac_ext
14428 LIBS=$ac_check_lib_save_LIBS
14430 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
14431 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14432 if test $ac_cv_lib_m_sqrt = yes; then
14433 cat >>confdefs.h <<_ACEOF
14434 #define HAVE_LIBM 1
14442 # Check for mail-locking functions in a "mail" library. Probably this should
14443 # have the same check as for liblockfile below.
14445 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
14446 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
14447 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14448 echo $ECHO_N "(cached
) $ECHO_C" >&6
14450 ac_check_lib_save_LIBS=$LIBS
14451 LIBS="-lmail $LIBS"
14452 cat >conftest.$ac_ext <<_ACEOF
14455 cat confdefs.h >>conftest.$ac_ext
14456 cat >>conftest.$ac_ext <<_ACEOF
14457 /* end confdefs.h. */
14459 /* Override any GCC internal prototype to avoid an error.
14460 Use char because int might match the return type of a GCC
14461 builtin and then its argument prototype would still apply. */
14469 return maillock ();
14474 rm -f conftest.$ac_objext conftest$ac_exeext
14475 if { (ac_try="$ac_link"
14476 case "(($ac_try" in
14477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14478 *) ac_try_echo=$ac_try;;
14480 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14481 (eval "$ac_link") 2>conftest.er1
14483 grep -v '^ *+' conftest.er1 >conftest.err
14485 cat conftest.err >&5
14486 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14487 (exit $ac_status); } && {
14488 test -z "$ac_c_werror_flag" ||
14489 test ! -s conftest.err
14490 } && test -s conftest$ac_exeext &&
14491 $as_test_x conftest$ac_exeext; then
14492 ac_cv_lib_mail_maillock=yes
14494 echo "$as_me: failed program was
:" >&5
14495 sed 's/^/| /' conftest.$ac_ext >&5
14497 ac_cv_lib_mail_maillock=no
14500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14501 conftest$ac_exeext conftest.$ac_ext
14502 LIBS=$ac_check_lib_save_LIBS
14504 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
14505 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14506 if test $ac_cv_lib_mail_maillock = yes; then
14507 cat >>confdefs.h <<_ACEOF
14508 #define HAVE_LIBMAIL 1
14511 LIBS="-lmail $LIBS"
14516 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
14517 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
14518 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14519 echo $ECHO_N "(cached
) $ECHO_C" >&6
14521 ac_check_lib_save_LIBS=$LIBS
14522 LIBS="-llockfile $LIBS"
14523 cat >conftest.$ac_ext <<_ACEOF
14526 cat confdefs.h >>conftest.$ac_ext
14527 cat >>conftest.$ac_ext <<_ACEOF
14528 /* end confdefs.h. */
14530 /* Override any GCC internal prototype to avoid an error.
14531 Use char because int might match the return type of a GCC
14532 builtin and then its argument prototype would still apply. */
14540 return maillock ();
14545 rm -f conftest.$ac_objext conftest$ac_exeext
14546 if { (ac_try="$ac_link"
14547 case "(($ac_try" in
14548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14549 *) ac_try_echo=$ac_try;;
14551 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14552 (eval "$ac_link") 2>conftest.er1
14554 grep -v '^ *+' conftest.er1 >conftest.err
14556 cat conftest.err >&5
14557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14558 (exit $ac_status); } && {
14559 test -z "$ac_c_werror_flag" ||
14560 test ! -s conftest.err
14561 } && test -s conftest$ac_exeext &&
14562 $as_test_x conftest$ac_exeext; then
14563 ac_cv_lib_lockfile_maillock=yes
14565 echo "$as_me: failed program was
:" >&5
14566 sed 's/^/| /' conftest.$ac_ext >&5
14568 ac_cv_lib_lockfile_maillock=no
14571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14572 conftest$ac_exeext conftest.$ac_ext
14573 LIBS=$ac_check_lib_save_LIBS
14575 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
14576 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14577 if test $ac_cv_lib_lockfile_maillock = yes; then
14578 cat >>confdefs.h <<_ACEOF
14579 #define HAVE_LIBLOCKFILE 1
14582 LIBS="-llockfile $LIBS"
14586 # If we have the shared liblockfile, assume we must use it for mail
14587 # locking (e.g. Debian). If we couldn't link against liblockfile
14588 # (no liblockfile.a installed), ensure that we don't need to.
14589 if test "$ac_cv_lib_lockfile_maillock" = no; then
14590 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
14591 set dummy liblockfile.so; ac_word=$2
14592 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
14593 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
14594 if test "${ac_cv_prog_liblockfile+set}" = set; then
14595 echo $ECHO_N "(cached
) $ECHO_C" >&6
14597 if test -n "$liblockfile"; then
14598 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14601 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
14602 for as_dir in $as_dummy
14605 test -z "$as_dir" && as_dir=.
14606 for ac_exec_ext in '' $ac_executable_extensions; do
14607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14608 ac_cv_prog_liblockfile="yes"
14609 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
14616 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
14619 liblockfile=$ac_cv_prog_liblockfile
14620 if test -n "$liblockfile"; then
14621 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
14622 echo "${ECHO_T}$liblockfile" >&6; }
14624 { echo "$as_me:$LINENO: result
: no
" >&5
14625 echo "${ECHO_T}no
" >&6; }
14629 if test $ac_cv_prog_liblockfile = yes; then
14630 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
14631 This probably means that movemail could lose mail.
14632 There may be a \`development' package to
install containing liblockfile.
" >&5
14633 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
14634 This probably means that movemail could lose mail.
14635 There may be a \`development' package to
install containing liblockfile.
" >&2;}
14636 { (exit 1); exit 1; }; }
14641 for ac_func in touchlock
14643 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14644 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14645 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14646 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14647 echo $ECHO_N "(cached
) $ECHO_C" >&6
14649 cat >conftest.$ac_ext <<_ACEOF
14652 cat confdefs.h >>conftest.$ac_ext
14653 cat >>conftest.$ac_ext <<_ACEOF
14654 /* end confdefs.h. */
14655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14657 #define $ac_func innocuous_$ac_func
14659 /* System header to define __stub macros and hopefully few prototypes,
14660 which can conflict with char $ac_func (); below.
14661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14662 <limits.h> exists even on freestanding compilers. */
14665 # include <limits.h>
14667 # include <assert.h>
14672 /* Override any GCC internal prototype to avoid an error.
14673 Use char because int might match the return type of a GCC
14674 builtin and then its argument prototype would still apply. */
14679 /* The GNU C library defines this for functions which it implements
14680 to always fail with ENOSYS. Some functions are actually named
14681 something starting with __ and the normal name is an alias. */
14682 #if defined __stub_$ac_func || defined __stub___$ac_func
14689 return $ac_func ();
14694 rm -f conftest.$ac_objext conftest$ac_exeext
14695 if { (ac_try="$ac_link"
14696 case "(($ac_try" in
14697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14698 *) ac_try_echo=$ac_try;;
14700 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14701 (eval "$ac_link") 2>conftest.er1
14703 grep -v '^ *+' conftest.er1 >conftest.err
14705 cat conftest.err >&5
14706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14707 (exit $ac_status); } && {
14708 test -z "$ac_c_werror_flag" ||
14709 test ! -s conftest.err
14710 } && test -s conftest$ac_exeext &&
14711 $as_test_x conftest$ac_exeext; then
14712 eval "$as_ac_var=yes"
14714 echo "$as_me: failed program was
:" >&5
14715 sed 's/^/| /' conftest.$ac_ext >&5
14717 eval "$as_ac_var=no
"
14720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14721 conftest$ac_exeext conftest.$ac_ext
14723 ac_res=`eval echo '${'$as_ac_var'}'`
14724 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14725 echo "${ECHO_T}$ac_res" >&6; }
14726 if test `eval echo '${'$as_ac_var'}'` = yes; then
14727 cat >>confdefs.h <<_ACEOF
14728 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
14735 for ac_header in maillock.h
14737 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
14738 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14739 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14740 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14741 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14742 echo $ECHO_N "(cached
) $ECHO_C" >&6
14744 ac_res=`eval echo '${'$as_ac_Header'}'`
14745 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14746 echo "${ECHO_T}$ac_res" >&6; }
14748 # Is the header compilable?
14749 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
14750 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
14751 cat >conftest.$ac_ext <<_ACEOF
14754 cat confdefs.h >>conftest.$ac_ext
14755 cat >>conftest.$ac_ext <<_ACEOF
14756 /* end confdefs.h. */
14757 $ac_includes_default
14758 #include <$ac_header>
14760 rm -f conftest.$ac_objext
14761 if { (ac_try="$ac_compile"
14762 case "(($ac_try" in
14763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14764 *) ac_try_echo=$ac_try;;
14766 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14767 (eval "$ac_compile") 2>conftest.er1
14769 grep -v '^ *+' conftest.er1 >conftest.err
14771 cat conftest.err >&5
14772 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14773 (exit $ac_status); } && {
14774 test -z "$ac_c_werror_flag" ||
14775 test ! -s conftest.err
14776 } && test -s conftest.$ac_objext; then
14777 ac_header_compiler=yes
14779 echo "$as_me: failed program was
:" >&5
14780 sed 's/^/| /' conftest.$ac_ext >&5
14782 ac_header_compiler=no
14785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14786 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
14787 echo "${ECHO_T}$ac_header_compiler" >&6; }
14789 # Is the header present?
14790 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
14791 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
14792 cat >conftest.$ac_ext <<_ACEOF
14795 cat confdefs.h >>conftest.$ac_ext
14796 cat >>conftest.$ac_ext <<_ACEOF
14797 /* end confdefs.h. */
14798 #include <$ac_header>
14800 if { (ac_try="$ac_cpp conftest.
$ac_ext"
14801 case "(($ac_try" in
14802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14803 *) ac_try_echo=$ac_try;;
14805 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14806 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
14808 grep -v '^ *+' conftest.er1 >conftest.err
14810 cat conftest.err >&5
14811 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14812 (exit $ac_status); } >/dev/null && {
14813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14814 test ! -s conftest.err
14816 ac_header_preproc=yes
14818 echo "$as_me: failed program was
:" >&5
14819 sed 's/^/| /' conftest.$ac_ext >&5
14821 ac_header_preproc=no
14824 rm -f conftest.err conftest.$ac_ext
14825 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
14826 echo "${ECHO_T}$ac_header_preproc" >&6; }
14828 # So? What about this header?
14829 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14831 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
14832 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
14833 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
14834 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
14835 ac_header_preproc=yes
14838 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
14839 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
14840 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
14841 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
14842 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
14843 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
14844 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
14845 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
14846 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
14847 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
14848 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
14849 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
14853 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
14854 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
14855 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
14856 echo $ECHO_N "(cached
) $ECHO_C" >&6
14858 eval "$as_ac_Header=\
$ac_header_preproc"
14860 ac_res=`eval echo '${'$as_ac_Header'}'`
14861 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14862 echo "${ECHO_T}$ac_res" >&6; }
14865 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14866 cat >>confdefs.h <<_ACEOF
14867 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
14944 for ac_func in gethostname getdomainname dup2 \
14945 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14946 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14947 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14948 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14949 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14950 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14951 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
14952 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14954 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14955 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14956 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14957 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14958 echo $ECHO_N "(cached
) $ECHO_C" >&6
14960 cat >conftest.$ac_ext <<_ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14967 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14968 #define $ac_func innocuous_$ac_func
14970 /* System header to define __stub macros and hopefully few prototypes,
14971 which can conflict with char $ac_func (); below.
14972 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14973 <limits.h> exists even on freestanding compilers. */
14976 # include <limits.h>
14978 # include <assert.h>
14983 /* Override any GCC internal prototype to avoid an error.
14984 Use char because int might match the return type of a GCC
14985 builtin and then its argument prototype would still apply. */
14990 /* The GNU C library defines this for functions which it implements
14991 to always fail with ENOSYS. Some functions are actually named
14992 something starting with __ and the normal name is an alias. */
14993 #if defined __stub_$ac_func || defined __stub___$ac_func
15000 return $ac_func ();
15005 rm -f conftest.$ac_objext conftest$ac_exeext
15006 if { (ac_try="$ac_link"
15007 case "(($ac_try" in
15008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009 *) ac_try_echo=$ac_try;;
15011 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15012 (eval "$ac_link") 2>conftest.er1
15014 grep -v '^ *+' conftest.er1 >conftest.err
15016 cat conftest.err >&5
15017 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15018 (exit $ac_status); } && {
15019 test -z "$ac_c_werror_flag" ||
15020 test ! -s conftest.err
15021 } && test -s conftest$ac_exeext &&
15022 $as_test_x conftest$ac_exeext; then
15023 eval "$as_ac_var=yes"
15025 echo "$as_me: failed program was
:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 eval "$as_ac_var=no
"
15031 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15032 conftest$ac_exeext conftest.$ac_ext
15034 ac_res=`eval echo '${'$as_ac_var'}'`
15035 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15036 echo "${ECHO_T}$ac_res" >&6; }
15037 if test `eval echo '${'$as_ac_var'}'` = yes; then
15038 cat >>confdefs.h <<_ACEOF
15039 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15047 for ac_header in sys/un.h
15049 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15050 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15051 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15052 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15053 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15054 echo $ECHO_N "(cached
) $ECHO_C" >&6
15056 ac_res=`eval echo '${'$as_ac_Header'}'`
15057 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15058 echo "${ECHO_T}$ac_res" >&6; }
15060 # Is the header compilable?
15061 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15062 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15063 cat >conftest.$ac_ext <<_ACEOF
15066 cat confdefs.h >>conftest.$ac_ext
15067 cat >>conftest.$ac_ext <<_ACEOF
15068 /* end confdefs.h. */
15069 $ac_includes_default
15070 #include <$ac_header>
15072 rm -f conftest.$ac_objext
15073 if { (ac_try="$ac_compile"
15074 case "(($ac_try" in
15075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15076 *) ac_try_echo=$ac_try;;
15078 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15079 (eval "$ac_compile") 2>conftest.er1
15081 grep -v '^ *+' conftest.er1 >conftest.err
15083 cat conftest.err >&5
15084 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15085 (exit $ac_status); } && {
15086 test -z "$ac_c_werror_flag" ||
15087 test ! -s conftest.err
15088 } && test -s conftest.$ac_objext; then
15089 ac_header_compiler=yes
15091 echo "$as_me: failed program was
:" >&5
15092 sed 's/^/| /' conftest.$ac_ext >&5
15094 ac_header_compiler=no
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15098 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15099 echo "${ECHO_T}$ac_header_compiler" >&6; }
15101 # Is the header present?
15102 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15103 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15104 cat >conftest.$ac_ext <<_ACEOF
15107 cat confdefs.h >>conftest.$ac_ext
15108 cat >>conftest.$ac_ext <<_ACEOF
15109 /* end confdefs.h. */
15110 #include <$ac_header>
15112 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15113 case "(($ac_try" in
15114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15115 *) ac_try_echo=$ac_try;;
15117 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15118 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15120 grep -v '^ *+' conftest.er1 >conftest.err
15122 cat conftest.err >&5
15123 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15124 (exit $ac_status); } >/dev/null && {
15125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15126 test ! -s conftest.err
15128 ac_header_preproc=yes
15130 echo "$as_me: failed program was
:" >&5
15131 sed 's/^/| /' conftest.$ac_ext >&5
15133 ac_header_preproc=no
15136 rm -f conftest.err conftest.$ac_ext
15137 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15138 echo "${ECHO_T}$ac_header_preproc" >&6; }
15140 # So? What about this header?
15141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15143 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15144 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15145 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15147 ac_header_preproc=yes
15150 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15151 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15152 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15153 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15154 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15155 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15156 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15157 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15158 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15160 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15161 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15165 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15166 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15167 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15168 echo $ECHO_N "(cached
) $ECHO_C" >&6
15170 eval "$as_ac_Header=\
$ac_header_preproc"
15172 ac_res=`eval echo '${'$as_ac_Header'}'`
15173 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15174 echo "${ECHO_T}$ac_res" >&6; }
15177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15178 cat >>confdefs.h <<_ACEOF
15179 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15191 for ac_header in $ac_header_list
15193 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15194 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15195 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15196 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15197 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15198 echo $ECHO_N "(cached
) $ECHO_C" >&6
15200 ac_res=`eval echo '${'$as_ac_Header'}'`
15201 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15202 echo "${ECHO_T}$ac_res" >&6; }
15204 # Is the header compilable?
15205 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15206 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15207 cat >conftest.$ac_ext <<_ACEOF
15210 cat confdefs.h >>conftest.$ac_ext
15211 cat >>conftest.$ac_ext <<_ACEOF
15212 /* end confdefs.h. */
15213 $ac_includes_default
15214 #include <$ac_header>
15216 rm -f conftest.$ac_objext
15217 if { (ac_try="$ac_compile"
15218 case "(($ac_try" in
15219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15220 *) ac_try_echo=$ac_try;;
15222 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15223 (eval "$ac_compile") 2>conftest.er1
15225 grep -v '^ *+' conftest.er1 >conftest.err
15227 cat conftest.err >&5
15228 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15229 (exit $ac_status); } && {
15230 test -z "$ac_c_werror_flag" ||
15231 test ! -s conftest.err
15232 } && test -s conftest.$ac_objext; then
15233 ac_header_compiler=yes
15235 echo "$as_me: failed program was
:" >&5
15236 sed 's/^/| /' conftest.$ac_ext >&5
15238 ac_header_compiler=no
15241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15242 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15243 echo "${ECHO_T}$ac_header_compiler" >&6; }
15245 # Is the header present?
15246 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15247 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15248 cat >conftest.$ac_ext <<_ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 #include <$ac_header>
15256 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15257 case "(($ac_try" in
15258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15259 *) ac_try_echo=$ac_try;;
15261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15262 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15264 grep -v '^ *+' conftest.er1 >conftest.err
15266 cat conftest.err >&5
15267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15268 (exit $ac_status); } >/dev/null && {
15269 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15270 test ! -s conftest.err
15272 ac_header_preproc=yes
15274 echo "$as_me: failed program was
:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15277 ac_header_preproc=no
15280 rm -f conftest.err conftest.$ac_ext
15281 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15282 echo "${ECHO_T}$ac_header_preproc" >&6; }
15284 # So? What about this header?
15285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15287 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15288 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15289 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15290 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15291 ac_header_preproc=yes
15294 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15295 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15296 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15297 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15298 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15299 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15300 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15301 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15302 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15303 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15304 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15305 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15309 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15310 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15311 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15312 echo $ECHO_N "(cached
) $ECHO_C" >&6
15314 eval "$as_ac_Header=\
$ac_header_preproc"
15316 ac_res=`eval echo '${'$as_ac_Header'}'`
15317 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15318 echo "${ECHO_T}$ac_res" >&6; }
15321 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15322 cat >>confdefs.h <<_ACEOF
15323 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15338 for ac_func in $ac_func_list
15340 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15341 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15342 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15343 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15344 echo $ECHO_N "(cached
) $ECHO_C" >&6
15346 cat >conftest.$ac_ext <<_ACEOF
15349 cat confdefs.h >>conftest.$ac_ext
15350 cat >>conftest.$ac_ext <<_ACEOF
15351 /* end confdefs.h. */
15352 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15353 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15354 #define $ac_func innocuous_$ac_func
15356 /* System header to define __stub macros and hopefully few prototypes,
15357 which can conflict with char $ac_func (); below.
15358 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15359 <limits.h> exists even on freestanding compilers. */
15362 # include <limits.h>
15364 # include <assert.h>
15369 /* Override any GCC internal prototype to avoid an error.
15370 Use char because int might match the return type of a GCC
15371 builtin and then its argument prototype would still apply. */
15376 /* The GNU C library defines this for functions which it implements
15377 to always fail with ENOSYS. Some functions are actually named
15378 something starting with __ and the normal name is an alias. */
15379 #if defined __stub_$ac_func || defined __stub___$ac_func
15386 return $ac_func ();
15391 rm -f conftest.$ac_objext conftest$ac_exeext
15392 if { (ac_try="$ac_link"
15393 case "(($ac_try" in
15394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15395 *) ac_try_echo=$ac_try;;
15397 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15398 (eval "$ac_link") 2>conftest.er1
15400 grep -v '^ *+' conftest.er1 >conftest.err
15402 cat conftest.err >&5
15403 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15404 (exit $ac_status); } && {
15405 test -z "$ac_c_werror_flag" ||
15406 test ! -s conftest.err
15407 } && test -s conftest$ac_exeext &&
15408 $as_test_x conftest$ac_exeext; then
15409 eval "$as_ac_var=yes"
15411 echo "$as_me: failed program was
:" >&5
15412 sed 's/^/| /' conftest.$ac_ext >&5
15414 eval "$as_ac_var=no
"
15417 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15418 conftest$ac_exeext conftest.$ac_ext
15420 ac_res=`eval echo '${'$as_ac_var'}'`
15421 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15422 echo "${ECHO_T}$ac_res" >&6; }
15423 if test `eval echo '${'$as_ac_var'}'` = yes; then
15424 cat >>confdefs.h <<_ACEOF
15425 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15447 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
15448 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
15449 if test "${ac_cv_func_working_mktime+set}" = set; then
15450 echo $ECHO_N "(cached
) $ECHO_C" >&6
15452 if test "$cross_compiling" = yes; then
15453 ac_cv_func_working_mktime=no
15455 cat >conftest.$ac_ext <<_ACEOF
15458 cat confdefs.h >>conftest.$ac_ext
15459 cat >>conftest.$ac_ext <<_ACEOF
15460 /* end confdefs.h. */
15461 /* Test program from Paul Eggert and Tony Leneis. */
15462 #ifdef TIME_WITH_SYS_TIME
15463 # include <sys/time.h>
15466 # ifdef HAVE_SYS_TIME_H
15467 # include <sys/time.h>
15473 #include <stdlib.h>
15475 #ifdef HAVE_UNISTD_H
15476 # include <unistd.h>
15480 # define alarm(X) /* empty */
15483 /* Work around redefinition to rpl_putenv by other config tests. */
15486 static time_t time_t_max;
15487 static time_t time_t_min;
15489 /* Values we'll use to set the TZ environment variable. */
15490 static char *tz_strings[] = {
15491 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
15492 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
15494 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15496 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15497 Based on a problem report from Andreas Jaeger. */
15499 spring_forward_gap ()
15501 /* glibc (up to about 1998-10-07) failed this test. */
15504 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15505 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15506 on systems that don't support the Olson extension, or don't have the
15507 full zoneinfo tables installed. */
15508 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15517 return mktime (&tm) != (time_t) -1;
15525 return ! (lt = localtime (&now)) || mktime (lt) == now;
15532 return (mktime_test1 (now)
15533 && mktime_test1 ((time_t) (time_t_max - now))
15534 && mktime_test1 ((time_t) (time_t_min + now)));
15540 /* Based on code from Ariel Faigon. */
15550 return tm.tm_mon == 2 && tm.tm_mday == 31;
15559 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15560 now = mktime (&tm);
15561 if (now != (time_t) -1)
15563 struct tm *lt = localtime (&now);
15565 && lt->tm_year == tm.tm_year
15566 && lt->tm_mon == tm.tm_mon
15567 && lt->tm_mday == tm.tm_mday
15568 && lt->tm_hour == tm.tm_hour
15569 && lt->tm_min == tm.tm_min
15570 && lt->tm_sec == tm.tm_sec
15571 && lt->tm_yday == tm.tm_yday
15572 && lt->tm_wday == tm.tm_wday
15573 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15574 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15583 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15584 ignoring leap seconds. */
15585 unsigned long int answer = 2527315200UL;
15589 tm.tm_year = 2050 - 1900;
15592 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15595 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
15596 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
15597 on systems that don't support the Olson extension, or don't have the
15598 full zoneinfo tables installed. */
15599 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
15603 /* Check that the result is either a failure, or close enough
15604 to the correct answer that we can assume the discrepancy is
15605 due to leap seconds. */
15606 return (t == (time_t) -1
15607 || (0 < t && answer - 120 <= t && t <= answer + 120));
15616 /* This test makes some buggy mktime implementations loop.
15617 Give up after 60 seconds; a mktime slower than that
15618 isn't worth using anyway. */
15621 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15624 if ((time_t) -1 < 0)
15625 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15627 delta = time_t_max / 997; /* a suitable prime number */
15628 for (i = 0; i < N_STRINGS; i++)
15631 putenv (tz_strings[i]);
15633 for (t = 0; t <= time_t_max - delta; t += delta)
15634 if (! mktime_test (t))
15636 if (! (mktime_test ((time_t) 1)
15637 && mktime_test ((time_t) (60 * 60))
15638 && mktime_test ((time_t) (60 * 60 * 24))))
15641 for (j = 1; 0 < j; j *= 2)
15642 if (! bigtime_test (j))
15644 if (! bigtime_test (j - 1))
15647 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15650 rm -f conftest$ac_exeext
15651 if { (ac_try="$ac_link"
15652 case "(($ac_try" in
15653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15654 *) ac_try_echo=$ac_try;;
15656 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15657 (eval "$ac_link") 2>&5
15659 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15660 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15661 { (case "(($ac_try" in
15662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15663 *) ac_try_echo=$ac_try;;
15665 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15666 (eval "$ac_try") 2>&5
15668 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15669 (exit $ac_status); }; }; then
15670 ac_cv_func_working_mktime=yes
15672 echo "$as_me: program exited with status
$ac_status" >&5
15673 echo "$as_me: failed program was
:" >&5
15674 sed 's/^/| /' conftest.$ac_ext >&5
15676 ( exit $ac_status )
15677 ac_cv_func_working_mktime=no
15679 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15684 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
15685 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15686 if test $ac_cv_func_working_mktime = no; then
15687 case " $LIBOBJS " in
15688 *" mktime.
$ac_objext "* ) ;;
15689 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
15695 if test "$ac_cv_func_working_mktime" = no; then
15697 cat >>confdefs.h <<\_ACEOF
15698 #define BROKEN_MKTIME 1
15703 ac_have_func=no # yes means we've found a way to get the load average.
15705 # Make sure getloadavg.c is where it belongs, at configure-time.
15706 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
15707 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
15708 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
15709 { (exit 1); exit 1; }; }
15713 # Check for getloadavg, but be sure not to touch the cache variable.
15714 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
15715 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
15716 if test "${ac_cv_func_getloadavg+set}" = set; then
15717 echo $ECHO_N "(cached
) $ECHO_C" >&6
15719 cat >conftest.$ac_ext <<_ACEOF
15722 cat confdefs.h >>conftest.$ac_ext
15723 cat >>conftest.$ac_ext <<_ACEOF
15724 /* end confdefs.h. */
15725 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15726 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15727 #define getloadavg innocuous_getloadavg
15729 /* System header to define __stub macros and hopefully few prototypes,
15730 which can conflict with char getloadavg (); below.
15731 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15732 <limits.h> exists even on freestanding compilers. */
15735 # include <limits.h>
15737 # include <assert.h>
15742 /* Override any GCC internal prototype to avoid an error.
15743 Use char because int might match the return type of a GCC
15744 builtin and then its argument prototype would still apply. */
15748 char getloadavg ();
15749 /* The GNU C library defines this for functions which it implements
15750 to always fail with ENOSYS. Some functions are actually named
15751 something starting with __ and the normal name is an alias. */
15752 #if defined __stub_getloadavg || defined __stub___getloadavg
15759 return getloadavg ();
15764 rm -f conftest.$ac_objext conftest$ac_exeext
15765 if { (ac_try="$ac_link"
15766 case "(($ac_try" in
15767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15768 *) ac_try_echo=$ac_try;;
15770 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15771 (eval "$ac_link") 2>conftest.er1
15773 grep -v '^ *+' conftest.er1 >conftest.err
15775 cat conftest.err >&5
15776 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15777 (exit $ac_status); } && {
15778 test -z "$ac_c_werror_flag" ||
15779 test ! -s conftest.err
15780 } && test -s conftest$ac_exeext &&
15781 $as_test_x conftest$ac_exeext; then
15782 ac_cv_func_getloadavg=yes
15784 echo "$as_me: failed program was
:" >&5
15785 sed 's/^/| /' conftest.$ac_ext >&5
15787 ac_cv_func_getloadavg=no
15790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15791 conftest$ac_exeext conftest.$ac_ext
15793 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
15794 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
15795 if test $ac_cv_func_getloadavg = yes; then
15800 ) && ac_have_func=yes
15802 # On HPUX9, an unprivileged user can get load averages through this function.
15804 for ac_func in pstat_getdynamic
15806 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15807 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15808 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15809 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15810 echo $ECHO_N "(cached
) $ECHO_C" >&6
15812 cat >conftest.$ac_ext <<_ACEOF
15815 cat confdefs.h >>conftest.$ac_ext
15816 cat >>conftest.$ac_ext <<_ACEOF
15817 /* end confdefs.h. */
15818 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15819 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15820 #define $ac_func innocuous_$ac_func
15822 /* System header to define __stub macros and hopefully few prototypes,
15823 which can conflict with char $ac_func (); below.
15824 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15825 <limits.h> exists even on freestanding compilers. */
15828 # include <limits.h>
15830 # include <assert.h>
15835 /* Override any GCC internal prototype to avoid an error.
15836 Use char because int might match the return type of a GCC
15837 builtin and then its argument prototype would still apply. */
15842 /* The GNU C library defines this for functions which it implements
15843 to always fail with ENOSYS. Some functions are actually named
15844 something starting with __ and the normal name is an alias. */
15845 #if defined __stub_$ac_func || defined __stub___$ac_func
15852 return $ac_func ();
15857 rm -f conftest.$ac_objext conftest$ac_exeext
15858 if { (ac_try="$ac_link"
15859 case "(($ac_try" in
15860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15861 *) ac_try_echo=$ac_try;;
15863 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15864 (eval "$ac_link") 2>conftest.er1
15866 grep -v '^ *+' conftest.er1 >conftest.err
15868 cat conftest.err >&5
15869 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15870 (exit $ac_status); } && {
15871 test -z "$ac_c_werror_flag" ||
15872 test ! -s conftest.err
15873 } && test -s conftest$ac_exeext &&
15874 $as_test_x conftest$ac_exeext; then
15875 eval "$as_ac_var=yes"
15877 echo "$as_me: failed program was
:" >&5
15878 sed 's/^/| /' conftest.$ac_ext >&5
15880 eval "$as_ac_var=no
"
15883 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15884 conftest$ac_exeext conftest.$ac_ext
15886 ac_res=`eval echo '${'$as_ac_var'}'`
15887 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15888 echo "${ECHO_T}$ac_res" >&6; }
15889 if test `eval echo '${'$as_ac_var'}'` = yes; then
15890 cat >>confdefs.h <<_ACEOF
15891 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15898 # Solaris has libkstat which does not require root.
15900 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
15901 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
15902 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15903 echo $ECHO_N "(cached
) $ECHO_C" >&6
15905 ac_check_lib_save_LIBS=$LIBS
15906 LIBS="-lkstat $LIBS"
15907 cat >conftest.$ac_ext <<_ACEOF
15910 cat confdefs.h >>conftest.$ac_ext
15911 cat >>conftest.$ac_ext <<_ACEOF
15912 /* end confdefs.h. */
15914 /* Override any GCC internal prototype to avoid an error.
15915 Use char because int might match the return type of a GCC
15916 builtin and then its argument prototype would still apply. */
15920 char kstat_open ();
15924 return kstat_open ();
15929 rm -f conftest.$ac_objext conftest$ac_exeext
15930 if { (ac_try="$ac_link"
15931 case "(($ac_try" in
15932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15933 *) ac_try_echo=$ac_try;;
15935 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15936 (eval "$ac_link") 2>conftest.er1
15938 grep -v '^ *+' conftest.er1 >conftest.err
15940 cat conftest.err >&5
15941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15942 (exit $ac_status); } && {
15943 test -z "$ac_c_werror_flag" ||
15944 test ! -s conftest.err
15945 } && test -s conftest$ac_exeext &&
15946 $as_test_x conftest$ac_exeext; then
15947 ac_cv_lib_kstat_kstat_open=yes
15949 echo "$as_me: failed program was
:" >&5
15950 sed 's/^/| /' conftest.$ac_ext >&5
15952 ac_cv_lib_kstat_kstat_open=no
15955 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15956 conftest$ac_exeext conftest.$ac_ext
15957 LIBS=$ac_check_lib_save_LIBS
15959 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
15960 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
15961 if test $ac_cv_lib_kstat_kstat_open = yes; then
15962 cat >>confdefs.h <<_ACEOF
15963 #define HAVE_LIBKSTAT 1
15966 LIBS="-lkstat $LIBS"
15970 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15972 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15973 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15974 # to get the right answer into the cache.
15975 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15976 if test $ac_have_func = no; then
15977 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
15978 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
15979 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15980 echo $ECHO_N "(cached
) $ECHO_C" >&6
15982 ac_check_lib_save_LIBS=$LIBS
15984 cat >conftest.$ac_ext <<_ACEOF
15987 cat confdefs.h >>conftest.$ac_ext
15988 cat >>conftest.$ac_ext <<_ACEOF
15989 /* end confdefs.h. */
15991 /* Override any GCC internal prototype to avoid an error.
15992 Use char because int might match the return type of a GCC
15993 builtin and then its argument prototype would still apply. */
16001 return elf_begin ();
16006 rm -f conftest.$ac_objext conftest$ac_exeext
16007 if { (ac_try="$ac_link"
16008 case "(($ac_try" in
16009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16010 *) ac_try_echo=$ac_try;;
16012 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16013 (eval "$ac_link") 2>conftest.er1
16015 grep -v '^ *+' conftest.er1 >conftest.err
16017 cat conftest.err >&5
16018 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16019 (exit $ac_status); } && {
16020 test -z "$ac_c_werror_flag" ||
16021 test ! -s conftest.err
16022 } && test -s conftest$ac_exeext &&
16023 $as_test_x conftest$ac_exeext; then
16024 ac_cv_lib_elf_elf_begin=yes
16026 echo "$as_me: failed program was
:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16029 ac_cv_lib_elf_elf_begin=no
16032 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16033 conftest$ac_exeext conftest.$ac_ext
16034 LIBS=$ac_check_lib_save_LIBS
16036 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16037 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16038 if test $ac_cv_lib_elf_elf_begin = yes; then
16043 if test $ac_have_func = no; then
16044 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16045 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16046 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16047 echo $ECHO_N "(cached
) $ECHO_C" >&6
16049 ac_check_lib_save_LIBS=$LIBS
16051 cat >conftest.$ac_ext <<_ACEOF
16054 cat confdefs.h >>conftest.$ac_ext
16055 cat >>conftest.$ac_ext <<_ACEOF
16056 /* end confdefs.h. */
16058 /* Override any GCC internal prototype to avoid an error.
16059 Use char because int might match the return type of a GCC
16060 builtin and then its argument prototype would still apply. */
16068 return kvm_open ();
16073 rm -f conftest.$ac_objext conftest$ac_exeext
16074 if { (ac_try="$ac_link"
16075 case "(($ac_try" in
16076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16077 *) ac_try_echo=$ac_try;;
16079 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16080 (eval "$ac_link") 2>conftest.er1
16082 grep -v '^ *+' conftest.er1 >conftest.err
16084 cat conftest.err >&5
16085 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16086 (exit $ac_status); } && {
16087 test -z "$ac_c_werror_flag" ||
16088 test ! -s conftest.err
16089 } && test -s conftest$ac_exeext &&
16090 $as_test_x conftest$ac_exeext; then
16091 ac_cv_lib_kvm_kvm_open=yes
16093 echo "$as_me: failed program was
:" >&5
16094 sed 's/^/| /' conftest.$ac_ext >&5
16096 ac_cv_lib_kvm_kvm_open=no
16099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16100 conftest$ac_exeext conftest.$ac_ext
16101 LIBS=$ac_check_lib_save_LIBS
16103 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16104 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16105 if test $ac_cv_lib_kvm_kvm_open = yes; then
16109 # Check for the 4.4BSD definition of getloadavg.
16110 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16111 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16112 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16113 echo $ECHO_N "(cached
) $ECHO_C" >&6
16115 ac_check_lib_save_LIBS=$LIBS
16116 LIBS="-lutil $LIBS"
16117 cat >conftest.$ac_ext <<_ACEOF
16120 cat confdefs.h >>conftest.$ac_ext
16121 cat >>conftest.$ac_ext <<_ACEOF
16122 /* end confdefs.h. */
16124 /* Override any GCC internal prototype to avoid an error.
16125 Use char because int might match the return type of a GCC
16126 builtin and then its argument prototype would still apply. */
16130 char getloadavg ();
16134 return getloadavg ();
16139 rm -f conftest.$ac_objext conftest$ac_exeext
16140 if { (ac_try="$ac_link"
16141 case "(($ac_try" in
16142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143 *) ac_try_echo=$ac_try;;
16145 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16146 (eval "$ac_link") 2>conftest.er1
16148 grep -v '^ *+' conftest.er1 >conftest.err
16150 cat conftest.err >&5
16151 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16152 (exit $ac_status); } && {
16153 test -z "$ac_c_werror_flag" ||
16154 test ! -s conftest.err
16155 } && test -s conftest$ac_exeext &&
16156 $as_test_x conftest$ac_exeext; then
16157 ac_cv_lib_util_getloadavg=yes
16159 echo "$as_me: failed program was
:" >&5
16160 sed 's/^/| /' conftest.$ac_ext >&5
16162 ac_cv_lib_util_getloadavg=no
16165 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16166 conftest$ac_exeext conftest.$ac_ext
16167 LIBS=$ac_check_lib_save_LIBS
16169 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16170 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16171 if test $ac_cv_lib_util_getloadavg = yes; then
16172 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16177 if test $ac_have_func = no; then
16178 # There is a commonly available library for RS/6000 AIX.
16179 # Since it is not a standard part of AIX, it might be installed locally.
16180 ac_getloadavg_LIBS=$LIBS
16181 LIBS="-L/usr
/local
/lib
$LIBS"
16182 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16183 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16184 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16185 echo $ECHO_N "(cached
) $ECHO_C" >&6
16187 ac_check_lib_save_LIBS=$LIBS
16188 LIBS="-lgetloadavg $LIBS"
16189 cat >conftest.$ac_ext <<_ACEOF
16192 cat confdefs.h >>conftest.$ac_ext
16193 cat >>conftest.$ac_ext <<_ACEOF
16194 /* end confdefs.h. */
16196 /* Override any GCC internal prototype to avoid an error.
16197 Use char because int might match the return type of a GCC
16198 builtin and then its argument prototype would still apply. */
16202 char getloadavg ();
16206 return getloadavg ();
16211 rm -f conftest.$ac_objext conftest$ac_exeext
16212 if { (ac_try="$ac_link"
16213 case "(($ac_try" in
16214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16215 *) ac_try_echo=$ac_try;;
16217 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16218 (eval "$ac_link") 2>conftest.er1
16220 grep -v '^ *+' conftest.er1 >conftest.err
16222 cat conftest.err >&5
16223 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16224 (exit $ac_status); } && {
16225 test -z "$ac_c_werror_flag" ||
16226 test ! -s conftest.err
16227 } && test -s conftest$ac_exeext &&
16228 $as_test_x conftest$ac_exeext; then
16229 ac_cv_lib_getloadavg_getloadavg=yes
16231 echo "$as_me: failed program was
:" >&5
16232 sed 's/^/| /' conftest.$ac_ext >&5
16234 ac_cv_lib_getloadavg_getloadavg=no
16237 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16238 conftest$ac_exeext conftest.$ac_ext
16239 LIBS=$ac_check_lib_save_LIBS
16241 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16242 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16243 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16244 LIBS="-lgetloadavg $LIBS"
16246 LIBS=$ac_getloadavg_LIBS
16251 # Make sure it is really in the library, if we think we found it,
16252 # otherwise set up the replacement function.
16254 for ac_func in getloadavg
16256 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16257 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16258 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16259 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16260 echo $ECHO_N "(cached
) $ECHO_C" >&6
16262 cat >conftest.$ac_ext <<_ACEOF
16265 cat confdefs.h >>conftest.$ac_ext
16266 cat >>conftest.$ac_ext <<_ACEOF
16267 /* end confdefs.h. */
16268 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16269 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16270 #define $ac_func innocuous_$ac_func
16272 /* System header to define __stub macros and hopefully few prototypes,
16273 which can conflict with char $ac_func (); below.
16274 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16275 <limits.h> exists even on freestanding compilers. */
16278 # include <limits.h>
16280 # include <assert.h>
16285 /* Override any GCC internal prototype to avoid an error.
16286 Use char because int might match the return type of a GCC
16287 builtin and then its argument prototype would still apply. */
16292 /* The GNU C library defines this for functions which it implements
16293 to always fail with ENOSYS. Some functions are actually named
16294 something starting with __ and the normal name is an alias. */
16295 #if defined __stub_$ac_func || defined __stub___$ac_func
16302 return $ac_func ();
16307 rm -f conftest.$ac_objext conftest$ac_exeext
16308 if { (ac_try="$ac_link"
16309 case "(($ac_try" in
16310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16311 *) ac_try_echo=$ac_try;;
16313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16314 (eval "$ac_link") 2>conftest.er1
16316 grep -v '^ *+' conftest.er1 >conftest.err
16318 cat conftest.err >&5
16319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16320 (exit $ac_status); } && {
16321 test -z "$ac_c_werror_flag" ||
16322 test ! -s conftest.err
16323 } && test -s conftest$ac_exeext &&
16324 $as_test_x conftest$ac_exeext; then
16325 eval "$as_ac_var=yes"
16327 echo "$as_me: failed program was
:" >&5
16328 sed 's/^/| /' conftest.$ac_ext >&5
16330 eval "$as_ac_var=no
"
16333 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16334 conftest$ac_exeext conftest.$ac_ext
16336 ac_res=`eval echo '${'$as_ac_var'}'`
16337 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16338 echo "${ECHO_T}$ac_res" >&6; }
16339 if test `eval echo '${'$as_ac_var'}'` = yes; then
16340 cat >>confdefs.h <<_ACEOF
16341 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16345 case " $LIBOBJS " in
16346 *" getloadavg.
$ac_objext "* ) ;;
16347 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16352 cat >>confdefs.h <<\_ACEOF
16353 #define C_GETLOADAVG 1
16356 # Figure out what our getloadavg.c needs.
16358 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16359 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16360 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16361 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16362 echo $ECHO_N "(cached
) $ECHO_C" >&6
16364 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16365 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16367 # Is the header compilable?
16368 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16369 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16370 cat >conftest.$ac_ext <<_ACEOF
16373 cat confdefs.h >>conftest.$ac_ext
16374 cat >>conftest.$ac_ext <<_ACEOF
16375 /* end confdefs.h. */
16376 $ac_includes_default
16377 #include <sys/dg_sys_info.h>
16379 rm -f conftest.$ac_objext
16380 if { (ac_try="$ac_compile"
16381 case "(($ac_try" in
16382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16383 *) ac_try_echo=$ac_try;;
16385 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16386 (eval "$ac_compile") 2>conftest.er1
16388 grep -v '^ *+' conftest.er1 >conftest.err
16390 cat conftest.err >&5
16391 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16392 (exit $ac_status); } && {
16393 test -z "$ac_c_werror_flag" ||
16394 test ! -s conftest.err
16395 } && test -s conftest.$ac_objext; then
16396 ac_header_compiler=yes
16398 echo "$as_me: failed program was
:" >&5
16399 sed 's/^/| /' conftest.$ac_ext >&5
16401 ac_header_compiler=no
16404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16405 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16406 echo "${ECHO_T}$ac_header_compiler" >&6; }
16408 # Is the header present?
16409 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
16410 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
16411 cat >conftest.$ac_ext <<_ACEOF
16414 cat confdefs.h >>conftest.$ac_ext
16415 cat >>conftest.$ac_ext <<_ACEOF
16416 /* end confdefs.h. */
16417 #include <sys/dg_sys_info.h>
16419 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16420 case "(($ac_try" in
16421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16422 *) ac_try_echo=$ac_try;;
16424 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16425 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16427 grep -v '^ *+' conftest.er1 >conftest.err
16429 cat conftest.err >&5
16430 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16431 (exit $ac_status); } >/dev/null && {
16432 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16433 test ! -s conftest.err
16435 ac_header_preproc=yes
16437 echo "$as_me: failed program was
:" >&5
16438 sed 's/^/| /' conftest.$ac_ext >&5
16440 ac_header_preproc=no
16443 rm -f conftest.err conftest.$ac_ext
16444 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16445 echo "${ECHO_T}$ac_header_preproc" >&6; }
16447 # So? What about this header?
16448 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16450 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16451 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16452 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
16453 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
16454 ac_header_preproc=yes
16457 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
16458 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
16459 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
16460 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
16461 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
16462 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
16463 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16464 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16465 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
16466 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
16467 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
16468 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
16472 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16473 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16474 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16475 echo $ECHO_N "(cached
) $ECHO_C" >&6
16477 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16479 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16480 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16483 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16486 cat >>confdefs.h <<\_ACEOF
16491 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
16492 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
16493 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16494 echo $ECHO_N "(cached
) $ECHO_C" >&6
16496 ac_check_lib_save_LIBS=$LIBS
16498 cat >conftest.$ac_ext <<_ACEOF
16501 cat confdefs.h >>conftest.$ac_ext
16502 cat >>conftest.$ac_ext <<_ACEOF
16503 /* end confdefs.h. */
16505 /* Override any GCC internal prototype to avoid an error.
16506 Use char because int might match the return type of a GCC
16507 builtin and then its argument prototype would still apply. */
16511 char dg_sys_info ();
16515 return dg_sys_info ();
16520 rm -f conftest.$ac_objext conftest$ac_exeext
16521 if { (ac_try="$ac_link"
16522 case "(($ac_try" in
16523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524 *) ac_try_echo=$ac_try;;
16526 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16527 (eval "$ac_link") 2>conftest.er1
16529 grep -v '^ *+' conftest.er1 >conftest.err
16531 cat conftest.err >&5
16532 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16533 (exit $ac_status); } && {
16534 test -z "$ac_c_werror_flag" ||
16535 test ! -s conftest.err
16536 } && test -s conftest$ac_exeext &&
16537 $as_test_x conftest$ac_exeext; then
16538 ac_cv_lib_dgc_dg_sys_info=yes
16540 echo "$as_me: failed program was
:" >&5
16541 sed 's/^/| /' conftest.$ac_ext >&5
16543 ac_cv_lib_dgc_dg_sys_info=no
16546 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16547 conftest$ac_exeext conftest.$ac_ext
16548 LIBS=$ac_check_lib_save_LIBS
16550 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
16551 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16552 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16553 cat >>confdefs.h <<_ACEOF
16554 #define HAVE_LIBDGC 1
16565 if test "${ac_cv_header_locale_h+set}" = set; then
16566 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16567 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16568 if test "${ac_cv_header_locale_h+set}" = set; then
16569 echo $ECHO_N "(cached
) $ECHO_C" >&6
16571 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16572 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16574 # Is the header compilable?
16575 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
16576 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
16577 cat >conftest.$ac_ext <<_ACEOF
16580 cat confdefs.h >>conftest.$ac_ext
16581 cat >>conftest.$ac_ext <<_ACEOF
16582 /* end confdefs.h. */
16583 $ac_includes_default
16584 #include <locale.h>
16586 rm -f conftest.$ac_objext
16587 if { (ac_try="$ac_compile"
16588 case "(($ac_try" in
16589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16590 *) ac_try_echo=$ac_try;;
16592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16593 (eval "$ac_compile") 2>conftest.er1
16595 grep -v '^ *+' conftest.er1 >conftest.err
16597 cat conftest.err >&5
16598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16599 (exit $ac_status); } && {
16600 test -z "$ac_c_werror_flag" ||
16601 test ! -s conftest.err
16602 } && test -s conftest.$ac_objext; then
16603 ac_header_compiler=yes
16605 echo "$as_me: failed program was
:" >&5
16606 sed 's/^/| /' conftest.$ac_ext >&5
16608 ac_header_compiler=no
16611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16612 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16613 echo "${ECHO_T}$ac_header_compiler" >&6; }
16615 # Is the header present?
16616 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
16617 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
16618 cat >conftest.$ac_ext <<_ACEOF
16621 cat confdefs.h >>conftest.$ac_ext
16622 cat >>conftest.$ac_ext <<_ACEOF
16623 /* end confdefs.h. */
16624 #include <locale.h>
16626 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16627 case "(($ac_try" in
16628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16629 *) ac_try_echo=$ac_try;;
16631 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16632 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16634 grep -v '^ *+' conftest.er1 >conftest.err
16636 cat conftest.err >&5
16637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16638 (exit $ac_status); } >/dev/null && {
16639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16640 test ! -s conftest.err
16642 ac_header_preproc=yes
16644 echo "$as_me: failed program was
:" >&5
16645 sed 's/^/| /' conftest.$ac_ext >&5
16647 ac_header_preproc=no
16650 rm -f conftest.err conftest.$ac_ext
16651 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16652 echo "${ECHO_T}$ac_header_preproc" >&6; }
16654 # So? What about this header?
16655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16657 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16658 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16659 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
16660 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
16661 ac_header_preproc=yes
16664 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
16665 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
16666 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
16667 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
16668 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
16669 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
16670 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16671 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16672 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
16673 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
16674 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
16675 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
16679 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
16680 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
16681 if test "${ac_cv_header_locale_h+set}" = set; then
16682 echo $ECHO_N "(cached
) $ECHO_C" >&6
16684 ac_cv_header_locale_h=$ac_header_preproc
16686 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
16687 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16693 for ac_func in setlocale
16695 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16696 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16697 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16698 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16699 echo $ECHO_N "(cached
) $ECHO_C" >&6
16701 cat >conftest.$ac_ext <<_ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16708 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16709 #define $ac_func innocuous_$ac_func
16711 /* System header to define __stub macros and hopefully few prototypes,
16712 which can conflict with char $ac_func (); below.
16713 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16714 <limits.h> exists even on freestanding compilers. */
16717 # include <limits.h>
16719 # include <assert.h>
16724 /* Override any GCC internal prototype to avoid an error.
16725 Use char because int might match the return type of a GCC
16726 builtin and then its argument prototype would still apply. */
16731 /* The GNU C library defines this for functions which it implements
16732 to always fail with ENOSYS. Some functions are actually named
16733 something starting with __ and the normal name is an alias. */
16734 #if defined __stub_$ac_func || defined __stub___$ac_func
16741 return $ac_func ();
16746 rm -f conftest.$ac_objext conftest$ac_exeext
16747 if { (ac_try="$ac_link"
16748 case "(($ac_try" in
16749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16750 *) ac_try_echo=$ac_try;;
16752 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16753 (eval "$ac_link") 2>conftest.er1
16755 grep -v '^ *+' conftest.er1 >conftest.err
16757 cat conftest.err >&5
16758 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16759 (exit $ac_status); } && {
16760 test -z "$ac_c_werror_flag" ||
16761 test ! -s conftest.err
16762 } && test -s conftest$ac_exeext &&
16763 $as_test_x conftest$ac_exeext; then
16764 eval "$as_ac_var=yes"
16766 echo "$as_me: failed program was
:" >&5
16767 sed 's/^/| /' conftest.$ac_ext >&5
16769 eval "$as_ac_var=no
"
16772 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16773 conftest$ac_exeext conftest.$ac_ext
16775 ac_res=`eval echo '${'$as_ac_var'}'`
16776 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16777 echo "${ECHO_T}$ac_res" >&6; }
16778 if test `eval echo '${'$as_ac_var'}'` = yes; then
16779 cat >>confdefs.h <<_ACEOF
16780 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16787 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16788 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16789 # Irix 4.0.5F has the header but not the library.
16790 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16793 cat >>confdefs.h <<\_ACEOF
16799 if test $ac_have_func = no; then
16800 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16801 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
16802 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
16803 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16804 echo $ECHO_N "(cached
) $ECHO_C" >&6
16806 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
16807 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
16809 # Is the header compilable?
16810 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
16811 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
16812 cat >conftest.$ac_ext <<_ACEOF
16815 cat confdefs.h >>conftest.$ac_ext
16816 cat >>conftest.$ac_ext <<_ACEOF
16817 /* end confdefs.h. */
16818 $ac_includes_default
16819 #include <inq_stats/cpustats.h>
16821 rm -f conftest.$ac_objext
16822 if { (ac_try="$ac_compile"
16823 case "(($ac_try" in
16824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16825 *) ac_try_echo=$ac_try;;
16827 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16828 (eval "$ac_compile") 2>conftest.er1
16830 grep -v '^ *+' conftest.er1 >conftest.err
16832 cat conftest.err >&5
16833 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16834 (exit $ac_status); } && {
16835 test -z "$ac_c_werror_flag" ||
16836 test ! -s conftest.err
16837 } && test -s conftest.$ac_objext; then
16838 ac_header_compiler=yes
16840 echo "$as_me: failed program was
:" >&5
16841 sed 's/^/| /' conftest.$ac_ext >&5
16843 ac_header_compiler=no
16846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16847 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16848 echo "${ECHO_T}$ac_header_compiler" >&6; }
16850 # Is the header present?
16851 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
16852 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
16853 cat >conftest.$ac_ext <<_ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859 #include <inq_stats/cpustats.h>
16861 if { (ac_try="$ac_cpp conftest.
$ac_ext"
16862 case "(($ac_try" in
16863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16864 *) ac_try_echo=$ac_try;;
16866 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16867 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
16869 grep -v '^ *+' conftest.er1 >conftest.err
16871 cat conftest.err >&5
16872 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16873 (exit $ac_status); } >/dev/null && {
16874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16875 test ! -s conftest.err
16877 ac_header_preproc=yes
16879 echo "$as_me: failed program was
:" >&5
16880 sed 's/^/| /' conftest.$ac_ext >&5
16882 ac_header_preproc=no
16885 rm -f conftest.err conftest.$ac_ext
16886 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
16887 echo "${ECHO_T}$ac_header_preproc" >&6; }
16889 # So? What about this header?
16890 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16892 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
16893 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
16894 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
16895 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
16896 ac_header_preproc=yes
16899 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
16900 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
16901 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
16902 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
16903 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
16904 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
16905 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
16906 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
16907 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
16908 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
16909 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
16910 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
16914 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
16915 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
16916 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16917 echo $ECHO_N "(cached
) $ECHO_C" >&6
16919 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16921 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
16922 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
16925 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16928 cat >>confdefs.h <<\_ACEOF
16933 cat >>confdefs.h <<\_ACEOF
16942 if test $ac_have_func = no; then
16943 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16944 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
16945 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
16946 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16947 echo $ECHO_N "(cached
) $ECHO_C" >&6
16949 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
16950 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
16952 # Is the header compilable?
16953 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
16954 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
16955 cat >conftest.$ac_ext <<_ACEOF
16958 cat confdefs.h >>conftest.$ac_ext
16959 cat >>conftest.$ac_ext <<_ACEOF
16960 /* end confdefs.h. */
16961 $ac_includes_default
16962 #include <sys/cpustats.h>
16964 rm -f conftest.$ac_objext
16965 if { (ac_try="$ac_compile"
16966 case "(($ac_try" in
16967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16968 *) ac_try_echo=$ac_try;;
16970 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16971 (eval "$ac_compile") 2>conftest.er1
16973 grep -v '^ *+' conftest.er1 >conftest.err
16975 cat conftest.err >&5
16976 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16977 (exit $ac_status); } && {
16978 test -z "$ac_c_werror_flag" ||
16979 test ! -s conftest.err
16980 } && test -s conftest.$ac_objext; then
16981 ac_header_compiler=yes
16983 echo "$as_me: failed program was
:" >&5
16984 sed 's/^/| /' conftest.$ac_ext >&5
16986 ac_header_compiler=no
16989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16990 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
16991 echo "${ECHO_T}$ac_header_compiler" >&6; }
16993 # Is the header present?
16994 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
16995 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
16996 cat >conftest.$ac_ext <<_ACEOF
16999 cat confdefs.h >>conftest.$ac_ext
17000 cat >>conftest.$ac_ext <<_ACEOF
17001 /* end confdefs.h. */
17002 #include <sys/cpustats.h>
17004 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17005 case "(($ac_try" in
17006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17007 *) ac_try_echo=$ac_try;;
17009 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17010 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17012 grep -v '^ *+' conftest.er1 >conftest.err
17014 cat conftest.err >&5
17015 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17016 (exit $ac_status); } >/dev/null && {
17017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17018 test ! -s conftest.err
17020 ac_header_preproc=yes
17022 echo "$as_me: failed program was
:" >&5
17023 sed 's/^/| /' conftest.$ac_ext >&5
17025 ac_header_preproc=no
17028 rm -f conftest.err conftest.$ac_ext
17029 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17030 echo "${ECHO_T}$ac_header_preproc" >&6; }
17032 # So? What about this header?
17033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17035 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17036 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17037 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17038 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17039 ac_header_preproc=yes
17042 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17043 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17044 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17045 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17046 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17047 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17048 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17049 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17050 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17051 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17052 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17053 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17057 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17058 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17059 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17060 echo $ECHO_N "(cached
) $ECHO_C" >&6
17062 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17064 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17065 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17068 if test $ac_cv_header_sys_cpustats_h = yes; then
17069 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17078 if test $ac_have_func = no; then
17080 for ac_header in mach/mach.h
17082 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17083 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17084 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17085 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17086 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17087 echo $ECHO_N "(cached
) $ECHO_C" >&6
17089 ac_res=`eval echo '${'$as_ac_Header'}'`
17090 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17091 echo "${ECHO_T}$ac_res" >&6; }
17093 # Is the header compilable?
17094 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17095 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17096 cat >conftest.$ac_ext <<_ACEOF
17099 cat confdefs.h >>conftest.$ac_ext
17100 cat >>conftest.$ac_ext <<_ACEOF
17101 /* end confdefs.h. */
17102 $ac_includes_default
17103 #include <$ac_header>
17105 rm -f conftest.$ac_objext
17106 if { (ac_try="$ac_compile"
17107 case "(($ac_try" in
17108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17109 *) ac_try_echo=$ac_try;;
17111 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17112 (eval "$ac_compile") 2>conftest.er1
17114 grep -v '^ *+' conftest.er1 >conftest.err
17116 cat conftest.err >&5
17117 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17118 (exit $ac_status); } && {
17119 test -z "$ac_c_werror_flag" ||
17120 test ! -s conftest.err
17121 } && test -s conftest.$ac_objext; then
17122 ac_header_compiler=yes
17124 echo "$as_me: failed program was
:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17127 ac_header_compiler=no
17130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17131 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17132 echo "${ECHO_T}$ac_header_compiler" >&6; }
17134 # Is the header present?
17135 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17136 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17137 cat >conftest.$ac_ext <<_ACEOF
17140 cat confdefs.h >>conftest.$ac_ext
17141 cat >>conftest.$ac_ext <<_ACEOF
17142 /* end confdefs.h. */
17143 #include <$ac_header>
17145 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17146 case "(($ac_try" in
17147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17148 *) ac_try_echo=$ac_try;;
17150 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17151 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17153 grep -v '^ *+' conftest.er1 >conftest.err
17155 cat conftest.err >&5
17156 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17157 (exit $ac_status); } >/dev/null && {
17158 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17159 test ! -s conftest.err
17161 ac_header_preproc=yes
17163 echo "$as_me: failed program was
:" >&5
17164 sed 's/^/| /' conftest.$ac_ext >&5
17166 ac_header_preproc=no
17169 rm -f conftest.err conftest.$ac_ext
17170 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17171 echo "${ECHO_T}$ac_header_preproc" >&6; }
17173 # So? What about this header?
17174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17176 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17177 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17178 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17179 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17180 ac_header_preproc=yes
17183 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17184 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17185 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17186 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17187 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17188 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17189 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17190 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17191 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17192 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17193 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17194 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17198 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17199 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17200 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17201 echo $ECHO_N "(cached
) $ECHO_C" >&6
17203 eval "$as_ac_Header=\
$ac_header_preproc"
17205 ac_res=`eval echo '${'$as_ac_Header'}'`
17206 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17207 echo "${ECHO_T}$ac_res" >&6; }
17210 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17211 cat >>confdefs.h <<_ACEOF
17212 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17222 for ac_header in nlist.h
17224 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17225 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17226 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17227 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17228 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17229 echo $ECHO_N "(cached
) $ECHO_C" >&6
17231 ac_res=`eval echo '${'$as_ac_Header'}'`
17232 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17233 echo "${ECHO_T}$ac_res" >&6; }
17235 # Is the header compilable?
17236 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17237 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17238 cat >conftest.$ac_ext <<_ACEOF
17241 cat confdefs.h >>conftest.$ac_ext
17242 cat >>conftest.$ac_ext <<_ACEOF
17243 /* end confdefs.h. */
17244 $ac_includes_default
17245 #include <$ac_header>
17247 rm -f conftest.$ac_objext
17248 if { (ac_try="$ac_compile"
17249 case "(($ac_try" in
17250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17251 *) ac_try_echo=$ac_try;;
17253 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17254 (eval "$ac_compile") 2>conftest.er1
17256 grep -v '^ *+' conftest.er1 >conftest.err
17258 cat conftest.err >&5
17259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17260 (exit $ac_status); } && {
17261 test -z "$ac_c_werror_flag" ||
17262 test ! -s conftest.err
17263 } && test -s conftest.$ac_objext; then
17264 ac_header_compiler=yes
17266 echo "$as_me: failed program was
:" >&5
17267 sed 's/^/| /' conftest.$ac_ext >&5
17269 ac_header_compiler=no
17272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17273 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17274 echo "${ECHO_T}$ac_header_compiler" >&6; }
17276 # Is the header present?
17277 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17278 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17279 cat >conftest.$ac_ext <<_ACEOF
17282 cat confdefs.h >>conftest.$ac_ext
17283 cat >>conftest.$ac_ext <<_ACEOF
17284 /* end confdefs.h. */
17285 #include <$ac_header>
17287 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17288 case "(($ac_try" in
17289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17290 *) ac_try_echo=$ac_try;;
17292 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17293 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17295 grep -v '^ *+' conftest.er1 >conftest.err
17297 cat conftest.err >&5
17298 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17299 (exit $ac_status); } >/dev/null && {
17300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17301 test ! -s conftest.err
17303 ac_header_preproc=yes
17305 echo "$as_me: failed program was
:" >&5
17306 sed 's/^/| /' conftest.$ac_ext >&5
17308 ac_header_preproc=no
17311 rm -f conftest.err conftest.$ac_ext
17312 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17313 echo "${ECHO_T}$ac_header_preproc" >&6; }
17315 # So? What about this header?
17316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17318 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17319 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17320 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17321 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17322 ac_header_preproc=yes
17325 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17326 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17327 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17328 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17329 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17330 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17331 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17332 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17333 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17334 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17335 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17336 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17340 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17341 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17342 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17343 echo $ECHO_N "(cached
) $ECHO_C" >&6
17345 eval "$as_ac_Header=\
$ac_header_preproc"
17347 ac_res=`eval echo '${'$as_ac_Header'}'`
17348 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17349 echo "${ECHO_T}$ac_res" >&6; }
17352 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17353 cat >>confdefs.h <<_ACEOF
17354 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17356 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17357 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17358 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17359 echo $ECHO_N "(cached
) $ECHO_C" >&6
17361 cat >conftest.$ac_ext <<_ACEOF
17364 cat confdefs.h >>conftest.$ac_ext
17365 cat >>conftest.$ac_ext <<_ACEOF
17366 /* end confdefs.h. */
17372 static struct nlist ac_aggr;
17373 if (ac_aggr.n_un.n_name)
17379 rm -f conftest.$ac_objext
17380 if { (ac_try="$ac_compile"
17381 case "(($ac_try" in
17382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17383 *) ac_try_echo=$ac_try;;
17385 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17386 (eval "$ac_compile") 2>conftest.er1
17388 grep -v '^ *+' conftest.er1 >conftest.err
17390 cat conftest.err >&5
17391 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17392 (exit $ac_status); } && {
17393 test -z "$ac_c_werror_flag" ||
17394 test ! -s conftest.err
17395 } && test -s conftest.$ac_objext; then
17396 ac_cv_member_struct_nlist_n_un_n_name=yes
17398 echo "$as_me: failed program was
:" >&5
17399 sed 's/^/| /' conftest.$ac_ext >&5
17401 cat >conftest.$ac_ext <<_ACEOF
17404 cat confdefs.h >>conftest.$ac_ext
17405 cat >>conftest.$ac_ext <<_ACEOF
17406 /* end confdefs.h. */
17412 static struct nlist ac_aggr;
17413 if (sizeof ac_aggr.n_un.n_name)
17419 rm -f conftest.$ac_objext
17420 if { (ac_try="$ac_compile"
17421 case "(($ac_try" in
17422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17423 *) ac_try_echo=$ac_try;;
17425 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17426 (eval "$ac_compile") 2>conftest.er1
17428 grep -v '^ *+' conftest.er1 >conftest.err
17430 cat conftest.err >&5
17431 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17432 (exit $ac_status); } && {
17433 test -z "$ac_c_werror_flag" ||
17434 test ! -s conftest.err
17435 } && test -s conftest.$ac_objext; then
17436 ac_cv_member_struct_nlist_n_un_n_name=yes
17438 echo "$as_me: failed program was
:" >&5
17439 sed 's/^/| /' conftest.$ac_ext >&5
17441 ac_cv_member_struct_nlist_n_un_n_name=no
17444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17449 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17450 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17451 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17453 cat >>confdefs.h <<_ACEOF
17454 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17458 cat >>confdefs.h <<\_ACEOF
17459 #define NLIST_NAME_UNION 1
17473 # Some definitions of getloadavg require that the program be installed setgid.
17474 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
17475 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
17476 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17477 echo $ECHO_N "(cached
) $ECHO_C" >&6
17479 cat >conftest.$ac_ext <<_ACEOF
17482 cat confdefs.h >>conftest.$ac_ext
17483 cat >>conftest.$ac_ext <<_ACEOF
17484 /* end confdefs.h. */
17485 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
17486 #ifdef LDAV_PRIVILEGED
17487 Yowza Am I SETGID yet
17490 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
17491 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
17492 ac_cv_func_getloadavg_setgid=yes
17494 ac_cv_func_getloadavg_setgid=no
17499 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
17500 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17501 if test $ac_cv_func_getloadavg_setgid = yes; then
17504 cat >>confdefs.h <<\_ACEOF
17505 #define GETLOADAVG_PRIVILEGED 1
17512 if test $ac_cv_func_getloadavg_setgid = yes; then
17513 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
17514 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
17515 if test "${ac_cv_group_kmem+set}" = set; then
17516 echo $ECHO_N "(cached
) $ECHO_C" >&6
17518 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17519 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17520 # If we got an error (system does not support symlinks), try without -L.
17521 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17522 ac_cv_group_kmem=`echo $ac_ls_output \
17523 | sed -ne 's/[ ][ ]*/ /g;
17524 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17528 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
17529 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17530 KMEM_GROUP=$ac_cv_group_kmem
17532 if test "x
$ac_save_LIBS" = x; then
17533 GETLOADAVG_LIBS=$LIBS
17535 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
17541 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
17542 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
17543 if test "${ac_cv_sys_largefile_source+set}" = set; then
17544 echo $ECHO_N "(cached
) $ECHO_C" >&6
17547 cat >conftest.$ac_ext <<_ACEOF
17550 cat confdefs.h >>conftest.$ac_ext
17551 cat >>conftest.$ac_ext <<_ACEOF
17552 /* end confdefs.h. */
17557 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17562 rm -f conftest.$ac_objext conftest$ac_exeext
17563 if { (ac_try="$ac_link"
17564 case "(($ac_try" in
17565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17566 *) ac_try_echo=$ac_try;;
17568 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17569 (eval "$ac_link") 2>conftest.er1
17571 grep -v '^ *+' conftest.er1 >conftest.err
17573 cat conftest.err >&5
17574 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17575 (exit $ac_status); } && {
17576 test -z "$ac_c_werror_flag" ||
17577 test ! -s conftest.err
17578 } && test -s conftest$ac_exeext &&
17579 $as_test_x conftest$ac_exeext; then
17580 ac_cv_sys_largefile_source=no; break
17582 echo "$as_me: failed program was
:" >&5
17583 sed 's/^/| /' conftest.$ac_ext >&5
17588 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17589 conftest$ac_exeext conftest.$ac_ext
17590 cat >conftest.$ac_ext <<_ACEOF
17593 cat confdefs.h >>conftest.$ac_ext
17594 cat >>conftest.$ac_ext <<_ACEOF
17595 /* end confdefs.h. */
17596 #define _LARGEFILE_SOURCE 1
17601 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17606 rm -f conftest.$ac_objext conftest$ac_exeext
17607 if { (ac_try="$ac_link"
17608 case "(($ac_try" in
17609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17610 *) ac_try_echo=$ac_try;;
17612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17613 (eval "$ac_link") 2>conftest.er1
17615 grep -v '^ *+' conftest.er1 >conftest.err
17617 cat conftest.err >&5
17618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17619 (exit $ac_status); } && {
17620 test -z "$ac_c_werror_flag" ||
17621 test ! -s conftest.err
17622 } && test -s conftest$ac_exeext &&
17623 $as_test_x conftest$ac_exeext; then
17624 ac_cv_sys_largefile_source=1; break
17626 echo "$as_me: failed program was
:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17633 conftest$ac_exeext conftest.$ac_ext
17634 ac_cv_sys_largefile_source=unknown
17638 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
17639 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17640 case $ac_cv_sys_largefile_source in #(
17643 cat >>confdefs.h <<_ACEOF
17644 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17650 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17651 # in glibc 2.1.3, but that breaks too many other things.
17652 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17653 if test $ac_cv_sys_largefile_source != unknown; then
17655 cat >>confdefs.h <<\_ACEOF
17656 #define HAVE_FSEEKO 1
17662 # Configure getopt.
17663 # getopt.m4 serial 10
17665 # The getopt module assume you want GNU getopt, with getopt_long etc,
17666 # rather than vanilla POSIX getopt. This means your your code should
17667 # always include <getopt.h> for the getopt prototypes.
17679 # Prerequisites of lib/getopt*.
17686 for ac_header in getopt.h
17688 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17689 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17690 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17691 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17692 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17693 echo $ECHO_N "(cached
) $ECHO_C" >&6
17695 ac_res=`eval echo '${'$as_ac_Header'}'`
17696 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17697 echo "${ECHO_T}$ac_res" >&6; }
17699 # Is the header compilable?
17700 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17701 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17702 cat >conftest.$ac_ext <<_ACEOF
17705 cat confdefs.h >>conftest.$ac_ext
17706 cat >>conftest.$ac_ext <<_ACEOF
17707 /* end confdefs.h. */
17708 $ac_includes_default
17709 #include <$ac_header>
17711 rm -f conftest.$ac_objext
17712 if { (ac_try="$ac_compile"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17717 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_compile") 2>conftest.er1
17720 grep -v '^ *+' conftest.er1 >conftest.err
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17724 (exit $ac_status); } && {
17725 test -z "$ac_c_werror_flag" ||
17726 test ! -s conftest.err
17727 } && test -s conftest.$ac_objext; then
17728 ac_header_compiler=yes
17730 echo "$as_me: failed program was
:" >&5
17731 sed 's/^/| /' conftest.$ac_ext >&5
17733 ac_header_compiler=no
17736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17737 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17738 echo "${ECHO_T}$ac_header_compiler" >&6; }
17740 # Is the header present?
17741 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17742 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17743 cat >conftest.$ac_ext <<_ACEOF
17746 cat confdefs.h >>conftest.$ac_ext
17747 cat >>conftest.$ac_ext <<_ACEOF
17748 /* end confdefs.h. */
17749 #include <$ac_header>
17751 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17752 case "(($ac_try" in
17753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17754 *) ac_try_echo=$ac_try;;
17756 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17757 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17759 grep -v '^ *+' conftest.er1 >conftest.err
17761 cat conftest.err >&5
17762 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17763 (exit $ac_status); } >/dev/null && {
17764 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17765 test ! -s conftest.err
17767 ac_header_preproc=yes
17769 echo "$as_me: failed program was
:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17772 ac_header_preproc=no
17775 rm -f conftest.err conftest.$ac_ext
17776 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17777 echo "${ECHO_T}$ac_header_preproc" >&6; }
17779 # So? What about this header?
17780 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17782 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17783 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17784 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17785 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17786 ac_header_preproc=yes
17789 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17790 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17791 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17792 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17793 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17794 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17795 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17796 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17797 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17798 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17799 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17800 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17804 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17805 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17806 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17807 echo $ECHO_N "(cached
) $ECHO_C" >&6
17809 eval "$as_ac_Header=\
$ac_header_preproc"
17811 ac_res=`eval echo '${'$as_ac_Header'}'`
17812 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17813 echo "${ECHO_T}$ac_res" >&6; }
17816 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17817 cat >>confdefs.h <<_ACEOF
17818 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17827 if test -z "$GETOPT_H"; then
17829 for ac_func in getopt_long_only
17831 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17832 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17833 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17834 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17835 echo $ECHO_N "(cached
) $ECHO_C" >&6
17837 cat >conftest.$ac_ext <<_ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h. */
17843 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17844 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17845 #define $ac_func innocuous_$ac_func
17847 /* System header to define __stub macros and hopefully few prototypes,
17848 which can conflict with char $ac_func (); below.
17849 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17850 <limits.h> exists even on freestanding compilers. */
17853 # include <limits.h>
17855 # include <assert.h>
17860 /* Override any GCC internal prototype to avoid an error.
17861 Use char because int might match the return type of a GCC
17862 builtin and then its argument prototype would still apply. */
17867 /* The GNU C library defines this for functions which it implements
17868 to always fail with ENOSYS. Some functions are actually named
17869 something starting with __ and the normal name is an alias. */
17870 #if defined __stub_$ac_func || defined __stub___$ac_func
17877 return $ac_func ();
17882 rm -f conftest.$ac_objext conftest$ac_exeext
17883 if { (ac_try="$ac_link"
17884 case "(($ac_try" in
17885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17886 *) ac_try_echo=$ac_try;;
17888 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17889 (eval "$ac_link") 2>conftest.er1
17891 grep -v '^ *+' conftest.er1 >conftest.err
17893 cat conftest.err >&5
17894 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17895 (exit $ac_status); } && {
17896 test -z "$ac_c_werror_flag" ||
17897 test ! -s conftest.err
17898 } && test -s conftest$ac_exeext &&
17899 $as_test_x conftest$ac_exeext; then
17900 eval "$as_ac_var=yes"
17902 echo "$as_me: failed program was
:" >&5
17903 sed 's/^/| /' conftest.$ac_ext >&5
17905 eval "$as_ac_var=no
"
17908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17909 conftest$ac_exeext conftest.$ac_ext
17911 ac_res=`eval echo '${'$as_ac_var'}'`
17912 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17913 echo "${ECHO_T}$ac_res" >&6; }
17914 if test `eval echo '${'$as_ac_var'}'` = yes; then
17915 cat >>confdefs.h <<_ACEOF
17916 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17926 if test -z "$GETOPT_H"; then
17927 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
17928 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
17929 if test "${ac_cv_have_decl_optreset+set}" = set; then
17930 echo $ECHO_N "(cached
) $ECHO_C" >&6
17932 cat >conftest.$ac_ext <<_ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938 #include <getopt.h>
17951 rm -f conftest.$ac_objext
17952 if { (ac_try="$ac_compile"
17953 case "(($ac_try" in
17954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17955 *) ac_try_echo=$ac_try;;
17957 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17958 (eval "$ac_compile") 2>conftest.er1
17960 grep -v '^ *+' conftest.er1 >conftest.err
17962 cat conftest.err >&5
17963 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17964 (exit $ac_status); } && {
17965 test -z "$ac_c_werror_flag" ||
17966 test ! -s conftest.err
17967 } && test -s conftest.$ac_objext; then
17968 ac_cv_have_decl_optreset=yes
17970 echo "$as_me: failed program was
:" >&5
17971 sed 's/^/| /' conftest.$ac_ext >&5
17973 ac_cv_have_decl_optreset=no
17976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17978 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
17979 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
17980 if test $ac_cv_have_decl_optreset = yes; then
17986 if test -z "$GETOPT_H"; then
17987 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
17988 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
17989 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17990 echo $ECHO_N "(cached
) $ECHO_C" >&6
17992 if test "$cross_compiling" = yes; then
17993 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
17994 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
17995 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17996 echo $ECHO_N "(cached
) $ECHO_C" >&6
17998 cat >conftest.$ac_ext <<_ACEOF
18001 cat confdefs.h >>conftest.$ac_ext
18002 cat >>conftest.$ac_ext <<_ACEOF
18003 /* end confdefs.h. */
18004 #include <getopt.h>
18009 #ifndef getopt_clip
18010 (void) getopt_clip;
18017 rm -f conftest.$ac_objext
18018 if { (ac_try="$ac_compile"
18019 case "(($ac_try" in
18020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18021 *) ac_try_echo=$ac_try;;
18023 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18024 (eval "$ac_compile") 2>conftest.er1
18026 grep -v '^ *+' conftest.er1 >conftest.err
18028 cat conftest.err >&5
18029 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18030 (exit $ac_status); } && {
18031 test -z "$ac_c_werror_flag" ||
18032 test ! -s conftest.err
18033 } && test -s conftest.$ac_objext; then
18034 ac_cv_have_decl_getopt_clip=yes
18036 echo "$as_me: failed program was
:" >&5
18037 sed 's/^/| /' conftest.$ac_ext >&5
18039 ac_cv_have_decl_getopt_clip=no
18042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18044 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18045 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18046 if test $ac_cv_have_decl_getopt_clip = yes; then
18047 gl_cv_func_gnu_getopt=no
18049 gl_cv_func_gnu_getopt=yes
18053 cat >conftest.$ac_ext <<_ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h. */
18059 #include <getopt.h>
18065 myargv[0] = "conftest
";
18068 return getopt (2, myargv, "+a
") != '?';
18074 rm -f conftest$ac_exeext
18075 if { (ac_try="$ac_link"
18076 case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_link") 2>&5
18083 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18084 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18085 { (case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18089 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_try") 2>&5
18092 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18093 (exit $ac_status); }; }; then
18094 gl_cv_func_gnu_getopt=yes
18096 echo "$as_me: program exited with status
$ac_status" >&5
18097 echo "$as_me: failed program was
:" >&5
18098 sed 's/^/| /' conftest.$ac_ext >&5
18100 ( exit $ac_status )
18101 gl_cv_func_gnu_getopt=no
18103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18108 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18109 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18110 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18117 if test -n "$GETOPT_H"; then
18122 cat >>confdefs.h <<\_ACEOF
18123 #define __GETOPT_PREFIX rpl_
18129 GETOPTOBJS='getopt.o getopt1.o'
18136 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18137 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18138 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18139 echo $ECHO_N "(cached
) $ECHO_C" >&6
18141 # Use it with a single arg.
18142 cat >conftest.$ac_ext <<_ACEOF
18145 cat confdefs.h >>conftest.$ac_ext
18146 cat >>conftest.$ac_ext <<_ACEOF
18147 /* end confdefs.h. */
18148 $ac_includes_default
18157 rm -f conftest.$ac_objext
18158 if { (ac_try="$ac_compile"
18159 case "(($ac_try" in
18160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18161 *) ac_try_echo=$ac_try;;
18163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18164 (eval "$ac_compile") 2>conftest.er1
18166 grep -v '^ *+' conftest.er1 >conftest.err
18168 cat conftest.err >&5
18169 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18170 (exit $ac_status); } && {
18171 test -z "$ac_c_werror_flag" ||
18172 test ! -s conftest.err
18173 } && test -s conftest.$ac_objext; then
18174 ac_cv_func_getpgrp_void=no
18176 echo "$as_me: failed program was
:" >&5
18177 sed 's/^/| /' conftest.$ac_ext >&5
18179 ac_cv_func_getpgrp_void=yes
18182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18185 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18186 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18187 if test $ac_cv_func_getpgrp_void = yes; then
18189 cat >>confdefs.h <<\_ACEOF
18190 #define GETPGRP_VOID 1
18197 for ac_func in strftime
18199 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18200 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18201 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18202 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18203 echo $ECHO_N "(cached
) $ECHO_C" >&6
18205 cat >conftest.$ac_ext <<_ACEOF
18208 cat confdefs.h >>conftest.$ac_ext
18209 cat >>conftest.$ac_ext <<_ACEOF
18210 /* end confdefs.h. */
18211 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18212 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18213 #define $ac_func innocuous_$ac_func
18215 /* System header to define __stub macros and hopefully few prototypes,
18216 which can conflict with char $ac_func (); below.
18217 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18218 <limits.h> exists even on freestanding compilers. */
18221 # include <limits.h>
18223 # include <assert.h>
18228 /* Override any GCC internal prototype to avoid an error.
18229 Use char because int might match the return type of a GCC
18230 builtin and then its argument prototype would still apply. */
18235 /* The GNU C library defines this for functions which it implements
18236 to always fail with ENOSYS. Some functions are actually named
18237 something starting with __ and the normal name is an alias. */
18238 #if defined __stub_$ac_func || defined __stub___$ac_func
18245 return $ac_func ();
18250 rm -f conftest.$ac_objext conftest$ac_exeext
18251 if { (ac_try="$ac_link"
18252 case "(($ac_try" in
18253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18254 *) ac_try_echo=$ac_try;;
18256 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18257 (eval "$ac_link") 2>conftest.er1
18259 grep -v '^ *+' conftest.er1 >conftest.err
18261 cat conftest.err >&5
18262 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18263 (exit $ac_status); } && {
18264 test -z "$ac_c_werror_flag" ||
18265 test ! -s conftest.err
18266 } && test -s conftest$ac_exeext &&
18267 $as_test_x conftest$ac_exeext; then
18268 eval "$as_ac_var=yes"
18270 echo "$as_me: failed program was
:" >&5
18271 sed 's/^/| /' conftest.$ac_ext >&5
18273 eval "$as_ac_var=no
"
18276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18277 conftest$ac_exeext conftest.$ac_ext
18279 ac_res=`eval echo '${'$as_ac_var'}'`
18280 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18281 echo "${ECHO_T}$ac_res" >&6; }
18282 if test `eval echo '${'$as_ac_var'}'` = yes; then
18283 cat >>confdefs.h <<_ACEOF
18284 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18288 # strftime is in -lintl on SCO UNIX.
18289 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18290 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18291 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18292 echo $ECHO_N "(cached
) $ECHO_C" >&6
18294 ac_check_lib_save_LIBS=$LIBS
18295 LIBS="-lintl $LIBS"
18296 cat >conftest.$ac_ext <<_ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h. */
18303 /* Override any GCC internal prototype to avoid an error.
18304 Use char because int might match the return type of a GCC
18305 builtin and then its argument prototype would still apply. */
18313 return strftime ();
18318 rm -f conftest.$ac_objext conftest$ac_exeext
18319 if { (ac_try="$ac_link"
18320 case "(($ac_try" in
18321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18322 *) ac_try_echo=$ac_try;;
18324 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18325 (eval "$ac_link") 2>conftest.er1
18327 grep -v '^ *+' conftest.er1 >conftest.err
18329 cat conftest.err >&5
18330 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18331 (exit $ac_status); } && {
18332 test -z "$ac_c_werror_flag" ||
18333 test ! -s conftest.err
18334 } && test -s conftest$ac_exeext &&
18335 $as_test_x conftest$ac_exeext; then
18336 ac_cv_lib_intl_strftime=yes
18338 echo "$as_me: failed program was
:" >&5
18339 sed 's/^/| /' conftest.$ac_ext >&5
18341 ac_cv_lib_intl_strftime=no
18344 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18345 conftest$ac_exeext conftest.$ac_ext
18346 LIBS=$ac_check_lib_save_LIBS
18348 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18349 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18350 if test $ac_cv_lib_intl_strftime = yes; then
18351 cat >>confdefs.h <<\_ACEOF
18352 #define HAVE_STRFTIME 1
18355 LIBS="-lintl $LIBS"
18364 for ac_func in grantpt
18366 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18367 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18368 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18369 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18370 echo $ECHO_N "(cached
) $ECHO_C" >&6
18372 cat >conftest.$ac_ext <<_ACEOF
18375 cat confdefs.h >>conftest.$ac_ext
18376 cat >>conftest.$ac_ext <<_ACEOF
18377 /* end confdefs.h. */
18378 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18379 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18380 #define $ac_func innocuous_$ac_func
18382 /* System header to define __stub macros and hopefully few prototypes,
18383 which can conflict with char $ac_func (); below.
18384 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18385 <limits.h> exists even on freestanding compilers. */
18388 # include <limits.h>
18390 # include <assert.h>
18395 /* Override any GCC internal prototype to avoid an error.
18396 Use char because int might match the return type of a GCC
18397 builtin and then its argument prototype would still apply. */
18402 /* The GNU C library defines this for functions which it implements
18403 to always fail with ENOSYS. Some functions are actually named
18404 something starting with __ and the normal name is an alias. */
18405 #if defined __stub_$ac_func || defined __stub___$ac_func
18412 return $ac_func ();
18417 rm -f conftest.$ac_objext conftest$ac_exeext
18418 if { (ac_try="$ac_link"
18419 case "(($ac_try" in
18420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18421 *) ac_try_echo=$ac_try;;
18423 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18424 (eval "$ac_link") 2>conftest.er1
18426 grep -v '^ *+' conftest.er1 >conftest.err
18428 cat conftest.err >&5
18429 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18430 (exit $ac_status); } && {
18431 test -z "$ac_c_werror_flag" ||
18432 test ! -s conftest.err
18433 } && test -s conftest$ac_exeext &&
18434 $as_test_x conftest$ac_exeext; then
18435 eval "$as_ac_var=yes"
18437 echo "$as_me: failed program was
:" >&5
18438 sed 's/^/| /' conftest.$ac_ext >&5
18440 eval "$as_ac_var=no
"
18443 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18444 conftest$ac_exeext conftest.$ac_ext
18446 ac_res=`eval echo '${'$as_ac_var'}'`
18447 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18448 echo "${ECHO_T}$ac_res" >&6; }
18449 if test `eval echo '${'$as_ac_var'}'` = yes; then
18450 cat >>confdefs.h <<_ACEOF
18451 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18458 # PTY-related GNU extensions.
18460 for ac_func in getpt
18462 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18463 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18464 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18465 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18466 echo $ECHO_N "(cached
) $ECHO_C" >&6
18468 cat >conftest.$ac_ext <<_ACEOF
18471 cat confdefs.h >>conftest.$ac_ext
18472 cat >>conftest.$ac_ext <<_ACEOF
18473 /* end confdefs.h. */
18474 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18475 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18476 #define $ac_func innocuous_$ac_func
18478 /* System header to define __stub macros and hopefully few prototypes,
18479 which can conflict with char $ac_func (); below.
18480 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18481 <limits.h> exists even on freestanding compilers. */
18484 # include <limits.h>
18486 # include <assert.h>
18491 /* Override any GCC internal prototype to avoid an error.
18492 Use char because int might match the return type of a GCC
18493 builtin and then its argument prototype would still apply. */
18498 /* The GNU C library defines this for functions which it implements
18499 to always fail with ENOSYS. Some functions are actually named
18500 something starting with __ and the normal name is an alias. */
18501 #if defined __stub_$ac_func || defined __stub___$ac_func
18508 return $ac_func ();
18513 rm -f conftest.$ac_objext conftest$ac_exeext
18514 if { (ac_try="$ac_link"
18515 case "(($ac_try" in
18516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18517 *) ac_try_echo=$ac_try;;
18519 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18520 (eval "$ac_link") 2>conftest.er1
18522 grep -v '^ *+' conftest.er1 >conftest.err
18524 cat conftest.err >&5
18525 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18526 (exit $ac_status); } && {
18527 test -z "$ac_c_werror_flag" ||
18528 test ! -s conftest.err
18529 } && test -s conftest$ac_exeext &&
18530 $as_test_x conftest$ac_exeext; then
18531 eval "$as_ac_var=yes"
18533 echo "$as_me: failed program was
:" >&5
18534 sed 's/^/| /' conftest.$ac_ext >&5
18536 eval "$as_ac_var=no
"
18539 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18540 conftest$ac_exeext conftest.$ac_ext
18542 ac_res=`eval echo '${'$as_ac_var'}'`
18543 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18544 echo "${ECHO_T}$ac_res" >&6; }
18545 if test `eval echo '${'$as_ac_var'}'` = yes; then
18546 cat >>confdefs.h <<_ACEOF
18547 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18554 # Check this now, so that we will NOT find the above functions in ncurses.
18555 # That is because we have not set up to link ncurses in lib-src.
18556 # It's better to believe a function is not available
18557 # than to expect to find it in ncurses.
18559 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
18560 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
18561 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18562 echo $ECHO_N "(cached
) $ECHO_C" >&6
18564 ac_check_lib_save_LIBS=$LIBS
18565 LIBS="-lncurses $LIBS"
18566 cat >conftest.$ac_ext <<_ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h. */
18573 /* Override any GCC internal prototype to avoid an error.
18574 Use char because int might match the return type of a GCC
18575 builtin and then its argument prototype would still apply. */
18588 rm -f conftest.$ac_objext conftest$ac_exeext
18589 if { (ac_try="$ac_link"
18590 case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18594 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_link") 2>conftest.er1
18597 grep -v '^ *+' conftest.er1 >conftest.err
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18601 (exit $ac_status); } && {
18602 test -z "$ac_c_werror_flag" ||
18603 test ! -s conftest.err
18604 } && test -s conftest$ac_exeext &&
18605 $as_test_x conftest$ac_exeext; then
18606 ac_cv_lib_ncurses_tparm=yes
18608 echo "$as_me: failed program was
:" >&5
18609 sed 's/^/| /' conftest.$ac_ext >&5
18611 ac_cv_lib_ncurses_tparm=no
18614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18615 conftest$ac_exeext conftest.$ac_ext
18616 LIBS=$ac_check_lib_save_LIBS
18618 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
18619 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18620 if test $ac_cv_lib_ncurses_tparm = yes; then
18621 cat >>confdefs.h <<_ACEOF
18622 #define HAVE_LIBNCURSES 1
18625 LIBS="-lncurses $LIBS"
18630 # Do we need the Hesiod library to provide the support routines?
18631 if test "$with_hesiod" = yes ; then
18632 # Don't set $LIBS here -- see comments above.
18634 { echo "$as_me:$LINENO: checking
for res_send
" >&5
18635 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
18636 if test "${ac_cv_func_res_send+set}" = set; then
18637 echo $ECHO_N "(cached
) $ECHO_C" >&6
18639 cat >conftest.$ac_ext <<_ACEOF
18642 cat confdefs.h >>conftest.$ac_ext
18643 cat >>conftest.$ac_ext <<_ACEOF
18644 /* end confdefs.h. */
18645 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18646 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18647 #define res_send innocuous_res_send
18649 /* System header to define __stub macros and hopefully few prototypes,
18650 which can conflict with char res_send (); below.
18651 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18652 <limits.h> exists even on freestanding compilers. */
18655 # include <limits.h>
18657 # include <assert.h>
18662 /* Override any GCC internal prototype to avoid an error.
18663 Use char because int might match the return type of a GCC
18664 builtin and then its argument prototype would still apply. */
18669 /* The GNU C library defines this for functions which it implements
18670 to always fail with ENOSYS. Some functions are actually named
18671 something starting with __ and the normal name is an alias. */
18672 #if defined __stub_res_send || defined __stub___res_send
18679 return res_send ();
18684 rm -f conftest.$ac_objext conftest$ac_exeext
18685 if { (ac_try="$ac_link"
18686 case "(($ac_try" in
18687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18688 *) ac_try_echo=$ac_try;;
18690 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18691 (eval "$ac_link") 2>conftest.er1
18693 grep -v '^ *+' conftest.er1 >conftest.err
18695 cat conftest.err >&5
18696 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18697 (exit $ac_status); } && {
18698 test -z "$ac_c_werror_flag" ||
18699 test ! -s conftest.err
18700 } && test -s conftest$ac_exeext &&
18701 $as_test_x conftest$ac_exeext; then
18702 ac_cv_func_res_send=yes
18704 echo "$as_me: failed program was
:" >&5
18705 sed 's/^/| /' conftest.$ac_ext >&5
18707 ac_cv_func_res_send=no
18710 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18711 conftest$ac_exeext conftest.$ac_ext
18713 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
18714 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
18715 if test $ac_cv_func_res_send = yes; then
18718 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
18719 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
18720 if test "${ac_cv_func___res_send+set}" = set; then
18721 echo $ECHO_N "(cached
) $ECHO_C" >&6
18723 cat >conftest.$ac_ext <<_ACEOF
18726 cat confdefs.h >>conftest.$ac_ext
18727 cat >>conftest.$ac_ext <<_ACEOF
18728 /* end confdefs.h. */
18729 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18730 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18731 #define __res_send innocuous___res_send
18733 /* System header to define __stub macros and hopefully few prototypes,
18734 which can conflict with char __res_send (); below.
18735 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18736 <limits.h> exists even on freestanding compilers. */
18739 # include <limits.h>
18741 # include <assert.h>
18746 /* Override any GCC internal prototype to avoid an error.
18747 Use char because int might match the return type of a GCC
18748 builtin and then its argument prototype would still apply. */
18752 char __res_send ();
18753 /* The GNU C library defines this for functions which it implements
18754 to always fail with ENOSYS. Some functions are actually named
18755 something starting with __ and the normal name is an alias. */
18756 #if defined __stub___res_send || defined __stub_____res_send
18763 return __res_send ();
18768 rm -f conftest.$ac_objext conftest$ac_exeext
18769 if { (ac_try="$ac_link"
18770 case "(($ac_try" in
18771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18772 *) ac_try_echo=$ac_try;;
18774 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18775 (eval "$ac_link") 2>conftest.er1
18777 grep -v '^ *+' conftest.er1 >conftest.err
18779 cat conftest.err >&5
18780 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18781 (exit $ac_status); } && {
18782 test -z "$ac_c_werror_flag" ||
18783 test ! -s conftest.err
18784 } && test -s conftest$ac_exeext &&
18785 $as_test_x conftest$ac_exeext; then
18786 ac_cv_func___res_send=yes
18788 echo "$as_me: failed program was
:" >&5
18789 sed 's/^/| /' conftest.$ac_ext >&5
18791 ac_cv_func___res_send=no
18794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18795 conftest$ac_exeext conftest.$ac_ext
18797 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
18798 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
18799 if test $ac_cv_func___res_send = yes; then
18802 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
18803 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
18804 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18805 echo $ECHO_N "(cached
) $ECHO_C" >&6
18807 ac_check_lib_save_LIBS=$LIBS
18808 LIBS="-lresolv $LIBS"
18809 cat >conftest.$ac_ext <<_ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18816 /* Override any GCC internal prototype to avoid an error.
18817 Use char because int might match the return type of a GCC
18818 builtin and then its argument prototype would still apply. */
18826 return res_send ();
18831 rm -f conftest.$ac_objext conftest$ac_exeext
18832 if { (ac_try="$ac_link"
18833 case "(($ac_try" in
18834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835 *) ac_try_echo=$ac_try;;
18837 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18838 (eval "$ac_link") 2>conftest.er1
18840 grep -v '^ *+' conftest.er1 >conftest.err
18842 cat conftest.err >&5
18843 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18844 (exit $ac_status); } && {
18845 test -z "$ac_c_werror_flag" ||
18846 test ! -s conftest.err
18847 } && test -s conftest$ac_exeext &&
18848 $as_test_x conftest$ac_exeext; then
18849 ac_cv_lib_resolv_res_send=yes
18851 echo "$as_me: failed program was
:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18854 ac_cv_lib_resolv_res_send=no
18857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18858 conftest$ac_exeext conftest.$ac_ext
18859 LIBS=$ac_check_lib_save_LIBS
18861 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
18862 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
18863 if test $ac_cv_lib_resolv_res_send = yes; then
18866 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
18867 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
18868 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18869 echo $ECHO_N "(cached
) $ECHO_C" >&6
18871 ac_check_lib_save_LIBS=$LIBS
18872 LIBS="-lresolv $LIBS"
18873 cat >conftest.$ac_ext <<_ACEOF
18876 cat confdefs.h >>conftest.$ac_ext
18877 cat >>conftest.$ac_ext <<_ACEOF
18878 /* end confdefs.h. */
18880 /* Override any GCC internal prototype to avoid an error.
18881 Use char because int might match the return type of a GCC
18882 builtin and then its argument prototype would still apply. */
18886 char __res_send ();
18890 return __res_send ();
18895 rm -f conftest.$ac_objext conftest$ac_exeext
18896 if { (ac_try="$ac_link"
18897 case "(($ac_try" in
18898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899 *) ac_try_echo=$ac_try;;
18901 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18902 (eval "$ac_link") 2>conftest.er1
18904 grep -v '^ *+' conftest.er1 >conftest.err
18906 cat conftest.err >&5
18907 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18908 (exit $ac_status); } && {
18909 test -z "$ac_c_werror_flag" ||
18910 test ! -s conftest.err
18911 } && test -s conftest$ac_exeext &&
18912 $as_test_x conftest$ac_exeext; then
18913 ac_cv_lib_resolv___res_send=yes
18915 echo "$as_me: failed program was
:" >&5
18916 sed 's/^/| /' conftest.$ac_ext >&5
18918 ac_cv_lib_resolv___res_send=no
18921 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18922 conftest$ac_exeext conftest.$ac_ext
18923 LIBS=$ac_check_lib_save_LIBS
18925 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
18926 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
18927 if test $ac_cv_lib_resolv___res_send = yes; then
18937 if test "$resolv" = yes ; then
18940 cat >>confdefs.h <<\_ACEOF
18941 #define HAVE_LIBRESOLV 1
18947 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
18948 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
18949 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18950 echo $ECHO_N "(cached
) $ECHO_C" >&6
18952 cat >conftest.$ac_ext <<_ACEOF
18955 cat confdefs.h >>conftest.$ac_ext
18956 cat >>conftest.$ac_ext <<_ACEOF
18957 /* end confdefs.h. */
18958 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18959 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18960 #define hes_getmailhost innocuous_hes_getmailhost
18962 /* System header to define __stub macros and hopefully few prototypes,
18963 which can conflict with char hes_getmailhost (); below.
18964 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18965 <limits.h> exists even on freestanding compilers. */
18968 # include <limits.h>
18970 # include <assert.h>
18973 #undef hes_getmailhost
18975 /* Override any GCC internal prototype to avoid an error.
18976 Use char because int might match the return type of a GCC
18977 builtin and then its argument prototype would still apply. */
18981 char hes_getmailhost ();
18982 /* The GNU C library defines this for functions which it implements
18983 to always fail with ENOSYS. Some functions are actually named
18984 something starting with __ and the normal name is an alias. */
18985 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
18992 return hes_getmailhost ();
18997 rm -f conftest.$ac_objext conftest$ac_exeext
18998 if { (ac_try="$ac_link"
18999 case "(($ac_try" in
19000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19001 *) ac_try_echo=$ac_try;;
19003 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19004 (eval "$ac_link") 2>conftest.er1
19006 grep -v '^ *+' conftest.er1 >conftest.err
19008 cat conftest.err >&5
19009 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19010 (exit $ac_status); } && {
19011 test -z "$ac_c_werror_flag" ||
19012 test ! -s conftest.err
19013 } && test -s conftest$ac_exeext &&
19014 $as_test_x conftest$ac_exeext; then
19015 ac_cv_func_hes_getmailhost=yes
19017 echo "$as_me: failed program was
:" >&5
19018 sed 's/^/| /' conftest.$ac_ext >&5
19020 ac_cv_func_hes_getmailhost=no
19023 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19024 conftest$ac_exeext conftest.$ac_ext
19026 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19027 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19028 if test $ac_cv_func_hes_getmailhost = yes; then
19031 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19032 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19033 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19034 echo $ECHO_N "(cached
) $ECHO_C" >&6
19036 ac_check_lib_save_LIBS=$LIBS
19037 LIBS="-lhesiod $RESOLVLIB $LIBS"
19038 cat >conftest.$ac_ext <<_ACEOF
19041 cat confdefs.h >>conftest.$ac_ext
19042 cat >>conftest.$ac_ext <<_ACEOF
19043 /* end confdefs.h. */
19045 /* Override any GCC internal prototype to avoid an error.
19046 Use char because int might match the return type of a GCC
19047 builtin and then its argument prototype would still apply. */
19051 char hes_getmailhost ();
19055 return hes_getmailhost ();
19060 rm -f conftest.$ac_objext conftest$ac_exeext
19061 if { (ac_try="$ac_link"
19062 case "(($ac_try" in
19063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19064 *) ac_try_echo=$ac_try;;
19066 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19067 (eval "$ac_link") 2>conftest.er1
19069 grep -v '^ *+' conftest.er1 >conftest.err
19071 cat conftest.err >&5
19072 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19073 (exit $ac_status); } && {
19074 test -z "$ac_c_werror_flag" ||
19075 test ! -s conftest.err
19076 } && test -s conftest$ac_exeext &&
19077 $as_test_x conftest$ac_exeext; then
19078 ac_cv_lib_hesiod_hes_getmailhost=yes
19080 echo "$as_me: failed program was
:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19083 ac_cv_lib_hesiod_hes_getmailhost=no
19086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19087 conftest$ac_exeext conftest.$ac_ext
19088 LIBS=$ac_check_lib_save_LIBS
19090 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19091 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19092 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19094 cat >>confdefs.h <<\_ACEOF
19095 #define HAVE_LIBHESIOD 1
19106 # These tell us which Kerberos-related libraries to use.
19107 if test "${with_kerberos+set}" = set; then
19109 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19110 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19111 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19112 echo $ECHO_N "(cached
) $ECHO_C" >&6
19114 ac_check_lib_save_LIBS=$LIBS
19115 LIBS="-lcom_err $LIBS"
19116 cat >conftest.$ac_ext <<_ACEOF
19119 cat confdefs.h >>conftest.$ac_ext
19120 cat >>conftest.$ac_ext <<_ACEOF
19121 /* end confdefs.h. */
19123 /* Override any GCC internal prototype to avoid an error.
19124 Use char because int might match the return type of a GCC
19125 builtin and then its argument prototype would still apply. */
19138 rm -f conftest.$ac_objext conftest$ac_exeext
19139 if { (ac_try="$ac_link"
19140 case "(($ac_try" in
19141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19142 *) ac_try_echo=$ac_try;;
19144 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19145 (eval "$ac_link") 2>conftest.er1
19147 grep -v '^ *+' conftest.er1 >conftest.err
19149 cat conftest.err >&5
19150 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19151 (exit $ac_status); } && {
19152 test -z "$ac_c_werror_flag" ||
19153 test ! -s conftest.err
19154 } && test -s conftest$ac_exeext &&
19155 $as_test_x conftest$ac_exeext; then
19156 ac_cv_lib_com_err_com_err=yes
19158 echo "$as_me: failed program was
:" >&5
19159 sed 's/^/| /' conftest.$ac_ext >&5
19161 ac_cv_lib_com_err_com_err=no
19164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19165 conftest$ac_exeext conftest.$ac_ext
19166 LIBS=$ac_check_lib_save_LIBS
19168 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19169 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19170 if test $ac_cv_lib_com_err_com_err = yes; then
19171 cat >>confdefs.h <<_ACEOF
19172 #define HAVE_LIBCOM_ERR 1
19175 LIBS="-lcom_err $LIBS"
19180 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19181 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19182 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19183 echo $ECHO_N "(cached
) $ECHO_C" >&6
19185 ac_check_lib_save_LIBS=$LIBS
19186 LIBS="-lk5crypto $LIBS"
19187 cat >conftest.$ac_ext <<_ACEOF
19190 cat confdefs.h >>conftest.$ac_ext
19191 cat >>conftest.$ac_ext <<_ACEOF
19192 /* end confdefs.h. */
19194 /* Override any GCC internal prototype to avoid an error.
19195 Use char because int might match the return type of a GCC
19196 builtin and then its argument prototype would still apply. */
19200 char mit_des_cbc_encrypt ();
19204 return mit_des_cbc_encrypt ();
19209 rm -f conftest.$ac_objext conftest$ac_exeext
19210 if { (ac_try="$ac_link"
19211 case "(($ac_try" in
19212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19213 *) ac_try_echo=$ac_try;;
19215 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19216 (eval "$ac_link") 2>conftest.er1
19218 grep -v '^ *+' conftest.er1 >conftest.err
19220 cat conftest.err >&5
19221 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19222 (exit $ac_status); } && {
19223 test -z "$ac_c_werror_flag" ||
19224 test ! -s conftest.err
19225 } && test -s conftest$ac_exeext &&
19226 $as_test_x conftest$ac_exeext; then
19227 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19229 echo "$as_me: failed program was
:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19232 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19236 conftest$ac_exeext conftest.$ac_ext
19237 LIBS=$ac_check_lib_save_LIBS
19239 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19240 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19241 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19242 cat >>confdefs.h <<_ACEOF
19243 #define HAVE_LIBK5CRYPTO 1
19246 LIBS="-lk5crypto $LIBS"
19251 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19252 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19253 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19254 echo $ECHO_N "(cached
) $ECHO_C" >&6
19256 ac_check_lib_save_LIBS=$LIBS
19257 LIBS="-lcrypto $LIBS"
19258 cat >conftest.$ac_ext <<_ACEOF
19261 cat confdefs.h >>conftest.$ac_ext
19262 cat >>conftest.$ac_ext <<_ACEOF
19263 /* end confdefs.h. */
19265 /* Override any GCC internal prototype to avoid an error.
19266 Use char because int might match the return type of a GCC
19267 builtin and then its argument prototype would still apply. */
19271 char mit_des_cbc_encrypt ();
19275 return mit_des_cbc_encrypt ();
19280 rm -f conftest.$ac_objext conftest$ac_exeext
19281 if { (ac_try="$ac_link"
19282 case "(($ac_try" in
19283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19284 *) ac_try_echo=$ac_try;;
19286 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19287 (eval "$ac_link") 2>conftest.er1
19289 grep -v '^ *+' conftest.er1 >conftest.err
19291 cat conftest.err >&5
19292 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19293 (exit $ac_status); } && {
19294 test -z "$ac_c_werror_flag" ||
19295 test ! -s conftest.err
19296 } && test -s conftest$ac_exeext &&
19297 $as_test_x conftest$ac_exeext; then
19298 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19300 echo "$as_me: failed program was
:" >&5
19301 sed 's/^/| /' conftest.$ac_ext >&5
19303 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19306 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19307 conftest$ac_exeext conftest.$ac_ext
19308 LIBS=$ac_check_lib_save_LIBS
19310 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19311 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19312 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19313 cat >>confdefs.h <<_ACEOF
19314 #define HAVE_LIBCRYPTO 1
19317 LIBS="-lcrypto $LIBS"
19322 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19323 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19324 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19325 echo $ECHO_N "(cached
) $ECHO_C" >&6
19327 ac_check_lib_save_LIBS=$LIBS
19328 LIBS="-lkrb5 $LIBS"
19329 cat >conftest.$ac_ext <<_ACEOF
19332 cat confdefs.h >>conftest.$ac_ext
19333 cat >>conftest.$ac_ext <<_ACEOF
19334 /* end confdefs.h. */
19336 /* Override any GCC internal prototype to avoid an error.
19337 Use char because int might match the return type of a GCC
19338 builtin and then its argument prototype would still apply. */
19342 char krb5_init_context ();
19346 return krb5_init_context ();
19351 rm -f conftest.$ac_objext conftest$ac_exeext
19352 if { (ac_try="$ac_link"
19353 case "(($ac_try" in
19354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19355 *) ac_try_echo=$ac_try;;
19357 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19358 (eval "$ac_link") 2>conftest.er1
19360 grep -v '^ *+' conftest.er1 >conftest.err
19362 cat conftest.err >&5
19363 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19364 (exit $ac_status); } && {
19365 test -z "$ac_c_werror_flag" ||
19366 test ! -s conftest.err
19367 } && test -s conftest$ac_exeext &&
19368 $as_test_x conftest$ac_exeext; then
19369 ac_cv_lib_krb5_krb5_init_context=yes
19371 echo "$as_me: failed program was
:" >&5
19372 sed 's/^/| /' conftest.$ac_ext >&5
19374 ac_cv_lib_krb5_krb5_init_context=no
19377 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19378 conftest$ac_exeext conftest.$ac_ext
19379 LIBS=$ac_check_lib_save_LIBS
19381 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19382 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19383 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19384 cat >>confdefs.h <<_ACEOF
19385 #define HAVE_LIBKRB5 1
19388 LIBS="-lkrb5 $LIBS"
19392 if test "${with_kerberos5+set}" != set; then
19394 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19395 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19396 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19397 echo $ECHO_N "(cached
) $ECHO_C" >&6
19399 ac_check_lib_save_LIBS=$LIBS
19400 LIBS="-ldes425 $LIBS"
19401 cat >conftest.$ac_ext <<_ACEOF
19404 cat confdefs.h >>conftest.$ac_ext
19405 cat >>conftest.$ac_ext <<_ACEOF
19406 /* end confdefs.h. */
19408 /* Override any GCC internal prototype to avoid an error.
19409 Use char because int might match the return type of a GCC
19410 builtin and then its argument prototype would still apply. */
19414 char des_cbc_encrypt ();
19418 return des_cbc_encrypt ();
19423 rm -f conftest.$ac_objext conftest$ac_exeext
19424 if { (ac_try="$ac_link"
19425 case "(($ac_try" in
19426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19427 *) ac_try_echo=$ac_try;;
19429 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19430 (eval "$ac_link") 2>conftest.er1
19432 grep -v '^ *+' conftest.er1 >conftest.err
19434 cat conftest.err >&5
19435 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19436 (exit $ac_status); } && {
19437 test -z "$ac_c_werror_flag" ||
19438 test ! -s conftest.err
19439 } && test -s conftest$ac_exeext &&
19440 $as_test_x conftest$ac_exeext; then
19441 ac_cv_lib_des425_des_cbc_encrypt=yes
19443 echo "$as_me: failed program was
:" >&5
19444 sed 's/^/| /' conftest.$ac_ext >&5
19446 ac_cv_lib_des425_des_cbc_encrypt=no
19449 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19450 conftest$ac_exeext conftest.$ac_ext
19451 LIBS=$ac_check_lib_save_LIBS
19453 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19454 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19455 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19456 cat >>confdefs.h <<_ACEOF
19457 #define HAVE_LIBDES425 1
19460 LIBS="-ldes425 $LIBS"
19464 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
19465 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
19466 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19467 echo $ECHO_N "(cached
) $ECHO_C" >&6
19469 ac_check_lib_save_LIBS=$LIBS
19471 cat >conftest.$ac_ext <<_ACEOF
19474 cat confdefs.h >>conftest.$ac_ext
19475 cat >>conftest.$ac_ext <<_ACEOF
19476 /* end confdefs.h. */
19478 /* Override any GCC internal prototype to avoid an error.
19479 Use char because int might match the return type of a GCC
19480 builtin and then its argument prototype would still apply. */
19484 char des_cbc_encrypt ();
19488 return des_cbc_encrypt ();
19493 rm -f conftest.$ac_objext conftest$ac_exeext
19494 if { (ac_try="$ac_link"
19495 case "(($ac_try" in
19496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19497 *) ac_try_echo=$ac_try;;
19499 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19500 (eval "$ac_link") 2>conftest.er1
19502 grep -v '^ *+' conftest.er1 >conftest.err
19504 cat conftest.err >&5
19505 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19506 (exit $ac_status); } && {
19507 test -z "$ac_c_werror_flag" ||
19508 test ! -s conftest.err
19509 } && test -s conftest$ac_exeext &&
19510 $as_test_x conftest$ac_exeext; then
19511 ac_cv_lib_des_des_cbc_encrypt=yes
19513 echo "$as_me: failed program was
:" >&5
19514 sed 's/^/| /' conftest.$ac_ext >&5
19516 ac_cv_lib_des_des_cbc_encrypt=no
19519 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19520 conftest$ac_exeext conftest.$ac_ext
19521 LIBS=$ac_check_lib_save_LIBS
19523 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
19524 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19525 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19526 cat >>confdefs.h <<_ACEOF
19527 #define HAVE_LIBDES 1
19537 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
19538 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
19539 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19540 echo $ECHO_N "(cached
) $ECHO_C" >&6
19542 ac_check_lib_save_LIBS=$LIBS
19543 LIBS="-lkrb4 $LIBS"
19544 cat >conftest.$ac_ext <<_ACEOF
19547 cat confdefs.h >>conftest.$ac_ext
19548 cat >>conftest.$ac_ext <<_ACEOF
19549 /* end confdefs.h. */
19551 /* Override any GCC internal prototype to avoid an error.
19552 Use char because int might match the return type of a GCC
19553 builtin and then its argument prototype would still apply. */
19557 char krb_get_cred ();
19561 return krb_get_cred ();
19566 rm -f conftest.$ac_objext conftest$ac_exeext
19567 if { (ac_try="$ac_link"
19568 case "(($ac_try" in
19569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19570 *) ac_try_echo=$ac_try;;
19572 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19573 (eval "$ac_link") 2>conftest.er1
19575 grep -v '^ *+' conftest.er1 >conftest.err
19577 cat conftest.err >&5
19578 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19579 (exit $ac_status); } && {
19580 test -z "$ac_c_werror_flag" ||
19581 test ! -s conftest.err
19582 } && test -s conftest$ac_exeext &&
19583 $as_test_x conftest$ac_exeext; then
19584 ac_cv_lib_krb4_krb_get_cred=yes
19586 echo "$as_me: failed program was
:" >&5
19587 sed 's/^/| /' conftest.$ac_ext >&5
19589 ac_cv_lib_krb4_krb_get_cred=no
19592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19593 conftest$ac_exeext conftest.$ac_ext
19594 LIBS=$ac_check_lib_save_LIBS
19596 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
19597 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19598 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19599 cat >>confdefs.h <<_ACEOF
19600 #define HAVE_LIBKRB4 1
19603 LIBS="-lkrb4 $LIBS"
19607 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
19608 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
19609 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19610 echo $ECHO_N "(cached
) $ECHO_C" >&6
19612 ac_check_lib_save_LIBS=$LIBS
19614 cat >conftest.$ac_ext <<_ACEOF
19617 cat confdefs.h >>conftest.$ac_ext
19618 cat >>conftest.$ac_ext <<_ACEOF
19619 /* end confdefs.h. */
19621 /* Override any GCC internal prototype to avoid an error.
19622 Use char because int might match the return type of a GCC
19623 builtin and then its argument prototype would still apply. */
19627 char krb_get_cred ();
19631 return krb_get_cred ();
19636 rm -f conftest.$ac_objext conftest$ac_exeext
19637 if { (ac_try="$ac_link"
19638 case "(($ac_try" in
19639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19640 *) ac_try_echo=$ac_try;;
19642 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19643 (eval "$ac_link") 2>conftest.er1
19645 grep -v '^ *+' conftest.er1 >conftest.err
19647 cat conftest.err >&5
19648 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19649 (exit $ac_status); } && {
19650 test -z "$ac_c_werror_flag" ||
19651 test ! -s conftest.err
19652 } && test -s conftest$ac_exeext &&
19653 $as_test_x conftest$ac_exeext; then
19654 ac_cv_lib_krb_krb_get_cred=yes
19656 echo "$as_me: failed program was
:" >&5
19657 sed 's/^/| /' conftest.$ac_ext >&5
19659 ac_cv_lib_krb_krb_get_cred=no
19662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19663 conftest$ac_exeext conftest.$ac_ext
19664 LIBS=$ac_check_lib_save_LIBS
19666 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
19667 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19668 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19669 cat >>confdefs.h <<_ACEOF
19670 #define HAVE_LIBKRB 1
19681 if test "${with_kerberos5+set}" = set; then
19683 for ac_header in krb5.h
19685 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19686 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19687 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19688 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19689 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19690 echo $ECHO_N "(cached
) $ECHO_C" >&6
19692 ac_res=`eval echo '${'$as_ac_Header'}'`
19693 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19694 echo "${ECHO_T}$ac_res" >&6; }
19696 # Is the header compilable?
19697 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19698 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19699 cat >conftest.$ac_ext <<_ACEOF
19702 cat confdefs.h >>conftest.$ac_ext
19703 cat >>conftest.$ac_ext <<_ACEOF
19704 /* end confdefs.h. */
19705 $ac_includes_default
19706 #include <$ac_header>
19708 rm -f conftest.$ac_objext
19709 if { (ac_try="$ac_compile"
19710 case "(($ac_try" in
19711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19712 *) ac_try_echo=$ac_try;;
19714 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19715 (eval "$ac_compile") 2>conftest.er1
19717 grep -v '^ *+' conftest.er1 >conftest.err
19719 cat conftest.err >&5
19720 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19721 (exit $ac_status); } && {
19722 test -z "$ac_c_werror_flag" ||
19723 test ! -s conftest.err
19724 } && test -s conftest.$ac_objext; then
19725 ac_header_compiler=yes
19727 echo "$as_me: failed program was
:" >&5
19728 sed 's/^/| /' conftest.$ac_ext >&5
19730 ac_header_compiler=no
19733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19734 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19735 echo "${ECHO_T}$ac_header_compiler" >&6; }
19737 # Is the header present?
19738 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19739 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19740 cat >conftest.$ac_ext <<_ACEOF
19743 cat confdefs.h >>conftest.$ac_ext
19744 cat >>conftest.$ac_ext <<_ACEOF
19745 /* end confdefs.h. */
19746 #include <$ac_header>
19748 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19749 case "(($ac_try" in
19750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19751 *) ac_try_echo=$ac_try;;
19753 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19754 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19756 grep -v '^ *+' conftest.er1 >conftest.err
19758 cat conftest.err >&5
19759 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19760 (exit $ac_status); } >/dev/null && {
19761 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19762 test ! -s conftest.err
19764 ac_header_preproc=yes
19766 echo "$as_me: failed program was
:" >&5
19767 sed 's/^/| /' conftest.$ac_ext >&5
19769 ac_header_preproc=no
19772 rm -f conftest.err conftest.$ac_ext
19773 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19774 echo "${ECHO_T}$ac_header_preproc" >&6; }
19776 # So? What about this header?
19777 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19779 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19780 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19781 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19782 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19783 ac_header_preproc=yes
19786 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19787 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19788 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19789 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19790 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19791 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19792 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19793 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19794 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19795 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19796 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19797 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19801 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19802 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19803 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19804 echo $ECHO_N "(cached
) $ECHO_C" >&6
19806 eval "$as_ac_Header=\
$ac_header_preproc"
19808 ac_res=`eval echo '${'$as_ac_Header'}'`
19809 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19810 echo "${ECHO_T}$ac_res" >&6; }
19813 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19814 cat >>confdefs.h <<_ACEOF
19815 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19824 for ac_header in des.h
19826 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19827 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19828 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19829 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19830 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19831 echo $ECHO_N "(cached
) $ECHO_C" >&6
19833 ac_res=`eval echo '${'$as_ac_Header'}'`
19834 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19835 echo "${ECHO_T}$ac_res" >&6; }
19837 # Is the header compilable?
19838 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19839 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19840 cat >conftest.$ac_ext <<_ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19846 $ac_includes_default
19847 #include <$ac_header>
19849 rm -f conftest.$ac_objext
19850 if { (ac_try="$ac_compile"
19851 case "(($ac_try" in
19852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19853 *) ac_try_echo=$ac_try;;
19855 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19856 (eval "$ac_compile") 2>conftest.er1
19858 grep -v '^ *+' conftest.er1 >conftest.err
19860 cat conftest.err >&5
19861 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19862 (exit $ac_status); } && {
19863 test -z "$ac_c_werror_flag" ||
19864 test ! -s conftest.err
19865 } && test -s conftest.$ac_objext; then
19866 ac_header_compiler=yes
19868 echo "$as_me: failed program was
:" >&5
19869 sed 's/^/| /' conftest.$ac_ext >&5
19871 ac_header_compiler=no
19874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19875 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
19876 echo "${ECHO_T}$ac_header_compiler" >&6; }
19878 # Is the header present?
19879 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
19880 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
19881 cat >conftest.$ac_ext <<_ACEOF
19884 cat confdefs.h >>conftest.$ac_ext
19885 cat >>conftest.$ac_ext <<_ACEOF
19886 /* end confdefs.h. */
19887 #include <$ac_header>
19889 if { (ac_try="$ac_cpp conftest.
$ac_ext"
19890 case "(($ac_try" in
19891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19892 *) ac_try_echo=$ac_try;;
19894 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19895 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
19897 grep -v '^ *+' conftest.er1 >conftest.err
19899 cat conftest.err >&5
19900 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19901 (exit $ac_status); } >/dev/null && {
19902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19903 test ! -s conftest.err
19905 ac_header_preproc=yes
19907 echo "$as_me: failed program was
:" >&5
19908 sed 's/^/| /' conftest.$ac_ext >&5
19910 ac_header_preproc=no
19913 rm -f conftest.err conftest.$ac_ext
19914 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
19915 echo "${ECHO_T}$ac_header_preproc" >&6; }
19917 # So? What about this header?
19918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19920 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
19921 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
19922 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
19923 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
19924 ac_header_preproc=yes
19927 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
19928 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
19929 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
19930 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
19931 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
19932 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
19933 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
19934 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
19935 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
19936 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
19937 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
19938 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
19942 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19943 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19944 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19945 echo $ECHO_N "(cached
) $ECHO_C" >&6
19947 eval "$as_ac_Header=\
$ac_header_preproc"
19949 ac_res=`eval echo '${'$as_ac_Header'}'`
19950 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19951 echo "${ECHO_T}$ac_res" >&6; }
19954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19955 cat >>confdefs.h <<_ACEOF
19956 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
19961 for ac_header in kerberosIV/des.h
19963 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
19964 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19965 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
19966 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
19967 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
19968 echo $ECHO_N "(cached
) $ECHO_C" >&6
19970 ac_res=`eval echo '${'$as_ac_Header'}'`
19971 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19972 echo "${ECHO_T}$ac_res" >&6; }
19974 # Is the header compilable?
19975 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
19976 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
19977 cat >conftest.$ac_ext <<_ACEOF
19980 cat confdefs.h >>conftest.$ac_ext
19981 cat >>conftest.$ac_ext <<_ACEOF
19982 /* end confdefs.h. */
19983 $ac_includes_default
19984 #include <$ac_header>
19986 rm -f conftest.$ac_objext
19987 if { (ac_try="$ac_compile"
19988 case "(($ac_try" in
19989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19990 *) ac_try_echo=$ac_try;;
19992 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19993 (eval "$ac_compile") 2>conftest.er1
19995 grep -v '^ *+' conftest.er1 >conftest.err
19997 cat conftest.err >&5
19998 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19999 (exit $ac_status); } && {
20000 test -z "$ac_c_werror_flag" ||
20001 test ! -s conftest.err
20002 } && test -s conftest.$ac_objext; then
20003 ac_header_compiler=yes
20005 echo "$as_me: failed program was
:" >&5
20006 sed 's/^/| /' conftest.$ac_ext >&5
20008 ac_header_compiler=no
20011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20012 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20013 echo "${ECHO_T}$ac_header_compiler" >&6; }
20015 # Is the header present?
20016 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20017 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20018 cat >conftest.$ac_ext <<_ACEOF
20021 cat confdefs.h >>conftest.$ac_ext
20022 cat >>conftest.$ac_ext <<_ACEOF
20023 /* end confdefs.h. */
20024 #include <$ac_header>
20026 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20027 case "(($ac_try" in
20028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20029 *) ac_try_echo=$ac_try;;
20031 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20032 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20034 grep -v '^ *+' conftest.er1 >conftest.err
20036 cat conftest.err >&5
20037 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20038 (exit $ac_status); } >/dev/null && {
20039 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20040 test ! -s conftest.err
20042 ac_header_preproc=yes
20044 echo "$as_me: failed program was
:" >&5
20045 sed 's/^/| /' conftest.$ac_ext >&5
20047 ac_header_preproc=no
20050 rm -f conftest.err conftest.$ac_ext
20051 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20052 echo "${ECHO_T}$ac_header_preproc" >&6; }
20054 # So? What about this header?
20055 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20057 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20058 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20059 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20060 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20061 ac_header_preproc=yes
20064 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20065 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20066 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20067 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20068 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20069 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20070 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20071 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20072 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20073 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20074 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20075 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20079 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20080 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20081 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20082 echo $ECHO_N "(cached
) $ECHO_C" >&6
20084 eval "$as_ac_Header=\
$ac_header_preproc"
20086 ac_res=`eval echo '${'$as_ac_Header'}'`
20087 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20088 echo "${ECHO_T}$ac_res" >&6; }
20091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20092 cat >>confdefs.h <<_ACEOF
20093 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20098 for ac_header in kerberos/des.h
20100 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20101 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20102 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20103 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20104 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20105 echo $ECHO_N "(cached
) $ECHO_C" >&6
20107 ac_res=`eval echo '${'$as_ac_Header'}'`
20108 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20109 echo "${ECHO_T}$ac_res" >&6; }
20111 # Is the header compilable?
20112 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20113 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20114 cat >conftest.$ac_ext <<_ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h. */
20120 $ac_includes_default
20121 #include <$ac_header>
20123 rm -f conftest.$ac_objext
20124 if { (ac_try="$ac_compile"
20125 case "(($ac_try" in
20126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20127 *) ac_try_echo=$ac_try;;
20129 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20130 (eval "$ac_compile") 2>conftest.er1
20132 grep -v '^ *+' conftest.er1 >conftest.err
20134 cat conftest.err >&5
20135 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20136 (exit $ac_status); } && {
20137 test -z "$ac_c_werror_flag" ||
20138 test ! -s conftest.err
20139 } && test -s conftest.$ac_objext; then
20140 ac_header_compiler=yes
20142 echo "$as_me: failed program was
:" >&5
20143 sed 's/^/| /' conftest.$ac_ext >&5
20145 ac_header_compiler=no
20148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20149 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20150 echo "${ECHO_T}$ac_header_compiler" >&6; }
20152 # Is the header present?
20153 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20154 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20155 cat >conftest.$ac_ext <<_ACEOF
20158 cat confdefs.h >>conftest.$ac_ext
20159 cat >>conftest.$ac_ext <<_ACEOF
20160 /* end confdefs.h. */
20161 #include <$ac_header>
20163 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20164 case "(($ac_try" in
20165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20166 *) ac_try_echo=$ac_try;;
20168 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20169 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20171 grep -v '^ *+' conftest.er1 >conftest.err
20173 cat conftest.err >&5
20174 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20175 (exit $ac_status); } >/dev/null && {
20176 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20177 test ! -s conftest.err
20179 ac_header_preproc=yes
20181 echo "$as_me: failed program was
:" >&5
20182 sed 's/^/| /' conftest.$ac_ext >&5
20184 ac_header_preproc=no
20187 rm -f conftest.err conftest.$ac_ext
20188 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20189 echo "${ECHO_T}$ac_header_preproc" >&6; }
20191 # So? What about this header?
20192 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20194 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20195 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20196 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20197 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20198 ac_header_preproc=yes
20201 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20202 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20203 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20204 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20205 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20206 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20207 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20208 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20209 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20210 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20211 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20212 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20216 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20217 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20218 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20219 echo $ECHO_N "(cached
) $ECHO_C" >&6
20221 eval "$as_ac_Header=\
$ac_header_preproc"
20223 ac_res=`eval echo '${'$as_ac_Header'}'`
20224 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20225 echo "${ECHO_T}$ac_res" >&6; }
20228 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20229 cat >>confdefs.h <<_ACEOF
20230 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20246 for ac_header in krb.h
20248 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20249 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20250 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20251 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20252 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20253 echo $ECHO_N "(cached
) $ECHO_C" >&6
20255 ac_res=`eval echo '${'$as_ac_Header'}'`
20256 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20257 echo "${ECHO_T}$ac_res" >&6; }
20259 # Is the header compilable?
20260 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20261 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20262 cat >conftest.$ac_ext <<_ACEOF
20265 cat confdefs.h >>conftest.$ac_ext
20266 cat >>conftest.$ac_ext <<_ACEOF
20267 /* end confdefs.h. */
20268 $ac_includes_default
20269 #include <$ac_header>
20271 rm -f conftest.$ac_objext
20272 if { (ac_try="$ac_compile"
20273 case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20277 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_compile") 2>conftest.er1
20280 grep -v '^ *+' conftest.er1 >conftest.err
20282 cat conftest.err >&5
20283 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20284 (exit $ac_status); } && {
20285 test -z "$ac_c_werror_flag" ||
20286 test ! -s conftest.err
20287 } && test -s conftest.$ac_objext; then
20288 ac_header_compiler=yes
20290 echo "$as_me: failed program was
:" >&5
20291 sed 's/^/| /' conftest.$ac_ext >&5
20293 ac_header_compiler=no
20296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20297 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20298 echo "${ECHO_T}$ac_header_compiler" >&6; }
20300 # Is the header present?
20301 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20302 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20303 cat >conftest.$ac_ext <<_ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309 #include <$ac_header>
20311 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20312 case "(($ac_try" in
20313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20314 *) ac_try_echo=$ac_try;;
20316 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20317 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20319 grep -v '^ *+' conftest.er1 >conftest.err
20321 cat conftest.err >&5
20322 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20323 (exit $ac_status); } >/dev/null && {
20324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20325 test ! -s conftest.err
20327 ac_header_preproc=yes
20329 echo "$as_me: failed program was
:" >&5
20330 sed 's/^/| /' conftest.$ac_ext >&5
20332 ac_header_preproc=no
20335 rm -f conftest.err conftest.$ac_ext
20336 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20337 echo "${ECHO_T}$ac_header_preproc" >&6; }
20339 # So? What about this header?
20340 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20342 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20343 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20344 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20345 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20346 ac_header_preproc=yes
20349 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20350 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20351 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20352 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20353 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20354 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20355 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20356 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20357 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20358 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20359 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20360 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20364 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20365 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20366 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20367 echo $ECHO_N "(cached
) $ECHO_C" >&6
20369 eval "$as_ac_Header=\
$ac_header_preproc"
20371 ac_res=`eval echo '${'$as_ac_Header'}'`
20372 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20373 echo "${ECHO_T}$ac_res" >&6; }
20376 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20377 cat >>confdefs.h <<_ACEOF
20378 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20383 for ac_header in kerberosIV/krb.h
20385 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20386 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20387 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20388 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20389 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20390 echo $ECHO_N "(cached
) $ECHO_C" >&6
20392 ac_res=`eval echo '${'$as_ac_Header'}'`
20393 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20394 echo "${ECHO_T}$ac_res" >&6; }
20396 # Is the header compilable?
20397 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20398 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20399 cat >conftest.$ac_ext <<_ACEOF
20402 cat confdefs.h >>conftest.$ac_ext
20403 cat >>conftest.$ac_ext <<_ACEOF
20404 /* end confdefs.h. */
20405 $ac_includes_default
20406 #include <$ac_header>
20408 rm -f conftest.$ac_objext
20409 if { (ac_try="$ac_compile"
20410 case "(($ac_try" in
20411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20412 *) ac_try_echo=$ac_try;;
20414 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20415 (eval "$ac_compile") 2>conftest.er1
20417 grep -v '^ *+' conftest.er1 >conftest.err
20419 cat conftest.err >&5
20420 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20421 (exit $ac_status); } && {
20422 test -z "$ac_c_werror_flag" ||
20423 test ! -s conftest.err
20424 } && test -s conftest.$ac_objext; then
20425 ac_header_compiler=yes
20427 echo "$as_me: failed program was
:" >&5
20428 sed 's/^/| /' conftest.$ac_ext >&5
20430 ac_header_compiler=no
20433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20434 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20435 echo "${ECHO_T}$ac_header_compiler" >&6; }
20437 # Is the header present?
20438 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20439 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20440 cat >conftest.$ac_ext <<_ACEOF
20443 cat confdefs.h >>conftest.$ac_ext
20444 cat >>conftest.$ac_ext <<_ACEOF
20445 /* end confdefs.h. */
20446 #include <$ac_header>
20448 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20449 case "(($ac_try" in
20450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20451 *) ac_try_echo=$ac_try;;
20453 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20454 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20456 grep -v '^ *+' conftest.er1 >conftest.err
20458 cat conftest.err >&5
20459 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20460 (exit $ac_status); } >/dev/null && {
20461 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20462 test ! -s conftest.err
20464 ac_header_preproc=yes
20466 echo "$as_me: failed program was
:" >&5
20467 sed 's/^/| /' conftest.$ac_ext >&5
20469 ac_header_preproc=no
20472 rm -f conftest.err conftest.$ac_ext
20473 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20474 echo "${ECHO_T}$ac_header_preproc" >&6; }
20476 # So? What about this header?
20477 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20479 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20480 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20481 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20482 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20483 ac_header_preproc=yes
20486 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20487 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20488 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20489 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20490 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20491 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20492 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20493 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20494 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20495 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20496 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20497 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20501 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20502 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20503 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20504 echo $ECHO_N "(cached
) $ECHO_C" >&6
20506 eval "$as_ac_Header=\
$ac_header_preproc"
20508 ac_res=`eval echo '${'$as_ac_Header'}'`
20509 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20510 echo "${ECHO_T}$ac_res" >&6; }
20513 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20514 cat >>confdefs.h <<_ACEOF
20515 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20520 for ac_header in kerberos/krb.h
20522 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20523 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20524 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20525 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20526 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20527 echo $ECHO_N "(cached
) $ECHO_C" >&6
20529 ac_res=`eval echo '${'$as_ac_Header'}'`
20530 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20531 echo "${ECHO_T}$ac_res" >&6; }
20533 # Is the header compilable?
20534 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20535 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20536 cat >conftest.$ac_ext <<_ACEOF
20539 cat confdefs.h >>conftest.$ac_ext
20540 cat >>conftest.$ac_ext <<_ACEOF
20541 /* end confdefs.h. */
20542 $ac_includes_default
20543 #include <$ac_header>
20545 rm -f conftest.$ac_objext
20546 if { (ac_try="$ac_compile"
20547 case "(($ac_try" in
20548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20549 *) ac_try_echo=$ac_try;;
20551 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20552 (eval "$ac_compile") 2>conftest.er1
20554 grep -v '^ *+' conftest.er1 >conftest.err
20556 cat conftest.err >&5
20557 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20558 (exit $ac_status); } && {
20559 test -z "$ac_c_werror_flag" ||
20560 test ! -s conftest.err
20561 } && test -s conftest.$ac_objext; then
20562 ac_header_compiler=yes
20564 echo "$as_me: failed program was
:" >&5
20565 sed 's/^/| /' conftest.$ac_ext >&5
20567 ac_header_compiler=no
20570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20571 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20572 echo "${ECHO_T}$ac_header_compiler" >&6; }
20574 # Is the header present?
20575 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20576 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20577 cat >conftest.$ac_ext <<_ACEOF
20580 cat confdefs.h >>conftest.$ac_ext
20581 cat >>conftest.$ac_ext <<_ACEOF
20582 /* end confdefs.h. */
20583 #include <$ac_header>
20585 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20586 case "(($ac_try" in
20587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20588 *) ac_try_echo=$ac_try;;
20590 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20591 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20593 grep -v '^ *+' conftest.er1 >conftest.err
20595 cat conftest.err >&5
20596 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20597 (exit $ac_status); } >/dev/null && {
20598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20599 test ! -s conftest.err
20601 ac_header_preproc=yes
20603 echo "$as_me: failed program was
:" >&5
20604 sed 's/^/| /' conftest.$ac_ext >&5
20606 ac_header_preproc=no
20609 rm -f conftest.err conftest.$ac_ext
20610 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20611 echo "${ECHO_T}$ac_header_preproc" >&6; }
20613 # So? What about this header?
20614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20616 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20617 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20618 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20619 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20620 ac_header_preproc=yes
20623 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20624 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20625 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20626 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20627 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20628 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20629 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20630 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20631 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20632 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20633 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20634 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20638 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20639 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20640 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20641 echo $ECHO_N "(cached
) $ECHO_C" >&6
20643 eval "$as_ac_Header=\
$ac_header_preproc"
20645 ac_res=`eval echo '${'$as_ac_Header'}'`
20646 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20647 echo "${ECHO_T}$ac_res" >&6; }
20650 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20651 cat >>confdefs.h <<_ACEOF
20652 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20669 for ac_header in com_err.h
20671 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20672 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20673 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20674 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20675 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20676 echo $ECHO_N "(cached
) $ECHO_C" >&6
20678 ac_res=`eval echo '${'$as_ac_Header'}'`
20679 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20680 echo "${ECHO_T}$ac_res" >&6; }
20682 # Is the header compilable?
20683 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20684 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20685 cat >conftest.$ac_ext <<_ACEOF
20688 cat confdefs.h >>conftest.$ac_ext
20689 cat >>conftest.$ac_ext <<_ACEOF
20690 /* end confdefs.h. */
20691 $ac_includes_default
20692 #include <$ac_header>
20694 rm -f conftest.$ac_objext
20695 if { (ac_try="$ac_compile"
20696 case "(($ac_try" in
20697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20698 *) ac_try_echo=$ac_try;;
20700 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20701 (eval "$ac_compile") 2>conftest.er1
20703 grep -v '^ *+' conftest.er1 >conftest.err
20705 cat conftest.err >&5
20706 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20707 (exit $ac_status); } && {
20708 test -z "$ac_c_werror_flag" ||
20709 test ! -s conftest.err
20710 } && test -s conftest.$ac_objext; then
20711 ac_header_compiler=yes
20713 echo "$as_me: failed program was
:" >&5
20714 sed 's/^/| /' conftest.$ac_ext >&5
20716 ac_header_compiler=no
20719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20720 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20721 echo "${ECHO_T}$ac_header_compiler" >&6; }
20723 # Is the header present?
20724 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20725 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20726 cat >conftest.$ac_ext <<_ACEOF
20729 cat confdefs.h >>conftest.$ac_ext
20730 cat >>conftest.$ac_ext <<_ACEOF
20731 /* end confdefs.h. */
20732 #include <$ac_header>
20734 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20735 case "(($ac_try" in
20736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20737 *) ac_try_echo=$ac_try;;
20739 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20740 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20742 grep -v '^ *+' conftest.er1 >conftest.err
20744 cat conftest.err >&5
20745 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20746 (exit $ac_status); } >/dev/null && {
20747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20748 test ! -s conftest.err
20750 ac_header_preproc=yes
20752 echo "$as_me: failed program was
:" >&5
20753 sed 's/^/| /' conftest.$ac_ext >&5
20755 ac_header_preproc=no
20758 rm -f conftest.err conftest.$ac_ext
20759 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20760 echo "${ECHO_T}$ac_header_preproc" >&6; }
20762 # So? What about this header?
20763 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20765 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20766 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20767 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20768 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20769 ac_header_preproc=yes
20772 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20773 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20774 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20775 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20776 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20777 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20778 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20779 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20780 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20781 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20782 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20783 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20787 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20788 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20789 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20790 echo $ECHO_N "(cached
) $ECHO_C" >&6
20792 eval "$as_ac_Header=\
$ac_header_preproc"
20794 ac_res=`eval echo '${'$as_ac_Header'}'`
20795 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20796 echo "${ECHO_T}$ac_res" >&6; }
20799 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20800 cat >>confdefs.h <<_ACEOF
20801 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20810 # Solaris requires -lintl if you want strerror (which calls dgettext)
20811 # to return localized messages.
20813 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
20814 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
20815 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20816 echo $ECHO_N "(cached
) $ECHO_C" >&6
20818 ac_check_lib_save_LIBS=$LIBS
20819 LIBS="-lintl $LIBS"
20820 cat >conftest.$ac_ext <<_ACEOF
20823 cat confdefs.h >>conftest.$ac_ext
20824 cat >>conftest.$ac_ext <<_ACEOF
20825 /* end confdefs.h. */
20827 /* Override any GCC internal prototype to avoid an error.
20828 Use char because int might match the return type of a GCC
20829 builtin and then its argument prototype would still apply. */
20837 return dgettext ();
20842 rm -f conftest.$ac_objext conftest$ac_exeext
20843 if { (ac_try="$ac_link"
20844 case "(($ac_try" in
20845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20846 *) ac_try_echo=$ac_try;;
20848 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20849 (eval "$ac_link") 2>conftest.er1
20851 grep -v '^ *+' conftest.er1 >conftest.err
20853 cat conftest.err >&5
20854 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20855 (exit $ac_status); } && {
20856 test -z "$ac_c_werror_flag" ||
20857 test ! -s conftest.err
20858 } && test -s conftest$ac_exeext &&
20859 $as_test_x conftest$ac_exeext; then
20860 ac_cv_lib_intl_dgettext=yes
20862 echo "$as_me: failed program was
:" >&5
20863 sed 's/^/| /' conftest.$ac_ext >&5
20865 ac_cv_lib_intl_dgettext=no
20868 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20869 conftest$ac_exeext conftest.$ac_ext
20870 LIBS=$ac_check_lib_save_LIBS
20872 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
20873 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
20874 if test $ac_cv_lib_intl_dgettext = yes; then
20875 cat >>confdefs.h <<_ACEOF
20876 #define HAVE_LIBINTL 1
20879 LIBS="-lintl $LIBS"
20884 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
20885 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
20886 if test "${emacs_cv_localtime_cache+set}" = set; then
20887 echo $ECHO_N "(cached
) $ECHO_C" >&6
20889 if test x$ac_cv_func_tzset = xyes; then
20890 if test "$cross_compiling" = yes; then
20891 # If we have tzset, assume the worst when cross-compiling.
20892 emacs_cv_localtime_cache=yes
20894 cat >conftest.$ac_ext <<_ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20901 extern char **environ;
20905 for (to = from = environ; (*to = *from); from++)
20906 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20909 char TZ_GMT0[] = "TZ
=GMT0
";
20910 char TZ_PST8[] = "TZ
=PST8
";
20913 time_t now = time ((time_t *) 0);
20914 int hour_GMT0, hour_unset;
20915 if (putenv (TZ_GMT0) != 0)
20917 hour_GMT0 = localtime (&now)->tm_hour;
20919 hour_unset = localtime (&now)->tm_hour;
20920 if (putenv (TZ_PST8) != 0)
20922 if (localtime (&now)->tm_hour == hour_GMT0)
20925 if (localtime (&now)->tm_hour != hour_unset)
20930 rm -f conftest$ac_exeext
20931 if { (ac_try="$ac_link"
20932 case "(($ac_try" in
20933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20934 *) ac_try_echo=$ac_try;;
20936 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20937 (eval "$ac_link") 2>&5
20939 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20940 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20941 { (case "(($ac_try" in
20942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20943 *) ac_try_echo=$ac_try;;
20945 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20946 (eval "$ac_try") 2>&5
20948 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20949 (exit $ac_status); }; }; then
20950 emacs_cv_localtime_cache=no
20952 echo "$as_me: program exited with status
$ac_status" >&5
20953 echo "$as_me: failed program was
:" >&5
20954 sed 's/^/| /' conftest.$ac_ext >&5
20956 ( exit $ac_status )
20957 emacs_cv_localtime_cache=yes
20959 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20964 # If we lack tzset, report that localtime does not cache TZ,
20965 # since we can't invalidate the cache if we don't have tzset.
20966 emacs_cv_localtime_cache=no
20969 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
20970 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
20971 if test $emacs_cv_localtime_cache = yes; then
20973 cat >>confdefs.h <<\_ACEOF
20974 #define LOCALTIME_CACHE 1
20979 if test "x
$HAVE_TIMEVAL" = xyes; then
20981 for ac_func in gettimeofday
20983 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
20984 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
20985 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
20986 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
20987 echo $ECHO_N "(cached
) $ECHO_C" >&6
20989 cat >conftest.$ac_ext <<_ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20997 #define $ac_func innocuous_$ac_func
20999 /* System header to define __stub macros and hopefully few prototypes,
21000 which can conflict with char $ac_func (); below.
21001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21002 <limits.h> exists even on freestanding compilers. */
21005 # include <limits.h>
21007 # include <assert.h>
21012 /* Override any GCC internal prototype to avoid an error.
21013 Use char because int might match the return type of a GCC
21014 builtin and then its argument prototype would still apply. */
21019 /* The GNU C library defines this for functions which it implements
21020 to always fail with ENOSYS. Some functions are actually named
21021 something starting with __ and the normal name is an alias. */
21022 #if defined __stub_$ac_func || defined __stub___$ac_func
21029 return $ac_func ();
21034 rm -f conftest.$ac_objext conftest$ac_exeext
21035 if { (ac_try="$ac_link"
21036 case "(($ac_try" in
21037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038 *) ac_try_echo=$ac_try;;
21040 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21041 (eval "$ac_link") 2>conftest.er1
21043 grep -v '^ *+' conftest.er1 >conftest.err
21045 cat conftest.err >&5
21046 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21047 (exit $ac_status); } && {
21048 test -z "$ac_c_werror_flag" ||
21049 test ! -s conftest.err
21050 } && test -s conftest$ac_exeext &&
21051 $as_test_x conftest$ac_exeext; then
21052 eval "$as_ac_var=yes"
21054 echo "$as_me: failed program was
:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21057 eval "$as_ac_var=no
"
21060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21061 conftest$ac_exeext conftest.$ac_ext
21063 ac_res=`eval echo '${'$as_ac_var'}'`
21064 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21065 echo "${ECHO_T}$ac_res" >&6; }
21066 if test `eval echo '${'$as_ac_var'}'` = yes; then
21067 cat >>confdefs.h <<_ACEOF
21068 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21074 if test $ac_cv_func_gettimeofday = yes; then
21075 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21076 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21077 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21078 echo $ECHO_N "(cached
) $ECHO_C" >&6
21080 cat >conftest.$ac_ext <<_ACEOF
21083 cat confdefs.h >>conftest.$ac_ext
21084 cat >>conftest.$ac_ext <<_ACEOF
21085 /* end confdefs.h. */
21087 #ifdef TIME_WITH_SYS_TIME
21088 #include <sys/time.h>
21091 #ifdef HAVE_SYS_TIME_H
21092 #include <sys/time.h>
21100 struct timeval time;
21101 gettimeofday (&time, 0);
21106 rm -f conftest.$ac_objext
21107 if { (ac_try="$ac_compile"
21108 case "(($ac_try" in
21109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21110 *) ac_try_echo=$ac_try;;
21112 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21113 (eval "$ac_compile") 2>conftest.er1
21115 grep -v '^ *+' conftest.er1 >conftest.err
21117 cat conftest.err >&5
21118 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21119 (exit $ac_status); } && {
21120 test -z "$ac_c_werror_flag" ||
21121 test ! -s conftest.err
21122 } && test -s conftest.$ac_objext; then
21123 emacs_cv_gettimeofday_two_arguments=yes
21125 echo "$as_me: failed program was
:" >&5
21126 sed 's/^/| /' conftest.$ac_ext >&5
21128 emacs_cv_gettimeofday_two_arguments=no
21131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21133 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21134 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21135 if test $emacs_cv_gettimeofday_two_arguments = no; then
21137 cat >>confdefs.h <<\_ACEOF
21138 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21146 { echo "$as_me:$LINENO: checking
for socket
" >&5
21147 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21148 if test "${ac_cv_func_socket+set}" = set; then
21149 echo $ECHO_N "(cached
) $ECHO_C" >&6
21151 cat >conftest.$ac_ext <<_ACEOF
21154 cat confdefs.h >>conftest.$ac_ext
21155 cat >>conftest.$ac_ext <<_ACEOF
21156 /* end confdefs.h. */
21157 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21158 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21159 #define socket innocuous_socket
21161 /* System header to define __stub macros and hopefully few prototypes,
21162 which can conflict with char socket (); below.
21163 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21164 <limits.h> exists even on freestanding compilers. */
21167 # include <limits.h>
21169 # include <assert.h>
21174 /* Override any GCC internal prototype to avoid an error.
21175 Use char because int might match the return type of a GCC
21176 builtin and then its argument prototype would still apply. */
21181 /* The GNU C library defines this for functions which it implements
21182 to always fail with ENOSYS. Some functions are actually named
21183 something starting with __ and the normal name is an alias. */
21184 #if defined __stub_socket || defined __stub___socket
21196 rm -f conftest.$ac_objext conftest$ac_exeext
21197 if { (ac_try="$ac_link"
21198 case "(($ac_try" in
21199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21200 *) ac_try_echo=$ac_try;;
21202 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21203 (eval "$ac_link") 2>conftest.er1
21205 grep -v '^ *+' conftest.er1 >conftest.err
21207 cat conftest.err >&5
21208 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21209 (exit $ac_status); } && {
21210 test -z "$ac_c_werror_flag" ||
21211 test ! -s conftest.err
21212 } && test -s conftest$ac_exeext &&
21213 $as_test_x conftest$ac_exeext; then
21214 ac_cv_func_socket=yes
21216 echo "$as_me: failed program was
:" >&5
21217 sed 's/^/| /' conftest.$ac_ext >&5
21219 ac_cv_func_socket=no
21222 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21223 conftest$ac_exeext conftest.$ac_ext
21225 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21226 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21227 if test $ac_cv_func_socket = yes; then
21233 if test $ok_so_far = yes; then
21234 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21235 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21236 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21237 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21238 echo $ECHO_N "(cached
) $ECHO_C" >&6
21240 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21241 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21243 # Is the header compilable?
21244 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21245 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21246 cat >conftest.$ac_ext <<_ACEOF
21249 cat confdefs.h >>conftest.$ac_ext
21250 cat >>conftest.$ac_ext <<_ACEOF
21251 /* end confdefs.h. */
21252 $ac_includes_default
21253 #include <netinet/in.h>
21255 rm -f conftest.$ac_objext
21256 if { (ac_try="$ac_compile"
21257 case "(($ac_try" in
21258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21259 *) ac_try_echo=$ac_try;;
21261 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21262 (eval "$ac_compile") 2>conftest.er1
21264 grep -v '^ *+' conftest.er1 >conftest.err
21266 cat conftest.err >&5
21267 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21268 (exit $ac_status); } && {
21269 test -z "$ac_c_werror_flag" ||
21270 test ! -s conftest.err
21271 } && test -s conftest.$ac_objext; then
21272 ac_header_compiler=yes
21274 echo "$as_me: failed program was
:" >&5
21275 sed 's/^/| /' conftest.$ac_ext >&5
21277 ac_header_compiler=no
21280 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21281 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21282 echo "${ECHO_T}$ac_header_compiler" >&6; }
21284 # Is the header present?
21285 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21286 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21287 cat >conftest.$ac_ext <<_ACEOF
21290 cat confdefs.h >>conftest.$ac_ext
21291 cat >>conftest.$ac_ext <<_ACEOF
21292 /* end confdefs.h. */
21293 #include <netinet/in.h>
21295 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21296 case "(($ac_try" in
21297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21298 *) ac_try_echo=$ac_try;;
21300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21301 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21303 grep -v '^ *+' conftest.er1 >conftest.err
21305 cat conftest.err >&5
21306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21307 (exit $ac_status); } >/dev/null && {
21308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21309 test ! -s conftest.err
21311 ac_header_preproc=yes
21313 echo "$as_me: failed program was
:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21316 ac_header_preproc=no
21319 rm -f conftest.err conftest.$ac_ext
21320 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21321 echo "${ECHO_T}$ac_header_preproc" >&6; }
21323 # So? What about this header?
21324 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21326 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21327 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21328 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21329 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21330 ac_header_preproc=yes
21333 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21334 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21335 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21336 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21337 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21338 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21339 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21340 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21341 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21342 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21343 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21344 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21348 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21349 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21350 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21351 echo $ECHO_N "(cached
) $ECHO_C" >&6
21353 ac_cv_header_netinet_in_h=$ac_header_preproc
21355 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21356 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21359 if test $ac_cv_header_netinet_in_h = yes; then
21367 if test $ok_so_far = yes; then
21368 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21369 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21370 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21371 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21372 echo $ECHO_N "(cached
) $ECHO_C" >&6
21374 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21375 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21377 # Is the header compilable?
21378 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21379 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
21380 cat >conftest.$ac_ext <<_ACEOF
21383 cat confdefs.h >>conftest.$ac_ext
21384 cat >>conftest.$ac_ext <<_ACEOF
21385 /* end confdefs.h. */
21386 $ac_includes_default
21387 #include <arpa/inet.h>
21389 rm -f conftest.$ac_objext
21390 if { (ac_try="$ac_compile"
21391 case "(($ac_try" in
21392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21393 *) ac_try_echo=$ac_try;;
21395 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21396 (eval "$ac_compile") 2>conftest.er1
21398 grep -v '^ *+' conftest.er1 >conftest.err
21400 cat conftest.err >&5
21401 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21402 (exit $ac_status); } && {
21403 test -z "$ac_c_werror_flag" ||
21404 test ! -s conftest.err
21405 } && test -s conftest.$ac_objext; then
21406 ac_header_compiler=yes
21408 echo "$as_me: failed program was
:" >&5
21409 sed 's/^/| /' conftest.$ac_ext >&5
21411 ac_header_compiler=no
21414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21415 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21416 echo "${ECHO_T}$ac_header_compiler" >&6; }
21418 # Is the header present?
21419 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
21420 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
21421 cat >conftest.$ac_ext <<_ACEOF
21424 cat confdefs.h >>conftest.$ac_ext
21425 cat >>conftest.$ac_ext <<_ACEOF
21426 /* end confdefs.h. */
21427 #include <arpa/inet.h>
21429 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21430 case "(($ac_try" in
21431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21432 *) ac_try_echo=$ac_try;;
21434 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21435 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21437 grep -v '^ *+' conftest.er1 >conftest.err
21439 cat conftest.err >&5
21440 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21441 (exit $ac_status); } >/dev/null && {
21442 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21443 test ! -s conftest.err
21445 ac_header_preproc=yes
21447 echo "$as_me: failed program was
:" >&5
21448 sed 's/^/| /' conftest.$ac_ext >&5
21450 ac_header_preproc=no
21453 rm -f conftest.err conftest.$ac_ext
21454 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21455 echo "${ECHO_T}$ac_header_preproc" >&6; }
21457 # So? What about this header?
21458 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21460 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21461 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21462 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
21463 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
21464 ac_header_preproc=yes
21467 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
21468 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
21469 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
21470 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
21471 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
21472 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
21473 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21474 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21475 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
21476 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
21477 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
21478 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
21482 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21483 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21484 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21485 echo $ECHO_N "(cached
) $ECHO_C" >&6
21487 ac_cv_header_arpa_inet_h=$ac_header_preproc
21489 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21490 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21493 if test $ac_cv_header_arpa_inet_h = yes; then
21501 if test $ok_so_far = yes; then
21503 cat >>confdefs.h <<\_ACEOF
21504 #define HAVE_INET_SOCKETS 1
21510 for ac_header in sys/ioctl.h
21512 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21513 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21514 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21515 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21516 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21517 echo $ECHO_N "(cached
) $ECHO_C" >&6
21519 ac_res=`eval echo '${'$as_ac_Header'}'`
21520 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21521 echo "${ECHO_T}$ac_res" >&6; }
21523 # Is the header compilable?
21524 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21525 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21526 cat >conftest.$ac_ext <<_ACEOF
21529 cat confdefs.h >>conftest.$ac_ext
21530 cat >>conftest.$ac_ext <<_ACEOF
21531 /* end confdefs.h. */
21532 $ac_includes_default
21533 #include <$ac_header>
21535 rm -f conftest.$ac_objext
21536 if { (ac_try="$ac_compile"
21537 case "(($ac_try" in
21538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21539 *) ac_try_echo=$ac_try;;
21541 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21542 (eval "$ac_compile") 2>conftest.er1
21544 grep -v '^ *+' conftest.er1 >conftest.err
21546 cat conftest.err >&5
21547 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21548 (exit $ac_status); } && {
21549 test -z "$ac_c_werror_flag" ||
21550 test ! -s conftest.err
21551 } && test -s conftest.$ac_objext; then
21552 ac_header_compiler=yes
21554 echo "$as_me: failed program was
:" >&5
21555 sed 's/^/| /' conftest.$ac_ext >&5
21557 ac_header_compiler=no
21560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21561 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21562 echo "${ECHO_T}$ac_header_compiler" >&6; }
21564 # Is the header present?
21565 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21566 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21567 cat >conftest.$ac_ext <<_ACEOF
21570 cat confdefs.h >>conftest.$ac_ext
21571 cat >>conftest.$ac_ext <<_ACEOF
21572 /* end confdefs.h. */
21573 #include <$ac_header>
21575 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21576 case "(($ac_try" in
21577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21578 *) ac_try_echo=$ac_try;;
21580 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21581 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21583 grep -v '^ *+' conftest.er1 >conftest.err
21585 cat conftest.err >&5
21586 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21587 (exit $ac_status); } >/dev/null && {
21588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21589 test ! -s conftest.err
21591 ac_header_preproc=yes
21593 echo "$as_me: failed program was
:" >&5
21594 sed 's/^/| /' conftest.$ac_ext >&5
21596 ac_header_preproc=no
21599 rm -f conftest.err conftest.$ac_ext
21600 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21601 echo "${ECHO_T}$ac_header_preproc" >&6; }
21603 # So? What about this header?
21604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21606 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21607 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21608 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21609 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21610 ac_header_preproc=yes
21613 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21614 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21615 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21616 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21617 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21618 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21619 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21620 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21621 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21622 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21623 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21624 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21628 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21629 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21630 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21631 echo $ECHO_N "(cached
) $ECHO_C" >&6
21633 eval "$as_ac_Header=\
$ac_header_preproc"
21635 ac_res=`eval echo '${'$as_ac_Header'}'`
21636 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21637 echo "${ECHO_T}$ac_res" >&6; }
21640 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21641 cat >>confdefs.h <<_ACEOF
21642 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21650 if test -f /usr/lpp/X11/bin/smt.exp; then
21652 cat >>confdefs.h <<\_ACEOF
21653 #define HAVE_AIX_SMT_EXP 1
21658 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
21659 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
21660 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21661 { echo "$as_me:$LINENO: result
: yes" >&5
21662 echo "${ECHO_T}yes" >&6; }
21664 cat >>confdefs.h <<\_ACEOF
21665 #define HAVE_DEV_PTMX 1
21669 { echo "$as_me:$LINENO: result
: no
" >&5
21670 echo "${ECHO_T}no
" >&6; }
21673 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
21674 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
21675 if test "${ac_cv_type_pid_t+set}" = set; then
21676 echo $ECHO_N "(cached
) $ECHO_C" >&6
21678 cat >conftest.$ac_ext <<_ACEOF
21681 cat confdefs.h >>conftest.$ac_ext
21682 cat >>conftest.$ac_ext <<_ACEOF
21683 /* end confdefs.h. */
21684 $ac_includes_default
21685 typedef pid_t ac__type_new_;
21689 if ((ac__type_new_ *) 0)
21691 if (sizeof (ac__type_new_))
21697 rm -f conftest.$ac_objext
21698 if { (ac_try="$ac_compile"
21699 case "(($ac_try" in
21700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21701 *) ac_try_echo=$ac_try;;
21703 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21704 (eval "$ac_compile") 2>conftest.er1
21706 grep -v '^ *+' conftest.er1 >conftest.err
21708 cat conftest.err >&5
21709 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21710 (exit $ac_status); } && {
21711 test -z "$ac_c_werror_flag" ||
21712 test ! -s conftest.err
21713 } && test -s conftest.$ac_objext; then
21714 ac_cv_type_pid_t=yes
21716 echo "$as_me: failed program was
:" >&5
21717 sed 's/^/| /' conftest.$ac_ext >&5
21719 ac_cv_type_pid_t=no
21722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21724 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
21725 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21726 if test $ac_cv_type_pid_t = yes; then
21730 cat >>confdefs.h <<_ACEOF
21737 for ac_header in vfork.h
21739 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21740 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21741 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21742 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21743 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21744 echo $ECHO_N "(cached
) $ECHO_C" >&6
21746 ac_res=`eval echo '${'$as_ac_Header'}'`
21747 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21748 echo "${ECHO_T}$ac_res" >&6; }
21750 # Is the header compilable?
21751 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21752 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21753 cat >conftest.$ac_ext <<_ACEOF
21756 cat confdefs.h >>conftest.$ac_ext
21757 cat >>conftest.$ac_ext <<_ACEOF
21758 /* end confdefs.h. */
21759 $ac_includes_default
21760 #include <$ac_header>
21762 rm -f conftest.$ac_objext
21763 if { (ac_try="$ac_compile"
21764 case "(($ac_try" in
21765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21766 *) ac_try_echo=$ac_try;;
21768 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21769 (eval "$ac_compile") 2>conftest.er1
21771 grep -v '^ *+' conftest.er1 >conftest.err
21773 cat conftest.err >&5
21774 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21775 (exit $ac_status); } && {
21776 test -z "$ac_c_werror_flag" ||
21777 test ! -s conftest.err
21778 } && test -s conftest.$ac_objext; then
21779 ac_header_compiler=yes
21781 echo "$as_me: failed program was
:" >&5
21782 sed 's/^/| /' conftest.$ac_ext >&5
21784 ac_header_compiler=no
21787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21788 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21789 echo "${ECHO_T}$ac_header_compiler" >&6; }
21791 # Is the header present?
21792 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21793 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21794 cat >conftest.$ac_ext <<_ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h. */
21800 #include <$ac_header>
21802 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21803 case "(($ac_try" in
21804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21805 *) ac_try_echo=$ac_try;;
21807 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21808 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21810 grep -v '^ *+' conftest.er1 >conftest.err
21812 cat conftest.err >&5
21813 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21814 (exit $ac_status); } >/dev/null && {
21815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21816 test ! -s conftest.err
21818 ac_header_preproc=yes
21820 echo "$as_me: failed program was
:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21823 ac_header_preproc=no
21826 rm -f conftest.err conftest.$ac_ext
21827 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21828 echo "${ECHO_T}$ac_header_preproc" >&6; }
21830 # So? What about this header?
21831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21833 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21834 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21835 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21837 ac_header_preproc=yes
21840 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21841 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21842 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21843 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21844 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21845 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21846 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21847 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21848 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21850 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21851 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21855 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21856 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21857 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21858 echo $ECHO_N "(cached
) $ECHO_C" >&6
21860 eval "$as_ac_Header=\
$ac_header_preproc"
21862 ac_res=`eval echo '${'$as_ac_Header'}'`
21863 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21864 echo "${ECHO_T}$ac_res" >&6; }
21867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21868 cat >>confdefs.h <<_ACEOF
21869 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21878 for ac_func in fork vfork
21880 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21881 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21882 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21883 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21884 echo $ECHO_N "(cached
) $ECHO_C" >&6
21886 cat >conftest.$ac_ext <<_ACEOF
21889 cat confdefs.h >>conftest.$ac_ext
21890 cat >>conftest.$ac_ext <<_ACEOF
21891 /* end confdefs.h. */
21892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21894 #define $ac_func innocuous_$ac_func
21896 /* System header to define __stub macros and hopefully few prototypes,
21897 which can conflict with char $ac_func (); below.
21898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21899 <limits.h> exists even on freestanding compilers. */
21902 # include <limits.h>
21904 # include <assert.h>
21909 /* Override any GCC internal prototype to avoid an error.
21910 Use char because int might match the return type of a GCC
21911 builtin and then its argument prototype would still apply. */
21916 /* The GNU C library defines this for functions which it implements
21917 to always fail with ENOSYS. Some functions are actually named
21918 something starting with __ and the normal name is an alias. */
21919 #if defined __stub_$ac_func || defined __stub___$ac_func
21926 return $ac_func ();
21931 rm -f conftest.$ac_objext conftest$ac_exeext
21932 if { (ac_try="$ac_link"
21933 case "(($ac_try" in
21934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21935 *) ac_try_echo=$ac_try;;
21937 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21938 (eval "$ac_link") 2>conftest.er1
21940 grep -v '^ *+' conftest.er1 >conftest.err
21942 cat conftest.err >&5
21943 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21944 (exit $ac_status); } && {
21945 test -z "$ac_c_werror_flag" ||
21946 test ! -s conftest.err
21947 } && test -s conftest$ac_exeext &&
21948 $as_test_x conftest$ac_exeext; then
21949 eval "$as_ac_var=yes"
21951 echo "$as_me: failed program was
:" >&5
21952 sed 's/^/| /' conftest.$ac_ext >&5
21954 eval "$as_ac_var=no
"
21957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21958 conftest$ac_exeext conftest.$ac_ext
21960 ac_res=`eval echo '${'$as_ac_var'}'`
21961 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21962 echo "${ECHO_T}$ac_res" >&6; }
21963 if test `eval echo '${'$as_ac_var'}'` = yes; then
21964 cat >>confdefs.h <<_ACEOF
21965 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21971 if test "x
$ac_cv_func_fork" = xyes; then
21972 { echo "$as_me:$LINENO: checking
for working fork
" >&5
21973 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
21974 if test "${ac_cv_func_fork_works+set}" = set; then
21975 echo $ECHO_N "(cached
) $ECHO_C" >&6
21977 if test "$cross_compiling" = yes; then
21978 ac_cv_func_fork_works=cross
21980 cat >conftest.$ac_ext <<_ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21986 $ac_includes_default
21991 /* By Ruediger Kuhlmann. */
21992 return fork () < 0;
21998 rm -f conftest$ac_exeext
21999 if { (ac_try="$ac_link"
22000 case "(($ac_try" in
22001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22002 *) ac_try_echo=$ac_try;;
22004 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22005 (eval "$ac_link") 2>&5
22007 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22008 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22009 { (case "(($ac_try" in
22010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22011 *) ac_try_echo=$ac_try;;
22013 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22014 (eval "$ac_try") 2>&5
22016 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22017 (exit $ac_status); }; }; then
22018 ac_cv_func_fork_works=yes
22020 echo "$as_me: program exited with status
$ac_status" >&5
22021 echo "$as_me: failed program was
:" >&5
22022 sed 's/^/| /' conftest.$ac_ext >&5
22024 ( exit $ac_status )
22025 ac_cv_func_fork_works=no
22027 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22032 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22033 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22036 ac_cv_func_fork_works=$ac_cv_func_fork
22038 if test "x
$ac_cv_func_fork_works" = xcross; then
22040 *-*-amigaos* | *-*-msdosdjgpp*)
22041 # Override, as these systems have only a dummy fork() stub
22042 ac_cv_func_fork_works=no
22045 ac_cv_func_fork_works=yes
22048 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22049 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22051 ac_cv_func_vfork_works=$ac_cv_func_vfork
22052 if test "x
$ac_cv_func_vfork" = xyes; then
22053 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22054 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22055 if test "${ac_cv_func_vfork_works+set}" = set; then
22056 echo $ECHO_N "(cached
) $ECHO_C" >&6
22058 if test "$cross_compiling" = yes; then
22059 ac_cv_func_vfork_works=cross
22061 cat >conftest.$ac_ext <<_ACEOF
22064 cat confdefs.h >>conftest.$ac_ext
22065 cat >>conftest.$ac_ext <<_ACEOF
22066 /* end confdefs.h. */
22067 /* Thanks to Paul Eggert for this test. */
22068 $ac_includes_default
22069 #include <sys/wait.h>
22070 #ifdef HAVE_VFORK_H
22071 # include <vfork.h>
22073 /* On some sparc systems, changes by the child to local and incoming
22074 argument registers are propagated back to the parent. The compiler
22075 is told about this with #include <vfork.h>, but some compilers
22076 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22077 static variable whose address is put into a register that is
22078 clobbered by the vfork. */
22081 sparc_address_test (int arg)
22083 sparc_address_test (arg) int arg;
22086 static pid_t child;
22104 pid_t parent = getpid ();
22107 sparc_address_test (0);
22112 /* Here is another test for sparc vfork register problems. This
22113 test uses lots of local variables, at least as many local
22114 variables as main has allocated so far including compiler
22115 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22116 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22117 reuse the register of parent for one of the local variables,
22118 since it will think that parent can't possibly be used any more
22119 in this routine. Assigning to the local variable will thus
22120 munge parent in the parent process. */
22122 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22123 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22124 /* Convince the compiler that p..p7 are live; otherwise, it might
22125 use the same hardware register for all 8 local variables. */
22126 if (p != p1 || p != p2 || p != p3 || p != p4
22127 || p != p5 || p != p6 || p != p7)
22130 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22131 from child file descriptors. If the child closes a descriptor
22132 before it execs or exits, this munges the parent's descriptor
22133 as well. Test for this by closing stdout in the child. */
22134 _exit(close(fileno(stdout)) != 0);
22139 while (wait(&status) != child)
22142 /* Was there some problem with vforking? */
22145 /* Did the child fail? (This shouldn't happen.) */
22148 /* Did the vfork/compiler bug occur? */
22149 || parent != getpid()
22151 /* Did the file descriptor bug occur? */
22152 || fstat(fileno(stdout), &st) != 0
22157 rm -f conftest$ac_exeext
22158 if { (ac_try="$ac_link"
22159 case "(($ac_try" in
22160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22161 *) ac_try_echo=$ac_try;;
22163 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22164 (eval "$ac_link") 2>&5
22166 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22167 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22168 { (case "(($ac_try" in
22169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22170 *) ac_try_echo=$ac_try;;
22172 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22173 (eval "$ac_try") 2>&5
22175 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22176 (exit $ac_status); }; }; then
22177 ac_cv_func_vfork_works=yes
22179 echo "$as_me: program exited with status
$ac_status" >&5
22180 echo "$as_me: failed program was
:" >&5
22181 sed 's/^/| /' conftest.$ac_ext >&5
22183 ( exit $ac_status )
22184 ac_cv_func_vfork_works=no
22186 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22191 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22192 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22195 if test "x
$ac_cv_func_fork_works" = xcross; then
22196 ac_cv_func_vfork_works=$ac_cv_func_vfork
22197 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22198 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22201 if test "x
$ac_cv_func_vfork_works" = xyes; then
22203 cat >>confdefs.h <<\_ACEOF
22204 #define HAVE_WORKING_VFORK 1
22209 cat >>confdefs.h <<\_ACEOF
22214 if test "x
$ac_cv_func_fork_works" = xyes; then
22216 cat >>confdefs.h <<\_ACEOF
22217 #define HAVE_WORKING_FORK 1
22223 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22224 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22225 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22226 echo $ECHO_N "(cached
) $ECHO_C" >&6
22228 cat >conftest.$ac_ext <<_ACEOF
22231 cat confdefs.h >>conftest.$ac_ext
22232 cat >>conftest.$ac_ext <<_ACEOF
22233 /* end confdefs.h. */
22234 #include <langinfo.h>
22238 char* cs = nl_langinfo(CODESET);
22243 rm -f conftest.$ac_objext conftest$ac_exeext
22244 if { (ac_try="$ac_link"
22245 case "(($ac_try" in
22246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22247 *) ac_try_echo=$ac_try;;
22249 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22250 (eval "$ac_link") 2>conftest.er1
22252 grep -v '^ *+' conftest.er1 >conftest.err
22254 cat conftest.err >&5
22255 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22256 (exit $ac_status); } && {
22257 test -z "$ac_c_werror_flag" ||
22258 test ! -s conftest.err
22259 } && test -s conftest$ac_exeext &&
22260 $as_test_x conftest$ac_exeext; then
22261 emacs_cv_langinfo_codeset=yes
22263 echo "$as_me: failed program was
:" >&5
22264 sed 's/^/| /' conftest.$ac_ext >&5
22266 emacs_cv_langinfo_codeset=no
22269 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22270 conftest$ac_exeext conftest.$ac_ext
22273 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22274 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22275 if test $emacs_cv_langinfo_codeset = yes; then
22277 cat >>confdefs.h <<\_ACEOF
22278 #define HAVE_LANGINFO_CODESET 1
22283 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22284 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22285 if test "${ac_cv_type_size_t+set}" = set; then
22286 echo $ECHO_N "(cached
) $ECHO_C" >&6
22288 cat >conftest.$ac_ext <<_ACEOF
22291 cat confdefs.h >>conftest.$ac_ext
22292 cat >>conftest.$ac_ext <<_ACEOF
22293 /* end confdefs.h. */
22294 $ac_includes_default
22295 typedef size_t ac__type_new_;
22299 if ((ac__type_new_ *) 0)
22301 if (sizeof (ac__type_new_))
22307 rm -f conftest.$ac_objext
22308 if { (ac_try="$ac_compile"
22309 case "(($ac_try" in
22310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22311 *) ac_try_echo=$ac_try;;
22313 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22314 (eval "$ac_compile") 2>conftest.er1
22316 grep -v '^ *+' conftest.er1 >conftest.err
22318 cat conftest.err >&5
22319 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22320 (exit $ac_status); } && {
22321 test -z "$ac_c_werror_flag" ||
22322 test ! -s conftest.err
22323 } && test -s conftest.$ac_objext; then
22324 ac_cv_type_size_t=yes
22326 echo "$as_me: failed program was
:" >&5
22327 sed 's/^/| /' conftest.$ac_ext >&5
22329 ac_cv_type_size_t=no
22332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22334 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22335 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22336 if test $ac_cv_type_size_t = yes; then
22338 cat >>confdefs.h <<_ACEOF
22339 #define HAVE_SIZE_T 1
22346 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22347 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22348 if test "${ac_cv_type_mbstate_t+set}" = set; then
22349 echo $ECHO_N "(cached
) $ECHO_C" >&6
22351 cat >conftest.$ac_ext <<_ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 $ac_includes_default
22358 # include <wchar.h>
22362 mbstate_t x; return sizeof x;
22367 rm -f conftest.$ac_objext
22368 if { (ac_try="$ac_compile"
22369 case "(($ac_try" in
22370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22371 *) ac_try_echo=$ac_try;;
22373 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22374 (eval "$ac_compile") 2>conftest.er1
22376 grep -v '^ *+' conftest.er1 >conftest.err
22378 cat conftest.err >&5
22379 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22380 (exit $ac_status); } && {
22381 test -z "$ac_c_werror_flag" ||
22382 test ! -s conftest.err
22383 } && test -s conftest.$ac_objext; then
22384 ac_cv_type_mbstate_t=yes
22386 echo "$as_me: failed program was
:" >&5
22387 sed 's/^/| /' conftest.$ac_ext >&5
22389 ac_cv_type_mbstate_t=no
22392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22394 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22395 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22396 if test $ac_cv_type_mbstate_t = yes; then
22398 cat >>confdefs.h <<\_ACEOF
22399 #define HAVE_MBSTATE_T 1
22404 cat >>confdefs.h <<\_ACEOF
22405 #define mbstate_t int
22410 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
22411 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
22412 if test "${emacs_cv_c_restrict+set}" = set; then
22413 echo $ECHO_N "(cached
) $ECHO_C" >&6
22415 cat >conftest.$ac_ext <<_ACEOF
22418 cat confdefs.h >>conftest.$ac_ext
22419 cat >>conftest.$ac_ext <<_ACEOF
22420 /* end confdefs.h. */
22421 void fred (int *restrict x);
22430 rm -f conftest.$ac_objext
22431 if { (ac_try="$ac_compile"
22432 case "(($ac_try" in
22433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22434 *) ac_try_echo=$ac_try;;
22436 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22437 (eval "$ac_compile") 2>conftest.er1
22439 grep -v '^ *+' conftest.er1 >conftest.err
22441 cat conftest.err >&5
22442 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22443 (exit $ac_status); } && {
22444 test -z "$ac_c_werror_flag" ||
22445 test ! -s conftest.err
22446 } && test -s conftest.$ac_objext; then
22447 emacs_cv_c_restrict=yes
22449 echo "$as_me: failed program was
:" >&5
22450 sed 's/^/| /' conftest.$ac_ext >&5
22452 cat >conftest.$ac_ext <<_ACEOF
22455 cat confdefs.h >>conftest.$ac_ext
22456 cat >>conftest.$ac_ext <<_ACEOF
22457 /* end confdefs.h. */
22458 void fred (int *__restrict x);
22467 rm -f conftest.$ac_objext
22468 if { (ac_try="$ac_compile"
22469 case "(($ac_try" in
22470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22471 *) ac_try_echo=$ac_try;;
22473 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22474 (eval "$ac_compile") 2>conftest.er1
22476 grep -v '^ *+' conftest.er1 >conftest.err
22478 cat conftest.err >&5
22479 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22480 (exit $ac_status); } && {
22481 test -z "$ac_c_werror_flag" ||
22482 test ! -s conftest.err
22483 } && test -s conftest.$ac_objext; then
22484 emacs_cv_c_restrict=__restrict
22486 echo "$as_me: failed program was
:" >&5
22487 sed 's/^/| /' conftest.$ac_ext >&5
22489 emacs_cv_c_restrict=no
22492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22497 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
22498 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22499 case "$emacs_cv_c_restrict" in
22500 yes) emacs_restrict=restrict;;
22501 no) emacs_restrict="";;
22502 *) emacs_restrict="$emacs_cv_c_restrict";;
22504 if test "$emacs_restrict" != __restrict; then
22506 cat >>confdefs.h <<_ACEOF
22507 #define __restrict $emacs_restrict
22512 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
22513 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
22514 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22515 echo $ECHO_N "(cached
) $ECHO_C" >&6
22517 cat >conftest.$ac_ext <<_ACEOF
22520 cat confdefs.h >>conftest.$ac_ext
22521 cat >>conftest.$ac_ext <<_ACEOF
22522 /* end confdefs.h. */
22523 void fred (int x[__restrict]);
22532 rm -f conftest.$ac_objext
22533 if { (ac_try="$ac_compile"
22534 case "(($ac_try" in
22535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22536 *) ac_try_echo=$ac_try;;
22538 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22539 (eval "$ac_compile") 2>conftest.er1
22541 grep -v '^ *+' conftest.er1 >conftest.err
22543 cat conftest.err >&5
22544 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22545 (exit $ac_status); } && {
22546 test -z "$ac_c_werror_flag" ||
22547 test ! -s conftest.err
22548 } && test -s conftest.$ac_objext; then
22549 emacs_cv_c_restrict_arr=yes
22551 echo "$as_me: failed program was
:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22554 emacs_cv_c_restrict_arr=no
22557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22559 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
22560 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22561 if test "$emacs_cv_c_restrict_arr" = yes; then
22563 cat >>confdefs.h <<\_ACEOF
22564 #define __restrict_arr __restrict
22571 # Set up the CFLAGS for real compilation, so we can substitute it.
22572 CFLAGS="$REAL_CFLAGS"
22573 CPPFLAGS="$REAL_CPPFLAGS"
22575 #### Find out which version of Emacs this is.
22576 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22577 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
22578 if test x"${version}" = x; then
22579 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
22580 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
22581 { (exit 1); exit 1; }; }
22584 ### Specify what sort of things we'll be editing into Makefile and config.h.
22585 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22621 cat >>confdefs.h <<_ACEOF
22622 #define EMACS_CONFIGURATION "${canonical}"
22626 cat >>confdefs.h <<_ACEOF
22627 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22631 cat >>confdefs.h <<_ACEOF
22632 #define config_machfile "${machfile}"
22636 cat >>confdefs.h <<_ACEOF
22637 #define config_opsysfile "${opsysfile}"
22641 cat >>confdefs.h <<_ACEOF
22642 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22646 cat >>confdefs.h <<_ACEOF
22647 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22651 cat >>confdefs.h <<_ACEOF
22652 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22656 cat >>confdefs.h <<_ACEOF
22657 #define UNEXEC_SRC ${UNEXEC_SRC}
22661 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22663 cat >>confdefs.h <<\_ACEOF
22664 #define HAVE_X_WINDOWS 1
22668 if test "${USE_X_TOOLKIT}" != "none
" ; then
22670 cat >>confdefs.h <<\_ACEOF
22671 #define USE_X_TOOLKIT 1
22675 if test "${HAVE_X11}" = "yes" ; then
22677 cat >>confdefs.h <<\_ACEOF
22682 if test "${HAVE_XFREE386}" = "yes" ; then
22684 cat >>confdefs.h <<\_ACEOF
22685 #define HAVE_XFREE386 1
22689 if test "${HAVE_MENUS}" = "yes" ; then
22691 cat >>confdefs.h <<\_ACEOF
22692 #define HAVE_MENUS 1
22696 if test "${GNU_MALLOC}" = "yes" ; then
22698 cat >>confdefs.h <<\_ACEOF
22699 #define GNU_MALLOC 1
22703 if test "${REL_ALLOC}" = "yes" ; then
22705 cat >>confdefs.h <<\_ACEOF
22706 #define REL_ALLOC 1
22715 #### Report on what we decided to do.
22716 #### Report GTK as a toolkit, even if it doesn't use Xt.
22717 #### It makes printing result more understandable as using GTK sets
22718 #### toolkit_scroll_bars to yes by default.
22719 if test "${HAVE_GTK}" = "yes"; then
22724 Configured
for \
`${canonical}'.
22726 Where should the build process find the source code? ${srcdir}
22727 What operating system and machine description files should Emacs use?
22728 \`${opsysfile}' and \`${machfile}'
22729 What compiler should emacs be built with?
${CC} ${CFLAGS}
22730 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
22731 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
22732 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
22733 What window system should Emacs use?
${window_system}
22734 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
22736 if test -n "${x_includes}"; then
22737 echo " Where
do we
find X Windows header files?
${x_includes}"
22739 echo " Where
do we
find X Windows header files? Standard
dirs"
22741 if test -n "${x_libraries}"; then
22742 echo " Where
do we
find X Windows libraries?
${x_libraries}"
22744 echo " Where
do we
find X Windows libraries? Standard
dirs"
22747 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
22748 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
22749 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
22750 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
22751 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
22752 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
22753 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
22756 if test $USE_XASSERTS = yes; then
22757 echo " Compiling with asserts turned on.
"
22758 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22764 # Remove any trailing slashes in these variables.
22765 test "${prefix}" != NONE &&
22766 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22767 test "${exec_prefix}" != NONE &&
22768 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22770 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22771 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22772 ## from Makefile.c can correctly provide the arg `-traditional' to the
22775 cat >conftest.$ac_ext <<_ACEOF
22778 cat confdefs.h >>conftest.$ac_ext
22779 cat >>conftest.$ac_ext <<_ACEOF
22780 /* end confdefs.h. */
22783 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
22784 $EGREP "yes..
yes" >/dev/null 2>&1; then
22785 CPP_NEED_TRADITIONAL=no
22787 CPP_NEED_TRADITIONAL=yes
22792 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
"
22794 ac_config_commands="$ac_config_commands default
"
22796 cat >confcache <<\_ACEOF
22797 # This file is a shell script that caches the results of configure
22798 # tests run on this system so they can be shared between configure
22799 # scripts and configure runs, see configure's option --config-cache.
22800 # It is not useful on other systems. If it contains results you don't
22801 # want to keep, you may remove or edit it.
22803 # config.status only pays attention to the cache file if you give it
22804 # the --recheck option to rerun configure.
22806 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22807 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22808 # following values.
22812 # The following way of writing the cache mishandles newlines in values,
22813 # but we know of no workaround that is simple, portable, and efficient.
22814 # So, we kill variables containing newlines.
22815 # Ultrix sh set writes to stderr and can't be redirected directly,
22816 # and sets the high bit in the cache file unless we assign to the vars.
22818 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22819 eval ac_val=\$$ac_var
22823 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
22824 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
22827 _ | IFS | as_nl) ;; #(
22828 *) $as_unset $ac_var ;;
22834 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22835 *${as_nl}ac_space=\ *)
22836 # `set' does not quote correctly, so add quotes (double-quote
22837 # substitution turns \\\\ into \\, and sed turns \\ into \).
22840 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
22843 # `set' quotes correctly as required by POSIX, so do not add quotes.
22844 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
22853 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22855 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22857 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22858 if test -w "$cache_file"; then
22859 test "x
$cache_file" != "x
/dev
/null
" &&
22860 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
22861 echo "$as_me: updating cache
$cache_file" >&6;}
22862 cat confcache >$cache_file
22864 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
22865 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
22870 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
22871 # Let make expand exec_prefix.
22872 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
22874 DEFS=-DHAVE_CONFIG_H
22878 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
22879 # 1. Remove the extension, and $U if already installed.
22880 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22881 ac_i=`echo "$ac_i" | sed "$ac_script"`
22882 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22883 # will be set to the directory where LIBOBJS objects are built.
22884 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
22885 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
22887 LIBOBJS=$ac_libobjs
22889 LTLIBOBJS=$ac_ltlibobjs
22893 : ${CONFIG_STATUS=./config.status}
22894 ac_clean_files_save=$ac_clean_files
22895 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22896 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
22897 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
22898 cat >$CONFIG_STATUS <<_ACEOF
22900 # Generated by $as_me.
22901 # Run this file to recreate the current configuration.
22902 # Compiler output produced by configure, useful for debugging
22903 # configure, is in config.log if it exists.
22906 ac_cs_recheck=false
22908 SHELL=\${CONFIG_SHELL-$SHELL}
22911 cat >>$CONFIG_STATUS <<\_ACEOF
22912 ## --------------------- ##
22913 ## M4sh Initialization. ##
22914 ## --------------------- ##
22916 # Be more Bourne compatible
22917 DUALCASE=1; export DUALCASE # for MKS sh
22918 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22921 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22922 # is contrary to our usage. Disable this feature.
22923 alias -g '${1+"$@"}'='"$@
"'
22924 setopt NO_GLOB_SUBST
22926 case `(set -o) 2>/dev/null` in
22927 *posix*) set -o posix ;;
22936 # Avoid depending upon Character Ranges.
22937 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22938 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22939 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22940 as_cr_digits='0123456789'
22941 as_cr_alnum=$as_cr_Letters$as_cr_digits
22943 # The user is always right.
22944 if test "${PATH_SEPARATOR+set}" != set; then
22945 echo "#! /bin/sh" >conf$$.sh
22946 echo "exit 0" >>conf$$.sh
22948 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
22956 # Support unset when possible.
22957 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
22965 # We need space, tab and new line, in precisely that order. Quoting is
22966 # there to prevent editors from complaining about space-tab.
22967 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22968 # splitting by setting IFS to empty value.)
22973 # Find who we are. Look in the path if we contain no directory separator.
22975 *[\\/]* ) as_myself
=$0 ;;
22976 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
22977 for as_dir
in $PATH
22980 test -z "$as_dir" && as_dir
=.
22981 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
22987 # We did not find ourselves, most probably we were run as `sh COMMAND'
22988 # in which case we are not to be found in the path.
22989 if test "x$as_myself" = x
; then
22992 if test ! -f "$as_myself"; then
22993 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22994 { (exit 1); exit 1; }
22997 # Work around bugs in pre-3.0 UWIN ksh.
22998 for as_var
in ENV MAIL MAILPATH
22999 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23007 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23008 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23009 LC_TELEPHONE LC_TIME
23011 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23012 eval $as_var=C
; export $as_var
23014 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23018 # Required to use basename.
23019 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23020 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23026 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23027 as_basename
=basename
23033 # Name of the executable.
23034 as_me
=`$as_basename -- "$0" ||
23035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23036 X"$0" : 'X\(//\)$' \| \
23037 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23039 sed '/^.*\/\([^/][^/]*\)\/*$/{
23058 as_lineno_1
=$LINENO
23059 as_lineno_2
=$LINENO
23060 test "x$as_lineno_1" != "x$as_lineno_2" &&
23061 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23063 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23064 # uniformly replaced by the line number. The first 'sed' inserts a
23065 # line-number line after each line using $LINENO; the second 'sed'
23066 # does the real work. The second script uses 'N' to pair each
23067 # line-number line with the line containing $LINENO, and appends
23068 # trailing '-' during substitution so that $LINENO is not a special
23069 # case at line end.
23070 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23071 # scripts with optimization help from Paolo Bonzini. Blame Lee
23072 # E. McMahon (1931-1989) for sed's syntax. :-)
23084 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23087 ' >$as_me.lineno
&&
23088 chmod +x
"$as_me.lineno" ||
23089 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23090 { (exit 1); exit 1; }; }
23092 # Don't try to exec as it changes $[0], causing all sort of problems
23093 # (the dirname of $[0] is not the place where we might find the
23094 # original and so on. Autoconf is especially sensitive to this).
23095 .
"./$as_me.lineno"
23096 # Exit status is that of the last command.
23101 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23107 ECHO_C
= ECHO_N
= ECHO_T
=
23108 case `echo -n x` in
23110 case `echo 'x\c'` in
23111 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23118 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23119 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23125 rm -f conf$$ conf$$.exe conf$$.
file
23126 if test -d conf$$.dir
; then
23127 rm -f conf$$.dir
/conf$$.
file
23133 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23135 # ... but there are two gotchas:
23136 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23137 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23138 # In both cases, we have to default to `cp -p'.
23139 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23141 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23146 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23147 rmdir conf$$.dir
2>/dev
/null
23149 if mkdir
-p .
2>/dev
/null
; then
23152 test -d .
/-p && rmdir .
/-p
23156 if test -x / >/dev
/null
2>&1; then
23157 as_test_x
='test -x'
23159 if ls -dL / >/dev
/null
2>&1; then
23166 if test -d "$1"; then
23172 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23173 ???[sx]*):;;*)false;;esac;fi
23177 as_executable_p
=$as_test_x
23179 # Sed expression to map a string onto a valid CPP name.
23180 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23182 # Sed expression to map a string onto a valid variable name.
23183 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23188 # Save the log message, to keep $[0] and so on meaningful, and to
23189 # report actual input values of CONFIG_FILES etc. instead of their
23190 # values after options handling.
23192 This file was extended by $as_me, which was
23193 generated by GNU Autoconf 2.61. Invocation command line was
23195 CONFIG_FILES = $CONFIG_FILES
23196 CONFIG_HEADERS = $CONFIG_HEADERS
23197 CONFIG_LINKS = $CONFIG_LINKS
23198 CONFIG_COMMANDS = $CONFIG_COMMANDS
23201 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23206 cat >>$CONFIG_STATUS <<_ACEOF
23207 # Files that config.status was made for.
23208 config_files="$ac_config_files"
23209 config_headers="$ac_config_headers"
23210 config_commands="$ac_config_commands"
23214 cat >>$CONFIG_STATUS <<\_ACEOF
23216 \`$as_me' instantiates files from templates according to the
23217 current configuration.
23219 Usage: $0 [OPTIONS] [FILE]...
23221 -h, --help print this help, then exit
23222 -V, --version print version number and configuration settings, then exit
23223 -q, --quiet do not print progress messages
23224 -d, --debug don't remove temporary files
23225 --recheck update $as_me by reconfiguring in the same conditions
23226 --file=FILE[:TEMPLATE]
23227 instantiate the configuration file FILE
23228 --header=FILE[:TEMPLATE]
23229 instantiate the configuration header FILE
23231 Configuration files:
23234 Configuration headers:
23237 Configuration commands:
23240 Report bugs to <bug-autoconf@gnu.org>."
23243 cat >>$CONFIG_STATUS <<_ACEOF
23246 configured by $0, generated by GNU Autoconf 2.61,
23247 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23249 Copyright (C) 2006 Free Software Foundation, Inc.
23250 This config.status script is free software; the Free Software Foundation
23251 gives unlimited permission to copy, distribute and modify it."
23258 cat >>$CONFIG_STATUS <<\_ACEOF
23259 # If no file are specified by the user, then we need to provide default
23260 # value. By we need to know if files were specified by the user.
23266 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23267 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23278 # Handling of the options.
23279 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23281 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23282 echo "$ac_cs_version"; exit ;;
23283 --debug |
--debu |
--deb |
--de |
--d |
-d )
23285 --file |
--fil |
--fi |
--f )
23287 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23288 ac_need_defaults
=false
;;
23289 --header |
--heade |
--head |
--hea )
23291 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23292 ac_need_defaults
=false
;;
23294 # Conflict between --help and --header
23295 { echo "$as_me: error: ambiguous option: $1
23296 Try \`$0 --help' for more information." >&2
23297 { (exit 1); exit 1; }; };;
23298 --help |
--hel |
-h )
23299 echo "$ac_cs_usage"; exit ;;
23300 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23301 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23304 # This is an error.
23305 -*) { echo "$as_me: error: unrecognized option: $1
23306 Try \`$0 --help' for more information." >&2
23307 { (exit 1); exit 1; }; } ;;
23309 *) ac_config_targets
="$ac_config_targets $1"
23310 ac_need_defaults
=false
;;
23316 ac_configure_extra_args
=
23318 if $ac_cs_silent; then
23320 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23324 cat >>$CONFIG_STATUS <<_ACEOF
23325 if \$ac_cs_recheck; then
23326 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23327 CONFIG_SHELL=$SHELL
23328 export CONFIG_SHELL
23329 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23333 cat >>$CONFIG_STATUS <<\_ACEOF
23337 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23338 ## Running $as_me. ##
23344 cat >>$CONFIG_STATUS <<_ACEOF
23348 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23352 cat >>$CONFIG_STATUS <<\_ACEOF
23354 # Handling of arguments.
23355 for ac_config_target
in $ac_config_targets
23357 case $ac_config_target in
23358 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23359 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23360 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23361 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23362 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23363 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23364 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23365 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23366 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23367 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23368 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23369 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23371 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23372 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23373 { (exit 1); exit 1; }; };;
23378 # If the user did not use the arguments to specify the items to instantiate,
23379 # then the envvar interface is used. Set only those that are not.
23380 # We use the long form for the default assignment because of an extremely
23381 # bizarre bug on SunOS 4.1.3.
23382 if $ac_need_defaults; then
23383 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23384 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23385 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23388 # Have a temporary directory for convenience. Make it in the build tree
23389 # simply because there is no reason against having it here, and in addition,
23390 # creating and moving files from /tmp can sometimes cause problems.
23391 # Hook for its removal unless debugging.
23392 # Note that there is a small window in which the directory will not be cleaned:
23393 # after its creation but before its name has been assigned to `$tmp'.
23397 trap 'exit_status=$?
23398 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23400 trap '{ (exit 1); exit 1; }' 1 2 13 15
23402 # Create a (secure) tmp directory for tmp files.
23405 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23406 test -n "$tmp" && test -d "$tmp"
23409 tmp
=.
/conf$$
-$RANDOM
23410 (umask 077 && mkdir
"$tmp")
23413 echo "$me: cannot create a temporary directory in ." >&2
23414 { (exit 1); exit 1; }
23418 # Set up the sed scripts for CONFIG_FILES section.
23421 # No need to generate the scripts if there are no CONFIG_FILES.
23422 # This happens for instance when ./config.status config.h
23423 if test -n "$CONFIG_FILES"; then
23430 for ac_last_try
in false false false false false
:; do
23431 cat >conf$
$subs.
sed <<_ACEOF
23432 SHELL!$SHELL$ac_delim
23433 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23434 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23435 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23436 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23437 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23438 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23439 exec_prefix!$exec_prefix$ac_delim
23440 prefix!$prefix$ac_delim
23441 program_transform_name!$program_transform_name$ac_delim
23442 bindir!$bindir$ac_delim
23443 sbindir!$sbindir$ac_delim
23444 libexecdir!$libexecdir$ac_delim
23445 datarootdir!$datarootdir$ac_delim
23446 datadir!$datadir$ac_delim
23447 sysconfdir!$sysconfdir$ac_delim
23448 sharedstatedir!$sharedstatedir$ac_delim
23449 localstatedir!$localstatedir$ac_delim
23450 includedir!$includedir$ac_delim
23451 oldincludedir!$oldincludedir$ac_delim
23452 docdir!$docdir$ac_delim
23453 infodir!$infodir$ac_delim
23454 htmldir!$htmldir$ac_delim
23455 dvidir!$dvidir$ac_delim
23456 pdfdir!$pdfdir$ac_delim
23457 psdir!$psdir$ac_delim
23458 libdir!$libdir$ac_delim
23459 localedir!$localedir$ac_delim
23460 mandir!$mandir$ac_delim
23461 DEFS!$DEFS$ac_delim
23462 ECHO_C!$ECHO_C$ac_delim
23463 ECHO_N!$ECHO_N$ac_delim
23464 ECHO_T!$ECHO_T$ac_delim
23465 LIBS!$LIBS$ac_delim
23466 build_alias!$build_alias$ac_delim
23467 host_alias!$host_alias$ac_delim
23468 target_alias!$target_alias$ac_delim
23469 MAINT!$MAINT$ac_delim
23470 build!$build$ac_delim
23471 build_cpu!$build_cpu$ac_delim
23472 build_vendor!$build_vendor$ac_delim
23473 build_os!$build_os$ac_delim
23474 host!$host$ac_delim
23475 host_cpu!$host_cpu$ac_delim
23476 host_vendor!$host_vendor$ac_delim
23477 host_os!$host_os$ac_delim
23479 CFLAGS!$CFLAGS$ac_delim
23480 LDFLAGS!$LDFLAGS$ac_delim
23481 CPPFLAGS!$CPPFLAGS$ac_delim
23482 ac_ct_CC!$ac_ct_CC$ac_delim
23483 EXEEXT!$EXEEXT$ac_delim
23484 OBJEXT!$OBJEXT$ac_delim
23486 GREP!$GREP$ac_delim
23487 EGREP!$EGREP$ac_delim
23488 LN_S!$LN_S$ac_delim
23489 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23490 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23491 INSTALL_DATA!$INSTALL_DATA$ac_delim
23492 RANLIB!$RANLIB$ac_delim
23493 INSTALL_INFO!$INSTALL_INFO$ac_delim
23494 GZIP_PROG!$GZIP_PROG$ac_delim
23495 LIBSOUND!$LIBSOUND$ac_delim
23496 PKG_CONFIG!$PKG_CONFIG$ac_delim
23497 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23498 ALSA_LIBS!$ALSA_LIBS$ac_delim
23499 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23500 SET_MAKE!$SET_MAKE$ac_delim
23501 XMKMF!$XMKMF$ac_delim
23502 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23503 GTK_LIBS!$GTK_LIBS$ac_delim
23504 ALLOCA!$ALLOCA$ac_delim
23505 liblockfile!$liblockfile$ac_delim
23506 LIBOBJS!$LIBOBJS$ac_delim
23507 NEED_SETGID!$NEED_SETGID$ac_delim
23508 KMEM_GROUP!$KMEM_GROUP$ac_delim
23509 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23510 GETOPT_H!$GETOPT_H$ac_delim
23511 GETOPTOBJS!$GETOPTOBJS$ac_delim
23512 version!$version$ac_delim
23513 configuration!$configuration$ac_delim
23514 canonical!$canonical$ac_delim
23515 srcdir!$srcdir$ac_delim
23516 lispdir!$lispdir$ac_delim
23517 locallisppath!$locallisppath$ac_delim
23518 lisppath!$lisppath$ac_delim
23519 x_default_search_path!$x_default_search_path$ac_delim
23520 etcdir!$etcdir$ac_delim
23521 archlibdir!$archlibdir$ac_delim
23522 bitmapdir!$bitmapdir$ac_delim
23523 gamedir!$gamedir$ac_delim
23524 gameuser!$gameuser$ac_delim
23525 c_switch_system!$c_switch_system$ac_delim
23526 c_switch_machine!$c_switch_machine$ac_delim
23527 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23528 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23531 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23533 elif $ac_last_try; then
23534 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23535 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23536 { (exit 1); exit 1; }; }
23538 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23542 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23543 if test -n "$ac_eof"; then
23544 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23545 ac_eof
=`expr $ac_eof + 1`
23548 cat >>$CONFIG_STATUS <<_ACEOF
23549 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23550 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23553 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23554 s/^/s,@/; s/!/@,|#_!!_#|/
23557 s/'"$ac_delim"'$/,g/; t
23559 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23560 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23561 rm -f conf$
$subs.
sed
23562 cat >>$CONFIG_STATUS <<_ACEOF
23568 for ac_last_try
in false false false false false
:; do
23569 cat >conf$
$subs.
sed <<_ACEOF
23570 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23571 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23572 machfile!$machfile$ac_delim
23573 opsysfile!$opsysfile$ac_delim
23574 carbon_appdir!$carbon_appdir$ac_delim
23575 LTLIBOBJS!$LTLIBOBJS$ac_delim
23578 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23580 elif $ac_last_try; then
23581 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23582 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23583 { (exit 1); exit 1; }; }
23585 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
23589 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23590 if test -n "$ac_eof"; then
23591 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
23592 ac_eof
=`expr $ac_eof + 1`
23595 cat >>$CONFIG_STATUS <<_ACEOF
23596 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23597 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23600 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23601 s/^/s,@/; s/!/@,|#_!!_#|/
23604 s/'"$ac_delim"'$/,g/; t
23606 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23607 ' >>$CONFIG_STATUS <conf$
$subs.
sed
23608 rm -f conf$
$subs.
sed
23609 cat >>$CONFIG_STATUS <<_ACEOF
23616 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23617 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23618 # trailing colons and then remove the whole line if VPATH becomes empty
23619 # (actually we leave an empty line to preserve line numbers).
23620 if test "x$srcdir" = x.
; then
23621 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
23622 s/:*\$(srcdir):*/:/
23623 s/:*\${srcdir}:*/:/
23625 s/^\([^=]*=[ ]*\):*/\1/
23631 cat >>$CONFIG_STATUS <<\_ACEOF
23632 fi # test -n "$CONFIG_FILES"
23635 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
23638 :[FHLC
]) ac_mode
=$ac_tag; continue;;
23640 case $ac_mode$ac_tag in
23642 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23643 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23644 { (exit 1); exit 1; }; };;
23645 :[FH
]-) ac_tag
=-:-;;
23646 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
23663 -) ac_f
="$tmp/stdin";;
23664 *) # Look for the file first in the build tree, then in the source tree
23665 # (if the path is not absolute). The absolute path cannot be DOS-style,
23666 # because $ac_f cannot contain `:'.
23670 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
23672 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23673 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23674 { (exit 1); exit 1; }; };;
23676 ac_file_inputs
="$ac_file_inputs $ac_f"
23679 # Let's still pretend it is `configure' which instantiates (i.e., don't
23680 # use $as_me), people would be surprised to read:
23681 # /* config.h. Generated by config.status. */
23682 configure_input
="Generated from "`IFS=:
23683 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23684 if test x
"$ac_file" != x-
; then
23685 configure_input
="$ac_file. $configure_input"
23686 { echo "$as_me:$LINENO: creating $ac_file" >&5
23687 echo "$as_me: creating $ac_file" >&6;}
23691 *:-:* |
*:-) cat >"$tmp/stdin";;
23696 ac_dir
=`$as_dirname -- "$ac_file" ||
23697 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23698 X"$ac_file" : 'X\(//\)[^/]' \| \
23699 X"$ac_file" : 'X\(//\)$' \| \
23700 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23702 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23706 /^X\(\/\/\)[^/].*/{
23721 -*) as_dir
=.
/$as_dir;;
23723 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
23727 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23728 *) as_qdir
=$as_dir;;
23730 as_dirs
="'$as_qdir' $as_dirs"
23731 as_dir
=`$as_dirname -- "$as_dir" ||
23732 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23733 X"$as_dir" : 'X\(//\)[^/]' \| \
23734 X"$as_dir" : 'X\(//\)$' \| \
23735 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23737 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23741 /^X\(\/\/\)[^/].*/{
23754 test -d "$as_dir" && break
23756 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
23757 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23758 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23759 { (exit 1); exit 1; }; }; }
23763 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23765 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23766 # A ".." for each directory in $ac_dir_suffix.
23767 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23768 case $ac_top_builddir_sub in
23769 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
23770 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
23773 ac_abs_top_builddir
=$ac_pwd
23774 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
23775 # for backward compatibility:
23776 ac_top_builddir
=$ac_top_build_prefix
23779 .
) # We are building in place.
23781 ac_top_srcdir
=$ac_top_builddir_sub
23782 ac_abs_top_srcdir
=$ac_pwd ;;
23783 [\\/]* | ?
:[\\/]* ) # Absolute name.
23784 ac_srcdir
=$srcdir$ac_dir_suffix;
23785 ac_top_srcdir
=$srcdir
23786 ac_abs_top_srcdir
=$srcdir ;;
23787 *) # Relative name.
23788 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
23789 ac_top_srcdir
=$ac_top_build_prefix$srcdir
23790 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
23792 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
23802 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
23803 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
23807 cat >>$CONFIG_STATUS <<\_ACEOF
23808 # If the template does not know about datarootdir, expand it.
23809 # FIXME: This hack should be removed a few years after 2.60.
23810 ac_datarootdir_hack
=; ac_datarootdir_seen
=
23812 case `sed -n '/datarootdir/ {
23821 ' $ac_file_inputs` in
23822 *datarootdir
*) ac_datarootdir_seen
=yes;;
23823 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
23824 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23825 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23827 cat >>$CONFIG_STATUS <<_ACEOF
23828 ac_datarootdir_hack='
23829 s&@datadir@&$datadir&g
23830 s&@docdir@&$docdir&g
23831 s&@infodir@&$infodir&g
23832 s&@localedir@&$localedir&g
23833 s&@mandir@&$mandir&g
23834 s&\\\${datarootdir}&$datarootdir&g' ;;
23838 # Neutralize VPATH when `$srcdir' = `.'.
23839 # Shell code in configure.ac might set extrasub.
23840 # FIXME: do we really want to maintain this feature?
23841 cat >>$CONFIG_STATUS <<_ACEOF
23845 cat >>$CONFIG_STATUS <<\_ACEOF
23847 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
23848 s
&@configure_input@
&$configure_input&;t t
23849 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
23850 s
&@srcdir@
&$ac_srcdir&;t t
23851 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
23852 s
&@top_srcdir@
&$ac_top_srcdir&;t t
23853 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
23854 s
&@builddir@
&$ac_builddir&;t t
23855 s
&@abs_builddir@
&$ac_abs_builddir&;t t
23856 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
23857 s
&@INSTALL@
&$ac_INSTALL&;t t
23858 $ac_datarootdir_hack
23859 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
23861 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23862 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
23863 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
23864 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
23865 which seems to be undefined. Please make sure it is defined." >&5
23866 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
23867 which seems to be undefined. Please make sure it is defined." >&2;}
23871 -) cat "$tmp/out"; rm -f "$tmp/out";;
23872 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23881 # Transform confdefs.h into a sed script `conftest.defines', that
23882 # substitutes the proper values into config.h.in to produce config.h.
23883 rm -f conftest.defines conftest.
tail
23884 # First, append a space to every undef/define line, to ease matching.
23885 echo 's/$/ /' >conftest.defines
23886 # Then, protect against being on the right side of a sed subst, or in
23887 # an unquoted here document, in config.status. If some macros were
23888 # called several times there might be several #defines for the same
23889 # symbol, which is useless. But do not sort them, since the last
23890 # AC_DEFINE must be honored.
23891 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
23892 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23893 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23894 # PARAMS is the parameter list in the macro definition--in most cases, it's
23895 # just an empty string.
23896 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23897 ac_dB
='\\)[ (].*,\\1define\\2'
23905 s/^[ ]*#[ ]*define[ ][ ]*//
23910 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23911 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23912 ' >>conftest.defines
23914 # Remove the space that was appended to ease matching.
23915 # Then replace #undef with comments. This is necessary, for
23916 # example, in the case of _POSIX_SOURCE, which is predefined and required
23917 # on some systems where configure will not decide to define it.
23918 # (The regexp can be short, since the line contains either #define or #undef.)
23920 s,^[ #]*u.*,/* & */,' >>conftest.defines
23922 # Break up conftest.defines:
23923 ac_max_sed_lines
=50
23925 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23926 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23927 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23929 ac_in
='$ac_file_inputs'
23930 ac_out
='"$tmp/out1"'
23931 ac_nxt
='"$tmp/out2"'
23935 # Write a here document:
23936 cat >>$CONFIG_STATUS <<_ACEOF
23937 # First, check the format of the line:
23938 cat >"\$tmp/defines.sed" <<\\CEOF
23939 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23940 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23944 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
23946 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
23947 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
23948 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
23949 grep . conftest.
tail >/dev
/null ||
break
23950 rm -f conftest.defines
23951 mv conftest.
tail conftest.defines
23953 rm -f conftest.defines conftest.
tail
23955 echo "ac_result=$ac_in" >>$CONFIG_STATUS
23956 cat >>$CONFIG_STATUS <<\_ACEOF
23957 if test x
"$ac_file" != x-
; then
23958 echo "/* $configure_input */" >"$tmp/config.h"
23959 cat "$ac_result" >>"$tmp/config.h"
23960 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
23961 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
23962 echo "$as_me: $ac_file is unchanged" >&6;}
23965 mv "$tmp/config.h" $ac_file
23968 echo "/* $configure_input */"
23974 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
23975 echo "$as_me: executing $ac_file commands" >&6;}
23980 case $ac_file$ac_mode in
23983 ### Make the necessary directories, if they don't exist.
23984 for dir
in etc lisp
; do
23985 test -d ${dir} || mkdir
${dir}
23988 # Build src/Makefile from ${srcdir}/src/Makefile.c
23989 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
23990 # This must be done after src/config.h is built, since we rely on that file.
23992 # Now get this: Some word that is part of the ${srcdir} directory name
23993 # or the ${configuration} value might, just might, happen to be an
23994 # identifier like `sun4' or `i386' or something, and be predefined by
23995 # the C preprocessor to some helpful value like 1, or maybe the empty
23996 # string. Needless to say consequent macro substitutions are less
23997 # than conducive to the makefile finding the correct directory.
23998 undefs
="`echo $top_srcdir $configuration $canonical |
23999 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24000 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24003 echo creating src
/epaths.h
24004 ${MAKE-make} epaths-force
24006 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24007 # `..' to `. .' unless invoked with -traditional
24009 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24010 CPPFLAGS
="$CPPFLAGS -traditional"
24013 echo creating lib-src
/Makefile
24015 rm -f junk.c junk1.c junk2.c
24016 sed -e '/start of cpp stuff/q' \
24017 < Makefile.c
> junk1.c
24018 sed -e '1,/start of cpp stuff/d'\
24019 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24020 < Makefile.c
> junk.c
24021 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24022 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24023 cat junk1.c junk2.c
> Makefile.new
24024 rm -f junk.c junk1.c junk2.c
24025 chmod 444 Makefile.new
24026 mv -f Makefile.new Makefile
24029 echo creating src
/Makefile
24031 rm -f junk.c junk1.c junk2.c
24032 sed -e '/start of cpp stuff/q' \
24033 < Makefile.c
> junk1.c
24034 sed -e '1,/start of cpp stuff/d'\
24035 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24036 < Makefile.c
> junk.c
24037 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24038 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24039 cat junk1.c junk2.c
> Makefile.new
24040 rm -f junk.c junk1.c junk2.c
24041 chmod 444 Makefile.new
24042 mv -f Makefile.new Makefile
24045 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24046 echo creating src
/.gdbinit
24047 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24050 # This is how we know whether to re-run configure in certain cases.
24051 touch src
/config.stamp
24059 { (exit 0); exit 0; }
24061 chmod +x
$CONFIG_STATUS
24062 ac_clean_files
=$ac_clean_files_save
24065 # configure is writing to config.log, and then calls config.status.
24066 # config.status does its own redirection, appending to config.log.
24067 # Unfortunately, on DOS this fails, as config.log is still kept open
24068 # by configure, so config.status won't be able to write to it; its
24069 # output is simply discarded. So we exec the FD to /dev/null,
24070 # effectively closing config.log, so it can be properly (re)opened and
24071 # appended to by config.status. When coming back to configure, we
24072 # need to make the FD available again.
24073 if test "$no_create" != yes; then
24075 ac_config_status_args
=
24076 test "$silent" = yes &&
24077 ac_config_status_args
="$ac_config_status_args --quiet"
24079 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24081 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24082 # would make configure fail if this is the last instruction.
24083 $ac_cs_success ||
{ (exit 1); exit 1; }