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
716 x_default_search_path
733 ac_precious_vars
='build_alias
745 # Initialize some variables set by options.
747 ac_init_version
=false
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
757 program_transform_name
=s
,x
,x
,
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir
='${exec_prefix}/bin'
772 sbindir
='${exec_prefix}/sbin'
773 libexecdir
='${exec_prefix}/libexec'
774 datarootdir
='${prefix}/share'
775 datadir
='${datarootdir}'
776 sysconfdir
='${prefix}/etc'
777 sharedstatedir
='${prefix}/com'
778 localstatedir
='${prefix}/var'
779 includedir
='${prefix}/include'
780 oldincludedir
='/usr/include'
781 docdir
='${datarootdir}/doc/${PACKAGE}'
782 infodir
='${datarootdir}/info'
787 libdir
='${exec_prefix}/lib'
788 localedir
='${datarootdir}/locale'
789 mandir
='${datarootdir}/man'
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\
$ac_option
803 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
813 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
815 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
818 -build |
--build |
--buil |
--bui |
--bu)
819 ac_prev
=build_alias
;;
820 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
821 build_alias
=$ac_optarg ;;
823 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
824 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
825 ac_prev
=cache_file
;;
826 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
827 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
828 cache_file
=$ac_optarg ;;
831 cache_file
=config.cache
;;
833 -datadir |
--datadir |
--datadi |
--datad)
835 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
836 datadir
=$ac_optarg ;;
838 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
839 |
--dataroo |
--dataro |
--datar)
840 ac_prev
=datarootdir
;;
841 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
842 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
843 datarootdir
=$ac_optarg ;;
845 -disable-* |
--disable-*)
846 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_
$ac_feature=no
;;
854 -docdir |
--docdir |
--docdi |
--doc |
--do)
856 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
859 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
861 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
864 -enable-* |
--enable-*)
865 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature
=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_
$ac_feature=\
$ac_optarg ;;
873 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
874 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
875 |
--exec |
--exe |
--ex)
876 ac_prev
=exec_prefix
;;
877 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
878 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
879 |
--exec=* |
--exe=* |
--ex=*)
880 exec_prefix
=$ac_optarg ;;
882 -gas |
--gas |
--ga |
--g)
883 # Obsolete; use --with-gas.
886 -help |
--help |
--hel |
--he |
-h)
888 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
889 ac_init_help
=recursive
;;
890 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
891 ac_init_help
=short
;;
893 -host |
--host |
--hos |
--ho)
894 ac_prev
=host_alias
;;
895 -host=* |
--host=* |
--hos=* |
--ho=*)
896 host_alias
=$ac_optarg ;;
898 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
900 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
902 htmldir
=$ac_optarg ;;
904 -includedir |
--includedir |
--includedi |
--included |
--include \
905 |
--includ |
--inclu |
--incl |
--inc)
906 ac_prev
=includedir
;;
907 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
908 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
909 includedir
=$ac_optarg ;;
911 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
913 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
914 infodir
=$ac_optarg ;;
916 -libdir |
--libdir |
--libdi |
--libd)
918 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
921 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
922 |
--libexe |
--libex |
--libe)
923 ac_prev
=libexecdir
;;
924 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
925 |
--libexe=* |
--libex=* |
--libe=*)
926 libexecdir
=$ac_optarg ;;
928 -localedir |
--localedir |
--localedi |
--localed |
--locale)
930 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
931 localedir
=$ac_optarg ;;
933 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
934 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
935 ac_prev
=localstatedir
;;
936 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
937 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
938 localstatedir
=$ac_optarg ;;
940 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
942 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
946 # Obsolete; use --without-fp.
949 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
950 |
--no-cr |
--no-c |
-n)
953 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
954 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
957 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
958 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
959 |
--oldin |
--oldi |
--old |
--ol |
--o)
960 ac_prev
=oldincludedir
;;
961 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
962 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
963 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
964 oldincludedir
=$ac_optarg ;;
966 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
968 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
971 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
972 |
--program-pre |
--program-pr |
--program-p)
973 ac_prev
=program_prefix
;;
974 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
975 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
976 program_prefix
=$ac_optarg ;;
978 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
979 |
--program-suf |
--program-su |
--program-s)
980 ac_prev
=program_suffix
;;
981 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
982 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
983 program_suffix
=$ac_optarg ;;
985 -program-transform-name |
--program-transform-name \
986 |
--program-transform-nam |
--program-transform-na \
987 |
--program-transform-n |
--program-transform- \
988 |
--program-transform |
--program-transfor \
989 |
--program-transfo |
--program-transf \
990 |
--program-trans |
--program-tran \
991 |
--progr-tra |
--program-tr |
--program-t)
992 ac_prev
=program_transform_name
;;
993 -program-transform-name=* |
--program-transform-name=* \
994 |
--program-transform-nam=* |
--program-transform-na=* \
995 |
--program-transform-n=* |
--program-transform-=* \
996 |
--program-transform=* |
--program-transfor=* \
997 |
--program-transfo=* |
--program-transf=* \
998 |
--program-trans=* |
--program-tran=* \
999 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1000 program_transform_name
=$ac_optarg ;;
1002 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1004 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1005 pdfdir
=$ac_optarg ;;
1007 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1009 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1012 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1013 |
-silent |
--silent |
--silen |
--sile |
--sil)
1016 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1018 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1020 sbindir
=$ac_optarg ;;
1022 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1023 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1024 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1026 ac_prev
=sharedstatedir
;;
1027 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1028 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1029 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1031 sharedstatedir
=$ac_optarg ;;
1033 -site |
--site |
--sit)
1035 -site=* |
--site=* |
--sit=*)
1038 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1040 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1041 srcdir
=$ac_optarg ;;
1043 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1044 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1045 ac_prev
=sysconfdir
;;
1046 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1047 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1048 sysconfdir
=$ac_optarg ;;
1050 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1051 ac_prev
=target_alias
;;
1052 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1053 target_alias
=$ac_optarg ;;
1055 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1058 -version |
--version |
--versio |
--versi |
--vers |
-V)
1059 ac_init_version
=: ;;
1062 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
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=\
$ac_optarg ;;
1070 -without-* |
--without-*)
1071 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package
=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_
$ac_package=no
;;
1080 # Obsolete; use --with-x.
1083 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1084 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1085 ac_prev
=x_includes
;;
1086 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1087 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1088 x_includes
=$ac_optarg ;;
1090 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1091 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1092 ac_prev
=x_libraries
;;
1093 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1094 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1095 x_libraries
=$ac_optarg ;;
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098 Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1103 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
1108 eval $ac_envvar=\
$ac_optarg
1109 export $ac_envvar ;;
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1122 if test -n "$ac_prev"; then
1123 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1128 # Be sure to have absolute directory names.
1129 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1134 eval ac_val
=\$
$ac_var
1136 [\\/$
]* | ?
:[\\/]* ) continue;;
1137 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1148 target
=$target_alias
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x
; then
1152 if test "x$build_alias" = x
; then
1153 cross_compiling
=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1162 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1164 test "$silent" = yes && exec 6>/dev
/null
1167 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di
=`ls -di .` &&
1169 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1177 # Find the source files, if location was not specified.
1178 if test -z "$srcdir"; then
1179 ac_srcdir_defaulted
=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir
=`$as_dirname -- "$0" ||
1182 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1209 ac_srcdir_defaulted
=no
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
1216 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1229 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1231 for ac_var
in $ac_precious_vars; do
1232 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1234 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1239 # Report the --help message.
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1245 \`configure' configures this package to adapt to many kinds of systems.
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1252 Defaults for the options are specified in brackets.
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1276 For better control, use the options below.
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1303 --program-prefix=PREFIX prepend PREFIX to installed program names
1304 --program-suffix=SUFFIX append SUFFIX to installed program names
1305 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1308 --x-includes=DIR X include files are
in DIR
1309 --x-libraries=DIR X library files are
in DIR
1312 --build=BUILD configure
for building on BUILD
[guessed
]
1313 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1317 if test -n "$ac_init_help"; then
1322 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1323 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1324 --enable-carbon-app[=DIR
] [DIR
=/Application
]
1325 specify
install directory
for Emacs.app on Mac OS X
1326 --enable-font-backend compile code of font-backend support
1327 --enable-asserts compile code with asserts enabled
1328 --enable-maintainer-mode enable make rules and dependencies not useful
1329 (and sometimes confusing
) to the casual installer
1330 --enable-locallisppath=PATH
1331 directories Emacs should search
for lisp files
1332 specific to this site
1333 --disable-largefile omit support
for large files
1336 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1337 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1338 --without-gcc don
't use GCC to compile Emacs if GCC is found
1339 --without-pop don't support POP
mail retrieval with movemail
1340 --with-kerberos support Kerberos-authenticated POP
1341 --with-kerberos5 support Kerberos version
5 authenticated POP
1342 --with-hesiod support Hesiod to get the POP server
host
1343 --without-sound don
't compile with sound support
1344 --with-x-toolkit=KIT use an X toolkit
1345 (KIT = yes/lucid/athena/motif/gtk/no)
1346 --with-xpm use -lXpm for displaying XPM images
1347 --with-jpeg use -ljpeg for displaying JPEG images
1348 --with-tiff use -ltiff for displaying TIFF images
1349 --with-gif use -lungif for displaying GIF images
1350 --with-png use -lpng for displaying PNG images
1351 --with-freetype use -lfreetype for local fonts support
1352 --with-xft use -lXft for anti aliased fonts
1353 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1354 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xim don
't use X11 XIM
1358 --without-carbon don't use Carbon GUI on Mac OS X
1359 --with-x use the X Window System
1361 Some influential environment variables
:
1362 CC C compiler
command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1365 nonstandard directory
<lib dir
>
1366 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1367 CPPFLAGS C
/C
++/Objective C preprocessor flags
, e.g.
-I<include dir
> if
1368 you have headers
in a nonstandard directory
<include dir
>
1370 XMKMF Path to xmkmf
, Makefile generator
for X Window System
1372 Use these variables to override the choices made by
`configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1402 .) # We are building in place.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1436 generated by GNU Autoconf 2.61
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1449 It was created by $as_me, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1462 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1463 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1464 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1465 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1466 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1468 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1469 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1471 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1472 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1473 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1474 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1475 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1476 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1477 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1510 ac_must_keep_next=false
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1521 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1539 -* ) ac_must_keep_next=true ;;
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1566 # The following way of writing the cache mishandles newlines in values,
1568 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
1569 eval ac_val=\$$ac_var
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1583 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1603 for ac_var in $ac_subst_vars
1605 eval ac_val=\$$ac_var
1607 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1609 echo "$ac_var='\''$ac_val'\''"
1613 if test -n "$ac_subst_files"; then
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1620 for ac_var in $ac_subst_files
1622 eval ac_val=\$$ac_var
1624 *\'\''*) ac_val=`echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 echo "$ac_var='\''$ac_val'\''"
1631 if test -s confdefs.h; then
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1657 # Predefined preprocessor variables.
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1722 ac_header_list="$ac_header_list sys/time.h"
1723 ac_header_list="$ac_header_list unistd.h"
1724 ac_func_list="$ac_func_list alarm"
1725 # Check that the precious variables saved in the cache have kept the same
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
1736 echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not
set in the previous run
" >&5
1740 echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
1747 { echo "$as_me:$LINENO: former value
: $ac_old_val" >&5
1748 echo "$as_me: former value
: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value
: $ac_new_val" >&5
1750 echo "$as_me: current value
: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error
: changes
in the environment can compromise the build
" >&5
1768 echo "$as_me: error
: changes
in the environment can compromise the build
" >&2;}
1769 { { echo "$as_me:$LINENO: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and
/or \
`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1791 ac_cpp='$CPP $CPPFLAGS'
1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1797 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1800 test "$program_prefix" != NONE &&
1801 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1802 # Use a double $ so make ignores it.
1803 test "$program_suffix" != NONE &&
1804 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1805 # Double any \ or $. echo might interpret backslashes.
1806 # By default was `s
,x
,x
', remove it if useless.
1807 cat <<\_ACEOF >conftest.sed
1808 s/[\\$]/&&/g;s/;s,x,x,$//
1810 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1814 lispdir='${datadir}/emacs
/${version}/lisp
'
1815 locallisppath='${datadir}/emacs
/${version}/site-lisp
:'\
1816 '${datadir}/emacs
/site-lisp
'
1817 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim
'
1818 etcdir='${datadir}/emacs
/${version}/etc
'
1819 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1820 docdir='${datadir}/emacs
/${version}/etc
'
1821 gamedir='${localstatedir}/games
/emacs
'
1826 # Check whether --with-gcc was given.
1827 if test "${with_gcc+set}" = set; then
1832 # Check whether --with-pop was given.
1833 if test "${with_pop+set}" = set; then
1834 withval=$with_pop; if test "$withval" = yes; then
1835 cat >>confdefs.h <<\_ACEOF
1836 #define MAIL_USE_POP 1
1842 cat >>confdefs.h <<\_ACEOF
1843 #define MAIL_USE_POP 1
1850 # Check whether --with-kerberos was given.
1851 if test "${with_kerberos+set}" = set; then
1852 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1860 # Check whether --with-kerberos5 was given.
1861 if test "${with_kerberos5+set}" = set; then
1862 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1863 if test "${with_kerberos+set}" != set; then
1865 cat >>confdefs.h <<\_ACEOF
1872 cat >>confdefs.h <<\_ACEOF
1879 # Check whether --with-hesiod was given.
1880 if test "${with_hesiod+set}" = set; then
1881 withval=$with_hesiod;
1882 cat >>confdefs.h <<\_ACEOF
1890 # Check whether --with-sound was given.
1891 if test "${with_sound+set}" = set; then
1892 withval=$with_sound;
1897 # Check whether --with-x-toolkit was given.
1898 if test "${with_x_toolkit+set}" = set; then
1899 withval=$with_x_toolkit; case "${withval}" in
1900 y | ye | yes ) val=athena ;;
1902 l | lu | luc | luci | lucid ) val=lucid ;;
1903 a | at | ath | athe | athen | athena ) val=athena ;;
1904 m | mo | mot | moti | motif ) val=motif ;;
1905 g | gt | gtk ) val=gtk ;;
1907 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\
;
1908 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1909 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&5
1910 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\
;
1911 this option
's value should be \`yes', \
`no', \`lucid
', \`athena', \
`motif' or \`gtk
'.
1912 Currently, \`yes', \
`athena' and \`lucid
' are synonyms." >&2;}
1913 { (exit 1); exit 1; }; }
1921 # Check whether --with-xpm was given.
1922 if test "${with_xpm+set}" = set; then
1927 # Check whether --with-jpeg was given.
1928 if test "${with_jpeg+set}" = set; then
1933 # Check whether --with-tiff was given.
1934 if test "${with_tiff+set}" = set; then
1939 # Check whether --with-gif was given.
1940 if test "${with_gif+set}" = set; then
1945 # Check whether --with-png was given.
1946 if test "${with_png+set}" = set; then
1951 # Check whether --with-freetype was given.
1952 if test "${with_freetype+set}" = set; then
1953 withval=$with_freetype;
1957 # Check whether --with-xft was given.
1958 if test "${with_xft+set}" = set; then
1963 # Check whether --with-gtk was given.
1964 if test "${with_gtk+set}" = set; then
1969 # Check whether --with-pkg-config-prog was given.
1970 if test "${with_pkg_config_prog+set}" = set; then
1971 withval=$with_pkg_config_prog;
1975 # Check whether --with-toolkit-scroll-bars was given.
1976 if test "${with_toolkit_scroll_bars+set}" = set; then
1977 withval=$with_toolkit_scroll_bars;
1981 # Check whether --with-xim was given.
1982 if test "${with_xim+set}" = set; then
1987 # Check whether --with-carbon was given.
1988 if test "${with_carbon+set}" = set; then
1989 withval=$with_carbon;
1992 # Check whether --enable-carbon-app was given.
1993 if test "${enable_carbon_app+set}" = set; then
1994 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1998 # Check whether --enable-font-backend was given.
1999 if test "${enable_font_backend+set}" = set; then
2000 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2006 # Check whether --enable-asserts was given.
2007 if test "${enable_asserts+set}" = set; then
2008 enableval=$enable_asserts; USE_XASSERTS=$enableval
2014 # Check whether --enable-maintainer-mode was given.
2015 if test "${enable_maintainer_mode+set}" = set; then
2016 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2018 USE_MAINTAINER_MODE=no
2021 if test $USE_MAINTAINER_MODE = yes; then
2028 # Check whether --enable-locallisppath was given.
2029 if test "${enable_locallisppath+set}" = set; then
2030 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2032 elif test "${enableval}" != "yes"; then
2033 locallisppath=${enableval}
2038 #### Make srcdir absolute, if it isn't already. It
's important to
2039 #### avoid running the path through pwd unnecessarily, since pwd can
2040 #### give you automounter prefixes, which can go away. We do all this
2041 #### so Emacs can find its files when run uninstalled.
2042 ## Make sure CDPATH doesn't affect
cd (in case PWD is relative
).
2047 ## We may be able to use the $PWD environment variable to make this
2048 ## absolute. But sometimes PWD is inaccurate.
2049 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2050 ## but that tested only for a well-formed and valid PWD,
2051 ## it did not object when PWD was well-formed and valid but just wrong.
2052 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2056 srcdir
="`(cd ${srcdir}; pwd)`"
2059 * ) srcdir
="`(cd ${srcdir}; pwd)`" ;;
2062 #### Check if the source directory already has a configured system in it.
2063 if test `pwd` != `(cd ${srcdir} && pwd)` \
2064 && test -f "${srcdir}/src/config.h" ; then
2065 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2066 as a build directory right now; it has been configured in its own
2067 right. To configure in another directory as well, you MUST
2068 use GNU make. If you do not have GNU make, then you must
2069 now do \`make distclean' in ${srcdir},
2070 and then run $0 again." >&5
2071 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2072 as a build directory right now; it has been configured in its own
2073 right. To configure in another directory as well, you MUST
2074 use GNU make. If you do not have GNU make, then you must
2075 now do \`make distclean' in ${srcdir},
2076 and then run $0 again." >&2;}
2079 #### Given the configuration name, set machfile and opsysfile to the
2080 #### names of the m/*.h and s/*.h files we should use.
2082 ### Canonicalize the configuration name.
2085 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2086 if test -f "$ac_dir/install-sh"; then
2088 ac_install_sh
="$ac_aux_dir/install-sh -c"
2090 elif test -f "$ac_dir/install.sh"; then
2092 ac_install_sh
="$ac_aux_dir/install.sh -c"
2094 elif test -f "$ac_dir/shtool"; then
2096 ac_install_sh
="$ac_aux_dir/shtool install -c"
2100 if test -z "$ac_aux_dir"; then
2101 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2102 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2103 { (exit 1); exit 1; }; }
2106 # These three variables are undocumented and unsupported,
2107 # and are intended to be withdrawn in a future Autoconf release.
2108 # They can cause serious problems if a builder's source tree is in a directory
2109 # whose full name contains unusual characters.
2110 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2111 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2112 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2115 # Make sure we can run config.sub.
2116 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2117 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2118 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2119 { (exit 1); exit 1; }; }
2121 { echo "$as_me:$LINENO: checking build system type" >&5
2122 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2123 if test "${ac_cv_build+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 ac_build_alias
=$build_alias
2127 test "x$ac_build_alias" = x
&&
2128 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2129 test "x$ac_build_alias" = x
&&
2130 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2131 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2132 { (exit 1); exit 1; }; }
2133 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2134 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2135 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2136 { (exit 1); exit 1; }; }
2139 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2140 echo "${ECHO_T}$ac_cv_build" >&6; }
2141 case $ac_cv_build in
2143 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2144 echo "$as_me: error: invalid value of canonical build" >&2;}
2145 { (exit 1); exit 1; }; };;
2148 ac_save_IFS
=$IFS; IFS
='-'
2154 # Remember, the first character of IFS is used to create $*,
2155 # except with old shells:
2158 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2161 { echo "$as_me:$LINENO: checking host system type" >&5
2162 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2163 if test "${ac_cv_host+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 if test "x$host_alias" = x
; then
2167 ac_cv_host
=$ac_cv_build
2169 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2170 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2171 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2172 { (exit 1); exit 1; }; }
2176 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2177 echo "${ECHO_T}$ac_cv_host" >&6; }
2180 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2181 echo "$as_me: error: invalid value of canonical host" >&2;}
2182 { (exit 1); exit 1; }; };;
2185 ac_save_IFS
=$IFS; IFS
='-'
2191 # Remember, the first character of IFS is used to create $*,
2192 # except with old shells:
2195 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2199 configuration
=${host_alias-$host}
2203 ### If you add support for a new configuration, add code to this
2204 ### switch statement to recognize your configuration name and select
2205 ### the appropriate operating system and machine description files.
2207 ### You would hope that you could choose an m/*.h file pretty much
2208 ### based on the machine portion of the configuration name, and an s-
2209 ### file based on the operating system portion. However, it turns out
2210 ### that each m/*.h file is pretty manufacturer-specific - for
2211 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2212 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2213 ### machines. So we basically have to have a special case for each
2214 ### configuration name.
2216 ### As far as handling version numbers on operating systems is
2217 ### concerned, make sure things will fail in a fixable way. If
2218 ### /etc/MACHINES doesn't say anything about version numbers, be
2219 ### prepared to handle anything reasonably. If version numbers
2220 ### matter, be sure /etc/MACHINES says something about it.
2222 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2223 ### "System V Release 4"; he writes, "The old convention encouraged
2224 ### confusion between `system' and `release' levels'."
2226 machine
='' opsys
='' unported
=no
2227 case "${canonical}" in
2232 case "${canonical}" in
2233 alpha
*-*-freebsd*) machine
=alpha
;;
2234 ia64-
*-freebsd*) machine
=ia64
;;
2235 sparc64-
*-freebsd*) machine
=sparc
;;
2236 powerpc-
*-freebsd*) machine
=macppc
;;
2237 i
[3456]86-*-freebsd*) machine
=intel386
;;
2238 amd64-
*-freebsd*|x86_64-
*-freebsd*) machine
=amdx86-64
;;
2245 if test -f /usr
/lib
/crti.o
; then
2247 cat >>confdefs.h
<<\_ACEOF
2253 case "${canonical}" in
2254 alpha
*-*-netbsd*) machine
=alpha
;;
2255 i
[3456]86-*-netbsd*) machine
=intel386
;;
2257 # This is somewhat bogus.
2258 machine
=hp9000s300
;;
2259 mips-
*-netbsd*) machine
=pmax
;;
2260 mipsel-
*-netbsd*) machine
=pmax
;;
2261 mipseb-
*-netbsd*) machine
=pmax
;;
2262 ns32k-
*-netbsd*) machine
=ns32000
;;
2263 powerpc-
*-netbsd*) machine
=macppc
;;
2264 sparc
*-*-netbsd*) machine
=sparc
;;
2265 vax-
*-netbsd*) machine
=vax
;;
2266 arm-
*-netbsd*) machine
=arm
;;
2267 x86_64-
*-netbsd*) machine
=amdx86-64
;;
2268 hppa-
*-netbsd*) machine
=hp800
;;
2269 shle-
*-netbsd*) machine
=sh3el
;;
2276 case "${canonical}" in
2277 alpha
*-*-openbsd*) machine
=alpha
;;
2278 i386-
*-openbsd*) machine
=intel386
;;
2279 x86_64-
*-openbsd*) machine
=amdx86-64
;;
2280 m68k-
*-openbsd*) machine
=hp9000s300
;;
2281 mipsel-
*-openbsd*) machine
=pmax
;;
2282 ns32k-
*-openbsd*) machine
=ns32000
;;
2283 sparc-
*-openbsd*) machine
=sparc
;;
2284 vax-
*-openbsd*) machine
=vax
;;
2291 case "${canonical}" in
2292 i
[3456]86-*-lynxos*) machine
=intel386
;;
2293 powerpc-
*-lynxos*) machine
=powerpc
;;
2298 arm-acorn-riscix1.1
* )
2299 machine
=acorn opsys
=riscix1-1
2301 arm-acorn-riscix1.2
* | arm-acorn-riscix
)
2302 ## This name is riscix12 instead of riscix1.2
2303 ## to avoid a file name conflict on MSDOS.
2304 machine
=acorn opsys
=riscix12
2310 case "${canonical}" in
2311 i
[345]86-*-bsdi*) machine
=intel386
;;
2312 sparc-
*-bsdi*) machine
=sparc
;;
2313 powerpc-
*-bsdi*) machine
=macppc
;;
2315 case "${canonical}" in
2316 *-*-bsd386* |
*-*-bsdi1* ) opsys
=bsd386
;;
2317 *-*-bsdi2.0
* ) opsys
=bsdos2
;;
2318 *-*-bsdi2* ) opsys
=bsdos2-1
;;
2319 *-*-bsdi3* ) opsys
=bsdos3
;;
2320 *-*-bsdi[45]* ) opsys
=bsdos4
;;
2325 ## Strictly speaking, we need the version of the alliant operating
2326 ## system to choose the right machine file, but currently the
2327 ## configuration name doesn't tell us enough to choose the right
2328 ## one; we need to give alliants their own operating system name to
2329 ## do this right. When someone cares, they can help us.
2331 machine
=alliant4 opsys
=bsd4-2
2334 machine
=alliant-2800 opsys
=bsd4-3
2337 ## Alpha (DEC) machines.
2339 machine
=alpha opsys
=osf1
2340 # This is needed to find X11R6.1 libraries for certain tests.
2341 NON_GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2342 GCC_LINK_TEST_OPTIONS
=-Wl,-rpath,/usr
/X11R
6/lib
2343 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2344 # due to non-traditional preprocessing with the current compiler
2345 # defaults. OSF 4 can also have that compiler version, and there
2346 # seems always to have been a usable /usr/bin/cpp.
2347 NON_GNU_CPP
=/usr
/bin
/cpp
2348 case "${canonical}" in
2349 alpha
*-dec-osf[5-9]*)
2354 alpha
*-*-linux-gnu* )
2355 machine
=alpha opsys
=gnu-linux
2359 machine
=arm opsys
=gnu-linux
2364 machine
=altos opsys
=usg5-2
2369 machine
=amdahl opsys
=usg5-2-2
2372 ## Apollo, Domain/OS
2374 machine
=apollo opsys
=bsd4-3
2377 ## Apple Darwin / Mac OS X
2379 case "${canonical}" in
2380 i
[3456]86-* ) machine
=intel386
;;
2381 powerpc-
* ) machine
=powermac
;;
2385 # Define CPP as follows to make autoconf work correctly.
2386 CPP
="${CC-cc} -E -no-cpp-precomp"
2387 # Use fink packages if available.
2388 if test -d /sw
/include
&& test -d /sw
/lib
; then
2389 GCC_TEST_OPTIONS
="-I/sw/include -L/sw/lib"
2390 CPP
="${CPP} ${GCC_TEST_OPTIONS}"
2391 NON_GCC_TEST_OPTIONS
=${GCC_TEST_OPTIONS}
2395 ## AT&T 3b2, 3b5, 3b15, 3b20
2397 machine
=att3b opsys
=usg5-2-2
2400 ## AT&T 3b1 - The Mighty Unix PC!
2402 machine
=7300 opsys
=usg5-2-2
2407 machine
=ibmrs6000 opsys
=aix3-2
2412 machine
=dpx2 opsys
=usg5-3
2417 machine
=sps7 opsys
=usg5-2
2420 ## CCI 5/32, 6/32 -- see "Tahoe".
2423 ## I don't know what configuration name to use for this; config.sub
2424 ## doesn't seem to know anything about it. Hey, Celerity users, get
2425 ## in touch with us!
2426 celerity-celerity-bsd
* )
2427 machine
=celerity opsys
=bsd4-2
2431 ## What operating systems does this chip run that Emacs has been
2435 ## We'll use the catch-all code at the bottom to guess the
2436 ## operating system.
2440 mips-compaq-nonstopux
* )
2441 machine
=nonstopux opsys
=nonstopux
2445 *-convex-bsd* |
*-convex-convexos* )
2446 machine
=convex opsys
=bsd4-3
2447 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2448 NON_GNU_CPP
="cc -E -P"
2452 i
[3456]86-cubix-sysv* )
2453 machine
=intel386 opsys
=usg5-3
2457 cydra
*-cydrome-sysv* )
2458 machine
=cydra5 opsys
=usg5-3
2461 ## Data General AViiON Machines
2462 ## DG changed naming conventions with the release of 5.4.4.10, they
2463 ## dropped the initial 5.4 but left the intervening R. Because of the
2464 ## R this shouldn't conflict with older versions of the OS (which I
2465 ## think were named like dgux4.*). In addition, DG new AViiONs series
2466 ## uses either Motorola M88k or Intel Pentium CPUs.
2467 m88k-dg-dguxR4.
* | m88k-dg-dgux4
* )
2468 machine
=aviion opsys
=dgux4
2470 m88k-dg-dgux5.4R3
* | m88k-dg-dgux5.4
.3* )
2471 ## This name is dgux5-4-3 instead of dgux5-4r3
2472 ## to avoid a file name conflict on MSDOS.
2473 machine
=aviion opsys
=dgux5-4-3
2475 m88k-dg-dgux5.4R2
* | m88k-dg-dgux5.4
.2* )
2476 machine
=aviion opsys
=dgux5-4r2
2479 machine
=aviion opsys
=dgux
2482 ## Data General AViiON Intel (x86) Machines
2483 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2484 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2485 i
[345]86-dg-dguxR4* )
2486 machine
=aviion-intel opsys
=dgux4
2490 mips-dec-ultrix
[0-3].
* | mips-dec-ultrix4.0
* | mips-dec-bsd4.2
* )
2491 machine
=pmax opsys
=bsd4-2
2493 mips-dec-ultrix4.
[12]* | mips-dec-bsd
* )
2494 machine
=pmax opsys
=bsd4-3
2497 machine
=pmax opsys
=ultrix4-3
2500 machine
=pmax opsys
=osf1
2502 mips-dec-mach_bsd4.3
* )
2503 machine
=pmax opsys
=mach-bsd4-3
2506 ## Motorola Delta machines
2507 m68k-motorola-sysv
* | m68000-motorola-sysv
* )
2508 machine
=delta opsys
=usg5-3
2509 if test -z "`type gnucc | grep 'not found'`"
2511 if test -s /etc
/167config
2512 then CC
="gnucc -m68040"
2513 else CC
="gnucc -m68881"
2516 if test -z "`type gcc | grep 'not found'`"
2522 m88k-motorola-sysv4
* )
2523 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2524 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2525 # I hope there are not other 4.0 versions for this machine
2526 # which really need usg5-4 instead.
2527 machine
=delta88k opsys
=usg5-4-2
2529 m88k-motorola-sysv
* | m88k-motorola-m88kbcs
* )
2530 machine
=delta88k opsys
=usg5-3
2535 machine
=dual opsys
=usg5-2
2537 m68
*-dual-uniplus* )
2538 machine
=dual opsys
=unipl5-2
2543 machine
=elxsi opsys
=usg5-2
2548 machine
=ns16000 opsys
=umax
2551 ## The GEC 63 - apparently, this port isn't really finished yet.
2552 # I'm sure we finished off the last of the machines, though. -- fx
2554 ## Gould Power Node and NP1
2556 machine
=gould opsys
=bsd4-2
2559 machine
=gould opsys
=bsd4-3
2562 machine
=gould-np1 opsys
=bsd4-3
2565 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2566 ## as far as Emacs is concerned).
2568 # Build needs to be different on 7.0 and later releases
2569 case "`uname -r`" in
2570 [56].
[0-9] ) machine
=nh4000 opsys
=cxux
;;
2571 [7].
[0-9] ) machine
=nh4000 opsys
=cxux7
;;
2573 NON_GNU_CPP
="/lib/cpp"
2575 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2577 machine
=nh3000 opsys
=cxux
2579 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2580 powerpc-harris-powerunix
)
2581 machine
=nh6000 opsys
=powerunix
2582 NON_GNU_CPP
="cc -Xo -E -P"
2585 xps
*-honeywell-sysv* )
2586 machine
=xps100 opsys
=usg5-2
2589 ## HP 9000 series 200 or 300
2591 machine
=hp9000s300 opsys
=bsd4-3
2593 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2595 case "`uname -r`" in
2596 ## Someone's system reports A.B8.05 for this.
2597 ## I wonder what other possibilities there are.
2598 *.B8.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2599 *.08.
* ) machine
=hp9000s300 opsys
=hpux8
;;
2600 *.09.
* ) machine
=hp9000s300 opsys
=hpux9
;;
2601 *.1[0-9].
* ) machine
=hp9000s300 opsys
=hpux9shr
;;
2602 *) machine
=hp9000s300 opsys
=hpux
;;
2606 hppa
*-*-linux-gnu* )
2607 machine
=hp800 opsys
=gnu-linux
2611 machine
=hp800 opsys
=nextstep
2616 machine
=orion opsys
=bsd4-2
2618 clipper-orion-bsd
* )
2619 machine
=orion105 opsys
=bsd4-2
2623 i
[3456]86-ibm-aix1.1
* )
2624 machine
=ibmps2-aix opsys
=usg5-2-2
2626 i
[3456]86-ibm-aix1.
[23]* | i
[3456]86-ibm-aix* )
2627 machine
=ibmps2-aix opsys
=usg5-3
2630 machine
=ibm370aix opsys
=usg5-3
2633 machine
=ibms390 opsys
=gnu-linux
2635 s390x-
*-linux-gnu* )
2636 machine
=ibms390x opsys
=gnu-linux
2638 rs6000-ibm-aix3.1
* | powerpc-ibm-aix3.1
* )
2639 machine
=ibmrs6000 opsys
=aix3-1
2641 rs6000-ibm-aix3.2
.5 | powerpc-ibm-aix3.2
.5 )
2642 machine
=ibmrs6000 opsys
=aix3-2-5
2644 rs6000-ibm-aix4.1
* | powerpc-ibm-aix4.1
* )
2645 machine
=ibmrs6000 opsys
=aix4-1
2647 rs6000-ibm-aix4.2
* | powerpc-ibm-aix4.2
* )
2648 machine
=ibmrs6000 opsys
=aix4-2
2650 rs6000-ibm-aix5
* | powerpc-ibm-aix5
* )
2651 machine
=ibmrs6000 opsys
=aix4-2
2653 rs6000-ibm-aix4.0
* | powerpc-ibm-aix4.0
* )
2654 machine
=ibmrs6000 opsys
=aix4
2656 rs6000-ibm-aix4
* | powerpc-ibm-aix4
* )
2657 machine
=ibmrs6000 opsys
=aix4-1
2659 rs6000-ibm-aix
* | powerpc-ibm-aix
* )
2660 machine
=ibmrs6000 opsys
=aix3-2
2663 machine
=ibmrt opsys
=bsd4-3
2666 machine
=ibmrt opsys
=bsd4-2
2669 machine
=ibmrt opsys
=bsd4-3
2672 machine
=ibmrt opsys
=bsd4-2
2675 machine
=ibmrt opsys
=bsd4-3
2678 machine
=ibmrt opsys
=bsd4-3
2681 machine
=ibmrt-aix opsys
=usg5-2-2
2684 ## Integrated Solutions `Optimum V'
2686 machine
=isi-ov opsys
=bsd4-2
2689 machine
=isi-ov opsys
=bsd4-3
2692 ## Intel 386 machines where we do care about the manufacturer
2693 i
[3456]86-intsys-sysv* )
2694 machine
=is386 opsys
=usg5-2-2
2698 i
[3456]86-prime-sysv* )
2699 machine
=i386 opsys
=usg5-3
2702 ## Sequent Symmetry running Dynix
2703 i
[3456]86-sequent-bsd* )
2704 machine
=symmetry opsys
=bsd4-3
2707 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2708 i
[3456]86-sequent-ptx4* | i
[3456]86-sequent-sysv4* )
2709 machine
=sequent-ptx opsys
=ptx4
2710 NON_GNU_CPP
=/lib
/cpp
2713 ## Sequent Symmetry running DYNIX/ptx
2714 ## Use the old cpp rather than the newer ANSI one.
2715 i
[3456]86-sequent-ptx* )
2716 machine
=sequent-ptx opsys
=ptx
2717 NON_GNU_CPP
="/lib/cpp"
2720 ## ncr machine running svr4.3.
2721 i
[3456]86-ncr-sysv4.3
)
2722 machine
=ncr386 opsys
=usg5-4-3
2725 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2726 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2727 i
[3456]86-ncr-sysv* )
2728 machine
=ncr386 opsys
=usg5-4-2
2731 ## Intel Paragon OSF/1
2733 machine
=paragon opsys
=osf1 NON_GNU_CPP
=/usr
/mach
/lib
/cpp
2738 machine
=i860 opsys
=usg5-4
2739 NON_GNU_CC
="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2740 NON_GNU_CPP
="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2743 ## Macintosh PowerPC
2744 powerpc
*-*-linux-gnu* )
2745 machine
=macppc opsys
=gnu-linux
2748 ## Masscomp machines
2749 m68
*-masscomp-rtu* )
2750 machine
=masscomp opsys
=rtu
2753 ## Megatest machines
2754 m68
*-megatest-bsd* )
2755 machine
=mega68 opsys
=bsd4-2
2758 ## Workstations sold by MIPS
2759 ## This is not necessarily all workstations using the MIPS processor -
2760 ## Irises are produced by SGI, and DECstations by DEC.
2762 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2763 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2764 ## it gives for choosing between the alternatives seems to be "Use
2765 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2766 ## the BSD world." I'll assume that these are instructions for
2767 ## handling two odd situations, and that every other situation
2768 ## should use mips.h and usg5-2-2, they being listed first.
2771 ## Fall through to the general code at the bottom to decide on the OS.
2773 mips-mips-riscos4
* )
2774 machine
=mips4 opsys
=bsd4-3
2775 NON_GNU_CC
="cc -systype bsd43"
2776 NON_GNU_CPP
="cc -systype bsd43 -E"
2778 mips-mips-riscos5
* )
2779 machine
=mips4 opsys
=riscos5
2780 NON_GNU_CC
="cc -systype bsd43"
2781 NON_GNU_CPP
="cc -systype bsd43 -E"
2784 machine
=mips opsys
=bsd4-3
2787 machine
=mips opsys
=usg5-2-2
2791 m68
*-next-* | m68k-
*-nextstep* )
2792 machine
=m68k opsys
=nextstep
2795 ## The complete machine from National Semiconductor
2797 machine
=ns32000 opsys
=usg5-2
2801 m68
*-ncr-sysv2* | m68
*-ncr-sysvr2* )
2802 machine
=tower32 opsys
=usg5-2-2
2804 m68
*-ncr-sysv3* | m68
*-ncr-sysvr3* )
2805 machine
=tower32v3 opsys
=usg5-3
2810 machine
=ews4800 opsys
=ux4800
2813 ## Nixdorf Targon 31
2814 m68
*-nixdorf-sysv* )
2815 machine
=targon31 opsys
=usg5-2-2
2820 machine
=nu opsys
=usg5-2
2825 machine
=plexus opsys
=usg5-2
2829 ## I don't really have any idea what sort of processor the Pyramid has,
2830 ## so I'm assuming it is its own architecture.
2831 pyramid-pyramid-bsd
* )
2832 machine
=pyramid opsys
=bsd4-2
2836 ns32k-sequent-bsd4.2
* )
2837 machine
=sequent opsys
=bsd4-2
2839 ns32k-sequent-bsd4.3
* )
2840 machine
=sequent opsys
=bsd4-3
2844 mips-siemens-sysv
* | mips-sni-sysv
*)
2845 machine
=mips-siemens opsys
=usg5-4
2846 NON_GNU_CC
=/usr
/ccs
/bin
/cc
2847 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2850 ## Silicon Graphics machines
2851 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2853 machine
=irist opsys
=iris3-5
2855 m68
*-sgi-iris3.6
* | m68
*-sgi-iris*)
2856 machine
=irist opsys
=iris3-6
2860 machine
=iris4d opsys
=irix3-3
2863 machine
=iris4d opsys
=irix4-0
2866 machine
=iris4d opsys
=irix6-5
2867 # Without defining _LANGUAGE_C, things get masked out in the headers
2868 # so that, for instance, grepping for `free' in stdlib.h fails and
2869 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2870 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2871 NON_GCC_TEST_OPTIONS
="-D_LANGUAGE_C"
2874 machine
=iris4d opsys
=irix6-0
2875 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2876 # but presumably it does no harm.
2877 NON_GNU_CPP
="/lib/cpp -D_LANGUAGE_C"
2878 # -32 probably isn't necessary in later v.6s -- anyone know which?
2879 NON_GCC_TEST_OPTIONS
=-32
2881 mips-sgi-irix5.
[01]* )
2882 machine
=iris4d opsys
=irix5-0
2884 mips-sgi-irix5
* | mips-sgi-irix
* )
2885 machine
=iris4d opsys
=irix5-2
2890 machine
=news opsys
=bsd4-2
2893 machine
=news opsys
=bsd4-3
2895 m68
*-sony-newsos3* | m68
*-sony-news3*)
2896 machine
=news opsys
=bsd4-3
2898 mips-sony-bsd
* | mips-sony-newsos4
* | mips-sony-news4
*)
2899 machine
=news-risc opsys
=bsd4-3
2901 mips-sony-newsos6
* )
2902 machine
=news-r6 opsys
=newsos6
2905 machine
=news-risc opsys
=newsos5
2910 machine
=stride opsys
=usg5-2
2914 sparc-
*-linux-gnu* | sparc64-
*-linux-gnu* )
2915 machine
=sparc opsys
=gnu-linux
2918 *-auspex-sunos* |
*-sun-sunos* |
*-sun-bsd* |
*-sun-solaris* \
2919 | i
[3456]86-*-solaris2* | i
[3456]86-*-sunos5* | powerpc
*-*-solaris2* \
2920 | rs6000-
*-solaris2*)
2921 case "${canonical}" in
2922 m68
*-sunos1* ) machine
=sun1
;;
2923 m68
*-sunos2* ) machine
=sun2
;;
2924 m68
* ) machine
=sun3
;;
2925 i
[3456]86-sun-sunos[34]* ) machine
=sun386
;;
2926 i
[3456]86-*-* ) machine
=intel386
;;
2927 amd64-
*-*|x86_64-
*-*) machine
=amdx86-64
;;
2928 powerpcle
* ) machine
=powerpcle
;;
2929 powerpc
* | rs6000
* ) machine
=ibmrs6000
;;
2930 sparc
* ) machine
=sparc
;;
2933 case "${canonical}" in
2934 ## The Sun386 didn't get past 4.0.
2935 i
[3456]86-*-sunos4 ) opsys
=sunos4-0
;;
2936 *-sunos4.0
* ) opsys
=sunos4-0
;;
2937 *-sunos4.1.
[3-9]*noshare
)
2938 ## This name is sunos413 instead of sunos4-1-3
2939 ## to avoid a file name conflict on MSDOS.
2941 NON_GNU_CPP
=/usr
/lib
/cpp
2942 NON_GCC_TEST_OPTIONS
=-Bstatic
2943 GCC_TEST_OPTIONS
=-static
2945 *-sunos4.1.
[3-9]* |
*-sunos4shr*)
2947 NON_GNU_CPP
=/usr
/lib
/cpp
2949 *-sunos4* |
*-sunos )
2951 NON_GCC_TEST_OPTIONS
=-Bstatic
2952 GCC_TEST_OPTIONS
=-static
2954 *-sunos5.3
* |
*-solaris2.3
* )
2956 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2958 *-sunos5.4
* |
*-solaris2.4
* )
2960 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2963 *-sunos5.5
* |
*-solaris2.5
* )
2965 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2968 *-sunos5.6
* |
*-solaris2.6
* )
2970 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2973 *-sunos5* |
*-solaris* )
2975 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
2979 ## Watch out for a compiler that we know will not work.
2980 case "${canonical}" in
2981 *-solaris* |
*-sunos5* )
2982 if [ "x$CC" = x
/usr
/ucb
/cc
]; then
2983 ## /usr/ucb/cc doesn't work;
2984 ## we should find some other compiler that does work.
2992 machine
=sparc opsys
=nextstep
2996 m68
*-tadpole-sysv* )
2997 machine
=tad68k opsys
=usg5-3
3001 tahoe-tahoe-bsd4.2
* )
3002 machine
=tahoe opsys
=bsd4-2
3004 tahoe-tahoe-bsd4.3
* )
3005 machine
=tahoe opsys
=bsd4-3
3008 ## Tandem Integrity S2
3010 machine
=tandem-s2 opsys
=usg5-3
3014 m88k-tektronix-sysv3
* )
3015 machine
=tekxd88 opsys
=usg5-3
3018 ## Tektronix 16000 box (6130?)
3019 ns16k-tektronix-bsd
* )
3020 machine
=ns16000 opsys
=bsd4-2
3023 ## src/m/tek4300.h hints that this is a m68k machine.
3024 m68
*-tektronix-bsd* )
3025 machine
=tek4300 opsys
=bsd4-3
3029 ## We seem to have lost the machine-description file titan.h!
3031 machine
=titan opsys
=usg5-3
3034 ## Ustation E30 (SS5E)
3035 m68
*-unisys-uniplus* )
3036 machine
=ustation opsystem
=unipl5-2
3042 case "${canonical}" in
3043 *-bsd4.1
* ) opsys
=bsd4-1
;;
3044 *-bsd4.2
* |
*-ultrix[0-3].
* |
*-ultrix4.0
* ) opsys
=bsd4-2
;;
3045 *-bsd4.3
* |
*-ultrix* ) opsys
=bsd4-3
;;
3046 *-sysv[01]* |
*-sysvr[01]* ) opsys
=usg5-0
;;
3047 *-sysv2* |
*-sysvr2* ) opsys
=usg5-2
;;
3048 *-vms* ) opsys
=vms
;;
3054 ns16k-whitechapel-
* )
3056 ## We don't know what sort of OS runs on these; we'll let the
3057 ## operating system guessing code below try.
3062 machine
=wicat opsys
=usg5-2
3067 machine
=ia64 opsys
=gnu-linux
3070 ## Intel 386 machines where we don't care about the manufacturer
3073 case "${canonical}" in
3074 *-cygwin ) opsys
=cygwin
;;
3075 *-darwin* ) opsys
=darwin
3076 CPP
="${CC-cc} -E -no-cpp-precomp"
3078 *-isc1.
* |
*-isc2.
[01]* ) opsys
=386-ix ;;
3079 *-isc2.2
* ) opsys
=isc2-2
;;
3080 *-isc4.0
* ) opsys
=isc4-0
;;
3081 *-isc4.
* ) opsys
=isc4-1
3082 GCC_TEST_OPTIONS
=-posix
3083 NON_GCC_TEST_OPTIONS
=-Xp
3085 *-isc* ) opsys
=isc3-0
;;
3086 *-esix5* ) opsys
=esix5r4
; NON_GNU_CPP
=/usr
/lib
/cpp
;;
3087 *-esix* ) opsys
=esix
;;
3088 *-xenix* ) opsys
=xenix
;;
3089 *-linux-gnu* ) opsys
=gnu-linux
;;
3090 *-sco3.2v4
* ) opsys
=sco4
; NON_GNU_CPP
=/lib
/cpp
;;
3091 *-sco3.2v5
* ) opsys
=sco5
3092 NON_GNU_CPP
=/lib
/cpp
3093 # Prevent -belf from being passed to $CPP.
3094 # /lib/cpp does not accept it.
3095 OVERRIDE_CPPFLAGS
=" "
3097 *-sysv4.2uw
* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3098 *-sysv5uw* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3099 *-sysv5OpenUNIX* ) opsys
=unixware
; NON_GNU_CPP
=/lib
/cpp
;;
3100 *-386bsd* ) opsys
=386bsd
;;
3101 *-nextstep* ) opsys
=nextstep
;;
3102 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3106 ## m68k Linux-based GNU system
3108 machine
=m68k opsys
=gnu-linux
3111 ## Mips Linux-based GNU system
3112 mips-
*-linux-gnu* | mipsel-
*-linux-gnu* )
3113 machine
=mips opsys
=gnu-linux
3117 sparc-fujitsu-sysv4
* )
3118 machine
=sparc opsys
=uxpds
3119 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3124 f301-fujitsu-uxpv4.1
)
3125 machine
=f301 opsys
=uxpv
3128 ## AMD x86-64 Linux-based GNU system
3129 x86_64-
*-linux-gnu* )
3130 machine
=amdx86-64 opsys
=gnu-linux
3138 ### If the code above didn't choose an operating system, just choose
3139 ### an operating system based on the configuration name. You really
3140 ### only want to use this when you have no idea what the right
3141 ### operating system is; if you know what operating systems a machine
3142 ### runs, it's cleaner to make it explicit in the case statement
3144 if test x
"${opsys}" = x
; then
3145 case "${canonical}" in
3146 *-gnu* ) opsys
=gnu
;;
3147 *-bsd4.
[01] ) opsys
=bsd4-1
;;
3148 *-bsd4.2
) opsys
=bsd4-2
;;
3149 *-bsd4.3
) opsys
=bsd4-3
;;
3150 *-sysv0 |
*-sysvr0 ) opsys
=usg5-0
;;
3151 *-sysv2 |
*-sysvr2 ) opsys
=usg5-2
;;
3152 *-sysv2.2 |
*-sysvr2.2
) opsys
=usg5-2-2
;;
3153 *-sysv3* |
*-sysvr3* ) opsys
=usg5-3
;;
3154 *-sysv4.2uw
* ) opsys
=unixware
;;
3155 *-sysv5uw* ) opsys
=unixware
;;
3156 *-sysv5OpenUNIX* ) opsys
=unixware
;;
3157 *-sysv4.1
* |
*-sysvr4.1
* )
3158 NON_GNU_CPP
=/usr
/lib
/cpp
3160 *-sysv4.
[2-9]* |
*-sysvr4.
[2-9]* )
3161 if [ x
$NON_GNU_CPP = x
]; then
3162 if [ -f /usr
/ccs
/lib
/cpp
]; then
3163 NON_GNU_CPP
=/usr
/ccs
/lib
/cpp
3165 NON_GNU_CPP
=/lib
/cpp
3169 *-sysv4* |
*-sysvr4* ) opsys
=usg5-4
;;
3178 if test $unported = yes; then
3179 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3180 Check \`etc/MACHINES' for recognized configuration names." >&5
3181 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3182 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3183 { (exit 1); exit 1; }; }
3186 machfile
="m/${machine}.h"
3187 opsysfile
="s/${opsys}.h"
3190 #### Choose a compiler.
3191 test -n "$CC" && cc_specified
=yes
3193 # Save the value of CFLAGS that the user specified.
3194 SPECIFIED_CFLAGS
="$CFLAGS"
3197 "yes" ) CC
="gcc" GCC
=yes ;;
3198 "no" ) : ${CC=cc} ;;
3202 ac_cpp
='$CPP $CPPFLAGS'
3203 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3204 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3205 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3206 if test -n "$ac_tool_prefix"; then
3207 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3208 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3211 if test "${ac_cv_prog_CC+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3214 if test -n "$CC"; then
3215 ac_cv_prog_CC
="$CC" # Let the user override the test.
3217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3221 test -z "$as_dir" && as_dir
=.
3222 for ac_exec_ext
in '' $ac_executable_extensions; do
3223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3224 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3235 if test -n "$CC"; then
3236 { echo "$as_me:$LINENO: result: $CC" >&5
3237 echo "${ECHO_T}$CC" >&6; }
3239 { echo "$as_me:$LINENO: result: no" >&5
3240 echo "${ECHO_T}no" >&6; }
3245 if test -z "$ac_cv_prog_CC"; then
3247 # Extract the first word of "gcc", so it can be a program name with args.
3248 set dummy gcc
; ac_word
=$2
3249 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3250 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3251 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3252 echo $ECHO_N "(cached) $ECHO_C" >&6
3254 if test -n "$ac_ct_CC"; then
3255 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3257 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3261 test -z "$as_dir" && as_dir
=.
3262 for ac_exec_ext
in '' $ac_executable_extensions; do
3263 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3264 ac_cv_prog_ac_ct_CC
="gcc"
3265 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3274 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3275 if test -n "$ac_ct_CC"; then
3276 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3277 echo "${ECHO_T}$ac_ct_CC" >&6; }
3279 { echo "$as_me:$LINENO: result: no" >&5
3280 echo "${ECHO_T}no" >&6; }
3283 if test "x$ac_ct_CC" = x
; then
3286 case $cross_compiling:$ac_tool_warned in
3288 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3289 whose name does not start with the host triplet. If you think this
3290 configuration is useful to you, please write to autoconf@gnu.org." >&5
3291 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3292 whose name does not start with the host triplet. If you think this
3293 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3294 ac_tool_warned
=yes ;;
3302 if test -z "$CC"; then
3303 if test -n "$ac_tool_prefix"; then
3304 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3305 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
3306 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3307 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3308 if test "${ac_cv_prog_CC+set}" = set; then
3309 echo $ECHO_N "(cached) $ECHO_C" >&6
3311 if test -n "$CC"; then
3312 ac_cv_prog_CC
="$CC" # Let the user override the test.
3314 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3318 test -z "$as_dir" && as_dir
=.
3319 for ac_exec_ext
in '' $ac_executable_extensions; do
3320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3321 ac_cv_prog_CC
="${ac_tool_prefix}cc"
3322 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3332 if test -n "$CC"; then
3333 { echo "$as_me:$LINENO: result: $CC" >&5
3334 echo "${ECHO_T}$CC" >&6; }
3336 { echo "$as_me:$LINENO: result: no" >&5
3337 echo "${ECHO_T}no" >&6; }
3343 if test -z "$CC"; then
3344 # Extract the first word of "cc", so it can be a program name with args.
3345 set dummy cc
; ac_word
=$2
3346 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3347 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3348 if test "${ac_cv_prog_CC+set}" = set; then
3349 echo $ECHO_N "(cached) $ECHO_C" >&6
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC
="$CC" # Let the user override the test.
3355 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3359 test -z "$as_dir" && as_dir
=.
3360 for ac_exec_ext
in '' $ac_executable_extensions; do
3361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3362 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3363 ac_prog_rejected
=yes
3367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 if test $ac_prog_rejected = yes; then
3375 # We found a bogon in the path, so make sure we never use it.
3376 set dummy
$ac_cv_prog_CC
3378 if test $# != 0; then
3379 # We chose a different compiler from the bogus one.
3380 # However, it has the same basename, so the bogon will be chosen
3381 # first if we set CC to just the basename; use the full file name.
3383 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3389 if test -n "$CC"; then
3390 { echo "$as_me:$LINENO: result: $CC" >&5
3391 echo "${ECHO_T}$CC" >&6; }
3393 { echo "$as_me:$LINENO: result: no" >&5
3394 echo "${ECHO_T}no" >&6; }
3399 if test -z "$CC"; then
3400 if test -n "$ac_tool_prefix"; then
3401 for ac_prog
in cl.exe
3403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3404 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3405 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3406 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3407 if test "${ac_cv_prog_CC+set}" = set; then
3408 echo $ECHO_N "(cached) $ECHO_C" >&6
3410 if test -n "$CC"; then
3411 ac_cv_prog_CC
="$CC" # Let the user override the test.
3413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3417 test -z "$as_dir" && as_dir
=.
3418 for ac_exec_ext
in '' $ac_executable_extensions; do
3419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3420 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3421 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3431 if test -n "$CC"; then
3432 { echo "$as_me:$LINENO: result: $CC" >&5
3433 echo "${ECHO_T}$CC" >&6; }
3435 { echo "$as_me:$LINENO: result: no" >&5
3436 echo "${ECHO_T}no" >&6; }
3440 test -n "$CC" && break
3443 if test -z "$CC"; then
3445 for ac_prog
in cl.exe
3447 # Extract the first word of "$ac_prog", so it can be a program name with args.
3448 set dummy
$ac_prog; ac_word
=$2
3449 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3454 if test -n "$ac_ct_CC"; then
3455 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3457 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3461 test -z "$as_dir" && as_dir
=.
3462 for ac_exec_ext
in '' $ac_executable_extensions; do
3463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3464 ac_cv_prog_ac_ct_CC
="$ac_prog"
3465 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3474 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3475 if test -n "$ac_ct_CC"; then
3476 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3477 echo "${ECHO_T}$ac_ct_CC" >&6; }
3479 { echo "$as_me:$LINENO: result: no" >&5
3480 echo "${ECHO_T}no" >&6; }
3484 test -n "$ac_ct_CC" && break
3487 if test "x$ac_ct_CC" = x
; then
3490 case $cross_compiling:$ac_tool_warned in
3492 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3493 whose name does not start with the host triplet. If you think this
3494 configuration is useful to you, please write to autoconf@gnu.org." >&5
3495 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3496 whose name does not start with the host triplet. If you think this
3497 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3498 ac_tool_warned
=yes ;;
3507 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3508 See \`config.log' for more details." >&5
3509 echo "$as_me: error: no acceptable C compiler found in \$PATH
3510 See \`config.log' for more details." >&2;}
3511 { (exit 1); exit 1; }; }
3513 # Provide some information about the compiler.
3514 echo "$as_me:$LINENO: checking for C compiler version" >&5
3515 ac_compiler
=`set X $ac_compile; echo $2`
3516 { (ac_try
="$ac_compiler --version >&5"
3518 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3519 *) ac_try_echo=$ac_try;;
3521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3522 (eval "$ac_compiler --version >&5") 2>&5
3524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525 (exit $ac_status); }
3526 { (ac_try="$ac_compiler -v >&5"
3528 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3529 *) ac_try_echo
=$ac_try;;
3531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3532 (eval "$ac_compiler -v >&5") 2>&5
3534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3535 (exit $ac_status); }
3536 { (ac_try
="$ac_compiler -V >&5"
3538 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3539 *) ac_try_echo=$ac_try;;
3541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3542 (eval "$ac_compiler -V >&5") 2>&5
3544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3545 (exit $ac_status); }
3547 cat >conftest.$ac_ext <<_ACEOF
3550 cat confdefs.h >>conftest.$ac_ext
3551 cat >>conftest.$ac_ext <<_ACEOF
3552 /* end confdefs.h. */
3562 ac_clean_files_save=$ac_clean_files
3563 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3564 # Try to create an executable without -o first, disregard a.out.
3565 # It will help us diagnose broken compilers, and finding out an intuition
3567 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3568 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3569 ac_link_default=`echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3571 # List of possible output files, starting from the most likely.
3572 # The algorithm is not robust to junk in `.
', hence go to wildcards (a.*)
3573 # only as a last resort. b.out is created by i960 compilers.
3574 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
'
3576 # The IRIX 6 linker writes into existing files which may not be
3577 # executable, retaining their permissions. Remove them first so a
3578 # subsequent execution test works.
3580 for ac_file in $ac_files
3583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3584 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3589 if { (ac_try="$ac_link_default"
3591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3592 *) ac_try_echo=$ac_try;;
3594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3595 (eval "$ac_link_default") 2>&5
3597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3598 (exit $ac_status); }; then
3599 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3600 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3601 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3602 # so that the user can short-circuit this test for compilers unknown to
3604 for ac_file
in $ac_files ''
3606 test -f "$ac_file" ||
continue
3608 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
)
3611 # We found the default executable, but exeext='' is most
3615 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3617 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3619 # We set ac_cv_exeext here because the later test for it is not
3620 # safe: cross compilers may not add the suffix if given an `-o'
3621 # argument, so we may need to know it at that point already.
3622 # Even if this section looks crufty: it has the advantage of
3629 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3635 { echo "$as_me:$LINENO: result: $ac_file" >&5
3636 echo "${ECHO_T}$ac_file" >&6; }
3637 if test -z "$ac_file"; then
3638 echo "$as_me: failed program was:" >&5
3639 sed 's/^/| /' conftest.
$ac_ext >&5
3641 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3642 See \`config.log' for more details." >&5
3643 echo "$as_me: error: C compiler cannot create executables
3644 See \`config.log' for more details." >&2;}
3645 { (exit 77); exit 77; }; }
3648 ac_exeext
=$ac_cv_exeext
3650 # Check that the compiler produces executables we can run. If not, either
3651 # the compiler is broken, or we cross compile.
3652 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3653 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3654 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3655 # If not cross compiling, check that we can run a simple program.
3656 if test "$cross_compiling" != yes; then
3657 if { ac_try
='./$ac_file'
3658 { (case "(($ac_try" in
3659 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_try") 2>&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); }; }; then
3669 if test "$cross_compiling" = maybe; then
3672 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3673 If you meant to cross compile, use \`--host'.
3674 See \`config.log' for more details.
" >&5
3675 echo "$as_me: error
: cannot run C compiled programs.
3676 If you meant to cross compile
, use \
`--host'.
3677 See \`config.log
' for more details." >&2;}
3678 { (exit 1); exit 1; }; }
3682 { echo "$as_me:$LINENO: result: yes" >&5
3683 echo "${ECHO_T}yes" >&6; }
3685 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3686 ac_clean_files=$ac_clean_files_save
3687 # Check that the compiler produces executables we can run. If not, either
3688 # the compiler is broken, or we cross compile.
3689 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3690 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3691 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3692 echo "${ECHO_T}$cross_compiling" >&6; }
3694 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3695 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3696 if { (ac_try="$ac_link"
3698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3699 *) ac_try_echo=$ac_try;;
3701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3702 (eval "$ac_link") 2>&5
3704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3705 (exit $ac_status); }; then
3706 # If both `conftest.exe' and
`conftest' are `present
' (well, observable)
3707 # catch `conftest.exe'. For instance with Cygwin
, `ls conftest' will
3708 # work properly (i.e., refer to `conftest.exe
'), while it won't with
3710 for ac_file
in conftest.exe conftest conftest.
*; do
3711 test -f "$ac_file" ||
continue
3713 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.o |
*.obj
) ;;
3714 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3720 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3721 See \`config.log' for more details." >&5
3722 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3723 See \`config.log' for more details." >&2;}
3724 { (exit 1); exit 1; }; }
3727 rm -f conftest
$ac_cv_exeext
3728 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3729 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3731 rm -f conftest.
$ac_ext
3732 EXEEXT
=$ac_cv_exeext
3734 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3735 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3736 if test "${ac_cv_objext+set}" = set; then
3737 echo $ECHO_N "(cached) $ECHO_C" >&6
3739 cat >conftest.
$ac_ext <<_ACEOF
3742 cat confdefs.h
>>conftest.
$ac_ext
3743 cat >>conftest.
$ac_ext <<_ACEOF
3744 /* end confdefs.h. */
3754 rm -f conftest.o conftest.obj
3755 if { (ac_try
="$ac_compile"
3757 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3758 *) ac_try_echo=$ac_try;;
3760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3761 (eval "$ac_compile") 2>&5
3763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3764 (exit $ac_status); }; then
3765 for ac_file in conftest.o conftest.obj conftest.*; do
3766 test -f "$ac_file" || continue;
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3769 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3774 echo "$as_me: failed program was:" >&5
3775 sed 's/^/| /' conftest.$ac_ext >&5
3777 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3778 See \`config.log
' for more details." >&5
3779 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3780 See \`config.log' for more details.
" >&2;}
3781 { (exit 1); exit 1; }; }
3784 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3786 { echo "$as_me:$LINENO: result
: $ac_cv_objext" >&5
3787 echo "${ECHO_T}$ac_cv_objext" >&6; }
3788 OBJEXT=$ac_cv_objext
3790 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler
" >&5
3791 echo $ECHO_N "checking whether we are using the GNU C compiler...
$ECHO_C" >&6; }
3792 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3793 echo $ECHO_N "(cached
) $ECHO_C" >&6
3795 cat >conftest.$ac_ext <<_ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3813 rm -f conftest.$ac_objext
3814 if { (ac_try="$ac_compile"
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3819 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_compile") 2>conftest.er1
3822 grep -v '^ *+' conftest.er1 >conftest.err
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3826 (exit $ac_status); } && {
3827 test -z "$ac_c_werror_flag" ||
3828 test ! -s conftest.err
3829 } && test -s conftest.$ac_objext; then
3832 echo "$as_me: failed program was
:" >&5
3833 sed 's/^/| /' conftest.$ac_ext >&5
3838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3839 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3842 { echo "$as_me:$LINENO: result
: $ac_cv_c_compiler_gnu" >&5
3843 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3844 GCC=`test $ac_compiler_gnu = yes && echo yes`
3845 ac_test_CFLAGS=${CFLAGS+set}
3846 ac_save_CFLAGS=$CFLAGS
3847 { echo "$as_me:$LINENO: checking whether
$CC accepts
-g" >&5
3848 echo $ECHO_N "checking whether
$CC accepts
-g...
$ECHO_C" >&6; }
3849 if test "${ac_cv_prog_cc_g+set}" = set; then
3850 echo $ECHO_N "(cached
) $ECHO_C" >&6
3852 ac_save_c_werror_flag=$ac_c_werror_flag
3853 ac_c_werror_flag=yes
3856 cat >conftest.$ac_ext <<_ACEOF
3859 cat confdefs.h >>conftest.$ac_ext
3860 cat >>conftest.$ac_ext <<_ACEOF
3861 /* end confdefs.h. */
3871 rm -f conftest.$ac_objext
3872 if { (ac_try="$ac_compile"
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3878 (eval "$ac_compile") 2>conftest.er1
3880 grep -v '^ *+' conftest.er1 >conftest.err
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3884 (exit $ac_status); } && {
3885 test -z "$ac_c_werror_flag" ||
3886 test ! -s conftest.err
3887 } && test -s conftest.$ac_objext; then
3890 echo "$as_me: failed program was
:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3894 cat >conftest.$ac_ext <<_ACEOF
3897 cat confdefs.h >>conftest.$ac_ext
3898 cat >>conftest.$ac_ext <<_ACEOF
3899 /* end confdefs.h. */
3909 rm -f conftest.$ac_objext
3910 if { (ac_try="$ac_compile"
3912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3913 *) ac_try_echo=$ac_try;;
3915 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3916 (eval "$ac_compile") 2>conftest.er1
3918 grep -v '^ *+' conftest.er1 >conftest.err
3920 cat conftest.err >&5
3921 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3922 (exit $ac_status); } && {
3923 test -z "$ac_c_werror_flag" ||
3924 test ! -s conftest.err
3925 } && test -s conftest.$ac_objext; then
3928 echo "$as_me: failed program was
:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3931 ac_c_werror_flag=$ac_save_c_werror_flag
3933 cat >conftest.$ac_ext <<_ACEOF
3936 cat confdefs.h >>conftest.$ac_ext
3937 cat >>conftest.$ac_ext <<_ACEOF
3938 /* end confdefs.h. */
3948 rm -f conftest.$ac_objext
3949 if { (ac_try="$ac_compile"
3951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3952 *) ac_try_echo=$ac_try;;
3954 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
3955 (eval "$ac_compile") 2>conftest.er1
3957 grep -v '^ *+' conftest.er1 >conftest.err
3959 cat conftest.err >&5
3960 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
3961 (exit $ac_status); } && {
3962 test -z "$ac_c_werror_flag" ||
3963 test ! -s conftest.err
3964 } && test -s conftest.$ac_objext; then
3967 echo "$as_me: failed program was
:" >&5
3968 sed 's/^/| /' conftest.$ac_ext >&5
3973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3980 ac_c_werror_flag=$ac_save_c_werror_flag
3982 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_g" >&5
3983 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3984 if test "$ac_test_CFLAGS" = set; then
3985 CFLAGS=$ac_save_CFLAGS
3986 elif test $ac_cv_prog_cc_g = yes; then
3987 if test "$GCC" = yes; then
3993 if test "$GCC" = yes; then
3999 { echo "$as_me:$LINENO: checking
for $CC option to accept ISO C89
" >&5
4000 echo $ECHO_N "checking
for $CC option to accept ISO C89...
$ECHO_C" >&6; }
4001 if test "${ac_cv_prog_cc_c89+set}" = set; then
4002 echo $ECHO_N "(cached
) $ECHO_C" >&6
4004 ac_cv_prog_cc_c89=no
4006 cat >conftest.$ac_ext <<_ACEOF
4009 cat confdefs.h >>conftest.$ac_ext
4010 cat >>conftest.$ac_ext <<_ACEOF
4011 /* end confdefs.h. */
4014 #include <sys/types.h>
4015 #include <sys/stat.h>
4016 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4017 struct buf { int x; };
4018 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4019 static char *e (p, i)
4025 static char *f (char * (*g) (char **, int), char **p, ...)
4030 s = g (p, va_arg (v,int));
4035 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4036 function prototypes and stuff, but not '\xHH' hex character constants.
4037 These don't provoke an error unfortunately, instead are silently treated
4038 as 'x'. The following induces an error, until -std is added to get
4039 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4040 array size at least. It's necessary to write '\x00'==0 to get something
4041 that's true only with -std. */
4042 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4044 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4045 inside strings and character constants. */
4047 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4049 int test (int i, double x);
4050 struct s1 {int (*f) (int a);};
4051 struct s2 {int (*f) (double a);};
4052 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4058 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4063 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4064 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4066 CC="$ac_save_CC $ac_arg"
4067 rm -f conftest.$ac_objext
4068 if { (ac_try="$ac_compile"
4070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4071 *) ac_try_echo=$ac_try;;
4073 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4074 (eval "$ac_compile") 2>conftest.er1
4076 grep -v '^ *+' conftest.er1 >conftest.err
4078 cat conftest.err >&5
4079 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4080 (exit $ac_status); } && {
4081 test -z "$ac_c_werror_flag" ||
4082 test ! -s conftest.err
4083 } && test -s conftest.$ac_objext; then
4084 ac_cv_prog_cc_c89=$ac_arg
4086 echo "$as_me: failed program was
:" >&5
4087 sed 's/^/| /' conftest.$ac_ext >&5
4092 rm -f core conftest.err conftest.$ac_objext
4093 test "x
$ac_cv_prog_cc_c89" != "xno
" && break
4095 rm -f conftest.$ac_ext
4100 case "x
$ac_cv_prog_cc_c89" in
4102 { echo "$as_me:$LINENO: result
: none needed
" >&5
4103 echo "${ECHO_T}none needed
" >&6; } ;;
4105 { echo "$as_me:$LINENO: result
: unsupported
" >&5
4106 echo "${ECHO_T}unsupported
" >&6; } ;;
4108 CC="$CC $ac_cv_prog_cc_c89"
4109 { echo "$as_me:$LINENO: result
: $ac_cv_prog_cc_c89" >&5
4110 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4115 ac_cpp='$CPP $CPPFLAGS'
4116 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4117 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4118 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121 # On Suns, sometimes $CPP names a directory.
4122 if test -n "$CPP" && test -d "$CPP"; then
4126 #### Some systems specify a CPP to use unless we are using GCC.
4127 #### Now that we know whether we are using GCC, we can decide whether
4128 #### to use that one.
4129 if test "x
$NON_GNU_CPP" != x && test x$GCC != xyes && test "x
$CPP" = x
4134 #### Some systems specify a CC to use unless we are using GCC.
4135 #### Now that we know whether we are using GCC, we can decide whether
4136 #### to use that one.
4137 if test "x
$NON_GNU_CC" != x && test x$GCC != xyes &&
4138 test x$cc_specified != xyes
4143 if test x$GCC = xyes && test "x
$GCC_TEST_OPTIONS" != x
4145 CC="$CC $GCC_TEST_OPTIONS"
4148 if test x$GCC = x && test "x
$NON_GCC_TEST_OPTIONS" != x
4150 CC="$CC $NON_GCC_TEST_OPTIONS"
4155 ac_cpp='$CPP $CPPFLAGS'
4156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4159 { echo "$as_me:$LINENO: checking how to run the C preprocessor
" >&5
4160 echo $ECHO_N "checking how to run the C preprocessor...
$ECHO_C" >&6; }
4161 # On Suns, sometimes $CPP names a directory.
4162 if test -n "$CPP" && test -d "$CPP"; then
4165 if test -z "$CPP"; then
4166 if test "${ac_cv_prog_CPP+set}" = set; then
4167 echo $ECHO_N "(cached
) $ECHO_C" >&6
4169 # Double quotes because CPP needs to be expanded
4170 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib
/cpp
"
4173 for ac_c_preproc_warn_flag in '' yes
4175 # Use a header file that comes with gcc, so configuring glibc
4176 # with a fresh cross-compiler works.
4177 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4178 # <limits.h> exists even on freestanding compilers.
4179 # On the NeXT, cc -E runs the code through the compiler's parser,
4180 # not just through cpp. "Syntax error
" is here to catch this case.
4181 cat >conftest.$ac_ext <<_ACEOF
4184 cat confdefs.h >>conftest.$ac_ext
4185 cat >>conftest.$ac_ext <<_ACEOF
4186 /* end confdefs.h. */
4188 # include <limits.h>
4190 # include <assert.h>
4194 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4197 *) ac_try_echo=$ac_try;;
4199 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4200 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4202 grep -v '^ *+' conftest.er1 >conftest.err
4204 cat conftest.err >&5
4205 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4206 (exit $ac_status); } >/dev/null && {
4207 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4208 test ! -s conftest.err
4212 echo "$as_me: failed program was
:" >&5
4213 sed 's/^/| /' conftest.$ac_ext >&5
4215 # Broken: fails on valid input.
4219 rm -f conftest.err conftest.$ac_ext
4221 # OK, works on sane cases. Now check whether nonexistent headers
4222 # can be detected and how.
4223 cat >conftest.$ac_ext <<_ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 #include <ac_nonexistent.h>
4231 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4234 *) ac_try_echo=$ac_try;;
4236 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4237 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4239 grep -v '^ *+' conftest.er1 >conftest.err
4241 cat conftest.err >&5
4242 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4243 (exit $ac_status); } >/dev/null && {
4244 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4245 test ! -s conftest.err
4247 # Broken: success on invalid input.
4250 echo "$as_me: failed program was
:" >&5
4251 sed 's/^/| /' conftest.$ac_ext >&5
4253 # Passes both tests.
4258 rm -f conftest.err conftest.$ac_ext
4261 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4262 rm -f conftest.err conftest.$ac_ext
4263 if $ac_preproc_ok; then
4275 { echo "$as_me:$LINENO: result
: $CPP" >&5
4276 echo "${ECHO_T}$CPP" >&6; }
4278 for ac_c_preproc_warn_flag in '' yes
4280 # Use a header file that comes with gcc, so configuring glibc
4281 # with a fresh cross-compiler works.
4282 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4283 # <limits.h> exists even on freestanding compilers.
4284 # On the NeXT, cc -E runs the code through the compiler's parser,
4285 # not just through cpp. "Syntax error
" is here to catch this case.
4286 cat >conftest.$ac_ext <<_ACEOF
4289 cat confdefs.h >>conftest.$ac_ext
4290 cat >>conftest.$ac_ext <<_ACEOF
4291 /* end confdefs.h. */
4293 # include <limits.h>
4295 # include <assert.h>
4299 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4302 *) ac_try_echo=$ac_try;;
4304 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4305 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4307 grep -v '^ *+' conftest.er1 >conftest.err
4309 cat conftest.err >&5
4310 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4311 (exit $ac_status); } >/dev/null && {
4312 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4313 test ! -s conftest.err
4317 echo "$as_me: failed program was
:" >&5
4318 sed 's/^/| /' conftest.$ac_ext >&5
4320 # Broken: fails on valid input.
4324 rm -f conftest.err conftest.$ac_ext
4326 # OK, works on sane cases. Now check whether nonexistent headers
4327 # can be detected and how.
4328 cat >conftest.$ac_ext <<_ACEOF
4331 cat confdefs.h >>conftest.$ac_ext
4332 cat >>conftest.$ac_ext <<_ACEOF
4333 /* end confdefs.h. */
4334 #include <ac_nonexistent.h>
4336 if { (ac_try="$ac_cpp conftest.
$ac_ext"
4338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4339 *) ac_try_echo=$ac_try;;
4341 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
4342 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
4344 grep -v '^ *+' conftest.er1 >conftest.err
4346 cat conftest.err >&5
4347 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
4348 (exit $ac_status); } >/dev/null && {
4349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4350 test ! -s conftest.err
4352 # Broken: success on invalid input.
4355 echo "$as_me: failed program was
:" >&5
4356 sed 's/^/| /' conftest.$ac_ext >&5
4358 # Passes both tests.
4363 rm -f conftest.err conftest.$ac_ext
4366 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4367 rm -f conftest.err conftest.$ac_ext
4368 if $ac_preproc_ok; then
4371 { { echo "$as_me:$LINENO: error
: C preprocessor
\"$CPP\" fails sanity check
4372 See \
`config.log' for more details." >&5
4373 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4374 See \`config.log
' for more details." >&2;}
4375 { (exit 1); exit 1; }; }
4379 ac_cpp='$CPP $CPPFLAGS'
4380 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
4381 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
4382 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4386 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4387 if test "${ac_cv_path_GREP+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4390 # Extract the first word of "grep ggrep" to use in msg output
4391 if test -z "$GREP"; then
4392 set dummy grep ggrep; ac_prog_name=$2
4393 if test "${ac_cv_path_GREP+set}" = set; then
4394 echo $ECHO_N "(cached) $ECHO_C" >&6
4396 ac_path_GREP_found=false
4397 # Loop through the user's path and
test for each of PROGNAME-LIST
4398 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4399 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4402 test -z "$as_dir" && as_dir
=.
4403 for ac_prog
in grep ggrep
; do
4404 for ac_exec_ext
in '' $ac_executable_extensions; do
4405 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4406 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4407 # Check for GNU ac_path_GREP and select it if it is found.
4408 # Check for GNU $ac_path_GREP
4409 case `"$ac_path_GREP" --version 2>&1` in
4411 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4414 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4417 cat "conftest.in" "conftest.in" >"conftest.tmp"
4418 mv "conftest.tmp" "conftest.in"
4419 cp "conftest.in" "conftest.nl"
4420 echo 'GREP' >> "conftest.nl"
4421 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4422 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4423 ac_count
=`expr $ac_count + 1`
4424 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4425 # Best one so far, save it but keep looking for a better one
4426 ac_cv_path_GREP
="$ac_path_GREP"
4427 ac_path_GREP_max
=$ac_count
4429 # 10*(2^10) chars as input seems more than enough
4430 test $ac_count -gt 10 && break
4432 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4436 $ac_path_GREP_found && break 3
4446 GREP
="$ac_cv_path_GREP"
4447 if test -z "$GREP"; then
4448 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4449 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4450 { (exit 1); exit 1; }; }
4454 ac_cv_path_GREP
=$GREP
4459 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4460 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4461 GREP
="$ac_cv_path_GREP"
4464 { echo "$as_me:$LINENO: checking for egrep" >&5
4465 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4466 if test "${ac_cv_path_EGREP+set}" = set; then
4467 echo $ECHO_N "(cached) $ECHO_C" >&6
4469 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4470 then ac_cv_path_EGREP
="$GREP -E"
4472 # Extract the first word of "egrep" to use in msg output
4473 if test -z "$EGREP"; then
4474 set dummy
egrep; ac_prog_name
=$2
4475 if test "${ac_cv_path_EGREP+set}" = set; then
4476 echo $ECHO_N "(cached) $ECHO_C" >&6
4478 ac_path_EGREP_found
=false
4479 # Loop through the user's path and test for each of PROGNAME-LIST
4480 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4481 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4484 test -z "$as_dir" && as_dir
=.
4485 for ac_prog
in egrep; do
4486 for ac_exec_ext
in '' $ac_executable_extensions; do
4487 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4488 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4489 # Check for GNU ac_path_EGREP and select it if it is found.
4490 # Check for GNU $ac_path_EGREP
4491 case `"$ac_path_EGREP" --version 2>&1` in
4493 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4496 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4499 cat "conftest.in" "conftest.in" >"conftest.tmp"
4500 mv "conftest.tmp" "conftest.in"
4501 cp "conftest.in" "conftest.nl"
4502 echo 'EGREP' >> "conftest.nl"
4503 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4504 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4505 ac_count
=`expr $ac_count + 1`
4506 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4507 # Best one so far, save it but keep looking for a better one
4508 ac_cv_path_EGREP
="$ac_path_EGREP"
4509 ac_path_EGREP_max
=$ac_count
4511 # 10*(2^10) chars as input seems more than enough
4512 test $ac_count -gt 10 && break
4514 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4518 $ac_path_EGREP_found && break 3
4528 EGREP
="$ac_cv_path_EGREP"
4529 if test -z "$EGREP"; then
4530 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4531 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4532 { (exit 1); exit 1; }; }
4536 ac_cv_path_EGREP
=$EGREP
4542 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4543 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4544 EGREP
="$ac_cv_path_EGREP"
4548 { echo "$as_me:$LINENO: checking for AIX" >&5
4549 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4550 cat >conftest.
$ac_ext <<_ACEOF
4553 cat confdefs.h
>>conftest.
$ac_ext
4554 cat >>conftest.
$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4562 $EGREP "yes" >/dev
/null
2>&1; then
4563 { echo "$as_me:$LINENO: result: yes" >&5
4564 echo "${ECHO_T}yes" >&6; }
4565 cat >>confdefs.h
<<\_ACEOF
4566 #define _ALL_SOURCE 1
4570 { echo "$as_me:$LINENO: result: no" >&5
4571 echo "${ECHO_T}no" >&6; }
4577 cat >>confdefs.h
<<\_ACEOF
4578 #define _GNU_SOURCE 1
4583 ### Use -Wno-pointer-sign if the compiler supports it
4584 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4585 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4586 SAVE_CFLAGS
="$CFLAGS"
4587 CFLAGS
="$CFLAGS -Wno-pointer-sign"
4588 cat >conftest.
$ac_ext <<_ACEOF
4591 cat confdefs.h
>>conftest.
$ac_ext
4592 cat >>conftest.
$ac_ext <<_ACEOF
4593 /* end confdefs.h. */
4603 rm -f conftest.
$ac_objext
4604 if { (ac_try
="$ac_compile"
4606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4607 *) ac_try_echo=$ac_try;;
4609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4610 (eval "$ac_compile") 2>conftest.er1
4612 grep -v '^ *+' conftest.er1 >conftest.err
4614 cat conftest.err >&5
4615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616 (exit $ac_status); } && {
4617 test -z "$ac_c_werror_flag" ||
4618 test ! -s conftest.err
4619 } && test -s conftest.$ac_objext; then
4622 echo "$as_me: failed program was:" >&5
4623 sed 's/^/| /' conftest.$ac_ext >&5
4628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4629 if test $has_option = yes; then
4630 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4632 { echo "$as_me:$LINENO: result: $has_option" >&5
4633 echo "${ECHO_T}$has_option" >&6; }
4634 CFLAGS="$SAVE_CFLAGS"
4638 #### Some other nice autoconf tests.
4640 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4641 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4643 if test "$LN_S" = "ln -s"; then
4644 { echo "$as_me:$LINENO: result: yes" >&5
4645 echo "${ECHO_T}yes" >&6; }
4647 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4648 echo "${ECHO_T}no, using $LN_S" >&6; }
4652 ac_cpp='$CPP $CPPFLAGS'
4653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4656 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4657 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4658 # On Suns, sometimes $CPP names a directory.
4659 if test -n "$CPP" && test -d "$CPP"; then
4662 if test -z "$CPP"; then
4663 if test "${ac_cv_prog_CPP+set}" = set; then
4664 echo $ECHO_N "(cached) $ECHO_C" >&6
4666 # Double quotes because CPP needs to be expanded
4667 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4670 for ac_c_preproc_warn_flag in '' yes
4672 # Use a header file that comes with gcc, so configuring glibc
4673 # with a fresh cross-compiler works.
4674 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4675 # <limits.h> exists even on freestanding compilers.
4676 # On the NeXT, cc -E runs the code through the compiler's parser,
4677 # not just through cpp. "Syntax error" is here to catch this case.
4678 cat >conftest.$ac_ext <<_ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4685 # include <limits.h>
4687 # include <assert.h>
4691 if { (ac_try="$ac_cpp conftest.$ac_ext"
4693 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4694 *) ac_try_echo
=$ac_try;;
4696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4697 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4699 grep -v '^ *+' conftest.er1
>conftest.err
4701 cat conftest.err
>&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); } >/dev
/null
&& {
4704 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4705 test ! -s conftest.err
4709 echo "$as_me: failed program was:" >&5
4710 sed 's/^/| /' conftest.
$ac_ext >&5
4712 # Broken: fails on valid input.
4716 rm -f conftest.err conftest.
$ac_ext
4718 # OK, works on sane cases. Now check whether nonexistent headers
4719 # can be detected and how.
4720 cat >conftest.
$ac_ext <<_ACEOF
4723 cat confdefs.h
>>conftest.
$ac_ext
4724 cat >>conftest.
$ac_ext <<_ACEOF
4725 /* end confdefs.h. */
4726 #include <ac_nonexistent.h>
4728 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4730 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4731 *) ac_try_echo=$ac_try;;
4733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4734 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4736 grep -v '^ *+' conftest.er1 >conftest.err
4738 cat conftest.err >&5
4739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4740 (exit $ac_status); } >/dev/null && {
4741 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4742 test ! -s conftest.err
4744 # Broken: success on invalid input.
4747 echo "$as_me: failed program was:" >&5
4748 sed 's/^/| /' conftest.$ac_ext >&5
4750 # Passes both tests.
4755 rm -f conftest.err conftest.$ac_ext
4758 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4759 rm -f conftest.err conftest.
$ac_ext
4760 if $ac_preproc_ok; then
4772 { echo "$as_me:$LINENO: result: $CPP" >&5
4773 echo "${ECHO_T}$CPP" >&6; }
4775 for ac_c_preproc_warn_flag
in '' yes
4777 # Use a header file that comes with gcc, so configuring glibc
4778 # with a fresh cross-compiler works.
4779 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4780 # <limits.h> exists even on freestanding compilers.
4781 # On the NeXT, cc -E runs the code through the compiler's parser,
4782 # not just through cpp. "Syntax error" is here to catch this case.
4783 cat >conftest.
$ac_ext <<_ACEOF
4786 cat confdefs.h
>>conftest.
$ac_ext
4787 cat >>conftest.
$ac_ext <<_ACEOF
4788 /* end confdefs.h. */
4790 # include <limits.h>
4792 # include <assert.h>
4796 if { (ac_try
="$ac_cpp conftest.$ac_ext"
4798 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4799 *) ac_try_echo=$ac_try;;
4801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4802 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4804 grep -v '^ *+' conftest.er1 >conftest.err
4806 cat conftest.err >&5
4807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4808 (exit $ac_status); } >/dev/null && {
4809 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4810 test ! -s conftest.err
4814 echo "$as_me: failed program was:" >&5
4815 sed 's/^/| /' conftest.$ac_ext >&5
4817 # Broken: fails on valid input.
4821 rm -f conftest.err conftest.$ac_ext
4823 # OK, works on sane cases. Now check whether nonexistent headers
4824 # can be detected and how.
4825 cat >conftest.$ac_ext <<_ACEOF
4828 cat confdefs.h >>conftest.$ac_ext
4829 cat >>conftest.$ac_ext <<_ACEOF
4830 /* end confdefs.h. */
4831 #include <ac_nonexistent.h>
4833 if { (ac_try="$ac_cpp conftest.$ac_ext"
4835 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4836 *) ac_try_echo
=$ac_try;;
4838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4841 grep -v '^ *+' conftest.er1
>conftest.err
4843 cat conftest.err
>&5
4844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4845 (exit $ac_status); } >/dev
/null
&& {
4846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4847 test ! -s conftest.err
4849 # Broken: success on invalid input.
4852 echo "$as_me: failed program was:" >&5
4853 sed 's/^/| /' conftest.
$ac_ext >&5
4855 # Passes both tests.
4860 rm -f conftest.err conftest.
$ac_ext
4863 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4864 rm -f conftest.err conftest.
$ac_ext
4865 if $ac_preproc_ok; then
4868 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4869 See \`config.log' for more details." >&5
4870 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4871 See \`config.log' for more details." >&2;}
4872 { (exit 1); exit 1; }; }
4876 ac_cpp
='$CPP $CPPFLAGS'
4877 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4878 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4879 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4881 # Find a good install program. We prefer a C program (faster),
4882 # so one script is as good as another. But avoid the broken or
4883 # incompatible versions:
4884 # SysV /etc/install, /usr/sbin/install
4885 # SunOS /usr/etc/install
4886 # IRIX /sbin/install
4888 # AmigaOS /C/install, which installs bootblocks on floppy discs
4889 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4890 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4891 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4892 # OS/2's system install, which has a completely different semantic
4893 # ./install, which can be erroneously created by make from ./install.sh.
4894 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4895 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4896 if test -z "$INSTALL"; then
4897 if test "${ac_cv_path_install+set}" = set; then
4898 echo $ECHO_N "(cached) $ECHO_C" >&6
4900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4904 test -z "$as_dir" && as_dir
=.
4905 # Account for people who put trailing slashes in PATH elements.
4907 .
/ | .
// |
/cC
/* | \
4908 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
4909 ?
:\\/os2
\\/install\\/* | ?
:\\/OS2
\\/INSTALL
\\/* | \
4912 # OSF1 and SCO ODT 3.0 have their own names for install.
4913 # Don't use installbsd from OSF since it installs stuff as root
4915 for ac_prog
in ginstall scoinst
install; do
4916 for ac_exec_ext
in '' $ac_executable_extensions; do
4917 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4918 if test $ac_prog = install &&
4919 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4920 # AIX install. It has an incompatible calling convention.
4922 elif test $ac_prog = install &&
4923 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
4924 # program-specific install script used by HP pwplus--don't use.
4927 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
4940 if test "${ac_cv_path_install+set}" = set; then
4941 INSTALL
=$ac_cv_path_install
4943 # As a last resort, use the slow shell script. Don't cache a
4944 # value for INSTALL within a source directory, because that will
4945 # break other packages using the cache if that directory is
4946 # removed, or if the value is a relative name.
4947 INSTALL
=$ac_install_sh
4950 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4951 echo "${ECHO_T}$INSTALL" >&6; }
4953 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4954 # It thinks the first close brace ends the variable substitution.
4955 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
4957 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
4959 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
4961 if test "x$RANLIB" = x
; then
4962 if test -n "$ac_tool_prefix"; then
4963 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4964 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
4965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4967 if test "${ac_cv_prog_RANLIB+set}" = set; then
4968 echo $ECHO_N "(cached) $ECHO_C" >&6
4970 if test -n "$RANLIB"; then
4971 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
4973 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4977 test -z "$as_dir" && as_dir
=.
4978 for ac_exec_ext
in '' $ac_executable_extensions; do
4979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4980 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
4981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 RANLIB
=$ac_cv_prog_RANLIB
4991 if test -n "$RANLIB"; then
4992 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4993 echo "${ECHO_T}$RANLIB" >&6; }
4995 { echo "$as_me:$LINENO: result: no" >&5
4996 echo "${ECHO_T}no" >&6; }
5001 if test -z "$ac_cv_prog_RANLIB"; then
5002 ac_ct_RANLIB
=$RANLIB
5003 # Extract the first word of "ranlib", so it can be a program name with args.
5004 set dummy ranlib
; ac_word
=$2
5005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5007 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5008 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 if test -n "$ac_ct_RANLIB"; then
5011 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
5013 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5017 test -z "$as_dir" && as_dir
=.
5018 for ac_exec_ext
in '' $ac_executable_extensions; do
5019 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5020 ac_cv_prog_ac_ct_RANLIB
="ranlib"
5021 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
5031 if test -n "$ac_ct_RANLIB"; then
5032 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5033 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5035 { echo "$as_me:$LINENO: result: no" >&5
5036 echo "${ECHO_T}no" >&6; }
5039 if test "x$ac_ct_RANLIB" = x
; then
5042 case $cross_compiling:$ac_tool_warned in
5044 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5045 whose name does not start with the host triplet. If you think this
5046 configuration is useful to you, please write to autoconf@gnu.org." >&5
5047 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5048 whose name does not start with the host triplet. If you think this
5049 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5050 ac_tool_warned
=yes ;;
5052 RANLIB
=$ac_ct_RANLIB
5055 RANLIB
="$ac_cv_prog_RANLIB"
5059 # Extract the first word of "install-info", so it can be a program name with args.
5060 set dummy install-info
; ac_word
=$2
5061 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5062 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5063 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5064 echo $ECHO_N "(cached) $ECHO_C" >&6
5066 case $INSTALL_INFO in
5068 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5071 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5075 test -z "$as_dir" && as_dir
=.
5076 for ac_exec_ext
in '' $ac_executable_extensions; do
5077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5078 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5079 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5089 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5090 if test -n "$INSTALL_INFO"; then
5091 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5092 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5094 { echo "$as_me:$LINENO: result: no" >&5
5095 echo "${ECHO_T}no" >&6; }
5099 # Extract the first word of "install-info", so it can be a program name with args.
5100 set dummy install-info
; ac_word
=$2
5101 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5102 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5103 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5104 echo $ECHO_N "(cached) $ECHO_C" >&6
5106 case $INSTALL_INFO in
5108 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5111 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5112 for as_dir
in /usr
/sbin
5115 test -z "$as_dir" && as_dir
=.
5116 for ac_exec_ext
in '' $ac_executable_extensions; do
5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5118 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5119 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5129 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5130 if test -n "$INSTALL_INFO"; then
5131 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5132 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5134 { echo "$as_me:$LINENO: result: no" >&5
5135 echo "${ECHO_T}no" >&6; }
5139 # Extract the first word of "install-info", so it can be a program name with args.
5140 set dummy install-info
; ac_word
=$2
5141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5143 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5144 echo $ECHO_N "(cached) $ECHO_C" >&6
5146 case $INSTALL_INFO in
5148 ac_cv_path_INSTALL_INFO
="$INSTALL_INFO" # Let the user override the test with a path.
5151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5155 test -z "$as_dir" && as_dir
=.
5156 for ac_exec_ext
in '' $ac_executable_extensions; do
5157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5158 ac_cv_path_INSTALL_INFO
="$as_dir/$ac_word$ac_exec_ext"
5159 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO
=":"
5170 INSTALL_INFO
=$ac_cv_path_INSTALL_INFO
5171 if test -n "$INSTALL_INFO"; then
5172 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5173 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5175 { echo "$as_me:$LINENO: result: no" >&5
5176 echo "${ECHO_T}no" >&6; }
5180 # Extract the first word of "gzip", so it can be a program name with args.
5181 set dummy
gzip; ac_word
=$2
5182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5184 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5185 echo $ECHO_N "(cached) $ECHO_C" >&6
5189 ac_cv_path_GZIP_PROG
="$GZIP_PROG" # Let the user override the test with a path.
5192 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5196 test -z "$as_dir" && as_dir
=.
5197 for ac_exec_ext
in '' $ac_executable_extensions; do
5198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5199 ac_cv_path_GZIP_PROG
="$as_dir/$ac_word$ac_exec_ext"
5200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 GZIP_PROG
=$ac_cv_path_GZIP_PROG
5211 if test -n "$GZIP_PROG"; then
5212 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5213 echo "${ECHO_T}$GZIP_PROG" >&6; }
5215 { echo "$as_me:$LINENO: result: no" >&5
5216 echo "${ECHO_T}no" >&6; }
5222 if test x
$GCC = xyes
&& test "x$GCC_LINK_TEST_OPTIONS" != x
5224 ac_link
="$ac_link $GCC_LINK_TEST_OPTIONS"
5227 if test x
$GCC = x
&& test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5229 ac_link
="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5233 late_LDFLAGS
=$LDFLAGS
5234 if test "$GCC" = yes; then
5235 LDFLAGS
="$LDFLAGS -Wl,-znocombreloc"
5237 LDFLAGS
="$LDFLAGS -znocombreloc"
5240 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5241 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5242 cat >conftest.
$ac_ext <<_ACEOF
5245 rm -f conftest.
$ac_objext conftest
$ac_exeext
5246 if { (ac_try
="$ac_link"
5248 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5249 *) ac_try_echo=$ac_try;;
5251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5252 (eval "$ac_link") 2>conftest.er1
5254 grep -v '^ *+' conftest.er1 >conftest.err
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } && {
5259 test -z "$ac_c_werror_flag" ||
5260 test ! -s conftest.err
5261 } && test -s conftest$ac_exeext &&
5262 $as_test_x conftest$ac_exeext; then
5263 { echo "$as_me:$LINENO: result: yes" >&5
5264 echo "${ECHO_T}yes" >&6; }
5266 echo "$as_me: failed program was:" >&5
5267 sed 's/^/| /' conftest.$ac_ext >&5
5269 LDFLAGS=$late_LDFLAGS
5270 { echo "$as_me:$LINENO: result: no" >&5
5271 echo "${ECHO_T}no" >&6; }
5274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5275 conftest$ac_exeext conftest.$ac_ext
5277 #### Extract some information from the operating system and machine files.
5279 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5280 - which libraries the lib-src programs will want, and
5281 - whether the GNU malloc routines are usable..." >&5
5282 echo "$as_me: checking the machine- and system-dependent files to find out
5283 - which libraries the lib-src programs will want, and
5284 - whether the GNU malloc routines are usable..." >&6;}
5286 ### First figure out CFLAGS (which we use for running the compiler here)
5287 ### and REAL_CFLAGS (which we use for real compilation).
5288 ### The two are the same except on a few systems, where they are made
5289 ### different to work around various lossages. For example,
5290 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5291 ### as implying static linking.
5293 ### If the CFLAGS env var is specified, we use that value
5294 ### instead of the default.
5296 ### It's not important that this name contain the PID; you can't run
5297 ### two configures in the same directory and have anything work
5299 tempcname="conftest.c"
5302 #include "'${srcdir}'/src/'${opsysfile}'"
5303 #include "'${srcdir}'/src/'${machfile}'"
5304 #ifndef LIBS_MACHINE
5305 #define LIBS_MACHINE
5310 #ifndef C_SWITCH_SYSTEM
5311 #define C_SWITCH_SYSTEM
5313 #ifndef C_SWITCH_MACHINE
5314 #define C_SWITCH_MACHINE
5316 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5317 configure___ c_switch_system=C_SWITCH_SYSTEM
5318 configure___ c_switch_machine=C_SWITCH_MACHINE
5321 #define LIB_X11_LIB -lX11
5324 #ifndef LIBX11_MACHINE
5325 #define LIBX11_MACHINE
5328 #ifndef LIBX11_SYSTEM
5329 #define LIBX11_SYSTEM
5331 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5334 configure___ unexec=UNEXEC
5336 configure___ unexec=unexec.o
5339 #ifdef SYSTEM_MALLOC
5340 configure___ system_malloc=yes
5342 configure___ system_malloc=no
5345 #ifdef USE_MMAP_FOR_BUFFERS
5346 configure___ use_mmap_for_buffers=yes
5348 configure___ use_mmap_for_buffers=no
5351 #ifndef C_DEBUG_SWITCH
5352 #define C_DEBUG_SWITCH -g
5355 #ifndef C_OPTIMIZE_SWITCH
5357 #define C_OPTIMIZE_SWITCH -O2
5359 #define C_OPTIMIZE_SWITCH -O
5363 #ifndef C_WARNINGS_SWITCH
5364 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5367 #ifndef LD_SWITCH_MACHINE
5368 #define LD_SWITCH_MACHINE
5371 #ifndef LD_SWITCH_SYSTEM
5372 #define LD_SWITCH_SYSTEM
5375 #ifndef LD_SWITCH_X_SITE_AUX
5376 #define LD_SWITCH_X_SITE_AUX
5379 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5380 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5382 #ifdef THIS_IS_CONFIGURE
5384 /* Get the CFLAGS for tests in configure. */
5386 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5388 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5391 #else /* not THIS_IS_CONFIGURE */
5393 /* Get the CFLAGS for real compilation. */
5395 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5397 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5400 #endif /* not THIS_IS_CONFIGURE */
5403 # The value of CPP is a quoted variable reference, so we need to do this
5404 # to get its actual value...
5405 CPP=`eval "echo $CPP"`
5406 eval `${CPP} -Isrc ${tempcname} \
5407 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5408 if test "x$SPECIFIED_CFLAGS" = x; then
5409 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5410 |
sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5412 REAL_CFLAGS="$CFLAGS"
5416 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5418 ### Make sure subsequent tests use flags consistent with the build flags.
5420 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5421 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5423 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5428 # Check whether --enable-largefile was given.
5429 if test "${enable_largefile+set}" = set; then
5430 enableval=$enable_largefile;
5433 if test "$enable_largefile" != no; then
5435 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5436 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5437 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5438 echo $ECHO_N "(cached) $ECHO_C" >&6
5440 ac_cv_sys_largefile_CC=no
5441 if test "$GCC" != yes; then
5444 # IRIX 6.2 and later do not support large files by default,
5445 # so use the C compiler's -n32 option if that helps.
5446 cat >conftest.$ac_ext <<_ACEOF
5449 cat confdefs.h >>conftest.$ac_ext
5450 cat >>conftest.$ac_ext <<_ACEOF
5451 /* end confdefs.h. */
5452 #include <sys/types.h>
5453 /* Check that off_t can represent 2**63 - 1 correctly.
5454 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5455 since some C++ compilers masquerading as C compilers
5456 incorrectly reject 9223372036854775807. */
5457 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5458 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5459 && LARGE_OFF_T % 2147483647 == 1)
5469 rm -f conftest.$ac_objext
5470 if { (ac_try="$ac_compile"
5472 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5473 *) ac_try_echo
=$ac_try;;
5475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5476 (eval "$ac_compile") 2>conftest.er1
5478 grep -v '^ *+' conftest.er1
>conftest.err
5480 cat conftest.err
>&5
5481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5482 (exit $ac_status); } && {
5483 test -z "$ac_c_werror_flag" ||
5484 test ! -s conftest.err
5485 } && test -s conftest.
$ac_objext; then
5488 echo "$as_me: failed program was:" >&5
5489 sed 's/^/| /' conftest.
$ac_ext >&5
5494 rm -f core conftest.err conftest.
$ac_objext
5496 rm -f conftest.
$ac_objext
5497 if { (ac_try
="$ac_compile"
5499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5500 *) ac_try_echo=$ac_try;;
5502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5503 (eval "$ac_compile") 2>conftest.er1
5505 grep -v '^ *+' conftest.er1 >conftest.err
5507 cat conftest.err >&5
5508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5509 (exit $ac_status); } && {
5510 test -z "$ac_c_werror_flag" ||
5511 test ! -s conftest.err
5512 } && test -s conftest.$ac_objext; then
5513 ac_cv_sys_largefile_CC=' -n32'; break
5515 echo "$as_me: failed program was:" >&5
5516 sed 's/^/| /' conftest.$ac_ext >&5
5521 rm -f core conftest.err conftest.$ac_objext
5525 rm -f conftest.$ac_ext
5528 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5529 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5530 if test "$ac_cv_sys_largefile_CC" != no; then
5531 CC=$CC$ac_cv_sys_largefile_CC
5534 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5535 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5536 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5537 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 cat >conftest.$ac_ext <<_ACEOF
5543 cat confdefs.h >>conftest.$ac_ext
5544 cat >>conftest.$ac_ext <<_ACEOF
5545 /* end confdefs.h. */
5546 #include <sys/types.h>
5547 /* Check that off_t can represent 2**63 - 1 correctly.
5548 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5549 since some C++ compilers masquerading as C compilers
5550 incorrectly reject 9223372036854775807. */
5551 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5552 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5553 && LARGE_OFF_T % 2147483647 == 1)
5563 rm -f conftest.$ac_objext
5564 if { (ac_try="$ac_compile"
5566 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5567 *) ac_try_echo
=$ac_try;;
5569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5570 (eval "$ac_compile") 2>conftest.er1
5572 grep -v '^ *+' conftest.er1
>conftest.err
5574 cat conftest.err
>&5
5575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5576 (exit $ac_status); } && {
5577 test -z "$ac_c_werror_flag" ||
5578 test ! -s conftest.err
5579 } && test -s conftest.
$ac_objext; then
5580 ac_cv_sys_file_offset_bits
=no
; break
5582 echo "$as_me: failed program was:" >&5
5583 sed 's/^/| /' conftest.
$ac_ext >&5
5588 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5589 cat >conftest.
$ac_ext <<_ACEOF
5592 cat confdefs.h
>>conftest.
$ac_ext
5593 cat >>conftest.
$ac_ext <<_ACEOF
5594 /* end confdefs.h. */
5595 #define _FILE_OFFSET_BITS 64
5596 #include <sys/types.h>
5597 /* Check that off_t can represent 2**63 - 1 correctly.
5598 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5599 since some C++ compilers masquerading as C compilers
5600 incorrectly reject 9223372036854775807. */
5601 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5602 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5603 && LARGE_OFF_T % 2147483647 == 1)
5613 rm -f conftest.
$ac_objext
5614 if { (ac_try
="$ac_compile"
5616 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5617 *) ac_try_echo=$ac_try;;
5619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5620 (eval "$ac_compile") 2>conftest.er1
5622 grep -v '^ *+' conftest.er1 >conftest.err
5624 cat conftest.err >&5
5625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5626 (exit $ac_status); } && {
5627 test -z "$ac_c_werror_flag" ||
5628 test ! -s conftest.err
5629 } && test -s conftest.$ac_objext; then
5630 ac_cv_sys_file_offset_bits=64; break
5632 echo "$as_me: failed program was:" >&5
5633 sed 's/^/| /' conftest.$ac_ext >&5
5638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5639 ac_cv_sys_file_offset_bits=unknown
5643 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5644 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5645 case $ac_cv_sys_file_offset_bits in #(
5648 cat >>confdefs.h <<_ACEOF
5649 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5654 if test $ac_cv_sys_file_offset_bits = unknown; then
5655 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5656 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5657 if test "${ac_cv_sys_large_files+set}" = set; then
5658 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 cat >conftest.$ac_ext <<_ACEOF
5664 cat confdefs.h >>conftest.$ac_ext
5665 cat >>conftest.$ac_ext <<_ACEOF
5666 /* end confdefs.h. */
5667 #include <sys/types.h>
5668 /* Check that off_t can represent 2**63 - 1 correctly.
5669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5670 since some C++ compilers masquerading as C compilers
5671 incorrectly reject 9223372036854775807. */
5672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5674 && LARGE_OFF_T % 2147483647 == 1)
5684 rm -f conftest.$ac_objext
5685 if { (ac_try="$ac_compile"
5687 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5688 *) ac_try_echo
=$ac_try;;
5690 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5691 (eval "$ac_compile") 2>conftest.er1
5693 grep -v '^ *+' conftest.er1
>conftest.err
5695 cat conftest.err
>&5
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); } && {
5698 test -z "$ac_c_werror_flag" ||
5699 test ! -s conftest.err
5700 } && test -s conftest.
$ac_objext; then
5701 ac_cv_sys_large_files
=no
; break
5703 echo "$as_me: failed program was:" >&5
5704 sed 's/^/| /' conftest.
$ac_ext >&5
5709 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5710 cat >conftest.
$ac_ext <<_ACEOF
5713 cat confdefs.h
>>conftest.
$ac_ext
5714 cat >>conftest.
$ac_ext <<_ACEOF
5715 /* end confdefs.h. */
5716 #define _LARGE_FILES 1
5717 #include <sys/types.h>
5718 /* Check that off_t can represent 2**63 - 1 correctly.
5719 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5720 since some C++ compilers masquerading as C compilers
5721 incorrectly reject 9223372036854775807. */
5722 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5723 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5724 && LARGE_OFF_T % 2147483647 == 1)
5734 rm -f conftest.
$ac_objext
5735 if { (ac_try
="$ac_compile"
5737 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5738 *) ac_try_echo=$ac_try;;
5740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5741 (eval "$ac_compile") 2>conftest.er1
5743 grep -v '^ *+' conftest.er1 >conftest.err
5745 cat conftest.err >&5
5746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5747 (exit $ac_status); } && {
5748 test -z "$ac_c_werror_flag" ||
5749 test ! -s conftest.err
5750 } && test -s conftest.$ac_objext; then
5751 ac_cv_sys_large_files=1; break
5753 echo "$as_me: failed program was:" >&5
5754 sed 's/^/| /' conftest.$ac_ext >&5
5759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5760 ac_cv_sys_large_files=unknown
5764 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5765 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5766 case $ac_cv_sys_large_files in #(
5769 cat >>confdefs.h <<_ACEOF
5770 #define _LARGE_FILES $ac_cv_sys_large_files
5780 ### The standard library on x86-64 GNU/Linux distributions can
5781 ### be located in either /usr/lib64 or /usr/lib.
5782 case "${canonical}" in
5783 x86_64-*-linux-gnu* )
5784 if test -d /usr/lib64; then
5786 cat >>confdefs.h <<\_ACEOF
5787 #define HAVE_X86_64_LIB64_DIR 1
5796 if test "${with_sound}" != "no"; then
5797 # Sound support for GNU/Linux and the free BSDs.
5798 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5799 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5800 if test "${ac_cv_header_stdc+set}" = set; then
5801 echo $ECHO_N "(cached) $ECHO_C" >&6
5803 cat >conftest.$ac_ext <<_ACEOF
5806 cat confdefs.h >>conftest.$ac_ext
5807 cat >>conftest.$ac_ext <<_ACEOF
5808 /* end confdefs.h. */
5822 rm -f conftest.$ac_objext
5823 if { (ac_try="$ac_compile"
5825 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5826 *) ac_try_echo
=$ac_try;;
5828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5829 (eval "$ac_compile") 2>conftest.er1
5831 grep -v '^ *+' conftest.er1
>conftest.err
5833 cat conftest.err
>&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); } && {
5836 test -z "$ac_c_werror_flag" ||
5837 test ! -s conftest.err
5838 } && test -s conftest.
$ac_objext; then
5839 ac_cv_header_stdc
=yes
5841 echo "$as_me: failed program was:" >&5
5842 sed 's/^/| /' conftest.
$ac_ext >&5
5844 ac_cv_header_stdc
=no
5847 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5849 if test $ac_cv_header_stdc = yes; then
5850 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5851 cat >conftest.
$ac_ext <<_ACEOF
5854 cat confdefs.h
>>conftest.
$ac_ext
5855 cat >>conftest.
$ac_ext <<_ACEOF
5856 /* end confdefs.h. */
5860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5861 $EGREP "memchr" >/dev
/null
2>&1; then
5864 ac_cv_header_stdc
=no
5870 if test $ac_cv_header_stdc = yes; then
5871 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5872 cat >conftest.
$ac_ext <<_ACEOF
5875 cat confdefs.h
>>conftest.
$ac_ext
5876 cat >>conftest.
$ac_ext <<_ACEOF
5877 /* end confdefs.h. */
5881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5882 $EGREP "free" >/dev
/null
2>&1; then
5885 ac_cv_header_stdc
=no
5891 if test $ac_cv_header_stdc = yes; then
5892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5893 if test "$cross_compiling" = yes; then
5896 cat >conftest.
$ac_ext <<_ACEOF
5899 cat confdefs.h
>>conftest.
$ac_ext
5900 cat >>conftest.
$ac_ext <<_ACEOF
5901 /* end confdefs.h. */
5904 #if ((' ' & 0x0FF) == 0x020)
5905 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5906 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5908 # define ISLOWER(c) \
5909 (('a' <= (c) && (c) <= 'i') \
5910 || ('j' <= (c) && (c) <= 'r') \
5911 || ('s' <= (c) && (c) <= 'z'))
5912 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5915 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5920 for (i = 0; i < 256; i++)
5921 if (XOR (islower (i), ISLOWER (i))
5922 || toupper (i) != TOUPPER (i))
5927 rm -f conftest
$ac_exeext
5928 if { (ac_try
="$ac_link"
5930 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
5931 *) ac_try_echo=$ac_try;;
5933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5934 (eval "$ac_link") 2>&5
5936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5938 { (case "(($ac_try" in
5939 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5940 *) ac_try_echo
=$ac_try;;
5942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5943 (eval "$ac_try") 2>&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); }; }; then
5949 echo "$as_me: program exited with status $ac_status" >&5
5950 echo "$as_me: failed program was:" >&5
5951 sed 's/^/| /' conftest.
$ac_ext >&5
5954 ac_cv_header_stdc
=no
5956 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
5962 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5963 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5964 if test $ac_cv_header_stdc = yes; then
5966 cat >>confdefs.h
<<\_ACEOF
5967 #define STDC_HEADERS 1
5972 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5982 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5983 inttypes.h stdint.h unistd.h
5985 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5986 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5988 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5989 echo $ECHO_N "(cached) $ECHO_C" >&6
5991 cat >conftest.
$ac_ext <<_ACEOF
5994 cat confdefs.h
>>conftest.
$ac_ext
5995 cat >>conftest.
$ac_ext <<_ACEOF
5996 /* end confdefs.h. */
5997 $ac_includes_default
5999 #include <$ac_header>
6001 rm -f conftest.
$ac_objext
6002 if { (ac_try
="$ac_compile"
6004 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6005 *) ac_try_echo=$ac_try;;
6007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6008 (eval "$ac_compile") 2>conftest.er1
6010 grep -v '^ *+' conftest.er1 >conftest.err
6012 cat conftest.err >&5
6013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6014 (exit $ac_status); } && {
6015 test -z "$ac_c_werror_flag" ||
6016 test ! -s conftest.err
6017 } && test -s conftest.$ac_objext; then
6018 eval "$as_ac_Header=yes"
6020 echo "$as_me: failed program was:" >&5
6021 sed 's/^/| /' conftest.$ac_ext >&5
6023 eval "$as_ac_Header=no"
6026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6028 ac_res=`eval echo '${'$as_ac_Header'}'`
6029 { echo "$as_me:$LINENO: result: $ac_res" >&5
6030 echo "${ECHO_T}$ac_res" >&6; }
6031 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6032 cat >>confdefs.h <<_ACEOF
6033 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6044 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6046 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6048 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6051 echo $ECHO_N "(cached) $ECHO_C" >&6
6053 ac_res=`eval echo '${'$as_ac_Header'}'`
6054 { echo "$as_me:$LINENO: result: $ac_res" >&5
6055 echo "${ECHO_T}$ac_res" >&6; }
6057 # Is the header compilable?
6058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6060 cat >conftest.$ac_ext <<_ACEOF
6063 cat confdefs.h >>conftest.$ac_ext
6064 cat >>conftest.$ac_ext <<_ACEOF
6065 /* end confdefs.h. */
6066 $ac_includes_default
6067 #include <$ac_header>
6069 rm -f conftest.$ac_objext
6070 if { (ac_try="$ac_compile"
6072 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6073 *) ac_try_echo
=$ac_try;;
6075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6076 (eval "$ac_compile") 2>conftest.er1
6078 grep -v '^ *+' conftest.er1
>conftest.err
6080 cat conftest.err
>&5
6081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6082 (exit $ac_status); } && {
6083 test -z "$ac_c_werror_flag" ||
6084 test ! -s conftest.err
6085 } && test -s conftest.
$ac_objext; then
6086 ac_header_compiler
=yes
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.
$ac_ext >&5
6091 ac_header_compiler
=no
6094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6095 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6096 echo "${ECHO_T}$ac_header_compiler" >&6; }
6098 # Is the header present?
6099 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6100 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6101 cat >conftest.
$ac_ext <<_ACEOF
6104 cat confdefs.h
>>conftest.
$ac_ext
6105 cat >>conftest.
$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 #include <$ac_header>
6109 if { (ac_try
="$ac_cpp conftest.$ac_ext"
6111 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6115 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6117 grep -v '^ *+' conftest.er1 >conftest.err
6119 cat conftest.err >&5
6120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6121 (exit $ac_status); } >/dev/null && {
6122 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6123 test ! -s conftest.err
6125 ac_header_preproc=yes
6127 echo "$as_me: failed program was:" >&5
6128 sed 's/^/| /' conftest.$ac_ext >&5
6130 ac_header_preproc=no
6133 rm -f conftest.err conftest.$ac_ext
6134 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6135 echo "${ECHO_T}$ac_header_preproc" >&6; }
6137 # So? What about this header?
6138 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6140 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6141 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6142 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6143 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6144 ac_header_preproc=yes
6147 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6148 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6149 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6150 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6151 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6152 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6153 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6154 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6155 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6156 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6157 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6158 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6162 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6163 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6164 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6165 echo $ECHO_N "(cached) $ECHO_C" >&6
6167 eval "$as_ac_Header=\$ac_header_preproc"
6169 ac_res=`eval echo '${'$as_ac_Header'}'`
6170 { echo "$as_me:$LINENO: result: $ac_res" >&5
6171 echo "${ECHO_T}$ac_res" >&6; }
6174 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6175 cat >>confdefs.h <<_ACEOF
6176 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
6183 # Emulation library used on NetBSD.
6184 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6185 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6186 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6187 echo $ECHO_N "(cached) $ECHO_C" >&6
6189 ac_check_lib_save_LIBS=$LIBS
6190 LIBS="-lossaudio $LIBS"
6191 cat >conftest.$ac_ext <<_ACEOF
6194 cat confdefs.h >>conftest.$ac_ext
6195 cat >>conftest.$ac_ext <<_ACEOF
6196 /* end confdefs.h. */
6198 /* Override any GCC internal prototype to avoid an error.
6199 Use char because int might match the return type of a GCC
6200 builtin and then its argument prototype would still apply. */
6208 return _oss_ioctl ();
6213 rm -f conftest.$ac_objext conftest$ac_exeext
6214 if { (ac_try="$ac_link"
6216 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6217 *) ac_try_echo
=$ac_try;;
6219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6220 (eval "$ac_link") 2>conftest.er1
6222 grep -v '^ *+' conftest.er1
>conftest.err
6224 cat conftest.err
>&5
6225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6226 (exit $ac_status); } && {
6227 test -z "$ac_c_werror_flag" ||
6228 test ! -s conftest.err
6229 } && test -s conftest
$ac_exeext &&
6230 $as_test_x conftest
$ac_exeext; then
6231 ac_cv_lib_ossaudio__oss_ioctl
=yes
6233 echo "$as_me: failed program was:" >&5
6234 sed 's/^/| /' conftest.
$ac_ext >&5
6236 ac_cv_lib_ossaudio__oss_ioctl
=no
6239 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
6240 conftest
$ac_exeext conftest.
$ac_ext
6241 LIBS
=$ac_check_lib_save_LIBS
6243 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6244 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6245 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6254 ALSA_MODULES
="alsa >= $ALSA_REQUIRED"
6255 if test "X${with_pkg_config_prog}" != X
; then
6256 PKG_CONFIG
="${with_pkg_config_prog}"
6261 if test -z "$PKG_CONFIG"; then
6262 # Extract the first word of "pkg-config", so it can be a program name with args.
6263 set dummy pkg-config
; ac_word
=$2
6264 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6265 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6266 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6267 echo $ECHO_N "(cached) $ECHO_C" >&6
6271 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
6274 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6278 test -z "$as_dir" && as_dir
=.
6279 for ac_exec_ext
in '' $ac_executable_extensions; do
6280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6281 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
6282 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6289 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
6293 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
6294 if test -n "$PKG_CONFIG"; then
6295 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6296 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6298 { echo "$as_me:$LINENO: result: no" >&5
6299 echo "${ECHO_T}no" >&6; }
6305 if test "$PKG_CONFIG" = "no" ; then
6308 PKG_CONFIG_MIN_VERSION
=0.9.0
6309 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6310 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6311 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6313 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6314 { echo "$as_me:$LINENO: result: yes" >&5
6315 echo "${ECHO_T}yes" >&6; }
6318 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6319 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6320 ALSA_CFLAGS
=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6321 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6322 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6324 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6325 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6326 ALSA_LIBS
=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6327 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6328 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6330 { echo "$as_me:$LINENO: result: no" >&5
6331 echo "${ECHO_T}no" >&6; }
6334 ## If we have a custom action on failure, don't print errors, but
6335 ## do set a variable so people can do so.
6336 ALSA_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6343 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6344 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6348 if test $succeeded = yes; then
6354 if test $HAVE_ALSA = yes; then
6355 SAVE_CFLAGS
="$CFLAGS"
6356 SAVE_LDFLAGS
="$LDFLAGS"
6357 CFLAGS
="$ALSA_CFLAGS $CFLAGS"
6358 LDFLAGS
="$ALSA_LIBS $LDFLAGS"
6359 cat >conftest.
$ac_ext <<_ACEOF
6362 cat confdefs.h
>>conftest.
$ac_ext
6363 cat >>conftest.
$ac_ext <<_ACEOF
6364 /* end confdefs.h. */
6365 #include <asoundlib.h>
6369 snd_lib_error_set_handler (0);
6374 rm -f conftest.
$ac_objext
6375 if { (ac_try
="$ac_compile"
6377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6378 *) ac_try_echo=$ac_try;;
6380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6381 (eval "$ac_compile") 2>conftest.er1
6383 grep -v '^ *+' conftest.er1 >conftest.err
6385 cat conftest.err >&5
6386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6387 (exit $ac_status); } && {
6388 test -z "$ac_c_werror_flag" ||
6389 test ! -s conftest.err
6390 } && test -s conftest.$ac_objext; then
6391 emacs_alsa_normal=yes
6393 echo "$as_me: failed program was:" >&5
6394 sed 's/^/| /' conftest.$ac_ext >&5
6396 emacs_alsa_normal=no
6399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6400 if test "$emacs_alsa_normal" != yes; then
6401 cat >conftest.$ac_ext <<_ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 #include <alsa/asoundlib.h>
6411 snd_lib_error_set_handler (0);
6416 rm -f conftest.$ac_objext
6417 if { (ac_try="$ac_compile"
6419 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6420 *) ac_try_echo
=$ac_try;;
6422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6423 (eval "$ac_compile") 2>conftest.er1
6425 grep -v '^ *+' conftest.er1
>conftest.err
6427 cat conftest.err
>&5
6428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6429 (exit $ac_status); } && {
6430 test -z "$ac_c_werror_flag" ||
6431 test ! -s conftest.err
6432 } && test -s conftest.
$ac_objext; then
6433 emacs_alsa_subdir
=yes
6435 echo "$as_me: failed program was:" >&5
6436 sed 's/^/| /' conftest.
$ac_ext >&5
6438 emacs_alsa_subdir
=no
6441 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6442 if test "$emacs_alsa_subdir" != yes; then
6443 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6444 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6445 { (exit 1); exit 1; }; }
6447 ALSA_CFLAGS
="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6450 CFLAGS
="$SAVE_CFLAGS"
6451 LDFLAGS
="$SAVE_LDFLAGS"
6452 LIBSOUND
="$LIBSOUND $ALSA_LIBS"
6453 CFLAGS_SOUND
="$CFLAGS_SOUND $ALSA_CFLAGS"
6455 cat >>confdefs.h
<<\_ACEOF
6489 for ac_header
in sys
/select.h sys
/timeb.h sys
/time.h unistd.h utime.h \
6490 linux
/version.h sys
/systeminfo.h termios.h limits.h string.h stdlib.h \
6491 termcap.h stdio_ext.h fcntl.h
strings.h coff.h pty.h sys
/mman.h \
6492 sys
/param.h sys
/vlimit.h sys
/resource.h locale.h sys
/_mbstate_t.h \
6495 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6496 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6499 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 ac_res
=`eval echo '${'$as_ac_Header'}'`
6503 { echo "$as_me:$LINENO: result: $ac_res" >&5
6504 echo "${ECHO_T}$ac_res" >&6; }
6506 # Is the header compilable?
6507 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6508 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6509 cat >conftest.
$ac_ext <<_ACEOF
6512 cat confdefs.h
>>conftest.
$ac_ext
6513 cat >>conftest.
$ac_ext <<_ACEOF
6514 /* end confdefs.h. */
6515 $ac_includes_default
6516 #include <$ac_header>
6518 rm -f conftest.
$ac_objext
6519 if { (ac_try
="$ac_compile"
6521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6522 *) ac_try_echo=$ac_try;;
6524 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6525 (eval "$ac_compile") 2>conftest.er1
6527 grep -v '^ *+' conftest.er1 >conftest.err
6529 cat conftest.err >&5
6530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6531 (exit $ac_status); } && {
6532 test -z "$ac_c_werror_flag" ||
6533 test ! -s conftest.err
6534 } && test -s conftest.$ac_objext; then
6535 ac_header_compiler=yes
6537 echo "$as_me: failed program was:" >&5
6538 sed 's/^/| /' conftest.$ac_ext >&5
6540 ac_header_compiler=no
6543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6544 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6545 echo "${ECHO_T}$ac_header_compiler" >&6; }
6547 # Is the header present?
6548 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6550 cat >conftest.$ac_ext <<_ACEOF
6553 cat confdefs.h >>conftest.$ac_ext
6554 cat >>conftest.$ac_ext <<_ACEOF
6555 /* end confdefs.h. */
6556 #include <$ac_header>
6558 if { (ac_try="$ac_cpp conftest.$ac_ext"
6560 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6561 *) ac_try_echo
=$ac_try;;
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6566 grep -v '^ *+' conftest.er1
>conftest.err
6568 cat conftest.err
>&5
6569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6570 (exit $ac_status); } >/dev
/null
&& {
6571 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6572 test ! -s conftest.err
6574 ac_header_preproc
=yes
6576 echo "$as_me: failed program was:" >&5
6577 sed 's/^/| /' conftest.
$ac_ext >&5
6579 ac_header_preproc
=no
6582 rm -f conftest.err conftest.
$ac_ext
6583 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6584 echo "${ECHO_T}$ac_header_preproc" >&6; }
6586 # So? What about this header?
6587 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6589 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6590 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6591 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6592 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6593 ac_header_preproc
=yes
6596 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6597 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6598 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6599 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6600 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6601 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6602 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6603 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6604 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6605 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6606 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6607 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6613 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6614 echo $ECHO_N "(cached) $ECHO_C" >&6
6616 eval "$as_ac_Header=\$ac_header_preproc"
6618 ac_res
=`eval echo '${'$as_ac_Header'}'`
6619 { echo "$as_me:$LINENO: result: $ac_res" >&5
6620 echo "${ECHO_T}$ac_res" >&6; }
6623 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6624 cat >>confdefs.h
<<_ACEOF
6625 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6633 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6634 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6635 cat >conftest.
$ac_ext <<_ACEOF
6638 cat confdefs.h
>>conftest.
$ac_ext
6639 cat >>conftest.
$ac_ext <<_ACEOF
6640 /* end confdefs.h. */
6641 #include <sys/personality.h>
6645 personality (PER_LINUX32)
6650 rm -f conftest.
$ac_objext
6651 if { (ac_try
="$ac_compile"
6653 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6654 *) ac_try_echo=$ac_try;;
6656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6657 (eval "$ac_compile") 2>conftest.er1
6659 grep -v '^ *+' conftest.er1 >conftest.err
6661 cat conftest.err >&5
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); } && {
6664 test -z "$ac_c_werror_flag" ||
6665 test ! -s conftest.err
6666 } && test -s conftest.$ac_objext; then
6667 emacs_cv_personality_linux32=yes
6669 echo "$as_me: failed program was:" >&5
6670 sed 's/^/| /' conftest.$ac_ext >&5
6672 emacs_cv_personality_linux32=no
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6676 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6677 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6679 if test $emacs_cv_personality_linux32 = yes; then
6681 cat >>confdefs.h <<\_ACEOF
6682 #define HAVE_PERSONALITY_LINUX32 1
6688 for ac_header in term.h
6690 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
6691 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6694 echo $ECHO_N "(cached) $ECHO_C" >&6
6696 cat >conftest.$ac_ext <<_ACEOF
6699 cat confdefs.h >>conftest.$ac_ext
6700 cat >>conftest.$ac_ext <<_ACEOF
6701 /* end confdefs.h. */
6702 #include <$ac_header>
6704 if { (ac_try="$ac_cpp conftest.$ac_ext"
6706 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6707 *) ac_try_echo
=$ac_try;;
6709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6712 grep -v '^ *+' conftest.er1
>conftest.err
6714 cat conftest.err
>&5
6715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6716 (exit $ac_status); } >/dev
/null
&& {
6717 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6718 test ! -s conftest.err
6720 eval "$as_ac_Header=yes"
6722 echo "$as_me: failed program was:" >&5
6723 sed 's/^/| /' conftest.
$ac_ext >&5
6725 eval "$as_ac_Header=no"
6728 rm -f conftest.err conftest.
$ac_ext
6730 ac_res
=`eval echo '${'$as_ac_Header'}'`
6731 { echo "$as_me:$LINENO: result: $ac_res" >&5
6732 echo "${ECHO_T}$ac_res" >&6; }
6733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6734 cat >>confdefs.h
<<_ACEOF
6735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6742 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6743 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6744 if test "${ac_cv_header_stdc+set}" = set; then
6745 echo $ECHO_N "(cached) $ECHO_C" >&6
6747 cat >conftest.
$ac_ext <<_ACEOF
6750 cat confdefs.h
>>conftest.
$ac_ext
6751 cat >>conftest.
$ac_ext <<_ACEOF
6752 /* end confdefs.h. */
6766 rm -f conftest.
$ac_objext
6767 if { (ac_try
="$ac_compile"
6769 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6770 *) ac_try_echo=$ac_try;;
6772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6773 (eval "$ac_compile") 2>conftest.er1
6775 grep -v '^ *+' conftest.er1 >conftest.err
6777 cat conftest.err >&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); } && {
6780 test -z "$ac_c_werror_flag" ||
6781 test ! -s conftest.err
6782 } && test -s conftest.$ac_objext; then
6783 ac_cv_header_stdc=yes
6785 echo "$as_me: failed program was:" >&5
6786 sed 's/^/| /' conftest.$ac_ext >&5
6788 ac_cv_header_stdc=no
6791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6793 if test $ac_cv_header_stdc = yes; then
6794 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6795 cat >conftest.$ac_ext <<_ACEOF
6798 cat confdefs.h >>conftest.$ac_ext
6799 cat >>conftest.$ac_ext <<_ACEOF
6800 /* end confdefs.h. */
6804 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6805 $EGREP "memchr" >/dev/null 2>&1; then
6808 ac_cv_header_stdc=no
6814 if test $ac_cv_header_stdc = yes; then
6815 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6816 cat >conftest.$ac_ext <<_ACEOF
6819 cat confdefs.h >>conftest.$ac_ext
6820 cat >>conftest.$ac_ext <<_ACEOF
6821 /* end confdefs.h. */
6825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6826 $EGREP "free" >/dev/null 2>&1; then
6829 ac_cv_header_stdc=no
6835 if test $ac_cv_header_stdc = yes; then
6836 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6837 if test "$cross_compiling" = yes; then
6840 cat >conftest.$ac_ext <<_ACEOF
6843 cat confdefs.h >>conftest.$ac_ext
6844 cat >>conftest.$ac_ext <<_ACEOF
6845 /* end confdefs.h. */
6848 #if ((' ' & 0x0FF) == 0x020)
6849 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6850 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6852 # define ISLOWER(c) \
6853 (('a' <= (c) && (c) <= 'i') \
6854 || ('j' <= (c) && (c) <= 'r') \
6855 || ('s' <= (c) && (c) <= 'z'))
6856 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6859 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6864 for (i = 0; i < 256; i++)
6865 if (XOR (islower (i), ISLOWER (i))
6866 || toupper (i) != TOUPPER (i))
6871 rm -f conftest$ac_exeext
6872 if { (ac_try="$ac_link"
6874 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6875 *) ac_try_echo
=$ac_try;;
6877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6878 (eval "$ac_link") 2>&5
6880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6881 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
6882 { (case "(($ac_try" in
6883 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
6884 *) ac_try_echo=$ac_try;;
6886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6887 (eval "$ac_try") 2>&5
6889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6890 (exit $ac_status); }; }; then
6893 echo "$as_me: program exited with status $ac_status" >&5
6894 echo "$as_me: failed program was:" >&5
6895 sed 's/^/| /' conftest.$ac_ext >&5
6898 ac_cv_header_stdc=no
6900 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6906 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6907 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6908 if test $ac_cv_header_stdc = yes; then
6910 cat >>confdefs.h <<\_ACEOF
6911 #define STDC_HEADERS 1
6916 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6917 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6918 if test "${ac_cv_header_time+set}" = set; then
6919 echo $ECHO_N "(cached) $ECHO_C" >&6
6921 cat >conftest.$ac_ext <<_ACEOF
6924 cat confdefs.h >>conftest.$ac_ext
6925 cat >>conftest.$ac_ext <<_ACEOF
6926 /* end confdefs.h. */
6927 #include <sys/types.h>
6928 #include <sys/time.h>
6934 if ((struct tm *) 0)
6940 rm -f conftest.$ac_objext
6941 if { (ac_try="$ac_compile"
6943 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
6944 *) ac_try_echo
=$ac_try;;
6946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6947 (eval "$ac_compile") 2>conftest.er1
6949 grep -v '^ *+' conftest.er1
>conftest.err
6951 cat conftest.err
>&5
6952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6953 (exit $ac_status); } && {
6954 test -z "$ac_c_werror_flag" ||
6955 test ! -s conftest.err
6956 } && test -s conftest.
$ac_objext; then
6957 ac_cv_header_time
=yes
6959 echo "$as_me: failed program was:" >&5
6960 sed 's/^/| /' conftest.
$ac_ext >&5
6962 ac_cv_header_time
=no
6965 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6967 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6968 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6969 if test $ac_cv_header_time = yes; then
6971 cat >>confdefs.h
<<\_ACEOF
6972 #define TIME_WITH_SYS_TIME 1
6977 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6978 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6979 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6980 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 cat >conftest.
$ac_ext <<_ACEOF
6985 cat confdefs.h
>>conftest.
$ac_ext
6986 cat >>conftest.
$ac_ext <<_ACEOF
6987 /* end confdefs.h. */
6988 $ac_includes_default
7000 rm -f conftest.
$ac_objext
7001 if { (ac_try
="$ac_compile"
7003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7004 *) ac_try_echo=$ac_try;;
7006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7007 (eval "$ac_compile") 2>conftest.er1
7009 grep -v '^ *+' conftest.er1 >conftest.err
7011 cat conftest.err >&5
7012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7013 (exit $ac_status); } && {
7014 test -z "$ac_c_werror_flag" ||
7015 test ! -s conftest.err
7016 } && test -s conftest.$ac_objext; then
7017 ac_cv_have_decl_sys_siglist=yes
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7022 ac_cv_have_decl_sys_siglist=no
7025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7027 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7028 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7029 if test $ac_cv_have_decl_sys_siglist = yes; then
7031 cat >>confdefs.h <<_ACEOF
7032 #define HAVE_DECL_SYS_SIGLIST 1
7037 cat >>confdefs.h <<_ACEOF
7038 #define HAVE_DECL_SYS_SIGLIST 0
7045 if test $ac_cv_have_decl_sys_siglist != yes; then
7046 # For Tru64, at least:
7047 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7048 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7049 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7050 echo $ECHO_N "(cached) $ECHO_C" >&6
7052 cat >conftest.$ac_ext <<_ACEOF
7055 cat confdefs.h >>conftest.$ac_ext
7056 cat >>conftest.$ac_ext <<_ACEOF
7057 /* end confdefs.h. */
7058 $ac_includes_default
7062 #ifndef __sys_siglist
7063 (void) __sys_siglist;
7070 rm -f conftest.$ac_objext
7071 if { (ac_try="$ac_compile"
7073 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7074 *) ac_try_echo
=$ac_try;;
7076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7077 (eval "$ac_compile") 2>conftest.er1
7079 grep -v '^ *+' conftest.er1
>conftest.err
7081 cat conftest.err
>&5
7082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7083 (exit $ac_status); } && {
7084 test -z "$ac_c_werror_flag" ||
7085 test ! -s conftest.err
7086 } && test -s conftest.
$ac_objext; then
7087 ac_cv_have_decl___sys_siglist
=yes
7089 echo "$as_me: failed program was:" >&5
7090 sed 's/^/| /' conftest.
$ac_ext >&5
7092 ac_cv_have_decl___sys_siglist
=no
7095 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7097 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7098 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7099 if test $ac_cv_have_decl___sys_siglist = yes; then
7101 cat >>confdefs.h
<<_ACEOF
7102 #define HAVE_DECL___SYS_SIGLIST 1
7107 cat >>confdefs.h
<<_ACEOF
7108 #define HAVE_DECL___SYS_SIGLIST 0
7115 if test $ac_cv_have_decl___sys_siglist = yes; then
7117 cat >>confdefs.h
<<\_ACEOF
7118 #define sys_siglist __sys_siglist
7123 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7124 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7125 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7126 echo $ECHO_N "(cached) $ECHO_C" >&6
7128 cat >conftest.
$ac_ext <<_ACEOF
7131 cat confdefs.h
>>conftest.
$ac_ext
7132 cat >>conftest.
$ac_ext <<_ACEOF
7133 /* end confdefs.h. */
7134 #include <sys/types.h>
7135 #include <sys/wait.h>
7137 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7140 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7148 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7153 rm -f conftest.
$ac_objext
7154 if { (ac_try
="$ac_compile"
7156 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7157 *) ac_try_echo=$ac_try;;
7159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7160 (eval "$ac_compile") 2>conftest.er1
7162 grep -v '^ *+' conftest.er1 >conftest.err
7164 cat conftest.err >&5
7165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7166 (exit $ac_status); } && {
7167 test -z "$ac_c_werror_flag" ||
7168 test ! -s conftest.err
7169 } && test -s conftest.$ac_objext; then
7170 ac_cv_header_sys_wait_h=yes
7172 echo "$as_me: failed program was:" >&5
7173 sed 's/^/| /' conftest.$ac_ext >&5
7175 ac_cv_header_sys_wait_h=no
7178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7180 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7181 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7182 if test $ac_cv_header_sys_wait_h = yes; then
7184 cat >>confdefs.h <<\_ACEOF
7185 #define HAVE_SYS_WAIT_H 1
7191 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7192 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7193 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7194 echo $ECHO_N "(cached) $ECHO_C" >&6
7196 cat >conftest.$ac_ext <<_ACEOF
7199 cat confdefs.h >>conftest.$ac_ext
7200 cat >>conftest.$ac_ext <<_ACEOF
7201 /* end confdefs.h. */
7202 #ifdef TIME_WITH_SYS_TIME
7203 #include <sys/time.h>
7206 #ifdef HAVE_SYS_TIME_H
7207 #include <sys/time.h>
7218 static struct utimbuf x; x.actime = x.modtime;
7223 rm -f conftest.$ac_objext
7224 if { (ac_try="$ac_compile"
7226 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7227 *) ac_try_echo
=$ac_try;;
7229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7230 (eval "$ac_compile") 2>conftest.er1
7232 grep -v '^ *+' conftest.er1
>conftest.err
7234 cat conftest.err
>&5
7235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7236 (exit $ac_status); } && {
7237 test -z "$ac_c_werror_flag" ||
7238 test ! -s conftest.err
7239 } && test -s conftest.
$ac_objext; then
7240 emacs_cv_struct_utimbuf
=yes
7242 echo "$as_me: failed program was:" >&5
7243 sed 's/^/| /' conftest.
$ac_ext >&5
7245 emacs_cv_struct_utimbuf
=no
7248 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7250 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7251 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7252 if test $emacs_cv_struct_utimbuf = yes; then
7254 cat >>confdefs.h
<<\_ACEOF
7255 #define HAVE_STRUCT_UTIMBUF 1
7260 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7261 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7262 if test "${ac_cv_type_signal+set}" = set; then
7263 echo $ECHO_N "(cached) $ECHO_C" >&6
7265 cat >conftest.
$ac_ext <<_ACEOF
7268 cat confdefs.h
>>conftest.
$ac_ext
7269 cat >>conftest.
$ac_ext <<_ACEOF
7270 /* end confdefs.h. */
7271 #include <sys/types.h>
7277 return *(signal (0, 0)) (0) == 1;
7282 rm -f conftest.
$ac_objext
7283 if { (ac_try
="$ac_compile"
7285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7286 *) ac_try_echo=$ac_try;;
7288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7289 (eval "$ac_compile") 2>conftest.er1
7291 grep -v '^ *+' conftest.er1 >conftest.err
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } && {
7296 test -z "$ac_c_werror_flag" ||
7297 test ! -s conftest.err
7298 } && test -s conftest.$ac_objext; then
7299 ac_cv_type_signal=int
7301 echo "$as_me: failed program was:" >&5
7302 sed 's/^/| /' conftest.$ac_ext >&5
7304 ac_cv_type_signal=void
7307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7309 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7310 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7312 cat >>confdefs.h <<_ACEOF
7313 #define RETSIGTYPE $ac_cv_type_signal
7318 { echo "$as_me:$LINENO: checking for speed_t" >&5
7319 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7320 if test "${emacs_cv_speed_t+set}" = set; then
7321 echo $ECHO_N "(cached) $ECHO_C" >&6
7323 cat >conftest.$ac_ext <<_ACEOF
7326 cat confdefs.h >>conftest.$ac_ext
7327 cat >>conftest.$ac_ext <<_ACEOF
7328 /* end confdefs.h. */
7329 #include <termios.h>
7338 rm -f conftest.$ac_objext
7339 if { (ac_try="$ac_compile"
7341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7342 *) ac_try_echo
=$ac_try;;
7344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7345 (eval "$ac_compile") 2>conftest.er1
7347 grep -v '^ *+' conftest.er1
>conftest.err
7349 cat conftest.err
>&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } && {
7352 test -z "$ac_c_werror_flag" ||
7353 test ! -s conftest.err
7354 } && test -s conftest.
$ac_objext; then
7355 emacs_cv_speed_t
=yes
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.
$ac_ext >&5
7363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7365 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7366 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7367 if test $emacs_cv_speed_t = yes; then
7369 cat >>confdefs.h
<<\_ACEOF
7370 #define HAVE_SPEED_T 1
7375 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7376 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7377 if test "${emacs_cv_struct_timeval+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7380 cat >conftest.
$ac_ext <<_ACEOF
7383 cat confdefs.h
>>conftest.
$ac_ext
7384 cat >>conftest.
$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 #ifdef TIME_WITH_SYS_TIME
7387 #include <sys/time.h>
7390 #ifdef HAVE_SYS_TIME_H
7391 #include <sys/time.h>
7399 static struct timeval x; x.tv_sec = x.tv_usec;
7404 rm -f conftest.
$ac_objext
7405 if { (ac_try
="$ac_compile"
7407 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7408 *) ac_try_echo=$ac_try;;
7410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7411 (eval "$ac_compile") 2>conftest.er1
7413 grep -v '^ *+' conftest.er1 >conftest.err
7415 cat conftest.err >&5
7416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7417 (exit $ac_status); } && {
7418 test -z "$ac_c_werror_flag" ||
7419 test ! -s conftest.err
7420 } && test -s conftest.$ac_objext; then
7421 emacs_cv_struct_timeval=yes
7423 echo "$as_me: failed program was:" >&5
7424 sed 's/^/| /' conftest.$ac_ext >&5
7426 emacs_cv_struct_timeval=no
7429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7431 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7432 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7433 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7434 if test $emacs_cv_struct_timeval = yes; then
7436 cat >>confdefs.h <<\_ACEOF
7437 #define HAVE_TIMEVAL 1
7442 { echo "$as_me:$LINENO: checking for struct exception" >&5
7443 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7444 if test "${emacs_cv_struct_exception+set}" = set; then
7445 echo $ECHO_N "(cached) $ECHO_C" >&6
7447 cat >conftest.$ac_ext <<_ACEOF
7450 cat confdefs.h >>conftest.$ac_ext
7451 cat >>conftest.$ac_ext <<_ACEOF
7452 /* end confdefs.h. */
7457 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7462 rm -f conftest.$ac_objext
7463 if { (ac_try="$ac_compile"
7465 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7466 *) ac_try_echo
=$ac_try;;
7468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7469 (eval "$ac_compile") 2>conftest.er1
7471 grep -v '^ *+' conftest.er1
>conftest.err
7473 cat conftest.err
>&5
7474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7475 (exit $ac_status); } && {
7476 test -z "$ac_c_werror_flag" ||
7477 test ! -s conftest.err
7478 } && test -s conftest.
$ac_objext; then
7479 emacs_cv_struct_exception
=yes
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.
$ac_ext >&5
7484 emacs_cv_struct_exception
=no
7487 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7489 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7490 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7491 HAVE_EXCEPTION
=$emacs_cv_struct_exception
7492 if test $emacs_cv_struct_exception != yes; then
7494 cat >>confdefs.h
<<\_ACEOF
7495 #define NO_MATHERR 1
7501 for ac_header
in sys
/socket.h
7503 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7504 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7505 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7506 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7507 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7508 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 ac_res
=`eval echo '${'$as_ac_Header'}'`
7511 { echo "$as_me:$LINENO: result: $ac_res" >&5
7512 echo "${ECHO_T}$ac_res" >&6; }
7514 # Is the header compilable?
7515 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7516 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7517 cat >conftest.
$ac_ext <<_ACEOF
7520 cat confdefs.h
>>conftest.
$ac_ext
7521 cat >>conftest.
$ac_ext <<_ACEOF
7522 /* end confdefs.h. */
7523 $ac_includes_default
7524 #include <$ac_header>
7526 rm -f conftest.
$ac_objext
7527 if { (ac_try
="$ac_compile"
7529 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7533 (eval "$ac_compile") 2>conftest.er1
7535 grep -v '^ *+' conftest.er1 >conftest.err
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && {
7540 test -z "$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 } && test -s conftest.$ac_objext; then
7543 ac_header_compiler=yes
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7548 ac_header_compiler=no
7551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7553 echo "${ECHO_T}$ac_header_compiler" >&6; }
7555 # Is the header present?
7556 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7557 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7558 cat >conftest.$ac_ext <<_ACEOF
7561 cat confdefs.h >>conftest.$ac_ext
7562 cat >>conftest.$ac_ext <<_ACEOF
7563 /* end confdefs.h. */
7564 #include <$ac_header>
7566 if { (ac_try="$ac_cpp conftest.$ac_ext"
7568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7569 *) ac_try_echo
=$ac_try;;
7571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7572 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7574 grep -v '^ *+' conftest.er1
>conftest.err
7576 cat conftest.err
>&5
7577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7578 (exit $ac_status); } >/dev
/null
&& {
7579 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7580 test ! -s conftest.err
7582 ac_header_preproc
=yes
7584 echo "$as_me: failed program was:" >&5
7585 sed 's/^/| /' conftest.
$ac_ext >&5
7587 ac_header_preproc
=no
7590 rm -f conftest.err conftest.
$ac_ext
7591 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7592 echo "${ECHO_T}$ac_header_preproc" >&6; }
7594 # So? What about this header?
7595 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7597 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7598 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7600 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7601 ac_header_preproc
=yes
7604 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7605 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7606 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7607 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7608 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7609 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7610 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7611 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7613 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7614 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7615 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7621 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7624 eval "$as_ac_Header=\$ac_header_preproc"
7626 ac_res
=`eval echo '${'$as_ac_Header'}'`
7627 { echo "$as_me:$LINENO: result: $ac_res" >&5
7628 echo "${ECHO_T}$ac_res" >&6; }
7631 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7632 cat >>confdefs.h
<<_ACEOF
7633 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7641 for ac_header
in net
/if.h
7643 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7644 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7646 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7647 echo $ECHO_N "(cached) $ECHO_C" >&6
7649 cat >conftest.
$ac_ext <<_ACEOF
7652 cat confdefs.h
>>conftest.
$ac_ext
7653 cat >>conftest.
$ac_ext <<_ACEOF
7654 /* end confdefs.h. */
7655 $ac_includes_default
7656 #if HAVE_SYS_SOCKET_H
7657 #include <sys/socket.h>
7660 #include <$ac_header>
7662 rm -f conftest.
$ac_objext
7663 if { (ac_try
="$ac_compile"
7665 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7666 *) ac_try_echo=$ac_try;;
7668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7669 (eval "$ac_compile") 2>conftest.er1
7671 grep -v '^ *+' conftest.er1 >conftest.err
7673 cat conftest.err >&5
7674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7675 (exit $ac_status); } && {
7676 test -z "$ac_c_werror_flag" ||
7677 test ! -s conftest.err
7678 } && test -s conftest.$ac_objext; then
7679 eval "$as_ac_Header=yes"
7681 echo "$as_me: failed program was:" >&5
7682 sed 's/^/| /' conftest.$ac_ext >&5
7684 eval "$as_ac_Header=no"
7687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 ac_res=`eval echo '${'$as_ac_Header'}'`
7690 { echo "$as_me:$LINENO: result: $ac_res" >&5
7691 echo "${ECHO_T}$ac_res" >&6; }
7692 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7693 cat >>confdefs.h <<_ACEOF
7694 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
7702 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7703 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7704 if test "${ac_cv_struct_tm+set}" = set; then
7705 echo $ECHO_N "(cached) $ECHO_C" >&6
7707 cat >conftest.$ac_ext <<_ACEOF
7710 cat confdefs.h >>conftest.$ac_ext
7711 cat >>conftest.$ac_ext <<_ACEOF
7712 /* end confdefs.h. */
7713 #include <sys/types.h>
7720 int *p = &tm.tm_sec;
7726 rm -f conftest.$ac_objext
7727 if { (ac_try="$ac_compile"
7729 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7730 *) ac_try_echo
=$ac_try;;
7732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733 (eval "$ac_compile") 2>conftest.er1
7735 grep -v '^ *+' conftest.er1
>conftest.err
7737 cat conftest.err
>&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } && {
7740 test -z "$ac_c_werror_flag" ||
7741 test ! -s conftest.err
7742 } && test -s conftest.
$ac_objext; then
7743 ac_cv_struct_tm
=time.h
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.
$ac_ext >&5
7748 ac_cv_struct_tm
=sys
/time.h
7751 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7753 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7754 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7755 if test $ac_cv_struct_tm = sys
/time.h
; then
7757 cat >>confdefs.h
<<\_ACEOF
7758 #define TM_IN_SYS_TIME 1
7763 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7764 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7765 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7768 cat >conftest.
$ac_ext <<_ACEOF
7771 cat confdefs.h
>>conftest.
$ac_ext
7772 cat >>conftest.
$ac_ext <<_ACEOF
7773 /* end confdefs.h. */
7774 #include <sys/types.h>
7775 #include <$ac_cv_struct_tm>
7781 static struct tm ac_aggr;
7782 if (ac_aggr.tm_zone)
7788 rm -f conftest.
$ac_objext
7789 if { (ac_try
="$ac_compile"
7791 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7792 *) ac_try_echo=$ac_try;;
7794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7795 (eval "$ac_compile") 2>conftest.er1
7797 grep -v '^ *+' conftest.er1 >conftest.err
7799 cat conftest.err >&5
7800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7801 (exit $ac_status); } && {
7802 test -z "$ac_c_werror_flag" ||
7803 test ! -s conftest.err
7804 } && test -s conftest.$ac_objext; then
7805 ac_cv_member_struct_tm_tm_zone=yes
7807 echo "$as_me: failed program was:" >&5
7808 sed 's/^/| /' conftest.$ac_ext >&5
7810 cat >conftest.$ac_ext <<_ACEOF
7813 cat confdefs.h >>conftest.$ac_ext
7814 cat >>conftest.$ac_ext <<_ACEOF
7815 /* end confdefs.h. */
7816 #include <sys/types.h>
7817 #include <$ac_cv_struct_tm>
7823 static struct tm ac_aggr;
7824 if (sizeof ac_aggr.tm_zone)
7830 rm -f conftest.$ac_objext
7831 if { (ac_try="$ac_compile"
7833 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7834 *) ac_try_echo
=$ac_try;;
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_compile") 2>conftest.er1
7839 grep -v '^ *+' conftest.er1
>conftest.err
7841 cat conftest.err
>&5
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); } && {
7844 test -z "$ac_c_werror_flag" ||
7845 test ! -s conftest.err
7846 } && test -s conftest.
$ac_objext; then
7847 ac_cv_member_struct_tm_tm_zone
=yes
7849 echo "$as_me: failed program was:" >&5
7850 sed 's/^/| /' conftest.
$ac_ext >&5
7852 ac_cv_member_struct_tm_tm_zone
=no
7855 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7858 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7860 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7861 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7862 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7864 cat >>confdefs.h
<<_ACEOF
7865 #define HAVE_STRUCT_TM_TM_ZONE 1
7871 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7873 cat >>confdefs.h
<<\_ACEOF
7874 #define HAVE_TM_ZONE 1
7878 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7879 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7880 if test "${ac_cv_have_decl_tzname+set}" = set; then
7881 echo $ECHO_N "(cached) $ECHO_C" >&6
7883 cat >conftest.
$ac_ext <<_ACEOF
7886 cat confdefs.h
>>conftest.
$ac_ext
7887 cat >>conftest.
$ac_ext <<_ACEOF
7888 /* end confdefs.h. */
7902 rm -f conftest.
$ac_objext
7903 if { (ac_try
="$ac_compile"
7905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
7906 *) ac_try_echo=$ac_try;;
7908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7909 (eval "$ac_compile") 2>conftest.er1
7911 grep -v '^ *+' conftest.er1 >conftest.err
7913 cat conftest.err >&5
7914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7915 (exit $ac_status); } && {
7916 test -z "$ac_c_werror_flag" ||
7917 test ! -s conftest.err
7918 } && test -s conftest.$ac_objext; then
7919 ac_cv_have_decl_tzname=yes
7921 echo "$as_me: failed program was:" >&5
7922 sed 's/^/| /' conftest.$ac_ext >&5
7924 ac_cv_have_decl_tzname=no
7927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7929 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7930 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7931 if test $ac_cv_have_decl_tzname = yes; then
7933 cat >>confdefs.h <<_ACEOF
7934 #define HAVE_DECL_TZNAME 1
7939 cat >>confdefs.h <<_ACEOF
7940 #define HAVE_DECL_TZNAME 0
7947 { echo "$as_me:$LINENO: checking for tzname" >&5
7948 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7949 if test "${ac_cv_var_tzname+set}" = set; then
7950 echo $ECHO_N "(cached) $ECHO_C" >&6
7952 cat >conftest.$ac_ext <<_ACEOF
7955 cat confdefs.h >>conftest.$ac_ext
7956 cat >>conftest.$ac_ext <<_ACEOF
7957 /* end confdefs.h. */
7959 #if !HAVE_DECL_TZNAME
7960 extern char *tzname[];
7966 return tzname[0][0];
7971 rm -f conftest.$ac_objext conftest$ac_exeext
7972 if { (ac_try="$ac_link"
7974 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
7975 *) ac_try_echo
=$ac_try;;
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978 (eval "$ac_link") 2>conftest.er1
7980 grep -v '^ *+' conftest.er1
>conftest.err
7982 cat conftest.err
>&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } && {
7985 test -z "$ac_c_werror_flag" ||
7986 test ! -s conftest.err
7987 } && test -s conftest
$ac_exeext &&
7988 $as_test_x conftest
$ac_exeext; then
7989 ac_cv_var_tzname
=yes
7991 echo "$as_me: failed program was:" >&5
7992 sed 's/^/| /' conftest.
$ac_ext >&5
7997 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
7998 conftest
$ac_exeext conftest.
$ac_ext
8000 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8001 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8002 if test $ac_cv_var_tzname = yes; then
8004 cat >>confdefs.h
<<\_ACEOF
8005 #define HAVE_TZNAME 1
8011 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8012 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8013 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8016 cat >conftest.
$ac_ext <<_ACEOF
8019 cat confdefs.h
>>conftest.
$ac_ext
8020 cat >>conftest.
$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8027 static struct tm ac_aggr;
8028 if (ac_aggr.tm_gmtoff)
8034 rm -f conftest.
$ac_objext
8035 if { (ac_try
="$ac_compile"
8037 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_compile") 2>conftest.er1
8043 grep -v '^ *+' conftest.er1 >conftest.err
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } && {
8048 test -z "$ac_c_werror_flag" ||
8049 test ! -s conftest.err
8050 } && test -s conftest.$ac_objext; then
8051 ac_cv_member_struct_tm_tm_gmtoff=yes
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8056 cat >conftest.$ac_ext <<_ACEOF
8059 cat confdefs.h >>conftest.$ac_ext
8060 cat >>conftest.$ac_ext <<_ACEOF
8061 /* end confdefs.h. */
8067 static struct tm ac_aggr;
8068 if (sizeof ac_aggr.tm_gmtoff)
8074 rm -f conftest.$ac_objext
8075 if { (ac_try="$ac_compile"
8077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8078 *) ac_try_echo
=$ac_try;;
8080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8081 (eval "$ac_compile") 2>conftest.er1
8083 grep -v '^ *+' conftest.er1
>conftest.err
8085 cat conftest.err
>&5
8086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8087 (exit $ac_status); } && {
8088 test -z "$ac_c_werror_flag" ||
8089 test ! -s conftest.err
8090 } && test -s conftest.
$ac_objext; then
8091 ac_cv_member_struct_tm_tm_gmtoff
=yes
8093 echo "$as_me: failed program was:" >&5
8094 sed 's/^/| /' conftest.
$ac_ext >&5
8096 ac_cv_member_struct_tm_tm_gmtoff
=no
8099 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8102 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8104 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8105 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8106 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8108 cat >>confdefs.h
<<\_ACEOF
8109 #define HAVE_TM_GMTOFF 1
8114 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8115 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8116 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8117 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 cat >conftest.
$ac_ext <<_ACEOF
8122 cat confdefs.h
>>conftest.
$ac_ext
8123 cat >>conftest.
$ac_ext <<_ACEOF
8124 /* end confdefs.h. */
8125 $ac_includes_default
8126 #if HAVE_SYS_SOCKET_H
8127 #include <sys/socket.h>
8136 static struct ifreq ac_aggr;
8137 if (ac_aggr.ifr_flags)
8143 rm -f conftest.
$ac_objext
8144 if { (ac_try
="$ac_compile"
8146 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8147 *) ac_try_echo=$ac_try;;
8149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8150 (eval "$ac_compile") 2>conftest.er1
8152 grep -v '^ *+' conftest.er1 >conftest.err
8154 cat conftest.err >&5
8155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8156 (exit $ac_status); } && {
8157 test -z "$ac_c_werror_flag" ||
8158 test ! -s conftest.err
8159 } && test -s conftest.$ac_objext; then
8160 ac_cv_member_struct_ifreq_ifr_flags=yes
8162 echo "$as_me: failed program was:" >&5
8163 sed 's/^/| /' conftest.$ac_ext >&5
8165 cat >conftest.$ac_ext <<_ACEOF
8168 cat confdefs.h >>conftest.$ac_ext
8169 cat >>conftest.$ac_ext <<_ACEOF
8170 /* end confdefs.h. */
8171 $ac_includes_default
8172 #if HAVE_SYS_SOCKET_H
8173 #include <sys/socket.h>
8182 static struct ifreq ac_aggr;
8183 if (sizeof ac_aggr.ifr_flags)
8189 rm -f conftest.$ac_objext
8190 if { (ac_try="$ac_compile"
8192 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8193 *) ac_try_echo
=$ac_try;;
8195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8196 (eval "$ac_compile") 2>conftest.er1
8198 grep -v '^ *+' conftest.er1
>conftest.err
8200 cat conftest.err
>&5
8201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8202 (exit $ac_status); } && {
8203 test -z "$ac_c_werror_flag" ||
8204 test ! -s conftest.err
8205 } && test -s conftest.
$ac_objext; then
8206 ac_cv_member_struct_ifreq_ifr_flags
=yes
8208 echo "$as_me: failed program was:" >&5
8209 sed 's/^/| /' conftest.
$ac_ext >&5
8211 ac_cv_member_struct_ifreq_ifr_flags
=no
8214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8217 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8219 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8220 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8221 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8223 cat >>confdefs.h
<<_ACEOF
8224 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8229 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8230 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8231 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8232 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 cat >conftest.
$ac_ext <<_ACEOF
8237 cat confdefs.h
>>conftest.
$ac_ext
8238 cat >>conftest.
$ac_ext <<_ACEOF
8239 /* end confdefs.h. */
8240 $ac_includes_default
8241 #if HAVE_SYS_SOCKET_H
8242 #include <sys/socket.h>
8251 static struct ifreq ac_aggr;
8252 if (ac_aggr.ifr_hwaddr)
8258 rm -f conftest.
$ac_objext
8259 if { (ac_try
="$ac_compile"
8261 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8262 *) ac_try_echo=$ac_try;;
8264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8265 (eval "$ac_compile") 2>conftest.er1
8267 grep -v '^ *+' conftest.er1 >conftest.err
8269 cat conftest.err >&5
8270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8271 (exit $ac_status); } && {
8272 test -z "$ac_c_werror_flag" ||
8273 test ! -s conftest.err
8274 } && test -s conftest.$ac_objext; then
8275 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8277 echo "$as_me: failed program was:" >&5
8278 sed 's/^/| /' conftest.$ac_ext >&5
8280 cat >conftest.$ac_ext <<_ACEOF
8283 cat confdefs.h >>conftest.$ac_ext
8284 cat >>conftest.$ac_ext <<_ACEOF
8285 /* end confdefs.h. */
8286 $ac_includes_default
8287 #if HAVE_SYS_SOCKET_H
8288 #include <sys/socket.h>
8297 static struct ifreq ac_aggr;
8298 if (sizeof ac_aggr.ifr_hwaddr)
8304 rm -f conftest.$ac_objext
8305 if { (ac_try="$ac_compile"
8307 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8308 *) ac_try_echo
=$ac_try;;
8310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8311 (eval "$ac_compile") 2>conftest.er1
8313 grep -v '^ *+' conftest.er1
>conftest.err
8315 cat conftest.err
>&5
8316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8317 (exit $ac_status); } && {
8318 test -z "$ac_c_werror_flag" ||
8319 test ! -s conftest.err
8320 } && test -s conftest.
$ac_objext; then
8321 ac_cv_member_struct_ifreq_ifr_hwaddr
=yes
8323 echo "$as_me: failed program was:" >&5
8324 sed 's/^/| /' conftest.
$ac_ext >&5
8326 ac_cv_member_struct_ifreq_ifr_hwaddr
=no
8329 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8334 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8335 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8336 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8338 cat >>confdefs.h
<<_ACEOF
8339 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8344 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8345 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8346 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8347 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 cat >conftest.
$ac_ext <<_ACEOF
8352 cat confdefs.h
>>conftest.
$ac_ext
8353 cat >>conftest.
$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8355 $ac_includes_default
8356 #if HAVE_SYS_SOCKET_H
8357 #include <sys/socket.h>
8366 static struct ifreq ac_aggr;
8367 if (ac_aggr.ifr_netmask)
8373 rm -f conftest.
$ac_objext
8374 if { (ac_try
="$ac_compile"
8376 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8377 *) ac_try_echo=$ac_try;;
8379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8380 (eval "$ac_compile") 2>conftest.er1
8382 grep -v '^ *+' conftest.er1 >conftest.err
8384 cat conftest.err >&5
8385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8386 (exit $ac_status); } && {
8387 test -z "$ac_c_werror_flag" ||
8388 test ! -s conftest.err
8389 } && test -s conftest.$ac_objext; then
8390 ac_cv_member_struct_ifreq_ifr_netmask=yes
8392 echo "$as_me: failed program was:" >&5
8393 sed 's/^/| /' conftest.$ac_ext >&5
8395 cat >conftest.$ac_ext <<_ACEOF
8398 cat confdefs.h >>conftest.$ac_ext
8399 cat >>conftest.$ac_ext <<_ACEOF
8400 /* end confdefs.h. */
8401 $ac_includes_default
8402 #if HAVE_SYS_SOCKET_H
8403 #include <sys/socket.h>
8412 static struct ifreq ac_aggr;
8413 if (sizeof ac_aggr.ifr_netmask)
8419 rm -f conftest.$ac_objext
8420 if { (ac_try="$ac_compile"
8422 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8423 *) ac_try_echo
=$ac_try;;
8425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8426 (eval "$ac_compile") 2>conftest.er1
8428 grep -v '^ *+' conftest.er1
>conftest.err
8430 cat conftest.err
>&5
8431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8432 (exit $ac_status); } && {
8433 test -z "$ac_c_werror_flag" ||
8434 test ! -s conftest.err
8435 } && test -s conftest.
$ac_objext; then
8436 ac_cv_member_struct_ifreq_ifr_netmask
=yes
8438 echo "$as_me: failed program was:" >&5
8439 sed 's/^/| /' conftest.
$ac_ext >&5
8441 ac_cv_member_struct_ifreq_ifr_netmask
=no
8444 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8447 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8449 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8450 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8451 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8453 cat >>confdefs.h
<<_ACEOF
8454 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8459 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8460 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8461 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8462 echo $ECHO_N "(cached) $ECHO_C" >&6
8464 cat >conftest.
$ac_ext <<_ACEOF
8467 cat confdefs.h
>>conftest.
$ac_ext
8468 cat >>conftest.
$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470 $ac_includes_default
8471 #if HAVE_SYS_SOCKET_H
8472 #include <sys/socket.h>
8481 static struct ifreq ac_aggr;
8482 if (ac_aggr.ifr_broadaddr)
8488 rm -f conftest.
$ac_objext
8489 if { (ac_try
="$ac_compile"
8491 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8492 *) ac_try_echo=$ac_try;;
8494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8495 (eval "$ac_compile") 2>conftest.er1
8497 grep -v '^ *+' conftest.er1 >conftest.err
8499 cat conftest.err >&5
8500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8501 (exit $ac_status); } && {
8502 test -z "$ac_c_werror_flag" ||
8503 test ! -s conftest.err
8504 } && test -s conftest.$ac_objext; then
8505 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8507 echo "$as_me: failed program was:" >&5
8508 sed 's/^/| /' conftest.$ac_ext >&5
8510 cat >conftest.$ac_ext <<_ACEOF
8513 cat confdefs.h >>conftest.$ac_ext
8514 cat >>conftest.$ac_ext <<_ACEOF
8515 /* end confdefs.h. */
8516 $ac_includes_default
8517 #if HAVE_SYS_SOCKET_H
8518 #include <sys/socket.h>
8527 static struct ifreq ac_aggr;
8528 if (sizeof ac_aggr.ifr_broadaddr)
8534 rm -f conftest.$ac_objext
8535 if { (ac_try="$ac_compile"
8537 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8538 *) ac_try_echo
=$ac_try;;
8540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8541 (eval "$ac_compile") 2>conftest.er1
8543 grep -v '^ *+' conftest.er1
>conftest.err
8545 cat conftest.err
>&5
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); } && {
8548 test -z "$ac_c_werror_flag" ||
8549 test ! -s conftest.err
8550 } && test -s conftest.
$ac_objext; then
8551 ac_cv_member_struct_ifreq_ifr_broadaddr
=yes
8553 echo "$as_me: failed program was:" >&5
8554 sed 's/^/| /' conftest.
$ac_ext >&5
8556 ac_cv_member_struct_ifreq_ifr_broadaddr
=no
8559 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8562 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8564 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8565 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8566 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8568 cat >>confdefs.h
<<_ACEOF
8569 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8574 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8575 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8576 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8577 echo $ECHO_N "(cached) $ECHO_C" >&6
8579 cat >conftest.
$ac_ext <<_ACEOF
8582 cat confdefs.h
>>conftest.
$ac_ext
8583 cat >>conftest.
$ac_ext <<_ACEOF
8584 /* end confdefs.h. */
8585 $ac_includes_default
8586 #if HAVE_SYS_SOCKET_H
8587 #include <sys/socket.h>
8596 static struct ifreq ac_aggr;
8597 if (ac_aggr.ifr_addr)
8603 rm -f conftest.
$ac_objext
8604 if { (ac_try
="$ac_compile"
8606 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610 (eval "$ac_compile") 2>conftest.er1
8612 grep -v '^ *+' conftest.er1 >conftest.err
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } && {
8617 test -z "$ac_c_werror_flag" ||
8618 test ! -s conftest.err
8619 } && test -s conftest.$ac_objext; then
8620 ac_cv_member_struct_ifreq_ifr_addr=yes
8622 echo "$as_me: failed program was:" >&5
8623 sed 's/^/| /' conftest.$ac_ext >&5
8625 cat >conftest.$ac_ext <<_ACEOF
8628 cat confdefs.h >>conftest.$ac_ext
8629 cat >>conftest.$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8631 $ac_includes_default
8632 #if HAVE_SYS_SOCKET_H
8633 #include <sys/socket.h>
8642 static struct ifreq ac_aggr;
8643 if (sizeof ac_aggr.ifr_addr)
8649 rm -f conftest.$ac_objext
8650 if { (ac_try="$ac_compile"
8652 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8653 *) ac_try_echo
=$ac_try;;
8655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8656 (eval "$ac_compile") 2>conftest.er1
8658 grep -v '^ *+' conftest.er1
>conftest.err
8660 cat conftest.err
>&5
8661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8662 (exit $ac_status); } && {
8663 test -z "$ac_c_werror_flag" ||
8664 test ! -s conftest.err
8665 } && test -s conftest.
$ac_objext; then
8666 ac_cv_member_struct_ifreq_ifr_addr
=yes
8668 echo "$as_me: failed program was:" >&5
8669 sed 's/^/| /' conftest.
$ac_ext >&5
8671 ac_cv_member_struct_ifreq_ifr_addr
=no
8674 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8677 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8679 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8680 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8681 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8683 cat >>confdefs.h
<<_ACEOF
8684 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8692 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8693 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8694 if test "$ac_cv_prog_cc_c89" != no
; then
8695 { echo "$as_me:$LINENO: result: yes" >&5
8696 echo "${ECHO_T}yes" >&6; }
8698 cat >>confdefs.h
<<\_ACEOF
8699 #define PROTOTYPES 1
8703 cat >>confdefs.h
<<\_ACEOF
8704 #define __PROTOTYPES 1
8708 { echo "$as_me:$LINENO: result: no" >&5
8709 echo "${ECHO_T}no" >&6; }
8712 { echo "$as_me:$LINENO: checking for working volatile" >&5
8713 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8714 if test "${ac_cv_c_volatile+set}" = set; then
8715 echo $ECHO_N "(cached) $ECHO_C" >&6
8717 cat >conftest.
$ac_ext <<_ACEOF
8720 cat confdefs.h
>>conftest.
$ac_ext
8721 cat >>conftest.
$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8729 int * volatile y = (int *) 0;
8735 rm -f conftest.
$ac_objext
8736 if { (ac_try
="$ac_compile"
8738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8739 *) ac_try_echo=$ac_try;;
8741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8742 (eval "$ac_compile") 2>conftest.er1
8744 grep -v '^ *+' conftest.er1 >conftest.err
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } && {
8749 test -z "$ac_c_werror_flag" ||
8750 test ! -s conftest.err
8751 } && test -s conftest.$ac_objext; then
8752 ac_cv_c_volatile=yes
8754 echo "$as_me: failed program was:" >&5
8755 sed 's/^/| /' conftest.$ac_ext >&5
8760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8762 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8763 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8764 if test $ac_cv_c_volatile = no; then
8766 cat >>confdefs.h <<\_ACEOF
8772 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8773 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8774 if test "${ac_cv_c_const+set}" = set; then
8775 echo $ECHO_N "(cached) $ECHO_C" >&6
8777 cat >conftest.$ac_ext <<_ACEOF
8780 cat confdefs.h >>conftest.$ac_ext
8781 cat >>conftest.$ac_ext <<_ACEOF
8782 /* end confdefs.h. */
8787 /* FIXME: Include the comments suggested by Paul. */
8789 /* Ultrix mips cc rejects this. */
8790 typedef int charset[2];
8792 /* SunOS 4.1.1 cc rejects this. */
8793 char const *const *pcpcc;
8795 /* NEC SVR4.0.2 mips cc rejects this. */
8796 struct point {int x, y;};
8797 static struct point const zero = {0,0};
8798 /* AIX XL C 1.02.0.0 rejects this.
8799 It does not let you subtract one const X* pointer from another in
8800 an arm of an if-expression whose if-part is not a constant
8802 const char *g = "string";
8803 pcpcc = &g + (g ? g-g : 0);
8804 /* HPUX 7.0 cc rejects these. */
8806 ppc = (char**) pcpcc;
8807 pcpcc = (char const *const *) ppc;
8808 { /* SCO 3.2v4 cc rejects this. */
8810 char const *s = 0 ? (char *) 0 : (char const *) 0;
8815 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8817 const int *foo = &x[0];
8820 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8821 typedef const int *iptr;
8825 { /* AIX XL C 1.02.0.0 rejects this saying
8826 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8827 struct s { int j; const int *ap[3]; };
8828 struct s *b; b->j = 5;
8830 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8834 return !cs[0] && !zero.x;
8841 rm -f conftest.$ac_objext
8842 if { (ac_try="$ac_compile"
8844 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
8845 *) ac_try_echo
=$ac_try;;
8847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8848 (eval "$ac_compile") 2>conftest.er1
8850 grep -v '^ *+' conftest.er1
>conftest.err
8852 cat conftest.err
>&5
8853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8854 (exit $ac_status); } && {
8855 test -z "$ac_c_werror_flag" ||
8856 test ! -s conftest.err
8857 } && test -s conftest.
$ac_objext; then
8860 echo "$as_me: failed program was:" >&5
8861 sed 's/^/| /' conftest.
$ac_ext >&5
8866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8868 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8869 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8870 if test $ac_cv_c_const = no
; then
8872 cat >>confdefs.h
<<\_ACEOF
8878 { echo "$as_me:$LINENO: checking for void * support" >&5
8879 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8880 if test "${emacs_cv_void_star+set}" = set; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8883 cat >conftest.
$ac_ext <<_ACEOF
8886 cat confdefs.h
>>conftest.
$ac_ext
8887 cat >>conftest.
$ac_ext <<_ACEOF
8888 /* end confdefs.h. */
8898 rm -f conftest.
$ac_objext
8899 if { (ac_try
="$ac_compile"
8901 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
8902 *) ac_try_echo=$ac_try;;
8904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8905 (eval "$ac_compile") 2>conftest.er1
8907 grep -v '^ *+' conftest.er1 >conftest.err
8909 cat conftest.err >&5
8910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8911 (exit $ac_status); } && {
8912 test -z "$ac_c_werror_flag" ||
8913 test ! -s conftest.err
8914 } && test -s conftest.$ac_objext; then
8915 emacs_cv_void_star=yes
8917 echo "$as_me: failed program was:" >&5
8918 sed 's/^/| /' conftest.$ac_ext >&5
8920 emacs_cv_void_star=no
8923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8925 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8926 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8927 if test $emacs_cv_void_star = yes; then
8928 cat >>confdefs.h <<\_ACEOF
8929 #define POINTER_TYPE void
8933 cat >>confdefs.h <<\_ACEOF
8934 #define POINTER_TYPE char
8943 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8944 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8945 set x ${MAKE-make}; ac_make=`echo "$2" |
sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8946 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8949 cat >conftest.make <<\_ACEOF
8952 @echo '@@@%%%=$(MAKE)=@@@%%%'
8954 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8955 case `${MAKE-make} -f conftest.
make 2>/dev
/null
` in
8957 eval ac_cv_prog_make_${ac_make}_set=yes;;
8959 eval ac_cv_prog_make_${ac_make}_set=no;;
8963 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8964 { echo "$as_me:$LINENO: result: yes" >&5
8965 echo "${ECHO_T}yes" >&6; }
8968 { echo "$as_me:$LINENO: result: no" >&5
8969 echo "${ECHO_T}no" >&6; }
8970 SET_MAKE="MAKE=${MAKE-make}"
8974 { echo "$as_me:$LINENO: checking for long file names" >&5
8975 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8976 if test "${ac_cv_sys_long_file_names+set}" = set; then
8977 echo $ECHO_N "(cached) $ECHO_C" >&6
8979 ac_cv_sys_long_file_names=yes
8980 # Test for long file names in all the places we know might matter:
8981 # . the current directory, where building will happen
8982 # $prefix/lib where we will be installing things
8983 # $exec_prefix/lib likewise
8984 # $TMPDIR if set, where it might want to write temporary files
8985 # /tmp where it might want to write temporary files
8988 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8989 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8990 # in the usual case where exec_prefix is '${prefix}'.
8992 . | /* | ?:[\\/]*) ;; #(
8995 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8996 ac_xdir=$ac_dir/cf$$
8997 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8998 ac_tf1=$ac_xdir/conftest9012345
8999 ac_tf2=$ac_xdir/conftest9012346
9000 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9001 ac_cv_sys_long_file_names=no
9002 rm -f -r "$ac_xdir" 2>/dev/null
9003 test $ac_cv_sys_long_file_names = no && break
9006 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9007 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9008 if test $ac_cv_sys_long_file_names = yes; then
9010 cat >>confdefs.h <<\_ACEOF
9011 #define HAVE_LONG_FILE_NAMES 1
9017 #### Choose a window system.
9019 { echo "$as_me:$LINENO: checking for X" >&5
9020 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9023 # Check whether --with-x was given.
9024 if test "${with_x+set}" = set; then
9028 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9029 if test "x$with_x" = xno; then
9030 # The user explicitly disabled X.
9033 case $x_includes,$x_libraries in #(
9034 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9035 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9036 { (exit 1); exit 1; }; };; #(
9037 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9038 echo $ECHO_N "(cached) $ECHO_C" >&6
9040 # One or both of the vars are not set, and there is no cached value.
9041 ac_x_includes=no ac_x_libraries=no
9042 rm -f -r conftest.dir
9043 if mkdir conftest.dir; then
9045 cat >Imakefile <<'_ACEOF'
9047 @echo incroot='${INCROOT}'
9049 @echo usrlibdir='${USRLIBDIR}'
9051 @echo libdir='${LIBDIR}'
9053 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9054 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9055 for ac_var in incroot usrlibdir libdir; do
9056 eval "ac_im_$ac_var=\`\
${MAKE-make} $ac_var 2>/dev
/null |
sed -n 's/^$ac_var=//p'\
`"
9058 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9059 for ac_extension in a so sl; do
9060 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9061 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9062 ac_im_usrlibdir=$ac_im_libdir; break
9065 # Screen out bogus values from the imake configuration. They are
9066 # bogus both because they are the default anyway, and because
9067 # using them would break gcc on systems where it needs fixed includes.
9068 case $ac_im_incroot in
9069 /usr/include) ac_x_includes= ;;
9070 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9072 case $ac_im_usrlibdir in
9074 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9078 rm -f -r conftest.dir
9081 # Standard set of common directories for X headers.
9082 # Check X11 before X11Rn because it is often a symlink to the current release.
9094 /usr/local/X11/include
9095 /usr/local/X11R6/include
9096 /usr/local/X11R5/include
9097 /usr/local/X11R4/include
9099 /usr/local/include/X11
9100 /usr/local/include/X11R6
9101 /usr/local/include/X11R5
9102 /usr/local/include/X11R4
9106 /usr/XFree86/include/X11
9110 /usr/unsupported/include
9112 /usr/local/x11r5/include
9113 /usr/lpp/Xamples/include
9115 /usr/openwin/include
9116 /usr/openwin/share/include'
9118 if test "$ac_x_includes" = no; then
9119 # Guess where to find include files, by looking for Xlib.h.
9120 # First, try using that file with no special directory specified.
9121 cat >conftest.$ac_ext <<_ACEOF
9124 cat confdefs.h >>conftest.$ac_ext
9125 cat >>conftest.$ac_ext <<_ACEOF
9126 /* end confdefs.h. */
9127 #include <X11/Xlib.h>
9129 if { (ac_try="$ac_cpp conftest.$ac_ext"
9131 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9132 *) ac_try_echo
=$ac_try;;
9134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9135 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9137 grep -v '^ *+' conftest.er1
>conftest.err
9139 cat conftest.err
>&5
9140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9141 (exit $ac_status); } >/dev
/null
&& {
9142 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9143 test ! -s conftest.err
9145 # We can compile using X headers with no special include directory.
9148 echo "$as_me: failed program was:" >&5
9149 sed 's/^/| /' conftest.
$ac_ext >&5
9151 for ac_dir
in $ac_x_header_dirs; do
9152 if test -r "$ac_dir/X11/Xlib.h"; then
9153 ac_x_includes
=$ac_dir
9159 rm -f conftest.err conftest.
$ac_ext
9160 fi # $ac_x_includes = no
9162 if test "$ac_x_libraries" = no
; then
9163 # Check for the libraries.
9164 # See if we find them without any special options.
9165 # Don't add to $LIBS permanently.
9168 cat >conftest.
$ac_ext <<_ACEOF
9171 cat confdefs.h
>>conftest.
$ac_ext
9172 cat >>conftest.
$ac_ext <<_ACEOF
9173 /* end confdefs.h. */
9174 #include <X11/Xlib.h>
9183 rm -f conftest.
$ac_objext conftest
$ac_exeext
9184 if { (ac_try
="$ac_link"
9186 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9187 *) ac_try_echo=$ac_try;;
9189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9190 (eval "$ac_link") 2>conftest.er1
9192 grep -v '^ *+' conftest.er1 >conftest.err
9194 cat conftest.err >&5
9195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9196 (exit $ac_status); } && {
9197 test -z "$ac_c_werror_flag" ||
9198 test ! -s conftest.err
9199 } && test -s conftest$ac_exeext &&
9200 $as_test_x conftest$ac_exeext; then
9202 # We can link X programs with no special library path.
9205 echo "$as_me: failed program was:" >&5
9206 sed 's/^/| /' conftest.$ac_ext >&5
9209 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" |
sed s
/include
/lib
/g
`
9211 # Don't even attempt the hair of trying to link an X program!
9212 for ac_extension in a so sl; do
9213 if test -r "$ac_dir/libX11.$ac_extension"; then
9214 ac_x_libraries=$ac_dir
9221 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9222 conftest$ac_exeext conftest.$ac_ext
9223 fi # $ac_x_libraries = no
9225 case $ac_x_includes,$ac_x_libraries in #(
9227 # Didn't find X, or a directory has "'" in its name.
9228 ac_cv_have_x="have_x=no";; #(
9230 # Record where we found X for the cache.
9231 ac_cv_have_x="have_x=yes\
9232 ac_x_includes='$ac_x_includes'\
9233 ac_x_libraries='$ac_x_libraries'"
9239 eval "$ac_cv_have_x"
9242 if test "$have_x" != yes; then
9243 { echo "$as_me:$LINENO: result: $have_x" >&5
9244 echo "${ECHO_T}$have_x" >&6; }
9247 # If each of the values was on the command line, it overrides each guess.
9248 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9249 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9250 # Update the cache value to reflect the command line values.
9251 ac_cv_have_x="have_x=yes\
9252 ac_x_includes='$x_includes'\
9253 ac_x_libraries='$x_libraries'"
9254 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9255 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9258 if test "$no_x" = yes; then
9264 if test "${x_libraries}" != NONE; then
9265 if test -n "${x_libraries}"; then
9266 LD_SWITCH_X_SITE=-L`echo ${x_libraries} |
sed -e "s/:/ -L/g"`
9267 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} |
sed -e "s/:/ -R/g"`
9269 x_default_search_path=""
9270 x_search_path=${x_libraries}
9271 if test -z "${x_search_path}"; then
9272 x_search_path=/usr/lib
9274 for x_library in `echo ${x_search_path}: | \
9275 sed -e "s/:/ /g" -e p
-e "s:/lib[^ /]* :/share :g"`; do
9277 ${x_library}/X11/%L/%T/%N%C%S:\
9278 ${x_library}/X11/%l/%T/%N%C%S:\
9279 ${x_library}/X11/%T/%N%C%S:\
9280 ${x_library}/X11/%L/%T/%N%S:\
9281 ${x_library}/X11/%l/%T/%N%S:\
9282 ${x_library}/X11/%T/%N%S"
9283 if test x"${x_default_search_path}" = x; then
9284 x_default_search_path=${x_search_path}
9286 x_default_search_path="${x_search_path}:${x_default_search_path}"
9290 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9291 C_SWITCH_X_SITE=-I`echo ${x_includes} |
sed -e "s/:/ -I/g"`
9294 if test x"${x_includes}" = x; then
9295 bitmapdir=/usr/include/X11/bitmaps
9297 # accumulate include directories that have X11 bitmap subdirectories
9299 for bmd in `echo ${x_includes} |
sed -e "s/:/ /g"`; do
9300 if test -d "${bmd}/X11/bitmaps"; then
9301 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9303 if test -d "${bmd}/bitmaps"; then
9304 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9307 if test ${bmd_acc} != "dummyval"; then
9308 bitmapdir=`echo ${bmd_acc} |
sed -e "s/^dummyval://"`
9313 if test "${with_carbon}" != no; then
9314 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9315 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9316 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9317 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9318 echo $ECHO_N "(cached) $ECHO_C" >&6
9320 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9321 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9323 # Is the header compilable?
9324 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9325 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9326 cat >conftest.$ac_ext <<_ACEOF
9329 cat confdefs.h >>conftest.$ac_ext
9330 cat >>conftest.$ac_ext <<_ACEOF
9331 /* end confdefs.h. */
9332 $ac_includes_default
9333 #include <Carbon/Carbon.h>
9335 rm -f conftest.$ac_objext
9336 if { (ac_try="$ac_compile"
9338 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9339 *) ac_try_echo
=$ac_try;;
9341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9342 (eval "$ac_compile") 2>conftest.er1
9344 grep -v '^ *+' conftest.er1
>conftest.err
9346 cat conftest.err
>&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); } && {
9349 test -z "$ac_c_werror_flag" ||
9350 test ! -s conftest.err
9351 } && test -s conftest.
$ac_objext; then
9352 ac_header_compiler
=yes
9354 echo "$as_me: failed program was:" >&5
9355 sed 's/^/| /' conftest.
$ac_ext >&5
9357 ac_header_compiler
=no
9360 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9361 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9362 echo "${ECHO_T}$ac_header_compiler" >&6; }
9364 # Is the header present?
9365 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9366 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9367 cat >conftest.
$ac_ext <<_ACEOF
9370 cat confdefs.h
>>conftest.
$ac_ext
9371 cat >>conftest.
$ac_ext <<_ACEOF
9372 /* end confdefs.h. */
9373 #include <Carbon/Carbon.h>
9375 if { (ac_try
="$ac_cpp conftest.$ac_ext"
9377 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9378 *) ac_try_echo=$ac_try;;
9380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9383 grep -v '^ *+' conftest.er1 >conftest.err
9385 cat conftest.err >&5
9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9387 (exit $ac_status); } >/dev/null && {
9388 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9389 test ! -s conftest.err
9391 ac_header_preproc=yes
9393 echo "$as_me: failed program was:" >&5
9394 sed 's/^/| /' conftest.$ac_ext >&5
9396 ac_header_preproc=no
9399 rm -f conftest.err conftest.$ac_ext
9400 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9401 echo "${ECHO_T}$ac_header_preproc" >&6; }
9403 # So? What about this header?
9404 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9406 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9407 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9408 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9409 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9410 ac_header_preproc=yes
9413 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9414 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9415 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9416 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9417 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9418 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9419 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9420 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9421 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9422 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9423 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9424 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9428 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9429 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9430 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9431 echo $ECHO_N "(cached) $ECHO_C" >&6
9433 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9435 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9436 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9439 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9445 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9446 if test "${with_carbon+set}" != set \
9447 && test "${carbon_appdir_x+set}" != set; then
9448 for var in with_x with_x_toolkit with_gtk with_xim \
9449 with_xpm with_jpeg with_tiff with_gif with_png; do
9450 if eval test \"\${$var+set}\" = set; then
9457 if test "${HAVE_CARBON}" = yes; then
9461 case "${window_system}" in
9465 case "${with_x_toolkit}" in
9466 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9467 motif ) USE_X_TOOLKIT=MOTIF ;;
9469 USE_X_TOOLKIT=none ;;
9470 no ) USE_X_TOOLKIT=none ;;
9471 * ) USE_X_TOOLKIT=maybe ;;
9481 ### If we're using X11, we should use the X menu package.
9484 yes ) HAVE_MENUS=yes ;;
9487 if test "${opsys}" = "hpux9"; then
9488 case "${x_libraries}" in
9490 opsysfile="s/hpux9-x11r4.h"
9495 if test "${opsys}" = "hpux9shr"; then
9496 case "${x_libraries}" in
9498 opsysfile="s/hpux9shxr4.h"
9503 ### Compute the unexec source name from the object name.
9504 UNEXEC_SRC="`echo ${unexec} |
sed 's/\.o/.c/'`"
9506 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9507 # Assume not, until told otherwise.
9510 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9511 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9512 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9513 echo $ECHO_N "(cached) $ECHO_C" >&6
9515 cat >conftest.$ac_ext <<_ACEOF
9518 cat confdefs.h >>conftest.$ac_ext
9519 cat >>conftest.$ac_ext <<_ACEOF
9520 /* end confdefs.h. */
9521 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9522 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9523 #define malloc_get_state innocuous_malloc_get_state
9525 /* System header to define __stub macros and hopefully few prototypes,
9526 which can conflict with char malloc_get_state (); below.
9527 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9528 <limits.h> exists even on freestanding compilers. */
9531 # include <limits.h>
9533 # include <assert.h>
9536 #undef malloc_get_state
9538 /* Override any GCC internal prototype to avoid an error.
9539 Use char because int might match the return type of a GCC
9540 builtin and then its argument prototype would still apply. */
9544 char malloc_get_state ();
9545 /* The GNU C library defines this for functions which it implements
9546 to always fail with ENOSYS. Some functions are actually named
9547 something starting with __ and the normal name is an alias. */
9548 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9555 return malloc_get_state ();
9560 rm -f conftest.$ac_objext conftest$ac_exeext
9561 if { (ac_try="$ac_link"
9563 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9564 *) ac_try_echo
=$ac_try;;
9566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9567 (eval "$ac_link") 2>conftest.er1
9569 grep -v '^ *+' conftest.er1
>conftest.err
9571 cat conftest.err
>&5
9572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9573 (exit $ac_status); } && {
9574 test -z "$ac_c_werror_flag" ||
9575 test ! -s conftest.err
9576 } && test -s conftest
$ac_exeext &&
9577 $as_test_x conftest
$ac_exeext; then
9578 ac_cv_func_malloc_get_state
=yes
9580 echo "$as_me: failed program was:" >&5
9581 sed 's/^/| /' conftest.
$ac_ext >&5
9583 ac_cv_func_malloc_get_state
=no
9586 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9587 conftest
$ac_exeext conftest.
$ac_ext
9589 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9590 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9591 if test $ac_cv_func_malloc_get_state = yes; then
9597 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9598 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9599 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9600 echo $ECHO_N "(cached) $ECHO_C" >&6
9602 cat >conftest.
$ac_ext <<_ACEOF
9605 cat confdefs.h
>>conftest.
$ac_ext
9606 cat >>conftest.
$ac_ext <<_ACEOF
9607 /* end confdefs.h. */
9608 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9609 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9610 #define malloc_set_state innocuous_malloc_set_state
9612 /* System header to define __stub macros and hopefully few prototypes,
9613 which can conflict with char malloc_set_state (); below.
9614 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9615 <limits.h> exists even on freestanding compilers. */
9618 # include <limits.h>
9620 # include <assert.h>
9623 #undef malloc_set_state
9625 /* Override any GCC internal prototype to avoid an error.
9626 Use char because int might match the return type of a GCC
9627 builtin and then its argument prototype would still apply. */
9631 char malloc_set_state ();
9632 /* The GNU C library defines this for functions which it implements
9633 to always fail with ENOSYS. Some functions are actually named
9634 something starting with __ and the normal name is an alias. */
9635 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9642 return malloc_set_state ();
9647 rm -f conftest.
$ac_objext conftest
$ac_exeext
9648 if { (ac_try
="$ac_link"
9650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9651 *) ac_try_echo=$ac_try;;
9653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9654 (eval "$ac_link") 2>conftest.er1
9656 grep -v '^ *+' conftest.er1 >conftest.err
9658 cat conftest.err >&5
9659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9660 (exit $ac_status); } && {
9661 test -z "$ac_c_werror_flag" ||
9662 test ! -s conftest.err
9663 } && test -s conftest$ac_exeext &&
9664 $as_test_x conftest$ac_exeext; then
9665 ac_cv_func_malloc_set_state=yes
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9670 ac_cv_func_malloc_set_state=no
9673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9674 conftest$ac_exeext conftest.$ac_ext
9676 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9677 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9678 if test $ac_cv_func_malloc_set_state = yes; then
9684 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9685 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9686 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9687 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 cat >conftest.$ac_ext <<_ACEOF
9692 cat confdefs.h >>conftest.$ac_ext
9693 cat >>conftest.$ac_ext <<_ACEOF
9694 /* end confdefs.h. */
9695 extern void (* __after_morecore_hook)();
9699 __after_morecore_hook = 0
9704 rm -f conftest.$ac_objext conftest$ac_exeext
9705 if { (ac_try="$ac_link"
9707 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9708 *) ac_try_echo
=$ac_try;;
9710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9711 (eval "$ac_link") 2>conftest.er1
9713 grep -v '^ *+' conftest.er1
>conftest.err
9715 cat conftest.err
>&5
9716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9717 (exit $ac_status); } && {
9718 test -z "$ac_c_werror_flag" ||
9719 test ! -s conftest.err
9720 } && test -s conftest
$ac_exeext &&
9721 $as_test_x conftest
$ac_exeext; then
9722 emacs_cv_var___after_morecore_hook
=yes
9724 echo "$as_me: failed program was:" >&5
9725 sed 's/^/| /' conftest.
$ac_ext >&5
9727 emacs_cv_var___after_morecore_hook
=no
9730 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
9731 conftest
$ac_exeext conftest.
$ac_ext
9733 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9734 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9735 if test $emacs_cv_var___after_morecore_hook = no
; then
9738 if test "${system_malloc}" = "yes"; then
9741 (The GNU allocators don't work with this system configuration.)"
9743 if test "$doug_lea_malloc" = "yes" ; then
9744 if test "$GNU_MALLOC" = yes ; then
9746 (Using Doug Lea's new malloc from the GNU C Library.)"
9749 cat >>confdefs.h
<<\_ACEOF
9750 #define DOUG_LEA_MALLOC 1
9755 if test x
"${REL_ALLOC}" = x
; then
9756 REL_ALLOC
=${GNU_MALLOC}
9762 for ac_header
in stdlib.h unistd.h
9764 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9765 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9768 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9769 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 ac_res
=`eval echo '${'$as_ac_Header'}'`
9772 { echo "$as_me:$LINENO: result: $ac_res" >&5
9773 echo "${ECHO_T}$ac_res" >&6; }
9775 # Is the header compilable?
9776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9778 cat >conftest.
$ac_ext <<_ACEOF
9781 cat confdefs.h
>>conftest.
$ac_ext
9782 cat >>conftest.
$ac_ext <<_ACEOF
9783 /* end confdefs.h. */
9784 $ac_includes_default
9785 #include <$ac_header>
9787 rm -f conftest.
$ac_objext
9788 if { (ac_try
="$ac_compile"
9790 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9791 *) ac_try_echo=$ac_try;;
9793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9794 (eval "$ac_compile") 2>conftest.er1
9796 grep -v '^ *+' conftest.er1 >conftest.err
9798 cat conftest.err >&5
9799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9800 (exit $ac_status); } && {
9801 test -z "$ac_c_werror_flag" ||
9802 test ! -s conftest.err
9803 } && test -s conftest.$ac_objext; then
9804 ac_header_compiler=yes
9806 echo "$as_me: failed program was:" >&5
9807 sed 's/^/| /' conftest.$ac_ext >&5
9809 ac_header_compiler=no
9812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9814 echo "${ECHO_T}$ac_header_compiler" >&6; }
9816 # Is the header present?
9817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9819 cat >conftest.$ac_ext <<_ACEOF
9822 cat confdefs.h >>conftest.$ac_ext
9823 cat >>conftest.$ac_ext <<_ACEOF
9824 /* end confdefs.h. */
9825 #include <$ac_header>
9827 if { (ac_try="$ac_cpp conftest.$ac_ext"
9829 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
9830 *) ac_try_echo
=$ac_try;;
9832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9835 grep -v '^ *+' conftest.er1
>conftest.err
9837 cat conftest.err
>&5
9838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9839 (exit $ac_status); } >/dev
/null
&& {
9840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9841 test ! -s conftest.err
9843 ac_header_preproc
=yes
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.
$ac_ext >&5
9848 ac_header_preproc
=no
9851 rm -f conftest.err conftest.
$ac_ext
9852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9853 echo "${ECHO_T}$ac_header_preproc" >&6; }
9855 # So? What about this header?
9856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9862 ac_header_preproc
=yes
9865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9882 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9885 eval "$as_ac_Header=\$ac_header_preproc"
9887 ac_res
=`eval echo '${'$as_ac_Header'}'`
9888 { echo "$as_me:$LINENO: result: $ac_res" >&5
9889 echo "${ECHO_T}$ac_res" >&6; }
9892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9893 cat >>confdefs.h
<<_ACEOF
9894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9902 for ac_func
in getpagesize
9904 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9905 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9907 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9908 echo $ECHO_N "(cached) $ECHO_C" >&6
9910 cat >conftest.
$ac_ext <<_ACEOF
9913 cat confdefs.h
>>conftest.
$ac_ext
9914 cat >>conftest.
$ac_ext <<_ACEOF
9915 /* end confdefs.h. */
9916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9918 #define $ac_func innocuous_$ac_func
9920 /* System header to define __stub macros and hopefully few prototypes,
9921 which can conflict with char $ac_func (); below.
9922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9923 <limits.h> exists even on freestanding compilers. */
9926 # include <limits.h>
9928 # include <assert.h>
9933 /* Override any GCC internal prototype to avoid an error.
9934 Use char because int might match the return type of a GCC
9935 builtin and then its argument prototype would still apply. */
9940 /* The GNU C library defines this for functions which it implements
9941 to always fail with ENOSYS. Some functions are actually named
9942 something starting with __ and the normal name is an alias. */
9943 #if defined __stub_$ac_func || defined __stub___$ac_func
9955 rm -f conftest.
$ac_objext conftest
$ac_exeext
9956 if { (ac_try
="$ac_link"
9958 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
9959 *) ac_try_echo=$ac_try;;
9961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9962 (eval "$ac_link") 2>conftest.er1
9964 grep -v '^ *+' conftest.er1 >conftest.err
9966 cat conftest.err >&5
9967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9968 (exit $ac_status); } && {
9969 test -z "$ac_c_werror_flag" ||
9970 test ! -s conftest.err
9971 } && test -s conftest$ac_exeext &&
9972 $as_test_x conftest$ac_exeext; then
9973 eval "$as_ac_var=yes"
9975 echo "$as_me: failed program was:" >&5
9976 sed 's/^/| /' conftest.$ac_ext >&5
9978 eval "$as_ac_var=no"
9981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9982 conftest$ac_exeext conftest.$ac_ext
9984 ac_res=`eval echo '${'$as_ac_var'}'`
9985 { echo "$as_me:$LINENO: result: $ac_res" >&5
9986 echo "${ECHO_T}$ac_res" >&6; }
9987 if test `eval echo '${'$as_ac_var'}'` = yes; then
9988 cat >>confdefs.h <<_ACEOF
9989 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
9995 { echo "$as_me:$LINENO: checking for working mmap" >&5
9996 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9997 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9998 echo $ECHO_N "(cached) $ECHO_C" >&6
10000 if test "$cross_compiling" = yes; then
10001 ac_cv_func_mmap_fixed_mapped=no
10003 cat >conftest.$ac_ext <<_ACEOF
10006 cat confdefs.h >>conftest.$ac_ext
10007 cat >>conftest.$ac_ext <<_ACEOF
10008 /* end confdefs.h. */
10009 $ac_includes_default
10010 /* malloc might have been renamed as rpl_malloc. */
10013 /* Thanks to Mike Haertel and Jim Avera for this test.
10014 Here is a matrix of mmap possibilities:
10015 mmap private not fixed
10016 mmap private fixed at somewhere currently unmapped
10017 mmap private fixed at somewhere already mapped
10018 mmap shared not fixed
10019 mmap shared fixed at somewhere currently unmapped
10020 mmap shared fixed at somewhere already mapped
10021 For private mappings, we should verify that changes cannot be read()
10022 back from the file, nor mmap's back from the file at a different
10023 address. (There have been systems where private was not correctly
10024 implemented like the infamous i386 svr4.0, and systems where the
10025 VM page cache was not coherent with the file system buffer cache
10026 like early versions of FreeBSD and possibly contemporary NetBSD.)
10027 For shared mappings, we should conversely verify that changes get
10028 propagated back to all the places they're supposed to be.
10030 Grep wants private fixed already mapped.
10031 The main things grep needs to know about mmap are:
10032 * does it exist and is it safe to write into the mmap'd area
10033 * how to use it (BSD variants) */
10036 #include <sys/mman.h>
10038 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10042 /* This mess was copied from the GNU getpagesize.h. */
10043 #ifndef HAVE_GETPAGESIZE
10044 /* Assume that all systems that can run configure have sys/param.h. */
10045 # ifndef HAVE_SYS_PARAM_H
10046 # define HAVE_SYS_PARAM_H 1
10049 # ifdef _SC_PAGESIZE
10050 # define getpagesize() sysconf(_SC_PAGESIZE)
10051 # else /* no _SC_PAGESIZE */
10052 # ifdef HAVE_SYS_PARAM_H
10053 # include <sys/param.h>
10054 # ifdef EXEC_PAGESIZE
10055 # define getpagesize() EXEC_PAGESIZE
10056 # else /* no EXEC_PAGESIZE */
10058 # define getpagesize() NBPG * CLSIZE
10061 # endif /* no CLSIZE */
10062 # else /* no NBPG */
10064 # define getpagesize() NBPC
10065 # else /* no NBPC */
10067 # define getpagesize() PAGESIZE
10068 # endif /* PAGESIZE */
10069 # endif /* no NBPC */
10070 # endif /* no NBPG */
10071 # endif /* no EXEC_PAGESIZE */
10072 # else /* no HAVE_SYS_PARAM_H */
10073 # define getpagesize() 8192 /* punt totally */
10074 # endif /* no HAVE_SYS_PARAM_H */
10075 # endif /* no _SC_PAGESIZE */
10077 #endif /* no HAVE_GETPAGESIZE */
10082 char *data, *data2, *data3;
10086 pagesize = getpagesize ();
10088 /* First, make a file with some known garbage in it. */
10089 data = (char *) malloc (pagesize);
10092 for (i = 0; i < pagesize; ++i)
10093 *(data + i) = rand ();
10095 fd = creat ("conftest.mmap", 0600);
10098 if (write (fd, data, pagesize) != pagesize)
10102 /* Next, try to mmap the file at a fixed address which already has
10103 something else allocated at it. If we can, also make sure that
10104 we see the same garbage. */
10105 fd = open ("conftest.mmap", O_RDWR);
10108 data2 = (char *) malloc (2 * pagesize);
10111 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10112 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10113 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10115 for (i = 0; i < pagesize; ++i)
10116 if (*(data + i) != *(data2 + i))
10119 /* Finally, make sure that changes to the mapped area do not
10120 percolate back to the file as seen by read(). (This is a bug on
10121 some variants of i386 svr4.0.) */
10122 for (i = 0; i < pagesize; ++i)
10123 *(data2 + i) = *(data2 + i) + 1;
10124 data3 = (char *) malloc (pagesize);
10127 if (read (fd, data3, pagesize) != pagesize)
10129 for (i = 0; i < pagesize; ++i)
10130 if (*(data + i) != *(data3 + i))
10136 rm -f conftest$ac_exeext
10137 if { (ac_try="$ac_link"
10138 case "(($ac_try" in
10139 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10140 *) ac_try_echo
=$ac_try;;
10142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10143 (eval "$ac_link") 2>&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
10147 { (case "(($ac_try" in
10148 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10149 *) ac_try_echo=$ac_try;;
10151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10152 (eval "$ac_try") 2>&5
10154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10155 (exit $ac_status); }; }; then
10156 ac_cv_func_mmap_fixed_mapped=yes
10158 echo "$as_me: program exited with status $ac_status" >&5
10159 echo "$as_me: failed program was:" >&5
10160 sed 's/^/| /' conftest.$ac_ext >&5
10162 ( exit $ac_status )
10163 ac_cv_func_mmap_fixed_mapped=no
10165 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10170 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10171 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10172 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10174 cat >>confdefs.h <<\_ACEOF
10175 #define HAVE_MMAP 1
10179 rm -f conftest.mmap
10181 if test $use_mmap_for_buffers = yes; then
10185 LIBS="$libsrc_libs $LIBS"
10188 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10189 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10190 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10191 echo $ECHO_N "(cached) $ECHO_C" >&6
10193 ac_check_lib_save_LIBS=$LIBS
10194 LIBS="-ldnet $LIBS"
10195 cat >conftest.$ac_ext <<_ACEOF
10198 cat confdefs.h >>conftest.$ac_ext
10199 cat >>conftest.$ac_ext <<_ACEOF
10200 /* end confdefs.h. */
10202 /* Override any GCC internal prototype to avoid an error.
10203 Use char because int might match the return type of a GCC
10204 builtin and then its argument prototype would still apply. */
10212 return dnet_ntoa ();
10217 rm -f conftest.$ac_objext conftest$ac_exeext
10218 if { (ac_try="$ac_link"
10219 case "(($ac_try" in
10220 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10221 *) ac_try_echo
=$ac_try;;
10223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10224 (eval "$ac_link") 2>conftest.er1
10226 grep -v '^ *+' conftest.er1
>conftest.err
10228 cat conftest.err
>&5
10229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10230 (exit $ac_status); } && {
10231 test -z "$ac_c_werror_flag" ||
10232 test ! -s conftest.err
10233 } && test -s conftest
$ac_exeext &&
10234 $as_test_x conftest
$ac_exeext; then
10235 ac_cv_lib_dnet_dnet_ntoa
=yes
10237 echo "$as_me: failed program was:" >&5
10238 sed 's/^/| /' conftest.
$ac_ext >&5
10240 ac_cv_lib_dnet_dnet_ntoa
=no
10243 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10244 conftest
$ac_exeext conftest.
$ac_ext
10245 LIBS
=$ac_check_lib_save_LIBS
10247 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10248 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10249 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10250 cat >>confdefs.h
<<_ACEOF
10251 #define HAVE_LIBDNET 1
10254 LIBS
="-ldnet $LIBS"
10259 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10260 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10261 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10262 echo $ECHO_N "(cached) $ECHO_C" >&6
10264 ac_check_lib_save_LIBS
=$LIBS
10265 LIBS
="-lXbsd $LIBS"
10266 cat >conftest.
$ac_ext <<_ACEOF
10269 cat confdefs.h
>>conftest.
$ac_ext
10270 cat >>conftest.
$ac_ext <<_ACEOF
10271 /* end confdefs.h. */
10282 rm -f conftest.
$ac_objext conftest
$ac_exeext
10283 if { (ac_try
="$ac_link"
10284 case "(($ac_try" in
10285 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10286 *) ac_try_echo=$ac_try;;
10288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10289 (eval "$ac_link") 2>conftest.er1
10291 grep -v '^ *+' conftest.er1 >conftest.err
10293 cat conftest.err >&5
10294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10295 (exit $ac_status); } && {
10296 test -z "$ac_c_werror_flag" ||
10297 test ! -s conftest.err
10298 } && test -s conftest$ac_exeext &&
10299 $as_test_x conftest$ac_exeext; then
10300 ac_cv_lib_Xbsd_main=yes
10302 echo "$as_me: failed program was:" >&5
10303 sed 's/^/| /' conftest.$ac_ext >&5
10305 ac_cv_lib_Xbsd_main=no
10308 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10309 conftest$ac_exeext conftest.$ac_ext
10310 LIBS=$ac_check_lib_save_LIBS
10312 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10313 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10314 if test $ac_cv_lib_Xbsd_main = yes; then
10315 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10320 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10321 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10322 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10323 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 ac_check_lib_save_LIBS=$LIBS
10326 LIBS="-lpthreads $LIBS"
10327 cat >conftest.$ac_ext <<_ACEOF
10330 cat confdefs.h >>conftest.$ac_ext
10331 cat >>conftest.$ac_ext <<_ACEOF
10332 /* end confdefs.h. */
10334 /* Override any GCC internal prototype to avoid an error.
10335 Use char because int might match the return type of a GCC
10336 builtin and then its argument prototype would still apply. */
10344 return cma_open ();
10349 rm -f conftest.$ac_objext conftest$ac_exeext
10350 if { (ac_try="$ac_link"
10351 case "(($ac_try" in
10352 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10353 *) ac_try_echo
=$ac_try;;
10355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10356 (eval "$ac_link") 2>conftest.er1
10358 grep -v '^ *+' conftest.er1
>conftest.err
10360 cat conftest.err
>&5
10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10362 (exit $ac_status); } && {
10363 test -z "$ac_c_werror_flag" ||
10364 test ! -s conftest.err
10365 } && test -s conftest
$ac_exeext &&
10366 $as_test_x conftest
$ac_exeext; then
10367 ac_cv_lib_pthreads_cma_open
=yes
10369 echo "$as_me: failed program was:" >&5
10370 sed 's/^/| /' conftest.
$ac_ext >&5
10372 ac_cv_lib_pthreads_cma_open
=no
10375 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10376 conftest
$ac_exeext conftest.
$ac_ext
10377 LIBS
=$ac_check_lib_save_LIBS
10379 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10380 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10381 if test $ac_cv_lib_pthreads_cma_open = yes; then
10382 cat >>confdefs.h
<<_ACEOF
10383 #define HAVE_LIBPTHREADS 1
10386 LIBS
="-lpthreads $LIBS"
10391 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10392 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10393 if test -d /usr
/X386
/include
; then
10395 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10399 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10400 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10405 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10406 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10407 if test "${gdb_cv_bigtoc+set}" = set; then
10408 echo $ECHO_N "(cached) $ECHO_C" >&6
10412 yes) gdb_cv_bigtoc
=-Wl,-bbigtoc ;;
10413 *) gdb_cv_bigtoc
=-bbigtoc ;;
10416 LDFLAGS
=$LDFLAGS\
$gdb_cv_bigtoc
10417 cat >conftest.
$ac_ext <<_ACEOF
10420 cat confdefs.h
>>conftest.
$ac_ext
10421 cat >>conftest.
$ac_ext <<_ACEOF
10422 /* end confdefs.h. */
10432 rm -f conftest.
$ac_objext conftest
$ac_exeext
10433 if { (ac_try
="$ac_link"
10434 case "(($ac_try" in
10435 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10436 *) ac_try_echo=$ac_try;;
10438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10439 (eval "$ac_link") 2>conftest.er1
10441 grep -v '^ *+' conftest.er1 >conftest.err
10443 cat conftest.err >&5
10444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } && {
10446 test -z "$ac_c_werror_flag" ||
10447 test ! -s conftest.err
10448 } && test -s conftest$ac_exeext &&
10449 $as_test_x conftest$ac_exeext; then
10452 echo "$as_me: failed program was:" >&5
10453 sed 's/^/| /' conftest.$ac_ext >&5
10458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10459 conftest$ac_exeext conftest.$ac_ext
10462 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10463 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10467 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10468 # used for the tests that follow. We set them back to REAL_CFLAGS and
10469 # REAL_CPPFLAGS later on.
10471 REAL_CPPFLAGS="$CPPFLAGS"
10473 if test "${HAVE_X11}" = "yes"; then
10474 DEFS="$C_SWITCH_X_SITE $DEFS"
10475 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10477 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10478 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10480 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10481 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10482 # but it's more convenient here to set LD_RUN_PATH
10483 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10484 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10485 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10489 if test "${opsys}" = "gnu-linux"; then
10490 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10491 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10492 cat >conftest.$ac_ext <<_ACEOF
10495 cat confdefs.h >>conftest.$ac_ext
10496 cat >>conftest.$ac_ext <<_ACEOF
10497 /* end confdefs.h. */
10502 XOpenDisplay ("foo");
10507 rm -f conftest.$ac_objext conftest$ac_exeext
10508 if { (ac_try="$ac_link"
10509 case "(($ac_try" in
10510 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10511 *) ac_try_echo
=$ac_try;;
10513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10514 (eval "$ac_link") 2>conftest.er1
10516 grep -v '^ *+' conftest.er1
>conftest.err
10518 cat conftest.err
>&5
10519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10520 (exit $ac_status); } && {
10521 test -z "$ac_c_werror_flag" ||
10522 test ! -s conftest.err
10523 } && test -s conftest
$ac_exeext &&
10524 $as_test_x conftest
$ac_exeext; then
10525 xlinux_first_failure
=no
10527 echo "$as_me: failed program was:" >&5
10528 sed 's/^/| /' conftest.
$ac_ext >&5
10530 xlinux_first_failure
=yes
10533 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10534 conftest
$ac_exeext conftest.
$ac_ext
10535 if test "${xlinux_first_failure}" = "yes"; then
10536 OLD_LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE"
10537 OLD_C_SWITCH_X_SITE
="$C_SWITCH_X_SITE"
10538 OLD_CPPFLAGS
="$CPPFLAGS"
10540 LD_SWITCH_X_SITE
="$LD_SWITCH_X_SITE -b i486-linuxaout"
10541 C_SWITCH_X_SITE
="$C_SWITCH_X_SITE -b i486-linuxaout"
10542 CPPFLAGS
="$CPPFLAGS -b i486-linuxaout"
10543 LIBS
="$LIBS -b i486-linuxaout"
10544 cat >conftest.
$ac_ext <<_ACEOF
10547 cat confdefs.h
>>conftest.
$ac_ext
10548 cat >>conftest.
$ac_ext <<_ACEOF
10549 /* end confdefs.h. */
10554 XOpenDisplay ("foo");
10559 rm -f conftest.
$ac_objext conftest
$ac_exeext
10560 if { (ac_try
="$ac_link"
10561 case "(($ac_try" in
10562 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10563 *) ac_try_echo=$ac_try;;
10565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10566 (eval "$ac_link") 2>conftest.er1
10568 grep -v '^ *+' conftest.er1 >conftest.err
10570 cat conftest.err >&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); } && {
10573 test -z "$ac_c_werror_flag" ||
10574 test ! -s conftest.err
10575 } && test -s conftest$ac_exeext &&
10576 $as_test_x conftest$ac_exeext; then
10577 xlinux_second_failure=no
10579 echo "$as_me: failed program was:" >&5
10580 sed 's/^/| /' conftest.$ac_ext >&5
10582 xlinux_second_failure=yes
10585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10586 conftest$ac_exeext conftest.$ac_ext
10587 if test "${xlinux_second_failure}" = "yes"; then
10588 # If we get the same failure with -b, there is no use adding -b.
10589 # So take it out. This plays safe.
10590 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10591 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10592 CPPFLAGS="$OLD_CPPFLAGS"
10594 { echo "$as_me:$LINENO: result: no" >&5
10595 echo "${ECHO_T}no" >&6; }
10597 { echo "$as_me:$LINENO: result: yes" >&5
10598 echo "${ECHO_T}yes" >&6; }
10601 { echo "$as_me:$LINENO: result: no" >&5
10602 echo "${ECHO_T}no" >&6; }
10606 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10607 # header files included from there.
10608 { echo "$as_me:$LINENO: checking for Xkb" >&5
10609 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10610 cat >conftest.$ac_ext <<_ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10616 #include <X11/Xlib.h>
10617 #include <X11/XKBlib.h>
10621 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10626 rm -f conftest.$ac_objext conftest$ac_exeext
10627 if { (ac_try="$ac_link"
10628 case "(($ac_try" in
10629 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10630 *) ac_try_echo
=$ac_try;;
10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633 (eval "$ac_link") 2>conftest.er1
10635 grep -v '^ *+' conftest.er1
>conftest.err
10637 cat conftest.err
>&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } && {
10640 test -z "$ac_c_werror_flag" ||
10641 test ! -s conftest.err
10642 } && test -s conftest
$ac_exeext &&
10643 $as_test_x conftest
$ac_exeext; then
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.
$ac_ext >&5
10652 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10653 conftest
$ac_exeext conftest.
$ac_ext
10654 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10655 echo "${ECHO_T}$emacs_xkb" >&6; }
10656 if test $emacs_xkb = yes; then
10658 cat >>confdefs.h
<<\_ACEOF
10659 #define HAVE_XKBGETKEYBOARD 1
10668 for ac_func
in XrmSetDatabase XScreenResourceString \
10669 XScreenNumberOfScreen XSetWMProtocols
10671 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10674 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10675 echo $ECHO_N "(cached) $ECHO_C" >&6
10677 cat >conftest.
$ac_ext <<_ACEOF
10680 cat confdefs.h
>>conftest.
$ac_ext
10681 cat >>conftest.
$ac_ext <<_ACEOF
10682 /* end confdefs.h. */
10683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10685 #define $ac_func innocuous_$ac_func
10687 /* System header to define __stub macros and hopefully few prototypes,
10688 which can conflict with char $ac_func (); below.
10689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10690 <limits.h> exists even on freestanding compilers. */
10693 # include <limits.h>
10695 # include <assert.h>
10700 /* Override any GCC internal prototype to avoid an error.
10701 Use char because int might match the return type of a GCC
10702 builtin and then its argument prototype would still apply. */
10707 /* The GNU C library defines this for functions which it implements
10708 to always fail with ENOSYS. Some functions are actually named
10709 something starting with __ and the normal name is an alias. */
10710 #if defined __stub_$ac_func || defined __stub___$ac_func
10717 return $ac_func ();
10722 rm -f conftest.
$ac_objext conftest
$ac_exeext
10723 if { (ac_try
="$ac_link"
10724 case "(($ac_try" in
10725 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10726 *) ac_try_echo=$ac_try;;
10728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10729 (eval "$ac_link") 2>conftest.er1
10731 grep -v '^ *+' conftest.er1 >conftest.err
10733 cat conftest.err >&5
10734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735 (exit $ac_status); } && {
10736 test -z "$ac_c_werror_flag" ||
10737 test ! -s conftest.err
10738 } && test -s conftest$ac_exeext &&
10739 $as_test_x conftest$ac_exeext; then
10740 eval "$as_ac_var=yes"
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10745 eval "$as_ac_var=no"
10748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10749 conftest$ac_exeext conftest.$ac_ext
10751 ac_res=`eval echo '${'$as_ac_var'}'`
10752 { echo "$as_me:$LINENO: result: $ac_res" >&5
10753 echo "${ECHO_T}$ac_res" >&6; }
10754 if test `eval echo '${'$as_ac_var'}'` = yes; then
10755 cat >>confdefs.h <<_ACEOF
10756 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
10764 if test "${window_system}" = "x11"; then
10765 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10766 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10767 if test "${emacs_cv_x11_version_6+set}" = set; then
10768 echo $ECHO_N "(cached) $ECHO_C" >&6
10770 cat >conftest.$ac_ext <<_ACEOF
10773 cat confdefs.h >>conftest.$ac_ext
10774 cat >>conftest.$ac_ext <<_ACEOF
10775 /* end confdefs.h. */
10776 #include <X11/Xlib.h>
10780 #if XlibSpecificationRelease < 6
10788 rm -f conftest.$ac_objext conftest$ac_exeext
10789 if { (ac_try="$ac_link"
10790 case "(($ac_try" in
10791 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
10792 *) ac_try_echo
=$ac_try;;
10794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10795 (eval "$ac_link") 2>conftest.er1
10797 grep -v '^ *+' conftest.er1
>conftest.err
10799 cat conftest.err
>&5
10800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801 (exit $ac_status); } && {
10802 test -z "$ac_c_werror_flag" ||
10803 test ! -s conftest.err
10804 } && test -s conftest
$ac_exeext &&
10805 $as_test_x conftest
$ac_exeext; then
10806 emacs_cv_x11_version_6
=yes
10808 echo "$as_me: failed program was:" >&5
10809 sed 's/^/| /' conftest.
$ac_ext >&5
10811 emacs_cv_x11_version_6
=no
10814 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
10815 conftest
$ac_exeext conftest.
$ac_ext
10818 if test $emacs_cv_x11_version_6 = yes; then
10819 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10820 echo "${ECHO_T}6 or newer" >&6; }
10822 cat >>confdefs.h
<<\_ACEOF
10823 #define HAVE_X11R6 1
10827 { echo "$as_me:$LINENO: result: before 6" >&5
10828 echo "${ECHO_T}before 6" >&6; }
10832 if test "${window_system}" = "x11"; then
10833 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10834 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10835 if test "${emacs_cv_x11_version_5+set}" = set; then
10836 echo $ECHO_N "(cached) $ECHO_C" >&6
10838 cat >conftest.
$ac_ext <<_ACEOF
10841 cat confdefs.h
>>conftest.
$ac_ext
10842 cat >>conftest.
$ac_ext <<_ACEOF
10843 /* end confdefs.h. */
10844 #include <X11/Xlib.h>
10848 #if XlibSpecificationRelease < 5
10856 rm -f conftest.
$ac_objext conftest
$ac_exeext
10857 if { (ac_try
="$ac_link"
10858 case "(($ac_try" in
10859 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
10860 *) ac_try_echo=$ac_try;;
10862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10863 (eval "$ac_link") 2>conftest.er1
10865 grep -v '^ *+' conftest.er1 >conftest.err
10867 cat conftest.err >&5
10868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10869 (exit $ac_status); } && {
10870 test -z "$ac_c_werror_flag" ||
10871 test ! -s conftest.err
10872 } && test -s conftest$ac_exeext &&
10873 $as_test_x conftest$ac_exeext; then
10874 emacs_cv_x11_version_5=yes
10876 echo "$as_me: failed program was:" >&5
10877 sed 's/^/| /' conftest.$ac_ext >&5
10879 emacs_cv_x11_version_5=no
10882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10883 conftest$ac_exeext conftest.$ac_ext
10886 if test $emacs_cv_x11_version_5 = yes; then
10887 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10888 echo "${ECHO_T}5 or newer" >&6; }
10891 cat >>confdefs.h <<\_ACEOF
10892 #define HAVE_X11R5 1
10897 { echo "$as_me:$LINENO: result: before 5" >&5
10898 echo "${ECHO_T}before 5" >&6; }
10903 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10906 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10907 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10908 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10909 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10910 { (exit 1); exit 1; }; };
10914 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10916 if test "X${with_pkg_config_prog}" != X; then
10917 PKG_CONFIG="${with_pkg_config_prog}"
10922 if test -z "$PKG_CONFIG"; then
10923 # Extract the first word of "pkg-config", so it can be a program name with args.
10924 set dummy pkg-config; ac_word=$2
10925 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10926 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10927 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10928 echo $ECHO_N "(cached) $ECHO_C" >&6
10930 case $PKG_CONFIG in
10932 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10936 for as_dir in $PATH
10939 test -z "$as_dir" && as_dir=.
10940 for ac_exec_ext in '' $ac_executable_extensions; do
10941 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10942 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10943 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10950 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10954 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10955 if test -n "$PKG_CONFIG"; then
10956 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10957 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10959 { echo "$as_me:$LINENO: result: no" >&5
10960 echo "${ECHO_T}no" >&6; }
10966 if test "$PKG_CONFIG" = "no" ; then
10967 { { echo "$as_me:$LINENO: error:
10968 *** 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
10969 echo "$as_me: error:
10970 *** 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;}
10971 { (exit 1); exit 1; }; }
10973 PKG_CONFIG_MIN_VERSION=0.9.0
10974 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10975 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10976 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10978 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10979 { echo "$as_me:$LINENO: result: yes" >&5
10980 echo "${ECHO_T}yes" >&6; }
10983 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10984 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10985 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10986 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10987 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10989 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10990 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10991 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10992 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10993 echo "${ECHO_T}$GTK_LIBS" >&6; }
10995 { echo "$as_me:$LINENO: result: no" >&5
10996 echo "${ECHO_T}no" >&6; }
10999 ## If we have a custom action on failure, don't print errors, but
11000 ## do set a variable so people can do so.
11001 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11002 echo $GTK_PKG_ERRORS
11008 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11009 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11013 if test $succeeded = yes; then
11016 { { 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
11017 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;}
11018 { (exit 1); exit 1; }; }
11023 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11024 CFLAGS="$CFLAGS $GTK_CFLAGS"
11025 LIBS="$GTK_LIBS $LIBS"
11028 for ac_func in gtk_main
11030 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 cat >conftest.$ac_ext <<_ACEOF
11039 cat confdefs.h >>conftest.$ac_ext
11040 cat >>conftest.$ac_ext <<_ACEOF
11041 /* end confdefs.h. */
11042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11044 #define $ac_func innocuous_$ac_func
11046 /* System header to define __stub macros and hopefully few prototypes,
11047 which can conflict with char $ac_func (); below.
11048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11049 <limits.h> exists even on freestanding compilers. */
11052 # include <limits.h>
11054 # include <assert.h>
11059 /* Override any GCC internal prototype to avoid an error.
11060 Use char because int might match the return type of a GCC
11061 builtin and then its argument prototype would still apply. */
11066 /* The GNU C library defines this for functions which it implements
11067 to always fail with ENOSYS. Some functions are actually named
11068 something starting with __ and the normal name is an alias. */
11069 #if defined __stub_$ac_func || defined __stub___$ac_func
11076 return $ac_func ();
11081 rm -f conftest.$ac_objext conftest$ac_exeext
11082 if { (ac_try="$ac_link"
11083 case "(($ac_try" in
11084 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11085 *) ac_try_echo
=$ac_try;;
11087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11088 (eval "$ac_link") 2>conftest.er1
11090 grep -v '^ *+' conftest.er1
>conftest.err
11092 cat conftest.err
>&5
11093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11094 (exit $ac_status); } && {
11095 test -z "$ac_c_werror_flag" ||
11096 test ! -s conftest.err
11097 } && test -s conftest
$ac_exeext &&
11098 $as_test_x conftest
$ac_exeext; then
11099 eval "$as_ac_var=yes"
11101 echo "$as_me: failed program was:" >&5
11102 sed 's/^/| /' conftest.
$ac_ext >&5
11104 eval "$as_ac_var=no"
11107 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11108 conftest
$ac_exeext conftest.
$ac_ext
11110 ac_res
=`eval echo '${'$as_ac_var'}'`
11111 { echo "$as_me:$LINENO: result: $ac_res" >&5
11112 echo "${ECHO_T}$ac_res" >&6; }
11113 if test `eval echo '${'$as_ac_var'}'` = yes; then
11114 cat >>confdefs.h
<<_ACEOF
11115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11121 if test "${GTK_COMPILES}" != "yes"; then
11122 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11123 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11124 { (exit 1); exit 1; }; };
11129 cat >>confdefs.h
<<\_ACEOF
11135 if test "$with_toolkit_scroll_bars" != no
; then
11136 with_toolkit_scroll_bars
=yes
11139 HAVE_GTK_MULTIDISPLAY
=no
11141 for ac_func
in gdk_display_open
11143 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11144 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11145 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11146 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11147 echo $ECHO_N "(cached) $ECHO_C" >&6
11149 cat >conftest.
$ac_ext <<_ACEOF
11152 cat confdefs.h
>>conftest.
$ac_ext
11153 cat >>conftest.
$ac_ext <<_ACEOF
11154 /* end confdefs.h. */
11155 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11156 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11157 #define $ac_func innocuous_$ac_func
11159 /* System header to define __stub macros and hopefully few prototypes,
11160 which can conflict with char $ac_func (); below.
11161 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11162 <limits.h> exists even on freestanding compilers. */
11165 # include <limits.h>
11167 # include <assert.h>
11172 /* Override any GCC internal prototype to avoid an error.
11173 Use char because int might match the return type of a GCC
11174 builtin and then its argument prototype would still apply. */
11179 /* The GNU C library defines this for functions which it implements
11180 to always fail with ENOSYS. Some functions are actually named
11181 something starting with __ and the normal name is an alias. */
11182 #if defined __stub_$ac_func || defined __stub___$ac_func
11189 return $ac_func ();
11194 rm -f conftest.
$ac_objext conftest
$ac_exeext
11195 if { (ac_try
="$ac_link"
11196 case "(($ac_try" in
11197 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11198 *) ac_try_echo=$ac_try;;
11200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11201 (eval "$ac_link") 2>conftest.er1
11203 grep -v '^ *+' conftest.er1 >conftest.err
11205 cat conftest.err >&5
11206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11207 (exit $ac_status); } && {
11208 test -z "$ac_c_werror_flag" ||
11209 test ! -s conftest.err
11210 } && test -s conftest$ac_exeext &&
11211 $as_test_x conftest$ac_exeext; then
11212 eval "$as_ac_var=yes"
11214 echo "$as_me: failed program was:" >&5
11215 sed 's/^/| /' conftest.$ac_ext >&5
11217 eval "$as_ac_var=no"
11220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11221 conftest$ac_exeext conftest.$ac_ext
11223 ac_res=`eval echo '${'$as_ac_var'}'`
11224 { echo "$as_me:$LINENO: result: $ac_res" >&5
11225 echo "${ECHO_T}$ac_res" >&6; }
11226 if test `eval echo '${'$as_ac_var'}'` = yes; then
11227 cat >>confdefs.h <<_ACEOF
11228 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11230 HAVE_GTK_MULTIDISPLAY=yes
11234 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11236 cat >>confdefs.h <<\_ACEOF
11237 #define HAVE_GTK_MULTIDISPLAY 1
11241 HAVE_GTK_FILE_SELECTION=no
11243 for ac_func in gtk_file_selection_new
11245 as_ac_var=`echo "ac_cv_func_$ac_func" |
$as_tr_sh`
11246 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11247 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11248 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11249 echo $ECHO_N "(cached) $ECHO_C" >&6
11251 cat >conftest.$ac_ext <<_ACEOF
11254 cat confdefs.h >>conftest.$ac_ext
11255 cat >>conftest.$ac_ext <<_ACEOF
11256 /* end confdefs.h. */
11257 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11258 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11259 #define $ac_func innocuous_$ac_func
11261 /* System header to define __stub macros and hopefully few prototypes,
11262 which can conflict with char $ac_func (); below.
11263 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11264 <limits.h> exists even on freestanding compilers. */
11267 # include <limits.h>
11269 # include <assert.h>
11274 /* Override any GCC internal prototype to avoid an error.
11275 Use char because int might match the return type of a GCC
11276 builtin and then its argument prototype would still apply. */
11281 /* The GNU C library defines this for functions which it implements
11282 to always fail with ENOSYS. Some functions are actually named
11283 something starting with __ and the normal name is an alias. */
11284 #if defined __stub_$ac_func || defined __stub___$ac_func
11291 return $ac_func ();
11296 rm -f conftest.$ac_objext conftest$ac_exeext
11297 if { (ac_try="$ac_link"
11298 case "(($ac_try" in
11299 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11300 *) ac_try_echo
=$ac_try;;
11302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11303 (eval "$ac_link") 2>conftest.er1
11305 grep -v '^ *+' conftest.er1
>conftest.err
11307 cat conftest.err
>&5
11308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11309 (exit $ac_status); } && {
11310 test -z "$ac_c_werror_flag" ||
11311 test ! -s conftest.err
11312 } && test -s conftest
$ac_exeext &&
11313 $as_test_x conftest
$ac_exeext; then
11314 eval "$as_ac_var=yes"
11316 echo "$as_me: failed program was:" >&5
11317 sed 's/^/| /' conftest.
$ac_ext >&5
11319 eval "$as_ac_var=no"
11322 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11323 conftest
$ac_exeext conftest.
$ac_ext
11325 ac_res
=`eval echo '${'$as_ac_var'}'`
11326 { echo "$as_me:$LINENO: result: $ac_res" >&5
11327 echo "${ECHO_T}$ac_res" >&6; }
11328 if test `eval echo '${'$as_ac_var'}'` = yes; then
11329 cat >>confdefs.h
<<_ACEOF
11330 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11332 HAVE_GTK_FILE_SELECTION
=yes
11337 HAVE_GTK_FILE_CHOOSER
=no
11339 for ac_func
in gtk_file_chooser_dialog_new
11341 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11342 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11343 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11344 if { as_var
=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11345 echo $ECHO_N "(cached) $ECHO_C" >&6
11347 cat >conftest.
$ac_ext <<_ACEOF
11350 cat confdefs.h
>>conftest.
$ac_ext
11351 cat >>conftest.
$ac_ext <<_ACEOF
11352 /* end confdefs.h. */
11353 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11354 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11355 #define $ac_func innocuous_$ac_func
11357 /* System header to define __stub macros and hopefully few prototypes,
11358 which can conflict with char $ac_func (); below.
11359 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11360 <limits.h> exists even on freestanding compilers. */
11363 # include <limits.h>
11365 # include <assert.h>
11370 /* Override any GCC internal prototype to avoid an error.
11371 Use char because int might match the return type of a GCC
11372 builtin and then its argument prototype would still apply. */
11377 /* The GNU C library defines this for functions which it implements
11378 to always fail with ENOSYS. Some functions are actually named
11379 something starting with __ and the normal name is an alias. */
11380 #if defined __stub_$ac_func || defined __stub___$ac_func
11387 return $ac_func ();
11392 rm -f conftest.
$ac_objext conftest
$ac_exeext
11393 if { (ac_try
="$ac_link"
11394 case "(($ac_try" in
11395 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11396 *) ac_try_echo=$ac_try;;
11398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11399 (eval "$ac_link") 2>conftest.er1
11401 grep -v '^ *+' conftest.er1 >conftest.err
11403 cat conftest.err >&5
11404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11405 (exit $ac_status); } && {
11406 test -z "$ac_c_werror_flag" ||
11407 test ! -s conftest.err
11408 } && test -s conftest$ac_exeext &&
11409 $as_test_x conftest$ac_exeext; then
11410 eval "$as_ac_var=yes"
11412 echo "$as_me: failed program was:" >&5
11413 sed 's/^/| /' conftest.$ac_ext >&5
11415 eval "$as_ac_var=no"
11418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11419 conftest$ac_exeext conftest.$ac_ext
11421 ac_res=`eval echo '${'$as_ac_var'}'`
11422 { echo "$as_me:$LINENO: result: $ac_res" >&5
11423 echo "${ECHO_T}$ac_res" >&6; }
11424 if test `eval echo '${'$as_ac_var'}'` = yes; then
11425 cat >>confdefs.h <<_ACEOF
11426 #define `echo "HAVE_$ac_func" |
$as_tr_cpp` 1
11428 HAVE_GTK_FILE_CHOOSER=yes
11433 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11434 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11436 cat >>confdefs.h <<\_ACEOF
11437 #define HAVE_GTK_FILE_BOTH 1
11442 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11443 HAVE_GTK_AND_PTHREAD=no
11445 for ac_header in pthread.h
11447 as_ac_Header=`echo "ac_cv_header_$ac_header" |
$as_tr_sh`
11448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11449 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11450 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11451 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11452 echo $ECHO_N "(cached) $ECHO_C" >&6
11454 ac_res=`eval echo '${'$as_ac_Header'}'`
11455 { echo "$as_me:$LINENO: result: $ac_res" >&5
11456 echo "${ECHO_T}$ac_res" >&6; }
11458 # Is the header compilable?
11459 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11460 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11461 cat >conftest.$ac_ext <<_ACEOF
11464 cat confdefs.h >>conftest.$ac_ext
11465 cat >>conftest.$ac_ext <<_ACEOF
11466 /* end confdefs.h. */
11467 $ac_includes_default
11468 #include <$ac_header>
11470 rm -f conftest.$ac_objext
11471 if { (ac_try="$ac_compile"
11472 case "(($ac_try" in
11473 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11474 *) ac_try_echo
=$ac_try;;
11476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11477 (eval "$ac_compile") 2>conftest.er1
11479 grep -v '^ *+' conftest.er1
>conftest.err
11481 cat conftest.err
>&5
11482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11483 (exit $ac_status); } && {
11484 test -z "$ac_c_werror_flag" ||
11485 test ! -s conftest.err
11486 } && test -s conftest.
$ac_objext; then
11487 ac_header_compiler
=yes
11489 echo "$as_me: failed program was:" >&5
11490 sed 's/^/| /' conftest.
$ac_ext >&5
11492 ac_header_compiler
=no
11495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11496 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11497 echo "${ECHO_T}$ac_header_compiler" >&6; }
11499 # Is the header present?
11500 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11501 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11502 cat >conftest.
$ac_ext <<_ACEOF
11505 cat confdefs.h
>>conftest.
$ac_ext
11506 cat >>conftest.
$ac_ext <<_ACEOF
11507 /* end confdefs.h. */
11508 #include <$ac_header>
11510 if { (ac_try
="$ac_cpp conftest.$ac_ext"
11511 case "(($ac_try" in
11512 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11513 *) ac_try_echo=$ac_try;;
11515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11516 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11518 grep -v '^ *+' conftest.er1 >conftest.err
11520 cat conftest.err >&5
11521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11522 (exit $ac_status); } >/dev/null && {
11523 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11524 test ! -s conftest.err
11526 ac_header_preproc=yes
11528 echo "$as_me: failed program was:" >&5
11529 sed 's/^/| /' conftest.$ac_ext >&5
11531 ac_header_preproc=no
11534 rm -f conftest.err conftest.$ac_ext
11535 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11536 echo "${ECHO_T}$ac_header_preproc" >&6; }
11538 # So? What about this header?
11539 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11541 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11542 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11543 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11544 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11545 ac_header_preproc=yes
11548 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11549 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11550 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11551 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11552 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11553 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11554 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11555 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11556 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11557 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11558 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11559 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11563 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11564 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11565 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11566 echo $ECHO_N "(cached) $ECHO_C" >&6
11568 eval "$as_ac_Header=\$ac_header_preproc"
11570 ac_res=`eval echo '${'$as_ac_Header'}'`
11571 { echo "$as_me:$LINENO: result: $ac_res" >&5
11572 echo "${ECHO_T}$ac_res" >&6; }
11575 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11576 cat >>confdefs.h <<_ACEOF
11577 #define `echo "HAVE_$ac_header" |
$as_tr_cpp` 1
11584 if test "$ac_cv_header_pthread_h"; then
11585 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11586 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11587 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11588 echo $ECHO_N "(cached) $ECHO_C" >&6
11590 ac_check_lib_save_LIBS=$LIBS
11591 LIBS="-lpthread $LIBS"
11592 cat >conftest.$ac_ext <<_ACEOF
11595 cat confdefs.h >>conftest.$ac_ext
11596 cat >>conftest.$ac_ext <<_ACEOF
11597 /* end confdefs.h. */
11599 /* Override any GCC internal prototype to avoid an error.
11600 Use char because int might match the return type of a GCC
11601 builtin and then its argument prototype would still apply. */
11605 char pthread_self ();
11609 return pthread_self ();
11614 rm -f conftest.$ac_objext conftest$ac_exeext
11615 if { (ac_try="$ac_link"
11616 case "(($ac_try" in
11617 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11618 *) ac_try_echo
=$ac_try;;
11620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11621 (eval "$ac_link") 2>conftest.er1
11623 grep -v '^ *+' conftest.er1
>conftest.err
11625 cat conftest.err
>&5
11626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11627 (exit $ac_status); } && {
11628 test -z "$ac_c_werror_flag" ||
11629 test ! -s conftest.err
11630 } && test -s conftest
$ac_exeext &&
11631 $as_test_x conftest
$ac_exeext; then
11632 ac_cv_lib_pthread_pthread_self
=yes
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.
$ac_ext >&5
11637 ac_cv_lib_pthread_pthread_self
=no
11640 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11641 conftest
$ac_exeext conftest.
$ac_ext
11642 LIBS
=$ac_check_lib_save_LIBS
11644 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11645 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11646 if test $ac_cv_lib_pthread_pthread_self = yes; then
11647 HAVE_GTK_AND_PTHREAD
=yes
11651 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11652 GTK_LIBS
="$GTK_LIBS -lpthread"
11654 cat >>confdefs.h
<<\_ACEOF
11655 #define HAVE_GTK_AND_PTHREAD 1
11662 if test x
"${USE_X_TOOLKIT}" = xmaybe
; then
11663 if test x
"${HAVE_X11R5}" = xyes
; then
11664 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11665 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11666 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11667 echo $ECHO_N "(cached) $ECHO_C" >&6
11669 cat >conftest.
$ac_ext <<_ACEOF
11672 cat confdefs.h
>>conftest.
$ac_ext
11673 cat >>conftest.
$ac_ext <<_ACEOF
11674 /* end confdefs.h. */
11676 #include <X11/Intrinsic.h>
11677 #include <X11/Xaw/Simple.h>
11686 rm -f conftest.
$ac_objext conftest
$ac_exeext
11687 if { (ac_try
="$ac_link"
11688 case "(($ac_try" in
11689 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11690 *) ac_try_echo=$ac_try;;
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693 (eval "$ac_link") 2>conftest.er1
11695 grep -v '^ *+' conftest.er1 >conftest.err
11697 cat conftest.err >&5
11698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699 (exit $ac_status); } && {
11700 test -z "$ac_c_werror_flag" ||
11701 test ! -s conftest.err
11702 } && test -s conftest$ac_exeext &&
11703 $as_test_x conftest$ac_exeext; then
11704 emacs_cv_x11_version_5_with_xaw=yes
11706 echo "$as_me: failed program was:" >&5
11707 sed 's/^/| /' conftest.$ac_ext >&5
11709 emacs_cv_x11_version_5_with_xaw=no
11712 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11713 conftest$ac_exeext conftest.$ac_ext
11716 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11717 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11718 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11719 USE_X_TOOLKIT=LUCID
11721 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11722 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11730 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11732 if test "${USE_X_TOOLKIT}" != "none"; then
11733 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11734 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11735 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11736 echo $ECHO_N "(cached) $ECHO_C" >&6
11738 cat >conftest.$ac_ext <<_ACEOF
11741 cat confdefs.h >>conftest.$ac_ext
11742 cat >>conftest.$ac_ext <<_ACEOF
11743 /* end confdefs.h. */
11744 #include <X11/Intrinsic.h>
11748 #if XtSpecificationRelease < 6
11756 rm -f conftest.$ac_objext conftest$ac_exeext
11757 if { (ac_try="$ac_link"
11758 case "(($ac_try" in
11759 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11760 *) ac_try_echo
=$ac_try;;
11762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11763 (eval "$ac_link") 2>conftest.er1
11765 grep -v '^ *+' conftest.er1
>conftest.err
11767 cat conftest.err
>&5
11768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11769 (exit $ac_status); } && {
11770 test -z "$ac_c_werror_flag" ||
11771 test ! -s conftest.err
11772 } && test -s conftest
$ac_exeext &&
11773 $as_test_x conftest
$ac_exeext; then
11774 emacs_cv_x11_toolkit_version_6
=yes
11776 echo "$as_me: failed program was:" >&5
11777 sed 's/^/| /' conftest.
$ac_ext >&5
11779 emacs_cv_x11_toolkit_version_6
=no
11782 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11783 conftest
$ac_exeext conftest.
$ac_ext
11786 HAVE_X11XTR6
=$emacs_cv_x11_toolkit_version_6
11787 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11788 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11789 echo "${ECHO_T}6 or newer" >&6; }
11791 cat >>confdefs.h
<<\_ACEOF
11792 #define HAVE_X11XTR6 1
11796 { echo "$as_me:$LINENO: result: before 6" >&5
11797 echo "${ECHO_T}before 6" >&6; }
11801 if test x
$HAVE_X11XTR6 = xyes
; then
11802 LIBS
="-lXt -lSM -lICE $LIBS"
11807 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11808 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11809 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11810 echo $ECHO_N "(cached) $ECHO_C" >&6
11812 ac_check_lib_save_LIBS
=$LIBS
11814 cat >conftest.
$ac_ext <<_ACEOF
11817 cat confdefs.h
>>conftest.
$ac_ext
11818 cat >>conftest.
$ac_ext <<_ACEOF
11819 /* end confdefs.h. */
11821 /* Override any GCC internal prototype to avoid an error.
11822 Use char because int might match the return type of a GCC
11823 builtin and then its argument prototype would still apply. */
11827 char XmuConvertStandardSelection ();
11831 return XmuConvertStandardSelection ();
11836 rm -f conftest.
$ac_objext conftest
$ac_exeext
11837 if { (ac_try
="$ac_link"
11838 case "(($ac_try" in
11839 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11840 *) ac_try_echo=$ac_try;;
11842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11843 (eval "$ac_link") 2>conftest.er1
11845 grep -v '^ *+' conftest.er1 >conftest.err
11847 cat conftest.err >&5
11848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11849 (exit $ac_status); } && {
11850 test -z "$ac_c_werror_flag" ||
11851 test ! -s conftest.err
11852 } && test -s conftest$ac_exeext &&
11853 $as_test_x conftest$ac_exeext; then
11854 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11856 echo "$as_me: failed program was:" >&5
11857 sed 's/^/| /' conftest.$ac_ext >&5
11859 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11862 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11863 conftest$ac_exeext conftest.$ac_ext
11864 LIBS=$ac_check_lib_save_LIBS
11866 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11867 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11868 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11869 cat >>confdefs.h <<_ACEOF
11870 #define HAVE_LIBXMU 1
11877 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11880 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11881 if test "${HAVE_X11}" = "yes"; then
11882 if test "${USE_X_TOOLKIT}" != "none"; then
11884 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11885 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11886 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11887 echo $ECHO_N "(cached) $ECHO_C" >&6
11889 ac_check_lib_save_LIBS=$LIBS
11890 LIBS="-lXext $LIBS"
11891 cat >conftest.$ac_ext <<_ACEOF
11894 cat confdefs.h >>conftest.$ac_ext
11895 cat >>conftest.$ac_ext <<_ACEOF
11896 /* end confdefs.h. */
11898 /* Override any GCC internal prototype to avoid an error.
11899 Use char because int might match the return type of a GCC
11900 builtin and then its argument prototype would still apply. */
11904 char XShapeQueryExtension ();
11908 return XShapeQueryExtension ();
11913 rm -f conftest.$ac_objext conftest$ac_exeext
11914 if { (ac_try="$ac_link"
11915 case "(($ac_try" in
11916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
11917 *) ac_try_echo
=$ac_try;;
11919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11920 (eval "$ac_link") 2>conftest.er1
11922 grep -v '^ *+' conftest.er1
>conftest.err
11924 cat conftest.err
>&5
11925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11926 (exit $ac_status); } && {
11927 test -z "$ac_c_werror_flag" ||
11928 test ! -s conftest.err
11929 } && test -s conftest
$ac_exeext &&
11930 $as_test_x conftest
$ac_exeext; then
11931 ac_cv_lib_Xext_XShapeQueryExtension
=yes
11933 echo "$as_me: failed program was:" >&5
11934 sed 's/^/| /' conftest.
$ac_ext >&5
11936 ac_cv_lib_Xext_XShapeQueryExtension
=no
11939 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
11940 conftest
$ac_exeext conftest.
$ac_ext
11941 LIBS
=$ac_check_lib_save_LIBS
11943 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11944 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11945 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11946 cat >>confdefs.h
<<_ACEOF
11947 #define HAVE_LIBXEXT 1
11950 LIBS
="-lXext $LIBS"
11957 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11958 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11959 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
11960 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11961 echo $ECHO_N "(cached) $ECHO_C" >&6
11963 cat >conftest.
$ac_ext <<_ACEOF
11966 cat confdefs.h
>>conftest.
$ac_ext
11967 cat >>conftest.
$ac_ext <<_ACEOF
11968 /* end confdefs.h. */
11973 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11976 Motif version prior to 2.1.
11982 rm -f conftest.
$ac_objext
11983 if { (ac_try
="$ac_compile"
11984 case "(($ac_try" in
11985 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_compile") 2>conftest.er1
11991 grep -v '^ *+' conftest.er1 >conftest.err
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } && {
11996 test -z "$ac_c_werror_flag" ||
11997 test ! -s conftest.err
11998 } && test -s conftest.$ac_objext; then
11999 emacs_cv_motif_version_2_1=yes
12001 echo "$as_me: failed program was:" >&5
12002 sed 's/^/| /' conftest.$ac_ext >&5
12004 emacs_cv_motif_version_2_1=no
12007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12009 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12010 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12011 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12012 if test $emacs_cv_motif_version_2_1 = yes; then
12015 cat >>confdefs.h <<\_ACEOF
12016 #define HAVE_MOTIF_2_1 1
12019 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12020 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12021 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12024 ac_check_lib_save_LIBS=$LIBS
12026 cat >conftest.$ac_ext <<_ACEOF
12029 cat confdefs.h >>conftest.$ac_ext
12030 cat >>conftest.$ac_ext <<_ACEOF
12031 /* end confdefs.h. */
12033 /* Override any GCC internal prototype to avoid an error.
12034 Use char because int might match the return type of a GCC
12035 builtin and then its argument prototype would still apply. */
12039 char XpCreateContext ();
12043 return XpCreateContext ();
12048 rm -f conftest.$ac_objext conftest$ac_exeext
12049 if { (ac_try="$ac_link"
12050 case "(($ac_try" in
12051 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12052 *) ac_try_echo
=$ac_try;;
12054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12055 (eval "$ac_link") 2>conftest.er1
12057 grep -v '^ *+' conftest.er1
>conftest.err
12059 cat conftest.err
>&5
12060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12061 (exit $ac_status); } && {
12062 test -z "$ac_c_werror_flag" ||
12063 test ! -s conftest.err
12064 } && test -s conftest
$ac_exeext &&
12065 $as_test_x conftest
$ac_exeext; then
12066 ac_cv_lib_Xp_XpCreateContext
=yes
12068 echo "$as_me: failed program was:" >&5
12069 sed 's/^/| /' conftest.
$ac_ext >&5
12071 ac_cv_lib_Xp_XpCreateContext
=no
12074 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
12075 conftest
$ac_exeext conftest.
$ac_ext
12076 LIBS
=$ac_check_lib_save_LIBS
12078 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12079 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12080 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12084 if test ${HAVE_LIBXP} = yes; then
12086 cat >>confdefs.h
<<\_ACEOF
12087 #define HAVE_LIBXP 1
12092 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12093 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12094 if test "${emacs_cv_lesstif+set}" = set; then
12095 echo $ECHO_N "(cached) $ECHO_C" >&6
12097 # We put this in CFLAGS temporarily to precede other -I options
12098 # that might be in CFLAGS temporarily.
12099 # We put this in CPPFLAGS where it precedes the other -I options.
12100 OLD_CPPFLAGS
=$CPPFLAGS
12102 CPPFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12103 CFLAGS
="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12104 cat >conftest.
$ac_ext <<_ACEOF
12107 cat confdefs.h
>>conftest.
$ac_ext
12108 cat >>conftest.
$ac_ext <<_ACEOF
12109 /* end confdefs.h. */
12110 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12119 rm -f conftest.
$ac_objext
12120 if { (ac_try
="$ac_compile"
12121 case "(($ac_try" in
12122 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_compile") 2>conftest.er1
12128 grep -v '^ *+' conftest.er1 >conftest.err
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } && {
12133 test -z "$ac_c_werror_flag" ||
12134 test ! -s conftest.err
12135 } && test -s conftest.$ac_objext; then
12136 emacs_cv_lesstif=yes
12138 echo "$as_me: failed program was:" >&5
12139 sed 's/^/| /' conftest.$ac_ext >&5
12141 emacs_cv_lesstif=no
12144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12146 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12147 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12148 if test $emacs_cv_lesstif = yes; then
12149 # Make sure this -I option remains in CPPFLAGS after it is set
12150 # back to REAL_CPPFLAGS.
12151 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12152 # have those other -I options anyway. Ultimately, having this
12153 # directory ultimately in CPPFLAGS will be enough.
12154 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12155 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12158 CPPFLAGS=$OLD_CPPFLAGS
12163 ### Is -lXaw3d available?
12165 if test "${HAVE_X11}" = "yes"; then
12166 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12167 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12168 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12169 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12170 echo $ECHO_N "(cached) $ECHO_C" >&6
12172 cat >conftest.$ac_ext <<_ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 #include <X11/Xaw3d/Scrollbar.h>
12180 if { (ac_try="$ac_cpp conftest.$ac_ext"
12181 case "(($ac_try" in
12182 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12183 *) ac_try_echo
=$ac_try;;
12185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12188 grep -v '^ *+' conftest.er1
>conftest.err
12190 cat conftest.err
>&5
12191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12192 (exit $ac_status); } >/dev
/null
&& {
12193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12194 test ! -s conftest.err
12196 ac_cv_header_X11_Xaw3d_Scrollbar_h
=yes
12198 echo "$as_me: failed program was:" >&5
12199 sed 's/^/| /' conftest.
$ac_ext >&5
12201 ac_cv_header_X11_Xaw3d_Scrollbar_h
=no
12204 rm -f conftest.err conftest.
$ac_ext
12206 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12207 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12208 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12209 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12210 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12211 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12212 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 ac_check_lib_save_LIBS
=$LIBS
12215 LIBS
="-lXaw3d $LIBS"
12216 cat >conftest.
$ac_ext <<_ACEOF
12219 cat confdefs.h
>>conftest.
$ac_ext
12220 cat >>conftest.
$ac_ext <<_ACEOF
12221 /* end confdefs.h. */
12223 /* Override any GCC internal prototype to avoid an error.
12224 Use char because int might match the return type of a GCC
12225 builtin and then its argument prototype would still apply. */
12229 char XawScrollbarSetThumb ();
12233 return XawScrollbarSetThumb ();
12238 rm -f conftest.
$ac_objext conftest
$ac_exeext
12239 if { (ac_try
="$ac_link"
12240 case "(($ac_try" in
12241 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12242 *) ac_try_echo=$ac_try;;
12244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12245 (eval "$ac_link") 2>conftest.er1
12247 grep -v '^ *+' conftest.er1 >conftest.err
12249 cat conftest.err >&5
12250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12251 (exit $ac_status); } && {
12252 test -z "$ac_c_werror_flag" ||
12253 test ! -s conftest.err
12254 } && test -s conftest$ac_exeext &&
12255 $as_test_x conftest$ac_exeext; then
12256 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12258 echo "$as_me: failed program was:" >&5
12259 sed 's/^/| /' conftest.$ac_ext >&5
12261 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12265 conftest$ac_exeext conftest.$ac_ext
12266 LIBS=$ac_check_lib_save_LIBS
12268 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12269 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12270 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12277 if test "${HAVE_XAW3D}" = "yes"; then
12279 cat >>confdefs.h <<\_ACEOF
12280 #define HAVE_XAW3D 1
12289 USE_TOOLKIT_SCROLL_BARS=no
12290 if test "${with_toolkit_scroll_bars}" != "no"; then
12291 if test "${USE_X_TOOLKIT}" != "none"; then
12292 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12293 cat >>confdefs.h <<\_ACEOF
12294 #define USE_TOOLKIT_SCROLL_BARS 1
12298 USE_TOOLKIT_SCROLL_BARS=yes
12299 elif test "${HAVE_XAW3D}" = "yes"; then
12300 cat >>confdefs.h <<\_ACEOF
12301 #define USE_TOOLKIT_SCROLL_BARS 1
12304 USE_TOOLKIT_SCROLL_BARS=yes
12306 elif test "${HAVE_GTK}" = "yes"; then
12307 cat >>confdefs.h <<\_ACEOF
12308 #define USE_TOOLKIT_SCROLL_BARS 1
12311 USE_TOOLKIT_SCROLL_BARS=yes
12312 elif test "${HAVE_CARBON}" = "yes"; then
12313 cat >>confdefs.h <<\_ACEOF
12314 #define USE_TOOLKIT_SCROLL_BARS 1
12317 USE_TOOLKIT_SCROLL_BARS=yes
12321 cat >conftest.$ac_ext <<_ACEOF
12324 cat confdefs.h >>conftest.$ac_ext
12325 cat >>conftest.$ac_ext <<_ACEOF
12326 /* end confdefs.h. */
12328 #include <X11/Xlib.h>
12329 #include <X11/Xresource.h>
12338 rm -f conftest.$ac_objext
12339 if { (ac_try="$ac_compile"
12340 case "(($ac_try" in
12341 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12342 *) ac_try_echo
=$ac_try;;
12344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12345 (eval "$ac_compile") 2>conftest.er1
12347 grep -v '^ *+' conftest.er1
>conftest.err
12349 cat conftest.err
>&5
12350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12351 (exit $ac_status); } && {
12352 test -z "$ac_c_werror_flag" ||
12353 test ! -s conftest.err
12354 } && test -s conftest.
$ac_objext; then
12357 cat >>confdefs.h
<<\_ACEOF
12362 echo "$as_me: failed program was:" >&5
12363 sed 's/^/| /' conftest.
$ac_ext >&5
12368 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12371 if test "${with_xim}" != "no"; then
12373 cat >>confdefs.h
<<\_ACEOF
12380 if test "${HAVE_XIM}" != "no"; then
12381 late_CFLAGS
=$CFLAGS
12382 if test "$GCC" = yes; then
12383 CFLAGS
="$CFLAGS --pedantic-errors"
12385 cat >conftest.
$ac_ext <<_ACEOF
12388 cat confdefs.h
>>conftest.
$ac_ext
12389 cat >>conftest.
$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12392 #include <X11/Xlib.h>
12393 #include <X11/Xresource.h>
12402 XPointer *client_data;
12404 /* If we're not using GCC, it's probably not XFree86, and this is
12405 probably right, but we can't use something like --pedantic-errors. */
12406 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12407 char*, XIMProc, XPointer*);
12409 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12415 rm -f conftest.
$ac_objext
12416 if { (ac_try
="$ac_compile"
12417 case "(($ac_try" in
12418 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_compile") 2>conftest.er1
12424 grep -v '^ *+' conftest.er1 >conftest.err
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } && {
12429 test -z "$ac_c_werror_flag" ||
12430 test ! -s conftest.err
12431 } && test -s conftest.$ac_objext; then
12432 emacs_cv_arg6_star=yes
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12442 if test "$emacs_cv_arg6_star" = yes; then
12443 cat >>confdefs.h <<\_ACEOF
12444 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12448 cat >>confdefs.h <<\_ACEOF
12449 #define XRegisterIMInstantiateCallback_arg6 XPointer
12453 CFLAGS=$late_CFLAGS
12456 ### For font-backend
12457 if test "${USE_FONT_BACKEND}" = "yes"; then
12460 cat >>confdefs.h <<\_ACEOF
12461 #define USE_FONT_BACKEND 1
12465 ### Use -lXft if available, unless `--with-freetype=no
' nor `--with-xft=no'.
12467 if test "${HAVE_X11}" = "yes"; then
12468 if test "x${with_freetype}" = "xno"; then
12471 if test "x${with_xft}" != "xno"; then
12473 if test "X${with_pkg_config_prog}" != X
; then
12474 PKG_CONFIG
="${with_pkg_config_prog}"
12480 if test -z "$PKG_CONFIG"; then
12481 # Extract the first word of "pkg-config", so it can be a program name with args.
12482 set dummy pkg-config
; ac_word
=$2
12483 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12484 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12485 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12486 echo $ECHO_N "(cached) $ECHO_C" >&6
12488 case $PKG_CONFIG in
12490 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12493 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12494 for as_dir
in $PATH
12497 test -z "$as_dir" && as_dir
=.
12498 for ac_exec_ext
in '' $ac_executable_extensions; do
12499 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12500 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12508 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12512 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12513 if test -n "$PKG_CONFIG"; then
12514 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12515 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12517 { echo "$as_me:$LINENO: result: no" >&5
12518 echo "${ECHO_T}no" >&6; }
12524 if test "$PKG_CONFIG" = "no" ; then
12527 PKG_CONFIG_MIN_VERSION
=0.9.0
12528 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12529 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12530 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12532 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12533 { echo "$as_me:$LINENO: result: yes" >&5
12534 echo "${ECHO_T}yes" >&6; }
12537 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12538 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12539 XFT_CFLAGS
=`$PKG_CONFIG --cflags "xft >= 0.13.0"`
12540 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12541 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12543 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12544 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12545 XFT_LIBS
=`$PKG_CONFIG --libs "xft >= 0.13.0"`
12546 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12547 echo "${ECHO_T}$XFT_LIBS" >&6; }
12549 { echo "$as_me:$LINENO: result: no" >&5
12550 echo "${ECHO_T}no" >&6; }
12553 ## If we have a custom action on failure, don't print errors, but
12554 ## do set a variable so people can do so.
12555 XFT_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12562 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12563 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12567 if test $succeeded = yes; then
12573 if test "$HAVE_XFT" != no
; then
12574 OLD_CPPFLAGS
="$CPPFLAGS"
12575 OLD_CFLAGS
="$CFLAGS"
12577 CPPFLAGS
="$CPPFLAGS $XFT_CFLAGS"
12578 CFLAGS
="$CFLAGS $XFT_CFLAGS"
12579 LIBS
="$XFT_LIBS $LIBS"
12580 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12581 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12582 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12583 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12584 echo $ECHO_N "(cached) $ECHO_C" >&6
12586 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12587 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12589 # Is the header compilable?
12590 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12591 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12592 cat >conftest.
$ac_ext <<_ACEOF
12595 cat confdefs.h
>>conftest.
$ac_ext
12596 cat >>conftest.
$ac_ext <<_ACEOF
12597 /* end confdefs.h. */
12598 $ac_includes_default
12599 #include <X11/Xft/Xft.h>
12601 rm -f conftest.
$ac_objext
12602 if { (ac_try
="$ac_compile"
12603 case "(($ac_try" in
12604 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12605 *) ac_try_echo=$ac_try;;
12607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12608 (eval "$ac_compile") 2>conftest.er1
12610 grep -v '^ *+' conftest.er1 >conftest.err
12612 cat conftest.err >&5
12613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12614 (exit $ac_status); } && {
12615 test -z "$ac_c_werror_flag" ||
12616 test ! -s conftest.err
12617 } && test -s conftest.$ac_objext; then
12618 ac_header_compiler=yes
12620 echo "$as_me: failed program was:" >&5
12621 sed 's/^/| /' conftest.$ac_ext >&5
12623 ac_header_compiler=no
12626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12627 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12628 echo "${ECHO_T}$ac_header_compiler" >&6; }
12630 # Is the header present?
12631 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12632 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12633 cat >conftest.$ac_ext <<_ACEOF
12636 cat confdefs.h >>conftest.$ac_ext
12637 cat >>conftest.$ac_ext <<_ACEOF
12638 /* end confdefs.h. */
12639 #include <X11/Xft/Xft.h>
12641 if { (ac_try="$ac_cpp conftest.$ac_ext"
12642 case "(($ac_try" in
12643 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
12644 *) ac_try_echo
=$ac_try;;
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12649 grep -v '^ *+' conftest.er1
>conftest.err
12651 cat conftest.err
>&5
12652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12653 (exit $ac_status); } >/dev
/null
&& {
12654 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12655 test ! -s conftest.err
12657 ac_header_preproc
=yes
12659 echo "$as_me: failed program was:" >&5
12660 sed 's/^/| /' conftest.
$ac_ext >&5
12662 ac_header_preproc
=no
12665 rm -f conftest.err conftest.
$ac_ext
12666 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12667 echo "${ECHO_T}$ac_header_preproc" >&6; }
12669 # So? What about this header?
12670 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12672 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12673 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12674 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12675 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12676 ac_header_preproc
=yes
12679 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12680 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12681 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12682 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12683 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12684 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12685 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12686 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12687 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12688 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12689 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12690 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12694 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12695 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12696 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12697 echo $ECHO_N "(cached) $ECHO_C" >&6
12699 ac_cv_header_X11_Xft_Xft_h
=$ac_header_preproc
12701 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12702 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12705 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12706 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12707 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12708 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12709 echo $ECHO_N "(cached) $ECHO_C" >&6
12711 ac_check_lib_save_LIBS
=$LIBS
12712 LIBS
="-lXft $XFT_LIBS $LIBS"
12713 cat >conftest.
$ac_ext <<_ACEOF
12716 cat confdefs.h
>>conftest.
$ac_ext
12717 cat >>conftest.
$ac_ext <<_ACEOF
12718 /* end confdefs.h. */
12720 /* Override any GCC internal prototype to avoid an error.
12721 Use char because int might match the return type of a GCC
12722 builtin and then its argument prototype would still apply. */
12726 char XftFontOpen ();
12730 return XftFontOpen ();
12735 rm -f conftest.
$ac_objext conftest
$ac_exeext
12736 if { (ac_try
="$ac_link"
12737 case "(($ac_try" in
12738 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
12739 *) ac_try_echo=$ac_try;;
12741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12742 (eval "$ac_link") 2>conftest.er1
12744 grep -v '^ *+' conftest.er1 >conftest.err
12746 cat conftest.err >&5
12747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12748 (exit $ac_status); } && {
12749 test -z "$ac_c_werror_flag" ||
12750 test ! -s conftest.err
12751 } && test -s conftest$ac_exeext &&
12752 $as_test_x conftest$ac_exeext; then
12753 ac_cv_lib_Xft_XftFontOpen=yes
12755 echo "$as_me: failed program was:" >&5
12756 sed 's/^/| /' conftest.$ac_ext >&5
12758 ac_cv_lib_Xft_XftFontOpen=no
12761 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12762 conftest$ac_exeext conftest.$ac_ext
12763 LIBS=$ac_check_lib_save_LIBS
12765 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12766 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12767 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12775 if test "${HAVE_XFT}" = "yes"; then
12777 cat >>confdefs.h <<\_ACEOF
12782 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12784 CFLAGS="$OLD_CPPFLAGS"
12785 CFLAGS="$OLD_CFLAGS"
12793 ### Use -lfreetype if available, unless `--with-freetype=no
'.
12794 if test "${HAVE_XFT}" = "yes"; then
12796 elif test "x${with_freetype}" != "xno"; then
12797 if test "X${with_pkg_config_prog}" != X; then
12798 PKG_CONFIG="${with_pkg_config_prog}"
12804 if test -z "$PKG_CONFIG"; then
12805 # Extract the first word of "pkg-config", so it can be a program name with args.
12806 set dummy pkg-config; ac_word=$2
12807 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12808 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12809 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12810 echo $ECHO_N "(cached) $ECHO_C" >&6
12812 case $PKG_CONFIG in
12814 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818 for as_dir in $PATH
12821 test -z "$as_dir" && as_dir=.
12822 for ac_exec_ext in '' $ac_executable_extensions; do
12823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12824 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12825 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12832 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12836 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12837 if test -n "$PKG_CONFIG"; then
12838 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12839 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12841 { echo "$as_me:$LINENO: result: no" >&5
12842 echo "${ECHO_T}no" >&6; }
12848 if test "$PKG_CONFIG" = "no" ; then
12851 PKG_CONFIG_MIN_VERSION=0.9.0
12852 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12853 { echo "$as_me:$LINENO: checking for freetype2" >&5
12854 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12856 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12857 { echo "$as_me:$LINENO: result: yes" >&5
12858 echo "${ECHO_T}yes" >&6; }
12861 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12862 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12863 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
12864 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12865 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12867 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12868 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12869 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"`
12870 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12871 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12873 { echo "$as_me:$LINENO: result: no" >&5
12874 echo "${ECHO_T}no" >&6; }
12877 ## If we have a custom action on failure, don't print errors
, but
12878 ## do set a variable so people can do so.
12879 FREETYPE_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12886 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12887 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12891 if test $succeeded = yes; then
12897 if test "${HAVE_FREETYPE}" = "yes"; then
12901 if test -z "$PKG_CONFIG"; then
12902 # Extract the first word of "pkg-config", so it can be a program name with args.
12903 set dummy pkg-config
; ac_word
=$2
12904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12906 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12907 echo $ECHO_N "(cached) $ECHO_C" >&6
12909 case $PKG_CONFIG in
12911 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
12914 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
12915 for as_dir
in $PATH
12918 test -z "$as_dir" && as_dir
=.
12919 for ac_exec_ext
in '' $ac_executable_extensions; do
12920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12921 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
12922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12929 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG
="no"
12933 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
12934 if test -n "$PKG_CONFIG"; then
12935 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12936 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12938 { echo "$as_me:$LINENO: result: no" >&5
12939 echo "${ECHO_T}no" >&6; }
12945 if test "$PKG_CONFIG" = "no" ; then
12948 PKG_CONFIG_MIN_VERSION
=0.9.0
12949 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12950 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12951 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12953 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12954 { echo "$as_me:$LINENO: result: yes" >&5
12955 echo "${ECHO_T}yes" >&6; }
12958 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
12959 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
12960 FONTCONFIG_CFLAGS
=`$PKG_CONFIG --cflags "fontconfig"`
12961 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
12962 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
12964 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
12965 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
12966 FONTCONFIG_LIBS
=`$PKG_CONFIG --libs "fontconfig"`
12967 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
12968 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
12970 { echo "$as_me:$LINENO: result: no" >&5
12971 echo "${ECHO_T}no" >&6; }
12972 FONTCONFIG_CFLAGS
=""
12974 ## If we have a custom action on failure, don't print errors, but
12975 ## do set a variable so people can do so.
12976 FONTCONFIG_PKG_ERRORS
=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
12983 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12984 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12988 if test $succeeded = yes; then
12994 if test "${HAVE_FC}" = "no"; then
12999 if test "${HAVE_FREETYPE}" = "yes"; then
13001 cat >>confdefs.h
<<\_ACEOF
13002 #define HAVE_FREETYPE 1
13005 # Extract the first word of "libotf-config", so it can be a program name with args.
13006 set dummy libotf-config
; ac_word
=$2
13007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13009 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13010 echo $ECHO_N "(cached) $ECHO_C" >&6
13012 if test -n "$HAVE_LIBOTF"; then
13013 ac_cv_prog_HAVE_LIBOTF
="$HAVE_LIBOTF" # Let the user override the test.
13015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
13016 for as_dir
in $PATH
13019 test -z "$as_dir" && as_dir
=.
13020 for ac_exec_ext
in '' $ac_executable_extensions; do
13021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13022 ac_cv_prog_HAVE_LIBOTF
="yes"
13023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13030 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF
="no"
13033 HAVE_LIBOTF
=$ac_cv_prog_HAVE_LIBOTF
13034 if test -n "$HAVE_LIBOTF"; then
13035 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13036 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13038 { echo "$as_me:$LINENO: result: no" >&5
13039 echo "${ECHO_T}no" >&6; }
13043 if test "${HAVE_LIBOTF}" = "yes"; then
13045 cat >>confdefs.h
<<\_ACEOF
13046 #define HAVE_LIBOTF 1
13049 LIBOTF_CFLAGS
=`libotf-config --cflags`
13050 LIBOTF_LIBS
=`libotf-config --libs`
13062 ### Use -lXpm if available, unless `--with-xpm=no'.
13064 if test "${HAVE_X11}" = "yes"; then
13065 if test "${with_xpm}" != "no"; then
13066 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13067 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13068 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13069 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13072 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13073 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13075 # Is the header compilable?
13076 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13077 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13078 cat >conftest.
$ac_ext <<_ACEOF
13081 cat confdefs.h
>>conftest.
$ac_ext
13082 cat >>conftest.
$ac_ext <<_ACEOF
13083 /* end confdefs.h. */
13084 $ac_includes_default
13085 #include <X11/xpm.h>
13087 rm -f conftest.
$ac_objext
13088 if { (ac_try
="$ac_compile"
13089 case "(($ac_try" in
13090 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13091 *) ac_try_echo=$ac_try;;
13093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13094 (eval "$ac_compile") 2>conftest.er1
13096 grep -v '^ *+' conftest.er1 >conftest.err
13098 cat conftest.err >&5
13099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13100 (exit $ac_status); } && {
13101 test -z "$ac_c_werror_flag" ||
13102 test ! -s conftest.err
13103 } && test -s conftest.$ac_objext; then
13104 ac_header_compiler=yes
13106 echo "$as_me: failed program was:" >&5
13107 sed 's/^/| /' conftest.$ac_ext >&5
13109 ac_header_compiler=no
13112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13113 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13114 echo "${ECHO_T}$ac_header_compiler" >&6; }
13116 # Is the header present?
13117 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13118 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13119 cat >conftest.$ac_ext <<_ACEOF
13122 cat confdefs.h >>conftest.$ac_ext
13123 cat >>conftest.$ac_ext <<_ACEOF
13124 /* end confdefs.h. */
13125 #include <X11/xpm.h>
13127 if { (ac_try="$ac_cpp conftest.$ac_ext"
13128 case "(($ac_try" in
13129 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13130 *) ac_try_echo
=$ac_try;;
13132 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13133 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13135 grep -v '^ *+' conftest.er1
>conftest.err
13137 cat conftest.err
>&5
13138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13139 (exit $ac_status); } >/dev
/null
&& {
13140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13141 test ! -s conftest.err
13143 ac_header_preproc
=yes
13145 echo "$as_me: failed program was:" >&5
13146 sed 's/^/| /' conftest.
$ac_ext >&5
13148 ac_header_preproc
=no
13151 rm -f conftest.err conftest.
$ac_ext
13152 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13153 echo "${ECHO_T}$ac_header_preproc" >&6; }
13155 # So? What about this header?
13156 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13158 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13159 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13160 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13161 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13162 ac_header_preproc
=yes
13165 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13166 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13167 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13168 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13169 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13170 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13172 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13174 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13176 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13180 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13181 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13182 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13183 echo $ECHO_N "(cached) $ECHO_C" >&6
13185 ac_cv_header_X11_xpm_h
=$ac_header_preproc
13187 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13188 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13191 if test $ac_cv_header_X11_xpm_h = yes; then
13192 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13193 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13194 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13195 echo $ECHO_N "(cached) $ECHO_C" >&6
13197 ac_check_lib_save_LIBS
=$LIBS
13198 LIBS
="-lXpm -lX11 $LIBS"
13199 cat >conftest.
$ac_ext <<_ACEOF
13202 cat confdefs.h
>>conftest.
$ac_ext
13203 cat >>conftest.
$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13206 /* Override any GCC internal prototype to avoid an error.
13207 Use char because int might match the return type of a GCC
13208 builtin and then its argument prototype would still apply. */
13212 char XpmReadFileToPixmap ();
13216 return XpmReadFileToPixmap ();
13221 rm -f conftest.
$ac_objext conftest
$ac_exeext
13222 if { (ac_try
="$ac_link"
13223 case "(($ac_try" in
13224 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13225 *) ac_try_echo=$ac_try;;
13227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13228 (eval "$ac_link") 2>conftest.er1
13230 grep -v '^ *+' conftest.er1 >conftest.err
13232 cat conftest.err >&5
13233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13234 (exit $ac_status); } && {
13235 test -z "$ac_c_werror_flag" ||
13236 test ! -s conftest.err
13237 } && test -s conftest$ac_exeext &&
13238 $as_test_x conftest$ac_exeext; then
13239 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13241 echo "$as_me: failed program was:" >&5
13242 sed 's/^/| /' conftest.$ac_ext >&5
13244 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13248 conftest$ac_exeext conftest.$ac_ext
13249 LIBS=$ac_check_lib_save_LIBS
13251 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13252 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13253 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13260 if test "${HAVE_XPM}" = "yes"; then
13261 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13262 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13263 cat >conftest.$ac_ext <<_ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13269 #include "X11/xpm.h"
13270 #ifndef XpmReturnAllocPixels
13271 no_return_alloc_pixels
13275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13276 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13284 if test "${HAVE_XPM}" = "yes"; then
13285 { echo "$as_me:$LINENO: result: yes" >&5
13286 echo "${ECHO_T}yes" >&6; }
13288 { echo "$as_me:$LINENO: result: no" >&5
13289 echo "${ECHO_T}no" >&6; }
13294 if test "${HAVE_XPM}" = "yes"; then
13296 cat >>confdefs.h <<\_ACEOF
13303 ### Use -ljpeg if available, unless `--with-jpeg=no
'.
13305 if test "${HAVE_X11}" = "yes"; then
13306 if test "${with_jpeg}" != "no"; then
13307 if test "${ac_cv_header_jerror_h+set}" = set; then
13308 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13309 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13310 if test "${ac_cv_header_jerror_h+set}" = set; then
13311 echo $ECHO_N "(cached) $ECHO_C" >&6
13313 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13314 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13316 # Is the header compilable?
13317 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13318 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13319 cat >conftest.$ac_ext <<_ACEOF
13322 cat confdefs.h >>conftest.$ac_ext
13323 cat >>conftest.$ac_ext <<_ACEOF
13324 /* end confdefs.h. */
13325 $ac_includes_default
13326 #include <jerror.h>
13328 rm -f conftest.$ac_objext
13329 if { (ac_try="$ac_compile"
13330 case "(($ac_try" in
13331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13332 *) ac_try_echo=$ac_try;;
13334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13335 (eval "$ac_compile") 2>conftest.er1
13337 grep -v '^
*+' conftest.er1 >conftest.err
13339 cat conftest.err >&5
13340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13341 (exit $ac_status); } && {
13342 test -z "$ac_c_werror_flag" ||
13343 test ! -s conftest.err
13344 } && test -s conftest.$ac_objext; then
13345 ac_header_compiler=yes
13347 echo "$as_me: failed program was:" >&5
13348 sed 's
/^
/|
/' conftest.$ac_ext >&5
13350 ac_header_compiler=no
13353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13354 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13355 echo "${ECHO_T}$ac_header_compiler" >&6; }
13357 # Is the header present?
13358 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13359 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13360 cat >conftest.$ac_ext <<_ACEOF
13363 cat confdefs.h >>conftest.$ac_ext
13364 cat >>conftest.$ac_ext <<_ACEOF
13365 /* end confdefs.h. */
13366 #include <jerror.h>
13368 if { (ac_try="$ac_cpp conftest.$ac_ext"
13369 case "(($ac_try" in
13370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13371 *) ac_try_echo=$ac_try;;
13373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13374 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13376 grep -v '^
*+' conftest.er1 >conftest.err
13378 cat conftest.err >&5
13379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13380 (exit $ac_status); } >/dev/null && {
13381 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13382 test ! -s conftest.err
13384 ac_header_preproc=yes
13386 echo "$as_me: failed program was:" >&5
13387 sed 's
/^
/|
/' conftest.$ac_ext >&5
13389 ac_header_preproc=no
13392 rm -f conftest.err conftest.$ac_ext
13393 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13394 echo "${ECHO_T}$ac_header_preproc" >&6; }
13396 # So? What about this header?
13397 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13399 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13400 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13401 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result
" >&5
13402 echo "$as_me: WARNING
: jerror.h
: proceeding with the compiler
's result" >&2;}
13403 ac_header_preproc=yes
13406 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13407 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13408 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13409 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13410 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13411 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13412 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13413 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13414 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result
" >&5
13415 echo "$as_me: WARNING
: jerror.h
: proceeding with the preprocessor
's result" >&2;}
13416 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13417 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13421 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13422 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13423 if test "${ac_cv_header_jerror_h+set}" = set; then
13424 echo $ECHO_N "(cached) $ECHO_C" >&6
13426 ac_cv_header_jerror_h=$ac_header_preproc
13428 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13429 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13432 if test $ac_cv_header_jerror_h = yes; then
13433 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13434 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13435 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13436 echo $ECHO_N "(cached) $ECHO_C" >&6
13438 ac_check_lib_save_LIBS=$LIBS
13439 LIBS="-ljpeg $LIBS"
13440 cat >conftest.$ac_ext <<_ACEOF
13443 cat confdefs.h >>conftest.$ac_ext
13444 cat >>conftest.$ac_ext <<_ACEOF
13445 /* end confdefs.h. */
13447 /* Override any GCC internal prototype to avoid an error.
13448 Use char because int might match the return type of a GCC
13449 builtin and then its argument prototype would still apply. */
13453 char jpeg_destroy_compress ();
13457 return jpeg_destroy_compress ();
13462 rm -f conftest.$ac_objext conftest$ac_exeext
13463 if { (ac_try="$ac_link"
13464 case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_link") 2>conftest.er1
13471 grep -v '^
*+' conftest.er1 >conftest.err
13473 cat conftest.err >&5
13474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13475 (exit $ac_status); } && {
13476 test -z "$ac_c_werror_flag" ||
13477 test ! -s conftest.err
13478 } && test -s conftest$ac_exeext &&
13479 $as_test_x conftest$ac_exeext; then
13480 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13482 echo "$as_me: failed program was:" >&5
13483 sed 's
/^
/|
/' conftest.$ac_ext >&5
13485 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13489 conftest$ac_exeext conftest.$ac_ext
13490 LIBS=$ac_check_lib_save_LIBS
13492 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13493 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13494 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13504 if test "${HAVE_JPEG}" = "yes"; then
13505 cat >>confdefs.h <<\_ACEOF
13506 #define HAVE_JPEG 1
13509 cat >conftest.$ac_ext <<_ACEOF
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13515 #include <jpeglib.h>
13516 version=JPEG_LIB_VERSION
13519 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13520 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13521 cat >>confdefs.h <<\_ACEOF
13522 #define HAVE_JPEG 1
13526 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13527 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13535 ### Use -lpng if available, unless `--with-png=no'.
13537 if test "${HAVE_X11}" = "yes"; then
13538 if test "${with_png}" != "no"; then
13539 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13540 # in /usr/include/libpng.
13543 for ac_header
in png.h libpng
/png.h
13545 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13546 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13549 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13550 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 ac_res
=`eval echo '${'$as_ac_Header'}'`
13553 { echo "$as_me:$LINENO: result: $ac_res" >&5
13554 echo "${ECHO_T}$ac_res" >&6; }
13556 # Is the header compilable?
13557 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13558 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13559 cat >conftest.
$ac_ext <<_ACEOF
13562 cat confdefs.h
>>conftest.
$ac_ext
13563 cat >>conftest.
$ac_ext <<_ACEOF
13564 /* end confdefs.h. */
13565 $ac_includes_default
13566 #include <$ac_header>
13568 rm -f conftest.
$ac_objext
13569 if { (ac_try
="$ac_compile"
13570 case "(($ac_try" in
13571 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_compile") 2>conftest.er1
13577 grep -v '^ *+' conftest.er1 >conftest.err
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest.$ac_objext; then
13585 ac_header_compiler=yes
13587 echo "$as_me: failed program was:" >&5
13588 sed 's/^/| /' conftest.$ac_ext >&5
13590 ac_header_compiler=no
13593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13594 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13595 echo "${ECHO_T}$ac_header_compiler" >&6; }
13597 # Is the header present?
13598 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13599 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13600 cat >conftest.$ac_ext <<_ACEOF
13603 cat confdefs.h >>conftest.$ac_ext
13604 cat >>conftest.$ac_ext <<_ACEOF
13605 /* end confdefs.h. */
13606 #include <$ac_header>
13608 if { (ac_try="$ac_cpp conftest.$ac_ext"
13609 case "(($ac_try" in
13610 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
13611 *) ac_try_echo
=$ac_try;;
13613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13616 grep -v '^ *+' conftest.er1
>conftest.err
13618 cat conftest.err
>&5
13619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13620 (exit $ac_status); } >/dev
/null
&& {
13621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13622 test ! -s conftest.err
13624 ac_header_preproc
=yes
13626 echo "$as_me: failed program was:" >&5
13627 sed 's/^/| /' conftest.
$ac_ext >&5
13629 ac_header_preproc
=no
13632 rm -f conftest.err conftest.
$ac_ext
13633 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13634 echo "${ECHO_T}$ac_header_preproc" >&6; }
13636 # So? What about this header?
13637 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13639 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13640 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13641 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13642 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13643 ac_header_preproc
=yes
13646 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13647 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13648 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13649 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13650 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13651 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13652 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13653 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13654 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13655 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13656 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13657 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13663 if { as_var
=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13664 echo $ECHO_N "(cached) $ECHO_C" >&6
13666 eval "$as_ac_Header=\$ac_header_preproc"
13668 ac_res
=`eval echo '${'$as_ac_Header'}'`
13669 { echo "$as_me:$LINENO: result: $ac_res" >&5
13670 echo "${ECHO_T}$ac_res" >&6; }
13673 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13674 cat >>confdefs.h
<<_ACEOF
13675 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13682 if test "$ac_cv_header_png_h" = yes ||
test "$ac_cv_header_libpng_png_h" = yes ; then
13683 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13684 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13685 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13686 echo $ECHO_N "(cached) $ECHO_C" >&6
13688 ac_check_lib_save_LIBS
=$LIBS
13689 LIBS
="-lpng -lz -lm $LIBS"
13690 cat >conftest.
$ac_ext <<_ACEOF
13693 cat confdefs.h
>>conftest.
$ac_ext
13694 cat >>conftest.
$ac_ext <<_ACEOF
13695 /* end confdefs.h. */
13697 /* Override any GCC internal prototype to avoid an error.
13698 Use char because int might match the return type of a GCC
13699 builtin and then its argument prototype would still apply. */
13703 char png_get_channels ();
13707 return png_get_channels ();
13712 rm -f conftest.
$ac_objext conftest
$ac_exeext
13713 if { (ac_try
="$ac_link"
13714 case "(($ac_try" in
13715 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
13716 *) ac_try_echo=$ac_try;;
13718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13719 (eval "$ac_link") 2>conftest.er1
13721 grep -v '^ *+' conftest.er1 >conftest.err
13723 cat conftest.err >&5
13724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13725 (exit $ac_status); } && {
13726 test -z "$ac_c_werror_flag" ||
13727 test ! -s conftest.err
13728 } && test -s conftest$ac_exeext &&
13729 $as_test_x conftest$ac_exeext; then
13730 ac_cv_lib_png_png_get_channels=yes
13732 echo "$as_me: failed program was:" >&5
13733 sed 's/^/| /' conftest.$ac_ext >&5
13735 ac_cv_lib_png_png_get_channels=no
13738 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13739 conftest$ac_exeext conftest.$ac_ext
13740 LIBS=$ac_check_lib_save_LIBS
13742 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13743 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13744 if test $ac_cv_lib_png_png_get_channels = yes; then
13751 if test "${HAVE_PNG}" = "yes"; then
13753 cat >>confdefs.h <<\_ACEOF
13760 ### Use -ltiff if available, unless `--with-tiff=no
'.
13762 if test "${HAVE_X11}" = "yes"; then
13763 if test "${with_tiff}" != "no"; then
13764 if test "${ac_cv_header_tiffio_h+set}" = set; then
13765 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13766 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13767 if test "${ac_cv_header_tiffio_h+set}" = set; then
13768 echo $ECHO_N "(cached) $ECHO_C" >&6
13770 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13771 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13773 # Is the header compilable?
13774 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13775 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13776 cat >conftest.$ac_ext <<_ACEOF
13779 cat confdefs.h >>conftest.$ac_ext
13780 cat >>conftest.$ac_ext <<_ACEOF
13781 /* end confdefs.h. */
13782 $ac_includes_default
13783 #include <tiffio.h>
13785 rm -f conftest.$ac_objext
13786 if { (ac_try="$ac_compile"
13787 case "(($ac_try" in
13788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13789 *) ac_try_echo=$ac_try;;
13791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13792 (eval "$ac_compile") 2>conftest.er1
13794 grep -v '^
*+' conftest.er1 >conftest.err
13796 cat conftest.err >&5
13797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798 (exit $ac_status); } && {
13799 test -z "$ac_c_werror_flag" ||
13800 test ! -s conftest.err
13801 } && test -s conftest.$ac_objext; then
13802 ac_header_compiler=yes
13804 echo "$as_me: failed program was:" >&5
13805 sed 's
/^
/|
/' conftest.$ac_ext >&5
13807 ac_header_compiler=no
13810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13812 echo "${ECHO_T}$ac_header_compiler" >&6; }
13814 # Is the header present?
13815 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13816 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13817 cat >conftest.$ac_ext <<_ACEOF
13820 cat confdefs.h >>conftest.$ac_ext
13821 cat >>conftest.$ac_ext <<_ACEOF
13822 /* end confdefs.h. */
13823 #include <tiffio.h>
13825 if { (ac_try="$ac_cpp conftest.$ac_ext"
13826 case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13833 grep -v '^
*+' conftest.er1 >conftest.err
13835 cat conftest.err >&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } >/dev/null && {
13838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13839 test ! -s conftest.err
13841 ac_header_preproc=yes
13843 echo "$as_me: failed program was:" >&5
13844 sed 's
/^
/|
/' conftest.$ac_ext >&5
13846 ac_header_preproc=no
13849 rm -f conftest.err conftest.$ac_ext
13850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13851 echo "${ECHO_T}$ac_header_preproc" >&6; }
13853 # So? What about this header?
13854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13856 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13857 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13858 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result
" >&5
13859 echo "$as_me: WARNING
: tiffio.h
: proceeding with the compiler
's result" >&2;}
13860 ac_header_preproc=yes
13863 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13864 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13865 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13866 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13867 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13868 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13869 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13870 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13871 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result
" >&5
13872 echo "$as_me: WARNING
: tiffio.h
: proceeding with the preprocessor
's result" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13874 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13878 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13879 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13880 if test "${ac_cv_header_tiffio_h+set}" = set; then
13881 echo $ECHO_N "(cached) $ECHO_C" >&6
13883 ac_cv_header_tiffio_h=$ac_header_preproc
13885 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13886 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13889 if test $ac_cv_header_tiffio_h = yes; then
13891 # At least one tiff package requires the jpeg library.
13892 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13893 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13894 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13895 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13896 echo $ECHO_N "(cached) $ECHO_C" >&6
13898 ac_check_lib_save_LIBS=$LIBS
13899 LIBS="-ltiff $tifflibs $LIBS"
13900 cat >conftest.$ac_ext <<_ACEOF
13903 cat confdefs.h >>conftest.$ac_ext
13904 cat >>conftest.$ac_ext <<_ACEOF
13905 /* end confdefs.h. */
13907 /* Override any GCC internal prototype to avoid an error.
13908 Use char because int might match the return type of a GCC
13909 builtin and then its argument prototype would still apply. */
13913 char TIFFGetVersion ();
13917 return TIFFGetVersion ();
13922 rm -f conftest.$ac_objext conftest$ac_exeext
13923 if { (ac_try="$ac_link"
13924 case "(($ac_try" in
13925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13926 *) ac_try_echo=$ac_try;;
13928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13929 (eval "$ac_link") 2>conftest.er1
13931 grep -v '^
*+' conftest.er1 >conftest.err
13933 cat conftest.err >&5
13934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13935 (exit $ac_status); } && {
13936 test -z "$ac_c_werror_flag" ||
13937 test ! -s conftest.err
13938 } && test -s conftest$ac_exeext &&
13939 $as_test_x conftest$ac_exeext; then
13940 ac_cv_lib_tiff_TIFFGetVersion=yes
13942 echo "$as_me: failed program was:" >&5
13943 sed 's
/^
/|
/' conftest.$ac_ext >&5
13945 ac_cv_lib_tiff_TIFFGetVersion=no
13948 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13949 conftest$ac_exeext conftest.$ac_ext
13950 LIBS=$ac_check_lib_save_LIBS
13952 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13953 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13954 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13963 if test "${HAVE_TIFF}" = "yes"; then
13965 cat >>confdefs.h <<\_ACEOF
13966 #define HAVE_TIFF 1
13972 ### Use -lgif if available, unless `--with-gif=no'.
13974 if test "${HAVE_X11}" = "yes"; then
13975 if test "${with_gif}" != "no"; then
13976 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13977 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13978 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13979 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13980 echo $ECHO_N "(cached) $ECHO_C" >&6
13982 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13983 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13985 # Is the header compilable?
13986 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13987 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13988 cat >conftest.
$ac_ext <<_ACEOF
13991 cat confdefs.h
>>conftest.
$ac_ext
13992 cat >>conftest.
$ac_ext <<_ACEOF
13993 /* end confdefs.h. */
13994 $ac_includes_default
13995 #include <gif_lib.h>
13997 rm -f conftest.
$ac_objext
13998 if { (ac_try
="$ac_compile"
13999 case "(($ac_try" in
14000 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14001 *) ac_try_echo=$ac_try;;
14003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14004 (eval "$ac_compile") 2>conftest.er1
14006 grep -v '^ *+' conftest.er1 >conftest.err
14008 cat conftest.err >&5
14009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010 (exit $ac_status); } && {
14011 test -z "$ac_c_werror_flag" ||
14012 test ! -s conftest.err
14013 } && test -s conftest.$ac_objext; then
14014 ac_header_compiler=yes
14016 echo "$as_me: failed program was:" >&5
14017 sed 's/^/| /' conftest.$ac_ext >&5
14019 ac_header_compiler=no
14022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14023 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14024 echo "${ECHO_T}$ac_header_compiler" >&6; }
14026 # Is the header present?
14027 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14028 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14029 cat >conftest.$ac_ext <<_ACEOF
14032 cat confdefs.h >>conftest.$ac_ext
14033 cat >>conftest.$ac_ext <<_ACEOF
14034 /* end confdefs.h. */
14035 #include <gif_lib.h>
14037 if { (ac_try="$ac_cpp conftest.$ac_ext"
14038 case "(($ac_try" in
14039 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14040 *) ac_try_echo
=$ac_try;;
14042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14043 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14045 grep -v '^ *+' conftest.er1
>conftest.err
14047 cat conftest.err
>&5
14048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14049 (exit $ac_status); } >/dev
/null
&& {
14050 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14051 test ! -s conftest.err
14053 ac_header_preproc
=yes
14055 echo "$as_me: failed program was:" >&5
14056 sed 's/^/| /' conftest.
$ac_ext >&5
14058 ac_header_preproc
=no
14061 rm -f conftest.err conftest.
$ac_ext
14062 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14063 echo "${ECHO_T}$ac_header_preproc" >&6; }
14065 # So? What about this header?
14066 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14068 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14069 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14070 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14071 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14072 ac_header_preproc
=yes
14075 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14076 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14077 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14078 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14079 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14080 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14081 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14082 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14083 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14084 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14085 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14086 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14090 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14091 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14092 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 ac_cv_header_gif_lib_h
=$ac_header_preproc
14097 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14098 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14101 if test $ac_cv_header_gif_lib_h = yes; then
14102 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14103 # Earlier versions can crash Emacs.
14104 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14105 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14106 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14107 echo $ECHO_N "(cached) $ECHO_C" >&6
14109 ac_check_lib_save_LIBS
=$LIBS
14110 LIBS
="-lungif $LIBS"
14111 cat >conftest.
$ac_ext <<_ACEOF
14114 cat confdefs.h
>>conftest.
$ac_ext
14115 cat >>conftest.
$ac_ext <<_ACEOF
14116 /* end confdefs.h. */
14118 /* Override any GCC internal prototype to avoid an error.
14119 Use char because int might match the return type of a GCC
14120 builtin and then its argument prototype would still apply. */
14124 char EGifPutExtensionLast ();
14128 return EGifPutExtensionLast ();
14133 rm -f conftest.
$ac_objext conftest
$ac_exeext
14134 if { (ac_try
="$ac_link"
14135 case "(($ac_try" in
14136 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14137 *) ac_try_echo=$ac_try;;
14139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14140 (eval "$ac_link") 2>conftest.er1
14142 grep -v '^ *+' conftest.er1 >conftest.err
14144 cat conftest.err >&5
14145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14146 (exit $ac_status); } && {
14147 test -z "$ac_c_werror_flag" ||
14148 test ! -s conftest.err
14149 } && test -s conftest$ac_exeext &&
14150 $as_test_x conftest$ac_exeext; then
14151 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14153 echo "$as_me: failed program was:" >&5
14154 sed 's/^/| /' conftest.$ac_ext >&5
14156 ac_cv_lib_ungif_EGifPutExtensionLast=no
14159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14160 conftest$ac_exeext conftest.$ac_ext
14161 LIBS=$ac_check_lib_save_LIBS
14163 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14164 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14165 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14174 if test "${HAVE_GIF}" = "yes"; then
14176 cat >>confdefs.h <<\_ACEOF
14183 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14184 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14185 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14186 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14187 echo $ECHO_N "(cached) $ECHO_C" >&6
14189 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14190 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14192 # Is the header compilable?
14193 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14194 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14195 cat >conftest.$ac_ext <<_ACEOF
14198 cat confdefs.h >>conftest.$ac_ext
14199 cat >>conftest.$ac_ext <<_ACEOF
14200 /* end confdefs.h. */
14201 $ac_includes_default
14202 #include <malloc/malloc.h>
14204 rm -f conftest.$ac_objext
14205 if { (ac_try="$ac_compile"
14206 case "(($ac_try" in
14207 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14208 *) ac_try_echo
=$ac_try;;
14210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14211 (eval "$ac_compile") 2>conftest.er1
14213 grep -v '^ *+' conftest.er1
>conftest.err
14215 cat conftest.err
>&5
14216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14217 (exit $ac_status); } && {
14218 test -z "$ac_c_werror_flag" ||
14219 test ! -s conftest.err
14220 } && test -s conftest.
$ac_objext; then
14221 ac_header_compiler
=yes
14223 echo "$as_me: failed program was:" >&5
14224 sed 's/^/| /' conftest.
$ac_ext >&5
14226 ac_header_compiler
=no
14229 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14230 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14231 echo "${ECHO_T}$ac_header_compiler" >&6; }
14233 # Is the header present?
14234 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14235 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14236 cat >conftest.
$ac_ext <<_ACEOF
14239 cat confdefs.h
>>conftest.
$ac_ext
14240 cat >>conftest.
$ac_ext <<_ACEOF
14241 /* end confdefs.h. */
14242 #include <malloc/malloc.h>
14244 if { (ac_try
="$ac_cpp conftest.$ac_ext"
14245 case "(($ac_try" in
14246 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14247 *) ac_try_echo=$ac_try;;
14249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14252 grep -v '^ *+' conftest.er1 >conftest.err
14254 cat conftest.err >&5
14255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14256 (exit $ac_status); } >/dev/null && {
14257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14258 test ! -s conftest.err
14260 ac_header_preproc=yes
14262 echo "$as_me: failed program was:" >&5
14263 sed 's/^/| /' conftest.$ac_ext >&5
14265 ac_header_preproc=no
14268 rm -f conftest.err conftest.$ac_ext
14269 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14270 echo "${ECHO_T}$ac_header_preproc" >&6; }
14272 # So? What about this header?
14273 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14275 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14276 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14277 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14278 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14279 ac_header_preproc=yes
14282 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14283 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14284 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14285 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14286 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14287 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14288 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14289 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14290 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14291 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14292 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14293 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14297 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14298 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14299 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14300 echo $ECHO_N "(cached) $ECHO_C" >&6
14302 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14304 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14305 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14308 if test $ac_cv_header_malloc_malloc_h = yes; then
14310 cat >>confdefs.h <<\_ACEOF
14311 #define HAVE_MALLOC_MALLOC_H 1
14318 ### Use Mac OS X Carbon API to implement GUI.
14319 if test "${HAVE_CARBON}" = "yes"; then
14321 cat >>confdefs.h <<\_ACEOF
14322 #define HAVE_CARBON 1
14325 ## Specify the install directory
14327 if test "${carbon_appdir_x}" != ""; then
14328 case ${carbon_appdir_x} in
14329 y | ye | yes) carbon_appdir=/Applications ;;
14330 * ) carbon_appdir=${carbon_appdir_x} ;;
14333 # We also have mouse menus.
14337 ### Use session management (-lSM -lICE) if available
14339 if test "${HAVE_X11}" = "yes"; then
14340 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14341 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14342 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14343 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14344 echo $ECHO_N "(cached) $ECHO_C" >&6
14346 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14347 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14349 # Is the header compilable?
14350 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14351 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14352 cat >conftest.$ac_ext <<_ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14358 $ac_includes_default
14359 #include <X11/SM/SMlib.h>
14361 rm -f conftest.$ac_objext
14362 if { (ac_try="$ac_compile"
14363 case "(($ac_try" in
14364 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14365 *) ac_try_echo
=$ac_try;;
14367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14368 (eval "$ac_compile") 2>conftest.er1
14370 grep -v '^ *+' conftest.er1
>conftest.err
14372 cat conftest.err
>&5
14373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14374 (exit $ac_status); } && {
14375 test -z "$ac_c_werror_flag" ||
14376 test ! -s conftest.err
14377 } && test -s conftest.
$ac_objext; then
14378 ac_header_compiler
=yes
14380 echo "$as_me: failed program was:" >&5
14381 sed 's/^/| /' conftest.
$ac_ext >&5
14383 ac_header_compiler
=no
14386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14387 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14388 echo "${ECHO_T}$ac_header_compiler" >&6; }
14390 # Is the header present?
14391 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14392 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14393 cat >conftest.
$ac_ext <<_ACEOF
14396 cat confdefs.h
>>conftest.
$ac_ext
14397 cat >>conftest.
$ac_ext <<_ACEOF
14398 /* end confdefs.h. */
14399 #include <X11/SM/SMlib.h>
14401 if { (ac_try
="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
14414 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14415 test ! -s conftest.err
14417 ac_header_preproc=yes
14419 echo "$as_me: failed program was:" >&5
14420 sed 's/^/| /' conftest.$ac_ext >&5
14422 ac_header_preproc=no
14425 rm -f conftest.err conftest.$ac_ext
14426 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14427 echo "${ECHO_T}$ac_header_preproc" >&6; }
14429 # So? What about this header?
14430 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14432 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14433 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14434 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14435 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14436 ac_header_preproc=yes
14439 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14440 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14441 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14442 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14443 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14444 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14445 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14446 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14447 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14448 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14449 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14450 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14454 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14455 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14456 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14457 echo $ECHO_N "(cached) $ECHO_C" >&6
14459 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14461 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14462 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14465 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14466 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14467 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14468 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14469 echo $ECHO_N "(cached) $ECHO_C" >&6
14471 ac_check_lib_save_LIBS=$LIBS
14472 LIBS="-lSM -lICE $LIBS"
14473 cat >conftest.$ac_ext <<_ACEOF
14476 cat confdefs.h >>conftest.$ac_ext
14477 cat >>conftest.$ac_ext <<_ACEOF
14478 /* end confdefs.h. */
14480 /* Override any GCC internal prototype to avoid an error.
14481 Use char because int might match the return type of a GCC
14482 builtin and then its argument prototype would still apply. */
14486 char SmcOpenConnection ();
14490 return SmcOpenConnection ();
14495 rm -f conftest.$ac_objext conftest$ac_exeext
14496 if { (ac_try="$ac_link"
14497 case "(($ac_try" in
14498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14499 *) ac_try_echo
=$ac_try;;
14501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14502 (eval "$ac_link") 2>conftest.er1
14504 grep -v '^ *+' conftest.er1
>conftest.err
14506 cat conftest.err
>&5
14507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14508 (exit $ac_status); } && {
14509 test -z "$ac_c_werror_flag" ||
14510 test ! -s conftest.err
14511 } && test -s conftest
$ac_exeext &&
14512 $as_test_x conftest
$ac_exeext; then
14513 ac_cv_lib_SM_SmcOpenConnection
=yes
14515 echo "$as_me: failed program was:" >&5
14516 sed 's/^/| /' conftest.
$ac_ext >&5
14518 ac_cv_lib_SM_SmcOpenConnection
=no
14521 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14522 conftest
$ac_exeext conftest.
$ac_ext
14523 LIBS
=$ac_check_lib_save_LIBS
14525 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14526 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14527 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14535 if test "${HAVE_X_SM}" = "yes"; then
14537 cat >>confdefs.h
<<\_ACEOF
14538 #define HAVE_X_SM 1
14543 *) LIBS
="-lSM -lICE $LIBS" ;;
14548 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14549 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14550 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14551 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14552 echo $ECHO_N "(cached) $ECHO_C" >&6
14554 cat >conftest.
$ac_ext <<_ACEOF
14557 cat confdefs.h
>>conftest.
$ac_ext
14558 cat >>conftest.
$ac_ext <<_ACEOF
14559 /* end confdefs.h. */
14569 rm -f conftest.
$ac_objext conftest
$ac_exeext
14570 if { (ac_try
="$ac_link"
14571 case "(($ac_try" in
14572 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14573 *) ac_try_echo=$ac_try;;
14575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14576 (eval "$ac_link") 2>conftest.er1
14578 grep -v '^ *+' conftest.er1 >conftest.err
14580 cat conftest.err >&5
14581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14582 (exit $ac_status); } && {
14583 test -z "$ac_c_werror_flag" ||
14584 test ! -s conftest.err
14585 } && test -s conftest$ac_exeext &&
14586 $as_test_x conftest$ac_exeext; then
14587 emacs_cv_netdb_declares_h_errno=yes
14589 echo "$as_me: failed program was:" >&5
14590 sed 's/^/| /' conftest.$ac_ext >&5
14592 emacs_cv_netdb_declares_h_errno=no
14595 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14596 conftest$ac_exeext conftest.$ac_ext
14598 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14599 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14600 if test $emacs_cv_netdb_declares_h_errno = yes; then
14602 cat >>confdefs.h <<\_ACEOF
14603 #define HAVE_H_ERRNO 1
14608 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14609 # for constant arguments. Useless!
14610 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14611 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14612 if test "${ac_cv_working_alloca_h+set}" = set; then
14613 echo $ECHO_N "(cached) $ECHO_C" >&6
14615 cat >conftest.$ac_ext <<_ACEOF
14618 cat confdefs.h >>conftest.$ac_ext
14619 cat >>conftest.$ac_ext <<_ACEOF
14620 /* end confdefs.h. */
14621 #include <alloca.h>
14625 char *p = (char *) alloca (2 * sizeof (int));
14631 rm -f conftest.$ac_objext conftest$ac_exeext
14632 if { (ac_try="$ac_link"
14633 case "(($ac_try" in
14634 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
14635 *) ac_try_echo
=$ac_try;;
14637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14638 (eval "$ac_link") 2>conftest.er1
14640 grep -v '^ *+' conftest.er1
>conftest.err
14642 cat conftest.err
>&5
14643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14644 (exit $ac_status); } && {
14645 test -z "$ac_c_werror_flag" ||
14646 test ! -s conftest.err
14647 } && test -s conftest
$ac_exeext &&
14648 $as_test_x conftest
$ac_exeext; then
14649 ac_cv_working_alloca_h
=yes
14651 echo "$as_me: failed program was:" >&5
14652 sed 's/^/| /' conftest.
$ac_ext >&5
14654 ac_cv_working_alloca_h
=no
14657 rm -f core conftest.err conftest.
$ac_objext conftest_ipa8_conftest.oo \
14658 conftest
$ac_exeext conftest.
$ac_ext
14660 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14661 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14662 if test $ac_cv_working_alloca_h = yes; then
14664 cat >>confdefs.h
<<\_ACEOF
14665 #define HAVE_ALLOCA_H 1
14670 { echo "$as_me:$LINENO: checking for alloca" >&5
14671 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14672 if test "${ac_cv_func_alloca_works+set}" = set; then
14673 echo $ECHO_N "(cached) $ECHO_C" >&6
14675 cat >conftest.
$ac_ext <<_ACEOF
14678 cat confdefs.h
>>conftest.
$ac_ext
14679 cat >>conftest.
$ac_ext <<_ACEOF
14680 /* end confdefs.h. */
14682 # define alloca __builtin_alloca
14685 # include <malloc.h>
14686 # define alloca _alloca
14688 # ifdef HAVE_ALLOCA_H
14689 # include <alloca.h>
14694 # ifndef alloca /* predefined by HP cc +Olibcalls */
14705 char *p = (char *) alloca (1);
14711 rm -f conftest.
$ac_objext conftest
$ac_exeext
14712 if { (ac_try
="$ac_link"
14713 case "(($ac_try" in
14714 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
14715 *) ac_try_echo=$ac_try;;
14717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14718 (eval "$ac_link") 2>conftest.er1
14720 grep -v '^ *+' conftest.er1 >conftest.err
14722 cat conftest.err >&5
14723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14724 (exit $ac_status); } && {
14725 test -z "$ac_c_werror_flag" ||
14726 test ! -s conftest.err
14727 } && test -s conftest$ac_exeext &&
14728 $as_test_x conftest$ac_exeext; then
14729 ac_cv_func_alloca_works=yes
14731 echo "$as_me: failed program was:" >&5
14732 sed 's/^/| /' conftest.$ac_ext >&5
14734 ac_cv_func_alloca_works=no
14737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14738 conftest$ac_exeext conftest.$ac_ext
14740 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14741 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14743 if test $ac_cv_func_alloca_works = yes; then
14745 cat >>confdefs.h <<\_ACEOF
14746 #define HAVE_ALLOCA 1
14750 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14751 # that cause trouble. Some versions do not even contain alloca or
14752 # contain a buggy version. If you still want to use their alloca,
14753 # use ar to extract alloca.o from them instead of compiling alloca.c.
14755 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14757 cat >>confdefs.h <<\_ACEOF
14762 { echo "$as_me:$LINENO: checking whether \`alloca.c
' needs Cray hooks" >&5
14763 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks...
$ECHO_C" >&6; }
14764 if test "${ac_cv_os_cray+set}" = set; then
14765 echo $ECHO_N "(cached
) $ECHO_C" >&6
14767 cat >conftest.$ac_ext <<_ACEOF
14770 cat confdefs.h >>conftest.$ac_ext
14771 cat >>conftest.$ac_ext <<_ACEOF
14772 /* end confdefs.h. */
14773 #if defined CRAY && ! defined CRAY2
14780 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
14781 $EGREP "webecray
" >/dev/null 2>&1; then
14789 { echo "$as_me:$LINENO: result
: $ac_cv_os_cray" >&5
14790 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14791 if test $ac_cv_os_cray = yes; then
14792 for ac_func in _getb67 GETB67 getb67; do
14793 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
14794 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
14795 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
14796 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
14797 echo $ECHO_N "(cached
) $ECHO_C" >&6
14799 cat >conftest.$ac_ext <<_ACEOF
14802 cat confdefs.h >>conftest.$ac_ext
14803 cat >>conftest.$ac_ext <<_ACEOF
14804 /* end confdefs.h. */
14805 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14806 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14807 #define $ac_func innocuous_$ac_func
14809 /* System header to define __stub macros and hopefully few prototypes,
14810 which can conflict with char $ac_func (); below.
14811 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14812 <limits.h> exists even on freestanding compilers. */
14815 # include <limits.h>
14817 # include <assert.h>
14822 /* Override any GCC internal prototype to avoid an error.
14823 Use char because int might match the return type of a GCC
14824 builtin and then its argument prototype would still apply. */
14829 /* The GNU C library defines this for functions which it implements
14830 to always fail with ENOSYS. Some functions are actually named
14831 something starting with __ and the normal name is an alias. */
14832 #if defined __stub_$ac_func || defined __stub___$ac_func
14839 return $ac_func ();
14844 rm -f conftest.$ac_objext conftest$ac_exeext
14845 if { (ac_try="$ac_link"
14846 case "(($ac_try" in
14847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14848 *) ac_try_echo=$ac_try;;
14850 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14851 (eval "$ac_link") 2>conftest.er1
14853 grep -v '^ *+' conftest.er1 >conftest.err
14855 cat conftest.err >&5
14856 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14857 (exit $ac_status); } && {
14858 test -z "$ac_c_werror_flag" ||
14859 test ! -s conftest.err
14860 } && test -s conftest$ac_exeext &&
14861 $as_test_x conftest$ac_exeext; then
14862 eval "$as_ac_var=yes"
14864 echo "$as_me: failed program was
:" >&5
14865 sed 's/^/| /' conftest.$ac_ext >&5
14867 eval "$as_ac_var=no
"
14870 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14871 conftest$ac_exeext conftest.$ac_ext
14873 ac_res=`eval echo '${'$as_ac_var'}'`
14874 { echo "$as_me:$LINENO: result
: $ac_res" >&5
14875 echo "${ECHO_T}$ac_res" >&6; }
14876 if test `eval echo '${'$as_ac_var'}'` = yes; then
14878 cat >>confdefs.h <<_ACEOF
14879 #define CRAY_STACKSEG_END $ac_func
14888 { echo "$as_me:$LINENO: checking stack direction
for C alloca
" >&5
14889 echo $ECHO_N "checking stack direction
for C alloca...
$ECHO_C" >&6; }
14890 if test "${ac_cv_c_stack_direction+set}" = set; then
14891 echo $ECHO_N "(cached
) $ECHO_C" >&6
14893 if test "$cross_compiling" = yes; then
14894 ac_cv_c_stack_direction=0
14896 cat >conftest.$ac_ext <<_ACEOF
14899 cat confdefs.h >>conftest.$ac_ext
14900 cat >>conftest.$ac_ext <<_ACEOF
14901 /* end confdefs.h. */
14902 $ac_includes_default
14904 find_stack_direction ()
14906 static char *addr = 0;
14911 return find_stack_direction ();
14914 return (&dummy > addr) ? 1 : -1;
14920 return find_stack_direction () < 0;
14923 rm -f conftest$ac_exeext
14924 if { (ac_try="$ac_link"
14925 case "(($ac_try" in
14926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14927 *) ac_try_echo=$ac_try;;
14929 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14930 (eval "$ac_link") 2>&5
14932 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14933 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14934 { (case "(($ac_try" in
14935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14936 *) ac_try_echo=$ac_try;;
14938 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
14939 (eval "$ac_try") 2>&5
14941 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
14942 (exit $ac_status); }; }; then
14943 ac_cv_c_stack_direction=1
14945 echo "$as_me: program exited with status
$ac_status" >&5
14946 echo "$as_me: failed program was
:" >&5
14947 sed 's/^/| /' conftest.$ac_ext >&5
14949 ( exit $ac_status )
14950 ac_cv_c_stack_direction=-1
14952 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14957 { echo "$as_me:$LINENO: result
: $ac_cv_c_stack_direction" >&5
14958 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14960 cat >>confdefs.h <<_ACEOF
14961 #define STACK_DIRECTION $ac_cv_c_stack_direction
14968 # fmod, logb, and frexp are found in -lm on most systems.
14969 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14971 { echo "$as_me:$LINENO: checking
for sqrt
in -lm" >&5
14972 echo $ECHO_N "checking
for sqrt
in -lm...
$ECHO_C" >&6; }
14973 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14974 echo $ECHO_N "(cached
) $ECHO_C" >&6
14976 ac_check_lib_save_LIBS=$LIBS
14978 cat >conftest.$ac_ext <<_ACEOF
14981 cat confdefs.h >>conftest.$ac_ext
14982 cat >>conftest.$ac_ext <<_ACEOF
14983 /* end confdefs.h. */
14985 /* Override any GCC internal prototype to avoid an error.
14986 Use char because int might match the return type of a GCC
14987 builtin and then its argument prototype would still apply. */
15000 rm -f conftest.$ac_objext conftest$ac_exeext
15001 if { (ac_try="$ac_link"
15002 case "(($ac_try" in
15003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15004 *) ac_try_echo=$ac_try;;
15006 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15007 (eval "$ac_link") 2>conftest.er1
15009 grep -v '^ *+' conftest.er1 >conftest.err
15011 cat conftest.err >&5
15012 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15013 (exit $ac_status); } && {
15014 test -z "$ac_c_werror_flag" ||
15015 test ! -s conftest.err
15016 } && test -s conftest$ac_exeext &&
15017 $as_test_x conftest$ac_exeext; then
15018 ac_cv_lib_m_sqrt=yes
15020 echo "$as_me: failed program was
:" >&5
15021 sed 's/^/| /' conftest.$ac_ext >&5
15023 ac_cv_lib_m_sqrt=no
15026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15027 conftest$ac_exeext conftest.$ac_ext
15028 LIBS=$ac_check_lib_save_LIBS
15030 { echo "$as_me:$LINENO: result
: $ac_cv_lib_m_sqrt" >&5
15031 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15032 if test $ac_cv_lib_m_sqrt = yes; then
15033 cat >>confdefs.h <<_ACEOF
15034 #define HAVE_LIBM 1
15042 # Check for mail-locking functions in a "mail" library. Probably this should
15043 # have the same check as for liblockfile below.
15045 { echo "$as_me:$LINENO: checking
for maillock
in -lmail" >&5
15046 echo $ECHO_N "checking
for maillock
in -lmail...
$ECHO_C" >&6; }
15047 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15048 echo $ECHO_N "(cached
) $ECHO_C" >&6
15050 ac_check_lib_save_LIBS=$LIBS
15051 LIBS="-lmail $LIBS"
15052 cat >conftest.$ac_ext <<_ACEOF
15055 cat confdefs.h >>conftest.$ac_ext
15056 cat >>conftest.$ac_ext <<_ACEOF
15057 /* end confdefs.h. */
15059 /* Override any GCC internal prototype to avoid an error.
15060 Use char because int might match the return type of a GCC
15061 builtin and then its argument prototype would still apply. */
15069 return maillock ();
15074 rm -f conftest.$ac_objext conftest$ac_exeext
15075 if { (ac_try="$ac_link"
15076 case "(($ac_try" in
15077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15078 *) ac_try_echo=$ac_try;;
15080 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15081 (eval "$ac_link") 2>conftest.er1
15083 grep -v '^ *+' conftest.er1 >conftest.err
15085 cat conftest.err >&5
15086 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15087 (exit $ac_status); } && {
15088 test -z "$ac_c_werror_flag" ||
15089 test ! -s conftest.err
15090 } && test -s conftest$ac_exeext &&
15091 $as_test_x conftest$ac_exeext; then
15092 ac_cv_lib_mail_maillock=yes
15094 echo "$as_me: failed program was
:" >&5
15095 sed 's/^/| /' conftest.$ac_ext >&5
15097 ac_cv_lib_mail_maillock=no
15100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15101 conftest$ac_exeext conftest.$ac_ext
15102 LIBS=$ac_check_lib_save_LIBS
15104 { echo "$as_me:$LINENO: result
: $ac_cv_lib_mail_maillock" >&5
15105 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15106 if test $ac_cv_lib_mail_maillock = yes; then
15107 cat >>confdefs.h <<_ACEOF
15108 #define HAVE_LIBMAIL 1
15111 LIBS="-lmail $LIBS"
15116 { echo "$as_me:$LINENO: checking
for maillock
in -llockfile" >&5
15117 echo $ECHO_N "checking
for maillock
in -llockfile...
$ECHO_C" >&6; }
15118 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15119 echo $ECHO_N "(cached
) $ECHO_C" >&6
15121 ac_check_lib_save_LIBS=$LIBS
15122 LIBS="-llockfile $LIBS"
15123 cat >conftest.$ac_ext <<_ACEOF
15126 cat confdefs.h >>conftest.$ac_ext
15127 cat >>conftest.$ac_ext <<_ACEOF
15128 /* end confdefs.h. */
15130 /* Override any GCC internal prototype to avoid an error.
15131 Use char because int might match the return type of a GCC
15132 builtin and then its argument prototype would still apply. */
15140 return maillock ();
15145 rm -f conftest.$ac_objext conftest$ac_exeext
15146 if { (ac_try="$ac_link"
15147 case "(($ac_try" in
15148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15149 *) ac_try_echo=$ac_try;;
15151 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15152 (eval "$ac_link") 2>conftest.er1
15154 grep -v '^ *+' conftest.er1 >conftest.err
15156 cat conftest.err >&5
15157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15158 (exit $ac_status); } && {
15159 test -z "$ac_c_werror_flag" ||
15160 test ! -s conftest.err
15161 } && test -s conftest$ac_exeext &&
15162 $as_test_x conftest$ac_exeext; then
15163 ac_cv_lib_lockfile_maillock=yes
15165 echo "$as_me: failed program was
:" >&5
15166 sed 's/^/| /' conftest.$ac_ext >&5
15168 ac_cv_lib_lockfile_maillock=no
15171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15172 conftest$ac_exeext conftest.$ac_ext
15173 LIBS=$ac_check_lib_save_LIBS
15175 { echo "$as_me:$LINENO: result
: $ac_cv_lib_lockfile_maillock" >&5
15176 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15177 if test $ac_cv_lib_lockfile_maillock = yes; then
15178 cat >>confdefs.h <<_ACEOF
15179 #define HAVE_LIBLOCKFILE 1
15182 LIBS="-llockfile $LIBS"
15186 # If we have the shared liblockfile, assume we must use it for mail
15187 # locking (e.g. Debian). If we couldn't link against liblockfile
15188 # (no liblockfile.a installed), ensure that we don't need to.
15189 if test "$ac_cv_lib_lockfile_maillock" = no; then
15190 # Extract the first word of "liblockfile.so
", so it can be a program name with args.
15191 set dummy liblockfile.so; ac_word=$2
15192 { echo "$as_me:$LINENO: checking
for $ac_word" >&5
15193 echo $ECHO_N "checking
for $ac_word...
$ECHO_C" >&6; }
15194 if test "${ac_cv_prog_liblockfile+set}" = set; then
15195 echo $ECHO_N "(cached
) $ECHO_C" >&6
15197 if test -n "$liblockfile"; then
15198 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15201 as_dummy="/usr
/lib
:/lib
:/usr
/local
/lib
:$LD_LIBRARY_PATH"
15202 for as_dir in $as_dummy
15205 test -z "$as_dir" && as_dir=.
15206 for ac_exec_ext in '' $ac_executable_extensions; do
15207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15208 ac_cv_prog_liblockfile="yes"
15209 echo "$as_me:$LINENO: found
$as_dir/$ac_word$ac_exec_ext" >&5
15216 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no
"
15219 liblockfile=$ac_cv_prog_liblockfile
15220 if test -n "$liblockfile"; then
15221 { echo "$as_me:$LINENO: result
: $liblockfile" >&5
15222 echo "${ECHO_T}$liblockfile" >&6; }
15224 { echo "$as_me:$LINENO: result
: no
" >&5
15225 echo "${ECHO_T}no
" >&6; }
15229 if test $ac_cv_prog_liblockfile = yes; then
15230 { { echo "$as_me:$LINENO: error
: Shared liblockfile found but can
't link against it.
15231 This probably means that movemail could lose mail.
15232 There may be a \`development' package to
install containing liblockfile.
" >&5
15233 echo "$as_me: error
: Shared liblockfile found but can
't link against it.
15234 This probably means that movemail could lose mail.
15235 There may be a \`development' package to
install containing liblockfile.
" >&2;}
15236 { (exit 1); exit 1; }; }
15241 for ac_func in touchlock
15243 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15244 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15245 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15246 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15247 echo $ECHO_N "(cached
) $ECHO_C" >&6
15249 cat >conftest.$ac_ext <<_ACEOF
15252 cat confdefs.h >>conftest.$ac_ext
15253 cat >>conftest.$ac_ext <<_ACEOF
15254 /* end confdefs.h. */
15255 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15256 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15257 #define $ac_func innocuous_$ac_func
15259 /* System header to define __stub macros and hopefully few prototypes,
15260 which can conflict with char $ac_func (); below.
15261 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15262 <limits.h> exists even on freestanding compilers. */
15265 # include <limits.h>
15267 # include <assert.h>
15272 /* Override any GCC internal prototype to avoid an error.
15273 Use char because int might match the return type of a GCC
15274 builtin and then its argument prototype would still apply. */
15279 /* The GNU C library defines this for functions which it implements
15280 to always fail with ENOSYS. Some functions are actually named
15281 something starting with __ and the normal name is an alias. */
15282 #if defined __stub_$ac_func || defined __stub___$ac_func
15289 return $ac_func ();
15294 rm -f conftest.$ac_objext conftest$ac_exeext
15295 if { (ac_try="$ac_link"
15296 case "(($ac_try" in
15297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15298 *) ac_try_echo=$ac_try;;
15300 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15301 (eval "$ac_link") 2>conftest.er1
15303 grep -v '^ *+' conftest.er1 >conftest.err
15305 cat conftest.err >&5
15306 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15307 (exit $ac_status); } && {
15308 test -z "$ac_c_werror_flag" ||
15309 test ! -s conftest.err
15310 } && test -s conftest$ac_exeext &&
15311 $as_test_x conftest$ac_exeext; then
15312 eval "$as_ac_var=yes"
15314 echo "$as_me: failed program was
:" >&5
15315 sed 's/^/| /' conftest.$ac_ext >&5
15317 eval "$as_ac_var=no
"
15320 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15321 conftest$ac_exeext conftest.$ac_ext
15323 ac_res=`eval echo '${'$as_ac_var'}'`
15324 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15325 echo "${ECHO_T}$ac_res" >&6; }
15326 if test `eval echo '${'$as_ac_var'}'` = yes; then
15327 cat >>confdefs.h <<_ACEOF
15328 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15335 for ac_header in maillock.h
15337 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15338 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15339 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15340 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15341 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15342 echo $ECHO_N "(cached
) $ECHO_C" >&6
15344 ac_res=`eval echo '${'$as_ac_Header'}'`
15345 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15346 echo "${ECHO_T}$ac_res" >&6; }
15348 # Is the header compilable?
15349 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15350 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15351 cat >conftest.$ac_ext <<_ACEOF
15354 cat confdefs.h >>conftest.$ac_ext
15355 cat >>conftest.$ac_ext <<_ACEOF
15356 /* end confdefs.h. */
15357 $ac_includes_default
15358 #include <$ac_header>
15360 rm -f conftest.$ac_objext
15361 if { (ac_try="$ac_compile"
15362 case "(($ac_try" in
15363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15364 *) ac_try_echo=$ac_try;;
15366 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15367 (eval "$ac_compile") 2>conftest.er1
15369 grep -v '^ *+' conftest.er1 >conftest.err
15371 cat conftest.err >&5
15372 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15373 (exit $ac_status); } && {
15374 test -z "$ac_c_werror_flag" ||
15375 test ! -s conftest.err
15376 } && test -s conftest.$ac_objext; then
15377 ac_header_compiler=yes
15379 echo "$as_me: failed program was
:" >&5
15380 sed 's/^/| /' conftest.$ac_ext >&5
15382 ac_header_compiler=no
15385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15386 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15387 echo "${ECHO_T}$ac_header_compiler" >&6; }
15389 # Is the header present?
15390 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15391 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15392 cat >conftest.$ac_ext <<_ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15398 #include <$ac_header>
15400 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15401 case "(($ac_try" in
15402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15403 *) ac_try_echo=$ac_try;;
15405 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15406 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15408 grep -v '^ *+' conftest.er1 >conftest.err
15410 cat conftest.err >&5
15411 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15412 (exit $ac_status); } >/dev/null && {
15413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15414 test ! -s conftest.err
15416 ac_header_preproc=yes
15418 echo "$as_me: failed program was
:" >&5
15419 sed 's/^/| /' conftest.$ac_ext >&5
15421 ac_header_preproc=no
15424 rm -f conftest.err conftest.$ac_ext
15425 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15426 echo "${ECHO_T}$ac_header_preproc" >&6; }
15428 # So? What about this header?
15429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15431 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15432 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15433 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15435 ac_header_preproc=yes
15438 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15439 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15440 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15441 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15442 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15443 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15444 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15445 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15446 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15448 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15449 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15453 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15454 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15455 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15456 echo $ECHO_N "(cached
) $ECHO_C" >&6
15458 eval "$as_ac_Header=\
$ac_header_preproc"
15460 ac_res=`eval echo '${'$as_ac_Header'}'`
15461 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15462 echo "${ECHO_T}$ac_res" >&6; }
15465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15466 cat >>confdefs.h <<_ACEOF
15467 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15544 for ac_func in gethostname getdomainname dup2 \
15545 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15546 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15547 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15548 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15549 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15550 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15551 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15552 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15554 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15555 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15556 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15557 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15558 echo $ECHO_N "(cached
) $ECHO_C" >&6
15560 cat >conftest.$ac_ext <<_ACEOF
15563 cat confdefs.h >>conftest.$ac_ext
15564 cat >>conftest.$ac_ext <<_ACEOF
15565 /* end confdefs.h. */
15566 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15567 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15568 #define $ac_func innocuous_$ac_func
15570 /* System header to define __stub macros and hopefully few prototypes,
15571 which can conflict with char $ac_func (); below.
15572 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15573 <limits.h> exists even on freestanding compilers. */
15576 # include <limits.h>
15578 # include <assert.h>
15583 /* Override any GCC internal prototype to avoid an error.
15584 Use char because int might match the return type of a GCC
15585 builtin and then its argument prototype would still apply. */
15590 /* The GNU C library defines this for functions which it implements
15591 to always fail with ENOSYS. Some functions are actually named
15592 something starting with __ and the normal name is an alias. */
15593 #if defined __stub_$ac_func || defined __stub___$ac_func
15600 return $ac_func ();
15605 rm -f conftest.$ac_objext conftest$ac_exeext
15606 if { (ac_try="$ac_link"
15607 case "(($ac_try" in
15608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15609 *) ac_try_echo=$ac_try;;
15611 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15612 (eval "$ac_link") 2>conftest.er1
15614 grep -v '^ *+' conftest.er1 >conftest.err
15616 cat conftest.err >&5
15617 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15618 (exit $ac_status); } && {
15619 test -z "$ac_c_werror_flag" ||
15620 test ! -s conftest.err
15621 } && test -s conftest$ac_exeext &&
15622 $as_test_x conftest$ac_exeext; then
15623 eval "$as_ac_var=yes"
15625 echo "$as_me: failed program was
:" >&5
15626 sed 's/^/| /' conftest.$ac_ext >&5
15628 eval "$as_ac_var=no
"
15631 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15632 conftest$ac_exeext conftest.$ac_ext
15634 ac_res=`eval echo '${'$as_ac_var'}'`
15635 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15636 echo "${ECHO_T}$ac_res" >&6; }
15637 if test `eval echo '${'$as_ac_var'}'` = yes; then
15638 cat >>confdefs.h <<_ACEOF
15639 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
15647 for ac_header in sys/un.h
15649 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15650 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15651 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15652 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15653 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15654 echo $ECHO_N "(cached
) $ECHO_C" >&6
15656 ac_res=`eval echo '${'$as_ac_Header'}'`
15657 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15658 echo "${ECHO_T}$ac_res" >&6; }
15660 # Is the header compilable?
15661 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15662 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15663 cat >conftest.$ac_ext <<_ACEOF
15666 cat confdefs.h >>conftest.$ac_ext
15667 cat >>conftest.$ac_ext <<_ACEOF
15668 /* end confdefs.h. */
15669 $ac_includes_default
15670 #include <$ac_header>
15672 rm -f conftest.$ac_objext
15673 if { (ac_try="$ac_compile"
15674 case "(($ac_try" in
15675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15676 *) ac_try_echo=$ac_try;;
15678 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15679 (eval "$ac_compile") 2>conftest.er1
15681 grep -v '^ *+' conftest.er1 >conftest.err
15683 cat conftest.err >&5
15684 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15685 (exit $ac_status); } && {
15686 test -z "$ac_c_werror_flag" ||
15687 test ! -s conftest.err
15688 } && test -s conftest.$ac_objext; then
15689 ac_header_compiler=yes
15691 echo "$as_me: failed program was
:" >&5
15692 sed 's/^/| /' conftest.$ac_ext >&5
15694 ac_header_compiler=no
15697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15698 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15699 echo "${ECHO_T}$ac_header_compiler" >&6; }
15701 # Is the header present?
15702 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15703 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15704 cat >conftest.$ac_ext <<_ACEOF
15707 cat confdefs.h >>conftest.$ac_ext
15708 cat >>conftest.$ac_ext <<_ACEOF
15709 /* end confdefs.h. */
15710 #include <$ac_header>
15712 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15713 case "(($ac_try" in
15714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15715 *) ac_try_echo=$ac_try;;
15717 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15718 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15720 grep -v '^ *+' conftest.er1 >conftest.err
15722 cat conftest.err >&5
15723 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15724 (exit $ac_status); } >/dev/null && {
15725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15726 test ! -s conftest.err
15728 ac_header_preproc=yes
15730 echo "$as_me: failed program was
:" >&5
15731 sed 's/^/| /' conftest.$ac_ext >&5
15733 ac_header_preproc=no
15736 rm -f conftest.err conftest.$ac_ext
15737 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15738 echo "${ECHO_T}$ac_header_preproc" >&6; }
15740 # So? What about this header?
15741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15743 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15744 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15745 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15746 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15747 ac_header_preproc=yes
15750 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15751 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15752 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15753 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15754 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15755 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15756 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15757 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15758 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15759 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15760 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15761 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15765 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15766 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15767 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15768 echo $ECHO_N "(cached
) $ECHO_C" >&6
15770 eval "$as_ac_Header=\
$ac_header_preproc"
15772 ac_res=`eval echo '${'$as_ac_Header'}'`
15773 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15774 echo "${ECHO_T}$ac_res" >&6; }
15777 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15778 cat >>confdefs.h <<_ACEOF
15779 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15791 for ac_header in $ac_header_list
15793 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
15794 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15795 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15796 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15797 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15798 echo $ECHO_N "(cached
) $ECHO_C" >&6
15800 ac_res=`eval echo '${'$as_ac_Header'}'`
15801 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15802 echo "${ECHO_T}$ac_res" >&6; }
15804 # Is the header compilable?
15805 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
15806 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
15807 cat >conftest.$ac_ext <<_ACEOF
15810 cat confdefs.h >>conftest.$ac_ext
15811 cat >>conftest.$ac_ext <<_ACEOF
15812 /* end confdefs.h. */
15813 $ac_includes_default
15814 #include <$ac_header>
15816 rm -f conftest.$ac_objext
15817 if { (ac_try="$ac_compile"
15818 case "(($ac_try" in
15819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15820 *) ac_try_echo=$ac_try;;
15822 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15823 (eval "$ac_compile") 2>conftest.er1
15825 grep -v '^ *+' conftest.er1 >conftest.err
15827 cat conftest.err >&5
15828 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15829 (exit $ac_status); } && {
15830 test -z "$ac_c_werror_flag" ||
15831 test ! -s conftest.err
15832 } && test -s conftest.$ac_objext; then
15833 ac_header_compiler=yes
15835 echo "$as_me: failed program was
:" >&5
15836 sed 's/^/| /' conftest.$ac_ext >&5
15838 ac_header_compiler=no
15841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15842 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
15843 echo "${ECHO_T}$ac_header_compiler" >&6; }
15845 # Is the header present?
15846 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
15847 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
15848 cat >conftest.$ac_ext <<_ACEOF
15851 cat confdefs.h >>conftest.$ac_ext
15852 cat >>conftest.$ac_ext <<_ACEOF
15853 /* end confdefs.h. */
15854 #include <$ac_header>
15856 if { (ac_try="$ac_cpp conftest.
$ac_ext"
15857 case "(($ac_try" in
15858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15859 *) ac_try_echo=$ac_try;;
15861 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15862 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
15864 grep -v '^ *+' conftest.er1 >conftest.err
15866 cat conftest.err >&5
15867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
15868 (exit $ac_status); } >/dev/null && {
15869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15870 test ! -s conftest.err
15872 ac_header_preproc=yes
15874 echo "$as_me: failed program was
:" >&5
15875 sed 's/^/| /' conftest.$ac_ext >&5
15877 ac_header_preproc=no
15880 rm -f conftest.err conftest.$ac_ext
15881 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
15882 echo "${ECHO_T}$ac_header_preproc" >&6; }
15884 # So? What about this header?
15885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15887 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
15888 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
15889 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
15890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
15891 ac_header_preproc=yes
15894 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
15895 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
15896 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
15897 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
15898 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
15899 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
15900 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
15901 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
15902 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
15903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
15904 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
15905 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
15909 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
15910 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
15911 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
15912 echo $ECHO_N "(cached
) $ECHO_C" >&6
15914 eval "$as_ac_Header=\
$ac_header_preproc"
15916 ac_res=`eval echo '${'$as_ac_Header'}'`
15917 { echo "$as_me:$LINENO: result
: $ac_res" >&5
15918 echo "${ECHO_T}$ac_res" >&6; }
15921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15922 cat >>confdefs.h <<_ACEOF
15923 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
15938 for ac_func in $ac_func_list
15940 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
15941 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
15942 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
15943 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
15944 echo $ECHO_N "(cached
) $ECHO_C" >&6
15946 cat >conftest.$ac_ext <<_ACEOF
15949 cat confdefs.h >>conftest.$ac_ext
15950 cat >>conftest.$ac_ext <<_ACEOF
15951 /* end confdefs.h. */
15952 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15953 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15954 #define $ac_func innocuous_$ac_func
15956 /* System header to define __stub macros and hopefully few prototypes,
15957 which can conflict with char $ac_func (); below.
15958 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15959 <limits.h> exists even on freestanding compilers. */
15962 # include <limits.h>
15964 # include <assert.h>
15969 /* Override any GCC internal prototype to avoid an error.
15970 Use char because int might match the return type of a GCC
15971 builtin and then its argument prototype would still apply. */
15976 /* The GNU C library defines this for functions which it implements
15977 to always fail with ENOSYS. Some functions are actually named
15978 something starting with __ and the normal name is an alias. */
15979 #if defined __stub_$ac_func || defined __stub___$ac_func
15986 return $ac_func ();
15991 rm -f conftest.$ac_objext conftest$ac_exeext
15992 if { (ac_try="$ac_link"
15993 case "(($ac_try" in
15994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15995 *) ac_try_echo=$ac_try;;
15997 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
15998 (eval "$ac_link") 2>conftest.er1
16000 grep -v '^ *+' conftest.er1 >conftest.err
16002 cat conftest.err >&5
16003 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16004 (exit $ac_status); } && {
16005 test -z "$ac_c_werror_flag" ||
16006 test ! -s conftest.err
16007 } && test -s conftest$ac_exeext &&
16008 $as_test_x conftest$ac_exeext; then
16009 eval "$as_ac_var=yes"
16011 echo "$as_me: failed program was
:" >&5
16012 sed 's/^/| /' conftest.$ac_ext >&5
16014 eval "$as_ac_var=no
"
16017 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16018 conftest$ac_exeext conftest.$ac_ext
16020 ac_res=`eval echo '${'$as_ac_var'}'`
16021 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16022 echo "${ECHO_T}$ac_res" >&6; }
16023 if test `eval echo '${'$as_ac_var'}'` = yes; then
16024 cat >>confdefs.h <<_ACEOF
16025 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16047 { echo "$as_me:$LINENO: checking
for working mktime
" >&5
16048 echo $ECHO_N "checking
for working mktime...
$ECHO_C" >&6; }
16049 if test "${ac_cv_func_working_mktime+set}" = set; then
16050 echo $ECHO_N "(cached
) $ECHO_C" >&6
16052 if test "$cross_compiling" = yes; then
16053 ac_cv_func_working_mktime=no
16055 cat >conftest.$ac_ext <<_ACEOF
16058 cat confdefs.h >>conftest.$ac_ext
16059 cat >>conftest.$ac_ext <<_ACEOF
16060 /* end confdefs.h. */
16061 /* Test program from Paul Eggert and Tony Leneis. */
16062 #ifdef TIME_WITH_SYS_TIME
16063 # include <sys/time.h>
16066 # ifdef HAVE_SYS_TIME_H
16067 # include <sys/time.h>
16073 #include <stdlib.h>
16075 #ifdef HAVE_UNISTD_H
16076 # include <unistd.h>
16080 # define alarm(X) /* empty */
16083 /* Work around redefinition to rpl_putenv by other config tests. */
16086 static time_t time_t_max;
16087 static time_t time_t_min;
16089 /* Values we'll use to set the TZ environment variable. */
16090 static char *tz_strings[] = {
16091 (char *) 0, "TZ
=GMT0
", "TZ
=JST-9
",
16092 "TZ
=EST
+3EDT
+2,M10.1
.0/00:00:00,M2.3
.0/00:00:00"
16094 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16096 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16097 Based on a problem report from Andreas Jaeger. */
16099 spring_forward_gap ()
16101 /* glibc (up to about 1998-10-07) failed this test. */
16104 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16105 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16106 on systems that don't support the Olson extension, or don't have the
16107 full zoneinfo tables installed. */
16108 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16117 return mktime (&tm) != (time_t) -1;
16125 return ! (lt = localtime (&now)) || mktime (lt) == now;
16132 return (mktime_test1 (now)
16133 && mktime_test1 ((time_t) (time_t_max - now))
16134 && mktime_test1 ((time_t) (time_t_min + now)));
16140 /* Based on code from Ariel Faigon. */
16150 return tm.tm_mon == 2 && tm.tm_mday == 31;
16159 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16160 now = mktime (&tm);
16161 if (now != (time_t) -1)
16163 struct tm *lt = localtime (&now);
16165 && lt->tm_year == tm.tm_year
16166 && lt->tm_mon == tm.tm_mon
16167 && lt->tm_mday == tm.tm_mday
16168 && lt->tm_hour == tm.tm_hour
16169 && lt->tm_min == tm.tm_min
16170 && lt->tm_sec == tm.tm_sec
16171 && lt->tm_yday == tm.tm_yday
16172 && lt->tm_wday == tm.tm_wday
16173 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16174 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16183 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16184 ignoring leap seconds. */
16185 unsigned long int answer = 2527315200UL;
16189 tm.tm_year = 2050 - 1900;
16192 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16195 /* Use the portable POSIX.1 specification "TZ
=PST8PDT
,M4.1
.0,M10.5
.0"
16196 instead of "TZ
=America
/Vancouver
" in order to detect the bug even
16197 on systems that don't support the Olson extension, or don't have the
16198 full zoneinfo tables installed. */
16199 putenv ("TZ
=PST8PDT
,M4.1
.0,M10.5
.0");
16203 /* Check that the result is either a failure, or close enough
16204 to the correct answer that we can assume the discrepancy is
16205 due to leap seconds. */
16206 return (t == (time_t) -1
16207 || (0 < t && answer - 120 <= t && t <= answer + 120));
16216 /* This test makes some buggy mktime implementations loop.
16217 Give up after 60 seconds; a mktime slower than that
16218 isn't worth using anyway. */
16221 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16224 if ((time_t) -1 < 0)
16225 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16227 delta = time_t_max / 997; /* a suitable prime number */
16228 for (i = 0; i < N_STRINGS; i++)
16231 putenv (tz_strings[i]);
16233 for (t = 0; t <= time_t_max - delta; t += delta)
16234 if (! mktime_test (t))
16236 if (! (mktime_test ((time_t) 1)
16237 && mktime_test ((time_t) (60 * 60))
16238 && mktime_test ((time_t) (60 * 60 * 24))))
16241 for (j = 1; 0 < j; j *= 2)
16242 if (! bigtime_test (j))
16244 if (! bigtime_test (j - 1))
16247 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16250 rm -f conftest$ac_exeext
16251 if { (ac_try="$ac_link"
16252 case "(($ac_try" in
16253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16254 *) ac_try_echo=$ac_try;;
16256 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16257 (eval "$ac_link") 2>&5
16259 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16260 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16261 { (case "(($ac_try" in
16262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16263 *) ac_try_echo=$ac_try;;
16265 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16266 (eval "$ac_try") 2>&5
16268 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16269 (exit $ac_status); }; }; then
16270 ac_cv_func_working_mktime=yes
16272 echo "$as_me: program exited with status
$ac_status" >&5
16273 echo "$as_me: failed program was
:" >&5
16274 sed 's/^/| /' conftest.$ac_ext >&5
16276 ( exit $ac_status )
16277 ac_cv_func_working_mktime=no
16279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16284 { echo "$as_me:$LINENO: result
: $ac_cv_func_working_mktime" >&5
16285 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16286 if test $ac_cv_func_working_mktime = no; then
16287 case " $LIBOBJS " in
16288 *" mktime.
$ac_objext "* ) ;;
16289 *) LIBOBJS="$LIBOBJS mktime.
$ac_objext"
16295 if test "$ac_cv_func_working_mktime" = no; then
16297 cat >>confdefs.h <<\_ACEOF
16298 #define BROKEN_MKTIME 1
16303 ac_have_func=no # yes means we've found a way to get the load average.
16305 # Make sure getloadavg.c is where it belongs, at configure-time.
16306 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c
" ||
16307 { { echo "$as_me:$LINENO: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&5
16308 echo "$as_me: error
: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing
" >&2;}
16309 { (exit 1); exit 1; }; }
16313 # Check for getloadavg, but be sure not to touch the cache variable.
16314 ({ echo "$as_me:$LINENO: checking
for getloadavg
" >&5
16315 echo $ECHO_N "checking
for getloadavg...
$ECHO_C" >&6; }
16316 if test "${ac_cv_func_getloadavg+set}" = set; then
16317 echo $ECHO_N "(cached
) $ECHO_C" >&6
16319 cat >conftest.$ac_ext <<_ACEOF
16322 cat confdefs.h >>conftest.$ac_ext
16323 cat >>conftest.$ac_ext <<_ACEOF
16324 /* end confdefs.h. */
16325 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16326 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16327 #define getloadavg innocuous_getloadavg
16329 /* System header to define __stub macros and hopefully few prototypes,
16330 which can conflict with char getloadavg (); below.
16331 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16332 <limits.h> exists even on freestanding compilers. */
16335 # include <limits.h>
16337 # include <assert.h>
16342 /* Override any GCC internal prototype to avoid an error.
16343 Use char because int might match the return type of a GCC
16344 builtin and then its argument prototype would still apply. */
16348 char getloadavg ();
16349 /* The GNU C library defines this for functions which it implements
16350 to always fail with ENOSYS. Some functions are actually named
16351 something starting with __ and the normal name is an alias. */
16352 #if defined __stub_getloadavg || defined __stub___getloadavg
16359 return getloadavg ();
16364 rm -f conftest.$ac_objext conftest$ac_exeext
16365 if { (ac_try="$ac_link"
16366 case "(($ac_try" in
16367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368 *) ac_try_echo=$ac_try;;
16370 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16371 (eval "$ac_link") 2>conftest.er1
16373 grep -v '^ *+' conftest.er1 >conftest.err
16375 cat conftest.err >&5
16376 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16377 (exit $ac_status); } && {
16378 test -z "$ac_c_werror_flag" ||
16379 test ! -s conftest.err
16380 } && test -s conftest$ac_exeext &&
16381 $as_test_x conftest$ac_exeext; then
16382 ac_cv_func_getloadavg=yes
16384 echo "$as_me: failed program was
:" >&5
16385 sed 's/^/| /' conftest.$ac_ext >&5
16387 ac_cv_func_getloadavg=no
16390 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16391 conftest$ac_exeext conftest.$ac_ext
16393 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg" >&5
16394 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16395 if test $ac_cv_func_getloadavg = yes; then
16400 ) && ac_have_func=yes
16402 # On HPUX9, an unprivileged user can get load averages through this function.
16404 for ac_func in pstat_getdynamic
16406 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16407 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16408 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16409 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16410 echo $ECHO_N "(cached
) $ECHO_C" >&6
16412 cat >conftest.$ac_ext <<_ACEOF
16415 cat confdefs.h >>conftest.$ac_ext
16416 cat >>conftest.$ac_ext <<_ACEOF
16417 /* end confdefs.h. */
16418 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16420 #define $ac_func innocuous_$ac_func
16422 /* System header to define __stub macros and hopefully few prototypes,
16423 which can conflict with char $ac_func (); below.
16424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16425 <limits.h> exists even on freestanding compilers. */
16428 # include <limits.h>
16430 # include <assert.h>
16435 /* Override any GCC internal prototype to avoid an error.
16436 Use char because int might match the return type of a GCC
16437 builtin and then its argument prototype would still apply. */
16442 /* The GNU C library defines this for functions which it implements
16443 to always fail with ENOSYS. Some functions are actually named
16444 something starting with __ and the normal name is an alias. */
16445 #if defined __stub_$ac_func || defined __stub___$ac_func
16452 return $ac_func ();
16457 rm -f conftest.$ac_objext conftest$ac_exeext
16458 if { (ac_try="$ac_link"
16459 case "(($ac_try" in
16460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16461 *) ac_try_echo=$ac_try;;
16463 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16464 (eval "$ac_link") 2>conftest.er1
16466 grep -v '^ *+' conftest.er1 >conftest.err
16468 cat conftest.err >&5
16469 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16470 (exit $ac_status); } && {
16471 test -z "$ac_c_werror_flag" ||
16472 test ! -s conftest.err
16473 } && test -s conftest$ac_exeext &&
16474 $as_test_x conftest$ac_exeext; then
16475 eval "$as_ac_var=yes"
16477 echo "$as_me: failed program was
:" >&5
16478 sed 's/^/| /' conftest.$ac_ext >&5
16480 eval "$as_ac_var=no
"
16483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16484 conftest$ac_exeext conftest.$ac_ext
16486 ac_res=`eval echo '${'$as_ac_var'}'`
16487 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16488 echo "${ECHO_T}$ac_res" >&6; }
16489 if test `eval echo '${'$as_ac_var'}'` = yes; then
16490 cat >>confdefs.h <<_ACEOF
16491 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16498 # Solaris has libkstat which does not require root.
16500 { echo "$as_me:$LINENO: checking
for kstat_open
in -lkstat" >&5
16501 echo $ECHO_N "checking
for kstat_open
in -lkstat...
$ECHO_C" >&6; }
16502 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16503 echo $ECHO_N "(cached
) $ECHO_C" >&6
16505 ac_check_lib_save_LIBS=$LIBS
16506 LIBS="-lkstat $LIBS"
16507 cat >conftest.$ac_ext <<_ACEOF
16510 cat confdefs.h >>conftest.$ac_ext
16511 cat >>conftest.$ac_ext <<_ACEOF
16512 /* end confdefs.h. */
16514 /* Override any GCC internal prototype to avoid an error.
16515 Use char because int might match the return type of a GCC
16516 builtin and then its argument prototype would still apply. */
16520 char kstat_open ();
16524 return kstat_open ();
16529 rm -f conftest.$ac_objext conftest$ac_exeext
16530 if { (ac_try="$ac_link"
16531 case "(($ac_try" in
16532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16533 *) ac_try_echo=$ac_try;;
16535 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16536 (eval "$ac_link") 2>conftest.er1
16538 grep -v '^ *+' conftest.er1 >conftest.err
16540 cat conftest.err >&5
16541 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16542 (exit $ac_status); } && {
16543 test -z "$ac_c_werror_flag" ||
16544 test ! -s conftest.err
16545 } && test -s conftest$ac_exeext &&
16546 $as_test_x conftest$ac_exeext; then
16547 ac_cv_lib_kstat_kstat_open=yes
16549 echo "$as_me: failed program was
:" >&5
16550 sed 's/^/| /' conftest.$ac_ext >&5
16552 ac_cv_lib_kstat_kstat_open=no
16555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16556 conftest$ac_exeext conftest.$ac_ext
16557 LIBS=$ac_check_lib_save_LIBS
16559 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kstat_kstat_open" >&5
16560 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16561 if test $ac_cv_lib_kstat_kstat_open = yes; then
16562 cat >>confdefs.h <<_ACEOF
16563 #define HAVE_LIBKSTAT 1
16566 LIBS="-lkstat $LIBS"
16570 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16572 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16573 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16574 # to get the right answer into the cache.
16575 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16576 if test $ac_have_func = no; then
16577 { echo "$as_me:$LINENO: checking
for elf_begin
in -lelf" >&5
16578 echo $ECHO_N "checking
for elf_begin
in -lelf...
$ECHO_C" >&6; }
16579 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16580 echo $ECHO_N "(cached
) $ECHO_C" >&6
16582 ac_check_lib_save_LIBS=$LIBS
16584 cat >conftest.$ac_ext <<_ACEOF
16587 cat confdefs.h >>conftest.$ac_ext
16588 cat >>conftest.$ac_ext <<_ACEOF
16589 /* end confdefs.h. */
16591 /* Override any GCC internal prototype to avoid an error.
16592 Use char because int might match the return type of a GCC
16593 builtin and then its argument prototype would still apply. */
16601 return elf_begin ();
16606 rm -f conftest.$ac_objext conftest$ac_exeext
16607 if { (ac_try="$ac_link"
16608 case "(($ac_try" in
16609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16610 *) ac_try_echo=$ac_try;;
16612 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16613 (eval "$ac_link") 2>conftest.er1
16615 grep -v '^ *+' conftest.er1 >conftest.err
16617 cat conftest.err >&5
16618 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16619 (exit $ac_status); } && {
16620 test -z "$ac_c_werror_flag" ||
16621 test ! -s conftest.err
16622 } && test -s conftest$ac_exeext &&
16623 $as_test_x conftest$ac_exeext; then
16624 ac_cv_lib_elf_elf_begin=yes
16626 echo "$as_me: failed program was
:" >&5
16627 sed 's/^/| /' conftest.$ac_ext >&5
16629 ac_cv_lib_elf_elf_begin=no
16632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16633 conftest$ac_exeext conftest.$ac_ext
16634 LIBS=$ac_check_lib_save_LIBS
16636 { echo "$as_me:$LINENO: result
: $ac_cv_lib_elf_elf_begin" >&5
16637 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16638 if test $ac_cv_lib_elf_elf_begin = yes; then
16643 if test $ac_have_func = no; then
16644 { echo "$as_me:$LINENO: checking
for kvm_open
in -lkvm" >&5
16645 echo $ECHO_N "checking
for kvm_open
in -lkvm...
$ECHO_C" >&6; }
16646 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16647 echo $ECHO_N "(cached
) $ECHO_C" >&6
16649 ac_check_lib_save_LIBS=$LIBS
16651 cat >conftest.$ac_ext <<_ACEOF
16654 cat confdefs.h >>conftest.$ac_ext
16655 cat >>conftest.$ac_ext <<_ACEOF
16656 /* end confdefs.h. */
16658 /* Override any GCC internal prototype to avoid an error.
16659 Use char because int might match the return type of a GCC
16660 builtin and then its argument prototype would still apply. */
16668 return kvm_open ();
16673 rm -f conftest.$ac_objext conftest$ac_exeext
16674 if { (ac_try="$ac_link"
16675 case "(($ac_try" in
16676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16677 *) ac_try_echo=$ac_try;;
16679 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16680 (eval "$ac_link") 2>conftest.er1
16682 grep -v '^ *+' conftest.er1 >conftest.err
16684 cat conftest.err >&5
16685 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16686 (exit $ac_status); } && {
16687 test -z "$ac_c_werror_flag" ||
16688 test ! -s conftest.err
16689 } && test -s conftest$ac_exeext &&
16690 $as_test_x conftest$ac_exeext; then
16691 ac_cv_lib_kvm_kvm_open=yes
16693 echo "$as_me: failed program was
:" >&5
16694 sed 's/^/| /' conftest.$ac_ext >&5
16696 ac_cv_lib_kvm_kvm_open=no
16699 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16700 conftest$ac_exeext conftest.$ac_ext
16701 LIBS=$ac_check_lib_save_LIBS
16703 { echo "$as_me:$LINENO: result
: $ac_cv_lib_kvm_kvm_open" >&5
16704 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16705 if test $ac_cv_lib_kvm_kvm_open = yes; then
16709 # Check for the 4.4BSD definition of getloadavg.
16710 { echo "$as_me:$LINENO: checking
for getloadavg
in -lutil" >&5
16711 echo $ECHO_N "checking
for getloadavg
in -lutil...
$ECHO_C" >&6; }
16712 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16713 echo $ECHO_N "(cached
) $ECHO_C" >&6
16715 ac_check_lib_save_LIBS=$LIBS
16716 LIBS="-lutil $LIBS"
16717 cat >conftest.$ac_ext <<_ACEOF
16720 cat confdefs.h >>conftest.$ac_ext
16721 cat >>conftest.$ac_ext <<_ACEOF
16722 /* end confdefs.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. */
16730 char getloadavg ();
16734 return getloadavg ();
16739 rm -f conftest.$ac_objext conftest$ac_exeext
16740 if { (ac_try="$ac_link"
16741 case "(($ac_try" in
16742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16743 *) ac_try_echo=$ac_try;;
16745 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16746 (eval "$ac_link") 2>conftest.er1
16748 grep -v '^ *+' conftest.er1 >conftest.err
16750 cat conftest.err >&5
16751 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16752 (exit $ac_status); } && {
16753 test -z "$ac_c_werror_flag" ||
16754 test ! -s conftest.err
16755 } && test -s conftest$ac_exeext &&
16756 $as_test_x conftest$ac_exeext; then
16757 ac_cv_lib_util_getloadavg=yes
16759 echo "$as_me: failed program was
:" >&5
16760 sed 's/^/| /' conftest.$ac_ext >&5
16762 ac_cv_lib_util_getloadavg=no
16765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16766 conftest$ac_exeext conftest.$ac_ext
16767 LIBS=$ac_check_lib_save_LIBS
16769 { echo "$as_me:$LINENO: result
: $ac_cv_lib_util_getloadavg" >&5
16770 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16771 if test $ac_cv_lib_util_getloadavg = yes; then
16772 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16777 if test $ac_have_func = no; then
16778 # There is a commonly available library for RS/6000 AIX.
16779 # Since it is not a standard part of AIX, it might be installed locally.
16780 ac_getloadavg_LIBS=$LIBS
16781 LIBS="-L/usr
/local
/lib
$LIBS"
16782 { echo "$as_me:$LINENO: checking
for getloadavg
in -lgetloadavg" >&5
16783 echo $ECHO_N "checking
for getloadavg
in -lgetloadavg...
$ECHO_C" >&6; }
16784 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16785 echo $ECHO_N "(cached
) $ECHO_C" >&6
16787 ac_check_lib_save_LIBS=$LIBS
16788 LIBS="-lgetloadavg $LIBS"
16789 cat >conftest.$ac_ext <<_ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16796 /* Override any GCC internal prototype to avoid an error.
16797 Use char because int might match the return type of a GCC
16798 builtin and then its argument prototype would still apply. */
16802 char getloadavg ();
16806 return getloadavg ();
16811 rm -f conftest.$ac_objext conftest$ac_exeext
16812 if { (ac_try="$ac_link"
16813 case "(($ac_try" in
16814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16815 *) ac_try_echo=$ac_try;;
16817 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16818 (eval "$ac_link") 2>conftest.er1
16820 grep -v '^ *+' conftest.er1 >conftest.err
16822 cat conftest.err >&5
16823 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16824 (exit $ac_status); } && {
16825 test -z "$ac_c_werror_flag" ||
16826 test ! -s conftest.err
16827 } && test -s conftest$ac_exeext &&
16828 $as_test_x conftest$ac_exeext; then
16829 ac_cv_lib_getloadavg_getloadavg=yes
16831 echo "$as_me: failed program was
:" >&5
16832 sed 's/^/| /' conftest.$ac_ext >&5
16834 ac_cv_lib_getloadavg_getloadavg=no
16837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16838 conftest$ac_exeext conftest.$ac_ext
16839 LIBS=$ac_check_lib_save_LIBS
16841 { echo "$as_me:$LINENO: result
: $ac_cv_lib_getloadavg_getloadavg" >&5
16842 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16843 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16844 LIBS="-lgetloadavg $LIBS"
16846 LIBS=$ac_getloadavg_LIBS
16851 # Make sure it is really in the library, if we think we found it,
16852 # otherwise set up the replacement function.
16854 for ac_func in getloadavg
16856 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
16857 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
16858 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
16859 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
16860 echo $ECHO_N "(cached
) $ECHO_C" >&6
16862 cat >conftest.$ac_ext <<_ACEOF
16865 cat confdefs.h >>conftest.$ac_ext
16866 cat >>conftest.$ac_ext <<_ACEOF
16867 /* end confdefs.h. */
16868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16870 #define $ac_func innocuous_$ac_func
16872 /* System header to define __stub macros and hopefully few prototypes,
16873 which can conflict with char $ac_func (); below.
16874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16875 <limits.h> exists even on freestanding compilers. */
16878 # include <limits.h>
16880 # include <assert.h>
16885 /* Override any GCC internal prototype to avoid an error.
16886 Use char because int might match the return type of a GCC
16887 builtin and then its argument prototype would still apply. */
16892 /* The GNU C library defines this for functions which it implements
16893 to always fail with ENOSYS. Some functions are actually named
16894 something starting with __ and the normal name is an alias. */
16895 #if defined __stub_$ac_func || defined __stub___$ac_func
16902 return $ac_func ();
16907 rm -f conftest.$ac_objext conftest$ac_exeext
16908 if { (ac_try="$ac_link"
16909 case "(($ac_try" in
16910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16911 *) ac_try_echo=$ac_try;;
16913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16914 (eval "$ac_link") 2>conftest.er1
16916 grep -v '^ *+' conftest.er1 >conftest.err
16918 cat conftest.err >&5
16919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16920 (exit $ac_status); } && {
16921 test -z "$ac_c_werror_flag" ||
16922 test ! -s conftest.err
16923 } && test -s conftest$ac_exeext &&
16924 $as_test_x conftest$ac_exeext; then
16925 eval "$as_ac_var=yes"
16927 echo "$as_me: failed program was
:" >&5
16928 sed 's/^/| /' conftest.$ac_ext >&5
16930 eval "$as_ac_var=no
"
16933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16934 conftest$ac_exeext conftest.$ac_ext
16936 ac_res=`eval echo '${'$as_ac_var'}'`
16937 { echo "$as_me:$LINENO: result
: $ac_res" >&5
16938 echo "${ECHO_T}$ac_res" >&6; }
16939 if test `eval echo '${'$as_ac_var'}'` = yes; then
16940 cat >>confdefs.h <<_ACEOF
16941 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
16945 case " $LIBOBJS " in
16946 *" getloadavg.
$ac_objext "* ) ;;
16947 *) LIBOBJS="$LIBOBJS getloadavg.
$ac_objext"
16952 cat >>confdefs.h <<\_ACEOF
16953 #define C_GETLOADAVG 1
16956 # Figure out what our getloadavg.c needs.
16958 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16959 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
16960 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
16961 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16962 echo $ECHO_N "(cached
) $ECHO_C" >&6
16964 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
16965 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16967 # Is the header compilable?
16968 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h usability
" >&5
16969 echo $ECHO_N "checking sys
/dg_sys_info.h usability...
$ECHO_C" >&6; }
16970 cat >conftest.$ac_ext <<_ACEOF
16973 cat confdefs.h >>conftest.$ac_ext
16974 cat >>conftest.$ac_ext <<_ACEOF
16975 /* end confdefs.h. */
16976 $ac_includes_default
16977 #include <sys/dg_sys_info.h>
16979 rm -f conftest.$ac_objext
16980 if { (ac_try="$ac_compile"
16981 case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_compile") 2>conftest.er1
16988 grep -v '^ *+' conftest.er1 >conftest.err
16990 cat conftest.err >&5
16991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
16992 (exit $ac_status); } && {
16993 test -z "$ac_c_werror_flag" ||
16994 test ! -s conftest.err
16995 } && test -s conftest.$ac_objext; then
16996 ac_header_compiler=yes
16998 echo "$as_me: failed program was
:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17001 ac_header_compiler=no
17004 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17005 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17006 echo "${ECHO_T}$ac_header_compiler" >&6; }
17008 # Is the header present?
17009 { echo "$as_me:$LINENO: checking sys
/dg_sys_info.h presence
" >&5
17010 echo $ECHO_N "checking sys
/dg_sys_info.h presence...
$ECHO_C" >&6; }
17011 cat >conftest.$ac_ext <<_ACEOF
17014 cat confdefs.h >>conftest.$ac_ext
17015 cat >>conftest.$ac_ext <<_ACEOF
17016 /* end confdefs.h. */
17017 #include <sys/dg_sys_info.h>
17019 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17020 case "(($ac_try" in
17021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17022 *) ac_try_echo=$ac_try;;
17024 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17025 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17027 grep -v '^ *+' conftest.er1 >conftest.err
17029 cat conftest.err >&5
17030 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17031 (exit $ac_status); } >/dev/null && {
17032 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17033 test ! -s conftest.err
17035 ac_header_preproc=yes
17037 echo "$as_me: failed program was
:" >&5
17038 sed 's/^/| /' conftest.$ac_ext >&5
17040 ac_header_preproc=no
17043 rm -f conftest.err conftest.$ac_ext
17044 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17045 echo "${ECHO_T}$ac_header_preproc" >&6; }
17047 # So? What about this header?
17048 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17050 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17051 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17052 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the compiler
's result" >&5
17053 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result
" >&2;}
17054 ac_header_preproc=yes
17057 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&5
17058 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: present but cannot be compiled
" >&2;}
17059 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&5
17060 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: check
for missing prerequisite headers?
" >&2;}
17061 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&5
17062 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: see the Autoconf documentation
" >&2;}
17063 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17064 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17065 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: proceeding with the preprocessor
's result" >&5
17066 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result
" >&2;}
17067 { echo "$as_me:$LINENO: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&5
17068 echo "$as_me: WARNING
: sys
/dg_sys_info.h
: in the future
, the compiler will take precedence
" >&2;}
17072 { echo "$as_me:$LINENO: checking
for sys
/dg_sys_info.h
" >&5
17073 echo $ECHO_N "checking
for sys
/dg_sys_info.h...
$ECHO_C" >&6; }
17074 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17075 echo $ECHO_N "(cached
) $ECHO_C" >&6
17077 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17079 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_dg_sys_info_h" >&5
17080 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17083 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17086 cat >>confdefs.h <<\_ACEOF
17091 { echo "$as_me:$LINENO: checking
for dg_sys_info
in -ldgc" >&5
17092 echo $ECHO_N "checking
for dg_sys_info
in -ldgc...
$ECHO_C" >&6; }
17093 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17094 echo $ECHO_N "(cached
) $ECHO_C" >&6
17096 ac_check_lib_save_LIBS=$LIBS
17098 cat >conftest.$ac_ext <<_ACEOF
17101 cat confdefs.h >>conftest.$ac_ext
17102 cat >>conftest.$ac_ext <<_ACEOF
17103 /* end confdefs.h. */
17105 /* Override any GCC internal prototype to avoid an error.
17106 Use char because int might match the return type of a GCC
17107 builtin and then its argument prototype would still apply. */
17111 char dg_sys_info ();
17115 return dg_sys_info ();
17120 rm -f conftest.$ac_objext conftest$ac_exeext
17121 if { (ac_try="$ac_link"
17122 case "(($ac_try" in
17123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17124 *) ac_try_echo=$ac_try;;
17126 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17127 (eval "$ac_link") 2>conftest.er1
17129 grep -v '^ *+' conftest.er1 >conftest.err
17131 cat conftest.err >&5
17132 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17133 (exit $ac_status); } && {
17134 test -z "$ac_c_werror_flag" ||
17135 test ! -s conftest.err
17136 } && test -s conftest$ac_exeext &&
17137 $as_test_x conftest$ac_exeext; then
17138 ac_cv_lib_dgc_dg_sys_info=yes
17140 echo "$as_me: failed program was
:" >&5
17141 sed 's/^/| /' conftest.$ac_ext >&5
17143 ac_cv_lib_dgc_dg_sys_info=no
17146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17147 conftest$ac_exeext conftest.$ac_ext
17148 LIBS=$ac_check_lib_save_LIBS
17150 { echo "$as_me:$LINENO: result
: $ac_cv_lib_dgc_dg_sys_info" >&5
17151 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17152 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17153 cat >>confdefs.h <<_ACEOF
17154 #define HAVE_LIBDGC 1
17165 if test "${ac_cv_header_locale_h+set}" = set; then
17166 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17167 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17168 if test "${ac_cv_header_locale_h+set}" = set; then
17169 echo $ECHO_N "(cached
) $ECHO_C" >&6
17171 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17172 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17174 # Is the header compilable?
17175 { echo "$as_me:$LINENO: checking locale.h usability
" >&5
17176 echo $ECHO_N "checking locale.h usability...
$ECHO_C" >&6; }
17177 cat >conftest.$ac_ext <<_ACEOF
17180 cat confdefs.h >>conftest.$ac_ext
17181 cat >>conftest.$ac_ext <<_ACEOF
17182 /* end confdefs.h. */
17183 $ac_includes_default
17184 #include <locale.h>
17186 rm -f conftest.$ac_objext
17187 if { (ac_try="$ac_compile"
17188 case "(($ac_try" in
17189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17190 *) ac_try_echo=$ac_try;;
17192 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17193 (eval "$ac_compile") 2>conftest.er1
17195 grep -v '^ *+' conftest.er1 >conftest.err
17197 cat conftest.err >&5
17198 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17199 (exit $ac_status); } && {
17200 test -z "$ac_c_werror_flag" ||
17201 test ! -s conftest.err
17202 } && test -s conftest.$ac_objext; then
17203 ac_header_compiler=yes
17205 echo "$as_me: failed program was
:" >&5
17206 sed 's/^/| /' conftest.$ac_ext >&5
17208 ac_header_compiler=no
17211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17212 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17213 echo "${ECHO_T}$ac_header_compiler" >&6; }
17215 # Is the header present?
17216 { echo "$as_me:$LINENO: checking locale.h presence
" >&5
17217 echo $ECHO_N "checking locale.h presence...
$ECHO_C" >&6; }
17218 cat >conftest.$ac_ext <<_ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h. */
17224 #include <locale.h>
17226 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17227 case "(($ac_try" in
17228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17229 *) ac_try_echo=$ac_try;;
17231 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17232 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17234 grep -v '^ *+' conftest.er1 >conftest.err
17236 cat conftest.err >&5
17237 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17238 (exit $ac_status); } >/dev/null && {
17239 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17240 test ! -s conftest.err
17242 ac_header_preproc=yes
17244 echo "$as_me: failed program was
:" >&5
17245 sed 's/^/| /' conftest.$ac_ext >&5
17247 ac_header_preproc=no
17250 rm -f conftest.err conftest.$ac_ext
17251 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17252 echo "${ECHO_T}$ac_header_preproc" >&6; }
17254 # So? What about this header?
17255 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17257 { echo "$as_me:$LINENO: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17258 echo "$as_me: WARNING
: locale.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17259 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the compiler
's result" >&5
17260 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result
" >&2;}
17261 ac_header_preproc=yes
17264 { echo "$as_me:$LINENO: WARNING
: locale.h
: present but cannot be compiled
" >&5
17265 echo "$as_me: WARNING
: locale.h
: present but cannot be compiled
" >&2;}
17266 { echo "$as_me:$LINENO: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&5
17267 echo "$as_me: WARNING
: locale.h
: check
for missing prerequisite headers?
" >&2;}
17268 { echo "$as_me:$LINENO: WARNING
: locale.h
: see the Autoconf documentation
" >&5
17269 echo "$as_me: WARNING
: locale.h
: see the Autoconf documentation
" >&2;}
17270 { echo "$as_me:$LINENO: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17271 echo "$as_me: WARNING
: locale.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17272 { echo "$as_me:$LINENO: WARNING
: locale.h
: proceeding with the preprocessor
's result" >&5
17273 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result
" >&2;}
17274 { echo "$as_me:$LINENO: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&5
17275 echo "$as_me: WARNING
: locale.h
: in the future
, the compiler will take precedence
" >&2;}
17279 { echo "$as_me:$LINENO: checking
for locale.h
" >&5
17280 echo $ECHO_N "checking
for locale.h...
$ECHO_C" >&6; }
17281 if test "${ac_cv_header_locale_h+set}" = set; then
17282 echo $ECHO_N "(cached
) $ECHO_C" >&6
17284 ac_cv_header_locale_h=$ac_header_preproc
17286 { echo "$as_me:$LINENO: result
: $ac_cv_header_locale_h" >&5
17287 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17293 for ac_func in setlocale
17295 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
17296 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
17297 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
17298 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
17299 echo $ECHO_N "(cached
) $ECHO_C" >&6
17301 cat >conftest.$ac_ext <<_ACEOF
17304 cat confdefs.h >>conftest.$ac_ext
17305 cat >>conftest.$ac_ext <<_ACEOF
17306 /* end confdefs.h. */
17307 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17308 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17309 #define $ac_func innocuous_$ac_func
17311 /* System header to define __stub macros and hopefully few prototypes,
17312 which can conflict with char $ac_func (); below.
17313 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17314 <limits.h> exists even on freestanding compilers. */
17317 # include <limits.h>
17319 # include <assert.h>
17324 /* Override any GCC internal prototype to avoid an error.
17325 Use char because int might match the return type of a GCC
17326 builtin and then its argument prototype would still apply. */
17331 /* The GNU C library defines this for functions which it implements
17332 to always fail with ENOSYS. Some functions are actually named
17333 something starting with __ and the normal name is an alias. */
17334 #if defined __stub_$ac_func || defined __stub___$ac_func
17341 return $ac_func ();
17346 rm -f conftest.$ac_objext conftest$ac_exeext
17347 if { (ac_try="$ac_link"
17348 case "(($ac_try" in
17349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17350 *) ac_try_echo=$ac_try;;
17352 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17353 (eval "$ac_link") 2>conftest.er1
17355 grep -v '^ *+' conftest.er1 >conftest.err
17357 cat conftest.err >&5
17358 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17359 (exit $ac_status); } && {
17360 test -z "$ac_c_werror_flag" ||
17361 test ! -s conftest.err
17362 } && test -s conftest$ac_exeext &&
17363 $as_test_x conftest$ac_exeext; then
17364 eval "$as_ac_var=yes"
17366 echo "$as_me: failed program was
:" >&5
17367 sed 's/^/| /' conftest.$ac_ext >&5
17369 eval "$as_ac_var=no
"
17372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17373 conftest$ac_exeext conftest.$ac_ext
17375 ac_res=`eval echo '${'$as_ac_var'}'`
17376 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17377 echo "${ECHO_T}$ac_res" >&6; }
17378 if test `eval echo '${'$as_ac_var'}'` = yes; then
17379 cat >>confdefs.h <<_ACEOF
17380 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
17387 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17388 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17389 # Irix 4.0.5F has the header but not the library.
17390 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17393 cat >>confdefs.h <<\_ACEOF
17399 if test $ac_have_func = no; then
17400 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17401 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17402 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17403 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17404 echo $ECHO_N "(cached
) $ECHO_C" >&6
17406 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17407 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17409 # Is the header compilable?
17410 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h usability
" >&5
17411 echo $ECHO_N "checking inq_stats
/cpustats.h usability...
$ECHO_C" >&6; }
17412 cat >conftest.$ac_ext <<_ACEOF
17415 cat confdefs.h >>conftest.$ac_ext
17416 cat >>conftest.$ac_ext <<_ACEOF
17417 /* end confdefs.h. */
17418 $ac_includes_default
17419 #include <inq_stats/cpustats.h>
17421 rm -f conftest.$ac_objext
17422 if { (ac_try="$ac_compile"
17423 case "(($ac_try" in
17424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17425 *) ac_try_echo=$ac_try;;
17427 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17428 (eval "$ac_compile") 2>conftest.er1
17430 grep -v '^ *+' conftest.er1 >conftest.err
17432 cat conftest.err >&5
17433 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17434 (exit $ac_status); } && {
17435 test -z "$ac_c_werror_flag" ||
17436 test ! -s conftest.err
17437 } && test -s conftest.$ac_objext; then
17438 ac_header_compiler=yes
17440 echo "$as_me: failed program was
:" >&5
17441 sed 's/^/| /' conftest.$ac_ext >&5
17443 ac_header_compiler=no
17446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17447 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17448 echo "${ECHO_T}$ac_header_compiler" >&6; }
17450 # Is the header present?
17451 { echo "$as_me:$LINENO: checking inq_stats
/cpustats.h presence
" >&5
17452 echo $ECHO_N "checking inq_stats
/cpustats.h presence...
$ECHO_C" >&6; }
17453 cat >conftest.$ac_ext <<_ACEOF
17456 cat confdefs.h >>conftest.$ac_ext
17457 cat >>conftest.$ac_ext <<_ACEOF
17458 /* end confdefs.h. */
17459 #include <inq_stats/cpustats.h>
17461 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17462 case "(($ac_try" in
17463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464 *) ac_try_echo=$ac_try;;
17466 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17467 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17469 grep -v '^ *+' conftest.er1 >conftest.err
17471 cat conftest.err >&5
17472 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17473 (exit $ac_status); } >/dev/null && {
17474 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17475 test ! -s conftest.err
17477 ac_header_preproc=yes
17479 echo "$as_me: failed program was
:" >&5
17480 sed 's/^/| /' conftest.$ac_ext >&5
17482 ac_header_preproc=no
17485 rm -f conftest.err conftest.$ac_ext
17486 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17487 echo "${ECHO_T}$ac_header_preproc" >&6; }
17489 # So? What about this header?
17490 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17492 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17493 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17494 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the compiler
's result" >&5
17495 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result
" >&2;}
17496 ac_header_preproc=yes
17499 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&5
17500 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: present but cannot be compiled
" >&2;}
17501 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17502 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17503 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&5
17504 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: see the Autoconf documentation
" >&2;}
17505 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17506 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17507 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17508 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17509 { echo "$as_me:$LINENO: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17510 echo "$as_me: WARNING
: inq_stats
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17514 { echo "$as_me:$LINENO: checking
for inq_stats
/cpustats.h
" >&5
17515 echo $ECHO_N "checking
for inq_stats
/cpustats.h...
$ECHO_C" >&6; }
17516 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17517 echo $ECHO_N "(cached
) $ECHO_C" >&6
17519 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17521 { echo "$as_me:$LINENO: result
: $ac_cv_header_inq_stats_cpustats_h" >&5
17522 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17525 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17528 cat >>confdefs.h <<\_ACEOF
17533 cat >>confdefs.h <<\_ACEOF
17542 if test $ac_have_func = no; then
17543 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17544 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17545 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17546 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17547 echo $ECHO_N "(cached
) $ECHO_C" >&6
17549 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17550 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17552 # Is the header compilable?
17553 { echo "$as_me:$LINENO: checking sys
/cpustats.h usability
" >&5
17554 echo $ECHO_N "checking sys
/cpustats.h usability...
$ECHO_C" >&6; }
17555 cat >conftest.$ac_ext <<_ACEOF
17558 cat confdefs.h >>conftest.$ac_ext
17559 cat >>conftest.$ac_ext <<_ACEOF
17560 /* end confdefs.h. */
17561 $ac_includes_default
17562 #include <sys/cpustats.h>
17564 rm -f conftest.$ac_objext
17565 if { (ac_try="$ac_compile"
17566 case "(($ac_try" in
17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568 *) ac_try_echo=$ac_try;;
17570 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17571 (eval "$ac_compile") 2>conftest.er1
17573 grep -v '^ *+' conftest.er1 >conftest.err
17575 cat conftest.err >&5
17576 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17577 (exit $ac_status); } && {
17578 test -z "$ac_c_werror_flag" ||
17579 test ! -s conftest.err
17580 } && test -s conftest.$ac_objext; then
17581 ac_header_compiler=yes
17583 echo "$as_me: failed program was
:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17586 ac_header_compiler=no
17589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17590 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17591 echo "${ECHO_T}$ac_header_compiler" >&6; }
17593 # Is the header present?
17594 { echo "$as_me:$LINENO: checking sys
/cpustats.h presence
" >&5
17595 echo $ECHO_N "checking sys
/cpustats.h presence...
$ECHO_C" >&6; }
17596 cat >conftest.$ac_ext <<_ACEOF
17599 cat confdefs.h >>conftest.$ac_ext
17600 cat >>conftest.$ac_ext <<_ACEOF
17601 /* end confdefs.h. */
17602 #include <sys/cpustats.h>
17604 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17605 case "(($ac_try" in
17606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17607 *) ac_try_echo=$ac_try;;
17609 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17610 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17612 grep -v '^ *+' conftest.er1 >conftest.err
17614 cat conftest.err >&5
17615 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17616 (exit $ac_status); } >/dev/null && {
17617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17618 test ! -s conftest.err
17620 ac_header_preproc=yes
17622 echo "$as_me: failed program was
:" >&5
17623 sed 's/^/| /' conftest.$ac_ext >&5
17625 ac_header_preproc=no
17628 rm -f conftest.err conftest.$ac_ext
17629 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17630 echo "${ECHO_T}$ac_header_preproc" >&6; }
17632 # So? What about this header?
17633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17635 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
17636 echo "$as_me: WARNING
: sys
/cpustats.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17637 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the compiler
's result" >&5
17638 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result
" >&2;}
17639 ac_header_preproc=yes
17642 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&5
17643 echo "$as_me: WARNING
: sys
/cpustats.h
: present but cannot be compiled
" >&2;}
17644 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&5
17645 echo "$as_me: WARNING
: sys
/cpustats.h
: check
for missing prerequisite headers?
" >&2;}
17646 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&5
17647 echo "$as_me: WARNING
: sys
/cpustats.h
: see the Autoconf documentation
" >&2;}
17648 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&5
17649 echo "$as_me: WARNING
: sys
/cpustats.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
17650 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: proceeding with the preprocessor
's result" >&5
17651 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result
" >&2;}
17652 { echo "$as_me:$LINENO: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&5
17653 echo "$as_me: WARNING
: sys
/cpustats.h
: in the future
, the compiler will take precedence
" >&2;}
17657 { echo "$as_me:$LINENO: checking
for sys
/cpustats.h
" >&5
17658 echo $ECHO_N "checking
for sys
/cpustats.h...
$ECHO_C" >&6; }
17659 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17660 echo $ECHO_N "(cached
) $ECHO_C" >&6
17662 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17664 { echo "$as_me:$LINENO: result
: $ac_cv_header_sys_cpustats_h" >&5
17665 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17668 if test $ac_cv_header_sys_cpustats_h = yes; then
17669 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17678 if test $ac_have_func = no; then
17680 for ac_header in mach/mach.h
17682 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17683 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17684 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17685 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17686 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17687 echo $ECHO_N "(cached
) $ECHO_C" >&6
17689 ac_res=`eval echo '${'$as_ac_Header'}'`
17690 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17691 echo "${ECHO_T}$ac_res" >&6; }
17693 # Is the header compilable?
17694 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17695 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17696 cat >conftest.$ac_ext <<_ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17702 $ac_includes_default
17703 #include <$ac_header>
17705 rm -f conftest.$ac_objext
17706 if { (ac_try="$ac_compile"
17707 case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17711 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17712 (eval "$ac_compile") 2>conftest.er1
17714 grep -v '^ *+' conftest.er1 >conftest.err
17716 cat conftest.err >&5
17717 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17718 (exit $ac_status); } && {
17719 test -z "$ac_c_werror_flag" ||
17720 test ! -s conftest.err
17721 } && test -s conftest.$ac_objext; then
17722 ac_header_compiler=yes
17724 echo "$as_me: failed program was
:" >&5
17725 sed 's/^/| /' conftest.$ac_ext >&5
17727 ac_header_compiler=no
17730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17731 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17732 echo "${ECHO_T}$ac_header_compiler" >&6; }
17734 # Is the header present?
17735 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17736 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17737 cat >conftest.$ac_ext <<_ACEOF
17740 cat confdefs.h >>conftest.$ac_ext
17741 cat >>conftest.$ac_ext <<_ACEOF
17742 /* end confdefs.h. */
17743 #include <$ac_header>
17745 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17746 case "(($ac_try" in
17747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17748 *) ac_try_echo=$ac_try;;
17750 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17751 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17753 grep -v '^ *+' conftest.er1 >conftest.err
17755 cat conftest.err >&5
17756 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17757 (exit $ac_status); } >/dev/null && {
17758 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17759 test ! -s conftest.err
17761 ac_header_preproc=yes
17763 echo "$as_me: failed program was
:" >&5
17764 sed 's/^/| /' conftest.$ac_ext >&5
17766 ac_header_preproc=no
17769 rm -f conftest.err conftest.$ac_ext
17770 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17771 echo "${ECHO_T}$ac_header_preproc" >&6; }
17773 # So? What about this header?
17774 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17776 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17777 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17778 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17779 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17780 ac_header_preproc=yes
17783 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17784 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17785 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17786 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17787 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17788 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17789 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17790 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17791 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17792 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17793 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17794 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17798 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17799 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17800 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17801 echo $ECHO_N "(cached
) $ECHO_C" >&6
17803 eval "$as_ac_Header=\
$ac_header_preproc"
17805 ac_res=`eval echo '${'$as_ac_Header'}'`
17806 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17807 echo "${ECHO_T}$ac_res" >&6; }
17810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17811 cat >>confdefs.h <<_ACEOF
17812 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17822 for ac_header in nlist.h
17824 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
17825 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17826 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17827 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17828 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17829 echo $ECHO_N "(cached
) $ECHO_C" >&6
17831 ac_res=`eval echo '${'$as_ac_Header'}'`
17832 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17833 echo "${ECHO_T}$ac_res" >&6; }
17835 # Is the header compilable?
17836 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
17837 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
17838 cat >conftest.$ac_ext <<_ACEOF
17841 cat confdefs.h >>conftest.$ac_ext
17842 cat >>conftest.$ac_ext <<_ACEOF
17843 /* end confdefs.h. */
17844 $ac_includes_default
17845 #include <$ac_header>
17847 rm -f conftest.$ac_objext
17848 if { (ac_try="$ac_compile"
17849 case "(($ac_try" in
17850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17851 *) ac_try_echo=$ac_try;;
17853 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17854 (eval "$ac_compile") 2>conftest.er1
17856 grep -v '^ *+' conftest.er1 >conftest.err
17858 cat conftest.err >&5
17859 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17860 (exit $ac_status); } && {
17861 test -z "$ac_c_werror_flag" ||
17862 test ! -s conftest.err
17863 } && test -s conftest.$ac_objext; then
17864 ac_header_compiler=yes
17866 echo "$as_me: failed program was
:" >&5
17867 sed 's/^/| /' conftest.$ac_ext >&5
17869 ac_header_compiler=no
17872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17873 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
17874 echo "${ECHO_T}$ac_header_compiler" >&6; }
17876 # Is the header present?
17877 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
17878 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
17879 cat >conftest.$ac_ext <<_ACEOF
17882 cat confdefs.h >>conftest.$ac_ext
17883 cat >>conftest.$ac_ext <<_ACEOF
17884 /* end confdefs.h. */
17885 #include <$ac_header>
17887 if { (ac_try="$ac_cpp conftest.
$ac_ext"
17888 case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17892 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
17895 grep -v '^ *+' conftest.er1 >conftest.err
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17899 (exit $ac_status); } >/dev/null && {
17900 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17901 test ! -s conftest.err
17903 ac_header_preproc=yes
17905 echo "$as_me: failed program was
:" >&5
17906 sed 's/^/| /' conftest.$ac_ext >&5
17908 ac_header_preproc=no
17911 rm -f conftest.err conftest.$ac_ext
17912 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
17913 echo "${ECHO_T}$ac_header_preproc" >&6; }
17915 # So? What about this header?
17916 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17918 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
17919 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
17920 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
17921 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
17922 ac_header_preproc=yes
17925 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
17926 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
17927 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
17928 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
17929 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
17930 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
17931 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
17932 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
17933 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
17934 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
17935 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
17936 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
17940 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
17941 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
17942 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
17943 echo $ECHO_N "(cached
) $ECHO_C" >&6
17945 eval "$as_ac_Header=\
$ac_header_preproc"
17947 ac_res=`eval echo '${'$as_ac_Header'}'`
17948 { echo "$as_me:$LINENO: result
: $ac_res" >&5
17949 echo "${ECHO_T}$ac_res" >&6; }
17952 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17953 cat >>confdefs.h <<_ACEOF
17954 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
17956 { echo "$as_me:$LINENO: checking
for struct nlist.n_un.n_name
" >&5
17957 echo $ECHO_N "checking
for struct nlist.n_un.n_name...
$ECHO_C" >&6; }
17958 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17959 echo $ECHO_N "(cached
) $ECHO_C" >&6
17961 cat >conftest.$ac_ext <<_ACEOF
17964 cat confdefs.h >>conftest.$ac_ext
17965 cat >>conftest.$ac_ext <<_ACEOF
17966 /* end confdefs.h. */
17972 static struct nlist ac_aggr;
17973 if (ac_aggr.n_un.n_name)
17979 rm -f conftest.$ac_objext
17980 if { (ac_try="$ac_compile"
17981 case "(($ac_try" in
17982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17983 *) ac_try_echo=$ac_try;;
17985 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
17986 (eval "$ac_compile") 2>conftest.er1
17988 grep -v '^ *+' conftest.er1 >conftest.err
17990 cat conftest.err >&5
17991 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
17992 (exit $ac_status); } && {
17993 test -z "$ac_c_werror_flag" ||
17994 test ! -s conftest.err
17995 } && test -s conftest.$ac_objext; then
17996 ac_cv_member_struct_nlist_n_un_n_name=yes
17998 echo "$as_me: failed program was
:" >&5
17999 sed 's/^/| /' conftest.$ac_ext >&5
18001 cat >conftest.$ac_ext <<_ACEOF
18004 cat confdefs.h >>conftest.$ac_ext
18005 cat >>conftest.$ac_ext <<_ACEOF
18006 /* end confdefs.h. */
18012 static struct nlist ac_aggr;
18013 if (sizeof ac_aggr.n_un.n_name)
18019 rm -f conftest.$ac_objext
18020 if { (ac_try="$ac_compile"
18021 case "(($ac_try" in
18022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18023 *) ac_try_echo=$ac_try;;
18025 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18026 (eval "$ac_compile") 2>conftest.er1
18028 grep -v '^ *+' conftest.er1 >conftest.err
18030 cat conftest.err >&5
18031 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18032 (exit $ac_status); } && {
18033 test -z "$ac_c_werror_flag" ||
18034 test ! -s conftest.err
18035 } && test -s conftest.$ac_objext; then
18036 ac_cv_member_struct_nlist_n_un_n_name=yes
18038 echo "$as_me: failed program was
:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18041 ac_cv_member_struct_nlist_n_un_n_name=no
18044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18049 { echo "$as_me:$LINENO: result
: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18050 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18051 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18053 cat >>confdefs.h <<_ACEOF
18054 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18058 cat >>confdefs.h <<\_ACEOF
18059 #define NLIST_NAME_UNION 1
18073 # Some definitions of getloadavg require that the program be installed setgid.
18074 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid
" >&5
18075 echo $ECHO_N "checking whether getloadavg requires setgid...
$ECHO_C" >&6; }
18076 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18077 echo $ECHO_N "(cached
) $ECHO_C" >&6
18079 cat >conftest.$ac_ext <<_ACEOF
18082 cat confdefs.h >>conftest.$ac_ext
18083 cat >>conftest.$ac_ext <<_ACEOF
18084 /* end confdefs.h. */
18085 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c
"
18086 #ifdef LDAV_PRIVILEGED
18087 Yowza Am I SETGID yet
18090 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
18091 $EGREP "Yowza Am I SETGID yet
" >/dev/null 2>&1; then
18092 ac_cv_func_getloadavg_setgid=yes
18094 ac_cv_func_getloadavg_setgid=no
18099 { echo "$as_me:$LINENO: result
: $ac_cv_func_getloadavg_setgid" >&5
18100 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18101 if test $ac_cv_func_getloadavg_setgid = yes; then
18104 cat >>confdefs.h <<\_ACEOF
18105 #define GETLOADAVG_PRIVILEGED 1
18112 if test $ac_cv_func_getloadavg_setgid = yes; then
18113 { echo "$as_me:$LINENO: checking group of
/dev
/kmem
" >&5
18114 echo $ECHO_N "checking group of
/dev
/kmem...
$ECHO_C" >&6; }
18115 if test "${ac_cv_group_kmem+set}" = set; then
18116 echo $ECHO_N "(cached
) $ECHO_C" >&6
18118 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18119 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18120 # If we got an error (system does not support symlinks), try without -L.
18121 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18122 ac_cv_group_kmem=`echo $ac_ls_output \
18123 | sed -ne 's/[ ][ ]*/ /g;
18124 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18128 { echo "$as_me:$LINENO: result
: $ac_cv_group_kmem" >&5
18129 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18130 KMEM_GROUP=$ac_cv_group_kmem
18132 if test "x
$ac_save_LIBS" = x; then
18133 GETLOADAVG_LIBS=$LIBS
18135 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s
!$ac_save_LIBS!!"`
18141 { echo "$as_me:$LINENO: checking
for _LARGEFILE_SOURCE value needed
for large files
" >&5
18142 echo $ECHO_N "checking
for _LARGEFILE_SOURCE value needed
for large files...
$ECHO_C" >&6; }
18143 if test "${ac_cv_sys_largefile_source+set}" = set; then
18144 echo $ECHO_N "(cached
) $ECHO_C" >&6
18147 cat >conftest.$ac_ext <<_ACEOF
18150 cat confdefs.h >>conftest.$ac_ext
18151 cat >>conftest.$ac_ext <<_ACEOF
18152 /* end confdefs.h. */
18157 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18162 rm -f conftest.$ac_objext conftest$ac_exeext
18163 if { (ac_try="$ac_link"
18164 case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18168 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_link") 2>conftest.er1
18171 grep -v '^ *+' conftest.er1 >conftest.err
18173 cat conftest.err >&5
18174 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18175 (exit $ac_status); } && {
18176 test -z "$ac_c_werror_flag" ||
18177 test ! -s conftest.err
18178 } && test -s conftest$ac_exeext &&
18179 $as_test_x conftest$ac_exeext; then
18180 ac_cv_sys_largefile_source=no; break
18182 echo "$as_me: failed program was
:" >&5
18183 sed 's/^/| /' conftest.$ac_ext >&5
18188 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18189 conftest$ac_exeext conftest.$ac_ext
18190 cat >conftest.$ac_ext <<_ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18196 #define _LARGEFILE_SOURCE 1
18201 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18206 rm -f conftest.$ac_objext conftest$ac_exeext
18207 if { (ac_try="$ac_link"
18208 case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18212 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18213 (eval "$ac_link") 2>conftest.er1
18215 grep -v '^ *+' conftest.er1 >conftest.err
18217 cat conftest.err >&5
18218 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18219 (exit $ac_status); } && {
18220 test -z "$ac_c_werror_flag" ||
18221 test ! -s conftest.err
18222 } && test -s conftest$ac_exeext &&
18223 $as_test_x conftest$ac_exeext; then
18224 ac_cv_sys_largefile_source=1; break
18226 echo "$as_me: failed program was
:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18233 conftest$ac_exeext conftest.$ac_ext
18234 ac_cv_sys_largefile_source=unknown
18238 { echo "$as_me:$LINENO: result
: $ac_cv_sys_largefile_source" >&5
18239 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18240 case $ac_cv_sys_largefile_source in #(
18243 cat >>confdefs.h <<_ACEOF
18244 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18250 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18251 # in glibc 2.1.3, but that breaks too many other things.
18252 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18253 if test $ac_cv_sys_largefile_source != unknown; then
18255 cat >>confdefs.h <<\_ACEOF
18256 #define HAVE_FSEEKO 1
18262 # Configure getopt.
18263 # getopt.m4 serial 10
18265 # The getopt module assume you want GNU getopt, with getopt_long etc,
18266 # rather than vanilla POSIX getopt. This means your your code should
18267 # always include <getopt.h> for the getopt prototypes.
18279 # Prerequisites of lib/getopt*.
18286 for ac_header in getopt.h
18288 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
18289 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18290 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18291 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18292 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18293 echo $ECHO_N "(cached
) $ECHO_C" >&6
18295 ac_res=`eval echo '${'$as_ac_Header'}'`
18296 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18297 echo "${ECHO_T}$ac_res" >&6; }
18299 # Is the header compilable?
18300 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
18301 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
18302 cat >conftest.$ac_ext <<_ACEOF
18305 cat confdefs.h >>conftest.$ac_ext
18306 cat >>conftest.$ac_ext <<_ACEOF
18307 /* end confdefs.h. */
18308 $ac_includes_default
18309 #include <$ac_header>
18311 rm -f conftest.$ac_objext
18312 if { (ac_try="$ac_compile"
18313 case "(($ac_try" in
18314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18315 *) ac_try_echo=$ac_try;;
18317 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18318 (eval "$ac_compile") 2>conftest.er1
18320 grep -v '^ *+' conftest.er1 >conftest.err
18322 cat conftest.err >&5
18323 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18324 (exit $ac_status); } && {
18325 test -z "$ac_c_werror_flag" ||
18326 test ! -s conftest.err
18327 } && test -s conftest.$ac_objext; then
18328 ac_header_compiler=yes
18330 echo "$as_me: failed program was
:" >&5
18331 sed 's/^/| /' conftest.$ac_ext >&5
18333 ac_header_compiler=no
18336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18337 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
18338 echo "${ECHO_T}$ac_header_compiler" >&6; }
18340 # Is the header present?
18341 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
18342 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
18343 cat >conftest.$ac_ext <<_ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h. */
18349 #include <$ac_header>
18351 if { (ac_try="$ac_cpp conftest.
$ac_ext"
18352 case "(($ac_try" in
18353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18354 *) ac_try_echo=$ac_try;;
18356 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18357 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
18359 grep -v '^ *+' conftest.er1 >conftest.err
18361 cat conftest.err >&5
18362 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18363 (exit $ac_status); } >/dev/null && {
18364 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18365 test ! -s conftest.err
18367 ac_header_preproc=yes
18369 echo "$as_me: failed program was
:" >&5
18370 sed 's/^/| /' conftest.$ac_ext >&5
18372 ac_header_preproc=no
18375 rm -f conftest.err conftest.$ac_ext
18376 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
18377 echo "${ECHO_T}$ac_header_preproc" >&6; }
18379 # So? What about this header?
18380 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18382 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
18383 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
18384 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
18385 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
18386 ac_header_preproc=yes
18389 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
18390 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
18391 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
18392 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
18393 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
18394 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
18395 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
18396 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
18397 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
18398 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
18399 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
18400 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
18404 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
18405 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
18406 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
18407 echo $ECHO_N "(cached
) $ECHO_C" >&6
18409 eval "$as_ac_Header=\
$ac_header_preproc"
18411 ac_res=`eval echo '${'$as_ac_Header'}'`
18412 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18413 echo "${ECHO_T}$ac_res" >&6; }
18416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18417 cat >>confdefs.h <<_ACEOF
18418 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
18427 if test -z "$GETOPT_H"; then
18429 for ac_func in getopt_long_only
18431 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18432 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18433 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18434 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18435 echo $ECHO_N "(cached
) $ECHO_C" >&6
18437 cat >conftest.$ac_ext <<_ACEOF
18440 cat confdefs.h >>conftest.$ac_ext
18441 cat >>conftest.$ac_ext <<_ACEOF
18442 /* end confdefs.h. */
18443 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18444 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18445 #define $ac_func innocuous_$ac_func
18447 /* System header to define __stub macros and hopefully few prototypes,
18448 which can conflict with char $ac_func (); below.
18449 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18450 <limits.h> exists even on freestanding compilers. */
18453 # include <limits.h>
18455 # include <assert.h>
18460 /* Override any GCC internal prototype to avoid an error.
18461 Use char because int might match the return type of a GCC
18462 builtin and then its argument prototype would still apply. */
18467 /* The GNU C library defines this for functions which it implements
18468 to always fail with ENOSYS. Some functions are actually named
18469 something starting with __ and the normal name is an alias. */
18470 #if defined __stub_$ac_func || defined __stub___$ac_func
18477 return $ac_func ();
18482 rm -f conftest.$ac_objext conftest$ac_exeext
18483 if { (ac_try="$ac_link"
18484 case "(($ac_try" in
18485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18486 *) ac_try_echo=$ac_try;;
18488 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18489 (eval "$ac_link") 2>conftest.er1
18491 grep -v '^ *+' conftest.er1 >conftest.err
18493 cat conftest.err >&5
18494 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18495 (exit $ac_status); } && {
18496 test -z "$ac_c_werror_flag" ||
18497 test ! -s conftest.err
18498 } && test -s conftest$ac_exeext &&
18499 $as_test_x conftest$ac_exeext; then
18500 eval "$as_ac_var=yes"
18502 echo "$as_me: failed program was
:" >&5
18503 sed 's/^/| /' conftest.$ac_ext >&5
18505 eval "$as_ac_var=no
"
18508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18509 conftest$ac_exeext conftest.$ac_ext
18511 ac_res=`eval echo '${'$as_ac_var'}'`
18512 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18513 echo "${ECHO_T}$ac_res" >&6; }
18514 if test `eval echo '${'$as_ac_var'}'` = yes; then
18515 cat >>confdefs.h <<_ACEOF
18516 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18526 if test -z "$GETOPT_H"; then
18527 { echo "$as_me:$LINENO: checking whether optreset is declared
" >&5
18528 echo $ECHO_N "checking whether optreset is declared...
$ECHO_C" >&6; }
18529 if test "${ac_cv_have_decl_optreset+set}" = set; then
18530 echo $ECHO_N "(cached
) $ECHO_C" >&6
18532 cat >conftest.$ac_ext <<_ACEOF
18535 cat confdefs.h >>conftest.$ac_ext
18536 cat >>conftest.$ac_ext <<_ACEOF
18537 /* end confdefs.h. */
18538 #include <getopt.h>
18551 rm -f conftest.$ac_objext
18552 if { (ac_try="$ac_compile"
18553 case "(($ac_try" in
18554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18555 *) ac_try_echo=$ac_try;;
18557 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18558 (eval "$ac_compile") 2>conftest.er1
18560 grep -v '^ *+' conftest.er1 >conftest.err
18562 cat conftest.err >&5
18563 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18564 (exit $ac_status); } && {
18565 test -z "$ac_c_werror_flag" ||
18566 test ! -s conftest.err
18567 } && test -s conftest.$ac_objext; then
18568 ac_cv_have_decl_optreset=yes
18570 echo "$as_me: failed program was
:" >&5
18571 sed 's/^/| /' conftest.$ac_ext >&5
18573 ac_cv_have_decl_optreset=no
18576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18578 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_optreset" >&5
18579 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18580 if test $ac_cv_have_decl_optreset = yes; then
18586 if test -z "$GETOPT_H"; then
18587 { echo "$as_me:$LINENO: checking
for working GNU getopt
function" >&5
18588 echo $ECHO_N "checking
for working GNU getopt
function...
$ECHO_C" >&6; }
18589 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18590 echo $ECHO_N "(cached
) $ECHO_C" >&6
18592 if test "$cross_compiling" = yes; then
18593 { echo "$as_me:$LINENO: checking whether getopt_clip is declared
" >&5
18594 echo $ECHO_N "checking whether getopt_clip is declared...
$ECHO_C" >&6; }
18595 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18596 echo $ECHO_N "(cached
) $ECHO_C" >&6
18598 cat >conftest.$ac_ext <<_ACEOF
18601 cat confdefs.h >>conftest.$ac_ext
18602 cat >>conftest.$ac_ext <<_ACEOF
18603 /* end confdefs.h. */
18604 #include <getopt.h>
18609 #ifndef getopt_clip
18610 (void) getopt_clip;
18617 rm -f conftest.$ac_objext
18618 if { (ac_try="$ac_compile"
18619 case "(($ac_try" in
18620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18621 *) ac_try_echo=$ac_try;;
18623 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18624 (eval "$ac_compile") 2>conftest.er1
18626 grep -v '^ *+' conftest.er1 >conftest.err
18628 cat conftest.err >&5
18629 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18630 (exit $ac_status); } && {
18631 test -z "$ac_c_werror_flag" ||
18632 test ! -s conftest.err
18633 } && test -s conftest.$ac_objext; then
18634 ac_cv_have_decl_getopt_clip=yes
18636 echo "$as_me: failed program was
:" >&5
18637 sed 's/^/| /' conftest.$ac_ext >&5
18639 ac_cv_have_decl_getopt_clip=no
18642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18644 { echo "$as_me:$LINENO: result
: $ac_cv_have_decl_getopt_clip" >&5
18645 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18646 if test $ac_cv_have_decl_getopt_clip = yes; then
18647 gl_cv_func_gnu_getopt=no
18649 gl_cv_func_gnu_getopt=yes
18653 cat >conftest.$ac_ext <<_ACEOF
18656 cat confdefs.h >>conftest.$ac_ext
18657 cat >>conftest.$ac_ext <<_ACEOF
18658 /* end confdefs.h. */
18659 #include <getopt.h>
18665 myargv[0] = "conftest
";
18668 return getopt (2, myargv, "+a
") != '?';
18674 rm -f conftest$ac_exeext
18675 if { (ac_try="$ac_link"
18676 case "(($ac_try" in
18677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18678 *) ac_try_echo=$ac_try;;
18680 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18681 (eval "$ac_link") 2>&5
18683 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18684 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18685 { (case "(($ac_try" in
18686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18687 *) ac_try_echo=$ac_try;;
18689 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18690 (eval "$ac_try") 2>&5
18692 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18693 (exit $ac_status); }; }; then
18694 gl_cv_func_gnu_getopt=yes
18696 echo "$as_me: program exited with status
$ac_status" >&5
18697 echo "$as_me: failed program was
:" >&5
18698 sed 's/^/| /' conftest.$ac_ext >&5
18700 ( exit $ac_status )
18701 gl_cv_func_gnu_getopt=no
18703 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18708 { echo "$as_me:$LINENO: result
: $gl_cv_func_gnu_getopt" >&5
18709 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18710 if test "$gl_cv_func_gnu_getopt" = "no
"; then
18717 if test -n "$GETOPT_H"; then
18722 cat >>confdefs.h <<\_ACEOF
18723 #define __GETOPT_PREFIX rpl_
18729 GETOPTOBJS='getopt.o getopt1.o'
18736 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments
" >&5
18737 echo $ECHO_N "checking whether getpgrp requires zero arguments...
$ECHO_C" >&6; }
18738 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18739 echo $ECHO_N "(cached
) $ECHO_C" >&6
18741 # Use it with a single arg.
18742 cat >conftest.$ac_ext <<_ACEOF
18745 cat confdefs.h >>conftest.$ac_ext
18746 cat >>conftest.$ac_ext <<_ACEOF
18747 /* end confdefs.h. */
18748 $ac_includes_default
18757 rm -f conftest.$ac_objext
18758 if { (ac_try="$ac_compile"
18759 case "(($ac_try" in
18760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18761 *) ac_try_echo=$ac_try;;
18763 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18764 (eval "$ac_compile") 2>conftest.er1
18766 grep -v '^ *+' conftest.er1 >conftest.err
18768 cat conftest.err >&5
18769 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18770 (exit $ac_status); } && {
18771 test -z "$ac_c_werror_flag" ||
18772 test ! -s conftest.err
18773 } && test -s conftest.$ac_objext; then
18774 ac_cv_func_getpgrp_void=no
18776 echo "$as_me: failed program was
:" >&5
18777 sed 's/^/| /' conftest.$ac_ext >&5
18779 ac_cv_func_getpgrp_void=yes
18782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18785 { echo "$as_me:$LINENO: result
: $ac_cv_func_getpgrp_void" >&5
18786 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18787 if test $ac_cv_func_getpgrp_void = yes; then
18789 cat >>confdefs.h <<\_ACEOF
18790 #define GETPGRP_VOID 1
18797 for ac_func in strftime
18799 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18800 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18801 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18802 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18803 echo $ECHO_N "(cached
) $ECHO_C" >&6
18805 cat >conftest.$ac_ext <<_ACEOF
18808 cat confdefs.h >>conftest.$ac_ext
18809 cat >>conftest.$ac_ext <<_ACEOF
18810 /* end confdefs.h. */
18811 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18812 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18813 #define $ac_func innocuous_$ac_func
18815 /* System header to define __stub macros and hopefully few prototypes,
18816 which can conflict with char $ac_func (); below.
18817 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18818 <limits.h> exists even on freestanding compilers. */
18821 # include <limits.h>
18823 # include <assert.h>
18828 /* Override any GCC internal prototype to avoid an error.
18829 Use char because int might match the return type of a GCC
18830 builtin and then its argument prototype would still apply. */
18835 /* The GNU C library defines this for functions which it implements
18836 to always fail with ENOSYS. Some functions are actually named
18837 something starting with __ and the normal name is an alias. */
18838 #if defined __stub_$ac_func || defined __stub___$ac_func
18845 return $ac_func ();
18850 rm -f conftest.$ac_objext conftest$ac_exeext
18851 if { (ac_try="$ac_link"
18852 case "(($ac_try" in
18853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18854 *) ac_try_echo=$ac_try;;
18856 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18857 (eval "$ac_link") 2>conftest.er1
18859 grep -v '^ *+' conftest.er1 >conftest.err
18861 cat conftest.err >&5
18862 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18863 (exit $ac_status); } && {
18864 test -z "$ac_c_werror_flag" ||
18865 test ! -s conftest.err
18866 } && test -s conftest$ac_exeext &&
18867 $as_test_x conftest$ac_exeext; then
18868 eval "$as_ac_var=yes"
18870 echo "$as_me: failed program was
:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18873 eval "$as_ac_var=no
"
18876 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18877 conftest$ac_exeext conftest.$ac_ext
18879 ac_res=`eval echo '${'$as_ac_var'}'`
18880 { echo "$as_me:$LINENO: result
: $ac_res" >&5
18881 echo "${ECHO_T}$ac_res" >&6; }
18882 if test `eval echo '${'$as_ac_var'}'` = yes; then
18883 cat >>confdefs.h <<_ACEOF
18884 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
18888 # strftime is in -lintl on SCO UNIX.
18889 { echo "$as_me:$LINENO: checking
for strftime
in -lintl" >&5
18890 echo $ECHO_N "checking
for strftime
in -lintl...
$ECHO_C" >&6; }
18891 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18892 echo $ECHO_N "(cached
) $ECHO_C" >&6
18894 ac_check_lib_save_LIBS=$LIBS
18895 LIBS="-lintl $LIBS"
18896 cat >conftest.$ac_ext <<_ACEOF
18899 cat confdefs.h >>conftest.$ac_ext
18900 cat >>conftest.$ac_ext <<_ACEOF
18901 /* end confdefs.h. */
18903 /* Override any GCC internal prototype to avoid an error.
18904 Use char because int might match the return type of a GCC
18905 builtin and then its argument prototype would still apply. */
18913 return strftime ();
18918 rm -f conftest.$ac_objext conftest$ac_exeext
18919 if { (ac_try="$ac_link"
18920 case "(($ac_try" in
18921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18922 *) ac_try_echo=$ac_try;;
18924 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
18925 (eval "$ac_link") 2>conftest.er1
18927 grep -v '^ *+' conftest.er1 >conftest.err
18929 cat conftest.err >&5
18930 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
18931 (exit $ac_status); } && {
18932 test -z "$ac_c_werror_flag" ||
18933 test ! -s conftest.err
18934 } && test -s conftest$ac_exeext &&
18935 $as_test_x conftest$ac_exeext; then
18936 ac_cv_lib_intl_strftime=yes
18938 echo "$as_me: failed program was
:" >&5
18939 sed 's/^/| /' conftest.$ac_ext >&5
18941 ac_cv_lib_intl_strftime=no
18944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18945 conftest$ac_exeext conftest.$ac_ext
18946 LIBS=$ac_check_lib_save_LIBS
18948 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_strftime" >&5
18949 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18950 if test $ac_cv_lib_intl_strftime = yes; then
18951 cat >>confdefs.h <<\_ACEOF
18952 #define HAVE_STRFTIME 1
18955 LIBS="-lintl $LIBS"
18964 for ac_func in grantpt
18966 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
18967 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
18968 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
18969 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
18970 echo $ECHO_N "(cached
) $ECHO_C" >&6
18972 cat >conftest.$ac_ext <<_ACEOF
18975 cat confdefs.h >>conftest.$ac_ext
18976 cat >>conftest.$ac_ext <<_ACEOF
18977 /* end confdefs.h. */
18978 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18979 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18980 #define $ac_func innocuous_$ac_func
18982 /* System header to define __stub macros and hopefully few prototypes,
18983 which can conflict with char $ac_func (); below.
18984 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18985 <limits.h> exists even on freestanding compilers. */
18988 # include <limits.h>
18990 # include <assert.h>
18995 /* Override any GCC internal prototype to avoid an error.
18996 Use char because int might match the return type of a GCC
18997 builtin and then its argument prototype would still apply. */
19002 /* The GNU C library defines this for functions which it implements
19003 to always fail with ENOSYS. Some functions are actually named
19004 something starting with __ and the normal name is an alias. */
19005 #if defined __stub_$ac_func || defined __stub___$ac_func
19012 return $ac_func ();
19017 rm -f conftest.$ac_objext conftest$ac_exeext
19018 if { (ac_try="$ac_link"
19019 case "(($ac_try" in
19020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19021 *) ac_try_echo=$ac_try;;
19023 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19024 (eval "$ac_link") 2>conftest.er1
19026 grep -v '^ *+' conftest.er1 >conftest.err
19028 cat conftest.err >&5
19029 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19030 (exit $ac_status); } && {
19031 test -z "$ac_c_werror_flag" ||
19032 test ! -s conftest.err
19033 } && test -s conftest$ac_exeext &&
19034 $as_test_x conftest$ac_exeext; then
19035 eval "$as_ac_var=yes"
19037 echo "$as_me: failed program was
:" >&5
19038 sed 's/^/| /' conftest.$ac_ext >&5
19040 eval "$as_ac_var=no
"
19043 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19044 conftest$ac_exeext conftest.$ac_ext
19046 ac_res=`eval echo '${'$as_ac_var'}'`
19047 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19048 echo "${ECHO_T}$ac_res" >&6; }
19049 if test `eval echo '${'$as_ac_var'}'` = yes; then
19050 cat >>confdefs.h <<_ACEOF
19051 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19058 # PTY-related GNU extensions.
19060 for ac_func in getpt
19062 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
19063 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
19064 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
19065 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
19066 echo $ECHO_N "(cached
) $ECHO_C" >&6
19068 cat >conftest.$ac_ext <<_ACEOF
19071 cat confdefs.h >>conftest.$ac_ext
19072 cat >>conftest.$ac_ext <<_ACEOF
19073 /* end confdefs.h. */
19074 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19075 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19076 #define $ac_func innocuous_$ac_func
19078 /* System header to define __stub macros and hopefully few prototypes,
19079 which can conflict with char $ac_func (); below.
19080 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19081 <limits.h> exists even on freestanding compilers. */
19084 # include <limits.h>
19086 # include <assert.h>
19091 /* Override any GCC internal prototype to avoid an error.
19092 Use char because int might match the return type of a GCC
19093 builtin and then its argument prototype would still apply. */
19098 /* The GNU C library defines this for functions which it implements
19099 to always fail with ENOSYS. Some functions are actually named
19100 something starting with __ and the normal name is an alias. */
19101 #if defined __stub_$ac_func || defined __stub___$ac_func
19108 return $ac_func ();
19113 rm -f conftest.$ac_objext conftest$ac_exeext
19114 if { (ac_try="$ac_link"
19115 case "(($ac_try" in
19116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19117 *) ac_try_echo=$ac_try;;
19119 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19120 (eval "$ac_link") 2>conftest.er1
19122 grep -v '^ *+' conftest.er1 >conftest.err
19124 cat conftest.err >&5
19125 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19126 (exit $ac_status); } && {
19127 test -z "$ac_c_werror_flag" ||
19128 test ! -s conftest.err
19129 } && test -s conftest$ac_exeext &&
19130 $as_test_x conftest$ac_exeext; then
19131 eval "$as_ac_var=yes"
19133 echo "$as_me: failed program was
:" >&5
19134 sed 's/^/| /' conftest.$ac_ext >&5
19136 eval "$as_ac_var=no
"
19139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19140 conftest$ac_exeext conftest.$ac_ext
19142 ac_res=`eval echo '${'$as_ac_var'}'`
19143 { echo "$as_me:$LINENO: result
: $ac_res" >&5
19144 echo "${ECHO_T}$ac_res" >&6; }
19145 if test `eval echo '${'$as_ac_var'}'` = yes; then
19146 cat >>confdefs.h <<_ACEOF
19147 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
19154 # Check this now, so that we will NOT find the above functions in ncurses.
19155 # That is because we have not set up to link ncurses in lib-src.
19156 # It's better to believe a function is not available
19157 # than to expect to find it in ncurses.
19159 { echo "$as_me:$LINENO: checking
for tparm
in -lncurses" >&5
19160 echo $ECHO_N "checking
for tparm
in -lncurses...
$ECHO_C" >&6; }
19161 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19162 echo $ECHO_N "(cached
) $ECHO_C" >&6
19164 ac_check_lib_save_LIBS=$LIBS
19165 LIBS="-lncurses $LIBS"
19166 cat >conftest.$ac_ext <<_ACEOF
19169 cat confdefs.h >>conftest.$ac_ext
19170 cat >>conftest.$ac_ext <<_ACEOF
19171 /* end confdefs.h. */
19173 /* Override any GCC internal prototype to avoid an error.
19174 Use char because int might match the return type of a GCC
19175 builtin and then its argument prototype would still apply. */
19188 rm -f conftest.$ac_objext conftest$ac_exeext
19189 if { (ac_try="$ac_link"
19190 case "(($ac_try" in
19191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19192 *) ac_try_echo=$ac_try;;
19194 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19195 (eval "$ac_link") 2>conftest.er1
19197 grep -v '^ *+' conftest.er1 >conftest.err
19199 cat conftest.err >&5
19200 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19201 (exit $ac_status); } && {
19202 test -z "$ac_c_werror_flag" ||
19203 test ! -s conftest.err
19204 } && test -s conftest$ac_exeext &&
19205 $as_test_x conftest$ac_exeext; then
19206 ac_cv_lib_ncurses_tparm=yes
19208 echo "$as_me: failed program was
:" >&5
19209 sed 's/^/| /' conftest.$ac_ext >&5
19211 ac_cv_lib_ncurses_tparm=no
19214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19215 conftest$ac_exeext conftest.$ac_ext
19216 LIBS=$ac_check_lib_save_LIBS
19218 { echo "$as_me:$LINENO: result
: $ac_cv_lib_ncurses_tparm" >&5
19219 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19220 if test $ac_cv_lib_ncurses_tparm = yes; then
19221 cat >>confdefs.h <<_ACEOF
19222 #define HAVE_LIBNCURSES 1
19225 LIBS="-lncurses $LIBS"
19230 # Do we need the Hesiod library to provide the support routines?
19231 if test "$with_hesiod" = yes ; then
19232 # Don't set $LIBS here -- see comments above.
19234 { echo "$as_me:$LINENO: checking
for res_send
" >&5
19235 echo $ECHO_N "checking
for res_send...
$ECHO_C" >&6; }
19236 if test "${ac_cv_func_res_send+set}" = set; then
19237 echo $ECHO_N "(cached
) $ECHO_C" >&6
19239 cat >conftest.$ac_ext <<_ACEOF
19242 cat confdefs.h >>conftest.$ac_ext
19243 cat >>conftest.$ac_ext <<_ACEOF
19244 /* end confdefs.h. */
19245 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19246 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19247 #define res_send innocuous_res_send
19249 /* System header to define __stub macros and hopefully few prototypes,
19250 which can conflict with char res_send (); below.
19251 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19252 <limits.h> exists even on freestanding compilers. */
19255 # include <limits.h>
19257 # include <assert.h>
19262 /* Override any GCC internal prototype to avoid an error.
19263 Use char because int might match the return type of a GCC
19264 builtin and then its argument prototype would still apply. */
19269 /* The GNU C library defines this for functions which it implements
19270 to always fail with ENOSYS. Some functions are actually named
19271 something starting with __ and the normal name is an alias. */
19272 #if defined __stub_res_send || defined __stub___res_send
19279 return res_send ();
19284 rm -f conftest.$ac_objext conftest$ac_exeext
19285 if { (ac_try="$ac_link"
19286 case "(($ac_try" in
19287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19288 *) ac_try_echo=$ac_try;;
19290 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19291 (eval "$ac_link") 2>conftest.er1
19293 grep -v '^ *+' conftest.er1 >conftest.err
19295 cat conftest.err >&5
19296 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19297 (exit $ac_status); } && {
19298 test -z "$ac_c_werror_flag" ||
19299 test ! -s conftest.err
19300 } && test -s conftest$ac_exeext &&
19301 $as_test_x conftest$ac_exeext; then
19302 ac_cv_func_res_send=yes
19304 echo "$as_me: failed program was
:" >&5
19305 sed 's/^/| /' conftest.$ac_ext >&5
19307 ac_cv_func_res_send=no
19310 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19311 conftest$ac_exeext conftest.$ac_ext
19313 { echo "$as_me:$LINENO: result
: $ac_cv_func_res_send" >&5
19314 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19315 if test $ac_cv_func_res_send = yes; then
19318 { echo "$as_me:$LINENO: checking
for __res_send
" >&5
19319 echo $ECHO_N "checking
for __res_send...
$ECHO_C" >&6; }
19320 if test "${ac_cv_func___res_send+set}" = set; then
19321 echo $ECHO_N "(cached
) $ECHO_C" >&6
19323 cat >conftest.$ac_ext <<_ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19329 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19331 #define __res_send innocuous___res_send
19333 /* System header to define __stub macros and hopefully few prototypes,
19334 which can conflict with char __res_send (); below.
19335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19336 <limits.h> exists even on freestanding compilers. */
19339 # include <limits.h>
19341 # include <assert.h>
19346 /* Override any GCC internal prototype to avoid an error.
19347 Use char because int might match the return type of a GCC
19348 builtin and then its argument prototype would still apply. */
19352 char __res_send ();
19353 /* The GNU C library defines this for functions which it implements
19354 to always fail with ENOSYS. Some functions are actually named
19355 something starting with __ and the normal name is an alias. */
19356 #if defined __stub___res_send || defined __stub_____res_send
19363 return __res_send ();
19368 rm -f conftest.$ac_objext conftest$ac_exeext
19369 if { (ac_try="$ac_link"
19370 case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19374 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_link") 2>conftest.er1
19377 grep -v '^ *+' conftest.er1 >conftest.err
19379 cat conftest.err >&5
19380 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19381 (exit $ac_status); } && {
19382 test -z "$ac_c_werror_flag" ||
19383 test ! -s conftest.err
19384 } && test -s conftest$ac_exeext &&
19385 $as_test_x conftest$ac_exeext; then
19386 ac_cv_func___res_send=yes
19388 echo "$as_me: failed program was
:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19391 ac_cv_func___res_send=no
19394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19395 conftest$ac_exeext conftest.$ac_ext
19397 { echo "$as_me:$LINENO: result
: $ac_cv_func___res_send" >&5
19398 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19399 if test $ac_cv_func___res_send = yes; then
19402 { echo "$as_me:$LINENO: checking
for res_send
in -lresolv" >&5
19403 echo $ECHO_N "checking
for res_send
in -lresolv...
$ECHO_C" >&6; }
19404 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19405 echo $ECHO_N "(cached
) $ECHO_C" >&6
19407 ac_check_lib_save_LIBS=$LIBS
19408 LIBS="-lresolv $LIBS"
19409 cat >conftest.$ac_ext <<_ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19416 /* Override any GCC internal prototype to avoid an error.
19417 Use char because int might match the return type of a GCC
19418 builtin and then its argument prototype would still apply. */
19426 return res_send ();
19431 rm -f conftest.$ac_objext conftest$ac_exeext
19432 if { (ac_try="$ac_link"
19433 case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19437 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_link") 2>conftest.er1
19440 grep -v '^ *+' conftest.er1 >conftest.err
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19444 (exit $ac_status); } && {
19445 test -z "$ac_c_werror_flag" ||
19446 test ! -s conftest.err
19447 } && test -s conftest$ac_exeext &&
19448 $as_test_x conftest$ac_exeext; then
19449 ac_cv_lib_resolv_res_send=yes
19451 echo "$as_me: failed program was
:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19454 ac_cv_lib_resolv_res_send=no
19457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19458 conftest$ac_exeext conftest.$ac_ext
19459 LIBS=$ac_check_lib_save_LIBS
19461 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv_res_send" >&5
19462 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19463 if test $ac_cv_lib_resolv_res_send = yes; then
19466 { echo "$as_me:$LINENO: checking
for __res_send
in -lresolv" >&5
19467 echo $ECHO_N "checking
for __res_send
in -lresolv...
$ECHO_C" >&6; }
19468 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19469 echo $ECHO_N "(cached
) $ECHO_C" >&6
19471 ac_check_lib_save_LIBS=$LIBS
19472 LIBS="-lresolv $LIBS"
19473 cat >conftest.$ac_ext <<_ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19480 /* Override any GCC internal prototype to avoid an error.
19481 Use char because int might match the return type of a GCC
19482 builtin and then its argument prototype would still apply. */
19486 char __res_send ();
19490 return __res_send ();
19495 rm -f conftest.$ac_objext conftest$ac_exeext
19496 if { (ac_try="$ac_link"
19497 case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19501 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_link") 2>conftest.er1
19504 grep -v '^ *+' conftest.er1 >conftest.err
19506 cat conftest.err >&5
19507 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19508 (exit $ac_status); } && {
19509 test -z "$ac_c_werror_flag" ||
19510 test ! -s conftest.err
19511 } && test -s conftest$ac_exeext &&
19512 $as_test_x conftest$ac_exeext; then
19513 ac_cv_lib_resolv___res_send=yes
19515 echo "$as_me: failed program was
:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19518 ac_cv_lib_resolv___res_send=no
19521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19522 conftest$ac_exeext conftest.$ac_ext
19523 LIBS=$ac_check_lib_save_LIBS
19525 { echo "$as_me:$LINENO: result
: $ac_cv_lib_resolv___res_send" >&5
19526 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19527 if test $ac_cv_lib_resolv___res_send = yes; then
19537 if test "$resolv" = yes ; then
19540 cat >>confdefs.h <<\_ACEOF
19541 #define HAVE_LIBRESOLV 1
19547 { echo "$as_me:$LINENO: checking
for hes_getmailhost
" >&5
19548 echo $ECHO_N "checking
for hes_getmailhost...
$ECHO_C" >&6; }
19549 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19550 echo $ECHO_N "(cached
) $ECHO_C" >&6
19552 cat >conftest.$ac_ext <<_ACEOF
19555 cat confdefs.h >>conftest.$ac_ext
19556 cat >>conftest.$ac_ext <<_ACEOF
19557 /* end confdefs.h. */
19558 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19560 #define hes_getmailhost innocuous_hes_getmailhost
19562 /* System header to define __stub macros and hopefully few prototypes,
19563 which can conflict with char hes_getmailhost (); below.
19564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19565 <limits.h> exists even on freestanding compilers. */
19568 # include <limits.h>
19570 # include <assert.h>
19573 #undef hes_getmailhost
19575 /* Override any GCC internal prototype to avoid an error.
19576 Use char because int might match the return type of a GCC
19577 builtin and then its argument prototype would still apply. */
19581 char hes_getmailhost ();
19582 /* The GNU C library defines this for functions which it implements
19583 to always fail with ENOSYS. Some functions are actually named
19584 something starting with __ and the normal name is an alias. */
19585 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19592 return hes_getmailhost ();
19597 rm -f conftest.$ac_objext conftest$ac_exeext
19598 if { (ac_try="$ac_link"
19599 case "(($ac_try" in
19600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19601 *) ac_try_echo=$ac_try;;
19603 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19604 (eval "$ac_link") 2>conftest.er1
19606 grep -v '^ *+' conftest.er1 >conftest.err
19608 cat conftest.err >&5
19609 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19610 (exit $ac_status); } && {
19611 test -z "$ac_c_werror_flag" ||
19612 test ! -s conftest.err
19613 } && test -s conftest$ac_exeext &&
19614 $as_test_x conftest$ac_exeext; then
19615 ac_cv_func_hes_getmailhost=yes
19617 echo "$as_me: failed program was
:" >&5
19618 sed 's/^/| /' conftest.$ac_ext >&5
19620 ac_cv_func_hes_getmailhost=no
19623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19624 conftest$ac_exeext conftest.$ac_ext
19626 { echo "$as_me:$LINENO: result
: $ac_cv_func_hes_getmailhost" >&5
19627 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19628 if test $ac_cv_func_hes_getmailhost = yes; then
19631 { echo "$as_me:$LINENO: checking
for hes_getmailhost
in -lhesiod" >&5
19632 echo $ECHO_N "checking
for hes_getmailhost
in -lhesiod...
$ECHO_C" >&6; }
19633 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19634 echo $ECHO_N "(cached
) $ECHO_C" >&6
19636 ac_check_lib_save_LIBS=$LIBS
19637 LIBS="-lhesiod $RESOLVLIB $LIBS"
19638 cat >conftest.$ac_ext <<_ACEOF
19641 cat confdefs.h >>conftest.$ac_ext
19642 cat >>conftest.$ac_ext <<_ACEOF
19643 /* end confdefs.h. */
19645 /* Override any GCC internal prototype to avoid an error.
19646 Use char because int might match the return type of a GCC
19647 builtin and then its argument prototype would still apply. */
19651 char hes_getmailhost ();
19655 return hes_getmailhost ();
19660 rm -f conftest.$ac_objext conftest$ac_exeext
19661 if { (ac_try="$ac_link"
19662 case "(($ac_try" in
19663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19664 *) ac_try_echo=$ac_try;;
19666 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19667 (eval "$ac_link") 2>conftest.er1
19669 grep -v '^ *+' conftest.er1 >conftest.err
19671 cat conftest.err >&5
19672 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19673 (exit $ac_status); } && {
19674 test -z "$ac_c_werror_flag" ||
19675 test ! -s conftest.err
19676 } && test -s conftest$ac_exeext &&
19677 $as_test_x conftest$ac_exeext; then
19678 ac_cv_lib_hesiod_hes_getmailhost=yes
19680 echo "$as_me: failed program was
:" >&5
19681 sed 's/^/| /' conftest.$ac_ext >&5
19683 ac_cv_lib_hesiod_hes_getmailhost=no
19686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19687 conftest$ac_exeext conftest.$ac_ext
19688 LIBS=$ac_check_lib_save_LIBS
19690 { echo "$as_me:$LINENO: result
: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19691 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19692 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19694 cat >>confdefs.h <<\_ACEOF
19695 #define HAVE_LIBHESIOD 1
19706 # These tell us which Kerberos-related libraries to use.
19707 if test "${with_kerberos+set}" = set; then
19709 { echo "$as_me:$LINENO: checking
for com_err
in -lcom_err" >&5
19710 echo $ECHO_N "checking
for com_err
in -lcom_err...
$ECHO_C" >&6; }
19711 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19712 echo $ECHO_N "(cached
) $ECHO_C" >&6
19714 ac_check_lib_save_LIBS=$LIBS
19715 LIBS="-lcom_err $LIBS"
19716 cat >conftest.$ac_ext <<_ACEOF
19719 cat confdefs.h >>conftest.$ac_ext
19720 cat >>conftest.$ac_ext <<_ACEOF
19721 /* end confdefs.h. */
19723 /* Override any GCC internal prototype to avoid an error.
19724 Use char because int might match the return type of a GCC
19725 builtin and then its argument prototype would still apply. */
19738 rm -f conftest.$ac_objext conftest$ac_exeext
19739 if { (ac_try="$ac_link"
19740 case "(($ac_try" in
19741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19742 *) ac_try_echo=$ac_try;;
19744 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19745 (eval "$ac_link") 2>conftest.er1
19747 grep -v '^ *+' conftest.er1 >conftest.err
19749 cat conftest.err >&5
19750 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19751 (exit $ac_status); } && {
19752 test -z "$ac_c_werror_flag" ||
19753 test ! -s conftest.err
19754 } && test -s conftest$ac_exeext &&
19755 $as_test_x conftest$ac_exeext; then
19756 ac_cv_lib_com_err_com_err=yes
19758 echo "$as_me: failed program was
:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19761 ac_cv_lib_com_err_com_err=no
19764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19765 conftest$ac_exeext conftest.$ac_ext
19766 LIBS=$ac_check_lib_save_LIBS
19768 { echo "$as_me:$LINENO: result
: $ac_cv_lib_com_err_com_err" >&5
19769 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19770 if test $ac_cv_lib_com_err_com_err = yes; then
19771 cat >>confdefs.h <<_ACEOF
19772 #define HAVE_LIBCOM_ERR 1
19775 LIBS="-lcom_err $LIBS"
19780 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lk5crypto" >&5
19781 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lk5crypto...
$ECHO_C" >&6; }
19782 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19783 echo $ECHO_N "(cached
) $ECHO_C" >&6
19785 ac_check_lib_save_LIBS=$LIBS
19786 LIBS="-lk5crypto $LIBS"
19787 cat >conftest.$ac_ext <<_ACEOF
19790 cat confdefs.h >>conftest.$ac_ext
19791 cat >>conftest.$ac_ext <<_ACEOF
19792 /* end confdefs.h. */
19794 /* Override any GCC internal prototype to avoid an error.
19795 Use char because int might match the return type of a GCC
19796 builtin and then its argument prototype would still apply. */
19800 char mit_des_cbc_encrypt ();
19804 return mit_des_cbc_encrypt ();
19809 rm -f conftest.$ac_objext conftest$ac_exeext
19810 if { (ac_try="$ac_link"
19811 case "(($ac_try" in
19812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19813 *) ac_try_echo=$ac_try;;
19815 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19816 (eval "$ac_link") 2>conftest.er1
19818 grep -v '^ *+' conftest.er1 >conftest.err
19820 cat conftest.err >&5
19821 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19822 (exit $ac_status); } && {
19823 test -z "$ac_c_werror_flag" ||
19824 test ! -s conftest.err
19825 } && test -s conftest$ac_exeext &&
19826 $as_test_x conftest$ac_exeext; then
19827 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19829 echo "$as_me: failed program was
:" >&5
19830 sed 's/^/| /' conftest.$ac_ext >&5
19832 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19835 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19836 conftest$ac_exeext conftest.$ac_ext
19837 LIBS=$ac_check_lib_save_LIBS
19839 { echo "$as_me:$LINENO: result
: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19840 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19841 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19842 cat >>confdefs.h <<_ACEOF
19843 #define HAVE_LIBK5CRYPTO 1
19846 LIBS="-lk5crypto $LIBS"
19851 { echo "$as_me:$LINENO: checking
for mit_des_cbc_encrypt
in -lcrypto" >&5
19852 echo $ECHO_N "checking
for mit_des_cbc_encrypt
in -lcrypto...
$ECHO_C" >&6; }
19853 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19854 echo $ECHO_N "(cached
) $ECHO_C" >&6
19856 ac_check_lib_save_LIBS=$LIBS
19857 LIBS="-lcrypto $LIBS"
19858 cat >conftest.$ac_ext <<_ACEOF
19861 cat confdefs.h >>conftest.$ac_ext
19862 cat >>conftest.$ac_ext <<_ACEOF
19863 /* end confdefs.h. */
19865 /* Override any GCC internal prototype to avoid an error.
19866 Use char because int might match the return type of a GCC
19867 builtin and then its argument prototype would still apply. */
19871 char mit_des_cbc_encrypt ();
19875 return mit_des_cbc_encrypt ();
19880 rm -f conftest.$ac_objext conftest$ac_exeext
19881 if { (ac_try="$ac_link"
19882 case "(($ac_try" in
19883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19884 *) ac_try_echo=$ac_try;;
19886 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19887 (eval "$ac_link") 2>conftest.er1
19889 grep -v '^ *+' conftest.er1 >conftest.err
19891 cat conftest.err >&5
19892 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19893 (exit $ac_status); } && {
19894 test -z "$ac_c_werror_flag" ||
19895 test ! -s conftest.err
19896 } && test -s conftest$ac_exeext &&
19897 $as_test_x conftest$ac_exeext; then
19898 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19900 echo "$as_me: failed program was
:" >&5
19901 sed 's/^/| /' conftest.$ac_ext >&5
19903 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19906 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19907 conftest$ac_exeext conftest.$ac_ext
19908 LIBS=$ac_check_lib_save_LIBS
19910 { echo "$as_me:$LINENO: result
: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19911 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19912 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19913 cat >>confdefs.h <<_ACEOF
19914 #define HAVE_LIBCRYPTO 1
19917 LIBS="-lcrypto $LIBS"
19922 { echo "$as_me:$LINENO: checking
for krb5_init_context
in -lkrb5" >&5
19923 echo $ECHO_N "checking
for krb5_init_context
in -lkrb5...
$ECHO_C" >&6; }
19924 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19925 echo $ECHO_N "(cached
) $ECHO_C" >&6
19927 ac_check_lib_save_LIBS=$LIBS
19928 LIBS="-lkrb5 $LIBS"
19929 cat >conftest.$ac_ext <<_ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19936 /* Override any GCC internal prototype to avoid an error.
19937 Use char because int might match the return type of a GCC
19938 builtin and then its argument prototype would still apply. */
19942 char krb5_init_context ();
19946 return krb5_init_context ();
19951 rm -f conftest.$ac_objext conftest$ac_exeext
19952 if { (ac_try="$ac_link"
19953 case "(($ac_try" in
19954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19955 *) ac_try_echo=$ac_try;;
19957 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
19958 (eval "$ac_link") 2>conftest.er1
19960 grep -v '^ *+' conftest.er1 >conftest.err
19962 cat conftest.err >&5
19963 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
19964 (exit $ac_status); } && {
19965 test -z "$ac_c_werror_flag" ||
19966 test ! -s conftest.err
19967 } && test -s conftest$ac_exeext &&
19968 $as_test_x conftest$ac_exeext; then
19969 ac_cv_lib_krb5_krb5_init_context=yes
19971 echo "$as_me: failed program was
:" >&5
19972 sed 's/^/| /' conftest.$ac_ext >&5
19974 ac_cv_lib_krb5_krb5_init_context=no
19977 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19978 conftest$ac_exeext conftest.$ac_ext
19979 LIBS=$ac_check_lib_save_LIBS
19981 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb5_krb5_init_context" >&5
19982 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19983 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19984 cat >>confdefs.h <<_ACEOF
19985 #define HAVE_LIBKRB5 1
19988 LIBS="-lkrb5 $LIBS"
19992 if test "${with_kerberos5+set}" != set; then
19994 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes425" >&5
19995 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes425...
$ECHO_C" >&6; }
19996 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19997 echo $ECHO_N "(cached
) $ECHO_C" >&6
19999 ac_check_lib_save_LIBS=$LIBS
20000 LIBS="-ldes425 $LIBS"
20001 cat >conftest.$ac_ext <<_ACEOF
20004 cat confdefs.h >>conftest.$ac_ext
20005 cat >>conftest.$ac_ext <<_ACEOF
20006 /* end confdefs.h. */
20008 /* Override any GCC internal prototype to avoid an error.
20009 Use char because int might match the return type of a GCC
20010 builtin and then its argument prototype would still apply. */
20014 char des_cbc_encrypt ();
20018 return des_cbc_encrypt ();
20023 rm -f conftest.$ac_objext conftest$ac_exeext
20024 if { (ac_try="$ac_link"
20025 case "(($ac_try" in
20026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20027 *) ac_try_echo=$ac_try;;
20029 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20030 (eval "$ac_link") 2>conftest.er1
20032 grep -v '^ *+' conftest.er1 >conftest.err
20034 cat conftest.err >&5
20035 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20036 (exit $ac_status); } && {
20037 test -z "$ac_c_werror_flag" ||
20038 test ! -s conftest.err
20039 } && test -s conftest$ac_exeext &&
20040 $as_test_x conftest$ac_exeext; then
20041 ac_cv_lib_des425_des_cbc_encrypt=yes
20043 echo "$as_me: failed program was
:" >&5
20044 sed 's/^/| /' conftest.$ac_ext >&5
20046 ac_cv_lib_des425_des_cbc_encrypt=no
20049 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20050 conftest$ac_exeext conftest.$ac_ext
20051 LIBS=$ac_check_lib_save_LIBS
20053 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20054 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20055 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20056 cat >>confdefs.h <<_ACEOF
20057 #define HAVE_LIBDES425 1
20060 LIBS="-ldes425 $LIBS"
20064 { echo "$as_me:$LINENO: checking
for des_cbc_encrypt
in -ldes" >&5
20065 echo $ECHO_N "checking
for des_cbc_encrypt
in -ldes...
$ECHO_C" >&6; }
20066 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20067 echo $ECHO_N "(cached
) $ECHO_C" >&6
20069 ac_check_lib_save_LIBS=$LIBS
20071 cat >conftest.$ac_ext <<_ACEOF
20074 cat confdefs.h >>conftest.$ac_ext
20075 cat >>conftest.$ac_ext <<_ACEOF
20076 /* end confdefs.h. */
20078 /* Override any GCC internal prototype to avoid an error.
20079 Use char because int might match the return type of a GCC
20080 builtin and then its argument prototype would still apply. */
20084 char des_cbc_encrypt ();
20088 return des_cbc_encrypt ();
20093 rm -f conftest.$ac_objext conftest$ac_exeext
20094 if { (ac_try="$ac_link"
20095 case "(($ac_try" in
20096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20097 *) ac_try_echo=$ac_try;;
20099 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20100 (eval "$ac_link") 2>conftest.er1
20102 grep -v '^ *+' conftest.er1 >conftest.err
20104 cat conftest.err >&5
20105 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20106 (exit $ac_status); } && {
20107 test -z "$ac_c_werror_flag" ||
20108 test ! -s conftest.err
20109 } && test -s conftest$ac_exeext &&
20110 $as_test_x conftest$ac_exeext; then
20111 ac_cv_lib_des_des_cbc_encrypt=yes
20113 echo "$as_me: failed program was
:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20116 ac_cv_lib_des_des_cbc_encrypt=no
20119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20120 conftest$ac_exeext conftest.$ac_ext
20121 LIBS=$ac_check_lib_save_LIBS
20123 { echo "$as_me:$LINENO: result
: $ac_cv_lib_des_des_cbc_encrypt" >&5
20124 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20125 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20126 cat >>confdefs.h <<_ACEOF
20127 #define HAVE_LIBDES 1
20137 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb4" >&5
20138 echo $ECHO_N "checking
for krb_get_cred
in -lkrb4...
$ECHO_C" >&6; }
20139 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20140 echo $ECHO_N "(cached
) $ECHO_C" >&6
20142 ac_check_lib_save_LIBS=$LIBS
20143 LIBS="-lkrb4 $LIBS"
20144 cat >conftest.$ac_ext <<_ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20151 /* Override any GCC internal prototype to avoid an error.
20152 Use char because int might match the return type of a GCC
20153 builtin and then its argument prototype would still apply. */
20157 char krb_get_cred ();
20161 return krb_get_cred ();
20166 rm -f conftest.$ac_objext conftest$ac_exeext
20167 if { (ac_try="$ac_link"
20168 case "(($ac_try" in
20169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20170 *) ac_try_echo=$ac_try;;
20172 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20173 (eval "$ac_link") 2>conftest.er1
20175 grep -v '^ *+' conftest.er1 >conftest.err
20177 cat conftest.err >&5
20178 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20179 (exit $ac_status); } && {
20180 test -z "$ac_c_werror_flag" ||
20181 test ! -s conftest.err
20182 } && test -s conftest$ac_exeext &&
20183 $as_test_x conftest$ac_exeext; then
20184 ac_cv_lib_krb4_krb_get_cred=yes
20186 echo "$as_me: failed program was
:" >&5
20187 sed 's/^/| /' conftest.$ac_ext >&5
20189 ac_cv_lib_krb4_krb_get_cred=no
20192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20193 conftest$ac_exeext conftest.$ac_ext
20194 LIBS=$ac_check_lib_save_LIBS
20196 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb4_krb_get_cred" >&5
20197 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20198 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20199 cat >>confdefs.h <<_ACEOF
20200 #define HAVE_LIBKRB4 1
20203 LIBS="-lkrb4 $LIBS"
20207 { echo "$as_me:$LINENO: checking
for krb_get_cred
in -lkrb" >&5
20208 echo $ECHO_N "checking
for krb_get_cred
in -lkrb...
$ECHO_C" >&6; }
20209 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20210 echo $ECHO_N "(cached
) $ECHO_C" >&6
20212 ac_check_lib_save_LIBS=$LIBS
20214 cat >conftest.$ac_ext <<_ACEOF
20217 cat confdefs.h >>conftest.$ac_ext
20218 cat >>conftest.$ac_ext <<_ACEOF
20219 /* end confdefs.h. */
20221 /* Override any GCC internal prototype to avoid an error.
20222 Use char because int might match the return type of a GCC
20223 builtin and then its argument prototype would still apply. */
20227 char krb_get_cred ();
20231 return krb_get_cred ();
20236 rm -f conftest.$ac_objext conftest$ac_exeext
20237 if { (ac_try="$ac_link"
20238 case "(($ac_try" in
20239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20240 *) ac_try_echo=$ac_try;;
20242 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20243 (eval "$ac_link") 2>conftest.er1
20245 grep -v '^ *+' conftest.er1 >conftest.err
20247 cat conftest.err >&5
20248 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20249 (exit $ac_status); } && {
20250 test -z "$ac_c_werror_flag" ||
20251 test ! -s conftest.err
20252 } && test -s conftest$ac_exeext &&
20253 $as_test_x conftest$ac_exeext; then
20254 ac_cv_lib_krb_krb_get_cred=yes
20256 echo "$as_me: failed program was
:" >&5
20257 sed 's/^/| /' conftest.$ac_ext >&5
20259 ac_cv_lib_krb_krb_get_cred=no
20262 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20263 conftest$ac_exeext conftest.$ac_ext
20264 LIBS=$ac_check_lib_save_LIBS
20266 { echo "$as_me:$LINENO: result
: $ac_cv_lib_krb_krb_get_cred" >&5
20267 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20268 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20269 cat >>confdefs.h <<_ACEOF
20270 #define HAVE_LIBKRB 1
20281 if test "${with_kerberos5+set}" = set; then
20283 for ac_header in krb5.h
20285 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20286 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20287 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20288 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20289 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20290 echo $ECHO_N "(cached
) $ECHO_C" >&6
20292 ac_res=`eval echo '${'$as_ac_Header'}'`
20293 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20294 echo "${ECHO_T}$ac_res" >&6; }
20296 # Is the header compilable?
20297 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20298 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20299 cat >conftest.$ac_ext <<_ACEOF
20302 cat confdefs.h >>conftest.$ac_ext
20303 cat >>conftest.$ac_ext <<_ACEOF
20304 /* end confdefs.h. */
20305 $ac_includes_default
20306 #include <$ac_header>
20308 rm -f conftest.$ac_objext
20309 if { (ac_try="$ac_compile"
20310 case "(($ac_try" in
20311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20312 *) ac_try_echo=$ac_try;;
20314 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20315 (eval "$ac_compile") 2>conftest.er1
20317 grep -v '^ *+' conftest.er1 >conftest.err
20319 cat conftest.err >&5
20320 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20321 (exit $ac_status); } && {
20322 test -z "$ac_c_werror_flag" ||
20323 test ! -s conftest.err
20324 } && test -s conftest.$ac_objext; then
20325 ac_header_compiler=yes
20327 echo "$as_me: failed program was
:" >&5
20328 sed 's/^/| /' conftest.$ac_ext >&5
20330 ac_header_compiler=no
20333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20334 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20335 echo "${ECHO_T}$ac_header_compiler" >&6; }
20337 # Is the header present?
20338 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20339 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20340 cat >conftest.$ac_ext <<_ACEOF
20343 cat confdefs.h >>conftest.$ac_ext
20344 cat >>conftest.$ac_ext <<_ACEOF
20345 /* end confdefs.h. */
20346 #include <$ac_header>
20348 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20349 case "(($ac_try" in
20350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20351 *) ac_try_echo=$ac_try;;
20353 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20354 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20356 grep -v '^ *+' conftest.er1 >conftest.err
20358 cat conftest.err >&5
20359 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20360 (exit $ac_status); } >/dev/null && {
20361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20362 test ! -s conftest.err
20364 ac_header_preproc=yes
20366 echo "$as_me: failed program was
:" >&5
20367 sed 's/^/| /' conftest.$ac_ext >&5
20369 ac_header_preproc=no
20372 rm -f conftest.err conftest.$ac_ext
20373 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20374 echo "${ECHO_T}$ac_header_preproc" >&6; }
20376 # So? What about this header?
20377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20379 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20380 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20381 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20383 ac_header_preproc=yes
20386 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20387 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20388 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20389 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20390 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20391 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20392 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20393 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20394 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20396 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20397 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20401 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20402 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20403 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20404 echo $ECHO_N "(cached
) $ECHO_C" >&6
20406 eval "$as_ac_Header=\
$ac_header_preproc"
20408 ac_res=`eval echo '${'$as_ac_Header'}'`
20409 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20410 echo "${ECHO_T}$ac_res" >&6; }
20413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20414 cat >>confdefs.h <<_ACEOF
20415 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20424 for ac_header in des.h
20426 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20427 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20428 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20429 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20430 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20431 echo $ECHO_N "(cached
) $ECHO_C" >&6
20433 ac_res=`eval echo '${'$as_ac_Header'}'`
20434 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20435 echo "${ECHO_T}$ac_res" >&6; }
20437 # Is the header compilable?
20438 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20439 echo $ECHO_N "checking
$ac_header usability...
$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 $ac_includes_default
20447 #include <$ac_header>
20449 rm -f conftest.$ac_objext
20450 if { (ac_try="$ac_compile"
20451 case "(($ac_try" in
20452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20453 *) ac_try_echo=$ac_try;;
20455 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20456 (eval "$ac_compile") 2>conftest.er1
20458 grep -v '^ *+' conftest.er1 >conftest.err
20460 cat conftest.err >&5
20461 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20462 (exit $ac_status); } && {
20463 test -z "$ac_c_werror_flag" ||
20464 test ! -s conftest.err
20465 } && test -s conftest.$ac_objext; then
20466 ac_header_compiler=yes
20468 echo "$as_me: failed program was
:" >&5
20469 sed 's/^/| /' conftest.$ac_ext >&5
20471 ac_header_compiler=no
20474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20475 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20476 echo "${ECHO_T}$ac_header_compiler" >&6; }
20478 # Is the header present?
20479 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20480 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20481 cat >conftest.$ac_ext <<_ACEOF
20484 cat confdefs.h >>conftest.$ac_ext
20485 cat >>conftest.$ac_ext <<_ACEOF
20486 /* end confdefs.h. */
20487 #include <$ac_header>
20489 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20490 case "(($ac_try" in
20491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492 *) ac_try_echo=$ac_try;;
20494 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20495 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20497 grep -v '^ *+' conftest.er1 >conftest.err
20499 cat conftest.err >&5
20500 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20501 (exit $ac_status); } >/dev/null && {
20502 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20503 test ! -s conftest.err
20505 ac_header_preproc=yes
20507 echo "$as_me: failed program was
:" >&5
20508 sed 's/^/| /' conftest.$ac_ext >&5
20510 ac_header_preproc=no
20513 rm -f conftest.err conftest.$ac_ext
20514 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20515 echo "${ECHO_T}$ac_header_preproc" >&6; }
20517 # So? What about this header?
20518 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20520 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20521 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20522 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20523 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20524 ac_header_preproc=yes
20527 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20528 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20529 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20530 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20531 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20532 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20533 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20534 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20535 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20536 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20537 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20538 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20542 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20543 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20544 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20545 echo $ECHO_N "(cached
) $ECHO_C" >&6
20547 eval "$as_ac_Header=\
$ac_header_preproc"
20549 ac_res=`eval echo '${'$as_ac_Header'}'`
20550 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20551 echo "${ECHO_T}$ac_res" >&6; }
20554 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20555 cat >>confdefs.h <<_ACEOF
20556 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20561 for ac_header in kerberosIV/des.h
20563 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20564 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20565 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20566 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20567 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20568 echo $ECHO_N "(cached
) $ECHO_C" >&6
20570 ac_res=`eval echo '${'$as_ac_Header'}'`
20571 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20572 echo "${ECHO_T}$ac_res" >&6; }
20574 # Is the header compilable?
20575 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20576 echo $ECHO_N "checking
$ac_header usability...
$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 $ac_includes_default
20584 #include <$ac_header>
20586 rm -f conftest.$ac_objext
20587 if { (ac_try="$ac_compile"
20588 case "(($ac_try" in
20589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20590 *) ac_try_echo=$ac_try;;
20592 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20593 (eval "$ac_compile") 2>conftest.er1
20595 grep -v '^ *+' conftest.er1 >conftest.err
20597 cat conftest.err >&5
20598 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20599 (exit $ac_status); } && {
20600 test -z "$ac_c_werror_flag" ||
20601 test ! -s conftest.err
20602 } && test -s conftest.$ac_objext; then
20603 ac_header_compiler=yes
20605 echo "$as_me: failed program was
:" >&5
20606 sed 's/^/| /' conftest.$ac_ext >&5
20608 ac_header_compiler=no
20611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20612 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20613 echo "${ECHO_T}$ac_header_compiler" >&6; }
20615 # Is the header present?
20616 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20617 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20618 cat >conftest.$ac_ext <<_ACEOF
20621 cat confdefs.h >>conftest.$ac_ext
20622 cat >>conftest.$ac_ext <<_ACEOF
20623 /* end confdefs.h. */
20624 #include <$ac_header>
20626 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20627 case "(($ac_try" in
20628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20629 *) ac_try_echo=$ac_try;;
20631 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20632 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20634 grep -v '^ *+' conftest.er1 >conftest.err
20636 cat conftest.err >&5
20637 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20638 (exit $ac_status); } >/dev/null && {
20639 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20640 test ! -s conftest.err
20642 ac_header_preproc=yes
20644 echo "$as_me: failed program was
:" >&5
20645 sed 's/^/| /' conftest.$ac_ext >&5
20647 ac_header_preproc=no
20650 rm -f conftest.err conftest.$ac_ext
20651 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20652 echo "${ECHO_T}$ac_header_preproc" >&6; }
20654 # So? What about this header?
20655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20657 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20658 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20659 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20660 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20661 ac_header_preproc=yes
20664 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20665 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20666 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20667 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20668 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20669 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20670 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20671 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20672 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20673 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20674 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20675 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20679 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20680 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20681 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20682 echo $ECHO_N "(cached
) $ECHO_C" >&6
20684 eval "$as_ac_Header=\
$ac_header_preproc"
20686 ac_res=`eval echo '${'$as_ac_Header'}'`
20687 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20688 echo "${ECHO_T}$ac_res" >&6; }
20691 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20692 cat >>confdefs.h <<_ACEOF
20693 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20698 for ac_header in kerberos/des.h
20700 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20701 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20702 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20703 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20704 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20705 echo $ECHO_N "(cached
) $ECHO_C" >&6
20707 ac_res=`eval echo '${'$as_ac_Header'}'`
20708 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20709 echo "${ECHO_T}$ac_res" >&6; }
20711 # Is the header compilable?
20712 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20713 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20714 cat >conftest.$ac_ext <<_ACEOF
20717 cat confdefs.h >>conftest.$ac_ext
20718 cat >>conftest.$ac_ext <<_ACEOF
20719 /* end confdefs.h. */
20720 $ac_includes_default
20721 #include <$ac_header>
20723 rm -f conftest.$ac_objext
20724 if { (ac_try="$ac_compile"
20725 case "(($ac_try" in
20726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20727 *) ac_try_echo=$ac_try;;
20729 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20730 (eval "$ac_compile") 2>conftest.er1
20732 grep -v '^ *+' conftest.er1 >conftest.err
20734 cat conftest.err >&5
20735 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20736 (exit $ac_status); } && {
20737 test -z "$ac_c_werror_flag" ||
20738 test ! -s conftest.err
20739 } && test -s conftest.$ac_objext; then
20740 ac_header_compiler=yes
20742 echo "$as_me: failed program was
:" >&5
20743 sed 's/^/| /' conftest.$ac_ext >&5
20745 ac_header_compiler=no
20748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20749 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20750 echo "${ECHO_T}$ac_header_compiler" >&6; }
20752 # Is the header present?
20753 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20754 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20755 cat >conftest.$ac_ext <<_ACEOF
20758 cat confdefs.h >>conftest.$ac_ext
20759 cat >>conftest.$ac_ext <<_ACEOF
20760 /* end confdefs.h. */
20761 #include <$ac_header>
20763 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20764 case "(($ac_try" in
20765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20766 *) ac_try_echo=$ac_try;;
20768 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20769 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20771 grep -v '^ *+' conftest.er1 >conftest.err
20773 cat conftest.err >&5
20774 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20775 (exit $ac_status); } >/dev/null && {
20776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20777 test ! -s conftest.err
20779 ac_header_preproc=yes
20781 echo "$as_me: failed program was
:" >&5
20782 sed 's/^/| /' conftest.$ac_ext >&5
20784 ac_header_preproc=no
20787 rm -f conftest.err conftest.$ac_ext
20788 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20789 echo "${ECHO_T}$ac_header_preproc" >&6; }
20791 # So? What about this header?
20792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20794 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20795 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20796 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20797 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20798 ac_header_preproc=yes
20801 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20802 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20803 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20804 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20805 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20806 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20807 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20808 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20809 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20810 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20811 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20812 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20816 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20817 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20818 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20819 echo $ECHO_N "(cached
) $ECHO_C" >&6
20821 eval "$as_ac_Header=\
$ac_header_preproc"
20823 ac_res=`eval echo '${'$as_ac_Header'}'`
20824 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20825 echo "${ECHO_T}$ac_res" >&6; }
20828 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20829 cat >>confdefs.h <<_ACEOF
20830 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20846 for ac_header in krb.h
20848 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20849 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20850 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20851 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20852 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20853 echo $ECHO_N "(cached
) $ECHO_C" >&6
20855 ac_res=`eval echo '${'$as_ac_Header'}'`
20856 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20857 echo "${ECHO_T}$ac_res" >&6; }
20859 # Is the header compilable?
20860 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20861 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20862 cat >conftest.$ac_ext <<_ACEOF
20865 cat confdefs.h >>conftest.$ac_ext
20866 cat >>conftest.$ac_ext <<_ACEOF
20867 /* end confdefs.h. */
20868 $ac_includes_default
20869 #include <$ac_header>
20871 rm -f conftest.$ac_objext
20872 if { (ac_try="$ac_compile"
20873 case "(($ac_try" in
20874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20875 *) ac_try_echo=$ac_try;;
20877 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20878 (eval "$ac_compile") 2>conftest.er1
20880 grep -v '^ *+' conftest.er1 >conftest.err
20882 cat conftest.err >&5
20883 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20884 (exit $ac_status); } && {
20885 test -z "$ac_c_werror_flag" ||
20886 test ! -s conftest.err
20887 } && test -s conftest.$ac_objext; then
20888 ac_header_compiler=yes
20890 echo "$as_me: failed program was
:" >&5
20891 sed 's/^/| /' conftest.$ac_ext >&5
20893 ac_header_compiler=no
20896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20897 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
20898 echo "${ECHO_T}$ac_header_compiler" >&6; }
20900 # Is the header present?
20901 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
20902 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
20903 cat >conftest.$ac_ext <<_ACEOF
20906 cat confdefs.h >>conftest.$ac_ext
20907 cat >>conftest.$ac_ext <<_ACEOF
20908 /* end confdefs.h. */
20909 #include <$ac_header>
20911 if { (ac_try="$ac_cpp conftest.
$ac_ext"
20912 case "(($ac_try" in
20913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20914 *) ac_try_echo=$ac_try;;
20916 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
20917 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
20919 grep -v '^ *+' conftest.er1 >conftest.err
20921 cat conftest.err >&5
20922 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
20923 (exit $ac_status); } >/dev/null && {
20924 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20925 test ! -s conftest.err
20927 ac_header_preproc=yes
20929 echo "$as_me: failed program was
:" >&5
20930 sed 's/^/| /' conftest.$ac_ext >&5
20932 ac_header_preproc=no
20935 rm -f conftest.err conftest.$ac_ext
20936 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
20937 echo "${ECHO_T}$ac_header_preproc" >&6; }
20939 # So? What about this header?
20940 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20942 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
20943 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
20944 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
20945 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
20946 ac_header_preproc=yes
20949 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
20950 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
20951 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
20952 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
20953 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
20954 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
20955 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
20956 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
20957 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
20958 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
20959 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
20960 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
20964 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20965 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20966 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20967 echo $ECHO_N "(cached
) $ECHO_C" >&6
20969 eval "$as_ac_Header=\
$ac_header_preproc"
20971 ac_res=`eval echo '${'$as_ac_Header'}'`
20972 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20973 echo "${ECHO_T}$ac_res" >&6; }
20976 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20977 cat >>confdefs.h <<_ACEOF
20978 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
20983 for ac_header in kerberosIV/krb.h
20985 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
20986 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20987 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
20988 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
20989 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
20990 echo $ECHO_N "(cached
) $ECHO_C" >&6
20992 ac_res=`eval echo '${'$as_ac_Header'}'`
20993 { echo "$as_me:$LINENO: result
: $ac_res" >&5
20994 echo "${ECHO_T}$ac_res" >&6; }
20996 # Is the header compilable?
20997 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
20998 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
20999 cat >conftest.$ac_ext <<_ACEOF
21002 cat confdefs.h >>conftest.$ac_ext
21003 cat >>conftest.$ac_ext <<_ACEOF
21004 /* end confdefs.h. */
21005 $ac_includes_default
21006 #include <$ac_header>
21008 rm -f conftest.$ac_objext
21009 if { (ac_try="$ac_compile"
21010 case "(($ac_try" in
21011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21012 *) ac_try_echo=$ac_try;;
21014 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21015 (eval "$ac_compile") 2>conftest.er1
21017 grep -v '^ *+' conftest.er1 >conftest.err
21019 cat conftest.err >&5
21020 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21021 (exit $ac_status); } && {
21022 test -z "$ac_c_werror_flag" ||
21023 test ! -s conftest.err
21024 } && test -s conftest.$ac_objext; then
21025 ac_header_compiler=yes
21027 echo "$as_me: failed program was
:" >&5
21028 sed 's/^/| /' conftest.$ac_ext >&5
21030 ac_header_compiler=no
21033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21034 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21035 echo "${ECHO_T}$ac_header_compiler" >&6; }
21037 # Is the header present?
21038 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21039 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21040 cat >conftest.$ac_ext <<_ACEOF
21043 cat confdefs.h >>conftest.$ac_ext
21044 cat >>conftest.$ac_ext <<_ACEOF
21045 /* end confdefs.h. */
21046 #include <$ac_header>
21048 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21053 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21056 grep -v '^ *+' conftest.er1 >conftest.err
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21060 (exit $ac_status); } >/dev/null && {
21061 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21064 ac_header_preproc=yes
21066 echo "$as_me: failed program was
:" >&5
21067 sed 's/^/| /' conftest.$ac_ext >&5
21069 ac_header_preproc=no
21072 rm -f conftest.err conftest.$ac_ext
21073 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21074 echo "${ECHO_T}$ac_header_preproc" >&6; }
21076 # So? What about this header?
21077 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21079 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21080 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21081 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21082 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21083 ac_header_preproc=yes
21086 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21087 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21088 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21089 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21090 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21091 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21092 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21093 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21094 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21095 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21096 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21097 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21101 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21102 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21103 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21104 echo $ECHO_N "(cached
) $ECHO_C" >&6
21106 eval "$as_ac_Header=\
$ac_header_preproc"
21108 ac_res=`eval echo '${'$as_ac_Header'}'`
21109 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21110 echo "${ECHO_T}$ac_res" >&6; }
21113 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21114 cat >>confdefs.h <<_ACEOF
21115 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21120 for ac_header in kerberos/krb.h
21122 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21123 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21124 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21125 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21126 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21127 echo $ECHO_N "(cached
) $ECHO_C" >&6
21129 ac_res=`eval echo '${'$as_ac_Header'}'`
21130 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21131 echo "${ECHO_T}$ac_res" >&6; }
21133 # Is the header compilable?
21134 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21135 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21136 cat >conftest.$ac_ext <<_ACEOF
21139 cat confdefs.h >>conftest.$ac_ext
21140 cat >>conftest.$ac_ext <<_ACEOF
21141 /* end confdefs.h. */
21142 $ac_includes_default
21143 #include <$ac_header>
21145 rm -f conftest.$ac_objext
21146 if { (ac_try="$ac_compile"
21147 case "(($ac_try" in
21148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21149 *) ac_try_echo=$ac_try;;
21151 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21152 (eval "$ac_compile") 2>conftest.er1
21154 grep -v '^ *+' conftest.er1 >conftest.err
21156 cat conftest.err >&5
21157 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21158 (exit $ac_status); } && {
21159 test -z "$ac_c_werror_flag" ||
21160 test ! -s conftest.err
21161 } && test -s conftest.$ac_objext; then
21162 ac_header_compiler=yes
21164 echo "$as_me: failed program was
:" >&5
21165 sed 's/^/| /' conftest.$ac_ext >&5
21167 ac_header_compiler=no
21170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21171 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21172 echo "${ECHO_T}$ac_header_compiler" >&6; }
21174 # Is the header present?
21175 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21176 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21177 cat >conftest.$ac_ext <<_ACEOF
21180 cat confdefs.h >>conftest.$ac_ext
21181 cat >>conftest.$ac_ext <<_ACEOF
21182 /* end confdefs.h. */
21183 #include <$ac_header>
21185 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21186 case "(($ac_try" in
21187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21188 *) ac_try_echo=$ac_try;;
21190 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21191 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21193 grep -v '^ *+' conftest.er1 >conftest.err
21195 cat conftest.err >&5
21196 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21197 (exit $ac_status); } >/dev/null && {
21198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21199 test ! -s conftest.err
21201 ac_header_preproc=yes
21203 echo "$as_me: failed program was
:" >&5
21204 sed 's/^/| /' conftest.$ac_ext >&5
21206 ac_header_preproc=no
21209 rm -f conftest.err conftest.$ac_ext
21210 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21211 echo "${ECHO_T}$ac_header_preproc" >&6; }
21213 # So? What about this header?
21214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21216 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21217 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21218 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21219 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21220 ac_header_preproc=yes
21223 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21224 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21225 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21226 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21227 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21228 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21229 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21230 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21231 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21232 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21233 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21234 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21238 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21239 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21240 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21241 echo $ECHO_N "(cached
) $ECHO_C" >&6
21243 eval "$as_ac_Header=\
$ac_header_preproc"
21245 ac_res=`eval echo '${'$as_ac_Header'}'`
21246 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21247 echo "${ECHO_T}$ac_res" >&6; }
21250 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21251 cat >>confdefs.h <<_ACEOF
21252 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21269 for ac_header in com_err.h
21271 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
21272 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21273 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21274 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21275 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21276 echo $ECHO_N "(cached
) $ECHO_C" >&6
21278 ac_res=`eval echo '${'$as_ac_Header'}'`
21279 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21280 echo "${ECHO_T}$ac_res" >&6; }
21282 # Is the header compilable?
21283 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
21284 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
21285 cat >conftest.$ac_ext <<_ACEOF
21288 cat confdefs.h >>conftest.$ac_ext
21289 cat >>conftest.$ac_ext <<_ACEOF
21290 /* end confdefs.h. */
21291 $ac_includes_default
21292 #include <$ac_header>
21294 rm -f conftest.$ac_objext
21295 if { (ac_try="$ac_compile"
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_compile") 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); } && {
21308 test -z "$ac_c_werror_flag" ||
21309 test ! -s conftest.err
21310 } && test -s conftest.$ac_objext; then
21311 ac_header_compiler=yes
21313 echo "$as_me: failed program was
:" >&5
21314 sed 's/^/| /' conftest.$ac_ext >&5
21316 ac_header_compiler=no
21319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21320 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21321 echo "${ECHO_T}$ac_header_compiler" >&6; }
21323 # Is the header present?
21324 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
21325 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
21326 cat >conftest.$ac_ext <<_ACEOF
21329 cat confdefs.h >>conftest.$ac_ext
21330 cat >>conftest.$ac_ext <<_ACEOF
21331 /* end confdefs.h. */
21332 #include <$ac_header>
21334 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21335 case "(($ac_try" in
21336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21337 *) ac_try_echo=$ac_try;;
21339 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21340 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21342 grep -v '^ *+' conftest.er1 >conftest.err
21344 cat conftest.err >&5
21345 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21346 (exit $ac_status); } >/dev/null && {
21347 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21348 test ! -s conftest.err
21350 ac_header_preproc=yes
21352 echo "$as_me: failed program was
:" >&5
21353 sed 's/^/| /' conftest.$ac_ext >&5
21355 ac_header_preproc=no
21358 rm -f conftest.err conftest.$ac_ext
21359 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21360 echo "${ECHO_T}$ac_header_preproc" >&6; }
21362 # So? What about this header?
21363 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21365 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
21366 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21367 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
21368 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
21369 ac_header_preproc=yes
21372 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
21373 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
21374 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
21375 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
21376 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
21377 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
21378 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
21379 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
21380 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
21381 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
21382 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
21383 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
21387 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
21388 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
21389 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
21390 echo $ECHO_N "(cached
) $ECHO_C" >&6
21392 eval "$as_ac_Header=\
$ac_header_preproc"
21394 ac_res=`eval echo '${'$as_ac_Header'}'`
21395 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21396 echo "${ECHO_T}$ac_res" >&6; }
21399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21400 cat >>confdefs.h <<_ACEOF
21401 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
21410 # Solaris requires -lintl if you want strerror (which calls dgettext)
21411 # to return localized messages.
21413 { echo "$as_me:$LINENO: checking
for dgettext
in -lintl" >&5
21414 echo $ECHO_N "checking
for dgettext
in -lintl...
$ECHO_C" >&6; }
21415 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21416 echo $ECHO_N "(cached
) $ECHO_C" >&6
21418 ac_check_lib_save_LIBS=$LIBS
21419 LIBS="-lintl $LIBS"
21420 cat >conftest.$ac_ext <<_ACEOF
21423 cat confdefs.h >>conftest.$ac_ext
21424 cat >>conftest.$ac_ext <<_ACEOF
21425 /* end confdefs.h. */
21427 /* Override any GCC internal prototype to avoid an error.
21428 Use char because int might match the return type of a GCC
21429 builtin and then its argument prototype would still apply. */
21437 return dgettext ();
21442 rm -f conftest.$ac_objext conftest$ac_exeext
21443 if { (ac_try="$ac_link"
21444 case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21448 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21449 (eval "$ac_link") 2>conftest.er1
21451 grep -v '^ *+' conftest.er1 >conftest.err
21453 cat conftest.err >&5
21454 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21455 (exit $ac_status); } && {
21456 test -z "$ac_c_werror_flag" ||
21457 test ! -s conftest.err
21458 } && test -s conftest$ac_exeext &&
21459 $as_test_x conftest$ac_exeext; then
21460 ac_cv_lib_intl_dgettext=yes
21462 echo "$as_me: failed program was
:" >&5
21463 sed 's/^/| /' conftest.$ac_ext >&5
21465 ac_cv_lib_intl_dgettext=no
21468 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21469 conftest$ac_exeext conftest.$ac_ext
21470 LIBS=$ac_check_lib_save_LIBS
21472 { echo "$as_me:$LINENO: result
: $ac_cv_lib_intl_dgettext" >&5
21473 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21474 if test $ac_cv_lib_intl_dgettext = yes; then
21475 cat >>confdefs.h <<_ACEOF
21476 #define HAVE_LIBINTL 1
21479 LIBS="-lintl $LIBS"
21484 { echo "$as_me:$LINENO: checking whether localtime caches TZ
" >&5
21485 echo $ECHO_N "checking whether localtime caches TZ...
$ECHO_C" >&6; }
21486 if test "${emacs_cv_localtime_cache+set}" = set; then
21487 echo $ECHO_N "(cached
) $ECHO_C" >&6
21489 if test x$ac_cv_func_tzset = xyes; then
21490 if test "$cross_compiling" = yes; then
21491 # If we have tzset, assume the worst when cross-compiling.
21492 emacs_cv_localtime_cache=yes
21494 cat >conftest.$ac_ext <<_ACEOF
21497 cat confdefs.h >>conftest.$ac_ext
21498 cat >>conftest.$ac_ext <<_ACEOF
21499 /* end confdefs.h. */
21501 extern char **environ;
21505 for (to = from = environ; (*to = *from); from++)
21506 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21509 char TZ_GMT0[] = "TZ
=GMT0
";
21510 char TZ_PST8[] = "TZ
=PST8
";
21513 time_t now = time ((time_t *) 0);
21514 int hour_GMT0, hour_unset;
21515 if (putenv (TZ_GMT0) != 0)
21517 hour_GMT0 = localtime (&now)->tm_hour;
21519 hour_unset = localtime (&now)->tm_hour;
21520 if (putenv (TZ_PST8) != 0)
21522 if (localtime (&now)->tm_hour == hour_GMT0)
21525 if (localtime (&now)->tm_hour != hour_unset)
21530 rm -f conftest$ac_exeext
21531 if { (ac_try="$ac_link"
21532 case "(($ac_try" in
21533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21534 *) ac_try_echo=$ac_try;;
21536 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21537 (eval "$ac_link") 2>&5
21539 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21540 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21541 { (case "(($ac_try" in
21542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21543 *) ac_try_echo=$ac_try;;
21545 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21546 (eval "$ac_try") 2>&5
21548 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21549 (exit $ac_status); }; }; then
21550 emacs_cv_localtime_cache=no
21552 echo "$as_me: program exited with status
$ac_status" >&5
21553 echo "$as_me: failed program was
:" >&5
21554 sed 's/^/| /' conftest.$ac_ext >&5
21556 ( exit $ac_status )
21557 emacs_cv_localtime_cache=yes
21559 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21564 # If we lack tzset, report that localtime does not cache TZ,
21565 # since we can't invalidate the cache if we don't have tzset.
21566 emacs_cv_localtime_cache=no
21569 { echo "$as_me:$LINENO: result
: $emacs_cv_localtime_cache" >&5
21570 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21571 if test $emacs_cv_localtime_cache = yes; then
21573 cat >>confdefs.h <<\_ACEOF
21574 #define LOCALTIME_CACHE 1
21579 if test "x
$HAVE_TIMEVAL" = xyes; then
21581 for ac_func in gettimeofday
21583 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
21584 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
21585 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
21586 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
21587 echo $ECHO_N "(cached
) $ECHO_C" >&6
21589 cat >conftest.$ac_ext <<_ACEOF
21592 cat confdefs.h >>conftest.$ac_ext
21593 cat >>conftest.$ac_ext <<_ACEOF
21594 /* end confdefs.h. */
21595 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21596 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21597 #define $ac_func innocuous_$ac_func
21599 /* System header to define __stub macros and hopefully few prototypes,
21600 which can conflict with char $ac_func (); below.
21601 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21602 <limits.h> exists even on freestanding compilers. */
21605 # include <limits.h>
21607 # include <assert.h>
21612 /* Override any GCC internal prototype to avoid an error.
21613 Use char because int might match the return type of a GCC
21614 builtin and then its argument prototype would still apply. */
21619 /* The GNU C library defines this for functions which it implements
21620 to always fail with ENOSYS. Some functions are actually named
21621 something starting with __ and the normal name is an alias. */
21622 #if defined __stub_$ac_func || defined __stub___$ac_func
21629 return $ac_func ();
21634 rm -f conftest.$ac_objext conftest$ac_exeext
21635 if { (ac_try="$ac_link"
21636 case "(($ac_try" in
21637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21638 *) ac_try_echo=$ac_try;;
21640 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21641 (eval "$ac_link") 2>conftest.er1
21643 grep -v '^ *+' conftest.er1 >conftest.err
21645 cat conftest.err >&5
21646 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21647 (exit $ac_status); } && {
21648 test -z "$ac_c_werror_flag" ||
21649 test ! -s conftest.err
21650 } && test -s conftest$ac_exeext &&
21651 $as_test_x conftest$ac_exeext; then
21652 eval "$as_ac_var=yes"
21654 echo "$as_me: failed program was
:" >&5
21655 sed 's/^/| /' conftest.$ac_ext >&5
21657 eval "$as_ac_var=no
"
21660 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21661 conftest$ac_exeext conftest.$ac_ext
21663 ac_res=`eval echo '${'$as_ac_var'}'`
21664 { echo "$as_me:$LINENO: result
: $ac_res" >&5
21665 echo "${ECHO_T}$ac_res" >&6; }
21666 if test `eval echo '${'$as_ac_var'}'` = yes; then
21667 cat >>confdefs.h <<_ACEOF
21668 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
21674 if test $ac_cv_func_gettimeofday = yes; then
21675 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments
" >&5
21676 echo $ECHO_N "checking whether gettimeofday can accept two arguments...
$ECHO_C" >&6; }
21677 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21678 echo $ECHO_N "(cached
) $ECHO_C" >&6
21680 cat >conftest.$ac_ext <<_ACEOF
21683 cat confdefs.h >>conftest.$ac_ext
21684 cat >>conftest.$ac_ext <<_ACEOF
21685 /* end confdefs.h. */
21687 #ifdef TIME_WITH_SYS_TIME
21688 #include <sys/time.h>
21691 #ifdef HAVE_SYS_TIME_H
21692 #include <sys/time.h>
21700 struct timeval time;
21701 gettimeofday (&time, 0);
21706 rm -f conftest.$ac_objext
21707 if { (ac_try="$ac_compile"
21708 case "(($ac_try" in
21709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21710 *) ac_try_echo=$ac_try;;
21712 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21713 (eval "$ac_compile") 2>conftest.er1
21715 grep -v '^ *+' conftest.er1 >conftest.err
21717 cat conftest.err >&5
21718 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21719 (exit $ac_status); } && {
21720 test -z "$ac_c_werror_flag" ||
21721 test ! -s conftest.err
21722 } && test -s conftest.$ac_objext; then
21723 emacs_cv_gettimeofday_two_arguments=yes
21725 echo "$as_me: failed program was
:" >&5
21726 sed 's/^/| /' conftest.$ac_ext >&5
21728 emacs_cv_gettimeofday_two_arguments=no
21731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21733 { echo "$as_me:$LINENO: result
: $emacs_cv_gettimeofday_two_arguments" >&5
21734 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21735 if test $emacs_cv_gettimeofday_two_arguments = no; then
21737 cat >>confdefs.h <<\_ACEOF
21738 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21746 { echo "$as_me:$LINENO: checking
for socket
" >&5
21747 echo $ECHO_N "checking
for socket...
$ECHO_C" >&6; }
21748 if test "${ac_cv_func_socket+set}" = set; then
21749 echo $ECHO_N "(cached
) $ECHO_C" >&6
21751 cat >conftest.$ac_ext <<_ACEOF
21754 cat confdefs.h >>conftest.$ac_ext
21755 cat >>conftest.$ac_ext <<_ACEOF
21756 /* end confdefs.h. */
21757 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21759 #define socket innocuous_socket
21761 /* System header to define __stub macros and hopefully few prototypes,
21762 which can conflict with char socket (); below.
21763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21764 <limits.h> exists even on freestanding compilers. */
21767 # include <limits.h>
21769 # include <assert.h>
21774 /* Override any GCC internal prototype to avoid an error.
21775 Use char because int might match the return type of a GCC
21776 builtin and then its argument prototype would still apply. */
21781 /* The GNU C library defines this for functions which it implements
21782 to always fail with ENOSYS. Some functions are actually named
21783 something starting with __ and the normal name is an alias. */
21784 #if defined __stub_socket || defined __stub___socket
21796 rm -f conftest.$ac_objext conftest$ac_exeext
21797 if { (ac_try="$ac_link"
21798 case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21802 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_link") 2>conftest.er1
21805 grep -v '^ *+' conftest.er1 >conftest.err
21807 cat conftest.err >&5
21808 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21809 (exit $ac_status); } && {
21810 test -z "$ac_c_werror_flag" ||
21811 test ! -s conftest.err
21812 } && test -s conftest$ac_exeext &&
21813 $as_test_x conftest$ac_exeext; then
21814 ac_cv_func_socket=yes
21816 echo "$as_me: failed program was
:" >&5
21817 sed 's/^/| /' conftest.$ac_ext >&5
21819 ac_cv_func_socket=no
21822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21823 conftest$ac_exeext conftest.$ac_ext
21825 { echo "$as_me:$LINENO: result
: $ac_cv_func_socket" >&5
21826 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21827 if test $ac_cv_func_socket = yes; then
21833 if test $ok_so_far = yes; then
21834 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21835 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21836 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21837 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21838 echo $ECHO_N "(cached
) $ECHO_C" >&6
21840 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21841 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21843 # Is the header compilable?
21844 { echo "$as_me:$LINENO: checking netinet
/in.h usability
" >&5
21845 echo $ECHO_N "checking netinet
/in.h usability...
$ECHO_C" >&6; }
21846 cat >conftest.$ac_ext <<_ACEOF
21849 cat confdefs.h >>conftest.$ac_ext
21850 cat >>conftest.$ac_ext <<_ACEOF
21851 /* end confdefs.h. */
21852 $ac_includes_default
21853 #include <netinet/in.h>
21855 rm -f conftest.$ac_objext
21856 if { (ac_try="$ac_compile"
21857 case "(($ac_try" in
21858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21859 *) ac_try_echo=$ac_try;;
21861 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21862 (eval "$ac_compile") 2>conftest.er1
21864 grep -v '^ *+' conftest.er1 >conftest.err
21866 cat conftest.err >&5
21867 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21868 (exit $ac_status); } && {
21869 test -z "$ac_c_werror_flag" ||
21870 test ! -s conftest.err
21871 } && test -s conftest.$ac_objext; then
21872 ac_header_compiler=yes
21874 echo "$as_me: failed program was
:" >&5
21875 sed 's/^/| /' conftest.$ac_ext >&5
21877 ac_header_compiler=no
21880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
21882 echo "${ECHO_T}$ac_header_compiler" >&6; }
21884 # Is the header present?
21885 { echo "$as_me:$LINENO: checking netinet
/in.h presence
" >&5
21886 echo $ECHO_N "checking netinet
/in.h presence...
$ECHO_C" >&6; }
21887 cat >conftest.$ac_ext <<_ACEOF
21890 cat confdefs.h >>conftest.$ac_ext
21891 cat >>conftest.$ac_ext <<_ACEOF
21892 /* end confdefs.h. */
21893 #include <netinet/in.h>
21895 if { (ac_try="$ac_cpp conftest.
$ac_ext"
21896 case "(($ac_try" in
21897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21898 *) ac_try_echo=$ac_try;;
21900 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21901 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
21903 grep -v '^ *+' conftest.er1 >conftest.err
21905 cat conftest.err >&5
21906 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
21907 (exit $ac_status); } >/dev/null && {
21908 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21909 test ! -s conftest.err
21911 ac_header_preproc=yes
21913 echo "$as_me: failed program was
:" >&5
21914 sed 's/^/| /' conftest.$ac_ext >&5
21916 ac_header_preproc=no
21919 rm -f conftest.err conftest.$ac_ext
21920 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
21921 echo "${ECHO_T}$ac_header_preproc" >&6; }
21923 # So? What about this header?
21924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21926 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
21927 echo "$as_me: WARNING
: netinet
/in.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
21928 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the compiler
's result" >&5
21929 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result
" >&2;}
21930 ac_header_preproc=yes
21933 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&5
21934 echo "$as_me: WARNING
: netinet
/in.h
: present but cannot be compiled
" >&2;}
21935 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&5
21936 echo "$as_me: WARNING
: netinet
/in.h
: check
for missing prerequisite headers?
" >&2;}
21937 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&5
21938 echo "$as_me: WARNING
: netinet
/in.h
: see the Autoconf documentation
" >&2;}
21939 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&5
21940 echo "$as_me: WARNING
: netinet
/in.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
21941 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: proceeding with the preprocessor
's result" >&5
21942 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result
" >&2;}
21943 { echo "$as_me:$LINENO: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&5
21944 echo "$as_me: WARNING
: netinet
/in.h
: in the future
, the compiler will take precedence
" >&2;}
21948 { echo "$as_me:$LINENO: checking
for netinet
/in.h
" >&5
21949 echo $ECHO_N "checking
for netinet
/in.h...
$ECHO_C" >&6; }
21950 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21951 echo $ECHO_N "(cached
) $ECHO_C" >&6
21953 ac_cv_header_netinet_in_h=$ac_header_preproc
21955 { echo "$as_me:$LINENO: result
: $ac_cv_header_netinet_in_h" >&5
21956 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21959 if test $ac_cv_header_netinet_in_h = yes; then
21967 if test $ok_so_far = yes; then
21968 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21969 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
21970 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
21971 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21972 echo $ECHO_N "(cached
) $ECHO_C" >&6
21974 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
21975 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21977 # Is the header compilable?
21978 { echo "$as_me:$LINENO: checking arpa
/inet.h usability
" >&5
21979 echo $ECHO_N "checking arpa
/inet.h usability...
$ECHO_C" >&6; }
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
21987 #include <arpa/inet.h>
21989 rm -f conftest.$ac_objext
21990 if { (ac_try="$ac_compile"
21991 case "(($ac_try" in
21992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21993 *) ac_try_echo=$ac_try;;
21995 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
21996 (eval "$ac_compile") 2>conftest.er1
21998 grep -v '^ *+' conftest.er1 >conftest.err
22000 cat conftest.err >&5
22001 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22002 (exit $ac_status); } && {
22003 test -z "$ac_c_werror_flag" ||
22004 test ! -s conftest.err
22005 } && test -s conftest.$ac_objext; then
22006 ac_header_compiler=yes
22008 echo "$as_me: failed program was
:" >&5
22009 sed 's/^/| /' conftest.$ac_ext >&5
22011 ac_header_compiler=no
22014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22015 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22016 echo "${ECHO_T}$ac_header_compiler" >&6; }
22018 # Is the header present?
22019 { echo "$as_me:$LINENO: checking arpa
/inet.h presence
" >&5
22020 echo $ECHO_N "checking arpa
/inet.h presence...
$ECHO_C" >&6; }
22021 cat >conftest.$ac_ext <<_ACEOF
22024 cat confdefs.h >>conftest.$ac_ext
22025 cat >>conftest.$ac_ext <<_ACEOF
22026 /* end confdefs.h. */
22027 #include <arpa/inet.h>
22029 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22030 case "(($ac_try" in
22031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22032 *) ac_try_echo=$ac_try;;
22034 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22035 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22037 grep -v '^ *+' conftest.er1 >conftest.err
22039 cat conftest.err >&5
22040 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22041 (exit $ac_status); } >/dev/null && {
22042 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22043 test ! -s conftest.err
22045 ac_header_preproc=yes
22047 echo "$as_me: failed program was
:" >&5
22048 sed 's/^/| /' conftest.$ac_ext >&5
22050 ac_header_preproc=no
22053 rm -f conftest.err conftest.$ac_ext
22054 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22055 echo "${ECHO_T}$ac_header_preproc" >&6; }
22057 # So? What about this header?
22058 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22060 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&5
22061 echo "$as_me: WARNING
: arpa
/inet.h
: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22062 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the compiler
's result" >&5
22063 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result
" >&2;}
22064 ac_header_preproc=yes
22067 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&5
22068 echo "$as_me: WARNING
: arpa
/inet.h
: present but cannot be compiled
" >&2;}
22069 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&5
22070 echo "$as_me: WARNING
: arpa
/inet.h
: check
for missing prerequisite headers?
" >&2;}
22071 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&5
22072 echo "$as_me: WARNING
: arpa
/inet.h
: see the Autoconf documentation
" >&2;}
22073 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&5
22074 echo "$as_me: WARNING
: arpa
/inet.h
: section
\"Present But Cannot Be Compiled
\"" >&2;}
22075 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: proceeding with the preprocessor
's result" >&5
22076 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result
" >&2;}
22077 { echo "$as_me:$LINENO: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&5
22078 echo "$as_me: WARNING
: arpa
/inet.h
: in the future
, the compiler will take precedence
" >&2;}
22082 { echo "$as_me:$LINENO: checking
for arpa
/inet.h
" >&5
22083 echo $ECHO_N "checking
for arpa
/inet.h...
$ECHO_C" >&6; }
22084 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22085 echo $ECHO_N "(cached
) $ECHO_C" >&6
22087 ac_cv_header_arpa_inet_h=$ac_header_preproc
22089 { echo "$as_me:$LINENO: result
: $ac_cv_header_arpa_inet_h" >&5
22090 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22093 if test $ac_cv_header_arpa_inet_h = yes; then
22101 if test $ok_so_far = yes; then
22103 cat >>confdefs.h <<\_ACEOF
22104 #define HAVE_INET_SOCKETS 1
22110 for ac_header in sys/ioctl.h
22112 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22113 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22114 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22115 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22116 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22117 echo $ECHO_N "(cached
) $ECHO_C" >&6
22119 ac_res=`eval echo '${'$as_ac_Header'}'`
22120 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22121 echo "${ECHO_T}$ac_res" >&6; }
22123 # Is the header compilable?
22124 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22125 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22126 cat >conftest.$ac_ext <<_ACEOF
22129 cat confdefs.h >>conftest.$ac_ext
22130 cat >>conftest.$ac_ext <<_ACEOF
22131 /* end confdefs.h. */
22132 $ac_includes_default
22133 #include <$ac_header>
22135 rm -f conftest.$ac_objext
22136 if { (ac_try="$ac_compile"
22137 case "(($ac_try" in
22138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22139 *) ac_try_echo=$ac_try;;
22141 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22142 (eval "$ac_compile") 2>conftest.er1
22144 grep -v '^ *+' conftest.er1 >conftest.err
22146 cat conftest.err >&5
22147 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22148 (exit $ac_status); } && {
22149 test -z "$ac_c_werror_flag" ||
22150 test ! -s conftest.err
22151 } && test -s conftest.$ac_objext; then
22152 ac_header_compiler=yes
22154 echo "$as_me: failed program was
:" >&5
22155 sed 's/^/| /' conftest.$ac_ext >&5
22157 ac_header_compiler=no
22160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22161 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22162 echo "${ECHO_T}$ac_header_compiler" >&6; }
22164 # Is the header present?
22165 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22166 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22167 cat >conftest.$ac_ext <<_ACEOF
22170 cat confdefs.h >>conftest.$ac_ext
22171 cat >>conftest.$ac_ext <<_ACEOF
22172 /* end confdefs.h. */
22173 #include <$ac_header>
22175 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22176 case "(($ac_try" in
22177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22178 *) ac_try_echo=$ac_try;;
22180 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22181 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22183 grep -v '^ *+' conftest.er1 >conftest.err
22185 cat conftest.err >&5
22186 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22187 (exit $ac_status); } >/dev/null && {
22188 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22189 test ! -s conftest.err
22191 ac_header_preproc=yes
22193 echo "$as_me: failed program was
:" >&5
22194 sed 's/^/| /' conftest.$ac_ext >&5
22196 ac_header_preproc=no
22199 rm -f conftest.err conftest.$ac_ext
22200 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22201 echo "${ECHO_T}$ac_header_preproc" >&6; }
22203 # So? What about this header?
22204 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22206 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22207 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22208 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22209 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22210 ac_header_preproc=yes
22213 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22214 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22215 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22216 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22217 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22218 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22219 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22220 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22221 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22222 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22223 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22224 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22228 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22229 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22230 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22231 echo $ECHO_N "(cached
) $ECHO_C" >&6
22233 eval "$as_ac_Header=\
$ac_header_preproc"
22235 ac_res=`eval echo '${'$as_ac_Header'}'`
22236 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22237 echo "${ECHO_T}$ac_res" >&6; }
22240 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22241 cat >>confdefs.h <<_ACEOF
22242 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22250 if test -f /usr/lpp/X11/bin/smt.exp; then
22252 cat >>confdefs.h <<\_ACEOF
22253 #define HAVE_AIX_SMT_EXP 1
22258 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys
" >&5
22259 echo $ECHO_N "checking whether system supports dynamic ptys...
$ECHO_C" >&6; }
22260 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22261 { echo "$as_me:$LINENO: result
: yes" >&5
22262 echo "${ECHO_T}yes" >&6; }
22264 cat >>confdefs.h <<\_ACEOF
22265 #define HAVE_DEV_PTMX 1
22269 { echo "$as_me:$LINENO: result
: no
" >&5
22270 echo "${ECHO_T}no
" >&6; }
22273 { echo "$as_me:$LINENO: checking
for pid_t
" >&5
22274 echo $ECHO_N "checking
for pid_t...
$ECHO_C" >&6; }
22275 if test "${ac_cv_type_pid_t+set}" = set; then
22276 echo $ECHO_N "(cached
) $ECHO_C" >&6
22278 cat >conftest.$ac_ext <<_ACEOF
22281 cat confdefs.h >>conftest.$ac_ext
22282 cat >>conftest.$ac_ext <<_ACEOF
22283 /* end confdefs.h. */
22284 $ac_includes_default
22285 typedef pid_t ac__type_new_;
22289 if ((ac__type_new_ *) 0)
22291 if (sizeof (ac__type_new_))
22297 rm -f conftest.$ac_objext
22298 if { (ac_try="$ac_compile"
22299 case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22303 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_compile") 2>conftest.er1
22306 grep -v '^ *+' conftest.er1 >conftest.err
22308 cat conftest.err >&5
22309 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22310 (exit $ac_status); } && {
22311 test -z "$ac_c_werror_flag" ||
22312 test ! -s conftest.err
22313 } && test -s conftest.$ac_objext; then
22314 ac_cv_type_pid_t=yes
22316 echo "$as_me: failed program was
:" >&5
22317 sed 's/^/| /' conftest.$ac_ext >&5
22319 ac_cv_type_pid_t=no
22322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22324 { echo "$as_me:$LINENO: result
: $ac_cv_type_pid_t" >&5
22325 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22326 if test $ac_cv_type_pid_t = yes; then
22330 cat >>confdefs.h <<_ACEOF
22337 for ac_header in vfork.h
22339 as_ac_Header=`echo "ac_cv_header_
$ac_header" | $as_tr_sh`
22340 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22341 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22342 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22343 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22344 echo $ECHO_N "(cached
) $ECHO_C" >&6
22346 ac_res=`eval echo '${'$as_ac_Header'}'`
22347 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22348 echo "${ECHO_T}$ac_res" >&6; }
22350 # Is the header compilable?
22351 { echo "$as_me:$LINENO: checking
$ac_header usability
" >&5
22352 echo $ECHO_N "checking
$ac_header usability...
$ECHO_C" >&6; }
22353 cat >conftest.$ac_ext <<_ACEOF
22356 cat confdefs.h >>conftest.$ac_ext
22357 cat >>conftest.$ac_ext <<_ACEOF
22358 /* end confdefs.h. */
22359 $ac_includes_default
22360 #include <$ac_header>
22362 rm -f conftest.$ac_objext
22363 if { (ac_try="$ac_compile"
22364 case "(($ac_try" in
22365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22366 *) ac_try_echo=$ac_try;;
22368 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22369 (eval "$ac_compile") 2>conftest.er1
22371 grep -v '^ *+' conftest.er1 >conftest.err
22373 cat conftest.err >&5
22374 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22375 (exit $ac_status); } && {
22376 test -z "$ac_c_werror_flag" ||
22377 test ! -s conftest.err
22378 } && test -s conftest.$ac_objext; then
22379 ac_header_compiler=yes
22381 echo "$as_me: failed program was
:" >&5
22382 sed 's/^/| /' conftest.$ac_ext >&5
22384 ac_header_compiler=no
22387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22388 { echo "$as_me:$LINENO: result
: $ac_header_compiler" >&5
22389 echo "${ECHO_T}$ac_header_compiler" >&6; }
22391 # Is the header present?
22392 { echo "$as_me:$LINENO: checking
$ac_header presence
" >&5
22393 echo $ECHO_N "checking
$ac_header presence...
$ECHO_C" >&6; }
22394 cat >conftest.$ac_ext <<_ACEOF
22397 cat confdefs.h >>conftest.$ac_ext
22398 cat >>conftest.$ac_ext <<_ACEOF
22399 /* end confdefs.h. */
22400 #include <$ac_header>
22402 if { (ac_try="$ac_cpp conftest.
$ac_ext"
22403 case "(($ac_try" in
22404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22405 *) ac_try_echo=$ac_try;;
22407 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22408 (eval "$ac_cpp conftest.
$ac_ext") 2>conftest.er1
22410 grep -v '^ *+' conftest.er1 >conftest.err
22412 cat conftest.err >&5
22413 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22414 (exit $ac_status); } >/dev/null && {
22415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22416 test ! -s conftest.err
22418 ac_header_preproc=yes
22420 echo "$as_me: failed program was
:" >&5
22421 sed 's/^/| /' conftest.$ac_ext >&5
22423 ac_header_preproc=no
22426 rm -f conftest.err conftest.$ac_ext
22427 { echo "$as_me:$LINENO: result
: $ac_header_preproc" >&5
22428 echo "${ECHO_T}$ac_header_preproc" >&6; }
22430 # So? What about this header?
22431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22433 { echo "$as_me:$LINENO: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&5
22434 echo "$as_me: WARNING
: $ac_header: accepted by the compiler
, rejected by the preprocessor
!" >&2;}
22435 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the compiler
's result" >&5
22436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result
" >&2;}
22437 ac_header_preproc=yes
22440 { echo "$as_me:$LINENO: WARNING
: $ac_header: present but cannot be compiled
" >&5
22441 echo "$as_me: WARNING
: $ac_header: present but cannot be compiled
" >&2;}
22442 { echo "$as_me:$LINENO: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&5
22443 echo "$as_me: WARNING
: $ac_header: check
for missing prerequisite headers?
" >&2;}
22444 { echo "$as_me:$LINENO: WARNING
: $ac_header: see the Autoconf documentation
" >&5
22445 echo "$as_me: WARNING
: $ac_header: see the Autoconf documentation
" >&2;}
22446 { echo "$as_me:$LINENO: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&5
22447 echo "$as_me: WARNING
: $ac_header: section
\"Present But Cannot Be Compiled
\"" >&2;}
22448 { echo "$as_me:$LINENO: WARNING
: $ac_header: proceeding with the preprocessor
's result" >&5
22449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result
" >&2;}
22450 { echo "$as_me:$LINENO: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&5
22451 echo "$as_me: WARNING
: $ac_header: in the future
, the compiler will take precedence
" >&2;}
22455 { echo "$as_me:$LINENO: checking
for $ac_header" >&5
22456 echo $ECHO_N "checking
for $ac_header...
$ECHO_C" >&6; }
22457 if { as_var=$as_ac_Header; eval "test \"\
${$as_var+set}\" = set"; }; then
22458 echo $ECHO_N "(cached
) $ECHO_C" >&6
22460 eval "$as_ac_Header=\
$ac_header_preproc"
22462 ac_res=`eval echo '${'$as_ac_Header'}'`
22463 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22464 echo "${ECHO_T}$ac_res" >&6; }
22467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22468 cat >>confdefs.h <<_ACEOF
22469 #define `echo "HAVE_
$ac_header" | $as_tr_cpp` 1
22478 for ac_func in fork vfork
22480 as_ac_var=`echo "ac_cv_func_
$ac_func" | $as_tr_sh`
22481 { echo "$as_me:$LINENO: checking
for $ac_func" >&5
22482 echo $ECHO_N "checking
for $ac_func...
$ECHO_C" >&6; }
22483 if { as_var=$as_ac_var; eval "test \"\
${$as_var+set}\" = set"; }; then
22484 echo $ECHO_N "(cached
) $ECHO_C" >&6
22486 cat >conftest.$ac_ext <<_ACEOF
22489 cat confdefs.h >>conftest.$ac_ext
22490 cat >>conftest.$ac_ext <<_ACEOF
22491 /* end confdefs.h. */
22492 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22493 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22494 #define $ac_func innocuous_$ac_func
22496 /* System header to define __stub macros and hopefully few prototypes,
22497 which can conflict with char $ac_func (); below.
22498 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22499 <limits.h> exists even on freestanding compilers. */
22502 # include <limits.h>
22504 # include <assert.h>
22509 /* Override any GCC internal prototype to avoid an error.
22510 Use char because int might match the return type of a GCC
22511 builtin and then its argument prototype would still apply. */
22516 /* The GNU C library defines this for functions which it implements
22517 to always fail with ENOSYS. Some functions are actually named
22518 something starting with __ and the normal name is an alias. */
22519 #if defined __stub_$ac_func || defined __stub___$ac_func
22526 return $ac_func ();
22531 rm -f conftest.$ac_objext conftest$ac_exeext
22532 if { (ac_try="$ac_link"
22533 case "(($ac_try" in
22534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22535 *) ac_try_echo=$ac_try;;
22537 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22538 (eval "$ac_link") 2>conftest.er1
22540 grep -v '^ *+' conftest.er1 >conftest.err
22542 cat conftest.err >&5
22543 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22544 (exit $ac_status); } && {
22545 test -z "$ac_c_werror_flag" ||
22546 test ! -s conftest.err
22547 } && test -s conftest$ac_exeext &&
22548 $as_test_x conftest$ac_exeext; then
22549 eval "$as_ac_var=yes"
22551 echo "$as_me: failed program was
:" >&5
22552 sed 's/^/| /' conftest.$ac_ext >&5
22554 eval "$as_ac_var=no
"
22557 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22558 conftest$ac_exeext conftest.$ac_ext
22560 ac_res=`eval echo '${'$as_ac_var'}'`
22561 { echo "$as_me:$LINENO: result
: $ac_res" >&5
22562 echo "${ECHO_T}$ac_res" >&6; }
22563 if test `eval echo '${'$as_ac_var'}'` = yes; then
22564 cat >>confdefs.h <<_ACEOF
22565 #define `echo "HAVE_
$ac_func" | $as_tr_cpp` 1
22571 if test "x
$ac_cv_func_fork" = xyes; then
22572 { echo "$as_me:$LINENO: checking
for working fork
" >&5
22573 echo $ECHO_N "checking
for working fork...
$ECHO_C" >&6; }
22574 if test "${ac_cv_func_fork_works+set}" = set; then
22575 echo $ECHO_N "(cached
) $ECHO_C" >&6
22577 if test "$cross_compiling" = yes; then
22578 ac_cv_func_fork_works=cross
22580 cat >conftest.$ac_ext <<_ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22586 $ac_includes_default
22591 /* By Ruediger Kuhlmann. */
22592 return fork () < 0;
22598 rm -f conftest$ac_exeext
22599 if { (ac_try="$ac_link"
22600 case "(($ac_try" in
22601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22602 *) ac_try_echo=$ac_try;;
22604 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22605 (eval "$ac_link") 2>&5
22607 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22608 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22609 { (case "(($ac_try" in
22610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22611 *) ac_try_echo=$ac_try;;
22613 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22614 (eval "$ac_try") 2>&5
22616 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22617 (exit $ac_status); }; }; then
22618 ac_cv_func_fork_works=yes
22620 echo "$as_me: program exited with status
$ac_status" >&5
22621 echo "$as_me: failed program was
:" >&5
22622 sed 's/^/| /' conftest.$ac_ext >&5
22624 ( exit $ac_status )
22625 ac_cv_func_fork_works=no
22627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22632 { echo "$as_me:$LINENO: result
: $ac_cv_func_fork_works" >&5
22633 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22636 ac_cv_func_fork_works=$ac_cv_func_fork
22638 if test "x
$ac_cv_func_fork_works" = xcross; then
22640 *-*-amigaos* | *-*-msdosdjgpp*)
22641 # Override, as these systems have only a dummy fork() stub
22642 ac_cv_func_fork_works=no
22645 ac_cv_func_fork_works=yes
22648 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&5
22649 echo "$as_me: WARNING
: result
$ac_cv_func_fork_works guessed because of cross compilation
" >&2;}
22651 ac_cv_func_vfork_works=$ac_cv_func_vfork
22652 if test "x
$ac_cv_func_vfork" = xyes; then
22653 { echo "$as_me:$LINENO: checking
for working vfork
" >&5
22654 echo $ECHO_N "checking
for working vfork...
$ECHO_C" >&6; }
22655 if test "${ac_cv_func_vfork_works+set}" = set; then
22656 echo $ECHO_N "(cached
) $ECHO_C" >&6
22658 if test "$cross_compiling" = yes; then
22659 ac_cv_func_vfork_works=cross
22661 cat >conftest.$ac_ext <<_ACEOF
22664 cat confdefs.h >>conftest.$ac_ext
22665 cat >>conftest.$ac_ext <<_ACEOF
22666 /* end confdefs.h. */
22667 /* Thanks to Paul Eggert for this test. */
22668 $ac_includes_default
22669 #include <sys/wait.h>
22670 #ifdef HAVE_VFORK_H
22671 # include <vfork.h>
22673 /* On some sparc systems, changes by the child to local and incoming
22674 argument registers are propagated back to the parent. The compiler
22675 is told about this with #include <vfork.h>, but some compilers
22676 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22677 static variable whose address is put into a register that is
22678 clobbered by the vfork. */
22681 sparc_address_test (int arg)
22683 sparc_address_test (arg) int arg;
22686 static pid_t child;
22704 pid_t parent = getpid ();
22707 sparc_address_test (0);
22712 /* Here is another test for sparc vfork register problems. This
22713 test uses lots of local variables, at least as many local
22714 variables as main has allocated so far including compiler
22715 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22716 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22717 reuse the register of parent for one of the local variables,
22718 since it will think that parent can't possibly be used any more
22719 in this routine. Assigning to the local variable will thus
22720 munge parent in the parent process. */
22722 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22723 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22724 /* Convince the compiler that p..p7 are live; otherwise, it might
22725 use the same hardware register for all 8 local variables. */
22726 if (p != p1 || p != p2 || p != p3 || p != p4
22727 || p != p5 || p != p6 || p != p7)
22730 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22731 from child file descriptors. If the child closes a descriptor
22732 before it execs or exits, this munges the parent's descriptor
22733 as well. Test for this by closing stdout in the child. */
22734 _exit(close(fileno(stdout)) != 0);
22739 while (wait(&status) != child)
22742 /* Was there some problem with vforking? */
22745 /* Did the child fail? (This shouldn't happen.) */
22748 /* Did the vfork/compiler bug occur? */
22749 || parent != getpid()
22751 /* Did the file descriptor bug occur? */
22752 || fstat(fileno(stdout), &st) != 0
22757 rm -f conftest$ac_exeext
22758 if { (ac_try="$ac_link"
22759 case "(($ac_try" in
22760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22761 *) ac_try_echo=$ac_try;;
22763 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22764 (eval "$ac_link") 2>&5
22766 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22767 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22768 { (case "(($ac_try" in
22769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22770 *) ac_try_echo=$ac_try;;
22772 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22773 (eval "$ac_try") 2>&5
22775 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22776 (exit $ac_status); }; }; then
22777 ac_cv_func_vfork_works=yes
22779 echo "$as_me: program exited with status
$ac_status" >&5
22780 echo "$as_me: failed program was
:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22783 ( exit $ac_status )
22784 ac_cv_func_vfork_works=no
22786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22791 { echo "$as_me:$LINENO: result
: $ac_cv_func_vfork_works" >&5
22792 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22795 if test "x
$ac_cv_func_fork_works" = xcross; then
22796 ac_cv_func_vfork_works=$ac_cv_func_vfork
22797 { echo "$as_me:$LINENO: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&5
22798 echo "$as_me: WARNING
: result
$ac_cv_func_vfork_works guessed because of cross compilation
" >&2;}
22801 if test "x
$ac_cv_func_vfork_works" = xyes; then
22803 cat >>confdefs.h <<\_ACEOF
22804 #define HAVE_WORKING_VFORK 1
22809 cat >>confdefs.h <<\_ACEOF
22814 if test "x
$ac_cv_func_fork_works" = xyes; then
22816 cat >>confdefs.h <<\_ACEOF
22817 #define HAVE_WORKING_FORK 1
22823 { echo "$as_me:$LINENO: checking
for nl_langinfo and CODESET
" >&5
22824 echo $ECHO_N "checking
for nl_langinfo and CODESET...
$ECHO_C" >&6; }
22825 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22826 echo $ECHO_N "(cached
) $ECHO_C" >&6
22828 cat >conftest.$ac_ext <<_ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22834 #include <langinfo.h>
22838 char* cs = nl_langinfo(CODESET);
22843 rm -f conftest.$ac_objext conftest$ac_exeext
22844 if { (ac_try="$ac_link"
22845 case "(($ac_try" in
22846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22847 *) ac_try_echo=$ac_try;;
22849 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22850 (eval "$ac_link") 2>conftest.er1
22852 grep -v '^ *+' conftest.er1 >conftest.err
22854 cat conftest.err >&5
22855 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22856 (exit $ac_status); } && {
22857 test -z "$ac_c_werror_flag" ||
22858 test ! -s conftest.err
22859 } && test -s conftest$ac_exeext &&
22860 $as_test_x conftest$ac_exeext; then
22861 emacs_cv_langinfo_codeset=yes
22863 echo "$as_me: failed program was
:" >&5
22864 sed 's/^/| /' conftest.$ac_ext >&5
22866 emacs_cv_langinfo_codeset=no
22869 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22870 conftest$ac_exeext conftest.$ac_ext
22873 { echo "$as_me:$LINENO: result
: $emacs_cv_langinfo_codeset" >&5
22874 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22875 if test $emacs_cv_langinfo_codeset = yes; then
22877 cat >>confdefs.h <<\_ACEOF
22878 #define HAVE_LANGINFO_CODESET 1
22883 { echo "$as_me:$LINENO: checking
for size_t
" >&5
22884 echo $ECHO_N "checking
for size_t...
$ECHO_C" >&6; }
22885 if test "${ac_cv_type_size_t+set}" = set; then
22886 echo $ECHO_N "(cached
) $ECHO_C" >&6
22888 cat >conftest.$ac_ext <<_ACEOF
22891 cat confdefs.h >>conftest.$ac_ext
22892 cat >>conftest.$ac_ext <<_ACEOF
22893 /* end confdefs.h. */
22894 $ac_includes_default
22895 typedef size_t ac__type_new_;
22899 if ((ac__type_new_ *) 0)
22901 if (sizeof (ac__type_new_))
22907 rm -f conftest.$ac_objext
22908 if { (ac_try="$ac_compile"
22909 case "(($ac_try" in
22910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22911 *) ac_try_echo=$ac_try;;
22913 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22914 (eval "$ac_compile") 2>conftest.er1
22916 grep -v '^ *+' conftest.er1 >conftest.err
22918 cat conftest.err >&5
22919 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22920 (exit $ac_status); } && {
22921 test -z "$ac_c_werror_flag" ||
22922 test ! -s conftest.err
22923 } && test -s conftest.$ac_objext; then
22924 ac_cv_type_size_t=yes
22926 echo "$as_me: failed program was
:" >&5
22927 sed 's/^/| /' conftest.$ac_ext >&5
22929 ac_cv_type_size_t=no
22932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22934 { echo "$as_me:$LINENO: result
: $ac_cv_type_size_t" >&5
22935 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22936 if test $ac_cv_type_size_t = yes; then
22938 cat >>confdefs.h <<_ACEOF
22939 #define HAVE_SIZE_T 1
22946 { echo "$as_me:$LINENO: checking
for mbstate_t
" >&5
22947 echo $ECHO_N "checking
for mbstate_t...
$ECHO_C" >&6; }
22948 if test "${ac_cv_type_mbstate_t+set}" = set; then
22949 echo $ECHO_N "(cached
) $ECHO_C" >&6
22951 cat >conftest.$ac_ext <<_ACEOF
22954 cat confdefs.h >>conftest.$ac_ext
22955 cat >>conftest.$ac_ext <<_ACEOF
22956 /* end confdefs.h. */
22957 $ac_includes_default
22958 # include <wchar.h>
22962 mbstate_t x; return sizeof x;
22967 rm -f conftest.$ac_objext
22968 if { (ac_try="$ac_compile"
22969 case "(($ac_try" in
22970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22971 *) ac_try_echo=$ac_try;;
22973 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
22974 (eval "$ac_compile") 2>conftest.er1
22976 grep -v '^ *+' conftest.er1 >conftest.err
22978 cat conftest.err >&5
22979 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
22980 (exit $ac_status); } && {
22981 test -z "$ac_c_werror_flag" ||
22982 test ! -s conftest.err
22983 } && test -s conftest.$ac_objext; then
22984 ac_cv_type_mbstate_t=yes
22986 echo "$as_me: failed program was
:" >&5
22987 sed 's/^/| /' conftest.$ac_ext >&5
22989 ac_cv_type_mbstate_t=no
22992 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22994 { echo "$as_me:$LINENO: result
: $ac_cv_type_mbstate_t" >&5
22995 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22996 if test $ac_cv_type_mbstate_t = yes; then
22998 cat >>confdefs.h <<\_ACEOF
22999 #define HAVE_MBSTATE_T 1
23004 cat >>confdefs.h <<\_ACEOF
23005 #define mbstate_t int
23010 { echo "$as_me:$LINENO: checking
for C restrict keyword
" >&5
23011 echo $ECHO_N "checking
for C restrict keyword...
$ECHO_C" >&6; }
23012 if test "${emacs_cv_c_restrict+set}" = set; then
23013 echo $ECHO_N "(cached
) $ECHO_C" >&6
23015 cat >conftest.$ac_ext <<_ACEOF
23018 cat confdefs.h >>conftest.$ac_ext
23019 cat >>conftest.$ac_ext <<_ACEOF
23020 /* end confdefs.h. */
23021 void fred (int *restrict x);
23030 rm -f conftest.$ac_objext
23031 if { (ac_try="$ac_compile"
23032 case "(($ac_try" in
23033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23034 *) ac_try_echo=$ac_try;;
23036 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23037 (eval "$ac_compile") 2>conftest.er1
23039 grep -v '^ *+' conftest.er1 >conftest.err
23041 cat conftest.err >&5
23042 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23043 (exit $ac_status); } && {
23044 test -z "$ac_c_werror_flag" ||
23045 test ! -s conftest.err
23046 } && test -s conftest.$ac_objext; then
23047 emacs_cv_c_restrict=yes
23049 echo "$as_me: failed program was
:" >&5
23050 sed 's/^/| /' conftest.$ac_ext >&5
23052 cat >conftest.$ac_ext <<_ACEOF
23055 cat confdefs.h >>conftest.$ac_ext
23056 cat >>conftest.$ac_ext <<_ACEOF
23057 /* end confdefs.h. */
23058 void fred (int *__restrict x);
23067 rm -f conftest.$ac_objext
23068 if { (ac_try="$ac_compile"
23069 case "(($ac_try" in
23070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23071 *) ac_try_echo=$ac_try;;
23073 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23074 (eval "$ac_compile") 2>conftest.er1
23076 grep -v '^ *+' conftest.er1 >conftest.err
23078 cat conftest.err >&5
23079 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23080 (exit $ac_status); } && {
23081 test -z "$ac_c_werror_flag" ||
23082 test ! -s conftest.err
23083 } && test -s conftest.$ac_objext; then
23084 emacs_cv_c_restrict=__restrict
23086 echo "$as_me: failed program was
:" >&5
23087 sed 's/^/| /' conftest.$ac_ext >&5
23089 emacs_cv_c_restrict=no
23092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23097 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict" >&5
23098 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23099 case "$emacs_cv_c_restrict" in
23100 yes) emacs_restrict=restrict;;
23101 no) emacs_restrict="";;
23102 *) emacs_restrict="$emacs_cv_c_restrict";;
23104 if test "$emacs_restrict" != __restrict; then
23106 cat >>confdefs.h <<_ACEOF
23107 #define __restrict $emacs_restrict
23112 { echo "$as_me:$LINENO: checking
for C restricted array declarations
" >&5
23113 echo $ECHO_N "checking
for C restricted array declarations...
$ECHO_C" >&6; }
23114 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23115 echo $ECHO_N "(cached
) $ECHO_C" >&6
23117 cat >conftest.$ac_ext <<_ACEOF
23120 cat confdefs.h >>conftest.$ac_ext
23121 cat >>conftest.$ac_ext <<_ACEOF
23122 /* end confdefs.h. */
23123 void fred (int x[__restrict]);
23132 rm -f conftest.$ac_objext
23133 if { (ac_try="$ac_compile"
23134 case "(($ac_try" in
23135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23136 *) ac_try_echo=$ac_try;;
23138 eval "echo \"\
$as_me:$LINENO: $ac_try_echo\"") >&5
23139 (eval "$ac_compile") 2>conftest.er1
23141 grep -v '^ *+' conftest.er1 >conftest.err
23143 cat conftest.err >&5
23144 echo "$as_me:$LINENO: \$?
= $ac_status" >&5
23145 (exit $ac_status); } && {
23146 test -z "$ac_c_werror_flag" ||
23147 test ! -s conftest.err
23148 } && test -s conftest.$ac_objext; then
23149 emacs_cv_c_restrict_arr=yes
23151 echo "$as_me: failed program was
:" >&5
23152 sed 's/^/| /' conftest.$ac_ext >&5
23154 emacs_cv_c_restrict_arr=no
23157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23159 { echo "$as_me:$LINENO: result
: $emacs_cv_c_restrict_arr" >&5
23160 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23161 if test "$emacs_cv_c_restrict_arr" = yes; then
23163 cat >>confdefs.h <<\_ACEOF
23164 #define __restrict_arr __restrict
23171 # Set up the CFLAGS for real compilation, so we can substitute it.
23172 CFLAGS="$REAL_CFLAGS"
23173 CPPFLAGS="$REAL_CPPFLAGS"
23175 #### Find out which version of Emacs this is.
23176 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23177 | sed -e 's/^[^"]*"\([^"]*\
)".*$/\1/'`
23178 if test x"${version}" = x; then
23179 { { echo "$as_me:$LINENO: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&5
23180 echo "$as_me: error
: can
't find current emacs version in \`${srcdir}/lisp/version.el'.
" >&2;}
23181 { (exit 1); exit 1; }; }
23184 ### Specify what sort of things we'll be editing into Makefile and config.h.
23185 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23221 cat >>confdefs.h <<_ACEOF
23222 #define EMACS_CONFIGURATION "${canonical}"
23226 cat >>confdefs.h <<_ACEOF
23227 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23231 cat >>confdefs.h <<_ACEOF
23232 #define config_machfile "${machfile}"
23236 cat >>confdefs.h <<_ACEOF
23237 #define config_opsysfile "${opsysfile}"
23241 cat >>confdefs.h <<_ACEOF
23242 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23246 cat >>confdefs.h <<_ACEOF
23247 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23251 cat >>confdefs.h <<_ACEOF
23252 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23256 cat >>confdefs.h <<_ACEOF
23257 #define UNEXEC_SRC ${UNEXEC_SRC}
23261 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23263 cat >>confdefs.h <<\_ACEOF
23264 #define HAVE_X_WINDOWS 1
23268 if test "${USE_X_TOOLKIT}" != "none
" ; then
23270 cat >>confdefs.h <<\_ACEOF
23271 #define USE_X_TOOLKIT 1
23275 if test "${HAVE_X11}" = "yes" ; then
23277 cat >>confdefs.h <<\_ACEOF
23282 if test "${HAVE_XFREE386}" = "yes" ; then
23284 cat >>confdefs.h <<\_ACEOF
23285 #define HAVE_XFREE386 1
23289 if test "${HAVE_MENUS}" = "yes" ; then
23291 cat >>confdefs.h <<\_ACEOF
23292 #define HAVE_MENUS 1
23296 if test "${GNU_MALLOC}" = "yes" ; then
23298 cat >>confdefs.h <<\_ACEOF
23299 #define GNU_MALLOC 1
23303 if test "${REL_ALLOC}" = "yes" ; then
23305 cat >>confdefs.h <<\_ACEOF
23306 #define REL_ALLOC 1
23315 #### Report on what we decided to do.
23316 #### Report GTK as a toolkit, even if it doesn't use Xt.
23317 #### It makes printing result more understandable as using GTK sets
23318 #### toolkit_scroll_bars to yes by default.
23319 if test "${HAVE_GTK}" = "yes"; then
23324 Configured
for \
`${canonical}'.
23326 Where should the build process find the source code? ${srcdir}
23327 What operating system and machine description files should Emacs use?
23328 \`${opsysfile}' and \`${machfile}'
23329 What compiler should emacs be built with?
${CC} ${CFLAGS}
23330 Should Emacs use the GNU version of malloc?
${GNU_MALLOC}${GNU_MALLOC_reason}
23331 Should Emacs use a relocating allocator
for buffers?
${REL_ALLOC}
23332 Should Emacs use mmap
(2) for buffer allocation?
$use_mmap_for_buffers
23333 What window system should Emacs use?
${window_system}
23334 What toolkit should Emacs use?
${USE_X_TOOLKIT}"
23336 if test -n "${x_includes}"; then
23337 echo " Where
do we
find X Windows header files?
${x_includes}"
23339 echo " Where
do we
find X Windows header files? Standard
dirs"
23341 if test -n "${x_libraries}"; then
23342 echo " Where
do we
find X Windows libraries?
${x_libraries}"
23344 echo " Where
do we
find X Windows libraries? Standard
dirs"
23347 echo " Does Emacs use
-lXaw3d?
${HAVE_XAW3D}"
23348 echo " Does Emacs use
-lXpm?
${HAVE_XPM}"
23349 echo " Does Emacs use
-ljpeg?
${HAVE_JPEG}"
23350 echo " Does Emacs use
-ltiff?
${HAVE_TIFF}"
23351 echo " Does Emacs use
-lungif?
${HAVE_GIF}"
23352 echo " Does Emacs use
-lpng?
${HAVE_PNG}"
23353 echo " Does Emacs use X toolkit scroll bars?
${USE_TOOLKIT_SCROLL_BARS}"
23356 if test $USE_XASSERTS = yes; then
23357 echo " Compiling with asserts turned on.
"
23358 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23364 # Remove any trailing slashes in these variables.
23365 test "${prefix}" != NONE &&
23366 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23367 test "${exec_prefix}" != NONE &&
23368 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23370 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23371 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23372 ## from Makefile.c can correctly provide the arg `-traditional' to the
23375 cat >conftest.$ac_ext <<_ACEOF
23378 cat confdefs.h >>conftest.$ac_ext
23379 cat >>conftest.$ac_ext <<_ACEOF
23380 /* end confdefs.h. */
23383 if (eval "$ac_cpp conftest.
$ac_ext") 2>&5 |
23384 $EGREP "yes..
yes" >/dev/null 2>&1; then
23385 CPP_NEED_TRADITIONAL=no
23387 CPP_NEED_TRADITIONAL=yes
23392 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
"
23394 ac_config_commands="$ac_config_commands default
"
23396 cat >confcache <<\_ACEOF
23397 # This file is a shell script that caches the results of configure
23398 # tests run on this system so they can be shared between configure
23399 # scripts and configure runs, see configure's option --config-cache.
23400 # It is not useful on other systems. If it contains results you don't
23401 # want to keep, you may remove or edit it.
23403 # config.status only pays attention to the cache file if you give it
23404 # the --recheck option to rerun configure.
23406 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23407 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23408 # following values.
23412 # The following way of writing the cache mishandles newlines in values,
23413 # but we know of no workaround that is simple, portable, and efficient.
23414 # So, we kill variables containing newlines.
23415 # Ultrix sh set writes to stderr and can't be redirected directly,
23416 # and sets the high bit in the cache file unless we assign to the vars.
23418 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23419 eval ac_val=\$$ac_var
23423 *_cv_*) { echo "$as_me:$LINENO: WARNING
: Cache variable
$ac_var contains a newline.
" >&5
23424 echo "$as_me: WARNING
: Cache variable
$ac_var contains a newline.
" >&2;} ;;
23427 _ | IFS | as_nl) ;; #(
23428 *) $as_unset $ac_var ;;
23434 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23435 *${as_nl}ac_space=\ *)
23436 # `set' does not quote correctly, so add quotes (double-quote
23437 # substitution turns \\\\ into \\, and sed turns \\ into \).
23440 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
23443 # `set' quotes correctly as required by POSIX, so do not add quotes.
23444 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
23453 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23455 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23457 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23458 if test -w "$cache_file"; then
23459 test "x
$cache_file" != "x
/dev
/null
" &&
23460 { echo "$as_me:$LINENO: updating cache
$cache_file" >&5
23461 echo "$as_me: updating cache
$cache_file" >&6;}
23462 cat confcache >$cache_file
23464 { echo "$as_me:$LINENO: not updating unwritable cache
$cache_file" >&5
23465 echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
23470 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
23471 # Let make expand exec_prefix.
23472 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
23474 DEFS=-DHAVE_CONFIG_H
23478 for ac_i in : $LIBOBJS; do test "x
$ac_i" = x: && continue
23479 # 1. Remove the extension, and $U if already installed.
23480 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23481 ac_i=`echo "$ac_i" | sed "$ac_script"`
23482 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23483 # will be set to the directory where LIBOBJS objects are built.
23484 ac_libobjs="$ac_libobjs \
${LIBOBJDIR}$ac_i\
$U.
$ac_objext"
23485 ac_ltlibobjs="$ac_ltlibobjs \
${LIBOBJDIR}$ac_i"'$U.lo'
23487 LIBOBJS=$ac_libobjs
23489 LTLIBOBJS=$ac_ltlibobjs
23493 : ${CONFIG_STATUS=./config.status}
23494 ac_clean_files_save=$ac_clean_files
23495 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23496 { echo "$as_me:$LINENO: creating
$CONFIG_STATUS" >&5
23497 echo "$as_me: creating
$CONFIG_STATUS" >&6;}
23498 cat >$CONFIG_STATUS <<_ACEOF
23500 # Generated by $as_me.
23501 # Run this file to recreate the current configuration.
23502 # Compiler output produced by configure, useful for debugging
23503 # configure, is in config.log if it exists.
23506 ac_cs_recheck=false
23508 SHELL=\${CONFIG_SHELL-$SHELL}
23511 cat >>$CONFIG_STATUS <<\_ACEOF
23512 ## --------------------- ##
23513 ## M4sh Initialization. ##
23514 ## --------------------- ##
23516 # Be more Bourne compatible
23517 DUALCASE=1; export DUALCASE # for MKS sh
23518 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23521 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23522 # is contrary to our usage. Disable this feature.
23523 alias -g '${1+"$@"}'='"$@
"'
23524 setopt NO_GLOB_SUBST
23526 case `(set -o) 2>/dev/null` in
23527 *posix*) set -o posix ;;
23536 # Avoid depending upon Character Ranges.
23537 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23538 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23539 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23540 as_cr_digits='0123456789'
23541 as_cr_alnum=$as_cr_Letters$as_cr_digits
23543 # The user is always right.
23544 if test "${PATH_SEPARATOR+set}" != set; then
23545 echo "#! /bin/sh" >conf$$.sh
23546 echo "exit 0" >>conf$$.sh
23548 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
23556 # Support unset when possible.
23557 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
23565 # We need space, tab and new line, in precisely that order. Quoting is
23566 # there to prevent editors from complaining about space-tab.
23567 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23568 # splitting by setting IFS to empty value.)
23573 # Find who we are. Look in the path if we contain no directory separator.
23575 *[\\/]* ) as_myself
=$0 ;;
23576 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
23577 for as_dir
in $PATH
23580 test -z "$as_dir" && as_dir
=.
23581 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
23587 # We did not find ourselves, most probably we were run as `sh COMMAND'
23588 # in which case we are not to be found in the path.
23589 if test "x$as_myself" = x
; then
23592 if test ! -f "$as_myself"; then
23593 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23594 { (exit 1); exit 1; }
23597 # Work around bugs in pre-3.0 UWIN ksh.
23598 for as_var
in ENV MAIL MAILPATH
23599 do ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23607 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23608 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23609 LC_TELEPHONE LC_TIME
23611 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23612 eval $as_var=C
; export $as_var
23614 ($as_unset $as_var) >/dev
/null
2>&1 && $as_unset $as_var
23618 # Required to use basename.
23619 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23620 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23626 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23627 as_basename
=basename
23633 # Name of the executable.
23634 as_me
=`$as_basename -- "$0" ||
23635 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23636 X"$0" : 'X\(//\)$' \| \
23637 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23639 sed '/^.*\/\([^/][^/]*\)\/*$/{
23658 as_lineno_1
=$LINENO
23659 as_lineno_2
=$LINENO
23660 test "x$as_lineno_1" != "x$as_lineno_2" &&
23661 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" ||
{
23663 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23664 # uniformly replaced by the line number. The first 'sed' inserts a
23665 # line-number line after each line using $LINENO; the second 'sed'
23666 # does the real work. The second script uses 'N' to pair each
23667 # line-number line with the line containing $LINENO, and appends
23668 # trailing '-' during substitution so that $LINENO is not a special
23669 # case at line end.
23670 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23671 # scripts with optimization help from Paolo Bonzini. Blame Lee
23672 # E. McMahon (1931-1989) for sed's syntax. :-)
23684 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23687 ' >$as_me.lineno
&&
23688 chmod +x
"$as_me.lineno" ||
23689 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23690 { (exit 1); exit 1; }; }
23692 # Don't try to exec as it changes $[0], causing all sort of problems
23693 # (the dirname of $[0] is not the place where we might find the
23694 # original and so on. Autoconf is especially sensitive to this).
23695 .
"./$as_me.lineno"
23696 # Exit status is that of the last command.
23701 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
23707 ECHO_C
= ECHO_N
= ECHO_T
=
23708 case `echo -n x` in
23710 case `echo 'x\c'` in
23711 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
23718 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
23719 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
23725 rm -f conf$$ conf$$.exe conf$$.
file
23726 if test -d conf$$.dir
; then
23727 rm -f conf$$.dir
/conf$$.
file
23733 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
23735 # ... but there are two gotchas:
23736 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23737 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23738 # In both cases, we have to default to `cp -p'.
23739 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
23741 elif ln conf$$.
file conf$$
2>/dev
/null
; then
23746 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
23747 rmdir conf$$.dir
2>/dev
/null
23749 if mkdir
-p .
2>/dev
/null
; then
23752 test -d .
/-p && rmdir .
/-p
23756 if test -x / >/dev
/null
2>&1; then
23757 as_test_x
='test -x'
23759 if ls -dL / >/dev
/null
2>&1; then
23766 if test -d "$1"; then
23772 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23773 ???[sx]*):;;*)false;;esac;fi
23777 as_executable_p
=$as_test_x
23779 # Sed expression to map a string onto a valid CPP name.
23780 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23782 # Sed expression to map a string onto a valid variable name.
23783 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23788 # Save the log message, to keep $[0] and so on meaningful, and to
23789 # report actual input values of CONFIG_FILES etc. instead of their
23790 # values after options handling.
23792 This file was extended by $as_me, which was
23793 generated by GNU Autoconf 2.61. Invocation command line was
23795 CONFIG_FILES = $CONFIG_FILES
23796 CONFIG_HEADERS = $CONFIG_HEADERS
23797 CONFIG_LINKS = $CONFIG_LINKS
23798 CONFIG_COMMANDS = $CONFIG_COMMANDS
23801 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23806 cat >>$CONFIG_STATUS <<_ACEOF
23807 # Files that config.status was made for.
23808 config_files="$ac_config_files"
23809 config_headers="$ac_config_headers"
23810 config_commands="$ac_config_commands"
23814 cat >>$CONFIG_STATUS <<\_ACEOF
23816 \`$as_me' instantiates files from templates according to the
23817 current configuration.
23819 Usage: $0 [OPTIONS] [FILE]...
23821 -h, --help print this help, then exit
23822 -V, --version print version number and configuration settings, then exit
23823 -q, --quiet do not print progress messages
23824 -d, --debug don't remove temporary files
23825 --recheck update $as_me by reconfiguring in the same conditions
23826 --file=FILE[:TEMPLATE]
23827 instantiate the configuration file FILE
23828 --header=FILE[:TEMPLATE]
23829 instantiate the configuration header FILE
23831 Configuration files:
23834 Configuration headers:
23837 Configuration commands:
23840 Report bugs to <bug-autoconf@gnu.org>."
23843 cat >>$CONFIG_STATUS <<_ACEOF
23846 configured by $0, generated by GNU Autoconf 2.61,
23847 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23849 Copyright (C) 2006 Free Software Foundation, Inc.
23850 This config.status script is free software; the Free Software Foundation
23851 gives unlimited permission to copy, distribute and modify it."
23858 cat >>$CONFIG_STATUS <<\_ACEOF
23859 # If no file are specified by the user, then we need to provide default
23860 # value. By we need to know if files were specified by the user.
23866 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
23867 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
23878 # Handling of the options.
23879 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
23881 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
23882 echo "$ac_cs_version"; exit ;;
23883 --debug |
--debu |
--deb |
--de |
--d |
-d )
23885 --file |
--fil |
--fi |
--f )
23887 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
23888 ac_need_defaults
=false
;;
23889 --header |
--heade |
--head |
--hea )
23891 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
23892 ac_need_defaults
=false
;;
23894 # Conflict between --help and --header
23895 { echo "$as_me: error: ambiguous option: $1
23896 Try \`$0 --help' for more information." >&2
23897 { (exit 1); exit 1; }; };;
23898 --help |
--hel |
-h )
23899 echo "$ac_cs_usage"; exit ;;
23900 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
23901 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
23904 # This is an error.
23905 -*) { echo "$as_me: error: unrecognized option: $1
23906 Try \`$0 --help' for more information." >&2
23907 { (exit 1); exit 1; }; } ;;
23909 *) ac_config_targets
="$ac_config_targets $1"
23910 ac_need_defaults
=false
;;
23916 ac_configure_extra_args
=
23918 if $ac_cs_silent; then
23920 ac_configure_extra_args
="$ac_configure_extra_args --silent"
23924 cat >>$CONFIG_STATUS <<_ACEOF
23925 if \$ac_cs_recheck; then
23926 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23927 CONFIG_SHELL=$SHELL
23928 export CONFIG_SHELL
23929 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23933 cat >>$CONFIG_STATUS <<\_ACEOF
23937 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23938 ## Running $as_me. ##
23944 cat >>$CONFIG_STATUS <<_ACEOF
23948 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23952 cat >>$CONFIG_STATUS <<\_ACEOF
23954 # Handling of arguments.
23955 for ac_config_target
in $ac_config_targets
23957 case $ac_config_target in
23958 "src/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23959 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
23960 "lib-src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23961 "oldXMenu/Makefile") CONFIG_FILES
="$CONFIG_FILES oldXMenu/Makefile" ;;
23962 "man/Makefile") CONFIG_FILES
="$CONFIG_FILES man/Makefile" ;;
23963 "lwlib/Makefile") CONFIG_FILES
="$CONFIG_FILES lwlib/Makefile" ;;
23964 "src/Makefile.c") CONFIG_FILES
="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23965 "lisp/Makefile") CONFIG_FILES
="$CONFIG_FILES lisp/Makefile" ;;
23966 "lispref/Makefile") CONFIG_FILES
="$CONFIG_FILES lispref/Makefile" ;;
23967 "lispintro/Makefile") CONFIG_FILES
="$CONFIG_FILES lispintro/Makefile" ;;
23968 "leim/Makefile") CONFIG_FILES
="$CONFIG_FILES leim/Makefile" ;;
23969 "default") CONFIG_COMMANDS
="$CONFIG_COMMANDS default" ;;
23971 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23972 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23973 { (exit 1); exit 1; }; };;
23978 # If the user did not use the arguments to specify the items to instantiate,
23979 # then the envvar interface is used. Set only those that are not.
23980 # We use the long form for the default assignment because of an extremely
23981 # bizarre bug on SunOS 4.1.3.
23982 if $ac_need_defaults; then
23983 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
23984 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
23985 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
23988 # Have a temporary directory for convenience. Make it in the build tree
23989 # simply because there is no reason against having it here, and in addition,
23990 # creating and moving files from /tmp can sometimes cause problems.
23991 # Hook for its removal unless debugging.
23992 # Note that there is a small window in which the directory will not be cleaned:
23993 # after its creation but before its name has been assigned to `$tmp'.
23997 trap 'exit_status=$?
23998 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24000 trap '{ (exit 1); exit 1; }' 1 2 13 15
24002 # Create a (secure) tmp directory for tmp files.
24005 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24006 test -n "$tmp" && test -d "$tmp"
24009 tmp
=.
/conf$$
-$RANDOM
24010 (umask 077 && mkdir
"$tmp")
24013 echo "$me: cannot create a temporary directory in ." >&2
24014 { (exit 1); exit 1; }
24018 # Set up the sed scripts for CONFIG_FILES section.
24021 # No need to generate the scripts if there are no CONFIG_FILES.
24022 # This happens for instance when ./config.status config.h
24023 if test -n "$CONFIG_FILES"; then
24030 for ac_last_try
in false false false false false
:; do
24031 cat >conf$
$subs.
sed <<_ACEOF
24032 SHELL!$SHELL$ac_delim
24033 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24034 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24035 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24036 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24037 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24038 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24039 exec_prefix!$exec_prefix$ac_delim
24040 prefix!$prefix$ac_delim
24041 program_transform_name!$program_transform_name$ac_delim
24042 bindir!$bindir$ac_delim
24043 sbindir!$sbindir$ac_delim
24044 libexecdir!$libexecdir$ac_delim
24045 datarootdir!$datarootdir$ac_delim
24046 datadir!$datadir$ac_delim
24047 sysconfdir!$sysconfdir$ac_delim
24048 sharedstatedir!$sharedstatedir$ac_delim
24049 localstatedir!$localstatedir$ac_delim
24050 includedir!$includedir$ac_delim
24051 oldincludedir!$oldincludedir$ac_delim
24052 docdir!$docdir$ac_delim
24053 infodir!$infodir$ac_delim
24054 htmldir!$htmldir$ac_delim
24055 dvidir!$dvidir$ac_delim
24056 pdfdir!$pdfdir$ac_delim
24057 psdir!$psdir$ac_delim
24058 libdir!$libdir$ac_delim
24059 localedir!$localedir$ac_delim
24060 mandir!$mandir$ac_delim
24061 DEFS!$DEFS$ac_delim
24062 ECHO_C!$ECHO_C$ac_delim
24063 ECHO_N!$ECHO_N$ac_delim
24064 ECHO_T!$ECHO_T$ac_delim
24065 LIBS!$LIBS$ac_delim
24066 build_alias!$build_alias$ac_delim
24067 host_alias!$host_alias$ac_delim
24068 target_alias!$target_alias$ac_delim
24069 MAINT!$MAINT$ac_delim
24070 build!$build$ac_delim
24071 build_cpu!$build_cpu$ac_delim
24072 build_vendor!$build_vendor$ac_delim
24073 build_os!$build_os$ac_delim
24074 host!$host$ac_delim
24075 host_cpu!$host_cpu$ac_delim
24076 host_vendor!$host_vendor$ac_delim
24077 host_os!$host_os$ac_delim
24079 CFLAGS!$CFLAGS$ac_delim
24080 LDFLAGS!$LDFLAGS$ac_delim
24081 CPPFLAGS!$CPPFLAGS$ac_delim
24082 ac_ct_CC!$ac_ct_CC$ac_delim
24083 EXEEXT!$EXEEXT$ac_delim
24084 OBJEXT!$OBJEXT$ac_delim
24086 GREP!$GREP$ac_delim
24087 EGREP!$EGREP$ac_delim
24088 LN_S!$LN_S$ac_delim
24089 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24090 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24091 INSTALL_DATA!$INSTALL_DATA$ac_delim
24092 RANLIB!$RANLIB$ac_delim
24093 INSTALL_INFO!$INSTALL_INFO$ac_delim
24094 GZIP_PROG!$GZIP_PROG$ac_delim
24095 LIBSOUND!$LIBSOUND$ac_delim
24096 PKG_CONFIG!$PKG_CONFIG$ac_delim
24097 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24098 ALSA_LIBS!$ALSA_LIBS$ac_delim
24099 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24100 SET_MAKE!$SET_MAKE$ac_delim
24101 XMKMF!$XMKMF$ac_delim
24102 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24103 GTK_LIBS!$GTK_LIBS$ac_delim
24104 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24105 XFT_LIBS!$XFT_LIBS$ac_delim
24106 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24107 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24108 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24109 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24110 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24111 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24112 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24113 ALLOCA!$ALLOCA$ac_delim
24114 liblockfile!$liblockfile$ac_delim
24115 LIBOBJS!$LIBOBJS$ac_delim
24116 NEED_SETGID!$NEED_SETGID$ac_delim
24117 KMEM_GROUP!$KMEM_GROUP$ac_delim
24118 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24119 GETOPT_H!$GETOPT_H$ac_delim
24120 GETOPTOBJS!$GETOPTOBJS$ac_delim
24121 version!$version$ac_delim
24122 configuration!$configuration$ac_delim
24123 canonical!$canonical$ac_delim
24124 srcdir!$srcdir$ac_delim
24125 lispdir!$lispdir$ac_delim
24126 locallisppath!$locallisppath$ac_delim
24127 lisppath!$lisppath$ac_delim
24128 x_default_search_path!$x_default_search_path$ac_delim
24131 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24133 elif $ac_last_try; then
24134 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24135 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24136 { (exit 1); exit 1; }; }
24138 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24142 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24143 if test -n "$ac_eof"; then
24144 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24145 ac_eof
=`expr $ac_eof + 1`
24148 cat >>$CONFIG_STATUS <<_ACEOF
24149 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24150 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24153 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24154 s/^/s,@/; s/!/@,|#_!!_#|/
24157 s/'"$ac_delim"'$/,g/; t
24159 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24160 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24161 rm -f conf$
$subs.
sed
24162 cat >>$CONFIG_STATUS <<_ACEOF
24168 for ac_last_try
in false false false false false
:; do
24169 cat >conf$
$subs.
sed <<_ACEOF
24170 etcdir!$etcdir$ac_delim
24171 archlibdir!$archlibdir$ac_delim
24172 bitmapdir!$bitmapdir$ac_delim
24173 gamedir!$gamedir$ac_delim
24174 gameuser!$gameuser$ac_delim
24175 c_switch_system!$c_switch_system$ac_delim
24176 c_switch_machine!$c_switch_machine$ac_delim
24177 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24178 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24179 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24180 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24181 machfile!$machfile$ac_delim
24182 opsysfile!$opsysfile$ac_delim
24183 carbon_appdir!$carbon_appdir$ac_delim
24184 LTLIBOBJS!$LTLIBOBJS$ac_delim
24187 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24189 elif $ac_last_try; then
24190 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24191 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24192 { (exit 1); exit 1; }; }
24194 ac_delim
="$ac_delim!$ac_delim _$ac_delim!! "
24198 ac_eof
=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24199 if test -n "$ac_eof"; then
24200 ac_eof
=`echo "$ac_eof" | sort -nru | sed 1q`
24201 ac_eof
=`expr $ac_eof + 1`
24204 cat >>$CONFIG_STATUS <<_ACEOF
24205 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24206 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24209 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24210 s/^/s,@/; s/!/@,|#_!!_#|/
24213 s/'"$ac_delim"'$/,g/; t
24215 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24216 ' >>$CONFIG_STATUS <conf$
$subs.
sed
24217 rm -f conf$
$subs.
sed
24218 cat >>$CONFIG_STATUS <<_ACEOF
24225 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24226 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24227 # trailing colons and then remove the whole line if VPATH becomes empty
24228 # (actually we leave an empty line to preserve line numbers).
24229 if test "x$srcdir" = x.
; then
24230 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
24231 s/:*\$(srcdir):*/:/
24232 s/:*\${srcdir}:*/:/
24234 s/^\([^=]*=[ ]*\):*/\1/
24240 cat >>$CONFIG_STATUS <<\_ACEOF
24241 fi # test -n "$CONFIG_FILES"
24244 for ac_tag
in :F
$CONFIG_FILES :H
$CONFIG_HEADERS :C
$CONFIG_COMMANDS
24247 :[FHLC
]) ac_mode
=$ac_tag; continue;;
24249 case $ac_mode$ac_tag in
24251 :L
* |
:C
*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24252 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24253 { (exit 1); exit 1; }; };;
24254 :[FH
]-) ac_tag
=-:-;;
24255 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
24272 -) ac_f
="$tmp/stdin";;
24273 *) # Look for the file first in the build tree, then in the source tree
24274 # (if the path is not absolute). The absolute path cannot be DOS-style,
24275 # because $ac_f cannot contain `:'.
24279 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
24281 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24282 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24283 { (exit 1); exit 1; }; };;
24285 ac_file_inputs
="$ac_file_inputs $ac_f"
24288 # Let's still pretend it is `configure' which instantiates (i.e., don't
24289 # use $as_me), people would be surprised to read:
24290 # /* config.h. Generated by config.status. */
24291 configure_input
="Generated from "`IFS=:
24292 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24293 if test x
"$ac_file" != x-
; then
24294 configure_input
="$ac_file. $configure_input"
24295 { echo "$as_me:$LINENO: creating $ac_file" >&5
24296 echo "$as_me: creating $ac_file" >&6;}
24300 *:-:* |
*:-) cat >"$tmp/stdin";;
24305 ac_dir
=`$as_dirname -- "$ac_file" ||
24306 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24307 X"$ac_file" : 'X\(//\)[^/]' \| \
24308 X"$ac_file" : 'X\(//\)$' \| \
24309 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24311 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24315 /^X\(\/\/\)[^/].*/{
24330 -*) as_dir
=.
/$as_dir;;
24332 test -d "$as_dir" ||
{ $as_mkdir_p && mkdir
-p "$as_dir"; } ||
{
24336 *\'*) as_qdir
=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24337 *) as_qdir
=$as_dir;;
24339 as_dirs
="'$as_qdir' $as_dirs"
24340 as_dir
=`$as_dirname -- "$as_dir" ||
24341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24342 X"$as_dir" : 'X\(//\)[^/]' \| \
24343 X"$as_dir" : 'X\(//\)$' \| \
24344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24350 /^X\(\/\/\)[^/].*/{
24363 test -d "$as_dir" && break
24365 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
24366 } ||
test -d "$as_dir" ||
{ { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24367 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24368 { (exit 1); exit 1; }; }; }
24372 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24374 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24375 # A ".." for each directory in $ac_dir_suffix.
24376 ac_top_builddir_sub
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24377 case $ac_top_builddir_sub in
24378 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
24379 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
24382 ac_abs_top_builddir
=$ac_pwd
24383 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
24384 # for backward compatibility:
24385 ac_top_builddir
=$ac_top_build_prefix
24388 .
) # We are building in place.
24390 ac_top_srcdir
=$ac_top_builddir_sub
24391 ac_abs_top_srcdir
=$ac_pwd ;;
24392 [\\/]* | ?
:[\\/]* ) # Absolute name.
24393 ac_srcdir
=$srcdir$ac_dir_suffix;
24394 ac_top_srcdir
=$srcdir
24395 ac_abs_top_srcdir
=$srcdir ;;
24396 *) # Relative name.
24397 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
24398 ac_top_srcdir
=$ac_top_build_prefix$srcdir
24399 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
24401 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
24411 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
24412 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
24416 cat >>$CONFIG_STATUS <<\_ACEOF
24417 # If the template does not know about datarootdir, expand it.
24418 # FIXME: This hack should be removed a few years after 2.60.
24419 ac_datarootdir_hack
=; ac_datarootdir_seen
=
24421 case `sed -n '/datarootdir/ {
24430 ' $ac_file_inputs` in
24431 *datarootdir
*) ac_datarootdir_seen
=yes;;
24432 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
24433 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24434 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24436 cat >>$CONFIG_STATUS <<_ACEOF
24437 ac_datarootdir_hack='
24438 s&@datadir@&$datadir&g
24439 s&@docdir@&$docdir&g
24440 s&@infodir@&$infodir&g
24441 s&@localedir@&$localedir&g
24442 s&@mandir@&$mandir&g
24443 s&\\\${datarootdir}&$datarootdir&g' ;;
24447 # Neutralize VPATH when `$srcdir' = `.'.
24448 # Shell code in configure.ac might set extrasub.
24449 # FIXME: do we really want to maintain this feature?
24450 cat >>$CONFIG_STATUS <<_ACEOF
24454 cat >>$CONFIG_STATUS <<\_ACEOF
24456 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
24457 s
&@configure_input@
&$configure_input&;t t
24458 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
24459 s
&@srcdir@
&$ac_srcdir&;t t
24460 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
24461 s
&@top_srcdir@
&$ac_top_srcdir&;t t
24462 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
24463 s
&@builddir@
&$ac_builddir&;t t
24464 s
&@abs_builddir@
&$ac_abs_builddir&;t t
24465 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
24466 s
&@INSTALL@
&$ac_INSTALL&;t t
24467 $ac_datarootdir_hack
24468 " $ac_file_inputs | sed -f "$tmp/subs-1.
sed" | sed -f "$tmp/subs-2.
sed" >$tmp/out
24470 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24471 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
24472 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
24473 { echo "$as_me:$LINENO: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
24474 which seems to be undefined. Please make sure it is defined." >&5
24475 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
24476 which seems to be undefined. Please make sure it is defined." >&2;}
24480 -) cat "$tmp/out"; rm -f "$tmp/out";;
24481 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24490 # Transform confdefs.h into a sed script `conftest.defines', that
24491 # substitutes the proper values into config.h.in to produce config.h.
24492 rm -f conftest.defines conftest.
tail
24493 # First, append a space to every undef/define line, to ease matching.
24494 echo 's/$/ /' >conftest.defines
24495 # Then, protect against being on the right side of a sed subst, or in
24496 # an unquoted here document, in config.status. If some macros were
24497 # called several times there might be several #defines for the same
24498 # symbol, which is useless. But do not sort them, since the last
24499 # AC_DEFINE must be honored.
24500 ac_word_re
=[_
$as_cr_Letters][_
$as_cr_alnum]*
24501 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24502 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24503 # PARAMS is the parameter list in the macro definition--in most cases, it's
24504 # just an empty string.
24505 ac_dA
='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24506 ac_dB
='\\)[ (].*,\\1define\\2'
24514 s/^[ ]*#[ ]*define[ ][ ]*//
24519 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24520 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24521 ' >>conftest.defines
24523 # Remove the space that was appended to ease matching.
24524 # Then replace #undef with comments. This is necessary, for
24525 # example, in the case of _POSIX_SOURCE, which is predefined and required
24526 # on some systems where configure will not decide to define it.
24527 # (The regexp can be short, since the line contains either #define or #undef.)
24529 s,^[ #]*u.*,/* & */,' >>conftest.defines
24531 # Break up conftest.defines:
24532 ac_max_sed_lines
=50
24534 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24535 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24536 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24538 ac_in
='$ac_file_inputs'
24539 ac_out
='"$tmp/out1"'
24540 ac_nxt
='"$tmp/out2"'
24544 # Write a here document:
24545 cat >>$CONFIG_STATUS <<_ACEOF
24546 # First, check the format of the line:
24547 cat >"\$tmp/defines.sed" <<\\CEOF
24548 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24549 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24553 sed ${ac_max_sed_lines}q conftest.defines
>>$CONFIG_STATUS
24555 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24556 ac_in
=$ac_out; ac_out
=$ac_nxt; ac_nxt
=$ac_in
24557 sed 1,${ac_max_sed_lines}d conftest.defines
>conftest.
tail
24558 grep . conftest.
tail >/dev
/null ||
break
24559 rm -f conftest.defines
24560 mv conftest.
tail conftest.defines
24562 rm -f conftest.defines conftest.
tail
24564 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24565 cat >>$CONFIG_STATUS <<\_ACEOF
24566 if test x
"$ac_file" != x-
; then
24567 echo "/* $configure_input */" >"$tmp/config.h"
24568 cat "$ac_result" >>"$tmp/config.h"
24569 if diff $ac_file "$tmp/config.h" >/dev
/null
2>&1; then
24570 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24571 echo "$as_me: $ac_file is unchanged" >&6;}
24574 mv "$tmp/config.h" $ac_file
24577 echo "/* $configure_input */"
24583 :C
) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24584 echo "$as_me: executing $ac_file commands" >&6;}
24589 case $ac_file$ac_mode in
24592 ### Make the necessary directories, if they don't exist.
24593 for dir
in etc lisp
; do
24594 test -d ${dir} || mkdir
${dir}
24597 # Build src/Makefile from ${srcdir}/src/Makefile.c
24598 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24599 # This must be done after src/config.h is built, since we rely on that file.
24601 # Now get this: Some word that is part of the ${srcdir} directory name
24602 # or the ${configuration} value might, just might, happen to be an
24603 # identifier like `sun4' or `i386' or something, and be predefined by
24604 # the C preprocessor to some helpful value like 1, or maybe the empty
24605 # string. Needless to say consequent macro substitutions are less
24606 # than conducive to the makefile finding the correct directory.
24607 undefs
="`echo $top_srcdir $configuration $canonical |
24608 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24609 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24612 echo creating src
/epaths.h
24613 ${MAKE-make} epaths-force
24615 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24616 # `..' to `. .' unless invoked with -traditional
24618 if test "x$GCC" = xyes
&& test "x$CPP_NEED_TRADITIONAL" = xyes
; then
24619 CPPFLAGS
="$CPPFLAGS -traditional"
24622 echo creating lib-src
/Makefile
24624 rm -f junk.c junk1.c junk2.c
24625 sed -e '/start of cpp stuff/q' \
24626 < Makefile.c
> junk1.c
24627 sed -e '1,/start of cpp stuff/d'\
24628 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24629 < Makefile.c
> junk.c
24630 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24631 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24632 cat junk1.c junk2.c
> Makefile.new
24633 rm -f junk.c junk1.c junk2.c
24634 chmod 444 Makefile.new
24635 mv -f Makefile.new Makefile
24638 echo creating src
/Makefile
24640 rm -f junk.c junk1.c junk2.c
24641 sed -e '/start of cpp stuff/q' \
24642 < Makefile.c
> junk1.c
24643 sed -e '1,/start of cpp stuff/d'\
24644 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24645 < Makefile.c
> junk.c
24646 if test -f ${srcdir}/admin
/unidata
/UnicodeData.txt
; then
24647 CPPFLAGS
="$CPPFLAGS -DHAVE_UNIDATA"
24649 $CPP $undefs -I.
-I$srcdir/src
$CPPFLAGS junk.c | \
24650 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24651 cat junk1.c junk2.c
> Makefile.new
24652 rm -f junk.c junk1.c junk2.c
24653 chmod 444 Makefile.new
24654 mv -f Makefile.new Makefile
24657 if test ! -f src
/.gdbinit
&& test -f $srcdir/src
/.gdbinit
; then
24658 echo creating src
/.gdbinit
24659 echo source $srcdir/src
/.gdbinit
> src
/.gdbinit
24662 # This is how we know whether to re-run configure in certain cases.
24663 touch src
/config.stamp
24671 { (exit 0); exit 0; }
24673 chmod +x
$CONFIG_STATUS
24674 ac_clean_files
=$ac_clean_files_save
24677 # configure is writing to config.log, and then calls config.status.
24678 # config.status does its own redirection, appending to config.log.
24679 # Unfortunately, on DOS this fails, as config.log is still kept open
24680 # by configure, so config.status won't be able to write to it; its
24681 # output is simply discarded. So we exec the FD to /dev/null,
24682 # effectively closing config.log, so it can be properly (re)opened and
24683 # appended to by config.status. When coming back to configure, we
24684 # need to make the FD available again.
24685 if test "$no_create" != yes; then
24687 ac_config_status_args
=
24688 test "$silent" = yes &&
24689 ac_config_status_args
="$ac_config_status_args --quiet"
24691 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
24693 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24694 # would make configure fail if this is the last instruction.
24695 $ac_cs_success ||
{ (exit 1); exit 1; }